~ubuntu-branches/ubuntu/hardy/wget/hardy-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2005-06-26 16:46:25 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050626164625-jjcde8hyztx7xq7o
Tags: 1.10-2
* wget-fix_error--save-headers patch from upstream
  (closes: Bug#314728)
* don't pattern-match server redirects patch from upstream
  (closes: Bug#163243)
* correct de.po typos
  (closes: Bug#313883)
* wget-E_html_behind_file_counting fix problem with adding the
  numbers after the html extension
* updated Standards-Version: to 3.6.2

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 VERSION PACKAGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os OPIE_OBJ SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL LIBTOOL_DEPS exeext U ANSI2KNR ALLOCA GETOPT_OBJ SSL_INCLUDES SSL_OBJ MD5_OBJ MSGFMT XGETTEXT GMSGFMT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS POFILES HAVE_NLS USE_NLS MAKEINFO PERL POD2MAN COMMENT_IF_NO_POD2MAN 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 VERSION PACKAGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os OPIE_OBJ SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS exeext U ANSI2KNR ALLOCA GETOPT_OBJ SSL_INCLUDES SSL_OBJ NTLM_OBJ MD5_OBJ MSGFMT XGETTEXT GMSGFMT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS POFILES HAVE_NLS USE_NLS MAKEINFO PERL POD2MAN COMMENT_IF_NO_POD2MAN 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
1004
1020
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1005
1021
  --disable-opie          disable support for opie or s/key FTP login
1006
1022
  --disable-digest        disable support for HTTP digest authorization
 
1023
  --disable-ntlm          disable support for NTLM authorization
1007
1024
  --disable-debug         disable support for debugging output
1008
 
  --enable-shared=PKGS  build shared libraries default=yes
1009
 
  --enable-static=PKGS  build static libraries default=yes
1010
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
1025
  --enable-shared[=PKGS]
 
1026
                          build shared libraries [default=yes]
 
1027
  --enable-static[=PKGS]
 
1028
                          build static libraries [default=yes]
 
1029
  --enable-fast-install[=PKGS]
 
1030
                          optimize for fast installation [default=yes]
1011
1031
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1032
  --disable-largefile     omit support for large files
1012
1033
  --disable-ipv6          disable IPv6 support
1013
1034
  --disable-nls           do not use Native Language Support
1014
1035
 
1015
1036
Optional Packages:
1016
1037
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1017
1038
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1018
 
  --with-socks            use the socks library
1019
1039
  --with-ssl[=SSL-ROOT]   link with SSL support [default=auto]
1020
1040
  --without-ssl           disable SSL autodetection
1021
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1022
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
1041
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1042
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1043
                          both]
 
1044
  --with-tags[=TAGS]
 
1045
                          include additional configurations [automatic]
1023
1046
 
1024
1047
Some influential environment variables:
1025
1048
  CC          C compiler command
1029
1052
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1030
1053
              headers in a nonstandard directory <include dir>
1031
1054
  CPP         C preprocessor
 
1055
  CXX         C++ compiler command
 
1056
  CXXFLAGS    C++ compiler flags
 
1057
  CXXCPP      C++ preprocessor
 
1058
  F77         Fortran 77 compiler command
 
1059
  FFLAGS      Fortran 77 compiler flags
1032
1060
 
1033
1061
Use these variables to override the choices made by `configure' or to help
1034
1062
it to find libraries and programs with nonstandard names/locations.
1066
1094
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067
1095
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068
1096
esac
1069
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1070
 
# absolute.
1071
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1072
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1073
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1074
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1097
 
 
1098
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1099
# the directories may not exist.
 
1100
case `pwd` in
 
1101
.) ac_abs_builddir="$ac_dir";;
 
1102
*)
 
1103
  case "$ac_dir" in
 
1104
  .) ac_abs_builddir=`pwd`;;
 
1105
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1106
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1107
  esac;;
 
1108
esac
 
1109
case $ac_abs_builddir in
 
1110
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1111
*)
 
1112
  case ${ac_top_builddir}. in
 
1113
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1114
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1115
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1116
  esac;;
 
1117
esac
 
1118
case $ac_abs_builddir in
 
1119
.) ac_abs_srcdir=$ac_srcdir;;
 
1120
*)
 
1121
  case $ac_srcdir in
 
1122
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1123
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1124
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1125
  esac;;
 
1126
esac
 
1127
case $ac_abs_builddir in
 
1128
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1129
*)
 
1130
  case $ac_top_srcdir in
 
1131
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1132
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1133
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1134
  esac;;
 
1135
esac
1075
1136
 
1076
1137
    cd $ac_dir
1077
1138
    # Check for guested configure; otherwise get Cygnus style configure.
1082
1143
      echo
1083
1144
      $SHELL $ac_srcdir/configure  --help=recursive
1084
1145
    elif test -f $ac_srcdir/configure.ac ||
1085
 
           test -f $ac_srcdir/configure.in; then
 
1146
           test -f $ac_srcdir/configure.in; then
1086
1147
      echo
1087
1148
      $ac_configure --help
1088
1149
    else
1096
1157
if $ac_init_version; then
1097
1158
  cat <<\_ACEOF
1098
1159
 
1099
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1100
 
Free Software Foundation, Inc.
 
1160
Copyright (C) 2003 Free Software Foundation, Inc.
1101
1161
This configure script is free software; the Free Software Foundation
1102
1162
gives unlimited permission to copy, distribute and modify it.
1103
1163
_ACEOF
1109
1169
running configure, to aid debugging if configure makes a mistake.
1110
1170
 
1111
1171
It was created by $as_me, which was
1112
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
1172
generated by GNU Autoconf 2.59.  Invocation command line was
1113
1173
 
1114
1174
  $ $0 $@
1115
1175
 
1186
1246
    2)
1187
1247
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1188
1248
      if test $ac_must_keep_next = true; then
1189
 
        ac_must_keep_next=false # Got value, back to normal.
 
1249
        ac_must_keep_next=false # Got value, back to normal.
1190
1250
      else
1191
 
        case $ac_arg in
1192
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1193
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1194
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1195
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1196
 
            case "$ac_configure_args0 " in
1197
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1198
 
            esac
1199
 
            ;;
1200
 
          -* ) ac_must_keep_next=true ;;
1201
 
        esac
 
1251
        case $ac_arg in
 
1252
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1253
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1254
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1255
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1256
            case "$ac_configure_args0 " in
 
1257
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1258
            esac
 
1259
            ;;
 
1260
          -* ) ac_must_keep_next=true ;;
 
1261
        esac
1202
1262
      fi
1203
1263
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1204
1264
      # Get rid of the leading space.
1232
1292
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1233
1293
    *ac_space=\ *)
1234
1294
      sed -n \
1235
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1236
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1295
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1296
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1237
1297
      ;;
1238
1298
    *)
1239
1299
      sed -n \
1240
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1300
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1241
1301
      ;;
1242
1302
    esac;
1243
1303
}
1266
1326
      for ac_var in $ac_subst_files
1267
1327
      do
1268
1328
        eval ac_val=$`echo $ac_var`
1269
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1329
        echo "$ac_var='"'"'$ac_val'"'"'"
1270
1330
      done | sort
1271
1331
      echo
1272
1332
    fi
1285
1345
      echo "$as_me: caught signal $ac_signal"
1286
1346
    echo "$as_me: exit $exit_status"
1287
1347
  } >&5
1288
 
  rm -f core core.* *.core &&
 
1348
  rm -f core *.core &&
1289
1349
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1290
1350
    exit $exit_status
1291
1351
     ' 0
1365
1425
# value.
1366
1426
ac_cache_corrupted=false
1367
1427
for ac_var in `(set) 2>&1 |
1368
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1428
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1369
1429
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1370
1430
  eval ac_new_set=\$ac_env_${ac_var}_set
1371
1431
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1382
1442
    ,);;
1383
1443
    *)
1384
1444
      if test "x$ac_old_val" != "x$ac_new_val"; then
1385
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1445
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1386
1446
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1387
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1447
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1388
1448
echo "$as_me:   former value:  $ac_old_val" >&2;}
1389
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1449
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1390
1450
echo "$as_me:   current value: $ac_new_val" >&2;}
1391
 
        ac_cache_corrupted=:
 
1451
        ac_cache_corrupted=:
1392
1452
      fi;;
1393
1453
  esac
1394
1454
  # Pass precious variables to config.status.
1437
1497
 
1438
1498
 
1439
1499
 
1440
 
          ac_config_headers="$ac_config_headers src/config.h"
1441
 
 
1442
1500
 
1443
1501
VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`
1444
 
echo "configuring for GNU Wget $VERSION"
 
1502
{ echo "$as_me:$LINENO: configuring for GNU Wget $VERSION" >&5
 
1503
echo "$as_me: configuring for GNU Wget $VERSION" >&6;}
1445
1504
 
1446
1505
PACKAGE=wget
1447
1506
 
1525
1584
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1585
 
1527
1586
 
 
1587
 
1528
1588
cat >>confdefs.h <<_ACEOF
1529
1589
#define OS_TYPE "$host_os"
1530
1590
_ACEOF
1531
1591
 
1532
1592
 
1533
1593
 
1534
 
# Check whether --with-socks or --without-socks was given.
1535
 
if test "${with_socks+set}" = set; then
1536
 
  withval="$with_socks"
1537
 
  cat >>confdefs.h <<\_ACEOF
1538
 
#define HAVE_SOCKS 1
1539
 
_ACEOF
1540
 
 
1541
 
fi;
1542
 
 
1543
1594
 
1544
1595
# Check whether --with-ssl or --without-ssl was given.
1545
1596
if test "${with_ssl+set}" = set; then
1550
1601
# Check whether --enable-opie or --disable-opie was given.
1551
1602
if test "${enable_opie+set}" = set; then
1552
1603
  enableval="$enable_opie"
1553
 
  USE_OPIE=$enableval
 
1604
  ENABLE_OPIE=$enableval
1554
1605
else
1555
 
  USE_OPIE=yes
 
1606
  ENABLE_OPIE=yes
1556
1607
fi;
1557
 
test x"${USE_OPIE}" = xyes && cat >>confdefs.h <<\_ACEOF
1558
 
#define USE_OPIE 1
 
1608
test x"${ENABLE_OPIE}" = xyes &&
 
1609
cat >>confdefs.h <<\_ACEOF
 
1610
#define ENABLE_OPIE 1
1559
1611
_ACEOF
1560
1612
 
1561
1613
 
1562
1614
# Check whether --enable-digest or --disable-digest was given.
1563
1615
if test "${enable_digest+set}" = set; then
1564
1616
  enableval="$enable_digest"
1565
 
  USE_DIGEST=$enableval
 
1617
  ENABLE_DIGEST=$enableval
1566
1618
else
1567
 
  USE_DIGEST=yes
 
1619
  ENABLE_DIGEST=yes
1568
1620
fi;
1569
 
test x"${USE_DIGEST}" = xyes && cat >>confdefs.h <<\_ACEOF
1570
 
#define USE_DIGEST 1
 
1621
test x"${ENABLE_DIGEST}" = xyes &&
 
1622
cat >>confdefs.h <<\_ACEOF
 
1623
#define ENABLE_DIGEST 1
1571
1624
_ACEOF
1572
1625
 
1573
1626
 
 
1627
# Check whether --enable-ntlm or --disable-ntlm was given.
 
1628
if test "${enable_ntlm+set}" = set; then
 
1629
  enableval="$enable_ntlm"
 
1630
  ENABLE_NTLM=$enableval
 
1631
else
 
1632
  ENABLE_NTLM=auto
 
1633
fi;
 
1634
 
1574
1635
# Check whether --enable-debug or --disable-debug was given.
1575
1636
if test "${enable_debug+set}" = set; then
1576
1637
  enableval="$enable_debug"
1578
1639
else
1579
1640
  ENABLE_DEBUG=yes
1580
1641
fi;
1581
 
test x"${ENABLE_DEBUG}" = xyes && cat >>confdefs.h <<\_ACEOF
 
1642
test x"${ENABLE_DEBUG}" = xyes &&
 
1643
cat >>confdefs.h <<\_ACEOF
1582
1644
#define ENABLE_DEBUG 1
1583
1645
_ACEOF
1584
1646
 
1585
1647
 
1586
1648
wget_need_md5=no
1587
1649
 
1588
 
case "${USE_OPIE}${USE_DIGEST}" in
 
1650
case "${ENABLE_OPIE}${ENABLE_DIGEST}" in
1589
1651
*yes*)
1590
1652
        wget_need_md5=yes
1591
1653
esac
1592
 
if test x"$USE_OPIE" = xyes; then
 
1654
if test x"$ENABLE_OPIE" = xyes; then
1593
1655
  OPIE_OBJ='ftp-opie$o'
1594
1656
fi
1595
1657
 
1596
1658
 
1597
1659
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1598
1660
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1599
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1661
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1600
1662
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1601
1663
  echo $ECHO_N "(cached) $ECHO_C" >&6
1602
1664
else
1635
1697
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1636
1698
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1637
1699
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1700
# OS/2's system install, which has a completely different semantic
1638
1701
# ./install, which can be erroneously created by make from ./install.sh.
1639
1702
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1640
1703
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651
1714
case $as_dir/ in
1652
1715
  ./ | .// | /cC/* | \
1653
1716
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1717
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1654
1718
  /usr/ucb/* ) ;;
1655
1719
  *)
1656
1720
    # OSF1 and SCO ODT 3.0 have their own names for install.
1658
1722
    # by default.
1659
1723
    for ac_prog in ginstall scoinst install; do
1660
1724
      for ac_exec_ext in '' $ac_executable_extensions; do
1661
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1662
 
          if test $ac_prog = install &&
1663
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1664
 
            # AIX install.  It has an incompatible calling convention.
1665
 
            :
1666
 
          elif test $ac_prog = install &&
1667
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1668
 
            # program-specific install script used by HP pwplus--don't use.
1669
 
            :
1670
 
          else
1671
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1672
 
            break 3
1673
 
          fi
1674
 
        fi
 
1725
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1726
          if test $ac_prog = install &&
 
1727
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1728
            # AIX install.  It has an incompatible calling convention.
 
1729
            :
 
1730
          elif test $ac_prog = install &&
 
1731
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1732
            # program-specific install script used by HP pwplus--don't use.
 
1733
            :
 
1734
          else
 
1735
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1736
            break 3
 
1737
          fi
 
1738
        fi
1675
1739
      done
1676
1740
    done
1677
1741
    ;;
2042
2106
  (exit $ac_status); }
2043
2107
 
2044
2108
cat >conftest.$ac_ext <<_ACEOF
2045
 
#line $LINENO "configure"
2046
2109
/* confdefs.h.  */
2047
2110
_ACEOF
2048
2111
cat confdefs.h >>conftest.$ac_ext
2062
2125
# Try to create an executable without -o first, disregard a.out.
2063
2126
# It will help us diagnose broken compilers, and finding out an intuition
2064
2127
# of exeext.
2065
 
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2066
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2128
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2129
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2067
2130
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2068
2131
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2069
2132
  (eval $ac_link_default) 2>&5
2083
2146
  test -f "$ac_file" || continue
2084
2147
  case $ac_file in
2085
2148
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2086
 
        ;;
 
2149
        ;;
2087
2150
    conftest.$ac_ext )
2088
 
        # This is the source file.
2089
 
        ;;
 
2151
        # This is the source file.
 
2152
        ;;
2090
2153
    [ab].out )
2091
 
        # We found the default executable, but exeext='' is most
2092
 
        # certainly right.
2093
 
        break;;
 
2154
        # We found the default executable, but exeext='' is most
 
2155
        # certainly right.
 
2156
        break;;
2094
2157
    *.* )
2095
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2097
 
        # but it would be cool to find out if it's true.  Does anybody
2098
 
        # maintain Libtool? --akim.
2099
 
        export ac_cv_exeext
2100
 
        break;;
 
2158
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2159
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2160
        # but it would be cool to find out if it's true.  Does anybody
 
2161
        # maintain Libtool? --akim.
 
2162
        export ac_cv_exeext
 
2163
        break;;
2101
2164
    * )
2102
 
        break;;
 
2165
        break;;
2103
2166
  esac
2104
2167
done
2105
2168
else
2173
2236
  case $ac_file in
2174
2237
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2175
2238
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176
 
          export ac_cv_exeext
2177
 
          break;;
 
2239
          export ac_cv_exeext
 
2240
          break;;
2178
2241
    * ) break;;
2179
2242
  esac
2180
2243
done
2199
2262
  echo $ECHO_N "(cached) $ECHO_C" >&6
2200
2263
else
2201
2264
  cat >conftest.$ac_ext <<_ACEOF
2202
 
#line $LINENO "configure"
2203
2265
/* confdefs.h.  */
2204
2266
_ACEOF
2205
2267
cat confdefs.h >>conftest.$ac_ext
2250
2312
  echo $ECHO_N "(cached) $ECHO_C" >&6
2251
2313
else
2252
2314
  cat >conftest.$ac_ext <<_ACEOF
2253
 
#line $LINENO "configure"
2254
2315
/* confdefs.h.  */
2255
2316
_ACEOF
2256
2317
cat confdefs.h >>conftest.$ac_ext
2270
2331
_ACEOF
2271
2332
rm -f conftest.$ac_objext
2272
2333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273
 
  (eval $ac_compile) 2>&5
 
2334
  (eval $ac_compile) 2>conftest.er1
2274
2335
  ac_status=$?
 
2336
  grep -v '^ *+' conftest.er1 >conftest.err
 
2337
  rm -f conftest.er1
 
2338
  cat conftest.err >&5
2275
2339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276
2340
  (exit $ac_status); } &&
2277
 
         { ac_try='test -s conftest.$ac_objext'
 
2341
         { ac_try='test -z "$ac_c_werror_flag"
 
2342
                         || test ! -s conftest.err'
 
2343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2344
  (eval $ac_try) 2>&5
 
2345
  ac_status=$?
 
2346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2347
  (exit $ac_status); }; } &&
 
2348
         { ac_try='test -s conftest.$ac_objext'
2278
2349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279
2350
  (eval $ac_try) 2>&5
2280
2351
  ac_status=$?
2287
2358
 
2288
2359
ac_compiler_gnu=no
2289
2360
fi
2290
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2361
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291
2362
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2292
2363
 
2293
2364
fi
2303
2374
  echo $ECHO_N "(cached) $ECHO_C" >&6
2304
2375
else
2305
2376
  cat >conftest.$ac_ext <<_ACEOF
2306
 
#line $LINENO "configure"
2307
2377
/* confdefs.h.  */
2308
2378
_ACEOF
2309
2379
cat confdefs.h >>conftest.$ac_ext
2320
2390
_ACEOF
2321
2391
rm -f conftest.$ac_objext
2322
2392
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323
 
  (eval $ac_compile) 2>&5
 
2393
  (eval $ac_compile) 2>conftest.er1
2324
2394
  ac_status=$?
 
2395
  grep -v '^ *+' conftest.er1 >conftest.err
 
2396
  rm -f conftest.er1
 
2397
  cat conftest.err >&5
2325
2398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326
2399
  (exit $ac_status); } &&
2327
 
         { ac_try='test -s conftest.$ac_objext'
 
2400
         { ac_try='test -z "$ac_c_werror_flag"
 
2401
                         || test ! -s conftest.err'
 
2402
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2403
  (eval $ac_try) 2>&5
 
2404
  ac_status=$?
 
2405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2406
  (exit $ac_status); }; } &&
 
2407
         { ac_try='test -s conftest.$ac_objext'
2328
2408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329
2409
  (eval $ac_try) 2>&5
2330
2410
  ac_status=$?
2337
2417
 
2338
2418
ac_cv_prog_cc_g=no
2339
2419
fi
2340
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2420
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341
2421
fi
2342
2422
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2343
2423
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2364
2444
  ac_cv_prog_cc_stdc=no
2365
2445
ac_save_CC=$CC
2366
2446
cat >conftest.$ac_ext <<_ACEOF
2367
 
#line $LINENO "configure"
2368
2447
/* confdefs.h.  */
2369
2448
_ACEOF
2370
2449
cat confdefs.h >>conftest.$ac_ext
2392
2471
  va_end (v);
2393
2472
  return s;
2394
2473
}
 
2474
 
 
2475
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2476
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2477
   These don't provoke an error unfortunately, instead are silently treated
 
2478
   as 'x'.  The following induces an error, until -std1 is added to get
 
2479
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2480
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2481
   that's true only with -std1.  */
 
2482
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2483
 
2395
2484
int test (int i, double x);
2396
2485
struct s1 {int (*f) (int a);};
2397
2486
struct s2 {int (*f) (double a);};
2418
2507
  CC="$ac_save_CC $ac_arg"
2419
2508
  rm -f conftest.$ac_objext
2420
2509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421
 
  (eval $ac_compile) 2>&5
 
2510
  (eval $ac_compile) 2>conftest.er1
2422
2511
  ac_status=$?
 
2512
  grep -v '^ *+' conftest.er1 >conftest.err
 
2513
  rm -f conftest.er1
 
2514
  cat conftest.err >&5
2423
2515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424
2516
  (exit $ac_status); } &&
2425
 
         { ac_try='test -s conftest.$ac_objext'
 
2517
         { ac_try='test -z "$ac_c_werror_flag"
 
2518
                         || test ! -s conftest.err'
 
2519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2520
  (eval $ac_try) 2>&5
 
2521
  ac_status=$?
 
2522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2523
  (exit $ac_status); }; } &&
 
2524
         { ac_try='test -s conftest.$ac_objext'
2426
2525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427
2526
  (eval $ac_try) 2>&5
2428
2527
  ac_status=$?
2435
2534
sed 's/^/| /' conftest.$ac_ext >&5
2436
2535
 
2437
2536
fi
2438
 
rm -f conftest.$ac_objext
 
2537
rm -f conftest.err conftest.$ac_objext
2439
2538
done
2440
2539
rm -f conftest.$ac_ext conftest.$ac_objext
2441
2540
CC=$ac_save_CC
2463
2562
_ACEOF
2464
2563
rm -f conftest.$ac_objext
2465
2564
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466
 
  (eval $ac_compile) 2>&5
 
2565
  (eval $ac_compile) 2>conftest.er1
2467
2566
  ac_status=$?
 
2567
  grep -v '^ *+' conftest.er1 >conftest.err
 
2568
  rm -f conftest.er1
 
2569
  cat conftest.err >&5
2468
2570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469
2571
  (exit $ac_status); } &&
2470
 
         { ac_try='test -s conftest.$ac_objext'
 
2572
         { ac_try='test -z "$ac_c_werror_flag"
 
2573
                         || test ! -s conftest.err'
 
2574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2575
  (eval $ac_try) 2>&5
 
2576
  ac_status=$?
 
2577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2578
  (exit $ac_status); }; } &&
 
2579
         { ac_try='test -s conftest.$ac_objext'
2471
2580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472
2581
  (eval $ac_try) 2>&5
2473
2582
  ac_status=$?
2474
2583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475
2584
  (exit $ac_status); }; }; then
2476
2585
  for ac_declaration in \
2477
 
   ''\
2478
 
   '#include <stdlib.h>' \
 
2586
   '' \
2479
2587
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2480
2588
   'extern "C" void std::exit (int); using std::exit;' \
2481
2589
   'extern "C" void exit (int) throw ();' \
2483
2591
   'void exit (int);'
2484
2592
do
2485
2593
  cat >conftest.$ac_ext <<_ACEOF
2486
 
#line $LINENO "configure"
2487
2594
/* confdefs.h.  */
2488
2595
_ACEOF
2489
2596
cat confdefs.h >>conftest.$ac_ext
2490
2597
cat >>conftest.$ac_ext <<_ACEOF
2491
2598
/* end confdefs.h.  */
 
2599
$ac_declaration
2492
2600
#include <stdlib.h>
2493
 
$ac_declaration
2494
2601
int
2495
2602
main ()
2496
2603
{
2501
2608
_ACEOF
2502
2609
rm -f conftest.$ac_objext
2503
2610
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504
 
  (eval $ac_compile) 2>&5
 
2611
  (eval $ac_compile) 2>conftest.er1
2505
2612
  ac_status=$?
 
2613
  grep -v '^ *+' conftest.er1 >conftest.err
 
2614
  rm -f conftest.er1
 
2615
  cat conftest.err >&5
2506
2616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507
2617
  (exit $ac_status); } &&
2508
 
         { ac_try='test -s conftest.$ac_objext'
 
2618
         { ac_try='test -z "$ac_c_werror_flag"
 
2619
                         || test ! -s conftest.err'
 
2620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2621
  (eval $ac_try) 2>&5
 
2622
  ac_status=$?
 
2623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2624
  (exit $ac_status); }; } &&
 
2625
         { ac_try='test -s conftest.$ac_objext'
2509
2626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510
2627
  (eval $ac_try) 2>&5
2511
2628
  ac_status=$?
2518
2635
 
2519
2636
continue
2520
2637
fi
2521
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2638
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2522
2639
  cat >conftest.$ac_ext <<_ACEOF
2523
 
#line $LINENO "configure"
2524
2640
/* confdefs.h.  */
2525
2641
_ACEOF
2526
2642
cat confdefs.h >>conftest.$ac_ext
2537
2653
_ACEOF
2538
2654
rm -f conftest.$ac_objext
2539
2655
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2540
 
  (eval $ac_compile) 2>&5
 
2656
  (eval $ac_compile) 2>conftest.er1
2541
2657
  ac_status=$?
 
2658
  grep -v '^ *+' conftest.er1 >conftest.err
 
2659
  rm -f conftest.er1
 
2660
  cat conftest.err >&5
2542
2661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543
2662
  (exit $ac_status); } &&
2544
 
         { ac_try='test -s conftest.$ac_objext'
 
2663
         { ac_try='test -z "$ac_c_werror_flag"
 
2664
                         || test ! -s conftest.err'
 
2665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2666
  (eval $ac_try) 2>&5
 
2667
  ac_status=$?
 
2668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2669
  (exit $ac_status); }; } &&
 
2670
         { ac_try='test -s conftest.$ac_objext'
2545
2671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546
2672
  (eval $ac_try) 2>&5
2547
2673
  ac_status=$?
2553
2679
sed 's/^/| /' conftest.$ac_ext >&5
2554
2680
 
2555
2681
fi
2556
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2682
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2557
2683
done
2558
2684
rm -f conftest*
2559
2685
if test -n "$ac_declaration"; then
2567
2693
sed 's/^/| /' conftest.$ac_ext >&5
2568
2694
 
2569
2695
fi
2570
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2696
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571
2697
ac_ext=c
2572
2698
ac_cpp='$CPP $CPPFLAGS'
2573
2699
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574
2700
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575
2701
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
 
 
2577
 
 
2578
 
if test -n "$auto_cflags"; then
2579
 
  if test -n "$GCC"; then
2580
 
    CFLAGS="$CFLAGS -O2 -Wall -Wno-implicit"
2581
 
  else
2582
 
    case "$host_os" in
2583
 
      *hpux*)  CFLAGS="$CFLAGS +O3"                      ;;
2584
 
      *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;;
2585
 
      *)       CFLAGS="$CFLAGS -O" ;;
2586
 
    esac
2587
 
  fi
2588
 
fi
2589
2702
 
2590
2703
 
2591
2704
ac_ext=c
2616
2729
  # On the NeXT, cc -E runs the code through the compiler's parser,
2617
2730
  # not just through cpp. "Syntax error" is here to catch this case.
2618
2731
  cat >conftest.$ac_ext <<_ACEOF
2619
 
#line $LINENO "configure"
2620
2732
/* confdefs.h.  */
2621
2733
_ACEOF
2622
2734
cat confdefs.h >>conftest.$ac_ext
2627
2739
#else
2628
2740
# include <assert.h>
2629
2741
#endif
2630
 
                     Syntax error
 
2742
                     Syntax error
2631
2743
_ACEOF
2632
2744
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633
2745
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2639
2751
  (exit $ac_status); } >/dev/null; then
2640
2752
  if test -s conftest.err; then
2641
2753
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2754
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2642
2755
  else
2643
2756
    ac_cpp_err=
2644
2757
  fi
2659
2772
  # OK, works on sane cases.  Now check whether non-existent headers
2660
2773
  # can be detected and how.
2661
2774
  cat >conftest.$ac_ext <<_ACEOF
2662
 
#line $LINENO "configure"
2663
2775
/* confdefs.h.  */
2664
2776
_ACEOF
2665
2777
cat confdefs.h >>conftest.$ac_ext
2677
2789
  (exit $ac_status); } >/dev/null; then
2678
2790
  if test -s conftest.err; then
2679
2791
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2792
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2680
2793
  else
2681
2794
    ac_cpp_err=
2682
2795
  fi
2723
2836
  # On the NeXT, cc -E runs the code through the compiler's parser,
2724
2837
  # not just through cpp. "Syntax error" is here to catch this case.
2725
2838
  cat >conftest.$ac_ext <<_ACEOF
2726
 
#line $LINENO "configure"
2727
2839
/* confdefs.h.  */
2728
2840
_ACEOF
2729
2841
cat confdefs.h >>conftest.$ac_ext
2734
2846
#else
2735
2847
# include <assert.h>
2736
2848
#endif
2737
 
                     Syntax error
 
2849
                     Syntax error
2738
2850
_ACEOF
2739
2851
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2740
2852
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2746
2858
  (exit $ac_status); } >/dev/null; then
2747
2859
  if test -s conftest.err; then
2748
2860
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2861
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2749
2862
  else
2750
2863
    ac_cpp_err=
2751
2864
  fi
2766
2879
  # OK, works on sane cases.  Now check whether non-existent headers
2767
2880
  # can be detected and how.
2768
2881
  cat >conftest.$ac_ext <<_ACEOF
2769
 
#line $LINENO "configure"
2770
2882
/* confdefs.h.  */
2771
2883
_ACEOF
2772
2884
cat confdefs.h >>conftest.$ac_ext
2784
2896
  (exit $ac_status); } >/dev/null; then
2785
2897
  if test -s conftest.err; then
2786
2898
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2899
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2787
2900
  else
2788
2901
    ac_cpp_err=
2789
2902
  fi
2842
2955
echo "$as_me:$LINENO: checking for AIX" >&5
2843
2956
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2844
2957
cat >conftest.$ac_ext <<_ACEOF
2845
 
#line $LINENO "configure"
2846
2958
/* confdefs.h.  */
2847
2959
_ACEOF
2848
2960
cat confdefs.h >>conftest.$ac_ext
2869
2981
 
2870
2982
 
2871
2983
 
 
2984
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
 
2985
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
 
2986
if test "${am_cv_prog_cc_stdc+set}" = set; then
 
2987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2988
else
 
2989
  am_cv_prog_cc_stdc=no
 
2990
ac_save_CC="$CC"
 
2991
# Don't try gcc -ansi; that turns off useful extensions and
 
2992
# breaks some systems' header files.
 
2993
# AIX                   -qlanglvl=ansi
 
2994
# Ultrix and OSF/1      -std1
 
2995
# HP-UX                 -Aa -D_HPUX_SOURCE
 
2996
for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE"
 
2997
do
 
2998
  CC="$ac_save_CC $ac_arg"
 
2999
  cat >conftest.$ac_ext <<_ACEOF
 
3000
/* confdefs.h.  */
 
3001
_ACEOF
 
3002
cat confdefs.h >>conftest.$ac_ext
 
3003
cat >>conftest.$ac_ext <<_ACEOF
 
3004
/* end confdefs.h.  */
 
3005
#if !defined(__STDC__)
 
3006
choke me
 
3007
#endif
 
3008
/* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
 
3009
#ifdef _SEQUENT_
 
3010
# include <sys/types.h>
 
3011
# include <sys/stat.h>
 
3012
#endif
 
3013
 
 
3014
int
 
3015
main ()
 
3016
{
 
3017
 
 
3018
int test (int i, double x);
 
3019
struct s1 {int (*f) (int a);};
 
3020
struct s2 {int (*f) (double a);};
 
3021
  ;
 
3022
  return 0;
 
3023
}
 
3024
_ACEOF
 
3025
rm -f conftest.$ac_objext
 
3026
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3027
  (eval $ac_compile) 2>conftest.er1
 
3028
  ac_status=$?
 
3029
  grep -v '^ *+' conftest.er1 >conftest.err
 
3030
  rm -f conftest.er1
 
3031
  cat conftest.err >&5
 
3032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3033
  (exit $ac_status); } &&
 
3034
         { ac_try='test -z "$ac_c_werror_flag"
 
3035
                         || test ! -s conftest.err'
 
3036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3037
  (eval $ac_try) 2>&5
 
3038
  ac_status=$?
 
3039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3040
  (exit $ac_status); }; } &&
 
3041
         { ac_try='test -s conftest.$ac_objext'
 
3042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3043
  (eval $ac_try) 2>&5
 
3044
  ac_status=$?
 
3045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3046
  (exit $ac_status); }; }; then
 
3047
  am_cv_prog_cc_stdc="$ac_arg"; break
 
3048
else
 
3049
  echo "$as_me: failed program was:" >&5
 
3050
sed 's/^/| /' conftest.$ac_ext >&5
 
3051
 
 
3052
fi
 
3053
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3054
done
 
3055
CC="$ac_save_CC"
 
3056
 
 
3057
fi
 
3058
 
 
3059
echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
 
3060
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
 
3061
case "x$am_cv_prog_cc_stdc" in
 
3062
  x|xno) ;;
 
3063
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
 
3064
esac
 
3065
 
 
3066
 
 
3067
if test -n "$auto_cflags"; then
 
3068
  if test -n "$GCC"; then
 
3069
    CFLAGS="$CFLAGS -O2 -Wall -Wno-implicit"
 
3070
  else
 
3071
    case "$host_os" in
 
3072
      *hpux*)  CFLAGS="$CFLAGS +O3"                      ;;
 
3073
      *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;;
 
3074
      *)       CFLAGS="$CFLAGS -O" ;;
 
3075
    esac
 
3076
  fi
 
3077
fi
 
3078
 
2872
3079
# Check whether --enable-shared or --disable-shared was given.
2873
3080
if test "${enable_shared+set}" = set; then
2874
3081
  enableval="$enable_shared"
2875
3082
  p=${PACKAGE-default}
2876
 
case $enableval in
2877
 
yes) enable_shared=yes ;;
2878
 
no) enable_shared=no ;;
2879
 
*)
2880
 
  enable_shared=no
2881
 
  # Look at the argument we got.  We use all the common list separators.
2882
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2883
 
  for pkg in $enableval; do
2884
 
    if test "X$pkg" = "X$p"; then
2885
 
      enable_shared=yes
2886
 
    fi
2887
 
  done
2888
 
  IFS="$ac_save_ifs"
2889
 
  ;;
2890
 
esac
 
3083
    case $enableval in
 
3084
    yes) enable_shared=yes ;;
 
3085
    no) enable_shared=no ;;
 
3086
    *)
 
3087
      enable_shared=no
 
3088
      # Look at the argument we got.  We use all the common list separators.
 
3089
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3090
      for pkg in $enableval; do
 
3091
        IFS="$lt_save_ifs"
 
3092
        if test "X$pkg" = "X$p"; then
 
3093
          enable_shared=yes
 
3094
        fi
 
3095
      done
 
3096
      IFS="$lt_save_ifs"
 
3097
      ;;
 
3098
    esac
2891
3099
else
2892
3100
  enable_shared=yes
2893
3101
fi;
 
3102
 
2894
3103
# Check whether --enable-static or --disable-static was given.
2895
3104
if test "${enable_static+set}" = set; then
2896
3105
  enableval="$enable_static"
2897
3106
  p=${PACKAGE-default}
2898
 
case $enableval in
2899
 
yes) enable_static=yes ;;
2900
 
no) enable_static=no ;;
2901
 
*)
2902
 
  enable_static=no
2903
 
  # Look at the argument we got.  We use all the common list separators.
2904
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2905
 
  for pkg in $enableval; do
2906
 
    if test "X$pkg" = "X$p"; then
2907
 
      enable_static=yes
2908
 
    fi
2909
 
  done
2910
 
  IFS="$ac_save_ifs"
2911
 
  ;;
2912
 
esac
 
3107
    case $enableval in
 
3108
    yes) enable_static=yes ;;
 
3109
    no) enable_static=no ;;
 
3110
    *)
 
3111
     enable_static=no
 
3112
      # Look at the argument we got.  We use all the common list separators.
 
3113
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3114
      for pkg in $enableval; do
 
3115
        IFS="$lt_save_ifs"
 
3116
        if test "X$pkg" = "X$p"; then
 
3117
          enable_static=yes
 
3118
        fi
 
3119
      done
 
3120
      IFS="$lt_save_ifs"
 
3121
      ;;
 
3122
    esac
2913
3123
else
2914
3124
  enable_static=yes
2915
3125
fi;
 
3126
 
2916
3127
# Check whether --enable-fast-install or --disable-fast-install was given.
2917
3128
if test "${enable_fast_install+set}" = set; then
2918
3129
  enableval="$enable_fast_install"
2919
3130
  p=${PACKAGE-default}
2920
 
case $enableval in
2921
 
yes) enable_fast_install=yes ;;
2922
 
no) enable_fast_install=no ;;
2923
 
*)
2924
 
  enable_fast_install=no
2925
 
  # Look at the argument we got.  We use all the common list separators.
2926
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2927
 
  for pkg in $enableval; do
2928
 
    if test "X$pkg" = "X$p"; then
2929
 
      enable_fast_install=yes
2930
 
    fi
2931
 
  done
2932
 
  IFS="$ac_save_ifs"
2933
 
  ;;
2934
 
esac
 
3131
    case $enableval in
 
3132
    yes) enable_fast_install=yes ;;
 
3133
    no) enable_fast_install=no ;;
 
3134
    *)
 
3135
      enable_fast_install=no
 
3136
      # Look at the argument we got.  We use all the common list separators.
 
3137
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3138
      for pkg in $enableval; do
 
3139
        IFS="$lt_save_ifs"
 
3140
        if test "X$pkg" = "X$p"; then
 
3141
          enable_fast_install=yes
 
3142
        fi
 
3143
      done
 
3144
      IFS="$lt_save_ifs"
 
3145
      ;;
 
3146
    esac
2935
3147
else
2936
3148
  enable_fast_install=yes
2937
3149
fi;
2938
 
# Find the correct PATH separator.  Usually this is `:', but
2939
 
# DJGPP uses `;' like DOS.
2940
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
2941
 
  UNAME=${UNAME-`uname 2>/dev/null`}
2942
 
  case X$UNAME in
2943
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
2944
 
    *)     lt_cv_sys_path_separator=':' ;;
2945
 
  esac
2946
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
3150
 
 
3151
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3152
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3153
if test "${lt_cv_path_SED+set}" = set; then
 
3154
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3155
else
 
3156
  # Loop through the user's path and test for sed and gsed.
 
3157
# Then use that list of sed's as ones to test for truncation.
 
3158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3159
for as_dir in $PATH
 
3160
do
 
3161
  IFS=$as_save_IFS
 
3162
  test -z "$as_dir" && as_dir=.
 
3163
  for lt_ac_prog in sed gsed; do
 
3164
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3165
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3166
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3167
      fi
 
3168
    done
 
3169
  done
 
3170
done
 
3171
lt_ac_max=0
 
3172
lt_ac_count=0
 
3173
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3174
# along with /bin/sed that truncates output.
 
3175
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3176
  test ! -f $lt_ac_sed && continue
 
3177
  cat /dev/null > conftest.in
 
3178
  lt_ac_count=0
 
3179
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3180
  # Check for GNU sed and select it if it is found.
 
3181
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3182
    lt_cv_path_SED=$lt_ac_sed
 
3183
    break
 
3184
  fi
 
3185
  while true; do
 
3186
    cat conftest.in conftest.in >conftest.tmp
 
3187
    mv conftest.tmp conftest.in
 
3188
    cp conftest.in conftest.nl
 
3189
    echo >>conftest.nl
 
3190
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3191
    cmp -s conftest.out conftest.nl || break
 
3192
    # 10000 chars as input seems more than enough
 
3193
    test $lt_ac_count -gt 10 && break
 
3194
    lt_ac_count=`expr $lt_ac_count + 1`
 
3195
    if test $lt_ac_count -gt $lt_ac_max; then
 
3196
      lt_ac_max=$lt_ac_count
 
3197
      lt_cv_path_SED=$lt_ac_sed
 
3198
    fi
 
3199
  done
 
3200
done
 
3201
 
2947
3202
fi
2948
3203
 
 
3204
SED=$lt_cv_path_SED
 
3205
echo "$as_me:$LINENO: result: $SED" >&5
 
3206
echo "${ECHO_T}$SED" >&6
 
3207
 
2949
3208
 
2950
3209
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2951
3210
if test "${with_gnu_ld+set}" = set; then
2957
3216
ac_prog=ld
2958
3217
if test "$GCC" = yes; then
2959
3218
  # Check if gcc -print-prog-name=ld gives a path.
2960
 
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2961
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
3219
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3220
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2962
3221
  case $host in
2963
3222
  *-*-mingw*)
2964
3223
    # gcc leaves a trailing carriage return which upsets mingw
2968
3227
  esac
2969
3228
  case $ac_prog in
2970
3229
    # Accept absolute paths.
2971
 
    [\\/]* | [A-Za-z]:[\\/]*)
 
3230
    [\\/]* | ?:[\\/]*)
2972
3231
      re_direlt='/[^/][^/]*/\.\./'
2973
 
      # Canonicalize the path of ld
2974
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3232
      # Canonicalize the pathname of ld
 
3233
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2975
3234
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2976
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3235
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2977
3236
      done
2978
3237
      test -z "$LD" && LD="$ac_prog"
2979
3238
      ;;
2997
3256
  echo $ECHO_N "(cached) $ECHO_C" >&6
2998
3257
else
2999
3258
  if test -z "$LD"; then
3000
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3259
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3001
3260
  for ac_dir in $PATH; do
 
3261
    IFS="$lt_save_ifs"
3002
3262
    test -z "$ac_dir" && ac_dir=.
3003
3263
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3004
3264
      lt_cv_path_LD="$ac_dir/$ac_prog"
3005
3265
      # Check to see if the program is GNU ld.  I'd rather use --version,
3006
3266
      # but apparently some GNU ld's only accept -v.
3007
3267
      # Break only if it was the GNU/non-GNU ld that we prefer.
3008
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3268
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3269
      *GNU* | *'with BFD'*)
3009
3270
        test "$with_gnu_ld" != no && break
3010
 
      else
 
3271
        ;;
 
3272
      *)
3011
3273
        test "$with_gnu_ld" != yes && break
3012
 
      fi
 
3274
        ;;
 
3275
      esac
3013
3276
    fi
3014
3277
  done
3015
 
  IFS="$ac_save_ifs"
 
3278
  IFS="$lt_save_ifs"
3016
3279
else
3017
3280
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3018
3281
fi
3035
3298
  echo $ECHO_N "(cached) $ECHO_C" >&6
3036
3299
else
3037
3300
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3038
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3301
case `$LD -v 2>&1 </dev/null` in
 
3302
*GNU* | *'with BFD'*)
3039
3303
  lt_cv_prog_gnu_ld=yes
3040
 
else
 
3304
  ;;
 
3305
*)
3041
3306
  lt_cv_prog_gnu_ld=no
3042
 
fi
 
3307
  ;;
 
3308
esac
3043
3309
fi
3044
3310
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3045
3311
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3056
3322
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3057
3323
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3058
3324
reload_flag=$lt_cv_ld_reload_flag
3059
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
3325
case $reload_flag in
 
3326
"" | " "*) ;;
 
3327
*) reload_flag=" $reload_flag" ;;
 
3328
esac
 
3329
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3330
case $host_os in
 
3331
  darwin*)
 
3332
    if test "$GCC" = yes; then
 
3333
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
3334
    else
 
3335
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3336
    fi
 
3337
    ;;
 
3338
esac
3060
3339
 
3061
3340
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3062
3341
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3067
3346
  # Let the user override the test.
3068
3347
  lt_cv_path_NM="$NM"
3069
3348
else
3070
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3349
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3071
3350
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3351
    IFS="$lt_save_ifs"
3072
3352
    test -z "$ac_dir" && ac_dir=.
3073
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3074
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
3353
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3354
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3075
3355
      # Check to see if the nm accepts a BSD-compat flag.
3076
3356
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3077
3357
      #   nm: unknown option "B" ignored
3078
3358
      # Tru64's nm complains that /dev/null is an invalid object file
3079
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
3359
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3360
      */dev/null* | *'Invalid file or object type'*)
3080
3361
        lt_cv_path_NM="$tmp_nm -B"
3081
3362
        break
3082
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3083
 
        lt_cv_path_NM="$tmp_nm -p"
3084
 
        break
3085
 
      else
3086
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3087
 
        continue # so that we can try to find one that supports BSD flags
3088
 
      fi
 
3363
        ;;
 
3364
      *)
 
3365
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3366
        */dev/null*)
 
3367
          lt_cv_path_NM="$tmp_nm -p"
 
3368
          break
 
3369
          ;;
 
3370
        *)
 
3371
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3372
          continue # so that we can try to find one that supports BSD flags
 
3373
          ;;
 
3374
        esac
 
3375
      esac
3089
3376
    fi
3090
3377
  done
3091
 
  IFS="$ac_save_ifs"
 
3378
  IFS="$lt_save_ifs"
3092
3379
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3093
3380
fi
3094
3381
fi
3095
 
 
 
3382
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3383
echo "${ECHO_T}$lt_cv_path_NM" >&6
3096
3384
NM="$lt_cv_path_NM"
3097
 
echo "$as_me:$LINENO: result: $NM" >&5
3098
 
echo "${ECHO_T}$NM" >&6
3099
 
 
3100
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3101
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3102
 
if test "${lt_cv_path_SED+set}" = set; then
3103
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3104
 
else
3105
 
  # Loop through the user's path and test for sed and gsed.
3106
 
# Then use that list of sed's as ones to test for truncation.
3107
 
as_executable_p="test -f"
3108
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109
 
for as_dir in $PATH
3110
 
do
3111
 
  IFS=$as_save_IFS
3112
 
  test -z "$as_dir" && as_dir=.
3113
 
  for ac_prog in sed gsed; do
3114
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3115
 
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3116
 
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3117
 
      fi
3118
 
    done
3119
 
  done
3120
 
done
3121
 
 
3122
 
  # Create a temporary directory, and hook for its removal unless debugging.
3123
 
$debug ||
3124
 
{
3125
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3126
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3127
 
}
3128
 
 
3129
 
# Create a (secure) tmp directory for tmp files.
3130
 
: ${TMPDIR=/tmp}
3131
 
{
3132
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3133
 
  test -n "$tmp" && test -d "$tmp"
3134
 
}  ||
3135
 
{
3136
 
  tmp=$TMPDIR/sed$$-$RANDOM
3137
 
  (umask 077 && mkdir $tmp)
3138
 
} ||
3139
 
{
3140
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3141
 
   { (exit 1); exit 1; }
3142
 
}
3143
 
  _max=0
3144
 
  _count=0
3145
 
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3146
 
  # along with /bin/sed that truncates output.
3147
 
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
3148
 
    test ! -f ${_sed} && break
3149
 
    cat /dev/null > "$tmp/sed.in"
3150
 
    _count=0
3151
 
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3152
 
    # Check for GNU sed and select it if it is found.
3153
 
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3154
 
      lt_cv_path_SED=${_sed}
3155
 
      break
3156
 
    fi
3157
 
    while true; do
3158
 
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3159
 
      mv "$tmp/sed.tmp" "$tmp/sed.in"
3160
 
      cp "$tmp/sed.in" "$tmp/sed.nl"
3161
 
      echo >>"$tmp/sed.nl"
3162
 
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3163
 
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3164
 
      # 40000 chars as input seems more than enough
3165
 
      test $_count -gt 10 && break
3166
 
      _count=`expr $_count + 1`
3167
 
      if test $_count -gt $_max; then
3168
 
        _max=$_count
3169
 
        lt_cv_path_SED=$_sed
3170
 
      fi
3171
 
    done
3172
 
  done
3173
 
  rm -rf "$tmp"
3174
 
 
3175
 
fi
3176
 
 
3177
 
if test "X$SED" != "X"; then
3178
 
  lt_cv_path_SED=$SED
3179
 
else
3180
 
  SED=$lt_cv_path_SED
3181
 
fi
3182
 
echo "$as_me:$LINENO: result: $SED" >&5
3183
 
echo "${ECHO_T}$SED" >&6
3184
3385
 
3185
3386
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3186
3387
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3208
3409
# 'pass_all' -- all dependencies passed with no checks.
3209
3410
# 'test_compile' -- check by making test program.
3210
3411
# 'file_magic [[regex]]' -- check by looking for files in library path
3211
 
# which responds to the $file_magic_cmd with a given egrep regex.
 
3412
# which responds to the $file_magic_cmd with a given extended regex.
3212
3413
# If you have `file' or equivalent on your system and you're not sure
3213
3414
# whether `pass_all' will *always* work, you probably want this one.
3214
3415
 
3221
3422
  lt_cv_deplibs_check_method=pass_all
3222
3423
  ;;
3223
3424
 
3224
 
bsdi4*)
 
3425
bsdi[45]*)
3225
3426
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3226
3427
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3227
3428
  lt_cv_file_magic_test_file=/shlib/libc.so
3228
3429
  ;;
3229
3430
 
3230
 
cygwin* | mingw* | pw32*)
 
3431
cygwin*)
 
3432
  # func_win32_libid is a shell function defined in ltmain.sh
 
3433
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3434
  lt_cv_file_magic_cmd='func_win32_libid'
 
3435
  ;;
 
3436
 
 
3437
mingw* | pw32*)
 
3438
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3439
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3231
3440
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3232
3441
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3233
3442
  ;;
3234
3443
 
3235
3444
darwin* | rhapsody*)
3236
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3237
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3238
 
  case "$host_os" in
3239
 
  rhapsody* | darwin1.[012])
3240
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3241
 
    ;;
3242
 
  *) # Darwin 1.3 on
3243
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3244
 
    ;;
3245
 
  esac
 
3445
  lt_cv_deplibs_check_method=pass_all
3246
3446
  ;;
3247
3447
 
3248
 
freebsd*)
 
3448
freebsd* | kfreebsd*-gnu | dragonfly*)
3249
3449
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3250
3450
    case $host_cpu in
3251
3451
    i*86 )
3252
3452
      # Not sure whether the presence of OpenBSD here was a mistake.
3253
3453
      # Let's accept both of them until this is cleared up.
3254
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3454
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3255
3455
      lt_cv_file_magic_cmd=/usr/bin/file
3256
3456
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3257
3457
      ;;
3265
3465
  lt_cv_deplibs_check_method=pass_all
3266
3466
  ;;
3267
3467
 
3268
 
hpux10.20*|hpux11*)
3269
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3468
hpux10.20* | hpux11*)
3270
3469
  lt_cv_file_magic_cmd=/usr/bin/file
3271
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3470
  case "$host_cpu" in
 
3471
  ia64*)
 
3472
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3473
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3474
    ;;
 
3475
  hppa*64*)
 
3476
    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]'
 
3477
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3478
    ;;
 
3479
  *)
 
3480
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3481
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3482
    ;;
 
3483
  esac
3272
3484
  ;;
3273
3485
 
3274
3486
irix5* | irix6* | nonstopux*)
3275
 
  case $host_os in
3276
 
  irix5* | nonstopux*)
3277
 
    # this will be overridden with pass_all, but let us keep it just in case
3278
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3279
 
    ;;
3280
 
  *)
3281
 
    case $LD in
3282
 
    *-32|*"-32 ") libmagic=32-bit;;
3283
 
    *-n32|*"-n32 ") libmagic=N32;;
3284
 
    *-64|*"-64 ") libmagic=64-bit;;
3285
 
    *) libmagic=never-match;;
3286
 
    esac
3287
 
    # this will be overridden with pass_all, but let us keep it just in case
3288
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3289
 
    ;;
 
3487
  case $LD in
 
3488
  *-32|*"-32 ") libmagic=32-bit;;
 
3489
  *-n32|*"-n32 ") libmagic=N32;;
 
3490
  *-64|*"-64 ") libmagic=64-bit;;
 
3491
  *) libmagic=never-match;;
3290
3492
  esac
3291
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3292
3493
  lt_cv_deplibs_check_method=pass_all
3293
3494
  ;;
3294
3495
 
3295
3496
# This must be Linux ELF.
3296
 
linux-gnu*)
3297
 
  case $host_cpu in
3298
 
  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3299
 
    lt_cv_deplibs_check_method=pass_all ;;
3300
 
  *)
3301
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3302
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3303
 
  esac
3304
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
3497
linux*)
 
3498
  lt_cv_deplibs_check_method=pass_all
3305
3499
  ;;
3306
3500
 
3307
3501
netbsd*)
3308
3502
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3309
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
3503
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3310
3504
  else
3311
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
3505
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3312
3506
  fi
3313
3507
  ;;
3314
3508
 
3318
3512
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3319
3513
  ;;
3320
3514
 
 
3515
nto-qnx*)
 
3516
  lt_cv_deplibs_check_method=unknown
 
3517
  ;;
 
3518
 
3321
3519
openbsd*)
3322
 
  lt_cv_file_magic_cmd=/usr/bin/file
3323
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3324
3520
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3325
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3521
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3326
3522
  else
3327
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3523
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3328
3524
  fi
3329
3525
  ;;
3330
3526
 
3331
3527
osf3* | osf4* | osf5*)
3332
 
  # this will be overridden with pass_all, but let us keep it just in case
3333
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3334
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3335
3528
  lt_cv_deplibs_check_method=pass_all
3336
3529
  ;;
3337
3530
 
3341
3534
 
3342
3535
solaris*)
3343
3536
  lt_cv_deplibs_check_method=pass_all
3344
 
  lt_cv_file_magic_test_file=/lib/libc.so
3345
 
  ;;
3346
 
 
3347
 
sysv5uw[78]* | sysv4*uw2*)
3348
 
  lt_cv_deplibs_check_method=pass_all
3349
3537
  ;;
3350
3538
 
3351
3539
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3371
3559
    ;;
3372
3560
  esac
3373
3561
  ;;
 
3562
 
 
3563
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3564
  lt_cv_deplibs_check_method=pass_all
 
3565
  ;;
3374
3566
esac
3375
3567
 
3376
3568
fi
3378
3570
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3379
3571
file_magic_cmd=$lt_cv_file_magic_cmd
3380
3572
deplibs_check_method=$lt_cv_deplibs_check_method
3381
 
 
3382
 
 
3383
 
 
 
3573
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3574
 
 
3575
 
 
3576
 
 
3577
 
 
3578
# If no C compiler was specified, use CC.
 
3579
LTCC=${LTCC-"$CC"}
 
3580
 
 
3581
# Allow CC to be a program name with arguments.
 
3582
compiler=$CC
 
3583
 
 
3584
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3585
if test "${enable_libtool_lock+set}" = set; then
 
3586
  enableval="$enable_libtool_lock"
 
3587
 
 
3588
fi;
 
3589
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3590
 
 
3591
# Some flags need to be propagated to the compiler or linker for good
 
3592
# libtool support.
 
3593
case $host in
 
3594
ia64-*-hpux*)
 
3595
  # Find out which ABI we are using.
 
3596
  echo 'int i;' > conftest.$ac_ext
 
3597
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3598
  (eval $ac_compile) 2>&5
 
3599
  ac_status=$?
 
3600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3601
  (exit $ac_status); }; then
 
3602
    case `/usr/bin/file conftest.$ac_objext` in
 
3603
    *ELF-32*)
 
3604
      HPUX_IA64_MODE="32"
 
3605
      ;;
 
3606
    *ELF-64*)
 
3607
      HPUX_IA64_MODE="64"
 
3608
      ;;
 
3609
    esac
 
3610
  fi
 
3611
  rm -rf conftest*
 
3612
  ;;
 
3613
*-*-irix6*)
 
3614
  # Find out which ABI we are using.
 
3615
  echo '#line 3615 "configure"' > conftest.$ac_ext
 
3616
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3617
  (eval $ac_compile) 2>&5
 
3618
  ac_status=$?
 
3619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3620
  (exit $ac_status); }; then
 
3621
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3622
    case `/usr/bin/file conftest.$ac_objext` in
 
3623
    *32-bit*)
 
3624
      LD="${LD-ld} -melf32bsmip"
 
3625
      ;;
 
3626
    *N32*)
 
3627
      LD="${LD-ld} -melf32bmipn32"
 
3628
      ;;
 
3629
    *64-bit*)
 
3630
      LD="${LD-ld} -melf64bmip"
 
3631
      ;;
 
3632
    esac
 
3633
   else
 
3634
    case `/usr/bin/file conftest.$ac_objext` in
 
3635
    *32-bit*)
 
3636
      LD="${LD-ld} -32"
 
3637
      ;;
 
3638
    *N32*)
 
3639
      LD="${LD-ld} -n32"
 
3640
      ;;
 
3641
    *64-bit*)
 
3642
      LD="${LD-ld} -64"
 
3643
      ;;
 
3644
    esac
 
3645
   fi
 
3646
  fi
 
3647
  rm -rf conftest*
 
3648
  ;;
 
3649
 
 
3650
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3651
  # Find out which ABI we are using.
 
3652
  echo 'int i;' > conftest.$ac_ext
 
3653
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3654
  (eval $ac_compile) 2>&5
 
3655
  ac_status=$?
 
3656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3657
  (exit $ac_status); }; then
 
3658
    case "`/usr/bin/file conftest.o`" in
 
3659
    *32-bit*)
 
3660
      case $host in
 
3661
        x86_64-*linux*)
 
3662
          LD="${LD-ld} -m elf_i386"
 
3663
          ;;
 
3664
        ppc64-*linux*|powerpc64-*linux*)
 
3665
          LD="${LD-ld} -m elf32ppclinux"
 
3666
          ;;
 
3667
        s390x-*linux*)
 
3668
          LD="${LD-ld} -m elf_s390"
 
3669
          ;;
 
3670
        sparc64-*linux*)
 
3671
          LD="${LD-ld} -m elf32_sparc"
 
3672
          ;;
 
3673
      esac
 
3674
      ;;
 
3675
    *64-bit*)
 
3676
      case $host in
 
3677
        x86_64-*linux*)
 
3678
          LD="${LD-ld} -m elf_x86_64"
 
3679
          ;;
 
3680
        ppc*-*linux*|powerpc*-*linux*)
 
3681
          LD="${LD-ld} -m elf64ppc"
 
3682
          ;;
 
3683
        s390*-*linux*)
 
3684
          LD="${LD-ld} -m elf64_s390"
 
3685
          ;;
 
3686
        sparc*-*linux*)
 
3687
          LD="${LD-ld} -m elf64_sparc"
 
3688
          ;;
 
3689
      esac
 
3690
      ;;
 
3691
    esac
 
3692
  fi
 
3693
  rm -rf conftest*
 
3694
  ;;
 
3695
 
 
3696
*-*-sco3.2v5*)
 
3697
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3698
  SAVE_CFLAGS="$CFLAGS"
 
3699
  CFLAGS="$CFLAGS -belf"
 
3700
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3701
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3702
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3704
else
 
3705
  ac_ext=c
 
3706
ac_cpp='$CPP $CPPFLAGS'
 
3707
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3708
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3709
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3710
 
 
3711
     cat >conftest.$ac_ext <<_ACEOF
 
3712
/* confdefs.h.  */
 
3713
_ACEOF
 
3714
cat confdefs.h >>conftest.$ac_ext
 
3715
cat >>conftest.$ac_ext <<_ACEOF
 
3716
/* end confdefs.h.  */
 
3717
 
 
3718
int
 
3719
main ()
 
3720
{
 
3721
 
 
3722
  ;
 
3723
  return 0;
 
3724
}
 
3725
_ACEOF
 
3726
rm -f conftest.$ac_objext conftest$ac_exeext
 
3727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3728
  (eval $ac_link) 2>conftest.er1
 
3729
  ac_status=$?
 
3730
  grep -v '^ *+' conftest.er1 >conftest.err
 
3731
  rm -f conftest.er1
 
3732
  cat conftest.err >&5
 
3733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3734
  (exit $ac_status); } &&
 
3735
         { ac_try='test -z "$ac_c_werror_flag"
 
3736
                         || test ! -s conftest.err'
 
3737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3738
  (eval $ac_try) 2>&5
 
3739
  ac_status=$?
 
3740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3741
  (exit $ac_status); }; } &&
 
3742
         { ac_try='test -s conftest$ac_exeext'
 
3743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3744
  (eval $ac_try) 2>&5
 
3745
  ac_status=$?
 
3746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3747
  (exit $ac_status); }; }; then
 
3748
  lt_cv_cc_needs_belf=yes
 
3749
else
 
3750
  echo "$as_me: failed program was:" >&5
 
3751
sed 's/^/| /' conftest.$ac_ext >&5
 
3752
 
 
3753
lt_cv_cc_needs_belf=no
 
3754
fi
 
3755
rm -f conftest.err conftest.$ac_objext \
 
3756
      conftest$ac_exeext conftest.$ac_ext
 
3757
     ac_ext=c
 
3758
ac_cpp='$CPP $CPPFLAGS'
 
3759
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3760
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3761
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3762
 
 
3763
fi
 
3764
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3765
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3766
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3767
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3768
    CFLAGS="$SAVE_CFLAGS"
 
3769
  fi
 
3770
  ;;
 
3771
 
 
3772
esac
 
3773
 
 
3774
need_locks="$enable_libtool_lock"
 
3775
 
 
3776
 
 
3777
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3778
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3779
if test "${ac_cv_header_stdc+set}" = set; then
 
3780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3781
else
 
3782
  cat >conftest.$ac_ext <<_ACEOF
 
3783
/* confdefs.h.  */
 
3784
_ACEOF
 
3785
cat confdefs.h >>conftest.$ac_ext
 
3786
cat >>conftest.$ac_ext <<_ACEOF
 
3787
/* end confdefs.h.  */
 
3788
#include <stdlib.h>
 
3789
#include <stdarg.h>
 
3790
#include <string.h>
 
3791
#include <float.h>
 
3792
 
 
3793
int
 
3794
main ()
 
3795
{
 
3796
 
 
3797
  ;
 
3798
  return 0;
 
3799
}
 
3800
_ACEOF
 
3801
rm -f conftest.$ac_objext
 
3802
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3803
  (eval $ac_compile) 2>conftest.er1
 
3804
  ac_status=$?
 
3805
  grep -v '^ *+' conftest.er1 >conftest.err
 
3806
  rm -f conftest.er1
 
3807
  cat conftest.err >&5
 
3808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3809
  (exit $ac_status); } &&
 
3810
         { ac_try='test -z "$ac_c_werror_flag"
 
3811
                         || test ! -s conftest.err'
 
3812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3813
  (eval $ac_try) 2>&5
 
3814
  ac_status=$?
 
3815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3816
  (exit $ac_status); }; } &&
 
3817
         { ac_try='test -s conftest.$ac_objext'
 
3818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3819
  (eval $ac_try) 2>&5
 
3820
  ac_status=$?
 
3821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3822
  (exit $ac_status); }; }; then
 
3823
  ac_cv_header_stdc=yes
 
3824
else
 
3825
  echo "$as_me: failed program was:" >&5
 
3826
sed 's/^/| /' conftest.$ac_ext >&5
 
3827
 
 
3828
ac_cv_header_stdc=no
 
3829
fi
 
3830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3831
 
 
3832
if test $ac_cv_header_stdc = yes; then
 
3833
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3834
  cat >conftest.$ac_ext <<_ACEOF
 
3835
/* confdefs.h.  */
 
3836
_ACEOF
 
3837
cat confdefs.h >>conftest.$ac_ext
 
3838
cat >>conftest.$ac_ext <<_ACEOF
 
3839
/* end confdefs.h.  */
 
3840
#include <string.h>
 
3841
 
 
3842
_ACEOF
 
3843
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3844
  $EGREP "memchr" >/dev/null 2>&1; then
 
3845
  :
 
3846
else
 
3847
  ac_cv_header_stdc=no
 
3848
fi
 
3849
rm -f conftest*
 
3850
 
 
3851
fi
 
3852
 
 
3853
if test $ac_cv_header_stdc = yes; then
 
3854
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3855
  cat >conftest.$ac_ext <<_ACEOF
 
3856
/* confdefs.h.  */
 
3857
_ACEOF
 
3858
cat confdefs.h >>conftest.$ac_ext
 
3859
cat >>conftest.$ac_ext <<_ACEOF
 
3860
/* end confdefs.h.  */
 
3861
#include <stdlib.h>
 
3862
 
 
3863
_ACEOF
 
3864
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3865
  $EGREP "free" >/dev/null 2>&1; then
 
3866
  :
 
3867
else
 
3868
  ac_cv_header_stdc=no
 
3869
fi
 
3870
rm -f conftest*
 
3871
 
 
3872
fi
 
3873
 
 
3874
if test $ac_cv_header_stdc = yes; then
 
3875
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3876
  if test "$cross_compiling" = yes; then
 
3877
  :
 
3878
else
 
3879
  cat >conftest.$ac_ext <<_ACEOF
 
3880
/* confdefs.h.  */
 
3881
_ACEOF
 
3882
cat confdefs.h >>conftest.$ac_ext
 
3883
cat >>conftest.$ac_ext <<_ACEOF
 
3884
/* end confdefs.h.  */
 
3885
#include <ctype.h>
 
3886
#if ((' ' & 0x0FF) == 0x020)
 
3887
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3888
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3889
#else
 
3890
# define ISLOWER(c) \
 
3891
                   (('a' <= (c) && (c) <= 'i') \
 
3892
                     || ('j' <= (c) && (c) <= 'r') \
 
3893
                     || ('s' <= (c) && (c) <= 'z'))
 
3894
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3895
#endif
 
3896
 
 
3897
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3898
int
 
3899
main ()
 
3900
{
 
3901
  int i;
 
3902
  for (i = 0; i < 256; i++)
 
3903
    if (XOR (islower (i), ISLOWER (i))
 
3904
        || toupper (i) != TOUPPER (i))
 
3905
      exit(2);
 
3906
  exit (0);
 
3907
}
 
3908
_ACEOF
 
3909
rm -f conftest$ac_exeext
 
3910
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3911
  (eval $ac_link) 2>&5
 
3912
  ac_status=$?
 
3913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3914
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3916
  (eval $ac_try) 2>&5
 
3917
  ac_status=$?
 
3918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3919
  (exit $ac_status); }; }; then
 
3920
  :
 
3921
else
 
3922
  echo "$as_me: program exited with status $ac_status" >&5
 
3923
echo "$as_me: failed program was:" >&5
 
3924
sed 's/^/| /' conftest.$ac_ext >&5
 
3925
 
 
3926
( exit $ac_status )
 
3927
ac_cv_header_stdc=no
 
3928
fi
 
3929
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3930
fi
 
3931
fi
 
3932
fi
 
3933
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3934
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3935
if test $ac_cv_header_stdc = yes; then
 
3936
 
 
3937
cat >>confdefs.h <<\_ACEOF
 
3938
#define STDC_HEADERS 1
 
3939
_ACEOF
 
3940
 
 
3941
fi
 
3942
 
 
3943
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3944
 
 
3945
 
 
3946
 
 
3947
 
 
3948
 
 
3949
 
 
3950
 
 
3951
 
 
3952
 
 
3953
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3954
                  inttypes.h stdint.h unistd.h
 
3955
do
 
3956
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3957
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3958
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3959
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3961
else
 
3962
  cat >conftest.$ac_ext <<_ACEOF
 
3963
/* confdefs.h.  */
 
3964
_ACEOF
 
3965
cat confdefs.h >>conftest.$ac_ext
 
3966
cat >>conftest.$ac_ext <<_ACEOF
 
3967
/* end confdefs.h.  */
 
3968
$ac_includes_default
 
3969
 
 
3970
#include <$ac_header>
 
3971
_ACEOF
 
3972
rm -f conftest.$ac_objext
 
3973
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3974
  (eval $ac_compile) 2>conftest.er1
 
3975
  ac_status=$?
 
3976
  grep -v '^ *+' conftest.er1 >conftest.err
 
3977
  rm -f conftest.er1
 
3978
  cat conftest.err >&5
 
3979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3980
  (exit $ac_status); } &&
 
3981
         { ac_try='test -z "$ac_c_werror_flag"
 
3982
                         || test ! -s conftest.err'
 
3983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3984
  (eval $ac_try) 2>&5
 
3985
  ac_status=$?
 
3986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3987
  (exit $ac_status); }; } &&
 
3988
         { ac_try='test -s conftest.$ac_objext'
 
3989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3990
  (eval $ac_try) 2>&5
 
3991
  ac_status=$?
 
3992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3993
  (exit $ac_status); }; }; then
 
3994
  eval "$as_ac_Header=yes"
 
3995
else
 
3996
  echo "$as_me: failed program was:" >&5
 
3997
sed 's/^/| /' conftest.$ac_ext >&5
 
3998
 
 
3999
eval "$as_ac_Header=no"
 
4000
fi
 
4001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4002
fi
 
4003
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4004
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4005
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4006
  cat >>confdefs.h <<_ACEOF
 
4007
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4008
_ACEOF
 
4009
 
 
4010
fi
 
4011
 
 
4012
done
 
4013
 
 
4014
 
 
4015
 
 
4016
for ac_header in dlfcn.h
 
4017
do
 
4018
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4019
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4020
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4021
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4022
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4024
fi
 
4025
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4026
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4027
else
 
4028
  # Is the header compilable?
 
4029
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4030
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4031
cat >conftest.$ac_ext <<_ACEOF
 
4032
/* confdefs.h.  */
 
4033
_ACEOF
 
4034
cat confdefs.h >>conftest.$ac_ext
 
4035
cat >>conftest.$ac_ext <<_ACEOF
 
4036
/* end confdefs.h.  */
 
4037
$ac_includes_default
 
4038
#include <$ac_header>
 
4039
_ACEOF
 
4040
rm -f conftest.$ac_objext
 
4041
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4042
  (eval $ac_compile) 2>conftest.er1
 
4043
  ac_status=$?
 
4044
  grep -v '^ *+' conftest.er1 >conftest.err
 
4045
  rm -f conftest.er1
 
4046
  cat conftest.err >&5
 
4047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4048
  (exit $ac_status); } &&
 
4049
         { ac_try='test -z "$ac_c_werror_flag"
 
4050
                         || test ! -s conftest.err'
 
4051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4052
  (eval $ac_try) 2>&5
 
4053
  ac_status=$?
 
4054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4055
  (exit $ac_status); }; } &&
 
4056
         { ac_try='test -s conftest.$ac_objext'
 
4057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4058
  (eval $ac_try) 2>&5
 
4059
  ac_status=$?
 
4060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4061
  (exit $ac_status); }; }; then
 
4062
  ac_header_compiler=yes
 
4063
else
 
4064
  echo "$as_me: failed program was:" >&5
 
4065
sed 's/^/| /' conftest.$ac_ext >&5
 
4066
 
 
4067
ac_header_compiler=no
 
4068
fi
 
4069
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4070
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4071
echo "${ECHO_T}$ac_header_compiler" >&6
 
4072
 
 
4073
# Is the header present?
 
4074
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4075
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4076
cat >conftest.$ac_ext <<_ACEOF
 
4077
/* confdefs.h.  */
 
4078
_ACEOF
 
4079
cat confdefs.h >>conftest.$ac_ext
 
4080
cat >>conftest.$ac_ext <<_ACEOF
 
4081
/* end confdefs.h.  */
 
4082
#include <$ac_header>
 
4083
_ACEOF
 
4084
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4085
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4086
  ac_status=$?
 
4087
  grep -v '^ *+' conftest.er1 >conftest.err
 
4088
  rm -f conftest.er1
 
4089
  cat conftest.err >&5
 
4090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4091
  (exit $ac_status); } >/dev/null; then
 
4092
  if test -s conftest.err; then
 
4093
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4094
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4095
  else
 
4096
    ac_cpp_err=
 
4097
  fi
 
4098
else
 
4099
  ac_cpp_err=yes
 
4100
fi
 
4101
if test -z "$ac_cpp_err"; then
 
4102
  ac_header_preproc=yes
 
4103
else
 
4104
  echo "$as_me: failed program was:" >&5
 
4105
sed 's/^/| /' conftest.$ac_ext >&5
 
4106
 
 
4107
  ac_header_preproc=no
 
4108
fi
 
4109
rm -f conftest.err conftest.$ac_ext
 
4110
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4111
echo "${ECHO_T}$ac_header_preproc" >&6
 
4112
 
 
4113
# So?  What about this header?
 
4114
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4115
  yes:no: )
 
4116
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4117
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4118
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4119
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4120
    ac_header_preproc=yes
 
4121
    ;;
 
4122
  no:yes:* )
 
4123
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4124
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4125
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4126
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4127
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4128
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4129
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4130
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4131
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4132
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4133
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4134
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4135
    (
 
4136
      cat <<\_ASBOX
 
4137
## ------------------------------------------ ##
 
4138
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4139
## ------------------------------------------ ##
 
4140
_ASBOX
 
4141
    ) |
 
4142
      sed "s/^/$as_me: WARNING:     /" >&2
 
4143
    ;;
 
4144
esac
 
4145
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4146
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4147
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4149
else
 
4150
  eval "$as_ac_Header=\$ac_header_preproc"
 
4151
fi
 
4152
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4153
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4154
 
 
4155
fi
 
4156
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4157
  cat >>confdefs.h <<_ACEOF
 
4158
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4159
_ACEOF
 
4160
 
 
4161
fi
 
4162
 
 
4163
done
 
4164
 
 
4165
ac_ext=cc
 
4166
ac_cpp='$CXXCPP $CPPFLAGS'
 
4167
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4168
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4169
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4170
if test -n "$ac_tool_prefix"; then
 
4171
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4172
  do
 
4173
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4174
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4175
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4176
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4177
if test "${ac_cv_prog_CXX+set}" = set; then
 
4178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4179
else
 
4180
  if test -n "$CXX"; then
 
4181
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4182
else
 
4183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4184
for as_dir in $PATH
 
4185
do
 
4186
  IFS=$as_save_IFS
 
4187
  test -z "$as_dir" && as_dir=.
 
4188
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4189
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4190
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4191
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4192
    break 2
 
4193
  fi
 
4194
done
 
4195
done
 
4196
 
 
4197
fi
 
4198
fi
 
4199
CXX=$ac_cv_prog_CXX
 
4200
if test -n "$CXX"; then
 
4201
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4202
echo "${ECHO_T}$CXX" >&6
 
4203
else
 
4204
  echo "$as_me:$LINENO: result: no" >&5
 
4205
echo "${ECHO_T}no" >&6
 
4206
fi
 
4207
 
 
4208
    test -n "$CXX" && break
 
4209
  done
 
4210
fi
 
4211
if test -z "$CXX"; then
 
4212
  ac_ct_CXX=$CXX
 
4213
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4214
do
 
4215
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4216
set dummy $ac_prog; ac_word=$2
 
4217
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4218
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4219
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4220
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4221
else
 
4222
  if test -n "$ac_ct_CXX"; then
 
4223
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4224
else
 
4225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4226
for as_dir in $PATH
 
4227
do
 
4228
  IFS=$as_save_IFS
 
4229
  test -z "$as_dir" && as_dir=.
 
4230
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4231
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4232
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4233
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4234
    break 2
 
4235
  fi
 
4236
done
 
4237
done
 
4238
 
 
4239
fi
 
4240
fi
 
4241
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4242
if test -n "$ac_ct_CXX"; then
 
4243
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4244
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4245
else
 
4246
  echo "$as_me:$LINENO: result: no" >&5
 
4247
echo "${ECHO_T}no" >&6
 
4248
fi
 
4249
 
 
4250
  test -n "$ac_ct_CXX" && break
 
4251
done
 
4252
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4253
 
 
4254
  CXX=$ac_ct_CXX
 
4255
fi
 
4256
 
 
4257
 
 
4258
# Provide some information about the compiler.
 
4259
echo "$as_me:$LINENO:" \
 
4260
     "checking for C++ compiler version" >&5
 
4261
ac_compiler=`set X $ac_compile; echo $2`
 
4262
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4263
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4264
  ac_status=$?
 
4265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4266
  (exit $ac_status); }
 
4267
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4268
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4269
  ac_status=$?
 
4270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4271
  (exit $ac_status); }
 
4272
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4273
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4274
  ac_status=$?
 
4275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4276
  (exit $ac_status); }
 
4277
 
 
4278
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4279
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4280
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4282
else
 
4283
  cat >conftest.$ac_ext <<_ACEOF
 
4284
/* confdefs.h.  */
 
4285
_ACEOF
 
4286
cat confdefs.h >>conftest.$ac_ext
 
4287
cat >>conftest.$ac_ext <<_ACEOF
 
4288
/* end confdefs.h.  */
 
4289
 
 
4290
int
 
4291
main ()
 
4292
{
 
4293
#ifndef __GNUC__
 
4294
       choke me
 
4295
#endif
 
4296
 
 
4297
  ;
 
4298
  return 0;
 
4299
}
 
4300
_ACEOF
 
4301
rm -f conftest.$ac_objext
 
4302
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4303
  (eval $ac_compile) 2>conftest.er1
 
4304
  ac_status=$?
 
4305
  grep -v '^ *+' conftest.er1 >conftest.err
 
4306
  rm -f conftest.er1
 
4307
  cat conftest.err >&5
 
4308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4309
  (exit $ac_status); } &&
 
4310
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4311
                         || test ! -s conftest.err'
 
4312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4313
  (eval $ac_try) 2>&5
 
4314
  ac_status=$?
 
4315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4316
  (exit $ac_status); }; } &&
 
4317
         { ac_try='test -s conftest.$ac_objext'
 
4318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4319
  (eval $ac_try) 2>&5
 
4320
  ac_status=$?
 
4321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4322
  (exit $ac_status); }; }; then
 
4323
  ac_compiler_gnu=yes
 
4324
else
 
4325
  echo "$as_me: failed program was:" >&5
 
4326
sed 's/^/| /' conftest.$ac_ext >&5
 
4327
 
 
4328
ac_compiler_gnu=no
 
4329
fi
 
4330
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4331
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4332
 
 
4333
fi
 
4334
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4335
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4336
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4337
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4338
ac_save_CXXFLAGS=$CXXFLAGS
 
4339
CXXFLAGS="-g"
 
4340
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4341
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4342
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4344
else
 
4345
  cat >conftest.$ac_ext <<_ACEOF
 
4346
/* confdefs.h.  */
 
4347
_ACEOF
 
4348
cat confdefs.h >>conftest.$ac_ext
 
4349
cat >>conftest.$ac_ext <<_ACEOF
 
4350
/* end confdefs.h.  */
 
4351
 
 
4352
int
 
4353
main ()
 
4354
{
 
4355
 
 
4356
  ;
 
4357
  return 0;
 
4358
}
 
4359
_ACEOF
 
4360
rm -f conftest.$ac_objext
 
4361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4362
  (eval $ac_compile) 2>conftest.er1
 
4363
  ac_status=$?
 
4364
  grep -v '^ *+' conftest.er1 >conftest.err
 
4365
  rm -f conftest.er1
 
4366
  cat conftest.err >&5
 
4367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4368
  (exit $ac_status); } &&
 
4369
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4370
                         || test ! -s conftest.err'
 
4371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4372
  (eval $ac_try) 2>&5
 
4373
  ac_status=$?
 
4374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4375
  (exit $ac_status); }; } &&
 
4376
         { ac_try='test -s conftest.$ac_objext'
 
4377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4378
  (eval $ac_try) 2>&5
 
4379
  ac_status=$?
 
4380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4381
  (exit $ac_status); }; }; then
 
4382
  ac_cv_prog_cxx_g=yes
 
4383
else
 
4384
  echo "$as_me: failed program was:" >&5
 
4385
sed 's/^/| /' conftest.$ac_ext >&5
 
4386
 
 
4387
ac_cv_prog_cxx_g=no
 
4388
fi
 
4389
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4390
fi
 
4391
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4392
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4393
if test "$ac_test_CXXFLAGS" = set; then
 
4394
  CXXFLAGS=$ac_save_CXXFLAGS
 
4395
elif test $ac_cv_prog_cxx_g = yes; then
 
4396
  if test "$GXX" = yes; then
 
4397
    CXXFLAGS="-g -O2"
 
4398
  else
 
4399
    CXXFLAGS="-g"
 
4400
  fi
 
4401
else
 
4402
  if test "$GXX" = yes; then
 
4403
    CXXFLAGS="-O2"
 
4404
  else
 
4405
    CXXFLAGS=
 
4406
  fi
 
4407
fi
 
4408
for ac_declaration in \
 
4409
   '' \
 
4410
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4411
   'extern "C" void std::exit (int); using std::exit;' \
 
4412
   'extern "C" void exit (int) throw ();' \
 
4413
   'extern "C" void exit (int);' \
 
4414
   'void exit (int);'
 
4415
do
 
4416
  cat >conftest.$ac_ext <<_ACEOF
 
4417
/* confdefs.h.  */
 
4418
_ACEOF
 
4419
cat confdefs.h >>conftest.$ac_ext
 
4420
cat >>conftest.$ac_ext <<_ACEOF
 
4421
/* end confdefs.h.  */
 
4422
$ac_declaration
 
4423
#include <stdlib.h>
 
4424
int
 
4425
main ()
 
4426
{
 
4427
exit (42);
 
4428
  ;
 
4429
  return 0;
 
4430
}
 
4431
_ACEOF
 
4432
rm -f conftest.$ac_objext
 
4433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4434
  (eval $ac_compile) 2>conftest.er1
 
4435
  ac_status=$?
 
4436
  grep -v '^ *+' conftest.er1 >conftest.err
 
4437
  rm -f conftest.er1
 
4438
  cat conftest.err >&5
 
4439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4440
  (exit $ac_status); } &&
 
4441
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4442
                         || test ! -s conftest.err'
 
4443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4444
  (eval $ac_try) 2>&5
 
4445
  ac_status=$?
 
4446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4447
  (exit $ac_status); }; } &&
 
4448
         { ac_try='test -s conftest.$ac_objext'
 
4449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4450
  (eval $ac_try) 2>&5
 
4451
  ac_status=$?
 
4452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4453
  (exit $ac_status); }; }; then
 
4454
  :
 
4455
else
 
4456
  echo "$as_me: failed program was:" >&5
 
4457
sed 's/^/| /' conftest.$ac_ext >&5
 
4458
 
 
4459
continue
 
4460
fi
 
4461
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4462
  cat >conftest.$ac_ext <<_ACEOF
 
4463
/* confdefs.h.  */
 
4464
_ACEOF
 
4465
cat confdefs.h >>conftest.$ac_ext
 
4466
cat >>conftest.$ac_ext <<_ACEOF
 
4467
/* end confdefs.h.  */
 
4468
$ac_declaration
 
4469
int
 
4470
main ()
 
4471
{
 
4472
exit (42);
 
4473
  ;
 
4474
  return 0;
 
4475
}
 
4476
_ACEOF
 
4477
rm -f conftest.$ac_objext
 
4478
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4479
  (eval $ac_compile) 2>conftest.er1
 
4480
  ac_status=$?
 
4481
  grep -v '^ *+' conftest.er1 >conftest.err
 
4482
  rm -f conftest.er1
 
4483
  cat conftest.err >&5
 
4484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4485
  (exit $ac_status); } &&
 
4486
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4487
                         || test ! -s conftest.err'
 
4488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4489
  (eval $ac_try) 2>&5
 
4490
  ac_status=$?
 
4491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4492
  (exit $ac_status); }; } &&
 
4493
         { ac_try='test -s conftest.$ac_objext'
 
4494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4495
  (eval $ac_try) 2>&5
 
4496
  ac_status=$?
 
4497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4498
  (exit $ac_status); }; }; then
 
4499
  break
 
4500
else
 
4501
  echo "$as_me: failed program was:" >&5
 
4502
sed 's/^/| /' conftest.$ac_ext >&5
 
4503
 
 
4504
fi
 
4505
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4506
done
 
4507
rm -f conftest*
 
4508
if test -n "$ac_declaration"; then
 
4509
  echo '#ifdef __cplusplus' >>confdefs.h
 
4510
  echo $ac_declaration      >>confdefs.h
 
4511
  echo '#endif'             >>confdefs.h
 
4512
fi
 
4513
 
 
4514
ac_ext=cc
 
4515
ac_cpp='$CXXCPP $CPPFLAGS'
 
4516
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4517
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4518
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4519
 
 
4520
 
 
4521
 
 
4522
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4523
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4524
    (test "X$CXX" != "Xg++"))) ; then
 
4525
  ac_ext=cc
 
4526
ac_cpp='$CXXCPP $CPPFLAGS'
 
4527
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4528
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4529
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4530
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4531
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4532
if test -z "$CXXCPP"; then
 
4533
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4534
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4535
else
 
4536
      # Double quotes because CXXCPP needs to be expanded
 
4537
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4538
    do
 
4539
      ac_preproc_ok=false
 
4540
for ac_cxx_preproc_warn_flag in '' yes
 
4541
do
 
4542
  # Use a header file that comes with gcc, so configuring glibc
 
4543
  # with a fresh cross-compiler works.
 
4544
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4545
  # <limits.h> exists even on freestanding compilers.
 
4546
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4547
  # not just through cpp. "Syntax error" is here to catch this case.
 
4548
  cat >conftest.$ac_ext <<_ACEOF
 
4549
/* confdefs.h.  */
 
4550
_ACEOF
 
4551
cat confdefs.h >>conftest.$ac_ext
 
4552
cat >>conftest.$ac_ext <<_ACEOF
 
4553
/* end confdefs.h.  */
 
4554
#ifdef __STDC__
 
4555
# include <limits.h>
 
4556
#else
 
4557
# include <assert.h>
 
4558
#endif
 
4559
                     Syntax error
 
4560
_ACEOF
 
4561
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4562
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4563
  ac_status=$?
 
4564
  grep -v '^ *+' conftest.er1 >conftest.err
 
4565
  rm -f conftest.er1
 
4566
  cat conftest.err >&5
 
4567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4568
  (exit $ac_status); } >/dev/null; then
 
4569
  if test -s conftest.err; then
 
4570
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4571
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4572
  else
 
4573
    ac_cpp_err=
 
4574
  fi
 
4575
else
 
4576
  ac_cpp_err=yes
 
4577
fi
 
4578
if test -z "$ac_cpp_err"; then
 
4579
  :
 
4580
else
 
4581
  echo "$as_me: failed program was:" >&5
 
4582
sed 's/^/| /' conftest.$ac_ext >&5
 
4583
 
 
4584
  # Broken: fails on valid input.
 
4585
continue
 
4586
fi
 
4587
rm -f conftest.err conftest.$ac_ext
 
4588
 
 
4589
  # OK, works on sane cases.  Now check whether non-existent headers
 
4590
  # can be detected and how.
 
4591
  cat >conftest.$ac_ext <<_ACEOF
 
4592
/* confdefs.h.  */
 
4593
_ACEOF
 
4594
cat confdefs.h >>conftest.$ac_ext
 
4595
cat >>conftest.$ac_ext <<_ACEOF
 
4596
/* end confdefs.h.  */
 
4597
#include <ac_nonexistent.h>
 
4598
_ACEOF
 
4599
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4600
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4601
  ac_status=$?
 
4602
  grep -v '^ *+' conftest.er1 >conftest.err
 
4603
  rm -f conftest.er1
 
4604
  cat conftest.err >&5
 
4605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4606
  (exit $ac_status); } >/dev/null; then
 
4607
  if test -s conftest.err; then
 
4608
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4609
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4610
  else
 
4611
    ac_cpp_err=
 
4612
  fi
 
4613
else
 
4614
  ac_cpp_err=yes
 
4615
fi
 
4616
if test -z "$ac_cpp_err"; then
 
4617
  # Broken: success on invalid input.
 
4618
continue
 
4619
else
 
4620
  echo "$as_me: failed program was:" >&5
 
4621
sed 's/^/| /' conftest.$ac_ext >&5
 
4622
 
 
4623
  # Passes both tests.
 
4624
ac_preproc_ok=:
 
4625
break
 
4626
fi
 
4627
rm -f conftest.err conftest.$ac_ext
 
4628
 
 
4629
done
 
4630
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4631
rm -f conftest.err conftest.$ac_ext
 
4632
if $ac_preproc_ok; then
 
4633
  break
 
4634
fi
 
4635
 
 
4636
    done
 
4637
    ac_cv_prog_CXXCPP=$CXXCPP
 
4638
 
 
4639
fi
 
4640
  CXXCPP=$ac_cv_prog_CXXCPP
 
4641
else
 
4642
  ac_cv_prog_CXXCPP=$CXXCPP
 
4643
fi
 
4644
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
4645
echo "${ECHO_T}$CXXCPP" >&6
 
4646
ac_preproc_ok=false
 
4647
for ac_cxx_preproc_warn_flag in '' yes
 
4648
do
 
4649
  # Use a header file that comes with gcc, so configuring glibc
 
4650
  # with a fresh cross-compiler works.
 
4651
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4652
  # <limits.h> exists even on freestanding compilers.
 
4653
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4654
  # not just through cpp. "Syntax error" is here to catch this case.
 
4655
  cat >conftest.$ac_ext <<_ACEOF
 
4656
/* confdefs.h.  */
 
4657
_ACEOF
 
4658
cat confdefs.h >>conftest.$ac_ext
 
4659
cat >>conftest.$ac_ext <<_ACEOF
 
4660
/* end confdefs.h.  */
 
4661
#ifdef __STDC__
 
4662
# include <limits.h>
 
4663
#else
 
4664
# include <assert.h>
 
4665
#endif
 
4666
                     Syntax error
 
4667
_ACEOF
 
4668
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4669
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4670
  ac_status=$?
 
4671
  grep -v '^ *+' conftest.er1 >conftest.err
 
4672
  rm -f conftest.er1
 
4673
  cat conftest.err >&5
 
4674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4675
  (exit $ac_status); } >/dev/null; then
 
4676
  if test -s conftest.err; then
 
4677
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4678
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4679
  else
 
4680
    ac_cpp_err=
 
4681
  fi
 
4682
else
 
4683
  ac_cpp_err=yes
 
4684
fi
 
4685
if test -z "$ac_cpp_err"; then
 
4686
  :
 
4687
else
 
4688
  echo "$as_me: failed program was:" >&5
 
4689
sed 's/^/| /' conftest.$ac_ext >&5
 
4690
 
 
4691
  # Broken: fails on valid input.
 
4692
continue
 
4693
fi
 
4694
rm -f conftest.err conftest.$ac_ext
 
4695
 
 
4696
  # OK, works on sane cases.  Now check whether non-existent headers
 
4697
  # can be detected and how.
 
4698
  cat >conftest.$ac_ext <<_ACEOF
 
4699
/* confdefs.h.  */
 
4700
_ACEOF
 
4701
cat confdefs.h >>conftest.$ac_ext
 
4702
cat >>conftest.$ac_ext <<_ACEOF
 
4703
/* end confdefs.h.  */
 
4704
#include <ac_nonexistent.h>
 
4705
_ACEOF
 
4706
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4707
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4708
  ac_status=$?
 
4709
  grep -v '^ *+' conftest.er1 >conftest.err
 
4710
  rm -f conftest.er1
 
4711
  cat conftest.err >&5
 
4712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4713
  (exit $ac_status); } >/dev/null; then
 
4714
  if test -s conftest.err; then
 
4715
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4716
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4717
  else
 
4718
    ac_cpp_err=
 
4719
  fi
 
4720
else
 
4721
  ac_cpp_err=yes
 
4722
fi
 
4723
if test -z "$ac_cpp_err"; then
 
4724
  # Broken: success on invalid input.
 
4725
continue
 
4726
else
 
4727
  echo "$as_me: failed program was:" >&5
 
4728
sed 's/^/| /' conftest.$ac_ext >&5
 
4729
 
 
4730
  # Passes both tests.
 
4731
ac_preproc_ok=:
 
4732
break
 
4733
fi
 
4734
rm -f conftest.err conftest.$ac_ext
 
4735
 
 
4736
done
 
4737
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4738
rm -f conftest.err conftest.$ac_ext
 
4739
if $ac_preproc_ok; then
 
4740
  :
 
4741
else
 
4742
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4743
See \`config.log' for more details." >&5
 
4744
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4745
See \`config.log' for more details." >&2;}
 
4746
   { (exit 1); exit 1; }; }
 
4747
fi
 
4748
 
 
4749
ac_ext=cc
 
4750
ac_cpp='$CXXCPP $CPPFLAGS'
 
4751
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4752
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4753
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4754
 
 
4755
fi
 
4756
 
 
4757
 
 
4758
ac_ext=f
 
4759
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
4760
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4761
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
4762
if test -n "$ac_tool_prefix"; then
 
4763
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
4764
  do
 
4765
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4766
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4767
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4768
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4769
if test "${ac_cv_prog_F77+set}" = set; then
 
4770
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4771
else
 
4772
  if test -n "$F77"; then
 
4773
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
4774
else
 
4775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4776
for as_dir in $PATH
 
4777
do
 
4778
  IFS=$as_save_IFS
 
4779
  test -z "$as_dir" && as_dir=.
 
4780
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4781
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4782
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
4783
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4784
    break 2
 
4785
  fi
 
4786
done
 
4787
done
 
4788
 
 
4789
fi
 
4790
fi
 
4791
F77=$ac_cv_prog_F77
 
4792
if test -n "$F77"; then
 
4793
  echo "$as_me:$LINENO: result: $F77" >&5
 
4794
echo "${ECHO_T}$F77" >&6
 
4795
else
 
4796
  echo "$as_me:$LINENO: result: no" >&5
 
4797
echo "${ECHO_T}no" >&6
 
4798
fi
 
4799
 
 
4800
    test -n "$F77" && break
 
4801
  done
 
4802
fi
 
4803
if test -z "$F77"; then
 
4804
  ac_ct_F77=$F77
 
4805
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
4806
do
 
4807
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4808
set dummy $ac_prog; ac_word=$2
 
4809
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4810
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4811
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
4812
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4813
else
 
4814
  if test -n "$ac_ct_F77"; then
 
4815
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
4816
else
 
4817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4818
for as_dir in $PATH
 
4819
do
 
4820
  IFS=$as_save_IFS
 
4821
  test -z "$as_dir" && as_dir=.
 
4822
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4823
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4824
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
4825
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4826
    break 2
 
4827
  fi
 
4828
done
 
4829
done
 
4830
 
 
4831
fi
 
4832
fi
 
4833
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
4834
if test -n "$ac_ct_F77"; then
 
4835
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
4836
echo "${ECHO_T}$ac_ct_F77" >&6
 
4837
else
 
4838
  echo "$as_me:$LINENO: result: no" >&5
 
4839
echo "${ECHO_T}no" >&6
 
4840
fi
 
4841
 
 
4842
  test -n "$ac_ct_F77" && break
 
4843
done
 
4844
 
 
4845
  F77=$ac_ct_F77
 
4846
fi
 
4847
 
 
4848
 
 
4849
# Provide some information about the compiler.
 
4850
echo "$as_me:4850:" \
 
4851
     "checking for Fortran 77 compiler version" >&5
 
4852
ac_compiler=`set X $ac_compile; echo $2`
 
4853
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4854
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4855
  ac_status=$?
 
4856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4857
  (exit $ac_status); }
 
4858
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4859
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4860
  ac_status=$?
 
4861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4862
  (exit $ac_status); }
 
4863
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4864
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4865
  ac_status=$?
 
4866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4867
  (exit $ac_status); }
 
4868
rm -f a.out
 
4869
 
 
4870
# If we don't use `.F' as extension, the preprocessor is not run on the
 
4871
# input file.  (Note that this only needs to work for GNU compilers.)
 
4872
ac_save_ext=$ac_ext
 
4873
ac_ext=F
 
4874
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
4875
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
4876
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
4877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4878
else
 
4879
  cat >conftest.$ac_ext <<_ACEOF
 
4880
      program main
 
4881
#ifndef __GNUC__
 
4882
       choke me
 
4883
#endif
 
4884
 
 
4885
      end
 
4886
_ACEOF
 
4887
rm -f conftest.$ac_objext
 
4888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4889
  (eval $ac_compile) 2>conftest.er1
 
4890
  ac_status=$?
 
4891
  grep -v '^ *+' conftest.er1 >conftest.err
 
4892
  rm -f conftest.er1
 
4893
  cat conftest.err >&5
 
4894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4895
  (exit $ac_status); } &&
 
4896
         { ac_try='test -z "$ac_f77_werror_flag"
 
4897
                         || test ! -s conftest.err'
 
4898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4899
  (eval $ac_try) 2>&5
 
4900
  ac_status=$?
 
4901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4902
  (exit $ac_status); }; } &&
 
4903
         { ac_try='test -s conftest.$ac_objext'
 
4904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4905
  (eval $ac_try) 2>&5
 
4906
  ac_status=$?
 
4907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4908
  (exit $ac_status); }; }; then
 
4909
  ac_compiler_gnu=yes
 
4910
else
 
4911
  echo "$as_me: failed program was:" >&5
 
4912
sed 's/^/| /' conftest.$ac_ext >&5
 
4913
 
 
4914
ac_compiler_gnu=no
 
4915
fi
 
4916
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4917
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
4918
 
 
4919
fi
 
4920
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
4921
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
4922
ac_ext=$ac_save_ext
 
4923
ac_test_FFLAGS=${FFLAGS+set}
 
4924
ac_save_FFLAGS=$FFLAGS
 
4925
FFLAGS=
 
4926
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
4927
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
4928
if test "${ac_cv_prog_f77_g+set}" = set; then
 
4929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4930
else
 
4931
  FFLAGS=-g
 
4932
cat >conftest.$ac_ext <<_ACEOF
 
4933
      program main
 
4934
 
 
4935
      end
 
4936
_ACEOF
 
4937
rm -f conftest.$ac_objext
 
4938
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4939
  (eval $ac_compile) 2>conftest.er1
 
4940
  ac_status=$?
 
4941
  grep -v '^ *+' conftest.er1 >conftest.err
 
4942
  rm -f conftest.er1
 
4943
  cat conftest.err >&5
 
4944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4945
  (exit $ac_status); } &&
 
4946
         { ac_try='test -z "$ac_f77_werror_flag"
 
4947
                         || test ! -s conftest.err'
 
4948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4949
  (eval $ac_try) 2>&5
 
4950
  ac_status=$?
 
4951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4952
  (exit $ac_status); }; } &&
 
4953
         { ac_try='test -s conftest.$ac_objext'
 
4954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4955
  (eval $ac_try) 2>&5
 
4956
  ac_status=$?
 
4957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4958
  (exit $ac_status); }; }; then
 
4959
  ac_cv_prog_f77_g=yes
 
4960
else
 
4961
  echo "$as_me: failed program was:" >&5
 
4962
sed 's/^/| /' conftest.$ac_ext >&5
 
4963
 
 
4964
ac_cv_prog_f77_g=no
 
4965
fi
 
4966
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4967
 
 
4968
fi
 
4969
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
4970
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
4971
if test "$ac_test_FFLAGS" = set; then
 
4972
  FFLAGS=$ac_save_FFLAGS
 
4973
elif test $ac_cv_prog_f77_g = yes; then
 
4974
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
4975
    FFLAGS="-g -O2"
 
4976
  else
 
4977
    FFLAGS="-g"
 
4978
  fi
 
4979
else
 
4980
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
4981
    FFLAGS="-O2"
 
4982
  else
 
4983
    FFLAGS=
 
4984
  fi
 
4985
fi
 
4986
 
 
4987
G77=`test $ac_compiler_gnu = yes && echo yes`
 
4988
ac_ext=c
 
4989
ac_cpp='$CPP $CPPFLAGS'
 
4990
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4991
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4992
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4993
 
 
4994
 
 
4995
 
 
4996
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
4997
 
 
4998
# find the maximum length of command line arguments
 
4999
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5000
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5001
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5002
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5003
else
 
5004
    i=0
 
5005
  teststring="ABCD"
 
5006
 
 
5007
  case $build_os in
 
5008
  msdosdjgpp*)
 
5009
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5010
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5011
    # during glob expansion).  Even if it were fixed, the result of this
 
5012
    # check would be larger than it should be.
 
5013
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5014
    ;;
 
5015
 
 
5016
  gnu*)
 
5017
    # Under GNU Hurd, this test is not required because there is
 
5018
    # no limit to the length of command line arguments.
 
5019
    # Libtool will interpret -1 as no limit whatsoever
 
5020
    lt_cv_sys_max_cmd_len=-1;
 
5021
    ;;
 
5022
 
 
5023
  cygwin* | mingw*)
 
5024
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5025
    # about 5 minutes as the teststring grows exponentially.
 
5026
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5027
    # you end up with a "frozen" computer, even though with patience
 
5028
    # the test eventually succeeds (with a max line length of 256k).
 
5029
    # Instead, let's just punt: use the minimum linelength reported by
 
5030
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5031
    lt_cv_sys_max_cmd_len=8192;
 
5032
    ;;
 
5033
 
 
5034
  amigaos*)
 
5035
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5036
    # So we just punt and use a minimum line length of 8192.
 
5037
    lt_cv_sys_max_cmd_len=8192;
 
5038
    ;;
 
5039
 
 
5040
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5041
    # This has been around since 386BSD, at least.  Likely further.
 
5042
    if test -x /sbin/sysctl; then
 
5043
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5044
    elif test -x /usr/sbin/sysctl; then
 
5045
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5046
    else
 
5047
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
5048
    fi
 
5049
    # And add a safety zone
 
5050
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5051
    ;;
 
5052
  osf*)
 
5053
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5054
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5055
    # nice to cause kernel panics so lets avoid the loop below.
 
5056
    # First set a reasonable default.
 
5057
    lt_cv_sys_max_cmd_len=16384
 
5058
    #
 
5059
    if test -x /sbin/sysconfig; then
 
5060
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5061
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5062
      esac
 
5063
    fi
 
5064
    ;;
 
5065
  *)
 
5066
    # If test is not a shell built-in, we'll probably end up computing a
 
5067
    # maximum length that is only half of the actual maximum length, but
 
5068
    # we can't tell.
 
5069
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5070
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5071
               = "XX$teststring") >/dev/null 2>&1 &&
 
5072
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5073
            lt_cv_sys_max_cmd_len=$new_result &&
 
5074
            test $i != 17 # 1/2 MB should be enough
 
5075
    do
 
5076
      i=`expr $i + 1`
 
5077
      teststring=$teststring$teststring
 
5078
    done
 
5079
    teststring=
 
5080
    # Add a significant safety factor because C++ compilers can tack on massive
 
5081
    # amounts of additional arguments before passing them to the linker.
 
5082
    # It appears as though 1/2 is a usable value.
 
5083
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5084
    ;;
 
5085
  esac
 
5086
 
 
5087
fi
 
5088
 
 
5089
if test -n $lt_cv_sys_max_cmd_len ; then
 
5090
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5091
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5092
else
 
5093
  echo "$as_me:$LINENO: result: none" >&5
 
5094
echo "${ECHO_T}none" >&6
 
5095
fi
3384
5096
 
3385
5097
 
3386
5098
 
3387
5099
 
3388
5100
# Check for command to grab the raw symbol name followed by C symbol from nm.
3389
 
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3390
 
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
5101
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5102
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
3391
5103
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3392
5104
  echo $ECHO_N "(cached) $ECHO_C" >&6
3393
5105
else
3401
5113
# Regexp to match symbols that can be accessed directly from C.
3402
5114
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3403
5115
 
3404
 
# Transform the above into a raw symbol and a C symbol.
3405
 
symxfrm='\1 \2\3 \3'
3406
 
 
3407
5116
# Transform an extracted symbol line into a proper C declaration
3408
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
5117
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
3409
5118
 
3410
5119
# Transform an extracted symbol line into symbol name and symbol address
3411
 
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'"
 
5120
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'"
3412
5121
 
3413
5122
# Define system-specific variables.
3414
5123
case $host_os in
3419
5128
  symcode='[ABCDGISTW]'
3420
5129
  ;;
3421
5130
hpux*) # Its linker distinguishes data from code symbols
3422
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3423
 
  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'"
 
5131
  if test "$host_cpu" = ia64; then
 
5132
    symcode='[ABCDEGRST]'
 
5133
  fi
 
5134
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5135
  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'"
 
5136
  ;;
 
5137
linux*)
 
5138
  if test "$host_cpu" = ia64; then
 
5139
    symcode='[ABCDGIRSTW]'
 
5140
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5141
    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'"
 
5142
  fi
3424
5143
  ;;
3425
5144
irix* | nonstopux*)
3426
5145
  symcode='[BCDEGRST]'
3429
5148
  symcode='[BCDEGQRST]'
3430
5149
  ;;
3431
5150
solaris* | sysv5*)
3432
 
  symcode='[BDT]'
 
5151
  symcode='[BDRT]'
3433
5152
  ;;
3434
5153
sysv4)
3435
5154
  symcode='[DFNSTU]'
3438
5157
 
3439
5158
# Handle CRLF in mingw tool chain
3440
5159
opt_cr=
3441
 
case $host_os in
 
5160
case $build_os in
3442
5161
mingw*)
3443
5162
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3444
5163
  ;;
3445
5164
esac
3446
5165
 
3447
5166
# If we're using GNU nm, then use its standard symbol codes.
3448
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3449
 
  symcode='[ABCDGISTW]'
3450
 
fi
 
5167
case `$NM -V 2>&1` in
 
5168
*GNU* | *'with BFD'*)
 
5169
  symcode='[ABCDGIRSTW]' ;;
 
5170
esac
3451
5171
 
3452
5172
# Try without a prefix undercore, then with it.
3453
5173
for ac_symprfx in "" "_"; do
3454
5174
 
 
5175
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5176
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5177
 
3455
5178
  # Write the raw and C identifiers.
3456
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5179
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3457
5180
 
3458
5181
  # Check to see that the pipe works correctly.
3459
5182
  pipe_works=no
 
5183
 
3460
5184
  rm -f conftest*
3461
5185
  cat > conftest.$ac_ext <<EOF
3462
5186
#ifdef __cplusplus
3490
5214
      fi
3491
5215
 
3492
5216
      # Make sure that we snagged all the symbols we need.
3493
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3494
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
5217
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5218
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
3495
5219
          cat <<EOF > conftest.$ac_ext
3496
5220
#ifdef __cplusplus
3497
5221
extern "C" {
3499
5223
 
3500
5224
EOF
3501
5225
          # Now generate the symbol file.
3502
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
5226
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
3503
5227
 
3504
5228
          cat <<EOF >> conftest.$ac_ext
3505
5229
#if defined (__STDC__) && __STDC__
3506
 
# define lt_ptr void *
 
5230
# define lt_ptr_t void *
3507
5231
#else
3508
 
# define lt_ptr char *
 
5232
# define lt_ptr_t char *
3509
5233
# define const
3510
5234
#endif
3511
5235
 
3512
5236
/* The mapping between symbol names and symbols. */
3513
5237
const struct {
3514
5238
  const char *name;
3515
 
  lt_ptr address;
 
5239
  lt_ptr_t address;
3516
5240
}
3517
5241
lt_preloaded_symbols[] =
3518
5242
{
3519
5243
EOF
3520
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
5244
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
3521
5245
          cat <<\EOF >> conftest.$ac_ext
3522
 
  {0, (lt_ptr) 0}
 
5246
  {0, (lt_ptr_t) 0}
3523
5247
};
3524
5248
 
3525
5249
#ifdef __cplusplus
3528
5252
EOF
3529
5253
          # Now try linking the two files.
3530
5254
          mv conftest.$ac_objext conftstm.$ac_objext
3531
 
          save_LIBS="$LIBS"
3532
 
          save_CFLAGS="$CFLAGS"
 
5255
          lt_save_LIBS="$LIBS"
 
5256
          lt_save_CFLAGS="$CFLAGS"
3533
5257
          LIBS="conftstm.$ac_objext"
3534
 
          CFLAGS="$CFLAGS$no_builtin_flag"
 
5258
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
3535
5259
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3536
5260
  (eval $ac_link) 2>&5
3537
5261
  ac_status=$?
3538
5262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539
 
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
5263
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
3540
5264
            pipe_works=yes
3541
5265
          fi
3542
 
          LIBS="$save_LIBS"
3543
 
          CFLAGS="$save_CFLAGS"
 
5266
          LIBS="$lt_save_LIBS"
 
5267
          CFLAGS="$lt_save_CFLAGS"
3544
5268
        else
3545
5269
          echo "cannot find nm_test_func in $nlist" >&5
3546
5270
        fi
3566
5290
 
3567
5291
fi
3568
5292
 
3569
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3570
5293
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3571
 
  global_symbol_to_cdecl=
3572
 
  global_symbol_to_c_name_address=
3573
 
else
3574
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3575
 
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 
5294
  lt_cv_sys_global_symbol_to_cdecl=
3576
5295
fi
3577
 
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3578
 
then
 
5296
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3579
5297
  echo "$as_me:$LINENO: result: failed" >&5
3580
5298
echo "${ECHO_T}failed" >&6
3581
5299
else
3583
5301
echo "${ECHO_T}ok" >&6
3584
5302
fi
3585
5303
 
3586
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3587
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3588
 
if test "${ac_cv_header_stdc+set}" = set; then
3589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3590
 
else
3591
 
  cat >conftest.$ac_ext <<_ACEOF
3592
 
#line $LINENO "configure"
3593
 
/* confdefs.h.  */
3594
 
_ACEOF
3595
 
cat confdefs.h >>conftest.$ac_ext
3596
 
cat >>conftest.$ac_ext <<_ACEOF
3597
 
/* end confdefs.h.  */
3598
 
#include <stdlib.h>
3599
 
#include <stdarg.h>
3600
 
#include <string.h>
3601
 
#include <float.h>
3602
 
 
3603
 
int
3604
 
main ()
3605
 
{
3606
 
 
3607
 
  ;
3608
 
  return 0;
3609
 
}
3610
 
_ACEOF
3611
 
rm -f conftest.$ac_objext
3612
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3613
 
  (eval $ac_compile) 2>&5
3614
 
  ac_status=$?
3615
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616
 
  (exit $ac_status); } &&
3617
 
         { ac_try='test -s conftest.$ac_objext'
3618
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619
 
  (eval $ac_try) 2>&5
3620
 
  ac_status=$?
3621
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622
 
  (exit $ac_status); }; }; then
3623
 
  ac_cv_header_stdc=yes
3624
 
else
3625
 
  echo "$as_me: failed program was:" >&5
3626
 
sed 's/^/| /' conftest.$ac_ext >&5
3627
 
 
3628
 
ac_cv_header_stdc=no
3629
 
fi
3630
 
rm -f conftest.$ac_objext conftest.$ac_ext
3631
 
 
3632
 
if test $ac_cv_header_stdc = yes; then
3633
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3634
 
  cat >conftest.$ac_ext <<_ACEOF
3635
 
#line $LINENO "configure"
3636
 
/* confdefs.h.  */
3637
 
_ACEOF
3638
 
cat confdefs.h >>conftest.$ac_ext
3639
 
cat >>conftest.$ac_ext <<_ACEOF
3640
 
/* end confdefs.h.  */
3641
 
#include <string.h>
3642
 
 
3643
 
_ACEOF
3644
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645
 
  $EGREP "memchr" >/dev/null 2>&1; then
3646
 
  :
3647
 
else
3648
 
  ac_cv_header_stdc=no
3649
 
fi
3650
 
rm -f conftest*
3651
 
 
3652
 
fi
3653
 
 
3654
 
if test $ac_cv_header_stdc = yes; then
3655
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3656
 
  cat >conftest.$ac_ext <<_ACEOF
3657
 
#line $LINENO "configure"
3658
 
/* confdefs.h.  */
3659
 
_ACEOF
3660
 
cat confdefs.h >>conftest.$ac_ext
3661
 
cat >>conftest.$ac_ext <<_ACEOF
3662
 
/* end confdefs.h.  */
3663
 
#include <stdlib.h>
3664
 
 
3665
 
_ACEOF
3666
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3667
 
  $EGREP "free" >/dev/null 2>&1; then
3668
 
  :
3669
 
else
3670
 
  ac_cv_header_stdc=no
3671
 
fi
3672
 
rm -f conftest*
3673
 
 
3674
 
fi
3675
 
 
3676
 
if test $ac_cv_header_stdc = yes; then
3677
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3678
 
  if test "$cross_compiling" = yes; then
3679
 
  :
3680
 
else
3681
 
  cat >conftest.$ac_ext <<_ACEOF
3682
 
#line $LINENO "configure"
3683
 
/* confdefs.h.  */
3684
 
_ACEOF
3685
 
cat confdefs.h >>conftest.$ac_ext
3686
 
cat >>conftest.$ac_ext <<_ACEOF
3687
 
/* end confdefs.h.  */
3688
 
#include <ctype.h>
3689
 
#if ((' ' & 0x0FF) == 0x020)
3690
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3691
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3692
 
#else
3693
 
# define ISLOWER(c) \
3694
 
                   (('a' <= (c) && (c) <= 'i') \
3695
 
                     || ('j' <= (c) && (c) <= 'r') \
3696
 
                     || ('s' <= (c) && (c) <= 'z'))
3697
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3698
 
#endif
3699
 
 
3700
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3701
 
int
3702
 
main ()
3703
 
{
3704
 
  int i;
3705
 
  for (i = 0; i < 256; i++)
3706
 
    if (XOR (islower (i), ISLOWER (i))
3707
 
        || toupper (i) != TOUPPER (i))
3708
 
      exit(2);
3709
 
  exit (0);
3710
 
}
3711
 
_ACEOF
3712
 
rm -f conftest$ac_exeext
3713
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714
 
  (eval $ac_link) 2>&5
3715
 
  ac_status=$?
3716
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3718
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719
 
  (eval $ac_try) 2>&5
3720
 
  ac_status=$?
3721
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722
 
  (exit $ac_status); }; }; then
3723
 
  :
3724
 
else
3725
 
  echo "$as_me: program exited with status $ac_status" >&5
3726
 
echo "$as_me: failed program was:" >&5
3727
 
sed 's/^/| /' conftest.$ac_ext >&5
3728
 
 
3729
 
( exit $ac_status )
3730
 
ac_cv_header_stdc=no
3731
 
fi
3732
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3733
 
fi
3734
 
fi
3735
 
fi
3736
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3737
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3738
 
if test $ac_cv_header_stdc = yes; then
3739
 
 
3740
 
cat >>confdefs.h <<\_ACEOF
3741
 
#define STDC_HEADERS 1
3742
 
_ACEOF
3743
 
 
3744
 
fi
3745
 
 
3746
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3747
 
 
3748
 
 
3749
 
 
3750
 
 
3751
 
 
3752
 
 
3753
 
 
3754
 
 
3755
 
 
3756
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3757
 
                  inttypes.h stdint.h unistd.h
3758
 
do
3759
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3760
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3761
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3762
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3763
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3764
 
else
3765
 
  cat >conftest.$ac_ext <<_ACEOF
3766
 
#line $LINENO "configure"
3767
 
/* confdefs.h.  */
3768
 
_ACEOF
3769
 
cat confdefs.h >>conftest.$ac_ext
3770
 
cat >>conftest.$ac_ext <<_ACEOF
3771
 
/* end confdefs.h.  */
3772
 
$ac_includes_default
3773
 
 
3774
 
#include <$ac_header>
3775
 
_ACEOF
3776
 
rm -f conftest.$ac_objext
3777
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3778
 
  (eval $ac_compile) 2>&5
3779
 
  ac_status=$?
3780
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781
 
  (exit $ac_status); } &&
3782
 
         { ac_try='test -s conftest.$ac_objext'
3783
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784
 
  (eval $ac_try) 2>&5
3785
 
  ac_status=$?
3786
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787
 
  (exit $ac_status); }; }; then
3788
 
  eval "$as_ac_Header=yes"
3789
 
else
3790
 
  echo "$as_me: failed program was:" >&5
3791
 
sed 's/^/| /' conftest.$ac_ext >&5
3792
 
 
3793
 
eval "$as_ac_Header=no"
3794
 
fi
3795
 
rm -f conftest.$ac_objext conftest.$ac_ext
3796
 
fi
3797
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3798
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3799
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3800
 
  cat >>confdefs.h <<_ACEOF
3801
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3802
 
_ACEOF
3803
 
 
3804
 
fi
3805
 
 
3806
 
done
3807
 
 
3808
 
 
3809
 
 
3810
 
for ac_header in dlfcn.h
3811
 
do
3812
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3813
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3814
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
3815
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3816
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3817
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3818
 
fi
3819
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3820
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3821
 
else
3822
 
  # Is the header compilable?
3823
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3824
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3825
 
cat >conftest.$ac_ext <<_ACEOF
3826
 
#line $LINENO "configure"
3827
 
/* confdefs.h.  */
3828
 
_ACEOF
3829
 
cat confdefs.h >>conftest.$ac_ext
3830
 
cat >>conftest.$ac_ext <<_ACEOF
3831
 
/* end confdefs.h.  */
3832
 
$ac_includes_default
3833
 
#include <$ac_header>
3834
 
_ACEOF
3835
 
rm -f conftest.$ac_objext
3836
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837
 
  (eval $ac_compile) 2>&5
3838
 
  ac_status=$?
3839
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840
 
  (exit $ac_status); } &&
3841
 
         { ac_try='test -s conftest.$ac_objext'
3842
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843
 
  (eval $ac_try) 2>&5
3844
 
  ac_status=$?
3845
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846
 
  (exit $ac_status); }; }; then
3847
 
  ac_header_compiler=yes
3848
 
else
3849
 
  echo "$as_me: failed program was:" >&5
3850
 
sed 's/^/| /' conftest.$ac_ext >&5
3851
 
 
3852
 
ac_header_compiler=no
3853
 
fi
3854
 
rm -f conftest.$ac_objext conftest.$ac_ext
3855
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3856
 
echo "${ECHO_T}$ac_header_compiler" >&6
3857
 
 
3858
 
# Is the header present?
3859
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3860
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3861
 
cat >conftest.$ac_ext <<_ACEOF
3862
 
#line $LINENO "configure"
3863
 
/* confdefs.h.  */
3864
 
_ACEOF
3865
 
cat confdefs.h >>conftest.$ac_ext
3866
 
cat >>conftest.$ac_ext <<_ACEOF
3867
 
/* end confdefs.h.  */
3868
 
#include <$ac_header>
3869
 
_ACEOF
3870
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3871
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3872
 
  ac_status=$?
3873
 
  grep -v '^ *+' conftest.er1 >conftest.err
3874
 
  rm -f conftest.er1
3875
 
  cat conftest.err >&5
3876
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877
 
  (exit $ac_status); } >/dev/null; then
3878
 
  if test -s conftest.err; then
3879
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3880
 
  else
3881
 
    ac_cpp_err=
3882
 
  fi
3883
 
else
3884
 
  ac_cpp_err=yes
3885
 
fi
3886
 
if test -z "$ac_cpp_err"; then
3887
 
  ac_header_preproc=yes
3888
 
else
3889
 
  echo "$as_me: failed program was:" >&5
3890
 
sed 's/^/| /' conftest.$ac_ext >&5
3891
 
 
3892
 
  ac_header_preproc=no
3893
 
fi
3894
 
rm -f conftest.err conftest.$ac_ext
3895
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3896
 
echo "${ECHO_T}$ac_header_preproc" >&6
3897
 
 
3898
 
# So?  What about this header?
3899
 
case $ac_header_compiler:$ac_header_preproc in
3900
 
  yes:no )
3901
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3902
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3903
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3904
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3905
 
    (
3906
 
      cat <<\_ASBOX
3907
 
## ------------------------------------ ##
3908
 
## Report this to bug-autoconf@gnu.org. ##
3909
 
## ------------------------------------ ##
3910
 
_ASBOX
3911
 
    ) |
3912
 
      sed "s/^/$as_me: WARNING:     /" >&2
3913
 
    ;;
3914
 
  no:yes )
3915
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3916
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3917
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3918
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3919
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3920
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3921
 
    (
3922
 
      cat <<\_ASBOX
3923
 
## ------------------------------------ ##
3924
 
## Report this to bug-autoconf@gnu.org. ##
3925
 
## ------------------------------------ ##
3926
 
_ASBOX
3927
 
    ) |
3928
 
      sed "s/^/$as_me: WARNING:     /" >&2
3929
 
    ;;
3930
 
esac
3931
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
3932
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3933
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3934
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3935
 
else
3936
 
  eval "$as_ac_Header=$ac_header_preproc"
3937
 
fi
3938
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3939
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3940
 
 
3941
 
fi
3942
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3943
 
  cat >>confdefs.h <<_ACEOF
3944
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3945
 
_ACEOF
3946
 
 
3947
 
fi
3948
 
 
3949
 
done
3950
 
 
3951
 
 
3952
 
 
3953
 
 
3954
 
 
3955
 
 
3956
 
# Only perform the check for file, if the check method requires it
3957
 
case $deplibs_check_method in
3958
 
file_magic*)
3959
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3960
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3961
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3962
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3963
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3964
 
else
3965
 
  case $MAGIC_CMD in
3966
 
  /*)
3967
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3968
 
  ;;
3969
 
  ?:/*)
3970
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3971
 
  ;;
3972
 
  *)
3973
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
3974
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3975
 
  ac_dummy="/usr/bin:$PATH"
3976
 
  for ac_dir in $ac_dummy; do
3977
 
    test -z "$ac_dir" && ac_dir=.
3978
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
3979
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3980
 
      if test -n "$file_magic_test_file"; then
3981
 
        case $deplibs_check_method in
3982
 
        "file_magic "*)
3983
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3984
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3985
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3986
 
            egrep "$file_magic_regex" > /dev/null; then
3987
 
            :
3988
 
          else
3989
 
            cat <<EOF 1>&2
3990
 
 
3991
 
*** Warning: the command libtool uses to detect shared libraries,
3992
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3993
 
*** The result is that libtool may fail to recognize shared libraries
3994
 
*** as such.  This will affect the creation of libtool libraries that
3995
 
*** depend on shared libraries, but programs linked with such libtool
3996
 
*** libraries will work regardless of this problem.  Nevertheless, you
3997
 
*** may want to report the problem to your system manager and/or to
3998
 
*** bug-libtool@gnu.org
3999
 
 
4000
 
EOF
4001
 
          fi ;;
4002
 
        esac
4003
 
      fi
4004
 
      break
4005
 
    fi
4006
 
  done
4007
 
  IFS="$ac_save_ifs"
4008
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4009
 
  ;;
4010
 
esac
4011
 
fi
4012
 
 
4013
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4014
 
if test -n "$MAGIC_CMD"; then
4015
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4016
 
echo "${ECHO_T}$MAGIC_CMD" >&6
4017
 
else
4018
 
  echo "$as_me:$LINENO: result: no" >&5
4019
 
echo "${ECHO_T}no" >&6
4020
 
fi
4021
 
 
4022
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
4023
 
  if test -n "$ac_tool_prefix"; then
4024
 
    echo "$as_me:$LINENO: checking for file" >&5
4025
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
4026
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4027
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4028
 
else
4029
 
  case $MAGIC_CMD in
4030
 
  /*)
4031
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4032
 
  ;;
4033
 
  ?:/*)
4034
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4035
 
  ;;
4036
 
  *)
4037
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4038
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4039
 
  ac_dummy="/usr/bin:$PATH"
4040
 
  for ac_dir in $ac_dummy; do
4041
 
    test -z "$ac_dir" && ac_dir=.
4042
 
    if test -f $ac_dir/file; then
4043
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4044
 
      if test -n "$file_magic_test_file"; then
4045
 
        case $deplibs_check_method in
4046
 
        "file_magic "*)
4047
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4048
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4049
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4050
 
            egrep "$file_magic_regex" > /dev/null; then
4051
 
            :
4052
 
          else
4053
 
            cat <<EOF 1>&2
4054
 
 
4055
 
*** Warning: the command libtool uses to detect shared libraries,
4056
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
4057
 
*** The result is that libtool may fail to recognize shared libraries
4058
 
*** as such.  This will affect the creation of libtool libraries that
4059
 
*** depend on shared libraries, but programs linked with such libtool
4060
 
*** libraries will work regardless of this problem.  Nevertheless, you
4061
 
*** may want to report the problem to your system manager and/or to
4062
 
*** bug-libtool@gnu.org
4063
 
 
4064
 
EOF
4065
 
          fi ;;
4066
 
        esac
4067
 
      fi
4068
 
      break
4069
 
    fi
4070
 
  done
4071
 
  IFS="$ac_save_ifs"
4072
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
4073
 
  ;;
4074
 
esac
4075
 
fi
4076
 
 
4077
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4078
 
if test -n "$MAGIC_CMD"; then
4079
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4080
 
echo "${ECHO_T}$MAGIC_CMD" >&6
4081
 
else
4082
 
  echo "$as_me:$LINENO: result: no" >&5
4083
 
echo "${ECHO_T}no" >&6
4084
 
fi
4085
 
 
4086
 
  else
4087
 
    MAGIC_CMD=:
4088
 
  fi
4089
 
fi
4090
 
 
4091
 
  fi
4092
 
  ;;
4093
 
esac
 
5304
echo "$as_me:$LINENO: checking for objdir" >&5
 
5305
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5306
if test "${lt_cv_objdir+set}" = set; then
 
5307
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5308
else
 
5309
  rm -f .libs 2>/dev/null
 
5310
mkdir .libs 2>/dev/null
 
5311
if test -d .libs; then
 
5312
  lt_cv_objdir=.libs
 
5313
else
 
5314
  # MS-DOS does not allow filenames that begin with a dot.
 
5315
  lt_cv_objdir=_libs
 
5316
fi
 
5317
rmdir .libs 2>/dev/null
 
5318
fi
 
5319
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5320
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5321
objdir=$lt_cv_objdir
 
5322
 
 
5323
 
 
5324
 
 
5325
 
 
5326
 
 
5327
case $host_os in
 
5328
aix3*)
 
5329
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5330
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5331
  # vanish in a puff of smoke.
 
5332
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5333
    COLLECT_NAMES=
 
5334
    export COLLECT_NAMES
 
5335
  fi
 
5336
  ;;
 
5337
esac
 
5338
 
 
5339
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5340
# metacharacters that are still active within double-quoted strings.
 
5341
Xsed='sed -e s/^X//'
 
5342
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5343
 
 
5344
# Same as above, but do not quote variable references.
 
5345
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5346
 
 
5347
# Sed substitution to delay expansion of an escaped shell variable in a
 
5348
# double_quote_subst'ed string.
 
5349
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5350
 
 
5351
# Sed substitution to avoid accidental globbing in evaled expressions
 
5352
no_glob_subst='s/\*/\\\*/g'
 
5353
 
 
5354
# Constants:
 
5355
rm="rm -f"
 
5356
 
 
5357
# Global variables:
 
5358
default_ofile=libtool
 
5359
can_build_shared=yes
 
5360
 
 
5361
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5362
# which needs '.lib').
 
5363
libext=a
 
5364
ltmain="$ac_aux_dir/ltmain.sh"
 
5365
ofile="$default_ofile"
 
5366
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5367
 
 
5368
if test -n "$ac_tool_prefix"; then
 
5369
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5370
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5371
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5372
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5373
if test "${ac_cv_prog_AR+set}" = set; then
 
5374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5375
else
 
5376
  if test -n "$AR"; then
 
5377
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5378
else
 
5379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5380
for as_dir in $PATH
 
5381
do
 
5382
  IFS=$as_save_IFS
 
5383
  test -z "$as_dir" && as_dir=.
 
5384
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5385
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5386
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5387
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5388
    break 2
 
5389
  fi
 
5390
done
 
5391
done
 
5392
 
 
5393
fi
 
5394
fi
 
5395
AR=$ac_cv_prog_AR
 
5396
if test -n "$AR"; then
 
5397
  echo "$as_me:$LINENO: result: $AR" >&5
 
5398
echo "${ECHO_T}$AR" >&6
 
5399
else
 
5400
  echo "$as_me:$LINENO: result: no" >&5
 
5401
echo "${ECHO_T}no" >&6
 
5402
fi
 
5403
 
 
5404
fi
 
5405
if test -z "$ac_cv_prog_AR"; then
 
5406
  ac_ct_AR=$AR
 
5407
  # Extract the first word of "ar", so it can be a program name with args.
 
5408
set dummy ar; ac_word=$2
 
5409
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5410
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5411
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5413
else
 
5414
  if test -n "$ac_ct_AR"; then
 
5415
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5416
else
 
5417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5418
for as_dir in $PATH
 
5419
do
 
5420
  IFS=$as_save_IFS
 
5421
  test -z "$as_dir" && as_dir=.
 
5422
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5423
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5424
    ac_cv_prog_ac_ct_AR="ar"
 
5425
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5426
    break 2
 
5427
  fi
 
5428
done
 
5429
done
 
5430
 
 
5431
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5432
fi
 
5433
fi
 
5434
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5435
if test -n "$ac_ct_AR"; then
 
5436
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5437
echo "${ECHO_T}$ac_ct_AR" >&6
 
5438
else
 
5439
  echo "$as_me:$LINENO: result: no" >&5
 
5440
echo "${ECHO_T}no" >&6
 
5441
fi
 
5442
 
 
5443
  AR=$ac_ct_AR
 
5444
else
 
5445
  AR="$ac_cv_prog_AR"
 
5446
fi
4094
5447
 
4095
5448
if test -n "$ac_tool_prefix"; then
4096
5449
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4253
5606
fi
4254
5607
 
4255
5608
 
4256
 
enable_dlopen=no
4257
 
enable_win32_dll=no
4258
 
 
4259
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4260
 
if test "${enable_libtool_lock+set}" = set; then
4261
 
  enableval="$enable_libtool_lock"
4262
 
 
4263
 
fi;
4264
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4265
 
 
4266
 
# Some flags need to be propagated to the compiler or linker for good
4267
 
# libtool support.
4268
 
case $host in
4269
 
*-*-irix6*)
4270
 
  # Find out which ABI we are using.
4271
 
  echo '#line 4271 "configure"' > conftest.$ac_ext
4272
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273
 
  (eval $ac_compile) 2>&5
4274
 
  ac_status=$?
4275
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276
 
  (exit $ac_status); }; then
4277
 
    case `/usr/bin/file conftest.$ac_objext` in
4278
 
    *32-bit*)
4279
 
      LD="${LD-ld} -32"
4280
 
      ;;
4281
 
    *N32*)
4282
 
      LD="${LD-ld} -n32"
4283
 
      ;;
4284
 
    *64-bit*)
4285
 
      LD="${LD-ld} -64"
4286
 
      ;;
4287
 
    esac
4288
 
  fi
4289
 
  rm -rf conftest*
4290
 
  ;;
4291
 
 
4292
 
*-*-sco3.2v5*)
4293
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4294
 
  SAVE_CFLAGS="$CFLAGS"
4295
 
  CFLAGS="$CFLAGS -belf"
4296
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4297
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4298
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4299
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4300
 
else
4301
 
 
4302
 
 
4303
 
     ac_ext=c
4304
 
ac_cpp='$CPP $CPPFLAGS'
4305
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308
 
 
4309
 
     cat >conftest.$ac_ext <<_ACEOF
4310
 
#line $LINENO "configure"
4311
 
/* confdefs.h.  */
4312
 
_ACEOF
4313
 
cat confdefs.h >>conftest.$ac_ext
4314
 
cat >>conftest.$ac_ext <<_ACEOF
4315
 
/* end confdefs.h.  */
4316
 
 
4317
 
int
4318
 
main ()
4319
 
{
4320
 
 
4321
 
  ;
4322
 
  return 0;
4323
 
}
4324
 
_ACEOF
4325
 
rm -f conftest.$ac_objext conftest$ac_exeext
4326
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327
 
  (eval $ac_link) 2>&5
4328
 
  ac_status=$?
4329
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330
 
  (exit $ac_status); } &&
4331
 
         { ac_try='test -s conftest$ac_exeext'
4332
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333
 
  (eval $ac_try) 2>&5
4334
 
  ac_status=$?
4335
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336
 
  (exit $ac_status); }; }; then
4337
 
  lt_cv_cc_needs_belf=yes
4338
 
else
4339
 
  echo "$as_me: failed program was:" >&5
4340
 
sed 's/^/| /' conftest.$ac_ext >&5
4341
 
 
4342
 
lt_cv_cc_needs_belf=no
4343
 
fi
4344
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4345
 
     ac_ext=c
4346
 
ac_cpp='$CPP $CPPFLAGS'
4347
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
 
 
4351
 
fi
4352
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4353
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4354
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4355
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4356
 
    CFLAGS="$SAVE_CFLAGS"
4357
 
  fi
4358
 
  ;;
4359
 
 
4360
 
 
4361
 
esac
4362
 
 
4363
 
# Sed substitution that helps us do robust quoting.  It backslashifies
4364
 
# metacharacters that are still active within double-quoted strings.
4365
 
Xsed='sed -e s/^X//'
4366
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4367
 
 
4368
 
# Same as above, but do not quote variable references.
4369
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4370
 
 
4371
 
# Sed substitution to delay expansion of an escaped shell variable in a
4372
 
# double_quote_subst'ed string.
4373
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4374
 
 
4375
 
# Constants:
4376
 
rm="rm -f"
4377
 
 
4378
 
# Global variables:
4379
 
default_ofile=libtool
4380
 
can_build_shared=yes
4381
 
 
4382
 
# All known linkers require a `.a' archive for static linking (except M$VC,
4383
 
# which needs '.lib').
4384
 
libext=a
4385
 
ltmain="$ac_aux_dir/ltmain.sh"
4386
 
ofile="$default_ofile"
4387
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
4388
 
need_locks="$enable_libtool_lock"
4389
 
 
4390
5609
old_CC="$CC"
4391
5610
old_CFLAGS="$CFLAGS"
4392
5611
 
4395
5614
test -z "$AR_FLAGS" && AR_FLAGS=cru
4396
5615
test -z "$AS" && AS=as
4397
5616
test -z "$CC" && CC=cc
 
5617
test -z "$LTCC" && LTCC=$CC
4398
5618
test -z "$DLLTOOL" && DLLTOOL=dlltool
4399
5619
test -z "$LD" && LD=ld
4400
5620
test -z "$LN_S" && LN_S="ln -s"
4401
5621
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4402
5622
test -z "$NM" && NM=nm
 
5623
test -z "$SED" && SED=sed
4403
5624
test -z "$OBJDUMP" && OBJDUMP=objdump
4404
5625
test -z "$RANLIB" && RANLIB=:
4405
5626
test -z "$STRIP" && STRIP=:
4406
5627
test -z "$ac_objext" && ac_objext=o
4407
5628
 
4408
 
if test x"$host" != x"$build"; then
4409
 
  ac_tool_prefix=${host_alias}-
4410
 
else
4411
 
  ac_tool_prefix=
4412
 
fi
4413
 
 
4414
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4415
 
case $host_os in
4416
 
linux-gnu*) ;;
4417
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4418
 
esac
4419
 
 
4420
 
case $host_os in
4421
 
aix3*)
4422
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
4423
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
4424
 
  # vanish in a puff of smoke.
4425
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
4426
 
    COLLECT_NAMES=
4427
 
    export COLLECT_NAMES
4428
 
  fi
4429
 
  ;;
4430
 
esac
4431
 
 
4432
5629
# Determine commands to create old-style static archives.
4433
5630
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4434
5631
old_postinstall_cmds='chmod 644 $oldlib'
4446
5643
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4447
5644
fi
4448
5645
 
4449
 
# Allow CC to be a program name with arguments.
4450
 
set dummy $CC
4451
 
compiler="$2"
4452
 
 
4453
 
## FIXME: this should be a separate macro
4454
 
##
4455
 
echo "$as_me:$LINENO: checking for objdir" >&5
4456
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4457
 
rm -f .libs 2>/dev/null
4458
 
mkdir .libs 2>/dev/null
4459
 
if test -d .libs; then
4460
 
  objdir=.libs
4461
 
else
4462
 
  # MS-DOS does not allow filenames that begin with a dot.
4463
 
  objdir=_libs
4464
 
fi
4465
 
rmdir .libs 2>/dev/null
4466
 
echo "$as_me:$LINENO: result: $objdir" >&5
4467
 
echo "${ECHO_T}$objdir" >&6
4468
 
##
4469
 
## END FIXME
4470
 
 
4471
 
 
4472
 
## FIXME: this should be a separate macro
4473
 
##
 
5646
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
5647
 
 
5648
# Only perform the check for file, if the check method requires it
 
5649
case $deplibs_check_method in
 
5650
file_magic*)
 
5651
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5652
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5653
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5654
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5656
else
 
5657
  case $MAGIC_CMD in
 
5658
[\\/*] |  ?:[\\/]*)
 
5659
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5660
  ;;
 
5661
*)
 
5662
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5663
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5664
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5665
  for ac_dir in $ac_dummy; do
 
5666
    IFS="$lt_save_ifs"
 
5667
    test -z "$ac_dir" && ac_dir=.
 
5668
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
5669
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
5670
      if test -n "$file_magic_test_file"; then
 
5671
        case $deplibs_check_method in
 
5672
        "file_magic "*)
 
5673
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5674
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5675
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5676
            $EGREP "$file_magic_regex" > /dev/null; then
 
5677
            :
 
5678
          else
 
5679
            cat <<EOF 1>&2
 
5680
 
 
5681
*** Warning: the command libtool uses to detect shared libraries,
 
5682
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5683
*** The result is that libtool may fail to recognize shared libraries
 
5684
*** as such.  This will affect the creation of libtool libraries that
 
5685
*** depend on shared libraries, but programs linked with such libtool
 
5686
*** libraries will work regardless of this problem.  Nevertheless, you
 
5687
*** may want to report the problem to your system manager and/or to
 
5688
*** bug-libtool@gnu.org
 
5689
 
 
5690
EOF
 
5691
          fi ;;
 
5692
        esac
 
5693
      fi
 
5694
      break
 
5695
    fi
 
5696
  done
 
5697
  IFS="$lt_save_ifs"
 
5698
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5699
  ;;
 
5700
esac
 
5701
fi
 
5702
 
 
5703
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5704
if test -n "$MAGIC_CMD"; then
 
5705
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5706
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5707
else
 
5708
  echo "$as_me:$LINENO: result: no" >&5
 
5709
echo "${ECHO_T}no" >&6
 
5710
fi
 
5711
 
 
5712
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
5713
  if test -n "$ac_tool_prefix"; then
 
5714
    echo "$as_me:$LINENO: checking for file" >&5
 
5715
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
5716
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5718
else
 
5719
  case $MAGIC_CMD in
 
5720
[\\/*] |  ?:[\\/]*)
 
5721
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5722
  ;;
 
5723
*)
 
5724
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5725
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5726
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5727
  for ac_dir in $ac_dummy; do
 
5728
    IFS="$lt_save_ifs"
 
5729
    test -z "$ac_dir" && ac_dir=.
 
5730
    if test -f $ac_dir/file; then
 
5731
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
5732
      if test -n "$file_magic_test_file"; then
 
5733
        case $deplibs_check_method in
 
5734
        "file_magic "*)
 
5735
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5736
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5737
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5738
            $EGREP "$file_magic_regex" > /dev/null; then
 
5739
            :
 
5740
          else
 
5741
            cat <<EOF 1>&2
 
5742
 
 
5743
*** Warning: the command libtool uses to detect shared libraries,
 
5744
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5745
*** The result is that libtool may fail to recognize shared libraries
 
5746
*** as such.  This will affect the creation of libtool libraries that
 
5747
*** depend on shared libraries, but programs linked with such libtool
 
5748
*** libraries will work regardless of this problem.  Nevertheless, you
 
5749
*** may want to report the problem to your system manager and/or to
 
5750
*** bug-libtool@gnu.org
 
5751
 
 
5752
EOF
 
5753
          fi ;;
 
5754
        esac
 
5755
      fi
 
5756
      break
 
5757
    fi
 
5758
  done
 
5759
  IFS="$lt_save_ifs"
 
5760
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5761
  ;;
 
5762
esac
 
5763
fi
 
5764
 
 
5765
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5766
if test -n "$MAGIC_CMD"; then
 
5767
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5768
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5769
else
 
5770
  echo "$as_me:$LINENO: result: no" >&5
 
5771
echo "${ECHO_T}no" >&6
 
5772
fi
 
5773
 
 
5774
  else
 
5775
    MAGIC_CMD=:
 
5776
  fi
 
5777
fi
 
5778
 
 
5779
  fi
 
5780
  ;;
 
5781
esac
 
5782
 
 
5783
enable_dlopen=no
 
5784
enable_win32_dll=no
 
5785
 
 
5786
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5787
if test "${enable_libtool_lock+set}" = set; then
 
5788
  enableval="$enable_libtool_lock"
 
5789
 
 
5790
fi;
 
5791
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5792
 
4474
5793
 
4475
5794
# Check whether --with-pic or --without-pic was given.
4476
5795
if test "${with_pic+set}" = set; then
4481
5800
fi;
4482
5801
test -z "$pic_mode" && pic_mode=default
4483
5802
 
4484
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4485
 
# in isolation, and that seeing it set (from the cache) indicates that
4486
 
# the associated values are set (in the cache) correctly too.
4487
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4488
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4489
 
if test "${lt_cv_prog_cc_pic+set}" = set; then
4490
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4491
 
else
4492
 
   lt_cv_prog_cc_pic=
4493
 
  lt_cv_prog_cc_shlib=
4494
 
  lt_cv_prog_cc_wl=
4495
 
  lt_cv_prog_cc_static=
4496
 
  lt_cv_prog_cc_no_builtin=
4497
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
4498
 
 
4499
 
  if test "$GCC" = yes; then
4500
 
    lt_cv_prog_cc_wl='-Wl,'
4501
 
    lt_cv_prog_cc_static='-static'
4502
 
 
4503
 
    case $host_os in
4504
 
    aix*)
4505
 
      # Below there is a dirty hack to force normal static linking with -ldl
4506
 
      # The problem is because libdl dynamically linked with both libc and
4507
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
4508
 
      # list by gcc. This cause undefined symbols with -static flags.
4509
 
      # This hack allows C programs to be linked with "-static -ldl", but
4510
 
      # not sure about C++ programs.
4511
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4512
 
      ;;
4513
 
    amigaos*)
4514
 
      # FIXME: we need at least 68020 code to build shared libraries, but
4515
 
      # adding the `-m68020' flag to GCC prevents building anything better,
4516
 
      # like `-m68040'.
4517
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4518
 
      ;;
4519
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4520
 
      # PIC is the default for these OSes.
4521
 
      ;;
4522
 
    darwin* | rhapsody*)
4523
 
      # PIC is the default on this platform
4524
 
      # Common symbols not allowed in MH_DYLIB files
4525
 
      lt_cv_prog_cc_pic='-fno-common'
4526
 
      ;;
4527
 
    cygwin* | mingw* | pw32* | os2*)
4528
 
      # This hack is so that the source file can tell whether it is being
4529
 
      # built for inclusion in a dll (and should export symbols for example).
4530
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4531
 
      ;;
4532
 
    sysv4*MP*)
4533
 
      if test -d /usr/nec; then
4534
 
         lt_cv_prog_cc_pic=-Kconform_pic
4535
 
      fi
4536
 
      ;;
4537
 
    *)
4538
 
      lt_cv_prog_cc_pic='-fPIC'
4539
 
      ;;
4540
 
    esac
4541
 
  else
4542
 
    # PORTME Check for PIC flags for the system compiler.
4543
 
    case $host_os in
4544
 
    aix3* | aix4* | aix5*)
4545
 
      lt_cv_prog_cc_wl='-Wl,'
4546
 
      # All AIX code is PIC.
4547
 
      if test "$host_cpu" = ia64; then
4548
 
        # AIX 5 now supports IA64 processor
4549
 
        lt_cv_prog_cc_static='-Bstatic'
4550
 
      else
4551
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4552
 
      fi
4553
 
      ;;
4554
 
 
4555
 
    hpux9* | hpux10* | hpux11*)
4556
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4557
 
      lt_cv_prog_cc_wl='-Wl,'
4558
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4559
 
      lt_cv_prog_cc_pic='+Z'
4560
 
      ;;
4561
 
 
4562
 
    irix5* | irix6* | nonstopux*)
4563
 
      lt_cv_prog_cc_wl='-Wl,'
4564
 
      lt_cv_prog_cc_static='-non_shared'
4565
 
      # PIC (with -KPIC) is the default.
4566
 
      ;;
4567
 
 
4568
 
    cygwin* | mingw* | pw32* | os2*)
4569
 
      # This hack is so that the source file can tell whether it is being
4570
 
      # built for inclusion in a dll (and should export symbols for example).
4571
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4572
 
      ;;
4573
 
 
4574
 
    newsos6)
4575
 
      lt_cv_prog_cc_pic='-KPIC'
4576
 
      lt_cv_prog_cc_static='-Bstatic'
4577
 
      ;;
4578
 
 
4579
 
    osf3* | osf4* | osf5*)
4580
 
      # All OSF/1 code is PIC.
4581
 
      lt_cv_prog_cc_wl='-Wl,'
4582
 
      lt_cv_prog_cc_static='-non_shared'
4583
 
      ;;
4584
 
 
4585
 
    sco3.2v5*)
4586
 
      lt_cv_prog_cc_pic='-Kpic'
4587
 
      lt_cv_prog_cc_static='-dn'
4588
 
      lt_cv_prog_cc_shlib='-belf'
4589
 
      ;;
4590
 
 
4591
 
    solaris*)
4592
 
      lt_cv_prog_cc_pic='-KPIC'
4593
 
      lt_cv_prog_cc_static='-Bstatic'
4594
 
      lt_cv_prog_cc_wl='-Wl,'
4595
 
      ;;
4596
 
 
4597
 
    sunos4*)
4598
 
      lt_cv_prog_cc_pic='-PIC'
4599
 
      lt_cv_prog_cc_static='-Bstatic'
4600
 
      lt_cv_prog_cc_wl='-Qoption ld '
4601
 
      ;;
4602
 
 
4603
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4604
 
      lt_cv_prog_cc_pic='-KPIC'
4605
 
      lt_cv_prog_cc_static='-Bstatic'
4606
 
      lt_cv_prog_cc_wl='-Wl,'
4607
 
      ;;
4608
 
 
4609
 
    uts4*)
4610
 
      lt_cv_prog_cc_pic='-pic'
4611
 
      lt_cv_prog_cc_static='-Bstatic'
4612
 
      ;;
4613
 
 
4614
 
    sysv4*MP*)
4615
 
      if test -d /usr/nec ;then
4616
 
        lt_cv_prog_cc_pic='-Kconform_pic'
4617
 
        lt_cv_prog_cc_static='-Bstatic'
4618
 
      fi
4619
 
      ;;
4620
 
 
4621
 
    *)
4622
 
      lt_cv_prog_cc_can_build_shared=no
4623
 
      ;;
4624
 
    esac
4625
 
  fi
4626
 
 
4627
 
fi
4628
 
 
4629
 
if test -z "$lt_cv_prog_cc_pic"; then
4630
 
  echo "$as_me:$LINENO: result: none" >&5
4631
 
echo "${ECHO_T}none" >&6
4632
 
else
4633
 
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4634
 
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4635
 
 
4636
 
  # Check to make sure the pic_flag actually works.
4637
 
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4638
 
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4639
 
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4640
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4641
 
else
4642
 
      save_CFLAGS="$CFLAGS"
4643
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
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
 
 
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
 
        case $host_os in
4673
 
      hpux9* | hpux10* | hpux11*)
4674
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
4675
 
        # they create non-PIC objects.  So, if there were any warnings, we
4676
 
        # assume that PIC is not supported.
4677
 
        if test -s conftest.err; then
4678
 
          lt_cv_prog_cc_pic_works=no
4679
 
        else
4680
 
          lt_cv_prog_cc_pic_works=yes
4681
 
        fi
4682
 
        ;;
4683
 
      *)
4684
 
        lt_cv_prog_cc_pic_works=yes
4685
 
        ;;
4686
 
      esac
4687
 
 
4688
 
else
4689
 
  echo "$as_me: failed program was:" >&5
4690
 
sed 's/^/| /' conftest.$ac_ext >&5
4691
 
 
4692
 
      lt_cv_prog_cc_pic_works=no
4693
 
 
4694
 
fi
4695
 
rm -f conftest.$ac_objext conftest.$ac_ext
4696
 
    CFLAGS="$save_CFLAGS"
4697
 
 
4698
 
fi
4699
 
 
4700
 
 
4701
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4702
 
    lt_cv_prog_cc_pic=
4703
 
    lt_cv_prog_cc_can_build_shared=no
4704
 
  else
4705
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4706
 
  fi
4707
 
 
4708
 
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4709
 
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4710
 
fi
4711
 
##
4712
 
## END FIXME
4713
 
 
 
5803
# Use C for the default configuration in the libtool script
 
5804
tagname=
 
5805
lt_save_CC="$CC"
 
5806
ac_ext=c
 
5807
ac_cpp='$CPP $CPPFLAGS'
 
5808
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5809
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5810
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5811
 
 
5812
 
 
5813
# Source file extension for C test sources.
 
5814
ac_ext=c
 
5815
 
 
5816
# Object file extension for compiled C test sources.
 
5817
objext=o
 
5818
objext=$objext
 
5819
 
 
5820
# Code to be used in simple compile tests
 
5821
lt_simple_compile_test_code="int some_variable = 0;\n"
 
5822
 
 
5823
# Code to be used in simple link tests
 
5824
lt_simple_link_test_code='int main(){return(0);}\n'
 
5825
 
 
5826
 
 
5827
# If no C compiler was specified, use CC.
 
5828
LTCC=${LTCC-"$CC"}
 
5829
 
 
5830
# Allow CC to be a program name with arguments.
 
5831
compiler=$CC
 
5832
 
 
5833
 
 
5834
#
4714
5835
# Check for any special shared library compilation flags.
4715
 
if test -n "$lt_cv_prog_cc_shlib"; then
4716
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4717
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4718
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
5836
#
 
5837
lt_prog_cc_shlib=
 
5838
if test "$GCC" = no; then
 
5839
  case $host_os in
 
5840
  sco3.2v5*)
 
5841
    lt_prog_cc_shlib='-belf'
 
5842
    ;;
 
5843
  esac
 
5844
fi
 
5845
if test -n "$lt_prog_cc_shlib"; then
 
5846
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
5847
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
5848
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
4719
5849
  else
4720
 
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4721
 
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5850
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5851
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4722
5852
    lt_cv_prog_cc_can_build_shared=no
4723
5853
  fi
4724
5854
fi
4725
5855
 
4726
 
## FIXME: this should be a separate macro
4727
 
##
4728
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4729
 
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4730
 
if test "${lt_cv_prog_cc_static_works+set}" = set; then
4731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4732
 
else
4733
 
    lt_cv_prog_cc_static_works=no
4734
 
  save_LDFLAGS="$LDFLAGS"
4735
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4736
 
  cat >conftest.$ac_ext <<_ACEOF
4737
 
#line $LINENO "configure"
4738
 
/* confdefs.h.  */
4739
 
_ACEOF
4740
 
cat confdefs.h >>conftest.$ac_ext
4741
 
cat >>conftest.$ac_ext <<_ACEOF
4742
 
/* end confdefs.h.  */
4743
 
 
4744
 
int
4745
 
main ()
4746
 
{
4747
 
 
4748
 
  ;
4749
 
  return 0;
4750
 
}
4751
 
_ACEOF
4752
 
rm -f conftest.$ac_objext conftest$ac_exeext
4753
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4754
 
  (eval $ac_link) 2>&5
4755
 
  ac_status=$?
4756
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757
 
  (exit $ac_status); } &&
4758
 
         { ac_try='test -s conftest$ac_exeext'
4759
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760
 
  (eval $ac_try) 2>&5
4761
 
  ac_status=$?
4762
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763
 
  (exit $ac_status); }; }; then
4764
 
  lt_cv_prog_cc_static_works=yes
4765
 
else
4766
 
  echo "$as_me: failed program was:" >&5
4767
 
sed 's/^/| /' conftest.$ac_ext >&5
4768
 
 
4769
 
fi
4770
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4771
 
  LDFLAGS="$save_LDFLAGS"
4772
 
 
4773
 
fi
4774
 
 
4775
 
 
4776
 
# Belt *and* braces to stop my trousers falling down:
4777
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4778
 
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4779
 
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4780
 
 
4781
 
pic_flag="$lt_cv_prog_cc_pic"
4782
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4783
 
wl="$lt_cv_prog_cc_wl"
4784
 
link_static_flag="$lt_cv_prog_cc_static"
4785
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4786
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
4787
 
##
4788
 
## END FIXME
4789
 
 
4790
 
 
4791
 
## FIXME: this should be a separate macro
4792
 
##
4793
 
# Check to see if options -o and -c are simultaneously supported by compiler
 
5856
 
 
5857
#
 
5858
# Check to make sure the static flag actually works.
 
5859
#
 
5860
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
5861
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
5862
if test "${lt_prog_compiler_static_works+set}" = set; then
 
5863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5864
else
 
5865
  lt_prog_compiler_static_works=no
 
5866
   save_LDFLAGS="$LDFLAGS"
 
5867
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
5868
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
5869
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
5870
     # The compiler can only warn and ignore the option if not recognized
 
5871
     # So say no if there are warnings
 
5872
     if test -s conftest.err; then
 
5873
       # Append any errors to the config.log.
 
5874
       cat conftest.err 1>&5
 
5875
     else
 
5876
       lt_prog_compiler_static_works=yes
 
5877
     fi
 
5878
   fi
 
5879
   $rm conftest*
 
5880
   LDFLAGS="$save_LDFLAGS"
 
5881
 
 
5882
fi
 
5883
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
5884
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
5885
 
 
5886
if test x"$lt_prog_compiler_static_works" = xyes; then
 
5887
    :
 
5888
else
 
5889
    lt_prog_compiler_static=
 
5890
fi
 
5891
 
 
5892
 
 
5893
 
 
5894
## CAVEAT EMPTOR:
 
5895
## There is no encapsulation within the following macros, do not change
 
5896
## the running order or otherwise move them around unless you know exactly
 
5897
## what you are doing...
 
5898
 
 
5899
lt_prog_compiler_no_builtin_flag=
 
5900
 
 
5901
if test "$GCC" = yes; then
 
5902
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
5903
 
 
5904
 
 
5905
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5906
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5907
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
5908
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5909
else
 
5910
  lt_cv_prog_compiler_rtti_exceptions=no
 
5911
  ac_outfile=conftest.$ac_objext
 
5912
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5913
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
5914
   # Insert the option either (1) after the last *FLAGS variable, or
 
5915
   # (2) before a word containing "conftest.", or (3) at the end.
 
5916
   # Note that $ac_compile itself does not contain backslashes and begins
 
5917
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5918
   # The option is referenced via a variable to avoid confusing sed.
 
5919
   lt_compile=`echo "$ac_compile" | $SED \
 
5920
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
5921
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5922
   -e 's:$: $lt_compiler_flag:'`
 
5923
   (eval echo "\"\$as_me:5923: $lt_compile\"" >&5)
 
5924
   (eval "$lt_compile" 2>conftest.err)
 
5925
   ac_status=$?
 
5926
   cat conftest.err >&5
 
5927
   echo "$as_me:5927: \$? = $ac_status" >&5
 
5928
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
5929
     # The compiler can only warn and ignore the option if not recognized
 
5930
     # So say no if there are warnings
 
5931
     if test ! -s conftest.err; then
 
5932
       lt_cv_prog_compiler_rtti_exceptions=yes
 
5933
     fi
 
5934
   fi
 
5935
   $rm conftest*
 
5936
 
 
5937
fi
 
5938
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
5939
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
5940
 
 
5941
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
5942
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
5943
else
 
5944
    :
 
5945
fi
 
5946
 
 
5947
fi
 
5948
 
 
5949
lt_prog_compiler_wl=
 
5950
lt_prog_compiler_pic=
 
5951
lt_prog_compiler_static=
 
5952
 
 
5953
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
5954
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
5955
 
 
5956
  if test "$GCC" = yes; then
 
5957
    lt_prog_compiler_wl='-Wl,'
 
5958
    lt_prog_compiler_static='-static'
 
5959
 
 
5960
    case $host_os in
 
5961
      aix*)
 
5962
      # All AIX code is PIC.
 
5963
      if test "$host_cpu" = ia64; then
 
5964
        # AIX 5 now supports IA64 processor
 
5965
        lt_prog_compiler_static='-Bstatic'
 
5966
      fi
 
5967
      ;;
 
5968
 
 
5969
    amigaos*)
 
5970
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5971
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5972
      # like `-m68040'.
 
5973
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
5974
      ;;
 
5975
 
 
5976
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5977
      # PIC is the default for these OSes.
 
5978
      ;;
 
5979
 
 
5980
    mingw* | pw32* | os2*)
 
5981
      # This hack is so that the source file can tell whether it is being
 
5982
      # built for inclusion in a dll (and should export symbols for example).
 
5983
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
5984
      ;;
 
5985
 
 
5986
    darwin* | rhapsody*)
 
5987
      # PIC is the default on this platform
 
5988
      # Common symbols not allowed in MH_DYLIB files
 
5989
      lt_prog_compiler_pic='-fno-common'
 
5990
      ;;
 
5991
 
 
5992
    msdosdjgpp*)
 
5993
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5994
      # on systems that don't support them.
 
5995
      lt_prog_compiler_can_build_shared=no
 
5996
      enable_shared=no
 
5997
      ;;
 
5998
 
 
5999
    sysv4*MP*)
 
6000
      if test -d /usr/nec; then
 
6001
        lt_prog_compiler_pic=-Kconform_pic
 
6002
      fi
 
6003
      ;;
 
6004
 
 
6005
    hpux*)
 
6006
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6007
      # not for PA HP-UX.
 
6008
      case "$host_cpu" in
 
6009
      hppa*64*|ia64*)
 
6010
        # +Z the default
 
6011
        ;;
 
6012
      *)
 
6013
        lt_prog_compiler_pic='-fPIC'
 
6014
        ;;
 
6015
      esac
 
6016
      ;;
 
6017
 
 
6018
    *)
 
6019
      lt_prog_compiler_pic='-fPIC'
 
6020
      ;;
 
6021
    esac
 
6022
  else
 
6023
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6024
    case $host_os in
 
6025
    aix*)
 
6026
      lt_prog_compiler_wl='-Wl,'
 
6027
      if test "$host_cpu" = ia64; then
 
6028
        # AIX 5 now supports IA64 processor
 
6029
        lt_prog_compiler_static='-Bstatic'
 
6030
      else
 
6031
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6032
      fi
 
6033
      ;;
 
6034
      darwin*)
 
6035
        # PIC is the default on this platform
 
6036
        # Common symbols not allowed in MH_DYLIB files
 
6037
       case "$cc_basename" in
 
6038
         xlc*)
 
6039
         lt_prog_compiler_pic='-qnocommon'
 
6040
         lt_prog_compiler_wl='-Wl,'
 
6041
         ;;
 
6042
       esac
 
6043
       ;;
 
6044
 
 
6045
    mingw* | pw32* | os2*)
 
6046
      # This hack is so that the source file can tell whether it is being
 
6047
      # built for inclusion in a dll (and should export symbols for example).
 
6048
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6049
      ;;
 
6050
 
 
6051
    hpux9* | hpux10* | hpux11*)
 
6052
      lt_prog_compiler_wl='-Wl,'
 
6053
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6054
      # not for PA HP-UX.
 
6055
      case "$host_cpu" in
 
6056
      hppa*64*|ia64*)
 
6057
        # +Z the default
 
6058
        ;;
 
6059
      *)
 
6060
        lt_prog_compiler_pic='+Z'
 
6061
        ;;
 
6062
      esac
 
6063
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6064
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6065
      ;;
 
6066
 
 
6067
    irix5* | irix6* | nonstopux*)
 
6068
      lt_prog_compiler_wl='-Wl,'
 
6069
      # PIC (with -KPIC) is the default.
 
6070
      lt_prog_compiler_static='-non_shared'
 
6071
      ;;
 
6072
 
 
6073
    newsos6)
 
6074
      lt_prog_compiler_pic='-KPIC'
 
6075
      lt_prog_compiler_static='-Bstatic'
 
6076
      ;;
 
6077
 
 
6078
    linux*)
 
6079
      case $cc_basename in
 
6080
      icc* | ecc*)
 
6081
        lt_prog_compiler_wl='-Wl,'
 
6082
        lt_prog_compiler_pic='-KPIC'
 
6083
        lt_prog_compiler_static='-static'
 
6084
        ;;
 
6085
      pgcc | pgf77 | pgf90)
 
6086
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6087
        # which looks to be a dead project)
 
6088
        lt_prog_compiler_wl='-Wl,'
 
6089
        lt_prog_compiler_pic='-fpic'
 
6090
        lt_prog_compiler_static='-static'
 
6091
        ;;
 
6092
      ccc*)
 
6093
        lt_prog_compiler_wl='-Wl,'
 
6094
        # All Alpha code is PIC.
 
6095
        lt_prog_compiler_static='-non_shared'
 
6096
        ;;
 
6097
      esac
 
6098
      ;;
 
6099
 
 
6100
    osf3* | osf4* | osf5*)
 
6101
      lt_prog_compiler_wl='-Wl,'
 
6102
      # All OSF/1 code is PIC.
 
6103
      lt_prog_compiler_static='-non_shared'
 
6104
      ;;
 
6105
 
 
6106
    sco3.2v5*)
 
6107
      lt_prog_compiler_pic='-Kpic'
 
6108
      lt_prog_compiler_static='-dn'
 
6109
      ;;
 
6110
 
 
6111
    solaris*)
 
6112
      lt_prog_compiler_wl='-Wl,'
 
6113
      lt_prog_compiler_pic='-KPIC'
 
6114
      lt_prog_compiler_static='-Bstatic'
 
6115
      ;;
 
6116
 
 
6117
    sunos4*)
 
6118
      lt_prog_compiler_wl='-Qoption ld '
 
6119
      lt_prog_compiler_pic='-PIC'
 
6120
      lt_prog_compiler_static='-Bstatic'
 
6121
      ;;
 
6122
 
 
6123
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6124
      lt_prog_compiler_wl='-Wl,'
 
6125
      lt_prog_compiler_pic='-KPIC'
 
6126
      lt_prog_compiler_static='-Bstatic'
 
6127
      ;;
 
6128
 
 
6129
    sysv4*MP*)
 
6130
      if test -d /usr/nec ;then
 
6131
        lt_prog_compiler_pic='-Kconform_pic'
 
6132
        lt_prog_compiler_static='-Bstatic'
 
6133
      fi
 
6134
      ;;
 
6135
 
 
6136
    unicos*)
 
6137
      lt_prog_compiler_wl='-Wl,'
 
6138
      lt_prog_compiler_can_build_shared=no
 
6139
      ;;
 
6140
 
 
6141
    uts4*)
 
6142
      lt_prog_compiler_pic='-pic'
 
6143
      lt_prog_compiler_static='-Bstatic'
 
6144
      ;;
 
6145
 
 
6146
    *)
 
6147
      lt_prog_compiler_can_build_shared=no
 
6148
      ;;
 
6149
    esac
 
6150
  fi
 
6151
 
 
6152
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6153
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6154
 
 
6155
#
 
6156
# Check to make sure the PIC flag actually works.
 
6157
#
 
6158
if test -n "$lt_prog_compiler_pic"; then
 
6159
 
 
6160
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6161
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6162
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6164
else
 
6165
  lt_prog_compiler_pic_works=no
 
6166
  ac_outfile=conftest.$ac_objext
 
6167
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6168
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6169
   # Insert the option either (1) after the last *FLAGS variable, or
 
6170
   # (2) before a word containing "conftest.", or (3) at the end.
 
6171
   # Note that $ac_compile itself does not contain backslashes and begins
 
6172
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6173
   # The option is referenced via a variable to avoid confusing sed.
 
6174
   lt_compile=`echo "$ac_compile" | $SED \
 
6175
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6176
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6177
   -e 's:$: $lt_compiler_flag:'`
 
6178
   (eval echo "\"\$as_me:6178: $lt_compile\"" >&5)
 
6179
   (eval "$lt_compile" 2>conftest.err)
 
6180
   ac_status=$?
 
6181
   cat conftest.err >&5
 
6182
   echo "$as_me:6182: \$? = $ac_status" >&5
 
6183
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6184
     # The compiler can only warn and ignore the option if not recognized
 
6185
     # So say no if there are warnings
 
6186
     if test ! -s conftest.err; then
 
6187
       lt_prog_compiler_pic_works=yes
 
6188
     fi
 
6189
   fi
 
6190
   $rm conftest*
 
6191
 
 
6192
fi
 
6193
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6194
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6195
 
 
6196
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6197
    case $lt_prog_compiler_pic in
 
6198
     "" | " "*) ;;
 
6199
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6200
     esac
 
6201
else
 
6202
    lt_prog_compiler_pic=
 
6203
     lt_prog_compiler_can_build_shared=no
 
6204
fi
 
6205
 
 
6206
fi
 
6207
case "$host_os" in
 
6208
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6209
  *djgpp*)
 
6210
    lt_prog_compiler_pic=
 
6211
    ;;
 
6212
  *)
 
6213
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6214
    ;;
 
6215
esac
 
6216
 
4794
6217
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4795
6218
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4796
 
if test "${lt_cv_compiler_c_o+set}" = set; then
4797
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4798
 
else
4799
 
 
4800
 
$rm -r conftest 2>/dev/null
4801
 
mkdir conftest
4802
 
cd conftest
4803
 
echo "int some_variable = 0;" > conftest.$ac_ext
4804
 
mkdir out
4805
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4806
 
# that will create temporary files in the current directory regardless of
4807
 
# the output directory.  Thus, making CWD read-only will cause this test
4808
 
# to fail, enabling locking or at least warning the user not to do parallel
4809
 
# builds.
4810
 
chmod -w .
4811
 
save_CFLAGS="$CFLAGS"
4812
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4813
 
compiler_c_o=no
4814
 
if { (eval echo configure:4814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4815
 
  # The compiler can only warn and ignore the option if not recognized
4816
 
  # So say no if there are warnings
4817
 
  if test -s out/conftest.err; then
4818
 
    lt_cv_compiler_c_o=no
4819
 
  else
4820
 
    lt_cv_compiler_c_o=yes
4821
 
  fi
4822
 
else
4823
 
  # Append any errors to the config.log.
4824
 
  cat out/conftest.err 1>&5
4825
 
  lt_cv_compiler_c_o=no
4826
 
fi
4827
 
CFLAGS="$save_CFLAGS"
4828
 
chmod u+w .
4829
 
$rm conftest* out/*
4830
 
rmdir out
4831
 
cd ..
4832
 
rmdir conftest
4833
 
$rm -r conftest 2>/dev/null
4834
 
 
4835
 
fi
4836
 
 
4837
 
compiler_c_o=$lt_cv_compiler_c_o
4838
 
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4839
 
echo "${ECHO_T}$compiler_c_o" >&6
4840
 
 
4841
 
if test x"$compiler_c_o" = x"yes"; then
4842
 
  # Check to see if we can write to a .lo
4843
 
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4844
 
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4845
 
  if test "${lt_cv_compiler_o_lo+set}" = set; then
4846
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4847
 
else
4848
 
 
4849
 
  lt_cv_compiler_o_lo=no
4850
 
  save_CFLAGS="$CFLAGS"
4851
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
4852
 
  save_objext="$ac_objext"
4853
 
  ac_objext=lo
4854
 
  cat >conftest.$ac_ext <<_ACEOF
4855
 
#line $LINENO "configure"
4856
 
/* confdefs.h.  */
4857
 
_ACEOF
4858
 
cat confdefs.h >>conftest.$ac_ext
4859
 
cat >>conftest.$ac_ext <<_ACEOF
4860
 
/* end confdefs.h.  */
4861
 
 
4862
 
int
4863
 
main ()
4864
 
{
4865
 
int some_variable = 0;
4866
 
  ;
4867
 
  return 0;
4868
 
}
4869
 
_ACEOF
4870
 
rm -f conftest.$ac_objext
4871
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872
 
  (eval $ac_compile) 2>&5
4873
 
  ac_status=$?
4874
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875
 
  (exit $ac_status); } &&
4876
 
         { ac_try='test -s conftest.$ac_objext'
4877
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878
 
  (eval $ac_try) 2>&5
4879
 
  ac_status=$?
4880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881
 
  (exit $ac_status); }; }; then
4882
 
      # The compiler can only warn and ignore the option if not recognized
4883
 
    # So say no if there are warnings
4884
 
    if test -s conftest.err; then
4885
 
      lt_cv_compiler_o_lo=no
4886
 
    else
4887
 
      lt_cv_compiler_o_lo=yes
4888
 
    fi
4889
 
 
4890
 
else
4891
 
  echo "$as_me: failed program was:" >&5
4892
 
sed 's/^/| /' conftest.$ac_ext >&5
4893
 
 
4894
 
fi
4895
 
rm -f conftest.$ac_objext conftest.$ac_ext
4896
 
  ac_objext="$save_objext"
4897
 
  CFLAGS="$save_CFLAGS"
4898
 
 
4899
 
fi
4900
 
 
4901
 
  compiler_o_lo=$lt_cv_compiler_o_lo
4902
 
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4903
 
echo "${ECHO_T}$compiler_o_lo" >&6
4904
 
else
4905
 
  compiler_o_lo=no
4906
 
fi
4907
 
##
4908
 
## END FIXME
4909
 
 
4910
 
## FIXME: this should be a separate macro
4911
 
##
4912
 
# Check to see if we can do hard links to lock some files if needed
 
6219
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6220
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6221
else
 
6222
  lt_cv_prog_compiler_c_o=no
 
6223
   $rm -r conftest 2>/dev/null
 
6224
   mkdir conftest
 
6225
   cd conftest
 
6226
   mkdir out
 
6227
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6228
 
 
6229
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6230
   # Insert the option either (1) after the last *FLAGS variable, or
 
6231
   # (2) before a word containing "conftest.", or (3) at the end.
 
6232
   # Note that $ac_compile itself does not contain backslashes and begins
 
6233
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6234
   lt_compile=`echo "$ac_compile" | $SED \
 
6235
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6236
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6237
   -e 's:$: $lt_compiler_flag:'`
 
6238
   (eval echo "\"\$as_me:6238: $lt_compile\"" >&5)
 
6239
   (eval "$lt_compile" 2>out/conftest.err)
 
6240
   ac_status=$?
 
6241
   cat out/conftest.err >&5
 
6242
   echo "$as_me:6242: \$? = $ac_status" >&5
 
6243
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6244
   then
 
6245
     # The compiler can only warn and ignore the option if not recognized
 
6246
     # So say no if there are warnings
 
6247
     if test ! -s out/conftest.err; then
 
6248
       lt_cv_prog_compiler_c_o=yes
 
6249
     fi
 
6250
   fi
 
6251
   chmod u+w .
 
6252
   $rm conftest*
 
6253
   # SGI C++ compiler will create directory out/ii_files/ for
 
6254
   # template instantiation
 
6255
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6256
   $rm out/* && rmdir out
 
6257
   cd ..
 
6258
   rmdir conftest
 
6259
   $rm conftest*
 
6260
 
 
6261
fi
 
6262
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6263
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6264
 
 
6265
 
4913
6266
hard_links="nottested"
4914
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
6267
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
4915
6268
  # do not overwrite the value of need_locks provided by the user
4916
6269
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4917
6270
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4931
6284
else
4932
6285
  need_locks=no
4933
6286
fi
4934
 
##
4935
 
## END FIXME
4936
 
 
4937
 
## FIXME: this should be a separate macro
4938
 
##
4939
 
if test "$GCC" = yes; then
4940
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4941
 
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4942
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4943
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4944
 
  save_CFLAGS="$CFLAGS"
4945
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4946
 
  compiler_rtti_exceptions=no
4947
 
  cat >conftest.$ac_ext <<_ACEOF
4948
 
#line $LINENO "configure"
4949
 
/* confdefs.h.  */
4950
 
_ACEOF
4951
 
cat confdefs.h >>conftest.$ac_ext
4952
 
cat >>conftest.$ac_ext <<_ACEOF
4953
 
/* end confdefs.h.  */
4954
 
 
4955
 
int
4956
 
main ()
4957
 
{
4958
 
int some_variable = 0;
4959
 
  ;
4960
 
  return 0;
4961
 
}
4962
 
_ACEOF
4963
 
rm -f conftest.$ac_objext
4964
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965
 
  (eval $ac_compile) 2>&5
4966
 
  ac_status=$?
4967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968
 
  (exit $ac_status); } &&
4969
 
         { ac_try='test -s conftest.$ac_objext'
4970
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971
 
  (eval $ac_try) 2>&5
4972
 
  ac_status=$?
4973
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974
 
  (exit $ac_status); }; }; then
4975
 
      # The compiler can only warn and ignore the option if not recognized
4976
 
    # So say no if there are warnings
4977
 
    if test -s conftest.err; then
4978
 
      compiler_rtti_exceptions=no
4979
 
    else
4980
 
      compiler_rtti_exceptions=yes
 
6287
 
 
6288
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6289
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6290
 
 
6291
  runpath_var=
 
6292
  allow_undefined_flag=
 
6293
  enable_shared_with_static_runtimes=no
 
6294
  archive_cmds=
 
6295
  archive_expsym_cmds=
 
6296
  old_archive_From_new_cmds=
 
6297
  old_archive_from_expsyms_cmds=
 
6298
  export_dynamic_flag_spec=
 
6299
  whole_archive_flag_spec=
 
6300
  thread_safe_flag_spec=
 
6301
  hardcode_libdir_flag_spec=
 
6302
  hardcode_libdir_flag_spec_ld=
 
6303
  hardcode_libdir_separator=
 
6304
  hardcode_direct=no
 
6305
  hardcode_minus_L=no
 
6306
  hardcode_shlibpath_var=unsupported
 
6307
  link_all_deplibs=unknown
 
6308
  hardcode_automatic=no
 
6309
  module_cmds=
 
6310
  module_expsym_cmds=
 
6311
  always_export_symbols=no
 
6312
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6313
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6314
  # included in the symbol list
 
6315
  include_expsyms=
 
6316
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6317
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6318
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6319
  # as well as any symbol that contains `d'.
 
6320
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6321
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6322
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6323
  # the symbol is explicitly referenced.  Since portable code cannot
 
6324
  # rely on this symbol name, it's probably fine to never include it in
 
6325
  # preloaded symbol tables.
 
6326
  extract_expsyms_cmds=
 
6327
 
 
6328
  case $host_os in
 
6329
  cygwin* | mingw* | pw32*)
 
6330
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6331
    # When not using gcc, we currently assume that we are using
 
6332
    # Microsoft Visual C++.
 
6333
    if test "$GCC" != yes; then
 
6334
      with_gnu_ld=no
4981
6335
    fi
4982
 
 
4983
 
else
4984
 
  echo "$as_me: failed program was:" >&5
4985
 
sed 's/^/| /' conftest.$ac_ext >&5
4986
 
 
4987
 
fi
4988
 
rm -f conftest.$ac_objext conftest.$ac_ext
4989
 
  CFLAGS="$save_CFLAGS"
4990
 
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4991
 
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4992
 
 
4993
 
  if test "$compiler_rtti_exceptions" = "yes"; then
4994
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4995
 
  else
4996
 
    no_builtin_flag=' -fno-builtin'
4997
 
  fi
4998
 
fi
4999
 
##
5000
 
## END FIXME
5001
 
 
5002
 
## FIXME: this should be a separate macro
5003
 
##
5004
 
# See if the linker supports building shared libraries.
5005
 
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5006
 
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5007
 
 
5008
 
allow_undefined_flag=
5009
 
no_undefined_flag=
5010
 
need_lib_prefix=unknown
5011
 
need_version=unknown
5012
 
# when you set need_version to no, make sure it does not cause -set_version
5013
 
# flags to be left without arguments
5014
 
archive_cmds=
5015
 
archive_expsym_cmds=
5016
 
old_archive_from_new_cmds=
5017
 
old_archive_from_expsyms_cmds=
5018
 
export_dynamic_flag_spec=
5019
 
whole_archive_flag_spec=
5020
 
thread_safe_flag_spec=
5021
 
hardcode_into_libs=no
5022
 
hardcode_libdir_flag_spec=
5023
 
hardcode_libdir_separator=
5024
 
hardcode_direct=no
5025
 
hardcode_minus_L=no
5026
 
hardcode_shlibpath_var=unsupported
5027
 
runpath_var=
5028
 
link_all_deplibs=unknown
5029
 
always_export_symbols=no
5030
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5031
 
# include_expsyms should be a list of space-separated symbols to be *always*
5032
 
# included in the symbol list
5033
 
include_expsyms=
5034
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5035
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5036
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5037
 
# as well as any symbol that contains `d'.
5038
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5039
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5040
 
# platforms (ab)use it in PIC code, but their linkers get confused if
5041
 
# the symbol is explicitly referenced.  Since portable code cannot
5042
 
# rely on this symbol name, it's probably fine to never include it in
5043
 
# preloaded symbol tables.
5044
 
extract_expsyms_cmds=
5045
 
 
5046
 
case $host_os in
5047
 
cygwin* | mingw* | pw32*)
5048
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5049
 
  # When not using gcc, we currently assume that we are using
5050
 
  # Microsoft Visual C++.
5051
 
  if test "$GCC" != yes; then
 
6336
    ;;
 
6337
  openbsd*)
5052
6338
    with_gnu_ld=no
5053
 
  fi
5054
 
  ;;
5055
 
openbsd*)
5056
 
  with_gnu_ld=no
5057
 
  ;;
5058
 
esac
5059
 
 
5060
 
ld_shlibs=yes
5061
 
if test "$with_gnu_ld" = yes; then
5062
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
5063
 
  wlarc='${wl}'
5064
 
 
5065
 
  # See if GNU ld supports shared libraries.
5066
 
  case $host_os in
5067
 
  aix3* | aix4* | aix5*)
5068
 
    # On AIX, the GNU linker is very broken
5069
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5070
 
    ld_shlibs=no
5071
 
    cat <<EOF 1>&2
 
6339
    ;;
 
6340
  esac
 
6341
 
 
6342
  ld_shlibs=yes
 
6343
  if test "$with_gnu_ld" = yes; then
 
6344
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6345
    wlarc='${wl}'
 
6346
 
 
6347
    # See if GNU ld supports shared libraries.
 
6348
    case $host_os in
 
6349
    aix3* | aix4* | aix5*)
 
6350
      # On AIX/PPC, the GNU linker is very broken
 
6351
      if test "$host_cpu" != ia64; then
 
6352
        ld_shlibs=no
 
6353
        cat <<EOF 1>&2
5072
6354
 
5073
6355
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5074
6356
*** to be unable to reliably create shared libraries on AIX.
5077
6359
*** so that a non-GNU linker is found, and then restart.
5078
6360
 
5079
6361
EOF
5080
 
    ;;
5081
 
 
5082
 
  amigaos*)
5083
 
    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)'
5084
 
    hardcode_libdir_flag_spec='-L$libdir'
5085
 
    hardcode_minus_L=yes
5086
 
 
5087
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5088
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
5089
 
    # to version 4, is to share data among multiple programs linked
5090
 
    # with the same dynamic library.  Since this doesn't match the
5091
 
    # behavior of shared libraries on other platforms, we can use
5092
 
    # them.
5093
 
    ld_shlibs=no
5094
 
    ;;
5095
 
 
5096
 
  beos*)
5097
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6362
      fi
 
6363
      ;;
 
6364
 
 
6365
    amigaos*)
 
6366
      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)'
 
6367
      hardcode_libdir_flag_spec='-L$libdir'
 
6368
      hardcode_minus_L=yes
 
6369
 
 
6370
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6371
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6372
      # to version 4, is to share data among multiple programs linked
 
6373
      # with the same dynamic library.  Since this doesn't match the
 
6374
      # behavior of shared libraries on other platforms, we can't use
 
6375
      # them.
 
6376
      ld_shlibs=no
 
6377
      ;;
 
6378
 
 
6379
    beos*)
 
6380
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6381
        allow_undefined_flag=unsupported
 
6382
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6383
        # support --undefined.  This deserves some investigation.  FIXME
 
6384
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6385
      else
 
6386
        ld_shlibs=no
 
6387
      fi
 
6388
      ;;
 
6389
 
 
6390
    cygwin* | mingw* | pw32*)
 
6391
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6392
      # as there is no search path for DLLs.
 
6393
      hardcode_libdir_flag_spec='-L$libdir'
5098
6394
      allow_undefined_flag=unsupported
5099
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5100
 
      # support --undefined.  This deserves some investigation.  FIXME
5101
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5102
 
    else
5103
 
      ld_shlibs=no
5104
 
    fi
5105
 
    ;;
5106
 
 
5107
 
  cygwin* | mingw* | pw32*)
5108
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5109
 
    # no search path for DLLs.
5110
 
    hardcode_libdir_flag_spec='-L$libdir'
5111
 
    allow_undefined_flag=unsupported
5112
 
    always_export_symbols=yes
5113
 
 
5114
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5115
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5116
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5117
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5118
 
      else $CC -o impgen impgen.c ; fi)~
5119
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5120
 
 
5121
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5122
 
 
5123
 
    # cygwin and mingw dlls have different entry points and sets of symbols
5124
 
    # to exclude.
5125
 
    # FIXME: what about values for MSVC?
5126
 
    dll_entry=__cygwin_dll_entry@12
5127
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5128
 
    case $host_os in
5129
 
    mingw*)
5130
 
      # mingw values
5131
 
      dll_entry=_DllMainCRTStartup@12
5132
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5133
 
      ;;
5134
 
    esac
5135
 
 
5136
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
5137
 
    # of the two symbol sets.
5138
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5139
 
 
5140
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
5141
 
    # can override, but on older systems we have to supply one (in ltdll.c)
5142
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
5143
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5144
 
      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~
5145
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5146
 
    else
5147
 
      ltdll_obj=
5148
 
      ltdll_cmds=
5149
 
    fi
5150
 
 
5151
 
    # Extract the symbol export list from an `--export-all' def file,
5152
 
    # then regenerate the def file from the symbol export list, so that
5153
 
    # the compiled dll only exports the symbol export list.
5154
 
    # Be careful not to strip the DATA tag left be newer dlltools.
5155
 
    export_symbols_cmds="$ltdll_cmds"'
5156
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5157
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5158
 
 
5159
 
    # If the export-symbols file already is a .def file (1st line
5160
 
    # is EXPORTS), use it as is.
5161
 
    # If DATA tags from a recent dlltool are present, honour them!
5162
 
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5163
 
        cp $export_symbols $output_objdir/$soname-def;
5164
 
      else
5165
 
        echo EXPORTS > $output_objdir/$soname-def;
5166
 
        _lt_hint=1;
5167
 
        cat $export_symbols | while read symbol; do
5168
 
         set dummy \$symbol;
5169
 
         case \$# in
5170
 
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5171
 
           4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5172
 
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5173
 
         esac;
5174
 
         _lt_hint=`expr 1 + \$_lt_hint`;
5175
 
        done;
5176
 
      fi~
5177
 
      '"$ltdll_cmds"'
5178
 
      $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~
5179
 
      $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~
5180
 
      $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~
5181
 
      $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~
5182
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5183
 
    ;;
5184
 
 
5185
 
  netbsd*)
5186
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5187
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5188
 
      wlarc=
5189
 
    else
5190
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5191
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5192
 
    fi
5193
 
    ;;
5194
 
 
5195
 
  solaris* | sysv5*)
5196
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5197
 
      ld_shlibs=no
5198
 
      cat <<EOF 1>&2
 
6395
      always_export_symbols=no
 
6396
      enable_shared_with_static_runtimes=yes
 
6397
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6398
 
 
6399
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6400
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6401
        # If the export-symbols file already is a .def file (1st line
 
6402
        # is EXPORTS), use it as is; otherwise, prepend...
 
6403
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6404
          cp $export_symbols $output_objdir/$soname.def;
 
6405
        else
 
6406
          echo EXPORTS > $output_objdir/$soname.def;
 
6407
          cat $export_symbols >> $output_objdir/$soname.def;
 
6408
        fi~
 
6409
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6410
      else
 
6411
        ld_shlibs=no
 
6412
      fi
 
6413
      ;;
 
6414
 
 
6415
    netbsd*)
 
6416
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6417
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6418
        wlarc=
 
6419
      else
 
6420
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6421
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6422
      fi
 
6423
      ;;
 
6424
 
 
6425
    solaris* | sysv5*)
 
6426
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6427
        ld_shlibs=no
 
6428
        cat <<EOF 1>&2
5199
6429
 
5200
6430
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5201
6431
*** create shared libraries on Solaris systems.  Therefore, libtool
5205
6435
*** used, and then restart.
5206
6436
 
5207
6437
EOF
5208
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5209
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5210
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5211
 
    else
5212
 
      ld_shlibs=no
5213
 
    fi
5214
 
    ;;
5215
 
 
5216
 
  sunos4*)
5217
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5218
 
    wlarc=
5219
 
    hardcode_direct=yes
5220
 
    hardcode_shlibpath_var=no
5221
 
    ;;
5222
 
 
5223
 
  *)
5224
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5225
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5226
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5227
 
    else
5228
 
      ld_shlibs=no
5229
 
    fi
5230
 
    ;;
5231
 
  esac
5232
 
 
5233
 
  if test "$ld_shlibs" = yes; then
5234
 
    runpath_var=LD_RUN_PATH
5235
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5236
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
5237
 
    case $host_os in
5238
 
    cygwin* | mingw* | pw32*)
5239
 
      # dlltool doesn't understand --whole-archive et. al.
5240
 
      whole_archive_flag_spec=
5241
 
      ;;
 
6438
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6439
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6440
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6441
      else
 
6442
        ld_shlibs=no
 
6443
      fi
 
6444
      ;;
 
6445
 
 
6446
    sunos4*)
 
6447
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6448
      wlarc=
 
6449
      hardcode_direct=yes
 
6450
      hardcode_shlibpath_var=no
 
6451
      ;;
 
6452
 
 
6453
  linux*)
 
6454
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6455
      tmp_addflag=
 
6456
      case $CC,$host_cpu in
 
6457
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
 
6458
        tmp_addflag=' -fpic' ;;
 
6459
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
 
6460
        tmp_addflag=' -i_dynamic' ;;
 
6461
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
 
6462
        tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6463
      ifc* | ifort*)                    # Intel Fortran compiler
 
6464
        tmp_addflag=' -nofor_main' ;;
 
6465
      esac
 
6466
      archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6467
      supports_anon_versioning=no
 
6468
      case `$LD -v 2>/dev/null` in
 
6469
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6470
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6471
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6472
        *\ 2.11.*) ;; # other 2.11 versions
 
6473
        *) supports_anon_versioning=yes ;;
 
6474
      esac
 
6475
      if test $supports_anon_versioning = yes; then
 
6476
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6477
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6478
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
6479
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6480
      else
 
6481
        archive_expsym_cmds=$archive_cmds
 
6482
      fi
 
6483
    else
 
6484
      ld_shlibs=no
 
6485
    fi
 
6486
    ;;
 
6487
 
5242
6488
    *)
 
6489
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6490
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6491
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6492
      else
 
6493
        ld_shlibs=no
 
6494
      fi
 
6495
      ;;
 
6496
    esac
 
6497
 
 
6498
    if test "$ld_shlibs" = yes; then
 
6499
      runpath_var=LD_RUN_PATH
 
6500
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6501
      export_dynamic_flag_spec='${wl}--export-dynamic'
5243
6502
      # ancient GNU ld didn't support --whole-archive et. al.
5244
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5245
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6503
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6504
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5246
6505
      else
5247
 
        whole_archive_flag_spec=
 
6506
        whole_archive_flag_spec=
5248
6507
      fi
5249
 
      ;;
5250
 
    esac
5251
 
  fi
5252
 
else
5253
 
  # PORTME fill in a description of your system's linker (not GNU ld)
5254
 
  case $host_os in
5255
 
  aix3*)
5256
 
    allow_undefined_flag=unsupported
5257
 
    always_export_symbols=yes
5258
 
    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'
5259
 
    # Note: this linker hardcodes the directories in LIBPATH if there
5260
 
    # are no directories specified by -L.
5261
 
    hardcode_minus_L=yes
5262
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
5263
 
      # Neither direct hardcoding nor static linking is supported with a
5264
 
      # broken collect2.
5265
 
      hardcode_direct=unsupported
5266
6508
    fi
5267
 
    ;;
5268
 
 
5269
 
  aix4* | aix5*)
5270
 
    if test "$host_cpu" = ia64; then
5271
 
      # On IA64, the linker does run time linking by default, so we don't
5272
 
      # have to do anything special.
5273
 
      aix_use_runtimelinking=no
5274
 
      exp_sym_flag='-Bexport'
5275
 
      no_entry_flag=""
 
6509
  else
 
6510
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6511
    case $host_os in
 
6512
    aix3*)
 
6513
      allow_undefined_flag=unsupported
 
6514
      always_export_symbols=yes
 
6515
      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'
 
6516
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6517
      # are no directories specified by -L.
 
6518
      hardcode_minus_L=yes
 
6519
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6520
        # Neither direct hardcoding nor static linking is supported with a
 
6521
        # broken collect2.
 
6522
        hardcode_direct=unsupported
 
6523
      fi
 
6524
      ;;
 
6525
 
 
6526
    aix4* | aix5*)
 
6527
      if test "$host_cpu" = ia64; then
 
6528
        # On IA64, the linker does run time linking by default, so we don't
 
6529
        # have to do anything special.
 
6530
        aix_use_runtimelinking=no
 
6531
        exp_sym_flag='-Bexport'
 
6532
        no_entry_flag=""
 
6533
      else
 
6534
        # If we're using GNU nm, then we don't want the "-C" option.
 
6535
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6536
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6537
          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'
 
6538
        else
 
6539
          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'
 
6540
        fi
 
6541
        aix_use_runtimelinking=no
 
6542
 
 
6543
        # Test if we are trying to use run time linking or normal
 
6544
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6545
        # need to do runtime linking.
 
6546
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6547
          for ld_flag in $LDFLAGS; do
 
6548
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6549
            aix_use_runtimelinking=yes
 
6550
            break
 
6551
          fi
 
6552
          done
 
6553
        esac
 
6554
 
 
6555
        exp_sym_flag='-bexport'
 
6556
        no_entry_flag='-bnoentry'
 
6557
      fi
 
6558
 
 
6559
      # When large executables or shared objects are built, AIX ld can
 
6560
      # have problems creating the table of contents.  If linking a library
 
6561
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6562
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6563
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6564
 
 
6565
      archive_cmds=''
 
6566
      hardcode_direct=yes
 
6567
      hardcode_libdir_separator=':'
 
6568
      link_all_deplibs=yes
 
6569
 
 
6570
      if test "$GCC" = yes; then
 
6571
        case $host_os in aix4.[012]|aix4.[012].*)
 
6572
        # We only want to do this on AIX 4.2 and lower, the check
 
6573
        # below for broken collect2 doesn't work under 4.3+
 
6574
          collect2name=`${CC} -print-prog-name=collect2`
 
6575
          if test -f "$collect2name" && \
 
6576
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6577
          then
 
6578
          # We have reworked collect2
 
6579
          hardcode_direct=yes
 
6580
          else
 
6581
          # We have old collect2
 
6582
          hardcode_direct=unsupported
 
6583
          # It fails to find uninstalled libraries when the uninstalled
 
6584
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6585
          # to unsupported forces relinking
 
6586
          hardcode_minus_L=yes
 
6587
          hardcode_libdir_flag_spec='-L$libdir'
 
6588
          hardcode_libdir_separator=
 
6589
          fi
 
6590
        esac
 
6591
        shared_flag='-shared'
 
6592
        if test "$aix_use_runtimelinking" = yes; then
 
6593
          shared_flag="$shared_flag "'${wl}-G'
 
6594
        fi
 
6595
      else
 
6596
        # not using gcc
 
6597
        if test "$host_cpu" = ia64; then
 
6598
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6599
        # chokes on -Wl,-G. The following line is correct:
 
6600
          shared_flag='-G'
 
6601
        else
 
6602
        if test "$aix_use_runtimelinking" = yes; then
 
6603
            shared_flag='${wl}-G'
 
6604
          else
 
6605
            shared_flag='${wl}-bM:SRE'
 
6606
        fi
 
6607
        fi
 
6608
      fi
 
6609
 
 
6610
      # It seems that -bexpall does not export symbols beginning with
 
6611
      # underscore (_), so it is better to generate a list of symbols to export.
 
6612
      always_export_symbols=yes
 
6613
      if test "$aix_use_runtimelinking" = yes; then
 
6614
        # Warning - without using the other runtime loading flags (-brtl),
 
6615
        # -berok will link without error, but may produce a broken library.
 
6616
        allow_undefined_flag='-berok'
 
6617
       # Determine the default libpath from the value encoded in an empty executable.
 
6618
       cat >conftest.$ac_ext <<_ACEOF
 
6619
/* confdefs.h.  */
 
6620
_ACEOF
 
6621
cat confdefs.h >>conftest.$ac_ext
 
6622
cat >>conftest.$ac_ext <<_ACEOF
 
6623
/* end confdefs.h.  */
 
6624
 
 
6625
int
 
6626
main ()
 
6627
{
 
6628
 
 
6629
  ;
 
6630
  return 0;
 
6631
}
 
6632
_ACEOF
 
6633
rm -f conftest.$ac_objext conftest$ac_exeext
 
6634
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6635
  (eval $ac_link) 2>conftest.er1
 
6636
  ac_status=$?
 
6637
  grep -v '^ *+' conftest.er1 >conftest.err
 
6638
  rm -f conftest.er1
 
6639
  cat conftest.err >&5
 
6640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6641
  (exit $ac_status); } &&
 
6642
         { ac_try='test -z "$ac_c_werror_flag"
 
6643
                         || test ! -s conftest.err'
 
6644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6645
  (eval $ac_try) 2>&5
 
6646
  ac_status=$?
 
6647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6648
  (exit $ac_status); }; } &&
 
6649
         { ac_try='test -s conftest$ac_exeext'
 
6650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6651
  (eval $ac_try) 2>&5
 
6652
  ac_status=$?
 
6653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6654
  (exit $ac_status); }; }; then
 
6655
 
 
6656
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6657
}'`
 
6658
# Check for a 64-bit object if we didn't find anything.
 
6659
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; }
 
6660
}'`; fi
 
6661
else
 
6662
  echo "$as_me: failed program was:" >&5
 
6663
sed 's/^/| /' conftest.$ac_ext >&5
 
6664
 
 
6665
fi
 
6666
rm -f conftest.err conftest.$ac_objext \
 
6667
      conftest$ac_exeext conftest.$ac_ext
 
6668
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6669
 
 
6670
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6671
        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"
 
6672
       else
 
6673
        if test "$host_cpu" = ia64; then
 
6674
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6675
          allow_undefined_flag="-z nodefs"
 
6676
          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"
 
6677
        else
 
6678
         # Determine the default libpath from the value encoded in an empty executable.
 
6679
         cat >conftest.$ac_ext <<_ACEOF
 
6680
/* confdefs.h.  */
 
6681
_ACEOF
 
6682
cat confdefs.h >>conftest.$ac_ext
 
6683
cat >>conftest.$ac_ext <<_ACEOF
 
6684
/* end confdefs.h.  */
 
6685
 
 
6686
int
 
6687
main ()
 
6688
{
 
6689
 
 
6690
  ;
 
6691
  return 0;
 
6692
}
 
6693
_ACEOF
 
6694
rm -f conftest.$ac_objext conftest$ac_exeext
 
6695
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6696
  (eval $ac_link) 2>conftest.er1
 
6697
  ac_status=$?
 
6698
  grep -v '^ *+' conftest.er1 >conftest.err
 
6699
  rm -f conftest.er1
 
6700
  cat conftest.err >&5
 
6701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6702
  (exit $ac_status); } &&
 
6703
         { ac_try='test -z "$ac_c_werror_flag"
 
6704
                         || test ! -s conftest.err'
 
6705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6706
  (eval $ac_try) 2>&5
 
6707
  ac_status=$?
 
6708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6709
  (exit $ac_status); }; } &&
 
6710
         { ac_try='test -s conftest$ac_exeext'
 
6711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6712
  (eval $ac_try) 2>&5
 
6713
  ac_status=$?
 
6714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6715
  (exit $ac_status); }; }; then
 
6716
 
 
6717
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6718
}'`
 
6719
# Check for a 64-bit object if we didn't find anything.
 
6720
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; }
 
6721
}'`; fi
 
6722
else
 
6723
  echo "$as_me: failed program was:" >&5
 
6724
sed 's/^/| /' conftest.$ac_ext >&5
 
6725
 
 
6726
fi
 
6727
rm -f conftest.err conftest.$ac_objext \
 
6728
      conftest$ac_exeext conftest.$ac_ext
 
6729
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6730
 
 
6731
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6732
          # Warning - without using the other run time loading flags,
 
6733
          # -berok will link without error, but may produce a broken library.
 
6734
          no_undefined_flag=' ${wl}-bernotok'
 
6735
          allow_undefined_flag=' ${wl}-berok'
 
6736
          # -bexpall does not export symbols beginning with underscore (_)
 
6737
          always_export_symbols=yes
 
6738
          # Exported symbols can be pulled into shared objects from archives
 
6739
          whole_archive_flag_spec=' '
 
6740
          archive_cmds_need_lc=yes
 
6741
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6742
          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'
 
6743
        fi
 
6744
      fi
 
6745
      ;;
 
6746
 
 
6747
    amigaos*)
 
6748
      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)'
 
6749
      hardcode_libdir_flag_spec='-L$libdir'
 
6750
      hardcode_minus_L=yes
 
6751
      # see comment about different semantics on the GNU ld section
 
6752
      ld_shlibs=no
 
6753
      ;;
 
6754
 
 
6755
    bsdi[45]*)
 
6756
      export_dynamic_flag_spec=-rdynamic
 
6757
      ;;
 
6758
 
 
6759
    cygwin* | mingw* | pw32*)
 
6760
      # When not using gcc, we currently assume that we are using
 
6761
      # Microsoft Visual C++.
 
6762
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6763
      # no search path for DLLs.
 
6764
      hardcode_libdir_flag_spec=' '
 
6765
      allow_undefined_flag=unsupported
 
6766
      # Tell ltmain to make .lib files, not .a files.
 
6767
      libext=lib
 
6768
      # Tell ltmain to make .dll files, not .so files.
 
6769
      shrext_cmds=".dll"
 
6770
      # FIXME: Setting linknames here is a bad hack.
 
6771
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6772
      # The linker will automatically build a .lib file if we build a DLL.
 
6773
      old_archive_From_new_cmds='true'
 
6774
      # FIXME: Should let the user specify the lib program.
 
6775
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6776
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6777
      enable_shared_with_static_runtimes=yes
 
6778
      ;;
 
6779
 
 
6780
    darwin* | rhapsody*)
 
6781
      case "$host_os" in
 
6782
        rhapsody* | darwin1.[012])
 
6783
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
6784
         ;;
 
6785
       *) # Darwin 1.3 on
 
6786
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6787
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6788
         else
 
6789
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6790
             10.[012])
 
6791
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6792
               ;;
 
6793
             10.*)
 
6794
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
6795
               ;;
 
6796
           esac
 
6797
         fi
 
6798
         ;;
 
6799
      esac
 
6800
      archive_cmds_need_lc=no
 
6801
      hardcode_direct=no
 
6802
      hardcode_automatic=yes
 
6803
      hardcode_shlibpath_var=unsupported
 
6804
      whole_archive_flag_spec=''
 
6805
      link_all_deplibs=yes
 
6806
    if test "$GCC" = yes ; then
 
6807
        output_verbose_link_cmd='echo'
 
6808
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6809
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6810
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6811
      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}'
 
6812
      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}'
5276
6813
    else
5277
 
      aix_use_runtimelinking=no
5278
 
 
5279
 
      # Test if we are trying to use run time linking or normal
5280
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5281
 
      # need to do runtime linking.
5282
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5283
 
        for ld_flag in $LDFLAGS; do
5284
 
          case $ld_flag in
5285
 
          *-brtl*)
5286
 
            aix_use_runtimelinking=yes
5287
 
            break
5288
 
          ;;
5289
 
          esac
5290
 
        done
 
6814
      case "$cc_basename" in
 
6815
        xlc*)
 
6816
         output_verbose_link_cmd='echo'
 
6817
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6818
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6819
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6820
         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}'
 
6821
          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}'
 
6822
          ;;
 
6823
       *)
 
6824
         ld_shlibs=no
 
6825
          ;;
5291
6826
      esac
5292
 
 
5293
 
      exp_sym_flag='-bexport'
5294
 
      no_entry_flag='-bnoentry'
5295
6827
    fi
5296
 
 
5297
 
    # When large executables or shared objects are built, AIX ld can
5298
 
    # have problems creating the table of contents.  If linking a library
5299
 
    # or program results in "error TOC overflow" add -mminimal-toc to
5300
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5301
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5302
 
 
5303
 
    hardcode_direct=yes
5304
 
    archive_cmds=''
5305
 
    hardcode_libdir_separator=':'
5306
 
    if test "$GCC" = yes; then
5307
 
      case $host_os in aix4.[012]|aix4.[012].*)
5308
 
        collect2name=`${CC} -print-prog-name=collect2`
5309
 
        if test -f "$collect2name" && \
5310
 
          strings "$collect2name" | grep resolve_lib_name >/dev/null
5311
 
        then
5312
 
          # We have reworked collect2
 
6828
      ;;
 
6829
 
 
6830
    dgux*)
 
6831
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6832
      hardcode_libdir_flag_spec='-L$libdir'
 
6833
      hardcode_shlibpath_var=no
 
6834
      ;;
 
6835
 
 
6836
    freebsd1*)
 
6837
      ld_shlibs=no
 
6838
      ;;
 
6839
 
 
6840
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6841
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6842
    # does not break anything, and helps significantly (at the cost of a little
 
6843
    # extra space).
 
6844
    freebsd2.2*)
 
6845
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6846
      hardcode_libdir_flag_spec='-R$libdir'
 
6847
      hardcode_direct=yes
 
6848
      hardcode_shlibpath_var=no
 
6849
      ;;
 
6850
 
 
6851
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6852
    freebsd2*)
 
6853
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6854
      hardcode_direct=yes
 
6855
      hardcode_minus_L=yes
 
6856
      hardcode_shlibpath_var=no
 
6857
      ;;
 
6858
 
 
6859
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6860
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6861
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6862
      hardcode_libdir_flag_spec='-R$libdir'
 
6863
      hardcode_direct=yes
 
6864
      hardcode_shlibpath_var=no
 
6865
      ;;
 
6866
 
 
6867
    hpux9*)
 
6868
      if test "$GCC" = yes; then
 
6869
        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'
 
6870
      else
 
6871
        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'
 
6872
      fi
 
6873
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6874
      hardcode_libdir_separator=:
 
6875
      hardcode_direct=yes
 
6876
 
 
6877
      # hardcode_minus_L: Not really in the search PATH,
 
6878
      # but as the default location of the library.
 
6879
      hardcode_minus_L=yes
 
6880
      export_dynamic_flag_spec='${wl}-E'
 
6881
      ;;
 
6882
 
 
6883
    hpux10* | hpux11*)
 
6884
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6885
        case "$host_cpu" in
 
6886
        hppa*64*|ia64*)
 
6887
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6888
          ;;
 
6889
        *)
 
6890
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6891
          ;;
 
6892
        esac
 
6893
      else
 
6894
        case "$host_cpu" in
 
6895
        hppa*64*|ia64*)
 
6896
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6897
          ;;
 
6898
        *)
 
6899
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6900
          ;;
 
6901
        esac
 
6902
      fi
 
6903
      if test "$with_gnu_ld" = no; then
 
6904
        case "$host_cpu" in
 
6905
        hppa*64*)
 
6906
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6907
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
6908
          hardcode_libdir_separator=:
 
6909
          hardcode_direct=no
 
6910
          hardcode_shlibpath_var=no
 
6911
          ;;
 
6912
        ia64*)
 
6913
          hardcode_libdir_flag_spec='-L$libdir'
 
6914
          hardcode_direct=no
 
6915
          hardcode_shlibpath_var=no
 
6916
 
 
6917
          # hardcode_minus_L: Not really in the search PATH,
 
6918
          # but as the default location of the library.
 
6919
          hardcode_minus_L=yes
 
6920
          ;;
 
6921
        *)
 
6922
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6923
          hardcode_libdir_separator=:
5313
6924
          hardcode_direct=yes
5314
 
        else
5315
 
          # We have old collect2
5316
 
          hardcode_direct=unsupported
5317
 
          # It fails to find uninstalled libraries when the uninstalled
5318
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5319
 
          # to unsupported forces relinking
 
6925
          export_dynamic_flag_spec='${wl}-E'
 
6926
 
 
6927
          # hardcode_minus_L: Not really in the search PATH,
 
6928
          # but as the default location of the library.
5320
6929
          hardcode_minus_L=yes
5321
 
          hardcode_libdir_flag_spec='-L$libdir'
5322
 
          hardcode_libdir_separator=
5323
 
        fi
5324
 
      esac
5325
 
 
5326
 
      shared_flag='-shared'
5327
 
    else
5328
 
      # not using gcc
5329
 
      if test "$host_cpu" = ia64; then
5330
 
        shared_flag='${wl}-G'
5331
 
      else
5332
 
        if test "$aix_use_runtimelinking" = yes; then
5333
 
          shared_flag='${wl}-G'
5334
 
        else
5335
 
          shared_flag='${wl}-bM:SRE'
5336
 
        fi
5337
 
      fi
5338
 
    fi
5339
 
 
5340
 
    # It seems that -bexpall can do strange things, so it is better to
5341
 
    # generate a list of symbols to export.
5342
 
    always_export_symbols=yes
5343
 
    if test "$aix_use_runtimelinking" = yes; then
5344
 
      # Warning - without using the other runtime loading flags (-brtl),
5345
 
      # -berok will link without error, but may produce a broken library.
5346
 
      allow_undefined_flag='-berok'
5347
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5348
 
      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"
5349
 
    else
5350
 
      if test "$host_cpu" = ia64; then
5351
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5352
 
        allow_undefined_flag="-z nodefs"
5353
 
        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"
5354
 
      else
5355
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5356
 
        # Warning - without using the other run time loading flags,
5357
 
        # -berok will link without error, but may produce a broken library.
5358
 
        allow_undefined_flag='${wl}-berok'
5359
 
        # This is a bit strange, but is similar to how AIX traditionally builds
5360
 
        # it's shared libraries.
5361
 
        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'
5362
 
      fi
5363
 
    fi
5364
 
    ;;
5365
 
 
5366
 
  amigaos*)
5367
 
    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)'
5368
 
    hardcode_libdir_flag_spec='-L$libdir'
5369
 
    hardcode_minus_L=yes
5370
 
    # see comment about different semantics on the GNU ld section
5371
 
    ld_shlibs=no
5372
 
    ;;
5373
 
 
5374
 
  cygwin* | mingw* | pw32*)
5375
 
    # When not using gcc, we currently assume that we are using
5376
 
    # Microsoft Visual C++.
5377
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5378
 
    # no search path for DLLs.
5379
 
    hardcode_libdir_flag_spec=' '
5380
 
    allow_undefined_flag=unsupported
5381
 
    # Tell ltmain to make .lib files, not .a files.
5382
 
    libext=lib
5383
 
    # FIXME: Setting linknames here is a bad hack.
5384
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5385
 
    # The linker will automatically build a .lib file if we build a DLL.
5386
 
    old_archive_from_new_cmds='true'
5387
 
    # FIXME: Should let the user specify the lib program.
5388
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5389
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
5390
 
    ;;
5391
 
 
5392
 
  darwin* | rhapsody*)
5393
 
    case "$host_os" in
5394
 
    rhapsody* | darwin1.[012])
5395
 
      allow_undefined_flag='-undefined suppress'
5396
 
      ;;
5397
 
    *) # Darwin 1.3 on
5398
 
      allow_undefined_flag='-flat_namespace -undefined suppress'
5399
 
      ;;
5400
 
    esac
5401
 
    # FIXME: Relying on posixy $() will cause problems for
5402
 
    #        cross-compilation, but unfortunately the echo tests do not
5403
 
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
5404
 
    #        `"' quotes if we put them in here... so don't!
5405
 
    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5406
 
    # We need to add '_' to the symbols in $export_symbols first
5407
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5408
 
    hardcode_direct=yes
5409
 
    hardcode_shlibpath_var=no
5410
 
    whole_archive_flag_spec='-all_load $convenience'
5411
 
    ;;
5412
 
 
5413
 
  freebsd1*)
5414
 
    ld_shlibs=no
5415
 
    ;;
5416
 
 
5417
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5418
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
5419
 
  # does not break anything, and helps significantly (at the cost of a little
5420
 
  # extra space).
5421
 
  freebsd2.2*)
5422
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5423
 
    hardcode_libdir_flag_spec='-R$libdir'
5424
 
    hardcode_direct=yes
5425
 
    hardcode_shlibpath_var=no
5426
 
    ;;
5427
 
 
5428
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5429
 
  freebsd2*)
5430
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5431
 
    hardcode_direct=yes
5432
 
    hardcode_minus_L=yes
5433
 
    hardcode_shlibpath_var=no
5434
 
    ;;
5435
 
 
5436
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5437
 
  freebsd*)
5438
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5439
 
    hardcode_libdir_flag_spec='-R$libdir'
5440
 
    hardcode_direct=yes
5441
 
    hardcode_shlibpath_var=no
5442
 
    ;;
5443
 
 
5444
 
  hpux9* | hpux10* | hpux11*)
5445
 
    case $host_os in
5446
 
    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' ;;
5447
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5448
 
    esac
5449
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5450
 
    hardcode_libdir_separator=:
5451
 
    hardcode_direct=yes
5452
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
5453
 
                         # location of the library.
5454
 
    export_dynamic_flag_spec='${wl}-E'
5455
 
    ;;
5456
 
 
5457
 
  irix5* | irix6* | nonstopux*)
5458
 
    if test "$GCC" = yes; then
5459
 
      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'
5460
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5461
 
    else
5462
 
      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'
5463
 
      hardcode_libdir_flag_spec='-rpath $libdir'
5464
 
    fi
5465
 
    hardcode_libdir_separator=:
5466
 
    link_all_deplibs=yes
5467
 
    ;;
5468
 
 
5469
 
  netbsd*)
5470
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5471
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5472
 
    else
5473
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5474
 
    fi
5475
 
    hardcode_libdir_flag_spec='-R$libdir'
5476
 
    hardcode_direct=yes
5477
 
    hardcode_shlibpath_var=no
5478
 
    ;;
5479
 
 
5480
 
  newsos6)
5481
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5482
 
    hardcode_direct=yes
5483
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5484
 
    hardcode_libdir_separator=:
5485
 
    hardcode_shlibpath_var=no
5486
 
    ;;
5487
 
 
5488
 
  openbsd*)
5489
 
    hardcode_direct=yes
5490
 
    hardcode_shlibpath_var=no
5491
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5492
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5493
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5494
 
      export_dynamic_flag_spec='${wl}-E'
5495
 
    else
5496
 
      case "$host_os" in
5497
 
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5498
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5499
 
        hardcode_libdir_flag_spec='-R$libdir'
5500
 
        ;;
5501
 
      *)
5502
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5503
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5504
 
        ;;
5505
 
      esac
5506
 
    fi
5507
 
    ;;
5508
 
 
5509
 
  os2*)
5510
 
    hardcode_libdir_flag_spec='-L$libdir'
5511
 
    hardcode_minus_L=yes
5512
 
    allow_undefined_flag=unsupported
5513
 
    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'
5514
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5515
 
    ;;
5516
 
 
5517
 
  osf3*)
5518
 
    if test "$GCC" = yes; then
5519
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5520
 
      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'
5521
 
    else
5522
 
      allow_undefined_flag=' -expect_unresolved \*'
5523
 
      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'
5524
 
    fi
5525
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5526
 
    hardcode_libdir_separator=:
5527
 
    ;;
5528
 
 
5529
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
5530
 
    if test "$GCC" = yes; then
5531
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5532
 
      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'
5533
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5534
 
    else
5535
 
      allow_undefined_flag=' -expect_unresolved \*'
5536
 
      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'
5537
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5538
 
      $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'
5539
 
 
5540
 
      #Both c and cxx compiler support -rpath directly
5541
 
      hardcode_libdir_flag_spec='-rpath $libdir'
5542
 
    fi
5543
 
    hardcode_libdir_separator=:
5544
 
    ;;
5545
 
 
5546
 
  sco3.2v5*)
5547
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5548
 
    hardcode_shlibpath_var=no
5549
 
    runpath_var=LD_RUN_PATH
5550
 
    hardcode_runpath_var=yes
5551
 
    export_dynamic_flag_spec='${wl}-Bexport'
5552
 
    ;;
5553
 
 
5554
 
  solaris*)
5555
 
    # gcc --version < 3.0 without binutils cannot create self contained
5556
 
    # shared libraries reliably, requiring libgcc.a to resolve some of
5557
 
    # the object symbols generated in some cases.  Libraries that use
5558
 
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5559
 
    # a copy of libgcc.a into every shared library to guarantee resolving
5560
 
    # such symbols causes other problems:  According to Tim Van Holder
5561
 
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5562
 
    # (to the application) exception stack for one thing.
5563
 
    no_undefined_flag=' -z defs'
5564
 
    if test "$GCC" = yes; then
5565
 
      case `$CC --version 2>/dev/null` in
5566
 
      [12].*)
5567
 
        cat <<EOF 1>&2
5568
 
 
5569
 
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5570
 
*** create self contained shared libraries on Solaris systems, without
5571
 
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5572
 
*** -no-undefined support, which will at least allow you to build shared
5573
 
*** libraries.  However, you may find that when you link such libraries
5574
 
*** into an application without using GCC, you have to manually add
5575
 
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5576
 
*** upgrade to a newer version of GCC.  Another option is to rebuild your
5577
 
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5578
 
 
5579
 
EOF
5580
 
        no_undefined_flag=
5581
 
        ;;
5582
 
      esac
5583
 
    fi
5584
 
    # $CC -shared without GNU ld will not create a library from C++
5585
 
    # object files and a static libstdc++, better avoid it by now
5586
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5587
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5588
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5589
 
    hardcode_libdir_flag_spec='-R$libdir'
5590
 
    hardcode_shlibpath_var=no
5591
 
    case $host_os in
5592
 
    solaris2.[0-5] | solaris2.[0-5].*) ;;
5593
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5594
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5595
 
    esac
5596
 
    link_all_deplibs=yes
5597
 
    ;;
5598
 
 
5599
 
  sunos4*)
5600
 
    if test "x$host_vendor" = xsequent; then
5601
 
      # Use $CC to link under sequent, because it throws in some extra .o
5602
 
      # files that make .init and .fini sections work.
5603
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5604
 
    else
5605
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5606
 
    fi
5607
 
    hardcode_libdir_flag_spec='-L$libdir'
5608
 
    hardcode_direct=yes
5609
 
    hardcode_minus_L=yes
5610
 
    hardcode_shlibpath_var=no
5611
 
    ;;
5612
 
 
5613
 
  sysv4)
5614
 
    case $host_vendor in
5615
 
      sni)
5616
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5617
 
        hardcode_direct=yes # is this really true???
5618
 
        ;;
5619
 
      siemens)
5620
 
        ## LD is ld it makes a PLAMLIB
5621
 
        ## CC just makes a GrossModule.
5622
 
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5623
 
        reload_cmds='$CC -r -o $output$reload_objs'
5624
 
        hardcode_direct=no
5625
 
        ;;
5626
 
      motorola)
5627
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5628
 
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5629
 
        ;;
5630
 
    esac
5631
 
    runpath_var='LD_RUN_PATH'
5632
 
    hardcode_shlibpath_var=no
5633
 
    ;;
5634
 
 
5635
 
  sysv4.3*)
5636
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5637
 
    hardcode_shlibpath_var=no
5638
 
    export_dynamic_flag_spec='-Bexport'
5639
 
    ;;
5640
 
 
5641
 
  sysv5*)
5642
 
    no_undefined_flag=' -z text'
5643
 
    # $CC -shared without GNU ld will not create a library from C++
5644
 
    # object files and a static libstdc++, better avoid it by now
5645
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5646
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5647
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5648
 
    hardcode_libdir_flag_spec=
5649
 
    hardcode_shlibpath_var=no
5650
 
    runpath_var='LD_RUN_PATH'
5651
 
    ;;
5652
 
 
5653
 
  uts4*)
5654
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5655
 
    hardcode_libdir_flag_spec='-L$libdir'
5656
 
    hardcode_shlibpath_var=no
5657
 
    ;;
5658
 
 
5659
 
  dgux*)
5660
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5661
 
    hardcode_libdir_flag_spec='-L$libdir'
5662
 
    hardcode_shlibpath_var=no
5663
 
    ;;
5664
 
 
5665
 
  sysv4*MP*)
5666
 
    if test -d /usr/nec; then
5667
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5668
 
      hardcode_shlibpath_var=no
5669
 
      runpath_var=LD_RUN_PATH
5670
 
      hardcode_runpath_var=yes
5671
 
      ld_shlibs=yes
5672
 
    fi
5673
 
    ;;
5674
 
 
5675
 
  sysv4.2uw2*)
5676
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5677
 
    hardcode_direct=yes
5678
 
    hardcode_minus_L=no
5679
 
    hardcode_shlibpath_var=no
5680
 
    hardcode_runpath_var=yes
5681
 
    runpath_var=LD_RUN_PATH
5682
 
    ;;
5683
 
 
5684
 
  sysv5uw7* | unixware7*)
5685
 
    no_undefined_flag='${wl}-z ${wl}text'
5686
 
    if test "$GCC" = yes; then
5687
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5688
 
    else
5689
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5690
 
    fi
5691
 
    runpath_var='LD_RUN_PATH'
5692
 
    hardcode_shlibpath_var=no
5693
 
    ;;
5694
 
 
5695
 
  *)
5696
 
    ld_shlibs=no
5697
 
    ;;
5698
 
  esac
5699
 
fi
 
6930
          ;;
 
6931
        esac
 
6932
      fi
 
6933
      ;;
 
6934
 
 
6935
    irix5* | irix6* | nonstopux*)
 
6936
      if test "$GCC" = yes; then
 
6937
        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'
 
6938
      else
 
6939
        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'
 
6940
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
6941
      fi
 
6942
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6943
      hardcode_libdir_separator=:
 
6944
      link_all_deplibs=yes
 
6945
      ;;
 
6946
 
 
6947
    netbsd*)
 
6948
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6949
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6950
      else
 
6951
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6952
      fi
 
6953
      hardcode_libdir_flag_spec='-R$libdir'
 
6954
      hardcode_direct=yes
 
6955
      hardcode_shlibpath_var=no
 
6956
      ;;
 
6957
 
 
6958
    newsos6)
 
6959
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6960
      hardcode_direct=yes
 
6961
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6962
      hardcode_libdir_separator=:
 
6963
      hardcode_shlibpath_var=no
 
6964
      ;;
 
6965
 
 
6966
    openbsd*)
 
6967
      hardcode_direct=yes
 
6968
      hardcode_shlibpath_var=no
 
6969
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6970
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6971
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6972
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6973
        export_dynamic_flag_spec='${wl}-E'
 
6974
      else
 
6975
       case $host_os in
 
6976
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
6977
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6978
           hardcode_libdir_flag_spec='-R$libdir'
 
6979
           ;;
 
6980
         *)
 
6981
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6982
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6983
           ;;
 
6984
       esac
 
6985
      fi
 
6986
      ;;
 
6987
 
 
6988
    os2*)
 
6989
      hardcode_libdir_flag_spec='-L$libdir'
 
6990
      hardcode_minus_L=yes
 
6991
      allow_undefined_flag=unsupported
 
6992
      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'
 
6993
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6994
      ;;
 
6995
 
 
6996
    osf3*)
 
6997
      if test "$GCC" = yes; then
 
6998
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6999
        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'
 
7000
      else
 
7001
        allow_undefined_flag=' -expect_unresolved \*'
 
7002
        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'
 
7003
      fi
 
7004
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7005
      hardcode_libdir_separator=:
 
7006
      ;;
 
7007
 
 
7008
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7009
      if test "$GCC" = yes; then
 
7010
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7011
        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'
 
7012
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7013
      else
 
7014
        allow_undefined_flag=' -expect_unresolved \*'
 
7015
        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'
 
7016
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7017
        $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'
 
7018
 
 
7019
        # Both c and cxx compiler support -rpath directly
 
7020
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7021
      fi
 
7022
      hardcode_libdir_separator=:
 
7023
      ;;
 
7024
 
 
7025
    sco3.2v5*)
 
7026
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7027
      hardcode_shlibpath_var=no
 
7028
      export_dynamic_flag_spec='${wl}-Bexport'
 
7029
      runpath_var=LD_RUN_PATH
 
7030
      hardcode_runpath_var=yes
 
7031
      ;;
 
7032
 
 
7033
    solaris*)
 
7034
      no_undefined_flag=' -z text'
 
7035
      if test "$GCC" = yes; then
 
7036
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7037
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7038
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7039
      else
 
7040
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7041
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7042
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7043
      fi
 
7044
      hardcode_libdir_flag_spec='-R$libdir'
 
7045
      hardcode_shlibpath_var=no
 
7046
      case $host_os in
 
7047
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7048
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7049
        whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
 
7050
      esac
 
7051
      link_all_deplibs=yes
 
7052
      ;;
 
7053
 
 
7054
    sunos4*)
 
7055
      if test "x$host_vendor" = xsequent; then
 
7056
        # Use $CC to link under sequent, because it throws in some extra .o
 
7057
        # files that make .init and .fini sections work.
 
7058
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7059
      else
 
7060
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7061
      fi
 
7062
      hardcode_libdir_flag_spec='-L$libdir'
 
7063
      hardcode_direct=yes
 
7064
      hardcode_minus_L=yes
 
7065
      hardcode_shlibpath_var=no
 
7066
      ;;
 
7067
 
 
7068
    sysv4)
 
7069
      case $host_vendor in
 
7070
        sni)
 
7071
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7072
          hardcode_direct=yes # is this really true???
 
7073
        ;;
 
7074
        siemens)
 
7075
          ## LD is ld it makes a PLAMLIB
 
7076
          ## CC just makes a GrossModule.
 
7077
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7078
          reload_cmds='$CC -r -o $output$reload_objs'
 
7079
          hardcode_direct=no
 
7080
        ;;
 
7081
        motorola)
 
7082
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7083
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7084
        ;;
 
7085
      esac
 
7086
      runpath_var='LD_RUN_PATH'
 
7087
      hardcode_shlibpath_var=no
 
7088
      ;;
 
7089
 
 
7090
    sysv4.3*)
 
7091
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7092
      hardcode_shlibpath_var=no
 
7093
      export_dynamic_flag_spec='-Bexport'
 
7094
      ;;
 
7095
 
 
7096
    sysv4*MP*)
 
7097
      if test -d /usr/nec; then
 
7098
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7099
        hardcode_shlibpath_var=no
 
7100
        runpath_var=LD_RUN_PATH
 
7101
        hardcode_runpath_var=yes
 
7102
        ld_shlibs=yes
 
7103
      fi
 
7104
      ;;
 
7105
 
 
7106
    sysv4.2uw2*)
 
7107
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7108
      hardcode_direct=yes
 
7109
      hardcode_minus_L=no
 
7110
      hardcode_shlibpath_var=no
 
7111
      hardcode_runpath_var=yes
 
7112
      runpath_var=LD_RUN_PATH
 
7113
      ;;
 
7114
 
 
7115
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7116
      no_undefined_flag='${wl}-z ${wl}text'
 
7117
      if test "$GCC" = yes; then
 
7118
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7119
      else
 
7120
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7121
      fi
 
7122
      runpath_var='LD_RUN_PATH'
 
7123
      hardcode_shlibpath_var=no
 
7124
      ;;
 
7125
 
 
7126
    sysv5*)
 
7127
      no_undefined_flag=' -z text'
 
7128
      # $CC -shared without GNU ld will not create a library from C++
 
7129
      # object files and a static libstdc++, better avoid it by now
 
7130
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7131
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7132
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7133
      hardcode_libdir_flag_spec=
 
7134
      hardcode_shlibpath_var=no
 
7135
      runpath_var='LD_RUN_PATH'
 
7136
      ;;
 
7137
 
 
7138
    uts4*)
 
7139
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7140
      hardcode_libdir_flag_spec='-L$libdir'
 
7141
      hardcode_shlibpath_var=no
 
7142
      ;;
 
7143
 
 
7144
    *)
 
7145
      ld_shlibs=no
 
7146
      ;;
 
7147
    esac
 
7148
  fi
 
7149
 
5700
7150
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5701
7151
echo "${ECHO_T}$ld_shlibs" >&6
5702
7152
test "$ld_shlibs" = no && can_build_shared=no
5703
 
##
5704
 
## END FIXME
5705
 
 
5706
 
## FIXME: this should be a separate macro
5707
 
##
5708
 
# Check hardcoding attributes.
 
7153
 
 
7154
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7155
if test "$GCC" = yes; then
 
7156
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7157
fi
 
7158
 
 
7159
#
 
7160
# Do we need to explicitly link libc?
 
7161
#
 
7162
case "x$archive_cmds_need_lc" in
 
7163
x|xyes)
 
7164
  # Assume -lc should be added
 
7165
  archive_cmds_need_lc=yes
 
7166
 
 
7167
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7168
    case $archive_cmds in
 
7169
    *'~'*)
 
7170
      # FIXME: we may have to deal with multi-command sequences.
 
7171
      ;;
 
7172
    '$CC '*)
 
7173
      # Test whether the compiler implicitly links with -lc since on some
 
7174
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7175
      # to ld, don't add -lc before -lgcc.
 
7176
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7177
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7178
      $rm conftest*
 
7179
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7180
 
 
7181
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7182
  (eval $ac_compile) 2>&5
 
7183
  ac_status=$?
 
7184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7185
  (exit $ac_status); } 2>conftest.err; then
 
7186
        soname=conftest
 
7187
        lib=conftest
 
7188
        libobjs=conftest.$ac_objext
 
7189
        deplibs=
 
7190
        wl=$lt_prog_compiler_wl
 
7191
        compiler_flags=-v
 
7192
        linker_flags=-v
 
7193
        verstring=
 
7194
        output_objdir=.
 
7195
        libname=conftest
 
7196
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7197
        allow_undefined_flag=
 
7198
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7199
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7200
  ac_status=$?
 
7201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7202
  (exit $ac_status); }
 
7203
        then
 
7204
          archive_cmds_need_lc=no
 
7205
        else
 
7206
          archive_cmds_need_lc=yes
 
7207
        fi
 
7208
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7209
      else
 
7210
        cat conftest.err 1>&5
 
7211
      fi
 
7212
      $rm conftest*
 
7213
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7214
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7215
      ;;
 
7216
    esac
 
7217
  fi
 
7218
  ;;
 
7219
esac
 
7220
 
 
7221
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7222
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7223
library_names_spec=
 
7224
libname_spec='lib$name'
 
7225
soname_spec=
 
7226
shrext_cmds=".so"
 
7227
postinstall_cmds=
 
7228
postuninstall_cmds=
 
7229
finish_cmds=
 
7230
finish_eval=
 
7231
shlibpath_var=
 
7232
shlibpath_overrides_runpath=unknown
 
7233
version_type=none
 
7234
dynamic_linker="$host_os ld.so"
 
7235
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7236
if test "$GCC" = yes; then
 
7237
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7238
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7239
    # if the path contains ";" then we assume it to be the separator
 
7240
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7241
    # assumed that no part of a normal pathname contains ";" but that should
 
7242
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7243
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7244
  else
 
7245
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7246
  fi
 
7247
else
 
7248
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7249
fi
 
7250
need_lib_prefix=unknown
 
7251
hardcode_into_libs=no
 
7252
 
 
7253
# when you set need_version to no, make sure it does not cause -set_version
 
7254
# flags to be left without arguments
 
7255
need_version=unknown
 
7256
 
 
7257
case $host_os in
 
7258
aix3*)
 
7259
  version_type=linux
 
7260
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7261
  shlibpath_var=LIBPATH
 
7262
 
 
7263
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7264
  soname_spec='${libname}${release}${shared_ext}$major'
 
7265
  ;;
 
7266
 
 
7267
aix4* | aix5*)
 
7268
  version_type=linux
 
7269
  need_lib_prefix=no
 
7270
  need_version=no
 
7271
  hardcode_into_libs=yes
 
7272
  if test "$host_cpu" = ia64; then
 
7273
    # AIX 5 supports IA64
 
7274
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7275
    shlibpath_var=LD_LIBRARY_PATH
 
7276
  else
 
7277
    # With GCC up to 2.95.x, collect2 would create an import file
 
7278
    # for dependence libraries.  The import file would start with
 
7279
    # the line `#! .'.  This would cause the generated library to
 
7280
    # depend on `.', always an invalid library.  This was fixed in
 
7281
    # development snapshots of GCC prior to 3.0.
 
7282
    case $host_os in
 
7283
      aix4 | aix4.[01] | aix4.[01].*)
 
7284
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7285
           echo ' yes '
 
7286
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7287
        :
 
7288
      else
 
7289
        can_build_shared=no
 
7290
      fi
 
7291
      ;;
 
7292
    esac
 
7293
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7294
    # soname into executable. Probably we can add versioning support to
 
7295
    # collect2, so additional links can be useful in future.
 
7296
    if test "$aix_use_runtimelinking" = yes; then
 
7297
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7298
      # instead of lib<name>.a to let people know that these are not
 
7299
      # typical AIX shared libraries.
 
7300
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7301
    else
 
7302
      # We preserve .a as extension for shared libraries through AIX4.2
 
7303
      # and later when we are not doing run time linking.
 
7304
      library_names_spec='${libname}${release}.a $libname.a'
 
7305
      soname_spec='${libname}${release}${shared_ext}$major'
 
7306
    fi
 
7307
    shlibpath_var=LIBPATH
 
7308
  fi
 
7309
  ;;
 
7310
 
 
7311
amigaos*)
 
7312
  library_names_spec='$libname.ixlibrary $libname.a'
 
7313
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7314
  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'
 
7315
  ;;
 
7316
 
 
7317
beos*)
 
7318
  library_names_spec='${libname}${shared_ext}'
 
7319
  dynamic_linker="$host_os ld.so"
 
7320
  shlibpath_var=LIBRARY_PATH
 
7321
  ;;
 
7322
 
 
7323
bsdi[45]*)
 
7324
  version_type=linux
 
7325
  need_version=no
 
7326
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7327
  soname_spec='${libname}${release}${shared_ext}$major'
 
7328
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7329
  shlibpath_var=LD_LIBRARY_PATH
 
7330
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7331
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7332
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7333
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7334
  # libtool to hard-code these into programs
 
7335
  ;;
 
7336
 
 
7337
cygwin* | mingw* | pw32*)
 
7338
  version_type=windows
 
7339
  shrext_cmds=".dll"
 
7340
  need_version=no
 
7341
  need_lib_prefix=no
 
7342
 
 
7343
  case $GCC,$host_os in
 
7344
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7345
    library_names_spec='$libname.dll.a'
 
7346
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7347
    postinstall_cmds='base_file=`basename \${file}`~
 
7348
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7349
      dldir=$destdir/`dirname \$dlpath`~
 
7350
      test -d \$dldir || mkdir -p \$dldir~
 
7351
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7352
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7353
      dlpath=$dir/\$dldll~
 
7354
       $rm \$dlpath'
 
7355
    shlibpath_overrides_runpath=yes
 
7356
 
 
7357
    case $host_os in
 
7358
    cygwin*)
 
7359
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7360
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7361
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7362
      ;;
 
7363
    mingw*)
 
7364
      # MinGW DLLs use traditional 'lib' prefix
 
7365
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7366
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7367
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7368
        # It is most probably a Windows format PATH printed by
 
7369
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7370
        # path with ; separators, and with drive letters. We can handle the
 
7371
        # drive letters (cygwin fileutils understands them), so leave them,
 
7372
        # especially as we might pass files found there to a mingw objdump,
 
7373
        # which wouldn't understand a cygwinified path. Ahh.
 
7374
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7375
      else
 
7376
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7377
      fi
 
7378
      ;;
 
7379
    pw32*)
 
7380
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7381
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7382
      ;;
 
7383
    esac
 
7384
    ;;
 
7385
 
 
7386
  *)
 
7387
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7388
    ;;
 
7389
  esac
 
7390
  dynamic_linker='Win32 ld.exe'
 
7391
  # FIXME: first we should search . and the directory the executable is in
 
7392
  shlibpath_var=PATH
 
7393
  ;;
 
7394
 
 
7395
darwin* | rhapsody*)
 
7396
  dynamic_linker="$host_os dyld"
 
7397
  version_type=darwin
 
7398
  need_lib_prefix=no
 
7399
  need_version=no
 
7400
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7401
  soname_spec='${libname}${release}${major}$shared_ext'
 
7402
  shlibpath_overrides_runpath=yes
 
7403
  shlibpath_var=DYLD_LIBRARY_PATH
 
7404
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7405
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7406
  if test "$GCC" = yes; then
 
7407
    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"`
 
7408
  else
 
7409
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7410
  fi
 
7411
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7412
  ;;
 
7413
 
 
7414
dgux*)
 
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
  ;;
 
7422
 
 
7423
freebsd1*)
 
7424
  dynamic_linker=no
 
7425
  ;;
 
7426
 
 
7427
kfreebsd*-gnu)
 
7428
  version_type=linux
 
7429
  need_lib_prefix=no
 
7430
  need_version=no
 
7431
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7432
  soname_spec='${libname}${release}${shared_ext}$major'
 
7433
  shlibpath_var=LD_LIBRARY_PATH
 
7434
  shlibpath_overrides_runpath=no
 
7435
  hardcode_into_libs=yes
 
7436
  dynamic_linker='GNU ld.so'
 
7437
  ;;
 
7438
 
 
7439
freebsd* | dragonfly*)
 
7440
  # DragonFly does not have aout.  When/if they implement a new
 
7441
  # versioning mechanism, adjust this.
 
7442
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7443
  version_type=freebsd-$objformat
 
7444
  case $version_type in
 
7445
    freebsd-elf*)
 
7446
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7447
      need_version=no
 
7448
      need_lib_prefix=no
 
7449
      ;;
 
7450
    freebsd-*)
 
7451
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7452
      need_version=yes
 
7453
      ;;
 
7454
  esac
 
7455
  shlibpath_var=LD_LIBRARY_PATH
 
7456
  case $host_os in
 
7457
  freebsd2*)
 
7458
    shlibpath_overrides_runpath=yes
 
7459
    ;;
 
7460
  freebsd3.[01]* | freebsdelf3.[01]*)
 
7461
    shlibpath_overrides_runpath=yes
 
7462
    hardcode_into_libs=yes
 
7463
    ;;
 
7464
  *) # from 3.2 on
 
7465
    shlibpath_overrides_runpath=no
 
7466
    hardcode_into_libs=yes
 
7467
    ;;
 
7468
  esac
 
7469
  ;;
 
7470
 
 
7471
gnu*)
 
7472
  version_type=linux
 
7473
  need_lib_prefix=no
 
7474
  need_version=no
 
7475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7476
  soname_spec='${libname}${release}${shared_ext}$major'
 
7477
  shlibpath_var=LD_LIBRARY_PATH
 
7478
  hardcode_into_libs=yes
 
7479
  ;;
 
7480
 
 
7481
hpux9* | hpux10* | hpux11*)
 
7482
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7483
  # link against other versions.
 
7484
  version_type=sunos
 
7485
  need_lib_prefix=no
 
7486
  need_version=no
 
7487
  case "$host_cpu" in
 
7488
  ia64*)
 
7489
    shrext_cmds='.so'
 
7490
    hardcode_into_libs=yes
 
7491
    dynamic_linker="$host_os dld.so"
 
7492
    shlibpath_var=LD_LIBRARY_PATH
 
7493
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7494
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7495
    soname_spec='${libname}${release}${shared_ext}$major'
 
7496
    if test "X$HPUX_IA64_MODE" = X32; then
 
7497
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7498
    else
 
7499
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7500
    fi
 
7501
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7502
    ;;
 
7503
   hppa*64*)
 
7504
     shrext_cmds='.sl'
 
7505
     hardcode_into_libs=yes
 
7506
     dynamic_linker="$host_os dld.sl"
 
7507
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7508
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7509
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7510
     soname_spec='${libname}${release}${shared_ext}$major'
 
7511
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7512
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7513
     ;;
 
7514
   *)
 
7515
    shrext_cmds='.sl'
 
7516
    dynamic_linker="$host_os dld.sl"
 
7517
    shlibpath_var=SHLIB_PATH
 
7518
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7519
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7520
    soname_spec='${libname}${release}${shared_ext}$major'
 
7521
    ;;
 
7522
  esac
 
7523
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7524
  postinstall_cmds='chmod 555 $lib'
 
7525
  ;;
 
7526
 
 
7527
irix5* | irix6* | nonstopux*)
 
7528
  case $host_os in
 
7529
    nonstopux*) version_type=nonstopux ;;
 
7530
    *)
 
7531
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7532
                version_type=linux
 
7533
        else
 
7534
                version_type=irix
 
7535
        fi ;;
 
7536
  esac
 
7537
  need_lib_prefix=no
 
7538
  need_version=no
 
7539
  soname_spec='${libname}${release}${shared_ext}$major'
 
7540
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7541
  case $host_os in
 
7542
  irix5* | nonstopux*)
 
7543
    libsuff= shlibsuff=
 
7544
    ;;
 
7545
  *)
 
7546
    case $LD in # libtool.m4 will add one of these switches to LD
 
7547
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7548
      libsuff= shlibsuff= libmagic=32-bit;;
 
7549
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7550
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7551
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7552
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7553
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7554
    esac
 
7555
    ;;
 
7556
  esac
 
7557
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7558
  shlibpath_overrides_runpath=no
 
7559
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7560
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7561
  hardcode_into_libs=yes
 
7562
  ;;
 
7563
 
 
7564
# No shared lib support for Linux oldld, aout, or coff.
 
7565
linux*oldld* | linux*aout* | linux*coff*)
 
7566
  dynamic_linker=no
 
7567
  ;;
 
7568
 
 
7569
# This must be Linux ELF.
 
7570
linux*)
 
7571
  version_type=linux
 
7572
  need_lib_prefix=no
 
7573
  need_version=no
 
7574
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7575
  soname_spec='${libname}${release}${shared_ext}$major'
 
7576
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7577
  shlibpath_var=LD_LIBRARY_PATH
 
7578
  shlibpath_overrides_runpath=no
 
7579
  # This implies no fast_install, which is unacceptable.
 
7580
  # Some rework will be needed to allow for fast_install
 
7581
  # before this can be enabled.
 
7582
  hardcode_into_libs=yes
 
7583
 
 
7584
  # Append ld.so.conf contents to the search path
 
7585
  if test -f /etc/ld.so.conf; then
 
7586
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
7587
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7588
  fi
 
7589
 
 
7590
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7591
  # powerpc, because MkLinux only supported shared libraries with the
 
7592
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7593
  # most powerpc-linux boxes support dynamic linking these days and
 
7594
  # people can always --disable-shared, the test was removed, and we
 
7595
  # assume the GNU/Linux dynamic linker is in use.
 
7596
  dynamic_linker='GNU/Linux ld.so'
 
7597
  ;;
 
7598
 
 
7599
knetbsd*-gnu)
 
7600
  version_type=linux
 
7601
  need_lib_prefix=no
 
7602
  need_version=no
 
7603
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7604
  soname_spec='${libname}${release}${shared_ext}$major'
 
7605
  shlibpath_var=LD_LIBRARY_PATH
 
7606
  shlibpath_overrides_runpath=no
 
7607
  hardcode_into_libs=yes
 
7608
  dynamic_linker='GNU ld.so'
 
7609
  ;;
 
7610
 
 
7611
netbsd*)
 
7612
  version_type=sunos
 
7613
  need_lib_prefix=no
 
7614
  need_version=no
 
7615
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7616
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7617
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7618
    dynamic_linker='NetBSD (a.out) ld.so'
 
7619
  else
 
7620
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7621
    soname_spec='${libname}${release}${shared_ext}$major'
 
7622
    dynamic_linker='NetBSD ld.elf_so'
 
7623
  fi
 
7624
  shlibpath_var=LD_LIBRARY_PATH
 
7625
  shlibpath_overrides_runpath=yes
 
7626
  hardcode_into_libs=yes
 
7627
  ;;
 
7628
 
 
7629
newsos6)
 
7630
  version_type=linux
 
7631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7632
  shlibpath_var=LD_LIBRARY_PATH
 
7633
  shlibpath_overrides_runpath=yes
 
7634
  ;;
 
7635
 
 
7636
nto-qnx*)
 
7637
  version_type=linux
 
7638
  need_lib_prefix=no
 
7639
  need_version=no
 
7640
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7641
  soname_spec='${libname}${release}${shared_ext}$major'
 
7642
  shlibpath_var=LD_LIBRARY_PATH
 
7643
  shlibpath_overrides_runpath=yes
 
7644
  ;;
 
7645
 
 
7646
openbsd*)
 
7647
  version_type=sunos
 
7648
  need_lib_prefix=no
 
7649
  need_version=no
 
7650
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7651
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7652
  shlibpath_var=LD_LIBRARY_PATH
 
7653
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7654
    case $host_os in
 
7655
      openbsd2.[89] | openbsd2.[89].*)
 
7656
        shlibpath_overrides_runpath=no
 
7657
        ;;
 
7658
      *)
 
7659
        shlibpath_overrides_runpath=yes
 
7660
        ;;
 
7661
      esac
 
7662
  else
 
7663
    shlibpath_overrides_runpath=yes
 
7664
  fi
 
7665
  ;;
 
7666
 
 
7667
os2*)
 
7668
  libname_spec='$name'
 
7669
  shrext_cmds=".dll"
 
7670
  need_lib_prefix=no
 
7671
  library_names_spec='$libname${shared_ext} $libname.a'
 
7672
  dynamic_linker='OS/2 ld.exe'
 
7673
  shlibpath_var=LIBPATH
 
7674
  ;;
 
7675
 
 
7676
osf3* | osf4* | osf5*)
 
7677
  version_type=osf
 
7678
  need_lib_prefix=no
 
7679
  need_version=no
 
7680
  soname_spec='${libname}${release}${shared_ext}$major'
 
7681
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7682
  shlibpath_var=LD_LIBRARY_PATH
 
7683
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7684
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7685
  ;;
 
7686
 
 
7687
sco3.2v5*)
 
7688
  version_type=osf
 
7689
  soname_spec='${libname}${release}${shared_ext}$major'
 
7690
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7691
  shlibpath_var=LD_LIBRARY_PATH
 
7692
  ;;
 
7693
 
 
7694
solaris*)
 
7695
  version_type=linux
 
7696
  need_lib_prefix=no
 
7697
  need_version=no
 
7698
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7699
  soname_spec='${libname}${release}${shared_ext}$major'
 
7700
  shlibpath_var=LD_LIBRARY_PATH
 
7701
  shlibpath_overrides_runpath=yes
 
7702
  hardcode_into_libs=yes
 
7703
  # ldd complains unless libraries are executable
 
7704
  postinstall_cmds='chmod +x $lib'
 
7705
  ;;
 
7706
 
 
7707
sunos4*)
 
7708
  version_type=sunos
 
7709
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7710
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7711
  shlibpath_var=LD_LIBRARY_PATH
 
7712
  shlibpath_overrides_runpath=yes
 
7713
  if test "$with_gnu_ld" = yes; then
 
7714
    need_lib_prefix=no
 
7715
  fi
 
7716
  need_version=yes
 
7717
  ;;
 
7718
 
 
7719
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7720
  version_type=linux
 
7721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7722
  soname_spec='${libname}${release}${shared_ext}$major'
 
7723
  shlibpath_var=LD_LIBRARY_PATH
 
7724
  case $host_vendor in
 
7725
    sni)
 
7726
      shlibpath_overrides_runpath=no
 
7727
      need_lib_prefix=no
 
7728
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7729
      runpath_var=LD_RUN_PATH
 
7730
      ;;
 
7731
    siemens)
 
7732
      need_lib_prefix=no
 
7733
      ;;
 
7734
    motorola)
 
7735
      need_lib_prefix=no
 
7736
      need_version=no
 
7737
      shlibpath_overrides_runpath=no
 
7738
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7739
      ;;
 
7740
  esac
 
7741
  ;;
 
7742
 
 
7743
sysv4*MP*)
 
7744
  if test -d /usr/nec ;then
 
7745
    version_type=linux
 
7746
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
7747
    soname_spec='$libname${shared_ext}.$major'
 
7748
    shlibpath_var=LD_LIBRARY_PATH
 
7749
  fi
 
7750
  ;;
 
7751
 
 
7752
uts4*)
 
7753
  version_type=linux
 
7754
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7755
  soname_spec='${libname}${release}${shared_ext}$major'
 
7756
  shlibpath_var=LD_LIBRARY_PATH
 
7757
  ;;
 
7758
 
 
7759
*)
 
7760
  dynamic_linker=no
 
7761
  ;;
 
7762
esac
 
7763
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7764
echo "${ECHO_T}$dynamic_linker" >&6
 
7765
test "$dynamic_linker" = no && can_build_shared=no
 
7766
 
5709
7767
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5710
7768
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5711
7769
hardcode_action=
5712
7770
if test -n "$hardcode_libdir_flag_spec" || \
5713
 
   test -n "$runpath_var"; then
 
7771
   test -n "$runpath_var" || \
 
7772
   test "X$hardcode_automatic" = "Xyes" ; then
5714
7773
 
5715
7774
  # We can hardcode non-existant directories.
5716
7775
  if test "$hardcode_direct" != no &&
5717
7776
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5718
7777
     # have to relink, otherwise we might link with an installed library
5719
7778
     # when we should be linking with a yet-to-be-installed one
5720
 
     ## test "$hardcode_shlibpath_var" != no &&
 
7779
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
5721
7780
     test "$hardcode_minus_L" != no; then
5722
7781
    # Linking always hardcodes the temporary library directory.
5723
7782
    hardcode_action=relink
5732
7791
fi
5733
7792
echo "$as_me:$LINENO: result: $hardcode_action" >&5
5734
7793
echo "${ECHO_T}$hardcode_action" >&6
5735
 
##
5736
 
## END FIXME
5737
 
 
5738
 
## FIXME: this should be a separate macro
5739
 
##
 
7794
 
 
7795
if test "$hardcode_action" = relink; then
 
7796
  # Fast installation is not supported
 
7797
  enable_fast_install=no
 
7798
elif test "$shlibpath_overrides_runpath" = yes ||
 
7799
     test "$enable_shared" = no; then
 
7800
  # Fast installation is not necessary
 
7801
  enable_fast_install=needless
 
7802
fi
 
7803
 
5740
7804
striplib=
5741
7805
old_striplib=
5742
7806
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5747
7811
  echo "$as_me:$LINENO: result: yes" >&5
5748
7812
echo "${ECHO_T}yes" >&6
5749
7813
else
5750
 
  echo "$as_me:$LINENO: result: no" >&5
5751
 
echo "${ECHO_T}no" >&6
5752
 
fi
5753
 
##
5754
 
## END FIXME
5755
 
 
5756
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5757
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5758
 
 
5759
 
## FIXME: this should be a separate macro
5760
 
##
5761
 
# PORTME Fill in your ld.so characteristics
5762
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5763
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5764
 
library_names_spec=
5765
 
libname_spec='lib$name'
5766
 
soname_spec=
5767
 
postinstall_cmds=
5768
 
postuninstall_cmds=
5769
 
finish_cmds=
5770
 
finish_eval=
5771
 
shlibpath_var=
5772
 
shlibpath_overrides_runpath=unknown
5773
 
version_type=none
5774
 
dynamic_linker="$host_os ld.so"
5775
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
5776
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5777
 
 
5778
 
case $host_os in
5779
 
aix3*)
5780
 
  version_type=linux
5781
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5782
 
  shlibpath_var=LIBPATH
5783
 
 
5784
 
  # AIX has no versioning support, so we append a major version to the name.
5785
 
  soname_spec='${libname}${release}.so$major'
5786
 
  ;;
5787
 
 
5788
 
aix4* | aix5*)
5789
 
  version_type=linux
5790
 
  need_lib_prefix=no
5791
 
  need_version=no
5792
 
  hardcode_into_libs=yes
5793
 
  if test "$host_cpu" = ia64; then
5794
 
    # AIX 5 supports IA64
5795
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5796
 
    shlibpath_var=LD_LIBRARY_PATH
 
7814
# FIXME - insert some real tests, host_os isn't really good enough
 
7815
  case $host_os in
 
7816
   darwin*)
 
7817
       if test -n "$STRIP" ; then
 
7818
         striplib="$STRIP -x"
 
7819
         echo "$as_me:$LINENO: result: yes" >&5
 
7820
echo "${ECHO_T}yes" >&6
 
7821
       else
 
7822
  echo "$as_me:$LINENO: result: no" >&5
 
7823
echo "${ECHO_T}no" >&6
 
7824
fi
 
7825
       ;;
 
7826
   *)
 
7827
  echo "$as_me:$LINENO: result: no" >&5
 
7828
echo "${ECHO_T}no" >&6
 
7829
    ;;
 
7830
  esac
 
7831
fi
 
7832
 
 
7833
if test "x$enable_dlopen" != xyes; then
 
7834
  enable_dlopen=unknown
 
7835
  enable_dlopen_self=unknown
 
7836
  enable_dlopen_self_static=unknown
 
7837
else
 
7838
  lt_cv_dlopen=no
 
7839
  lt_cv_dlopen_libs=
 
7840
 
 
7841
  case $host_os in
 
7842
  beos*)
 
7843
    lt_cv_dlopen="load_add_on"
 
7844
    lt_cv_dlopen_libs=
 
7845
    lt_cv_dlopen_self=yes
 
7846
    ;;
 
7847
 
 
7848
  mingw* | pw32*)
 
7849
    lt_cv_dlopen="LoadLibrary"
 
7850
    lt_cv_dlopen_libs=
 
7851
   ;;
 
7852
 
 
7853
  cygwin*)
 
7854
    lt_cv_dlopen="dlopen"
 
7855
    lt_cv_dlopen_libs=
 
7856
   ;;
 
7857
 
 
7858
  darwin*)
 
7859
  # if libdl is installed we need to link against it
 
7860
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7861
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7862
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7864
else
 
7865
  ac_check_lib_save_LIBS=$LIBS
 
7866
LIBS="-ldl  $LIBS"
 
7867
cat >conftest.$ac_ext <<_ACEOF
 
7868
/* confdefs.h.  */
 
7869
_ACEOF
 
7870
cat confdefs.h >>conftest.$ac_ext
 
7871
cat >>conftest.$ac_ext <<_ACEOF
 
7872
/* end confdefs.h.  */
 
7873
 
 
7874
/* Override any gcc2 internal prototype to avoid an error.  */
 
7875
#ifdef __cplusplus
 
7876
extern "C"
 
7877
#endif
 
7878
/* We use char because int might match the return type of a gcc2
 
7879
   builtin and then its argument prototype would still apply.  */
 
7880
char dlopen ();
 
7881
int
 
7882
main ()
 
7883
{
 
7884
dlopen ();
 
7885
  ;
 
7886
  return 0;
 
7887
}
 
7888
_ACEOF
 
7889
rm -f conftest.$ac_objext conftest$ac_exeext
 
7890
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7891
  (eval $ac_link) 2>conftest.er1
 
7892
  ac_status=$?
 
7893
  grep -v '^ *+' conftest.er1 >conftest.err
 
7894
  rm -f conftest.er1
 
7895
  cat conftest.err >&5
 
7896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7897
  (exit $ac_status); } &&
 
7898
         { ac_try='test -z "$ac_c_werror_flag"
 
7899
                         || test ! -s conftest.err'
 
7900
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7901
  (eval $ac_try) 2>&5
 
7902
  ac_status=$?
 
7903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7904
  (exit $ac_status); }; } &&
 
7905
         { ac_try='test -s conftest$ac_exeext'
 
7906
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7907
  (eval $ac_try) 2>&5
 
7908
  ac_status=$?
 
7909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7910
  (exit $ac_status); }; }; then
 
7911
  ac_cv_lib_dl_dlopen=yes
 
7912
else
 
7913
  echo "$as_me: failed program was:" >&5
 
7914
sed 's/^/| /' conftest.$ac_ext >&5
 
7915
 
 
7916
ac_cv_lib_dl_dlopen=no
 
7917
fi
 
7918
rm -f conftest.err conftest.$ac_objext \
 
7919
      conftest$ac_exeext conftest.$ac_ext
 
7920
LIBS=$ac_check_lib_save_LIBS
 
7921
fi
 
7922
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7923
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7924
if test $ac_cv_lib_dl_dlopen = yes; then
 
7925
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7926
else
 
7927
 
 
7928
    lt_cv_dlopen="dyld"
 
7929
    lt_cv_dlopen_libs=
 
7930
    lt_cv_dlopen_self=yes
 
7931
 
 
7932
fi
 
7933
 
 
7934
   ;;
 
7935
 
 
7936
  *)
 
7937
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
7938
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
7939
if test "${ac_cv_func_shl_load+set}" = set; then
 
7940
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7941
else
 
7942
  cat >conftest.$ac_ext <<_ACEOF
 
7943
/* confdefs.h.  */
 
7944
_ACEOF
 
7945
cat confdefs.h >>conftest.$ac_ext
 
7946
cat >>conftest.$ac_ext <<_ACEOF
 
7947
/* end confdefs.h.  */
 
7948
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
7949
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7950
#define shl_load innocuous_shl_load
 
7951
 
 
7952
/* System header to define __stub macros and hopefully few prototypes,
 
7953
    which can conflict with char shl_load (); below.
 
7954
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7955
    <limits.h> exists even on freestanding compilers.  */
 
7956
 
 
7957
#ifdef __STDC__
 
7958
# include <limits.h>
 
7959
#else
 
7960
# include <assert.h>
 
7961
#endif
 
7962
 
 
7963
#undef shl_load
 
7964
 
 
7965
/* Override any gcc2 internal prototype to avoid an error.  */
 
7966
#ifdef __cplusplus
 
7967
extern "C"
 
7968
{
 
7969
#endif
 
7970
/* We use char because int might match the return type of a gcc2
 
7971
   builtin and then its argument prototype would still apply.  */
 
7972
char shl_load ();
 
7973
/* The GNU C library defines this for functions which it implements
 
7974
    to always fail with ENOSYS.  Some functions are actually named
 
7975
    something starting with __ and the normal name is an alias.  */
 
7976
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
7977
choke me
 
7978
#else
 
7979
char (*f) () = shl_load;
 
7980
#endif
 
7981
#ifdef __cplusplus
 
7982
}
 
7983
#endif
 
7984
 
 
7985
int
 
7986
main ()
 
7987
{
 
7988
return f != shl_load;
 
7989
  ;
 
7990
  return 0;
 
7991
}
 
7992
_ACEOF
 
7993
rm -f conftest.$ac_objext conftest$ac_exeext
 
7994
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7995
  (eval $ac_link) 2>conftest.er1
 
7996
  ac_status=$?
 
7997
  grep -v '^ *+' conftest.er1 >conftest.err
 
7998
  rm -f conftest.er1
 
7999
  cat conftest.err >&5
 
8000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8001
  (exit $ac_status); } &&
 
8002
         { ac_try='test -z "$ac_c_werror_flag"
 
8003
                         || test ! -s conftest.err'
 
8004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8005
  (eval $ac_try) 2>&5
 
8006
  ac_status=$?
 
8007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8008
  (exit $ac_status); }; } &&
 
8009
         { ac_try='test -s conftest$ac_exeext'
 
8010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8011
  (eval $ac_try) 2>&5
 
8012
  ac_status=$?
 
8013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8014
  (exit $ac_status); }; }; then
 
8015
  ac_cv_func_shl_load=yes
 
8016
else
 
8017
  echo "$as_me: failed program was:" >&5
 
8018
sed 's/^/| /' conftest.$ac_ext >&5
 
8019
 
 
8020
ac_cv_func_shl_load=no
 
8021
fi
 
8022
rm -f conftest.err conftest.$ac_objext \
 
8023
      conftest$ac_exeext conftest.$ac_ext
 
8024
fi
 
8025
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8026
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8027
if test $ac_cv_func_shl_load = yes; then
 
8028
  lt_cv_dlopen="shl_load"
 
8029
else
 
8030
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8031
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8032
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8034
else
 
8035
  ac_check_lib_save_LIBS=$LIBS
 
8036
LIBS="-ldld  $LIBS"
 
8037
cat >conftest.$ac_ext <<_ACEOF
 
8038
/* confdefs.h.  */
 
8039
_ACEOF
 
8040
cat confdefs.h >>conftest.$ac_ext
 
8041
cat >>conftest.$ac_ext <<_ACEOF
 
8042
/* end confdefs.h.  */
 
8043
 
 
8044
/* Override any gcc2 internal prototype to avoid an error.  */
 
8045
#ifdef __cplusplus
 
8046
extern "C"
 
8047
#endif
 
8048
/* We use char because int might match the return type of a gcc2
 
8049
   builtin and then its argument prototype would still apply.  */
 
8050
char shl_load ();
 
8051
int
 
8052
main ()
 
8053
{
 
8054
shl_load ();
 
8055
  ;
 
8056
  return 0;
 
8057
}
 
8058
_ACEOF
 
8059
rm -f conftest.$ac_objext conftest$ac_exeext
 
8060
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8061
  (eval $ac_link) 2>conftest.er1
 
8062
  ac_status=$?
 
8063
  grep -v '^ *+' conftest.er1 >conftest.err
 
8064
  rm -f conftest.er1
 
8065
  cat conftest.err >&5
 
8066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8067
  (exit $ac_status); } &&
 
8068
         { ac_try='test -z "$ac_c_werror_flag"
 
8069
                         || test ! -s conftest.err'
 
8070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8071
  (eval $ac_try) 2>&5
 
8072
  ac_status=$?
 
8073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8074
  (exit $ac_status); }; } &&
 
8075
         { ac_try='test -s conftest$ac_exeext'
 
8076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8077
  (eval $ac_try) 2>&5
 
8078
  ac_status=$?
 
8079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8080
  (exit $ac_status); }; }; then
 
8081
  ac_cv_lib_dld_shl_load=yes
 
8082
else
 
8083
  echo "$as_me: failed program was:" >&5
 
8084
sed 's/^/| /' conftest.$ac_ext >&5
 
8085
 
 
8086
ac_cv_lib_dld_shl_load=no
 
8087
fi
 
8088
rm -f conftest.err conftest.$ac_objext \
 
8089
      conftest$ac_exeext conftest.$ac_ext
 
8090
LIBS=$ac_check_lib_save_LIBS
 
8091
fi
 
8092
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8093
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8094
if test $ac_cv_lib_dld_shl_load = yes; then
 
8095
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8096
else
 
8097
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8098
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8099
if test "${ac_cv_func_dlopen+set}" = set; then
 
8100
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8101
else
 
8102
  cat >conftest.$ac_ext <<_ACEOF
 
8103
/* confdefs.h.  */
 
8104
_ACEOF
 
8105
cat confdefs.h >>conftest.$ac_ext
 
8106
cat >>conftest.$ac_ext <<_ACEOF
 
8107
/* end confdefs.h.  */
 
8108
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8109
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8110
#define dlopen innocuous_dlopen
 
8111
 
 
8112
/* System header to define __stub macros and hopefully few prototypes,
 
8113
    which can conflict with char dlopen (); below.
 
8114
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8115
    <limits.h> exists even on freestanding compilers.  */
 
8116
 
 
8117
#ifdef __STDC__
 
8118
# include <limits.h>
 
8119
#else
 
8120
# include <assert.h>
 
8121
#endif
 
8122
 
 
8123
#undef dlopen
 
8124
 
 
8125
/* Override any gcc2 internal prototype to avoid an error.  */
 
8126
#ifdef __cplusplus
 
8127
extern "C"
 
8128
{
 
8129
#endif
 
8130
/* We use char because int might match the return type of a gcc2
 
8131
   builtin and then its argument prototype would still apply.  */
 
8132
char dlopen ();
 
8133
/* The GNU C library defines this for functions which it implements
 
8134
    to always fail with ENOSYS.  Some functions are actually named
 
8135
    something starting with __ and the normal name is an alias.  */
 
8136
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8137
choke me
 
8138
#else
 
8139
char (*f) () = dlopen;
 
8140
#endif
 
8141
#ifdef __cplusplus
 
8142
}
 
8143
#endif
 
8144
 
 
8145
int
 
8146
main ()
 
8147
{
 
8148
return f != dlopen;
 
8149
  ;
 
8150
  return 0;
 
8151
}
 
8152
_ACEOF
 
8153
rm -f conftest.$ac_objext conftest$ac_exeext
 
8154
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8155
  (eval $ac_link) 2>conftest.er1
 
8156
  ac_status=$?
 
8157
  grep -v '^ *+' conftest.er1 >conftest.err
 
8158
  rm -f conftest.er1
 
8159
  cat conftest.err >&5
 
8160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8161
  (exit $ac_status); } &&
 
8162
         { ac_try='test -z "$ac_c_werror_flag"
 
8163
                         || test ! -s conftest.err'
 
8164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8165
  (eval $ac_try) 2>&5
 
8166
  ac_status=$?
 
8167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8168
  (exit $ac_status); }; } &&
 
8169
         { ac_try='test -s conftest$ac_exeext'
 
8170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8171
  (eval $ac_try) 2>&5
 
8172
  ac_status=$?
 
8173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8174
  (exit $ac_status); }; }; then
 
8175
  ac_cv_func_dlopen=yes
 
8176
else
 
8177
  echo "$as_me: failed program was:" >&5
 
8178
sed 's/^/| /' conftest.$ac_ext >&5
 
8179
 
 
8180
ac_cv_func_dlopen=no
 
8181
fi
 
8182
rm -f conftest.err conftest.$ac_objext \
 
8183
      conftest$ac_exeext conftest.$ac_ext
 
8184
fi
 
8185
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8186
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8187
if test $ac_cv_func_dlopen = yes; then
 
8188
  lt_cv_dlopen="dlopen"
 
8189
else
 
8190
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8191
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8192
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8194
else
 
8195
  ac_check_lib_save_LIBS=$LIBS
 
8196
LIBS="-ldl  $LIBS"
 
8197
cat >conftest.$ac_ext <<_ACEOF
 
8198
/* confdefs.h.  */
 
8199
_ACEOF
 
8200
cat confdefs.h >>conftest.$ac_ext
 
8201
cat >>conftest.$ac_ext <<_ACEOF
 
8202
/* end confdefs.h.  */
 
8203
 
 
8204
/* Override any gcc2 internal prototype to avoid an error.  */
 
8205
#ifdef __cplusplus
 
8206
extern "C"
 
8207
#endif
 
8208
/* We use char because int might match the return type of a gcc2
 
8209
   builtin and then its argument prototype would still apply.  */
 
8210
char dlopen ();
 
8211
int
 
8212
main ()
 
8213
{
 
8214
dlopen ();
 
8215
  ;
 
8216
  return 0;
 
8217
}
 
8218
_ACEOF
 
8219
rm -f conftest.$ac_objext conftest$ac_exeext
 
8220
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8221
  (eval $ac_link) 2>conftest.er1
 
8222
  ac_status=$?
 
8223
  grep -v '^ *+' conftest.er1 >conftest.err
 
8224
  rm -f conftest.er1
 
8225
  cat conftest.err >&5
 
8226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8227
  (exit $ac_status); } &&
 
8228
         { ac_try='test -z "$ac_c_werror_flag"
 
8229
                         || test ! -s conftest.err'
 
8230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8231
  (eval $ac_try) 2>&5
 
8232
  ac_status=$?
 
8233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8234
  (exit $ac_status); }; } &&
 
8235
         { ac_try='test -s conftest$ac_exeext'
 
8236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8237
  (eval $ac_try) 2>&5
 
8238
  ac_status=$?
 
8239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8240
  (exit $ac_status); }; }; then
 
8241
  ac_cv_lib_dl_dlopen=yes
 
8242
else
 
8243
  echo "$as_me: failed program was:" >&5
 
8244
sed 's/^/| /' conftest.$ac_ext >&5
 
8245
 
 
8246
ac_cv_lib_dl_dlopen=no
 
8247
fi
 
8248
rm -f conftest.err conftest.$ac_objext \
 
8249
      conftest$ac_exeext conftest.$ac_ext
 
8250
LIBS=$ac_check_lib_save_LIBS
 
8251
fi
 
8252
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8253
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8254
if test $ac_cv_lib_dl_dlopen = yes; then
 
8255
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8256
else
 
8257
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8258
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8259
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8260
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8261
else
 
8262
  ac_check_lib_save_LIBS=$LIBS
 
8263
LIBS="-lsvld  $LIBS"
 
8264
cat >conftest.$ac_ext <<_ACEOF
 
8265
/* confdefs.h.  */
 
8266
_ACEOF
 
8267
cat confdefs.h >>conftest.$ac_ext
 
8268
cat >>conftest.$ac_ext <<_ACEOF
 
8269
/* end confdefs.h.  */
 
8270
 
 
8271
/* Override any gcc2 internal prototype to avoid an error.  */
 
8272
#ifdef __cplusplus
 
8273
extern "C"
 
8274
#endif
 
8275
/* We use char because int might match the return type of a gcc2
 
8276
   builtin and then its argument prototype would still apply.  */
 
8277
char dlopen ();
 
8278
int
 
8279
main ()
 
8280
{
 
8281
dlopen ();
 
8282
  ;
 
8283
  return 0;
 
8284
}
 
8285
_ACEOF
 
8286
rm -f conftest.$ac_objext conftest$ac_exeext
 
8287
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8288
  (eval $ac_link) 2>conftest.er1
 
8289
  ac_status=$?
 
8290
  grep -v '^ *+' conftest.er1 >conftest.err
 
8291
  rm -f conftest.er1
 
8292
  cat conftest.err >&5
 
8293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8294
  (exit $ac_status); } &&
 
8295
         { ac_try='test -z "$ac_c_werror_flag"
 
8296
                         || test ! -s conftest.err'
 
8297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8298
  (eval $ac_try) 2>&5
 
8299
  ac_status=$?
 
8300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8301
  (exit $ac_status); }; } &&
 
8302
         { ac_try='test -s conftest$ac_exeext'
 
8303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8304
  (eval $ac_try) 2>&5
 
8305
  ac_status=$?
 
8306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8307
  (exit $ac_status); }; }; then
 
8308
  ac_cv_lib_svld_dlopen=yes
 
8309
else
 
8310
  echo "$as_me: failed program was:" >&5
 
8311
sed 's/^/| /' conftest.$ac_ext >&5
 
8312
 
 
8313
ac_cv_lib_svld_dlopen=no
 
8314
fi
 
8315
rm -f conftest.err conftest.$ac_objext \
 
8316
      conftest$ac_exeext conftest.$ac_ext
 
8317
LIBS=$ac_check_lib_save_LIBS
 
8318
fi
 
8319
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8320
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8321
if test $ac_cv_lib_svld_dlopen = yes; then
 
8322
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8323
else
 
8324
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8325
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8326
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8328
else
 
8329
  ac_check_lib_save_LIBS=$LIBS
 
8330
LIBS="-ldld  $LIBS"
 
8331
cat >conftest.$ac_ext <<_ACEOF
 
8332
/* confdefs.h.  */
 
8333
_ACEOF
 
8334
cat confdefs.h >>conftest.$ac_ext
 
8335
cat >>conftest.$ac_ext <<_ACEOF
 
8336
/* end confdefs.h.  */
 
8337
 
 
8338
/* Override any gcc2 internal prototype to avoid an error.  */
 
8339
#ifdef __cplusplus
 
8340
extern "C"
 
8341
#endif
 
8342
/* We use char because int might match the return type of a gcc2
 
8343
   builtin and then its argument prototype would still apply.  */
 
8344
char dld_link ();
 
8345
int
 
8346
main ()
 
8347
{
 
8348
dld_link ();
 
8349
  ;
 
8350
  return 0;
 
8351
}
 
8352
_ACEOF
 
8353
rm -f conftest.$ac_objext conftest$ac_exeext
 
8354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8355
  (eval $ac_link) 2>conftest.er1
 
8356
  ac_status=$?
 
8357
  grep -v '^ *+' conftest.er1 >conftest.err
 
8358
  rm -f conftest.er1
 
8359
  cat conftest.err >&5
 
8360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8361
  (exit $ac_status); } &&
 
8362
         { ac_try='test -z "$ac_c_werror_flag"
 
8363
                         || test ! -s conftest.err'
 
8364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8365
  (eval $ac_try) 2>&5
 
8366
  ac_status=$?
 
8367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8368
  (exit $ac_status); }; } &&
 
8369
         { ac_try='test -s conftest$ac_exeext'
 
8370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8371
  (eval $ac_try) 2>&5
 
8372
  ac_status=$?
 
8373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8374
  (exit $ac_status); }; }; then
 
8375
  ac_cv_lib_dld_dld_link=yes
 
8376
else
 
8377
  echo "$as_me: failed program was:" >&5
 
8378
sed 's/^/| /' conftest.$ac_ext >&5
 
8379
 
 
8380
ac_cv_lib_dld_dld_link=no
 
8381
fi
 
8382
rm -f conftest.err conftest.$ac_objext \
 
8383
      conftest$ac_exeext conftest.$ac_ext
 
8384
LIBS=$ac_check_lib_save_LIBS
 
8385
fi
 
8386
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8387
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8388
if test $ac_cv_lib_dld_dld_link = yes; then
 
8389
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8390
fi
 
8391
 
 
8392
 
 
8393
fi
 
8394
 
 
8395
 
 
8396
fi
 
8397
 
 
8398
 
 
8399
fi
 
8400
 
 
8401
 
 
8402
fi
 
8403
 
 
8404
 
 
8405
fi
 
8406
 
 
8407
    ;;
 
8408
  esac
 
8409
 
 
8410
  if test "x$lt_cv_dlopen" != xno; then
 
8411
    enable_dlopen=yes
5797
8412
  else
5798
 
    # With GCC up to 2.95.x, collect2 would create an import file
5799
 
    # for dependence libraries.  The import file would start with
5800
 
    # the line `#! .'.  This would cause the generated library to
5801
 
    # depend on `.', always an invalid library.  This was fixed in
5802
 
    # development snapshots of GCC prior to 3.0.
5803
 
    case $host_os in
5804
 
      aix4 | aix4.[01] | aix4.[01].*)
5805
 
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5806
 
             echo ' yes '
5807
 
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5808
 
          :
5809
 
        else
5810
 
          can_build_shared=no
5811
 
        fi
5812
 
        ;;
5813
 
    esac
5814
 
    # AIX (on Power*) has no versioning support, so currently we can
5815
 
    # not hardcode correct soname into executable. Probably we can
5816
 
    # add versioning support to collect2, so additional links can
5817
 
    # be useful in future.
5818
 
    if test "$aix_use_runtimelinking" = yes; then
5819
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5820
 
      # instead of lib<name>.a to let people know that these are not
5821
 
      # typical AIX shared libraries.
5822
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5823
 
    else
5824
 
      # We preserve .a as extension for shared libraries through AIX4.2
5825
 
      # and later when we are not doing run time linking.
5826
 
      library_names_spec='${libname}${release}.a $libname.a'
5827
 
      soname_spec='${libname}${release}.so$major'
 
8413
    enable_dlopen=no
 
8414
  fi
 
8415
 
 
8416
  case $lt_cv_dlopen in
 
8417
  dlopen)
 
8418
    save_CPPFLAGS="$CPPFLAGS"
 
8419
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8420
 
 
8421
    save_LDFLAGS="$LDFLAGS"
 
8422
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8423
 
 
8424
    save_LIBS="$LIBS"
 
8425
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8426
 
 
8427
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8428
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8429
if test "${lt_cv_dlopen_self+set}" = set; then
 
8430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8431
else
 
8432
          if test "$cross_compiling" = yes; then :
 
8433
  lt_cv_dlopen_self=cross
 
8434
else
 
8435
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8436
  lt_status=$lt_dlunknown
 
8437
  cat > conftest.$ac_ext <<EOF
 
8438
#line 8438 "configure"
 
8439
#include "confdefs.h"
 
8440
 
 
8441
#if HAVE_DLFCN_H
 
8442
#include <dlfcn.h>
 
8443
#endif
 
8444
 
 
8445
#include <stdio.h>
 
8446
 
 
8447
#ifdef RTLD_GLOBAL
 
8448
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8449
#else
 
8450
#  ifdef DL_GLOBAL
 
8451
#    define LT_DLGLOBAL         DL_GLOBAL
 
8452
#  else
 
8453
#    define LT_DLGLOBAL         0
 
8454
#  endif
 
8455
#endif
 
8456
 
 
8457
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8458
   find out it does not work in some platform. */
 
8459
#ifndef LT_DLLAZY_OR_NOW
 
8460
#  ifdef RTLD_LAZY
 
8461
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8462
#  else
 
8463
#    ifdef DL_LAZY
 
8464
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8465
#    else
 
8466
#      ifdef RTLD_NOW
 
8467
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8468
#      else
 
8469
#        ifdef DL_NOW
 
8470
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8471
#        else
 
8472
#          define LT_DLLAZY_OR_NOW      0
 
8473
#        endif
 
8474
#      endif
 
8475
#    endif
 
8476
#  endif
 
8477
#endif
 
8478
 
 
8479
#ifdef __cplusplus
 
8480
extern "C" void exit (int);
 
8481
#endif
 
8482
 
 
8483
void fnord() { int i=42;}
 
8484
int main ()
 
8485
{
 
8486
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8487
  int status = $lt_dlunknown;
 
8488
 
 
8489
  if (self)
 
8490
    {
 
8491
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8492
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8493
      /* dlclose (self); */
 
8494
    }
 
8495
 
 
8496
    exit (status);
 
8497
}
 
8498
EOF
 
8499
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8500
  (eval $ac_link) 2>&5
 
8501
  ac_status=$?
 
8502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8503
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8504
    (./conftest; exit; ) 2>/dev/null
 
8505
    lt_status=$?
 
8506
    case x$lt_status in
 
8507
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8508
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8509
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8510
    esac
 
8511
  else :
 
8512
    # compilation failed
 
8513
    lt_cv_dlopen_self=no
 
8514
  fi
 
8515
fi
 
8516
rm -fr conftest*
 
8517
 
 
8518
 
 
8519
fi
 
8520
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8521
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8522
 
 
8523
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8524
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8525
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8526
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8527
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8529
else
 
8530
          if test "$cross_compiling" = yes; then :
 
8531
  lt_cv_dlopen_self_static=cross
 
8532
else
 
8533
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8534
  lt_status=$lt_dlunknown
 
8535
  cat > conftest.$ac_ext <<EOF
 
8536
#line 8536 "configure"
 
8537
#include "confdefs.h"
 
8538
 
 
8539
#if HAVE_DLFCN_H
 
8540
#include <dlfcn.h>
 
8541
#endif
 
8542
 
 
8543
#include <stdio.h>
 
8544
 
 
8545
#ifdef RTLD_GLOBAL
 
8546
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8547
#else
 
8548
#  ifdef DL_GLOBAL
 
8549
#    define LT_DLGLOBAL         DL_GLOBAL
 
8550
#  else
 
8551
#    define LT_DLGLOBAL         0
 
8552
#  endif
 
8553
#endif
 
8554
 
 
8555
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8556
   find out it does not work in some platform. */
 
8557
#ifndef LT_DLLAZY_OR_NOW
 
8558
#  ifdef RTLD_LAZY
 
8559
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8560
#  else
 
8561
#    ifdef DL_LAZY
 
8562
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8563
#    else
 
8564
#      ifdef RTLD_NOW
 
8565
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8566
#      else
 
8567
#        ifdef DL_NOW
 
8568
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8569
#        else
 
8570
#          define LT_DLLAZY_OR_NOW      0
 
8571
#        endif
 
8572
#      endif
 
8573
#    endif
 
8574
#  endif
 
8575
#endif
 
8576
 
 
8577
#ifdef __cplusplus
 
8578
extern "C" void exit (int);
 
8579
#endif
 
8580
 
 
8581
void fnord() { int i=42;}
 
8582
int main ()
 
8583
{
 
8584
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8585
  int status = $lt_dlunknown;
 
8586
 
 
8587
  if (self)
 
8588
    {
 
8589
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8590
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8591
      /* dlclose (self); */
 
8592
    }
 
8593
 
 
8594
    exit (status);
 
8595
}
 
8596
EOF
 
8597
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8598
  (eval $ac_link) 2>&5
 
8599
  ac_status=$?
 
8600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8601
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8602
    (./conftest; exit; ) 2>/dev/null
 
8603
    lt_status=$?
 
8604
    case x$lt_status in
 
8605
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8606
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8607
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8608
    esac
 
8609
  else :
 
8610
    # compilation failed
 
8611
    lt_cv_dlopen_self_static=no
 
8612
  fi
 
8613
fi
 
8614
rm -fr conftest*
 
8615
 
 
8616
 
 
8617
fi
 
8618
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8619
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
5828
8620
    fi
5829
 
    shlibpath_var=LIBPATH
5830
 
  fi
5831
 
  hardcode_into_libs=yes
5832
 
  ;;
5833
 
 
5834
 
amigaos*)
5835
 
  library_names_spec='$libname.ixlibrary $libname.a'
5836
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5837
 
  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'
5838
 
  ;;
5839
 
 
5840
 
beos*)
5841
 
  library_names_spec='${libname}.so'
5842
 
  dynamic_linker="$host_os ld.so"
5843
 
  shlibpath_var=LIBRARY_PATH
5844
 
  ;;
5845
 
 
5846
 
bsdi4*)
5847
 
  version_type=linux
5848
 
  need_version=no
5849
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5850
 
  soname_spec='${libname}${release}.so$major'
5851
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5852
 
  shlibpath_var=LD_LIBRARY_PATH
5853
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5854
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5855
 
  export_dynamic_flag_spec=-rdynamic
5856
 
  # the default ld.so.conf also contains /usr/contrib/lib and
5857
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5858
 
  # libtool to hard-code these into programs
5859
 
  ;;
5860
 
 
5861
 
cygwin* | mingw* | pw32*)
5862
 
  version_type=windows
5863
 
  need_version=no
5864
 
  need_lib_prefix=no
5865
 
  case $GCC,$host_os in
5866
 
  yes,cygwin*)
5867
 
    library_names_spec='$libname.dll.a'
5868
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5869
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5870
 
      dldir=$destdir/`dirname \$dlpath`~
5871
 
      test -d \$dldir || mkdir -p \$dldir~
5872
 
      $install_prog .libs/$dlname \$dldir/$dlname'
5873
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5874
 
      dlpath=$dir/\$dldll~
5875
 
       $rm \$dlpath'
5876
 
    ;;
5877
 
  yes,mingw*)
5878
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5879
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5880
 
    ;;
5881
 
  yes,pw32*)
5882
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5883
 
    ;;
5884
 
  *)
5885
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5886
 
    ;;
5887
 
  esac
5888
 
  dynamic_linker='Win32 ld.exe'
5889
 
  # FIXME: first we should search . and the directory the executable is in
5890
 
  shlibpath_var=PATH
5891
 
  ;;
5892
 
 
5893
 
darwin* | rhapsody*)
5894
 
  dynamic_linker="$host_os dyld"
5895
 
  version_type=darwin
5896
 
  need_lib_prefix=no
5897
 
  need_version=no
5898
 
  # FIXME: Relying on posixy $() will cause problems for
5899
 
  #        cross-compilation, but unfortunately the echo tests do not
5900
 
  #        yet detect zsh echo's removal of \ escapes.
5901
 
  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)'
5902
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5903
 
  shlibpath_overrides_runpath=yes
5904
 
  shlibpath_var=DYLD_LIBRARY_PATH
5905
 
  ;;
5906
 
 
5907
 
freebsd1*)
5908
 
  dynamic_linker=no
5909
 
  ;;
5910
 
 
5911
 
freebsd*)
5912
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5913
 
  version_type=freebsd-$objformat
5914
 
  case $version_type in
5915
 
    freebsd-elf*)
5916
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5917
 
      need_version=no
5918
 
      need_lib_prefix=no
5919
 
      ;;
5920
 
    freebsd-*)
5921
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5922
 
      need_version=yes
5923
 
      ;;
5924
 
  esac
5925
 
  shlibpath_var=LD_LIBRARY_PATH
5926
 
  case $host_os in
5927
 
  freebsd2*)
5928
 
    shlibpath_overrides_runpath=yes
5929
 
    ;;
5930
 
  *)
5931
 
    shlibpath_overrides_runpath=no
5932
 
    hardcode_into_libs=yes
5933
 
    ;;
5934
 
  esac
5935
 
  ;;
5936
 
 
5937
 
gnu*)
5938
 
  version_type=linux
5939
 
  need_lib_prefix=no
5940
 
  need_version=no
5941
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5942
 
  soname_spec='${libname}${release}.so$major'
5943
 
  shlibpath_var=LD_LIBRARY_PATH
5944
 
  hardcode_into_libs=yes
5945
 
  ;;
5946
 
 
5947
 
hpux9* | hpux10* | hpux11*)
5948
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
5949
 
  # link against other versions.
5950
 
  dynamic_linker="$host_os dld.sl"
5951
 
  version_type=sunos
5952
 
  need_lib_prefix=no
5953
 
  need_version=no
5954
 
  shlibpath_var=SHLIB_PATH
5955
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5956
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5957
 
  soname_spec='${libname}${release}.sl$major'
5958
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5959
 
  postinstall_cmds='chmod 555 $lib'
5960
 
  ;;
5961
 
 
5962
 
irix5* | irix6* | nonstopux*)
5963
 
  case $host_os in
5964
 
    nonstopux*) version_type=nonstopux ;;
5965
 
    *)          version_type=irix ;;
5966
 
  esac
5967
 
  need_lib_prefix=no
5968
 
  need_version=no
5969
 
  soname_spec='${libname}${release}.so$major'
5970
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5971
 
  case $host_os in
5972
 
  irix5* | nonstopux*)
5973
 
    libsuff= shlibsuff=
5974
 
    ;;
5975
 
  *)
5976
 
    case $LD in # libtool.m4 will add one of these switches to LD
5977
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5978
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5979
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5980
 
    *) libsuff= shlibsuff= libmagic=never-match;;
5981
 
    esac
5982
 
    ;;
5983
 
  esac
5984
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5985
 
  shlibpath_overrides_runpath=no
5986
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5987
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5988
 
  ;;
5989
 
 
5990
 
# No shared lib support for Linux oldld, aout, or coff.
5991
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5992
 
  dynamic_linker=no
5993
 
  ;;
5994
 
 
5995
 
# This must be Linux ELF.
5996
 
linux-gnu*)
5997
 
  version_type=linux
5998
 
  need_lib_prefix=no
5999
 
  need_version=no
6000
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6001
 
  soname_spec='${libname}${release}.so$major'
6002
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6003
 
  shlibpath_var=LD_LIBRARY_PATH
6004
 
  shlibpath_overrides_runpath=no
6005
 
  # This implies no fast_install, which is unacceptable.
6006
 
  # Some rework will be needed to allow for fast_install
6007
 
  # before this can be enabled.
6008
 
  hardcode_into_libs=yes
6009
 
 
6010
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
6011
 
  # powerpc, because MkLinux only supported shared libraries with the
6012
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
6013
 
  # most powerpc-linux boxes support dynamic linking these days and
6014
 
  # people can always --disable-shared, the test was removed, and we
6015
 
  # assume the GNU/Linux dynamic linker is in use.
6016
 
  dynamic_linker='GNU/Linux ld.so'
6017
 
  ;;
6018
 
 
6019
 
netbsd*)
6020
 
  version_type=sunos
6021
 
  need_lib_prefix=no
6022
 
  need_version=no
6023
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6024
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6025
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6026
 
    dynamic_linker='NetBSD (a.out) ld.so'
6027
 
  else
6028
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6029
 
    soname_spec='${libname}${release}.so$major'
6030
 
    dynamic_linker='NetBSD ld.elf_so'
6031
 
  fi
6032
 
  shlibpath_var=LD_LIBRARY_PATH
6033
 
  shlibpath_overrides_runpath=yes
6034
 
  hardcode_into_libs=yes
6035
 
  ;;
6036
 
 
6037
 
newsos6)
6038
 
  version_type=linux
6039
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6040
 
  shlibpath_var=LD_LIBRARY_PATH
6041
 
  shlibpath_overrides_runpath=yes
6042
 
  ;;
6043
 
 
6044
 
openbsd*)
6045
 
  version_type=sunos
6046
 
  need_lib_prefix=no
6047
 
  need_version=no
6048
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6049
 
    case "$host_os" in
6050
 
    openbsd2.[89] | openbsd2.[89].*)
6051
 
      shlibpath_overrides_runpath=no
6052
 
      ;;
6053
 
    *)
6054
 
      shlibpath_overrides_runpath=yes
6055
 
      ;;
6056
 
    esac
6057
 
  else
6058
 
    shlibpath_overrides_runpath=yes
6059
 
  fi
6060
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6061
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6062
 
  shlibpath_var=LD_LIBRARY_PATH
6063
 
  ;;
6064
 
 
6065
 
os2*)
6066
 
  libname_spec='$name'
6067
 
  need_lib_prefix=no
6068
 
  library_names_spec='$libname.dll $libname.a'
6069
 
  dynamic_linker='OS/2 ld.exe'
6070
 
  shlibpath_var=LIBPATH
6071
 
  ;;
6072
 
 
6073
 
osf3* | osf4* | osf5*)
6074
 
  version_type=osf
6075
 
  need_version=no
6076
 
  soname_spec='${libname}${release}.so$major'
6077
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6078
 
  shlibpath_var=LD_LIBRARY_PATH
6079
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6080
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6081
 
  hardcode_into_libs=yes
6082
 
  ;;
6083
 
 
6084
 
sco3.2v5*)
6085
 
  version_type=osf
6086
 
  soname_spec='${libname}${release}.so$major'
6087
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6088
 
  shlibpath_var=LD_LIBRARY_PATH
6089
 
  ;;
6090
 
 
6091
 
solaris*)
6092
 
  version_type=linux
6093
 
  need_lib_prefix=no
6094
 
  need_version=no
6095
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6096
 
  soname_spec='${libname}${release}.so$major'
6097
 
  shlibpath_var=LD_LIBRARY_PATH
6098
 
  shlibpath_overrides_runpath=yes
6099
 
  hardcode_into_libs=yes
6100
 
  # ldd complains unless libraries are executable
6101
 
  postinstall_cmds='chmod +x $lib'
6102
 
  ;;
6103
 
 
6104
 
sunos4*)
6105
 
  version_type=sunos
6106
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6107
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6108
 
  shlibpath_var=LD_LIBRARY_PATH
6109
 
  shlibpath_overrides_runpath=yes
6110
 
  if test "$with_gnu_ld" = yes; then
6111
 
    need_lib_prefix=no
6112
 
  fi
6113
 
  need_version=yes
6114
 
  ;;
6115
 
 
6116
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6117
 
  version_type=linux
6118
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6119
 
  soname_spec='${libname}${release}.so$major'
6120
 
  shlibpath_var=LD_LIBRARY_PATH
6121
 
  case $host_vendor in
6122
 
    sni)
6123
 
      shlibpath_overrides_runpath=no
6124
 
      need_lib_prefix=no
6125
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
6126
 
      runpath_var=LD_RUN_PATH
6127
 
      ;;
6128
 
    siemens)
6129
 
      need_lib_prefix=no
6130
 
      ;;
6131
 
    motorola)
6132
 
      need_lib_prefix=no
6133
 
      need_version=no
6134
 
      shlibpath_overrides_runpath=no
6135
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6136
 
      ;;
6137
 
  esac
6138
 
  ;;
6139
 
 
6140
 
uts4*)
6141
 
  version_type=linux
6142
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6143
 
  soname_spec='${libname}${release}.so$major'
6144
 
  shlibpath_var=LD_LIBRARY_PATH
6145
 
  ;;
6146
 
 
6147
 
dgux*)
6148
 
  version_type=linux
6149
 
  need_lib_prefix=no
6150
 
  need_version=no
6151
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6152
 
  soname_spec='${libname}${release}.so$major'
6153
 
  shlibpath_var=LD_LIBRARY_PATH
6154
 
  ;;
6155
 
 
6156
 
sysv4*MP*)
6157
 
  if test -d /usr/nec ;then
6158
 
    version_type=linux
6159
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6160
 
    soname_spec='$libname.so.$major'
6161
 
    shlibpath_var=LD_LIBRARY_PATH
6162
 
  fi
6163
 
  ;;
6164
 
 
6165
 
*)
6166
 
  dynamic_linker=no
6167
 
  ;;
6168
 
esac
6169
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6170
 
echo "${ECHO_T}$dynamic_linker" >&6
6171
 
test "$dynamic_linker" = no && can_build_shared=no
6172
 
##
6173
 
## END FIXME
6174
 
 
6175
 
## FIXME: this should be a separate macro
6176
 
##
6177
 
# Report the final consequences.
 
8621
 
 
8622
    CPPFLAGS="$save_CPPFLAGS"
 
8623
    LDFLAGS="$save_LDFLAGS"
 
8624
    LIBS="$save_LIBS"
 
8625
    ;;
 
8626
  esac
 
8627
 
 
8628
  case $lt_cv_dlopen_self in
 
8629
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8630
  *) enable_dlopen_self=unknown ;;
 
8631
  esac
 
8632
 
 
8633
  case $lt_cv_dlopen_self_static in
 
8634
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8635
  *) enable_dlopen_self_static=unknown ;;
 
8636
  esac
 
8637
fi
 
8638
 
 
8639
 
 
8640
# Report which librarie types wil actually be built
6178
8641
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6179
8642
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6180
8643
echo "$as_me:$LINENO: result: $can_build_shared" >&5
6181
8644
echo "${ECHO_T}$can_build_shared" >&6
6182
 
##
6183
 
## END FIXME
6184
8645
 
6185
 
## FIXME: this should be a separate macro
6186
 
##
6187
8646
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6188
8647
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6189
8648
test "$can_build_shared" = "no" && enable_shared=no
6199
8658
  fi
6200
8659
  ;;
6201
8660
 
6202
 
aix4*)
 
8661
aix4* | aix5*)
6203
8662
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6204
8663
    test "$enable_shared" = yes && enable_static=no
6205
8664
  fi
6206
 
  ;;
 
8665
    ;;
6207
8666
esac
6208
8667
echo "$as_me:$LINENO: result: $enable_shared" >&5
6209
8668
echo "${ECHO_T}$enable_shared" >&6
6210
 
##
6211
 
## END FIXME
6212
8669
 
6213
 
## FIXME: this should be a separate macro
6214
 
##
6215
8670
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6216
8671
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6217
8672
# Make sure either enable_shared or enable_static is yes.
6218
8673
test "$enable_shared" = yes || enable_static=yes
6219
8674
echo "$as_me:$LINENO: result: $enable_static" >&5
6220
8675
echo "${ECHO_T}$enable_static" >&6
6221
 
##
6222
 
## END FIXME
6223
 
 
6224
 
if test "$hardcode_action" = relink; then
6225
 
  # Fast installation is not supported
6226
 
  enable_fast_install=no
6227
 
elif test "$shlibpath_overrides_runpath" = yes ||
6228
 
     test "$enable_shared" = no; then
6229
 
  # Fast installation is not necessary
6230
 
  enable_fast_install=needless
6231
 
fi
6232
 
 
6233
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6234
 
if test "$GCC" = yes; then
6235
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6236
 
fi
6237
 
 
6238
 
if test "x$enable_dlopen" != xyes; then
6239
 
  enable_dlopen=unknown
6240
 
  enable_dlopen_self=unknown
6241
 
  enable_dlopen_self_static=unknown
6242
 
else
6243
 
  lt_cv_dlopen=no
6244
 
  lt_cv_dlopen_libs=
6245
 
 
6246
 
  case $host_os in
6247
 
  beos*)
6248
 
    lt_cv_dlopen="load_add_on"
6249
 
    lt_cv_dlopen_libs=
6250
 
    lt_cv_dlopen_self=yes
6251
 
    ;;
6252
 
 
6253
 
  cygwin* | mingw* | pw32*)
6254
 
    lt_cv_dlopen="LoadLibrary"
6255
 
    lt_cv_dlopen_libs=
6256
 
   ;;
6257
 
 
6258
 
  *)
6259
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
6260
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6261
 
if test "${ac_cv_func_shl_load+set}" = set; then
6262
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6263
 
else
6264
 
  cat >conftest.$ac_ext <<_ACEOF
6265
 
#line $LINENO "configure"
6266
 
/* confdefs.h.  */
6267
 
_ACEOF
6268
 
cat confdefs.h >>conftest.$ac_ext
6269
 
cat >>conftest.$ac_ext <<_ACEOF
6270
 
/* end confdefs.h.  */
6271
 
/* System header to define __stub macros and hopefully few prototypes,
6272
 
    which can conflict with char shl_load (); below.
6273
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6274
 
    <limits.h> exists even on freestanding compilers.  */
6275
 
#ifdef __STDC__
6276
 
# include <limits.h>
6277
 
#else
6278
 
# include <assert.h>
6279
 
#endif
6280
 
/* Override any gcc2 internal prototype to avoid an error.  */
6281
 
#ifdef __cplusplus
6282
 
extern "C"
6283
 
{
6284
 
#endif
6285
 
/* We use char because int might match the return type of a gcc2
6286
 
   builtin and then its argument prototype would still apply.  */
6287
 
char shl_load ();
6288
 
/* The GNU C library defines this for functions which it implements
6289
 
    to always fail with ENOSYS.  Some functions are actually named
6290
 
    something starting with __ and the normal name is an alias.  */
6291
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6292
 
choke me
6293
 
#else
6294
 
char (*f) () = shl_load;
6295
 
#endif
6296
 
#ifdef __cplusplus
6297
 
}
6298
 
#endif
6299
 
 
6300
 
int
6301
 
main ()
6302
 
{
6303
 
return f != shl_load;
6304
 
  ;
6305
 
  return 0;
6306
 
}
6307
 
_ACEOF
6308
 
rm -f conftest.$ac_objext conftest$ac_exeext
6309
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6310
 
  (eval $ac_link) 2>&5
6311
 
  ac_status=$?
6312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313
 
  (exit $ac_status); } &&
6314
 
         { ac_try='test -s conftest$ac_exeext'
6315
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316
 
  (eval $ac_try) 2>&5
6317
 
  ac_status=$?
6318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319
 
  (exit $ac_status); }; }; then
6320
 
  ac_cv_func_shl_load=yes
6321
 
else
6322
 
  echo "$as_me: failed program was:" >&5
6323
 
sed 's/^/| /' conftest.$ac_ext >&5
6324
 
 
6325
 
ac_cv_func_shl_load=no
6326
 
fi
6327
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6328
 
fi
6329
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6330
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6331
 
if test $ac_cv_func_shl_load = yes; then
6332
 
  lt_cv_dlopen="shl_load"
6333
 
else
6334
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6335
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6336
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6337
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6338
 
else
6339
 
  ac_check_lib_save_LIBS=$LIBS
6340
 
LIBS="-ldld  $LIBS"
6341
 
cat >conftest.$ac_ext <<_ACEOF
6342
 
#line $LINENO "configure"
6343
 
/* confdefs.h.  */
6344
 
_ACEOF
6345
 
cat confdefs.h >>conftest.$ac_ext
6346
 
cat >>conftest.$ac_ext <<_ACEOF
6347
 
/* end confdefs.h.  */
6348
 
 
6349
 
/* Override any gcc2 internal prototype to avoid an error.  */
6350
 
#ifdef __cplusplus
6351
 
extern "C"
6352
 
#endif
6353
 
/* We use char because int might match the return type of a gcc2
6354
 
   builtin and then its argument prototype would still apply.  */
6355
 
char shl_load ();
6356
 
int
6357
 
main ()
6358
 
{
6359
 
shl_load ();
6360
 
  ;
6361
 
  return 0;
6362
 
}
6363
 
_ACEOF
6364
 
rm -f conftest.$ac_objext conftest$ac_exeext
6365
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6366
 
  (eval $ac_link) 2>&5
6367
 
  ac_status=$?
6368
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369
 
  (exit $ac_status); } &&
6370
 
         { ac_try='test -s conftest$ac_exeext'
6371
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372
 
  (eval $ac_try) 2>&5
6373
 
  ac_status=$?
6374
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375
 
  (exit $ac_status); }; }; then
6376
 
  ac_cv_lib_dld_shl_load=yes
6377
 
else
6378
 
  echo "$as_me: failed program was:" >&5
6379
 
sed 's/^/| /' conftest.$ac_ext >&5
6380
 
 
6381
 
ac_cv_lib_dld_shl_load=no
6382
 
fi
6383
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6384
 
LIBS=$ac_check_lib_save_LIBS
6385
 
fi
6386
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6387
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6388
 
if test $ac_cv_lib_dld_shl_load = yes; then
6389
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6390
 
else
6391
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
6392
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6393
 
if test "${ac_cv_func_dlopen+set}" = set; then
6394
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6395
 
else
6396
 
  cat >conftest.$ac_ext <<_ACEOF
6397
 
#line $LINENO "configure"
6398
 
/* confdefs.h.  */
6399
 
_ACEOF
6400
 
cat confdefs.h >>conftest.$ac_ext
6401
 
cat >>conftest.$ac_ext <<_ACEOF
6402
 
/* end confdefs.h.  */
6403
 
/* System header to define __stub macros and hopefully few prototypes,
6404
 
    which can conflict with char dlopen (); below.
6405
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406
 
    <limits.h> exists even on freestanding compilers.  */
6407
 
#ifdef __STDC__
6408
 
# include <limits.h>
6409
 
#else
6410
 
# include <assert.h>
6411
 
#endif
6412
 
/* Override any gcc2 internal prototype to avoid an error.  */
6413
 
#ifdef __cplusplus
6414
 
extern "C"
6415
 
{
6416
 
#endif
6417
 
/* We use char because int might match the return type of a gcc2
6418
 
   builtin and then its argument prototype would still apply.  */
6419
 
char dlopen ();
6420
 
/* The GNU C library defines this for functions which it implements
6421
 
    to always fail with ENOSYS.  Some functions are actually named
6422
 
    something starting with __ and the normal name is an alias.  */
6423
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6424
 
choke me
6425
 
#else
6426
 
char (*f) () = dlopen;
6427
 
#endif
6428
 
#ifdef __cplusplus
6429
 
}
6430
 
#endif
6431
 
 
6432
 
int
6433
 
main ()
6434
 
{
6435
 
return f != dlopen;
6436
 
  ;
6437
 
  return 0;
6438
 
}
6439
 
_ACEOF
6440
 
rm -f conftest.$ac_objext conftest$ac_exeext
6441
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442
 
  (eval $ac_link) 2>&5
6443
 
  ac_status=$?
6444
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445
 
  (exit $ac_status); } &&
6446
 
         { ac_try='test -s conftest$ac_exeext'
6447
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448
 
  (eval $ac_try) 2>&5
6449
 
  ac_status=$?
6450
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451
 
  (exit $ac_status); }; }; then
6452
 
  ac_cv_func_dlopen=yes
6453
 
else
6454
 
  echo "$as_me: failed program was:" >&5
6455
 
sed 's/^/| /' conftest.$ac_ext >&5
6456
 
 
6457
 
ac_cv_func_dlopen=no
6458
 
fi
6459
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6460
 
fi
6461
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6462
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6463
 
if test $ac_cv_func_dlopen = yes; then
6464
 
  lt_cv_dlopen="dlopen"
6465
 
else
6466
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6467
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6468
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6469
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6470
 
else
6471
 
  ac_check_lib_save_LIBS=$LIBS
6472
 
LIBS="-ldl  $LIBS"
6473
 
cat >conftest.$ac_ext <<_ACEOF
6474
 
#line $LINENO "configure"
6475
 
/* confdefs.h.  */
6476
 
_ACEOF
6477
 
cat confdefs.h >>conftest.$ac_ext
6478
 
cat >>conftest.$ac_ext <<_ACEOF
6479
 
/* end confdefs.h.  */
6480
 
 
6481
 
/* Override any gcc2 internal prototype to avoid an error.  */
6482
 
#ifdef __cplusplus
6483
 
extern "C"
6484
 
#endif
6485
 
/* We use char because int might match the return type of a gcc2
6486
 
   builtin and then its argument prototype would still apply.  */
6487
 
char dlopen ();
6488
 
int
6489
 
main ()
6490
 
{
6491
 
dlopen ();
6492
 
  ;
6493
 
  return 0;
6494
 
}
6495
 
_ACEOF
6496
 
rm -f conftest.$ac_objext conftest$ac_exeext
6497
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6498
 
  (eval $ac_link) 2>&5
6499
 
  ac_status=$?
6500
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501
 
  (exit $ac_status); } &&
6502
 
         { ac_try='test -s conftest$ac_exeext'
6503
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504
 
  (eval $ac_try) 2>&5
6505
 
  ac_status=$?
6506
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507
 
  (exit $ac_status); }; }; then
6508
 
  ac_cv_lib_dl_dlopen=yes
6509
 
else
6510
 
  echo "$as_me: failed program was:" >&5
6511
 
sed 's/^/| /' conftest.$ac_ext >&5
6512
 
 
6513
 
ac_cv_lib_dl_dlopen=no
6514
 
fi
6515
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6516
 
LIBS=$ac_check_lib_save_LIBS
6517
 
fi
6518
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6519
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6520
 
if test $ac_cv_lib_dl_dlopen = yes; then
6521
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6522
 
else
6523
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6524
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6525
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6526
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6527
 
else
6528
 
  ac_check_lib_save_LIBS=$LIBS
6529
 
LIBS="-lsvld  $LIBS"
6530
 
cat >conftest.$ac_ext <<_ACEOF
6531
 
#line $LINENO "configure"
6532
 
/* confdefs.h.  */
6533
 
_ACEOF
6534
 
cat confdefs.h >>conftest.$ac_ext
6535
 
cat >>conftest.$ac_ext <<_ACEOF
6536
 
/* end confdefs.h.  */
6537
 
 
6538
 
/* Override any gcc2 internal prototype to avoid an error.  */
6539
 
#ifdef __cplusplus
6540
 
extern "C"
6541
 
#endif
6542
 
/* We use char because int might match the return type of a gcc2
6543
 
   builtin and then its argument prototype would still apply.  */
6544
 
char dlopen ();
6545
 
int
6546
 
main ()
6547
 
{
6548
 
dlopen ();
6549
 
  ;
6550
 
  return 0;
6551
 
}
6552
 
_ACEOF
6553
 
rm -f conftest.$ac_objext conftest$ac_exeext
6554
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6555
 
  (eval $ac_link) 2>&5
6556
 
  ac_status=$?
6557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558
 
  (exit $ac_status); } &&
6559
 
         { ac_try='test -s conftest$ac_exeext'
6560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561
 
  (eval $ac_try) 2>&5
6562
 
  ac_status=$?
6563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564
 
  (exit $ac_status); }; }; then
6565
 
  ac_cv_lib_svld_dlopen=yes
6566
 
else
6567
 
  echo "$as_me: failed program was:" >&5
6568
 
sed 's/^/| /' conftest.$ac_ext >&5
6569
 
 
6570
 
ac_cv_lib_svld_dlopen=no
6571
 
fi
6572
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6573
 
LIBS=$ac_check_lib_save_LIBS
6574
 
fi
6575
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6576
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6577
 
if test $ac_cv_lib_svld_dlopen = yes; then
6578
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6579
 
else
6580
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6581
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6582
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6583
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6584
 
else
6585
 
  ac_check_lib_save_LIBS=$LIBS
6586
 
LIBS="-ldld  $LIBS"
6587
 
cat >conftest.$ac_ext <<_ACEOF
6588
 
#line $LINENO "configure"
6589
 
/* confdefs.h.  */
6590
 
_ACEOF
6591
 
cat confdefs.h >>conftest.$ac_ext
6592
 
cat >>conftest.$ac_ext <<_ACEOF
6593
 
/* end confdefs.h.  */
6594
 
 
6595
 
/* Override any gcc2 internal prototype to avoid an error.  */
6596
 
#ifdef __cplusplus
6597
 
extern "C"
6598
 
#endif
6599
 
/* We use char because int might match the return type of a gcc2
6600
 
   builtin and then its argument prototype would still apply.  */
6601
 
char dld_link ();
6602
 
int
6603
 
main ()
6604
 
{
6605
 
dld_link ();
6606
 
  ;
6607
 
  return 0;
6608
 
}
6609
 
_ACEOF
6610
 
rm -f conftest.$ac_objext conftest$ac_exeext
6611
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612
 
  (eval $ac_link) 2>&5
6613
 
  ac_status=$?
6614
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615
 
  (exit $ac_status); } &&
6616
 
         { ac_try='test -s conftest$ac_exeext'
6617
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618
 
  (eval $ac_try) 2>&5
6619
 
  ac_status=$?
6620
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621
 
  (exit $ac_status); }; }; then
6622
 
  ac_cv_lib_dld_dld_link=yes
6623
 
else
6624
 
  echo "$as_me: failed program was:" >&5
6625
 
sed 's/^/| /' conftest.$ac_ext >&5
6626
 
 
6627
 
ac_cv_lib_dld_dld_link=no
6628
 
fi
6629
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6630
 
LIBS=$ac_check_lib_save_LIBS
6631
 
fi
6632
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6633
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6634
 
if test $ac_cv_lib_dld_dld_link = yes; then
6635
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6636
 
fi
6637
 
 
6638
 
 
6639
 
fi
6640
 
 
6641
 
 
6642
 
fi
6643
 
 
6644
 
 
6645
 
fi
6646
 
 
6647
 
 
6648
 
fi
6649
 
 
6650
 
 
6651
 
fi
6652
 
 
6653
 
    ;;
6654
 
  esac
6655
 
 
6656
 
  if test "x$lt_cv_dlopen" != xno; then
6657
 
    enable_dlopen=yes
6658
 
  else
6659
 
    enable_dlopen=no
6660
 
  fi
6661
 
 
6662
 
  case $lt_cv_dlopen in
6663
 
  dlopen)
6664
 
    save_CPPFLAGS="$CPPFLAGS"
6665
 
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6666
 
 
6667
 
    save_LDFLAGS="$LDFLAGS"
6668
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6669
 
 
6670
 
    save_LIBS="$LIBS"
6671
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
6672
 
 
6673
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6674
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6675
 
if test "${lt_cv_dlopen_self+set}" = set; then
6676
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6677
 
else
6678
 
          if test "$cross_compiling" = yes; then :
6679
 
  lt_cv_dlopen_self=cross
6680
 
else
6681
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6682
 
  lt_status=$lt_dlunknown
6683
 
  cat > conftest.$ac_ext <<EOF
6684
 
#line 6684 "configure"
6685
 
#include "confdefs.h"
6686
 
 
6687
 
#if HAVE_DLFCN_H
6688
 
#include <dlfcn.h>
6689
 
#endif
6690
 
 
6691
 
#include <stdio.h>
6692
 
 
6693
 
#ifdef RTLD_GLOBAL
6694
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
6695
 
#else
6696
 
#  ifdef DL_GLOBAL
6697
 
#    define LT_DLGLOBAL         DL_GLOBAL
6698
 
#  else
6699
 
#    define LT_DLGLOBAL         0
6700
 
#  endif
6701
 
#endif
6702
 
 
6703
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6704
 
   find out it does not work in some platform. */
6705
 
#ifndef LT_DLLAZY_OR_NOW
6706
 
#  ifdef RTLD_LAZY
6707
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6708
 
#  else
6709
 
#    ifdef DL_LAZY
6710
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
6711
 
#    else
6712
 
#      ifdef RTLD_NOW
6713
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
6714
 
#      else
6715
 
#        ifdef DL_NOW
6716
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
6717
 
#        else
6718
 
#          define LT_DLLAZY_OR_NOW      0
6719
 
#        endif
6720
 
#      endif
6721
 
#    endif
6722
 
#  endif
6723
 
#endif
6724
 
 
6725
 
#ifdef __cplusplus
6726
 
extern "C" void exit (int);
6727
 
#endif
6728
 
 
6729
 
void fnord() { int i=42;}
6730
 
int main ()
6731
 
{
6732
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6733
 
  int status = $lt_dlunknown;
6734
 
 
6735
 
  if (self)
6736
 
    {
6737
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6738
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6739
 
      /* dlclose (self); */
6740
 
    }
6741
 
 
6742
 
    exit (status);
6743
 
}
6744
 
EOF
6745
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746
 
  (eval $ac_link) 2>&5
6747
 
  ac_status=$?
6748
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6750
 
    (./conftest; exit; ) 2>/dev/null
6751
 
    lt_status=$?
6752
 
    case x$lt_status in
6753
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6754
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6755
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6756
 
    esac
6757
 
  else :
6758
 
    # compilation failed
6759
 
    lt_cv_dlopen_self=no
6760
 
  fi
6761
 
fi
6762
 
rm -fr conftest*
6763
 
 
6764
 
 
6765
 
fi
6766
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6767
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6768
 
 
6769
 
    if test "x$lt_cv_dlopen_self" = xyes; then
6770
 
      LDFLAGS="$LDFLAGS $link_static_flag"
6771
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6772
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6773
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
6774
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6775
 
else
6776
 
          if test "$cross_compiling" = yes; then :
6777
 
  lt_cv_dlopen_self_static=cross
6778
 
else
6779
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6780
 
  lt_status=$lt_dlunknown
6781
 
  cat > conftest.$ac_ext <<EOF
6782
 
#line 6782 "configure"
6783
 
#include "confdefs.h"
6784
 
 
6785
 
#if HAVE_DLFCN_H
6786
 
#include <dlfcn.h>
6787
 
#endif
6788
 
 
6789
 
#include <stdio.h>
6790
 
 
6791
 
#ifdef RTLD_GLOBAL
6792
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
6793
 
#else
6794
 
#  ifdef DL_GLOBAL
6795
 
#    define LT_DLGLOBAL         DL_GLOBAL
6796
 
#  else
6797
 
#    define LT_DLGLOBAL         0
6798
 
#  endif
6799
 
#endif
6800
 
 
6801
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6802
 
   find out it does not work in some platform. */
6803
 
#ifndef LT_DLLAZY_OR_NOW
6804
 
#  ifdef RTLD_LAZY
6805
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6806
 
#  else
6807
 
#    ifdef DL_LAZY
6808
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
6809
 
#    else
6810
 
#      ifdef RTLD_NOW
6811
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
6812
 
#      else
6813
 
#        ifdef DL_NOW
6814
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
6815
 
#        else
6816
 
#          define LT_DLLAZY_OR_NOW      0
6817
 
#        endif
6818
 
#      endif
6819
 
#    endif
6820
 
#  endif
6821
 
#endif
6822
 
 
6823
 
#ifdef __cplusplus
6824
 
extern "C" void exit (int);
6825
 
#endif
6826
 
 
6827
 
void fnord() { int i=42;}
6828
 
int main ()
6829
 
{
6830
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6831
 
  int status = $lt_dlunknown;
6832
 
 
6833
 
  if (self)
6834
 
    {
6835
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6836
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6837
 
      /* dlclose (self); */
6838
 
    }
6839
 
 
6840
 
    exit (status);
6841
 
}
6842
 
EOF
6843
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6844
 
  (eval $ac_link) 2>&5
6845
 
  ac_status=$?
6846
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6848
 
    (./conftest; exit; ) 2>/dev/null
6849
 
    lt_status=$?
6850
 
    case x$lt_status in
6851
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6852
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6853
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6854
 
    esac
6855
 
  else :
6856
 
    # compilation failed
6857
 
    lt_cv_dlopen_self_static=no
6858
 
  fi
6859
 
fi
6860
 
rm -fr conftest*
6861
 
 
6862
 
 
6863
 
fi
6864
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6865
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6866
 
    fi
6867
 
 
6868
 
    CPPFLAGS="$save_CPPFLAGS"
6869
 
    LDFLAGS="$save_LDFLAGS"
6870
 
    LIBS="$save_LIBS"
6871
 
    ;;
6872
 
  esac
6873
 
 
6874
 
  case $lt_cv_dlopen_self in
6875
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6876
 
  *) enable_dlopen_self=unknown ;;
6877
 
  esac
6878
 
 
6879
 
  case $lt_cv_dlopen_self_static in
6880
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6881
 
  *) enable_dlopen_self_static=unknown ;;
6882
 
  esac
6883
 
fi
6884
 
 
6885
 
 
6886
 
## FIXME: this should be a separate macro
6887
 
##
6888
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
6889
 
  case $archive_cmds in
6890
 
  *'~'*)
6891
 
    # FIXME: we may have to deal with multi-command sequences.
6892
 
    ;;
6893
 
  '$CC '*)
6894
 
    # Test whether the compiler implicitly links with -lc since on some
6895
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6896
 
    # to ld, don't add -lc before -lgcc.
6897
 
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6898
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6899
 
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6900
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6901
 
else
6902
 
  $rm conftest*
6903
 
    echo 'static int dummy;' > conftest.$ac_ext
6904
 
 
6905
 
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906
 
  (eval $ac_compile) 2>&5
6907
 
  ac_status=$?
6908
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909
 
  (exit $ac_status); }; then
6910
 
      soname=conftest
6911
 
      lib=conftest
6912
 
      libobjs=conftest.$ac_objext
6913
 
      deplibs=
6914
 
      wl=$lt_cv_prog_cc_wl
6915
 
      compiler_flags=-v
6916
 
      linker_flags=-v
6917
 
      verstring=
6918
 
      output_objdir=.
6919
 
      libname=conftest
6920
 
      save_allow_undefined_flag=$allow_undefined_flag
6921
 
      allow_undefined_flag=
6922
 
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6923
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6924
 
  ac_status=$?
6925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926
 
  (exit $ac_status); }
6927
 
      then
6928
 
        lt_cv_archive_cmds_need_lc=no
6929
 
      else
6930
 
        lt_cv_archive_cmds_need_lc=yes
6931
 
      fi
6932
 
      allow_undefined_flag=$save_allow_undefined_flag
6933
 
    else
6934
 
      cat conftest.err 1>&5
6935
 
    fi
6936
 
fi
6937
 
 
6938
 
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6939
 
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6940
 
    ;;
6941
 
  esac
6942
 
fi
6943
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
6944
 
##
6945
 
## END FIXME
6946
 
 
6947
 
## FIXME: this should be a separate macro
6948
 
##
6949
 
# The second clause should only fire when bootstrapping the
 
8676
 
 
8677
# The else clause should only fire when bootstrapping the
6950
8678
# libtool distribution, otherwise you forgot to ship ltmain.sh
6951
8679
# with your package, and you will get complaints that there are
6952
8680
# no rules to generate ltmain.sh.
6953
8681
if test -f "$ltmain"; then
6954
 
  :
6955
 
else
6956
 
  # If there is no Makefile yet, we rely on a make rule to execute
6957
 
  # `config.status --recheck' to rerun these tests and create the
6958
 
  # libtool script then.
6959
 
  test -f Makefile && make "$ltmain"
6960
 
fi
6961
 
 
6962
 
if test -f "$ltmain"; then
6963
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6964
 
  $rm -f "${ofile}T"
6965
 
 
6966
 
  echo creating $ofile
6967
 
 
 
8682
  # See if we are running on zsh, and set the options which allow our commands through
 
8683
  # without removal of \ escapes.
 
8684
  if test -n "${ZSH_VERSION+set}" ; then
 
8685
    setopt NO_GLOB_SUBST
 
8686
  fi
6968
8687
  # Now quote all the things that may contain metacharacters while being
6969
8688
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6970
8689
  # variables and quote the copies for generation of the libtool script.
6971
 
  for var in echo old_CC old_CFLAGS SED \
6972
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
6973
 
    reload_flag reload_cmds wl \
6974
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6975
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6976
 
    library_names_spec soname_spec \
6977
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6978
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6979
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6980
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
6981
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
6982
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6983
 
    global_symbol_to_c_name_address \
6984
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
8690
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
8691
    SED SHELL STRIP \
 
8692
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
8693
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
8694
    deplibs_check_method reload_flag reload_cmds need_locks \
 
8695
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
8696
    lt_cv_sys_global_symbol_to_c_name_address \
6985
8697
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6986
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
8698
    old_postinstall_cmds old_postuninstall_cmds \
 
8699
    compiler \
 
8700
    CC \
 
8701
    LD \
 
8702
    lt_prog_compiler_wl \
 
8703
    lt_prog_compiler_pic \
 
8704
    lt_prog_compiler_static \
 
8705
    lt_prog_compiler_no_builtin_flag \
 
8706
    export_dynamic_flag_spec \
 
8707
    thread_safe_flag_spec \
 
8708
    whole_archive_flag_spec \
 
8709
    enable_shared_with_static_runtimes \
 
8710
    old_archive_cmds \
 
8711
    old_archive_from_new_cmds \
 
8712
    predep_objects \
 
8713
    postdep_objects \
 
8714
    predeps \
 
8715
    postdeps \
 
8716
    compiler_lib_search_path \
 
8717
    archive_cmds \
 
8718
    archive_expsym_cmds \
 
8719
    postinstall_cmds \
 
8720
    postuninstall_cmds \
 
8721
    old_archive_from_expsyms_cmds \
 
8722
    allow_undefined_flag \
 
8723
    no_undefined_flag \
 
8724
    export_symbols_cmds \
 
8725
    hardcode_libdir_flag_spec \
 
8726
    hardcode_libdir_flag_spec_ld \
 
8727
    hardcode_libdir_separator \
 
8728
    hardcode_automatic \
 
8729
    module_cmds \
 
8730
    module_expsym_cmds \
 
8731
    lt_cv_prog_compiler_c_o \
 
8732
    exclude_expsyms \
 
8733
    include_expsyms; do
6987
8734
 
6988
8735
    case $var in
6989
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
8736
    old_archive_cmds | \
 
8737
    old_archive_from_new_cmds | \
 
8738
    archive_cmds | \
 
8739
    archive_expsym_cmds | \
 
8740
    module_cmds | \
 
8741
    module_expsym_cmds | \
 
8742
    old_archive_from_expsyms_cmds | \
 
8743
    export_symbols_cmds | \
 
8744
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
8745
    postinstall_cmds | postuninstall_cmds | \
6990
8746
    old_postinstall_cmds | old_postuninstall_cmds | \
6991
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6992
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6993
 
    postinstall_cmds | postuninstall_cmds | \
6994
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
8747
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6995
8748
      # Double-quote double-evaled strings.
6996
8749
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6997
8750
      ;;
7001
8754
    esac
7002
8755
  done
7003
8756
 
7004
 
  cat <<__EOF__ > "${ofile}T"
 
8757
  case $lt_echo in
 
8758
  *'\$0 --fallback-echo"')
 
8759
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
8760
    ;;
 
8761
  esac
 
8762
 
 
8763
cfgfile="${ofile}T"
 
8764
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
8765
  $rm -f "$cfgfile"
 
8766
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
8767
echo "$as_me: creating $ofile" >&6;}
 
8768
 
 
8769
  cat <<__EOF__ >> "$cfgfile"
7005
8770
#! $SHELL
7006
8771
 
7007
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
8772
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7008
8773
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7009
8774
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7010
8775
#
7011
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
8776
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
8777
# Free Software Foundation, Inc.
 
8778
#
 
8779
# This file is part of GNU Libtool:
7012
8780
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7013
8781
#
7014
8782
# This program is free software; you can redistribute it and/or modify
7030
8798
# configuration script generated by Autoconf, you may include it under
7031
8799
# the same distribution terms that you use for the rest of that program.
7032
8800
 
7033
 
# A sed that does not truncate output.
 
8801
# A sed program that does not truncate output.
7034
8802
SED=$lt_SED
7035
8803
 
7036
8804
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7037
 
Xsed="${SED} -e s/^X//"
 
8805
Xsed="$SED -e s/^X//"
7038
8806
 
7039
8807
# The HP-UX ksh and POSIX shell print the target directory to stdout
7040
8808
# if CDPATH is set.
7041
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
8809
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
8810
 
 
8811
# The names of the tagged configurations supported by this script.
 
8812
available_tags=
7042
8813
 
7043
8814
# ### BEGIN LIBTOOL CONFIG
7044
8815
 
7054
8825
build_old_libs=$enable_static
7055
8826
 
7056
8827
# Whether or not to add -lc for building shared libraries.
7057
 
build_libtool_need_lc=$need_lc
 
8828
build_libtool_need_lc=$archive_cmds_need_lc
 
8829
 
 
8830
# Whether or not to disallow shared libs when runtime libs are static
 
8831
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
7058
8832
 
7059
8833
# Whether or not to optimize for fast installation.
7060
8834
fast_install=$enable_fast_install
7062
8836
# The host system.
7063
8837
host_alias=$host_alias
7064
8838
host=$host
 
8839
host_os=$host_os
 
8840
 
 
8841
# The build system.
 
8842
build_alias=$build_alias
 
8843
build=$build
 
8844
build_os=$build_os
7065
8845
 
7066
8846
# An echo program that does not interpret backslashes.
7067
8847
echo=$lt_echo
7070
8850
AR=$lt_AR
7071
8851
AR_FLAGS=$lt_AR_FLAGS
7072
8852
 
7073
 
# The default C compiler.
7074
 
CC=$lt_CC
 
8853
# A C compiler.
 
8854
LTCC=$lt_LTCC
 
8855
 
 
8856
# A language-specific compiler.
 
8857
CC=$lt_compiler
7075
8858
 
7076
8859
# Is the compiler the GNU C compiler?
7077
8860
with_gcc=$GCC
7078
8861
 
 
8862
# An ERE matcher.
 
8863
EGREP=$lt_EGREP
 
8864
 
7079
8865
# The linker used to build libraries.
7080
8866
LD=$lt_LD
7081
8867
 
7086
8872
NM=$lt_NM
7087
8873
 
7088
8874
# A symbol stripping program
7089
 
STRIP=$STRIP
 
8875
STRIP=$lt_STRIP
7090
8876
 
7091
8877
# Used to examine libraries when file_magic_cmd begins "file"
7092
8878
MAGIC_CMD=$MAGIC_CMD
7108
8894
reload_cmds=$lt_reload_cmds
7109
8895
 
7110
8896
# How to pass a linker flag through the compiler.
7111
 
wl=$lt_wl
 
8897
wl=$lt_lt_prog_compiler_wl
7112
8898
 
7113
8899
# Object file suffix (normally "o").
7114
8900
objext="$ac_objext"
7116
8902
# Old archive suffix (normally "a").
7117
8903
libext="$libext"
7118
8904
 
 
8905
# Shared library suffix (normally ".so").
 
8906
shrext_cmds='$shrext_cmds'
 
8907
 
7119
8908
# Executable file suffix (normally "").
7120
8909
exeext="$exeext"
7121
8910
 
7122
8911
# Additional compiler flags for building library objects.
7123
 
pic_flag=$lt_pic_flag
 
8912
pic_flag=$lt_lt_prog_compiler_pic
7124
8913
pic_mode=$pic_mode
7125
8914
 
 
8915
# What is the maximum length of a command?
 
8916
max_cmd_len=$lt_cv_sys_max_cmd_len
 
8917
 
7126
8918
# Does compiler simultaneously support -c and -o options?
7127
 
compiler_c_o=$lt_compiler_c_o
7128
 
 
7129
 
# Can we write directly to a .lo ?
7130
 
compiler_o_lo=$lt_compiler_o_lo
 
8919
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
7131
8920
 
7132
8921
# Must we lock files when doing compilation ?
7133
8922
need_locks=$lt_need_locks
7148
8937
dlopen_self_static=$enable_dlopen_self_static
7149
8938
 
7150
8939
# Compiler flag to prevent dynamic linking.
7151
 
link_static_flag=$lt_link_static_flag
 
8940
link_static_flag=$lt_lt_prog_compiler_static
7152
8941
 
7153
8942
# Compiler flag to turn off builtin functions.
7154
 
no_builtin_flag=$lt_no_builtin_flag
 
8943
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
7155
8944
 
7156
8945
# Compiler flag to allow reflexive dlopens.
7157
8946
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7193
8982
postinstall_cmds=$lt_postinstall_cmds
7194
8983
postuninstall_cmds=$lt_postuninstall_cmds
7195
8984
 
 
8985
# Commands used to build a loadable module (assumed same as above if empty)
 
8986
module_cmds=$lt_module_cmds
 
8987
module_expsym_cmds=$lt_module_expsym_cmds
 
8988
 
7196
8989
# Commands to strip libraries.
7197
8990
old_striplib=$lt_old_striplib
7198
8991
striplib=$lt_striplib
7199
8992
 
 
8993
# Dependencies to place before the objects being linked to create a
 
8994
# shared library.
 
8995
predep_objects=$lt_predep_objects
 
8996
 
 
8997
# Dependencies to place after the objects being linked to create a
 
8998
# shared library.
 
8999
postdep_objects=$lt_postdep_objects
 
9000
 
 
9001
# Dependencies to place before the objects being linked to create a
 
9002
# shared library.
 
9003
predeps=$lt_predeps
 
9004
 
 
9005
# Dependencies to place after the objects being linked to create a
 
9006
# shared library.
 
9007
postdeps=$lt_postdeps
 
9008
 
 
9009
# The library search path used internally by the compiler when linking
 
9010
# a shared library.
 
9011
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9012
 
7200
9013
# Method to check whether dependent libraries are shared objects.
7201
9014
deplibs_check_method=$lt_deplibs_check_method
7202
9015
 
7216
9029
finish_eval=$lt_finish_eval
7217
9030
 
7218
9031
# Take the output of nm and produce a listing of raw symbols and C names.
7219
 
global_symbol_pipe=$lt_global_symbol_pipe
 
9032
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
7220
9033
 
7221
9034
# Transform the output of nm in a proper C declaration
7222
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
9035
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
7223
9036
 
7224
9037
# Transform the output of nm in a C name address pair
7225
 
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
9038
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
7226
9039
 
7227
9040
# This is the shared library runtime path variable.
7228
9041
runpath_var=$runpath_var
7243
9056
# This must work even if \$libdir does not exist.
7244
9057
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7245
9058
 
 
9059
# If ld is used when linking, flag to hardcode \$libdir into
 
9060
# a binary during linking. This must work even if \$libdir does
 
9061
# not exist.
 
9062
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9063
 
7246
9064
# Whether we need a single -rpath flag with a separated argument.
7247
9065
hardcode_libdir_separator=$lt_hardcode_libdir_separator
7248
9066
 
7249
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
9067
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
7250
9068
# resulting binary.
7251
9069
hardcode_direct=$hardcode_direct
7252
9070
 
7258
9076
# the resulting binary.
7259
9077
hardcode_shlibpath_var=$hardcode_shlibpath_var
7260
9078
 
 
9079
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9080
# and all subsequent libraries and executables linked against it.
 
9081
hardcode_automatic=$hardcode_automatic
 
9082
 
7261
9083
# Variables whose values should be saved in libtool wrapper scripts and
7262
9084
# restored at relink time.
7263
9085
variables_saved_for_relink="$variables_saved_for_relink"
7293
9115
 
7294
9116
__EOF__
7295
9117
 
 
9118
 
7296
9119
  case $host_os in
7297
9120
  aix3*)
7298
 
    cat <<\EOF >> "${ofile}T"
 
9121
    cat <<\EOF >> "$cfgfile"
7299
9122
 
7300
9123
# AIX sometimes has problems with the GCC collect2 program.  For some
7301
9124
# reason, if we set the COLLECT_NAMES environment variable, the problems
7308
9131
    ;;
7309
9132
  esac
7310
9133
 
7311
 
  case $host_os in
7312
 
  cygwin* | mingw* | pw32* | os2*)
7313
 
    cat <<'EOF' >> "${ofile}T"
7314
 
      # This is a source program that is used to create dlls on Windows
7315
 
      # Don't remove nor modify the starting and closing comments
7316
 
# /* ltdll.c starts here */
7317
 
# #define WIN32_LEAN_AND_MEAN
7318
 
# #include <windows.h>
7319
 
# #undef WIN32_LEAN_AND_MEAN
7320
 
# #include <stdio.h>
7321
 
#
7322
 
# #ifndef __CYGWIN__
7323
 
# #  ifdef __CYGWIN32__
7324
 
# #    define __CYGWIN__ __CYGWIN32__
7325
 
# #  endif
7326
 
# #endif
7327
 
#
7328
 
# #ifdef __cplusplus
7329
 
# extern "C" {
7330
 
# #endif
7331
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7332
 
# #ifdef __cplusplus
7333
 
# }
7334
 
# #endif
7335
 
#
7336
 
# #ifdef __CYGWIN__
7337
 
# #include <cygwin/cygwin_dll.h>
7338
 
# DECLARE_CYGWIN_DLL( DllMain );
7339
 
# #endif
7340
 
# HINSTANCE __hDllInstance_base;
7341
 
#
7342
 
# BOOL APIENTRY
7343
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7344
 
# {
7345
 
#   __hDllInstance_base = hInst;
7346
 
#   return TRUE;
7347
 
# }
7348
 
# /* ltdll.c ends here */
7349
 
        # This is a source program that is used to create import libraries
7350
 
        # on Windows for dlls which lack them. Don't remove nor modify the
7351
 
        # starting and closing comments
7352
 
# /* impgen.c starts here */
7353
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7354
 
#
7355
 
#  This file is part of GNU libtool.
7356
 
#
7357
 
#  This program is free software; you can redistribute it and/or modify
7358
 
#  it under the terms of the GNU General Public License as published by
7359
 
#  the Free Software Foundation; either version 2 of the License, or
7360
 
#  (at your option) any later version.
7361
 
#
7362
 
#  This program is distributed in the hope that it will be useful,
7363
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7364
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7365
 
#  GNU General Public License for more details.
7366
 
#
7367
 
#  You should have received a copy of the GNU General Public License
7368
 
#  along with this program; if not, write to the Free Software
7369
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7370
 
#  */
7371
 
#
7372
 
# #include <stdio.h>            /* for printf() */
7373
 
# #include <unistd.h>           /* for open(), lseek(), read() */
7374
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7375
 
# #include <string.h>           /* for strdup() */
7376
 
#
7377
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7378
 
# #ifndef O_BINARY
7379
 
# #define O_BINARY 0
7380
 
# #endif
7381
 
#
7382
 
# static unsigned int
7383
 
# pe_get16 (fd, offset)
7384
 
#      int fd;
7385
 
#      int offset;
7386
 
# {
7387
 
#   unsigned char b[2];
7388
 
#   lseek (fd, offset, SEEK_SET);
7389
 
#   read (fd, b, 2);
7390
 
#   return b[0] + (b[1]<<8);
7391
 
# }
7392
 
#
7393
 
# static unsigned int
7394
 
# pe_get32 (fd, offset)
7395
 
#     int fd;
7396
 
#     int offset;
7397
 
# {
7398
 
#   unsigned char b[4];
7399
 
#   lseek (fd, offset, SEEK_SET);
7400
 
#   read (fd, b, 4);
7401
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7402
 
# }
7403
 
#
7404
 
# static unsigned int
7405
 
# pe_as32 (ptr)
7406
 
#      void *ptr;
7407
 
# {
7408
 
#   unsigned char *b = ptr;
7409
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7410
 
# }
7411
 
#
7412
 
# int
7413
 
# main (argc, argv)
7414
 
#     int argc;
7415
 
#     char *argv[];
7416
 
# {
7417
 
#     int dll;
7418
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7419
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7420
 
#     unsigned long name_rvas, nexp;
7421
 
#     unsigned char *expdata, *erva;
7422
 
#     char *filename, *dll_name;
7423
 
#
7424
 
#     filename = argv[1];
7425
 
#
7426
 
#     dll = open(filename, O_RDONLY|O_BINARY);
7427
 
#     if (dll < 1)
7428
 
#       return 1;
7429
 
#
7430
 
#     dll_name = filename;
7431
 
#
7432
 
#     for (i=0; filename[i]; i++)
7433
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7434
 
#           dll_name = filename + i +1;
7435
 
#
7436
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
7437
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
7438
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7439
 
#
7440
 
#     if (num_entries < 1) /* no exports */
7441
 
#       return 1;
7442
 
#
7443
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7444
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7445
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7446
 
#     secptr = (pe_header_offset + 4 + 20 +
7447
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
7448
 
#
7449
 
#     expptr = 0;
7450
 
#     for (i = 0; i < nsections; i++)
7451
 
#     {
7452
 
#       char sname[8];
7453
 
#       unsigned long secptr1 = secptr + 40 * i;
7454
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7455
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7456
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7457
 
#       lseek(dll, secptr1, SEEK_SET);
7458
 
#       read(dll, sname, 8);
7459
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7460
 
#       {
7461
 
#           expptr = fptr + (export_rva - vaddr);
7462
 
#           if (export_rva + export_size > vaddr + vsize)
7463
 
#               export_size = vsize - (export_rva - vaddr);
7464
 
#           break;
7465
 
#       }
7466
 
#     }
7467
 
#
7468
 
#     expdata = (unsigned char*)malloc(export_size);
7469
 
#     lseek (dll, expptr, SEEK_SET);
7470
 
#     read (dll, expdata, export_size);
7471
 
#     erva = expdata - export_rva;
7472
 
#
7473
 
#     nexp = pe_as32 (expdata+24);
7474
 
#     name_rvas = pe_as32 (expdata+32);
7475
 
#
7476
 
#     printf ("EXPORTS\n");
7477
 
#     for (i = 0; i<nexp; i++)
7478
 
#     {
7479
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7480
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7481
 
#     }
7482
 
#
7483
 
#     return 0;
7484
 
# }
7485
 
# /* impgen.c ends here */
7486
 
 
7487
 
EOF
7488
 
    ;;
7489
 
  esac
7490
 
 
7491
9134
  # We use sed instead of cat because bash on DJGPP gets confused if
7492
9135
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7493
9136
  # text mode, it properly converts lines to CR/LF.  This bash problem
7494
9137
  # is reportedly fixed, but why not run on old versions too?
7495
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
9138
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7496
9139
 
7497
 
  mv -f "${ofile}T" "$ofile" || \
7498
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
9140
  mv -f "$cfgfile" "$ofile" || \
 
9141
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7499
9142
  chmod +x "$ofile"
7500
 
fi
7501
 
##
7502
 
## END FIXME
7503
 
 
7504
 
 
 
9143
 
 
9144
else
 
9145
  # If there is no Makefile yet, we rely on a make rule to execute
 
9146
  # `config.status --recheck' to rerun these tests and create the
 
9147
  # libtool script then.
 
9148
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9149
  if test -f "$ltmain_in"; then
 
9150
    test -f Makefile && make "$ltmain"
 
9151
  fi
 
9152
fi
 
9153
 
 
9154
 
 
9155
ac_ext=c
 
9156
ac_cpp='$CPP $CPPFLAGS'
 
9157
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9158
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9159
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9160
 
 
9161
CC="$lt_save_CC"
 
9162
 
 
9163
 
 
9164
# Check whether --with-tags or --without-tags was given.
 
9165
if test "${with_tags+set}" = set; then
 
9166
  withval="$with_tags"
 
9167
  tagnames="$withval"
 
9168
fi;
 
9169
 
 
9170
if test -f "$ltmain" && test -n "$tagnames"; then
 
9171
  if test ! -f "${ofile}"; then
 
9172
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9173
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9174
  fi
 
9175
 
 
9176
  if test -z "$LTCC"; then
 
9177
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9178
    if test -z "$LTCC"; then
 
9179
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9180
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9181
    else
 
9182
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9183
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9184
    fi
 
9185
  fi
 
9186
 
 
9187
  # Extract list of available tagged configurations in $ofile.
 
9188
  # Note that this assumes the entire list is on one line.
 
9189
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9190
 
 
9191
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9192
  for tagname in $tagnames; do
 
9193
    IFS="$lt_save_ifs"
 
9194
    # Check whether tagname contains only valid characters
 
9195
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9196
    "") ;;
 
9197
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9198
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9199
   { (exit 1); exit 1; }; }
 
9200
        ;;
 
9201
    esac
 
9202
 
 
9203
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9204
    then
 
9205
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9206
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9207
   { (exit 1); exit 1; }; }
 
9208
    fi
 
9209
 
 
9210
    # Update the list of available tags.
 
9211
    if test -n "$tagname"; then
 
9212
      echo appending configuration tag \"$tagname\" to $ofile
 
9213
 
 
9214
      case $tagname in
 
9215
      CXX)
 
9216
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9217
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9218
            (test "X$CXX" != "Xg++"))) ; then
 
9219
          ac_ext=cc
 
9220
ac_cpp='$CXXCPP $CPPFLAGS'
 
9221
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9222
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9223
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9224
 
 
9225
 
 
9226
 
 
9227
 
 
9228
archive_cmds_need_lc_CXX=no
 
9229
allow_undefined_flag_CXX=
 
9230
always_export_symbols_CXX=no
 
9231
archive_expsym_cmds_CXX=
 
9232
export_dynamic_flag_spec_CXX=
 
9233
hardcode_direct_CXX=no
 
9234
hardcode_libdir_flag_spec_CXX=
 
9235
hardcode_libdir_flag_spec_ld_CXX=
 
9236
hardcode_libdir_separator_CXX=
 
9237
hardcode_minus_L_CXX=no
 
9238
hardcode_automatic_CXX=no
 
9239
module_cmds_CXX=
 
9240
module_expsym_cmds_CXX=
 
9241
link_all_deplibs_CXX=unknown
 
9242
old_archive_cmds_CXX=$old_archive_cmds
 
9243
no_undefined_flag_CXX=
 
9244
whole_archive_flag_spec_CXX=
 
9245
enable_shared_with_static_runtimes_CXX=no
 
9246
 
 
9247
# Dependencies to place before and after the object being linked:
 
9248
predep_objects_CXX=
 
9249
postdep_objects_CXX=
 
9250
predeps_CXX=
 
9251
postdeps_CXX=
 
9252
compiler_lib_search_path_CXX=
 
9253
 
 
9254
# Source file extension for C++ test sources.
 
9255
ac_ext=cc
 
9256
 
 
9257
# Object file extension for compiled C++ test sources.
 
9258
objext=o
 
9259
objext_CXX=$objext
 
9260
 
 
9261
# Code to be used in simple compile tests
 
9262
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9263
 
 
9264
# Code to be used in simple link tests
 
9265
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9266
 
 
9267
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9268
 
 
9269
# If no C compiler was specified, use CC.
 
9270
LTCC=${LTCC-"$CC"}
 
9271
 
 
9272
# Allow CC to be a program name with arguments.
 
9273
compiler=$CC
 
9274
 
 
9275
 
 
9276
# Allow CC to be a program name with arguments.
 
9277
lt_save_CC=$CC
 
9278
lt_save_LD=$LD
 
9279
lt_save_GCC=$GCC
 
9280
GCC=$GXX
 
9281
lt_save_with_gnu_ld=$with_gnu_ld
 
9282
lt_save_path_LD=$lt_cv_path_LD
 
9283
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9284
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9285
else
 
9286
  unset lt_cv_prog_gnu_ld
 
9287
fi
 
9288
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9289
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9290
else
 
9291
  unset lt_cv_path_LD
 
9292
fi
 
9293
test -z "${LDCXX+set}" || LD=$LDCXX
 
9294
CC=${CXX-"c++"}
 
9295
compiler=$CC
 
9296
compiler_CXX=$CC
 
9297
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9298
 
 
9299
# We don't want -fno-exception wen compiling C++ code, so set the
 
9300
# no_builtin_flag separately
 
9301
if test "$GXX" = yes; then
 
9302
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9303
else
 
9304
  lt_prog_compiler_no_builtin_flag_CXX=
 
9305
fi
 
9306
 
 
9307
if test "$GXX" = yes; then
 
9308
  # Set up default GNU C++ configuration
 
9309
 
 
9310
 
 
9311
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9312
if test "${with_gnu_ld+set}" = set; then
 
9313
  withval="$with_gnu_ld"
 
9314
  test "$withval" = no || with_gnu_ld=yes
 
9315
else
 
9316
  with_gnu_ld=no
 
9317
fi;
 
9318
ac_prog=ld
 
9319
if test "$GCC" = yes; then
 
9320
  # Check if gcc -print-prog-name=ld gives a path.
 
9321
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9322
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9323
  case $host in
 
9324
  *-*-mingw*)
 
9325
    # gcc leaves a trailing carriage return which upsets mingw
 
9326
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9327
  *)
 
9328
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9329
  esac
 
9330
  case $ac_prog in
 
9331
    # Accept absolute paths.
 
9332
    [\\/]* | ?:[\\/]*)
 
9333
      re_direlt='/[^/][^/]*/\.\./'
 
9334
      # Canonicalize the pathname of ld
 
9335
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9336
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9337
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9338
      done
 
9339
      test -z "$LD" && LD="$ac_prog"
 
9340
      ;;
 
9341
  "")
 
9342
    # If it fails, then pretend we aren't using GCC.
 
9343
    ac_prog=ld
 
9344
    ;;
 
9345
  *)
 
9346
    # If it is relative, then search for the first ld in PATH.
 
9347
    with_gnu_ld=unknown
 
9348
    ;;
 
9349
  esac
 
9350
elif test "$with_gnu_ld" = yes; then
 
9351
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9352
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9353
else
 
9354
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9355
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9356
fi
 
9357
if test "${lt_cv_path_LD+set}" = set; then
 
9358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9359
else
 
9360
  if test -z "$LD"; then
 
9361
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9362
  for ac_dir in $PATH; do
 
9363
    IFS="$lt_save_ifs"
 
9364
    test -z "$ac_dir" && ac_dir=.
 
9365
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9366
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9367
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9368
      # but apparently some GNU ld's only accept -v.
 
9369
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9370
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9371
      *GNU* | *'with BFD'*)
 
9372
        test "$with_gnu_ld" != no && break
 
9373
        ;;
 
9374
      *)
 
9375
        test "$with_gnu_ld" != yes && break
 
9376
        ;;
 
9377
      esac
 
9378
    fi
 
9379
  done
 
9380
  IFS="$lt_save_ifs"
 
9381
else
 
9382
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9383
fi
 
9384
fi
 
9385
 
 
9386
LD="$lt_cv_path_LD"
 
9387
if test -n "$LD"; then
 
9388
  echo "$as_me:$LINENO: result: $LD" >&5
 
9389
echo "${ECHO_T}$LD" >&6
 
9390
else
 
9391
  echo "$as_me:$LINENO: result: no" >&5
 
9392
echo "${ECHO_T}no" >&6
 
9393
fi
 
9394
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9395
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9396
   { (exit 1); exit 1; }; }
 
9397
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9398
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9399
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9400
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9401
else
 
9402
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9403
case `$LD -v 2>&1 </dev/null` in
 
9404
*GNU* | *'with BFD'*)
 
9405
  lt_cv_prog_gnu_ld=yes
 
9406
  ;;
 
9407
*)
 
9408
  lt_cv_prog_gnu_ld=no
 
9409
  ;;
 
9410
esac
 
9411
fi
 
9412
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9413
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9414
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9415
 
 
9416
 
 
9417
 
 
9418
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9419
  # archiving commands below assume that GNU ld is being used.
 
9420
  if test "$with_gnu_ld" = yes; then
 
9421
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9422
    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'
 
9423
 
 
9424
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9425
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9426
 
 
9427
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9428
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9429
    #     investigate it a little bit more. (MM)
 
9430
    wlarc='${wl}'
 
9431
 
 
9432
    # ancient GNU ld didn't support --whole-archive et. al.
 
9433
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9434
        grep 'no-whole-archive' > /dev/null; then
 
9435
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9436
    else
 
9437
      whole_archive_flag_spec_CXX=
 
9438
    fi
 
9439
  else
 
9440
    with_gnu_ld=no
 
9441
    wlarc=
 
9442
 
 
9443
    # A generic and very simple default shared library creation
 
9444
    # command for GNU C++ for the case where it uses the native
 
9445
    # linker, instead of GNU ld.  If possible, this setting should
 
9446
    # overridden to take advantage of the native linker features on
 
9447
    # the platform it is being used on.
 
9448
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9449
  fi
 
9450
 
 
9451
  # Commands to make compiler produce verbose output that lists
 
9452
  # what "hidden" libraries, object files and flags are used when
 
9453
  # linking a shared library.
 
9454
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9455
 
 
9456
else
 
9457
  GXX=no
 
9458
  with_gnu_ld=no
 
9459
  wlarc=
 
9460
fi
 
9461
 
 
9462
# PORTME: fill in a description of your system's C++ link characteristics
 
9463
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9464
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9465
ld_shlibs_CXX=yes
 
9466
case $host_os in
 
9467
  aix3*)
 
9468
    # FIXME: insert proper C++ library support
 
9469
    ld_shlibs_CXX=no
 
9470
    ;;
 
9471
  aix4* | aix5*)
 
9472
    if test "$host_cpu" = ia64; then
 
9473
      # On IA64, the linker does run time linking by default, so we don't
 
9474
      # have to do anything special.
 
9475
      aix_use_runtimelinking=no
 
9476
      exp_sym_flag='-Bexport'
 
9477
      no_entry_flag=""
 
9478
    else
 
9479
      aix_use_runtimelinking=no
 
9480
 
 
9481
      # Test if we are trying to use run time linking or normal
 
9482
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9483
      # need to do runtime linking.
 
9484
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9485
        for ld_flag in $LDFLAGS; do
 
9486
          case $ld_flag in
 
9487
          *-brtl*)
 
9488
            aix_use_runtimelinking=yes
 
9489
            break
 
9490
            ;;
 
9491
          esac
 
9492
        done
 
9493
      esac
 
9494
 
 
9495
      exp_sym_flag='-bexport'
 
9496
      no_entry_flag='-bnoentry'
 
9497
    fi
 
9498
 
 
9499
    # When large executables or shared objects are built, AIX ld can
 
9500
    # have problems creating the table of contents.  If linking a library
 
9501
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9502
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9503
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9504
 
 
9505
    archive_cmds_CXX=''
 
9506
    hardcode_direct_CXX=yes
 
9507
    hardcode_libdir_separator_CXX=':'
 
9508
    link_all_deplibs_CXX=yes
 
9509
 
 
9510
    if test "$GXX" = yes; then
 
9511
      case $host_os in aix4.[012]|aix4.[012].*)
 
9512
      # We only want to do this on AIX 4.2 and lower, the check
 
9513
      # below for broken collect2 doesn't work under 4.3+
 
9514
        collect2name=`${CC} -print-prog-name=collect2`
 
9515
        if test -f "$collect2name" && \
 
9516
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9517
        then
 
9518
          # We have reworked collect2
 
9519
          hardcode_direct_CXX=yes
 
9520
        else
 
9521
          # We have old collect2
 
9522
          hardcode_direct_CXX=unsupported
 
9523
          # It fails to find uninstalled libraries when the uninstalled
 
9524
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9525
          # to unsupported forces relinking
 
9526
          hardcode_minus_L_CXX=yes
 
9527
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9528
          hardcode_libdir_separator_CXX=
 
9529
        fi
 
9530
      esac
 
9531
      shared_flag='-shared'
 
9532
      if test "$aix_use_runtimelinking" = yes; then
 
9533
        shared_flag="$shared_flag "'${wl}-G'
 
9534
      fi
 
9535
    else
 
9536
      # not using gcc
 
9537
      if test "$host_cpu" = ia64; then
 
9538
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9539
        # chokes on -Wl,-G. The following line is correct:
 
9540
        shared_flag='-G'
 
9541
      else
 
9542
        if test "$aix_use_runtimelinking" = yes; then
 
9543
          shared_flag='${wl}-G'
 
9544
        else
 
9545
          shared_flag='${wl}-bM:SRE'
 
9546
        fi
 
9547
      fi
 
9548
    fi
 
9549
 
 
9550
    # It seems that -bexpall does not export symbols beginning with
 
9551
    # underscore (_), so it is better to generate a list of symbols to export.
 
9552
    always_export_symbols_CXX=yes
 
9553
    if test "$aix_use_runtimelinking" = yes; then
 
9554
      # Warning - without using the other runtime loading flags (-brtl),
 
9555
      # -berok will link without error, but may produce a broken library.
 
9556
      allow_undefined_flag_CXX='-berok'
 
9557
      # Determine the default libpath from the value encoded in an empty executable.
 
9558
      cat >conftest.$ac_ext <<_ACEOF
 
9559
/* confdefs.h.  */
 
9560
_ACEOF
 
9561
cat confdefs.h >>conftest.$ac_ext
 
9562
cat >>conftest.$ac_ext <<_ACEOF
 
9563
/* end confdefs.h.  */
 
9564
 
 
9565
int
 
9566
main ()
 
9567
{
 
9568
 
 
9569
  ;
 
9570
  return 0;
 
9571
}
 
9572
_ACEOF
 
9573
rm -f conftest.$ac_objext conftest$ac_exeext
 
9574
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9575
  (eval $ac_link) 2>conftest.er1
 
9576
  ac_status=$?
 
9577
  grep -v '^ *+' conftest.er1 >conftest.err
 
9578
  rm -f conftest.er1
 
9579
  cat conftest.err >&5
 
9580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9581
  (exit $ac_status); } &&
 
9582
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9583
                         || test ! -s conftest.err'
 
9584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9585
  (eval $ac_try) 2>&5
 
9586
  ac_status=$?
 
9587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9588
  (exit $ac_status); }; } &&
 
9589
         { ac_try='test -s conftest$ac_exeext'
 
9590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9591
  (eval $ac_try) 2>&5
 
9592
  ac_status=$?
 
9593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9594
  (exit $ac_status); }; }; then
 
9595
 
 
9596
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9597
}'`
 
9598
# Check for a 64-bit object if we didn't find anything.
 
9599
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; }
 
9600
}'`; fi
 
9601
else
 
9602
  echo "$as_me: failed program was:" >&5
 
9603
sed 's/^/| /' conftest.$ac_ext >&5
 
9604
 
 
9605
fi
 
9606
rm -f conftest.err conftest.$ac_objext \
 
9607
      conftest$ac_exeext conftest.$ac_ext
 
9608
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9609
 
 
9610
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9611
 
 
9612
      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"
 
9613
     else
 
9614
      if test "$host_cpu" = ia64; then
 
9615
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
9616
        allow_undefined_flag_CXX="-z nodefs"
 
9617
        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"
 
9618
      else
 
9619
        # Determine the default libpath from the value encoded in an empty executable.
 
9620
        cat >conftest.$ac_ext <<_ACEOF
 
9621
/* confdefs.h.  */
 
9622
_ACEOF
 
9623
cat confdefs.h >>conftest.$ac_ext
 
9624
cat >>conftest.$ac_ext <<_ACEOF
 
9625
/* end confdefs.h.  */
 
9626
 
 
9627
int
 
9628
main ()
 
9629
{
 
9630
 
 
9631
  ;
 
9632
  return 0;
 
9633
}
 
9634
_ACEOF
 
9635
rm -f conftest.$ac_objext conftest$ac_exeext
 
9636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9637
  (eval $ac_link) 2>conftest.er1
 
9638
  ac_status=$?
 
9639
  grep -v '^ *+' conftest.er1 >conftest.err
 
9640
  rm -f conftest.er1
 
9641
  cat conftest.err >&5
 
9642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9643
  (exit $ac_status); } &&
 
9644
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9645
                         || test ! -s conftest.err'
 
9646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9647
  (eval $ac_try) 2>&5
 
9648
  ac_status=$?
 
9649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9650
  (exit $ac_status); }; } &&
 
9651
         { ac_try='test -s conftest$ac_exeext'
 
9652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9653
  (eval $ac_try) 2>&5
 
9654
  ac_status=$?
 
9655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9656
  (exit $ac_status); }; }; then
 
9657
 
 
9658
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9659
}'`
 
9660
# Check for a 64-bit object if we didn't find anything.
 
9661
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; }
 
9662
}'`; fi
 
9663
else
 
9664
  echo "$as_me: failed program was:" >&5
 
9665
sed 's/^/| /' conftest.$ac_ext >&5
 
9666
 
 
9667
fi
 
9668
rm -f conftest.err conftest.$ac_objext \
 
9669
      conftest$ac_exeext conftest.$ac_ext
 
9670
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9671
 
 
9672
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9673
        # Warning - without using the other run time loading flags,
 
9674
        # -berok will link without error, but may produce a broken library.
 
9675
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
9676
        allow_undefined_flag_CXX=' ${wl}-berok'
 
9677
        # -bexpall does not export symbols beginning with underscore (_)
 
9678
        always_export_symbols_CXX=yes
 
9679
        # Exported symbols can be pulled into shared objects from archives
 
9680
        whole_archive_flag_spec_CXX=' '
 
9681
        archive_cmds_need_lc_CXX=yes
 
9682
        # This is similar to how AIX traditionally builds it's shared libraries.
 
9683
        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'
 
9684
      fi
 
9685
    fi
 
9686
    ;;
 
9687
  chorus*)
 
9688
    case $cc_basename in
 
9689
      *)
 
9690
        # FIXME: insert proper C++ library support
 
9691
        ld_shlibs_CXX=no
 
9692
        ;;
 
9693
    esac
 
9694
    ;;
 
9695
 
 
9696
 
 
9697
  cygwin* | mingw* | pw32*)
 
9698
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
9699
    # as there is no search path for DLLs.
 
9700
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9701
    allow_undefined_flag_CXX=unsupported
 
9702
    always_export_symbols_CXX=no
 
9703
    enable_shared_with_static_runtimes_CXX=yes
 
9704
 
 
9705
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9706
      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'
 
9707
      # If the export-symbols file already is a .def file (1st line
 
9708
      # is EXPORTS), use it as is; otherwise, prepend...
 
9709
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9710
        cp $export_symbols $output_objdir/$soname.def;
 
9711
      else
 
9712
        echo EXPORTS > $output_objdir/$soname.def;
 
9713
        cat $export_symbols >> $output_objdir/$soname.def;
 
9714
      fi~
 
9715
      $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'
 
9716
    else
 
9717
      ld_shlibs_CXX=no
 
9718
    fi
 
9719
  ;;
 
9720
      darwin* | rhapsody*)
 
9721
        case "$host_os" in
 
9722
        rhapsody* | darwin1.[012])
 
9723
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
9724
         ;;
 
9725
       *) # Darwin 1.3 on
 
9726
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9727
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9728
         else
 
9729
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
9730
             10.[012])
 
9731
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9732
               ;;
 
9733
             10.*)
 
9734
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
9735
               ;;
 
9736
           esac
 
9737
         fi
 
9738
         ;;
 
9739
        esac
 
9740
      archive_cmds_need_lc_CXX=no
 
9741
      hardcode_direct_CXX=no
 
9742
      hardcode_automatic_CXX=yes
 
9743
      hardcode_shlibpath_var_CXX=unsupported
 
9744
      whole_archive_flag_spec_CXX=''
 
9745
      link_all_deplibs_CXX=yes
 
9746
 
 
9747
    if test "$GXX" = yes ; then
 
9748
      lt_int_apple_cc_single_mod=no
 
9749
      output_verbose_link_cmd='echo'
 
9750
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
9751
       lt_int_apple_cc_single_mod=yes
 
9752
      fi
 
9753
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9754
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9755
      else
 
9756
          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'
 
9757
        fi
 
9758
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9759
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9760
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9761
            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}'
 
9762
          else
 
9763
            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}'
 
9764
          fi
 
9765
            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}'
 
9766
      else
 
9767
      case "$cc_basename" in
 
9768
        xlc*)
 
9769
         output_verbose_link_cmd='echo'
 
9770
          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'
 
9771
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9772
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9773
          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}'
 
9774
          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}'
 
9775
          ;;
 
9776
       *)
 
9777
         ld_shlibs_CXX=no
 
9778
          ;;
 
9779
      esac
 
9780
      fi
 
9781
        ;;
 
9782
 
 
9783
  dgux*)
 
9784
    case $cc_basename in
 
9785
      ec++)
 
9786
        # FIXME: insert proper C++ library support
 
9787
        ld_shlibs_CXX=no
 
9788
        ;;
 
9789
      ghcx)
 
9790
        # Green Hills C++ Compiler
 
9791
        # FIXME: insert proper C++ library support
 
9792
        ld_shlibs_CXX=no
 
9793
        ;;
 
9794
      *)
 
9795
        # FIXME: insert proper C++ library support
 
9796
        ld_shlibs_CXX=no
 
9797
        ;;
 
9798
    esac
 
9799
    ;;
 
9800
  freebsd[12]*)
 
9801
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
9802
    ld_shlibs_CXX=no
 
9803
    ;;
 
9804
  freebsd-elf*)
 
9805
    archive_cmds_need_lc_CXX=no
 
9806
    ;;
 
9807
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
9808
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
9809
    # conventions
 
9810
    ld_shlibs_CXX=yes
 
9811
    ;;
 
9812
  gnu*)
 
9813
    ;;
 
9814
  hpux9*)
 
9815
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9816
    hardcode_libdir_separator_CXX=:
 
9817
    export_dynamic_flag_spec_CXX='${wl}-E'
 
9818
    hardcode_direct_CXX=yes
 
9819
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9820
                                # but as the default
 
9821
                                # location of the library.
 
9822
 
 
9823
    case $cc_basename in
 
9824
    CC)
 
9825
      # FIXME: insert proper C++ library support
 
9826
      ld_shlibs_CXX=no
 
9827
      ;;
 
9828
    aCC)
 
9829
      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'
 
9830
      # Commands to make compiler produce verbose output that lists
 
9831
      # what "hidden" libraries, object files and flags are used when
 
9832
      # linking a shared library.
 
9833
      #
 
9834
      # There doesn't appear to be a way to prevent this compiler from
 
9835
      # explicitly linking system object files so we need to strip them
 
9836
      # from the output so that they don't get included in the library
 
9837
      # dependencies.
 
9838
      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'
 
9839
      ;;
 
9840
    *)
 
9841
      if test "$GXX" = yes; then
 
9842
        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'
 
9843
      else
 
9844
        # FIXME: insert proper C++ library support
 
9845
        ld_shlibs_CXX=no
 
9846
      fi
 
9847
      ;;
 
9848
    esac
 
9849
    ;;
 
9850
  hpux10*|hpux11*)
 
9851
    if test $with_gnu_ld = no; then
 
9852
      case "$host_cpu" in
 
9853
      hppa*64*)
 
9854
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9855
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
9856
        hardcode_libdir_separator_CXX=:
 
9857
        ;;
 
9858
      ia64*)
 
9859
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9860
        ;;
 
9861
      *)
 
9862
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9863
        hardcode_libdir_separator_CXX=:
 
9864
        export_dynamic_flag_spec_CXX='${wl}-E'
 
9865
        ;;
 
9866
      esac
 
9867
    fi
 
9868
    case "$host_cpu" in
 
9869
    hppa*64*)
 
9870
      hardcode_direct_CXX=no
 
9871
      hardcode_shlibpath_var_CXX=no
 
9872
      ;;
 
9873
    ia64*)
 
9874
      hardcode_direct_CXX=no
 
9875
      hardcode_shlibpath_var_CXX=no
 
9876
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9877
                                              # but as the default
 
9878
                                              # location of the library.
 
9879
      ;;
 
9880
    *)
 
9881
      hardcode_direct_CXX=yes
 
9882
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9883
                                              # but as the default
 
9884
                                              # location of the library.
 
9885
      ;;
 
9886
    esac
 
9887
 
 
9888
    case $cc_basename in
 
9889
      CC)
 
9890
        # FIXME: insert proper C++ library support
 
9891
        ld_shlibs_CXX=no
 
9892
        ;;
 
9893
      aCC)
 
9894
        case "$host_cpu" in
 
9895
        hppa*64*|ia64*)
 
9896
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9897
          ;;
 
9898
        *)
 
9899
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9900
          ;;
 
9901
        esac
 
9902
        # Commands to make compiler produce verbose output that lists
 
9903
        # what "hidden" libraries, object files and flags are used when
 
9904
        # linking a shared library.
 
9905
        #
 
9906
        # There doesn't appear to be a way to prevent this compiler from
 
9907
        # explicitly linking system object files so we need to strip them
 
9908
        # from the output so that they don't get included in the library
 
9909
        # dependencies.
 
9910
        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'
 
9911
        ;;
 
9912
      *)
 
9913
        if test "$GXX" = yes; then
 
9914
          if test $with_gnu_ld = no; then
 
9915
            case "$host_cpu" in
 
9916
            ia64*|hppa*64*)
 
9917
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9918
              ;;
 
9919
            *)
 
9920
              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'
 
9921
              ;;
 
9922
            esac
 
9923
          fi
 
9924
        else
 
9925
          # FIXME: insert proper C++ library support
 
9926
          ld_shlibs_CXX=no
 
9927
        fi
 
9928
        ;;
 
9929
    esac
 
9930
    ;;
 
9931
  irix5* | irix6*)
 
9932
    case $cc_basename in
 
9933
      CC)
 
9934
        # SGI C++
 
9935
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
9936
 
 
9937
        # Archives containing C++ object files must be created using
 
9938
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
9939
        # necessary to make sure instantiated templates are included
 
9940
        # in the archive.
 
9941
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
9942
        ;;
 
9943
      *)
 
9944
        if test "$GXX" = yes; then
 
9945
          if test "$with_gnu_ld" = no; then
 
9946
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
9947
          else
 
9948
            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'
 
9949
          fi
 
9950
        fi
 
9951
        link_all_deplibs_CXX=yes
 
9952
        ;;
 
9953
    esac
 
9954
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9955
    hardcode_libdir_separator_CXX=:
 
9956
    ;;
 
9957
  linux*)
 
9958
    case $cc_basename in
 
9959
      KCC)
 
9960
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9961
 
 
9962
        # KCC will only create a shared library if the output file
 
9963
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9964
        # to its proper name (with version) after linking.
 
9965
        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'
 
9966
        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'
 
9967
        # Commands to make compiler produce verbose output that lists
 
9968
        # what "hidden" libraries, object files and flags are used when
 
9969
        # linking a shared library.
 
9970
        #
 
9971
        # There doesn't appear to be a way to prevent this compiler from
 
9972
        # explicitly linking system object files so we need to strip them
 
9973
        # from the output so that they don't get included in the library
 
9974
        # dependencies.
 
9975
        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'
 
9976
 
 
9977
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
9978
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9979
 
 
9980
        # Archives containing C++ object files must be created using
 
9981
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
9982
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
9983
        ;;
 
9984
      icpc)
 
9985
        # Intel C++
 
9986
        with_gnu_ld=yes
 
9987
        # version 8.0 and above of icpc choke on multiply defined symbols
 
9988
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
9989
        # earlier do not add the objects themselves.
 
9990
        case `$CC -V 2>&1` in
 
9991
        *"Version 7."*)
 
9992
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9993
          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'
 
9994
          ;;
 
9995
        *)  # Version 8.0 or newer
 
9996
          tmp_idyn=
 
9997
          case $host_cpu in
 
9998
            ia64*) tmp_idyn=' -i_dynamic';;
 
9999
          esac
 
10000
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10001
          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'
 
10002
          ;;
 
10003
        esac
 
10004
        archive_cmds_need_lc_CXX=no
 
10005
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10006
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10007
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10008
        ;;
 
10009
      pgCC)
 
10010
        # Portland Group C++ compiler
 
10011
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10012
        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'
 
10013
 
 
10014
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10015
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10016
        ;;
 
10017
      cxx)
 
10018
        # Compaq C++
 
10019
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10020
        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'
 
10021
 
 
10022
        runpath_var=LD_RUN_PATH
 
10023
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10024
        hardcode_libdir_separator_CXX=:
 
10025
 
 
10026
        # Commands to make compiler produce verbose output that lists
 
10027
        # what "hidden" libraries, object files and flags are used when
 
10028
        # linking a shared library.
 
10029
        #
 
10030
        # There doesn't appear to be a way to prevent this compiler from
 
10031
        # explicitly linking system object files so we need to strip them
 
10032
        # from the output so that they don't get included in the library
 
10033
        # dependencies.
 
10034
        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'
 
10035
        ;;
 
10036
    esac
 
10037
    ;;
 
10038
  lynxos*)
 
10039
    # FIXME: insert proper C++ library support
 
10040
    ld_shlibs_CXX=no
 
10041
    ;;
 
10042
  m88k*)
 
10043
    # FIXME: insert proper C++ library support
 
10044
    ld_shlibs_CXX=no
 
10045
    ;;
 
10046
  mvs*)
 
10047
    case $cc_basename in
 
10048
      cxx)
 
10049
        # FIXME: insert proper C++ library support
 
10050
        ld_shlibs_CXX=no
 
10051
        ;;
 
10052
      *)
 
10053
        # FIXME: insert proper C++ library support
 
10054
        ld_shlibs_CXX=no
 
10055
        ;;
 
10056
    esac
 
10057
    ;;
 
10058
  netbsd*)
 
10059
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10060
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10061
      wlarc=
 
10062
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10063
      hardcode_direct_CXX=yes
 
10064
      hardcode_shlibpath_var_CXX=no
 
10065
    fi
 
10066
    # Workaround some broken pre-1.5 toolchains
 
10067
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10068
    ;;
 
10069
  openbsd2*)
 
10070
    # C++ shared libraries are fairly broken
 
10071
    ld_shlibs_CXX=no
 
10072
    ;;
 
10073
  openbsd*)
 
10074
    hardcode_direct_CXX=yes
 
10075
    hardcode_shlibpath_var_CXX=no
 
10076
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10077
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10078
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10079
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10080
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10081
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10082
    fi
 
10083
    output_verbose_link_cmd='echo'
 
10084
    ;;
 
10085
  osf3*)
 
10086
    case $cc_basename in
 
10087
      KCC)
 
10088
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10089
 
 
10090
        # KCC will only create a shared library if the output file
 
10091
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10092
        # to its proper name (with version) after linking.
 
10093
        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'
 
10094
 
 
10095
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10096
        hardcode_libdir_separator_CXX=:
 
10097
 
 
10098
        # Archives containing C++ object files must be created using
 
10099
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10100
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10101
 
 
10102
        ;;
 
10103
      RCC)
 
10104
        # Rational C++ 2.4.1
 
10105
        # FIXME: insert proper C++ library support
 
10106
        ld_shlibs_CXX=no
 
10107
        ;;
 
10108
      cxx)
 
10109
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10110
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10111
 
 
10112
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10113
        hardcode_libdir_separator_CXX=:
 
10114
 
 
10115
        # Commands to make compiler produce verbose output that lists
 
10116
        # what "hidden" libraries, object files and flags are used when
 
10117
        # linking a shared library.
 
10118
        #
 
10119
        # There doesn't appear to be a way to prevent this compiler from
 
10120
        # explicitly linking system object files so we need to strip them
 
10121
        # from the output so that they don't get included in the library
 
10122
        # dependencies.
 
10123
        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'
 
10124
        ;;
 
10125
      *)
 
10126
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10127
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10128
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10129
 
 
10130
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10131
          hardcode_libdir_separator_CXX=:
 
10132
 
 
10133
          # Commands to make compiler produce verbose output that lists
 
10134
          # what "hidden" libraries, object files and flags are used when
 
10135
          # linking a shared library.
 
10136
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10137
 
 
10138
        else
 
10139
          # FIXME: insert proper C++ library support
 
10140
          ld_shlibs_CXX=no
 
10141
        fi
 
10142
        ;;
 
10143
    esac
 
10144
    ;;
 
10145
  osf4* | osf5*)
 
10146
    case $cc_basename in
 
10147
      KCC)
 
10148
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10149
 
 
10150
        # KCC will only create a shared library if the output file
 
10151
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10152
        # to its proper name (with version) after linking.
 
10153
        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'
 
10154
 
 
10155
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10156
        hardcode_libdir_separator_CXX=:
 
10157
 
 
10158
        # Archives containing C++ object files must be created using
 
10159
        # the KAI C++ compiler.
 
10160
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10161
        ;;
 
10162
      RCC)
 
10163
        # Rational C++ 2.4.1
 
10164
        # FIXME: insert proper C++ library support
 
10165
        ld_shlibs_CXX=no
 
10166
        ;;
 
10167
      cxx)
 
10168
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10169
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10170
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10171
          echo "-hidden">> $lib.exp~
 
10172
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
10173
          $rm $lib.exp'
 
10174
 
 
10175
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10176
        hardcode_libdir_separator_CXX=:
 
10177
 
 
10178
        # Commands to make compiler produce verbose output that lists
 
10179
        # what "hidden" libraries, object files and flags are used when
 
10180
        # linking a shared library.
 
10181
        #
 
10182
        # There doesn't appear to be a way to prevent this compiler from
 
10183
        # explicitly linking system object files so we need to strip them
 
10184
        # from the output so that they don't get included in the library
 
10185
        # dependencies.
 
10186
        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'
 
10187
        ;;
 
10188
      *)
 
10189
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10190
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10191
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10192
 
 
10193
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10194
          hardcode_libdir_separator_CXX=:
 
10195
 
 
10196
          # Commands to make compiler produce verbose output that lists
 
10197
          # what "hidden" libraries, object files and flags are used when
 
10198
          # linking a shared library.
 
10199
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10200
 
 
10201
        else
 
10202
          # FIXME: insert proper C++ library support
 
10203
          ld_shlibs_CXX=no
 
10204
        fi
 
10205
        ;;
 
10206
    esac
 
10207
    ;;
 
10208
  psos*)
 
10209
    # FIXME: insert proper C++ library support
 
10210
    ld_shlibs_CXX=no
 
10211
    ;;
 
10212
  sco*)
 
10213
    archive_cmds_need_lc_CXX=no
 
10214
    case $cc_basename in
 
10215
      CC)
 
10216
        # FIXME: insert proper C++ library support
 
10217
        ld_shlibs_CXX=no
 
10218
        ;;
 
10219
      *)
 
10220
        # FIXME: insert proper C++ library support
 
10221
        ld_shlibs_CXX=no
 
10222
        ;;
 
10223
    esac
 
10224
    ;;
 
10225
  sunos4*)
 
10226
    case $cc_basename in
 
10227
      CC)
 
10228
        # Sun C++ 4.x
 
10229
        # FIXME: insert proper C++ library support
 
10230
        ld_shlibs_CXX=no
 
10231
        ;;
 
10232
      lcc)
 
10233
        # Lucid
 
10234
        # FIXME: insert proper C++ library support
 
10235
        ld_shlibs_CXX=no
 
10236
        ;;
 
10237
      *)
 
10238
        # FIXME: insert proper C++ library support
 
10239
        ld_shlibs_CXX=no
 
10240
        ;;
 
10241
    esac
 
10242
    ;;
 
10243
  solaris*)
 
10244
    case $cc_basename in
 
10245
      CC)
 
10246
        # Sun C++ 4.2, 5.x and Centerline C++
 
10247
        no_undefined_flag_CXX=' -zdefs'
 
10248
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10249
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10250
        $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'
 
10251
 
 
10252
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10253
        hardcode_shlibpath_var_CXX=no
 
10254
        case $host_os in
 
10255
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10256
          *)
 
10257
            # The C++ compiler is used as linker so we must use $wl
 
10258
            # flag to pass the commands to the underlying system
 
10259
            # linker.
 
10260
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10261
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10262
            ;;
 
10263
        esac
 
10264
        link_all_deplibs_CXX=yes
 
10265
 
 
10266
        # Commands to make compiler produce verbose output that lists
 
10267
        # what "hidden" libraries, object files and flags are used when
 
10268
        # linking a shared library.
 
10269
        #
 
10270
        # There doesn't appear to be a way to prevent this compiler from
 
10271
        # explicitly linking system object files so we need to strip them
 
10272
        # from the output so that they don't get included in the library
 
10273
        # dependencies.
 
10274
        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'
 
10275
 
 
10276
        # Archives containing C++ object files must be created using
 
10277
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10278
        # necessary to make sure instantiated templates are included
 
10279
        # in the archive.
 
10280
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10281
        ;;
 
10282
      gcx)
 
10283
        # Green Hills C++ Compiler
 
10284
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10285
 
 
10286
        # The C++ compiler must be used to create the archive.
 
10287
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10288
        ;;
 
10289
      *)
 
10290
        # GNU C++ compiler with Solaris linker
 
10291
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10292
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10293
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10294
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10295
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10296
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10297
 
 
10298
            # Commands to make compiler produce verbose output that lists
 
10299
            # what "hidden" libraries, object files and flags are used when
 
10300
            # linking a shared library.
 
10301
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10302
          else
 
10303
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10304
            # platform.
 
10305
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10306
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10307
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10308
 
 
10309
            # Commands to make compiler produce verbose output that lists
 
10310
            # what "hidden" libraries, object files and flags are used when
 
10311
            # linking a shared library.
 
10312
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10313
          fi
 
10314
 
 
10315
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10316
        fi
 
10317
        ;;
 
10318
    esac
 
10319
    ;;
 
10320
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10321
    archive_cmds_need_lc_CXX=no
 
10322
    ;;
 
10323
  tandem*)
 
10324
    case $cc_basename in
 
10325
      NCC)
 
10326
        # NonStop-UX NCC 3.20
 
10327
        # FIXME: insert proper C++ library support
 
10328
        ld_shlibs_CXX=no
 
10329
        ;;
 
10330
      *)
 
10331
        # FIXME: insert proper C++ library support
 
10332
        ld_shlibs_CXX=no
 
10333
        ;;
 
10334
    esac
 
10335
    ;;
 
10336
  vxworks*)
 
10337
    # FIXME: insert proper C++ library support
 
10338
    ld_shlibs_CXX=no
 
10339
    ;;
 
10340
  *)
 
10341
    # FIXME: insert proper C++ library support
 
10342
    ld_shlibs_CXX=no
 
10343
    ;;
 
10344
esac
 
10345
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10346
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10347
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10348
 
 
10349
GCC_CXX="$GXX"
 
10350
LD_CXX="$LD"
 
10351
 
 
10352
## CAVEAT EMPTOR:
 
10353
## There is no encapsulation within the following macros, do not change
 
10354
## the running order or otherwise move them around unless you know exactly
 
10355
## what you are doing...
 
10356
 
 
10357
cat > conftest.$ac_ext <<EOF
 
10358
class Foo
 
10359
{
 
10360
public:
 
10361
  Foo (void) { a = 0; }
 
10362
private:
 
10363
  int a;
 
10364
};
 
10365
EOF
 
10366
 
 
10367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10368
  (eval $ac_compile) 2>&5
 
10369
  ac_status=$?
 
10370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10371
  (exit $ac_status); }; then
 
10372
  # Parse the compiler output and extract the necessary
 
10373
  # objects, libraries and library flags.
 
10374
 
 
10375
  # Sentinel used to keep track of whether or not we are before
 
10376
  # the conftest object file.
 
10377
  pre_test_object_deps_done=no
 
10378
 
 
10379
  # The `*' in the case matches for architectures that use `case' in
 
10380
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10381
  # eval without this substitution.
 
10382
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10383
 
 
10384
  for p in `eval $output_verbose_link_cmd`; do
 
10385
    case $p in
 
10386
 
 
10387
    -L* | -R* | -l*)
 
10388
       # Some compilers place space between "-{L,R}" and the path.
 
10389
       # Remove the space.
 
10390
       if test $p = "-L" \
 
10391
          || test $p = "-R"; then
 
10392
         prev=$p
 
10393
         continue
 
10394
       else
 
10395
         prev=
 
10396
       fi
 
10397
 
 
10398
       if test "$pre_test_object_deps_done" = no; then
 
10399
         case $p in
 
10400
         -L* | -R*)
 
10401
           # Internal compiler library paths should come after those
 
10402
           # provided the user.  The postdeps already come after the
 
10403
           # user supplied libs so there is no need to process them.
 
10404
           if test -z "$compiler_lib_search_path_CXX"; then
 
10405
             compiler_lib_search_path_CXX="${prev}${p}"
 
10406
           else
 
10407
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
10408
           fi
 
10409
           ;;
 
10410
         # The "-l" case would never come before the object being
 
10411
         # linked, so don't bother handling this case.
 
10412
         esac
 
10413
       else
 
10414
         if test -z "$postdeps_CXX"; then
 
10415
           postdeps_CXX="${prev}${p}"
 
10416
         else
 
10417
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
10418
         fi
 
10419
       fi
 
10420
       ;;
 
10421
 
 
10422
    *.$objext)
 
10423
       # This assumes that the test object file only shows up
 
10424
       # once in the compiler output.
 
10425
       if test "$p" = "conftest.$objext"; then
 
10426
         pre_test_object_deps_done=yes
 
10427
         continue
 
10428
       fi
 
10429
 
 
10430
       if test "$pre_test_object_deps_done" = no; then
 
10431
         if test -z "$predep_objects_CXX"; then
 
10432
           predep_objects_CXX="$p"
 
10433
         else
 
10434
           predep_objects_CXX="$predep_objects_CXX $p"
 
10435
         fi
 
10436
       else
 
10437
         if test -z "$postdep_objects_CXX"; then
 
10438
           postdep_objects_CXX="$p"
 
10439
         else
 
10440
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
10441
         fi
 
10442
       fi
 
10443
       ;;
 
10444
 
 
10445
    *) ;; # Ignore the rest.
 
10446
 
 
10447
    esac
 
10448
  done
 
10449
 
 
10450
  # Clean up.
 
10451
  rm -f a.out a.exe
 
10452
else
 
10453
  echo "libtool.m4: error: problem compiling CXX test program"
 
10454
fi
 
10455
 
 
10456
$rm -f confest.$objext
 
10457
 
 
10458
case " $postdeps_CXX " in
 
10459
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10460
esac
 
10461
 
 
10462
lt_prog_compiler_wl_CXX=
 
10463
lt_prog_compiler_pic_CXX=
 
10464
lt_prog_compiler_static_CXX=
 
10465
 
 
10466
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10467
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10468
 
 
10469
  # C++ specific cases for pic, static, wl, etc.
 
10470
  if test "$GXX" = yes; then
 
10471
    lt_prog_compiler_wl_CXX='-Wl,'
 
10472
    lt_prog_compiler_static_CXX='-static'
 
10473
 
 
10474
    case $host_os in
 
10475
    aix*)
 
10476
      # All AIX code is PIC.
 
10477
      if test "$host_cpu" = ia64; then
 
10478
        # AIX 5 now supports IA64 processor
 
10479
        lt_prog_compiler_static_CXX='-Bstatic'
 
10480
      fi
 
10481
      ;;
 
10482
    amigaos*)
 
10483
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10484
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10485
      # like `-m68040'.
 
10486
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10487
      ;;
 
10488
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10489
      # PIC is the default for these OSes.
 
10490
      ;;
 
10491
    mingw* | os2* | pw32*)
 
10492
      # This hack is so that the source file can tell whether it is being
 
10493
      # built for inclusion in a dll (and should export symbols for example).
 
10494
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10495
      ;;
 
10496
    darwin* | rhapsody*)
 
10497
      # PIC is the default on this platform
 
10498
      # Common symbols not allowed in MH_DYLIB files
 
10499
      lt_prog_compiler_pic_CXX='-fno-common'
 
10500
      ;;
 
10501
    *djgpp*)
 
10502
      # DJGPP does not support shared libraries at all
 
10503
      lt_prog_compiler_pic_CXX=
 
10504
      ;;
 
10505
    sysv4*MP*)
 
10506
      if test -d /usr/nec; then
 
10507
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10508
      fi
 
10509
      ;;
 
10510
    hpux*)
 
10511
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10512
      # not for PA HP-UX.
 
10513
      case "$host_cpu" in
 
10514
      hppa*64*|ia64*)
 
10515
        ;;
 
10516
      *)
 
10517
        lt_prog_compiler_pic_CXX='-fPIC'
 
10518
        ;;
 
10519
      esac
 
10520
      ;;
 
10521
    *)
 
10522
      lt_prog_compiler_pic_CXX='-fPIC'
 
10523
      ;;
 
10524
    esac
 
10525
  else
 
10526
    case $host_os in
 
10527
      aix4* | aix5*)
 
10528
        # All AIX code is PIC.
 
10529
        if test "$host_cpu" = ia64; then
 
10530
          # AIX 5 now supports IA64 processor
 
10531
          lt_prog_compiler_static_CXX='-Bstatic'
 
10532
        else
 
10533
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10534
        fi
 
10535
        ;;
 
10536
      chorus*)
 
10537
        case $cc_basename in
 
10538
        cxch68)
 
10539
          # Green Hills C++ Compiler
 
10540
          # _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"
 
10541
          ;;
 
10542
        esac
 
10543
        ;;
 
10544
       darwin*)
 
10545
         # PIC is the default on this platform
 
10546
         # Common symbols not allowed in MH_DYLIB files
 
10547
         case "$cc_basename" in
 
10548
           xlc*)
 
10549
           lt_prog_compiler_pic_CXX='-qnocommon'
 
10550
           lt_prog_compiler_wl_CXX='-Wl,'
 
10551
           ;;
 
10552
         esac
 
10553
       ;;
 
10554
      dgux*)
 
10555
        case $cc_basename in
 
10556
          ec++)
 
10557
            lt_prog_compiler_pic_CXX='-KPIC'
 
10558
            ;;
 
10559
          ghcx)
 
10560
            # Green Hills C++ Compiler
 
10561
            lt_prog_compiler_pic_CXX='-pic'
 
10562
            ;;
 
10563
          *)
 
10564
            ;;
 
10565
        esac
 
10566
        ;;
 
10567
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
10568
        # FreeBSD uses GNU C++
 
10569
        ;;
 
10570
      hpux9* | hpux10* | hpux11*)
 
10571
        case $cc_basename in
 
10572
          CC)
 
10573
            lt_prog_compiler_wl_CXX='-Wl,'
 
10574
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10575
            if test "$host_cpu" != ia64; then
 
10576
              lt_prog_compiler_pic_CXX='+Z'
 
10577
            fi
 
10578
            ;;
 
10579
          aCC)
 
10580
            lt_prog_compiler_wl_CXX='-Wl,'
 
10581
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10582
            case "$host_cpu" in
 
10583
            hppa*64*|ia64*)
 
10584
              # +Z the default
 
10585
              ;;
 
10586
            *)
 
10587
              lt_prog_compiler_pic_CXX='+Z'
 
10588
              ;;
 
10589
            esac
 
10590
            ;;
 
10591
          *)
 
10592
            ;;
 
10593
        esac
 
10594
        ;;
 
10595
      irix5* | irix6* | nonstopux*)
 
10596
        case $cc_basename in
 
10597
          CC)
 
10598
            lt_prog_compiler_wl_CXX='-Wl,'
 
10599
            lt_prog_compiler_static_CXX='-non_shared'
 
10600
            # CC pic flag -KPIC is the default.
 
10601
            ;;
 
10602
          *)
 
10603
            ;;
 
10604
        esac
 
10605
        ;;
 
10606
      linux*)
 
10607
        case $cc_basename in
 
10608
          KCC)
 
10609
            # KAI C++ Compiler
 
10610
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10611
            lt_prog_compiler_pic_CXX='-fPIC'
 
10612
            ;;
 
10613
          icpc* | ecpc*)
 
10614
            # Intel C++
 
10615
            lt_prog_compiler_wl_CXX='-Wl,'
 
10616
            lt_prog_compiler_pic_CXX='-KPIC'
 
10617
            lt_prog_compiler_static_CXX='-static'
 
10618
            ;;
 
10619
          pgCC)
 
10620
            # Portland Group C++ compiler.
 
10621
            lt_prog_compiler_wl_CXX='-Wl,'
 
10622
            lt_prog_compiler_pic_CXX='-fpic'
 
10623
            lt_prog_compiler_static_CXX='-static'
 
10624
            ;;
 
10625
          cxx)
 
10626
            # Compaq C++
 
10627
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10628
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10629
            lt_prog_compiler_pic_CXX=
 
10630
            lt_prog_compiler_static_CXX='-non_shared'
 
10631
            ;;
 
10632
          *)
 
10633
            ;;
 
10634
        esac
 
10635
        ;;
 
10636
      lynxos*)
 
10637
        ;;
 
10638
      m88k*)
 
10639
        ;;
 
10640
      mvs*)
 
10641
        case $cc_basename in
 
10642
          cxx)
 
10643
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
10644
            ;;
 
10645
          *)
 
10646
            ;;
 
10647
        esac
 
10648
        ;;
 
10649
      netbsd*)
 
10650
        ;;
 
10651
      osf3* | osf4* | osf5*)
 
10652
        case $cc_basename in
 
10653
          KCC)
 
10654
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10655
            ;;
 
10656
          RCC)
 
10657
            # Rational C++ 2.4.1
 
10658
            lt_prog_compiler_pic_CXX='-pic'
 
10659
            ;;
 
10660
          cxx)
 
10661
            # Digital/Compaq C++
 
10662
            lt_prog_compiler_wl_CXX='-Wl,'
 
10663
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10664
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10665
            lt_prog_compiler_pic_CXX=
 
10666
            lt_prog_compiler_static_CXX='-non_shared'
 
10667
            ;;
 
10668
          *)
 
10669
            ;;
 
10670
        esac
 
10671
        ;;
 
10672
      psos*)
 
10673
        ;;
 
10674
      sco*)
 
10675
        case $cc_basename in
 
10676
          CC)
 
10677
            lt_prog_compiler_pic_CXX='-fPIC'
 
10678
            ;;
 
10679
          *)
 
10680
            ;;
 
10681
        esac
 
10682
        ;;
 
10683
      solaris*)
 
10684
        case $cc_basename in
 
10685
          CC)
 
10686
            # Sun C++ 4.2, 5.x and Centerline C++
 
10687
            lt_prog_compiler_pic_CXX='-KPIC'
 
10688
            lt_prog_compiler_static_CXX='-Bstatic'
 
10689
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
10690
            ;;
 
10691
          gcx)
 
10692
            # Green Hills C++ Compiler
 
10693
            lt_prog_compiler_pic_CXX='-PIC'
 
10694
            ;;
 
10695
          *)
 
10696
            ;;
 
10697
        esac
 
10698
        ;;
 
10699
      sunos4*)
 
10700
        case $cc_basename in
 
10701
          CC)
 
10702
            # Sun C++ 4.x
 
10703
            lt_prog_compiler_pic_CXX='-pic'
 
10704
            lt_prog_compiler_static_CXX='-Bstatic'
 
10705
            ;;
 
10706
          lcc)
 
10707
            # Lucid
 
10708
            lt_prog_compiler_pic_CXX='-pic'
 
10709
            ;;
 
10710
          *)
 
10711
            ;;
 
10712
        esac
 
10713
        ;;
 
10714
      tandem*)
 
10715
        case $cc_basename in
 
10716
          NCC)
 
10717
            # NonStop-UX NCC 3.20
 
10718
            lt_prog_compiler_pic_CXX='-KPIC'
 
10719
            ;;
 
10720
          *)
 
10721
            ;;
 
10722
        esac
 
10723
        ;;
 
10724
      unixware*)
 
10725
        ;;
 
10726
      vxworks*)
 
10727
        ;;
 
10728
      *)
 
10729
        lt_prog_compiler_can_build_shared_CXX=no
 
10730
        ;;
 
10731
    esac
 
10732
  fi
 
10733
 
 
10734
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
10735
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
10736
 
 
10737
#
 
10738
# Check to make sure the PIC flag actually works.
 
10739
#
 
10740
if test -n "$lt_prog_compiler_pic_CXX"; then
 
10741
 
 
10742
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
10743
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
10744
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
10745
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10746
else
 
10747
  lt_prog_compiler_pic_works_CXX=no
 
10748
  ac_outfile=conftest.$ac_objext
 
10749
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10750
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
10751
   # Insert the option either (1) after the last *FLAGS variable, or
 
10752
   # (2) before a word containing "conftest.", or (3) at the end.
 
10753
   # Note that $ac_compile itself does not contain backslashes and begins
 
10754
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10755
   # The option is referenced via a variable to avoid confusing sed.
 
10756
   lt_compile=`echo "$ac_compile" | $SED \
 
10757
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10758
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10759
   -e 's:$: $lt_compiler_flag:'`
 
10760
   (eval echo "\"\$as_me:10760: $lt_compile\"" >&5)
 
10761
   (eval "$lt_compile" 2>conftest.err)
 
10762
   ac_status=$?
 
10763
   cat conftest.err >&5
 
10764
   echo "$as_me:10764: \$? = $ac_status" >&5
 
10765
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10766
     # The compiler can only warn and ignore the option if not recognized
 
10767
     # So say no if there are warnings
 
10768
     if test ! -s conftest.err; then
 
10769
       lt_prog_compiler_pic_works_CXX=yes
 
10770
     fi
 
10771
   fi
 
10772
   $rm conftest*
 
10773
 
 
10774
fi
 
10775
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
10776
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
10777
 
 
10778
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
10779
    case $lt_prog_compiler_pic_CXX in
 
10780
     "" | " "*) ;;
 
10781
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
10782
     esac
 
10783
else
 
10784
    lt_prog_compiler_pic_CXX=
 
10785
     lt_prog_compiler_can_build_shared_CXX=no
 
10786
fi
 
10787
 
 
10788
fi
 
10789
case "$host_os" in
 
10790
  # For platforms which do not support PIC, -DPIC is meaningless:
 
10791
  *djgpp*)
 
10792
    lt_prog_compiler_pic_CXX=
 
10793
    ;;
 
10794
  *)
 
10795
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
10796
    ;;
 
10797
esac
 
10798
 
 
10799
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
10800
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
10801
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
10802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10803
else
 
10804
  lt_cv_prog_compiler_c_o_CXX=no
 
10805
   $rm -r conftest 2>/dev/null
 
10806
   mkdir conftest
 
10807
   cd conftest
 
10808
   mkdir out
 
10809
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10810
 
 
10811
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
10812
   # Insert the option either (1) after the last *FLAGS variable, or
 
10813
   # (2) before a word containing "conftest.", or (3) at the end.
 
10814
   # Note that $ac_compile itself does not contain backslashes and begins
 
10815
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10816
   lt_compile=`echo "$ac_compile" | $SED \
 
10817
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10818
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10819
   -e 's:$: $lt_compiler_flag:'`
 
10820
   (eval echo "\"\$as_me:10820: $lt_compile\"" >&5)
 
10821
   (eval "$lt_compile" 2>out/conftest.err)
 
10822
   ac_status=$?
 
10823
   cat out/conftest.err >&5
 
10824
   echo "$as_me:10824: \$? = $ac_status" >&5
 
10825
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
10826
   then
 
10827
     # The compiler can only warn and ignore the option if not recognized
 
10828
     # So say no if there are warnings
 
10829
     if test ! -s out/conftest.err; then
 
10830
       lt_cv_prog_compiler_c_o_CXX=yes
 
10831
     fi
 
10832
   fi
 
10833
   chmod u+w .
 
10834
   $rm conftest*
 
10835
   # SGI C++ compiler will create directory out/ii_files/ for
 
10836
   # template instantiation
 
10837
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
10838
   $rm out/* && rmdir out
 
10839
   cd ..
 
10840
   rmdir conftest
 
10841
   $rm conftest*
 
10842
 
 
10843
fi
 
10844
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
10845
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
10846
 
 
10847
 
 
10848
hard_links="nottested"
 
10849
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
10850
  # do not overwrite the value of need_locks provided by the user
 
10851
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
10852
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
10853
  hard_links=yes
 
10854
  $rm conftest*
 
10855
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10856
  touch conftest.a
 
10857
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
10858
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10859
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
10860
echo "${ECHO_T}$hard_links" >&6
 
10861
  if test "$hard_links" = no; then
 
10862
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
10863
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
10864
    need_locks=warn
 
10865
  fi
 
10866
else
 
10867
  need_locks=no
 
10868
fi
 
10869
 
 
10870
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10871
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10872
 
 
10873
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10874
  case $host_os in
 
10875
  aix4* | aix5*)
 
10876
    # If we're using GNU nm, then we don't want the "-C" option.
 
10877
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10878
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
10879
      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'
 
10880
    else
 
10881
      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'
 
10882
    fi
 
10883
    ;;
 
10884
  pw32*)
 
10885
    export_symbols_cmds_CXX="$ltdll_cmds"
 
10886
  ;;
 
10887
  cygwin* | mingw*)
 
10888
    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'
 
10889
  ;;
 
10890
  *)
 
10891
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10892
  ;;
 
10893
  esac
 
10894
 
 
10895
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10896
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10897
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10898
 
 
10899
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10900
if test "$GCC" = yes; then
 
10901
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10902
fi
 
10903
 
 
10904
#
 
10905
# Do we need to explicitly link libc?
 
10906
#
 
10907
case "x$archive_cmds_need_lc_CXX" in
 
10908
x|xyes)
 
10909
  # Assume -lc should be added
 
10910
  archive_cmds_need_lc_CXX=yes
 
10911
 
 
10912
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10913
    case $archive_cmds_CXX in
 
10914
    *'~'*)
 
10915
      # FIXME: we may have to deal with multi-command sequences.
 
10916
      ;;
 
10917
    '$CC '*)
 
10918
      # Test whether the compiler implicitly links with -lc since on some
 
10919
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10920
      # to ld, don't add -lc before -lgcc.
 
10921
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10922
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
10923
      $rm conftest*
 
10924
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10925
 
 
10926
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10927
  (eval $ac_compile) 2>&5
 
10928
  ac_status=$?
 
10929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10930
  (exit $ac_status); } 2>conftest.err; then
 
10931
        soname=conftest
 
10932
        lib=conftest
 
10933
        libobjs=conftest.$ac_objext
 
10934
        deplibs=
 
10935
        wl=$lt_prog_compiler_wl_CXX
 
10936
        compiler_flags=-v
 
10937
        linker_flags=-v
 
10938
        verstring=
 
10939
        output_objdir=.
 
10940
        libname=conftest
 
10941
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
10942
        allow_undefined_flag_CXX=
 
10943
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10944
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10945
  ac_status=$?
 
10946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10947
  (exit $ac_status); }
 
10948
        then
 
10949
          archive_cmds_need_lc_CXX=no
 
10950
        else
 
10951
          archive_cmds_need_lc_CXX=yes
 
10952
        fi
 
10953
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
10954
      else
 
10955
        cat conftest.err 1>&5
 
10956
      fi
 
10957
      $rm conftest*
 
10958
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
10959
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
10960
      ;;
 
10961
    esac
 
10962
  fi
 
10963
  ;;
 
10964
esac
 
10965
 
 
10966
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10967
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
10968
library_names_spec=
 
10969
libname_spec='lib$name'
 
10970
soname_spec=
 
10971
shrext_cmds=".so"
 
10972
postinstall_cmds=
 
10973
postuninstall_cmds=
 
10974
finish_cmds=
 
10975
finish_eval=
 
10976
shlibpath_var=
 
10977
shlibpath_overrides_runpath=unknown
 
10978
version_type=none
 
10979
dynamic_linker="$host_os ld.so"
 
10980
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10981
if test "$GCC" = yes; then
 
10982
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10983
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
10984
    # if the path contains ";" then we assume it to be the separator
 
10985
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10986
    # assumed that no part of a normal pathname contains ";" but that should
 
10987
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10988
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10989
  else
 
10990
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10991
  fi
 
10992
else
 
10993
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10994
fi
 
10995
need_lib_prefix=unknown
 
10996
hardcode_into_libs=no
 
10997
 
 
10998
# when you set need_version to no, make sure it does not cause -set_version
 
10999
# flags to be left without arguments
 
11000
need_version=unknown
 
11001
 
 
11002
case $host_os in
 
11003
aix3*)
 
11004
  version_type=linux
 
11005
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11006
  shlibpath_var=LIBPATH
 
11007
 
 
11008
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11009
  soname_spec='${libname}${release}${shared_ext}$major'
 
11010
  ;;
 
11011
 
 
11012
aix4* | aix5*)
 
11013
  version_type=linux
 
11014
  need_lib_prefix=no
 
11015
  need_version=no
 
11016
  hardcode_into_libs=yes
 
11017
  if test "$host_cpu" = ia64; then
 
11018
    # AIX 5 supports IA64
 
11019
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11020
    shlibpath_var=LD_LIBRARY_PATH
 
11021
  else
 
11022
    # With GCC up to 2.95.x, collect2 would create an import file
 
11023
    # for dependence libraries.  The import file would start with
 
11024
    # the line `#! .'.  This would cause the generated library to
 
11025
    # depend on `.', always an invalid library.  This was fixed in
 
11026
    # development snapshots of GCC prior to 3.0.
 
11027
    case $host_os in
 
11028
      aix4 | aix4.[01] | aix4.[01].*)
 
11029
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11030
           echo ' yes '
 
11031
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11032
        :
 
11033
      else
 
11034
        can_build_shared=no
 
11035
      fi
 
11036
      ;;
 
11037
    esac
 
11038
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11039
    # soname into executable. Probably we can add versioning support to
 
11040
    # collect2, so additional links can be useful in future.
 
11041
    if test "$aix_use_runtimelinking" = yes; then
 
11042
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11043
      # instead of lib<name>.a to let people know that these are not
 
11044
      # typical AIX shared libraries.
 
11045
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11046
    else
 
11047
      # We preserve .a as extension for shared libraries through AIX4.2
 
11048
      # and later when we are not doing run time linking.
 
11049
      library_names_spec='${libname}${release}.a $libname.a'
 
11050
      soname_spec='${libname}${release}${shared_ext}$major'
 
11051
    fi
 
11052
    shlibpath_var=LIBPATH
 
11053
  fi
 
11054
  ;;
 
11055
 
 
11056
amigaos*)
 
11057
  library_names_spec='$libname.ixlibrary $libname.a'
 
11058
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11059
  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'
 
11060
  ;;
 
11061
 
 
11062
beos*)
 
11063
  library_names_spec='${libname}${shared_ext}'
 
11064
  dynamic_linker="$host_os ld.so"
 
11065
  shlibpath_var=LIBRARY_PATH
 
11066
  ;;
 
11067
 
 
11068
bsdi[45]*)
 
11069
  version_type=linux
 
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
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11074
  shlibpath_var=LD_LIBRARY_PATH
 
11075
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11076
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11077
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11078
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11079
  # libtool to hard-code these into programs
 
11080
  ;;
 
11081
 
 
11082
cygwin* | mingw* | pw32*)
 
11083
  version_type=windows
 
11084
  shrext_cmds=".dll"
 
11085
  need_version=no
 
11086
  need_lib_prefix=no
 
11087
 
 
11088
  case $GCC,$host_os in
 
11089
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11090
    library_names_spec='$libname.dll.a'
 
11091
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11092
    postinstall_cmds='base_file=`basename \${file}`~
 
11093
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11094
      dldir=$destdir/`dirname \$dlpath`~
 
11095
      test -d \$dldir || mkdir -p \$dldir~
 
11096
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11097
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11098
      dlpath=$dir/\$dldll~
 
11099
       $rm \$dlpath'
 
11100
    shlibpath_overrides_runpath=yes
 
11101
 
 
11102
    case $host_os in
 
11103
    cygwin*)
 
11104
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11105
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11106
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11107
      ;;
 
11108
    mingw*)
 
11109
      # MinGW DLLs use traditional 'lib' prefix
 
11110
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11111
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11112
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11113
        # It is most probably a Windows format PATH printed by
 
11114
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11115
        # path with ; separators, and with drive letters. We can handle the
 
11116
        # drive letters (cygwin fileutils understands them), so leave them,
 
11117
        # especially as we might pass files found there to a mingw objdump,
 
11118
        # which wouldn't understand a cygwinified path. Ahh.
 
11119
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11120
      else
 
11121
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11122
      fi
 
11123
      ;;
 
11124
    pw32*)
 
11125
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11126
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11127
      ;;
 
11128
    esac
 
11129
    ;;
 
11130
 
 
11131
  *)
 
11132
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11133
    ;;
 
11134
  esac
 
11135
  dynamic_linker='Win32 ld.exe'
 
11136
  # FIXME: first we should search . and the directory the executable is in
 
11137
  shlibpath_var=PATH
 
11138
  ;;
 
11139
 
 
11140
darwin* | rhapsody*)
 
11141
  dynamic_linker="$host_os dyld"
 
11142
  version_type=darwin
 
11143
  need_lib_prefix=no
 
11144
  need_version=no
 
11145
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11146
  soname_spec='${libname}${release}${major}$shared_ext'
 
11147
  shlibpath_overrides_runpath=yes
 
11148
  shlibpath_var=DYLD_LIBRARY_PATH
 
11149
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11150
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11151
  if test "$GCC" = yes; then
 
11152
    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"`
 
11153
  else
 
11154
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11155
  fi
 
11156
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11157
  ;;
 
11158
 
 
11159
dgux*)
 
11160
  version_type=linux
 
11161
  need_lib_prefix=no
 
11162
  need_version=no
 
11163
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11164
  soname_spec='${libname}${release}${shared_ext}$major'
 
11165
  shlibpath_var=LD_LIBRARY_PATH
 
11166
  ;;
 
11167
 
 
11168
freebsd1*)
 
11169
  dynamic_linker=no
 
11170
  ;;
 
11171
 
 
11172
kfreebsd*-gnu)
 
11173
  version_type=linux
 
11174
  need_lib_prefix=no
 
11175
  need_version=no
 
11176
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11177
  soname_spec='${libname}${release}${shared_ext}$major'
 
11178
  shlibpath_var=LD_LIBRARY_PATH
 
11179
  shlibpath_overrides_runpath=no
 
11180
  hardcode_into_libs=yes
 
11181
  dynamic_linker='GNU ld.so'
 
11182
  ;;
 
11183
 
 
11184
freebsd* | dragonfly*)
 
11185
  # DragonFly does not have aout.  When/if they implement a new
 
11186
  # versioning mechanism, adjust this.
 
11187
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11188
  version_type=freebsd-$objformat
 
11189
  case $version_type in
 
11190
    freebsd-elf*)
 
11191
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11192
      need_version=no
 
11193
      need_lib_prefix=no
 
11194
      ;;
 
11195
    freebsd-*)
 
11196
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11197
      need_version=yes
 
11198
      ;;
 
11199
  esac
 
11200
  shlibpath_var=LD_LIBRARY_PATH
 
11201
  case $host_os in
 
11202
  freebsd2*)
 
11203
    shlibpath_overrides_runpath=yes
 
11204
    ;;
 
11205
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11206
    shlibpath_overrides_runpath=yes
 
11207
    hardcode_into_libs=yes
 
11208
    ;;
 
11209
  *) # from 3.2 on
 
11210
    shlibpath_overrides_runpath=no
 
11211
    hardcode_into_libs=yes
 
11212
    ;;
 
11213
  esac
 
11214
  ;;
 
11215
 
 
11216
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
  hardcode_into_libs=yes
 
11224
  ;;
 
11225
 
 
11226
hpux9* | hpux10* | hpux11*)
 
11227
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11228
  # link against other versions.
 
11229
  version_type=sunos
 
11230
  need_lib_prefix=no
 
11231
  need_version=no
 
11232
  case "$host_cpu" in
 
11233
  ia64*)
 
11234
    shrext_cmds='.so'
 
11235
    hardcode_into_libs=yes
 
11236
    dynamic_linker="$host_os dld.so"
 
11237
    shlibpath_var=LD_LIBRARY_PATH
 
11238
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11239
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11240
    soname_spec='${libname}${release}${shared_ext}$major'
 
11241
    if test "X$HPUX_IA64_MODE" = X32; then
 
11242
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11243
    else
 
11244
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11245
    fi
 
11246
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11247
    ;;
 
11248
   hppa*64*)
 
11249
     shrext_cmds='.sl'
 
11250
     hardcode_into_libs=yes
 
11251
     dynamic_linker="$host_os dld.sl"
 
11252
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11253
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11254
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11255
     soname_spec='${libname}${release}${shared_ext}$major'
 
11256
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11257
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11258
     ;;
 
11259
   *)
 
11260
    shrext_cmds='.sl'
 
11261
    dynamic_linker="$host_os dld.sl"
 
11262
    shlibpath_var=SHLIB_PATH
 
11263
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11264
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11265
    soname_spec='${libname}${release}${shared_ext}$major'
 
11266
    ;;
 
11267
  esac
 
11268
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11269
  postinstall_cmds='chmod 555 $lib'
 
11270
  ;;
 
11271
 
 
11272
irix5* | irix6* | nonstopux*)
 
11273
  case $host_os in
 
11274
    nonstopux*) version_type=nonstopux ;;
 
11275
    *)
 
11276
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11277
                version_type=linux
 
11278
        else
 
11279
                version_type=irix
 
11280
        fi ;;
 
11281
  esac
 
11282
  need_lib_prefix=no
 
11283
  need_version=no
 
11284
  soname_spec='${libname}${release}${shared_ext}$major'
 
11285
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11286
  case $host_os in
 
11287
  irix5* | nonstopux*)
 
11288
    libsuff= shlibsuff=
 
11289
    ;;
 
11290
  *)
 
11291
    case $LD in # libtool.m4 will add one of these switches to LD
 
11292
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11293
      libsuff= shlibsuff= libmagic=32-bit;;
 
11294
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11295
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11296
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11297
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11298
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11299
    esac
 
11300
    ;;
 
11301
  esac
 
11302
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11303
  shlibpath_overrides_runpath=no
 
11304
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11305
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11306
  hardcode_into_libs=yes
 
11307
  ;;
 
11308
 
 
11309
# No shared lib support for Linux oldld, aout, or coff.
 
11310
linux*oldld* | linux*aout* | linux*coff*)
 
11311
  dynamic_linker=no
 
11312
  ;;
 
11313
 
 
11314
# This must be Linux ELF.
 
11315
linux*)
 
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
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11322
  shlibpath_var=LD_LIBRARY_PATH
 
11323
  shlibpath_overrides_runpath=no
 
11324
  # This implies no fast_install, which is unacceptable.
 
11325
  # Some rework will be needed to allow for fast_install
 
11326
  # before this can be enabled.
 
11327
  hardcode_into_libs=yes
 
11328
 
 
11329
  # Append ld.so.conf contents to the search path
 
11330
  if test -f /etc/ld.so.conf; then
 
11331
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
11332
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11333
  fi
 
11334
 
 
11335
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11336
  # powerpc, because MkLinux only supported shared libraries with the
 
11337
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11338
  # most powerpc-linux boxes support dynamic linking these days and
 
11339
  # people can always --disable-shared, the test was removed, and we
 
11340
  # assume the GNU/Linux dynamic linker is in use.
 
11341
  dynamic_linker='GNU/Linux ld.so'
 
11342
  ;;
 
11343
 
 
11344
knetbsd*-gnu)
 
11345
  version_type=linux
 
11346
  need_lib_prefix=no
 
11347
  need_version=no
 
11348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11349
  soname_spec='${libname}${release}${shared_ext}$major'
 
11350
  shlibpath_var=LD_LIBRARY_PATH
 
11351
  shlibpath_overrides_runpath=no
 
11352
  hardcode_into_libs=yes
 
11353
  dynamic_linker='GNU ld.so'
 
11354
  ;;
 
11355
 
 
11356
netbsd*)
 
11357
  version_type=sunos
 
11358
  need_lib_prefix=no
 
11359
  need_version=no
 
11360
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11361
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11362
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11363
    dynamic_linker='NetBSD (a.out) ld.so'
 
11364
  else
 
11365
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11366
    soname_spec='${libname}${release}${shared_ext}$major'
 
11367
    dynamic_linker='NetBSD ld.elf_so'
 
11368
  fi
 
11369
  shlibpath_var=LD_LIBRARY_PATH
 
11370
  shlibpath_overrides_runpath=yes
 
11371
  hardcode_into_libs=yes
 
11372
  ;;
 
11373
 
 
11374
newsos6)
 
11375
  version_type=linux
 
11376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11377
  shlibpath_var=LD_LIBRARY_PATH
 
11378
  shlibpath_overrides_runpath=yes
 
11379
  ;;
 
11380
 
 
11381
nto-qnx*)
 
11382
  version_type=linux
 
11383
  need_lib_prefix=no
 
11384
  need_version=no
 
11385
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11386
  soname_spec='${libname}${release}${shared_ext}$major'
 
11387
  shlibpath_var=LD_LIBRARY_PATH
 
11388
  shlibpath_overrides_runpath=yes
 
11389
  ;;
 
11390
 
 
11391
openbsd*)
 
11392
  version_type=sunos
 
11393
  need_lib_prefix=no
 
11394
  need_version=no
 
11395
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11396
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11397
  shlibpath_var=LD_LIBRARY_PATH
 
11398
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11399
    case $host_os in
 
11400
      openbsd2.[89] | openbsd2.[89].*)
 
11401
        shlibpath_overrides_runpath=no
 
11402
        ;;
 
11403
      *)
 
11404
        shlibpath_overrides_runpath=yes
 
11405
        ;;
 
11406
      esac
 
11407
  else
 
11408
    shlibpath_overrides_runpath=yes
 
11409
  fi
 
11410
  ;;
 
11411
 
 
11412
os2*)
 
11413
  libname_spec='$name'
 
11414
  shrext_cmds=".dll"
 
11415
  need_lib_prefix=no
 
11416
  library_names_spec='$libname${shared_ext} $libname.a'
 
11417
  dynamic_linker='OS/2 ld.exe'
 
11418
  shlibpath_var=LIBPATH
 
11419
  ;;
 
11420
 
 
11421
osf3* | osf4* | osf5*)
 
11422
  version_type=osf
 
11423
  need_lib_prefix=no
 
11424
  need_version=no
 
11425
  soname_spec='${libname}${release}${shared_ext}$major'
 
11426
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11427
  shlibpath_var=LD_LIBRARY_PATH
 
11428
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11429
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11430
  ;;
 
11431
 
 
11432
sco3.2v5*)
 
11433
  version_type=osf
 
11434
  soname_spec='${libname}${release}${shared_ext}$major'
 
11435
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11436
  shlibpath_var=LD_LIBRARY_PATH
 
11437
  ;;
 
11438
 
 
11439
solaris*)
 
11440
  version_type=linux
 
11441
  need_lib_prefix=no
 
11442
  need_version=no
 
11443
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11444
  soname_spec='${libname}${release}${shared_ext}$major'
 
11445
  shlibpath_var=LD_LIBRARY_PATH
 
11446
  shlibpath_overrides_runpath=yes
 
11447
  hardcode_into_libs=yes
 
11448
  # ldd complains unless libraries are executable
 
11449
  postinstall_cmds='chmod +x $lib'
 
11450
  ;;
 
11451
 
 
11452
sunos4*)
 
11453
  version_type=sunos
 
11454
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11455
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11456
  shlibpath_var=LD_LIBRARY_PATH
 
11457
  shlibpath_overrides_runpath=yes
 
11458
  if test "$with_gnu_ld" = yes; then
 
11459
    need_lib_prefix=no
 
11460
  fi
 
11461
  need_version=yes
 
11462
  ;;
 
11463
 
 
11464
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11465
  version_type=linux
 
11466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11467
  soname_spec='${libname}${release}${shared_ext}$major'
 
11468
  shlibpath_var=LD_LIBRARY_PATH
 
11469
  case $host_vendor in
 
11470
    sni)
 
11471
      shlibpath_overrides_runpath=no
 
11472
      need_lib_prefix=no
 
11473
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11474
      runpath_var=LD_RUN_PATH
 
11475
      ;;
 
11476
    siemens)
 
11477
      need_lib_prefix=no
 
11478
      ;;
 
11479
    motorola)
 
11480
      need_lib_prefix=no
 
11481
      need_version=no
 
11482
      shlibpath_overrides_runpath=no
 
11483
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11484
      ;;
 
11485
  esac
 
11486
  ;;
 
11487
 
 
11488
sysv4*MP*)
 
11489
  if test -d /usr/nec ;then
 
11490
    version_type=linux
 
11491
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11492
    soname_spec='$libname${shared_ext}.$major'
 
11493
    shlibpath_var=LD_LIBRARY_PATH
 
11494
  fi
 
11495
  ;;
 
11496
 
 
11497
uts4*)
 
11498
  version_type=linux
 
11499
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11500
  soname_spec='${libname}${release}${shared_ext}$major'
 
11501
  shlibpath_var=LD_LIBRARY_PATH
 
11502
  ;;
 
11503
 
 
11504
*)
 
11505
  dynamic_linker=no
 
11506
  ;;
 
11507
esac
 
11508
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11509
echo "${ECHO_T}$dynamic_linker" >&6
 
11510
test "$dynamic_linker" = no && can_build_shared=no
 
11511
 
 
11512
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11513
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
11514
hardcode_action_CXX=
 
11515
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
11516
   test -n "$runpath_var_CXX" || \
 
11517
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
11518
 
 
11519
  # We can hardcode non-existant directories.
 
11520
  if test "$hardcode_direct_CXX" != no &&
 
11521
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11522
     # have to relink, otherwise we might link with an installed library
 
11523
     # when we should be linking with a yet-to-be-installed one
 
11524
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
11525
     test "$hardcode_minus_L_CXX" != no; then
 
11526
    # Linking always hardcodes the temporary library directory.
 
11527
    hardcode_action_CXX=relink
 
11528
  else
 
11529
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11530
    hardcode_action_CXX=immediate
 
11531
  fi
 
11532
else
 
11533
  # We cannot hardcode anything, or else we can only hardcode existing
 
11534
  # directories.
 
11535
  hardcode_action_CXX=unsupported
 
11536
fi
 
11537
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11538
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
11539
 
 
11540
if test "$hardcode_action_CXX" = relink; then
 
11541
  # Fast installation is not supported
 
11542
  enable_fast_install=no
 
11543
elif test "$shlibpath_overrides_runpath" = yes ||
 
11544
     test "$enable_shared" = no; then
 
11545
  # Fast installation is not necessary
 
11546
  enable_fast_install=needless
 
11547
fi
 
11548
 
 
11549
striplib=
 
11550
old_striplib=
 
11551
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11552
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11553
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11554
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11555
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11556
  echo "$as_me:$LINENO: result: yes" >&5
 
11557
echo "${ECHO_T}yes" >&6
 
11558
else
 
11559
# FIXME - insert some real tests, host_os isn't really good enough
 
11560
  case $host_os in
 
11561
   darwin*)
 
11562
       if test -n "$STRIP" ; then
 
11563
         striplib="$STRIP -x"
 
11564
         echo "$as_me:$LINENO: result: yes" >&5
 
11565
echo "${ECHO_T}yes" >&6
 
11566
       else
 
11567
  echo "$as_me:$LINENO: result: no" >&5
 
11568
echo "${ECHO_T}no" >&6
 
11569
fi
 
11570
       ;;
 
11571
   *)
 
11572
  echo "$as_me:$LINENO: result: no" >&5
 
11573
echo "${ECHO_T}no" >&6
 
11574
    ;;
 
11575
  esac
 
11576
fi
 
11577
 
 
11578
if test "x$enable_dlopen" != xyes; then
 
11579
  enable_dlopen=unknown
 
11580
  enable_dlopen_self=unknown
 
11581
  enable_dlopen_self_static=unknown
 
11582
else
 
11583
  lt_cv_dlopen=no
 
11584
  lt_cv_dlopen_libs=
 
11585
 
 
11586
  case $host_os in
 
11587
  beos*)
 
11588
    lt_cv_dlopen="load_add_on"
 
11589
    lt_cv_dlopen_libs=
 
11590
    lt_cv_dlopen_self=yes
 
11591
    ;;
 
11592
 
 
11593
  mingw* | pw32*)
 
11594
    lt_cv_dlopen="LoadLibrary"
 
11595
    lt_cv_dlopen_libs=
 
11596
   ;;
 
11597
 
 
11598
  cygwin*)
 
11599
    lt_cv_dlopen="dlopen"
 
11600
    lt_cv_dlopen_libs=
 
11601
   ;;
 
11602
 
 
11603
  darwin*)
 
11604
  # if libdl is installed we need to link against it
 
11605
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11606
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11607
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11609
else
 
11610
  ac_check_lib_save_LIBS=$LIBS
 
11611
LIBS="-ldl  $LIBS"
 
11612
cat >conftest.$ac_ext <<_ACEOF
 
11613
/* confdefs.h.  */
 
11614
_ACEOF
 
11615
cat confdefs.h >>conftest.$ac_ext
 
11616
cat >>conftest.$ac_ext <<_ACEOF
 
11617
/* end confdefs.h.  */
 
11618
 
 
11619
/* Override any gcc2 internal prototype to avoid an error.  */
 
11620
#ifdef __cplusplus
 
11621
extern "C"
 
11622
#endif
 
11623
/* We use char because int might match the return type of a gcc2
 
11624
   builtin and then its argument prototype would still apply.  */
 
11625
char dlopen ();
 
11626
int
 
11627
main ()
 
11628
{
 
11629
dlopen ();
 
11630
  ;
 
11631
  return 0;
 
11632
}
 
11633
_ACEOF
 
11634
rm -f conftest.$ac_objext conftest$ac_exeext
 
11635
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11636
  (eval $ac_link) 2>conftest.er1
 
11637
  ac_status=$?
 
11638
  grep -v '^ *+' conftest.er1 >conftest.err
 
11639
  rm -f conftest.er1
 
11640
  cat conftest.err >&5
 
11641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11642
  (exit $ac_status); } &&
 
11643
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11644
                         || test ! -s conftest.err'
 
11645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11646
  (eval $ac_try) 2>&5
 
11647
  ac_status=$?
 
11648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11649
  (exit $ac_status); }; } &&
 
11650
         { ac_try='test -s conftest$ac_exeext'
 
11651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11652
  (eval $ac_try) 2>&5
 
11653
  ac_status=$?
 
11654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11655
  (exit $ac_status); }; }; then
 
11656
  ac_cv_lib_dl_dlopen=yes
 
11657
else
 
11658
  echo "$as_me: failed program was:" >&5
 
11659
sed 's/^/| /' conftest.$ac_ext >&5
 
11660
 
 
11661
ac_cv_lib_dl_dlopen=no
 
11662
fi
 
11663
rm -f conftest.err conftest.$ac_objext \
 
11664
      conftest$ac_exeext conftest.$ac_ext
 
11665
LIBS=$ac_check_lib_save_LIBS
 
11666
fi
 
11667
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11668
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11669
if test $ac_cv_lib_dl_dlopen = yes; then
 
11670
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11671
else
 
11672
 
 
11673
    lt_cv_dlopen="dyld"
 
11674
    lt_cv_dlopen_libs=
 
11675
    lt_cv_dlopen_self=yes
 
11676
 
 
11677
fi
 
11678
 
 
11679
   ;;
 
11680
 
 
11681
  *)
 
11682
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11683
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11684
if test "${ac_cv_func_shl_load+set}" = set; then
 
11685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11686
else
 
11687
  cat >conftest.$ac_ext <<_ACEOF
 
11688
/* confdefs.h.  */
 
11689
_ACEOF
 
11690
cat confdefs.h >>conftest.$ac_ext
 
11691
cat >>conftest.$ac_ext <<_ACEOF
 
11692
/* end confdefs.h.  */
 
11693
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11694
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11695
#define shl_load innocuous_shl_load
 
11696
 
 
11697
/* System header to define __stub macros and hopefully few prototypes,
 
11698
    which can conflict with char shl_load (); below.
 
11699
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11700
    <limits.h> exists even on freestanding compilers.  */
 
11701
 
 
11702
#ifdef __STDC__
 
11703
# include <limits.h>
 
11704
#else
 
11705
# include <assert.h>
 
11706
#endif
 
11707
 
 
11708
#undef shl_load
 
11709
 
 
11710
/* Override any gcc2 internal prototype to avoid an error.  */
 
11711
#ifdef __cplusplus
 
11712
extern "C"
 
11713
{
 
11714
#endif
 
11715
/* We use char because int might match the return type of a gcc2
 
11716
   builtin and then its argument prototype would still apply.  */
 
11717
char shl_load ();
 
11718
/* The GNU C library defines this for functions which it implements
 
11719
    to always fail with ENOSYS.  Some functions are actually named
 
11720
    something starting with __ and the normal name is an alias.  */
 
11721
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11722
choke me
 
11723
#else
 
11724
char (*f) () = shl_load;
 
11725
#endif
 
11726
#ifdef __cplusplus
 
11727
}
 
11728
#endif
 
11729
 
 
11730
int
 
11731
main ()
 
11732
{
 
11733
return f != shl_load;
 
11734
  ;
 
11735
  return 0;
 
11736
}
 
11737
_ACEOF
 
11738
rm -f conftest.$ac_objext conftest$ac_exeext
 
11739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11740
  (eval $ac_link) 2>conftest.er1
 
11741
  ac_status=$?
 
11742
  grep -v '^ *+' conftest.er1 >conftest.err
 
11743
  rm -f conftest.er1
 
11744
  cat conftest.err >&5
 
11745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11746
  (exit $ac_status); } &&
 
11747
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11748
                         || test ! -s conftest.err'
 
11749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11750
  (eval $ac_try) 2>&5
 
11751
  ac_status=$?
 
11752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11753
  (exit $ac_status); }; } &&
 
11754
         { ac_try='test -s conftest$ac_exeext'
 
11755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11756
  (eval $ac_try) 2>&5
 
11757
  ac_status=$?
 
11758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11759
  (exit $ac_status); }; }; then
 
11760
  ac_cv_func_shl_load=yes
 
11761
else
 
11762
  echo "$as_me: failed program was:" >&5
 
11763
sed 's/^/| /' conftest.$ac_ext >&5
 
11764
 
 
11765
ac_cv_func_shl_load=no
 
11766
fi
 
11767
rm -f conftest.err conftest.$ac_objext \
 
11768
      conftest$ac_exeext conftest.$ac_ext
 
11769
fi
 
11770
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11771
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
11772
if test $ac_cv_func_shl_load = yes; then
 
11773
  lt_cv_dlopen="shl_load"
 
11774
else
 
11775
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11776
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
11777
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11779
else
 
11780
  ac_check_lib_save_LIBS=$LIBS
 
11781
LIBS="-ldld  $LIBS"
 
11782
cat >conftest.$ac_ext <<_ACEOF
 
11783
/* confdefs.h.  */
 
11784
_ACEOF
 
11785
cat confdefs.h >>conftest.$ac_ext
 
11786
cat >>conftest.$ac_ext <<_ACEOF
 
11787
/* end confdefs.h.  */
 
11788
 
 
11789
/* Override any gcc2 internal prototype to avoid an error.  */
 
11790
#ifdef __cplusplus
 
11791
extern "C"
 
11792
#endif
 
11793
/* We use char because int might match the return type of a gcc2
 
11794
   builtin and then its argument prototype would still apply.  */
 
11795
char shl_load ();
 
11796
int
 
11797
main ()
 
11798
{
 
11799
shl_load ();
 
11800
  ;
 
11801
  return 0;
 
11802
}
 
11803
_ACEOF
 
11804
rm -f conftest.$ac_objext conftest$ac_exeext
 
11805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11806
  (eval $ac_link) 2>conftest.er1
 
11807
  ac_status=$?
 
11808
  grep -v '^ *+' conftest.er1 >conftest.err
 
11809
  rm -f conftest.er1
 
11810
  cat conftest.err >&5
 
11811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11812
  (exit $ac_status); } &&
 
11813
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11814
                         || test ! -s conftest.err'
 
11815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11816
  (eval $ac_try) 2>&5
 
11817
  ac_status=$?
 
11818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11819
  (exit $ac_status); }; } &&
 
11820
         { ac_try='test -s conftest$ac_exeext'
 
11821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11822
  (eval $ac_try) 2>&5
 
11823
  ac_status=$?
 
11824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11825
  (exit $ac_status); }; }; then
 
11826
  ac_cv_lib_dld_shl_load=yes
 
11827
else
 
11828
  echo "$as_me: failed program was:" >&5
 
11829
sed 's/^/| /' conftest.$ac_ext >&5
 
11830
 
 
11831
ac_cv_lib_dld_shl_load=no
 
11832
fi
 
11833
rm -f conftest.err conftest.$ac_objext \
 
11834
      conftest$ac_exeext conftest.$ac_ext
 
11835
LIBS=$ac_check_lib_save_LIBS
 
11836
fi
 
11837
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11838
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11839
if test $ac_cv_lib_dld_shl_load = yes; then
 
11840
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11841
else
 
11842
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11843
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11844
if test "${ac_cv_func_dlopen+set}" = set; then
 
11845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11846
else
 
11847
  cat >conftest.$ac_ext <<_ACEOF
 
11848
/* confdefs.h.  */
 
11849
_ACEOF
 
11850
cat confdefs.h >>conftest.$ac_ext
 
11851
cat >>conftest.$ac_ext <<_ACEOF
 
11852
/* end confdefs.h.  */
 
11853
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
11854
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11855
#define dlopen innocuous_dlopen
 
11856
 
 
11857
/* System header to define __stub macros and hopefully few prototypes,
 
11858
    which can conflict with char dlopen (); below.
 
11859
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11860
    <limits.h> exists even on freestanding compilers.  */
 
11861
 
 
11862
#ifdef __STDC__
 
11863
# include <limits.h>
 
11864
#else
 
11865
# include <assert.h>
 
11866
#endif
 
11867
 
 
11868
#undef dlopen
 
11869
 
 
11870
/* Override any gcc2 internal prototype to avoid an error.  */
 
11871
#ifdef __cplusplus
 
11872
extern "C"
 
11873
{
 
11874
#endif
 
11875
/* We use char because int might match the return type of a gcc2
 
11876
   builtin and then its argument prototype would still apply.  */
 
11877
char dlopen ();
 
11878
/* The GNU C library defines this for functions which it implements
 
11879
    to always fail with ENOSYS.  Some functions are actually named
 
11880
    something starting with __ and the normal name is an alias.  */
 
11881
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11882
choke me
 
11883
#else
 
11884
char (*f) () = dlopen;
 
11885
#endif
 
11886
#ifdef __cplusplus
 
11887
}
 
11888
#endif
 
11889
 
 
11890
int
 
11891
main ()
 
11892
{
 
11893
return f != dlopen;
 
11894
  ;
 
11895
  return 0;
 
11896
}
 
11897
_ACEOF
 
11898
rm -f conftest.$ac_objext conftest$ac_exeext
 
11899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11900
  (eval $ac_link) 2>conftest.er1
 
11901
  ac_status=$?
 
11902
  grep -v '^ *+' conftest.er1 >conftest.err
 
11903
  rm -f conftest.er1
 
11904
  cat conftest.err >&5
 
11905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11906
  (exit $ac_status); } &&
 
11907
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11908
                         || test ! -s conftest.err'
 
11909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11910
  (eval $ac_try) 2>&5
 
11911
  ac_status=$?
 
11912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11913
  (exit $ac_status); }; } &&
 
11914
         { ac_try='test -s conftest$ac_exeext'
 
11915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11916
  (eval $ac_try) 2>&5
 
11917
  ac_status=$?
 
11918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11919
  (exit $ac_status); }; }; then
 
11920
  ac_cv_func_dlopen=yes
 
11921
else
 
11922
  echo "$as_me: failed program was:" >&5
 
11923
sed 's/^/| /' conftest.$ac_ext >&5
 
11924
 
 
11925
ac_cv_func_dlopen=no
 
11926
fi
 
11927
rm -f conftest.err conftest.$ac_objext \
 
11928
      conftest$ac_exeext conftest.$ac_ext
 
11929
fi
 
11930
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
11931
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
11932
if test $ac_cv_func_dlopen = yes; then
 
11933
  lt_cv_dlopen="dlopen"
 
11934
else
 
11935
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11936
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11937
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11938
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11939
else
 
11940
  ac_check_lib_save_LIBS=$LIBS
 
11941
LIBS="-ldl  $LIBS"
 
11942
cat >conftest.$ac_ext <<_ACEOF
 
11943
/* confdefs.h.  */
 
11944
_ACEOF
 
11945
cat confdefs.h >>conftest.$ac_ext
 
11946
cat >>conftest.$ac_ext <<_ACEOF
 
11947
/* end confdefs.h.  */
 
11948
 
 
11949
/* Override any gcc2 internal prototype to avoid an error.  */
 
11950
#ifdef __cplusplus
 
11951
extern "C"
 
11952
#endif
 
11953
/* We use char because int might match the return type of a gcc2
 
11954
   builtin and then its argument prototype would still apply.  */
 
11955
char dlopen ();
 
11956
int
 
11957
main ()
 
11958
{
 
11959
dlopen ();
 
11960
  ;
 
11961
  return 0;
 
11962
}
 
11963
_ACEOF
 
11964
rm -f conftest.$ac_objext conftest$ac_exeext
 
11965
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11966
  (eval $ac_link) 2>conftest.er1
 
11967
  ac_status=$?
 
11968
  grep -v '^ *+' conftest.er1 >conftest.err
 
11969
  rm -f conftest.er1
 
11970
  cat conftest.err >&5
 
11971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11972
  (exit $ac_status); } &&
 
11973
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11974
                         || test ! -s conftest.err'
 
11975
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11976
  (eval $ac_try) 2>&5
 
11977
  ac_status=$?
 
11978
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11979
  (exit $ac_status); }; } &&
 
11980
         { ac_try='test -s conftest$ac_exeext'
 
11981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11982
  (eval $ac_try) 2>&5
 
11983
  ac_status=$?
 
11984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11985
  (exit $ac_status); }; }; then
 
11986
  ac_cv_lib_dl_dlopen=yes
 
11987
else
 
11988
  echo "$as_me: failed program was:" >&5
 
11989
sed 's/^/| /' conftest.$ac_ext >&5
 
11990
 
 
11991
ac_cv_lib_dl_dlopen=no
 
11992
fi
 
11993
rm -f conftest.err conftest.$ac_objext \
 
11994
      conftest$ac_exeext conftest.$ac_ext
 
11995
LIBS=$ac_check_lib_save_LIBS
 
11996
fi
 
11997
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11998
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11999
if test $ac_cv_lib_dl_dlopen = yes; then
 
12000
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12001
else
 
12002
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12003
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12004
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12006
else
 
12007
  ac_check_lib_save_LIBS=$LIBS
 
12008
LIBS="-lsvld  $LIBS"
 
12009
cat >conftest.$ac_ext <<_ACEOF
 
12010
/* confdefs.h.  */
 
12011
_ACEOF
 
12012
cat confdefs.h >>conftest.$ac_ext
 
12013
cat >>conftest.$ac_ext <<_ACEOF
 
12014
/* end confdefs.h.  */
 
12015
 
 
12016
/* Override any gcc2 internal prototype to avoid an error.  */
 
12017
#ifdef __cplusplus
 
12018
extern "C"
 
12019
#endif
 
12020
/* We use char because int might match the return type of a gcc2
 
12021
   builtin and then its argument prototype would still apply.  */
 
12022
char dlopen ();
 
12023
int
 
12024
main ()
 
12025
{
 
12026
dlopen ();
 
12027
  ;
 
12028
  return 0;
 
12029
}
 
12030
_ACEOF
 
12031
rm -f conftest.$ac_objext conftest$ac_exeext
 
12032
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12033
  (eval $ac_link) 2>conftest.er1
 
12034
  ac_status=$?
 
12035
  grep -v '^ *+' conftest.er1 >conftest.err
 
12036
  rm -f conftest.er1
 
12037
  cat conftest.err >&5
 
12038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12039
  (exit $ac_status); } &&
 
12040
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12041
                         || test ! -s conftest.err'
 
12042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12043
  (eval $ac_try) 2>&5
 
12044
  ac_status=$?
 
12045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12046
  (exit $ac_status); }; } &&
 
12047
         { ac_try='test -s conftest$ac_exeext'
 
12048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12049
  (eval $ac_try) 2>&5
 
12050
  ac_status=$?
 
12051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12052
  (exit $ac_status); }; }; then
 
12053
  ac_cv_lib_svld_dlopen=yes
 
12054
else
 
12055
  echo "$as_me: failed program was:" >&5
 
12056
sed 's/^/| /' conftest.$ac_ext >&5
 
12057
 
 
12058
ac_cv_lib_svld_dlopen=no
 
12059
fi
 
12060
rm -f conftest.err conftest.$ac_objext \
 
12061
      conftest$ac_exeext conftest.$ac_ext
 
12062
LIBS=$ac_check_lib_save_LIBS
 
12063
fi
 
12064
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12065
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12066
if test $ac_cv_lib_svld_dlopen = yes; then
 
12067
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12068
else
 
12069
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12070
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12071
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12073
else
 
12074
  ac_check_lib_save_LIBS=$LIBS
 
12075
LIBS="-ldld  $LIBS"
 
12076
cat >conftest.$ac_ext <<_ACEOF
 
12077
/* confdefs.h.  */
 
12078
_ACEOF
 
12079
cat confdefs.h >>conftest.$ac_ext
 
12080
cat >>conftest.$ac_ext <<_ACEOF
 
12081
/* end confdefs.h.  */
 
12082
 
 
12083
/* Override any gcc2 internal prototype to avoid an error.  */
 
12084
#ifdef __cplusplus
 
12085
extern "C"
 
12086
#endif
 
12087
/* We use char because int might match the return type of a gcc2
 
12088
   builtin and then its argument prototype would still apply.  */
 
12089
char dld_link ();
 
12090
int
 
12091
main ()
 
12092
{
 
12093
dld_link ();
 
12094
  ;
 
12095
  return 0;
 
12096
}
 
12097
_ACEOF
 
12098
rm -f conftest.$ac_objext conftest$ac_exeext
 
12099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12100
  (eval $ac_link) 2>conftest.er1
 
12101
  ac_status=$?
 
12102
  grep -v '^ *+' conftest.er1 >conftest.err
 
12103
  rm -f conftest.er1
 
12104
  cat conftest.err >&5
 
12105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12106
  (exit $ac_status); } &&
 
12107
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12108
                         || test ! -s conftest.err'
 
12109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12110
  (eval $ac_try) 2>&5
 
12111
  ac_status=$?
 
12112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12113
  (exit $ac_status); }; } &&
 
12114
         { ac_try='test -s conftest$ac_exeext'
 
12115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12116
  (eval $ac_try) 2>&5
 
12117
  ac_status=$?
 
12118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12119
  (exit $ac_status); }; }; then
 
12120
  ac_cv_lib_dld_dld_link=yes
 
12121
else
 
12122
  echo "$as_me: failed program was:" >&5
 
12123
sed 's/^/| /' conftest.$ac_ext >&5
 
12124
 
 
12125
ac_cv_lib_dld_dld_link=no
 
12126
fi
 
12127
rm -f conftest.err conftest.$ac_objext \
 
12128
      conftest$ac_exeext conftest.$ac_ext
 
12129
LIBS=$ac_check_lib_save_LIBS
 
12130
fi
 
12131
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12132
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12133
if test $ac_cv_lib_dld_dld_link = yes; then
 
12134
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12135
fi
 
12136
 
 
12137
 
 
12138
fi
 
12139
 
 
12140
 
 
12141
fi
 
12142
 
 
12143
 
 
12144
fi
 
12145
 
 
12146
 
 
12147
fi
 
12148
 
 
12149
 
 
12150
fi
 
12151
 
 
12152
    ;;
 
12153
  esac
 
12154
 
 
12155
  if test "x$lt_cv_dlopen" != xno; then
 
12156
    enable_dlopen=yes
 
12157
  else
 
12158
    enable_dlopen=no
 
12159
  fi
 
12160
 
 
12161
  case $lt_cv_dlopen in
 
12162
  dlopen)
 
12163
    save_CPPFLAGS="$CPPFLAGS"
 
12164
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12165
 
 
12166
    save_LDFLAGS="$LDFLAGS"
 
12167
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12168
 
 
12169
    save_LIBS="$LIBS"
 
12170
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12171
 
 
12172
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12173
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12174
if test "${lt_cv_dlopen_self+set}" = set; then
 
12175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12176
else
 
12177
          if test "$cross_compiling" = yes; then :
 
12178
  lt_cv_dlopen_self=cross
 
12179
else
 
12180
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12181
  lt_status=$lt_dlunknown
 
12182
  cat > conftest.$ac_ext <<EOF
 
12183
#line 12183 "configure"
 
12184
#include "confdefs.h"
 
12185
 
 
12186
#if HAVE_DLFCN_H
 
12187
#include <dlfcn.h>
 
12188
#endif
 
12189
 
 
12190
#include <stdio.h>
 
12191
 
 
12192
#ifdef RTLD_GLOBAL
 
12193
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12194
#else
 
12195
#  ifdef DL_GLOBAL
 
12196
#    define LT_DLGLOBAL         DL_GLOBAL
 
12197
#  else
 
12198
#    define LT_DLGLOBAL         0
 
12199
#  endif
 
12200
#endif
 
12201
 
 
12202
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12203
   find out it does not work in some platform. */
 
12204
#ifndef LT_DLLAZY_OR_NOW
 
12205
#  ifdef RTLD_LAZY
 
12206
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12207
#  else
 
12208
#    ifdef DL_LAZY
 
12209
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12210
#    else
 
12211
#      ifdef RTLD_NOW
 
12212
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12213
#      else
 
12214
#        ifdef DL_NOW
 
12215
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12216
#        else
 
12217
#          define LT_DLLAZY_OR_NOW      0
 
12218
#        endif
 
12219
#      endif
 
12220
#    endif
 
12221
#  endif
 
12222
#endif
 
12223
 
 
12224
#ifdef __cplusplus
 
12225
extern "C" void exit (int);
 
12226
#endif
 
12227
 
 
12228
void fnord() { int i=42;}
 
12229
int main ()
 
12230
{
 
12231
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12232
  int status = $lt_dlunknown;
 
12233
 
 
12234
  if (self)
 
12235
    {
 
12236
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12237
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12238
      /* dlclose (self); */
 
12239
    }
 
12240
 
 
12241
    exit (status);
 
12242
}
 
12243
EOF
 
12244
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12245
  (eval $ac_link) 2>&5
 
12246
  ac_status=$?
 
12247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12248
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12249
    (./conftest; exit; ) 2>/dev/null
 
12250
    lt_status=$?
 
12251
    case x$lt_status in
 
12252
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12253
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12254
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12255
    esac
 
12256
  else :
 
12257
    # compilation failed
 
12258
    lt_cv_dlopen_self=no
 
12259
  fi
 
12260
fi
 
12261
rm -fr conftest*
 
12262
 
 
12263
 
 
12264
fi
 
12265
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12266
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12267
 
 
12268
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12269
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12270
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12271
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12272
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12274
else
 
12275
          if test "$cross_compiling" = yes; then :
 
12276
  lt_cv_dlopen_self_static=cross
 
12277
else
 
12278
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12279
  lt_status=$lt_dlunknown
 
12280
  cat > conftest.$ac_ext <<EOF
 
12281
#line 12281 "configure"
 
12282
#include "confdefs.h"
 
12283
 
 
12284
#if HAVE_DLFCN_H
 
12285
#include <dlfcn.h>
 
12286
#endif
 
12287
 
 
12288
#include <stdio.h>
 
12289
 
 
12290
#ifdef RTLD_GLOBAL
 
12291
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12292
#else
 
12293
#  ifdef DL_GLOBAL
 
12294
#    define LT_DLGLOBAL         DL_GLOBAL
 
12295
#  else
 
12296
#    define LT_DLGLOBAL         0
 
12297
#  endif
 
12298
#endif
 
12299
 
 
12300
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12301
   find out it does not work in some platform. */
 
12302
#ifndef LT_DLLAZY_OR_NOW
 
12303
#  ifdef RTLD_LAZY
 
12304
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12305
#  else
 
12306
#    ifdef DL_LAZY
 
12307
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12308
#    else
 
12309
#      ifdef RTLD_NOW
 
12310
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12311
#      else
 
12312
#        ifdef DL_NOW
 
12313
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12314
#        else
 
12315
#          define LT_DLLAZY_OR_NOW      0
 
12316
#        endif
 
12317
#      endif
 
12318
#    endif
 
12319
#  endif
 
12320
#endif
 
12321
 
 
12322
#ifdef __cplusplus
 
12323
extern "C" void exit (int);
 
12324
#endif
 
12325
 
 
12326
void fnord() { int i=42;}
 
12327
int main ()
 
12328
{
 
12329
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12330
  int status = $lt_dlunknown;
 
12331
 
 
12332
  if (self)
 
12333
    {
 
12334
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12335
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12336
      /* dlclose (self); */
 
12337
    }
 
12338
 
 
12339
    exit (status);
 
12340
}
 
12341
EOF
 
12342
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12343
  (eval $ac_link) 2>&5
 
12344
  ac_status=$?
 
12345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12346
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12347
    (./conftest; exit; ) 2>/dev/null
 
12348
    lt_status=$?
 
12349
    case x$lt_status in
 
12350
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12351
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12352
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12353
    esac
 
12354
  else :
 
12355
    # compilation failed
 
12356
    lt_cv_dlopen_self_static=no
 
12357
  fi
 
12358
fi
 
12359
rm -fr conftest*
 
12360
 
 
12361
 
 
12362
fi
 
12363
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12364
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12365
    fi
 
12366
 
 
12367
    CPPFLAGS="$save_CPPFLAGS"
 
12368
    LDFLAGS="$save_LDFLAGS"
 
12369
    LIBS="$save_LIBS"
 
12370
    ;;
 
12371
  esac
 
12372
 
 
12373
  case $lt_cv_dlopen_self in
 
12374
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12375
  *) enable_dlopen_self=unknown ;;
 
12376
  esac
 
12377
 
 
12378
  case $lt_cv_dlopen_self_static in
 
12379
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12380
  *) enable_dlopen_self_static=unknown ;;
 
12381
  esac
 
12382
fi
 
12383
 
 
12384
 
 
12385
# The else clause should only fire when bootstrapping the
 
12386
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12387
# with your package, and you will get complaints that there are
 
12388
# no rules to generate ltmain.sh.
 
12389
if test -f "$ltmain"; then
 
12390
  # See if we are running on zsh, and set the options which allow our commands through
 
12391
  # without removal of \ escapes.
 
12392
  if test -n "${ZSH_VERSION+set}" ; then
 
12393
    setopt NO_GLOB_SUBST
 
12394
  fi
 
12395
  # Now quote all the things that may contain metacharacters while being
 
12396
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12397
  # variables and quote the copies for generation of the libtool script.
 
12398
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12399
    SED SHELL STRIP \
 
12400
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12401
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12402
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12403
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12404
    lt_cv_sys_global_symbol_to_c_name_address \
 
12405
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12406
    old_postinstall_cmds old_postuninstall_cmds \
 
12407
    compiler_CXX \
 
12408
    CC_CXX \
 
12409
    LD_CXX \
 
12410
    lt_prog_compiler_wl_CXX \
 
12411
    lt_prog_compiler_pic_CXX \
 
12412
    lt_prog_compiler_static_CXX \
 
12413
    lt_prog_compiler_no_builtin_flag_CXX \
 
12414
    export_dynamic_flag_spec_CXX \
 
12415
    thread_safe_flag_spec_CXX \
 
12416
    whole_archive_flag_spec_CXX \
 
12417
    enable_shared_with_static_runtimes_CXX \
 
12418
    old_archive_cmds_CXX \
 
12419
    old_archive_from_new_cmds_CXX \
 
12420
    predep_objects_CXX \
 
12421
    postdep_objects_CXX \
 
12422
    predeps_CXX \
 
12423
    postdeps_CXX \
 
12424
    compiler_lib_search_path_CXX \
 
12425
    archive_cmds_CXX \
 
12426
    archive_expsym_cmds_CXX \
 
12427
    postinstall_cmds_CXX \
 
12428
    postuninstall_cmds_CXX \
 
12429
    old_archive_from_expsyms_cmds_CXX \
 
12430
    allow_undefined_flag_CXX \
 
12431
    no_undefined_flag_CXX \
 
12432
    export_symbols_cmds_CXX \
 
12433
    hardcode_libdir_flag_spec_CXX \
 
12434
    hardcode_libdir_flag_spec_ld_CXX \
 
12435
    hardcode_libdir_separator_CXX \
 
12436
    hardcode_automatic_CXX \
 
12437
    module_cmds_CXX \
 
12438
    module_expsym_cmds_CXX \
 
12439
    lt_cv_prog_compiler_c_o_CXX \
 
12440
    exclude_expsyms_CXX \
 
12441
    include_expsyms_CXX; do
 
12442
 
 
12443
    case $var in
 
12444
    old_archive_cmds_CXX | \
 
12445
    old_archive_from_new_cmds_CXX | \
 
12446
    archive_cmds_CXX | \
 
12447
    archive_expsym_cmds_CXX | \
 
12448
    module_cmds_CXX | \
 
12449
    module_expsym_cmds_CXX | \
 
12450
    old_archive_from_expsyms_cmds_CXX | \
 
12451
    export_symbols_cmds_CXX | \
 
12452
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12453
    postinstall_cmds | postuninstall_cmds | \
 
12454
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12455
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12456
      # Double-quote double-evaled strings.
 
12457
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12458
      ;;
 
12459
    *)
 
12460
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12461
      ;;
 
12462
    esac
 
12463
  done
 
12464
 
 
12465
  case $lt_echo in
 
12466
  *'\$0 --fallback-echo"')
 
12467
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12468
    ;;
 
12469
  esac
 
12470
 
 
12471
cfgfile="$ofile"
 
12472
 
 
12473
  cat <<__EOF__ >> "$cfgfile"
 
12474
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12475
 
 
12476
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12477
 
 
12478
# Shell to use when invoking shell scripts.
 
12479
SHELL=$lt_SHELL
 
12480
 
 
12481
# Whether or not to build shared libraries.
 
12482
build_libtool_libs=$enable_shared
 
12483
 
 
12484
# Whether or not to build static libraries.
 
12485
build_old_libs=$enable_static
 
12486
 
 
12487
# Whether or not to add -lc for building shared libraries.
 
12488
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12489
 
 
12490
# Whether or not to disallow shared libs when runtime libs are static
 
12491
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12492
 
 
12493
# Whether or not to optimize for fast installation.
 
12494
fast_install=$enable_fast_install
 
12495
 
 
12496
# The host system.
 
12497
host_alias=$host_alias
 
12498
host=$host
 
12499
host_os=$host_os
 
12500
 
 
12501
# The build system.
 
12502
build_alias=$build_alias
 
12503
build=$build
 
12504
build_os=$build_os
 
12505
 
 
12506
# An echo program that does not interpret backslashes.
 
12507
echo=$lt_echo
 
12508
 
 
12509
# The archiver.
 
12510
AR=$lt_AR
 
12511
AR_FLAGS=$lt_AR_FLAGS
 
12512
 
 
12513
# A C compiler.
 
12514
LTCC=$lt_LTCC
 
12515
 
 
12516
# A language-specific compiler.
 
12517
CC=$lt_compiler_CXX
 
12518
 
 
12519
# Is the compiler the GNU C compiler?
 
12520
with_gcc=$GCC_CXX
 
12521
 
 
12522
# An ERE matcher.
 
12523
EGREP=$lt_EGREP
 
12524
 
 
12525
# The linker used to build libraries.
 
12526
LD=$lt_LD_CXX
 
12527
 
 
12528
# Whether we need hard or soft links.
 
12529
LN_S=$lt_LN_S
 
12530
 
 
12531
# A BSD-compatible nm program.
 
12532
NM=$lt_NM
 
12533
 
 
12534
# A symbol stripping program
 
12535
STRIP=$lt_STRIP
 
12536
 
 
12537
# Used to examine libraries when file_magic_cmd begins "file"
 
12538
MAGIC_CMD=$MAGIC_CMD
 
12539
 
 
12540
# Used on cygwin: DLL creation program.
 
12541
DLLTOOL="$DLLTOOL"
 
12542
 
 
12543
# Used on cygwin: object dumper.
 
12544
OBJDUMP="$OBJDUMP"
 
12545
 
 
12546
# Used on cygwin: assembler.
 
12547
AS="$AS"
 
12548
 
 
12549
# The name of the directory that contains temporary libtool files.
 
12550
objdir=$objdir
 
12551
 
 
12552
# How to create reloadable object files.
 
12553
reload_flag=$lt_reload_flag
 
12554
reload_cmds=$lt_reload_cmds
 
12555
 
 
12556
# How to pass a linker flag through the compiler.
 
12557
wl=$lt_lt_prog_compiler_wl_CXX
 
12558
 
 
12559
# Object file suffix (normally "o").
 
12560
objext="$ac_objext"
 
12561
 
 
12562
# Old archive suffix (normally "a").
 
12563
libext="$libext"
 
12564
 
 
12565
# Shared library suffix (normally ".so").
 
12566
shrext_cmds='$shrext_cmds'
 
12567
 
 
12568
# Executable file suffix (normally "").
 
12569
exeext="$exeext"
 
12570
 
 
12571
# Additional compiler flags for building library objects.
 
12572
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12573
pic_mode=$pic_mode
 
12574
 
 
12575
# What is the maximum length of a command?
 
12576
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12577
 
 
12578
# Does compiler simultaneously support -c and -o options?
 
12579
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12580
 
 
12581
# Must we lock files when doing compilation ?
 
12582
need_locks=$lt_need_locks
 
12583
 
 
12584
# Do we need the lib prefix for modules?
 
12585
need_lib_prefix=$need_lib_prefix
 
12586
 
 
12587
# Do we need a version for libraries?
 
12588
need_version=$need_version
 
12589
 
 
12590
# Whether dlopen is supported.
 
12591
dlopen_support=$enable_dlopen
 
12592
 
 
12593
# Whether dlopen of programs is supported.
 
12594
dlopen_self=$enable_dlopen_self
 
12595
 
 
12596
# Whether dlopen of statically linked programs is supported.
 
12597
dlopen_self_static=$enable_dlopen_self_static
 
12598
 
 
12599
# Compiler flag to prevent dynamic linking.
 
12600
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12601
 
 
12602
# Compiler flag to turn off builtin functions.
 
12603
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12604
 
 
12605
# Compiler flag to allow reflexive dlopens.
 
12606
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12607
 
 
12608
# Compiler flag to generate shared objects directly from archives.
 
12609
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12610
 
 
12611
# Compiler flag to generate thread-safe objects.
 
12612
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12613
 
 
12614
# Library versioning type.
 
12615
version_type=$version_type
 
12616
 
 
12617
# Format of library name prefix.
 
12618
libname_spec=$lt_libname_spec
 
12619
 
 
12620
# List of archive names.  First name is the real one, the rest are links.
 
12621
# The last name is the one that the linker finds with -lNAME.
 
12622
library_names_spec=$lt_library_names_spec
 
12623
 
 
12624
# The coded name of the library, if different from the real name.
 
12625
soname_spec=$lt_soname_spec
 
12626
 
 
12627
# Commands used to build and install an old-style archive.
 
12628
RANLIB=$lt_RANLIB
 
12629
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12630
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12631
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12632
 
 
12633
# Create an old-style archive from a shared archive.
 
12634
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12635
 
 
12636
# Create a temporary old-style archive to link instead of a shared archive.
 
12637
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12638
 
 
12639
# Commands used to build and install a shared archive.
 
12640
archive_cmds=$lt_archive_cmds_CXX
 
12641
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12642
postinstall_cmds=$lt_postinstall_cmds
 
12643
postuninstall_cmds=$lt_postuninstall_cmds
 
12644
 
 
12645
# Commands used to build a loadable module (assumed same as above if empty)
 
12646
module_cmds=$lt_module_cmds_CXX
 
12647
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12648
 
 
12649
# Commands to strip libraries.
 
12650
old_striplib=$lt_old_striplib
 
12651
striplib=$lt_striplib
 
12652
 
 
12653
# Dependencies to place before the objects being linked to create a
 
12654
# shared library.
 
12655
predep_objects=$lt_predep_objects_CXX
 
12656
 
 
12657
# Dependencies to place after the objects being linked to create a
 
12658
# shared library.
 
12659
postdep_objects=$lt_postdep_objects_CXX
 
12660
 
 
12661
# Dependencies to place before the objects being linked to create a
 
12662
# shared library.
 
12663
predeps=$lt_predeps_CXX
 
12664
 
 
12665
# Dependencies to place after the objects being linked to create a
 
12666
# shared library.
 
12667
postdeps=$lt_postdeps_CXX
 
12668
 
 
12669
# The library search path used internally by the compiler when linking
 
12670
# a shared library.
 
12671
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12672
 
 
12673
# Method to check whether dependent libraries are shared objects.
 
12674
deplibs_check_method=$lt_deplibs_check_method
 
12675
 
 
12676
# Command to use when deplibs_check_method == file_magic.
 
12677
file_magic_cmd=$lt_file_magic_cmd
 
12678
 
 
12679
# Flag that allows shared libraries with undefined symbols to be built.
 
12680
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12681
 
 
12682
# Flag that forces no undefined symbols.
 
12683
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12684
 
 
12685
# Commands used to finish a libtool library installation in a directory.
 
12686
finish_cmds=$lt_finish_cmds
 
12687
 
 
12688
# Same as above, but a single script fragment to be evaled but not shown.
 
12689
finish_eval=$lt_finish_eval
 
12690
 
 
12691
# Take the output of nm and produce a listing of raw symbols and C names.
 
12692
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12693
 
 
12694
# Transform the output of nm in a proper C declaration
 
12695
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12696
 
 
12697
# Transform the output of nm in a C name address pair
 
12698
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12699
 
 
12700
# This is the shared library runtime path variable.
 
12701
runpath_var=$runpath_var
 
12702
 
 
12703
# This is the shared library path variable.
 
12704
shlibpath_var=$shlibpath_var
 
12705
 
 
12706
# Is shlibpath searched before the hard-coded library search path?
 
12707
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12708
 
 
12709
# How to hardcode a shared library path into an executable.
 
12710
hardcode_action=$hardcode_action_CXX
 
12711
 
 
12712
# Whether we should hardcode library paths into libraries.
 
12713
hardcode_into_libs=$hardcode_into_libs
 
12714
 
 
12715
# Flag to hardcode \$libdir into a binary during linking.
 
12716
# This must work even if \$libdir does not exist.
 
12717
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
12718
 
 
12719
# If ld is used when linking, flag to hardcode \$libdir into
 
12720
# a binary during linking. This must work even if \$libdir does
 
12721
# not exist.
 
12722
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
12723
 
 
12724
# Whether we need a single -rpath flag with a separated argument.
 
12725
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
12726
 
 
12727
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12728
# resulting binary.
 
12729
hardcode_direct=$hardcode_direct_CXX
 
12730
 
 
12731
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12732
# resulting binary.
 
12733
hardcode_minus_L=$hardcode_minus_L_CXX
 
12734
 
 
12735
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12736
# the resulting binary.
 
12737
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
12738
 
 
12739
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12740
# and all subsequent libraries and executables linked against it.
 
12741
hardcode_automatic=$hardcode_automatic_CXX
 
12742
 
 
12743
# Variables whose values should be saved in libtool wrapper scripts and
 
12744
# restored at relink time.
 
12745
variables_saved_for_relink="$variables_saved_for_relink"
 
12746
 
 
12747
# Whether libtool must link a program against all its dependency libraries.
 
12748
link_all_deplibs=$link_all_deplibs_CXX
 
12749
 
 
12750
# Compile-time system search path for libraries
 
12751
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12752
 
 
12753
# Run-time system search path for libraries
 
12754
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12755
 
 
12756
# Fix the shell variable \$srcfile for the compiler.
 
12757
fix_srcfile_path="$fix_srcfile_path_CXX"
 
12758
 
 
12759
# Set to yes if exported symbols are required.
 
12760
always_export_symbols=$always_export_symbols_CXX
 
12761
 
 
12762
# The commands to list exported symbols.
 
12763
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
12764
 
 
12765
# The commands to extract the exported symbol list from a shared archive.
 
12766
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12767
 
 
12768
# Symbols that should not be listed in the preloaded symbols.
 
12769
exclude_expsyms=$lt_exclude_expsyms_CXX
 
12770
 
 
12771
# Symbols that must always be exported.
 
12772
include_expsyms=$lt_include_expsyms_CXX
 
12773
 
 
12774
# ### END LIBTOOL TAG CONFIG: $tagname
 
12775
 
 
12776
__EOF__
 
12777
 
 
12778
 
 
12779
else
 
12780
  # If there is no Makefile yet, we rely on a make rule to execute
 
12781
  # `config.status --recheck' to rerun these tests and create the
 
12782
  # libtool script then.
 
12783
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12784
  if test -f "$ltmain_in"; then
 
12785
    test -f Makefile && make "$ltmain"
 
12786
  fi
 
12787
fi
 
12788
 
 
12789
 
 
12790
ac_ext=c
 
12791
ac_cpp='$CPP $CPPFLAGS'
 
12792
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12793
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12794
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12795
 
 
12796
CC=$lt_save_CC
 
12797
LDCXX=$LD
 
12798
LD=$lt_save_LD
 
12799
GCC=$lt_save_GCC
 
12800
with_gnu_ldcxx=$with_gnu_ld
 
12801
with_gnu_ld=$lt_save_with_gnu_ld
 
12802
lt_cv_path_LDCXX=$lt_cv_path_LD
 
12803
lt_cv_path_LD=$lt_save_path_LD
 
12804
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
12805
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
12806
 
 
12807
        else
 
12808
          tagname=""
 
12809
        fi
 
12810
        ;;
 
12811
 
 
12812
      F77)
 
12813
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
12814
 
 
12815
ac_ext=f
 
12816
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
12817
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12818
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
12819
 
 
12820
 
 
12821
archive_cmds_need_lc_F77=no
 
12822
allow_undefined_flag_F77=
 
12823
always_export_symbols_F77=no
 
12824
archive_expsym_cmds_F77=
 
12825
export_dynamic_flag_spec_F77=
 
12826
hardcode_direct_F77=no
 
12827
hardcode_libdir_flag_spec_F77=
 
12828
hardcode_libdir_flag_spec_ld_F77=
 
12829
hardcode_libdir_separator_F77=
 
12830
hardcode_minus_L_F77=no
 
12831
hardcode_automatic_F77=no
 
12832
module_cmds_F77=
 
12833
module_expsym_cmds_F77=
 
12834
link_all_deplibs_F77=unknown
 
12835
old_archive_cmds_F77=$old_archive_cmds
 
12836
no_undefined_flag_F77=
 
12837
whole_archive_flag_spec_F77=
 
12838
enable_shared_with_static_runtimes_F77=no
 
12839
 
 
12840
# Source file extension for f77 test sources.
 
12841
ac_ext=f
 
12842
 
 
12843
# Object file extension for compiled f77 test sources.
 
12844
objext=o
 
12845
objext_F77=$objext
 
12846
 
 
12847
# Code to be used in simple compile tests
 
12848
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
12849
 
 
12850
# Code to be used in simple link tests
 
12851
lt_simple_link_test_code="      program t\n      end\n"
 
12852
 
 
12853
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12854
 
 
12855
# If no C compiler was specified, use CC.
 
12856
LTCC=${LTCC-"$CC"}
 
12857
 
 
12858
# Allow CC to be a program name with arguments.
 
12859
compiler=$CC
 
12860
 
 
12861
 
 
12862
# Allow CC to be a program name with arguments.
 
12863
lt_save_CC="$CC"
 
12864
CC=${F77-"f77"}
 
12865
compiler=$CC
 
12866
compiler_F77=$CC
 
12867
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12868
 
 
12869
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12870
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
12871
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12872
echo "${ECHO_T}$can_build_shared" >&6
 
12873
 
 
12874
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12875
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
12876
test "$can_build_shared" = "no" && enable_shared=no
 
12877
 
 
12878
# On AIX, shared libraries and static libraries use the same namespace, and
 
12879
# are all built from PIC.
 
12880
case "$host_os" in
 
12881
aix3*)
 
12882
  test "$enable_shared" = yes && enable_static=no
 
12883
  if test -n "$RANLIB"; then
 
12884
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12885
    postinstall_cmds='$RANLIB $lib'
 
12886
  fi
 
12887
  ;;
 
12888
aix4* | aix5*)
 
12889
  test "$enable_shared" = yes && enable_static=no
 
12890
  ;;
 
12891
esac
 
12892
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12893
echo "${ECHO_T}$enable_shared" >&6
 
12894
 
 
12895
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12896
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
12897
# Make sure either enable_shared or enable_static is yes.
 
12898
test "$enable_shared" = yes || enable_static=yes
 
12899
echo "$as_me:$LINENO: result: $enable_static" >&5
 
12900
echo "${ECHO_T}$enable_static" >&6
 
12901
 
 
12902
test "$ld_shlibs_F77" = no && can_build_shared=no
 
12903
 
 
12904
GCC_F77="$G77"
 
12905
LD_F77="$LD"
 
12906
 
 
12907
lt_prog_compiler_wl_F77=
 
12908
lt_prog_compiler_pic_F77=
 
12909
lt_prog_compiler_static_F77=
 
12910
 
 
12911
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12912
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12913
 
 
12914
  if test "$GCC" = yes; then
 
12915
    lt_prog_compiler_wl_F77='-Wl,'
 
12916
    lt_prog_compiler_static_F77='-static'
 
12917
 
 
12918
    case $host_os in
 
12919
      aix*)
 
12920
      # All AIX code is PIC.
 
12921
      if test "$host_cpu" = ia64; then
 
12922
        # AIX 5 now supports IA64 processor
 
12923
        lt_prog_compiler_static_F77='-Bstatic'
 
12924
      fi
 
12925
      ;;
 
12926
 
 
12927
    amigaos*)
 
12928
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12929
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12930
      # like `-m68040'.
 
12931
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
12932
      ;;
 
12933
 
 
12934
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12935
      # PIC is the default for these OSes.
 
12936
      ;;
 
12937
 
 
12938
    mingw* | pw32* | os2*)
 
12939
      # This hack is so that the source file can tell whether it is being
 
12940
      # built for inclusion in a dll (and should export symbols for example).
 
12941
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
12942
      ;;
 
12943
 
 
12944
    darwin* | rhapsody*)
 
12945
      # PIC is the default on this platform
 
12946
      # Common symbols not allowed in MH_DYLIB files
 
12947
      lt_prog_compiler_pic_F77='-fno-common'
 
12948
      ;;
 
12949
 
 
12950
    msdosdjgpp*)
 
12951
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
12952
      # on systems that don't support them.
 
12953
      lt_prog_compiler_can_build_shared_F77=no
 
12954
      enable_shared=no
 
12955
      ;;
 
12956
 
 
12957
    sysv4*MP*)
 
12958
      if test -d /usr/nec; then
 
12959
        lt_prog_compiler_pic_F77=-Kconform_pic
 
12960
      fi
 
12961
      ;;
 
12962
 
 
12963
    hpux*)
 
12964
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12965
      # not for PA HP-UX.
 
12966
      case "$host_cpu" in
 
12967
      hppa*64*|ia64*)
 
12968
        # +Z the default
 
12969
        ;;
 
12970
      *)
 
12971
        lt_prog_compiler_pic_F77='-fPIC'
 
12972
        ;;
 
12973
      esac
 
12974
      ;;
 
12975
 
 
12976
    *)
 
12977
      lt_prog_compiler_pic_F77='-fPIC'
 
12978
      ;;
 
12979
    esac
 
12980
  else
 
12981
    # PORTME Check for flag to pass linker flags through the system compiler.
 
12982
    case $host_os in
 
12983
    aix*)
 
12984
      lt_prog_compiler_wl_F77='-Wl,'
 
12985
      if test "$host_cpu" = ia64; then
 
12986
        # AIX 5 now supports IA64 processor
 
12987
        lt_prog_compiler_static_F77='-Bstatic'
 
12988
      else
 
12989
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
12990
      fi
 
12991
      ;;
 
12992
      darwin*)
 
12993
        # PIC is the default on this platform
 
12994
        # Common symbols not allowed in MH_DYLIB files
 
12995
       case "$cc_basename" in
 
12996
         xlc*)
 
12997
         lt_prog_compiler_pic_F77='-qnocommon'
 
12998
         lt_prog_compiler_wl_F77='-Wl,'
 
12999
         ;;
 
13000
       esac
 
13001
       ;;
 
13002
 
 
13003
    mingw* | pw32* | os2*)
 
13004
      # This hack is so that the source file can tell whether it is being
 
13005
      # built for inclusion in a dll (and should export symbols for example).
 
13006
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13007
      ;;
 
13008
 
 
13009
    hpux9* | hpux10* | hpux11*)
 
13010
      lt_prog_compiler_wl_F77='-Wl,'
 
13011
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13012
      # not for PA HP-UX.
 
13013
      case "$host_cpu" in
 
13014
      hppa*64*|ia64*)
 
13015
        # +Z the default
 
13016
        ;;
 
13017
      *)
 
13018
        lt_prog_compiler_pic_F77='+Z'
 
13019
        ;;
 
13020
      esac
 
13021
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13022
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13023
      ;;
 
13024
 
 
13025
    irix5* | irix6* | nonstopux*)
 
13026
      lt_prog_compiler_wl_F77='-Wl,'
 
13027
      # PIC (with -KPIC) is the default.
 
13028
      lt_prog_compiler_static_F77='-non_shared'
 
13029
      ;;
 
13030
 
 
13031
    newsos6)
 
13032
      lt_prog_compiler_pic_F77='-KPIC'
 
13033
      lt_prog_compiler_static_F77='-Bstatic'
 
13034
      ;;
 
13035
 
 
13036
    linux*)
 
13037
      case $cc_basename in
 
13038
      icc* | ecc*)
 
13039
        lt_prog_compiler_wl_F77='-Wl,'
 
13040
        lt_prog_compiler_pic_F77='-KPIC'
 
13041
        lt_prog_compiler_static_F77='-static'
 
13042
        ;;
 
13043
      pgcc | pgf77 | pgf90)
 
13044
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13045
        # which looks to be a dead project)
 
13046
        lt_prog_compiler_wl_F77='-Wl,'
 
13047
        lt_prog_compiler_pic_F77='-fpic'
 
13048
        lt_prog_compiler_static_F77='-static'
 
13049
        ;;
 
13050
      ccc*)
 
13051
        lt_prog_compiler_wl_F77='-Wl,'
 
13052
        # All Alpha code is PIC.
 
13053
        lt_prog_compiler_static_F77='-non_shared'
 
13054
        ;;
 
13055
      esac
 
13056
      ;;
 
13057
 
 
13058
    osf3* | osf4* | osf5*)
 
13059
      lt_prog_compiler_wl_F77='-Wl,'
 
13060
      # All OSF/1 code is PIC.
 
13061
      lt_prog_compiler_static_F77='-non_shared'
 
13062
      ;;
 
13063
 
 
13064
    sco3.2v5*)
 
13065
      lt_prog_compiler_pic_F77='-Kpic'
 
13066
      lt_prog_compiler_static_F77='-dn'
 
13067
      ;;
 
13068
 
 
13069
    solaris*)
 
13070
      lt_prog_compiler_wl_F77='-Wl,'
 
13071
      lt_prog_compiler_pic_F77='-KPIC'
 
13072
      lt_prog_compiler_static_F77='-Bstatic'
 
13073
      ;;
 
13074
 
 
13075
    sunos4*)
 
13076
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13077
      lt_prog_compiler_pic_F77='-PIC'
 
13078
      lt_prog_compiler_static_F77='-Bstatic'
 
13079
      ;;
 
13080
 
 
13081
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13082
      lt_prog_compiler_wl_F77='-Wl,'
 
13083
      lt_prog_compiler_pic_F77='-KPIC'
 
13084
      lt_prog_compiler_static_F77='-Bstatic'
 
13085
      ;;
 
13086
 
 
13087
    sysv4*MP*)
 
13088
      if test -d /usr/nec ;then
 
13089
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13090
        lt_prog_compiler_static_F77='-Bstatic'
 
13091
      fi
 
13092
      ;;
 
13093
 
 
13094
    unicos*)
 
13095
      lt_prog_compiler_wl_F77='-Wl,'
 
13096
      lt_prog_compiler_can_build_shared_F77=no
 
13097
      ;;
 
13098
 
 
13099
    uts4*)
 
13100
      lt_prog_compiler_pic_F77='-pic'
 
13101
      lt_prog_compiler_static_F77='-Bstatic'
 
13102
      ;;
 
13103
 
 
13104
    *)
 
13105
      lt_prog_compiler_can_build_shared_F77=no
 
13106
      ;;
 
13107
    esac
 
13108
  fi
 
13109
 
 
13110
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13111
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13112
 
 
13113
#
 
13114
# Check to make sure the PIC flag actually works.
 
13115
#
 
13116
if test -n "$lt_prog_compiler_pic_F77"; then
 
13117
 
 
13118
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13119
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13120
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13121
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13122
else
 
13123
  lt_prog_compiler_pic_works_F77=no
 
13124
  ac_outfile=conftest.$ac_objext
 
13125
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13126
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13127
   # Insert the option either (1) after the last *FLAGS variable, or
 
13128
   # (2) before a word containing "conftest.", or (3) at the end.
 
13129
   # Note that $ac_compile itself does not contain backslashes and begins
 
13130
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13131
   # The option is referenced via a variable to avoid confusing sed.
 
13132
   lt_compile=`echo "$ac_compile" | $SED \
 
13133
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13134
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13135
   -e 's:$: $lt_compiler_flag:'`
 
13136
   (eval echo "\"\$as_me:13136: $lt_compile\"" >&5)
 
13137
   (eval "$lt_compile" 2>conftest.err)
 
13138
   ac_status=$?
 
13139
   cat conftest.err >&5
 
13140
   echo "$as_me:13140: \$? = $ac_status" >&5
 
13141
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13142
     # The compiler can only warn and ignore the option if not recognized
 
13143
     # So say no if there are warnings
 
13144
     if test ! -s conftest.err; then
 
13145
       lt_prog_compiler_pic_works_F77=yes
 
13146
     fi
 
13147
   fi
 
13148
   $rm conftest*
 
13149
 
 
13150
fi
 
13151
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13152
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13153
 
 
13154
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13155
    case $lt_prog_compiler_pic_F77 in
 
13156
     "" | " "*) ;;
 
13157
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13158
     esac
 
13159
else
 
13160
    lt_prog_compiler_pic_F77=
 
13161
     lt_prog_compiler_can_build_shared_F77=no
 
13162
fi
 
13163
 
 
13164
fi
 
13165
case "$host_os" in
 
13166
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13167
  *djgpp*)
 
13168
    lt_prog_compiler_pic_F77=
 
13169
    ;;
 
13170
  *)
 
13171
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13172
    ;;
 
13173
esac
 
13174
 
 
13175
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13176
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13177
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13179
else
 
13180
  lt_cv_prog_compiler_c_o_F77=no
 
13181
   $rm -r conftest 2>/dev/null
 
13182
   mkdir conftest
 
13183
   cd conftest
 
13184
   mkdir out
 
13185
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13186
 
 
13187
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13188
   # Insert the option either (1) after the last *FLAGS variable, or
 
13189
   # (2) before a word containing "conftest.", or (3) at the end.
 
13190
   # Note that $ac_compile itself does not contain backslashes and begins
 
13191
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13192
   lt_compile=`echo "$ac_compile" | $SED \
 
13193
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13194
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13195
   -e 's:$: $lt_compiler_flag:'`
 
13196
   (eval echo "\"\$as_me:13196: $lt_compile\"" >&5)
 
13197
   (eval "$lt_compile" 2>out/conftest.err)
 
13198
   ac_status=$?
 
13199
   cat out/conftest.err >&5
 
13200
   echo "$as_me:13200: \$? = $ac_status" >&5
 
13201
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13202
   then
 
13203
     # The compiler can only warn and ignore the option if not recognized
 
13204
     # So say no if there are warnings
 
13205
     if test ! -s out/conftest.err; then
 
13206
       lt_cv_prog_compiler_c_o_F77=yes
 
13207
     fi
 
13208
   fi
 
13209
   chmod u+w .
 
13210
   $rm conftest*
 
13211
   # SGI C++ compiler will create directory out/ii_files/ for
 
13212
   # template instantiation
 
13213
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13214
   $rm out/* && rmdir out
 
13215
   cd ..
 
13216
   rmdir conftest
 
13217
   $rm conftest*
 
13218
 
 
13219
fi
 
13220
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13221
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13222
 
 
13223
 
 
13224
hard_links="nottested"
 
13225
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13226
  # do not overwrite the value of need_locks provided by the user
 
13227
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13228
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13229
  hard_links=yes
 
13230
  $rm conftest*
 
13231
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13232
  touch conftest.a
 
13233
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13234
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13235
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13236
echo "${ECHO_T}$hard_links" >&6
 
13237
  if test "$hard_links" = no; then
 
13238
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13239
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13240
    need_locks=warn
 
13241
  fi
 
13242
else
 
13243
  need_locks=no
 
13244
fi
 
13245
 
 
13246
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13247
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13248
 
 
13249
  runpath_var=
 
13250
  allow_undefined_flag_F77=
 
13251
  enable_shared_with_static_runtimes_F77=no
 
13252
  archive_cmds_F77=
 
13253
  archive_expsym_cmds_F77=
 
13254
  old_archive_From_new_cmds_F77=
 
13255
  old_archive_from_expsyms_cmds_F77=
 
13256
  export_dynamic_flag_spec_F77=
 
13257
  whole_archive_flag_spec_F77=
 
13258
  thread_safe_flag_spec_F77=
 
13259
  hardcode_libdir_flag_spec_F77=
 
13260
  hardcode_libdir_flag_spec_ld_F77=
 
13261
  hardcode_libdir_separator_F77=
 
13262
  hardcode_direct_F77=no
 
13263
  hardcode_minus_L_F77=no
 
13264
  hardcode_shlibpath_var_F77=unsupported
 
13265
  link_all_deplibs_F77=unknown
 
13266
  hardcode_automatic_F77=no
 
13267
  module_cmds_F77=
 
13268
  module_expsym_cmds_F77=
 
13269
  always_export_symbols_F77=no
 
13270
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13271
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13272
  # included in the symbol list
 
13273
  include_expsyms_F77=
 
13274
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13275
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13276
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13277
  # as well as any symbol that contains `d'.
 
13278
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13279
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13280
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13281
  # the symbol is explicitly referenced.  Since portable code cannot
 
13282
  # rely on this symbol name, it's probably fine to never include it in
 
13283
  # preloaded symbol tables.
 
13284
  extract_expsyms_cmds=
 
13285
 
 
13286
  case $host_os in
 
13287
  cygwin* | mingw* | pw32*)
 
13288
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13289
    # When not using gcc, we currently assume that we are using
 
13290
    # Microsoft Visual C++.
 
13291
    if test "$GCC" != yes; then
 
13292
      with_gnu_ld=no
 
13293
    fi
 
13294
    ;;
 
13295
  openbsd*)
 
13296
    with_gnu_ld=no
 
13297
    ;;
 
13298
  esac
 
13299
 
 
13300
  ld_shlibs_F77=yes
 
13301
  if test "$with_gnu_ld" = yes; then
 
13302
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13303
    wlarc='${wl}'
 
13304
 
 
13305
    # See if GNU ld supports shared libraries.
 
13306
    case $host_os in
 
13307
    aix3* | aix4* | aix5*)
 
13308
      # On AIX/PPC, the GNU linker is very broken
 
13309
      if test "$host_cpu" != ia64; then
 
13310
        ld_shlibs_F77=no
 
13311
        cat <<EOF 1>&2
 
13312
 
 
13313
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13314
*** to be unable to reliably create shared libraries on AIX.
 
13315
*** Therefore, libtool is disabling shared libraries support.  If you
 
13316
*** really care for shared libraries, you may want to modify your PATH
 
13317
*** so that a non-GNU linker is found, and then restart.
 
13318
 
 
13319
EOF
 
13320
      fi
 
13321
      ;;
 
13322
 
 
13323
    amigaos*)
 
13324
      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)'
 
13325
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13326
      hardcode_minus_L_F77=yes
 
13327
 
 
13328
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13329
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13330
      # to version 4, is to share data among multiple programs linked
 
13331
      # with the same dynamic library.  Since this doesn't match the
 
13332
      # behavior of shared libraries on other platforms, we can't use
 
13333
      # them.
 
13334
      ld_shlibs_F77=no
 
13335
      ;;
 
13336
 
 
13337
    beos*)
 
13338
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13339
        allow_undefined_flag_F77=unsupported
 
13340
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13341
        # support --undefined.  This deserves some investigation.  FIXME
 
13342
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13343
      else
 
13344
        ld_shlibs_F77=no
 
13345
      fi
 
13346
      ;;
 
13347
 
 
13348
    cygwin* | mingw* | pw32*)
 
13349
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13350
      # as there is no search path for DLLs.
 
13351
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13352
      allow_undefined_flag_F77=unsupported
 
13353
      always_export_symbols_F77=no
 
13354
      enable_shared_with_static_runtimes_F77=yes
 
13355
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13356
 
 
13357
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13358
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13359
        # If the export-symbols file already is a .def file (1st line
 
13360
        # is EXPORTS), use it as is; otherwise, prepend...
 
13361
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13362
          cp $export_symbols $output_objdir/$soname.def;
 
13363
        else
 
13364
          echo EXPORTS > $output_objdir/$soname.def;
 
13365
          cat $export_symbols >> $output_objdir/$soname.def;
 
13366
        fi~
 
13367
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13368
      else
 
13369
        ld_shlibs_F77=no
 
13370
      fi
 
13371
      ;;
 
13372
 
 
13373
    netbsd*)
 
13374
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13375
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13376
        wlarc=
 
13377
      else
 
13378
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13379
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13380
      fi
 
13381
      ;;
 
13382
 
 
13383
    solaris* | sysv5*)
 
13384
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13385
        ld_shlibs_F77=no
 
13386
        cat <<EOF 1>&2
 
13387
 
 
13388
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13389
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13390
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13391
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13392
*** your PATH or compiler configuration so that the native linker is
 
13393
*** used, and then restart.
 
13394
 
 
13395
EOF
 
13396
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13397
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13398
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13399
      else
 
13400
        ld_shlibs_F77=no
 
13401
      fi
 
13402
      ;;
 
13403
 
 
13404
    sunos4*)
 
13405
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13406
      wlarc=
 
13407
      hardcode_direct_F77=yes
 
13408
      hardcode_shlibpath_var_F77=no
 
13409
      ;;
 
13410
 
 
13411
  linux*)
 
13412
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13413
      tmp_addflag=
 
13414
      case $CC,$host_cpu in
 
13415
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
 
13416
        tmp_addflag=' -fpic' ;;
 
13417
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
 
13418
        tmp_addflag=' -i_dynamic' ;;
 
13419
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
 
13420
        tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13421
      ifc* | ifort*)                    # Intel Fortran compiler
 
13422
        tmp_addflag=' -nofor_main' ;;
 
13423
      esac
 
13424
      archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13425
      supports_anon_versioning=no
 
13426
      case `$LD -v 2>/dev/null` in
 
13427
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13428
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13429
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13430
        *\ 2.11.*) ;; # other 2.11 versions
 
13431
        *) supports_anon_versioning=yes ;;
 
13432
      esac
 
13433
      if test $supports_anon_versioning = yes; then
 
13434
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13435
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13436
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
13437
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13438
      else
 
13439
        archive_expsym_cmds_F77=$archive_cmds_F77
 
13440
      fi
 
13441
    else
 
13442
      ld_shlibs_F77=no
 
13443
    fi
 
13444
    ;;
 
13445
 
 
13446
    *)
 
13447
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13448
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13449
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13450
      else
 
13451
        ld_shlibs_F77=no
 
13452
      fi
 
13453
      ;;
 
13454
    esac
 
13455
 
 
13456
    if test "$ld_shlibs_F77" = yes; then
 
13457
      runpath_var=LD_RUN_PATH
 
13458
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13459
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13460
      # ancient GNU ld didn't support --whole-archive et. al.
 
13461
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13462
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13463
      else
 
13464
        whole_archive_flag_spec_F77=
 
13465
      fi
 
13466
    fi
 
13467
  else
 
13468
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13469
    case $host_os in
 
13470
    aix3*)
 
13471
      allow_undefined_flag_F77=unsupported
 
13472
      always_export_symbols_F77=yes
 
13473
      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'
 
13474
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13475
      # are no directories specified by -L.
 
13476
      hardcode_minus_L_F77=yes
 
13477
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13478
        # Neither direct hardcoding nor static linking is supported with a
 
13479
        # broken collect2.
 
13480
        hardcode_direct_F77=unsupported
 
13481
      fi
 
13482
      ;;
 
13483
 
 
13484
    aix4* | aix5*)
 
13485
      if test "$host_cpu" = ia64; then
 
13486
        # On IA64, the linker does run time linking by default, so we don't
 
13487
        # have to do anything special.
 
13488
        aix_use_runtimelinking=no
 
13489
        exp_sym_flag='-Bexport'
 
13490
        no_entry_flag=""
 
13491
      else
 
13492
        # If we're using GNU nm, then we don't want the "-C" option.
 
13493
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13494
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13495
          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'
 
13496
        else
 
13497
          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'
 
13498
        fi
 
13499
        aix_use_runtimelinking=no
 
13500
 
 
13501
        # Test if we are trying to use run time linking or normal
 
13502
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13503
        # need to do runtime linking.
 
13504
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13505
          for ld_flag in $LDFLAGS; do
 
13506
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13507
            aix_use_runtimelinking=yes
 
13508
            break
 
13509
          fi
 
13510
          done
 
13511
        esac
 
13512
 
 
13513
        exp_sym_flag='-bexport'
 
13514
        no_entry_flag='-bnoentry'
 
13515
      fi
 
13516
 
 
13517
      # When large executables or shared objects are built, AIX ld can
 
13518
      # have problems creating the table of contents.  If linking a library
 
13519
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13520
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13521
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13522
 
 
13523
      archive_cmds_F77=''
 
13524
      hardcode_direct_F77=yes
 
13525
      hardcode_libdir_separator_F77=':'
 
13526
      link_all_deplibs_F77=yes
 
13527
 
 
13528
      if test "$GCC" = yes; then
 
13529
        case $host_os in aix4.[012]|aix4.[012].*)
 
13530
        # We only want to do this on AIX 4.2 and lower, the check
 
13531
        # below for broken collect2 doesn't work under 4.3+
 
13532
          collect2name=`${CC} -print-prog-name=collect2`
 
13533
          if test -f "$collect2name" && \
 
13534
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13535
          then
 
13536
          # We have reworked collect2
 
13537
          hardcode_direct_F77=yes
 
13538
          else
 
13539
          # We have old collect2
 
13540
          hardcode_direct_F77=unsupported
 
13541
          # It fails to find uninstalled libraries when the uninstalled
 
13542
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13543
          # to unsupported forces relinking
 
13544
          hardcode_minus_L_F77=yes
 
13545
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13546
          hardcode_libdir_separator_F77=
 
13547
          fi
 
13548
        esac
 
13549
        shared_flag='-shared'
 
13550
        if test "$aix_use_runtimelinking" = yes; then
 
13551
          shared_flag="$shared_flag "'${wl}-G'
 
13552
        fi
 
13553
      else
 
13554
        # not using gcc
 
13555
        if test "$host_cpu" = ia64; then
 
13556
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13557
        # chokes on -Wl,-G. The following line is correct:
 
13558
          shared_flag='-G'
 
13559
        else
 
13560
        if test "$aix_use_runtimelinking" = yes; then
 
13561
            shared_flag='${wl}-G'
 
13562
          else
 
13563
            shared_flag='${wl}-bM:SRE'
 
13564
        fi
 
13565
        fi
 
13566
      fi
 
13567
 
 
13568
      # It seems that -bexpall does not export symbols beginning with
 
13569
      # underscore (_), so it is better to generate a list of symbols to export.
 
13570
      always_export_symbols_F77=yes
 
13571
      if test "$aix_use_runtimelinking" = yes; then
 
13572
        # Warning - without using the other runtime loading flags (-brtl),
 
13573
        # -berok will link without error, but may produce a broken library.
 
13574
        allow_undefined_flag_F77='-berok'
 
13575
       # Determine the default libpath from the value encoded in an empty executable.
 
13576
       cat >conftest.$ac_ext <<_ACEOF
 
13577
      program main
 
13578
 
 
13579
      end
 
13580
_ACEOF
 
13581
rm -f conftest.$ac_objext conftest$ac_exeext
 
13582
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13583
  (eval $ac_link) 2>conftest.er1
 
13584
  ac_status=$?
 
13585
  grep -v '^ *+' conftest.er1 >conftest.err
 
13586
  rm -f conftest.er1
 
13587
  cat conftest.err >&5
 
13588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13589
  (exit $ac_status); } &&
 
13590
         { ac_try='test -z "$ac_f77_werror_flag"
 
13591
                         || test ! -s conftest.err'
 
13592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13593
  (eval $ac_try) 2>&5
 
13594
  ac_status=$?
 
13595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13596
  (exit $ac_status); }; } &&
 
13597
         { ac_try='test -s conftest$ac_exeext'
 
13598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13599
  (eval $ac_try) 2>&5
 
13600
  ac_status=$?
 
13601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13602
  (exit $ac_status); }; }; then
 
13603
 
 
13604
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13605
}'`
 
13606
# Check for a 64-bit object if we didn't find anything.
 
13607
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; }
 
13608
}'`; fi
 
13609
else
 
13610
  echo "$as_me: failed program was:" >&5
 
13611
sed 's/^/| /' conftest.$ac_ext >&5
 
13612
 
 
13613
fi
 
13614
rm -f conftest.err conftest.$ac_objext \
 
13615
      conftest$ac_exeext conftest.$ac_ext
 
13616
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13617
 
 
13618
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13619
        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"
 
13620
       else
 
13621
        if test "$host_cpu" = ia64; then
 
13622
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13623
          allow_undefined_flag_F77="-z nodefs"
 
13624
          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"
 
13625
        else
 
13626
         # Determine the default libpath from the value encoded in an empty executable.
 
13627
         cat >conftest.$ac_ext <<_ACEOF
 
13628
      program main
 
13629
 
 
13630
      end
 
13631
_ACEOF
 
13632
rm -f conftest.$ac_objext conftest$ac_exeext
 
13633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13634
  (eval $ac_link) 2>conftest.er1
 
13635
  ac_status=$?
 
13636
  grep -v '^ *+' conftest.er1 >conftest.err
 
13637
  rm -f conftest.er1
 
13638
  cat conftest.err >&5
 
13639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13640
  (exit $ac_status); } &&
 
13641
         { ac_try='test -z "$ac_f77_werror_flag"
 
13642
                         || test ! -s conftest.err'
 
13643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13644
  (eval $ac_try) 2>&5
 
13645
  ac_status=$?
 
13646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13647
  (exit $ac_status); }; } &&
 
13648
         { ac_try='test -s conftest$ac_exeext'
 
13649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13650
  (eval $ac_try) 2>&5
 
13651
  ac_status=$?
 
13652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13653
  (exit $ac_status); }; }; then
 
13654
 
 
13655
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13656
}'`
 
13657
# Check for a 64-bit object if we didn't find anything.
 
13658
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; }
 
13659
}'`; fi
 
13660
else
 
13661
  echo "$as_me: failed program was:" >&5
 
13662
sed 's/^/| /' conftest.$ac_ext >&5
 
13663
 
 
13664
fi
 
13665
rm -f conftest.err conftest.$ac_objext \
 
13666
      conftest$ac_exeext conftest.$ac_ext
 
13667
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13668
 
 
13669
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13670
          # Warning - without using the other run time loading flags,
 
13671
          # -berok will link without error, but may produce a broken library.
 
13672
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13673
          allow_undefined_flag_F77=' ${wl}-berok'
 
13674
          # -bexpall does not export symbols beginning with underscore (_)
 
13675
          always_export_symbols_F77=yes
 
13676
          # Exported symbols can be pulled into shared objects from archives
 
13677
          whole_archive_flag_spec_F77=' '
 
13678
          archive_cmds_need_lc_F77=yes
 
13679
          # This is similar to how AIX traditionally builds it's shared libraries.
 
13680
          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'
 
13681
        fi
 
13682
      fi
 
13683
      ;;
 
13684
 
 
13685
    amigaos*)
 
13686
      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)'
 
13687
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13688
      hardcode_minus_L_F77=yes
 
13689
      # see comment about different semantics on the GNU ld section
 
13690
      ld_shlibs_F77=no
 
13691
      ;;
 
13692
 
 
13693
    bsdi[45]*)
 
13694
      export_dynamic_flag_spec_F77=-rdynamic
 
13695
      ;;
 
13696
 
 
13697
    cygwin* | mingw* | pw32*)
 
13698
      # When not using gcc, we currently assume that we are using
 
13699
      # Microsoft Visual C++.
 
13700
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13701
      # no search path for DLLs.
 
13702
      hardcode_libdir_flag_spec_F77=' '
 
13703
      allow_undefined_flag_F77=unsupported
 
13704
      # Tell ltmain to make .lib files, not .a files.
 
13705
      libext=lib
 
13706
      # Tell ltmain to make .dll files, not .so files.
 
13707
      shrext_cmds=".dll"
 
13708
      # FIXME: Setting linknames here is a bad hack.
 
13709
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13710
      # The linker will automatically build a .lib file if we build a DLL.
 
13711
      old_archive_From_new_cmds_F77='true'
 
13712
      # FIXME: Should let the user specify the lib program.
 
13713
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13714
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
13715
      enable_shared_with_static_runtimes_F77=yes
 
13716
      ;;
 
13717
 
 
13718
    darwin* | rhapsody*)
 
13719
      case "$host_os" in
 
13720
        rhapsody* | darwin1.[012])
 
13721
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
13722
         ;;
 
13723
       *) # Darwin 1.3 on
 
13724
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13725
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13726
         else
 
13727
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
13728
             10.[012])
 
13729
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13730
               ;;
 
13731
             10.*)
 
13732
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
13733
               ;;
 
13734
           esac
 
13735
         fi
 
13736
         ;;
 
13737
      esac
 
13738
      archive_cmds_need_lc_F77=no
 
13739
      hardcode_direct_F77=no
 
13740
      hardcode_automatic_F77=yes
 
13741
      hardcode_shlibpath_var_F77=unsupported
 
13742
      whole_archive_flag_spec_F77=''
 
13743
      link_all_deplibs_F77=yes
 
13744
    if test "$GCC" = yes ; then
 
13745
        output_verbose_link_cmd='echo'
 
13746
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13747
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13748
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
13749
      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}'
 
13750
      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}'
 
13751
    else
 
13752
      case "$cc_basename" in
 
13753
        xlc*)
 
13754
         output_verbose_link_cmd='echo'
 
13755
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
13756
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13757
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
13758
         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}'
 
13759
          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}'
 
13760
          ;;
 
13761
       *)
 
13762
         ld_shlibs_F77=no
 
13763
          ;;
 
13764
      esac
 
13765
    fi
 
13766
      ;;
 
13767
 
 
13768
    dgux*)
 
13769
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13770
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13771
      hardcode_shlibpath_var_F77=no
 
13772
      ;;
 
13773
 
 
13774
    freebsd1*)
 
13775
      ld_shlibs_F77=no
 
13776
      ;;
 
13777
 
 
13778
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
13779
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
13780
    # does not break anything, and helps significantly (at the cost of a little
 
13781
    # extra space).
 
13782
    freebsd2.2*)
 
13783
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
13784
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13785
      hardcode_direct_F77=yes
 
13786
      hardcode_shlibpath_var_F77=no
 
13787
      ;;
 
13788
 
 
13789
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
13790
    freebsd2*)
 
13791
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13792
      hardcode_direct_F77=yes
 
13793
      hardcode_minus_L_F77=yes
 
13794
      hardcode_shlibpath_var_F77=no
 
13795
      ;;
 
13796
 
 
13797
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
13798
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
13799
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
13800
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13801
      hardcode_direct_F77=yes
 
13802
      hardcode_shlibpath_var_F77=no
 
13803
      ;;
 
13804
 
 
13805
    hpux9*)
 
13806
      if test "$GCC" = yes; then
 
13807
        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'
 
13808
      else
 
13809
        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'
 
13810
      fi
 
13811
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13812
      hardcode_libdir_separator_F77=:
 
13813
      hardcode_direct_F77=yes
 
13814
 
 
13815
      # hardcode_minus_L: Not really in the search PATH,
 
13816
      # but as the default location of the library.
 
13817
      hardcode_minus_L_F77=yes
 
13818
      export_dynamic_flag_spec_F77='${wl}-E'
 
13819
      ;;
 
13820
 
 
13821
    hpux10* | hpux11*)
 
13822
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
13823
        case "$host_cpu" in
 
13824
        hppa*64*|ia64*)
 
13825
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13826
          ;;
 
13827
        *)
 
13828
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
13829
          ;;
 
13830
        esac
 
13831
      else
 
13832
        case "$host_cpu" in
 
13833
        hppa*64*|ia64*)
 
13834
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13835
          ;;
 
13836
        *)
 
13837
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
13838
          ;;
 
13839
        esac
 
13840
      fi
 
13841
      if test "$with_gnu_ld" = no; then
 
13842
        case "$host_cpu" in
 
13843
        hppa*64*)
 
13844
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13845
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
13846
          hardcode_libdir_separator_F77=:
 
13847
          hardcode_direct_F77=no
 
13848
          hardcode_shlibpath_var_F77=no
 
13849
          ;;
 
13850
        ia64*)
 
13851
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13852
          hardcode_direct_F77=no
 
13853
          hardcode_shlibpath_var_F77=no
 
13854
 
 
13855
          # hardcode_minus_L: Not really in the search PATH,
 
13856
          # but as the default location of the library.
 
13857
          hardcode_minus_L_F77=yes
 
13858
          ;;
 
13859
        *)
 
13860
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13861
          hardcode_libdir_separator_F77=:
 
13862
          hardcode_direct_F77=yes
 
13863
          export_dynamic_flag_spec_F77='${wl}-E'
 
13864
 
 
13865
          # hardcode_minus_L: Not really in the search PATH,
 
13866
          # but as the default location of the library.
 
13867
          hardcode_minus_L_F77=yes
 
13868
          ;;
 
13869
        esac
 
13870
      fi
 
13871
      ;;
 
13872
 
 
13873
    irix5* | irix6* | nonstopux*)
 
13874
      if test "$GCC" = yes; then
 
13875
        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'
 
13876
      else
 
13877
        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'
 
13878
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
13879
      fi
 
13880
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13881
      hardcode_libdir_separator_F77=:
 
13882
      link_all_deplibs_F77=yes
 
13883
      ;;
 
13884
 
 
13885
    netbsd*)
 
13886
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13887
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
13888
      else
 
13889
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
13890
      fi
 
13891
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13892
      hardcode_direct_F77=yes
 
13893
      hardcode_shlibpath_var_F77=no
 
13894
      ;;
 
13895
 
 
13896
    newsos6)
 
13897
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13898
      hardcode_direct_F77=yes
 
13899
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13900
      hardcode_libdir_separator_F77=:
 
13901
      hardcode_shlibpath_var_F77=no
 
13902
      ;;
 
13903
 
 
13904
    openbsd*)
 
13905
      hardcode_direct_F77=yes
 
13906
      hardcode_shlibpath_var_F77=no
 
13907
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13908
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
13909
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
13910
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13911
        export_dynamic_flag_spec_F77='${wl}-E'
 
13912
      else
 
13913
       case $host_os in
 
13914
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
13915
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13916
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
13917
           ;;
 
13918
         *)
 
13919
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
13920
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13921
           ;;
 
13922
       esac
 
13923
      fi
 
13924
      ;;
 
13925
 
 
13926
    os2*)
 
13927
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13928
      hardcode_minus_L_F77=yes
 
13929
      allow_undefined_flag_F77=unsupported
 
13930
      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'
 
13931
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
13932
      ;;
 
13933
 
 
13934
    osf3*)
 
13935
      if test "$GCC" = yes; then
 
13936
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
13937
        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'
 
13938
      else
 
13939
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
13940
        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'
 
13941
      fi
 
13942
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13943
      hardcode_libdir_separator_F77=:
 
13944
      ;;
 
13945
 
 
13946
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
13947
      if test "$GCC" = yes; then
 
13948
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
13949
        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'
 
13950
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13951
      else
 
13952
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
13953
        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'
 
13954
        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~
 
13955
        $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'
 
13956
 
 
13957
        # Both c and cxx compiler support -rpath directly
 
13958
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
13959
      fi
 
13960
      hardcode_libdir_separator_F77=:
 
13961
      ;;
 
13962
 
 
13963
    sco3.2v5*)
 
13964
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13965
      hardcode_shlibpath_var_F77=no
 
13966
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
13967
      runpath_var=LD_RUN_PATH
 
13968
      hardcode_runpath_var=yes
 
13969
      ;;
 
13970
 
 
13971
    solaris*)
 
13972
      no_undefined_flag_F77=' -z text'
 
13973
      if test "$GCC" = yes; then
 
13974
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13975
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13976
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
13977
      else
 
13978
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13979
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13980
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
13981
      fi
 
13982
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13983
      hardcode_shlibpath_var_F77=no
 
13984
      case $host_os in
 
13985
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13986
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13987
        whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
 
13988
      esac
 
13989
      link_all_deplibs_F77=yes
 
13990
      ;;
 
13991
 
 
13992
    sunos4*)
 
13993
      if test "x$host_vendor" = xsequent; then
 
13994
        # Use $CC to link under sequent, because it throws in some extra .o
 
13995
        # files that make .init and .fini sections work.
 
13996
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
13997
      else
 
13998
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
13999
      fi
 
14000
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14001
      hardcode_direct_F77=yes
 
14002
      hardcode_minus_L_F77=yes
 
14003
      hardcode_shlibpath_var_F77=no
 
14004
      ;;
 
14005
 
 
14006
    sysv4)
 
14007
      case $host_vendor in
 
14008
        sni)
 
14009
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14010
          hardcode_direct_F77=yes # is this really true???
 
14011
        ;;
 
14012
        siemens)
 
14013
          ## LD is ld it makes a PLAMLIB
 
14014
          ## CC just makes a GrossModule.
 
14015
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14016
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14017
          hardcode_direct_F77=no
 
14018
        ;;
 
14019
        motorola)
 
14020
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14021
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14022
        ;;
 
14023
      esac
 
14024
      runpath_var='LD_RUN_PATH'
 
14025
      hardcode_shlibpath_var_F77=no
 
14026
      ;;
 
14027
 
 
14028
    sysv4.3*)
 
14029
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14030
      hardcode_shlibpath_var_F77=no
 
14031
      export_dynamic_flag_spec_F77='-Bexport'
 
14032
      ;;
 
14033
 
 
14034
    sysv4*MP*)
 
14035
      if test -d /usr/nec; then
 
14036
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14037
        hardcode_shlibpath_var_F77=no
 
14038
        runpath_var=LD_RUN_PATH
 
14039
        hardcode_runpath_var=yes
 
14040
        ld_shlibs_F77=yes
 
14041
      fi
 
14042
      ;;
 
14043
 
 
14044
    sysv4.2uw2*)
 
14045
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14046
      hardcode_direct_F77=yes
 
14047
      hardcode_minus_L_F77=no
 
14048
      hardcode_shlibpath_var_F77=no
 
14049
      hardcode_runpath_var=yes
 
14050
      runpath_var=LD_RUN_PATH
 
14051
      ;;
 
14052
 
 
14053
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14054
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14055
      if test "$GCC" = yes; then
 
14056
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14057
      else
 
14058
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14059
      fi
 
14060
      runpath_var='LD_RUN_PATH'
 
14061
      hardcode_shlibpath_var_F77=no
 
14062
      ;;
 
14063
 
 
14064
    sysv5*)
 
14065
      no_undefined_flag_F77=' -z text'
 
14066
      # $CC -shared without GNU ld will not create a library from C++
 
14067
      # object files and a static libstdc++, better avoid it by now
 
14068
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14069
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14070
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14071
      hardcode_libdir_flag_spec_F77=
 
14072
      hardcode_shlibpath_var_F77=no
 
14073
      runpath_var='LD_RUN_PATH'
 
14074
      ;;
 
14075
 
 
14076
    uts4*)
 
14077
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14078
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14079
      hardcode_shlibpath_var_F77=no
 
14080
      ;;
 
14081
 
 
14082
    *)
 
14083
      ld_shlibs_F77=no
 
14084
      ;;
 
14085
    esac
 
14086
  fi
 
14087
 
 
14088
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14089
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14090
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14091
 
 
14092
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14093
if test "$GCC" = yes; then
 
14094
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14095
fi
 
14096
 
 
14097
#
 
14098
# Do we need to explicitly link libc?
 
14099
#
 
14100
case "x$archive_cmds_need_lc_F77" in
 
14101
x|xyes)
 
14102
  # Assume -lc should be added
 
14103
  archive_cmds_need_lc_F77=yes
 
14104
 
 
14105
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14106
    case $archive_cmds_F77 in
 
14107
    *'~'*)
 
14108
      # FIXME: we may have to deal with multi-command sequences.
 
14109
      ;;
 
14110
    '$CC '*)
 
14111
      # Test whether the compiler implicitly links with -lc since on some
 
14112
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14113
      # to ld, don't add -lc before -lgcc.
 
14114
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14115
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14116
      $rm conftest*
 
14117
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14118
 
 
14119
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14120
  (eval $ac_compile) 2>&5
 
14121
  ac_status=$?
 
14122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14123
  (exit $ac_status); } 2>conftest.err; then
 
14124
        soname=conftest
 
14125
        lib=conftest
 
14126
        libobjs=conftest.$ac_objext
 
14127
        deplibs=
 
14128
        wl=$lt_prog_compiler_wl_F77
 
14129
        compiler_flags=-v
 
14130
        linker_flags=-v
 
14131
        verstring=
 
14132
        output_objdir=.
 
14133
        libname=conftest
 
14134
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14135
        allow_undefined_flag_F77=
 
14136
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14137
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14138
  ac_status=$?
 
14139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14140
  (exit $ac_status); }
 
14141
        then
 
14142
          archive_cmds_need_lc_F77=no
 
14143
        else
 
14144
          archive_cmds_need_lc_F77=yes
 
14145
        fi
 
14146
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14147
      else
 
14148
        cat conftest.err 1>&5
 
14149
      fi
 
14150
      $rm conftest*
 
14151
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14152
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14153
      ;;
 
14154
    esac
 
14155
  fi
 
14156
  ;;
 
14157
esac
 
14158
 
 
14159
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14160
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14161
library_names_spec=
 
14162
libname_spec='lib$name'
 
14163
soname_spec=
 
14164
shrext_cmds=".so"
 
14165
postinstall_cmds=
 
14166
postuninstall_cmds=
 
14167
finish_cmds=
 
14168
finish_eval=
 
14169
shlibpath_var=
 
14170
shlibpath_overrides_runpath=unknown
 
14171
version_type=none
 
14172
dynamic_linker="$host_os ld.so"
 
14173
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14174
if test "$GCC" = yes; then
 
14175
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14176
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14177
    # if the path contains ";" then we assume it to be the separator
 
14178
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14179
    # assumed that no part of a normal pathname contains ";" but that should
 
14180
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14181
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14182
  else
 
14183
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14184
  fi
 
14185
else
 
14186
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14187
fi
 
14188
need_lib_prefix=unknown
 
14189
hardcode_into_libs=no
 
14190
 
 
14191
# when you set need_version to no, make sure it does not cause -set_version
 
14192
# flags to be left without arguments
 
14193
need_version=unknown
 
14194
 
 
14195
case $host_os in
 
14196
aix3*)
 
14197
  version_type=linux
 
14198
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14199
  shlibpath_var=LIBPATH
 
14200
 
 
14201
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14202
  soname_spec='${libname}${release}${shared_ext}$major'
 
14203
  ;;
 
14204
 
 
14205
aix4* | aix5*)
 
14206
  version_type=linux
 
14207
  need_lib_prefix=no
 
14208
  need_version=no
 
14209
  hardcode_into_libs=yes
 
14210
  if test "$host_cpu" = ia64; then
 
14211
    # AIX 5 supports IA64
 
14212
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14213
    shlibpath_var=LD_LIBRARY_PATH
 
14214
  else
 
14215
    # With GCC up to 2.95.x, collect2 would create an import file
 
14216
    # for dependence libraries.  The import file would start with
 
14217
    # the line `#! .'.  This would cause the generated library to
 
14218
    # depend on `.', always an invalid library.  This was fixed in
 
14219
    # development snapshots of GCC prior to 3.0.
 
14220
    case $host_os in
 
14221
      aix4 | aix4.[01] | aix4.[01].*)
 
14222
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14223
           echo ' yes '
 
14224
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14225
        :
 
14226
      else
 
14227
        can_build_shared=no
 
14228
      fi
 
14229
      ;;
 
14230
    esac
 
14231
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14232
    # soname into executable. Probably we can add versioning support to
 
14233
    # collect2, so additional links can be useful in future.
 
14234
    if test "$aix_use_runtimelinking" = yes; then
 
14235
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14236
      # instead of lib<name>.a to let people know that these are not
 
14237
      # typical AIX shared libraries.
 
14238
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14239
    else
 
14240
      # We preserve .a as extension for shared libraries through AIX4.2
 
14241
      # and later when we are not doing run time linking.
 
14242
      library_names_spec='${libname}${release}.a $libname.a'
 
14243
      soname_spec='${libname}${release}${shared_ext}$major'
 
14244
    fi
 
14245
    shlibpath_var=LIBPATH
 
14246
  fi
 
14247
  ;;
 
14248
 
 
14249
amigaos*)
 
14250
  library_names_spec='$libname.ixlibrary $libname.a'
 
14251
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14252
  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'
 
14253
  ;;
 
14254
 
 
14255
beos*)
 
14256
  library_names_spec='${libname}${shared_ext}'
 
14257
  dynamic_linker="$host_os ld.so"
 
14258
  shlibpath_var=LIBRARY_PATH
 
14259
  ;;
 
14260
 
 
14261
bsdi[45]*)
 
14262
  version_type=linux
 
14263
  need_version=no
 
14264
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14265
  soname_spec='${libname}${release}${shared_ext}$major'
 
14266
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14267
  shlibpath_var=LD_LIBRARY_PATH
 
14268
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14269
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14270
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14271
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14272
  # libtool to hard-code these into programs
 
14273
  ;;
 
14274
 
 
14275
cygwin* | mingw* | pw32*)
 
14276
  version_type=windows
 
14277
  shrext_cmds=".dll"
 
14278
  need_version=no
 
14279
  need_lib_prefix=no
 
14280
 
 
14281
  case $GCC,$host_os in
 
14282
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14283
    library_names_spec='$libname.dll.a'
 
14284
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14285
    postinstall_cmds='base_file=`basename \${file}`~
 
14286
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14287
      dldir=$destdir/`dirname \$dlpath`~
 
14288
      test -d \$dldir || mkdir -p \$dldir~
 
14289
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14290
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14291
      dlpath=$dir/\$dldll~
 
14292
       $rm \$dlpath'
 
14293
    shlibpath_overrides_runpath=yes
 
14294
 
 
14295
    case $host_os in
 
14296
    cygwin*)
 
14297
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14298
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14299
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14300
      ;;
 
14301
    mingw*)
 
14302
      # MinGW DLLs use traditional 'lib' prefix
 
14303
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14304
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14305
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14306
        # It is most probably a Windows format PATH printed by
 
14307
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14308
        # path with ; separators, and with drive letters. We can handle the
 
14309
        # drive letters (cygwin fileutils understands them), so leave them,
 
14310
        # especially as we might pass files found there to a mingw objdump,
 
14311
        # which wouldn't understand a cygwinified path. Ahh.
 
14312
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14313
      else
 
14314
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14315
      fi
 
14316
      ;;
 
14317
    pw32*)
 
14318
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14319
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14320
      ;;
 
14321
    esac
 
14322
    ;;
 
14323
 
 
14324
  *)
 
14325
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14326
    ;;
 
14327
  esac
 
14328
  dynamic_linker='Win32 ld.exe'
 
14329
  # FIXME: first we should search . and the directory the executable is in
 
14330
  shlibpath_var=PATH
 
14331
  ;;
 
14332
 
 
14333
darwin* | rhapsody*)
 
14334
  dynamic_linker="$host_os dyld"
 
14335
  version_type=darwin
 
14336
  need_lib_prefix=no
 
14337
  need_version=no
 
14338
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14339
  soname_spec='${libname}${release}${major}$shared_ext'
 
14340
  shlibpath_overrides_runpath=yes
 
14341
  shlibpath_var=DYLD_LIBRARY_PATH
 
14342
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14343
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14344
  if test "$GCC" = yes; then
 
14345
    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"`
 
14346
  else
 
14347
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14348
  fi
 
14349
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14350
  ;;
 
14351
 
 
14352
dgux*)
 
14353
  version_type=linux
 
14354
  need_lib_prefix=no
 
14355
  need_version=no
 
14356
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14357
  soname_spec='${libname}${release}${shared_ext}$major'
 
14358
  shlibpath_var=LD_LIBRARY_PATH
 
14359
  ;;
 
14360
 
 
14361
freebsd1*)
 
14362
  dynamic_linker=no
 
14363
  ;;
 
14364
 
 
14365
kfreebsd*-gnu)
 
14366
  version_type=linux
 
14367
  need_lib_prefix=no
 
14368
  need_version=no
 
14369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14370
  soname_spec='${libname}${release}${shared_ext}$major'
 
14371
  shlibpath_var=LD_LIBRARY_PATH
 
14372
  shlibpath_overrides_runpath=no
 
14373
  hardcode_into_libs=yes
 
14374
  dynamic_linker='GNU ld.so'
 
14375
  ;;
 
14376
 
 
14377
freebsd* | dragonfly*)
 
14378
  # DragonFly does not have aout.  When/if they implement a new
 
14379
  # versioning mechanism, adjust this.
 
14380
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14381
  version_type=freebsd-$objformat
 
14382
  case $version_type in
 
14383
    freebsd-elf*)
 
14384
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14385
      need_version=no
 
14386
      need_lib_prefix=no
 
14387
      ;;
 
14388
    freebsd-*)
 
14389
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14390
      need_version=yes
 
14391
      ;;
 
14392
  esac
 
14393
  shlibpath_var=LD_LIBRARY_PATH
 
14394
  case $host_os in
 
14395
  freebsd2*)
 
14396
    shlibpath_overrides_runpath=yes
 
14397
    ;;
 
14398
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14399
    shlibpath_overrides_runpath=yes
 
14400
    hardcode_into_libs=yes
 
14401
    ;;
 
14402
  *) # from 3.2 on
 
14403
    shlibpath_overrides_runpath=no
 
14404
    hardcode_into_libs=yes
 
14405
    ;;
 
14406
  esac
 
14407
  ;;
 
14408
 
 
14409
gnu*)
 
14410
  version_type=linux
 
14411
  need_lib_prefix=no
 
14412
  need_version=no
 
14413
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14414
  soname_spec='${libname}${release}${shared_ext}$major'
 
14415
  shlibpath_var=LD_LIBRARY_PATH
 
14416
  hardcode_into_libs=yes
 
14417
  ;;
 
14418
 
 
14419
hpux9* | hpux10* | hpux11*)
 
14420
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14421
  # link against other versions.
 
14422
  version_type=sunos
 
14423
  need_lib_prefix=no
 
14424
  need_version=no
 
14425
  case "$host_cpu" in
 
14426
  ia64*)
 
14427
    shrext_cmds='.so'
 
14428
    hardcode_into_libs=yes
 
14429
    dynamic_linker="$host_os dld.so"
 
14430
    shlibpath_var=LD_LIBRARY_PATH
 
14431
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14432
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14433
    soname_spec='${libname}${release}${shared_ext}$major'
 
14434
    if test "X$HPUX_IA64_MODE" = X32; then
 
14435
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14436
    else
 
14437
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14438
    fi
 
14439
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14440
    ;;
 
14441
   hppa*64*)
 
14442
     shrext_cmds='.sl'
 
14443
     hardcode_into_libs=yes
 
14444
     dynamic_linker="$host_os dld.sl"
 
14445
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14446
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14447
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14448
     soname_spec='${libname}${release}${shared_ext}$major'
 
14449
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14450
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14451
     ;;
 
14452
   *)
 
14453
    shrext_cmds='.sl'
 
14454
    dynamic_linker="$host_os dld.sl"
 
14455
    shlibpath_var=SHLIB_PATH
 
14456
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14457
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14458
    soname_spec='${libname}${release}${shared_ext}$major'
 
14459
    ;;
 
14460
  esac
 
14461
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14462
  postinstall_cmds='chmod 555 $lib'
 
14463
  ;;
 
14464
 
 
14465
irix5* | irix6* | nonstopux*)
 
14466
  case $host_os in
 
14467
    nonstopux*) version_type=nonstopux ;;
 
14468
    *)
 
14469
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14470
                version_type=linux
 
14471
        else
 
14472
                version_type=irix
 
14473
        fi ;;
 
14474
  esac
 
14475
  need_lib_prefix=no
 
14476
  need_version=no
 
14477
  soname_spec='${libname}${release}${shared_ext}$major'
 
14478
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14479
  case $host_os in
 
14480
  irix5* | nonstopux*)
 
14481
    libsuff= shlibsuff=
 
14482
    ;;
 
14483
  *)
 
14484
    case $LD in # libtool.m4 will add one of these switches to LD
 
14485
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14486
      libsuff= shlibsuff= libmagic=32-bit;;
 
14487
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14488
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14489
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14490
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14491
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14492
    esac
 
14493
    ;;
 
14494
  esac
 
14495
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14496
  shlibpath_overrides_runpath=no
 
14497
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14498
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14499
  hardcode_into_libs=yes
 
14500
  ;;
 
14501
 
 
14502
# No shared lib support for Linux oldld, aout, or coff.
 
14503
linux*oldld* | linux*aout* | linux*coff*)
 
14504
  dynamic_linker=no
 
14505
  ;;
 
14506
 
 
14507
# This must be Linux ELF.
 
14508
linux*)
 
14509
  version_type=linux
 
14510
  need_lib_prefix=no
 
14511
  need_version=no
 
14512
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14513
  soname_spec='${libname}${release}${shared_ext}$major'
 
14514
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14515
  shlibpath_var=LD_LIBRARY_PATH
 
14516
  shlibpath_overrides_runpath=no
 
14517
  # This implies no fast_install, which is unacceptable.
 
14518
  # Some rework will be needed to allow for fast_install
 
14519
  # before this can be enabled.
 
14520
  hardcode_into_libs=yes
 
14521
 
 
14522
  # Append ld.so.conf contents to the search path
 
14523
  if test -f /etc/ld.so.conf; then
 
14524
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14525
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14526
  fi
 
14527
 
 
14528
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14529
  # powerpc, because MkLinux only supported shared libraries with the
 
14530
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14531
  # most powerpc-linux boxes support dynamic linking these days and
 
14532
  # people can always --disable-shared, the test was removed, and we
 
14533
  # assume the GNU/Linux dynamic linker is in use.
 
14534
  dynamic_linker='GNU/Linux ld.so'
 
14535
  ;;
 
14536
 
 
14537
knetbsd*-gnu)
 
14538
  version_type=linux
 
14539
  need_lib_prefix=no
 
14540
  need_version=no
 
14541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14542
  soname_spec='${libname}${release}${shared_ext}$major'
 
14543
  shlibpath_var=LD_LIBRARY_PATH
 
14544
  shlibpath_overrides_runpath=no
 
14545
  hardcode_into_libs=yes
 
14546
  dynamic_linker='GNU ld.so'
 
14547
  ;;
 
14548
 
 
14549
netbsd*)
 
14550
  version_type=sunos
 
14551
  need_lib_prefix=no
 
14552
  need_version=no
 
14553
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14554
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14555
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14556
    dynamic_linker='NetBSD (a.out) ld.so'
 
14557
  else
 
14558
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14559
    soname_spec='${libname}${release}${shared_ext}$major'
 
14560
    dynamic_linker='NetBSD ld.elf_so'
 
14561
  fi
 
14562
  shlibpath_var=LD_LIBRARY_PATH
 
14563
  shlibpath_overrides_runpath=yes
 
14564
  hardcode_into_libs=yes
 
14565
  ;;
 
14566
 
 
14567
newsos6)
 
14568
  version_type=linux
 
14569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14570
  shlibpath_var=LD_LIBRARY_PATH
 
14571
  shlibpath_overrides_runpath=yes
 
14572
  ;;
 
14573
 
 
14574
nto-qnx*)
 
14575
  version_type=linux
 
14576
  need_lib_prefix=no
 
14577
  need_version=no
 
14578
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14579
  soname_spec='${libname}${release}${shared_ext}$major'
 
14580
  shlibpath_var=LD_LIBRARY_PATH
 
14581
  shlibpath_overrides_runpath=yes
 
14582
  ;;
 
14583
 
 
14584
openbsd*)
 
14585
  version_type=sunos
 
14586
  need_lib_prefix=no
 
14587
  need_version=no
 
14588
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14589
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14590
  shlibpath_var=LD_LIBRARY_PATH
 
14591
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14592
    case $host_os in
 
14593
      openbsd2.[89] | openbsd2.[89].*)
 
14594
        shlibpath_overrides_runpath=no
 
14595
        ;;
 
14596
      *)
 
14597
        shlibpath_overrides_runpath=yes
 
14598
        ;;
 
14599
      esac
 
14600
  else
 
14601
    shlibpath_overrides_runpath=yes
 
14602
  fi
 
14603
  ;;
 
14604
 
 
14605
os2*)
 
14606
  libname_spec='$name'
 
14607
  shrext_cmds=".dll"
 
14608
  need_lib_prefix=no
 
14609
  library_names_spec='$libname${shared_ext} $libname.a'
 
14610
  dynamic_linker='OS/2 ld.exe'
 
14611
  shlibpath_var=LIBPATH
 
14612
  ;;
 
14613
 
 
14614
osf3* | osf4* | osf5*)
 
14615
  version_type=osf
 
14616
  need_lib_prefix=no
 
14617
  need_version=no
 
14618
  soname_spec='${libname}${release}${shared_ext}$major'
 
14619
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14620
  shlibpath_var=LD_LIBRARY_PATH
 
14621
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14622
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14623
  ;;
 
14624
 
 
14625
sco3.2v5*)
 
14626
  version_type=osf
 
14627
  soname_spec='${libname}${release}${shared_ext}$major'
 
14628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14629
  shlibpath_var=LD_LIBRARY_PATH
 
14630
  ;;
 
14631
 
 
14632
solaris*)
 
14633
  version_type=linux
 
14634
  need_lib_prefix=no
 
14635
  need_version=no
 
14636
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14637
  soname_spec='${libname}${release}${shared_ext}$major'
 
14638
  shlibpath_var=LD_LIBRARY_PATH
 
14639
  shlibpath_overrides_runpath=yes
 
14640
  hardcode_into_libs=yes
 
14641
  # ldd complains unless libraries are executable
 
14642
  postinstall_cmds='chmod +x $lib'
 
14643
  ;;
 
14644
 
 
14645
sunos4*)
 
14646
  version_type=sunos
 
14647
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14648
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14649
  shlibpath_var=LD_LIBRARY_PATH
 
14650
  shlibpath_overrides_runpath=yes
 
14651
  if test "$with_gnu_ld" = yes; then
 
14652
    need_lib_prefix=no
 
14653
  fi
 
14654
  need_version=yes
 
14655
  ;;
 
14656
 
 
14657
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14658
  version_type=linux
 
14659
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14660
  soname_spec='${libname}${release}${shared_ext}$major'
 
14661
  shlibpath_var=LD_LIBRARY_PATH
 
14662
  case $host_vendor in
 
14663
    sni)
 
14664
      shlibpath_overrides_runpath=no
 
14665
      need_lib_prefix=no
 
14666
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14667
      runpath_var=LD_RUN_PATH
 
14668
      ;;
 
14669
    siemens)
 
14670
      need_lib_prefix=no
 
14671
      ;;
 
14672
    motorola)
 
14673
      need_lib_prefix=no
 
14674
      need_version=no
 
14675
      shlibpath_overrides_runpath=no
 
14676
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14677
      ;;
 
14678
  esac
 
14679
  ;;
 
14680
 
 
14681
sysv4*MP*)
 
14682
  if test -d /usr/nec ;then
 
14683
    version_type=linux
 
14684
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14685
    soname_spec='$libname${shared_ext}.$major'
 
14686
    shlibpath_var=LD_LIBRARY_PATH
 
14687
  fi
 
14688
  ;;
 
14689
 
 
14690
uts4*)
 
14691
  version_type=linux
 
14692
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14693
  soname_spec='${libname}${release}${shared_ext}$major'
 
14694
  shlibpath_var=LD_LIBRARY_PATH
 
14695
  ;;
 
14696
 
 
14697
*)
 
14698
  dynamic_linker=no
 
14699
  ;;
 
14700
esac
 
14701
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14702
echo "${ECHO_T}$dynamic_linker" >&6
 
14703
test "$dynamic_linker" = no && can_build_shared=no
 
14704
 
 
14705
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14706
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14707
hardcode_action_F77=
 
14708
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14709
   test -n "$runpath_var_F77" || \
 
14710
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
14711
 
 
14712
  # We can hardcode non-existant directories.
 
14713
  if test "$hardcode_direct_F77" != no &&
 
14714
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14715
     # have to relink, otherwise we might link with an installed library
 
14716
     # when we should be linking with a yet-to-be-installed one
 
14717
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
14718
     test "$hardcode_minus_L_F77" != no; then
 
14719
    # Linking always hardcodes the temporary library directory.
 
14720
    hardcode_action_F77=relink
 
14721
  else
 
14722
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14723
    hardcode_action_F77=immediate
 
14724
  fi
 
14725
else
 
14726
  # We cannot hardcode anything, or else we can only hardcode existing
 
14727
  # directories.
 
14728
  hardcode_action_F77=unsupported
 
14729
fi
 
14730
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
14731
echo "${ECHO_T}$hardcode_action_F77" >&6
 
14732
 
 
14733
if test "$hardcode_action_F77" = relink; then
 
14734
  # Fast installation is not supported
 
14735
  enable_fast_install=no
 
14736
elif test "$shlibpath_overrides_runpath" = yes ||
 
14737
     test "$enable_shared" = no; then
 
14738
  # Fast installation is not necessary
 
14739
  enable_fast_install=needless
 
14740
fi
 
14741
 
 
14742
striplib=
 
14743
old_striplib=
 
14744
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14745
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14746
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14747
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14748
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14749
  echo "$as_me:$LINENO: result: yes" >&5
 
14750
echo "${ECHO_T}yes" >&6
 
14751
else
 
14752
# FIXME - insert some real tests, host_os isn't really good enough
 
14753
  case $host_os in
 
14754
   darwin*)
 
14755
       if test -n "$STRIP" ; then
 
14756
         striplib="$STRIP -x"
 
14757
         echo "$as_me:$LINENO: result: yes" >&5
 
14758
echo "${ECHO_T}yes" >&6
 
14759
       else
 
14760
  echo "$as_me:$LINENO: result: no" >&5
 
14761
echo "${ECHO_T}no" >&6
 
14762
fi
 
14763
       ;;
 
14764
   *)
 
14765
  echo "$as_me:$LINENO: result: no" >&5
 
14766
echo "${ECHO_T}no" >&6
 
14767
    ;;
 
14768
  esac
 
14769
fi
 
14770
 
 
14771
 
 
14772
 
 
14773
# The else clause should only fire when bootstrapping the
 
14774
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14775
# with your package, and you will get complaints that there are
 
14776
# no rules to generate ltmain.sh.
 
14777
if test -f "$ltmain"; then
 
14778
  # See if we are running on zsh, and set the options which allow our commands through
 
14779
  # without removal of \ escapes.
 
14780
  if test -n "${ZSH_VERSION+set}" ; then
 
14781
    setopt NO_GLOB_SUBST
 
14782
  fi
 
14783
  # Now quote all the things that may contain metacharacters while being
 
14784
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14785
  # variables and quote the copies for generation of the libtool script.
 
14786
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
14787
    SED SHELL STRIP \
 
14788
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14789
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14790
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14791
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14792
    lt_cv_sys_global_symbol_to_c_name_address \
 
14793
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14794
    old_postinstall_cmds old_postuninstall_cmds \
 
14795
    compiler_F77 \
 
14796
    CC_F77 \
 
14797
    LD_F77 \
 
14798
    lt_prog_compiler_wl_F77 \
 
14799
    lt_prog_compiler_pic_F77 \
 
14800
    lt_prog_compiler_static_F77 \
 
14801
    lt_prog_compiler_no_builtin_flag_F77 \
 
14802
    export_dynamic_flag_spec_F77 \
 
14803
    thread_safe_flag_spec_F77 \
 
14804
    whole_archive_flag_spec_F77 \
 
14805
    enable_shared_with_static_runtimes_F77 \
 
14806
    old_archive_cmds_F77 \
 
14807
    old_archive_from_new_cmds_F77 \
 
14808
    predep_objects_F77 \
 
14809
    postdep_objects_F77 \
 
14810
    predeps_F77 \
 
14811
    postdeps_F77 \
 
14812
    compiler_lib_search_path_F77 \
 
14813
    archive_cmds_F77 \
 
14814
    archive_expsym_cmds_F77 \
 
14815
    postinstall_cmds_F77 \
 
14816
    postuninstall_cmds_F77 \
 
14817
    old_archive_from_expsyms_cmds_F77 \
 
14818
    allow_undefined_flag_F77 \
 
14819
    no_undefined_flag_F77 \
 
14820
    export_symbols_cmds_F77 \
 
14821
    hardcode_libdir_flag_spec_F77 \
 
14822
    hardcode_libdir_flag_spec_ld_F77 \
 
14823
    hardcode_libdir_separator_F77 \
 
14824
    hardcode_automatic_F77 \
 
14825
    module_cmds_F77 \
 
14826
    module_expsym_cmds_F77 \
 
14827
    lt_cv_prog_compiler_c_o_F77 \
 
14828
    exclude_expsyms_F77 \
 
14829
    include_expsyms_F77; do
 
14830
 
 
14831
    case $var in
 
14832
    old_archive_cmds_F77 | \
 
14833
    old_archive_from_new_cmds_F77 | \
 
14834
    archive_cmds_F77 | \
 
14835
    archive_expsym_cmds_F77 | \
 
14836
    module_cmds_F77 | \
 
14837
    module_expsym_cmds_F77 | \
 
14838
    old_archive_from_expsyms_cmds_F77 | \
 
14839
    export_symbols_cmds_F77 | \
 
14840
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14841
    postinstall_cmds | postuninstall_cmds | \
 
14842
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14843
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14844
      # Double-quote double-evaled strings.
 
14845
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14846
      ;;
 
14847
    *)
 
14848
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14849
      ;;
 
14850
    esac
 
14851
  done
 
14852
 
 
14853
  case $lt_echo in
 
14854
  *'\$0 --fallback-echo"')
 
14855
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14856
    ;;
 
14857
  esac
 
14858
 
 
14859
cfgfile="$ofile"
 
14860
 
 
14861
  cat <<__EOF__ >> "$cfgfile"
 
14862
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14863
 
 
14864
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14865
 
 
14866
# Shell to use when invoking shell scripts.
 
14867
SHELL=$lt_SHELL
 
14868
 
 
14869
# Whether or not to build shared libraries.
 
14870
build_libtool_libs=$enable_shared
 
14871
 
 
14872
# Whether or not to build static libraries.
 
14873
build_old_libs=$enable_static
 
14874
 
 
14875
# Whether or not to add -lc for building shared libraries.
 
14876
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
14877
 
 
14878
# Whether or not to disallow shared libs when runtime libs are static
 
14879
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
14880
 
 
14881
# Whether or not to optimize for fast installation.
 
14882
fast_install=$enable_fast_install
 
14883
 
 
14884
# The host system.
 
14885
host_alias=$host_alias
 
14886
host=$host
 
14887
host_os=$host_os
 
14888
 
 
14889
# The build system.
 
14890
build_alias=$build_alias
 
14891
build=$build
 
14892
build_os=$build_os
 
14893
 
 
14894
# An echo program that does not interpret backslashes.
 
14895
echo=$lt_echo
 
14896
 
 
14897
# The archiver.
 
14898
AR=$lt_AR
 
14899
AR_FLAGS=$lt_AR_FLAGS
 
14900
 
 
14901
# A C compiler.
 
14902
LTCC=$lt_LTCC
 
14903
 
 
14904
# A language-specific compiler.
 
14905
CC=$lt_compiler_F77
 
14906
 
 
14907
# Is the compiler the GNU C compiler?
 
14908
with_gcc=$GCC_F77
 
14909
 
 
14910
# An ERE matcher.
 
14911
EGREP=$lt_EGREP
 
14912
 
 
14913
# The linker used to build libraries.
 
14914
LD=$lt_LD_F77
 
14915
 
 
14916
# Whether we need hard or soft links.
 
14917
LN_S=$lt_LN_S
 
14918
 
 
14919
# A BSD-compatible nm program.
 
14920
NM=$lt_NM
 
14921
 
 
14922
# A symbol stripping program
 
14923
STRIP=$lt_STRIP
 
14924
 
 
14925
# Used to examine libraries when file_magic_cmd begins "file"
 
14926
MAGIC_CMD=$MAGIC_CMD
 
14927
 
 
14928
# Used on cygwin: DLL creation program.
 
14929
DLLTOOL="$DLLTOOL"
 
14930
 
 
14931
# Used on cygwin: object dumper.
 
14932
OBJDUMP="$OBJDUMP"
 
14933
 
 
14934
# Used on cygwin: assembler.
 
14935
AS="$AS"
 
14936
 
 
14937
# The name of the directory that contains temporary libtool files.
 
14938
objdir=$objdir
 
14939
 
 
14940
# How to create reloadable object files.
 
14941
reload_flag=$lt_reload_flag
 
14942
reload_cmds=$lt_reload_cmds
 
14943
 
 
14944
# How to pass a linker flag through the compiler.
 
14945
wl=$lt_lt_prog_compiler_wl_F77
 
14946
 
 
14947
# Object file suffix (normally "o").
 
14948
objext="$ac_objext"
 
14949
 
 
14950
# Old archive suffix (normally "a").
 
14951
libext="$libext"
 
14952
 
 
14953
# Shared library suffix (normally ".so").
 
14954
shrext_cmds='$shrext_cmds'
 
14955
 
 
14956
# Executable file suffix (normally "").
 
14957
exeext="$exeext"
 
14958
 
 
14959
# Additional compiler flags for building library objects.
 
14960
pic_flag=$lt_lt_prog_compiler_pic_F77
 
14961
pic_mode=$pic_mode
 
14962
 
 
14963
# What is the maximum length of a command?
 
14964
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14965
 
 
14966
# Does compiler simultaneously support -c and -o options?
 
14967
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
14968
 
 
14969
# Must we lock files when doing compilation ?
 
14970
need_locks=$lt_need_locks
 
14971
 
 
14972
# Do we need the lib prefix for modules?
 
14973
need_lib_prefix=$need_lib_prefix
 
14974
 
 
14975
# Do we need a version for libraries?
 
14976
need_version=$need_version
 
14977
 
 
14978
# Whether dlopen is supported.
 
14979
dlopen_support=$enable_dlopen
 
14980
 
 
14981
# Whether dlopen of programs is supported.
 
14982
dlopen_self=$enable_dlopen_self
 
14983
 
 
14984
# Whether dlopen of statically linked programs is supported.
 
14985
dlopen_self_static=$enable_dlopen_self_static
 
14986
 
 
14987
# Compiler flag to prevent dynamic linking.
 
14988
link_static_flag=$lt_lt_prog_compiler_static_F77
 
14989
 
 
14990
# Compiler flag to turn off builtin functions.
 
14991
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
14992
 
 
14993
# Compiler flag to allow reflexive dlopens.
 
14994
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
14995
 
 
14996
# Compiler flag to generate shared objects directly from archives.
 
14997
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
14998
 
 
14999
# Compiler flag to generate thread-safe objects.
 
15000
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15001
 
 
15002
# Library versioning type.
 
15003
version_type=$version_type
 
15004
 
 
15005
# Format of library name prefix.
 
15006
libname_spec=$lt_libname_spec
 
15007
 
 
15008
# List of archive names.  First name is the real one, the rest are links.
 
15009
# The last name is the one that the linker finds with -lNAME.
 
15010
library_names_spec=$lt_library_names_spec
 
15011
 
 
15012
# The coded name of the library, if different from the real name.
 
15013
soname_spec=$lt_soname_spec
 
15014
 
 
15015
# Commands used to build and install an old-style archive.
 
15016
RANLIB=$lt_RANLIB
 
15017
old_archive_cmds=$lt_old_archive_cmds_F77
 
15018
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15019
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15020
 
 
15021
# Create an old-style archive from a shared archive.
 
15022
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15023
 
 
15024
# Create a temporary old-style archive to link instead of a shared archive.
 
15025
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15026
 
 
15027
# Commands used to build and install a shared archive.
 
15028
archive_cmds=$lt_archive_cmds_F77
 
15029
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15030
postinstall_cmds=$lt_postinstall_cmds
 
15031
postuninstall_cmds=$lt_postuninstall_cmds
 
15032
 
 
15033
# Commands used to build a loadable module (assumed same as above if empty)
 
15034
module_cmds=$lt_module_cmds_F77
 
15035
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15036
 
 
15037
# Commands to strip libraries.
 
15038
old_striplib=$lt_old_striplib
 
15039
striplib=$lt_striplib
 
15040
 
 
15041
# Dependencies to place before the objects being linked to create a
 
15042
# shared library.
 
15043
predep_objects=$lt_predep_objects_F77
 
15044
 
 
15045
# Dependencies to place after the objects being linked to create a
 
15046
# shared library.
 
15047
postdep_objects=$lt_postdep_objects_F77
 
15048
 
 
15049
# Dependencies to place before the objects being linked to create a
 
15050
# shared library.
 
15051
predeps=$lt_predeps_F77
 
15052
 
 
15053
# Dependencies to place after the objects being linked to create a
 
15054
# shared library.
 
15055
postdeps=$lt_postdeps_F77
 
15056
 
 
15057
# The library search path used internally by the compiler when linking
 
15058
# a shared library.
 
15059
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15060
 
 
15061
# Method to check whether dependent libraries are shared objects.
 
15062
deplibs_check_method=$lt_deplibs_check_method
 
15063
 
 
15064
# Command to use when deplibs_check_method == file_magic.
 
15065
file_magic_cmd=$lt_file_magic_cmd
 
15066
 
 
15067
# Flag that allows shared libraries with undefined symbols to be built.
 
15068
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15069
 
 
15070
# Flag that forces no undefined symbols.
 
15071
no_undefined_flag=$lt_no_undefined_flag_F77
 
15072
 
 
15073
# Commands used to finish a libtool library installation in a directory.
 
15074
finish_cmds=$lt_finish_cmds
 
15075
 
 
15076
# Same as above, but a single script fragment to be evaled but not shown.
 
15077
finish_eval=$lt_finish_eval
 
15078
 
 
15079
# Take the output of nm and produce a listing of raw symbols and C names.
 
15080
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15081
 
 
15082
# Transform the output of nm in a proper C declaration
 
15083
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15084
 
 
15085
# Transform the output of nm in a C name address pair
 
15086
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15087
 
 
15088
# This is the shared library runtime path variable.
 
15089
runpath_var=$runpath_var
 
15090
 
 
15091
# This is the shared library path variable.
 
15092
shlibpath_var=$shlibpath_var
 
15093
 
 
15094
# Is shlibpath searched before the hard-coded library search path?
 
15095
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15096
 
 
15097
# How to hardcode a shared library path into an executable.
 
15098
hardcode_action=$hardcode_action_F77
 
15099
 
 
15100
# Whether we should hardcode library paths into libraries.
 
15101
hardcode_into_libs=$hardcode_into_libs
 
15102
 
 
15103
# Flag to hardcode \$libdir into a binary during linking.
 
15104
# This must work even if \$libdir does not exist.
 
15105
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15106
 
 
15107
# If ld is used when linking, flag to hardcode \$libdir into
 
15108
# a binary during linking. This must work even if \$libdir does
 
15109
# not exist.
 
15110
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15111
 
 
15112
# Whether we need a single -rpath flag with a separated argument.
 
15113
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15114
 
 
15115
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15116
# resulting binary.
 
15117
hardcode_direct=$hardcode_direct_F77
 
15118
 
 
15119
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15120
# resulting binary.
 
15121
hardcode_minus_L=$hardcode_minus_L_F77
 
15122
 
 
15123
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15124
# the resulting binary.
 
15125
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15126
 
 
15127
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15128
# and all subsequent libraries and executables linked against it.
 
15129
hardcode_automatic=$hardcode_automatic_F77
 
15130
 
 
15131
# Variables whose values should be saved in libtool wrapper scripts and
 
15132
# restored at relink time.
 
15133
variables_saved_for_relink="$variables_saved_for_relink"
 
15134
 
 
15135
# Whether libtool must link a program against all its dependency libraries.
 
15136
link_all_deplibs=$link_all_deplibs_F77
 
15137
 
 
15138
# Compile-time system search path for libraries
 
15139
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15140
 
 
15141
# Run-time system search path for libraries
 
15142
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15143
 
 
15144
# Fix the shell variable \$srcfile for the compiler.
 
15145
fix_srcfile_path="$fix_srcfile_path_F77"
 
15146
 
 
15147
# Set to yes if exported symbols are required.
 
15148
always_export_symbols=$always_export_symbols_F77
 
15149
 
 
15150
# The commands to list exported symbols.
 
15151
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15152
 
 
15153
# The commands to extract the exported symbol list from a shared archive.
 
15154
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15155
 
 
15156
# Symbols that should not be listed in the preloaded symbols.
 
15157
exclude_expsyms=$lt_exclude_expsyms_F77
 
15158
 
 
15159
# Symbols that must always be exported.
 
15160
include_expsyms=$lt_include_expsyms_F77
 
15161
 
 
15162
# ### END LIBTOOL TAG CONFIG: $tagname
 
15163
 
 
15164
__EOF__
 
15165
 
 
15166
 
 
15167
else
 
15168
  # If there is no Makefile yet, we rely on a make rule to execute
 
15169
  # `config.status --recheck' to rerun these tests and create the
 
15170
  # libtool script then.
 
15171
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15172
  if test -f "$ltmain_in"; then
 
15173
    test -f Makefile && make "$ltmain"
 
15174
  fi
 
15175
fi
 
15176
 
 
15177
 
 
15178
ac_ext=c
 
15179
ac_cpp='$CPP $CPPFLAGS'
 
15180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15183
 
 
15184
CC="$lt_save_CC"
 
15185
 
 
15186
        else
 
15187
          tagname=""
 
15188
        fi
 
15189
        ;;
 
15190
 
 
15191
      GCJ)
 
15192
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15193
 
 
15194
 
 
15195
 
 
15196
# Source file extension for Java test sources.
 
15197
ac_ext=java
 
15198
 
 
15199
# Object file extension for compiled Java test sources.
 
15200
objext=o
 
15201
objext_GCJ=$objext
 
15202
 
 
15203
# Code to be used in simple compile tests
 
15204
lt_simple_compile_test_code="class foo {}\n"
 
15205
 
 
15206
# Code to be used in simple link tests
 
15207
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15208
 
 
15209
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15210
 
 
15211
# If no C compiler was specified, use CC.
 
15212
LTCC=${LTCC-"$CC"}
 
15213
 
 
15214
# Allow CC to be a program name with arguments.
 
15215
compiler=$CC
 
15216
 
 
15217
 
 
15218
# Allow CC to be a program name with arguments.
 
15219
lt_save_CC="$CC"
 
15220
CC=${GCJ-"gcj"}
 
15221
compiler=$CC
 
15222
compiler_GCJ=$CC
 
15223
 
 
15224
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15225
archive_cmds_need_lc_GCJ=no
 
15226
 
 
15227
## CAVEAT EMPTOR:
 
15228
## There is no encapsulation within the following macros, do not change
 
15229
## the running order or otherwise move them around unless you know exactly
 
15230
## what you are doing...
 
15231
 
 
15232
lt_prog_compiler_no_builtin_flag_GCJ=
 
15233
 
 
15234
if test "$GCC" = yes; then
 
15235
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15236
 
 
15237
 
 
15238
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15239
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15240
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15242
else
 
15243
  lt_cv_prog_compiler_rtti_exceptions=no
 
15244
  ac_outfile=conftest.$ac_objext
 
15245
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15246
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15247
   # Insert the option either (1) after the last *FLAGS variable, or
 
15248
   # (2) before a word containing "conftest.", or (3) at the end.
 
15249
   # Note that $ac_compile itself does not contain backslashes and begins
 
15250
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15251
   # The option is referenced via a variable to avoid confusing sed.
 
15252
   lt_compile=`echo "$ac_compile" | $SED \
 
15253
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15254
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15255
   -e 's:$: $lt_compiler_flag:'`
 
15256
   (eval echo "\"\$as_me:15256: $lt_compile\"" >&5)
 
15257
   (eval "$lt_compile" 2>conftest.err)
 
15258
   ac_status=$?
 
15259
   cat conftest.err >&5
 
15260
   echo "$as_me:15260: \$? = $ac_status" >&5
 
15261
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15262
     # The compiler can only warn and ignore the option if not recognized
 
15263
     # So say no if there are warnings
 
15264
     if test ! -s conftest.err; then
 
15265
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15266
     fi
 
15267
   fi
 
15268
   $rm conftest*
 
15269
 
 
15270
fi
 
15271
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15272
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15273
 
 
15274
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15275
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15276
else
 
15277
    :
 
15278
fi
 
15279
 
 
15280
fi
 
15281
 
 
15282
lt_prog_compiler_wl_GCJ=
 
15283
lt_prog_compiler_pic_GCJ=
 
15284
lt_prog_compiler_static_GCJ=
 
15285
 
 
15286
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15287
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15288
 
 
15289
  if test "$GCC" = yes; then
 
15290
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15291
    lt_prog_compiler_static_GCJ='-static'
 
15292
 
 
15293
    case $host_os in
 
15294
      aix*)
 
15295
      # All AIX code is PIC.
 
15296
      if test "$host_cpu" = ia64; then
 
15297
        # AIX 5 now supports IA64 processor
 
15298
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15299
      fi
 
15300
      ;;
 
15301
 
 
15302
    amigaos*)
 
15303
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15304
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15305
      # like `-m68040'.
 
15306
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15307
      ;;
 
15308
 
 
15309
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15310
      # PIC is the default for these OSes.
 
15311
      ;;
 
15312
 
 
15313
    mingw* | pw32* | os2*)
 
15314
      # This hack is so that the source file can tell whether it is being
 
15315
      # built for inclusion in a dll (and should export symbols for example).
 
15316
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15317
      ;;
 
15318
 
 
15319
    darwin* | rhapsody*)
 
15320
      # PIC is the default on this platform
 
15321
      # Common symbols not allowed in MH_DYLIB files
 
15322
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15323
      ;;
 
15324
 
 
15325
    msdosdjgpp*)
 
15326
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15327
      # on systems that don't support them.
 
15328
      lt_prog_compiler_can_build_shared_GCJ=no
 
15329
      enable_shared=no
 
15330
      ;;
 
15331
 
 
15332
    sysv4*MP*)
 
15333
      if test -d /usr/nec; then
 
15334
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15335
      fi
 
15336
      ;;
 
15337
 
 
15338
    hpux*)
 
15339
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15340
      # not for PA HP-UX.
 
15341
      case "$host_cpu" in
 
15342
      hppa*64*|ia64*)
 
15343
        # +Z the default
 
15344
        ;;
 
15345
      *)
 
15346
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15347
        ;;
 
15348
      esac
 
15349
      ;;
 
15350
 
 
15351
    *)
 
15352
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15353
      ;;
 
15354
    esac
 
15355
  else
 
15356
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15357
    case $host_os in
 
15358
    aix*)
 
15359
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15360
      if test "$host_cpu" = ia64; then
 
15361
        # AIX 5 now supports IA64 processor
 
15362
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15363
      else
 
15364
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15365
      fi
 
15366
      ;;
 
15367
      darwin*)
 
15368
        # PIC is the default on this platform
 
15369
        # Common symbols not allowed in MH_DYLIB files
 
15370
       case "$cc_basename" in
 
15371
         xlc*)
 
15372
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15373
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15374
         ;;
 
15375
       esac
 
15376
       ;;
 
15377
 
 
15378
    mingw* | pw32* | os2*)
 
15379
      # This hack is so that the source file can tell whether it is being
 
15380
      # built for inclusion in a dll (and should export symbols for example).
 
15381
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15382
      ;;
 
15383
 
 
15384
    hpux9* | hpux10* | hpux11*)
 
15385
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15386
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15387
      # not for PA HP-UX.
 
15388
      case "$host_cpu" in
 
15389
      hppa*64*|ia64*)
 
15390
        # +Z the default
 
15391
        ;;
 
15392
      *)
 
15393
        lt_prog_compiler_pic_GCJ='+Z'
 
15394
        ;;
 
15395
      esac
 
15396
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15397
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15398
      ;;
 
15399
 
 
15400
    irix5* | irix6* | nonstopux*)
 
15401
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15402
      # PIC (with -KPIC) is the default.
 
15403
      lt_prog_compiler_static_GCJ='-non_shared'
 
15404
      ;;
 
15405
 
 
15406
    newsos6)
 
15407
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15408
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15409
      ;;
 
15410
 
 
15411
    linux*)
 
15412
      case $cc_basename in
 
15413
      icc* | ecc*)
 
15414
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15415
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15416
        lt_prog_compiler_static_GCJ='-static'
 
15417
        ;;
 
15418
      pgcc | pgf77 | pgf90)
 
15419
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15420
        # which looks to be a dead project)
 
15421
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15422
        lt_prog_compiler_pic_GCJ='-fpic'
 
15423
        lt_prog_compiler_static_GCJ='-static'
 
15424
        ;;
 
15425
      ccc*)
 
15426
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15427
        # All Alpha code is PIC.
 
15428
        lt_prog_compiler_static_GCJ='-non_shared'
 
15429
        ;;
 
15430
      esac
 
15431
      ;;
 
15432
 
 
15433
    osf3* | osf4* | osf5*)
 
15434
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15435
      # All OSF/1 code is PIC.
 
15436
      lt_prog_compiler_static_GCJ='-non_shared'
 
15437
      ;;
 
15438
 
 
15439
    sco3.2v5*)
 
15440
      lt_prog_compiler_pic_GCJ='-Kpic'
 
15441
      lt_prog_compiler_static_GCJ='-dn'
 
15442
      ;;
 
15443
 
 
15444
    solaris*)
 
15445
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15446
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15447
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15448
      ;;
 
15449
 
 
15450
    sunos4*)
 
15451
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15452
      lt_prog_compiler_pic_GCJ='-PIC'
 
15453
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15454
      ;;
 
15455
 
 
15456
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15457
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15458
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15459
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15460
      ;;
 
15461
 
 
15462
    sysv4*MP*)
 
15463
      if test -d /usr/nec ;then
 
15464
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15465
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15466
      fi
 
15467
      ;;
 
15468
 
 
15469
    unicos*)
 
15470
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15471
      lt_prog_compiler_can_build_shared_GCJ=no
 
15472
      ;;
 
15473
 
 
15474
    uts4*)
 
15475
      lt_prog_compiler_pic_GCJ='-pic'
 
15476
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15477
      ;;
 
15478
 
 
15479
    *)
 
15480
      lt_prog_compiler_can_build_shared_GCJ=no
 
15481
      ;;
 
15482
    esac
 
15483
  fi
 
15484
 
 
15485
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15486
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15487
 
 
15488
#
 
15489
# Check to make sure the PIC flag actually works.
 
15490
#
 
15491
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15492
 
 
15493
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15494
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15495
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15497
else
 
15498
  lt_prog_compiler_pic_works_GCJ=no
 
15499
  ac_outfile=conftest.$ac_objext
 
15500
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15501
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15502
   # Insert the option either (1) after the last *FLAGS variable, or
 
15503
   # (2) before a word containing "conftest.", or (3) at the end.
 
15504
   # Note that $ac_compile itself does not contain backslashes and begins
 
15505
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15506
   # The option is referenced via a variable to avoid confusing sed.
 
15507
   lt_compile=`echo "$ac_compile" | $SED \
 
15508
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15509
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15510
   -e 's:$: $lt_compiler_flag:'`
 
15511
   (eval echo "\"\$as_me:15511: $lt_compile\"" >&5)
 
15512
   (eval "$lt_compile" 2>conftest.err)
 
15513
   ac_status=$?
 
15514
   cat conftest.err >&5
 
15515
   echo "$as_me:15515: \$? = $ac_status" >&5
 
15516
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15517
     # The compiler can only warn and ignore the option if not recognized
 
15518
     # So say no if there are warnings
 
15519
     if test ! -s conftest.err; then
 
15520
       lt_prog_compiler_pic_works_GCJ=yes
 
15521
     fi
 
15522
   fi
 
15523
   $rm conftest*
 
15524
 
 
15525
fi
 
15526
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15527
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15528
 
 
15529
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15530
    case $lt_prog_compiler_pic_GCJ in
 
15531
     "" | " "*) ;;
 
15532
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15533
     esac
 
15534
else
 
15535
    lt_prog_compiler_pic_GCJ=
 
15536
     lt_prog_compiler_can_build_shared_GCJ=no
 
15537
fi
 
15538
 
 
15539
fi
 
15540
case "$host_os" in
 
15541
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15542
  *djgpp*)
 
15543
    lt_prog_compiler_pic_GCJ=
 
15544
    ;;
 
15545
  *)
 
15546
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15547
    ;;
 
15548
esac
 
15549
 
 
15550
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15551
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15552
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15554
else
 
15555
  lt_cv_prog_compiler_c_o_GCJ=no
 
15556
   $rm -r conftest 2>/dev/null
 
15557
   mkdir conftest
 
15558
   cd conftest
 
15559
   mkdir out
 
15560
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15561
 
 
15562
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15563
   # Insert the option either (1) after the last *FLAGS variable, or
 
15564
   # (2) before a word containing "conftest.", or (3) at the end.
 
15565
   # Note that $ac_compile itself does not contain backslashes and begins
 
15566
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15567
   lt_compile=`echo "$ac_compile" | $SED \
 
15568
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15569
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15570
   -e 's:$: $lt_compiler_flag:'`
 
15571
   (eval echo "\"\$as_me:15571: $lt_compile\"" >&5)
 
15572
   (eval "$lt_compile" 2>out/conftest.err)
 
15573
   ac_status=$?
 
15574
   cat out/conftest.err >&5
 
15575
   echo "$as_me:15575: \$? = $ac_status" >&5
 
15576
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15577
   then
 
15578
     # The compiler can only warn and ignore the option if not recognized
 
15579
     # So say no if there are warnings
 
15580
     if test ! -s out/conftest.err; then
 
15581
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15582
     fi
 
15583
   fi
 
15584
   chmod u+w .
 
15585
   $rm conftest*
 
15586
   # SGI C++ compiler will create directory out/ii_files/ for
 
15587
   # template instantiation
 
15588
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15589
   $rm out/* && rmdir out
 
15590
   cd ..
 
15591
   rmdir conftest
 
15592
   $rm conftest*
 
15593
 
 
15594
fi
 
15595
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15596
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15597
 
 
15598
 
 
15599
hard_links="nottested"
 
15600
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15601
  # do not overwrite the value of need_locks provided by the user
 
15602
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15603
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15604
  hard_links=yes
 
15605
  $rm conftest*
 
15606
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15607
  touch conftest.a
 
15608
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15609
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15610
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15611
echo "${ECHO_T}$hard_links" >&6
 
15612
  if test "$hard_links" = no; then
 
15613
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15614
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15615
    need_locks=warn
 
15616
  fi
 
15617
else
 
15618
  need_locks=no
 
15619
fi
 
15620
 
 
15621
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15622
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15623
 
 
15624
  runpath_var=
 
15625
  allow_undefined_flag_GCJ=
 
15626
  enable_shared_with_static_runtimes_GCJ=no
 
15627
  archive_cmds_GCJ=
 
15628
  archive_expsym_cmds_GCJ=
 
15629
  old_archive_From_new_cmds_GCJ=
 
15630
  old_archive_from_expsyms_cmds_GCJ=
 
15631
  export_dynamic_flag_spec_GCJ=
 
15632
  whole_archive_flag_spec_GCJ=
 
15633
  thread_safe_flag_spec_GCJ=
 
15634
  hardcode_libdir_flag_spec_GCJ=
 
15635
  hardcode_libdir_flag_spec_ld_GCJ=
 
15636
  hardcode_libdir_separator_GCJ=
 
15637
  hardcode_direct_GCJ=no
 
15638
  hardcode_minus_L_GCJ=no
 
15639
  hardcode_shlibpath_var_GCJ=unsupported
 
15640
  link_all_deplibs_GCJ=unknown
 
15641
  hardcode_automatic_GCJ=no
 
15642
  module_cmds_GCJ=
 
15643
  module_expsym_cmds_GCJ=
 
15644
  always_export_symbols_GCJ=no
 
15645
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15646
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15647
  # included in the symbol list
 
15648
  include_expsyms_GCJ=
 
15649
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15650
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15651
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15652
  # as well as any symbol that contains `d'.
 
15653
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15654
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15655
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15656
  # the symbol is explicitly referenced.  Since portable code cannot
 
15657
  # rely on this symbol name, it's probably fine to never include it in
 
15658
  # preloaded symbol tables.
 
15659
  extract_expsyms_cmds=
 
15660
 
 
15661
  case $host_os in
 
15662
  cygwin* | mingw* | pw32*)
 
15663
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15664
    # When not using gcc, we currently assume that we are using
 
15665
    # Microsoft Visual C++.
 
15666
    if test "$GCC" != yes; then
 
15667
      with_gnu_ld=no
 
15668
    fi
 
15669
    ;;
 
15670
  openbsd*)
 
15671
    with_gnu_ld=no
 
15672
    ;;
 
15673
  esac
 
15674
 
 
15675
  ld_shlibs_GCJ=yes
 
15676
  if test "$with_gnu_ld" = yes; then
 
15677
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15678
    wlarc='${wl}'
 
15679
 
 
15680
    # See if GNU ld supports shared libraries.
 
15681
    case $host_os in
 
15682
    aix3* | aix4* | aix5*)
 
15683
      # On AIX/PPC, the GNU linker is very broken
 
15684
      if test "$host_cpu" != ia64; then
 
15685
        ld_shlibs_GCJ=no
 
15686
        cat <<EOF 1>&2
 
15687
 
 
15688
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15689
*** to be unable to reliably create shared libraries on AIX.
 
15690
*** Therefore, libtool is disabling shared libraries support.  If you
 
15691
*** really care for shared libraries, you may want to modify your PATH
 
15692
*** so that a non-GNU linker is found, and then restart.
 
15693
 
 
15694
EOF
 
15695
      fi
 
15696
      ;;
 
15697
 
 
15698
    amigaos*)
 
15699
      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)'
 
15700
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15701
      hardcode_minus_L_GCJ=yes
 
15702
 
 
15703
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15704
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15705
      # to version 4, is to share data among multiple programs linked
 
15706
      # with the same dynamic library.  Since this doesn't match the
 
15707
      # behavior of shared libraries on other platforms, we can't use
 
15708
      # them.
 
15709
      ld_shlibs_GCJ=no
 
15710
      ;;
 
15711
 
 
15712
    beos*)
 
15713
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15714
        allow_undefined_flag_GCJ=unsupported
 
15715
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15716
        # support --undefined.  This deserves some investigation.  FIXME
 
15717
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15718
      else
 
15719
        ld_shlibs_GCJ=no
 
15720
      fi
 
15721
      ;;
 
15722
 
 
15723
    cygwin* | mingw* | pw32*)
 
15724
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
15725
      # as there is no search path for DLLs.
 
15726
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15727
      allow_undefined_flag_GCJ=unsupported
 
15728
      always_export_symbols_GCJ=no
 
15729
      enable_shared_with_static_runtimes_GCJ=yes
 
15730
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15731
 
 
15732
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15733
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15734
        # If the export-symbols file already is a .def file (1st line
 
15735
        # is EXPORTS), use it as is; otherwise, prepend...
 
15736
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15737
          cp $export_symbols $output_objdir/$soname.def;
 
15738
        else
 
15739
          echo EXPORTS > $output_objdir/$soname.def;
 
15740
          cat $export_symbols >> $output_objdir/$soname.def;
 
15741
        fi~
 
15742
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15743
      else
 
15744
        ld_shlibs_GCJ=no
 
15745
      fi
 
15746
      ;;
 
15747
 
 
15748
    netbsd*)
 
15749
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15750
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15751
        wlarc=
 
15752
      else
 
15753
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15754
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15755
      fi
 
15756
      ;;
 
15757
 
 
15758
    solaris* | sysv5*)
 
15759
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15760
        ld_shlibs_GCJ=no
 
15761
        cat <<EOF 1>&2
 
15762
 
 
15763
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15764
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15765
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15766
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15767
*** your PATH or compiler configuration so that the native linker is
 
15768
*** used, and then restart.
 
15769
 
 
15770
EOF
 
15771
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15772
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15773
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15774
      else
 
15775
        ld_shlibs_GCJ=no
 
15776
      fi
 
15777
      ;;
 
15778
 
 
15779
    sunos4*)
 
15780
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15781
      wlarc=
 
15782
      hardcode_direct_GCJ=yes
 
15783
      hardcode_shlibpath_var_GCJ=no
 
15784
      ;;
 
15785
 
 
15786
  linux*)
 
15787
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15788
      tmp_addflag=
 
15789
      case $CC,$host_cpu in
 
15790
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
 
15791
        tmp_addflag=' -fpic' ;;
 
15792
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
 
15793
        tmp_addflag=' -i_dynamic' ;;
 
15794
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
 
15795
        tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15796
      ifc* | ifort*)                    # Intel Fortran compiler
 
15797
        tmp_addflag=' -nofor_main' ;;
 
15798
      esac
 
15799
      archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15800
      supports_anon_versioning=no
 
15801
      case `$LD -v 2>/dev/null` in
 
15802
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15803
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15804
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15805
        *\ 2.11.*) ;; # other 2.11 versions
 
15806
        *) supports_anon_versioning=yes ;;
 
15807
      esac
 
15808
      if test $supports_anon_versioning = yes; then
 
15809
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
15810
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15811
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
15812
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15813
      else
 
15814
        archive_expsym_cmds_GCJ=$archive_cmds_GCJ
 
15815
      fi
 
15816
    else
 
15817
      ld_shlibs_GCJ=no
 
15818
    fi
 
15819
    ;;
 
15820
 
 
15821
    *)
 
15822
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15823
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15824
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15825
      else
 
15826
        ld_shlibs_GCJ=no
 
15827
      fi
 
15828
      ;;
 
15829
    esac
 
15830
 
 
15831
    if test "$ld_shlibs_GCJ" = yes; then
 
15832
      runpath_var=LD_RUN_PATH
 
15833
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
15834
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
15835
      # ancient GNU ld didn't support --whole-archive et. al.
 
15836
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15837
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15838
      else
 
15839
        whole_archive_flag_spec_GCJ=
 
15840
      fi
 
15841
    fi
 
15842
  else
 
15843
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15844
    case $host_os in
 
15845
    aix3*)
 
15846
      allow_undefined_flag_GCJ=unsupported
 
15847
      always_export_symbols_GCJ=yes
 
15848
      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'
 
15849
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15850
      # are no directories specified by -L.
 
15851
      hardcode_minus_L_GCJ=yes
 
15852
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15853
        # Neither direct hardcoding nor static linking is supported with a
 
15854
        # broken collect2.
 
15855
        hardcode_direct_GCJ=unsupported
 
15856
      fi
 
15857
      ;;
 
15858
 
 
15859
    aix4* | aix5*)
 
15860
      if test "$host_cpu" = ia64; then
 
15861
        # On IA64, the linker does run time linking by default, so we don't
 
15862
        # have to do anything special.
 
15863
        aix_use_runtimelinking=no
 
15864
        exp_sym_flag='-Bexport'
 
15865
        no_entry_flag=""
 
15866
      else
 
15867
        # If we're using GNU nm, then we don't want the "-C" option.
 
15868
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15869
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15870
          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'
 
15871
        else
 
15872
          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'
 
15873
        fi
 
15874
        aix_use_runtimelinking=no
 
15875
 
 
15876
        # Test if we are trying to use run time linking or normal
 
15877
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15878
        # need to do runtime linking.
 
15879
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15880
          for ld_flag in $LDFLAGS; do
 
15881
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15882
            aix_use_runtimelinking=yes
 
15883
            break
 
15884
          fi
 
15885
          done
 
15886
        esac
 
15887
 
 
15888
        exp_sym_flag='-bexport'
 
15889
        no_entry_flag='-bnoentry'
 
15890
      fi
 
15891
 
 
15892
      # When large executables or shared objects are built, AIX ld can
 
15893
      # have problems creating the table of contents.  If linking a library
 
15894
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15895
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15896
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15897
 
 
15898
      archive_cmds_GCJ=''
 
15899
      hardcode_direct_GCJ=yes
 
15900
      hardcode_libdir_separator_GCJ=':'
 
15901
      link_all_deplibs_GCJ=yes
 
15902
 
 
15903
      if test "$GCC" = yes; then
 
15904
        case $host_os in aix4.[012]|aix4.[012].*)
 
15905
        # We only want to do this on AIX 4.2 and lower, the check
 
15906
        # below for broken collect2 doesn't work under 4.3+
 
15907
          collect2name=`${CC} -print-prog-name=collect2`
 
15908
          if test -f "$collect2name" && \
 
15909
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15910
          then
 
15911
          # We have reworked collect2
 
15912
          hardcode_direct_GCJ=yes
 
15913
          else
 
15914
          # We have old collect2
 
15915
          hardcode_direct_GCJ=unsupported
 
15916
          # It fails to find uninstalled libraries when the uninstalled
 
15917
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15918
          # to unsupported forces relinking
 
15919
          hardcode_minus_L_GCJ=yes
 
15920
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15921
          hardcode_libdir_separator_GCJ=
 
15922
          fi
 
15923
        esac
 
15924
        shared_flag='-shared'
 
15925
        if test "$aix_use_runtimelinking" = yes; then
 
15926
          shared_flag="$shared_flag "'${wl}-G'
 
15927
        fi
 
15928
      else
 
15929
        # not using gcc
 
15930
        if test "$host_cpu" = ia64; then
 
15931
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15932
        # chokes on -Wl,-G. The following line is correct:
 
15933
          shared_flag='-G'
 
15934
        else
 
15935
        if test "$aix_use_runtimelinking" = yes; then
 
15936
            shared_flag='${wl}-G'
 
15937
          else
 
15938
            shared_flag='${wl}-bM:SRE'
 
15939
        fi
 
15940
        fi
 
15941
      fi
 
15942
 
 
15943
      # It seems that -bexpall does not export symbols beginning with
 
15944
      # underscore (_), so it is better to generate a list of symbols to export.
 
15945
      always_export_symbols_GCJ=yes
 
15946
      if test "$aix_use_runtimelinking" = yes; then
 
15947
        # Warning - without using the other runtime loading flags (-brtl),
 
15948
        # -berok will link without error, but may produce a broken library.
 
15949
        allow_undefined_flag_GCJ='-berok'
 
15950
       # Determine the default libpath from the value encoded in an empty executable.
 
15951
       cat >conftest.$ac_ext <<_ACEOF
 
15952
/* confdefs.h.  */
 
15953
_ACEOF
 
15954
cat confdefs.h >>conftest.$ac_ext
 
15955
cat >>conftest.$ac_ext <<_ACEOF
 
15956
/* end confdefs.h.  */
 
15957
 
 
15958
int
 
15959
main ()
 
15960
{
 
15961
 
 
15962
  ;
 
15963
  return 0;
 
15964
}
 
15965
_ACEOF
 
15966
rm -f conftest.$ac_objext conftest$ac_exeext
 
15967
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15968
  (eval $ac_link) 2>conftest.er1
 
15969
  ac_status=$?
 
15970
  grep -v '^ *+' conftest.er1 >conftest.err
 
15971
  rm -f conftest.er1
 
15972
  cat conftest.err >&5
 
15973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15974
  (exit $ac_status); } &&
 
15975
         { ac_try='test -z "$ac_c_werror_flag"
 
15976
                         || test ! -s conftest.err'
 
15977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15978
  (eval $ac_try) 2>&5
 
15979
  ac_status=$?
 
15980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15981
  (exit $ac_status); }; } &&
 
15982
         { ac_try='test -s conftest$ac_exeext'
 
15983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15984
  (eval $ac_try) 2>&5
 
15985
  ac_status=$?
 
15986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15987
  (exit $ac_status); }; }; then
 
15988
 
 
15989
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15990
}'`
 
15991
# Check for a 64-bit object if we didn't find anything.
 
15992
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; }
 
15993
}'`; fi
 
15994
else
 
15995
  echo "$as_me: failed program was:" >&5
 
15996
sed 's/^/| /' conftest.$ac_ext >&5
 
15997
 
 
15998
fi
 
15999
rm -f conftest.err conftest.$ac_objext \
 
16000
      conftest$ac_exeext conftest.$ac_ext
 
16001
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16002
 
 
16003
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16004
        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"
 
16005
       else
 
16006
        if test "$host_cpu" = ia64; then
 
16007
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16008
          allow_undefined_flag_GCJ="-z nodefs"
 
16009
          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"
 
16010
        else
 
16011
         # Determine the default libpath from the value encoded in an empty executable.
 
16012
         cat >conftest.$ac_ext <<_ACEOF
 
16013
/* confdefs.h.  */
 
16014
_ACEOF
 
16015
cat confdefs.h >>conftest.$ac_ext
 
16016
cat >>conftest.$ac_ext <<_ACEOF
 
16017
/* end confdefs.h.  */
 
16018
 
 
16019
int
 
16020
main ()
 
16021
{
 
16022
 
 
16023
  ;
 
16024
  return 0;
 
16025
}
 
16026
_ACEOF
 
16027
rm -f conftest.$ac_objext conftest$ac_exeext
 
16028
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16029
  (eval $ac_link) 2>conftest.er1
 
16030
  ac_status=$?
 
16031
  grep -v '^ *+' conftest.er1 >conftest.err
 
16032
  rm -f conftest.er1
 
16033
  cat conftest.err >&5
 
16034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16035
  (exit $ac_status); } &&
 
16036
         { ac_try='test -z "$ac_c_werror_flag"
 
16037
                         || test ! -s conftest.err'
 
16038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16039
  (eval $ac_try) 2>&5
 
16040
  ac_status=$?
 
16041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16042
  (exit $ac_status); }; } &&
 
16043
         { ac_try='test -s conftest$ac_exeext'
 
16044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16045
  (eval $ac_try) 2>&5
 
16046
  ac_status=$?
 
16047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16048
  (exit $ac_status); }; }; then
 
16049
 
 
16050
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16051
}'`
 
16052
# Check for a 64-bit object if we didn't find anything.
 
16053
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; }
 
16054
}'`; fi
 
16055
else
 
16056
  echo "$as_me: failed program was:" >&5
 
16057
sed 's/^/| /' conftest.$ac_ext >&5
 
16058
 
 
16059
fi
 
16060
rm -f conftest.err conftest.$ac_objext \
 
16061
      conftest$ac_exeext conftest.$ac_ext
 
16062
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16063
 
 
16064
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16065
          # Warning - without using the other run time loading flags,
 
16066
          # -berok will link without error, but may produce a broken library.
 
16067
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16068
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16069
          # -bexpall does not export symbols beginning with underscore (_)
 
16070
          always_export_symbols_GCJ=yes
 
16071
          # Exported symbols can be pulled into shared objects from archives
 
16072
          whole_archive_flag_spec_GCJ=' '
 
16073
          archive_cmds_need_lc_GCJ=yes
 
16074
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16075
          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'
 
16076
        fi
 
16077
      fi
 
16078
      ;;
 
16079
 
 
16080
    amigaos*)
 
16081
      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)'
 
16082
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16083
      hardcode_minus_L_GCJ=yes
 
16084
      # see comment about different semantics on the GNU ld section
 
16085
      ld_shlibs_GCJ=no
 
16086
      ;;
 
16087
 
 
16088
    bsdi[45]*)
 
16089
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16090
      ;;
 
16091
 
 
16092
    cygwin* | mingw* | pw32*)
 
16093
      # When not using gcc, we currently assume that we are using
 
16094
      # Microsoft Visual C++.
 
16095
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16096
      # no search path for DLLs.
 
16097
      hardcode_libdir_flag_spec_GCJ=' '
 
16098
      allow_undefined_flag_GCJ=unsupported
 
16099
      # Tell ltmain to make .lib files, not .a files.
 
16100
      libext=lib
 
16101
      # Tell ltmain to make .dll files, not .so files.
 
16102
      shrext_cmds=".dll"
 
16103
      # FIXME: Setting linknames here is a bad hack.
 
16104
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16105
      # The linker will automatically build a .lib file if we build a DLL.
 
16106
      old_archive_From_new_cmds_GCJ='true'
 
16107
      # FIXME: Should let the user specify the lib program.
 
16108
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16109
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16110
      enable_shared_with_static_runtimes_GCJ=yes
 
16111
      ;;
 
16112
 
 
16113
    darwin* | rhapsody*)
 
16114
      case "$host_os" in
 
16115
        rhapsody* | darwin1.[012])
 
16116
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16117
         ;;
 
16118
       *) # Darwin 1.3 on
 
16119
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16120
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16121
         else
 
16122
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16123
             10.[012])
 
16124
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16125
               ;;
 
16126
             10.*)
 
16127
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16128
               ;;
 
16129
           esac
 
16130
         fi
 
16131
         ;;
 
16132
      esac
 
16133
      archive_cmds_need_lc_GCJ=no
 
16134
      hardcode_direct_GCJ=no
 
16135
      hardcode_automatic_GCJ=yes
 
16136
      hardcode_shlibpath_var_GCJ=unsupported
 
16137
      whole_archive_flag_spec_GCJ=''
 
16138
      link_all_deplibs_GCJ=yes
 
16139
    if test "$GCC" = yes ; then
 
16140
        output_verbose_link_cmd='echo'
 
16141
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16142
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16143
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16144
      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}'
 
16145
      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}'
 
16146
    else
 
16147
      case "$cc_basename" in
 
16148
        xlc*)
 
16149
         output_verbose_link_cmd='echo'
 
16150
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16151
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16152
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16153
         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}'
 
16154
          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}'
 
16155
          ;;
 
16156
       *)
 
16157
         ld_shlibs_GCJ=no
 
16158
          ;;
 
16159
      esac
 
16160
    fi
 
16161
      ;;
 
16162
 
 
16163
    dgux*)
 
16164
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16165
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16166
      hardcode_shlibpath_var_GCJ=no
 
16167
      ;;
 
16168
 
 
16169
    freebsd1*)
 
16170
      ld_shlibs_GCJ=no
 
16171
      ;;
 
16172
 
 
16173
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16174
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16175
    # does not break anything, and helps significantly (at the cost of a little
 
16176
    # extra space).
 
16177
    freebsd2.2*)
 
16178
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16179
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16180
      hardcode_direct_GCJ=yes
 
16181
      hardcode_shlibpath_var_GCJ=no
 
16182
      ;;
 
16183
 
 
16184
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16185
    freebsd2*)
 
16186
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16187
      hardcode_direct_GCJ=yes
 
16188
      hardcode_minus_L_GCJ=yes
 
16189
      hardcode_shlibpath_var_GCJ=no
 
16190
      ;;
 
16191
 
 
16192
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16193
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
16194
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16195
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16196
      hardcode_direct_GCJ=yes
 
16197
      hardcode_shlibpath_var_GCJ=no
 
16198
      ;;
 
16199
 
 
16200
    hpux9*)
 
16201
      if test "$GCC" = yes; then
 
16202
        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'
 
16203
      else
 
16204
        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'
 
16205
      fi
 
16206
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16207
      hardcode_libdir_separator_GCJ=:
 
16208
      hardcode_direct_GCJ=yes
 
16209
 
 
16210
      # hardcode_minus_L: Not really in the search PATH,
 
16211
      # but as the default location of the library.
 
16212
      hardcode_minus_L_GCJ=yes
 
16213
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16214
      ;;
 
16215
 
 
16216
    hpux10* | hpux11*)
 
16217
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16218
        case "$host_cpu" in
 
16219
        hppa*64*|ia64*)
 
16220
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16221
          ;;
 
16222
        *)
 
16223
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16224
          ;;
 
16225
        esac
 
16226
      else
 
16227
        case "$host_cpu" in
 
16228
        hppa*64*|ia64*)
 
16229
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16230
          ;;
 
16231
        *)
 
16232
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16233
          ;;
 
16234
        esac
 
16235
      fi
 
16236
      if test "$with_gnu_ld" = no; then
 
16237
        case "$host_cpu" in
 
16238
        hppa*64*)
 
16239
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16240
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16241
          hardcode_libdir_separator_GCJ=:
 
16242
          hardcode_direct_GCJ=no
 
16243
          hardcode_shlibpath_var_GCJ=no
 
16244
          ;;
 
16245
        ia64*)
 
16246
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16247
          hardcode_direct_GCJ=no
 
16248
          hardcode_shlibpath_var_GCJ=no
 
16249
 
 
16250
          # hardcode_minus_L: Not really in the search PATH,
 
16251
          # but as the default location of the library.
 
16252
          hardcode_minus_L_GCJ=yes
 
16253
          ;;
 
16254
        *)
 
16255
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16256
          hardcode_libdir_separator_GCJ=:
 
16257
          hardcode_direct_GCJ=yes
 
16258
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16259
 
 
16260
          # hardcode_minus_L: Not really in the search PATH,
 
16261
          # but as the default location of the library.
 
16262
          hardcode_minus_L_GCJ=yes
 
16263
          ;;
 
16264
        esac
 
16265
      fi
 
16266
      ;;
 
16267
 
 
16268
    irix5* | irix6* | nonstopux*)
 
16269
      if test "$GCC" = yes; then
 
16270
        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'
 
16271
      else
 
16272
        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'
 
16273
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16274
      fi
 
16275
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16276
      hardcode_libdir_separator_GCJ=:
 
16277
      link_all_deplibs_GCJ=yes
 
16278
      ;;
 
16279
 
 
16280
    netbsd*)
 
16281
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16282
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16283
      else
 
16284
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16285
      fi
 
16286
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16287
      hardcode_direct_GCJ=yes
 
16288
      hardcode_shlibpath_var_GCJ=no
 
16289
      ;;
 
16290
 
 
16291
    newsos6)
 
16292
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16293
      hardcode_direct_GCJ=yes
 
16294
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16295
      hardcode_libdir_separator_GCJ=:
 
16296
      hardcode_shlibpath_var_GCJ=no
 
16297
      ;;
 
16298
 
 
16299
    openbsd*)
 
16300
      hardcode_direct_GCJ=yes
 
16301
      hardcode_shlibpath_var_GCJ=no
 
16302
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16303
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16304
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16305
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16306
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16307
      else
 
16308
       case $host_os in
 
16309
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16310
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16311
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16312
           ;;
 
16313
         *)
 
16314
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16315
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16316
           ;;
 
16317
       esac
 
16318
      fi
 
16319
      ;;
 
16320
 
 
16321
    os2*)
 
16322
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16323
      hardcode_minus_L_GCJ=yes
 
16324
      allow_undefined_flag_GCJ=unsupported
 
16325
      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'
 
16326
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16327
      ;;
 
16328
 
 
16329
    osf3*)
 
16330
      if test "$GCC" = yes; then
 
16331
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16332
        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'
 
16333
      else
 
16334
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16335
        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'
 
16336
      fi
 
16337
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16338
      hardcode_libdir_separator_GCJ=:
 
16339
      ;;
 
16340
 
 
16341
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16342
      if test "$GCC" = yes; then
 
16343
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16344
        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'
 
16345
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16346
      else
 
16347
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16348
        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'
 
16349
        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~
 
16350
        $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'
 
16351
 
 
16352
        # Both c and cxx compiler support -rpath directly
 
16353
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16354
      fi
 
16355
      hardcode_libdir_separator_GCJ=:
 
16356
      ;;
 
16357
 
 
16358
    sco3.2v5*)
 
16359
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16360
      hardcode_shlibpath_var_GCJ=no
 
16361
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16362
      runpath_var=LD_RUN_PATH
 
16363
      hardcode_runpath_var=yes
 
16364
      ;;
 
16365
 
 
16366
    solaris*)
 
16367
      no_undefined_flag_GCJ=' -z text'
 
16368
      if test "$GCC" = yes; then
 
16369
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16370
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16371
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16372
      else
 
16373
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16374
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16375
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16376
      fi
 
16377
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16378
      hardcode_shlibpath_var_GCJ=no
 
16379
      case $host_os in
 
16380
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16381
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16382
        whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
 
16383
      esac
 
16384
      link_all_deplibs_GCJ=yes
 
16385
      ;;
 
16386
 
 
16387
    sunos4*)
 
16388
      if test "x$host_vendor" = xsequent; then
 
16389
        # Use $CC to link under sequent, because it throws in some extra .o
 
16390
        # files that make .init and .fini sections work.
 
16391
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16392
      else
 
16393
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16394
      fi
 
16395
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16396
      hardcode_direct_GCJ=yes
 
16397
      hardcode_minus_L_GCJ=yes
 
16398
      hardcode_shlibpath_var_GCJ=no
 
16399
      ;;
 
16400
 
 
16401
    sysv4)
 
16402
      case $host_vendor in
 
16403
        sni)
 
16404
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16405
          hardcode_direct_GCJ=yes # is this really true???
 
16406
        ;;
 
16407
        siemens)
 
16408
          ## LD is ld it makes a PLAMLIB
 
16409
          ## CC just makes a GrossModule.
 
16410
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16411
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16412
          hardcode_direct_GCJ=no
 
16413
        ;;
 
16414
        motorola)
 
16415
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16416
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16417
        ;;
 
16418
      esac
 
16419
      runpath_var='LD_RUN_PATH'
 
16420
      hardcode_shlibpath_var_GCJ=no
 
16421
      ;;
 
16422
 
 
16423
    sysv4.3*)
 
16424
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16425
      hardcode_shlibpath_var_GCJ=no
 
16426
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16427
      ;;
 
16428
 
 
16429
    sysv4*MP*)
 
16430
      if test -d /usr/nec; then
 
16431
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16432
        hardcode_shlibpath_var_GCJ=no
 
16433
        runpath_var=LD_RUN_PATH
 
16434
        hardcode_runpath_var=yes
 
16435
        ld_shlibs_GCJ=yes
 
16436
      fi
 
16437
      ;;
 
16438
 
 
16439
    sysv4.2uw2*)
 
16440
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16441
      hardcode_direct_GCJ=yes
 
16442
      hardcode_minus_L_GCJ=no
 
16443
      hardcode_shlibpath_var_GCJ=no
 
16444
      hardcode_runpath_var=yes
 
16445
      runpath_var=LD_RUN_PATH
 
16446
      ;;
 
16447
 
 
16448
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16449
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
16450
      if test "$GCC" = yes; then
 
16451
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16452
      else
 
16453
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16454
      fi
 
16455
      runpath_var='LD_RUN_PATH'
 
16456
      hardcode_shlibpath_var_GCJ=no
 
16457
      ;;
 
16458
 
 
16459
    sysv5*)
 
16460
      no_undefined_flag_GCJ=' -z text'
 
16461
      # $CC -shared without GNU ld will not create a library from C++
 
16462
      # object files and a static libstdc++, better avoid it by now
 
16463
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16464
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16465
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16466
      hardcode_libdir_flag_spec_GCJ=
 
16467
      hardcode_shlibpath_var_GCJ=no
 
16468
      runpath_var='LD_RUN_PATH'
 
16469
      ;;
 
16470
 
 
16471
    uts4*)
 
16472
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16473
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16474
      hardcode_shlibpath_var_GCJ=no
 
16475
      ;;
 
16476
 
 
16477
    *)
 
16478
      ld_shlibs_GCJ=no
 
16479
      ;;
 
16480
    esac
 
16481
  fi
 
16482
 
 
16483
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16484
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16485
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16486
 
 
16487
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16488
if test "$GCC" = yes; then
 
16489
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16490
fi
 
16491
 
 
16492
#
 
16493
# Do we need to explicitly link libc?
 
16494
#
 
16495
case "x$archive_cmds_need_lc_GCJ" in
 
16496
x|xyes)
 
16497
  # Assume -lc should be added
 
16498
  archive_cmds_need_lc_GCJ=yes
 
16499
 
 
16500
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16501
    case $archive_cmds_GCJ in
 
16502
    *'~'*)
 
16503
      # FIXME: we may have to deal with multi-command sequences.
 
16504
      ;;
 
16505
    '$CC '*)
 
16506
      # Test whether the compiler implicitly links with -lc since on some
 
16507
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16508
      # to ld, don't add -lc before -lgcc.
 
16509
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16510
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16511
      $rm conftest*
 
16512
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16513
 
 
16514
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16515
  (eval $ac_compile) 2>&5
 
16516
  ac_status=$?
 
16517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16518
  (exit $ac_status); } 2>conftest.err; then
 
16519
        soname=conftest
 
16520
        lib=conftest
 
16521
        libobjs=conftest.$ac_objext
 
16522
        deplibs=
 
16523
        wl=$lt_prog_compiler_wl_GCJ
 
16524
        compiler_flags=-v
 
16525
        linker_flags=-v
 
16526
        verstring=
 
16527
        output_objdir=.
 
16528
        libname=conftest
 
16529
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16530
        allow_undefined_flag_GCJ=
 
16531
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16532
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16533
  ac_status=$?
 
16534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16535
  (exit $ac_status); }
 
16536
        then
 
16537
          archive_cmds_need_lc_GCJ=no
 
16538
        else
 
16539
          archive_cmds_need_lc_GCJ=yes
 
16540
        fi
 
16541
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16542
      else
 
16543
        cat conftest.err 1>&5
 
16544
      fi
 
16545
      $rm conftest*
 
16546
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16547
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16548
      ;;
 
16549
    esac
 
16550
  fi
 
16551
  ;;
 
16552
esac
 
16553
 
 
16554
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16555
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16556
library_names_spec=
 
16557
libname_spec='lib$name'
 
16558
soname_spec=
 
16559
shrext_cmds=".so"
 
16560
postinstall_cmds=
 
16561
postuninstall_cmds=
 
16562
finish_cmds=
 
16563
finish_eval=
 
16564
shlibpath_var=
 
16565
shlibpath_overrides_runpath=unknown
 
16566
version_type=none
 
16567
dynamic_linker="$host_os ld.so"
 
16568
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16569
if test "$GCC" = yes; then
 
16570
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16571
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16572
    # if the path contains ";" then we assume it to be the separator
 
16573
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16574
    # assumed that no part of a normal pathname contains ";" but that should
 
16575
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16576
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16577
  else
 
16578
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16579
  fi
 
16580
else
 
16581
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16582
fi
 
16583
need_lib_prefix=unknown
 
16584
hardcode_into_libs=no
 
16585
 
 
16586
# when you set need_version to no, make sure it does not cause -set_version
 
16587
# flags to be left without arguments
 
16588
need_version=unknown
 
16589
 
 
16590
case $host_os in
 
16591
aix3*)
 
16592
  version_type=linux
 
16593
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16594
  shlibpath_var=LIBPATH
 
16595
 
 
16596
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16597
  soname_spec='${libname}${release}${shared_ext}$major'
 
16598
  ;;
 
16599
 
 
16600
aix4* | aix5*)
 
16601
  version_type=linux
 
16602
  need_lib_prefix=no
 
16603
  need_version=no
 
16604
  hardcode_into_libs=yes
 
16605
  if test "$host_cpu" = ia64; then
 
16606
    # AIX 5 supports IA64
 
16607
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16608
    shlibpath_var=LD_LIBRARY_PATH
 
16609
  else
 
16610
    # With GCC up to 2.95.x, collect2 would create an import file
 
16611
    # for dependence libraries.  The import file would start with
 
16612
    # the line `#! .'.  This would cause the generated library to
 
16613
    # depend on `.', always an invalid library.  This was fixed in
 
16614
    # development snapshots of GCC prior to 3.0.
 
16615
    case $host_os in
 
16616
      aix4 | aix4.[01] | aix4.[01].*)
 
16617
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16618
           echo ' yes '
 
16619
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16620
        :
 
16621
      else
 
16622
        can_build_shared=no
 
16623
      fi
 
16624
      ;;
 
16625
    esac
 
16626
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16627
    # soname into executable. Probably we can add versioning support to
 
16628
    # collect2, so additional links can be useful in future.
 
16629
    if test "$aix_use_runtimelinking" = yes; then
 
16630
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16631
      # instead of lib<name>.a to let people know that these are not
 
16632
      # typical AIX shared libraries.
 
16633
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16634
    else
 
16635
      # We preserve .a as extension for shared libraries through AIX4.2
 
16636
      # and later when we are not doing run time linking.
 
16637
      library_names_spec='${libname}${release}.a $libname.a'
 
16638
      soname_spec='${libname}${release}${shared_ext}$major'
 
16639
    fi
 
16640
    shlibpath_var=LIBPATH
 
16641
  fi
 
16642
  ;;
 
16643
 
 
16644
amigaos*)
 
16645
  library_names_spec='$libname.ixlibrary $libname.a'
 
16646
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16647
  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'
 
16648
  ;;
 
16649
 
 
16650
beos*)
 
16651
  library_names_spec='${libname}${shared_ext}'
 
16652
  dynamic_linker="$host_os ld.so"
 
16653
  shlibpath_var=LIBRARY_PATH
 
16654
  ;;
 
16655
 
 
16656
bsdi[45]*)
 
16657
  version_type=linux
 
16658
  need_version=no
 
16659
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16660
  soname_spec='${libname}${release}${shared_ext}$major'
 
16661
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16662
  shlibpath_var=LD_LIBRARY_PATH
 
16663
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16664
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16665
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16666
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16667
  # libtool to hard-code these into programs
 
16668
  ;;
 
16669
 
 
16670
cygwin* | mingw* | pw32*)
 
16671
  version_type=windows
 
16672
  shrext_cmds=".dll"
 
16673
  need_version=no
 
16674
  need_lib_prefix=no
 
16675
 
 
16676
  case $GCC,$host_os in
 
16677
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16678
    library_names_spec='$libname.dll.a'
 
16679
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16680
    postinstall_cmds='base_file=`basename \${file}`~
 
16681
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16682
      dldir=$destdir/`dirname \$dlpath`~
 
16683
      test -d \$dldir || mkdir -p \$dldir~
 
16684
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16685
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16686
      dlpath=$dir/\$dldll~
 
16687
       $rm \$dlpath'
 
16688
    shlibpath_overrides_runpath=yes
 
16689
 
 
16690
    case $host_os in
 
16691
    cygwin*)
 
16692
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16693
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16694
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16695
      ;;
 
16696
    mingw*)
 
16697
      # MinGW DLLs use traditional 'lib' prefix
 
16698
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16699
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16700
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16701
        # It is most probably a Windows format PATH printed by
 
16702
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16703
        # path with ; separators, and with drive letters. We can handle the
 
16704
        # drive letters (cygwin fileutils understands them), so leave them,
 
16705
        # especially as we might pass files found there to a mingw objdump,
 
16706
        # which wouldn't understand a cygwinified path. Ahh.
 
16707
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16708
      else
 
16709
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16710
      fi
 
16711
      ;;
 
16712
    pw32*)
 
16713
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16714
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16715
      ;;
 
16716
    esac
 
16717
    ;;
 
16718
 
 
16719
  *)
 
16720
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16721
    ;;
 
16722
  esac
 
16723
  dynamic_linker='Win32 ld.exe'
 
16724
  # FIXME: first we should search . and the directory the executable is in
 
16725
  shlibpath_var=PATH
 
16726
  ;;
 
16727
 
 
16728
darwin* | rhapsody*)
 
16729
  dynamic_linker="$host_os dyld"
 
16730
  version_type=darwin
 
16731
  need_lib_prefix=no
 
16732
  need_version=no
 
16733
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16734
  soname_spec='${libname}${release}${major}$shared_ext'
 
16735
  shlibpath_overrides_runpath=yes
 
16736
  shlibpath_var=DYLD_LIBRARY_PATH
 
16737
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16738
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16739
  if test "$GCC" = yes; then
 
16740
    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"`
 
16741
  else
 
16742
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16743
  fi
 
16744
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16745
  ;;
 
16746
 
 
16747
dgux*)
 
16748
  version_type=linux
 
16749
  need_lib_prefix=no
 
16750
  need_version=no
 
16751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16752
  soname_spec='${libname}${release}${shared_ext}$major'
 
16753
  shlibpath_var=LD_LIBRARY_PATH
 
16754
  ;;
 
16755
 
 
16756
freebsd1*)
 
16757
  dynamic_linker=no
 
16758
  ;;
 
16759
 
 
16760
kfreebsd*-gnu)
 
16761
  version_type=linux
 
16762
  need_lib_prefix=no
 
16763
  need_version=no
 
16764
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16765
  soname_spec='${libname}${release}${shared_ext}$major'
 
16766
  shlibpath_var=LD_LIBRARY_PATH
 
16767
  shlibpath_overrides_runpath=no
 
16768
  hardcode_into_libs=yes
 
16769
  dynamic_linker='GNU ld.so'
 
16770
  ;;
 
16771
 
 
16772
freebsd* | dragonfly*)
 
16773
  # DragonFly does not have aout.  When/if they implement a new
 
16774
  # versioning mechanism, adjust this.
 
16775
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16776
  version_type=freebsd-$objformat
 
16777
  case $version_type in
 
16778
    freebsd-elf*)
 
16779
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16780
      need_version=no
 
16781
      need_lib_prefix=no
 
16782
      ;;
 
16783
    freebsd-*)
 
16784
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16785
      need_version=yes
 
16786
      ;;
 
16787
  esac
 
16788
  shlibpath_var=LD_LIBRARY_PATH
 
16789
  case $host_os in
 
16790
  freebsd2*)
 
16791
    shlibpath_overrides_runpath=yes
 
16792
    ;;
 
16793
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16794
    shlibpath_overrides_runpath=yes
 
16795
    hardcode_into_libs=yes
 
16796
    ;;
 
16797
  *) # from 3.2 on
 
16798
    shlibpath_overrides_runpath=no
 
16799
    hardcode_into_libs=yes
 
16800
    ;;
 
16801
  esac
 
16802
  ;;
 
16803
 
 
16804
gnu*)
 
16805
  version_type=linux
 
16806
  need_lib_prefix=no
 
16807
  need_version=no
 
16808
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16809
  soname_spec='${libname}${release}${shared_ext}$major'
 
16810
  shlibpath_var=LD_LIBRARY_PATH
 
16811
  hardcode_into_libs=yes
 
16812
  ;;
 
16813
 
 
16814
hpux9* | hpux10* | hpux11*)
 
16815
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16816
  # link against other versions.
 
16817
  version_type=sunos
 
16818
  need_lib_prefix=no
 
16819
  need_version=no
 
16820
  case "$host_cpu" in
 
16821
  ia64*)
 
16822
    shrext_cmds='.so'
 
16823
    hardcode_into_libs=yes
 
16824
    dynamic_linker="$host_os dld.so"
 
16825
    shlibpath_var=LD_LIBRARY_PATH
 
16826
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16827
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16828
    soname_spec='${libname}${release}${shared_ext}$major'
 
16829
    if test "X$HPUX_IA64_MODE" = X32; then
 
16830
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16831
    else
 
16832
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16833
    fi
 
16834
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16835
    ;;
 
16836
   hppa*64*)
 
16837
     shrext_cmds='.sl'
 
16838
     hardcode_into_libs=yes
 
16839
     dynamic_linker="$host_os dld.sl"
 
16840
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16841
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16842
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16843
     soname_spec='${libname}${release}${shared_ext}$major'
 
16844
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16845
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16846
     ;;
 
16847
   *)
 
16848
    shrext_cmds='.sl'
 
16849
    dynamic_linker="$host_os dld.sl"
 
16850
    shlibpath_var=SHLIB_PATH
 
16851
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16852
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16853
    soname_spec='${libname}${release}${shared_ext}$major'
 
16854
    ;;
 
16855
  esac
 
16856
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16857
  postinstall_cmds='chmod 555 $lib'
 
16858
  ;;
 
16859
 
 
16860
irix5* | irix6* | nonstopux*)
 
16861
  case $host_os in
 
16862
    nonstopux*) version_type=nonstopux ;;
 
16863
    *)
 
16864
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16865
                version_type=linux
 
16866
        else
 
16867
                version_type=irix
 
16868
        fi ;;
 
16869
  esac
 
16870
  need_lib_prefix=no
 
16871
  need_version=no
 
16872
  soname_spec='${libname}${release}${shared_ext}$major'
 
16873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16874
  case $host_os in
 
16875
  irix5* | nonstopux*)
 
16876
    libsuff= shlibsuff=
 
16877
    ;;
 
16878
  *)
 
16879
    case $LD in # libtool.m4 will add one of these switches to LD
 
16880
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16881
      libsuff= shlibsuff= libmagic=32-bit;;
 
16882
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16883
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16884
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16885
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16886
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16887
    esac
 
16888
    ;;
 
16889
  esac
 
16890
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16891
  shlibpath_overrides_runpath=no
 
16892
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16893
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16894
  hardcode_into_libs=yes
 
16895
  ;;
 
16896
 
 
16897
# No shared lib support for Linux oldld, aout, or coff.
 
16898
linux*oldld* | linux*aout* | linux*coff*)
 
16899
  dynamic_linker=no
 
16900
  ;;
 
16901
 
 
16902
# This must be Linux ELF.
 
16903
linux*)
 
16904
  version_type=linux
 
16905
  need_lib_prefix=no
 
16906
  need_version=no
 
16907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16908
  soname_spec='${libname}${release}${shared_ext}$major'
 
16909
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16910
  shlibpath_var=LD_LIBRARY_PATH
 
16911
  shlibpath_overrides_runpath=no
 
16912
  # This implies no fast_install, which is unacceptable.
 
16913
  # Some rework will be needed to allow for fast_install
 
16914
  # before this can be enabled.
 
16915
  hardcode_into_libs=yes
 
16916
 
 
16917
  # Append ld.so.conf contents to the search path
 
16918
  if test -f /etc/ld.so.conf; then
 
16919
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
16920
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16921
  fi
 
16922
 
 
16923
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16924
  # powerpc, because MkLinux only supported shared libraries with the
 
16925
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16926
  # most powerpc-linux boxes support dynamic linking these days and
 
16927
  # people can always --disable-shared, the test was removed, and we
 
16928
  # assume the GNU/Linux dynamic linker is in use.
 
16929
  dynamic_linker='GNU/Linux ld.so'
 
16930
  ;;
 
16931
 
 
16932
knetbsd*-gnu)
 
16933
  version_type=linux
 
16934
  need_lib_prefix=no
 
16935
  need_version=no
 
16936
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16937
  soname_spec='${libname}${release}${shared_ext}$major'
 
16938
  shlibpath_var=LD_LIBRARY_PATH
 
16939
  shlibpath_overrides_runpath=no
 
16940
  hardcode_into_libs=yes
 
16941
  dynamic_linker='GNU ld.so'
 
16942
  ;;
 
16943
 
 
16944
netbsd*)
 
16945
  version_type=sunos
 
16946
  need_lib_prefix=no
 
16947
  need_version=no
 
16948
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16949
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16950
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16951
    dynamic_linker='NetBSD (a.out) ld.so'
 
16952
  else
 
16953
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16954
    soname_spec='${libname}${release}${shared_ext}$major'
 
16955
    dynamic_linker='NetBSD ld.elf_so'
 
16956
  fi
 
16957
  shlibpath_var=LD_LIBRARY_PATH
 
16958
  shlibpath_overrides_runpath=yes
 
16959
  hardcode_into_libs=yes
 
16960
  ;;
 
16961
 
 
16962
newsos6)
 
16963
  version_type=linux
 
16964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16965
  shlibpath_var=LD_LIBRARY_PATH
 
16966
  shlibpath_overrides_runpath=yes
 
16967
  ;;
 
16968
 
 
16969
nto-qnx*)
 
16970
  version_type=linux
 
16971
  need_lib_prefix=no
 
16972
  need_version=no
 
16973
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16974
  soname_spec='${libname}${release}${shared_ext}$major'
 
16975
  shlibpath_var=LD_LIBRARY_PATH
 
16976
  shlibpath_overrides_runpath=yes
 
16977
  ;;
 
16978
 
 
16979
openbsd*)
 
16980
  version_type=sunos
 
16981
  need_lib_prefix=no
 
16982
  need_version=no
 
16983
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16984
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16985
  shlibpath_var=LD_LIBRARY_PATH
 
16986
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16987
    case $host_os in
 
16988
      openbsd2.[89] | openbsd2.[89].*)
 
16989
        shlibpath_overrides_runpath=no
 
16990
        ;;
 
16991
      *)
 
16992
        shlibpath_overrides_runpath=yes
 
16993
        ;;
 
16994
      esac
 
16995
  else
 
16996
    shlibpath_overrides_runpath=yes
 
16997
  fi
 
16998
  ;;
 
16999
 
 
17000
os2*)
 
17001
  libname_spec='$name'
 
17002
  shrext_cmds=".dll"
 
17003
  need_lib_prefix=no
 
17004
  library_names_spec='$libname${shared_ext} $libname.a'
 
17005
  dynamic_linker='OS/2 ld.exe'
 
17006
  shlibpath_var=LIBPATH
 
17007
  ;;
 
17008
 
 
17009
osf3* | osf4* | osf5*)
 
17010
  version_type=osf
 
17011
  need_lib_prefix=no
 
17012
  need_version=no
 
17013
  soname_spec='${libname}${release}${shared_ext}$major'
 
17014
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17015
  shlibpath_var=LD_LIBRARY_PATH
 
17016
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17017
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17018
  ;;
 
17019
 
 
17020
sco3.2v5*)
 
17021
  version_type=osf
 
17022
  soname_spec='${libname}${release}${shared_ext}$major'
 
17023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17024
  shlibpath_var=LD_LIBRARY_PATH
 
17025
  ;;
 
17026
 
 
17027
solaris*)
 
17028
  version_type=linux
 
17029
  need_lib_prefix=no
 
17030
  need_version=no
 
17031
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17032
  soname_spec='${libname}${release}${shared_ext}$major'
 
17033
  shlibpath_var=LD_LIBRARY_PATH
 
17034
  shlibpath_overrides_runpath=yes
 
17035
  hardcode_into_libs=yes
 
17036
  # ldd complains unless libraries are executable
 
17037
  postinstall_cmds='chmod +x $lib'
 
17038
  ;;
 
17039
 
 
17040
sunos4*)
 
17041
  version_type=sunos
 
17042
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17043
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17044
  shlibpath_var=LD_LIBRARY_PATH
 
17045
  shlibpath_overrides_runpath=yes
 
17046
  if test "$with_gnu_ld" = yes; then
 
17047
    need_lib_prefix=no
 
17048
  fi
 
17049
  need_version=yes
 
17050
  ;;
 
17051
 
 
17052
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17053
  version_type=linux
 
17054
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17055
  soname_spec='${libname}${release}${shared_ext}$major'
 
17056
  shlibpath_var=LD_LIBRARY_PATH
 
17057
  case $host_vendor in
 
17058
    sni)
 
17059
      shlibpath_overrides_runpath=no
 
17060
      need_lib_prefix=no
 
17061
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17062
      runpath_var=LD_RUN_PATH
 
17063
      ;;
 
17064
    siemens)
 
17065
      need_lib_prefix=no
 
17066
      ;;
 
17067
    motorola)
 
17068
      need_lib_prefix=no
 
17069
      need_version=no
 
17070
      shlibpath_overrides_runpath=no
 
17071
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17072
      ;;
 
17073
  esac
 
17074
  ;;
 
17075
 
 
17076
sysv4*MP*)
 
17077
  if test -d /usr/nec ;then
 
17078
    version_type=linux
 
17079
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17080
    soname_spec='$libname${shared_ext}.$major'
 
17081
    shlibpath_var=LD_LIBRARY_PATH
 
17082
  fi
 
17083
  ;;
 
17084
 
 
17085
uts4*)
 
17086
  version_type=linux
 
17087
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17088
  soname_spec='${libname}${release}${shared_ext}$major'
 
17089
  shlibpath_var=LD_LIBRARY_PATH
 
17090
  ;;
 
17091
 
 
17092
*)
 
17093
  dynamic_linker=no
 
17094
  ;;
 
17095
esac
 
17096
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17097
echo "${ECHO_T}$dynamic_linker" >&6
 
17098
test "$dynamic_linker" = no && can_build_shared=no
 
17099
 
 
17100
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17101
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17102
hardcode_action_GCJ=
 
17103
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17104
   test -n "$runpath_var_GCJ" || \
 
17105
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17106
 
 
17107
  # We can hardcode non-existant directories.
 
17108
  if test "$hardcode_direct_GCJ" != no &&
 
17109
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17110
     # have to relink, otherwise we might link with an installed library
 
17111
     # when we should be linking with a yet-to-be-installed one
 
17112
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17113
     test "$hardcode_minus_L_GCJ" != no; then
 
17114
    # Linking always hardcodes the temporary library directory.
 
17115
    hardcode_action_GCJ=relink
 
17116
  else
 
17117
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17118
    hardcode_action_GCJ=immediate
 
17119
  fi
 
17120
else
 
17121
  # We cannot hardcode anything, or else we can only hardcode existing
 
17122
  # directories.
 
17123
  hardcode_action_GCJ=unsupported
 
17124
fi
 
17125
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17126
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17127
 
 
17128
if test "$hardcode_action_GCJ" = relink; then
 
17129
  # Fast installation is not supported
 
17130
  enable_fast_install=no
 
17131
elif test "$shlibpath_overrides_runpath" = yes ||
 
17132
     test "$enable_shared" = no; then
 
17133
  # Fast installation is not necessary
 
17134
  enable_fast_install=needless
 
17135
fi
 
17136
 
 
17137
striplib=
 
17138
old_striplib=
 
17139
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17140
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17141
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17142
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17143
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17144
  echo "$as_me:$LINENO: result: yes" >&5
 
17145
echo "${ECHO_T}yes" >&6
 
17146
else
 
17147
# FIXME - insert some real tests, host_os isn't really good enough
 
17148
  case $host_os in
 
17149
   darwin*)
 
17150
       if test -n "$STRIP" ; then
 
17151
         striplib="$STRIP -x"
 
17152
         echo "$as_me:$LINENO: result: yes" >&5
 
17153
echo "${ECHO_T}yes" >&6
 
17154
       else
 
17155
  echo "$as_me:$LINENO: result: no" >&5
 
17156
echo "${ECHO_T}no" >&6
 
17157
fi
 
17158
       ;;
 
17159
   *)
 
17160
  echo "$as_me:$LINENO: result: no" >&5
 
17161
echo "${ECHO_T}no" >&6
 
17162
    ;;
 
17163
  esac
 
17164
fi
 
17165
 
 
17166
if test "x$enable_dlopen" != xyes; then
 
17167
  enable_dlopen=unknown
 
17168
  enable_dlopen_self=unknown
 
17169
  enable_dlopen_self_static=unknown
 
17170
else
 
17171
  lt_cv_dlopen=no
 
17172
  lt_cv_dlopen_libs=
 
17173
 
 
17174
  case $host_os in
 
17175
  beos*)
 
17176
    lt_cv_dlopen="load_add_on"
 
17177
    lt_cv_dlopen_libs=
 
17178
    lt_cv_dlopen_self=yes
 
17179
    ;;
 
17180
 
 
17181
  mingw* | pw32*)
 
17182
    lt_cv_dlopen="LoadLibrary"
 
17183
    lt_cv_dlopen_libs=
 
17184
   ;;
 
17185
 
 
17186
  cygwin*)
 
17187
    lt_cv_dlopen="dlopen"
 
17188
    lt_cv_dlopen_libs=
 
17189
   ;;
 
17190
 
 
17191
  darwin*)
 
17192
  # if libdl is installed we need to link against it
 
17193
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17194
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17195
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17197
else
 
17198
  ac_check_lib_save_LIBS=$LIBS
 
17199
LIBS="-ldl  $LIBS"
 
17200
cat >conftest.$ac_ext <<_ACEOF
 
17201
/* confdefs.h.  */
 
17202
_ACEOF
 
17203
cat confdefs.h >>conftest.$ac_ext
 
17204
cat >>conftest.$ac_ext <<_ACEOF
 
17205
/* end confdefs.h.  */
 
17206
 
 
17207
/* Override any gcc2 internal prototype to avoid an error.  */
 
17208
#ifdef __cplusplus
 
17209
extern "C"
 
17210
#endif
 
17211
/* We use char because int might match the return type of a gcc2
 
17212
   builtin and then its argument prototype would still apply.  */
 
17213
char dlopen ();
 
17214
int
 
17215
main ()
 
17216
{
 
17217
dlopen ();
 
17218
  ;
 
17219
  return 0;
 
17220
}
 
17221
_ACEOF
 
17222
rm -f conftest.$ac_objext conftest$ac_exeext
 
17223
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17224
  (eval $ac_link) 2>conftest.er1
 
17225
  ac_status=$?
 
17226
  grep -v '^ *+' conftest.er1 >conftest.err
 
17227
  rm -f conftest.er1
 
17228
  cat conftest.err >&5
 
17229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17230
  (exit $ac_status); } &&
 
17231
         { ac_try='test -z "$ac_c_werror_flag"
 
17232
                         || test ! -s conftest.err'
 
17233
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17234
  (eval $ac_try) 2>&5
 
17235
  ac_status=$?
 
17236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17237
  (exit $ac_status); }; } &&
 
17238
         { ac_try='test -s conftest$ac_exeext'
 
17239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17240
  (eval $ac_try) 2>&5
 
17241
  ac_status=$?
 
17242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17243
  (exit $ac_status); }; }; then
 
17244
  ac_cv_lib_dl_dlopen=yes
 
17245
else
 
17246
  echo "$as_me: failed program was:" >&5
 
17247
sed 's/^/| /' conftest.$ac_ext >&5
 
17248
 
 
17249
ac_cv_lib_dl_dlopen=no
 
17250
fi
 
17251
rm -f conftest.err conftest.$ac_objext \
 
17252
      conftest$ac_exeext conftest.$ac_ext
 
17253
LIBS=$ac_check_lib_save_LIBS
 
17254
fi
 
17255
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17256
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17257
if test $ac_cv_lib_dl_dlopen = yes; then
 
17258
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17259
else
 
17260
 
 
17261
    lt_cv_dlopen="dyld"
 
17262
    lt_cv_dlopen_libs=
 
17263
    lt_cv_dlopen_self=yes
 
17264
 
 
17265
fi
 
17266
 
 
17267
   ;;
 
17268
 
 
17269
  *)
 
17270
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17271
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17272
if test "${ac_cv_func_shl_load+set}" = set; then
 
17273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17274
else
 
17275
  cat >conftest.$ac_ext <<_ACEOF
 
17276
/* confdefs.h.  */
 
17277
_ACEOF
 
17278
cat confdefs.h >>conftest.$ac_ext
 
17279
cat >>conftest.$ac_ext <<_ACEOF
 
17280
/* end confdefs.h.  */
 
17281
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17282
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17283
#define shl_load innocuous_shl_load
 
17284
 
 
17285
/* System header to define __stub macros and hopefully few prototypes,
 
17286
    which can conflict with char shl_load (); below.
 
17287
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17288
    <limits.h> exists even on freestanding compilers.  */
 
17289
 
 
17290
#ifdef __STDC__
 
17291
# include <limits.h>
 
17292
#else
 
17293
# include <assert.h>
 
17294
#endif
 
17295
 
 
17296
#undef shl_load
 
17297
 
 
17298
/* Override any gcc2 internal prototype to avoid an error.  */
 
17299
#ifdef __cplusplus
 
17300
extern "C"
 
17301
{
 
17302
#endif
 
17303
/* We use char because int might match the return type of a gcc2
 
17304
   builtin and then its argument prototype would still apply.  */
 
17305
char shl_load ();
 
17306
/* The GNU C library defines this for functions which it implements
 
17307
    to always fail with ENOSYS.  Some functions are actually named
 
17308
    something starting with __ and the normal name is an alias.  */
 
17309
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17310
choke me
 
17311
#else
 
17312
char (*f) () = shl_load;
 
17313
#endif
 
17314
#ifdef __cplusplus
 
17315
}
 
17316
#endif
 
17317
 
 
17318
int
 
17319
main ()
 
17320
{
 
17321
return f != shl_load;
 
17322
  ;
 
17323
  return 0;
 
17324
}
 
17325
_ACEOF
 
17326
rm -f conftest.$ac_objext conftest$ac_exeext
 
17327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17328
  (eval $ac_link) 2>conftest.er1
 
17329
  ac_status=$?
 
17330
  grep -v '^ *+' conftest.er1 >conftest.err
 
17331
  rm -f conftest.er1
 
17332
  cat conftest.err >&5
 
17333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17334
  (exit $ac_status); } &&
 
17335
         { ac_try='test -z "$ac_c_werror_flag"
 
17336
                         || test ! -s conftest.err'
 
17337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17338
  (eval $ac_try) 2>&5
 
17339
  ac_status=$?
 
17340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17341
  (exit $ac_status); }; } &&
 
17342
         { ac_try='test -s conftest$ac_exeext'
 
17343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17344
  (eval $ac_try) 2>&5
 
17345
  ac_status=$?
 
17346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17347
  (exit $ac_status); }; }; then
 
17348
  ac_cv_func_shl_load=yes
 
17349
else
 
17350
  echo "$as_me: failed program was:" >&5
 
17351
sed 's/^/| /' conftest.$ac_ext >&5
 
17352
 
 
17353
ac_cv_func_shl_load=no
 
17354
fi
 
17355
rm -f conftest.err conftest.$ac_objext \
 
17356
      conftest$ac_exeext conftest.$ac_ext
 
17357
fi
 
17358
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17359
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17360
if test $ac_cv_func_shl_load = yes; then
 
17361
  lt_cv_dlopen="shl_load"
 
17362
else
 
17363
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17364
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17365
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17367
else
 
17368
  ac_check_lib_save_LIBS=$LIBS
 
17369
LIBS="-ldld  $LIBS"
 
17370
cat >conftest.$ac_ext <<_ACEOF
 
17371
/* confdefs.h.  */
 
17372
_ACEOF
 
17373
cat confdefs.h >>conftest.$ac_ext
 
17374
cat >>conftest.$ac_ext <<_ACEOF
 
17375
/* end confdefs.h.  */
 
17376
 
 
17377
/* Override any gcc2 internal prototype to avoid an error.  */
 
17378
#ifdef __cplusplus
 
17379
extern "C"
 
17380
#endif
 
17381
/* We use char because int might match the return type of a gcc2
 
17382
   builtin and then its argument prototype would still apply.  */
 
17383
char shl_load ();
 
17384
int
 
17385
main ()
 
17386
{
 
17387
shl_load ();
 
17388
  ;
 
17389
  return 0;
 
17390
}
 
17391
_ACEOF
 
17392
rm -f conftest.$ac_objext conftest$ac_exeext
 
17393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17394
  (eval $ac_link) 2>conftest.er1
 
17395
  ac_status=$?
 
17396
  grep -v '^ *+' conftest.er1 >conftest.err
 
17397
  rm -f conftest.er1
 
17398
  cat conftest.err >&5
 
17399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17400
  (exit $ac_status); } &&
 
17401
         { ac_try='test -z "$ac_c_werror_flag"
 
17402
                         || test ! -s conftest.err'
 
17403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17404
  (eval $ac_try) 2>&5
 
17405
  ac_status=$?
 
17406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17407
  (exit $ac_status); }; } &&
 
17408
         { ac_try='test -s conftest$ac_exeext'
 
17409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17410
  (eval $ac_try) 2>&5
 
17411
  ac_status=$?
 
17412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17413
  (exit $ac_status); }; }; then
 
17414
  ac_cv_lib_dld_shl_load=yes
 
17415
else
 
17416
  echo "$as_me: failed program was:" >&5
 
17417
sed 's/^/| /' conftest.$ac_ext >&5
 
17418
 
 
17419
ac_cv_lib_dld_shl_load=no
 
17420
fi
 
17421
rm -f conftest.err conftest.$ac_objext \
 
17422
      conftest$ac_exeext conftest.$ac_ext
 
17423
LIBS=$ac_check_lib_save_LIBS
 
17424
fi
 
17425
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
17426
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
17427
if test $ac_cv_lib_dld_shl_load = yes; then
 
17428
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
17429
else
 
17430
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
17431
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
17432
if test "${ac_cv_func_dlopen+set}" = set; then
 
17433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17434
else
 
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
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
17442
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17443
#define dlopen innocuous_dlopen
 
17444
 
 
17445
/* System header to define __stub macros and hopefully few prototypes,
 
17446
    which can conflict with char dlopen (); below.
 
17447
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17448
    <limits.h> exists even on freestanding compilers.  */
 
17449
 
 
17450
#ifdef __STDC__
 
17451
# include <limits.h>
 
17452
#else
 
17453
# include <assert.h>
 
17454
#endif
 
17455
 
 
17456
#undef dlopen
 
17457
 
 
17458
/* Override any gcc2 internal prototype to avoid an error.  */
 
17459
#ifdef __cplusplus
 
17460
extern "C"
 
17461
{
 
17462
#endif
 
17463
/* We use char because int might match the return type of a gcc2
 
17464
   builtin and then its argument prototype would still apply.  */
 
17465
char dlopen ();
 
17466
/* The GNU C library defines this for functions which it implements
 
17467
    to always fail with ENOSYS.  Some functions are actually named
 
17468
    something starting with __ and the normal name is an alias.  */
 
17469
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
17470
choke me
 
17471
#else
 
17472
char (*f) () = dlopen;
 
17473
#endif
 
17474
#ifdef __cplusplus
 
17475
}
 
17476
#endif
 
17477
 
 
17478
int
 
17479
main ()
 
17480
{
 
17481
return f != dlopen;
 
17482
  ;
 
17483
  return 0;
 
17484
}
 
17485
_ACEOF
 
17486
rm -f conftest.$ac_objext conftest$ac_exeext
 
17487
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17488
  (eval $ac_link) 2>conftest.er1
 
17489
  ac_status=$?
 
17490
  grep -v '^ *+' conftest.er1 >conftest.err
 
17491
  rm -f conftest.er1
 
17492
  cat conftest.err >&5
 
17493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17494
  (exit $ac_status); } &&
 
17495
         { ac_try='test -z "$ac_c_werror_flag"
 
17496
                         || test ! -s conftest.err'
 
17497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17498
  (eval $ac_try) 2>&5
 
17499
  ac_status=$?
 
17500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17501
  (exit $ac_status); }; } &&
 
17502
         { ac_try='test -s conftest$ac_exeext'
 
17503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17504
  (eval $ac_try) 2>&5
 
17505
  ac_status=$?
 
17506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17507
  (exit $ac_status); }; }; then
 
17508
  ac_cv_func_dlopen=yes
 
17509
else
 
17510
  echo "$as_me: failed program was:" >&5
 
17511
sed 's/^/| /' conftest.$ac_ext >&5
 
17512
 
 
17513
ac_cv_func_dlopen=no
 
17514
fi
 
17515
rm -f conftest.err conftest.$ac_objext \
 
17516
      conftest$ac_exeext conftest.$ac_ext
 
17517
fi
 
17518
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
17519
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
17520
if test $ac_cv_func_dlopen = yes; then
 
17521
  lt_cv_dlopen="dlopen"
 
17522
else
 
17523
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17524
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17525
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17527
else
 
17528
  ac_check_lib_save_LIBS=$LIBS
 
17529
LIBS="-ldl  $LIBS"
 
17530
cat >conftest.$ac_ext <<_ACEOF
 
17531
/* confdefs.h.  */
 
17532
_ACEOF
 
17533
cat confdefs.h >>conftest.$ac_ext
 
17534
cat >>conftest.$ac_ext <<_ACEOF
 
17535
/* end confdefs.h.  */
 
17536
 
 
17537
/* Override any gcc2 internal prototype to avoid an error.  */
 
17538
#ifdef __cplusplus
 
17539
extern "C"
 
17540
#endif
 
17541
/* We use char because int might match the return type of a gcc2
 
17542
   builtin and then its argument prototype would still apply.  */
 
17543
char dlopen ();
 
17544
int
 
17545
main ()
 
17546
{
 
17547
dlopen ();
 
17548
  ;
 
17549
  return 0;
 
17550
}
 
17551
_ACEOF
 
17552
rm -f conftest.$ac_objext conftest$ac_exeext
 
17553
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17554
  (eval $ac_link) 2>conftest.er1
 
17555
  ac_status=$?
 
17556
  grep -v '^ *+' conftest.er1 >conftest.err
 
17557
  rm -f conftest.er1
 
17558
  cat conftest.err >&5
 
17559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17560
  (exit $ac_status); } &&
 
17561
         { ac_try='test -z "$ac_c_werror_flag"
 
17562
                         || test ! -s conftest.err'
 
17563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17564
  (eval $ac_try) 2>&5
 
17565
  ac_status=$?
 
17566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17567
  (exit $ac_status); }; } &&
 
17568
         { ac_try='test -s conftest$ac_exeext'
 
17569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17570
  (eval $ac_try) 2>&5
 
17571
  ac_status=$?
 
17572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17573
  (exit $ac_status); }; }; then
 
17574
  ac_cv_lib_dl_dlopen=yes
 
17575
else
 
17576
  echo "$as_me: failed program was:" >&5
 
17577
sed 's/^/| /' conftest.$ac_ext >&5
 
17578
 
 
17579
ac_cv_lib_dl_dlopen=no
 
17580
fi
 
17581
rm -f conftest.err conftest.$ac_objext \
 
17582
      conftest$ac_exeext conftest.$ac_ext
 
17583
LIBS=$ac_check_lib_save_LIBS
 
17584
fi
 
17585
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17586
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17587
if test $ac_cv_lib_dl_dlopen = yes; then
 
17588
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17589
else
 
17590
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
17591
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
17592
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
17593
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17594
else
 
17595
  ac_check_lib_save_LIBS=$LIBS
 
17596
LIBS="-lsvld  $LIBS"
 
17597
cat >conftest.$ac_ext <<_ACEOF
 
17598
/* confdefs.h.  */
 
17599
_ACEOF
 
17600
cat confdefs.h >>conftest.$ac_ext
 
17601
cat >>conftest.$ac_ext <<_ACEOF
 
17602
/* end confdefs.h.  */
 
17603
 
 
17604
/* Override any gcc2 internal prototype to avoid an error.  */
 
17605
#ifdef __cplusplus
 
17606
extern "C"
 
17607
#endif
 
17608
/* We use char because int might match the return type of a gcc2
 
17609
   builtin and then its argument prototype would still apply.  */
 
17610
char dlopen ();
 
17611
int
 
17612
main ()
 
17613
{
 
17614
dlopen ();
 
17615
  ;
 
17616
  return 0;
 
17617
}
 
17618
_ACEOF
 
17619
rm -f conftest.$ac_objext conftest$ac_exeext
 
17620
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17621
  (eval $ac_link) 2>conftest.er1
 
17622
  ac_status=$?
 
17623
  grep -v '^ *+' conftest.er1 >conftest.err
 
17624
  rm -f conftest.er1
 
17625
  cat conftest.err >&5
 
17626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17627
  (exit $ac_status); } &&
 
17628
         { ac_try='test -z "$ac_c_werror_flag"
 
17629
                         || test ! -s conftest.err'
 
17630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17631
  (eval $ac_try) 2>&5
 
17632
  ac_status=$?
 
17633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17634
  (exit $ac_status); }; } &&
 
17635
         { ac_try='test -s conftest$ac_exeext'
 
17636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17637
  (eval $ac_try) 2>&5
 
17638
  ac_status=$?
 
17639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17640
  (exit $ac_status); }; }; then
 
17641
  ac_cv_lib_svld_dlopen=yes
 
17642
else
 
17643
  echo "$as_me: failed program was:" >&5
 
17644
sed 's/^/| /' conftest.$ac_ext >&5
 
17645
 
 
17646
ac_cv_lib_svld_dlopen=no
 
17647
fi
 
17648
rm -f conftest.err conftest.$ac_objext \
 
17649
      conftest$ac_exeext conftest.$ac_ext
 
17650
LIBS=$ac_check_lib_save_LIBS
 
17651
fi
 
17652
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17653
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17654
if test $ac_cv_lib_svld_dlopen = yes; then
 
17655
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17656
else
 
17657
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17658
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17659
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17661
else
 
17662
  ac_check_lib_save_LIBS=$LIBS
 
17663
LIBS="-ldld  $LIBS"
 
17664
cat >conftest.$ac_ext <<_ACEOF
 
17665
/* confdefs.h.  */
 
17666
_ACEOF
 
17667
cat confdefs.h >>conftest.$ac_ext
 
17668
cat >>conftest.$ac_ext <<_ACEOF
 
17669
/* end confdefs.h.  */
 
17670
 
 
17671
/* Override any gcc2 internal prototype to avoid an error.  */
 
17672
#ifdef __cplusplus
 
17673
extern "C"
 
17674
#endif
 
17675
/* We use char because int might match the return type of a gcc2
 
17676
   builtin and then its argument prototype would still apply.  */
 
17677
char dld_link ();
 
17678
int
 
17679
main ()
 
17680
{
 
17681
dld_link ();
 
17682
  ;
 
17683
  return 0;
 
17684
}
 
17685
_ACEOF
 
17686
rm -f conftest.$ac_objext conftest$ac_exeext
 
17687
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17688
  (eval $ac_link) 2>conftest.er1
 
17689
  ac_status=$?
 
17690
  grep -v '^ *+' conftest.er1 >conftest.err
 
17691
  rm -f conftest.er1
 
17692
  cat conftest.err >&5
 
17693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17694
  (exit $ac_status); } &&
 
17695
         { ac_try='test -z "$ac_c_werror_flag"
 
17696
                         || test ! -s conftest.err'
 
17697
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17698
  (eval $ac_try) 2>&5
 
17699
  ac_status=$?
 
17700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17701
  (exit $ac_status); }; } &&
 
17702
         { ac_try='test -s conftest$ac_exeext'
 
17703
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17704
  (eval $ac_try) 2>&5
 
17705
  ac_status=$?
 
17706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17707
  (exit $ac_status); }; }; then
 
17708
  ac_cv_lib_dld_dld_link=yes
 
17709
else
 
17710
  echo "$as_me: failed program was:" >&5
 
17711
sed 's/^/| /' conftest.$ac_ext >&5
 
17712
 
 
17713
ac_cv_lib_dld_dld_link=no
 
17714
fi
 
17715
rm -f conftest.err conftest.$ac_objext \
 
17716
      conftest$ac_exeext conftest.$ac_ext
 
17717
LIBS=$ac_check_lib_save_LIBS
 
17718
fi
 
17719
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17720
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17721
if test $ac_cv_lib_dld_dld_link = yes; then
 
17722
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17723
fi
 
17724
 
 
17725
 
 
17726
fi
 
17727
 
 
17728
 
 
17729
fi
 
17730
 
 
17731
 
 
17732
fi
 
17733
 
 
17734
 
 
17735
fi
 
17736
 
 
17737
 
 
17738
fi
 
17739
 
 
17740
    ;;
 
17741
  esac
 
17742
 
 
17743
  if test "x$lt_cv_dlopen" != xno; then
 
17744
    enable_dlopen=yes
 
17745
  else
 
17746
    enable_dlopen=no
 
17747
  fi
 
17748
 
 
17749
  case $lt_cv_dlopen in
 
17750
  dlopen)
 
17751
    save_CPPFLAGS="$CPPFLAGS"
 
17752
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17753
 
 
17754
    save_LDFLAGS="$LDFLAGS"
 
17755
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17756
 
 
17757
    save_LIBS="$LIBS"
 
17758
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17759
 
 
17760
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17761
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
17762
if test "${lt_cv_dlopen_self+set}" = set; then
 
17763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17764
else
 
17765
          if test "$cross_compiling" = yes; then :
 
17766
  lt_cv_dlopen_self=cross
 
17767
else
 
17768
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17769
  lt_status=$lt_dlunknown
 
17770
  cat > conftest.$ac_ext <<EOF
 
17771
#line 17771 "configure"
 
17772
#include "confdefs.h"
 
17773
 
 
17774
#if HAVE_DLFCN_H
 
17775
#include <dlfcn.h>
 
17776
#endif
 
17777
 
 
17778
#include <stdio.h>
 
17779
 
 
17780
#ifdef RTLD_GLOBAL
 
17781
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17782
#else
 
17783
#  ifdef DL_GLOBAL
 
17784
#    define LT_DLGLOBAL         DL_GLOBAL
 
17785
#  else
 
17786
#    define LT_DLGLOBAL         0
 
17787
#  endif
 
17788
#endif
 
17789
 
 
17790
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17791
   find out it does not work in some platform. */
 
17792
#ifndef LT_DLLAZY_OR_NOW
 
17793
#  ifdef RTLD_LAZY
 
17794
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17795
#  else
 
17796
#    ifdef DL_LAZY
 
17797
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17798
#    else
 
17799
#      ifdef RTLD_NOW
 
17800
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17801
#      else
 
17802
#        ifdef DL_NOW
 
17803
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17804
#        else
 
17805
#          define LT_DLLAZY_OR_NOW      0
 
17806
#        endif
 
17807
#      endif
 
17808
#    endif
 
17809
#  endif
 
17810
#endif
 
17811
 
 
17812
#ifdef __cplusplus
 
17813
extern "C" void exit (int);
 
17814
#endif
 
17815
 
 
17816
void fnord() { int i=42;}
 
17817
int main ()
 
17818
{
 
17819
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17820
  int status = $lt_dlunknown;
 
17821
 
 
17822
  if (self)
 
17823
    {
 
17824
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17825
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17826
      /* dlclose (self); */
 
17827
    }
 
17828
 
 
17829
    exit (status);
 
17830
}
 
17831
EOF
 
17832
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17833
  (eval $ac_link) 2>&5
 
17834
  ac_status=$?
 
17835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17836
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17837
    (./conftest; exit; ) 2>/dev/null
 
17838
    lt_status=$?
 
17839
    case x$lt_status in
 
17840
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
17841
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
17842
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
17843
    esac
 
17844
  else :
 
17845
    # compilation failed
 
17846
    lt_cv_dlopen_self=no
 
17847
  fi
 
17848
fi
 
17849
rm -fr conftest*
 
17850
 
 
17851
 
 
17852
fi
 
17853
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
17854
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
17855
 
 
17856
    if test "x$lt_cv_dlopen_self" = xyes; then
 
17857
      LDFLAGS="$LDFLAGS $link_static_flag"
 
17858
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
17859
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
17860
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
17861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17862
else
 
17863
          if test "$cross_compiling" = yes; then :
 
17864
  lt_cv_dlopen_self_static=cross
 
17865
else
 
17866
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17867
  lt_status=$lt_dlunknown
 
17868
  cat > conftest.$ac_ext <<EOF
 
17869
#line 17869 "configure"
 
17870
#include "confdefs.h"
 
17871
 
 
17872
#if HAVE_DLFCN_H
 
17873
#include <dlfcn.h>
 
17874
#endif
 
17875
 
 
17876
#include <stdio.h>
 
17877
 
 
17878
#ifdef RTLD_GLOBAL
 
17879
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17880
#else
 
17881
#  ifdef DL_GLOBAL
 
17882
#    define LT_DLGLOBAL         DL_GLOBAL
 
17883
#  else
 
17884
#    define LT_DLGLOBAL         0
 
17885
#  endif
 
17886
#endif
 
17887
 
 
17888
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17889
   find out it does not work in some platform. */
 
17890
#ifndef LT_DLLAZY_OR_NOW
 
17891
#  ifdef RTLD_LAZY
 
17892
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17893
#  else
 
17894
#    ifdef DL_LAZY
 
17895
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17896
#    else
 
17897
#      ifdef RTLD_NOW
 
17898
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17899
#      else
 
17900
#        ifdef DL_NOW
 
17901
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17902
#        else
 
17903
#          define LT_DLLAZY_OR_NOW      0
 
17904
#        endif
 
17905
#      endif
 
17906
#    endif
 
17907
#  endif
 
17908
#endif
 
17909
 
 
17910
#ifdef __cplusplus
 
17911
extern "C" void exit (int);
 
17912
#endif
 
17913
 
 
17914
void fnord() { int i=42;}
 
17915
int main ()
 
17916
{
 
17917
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17918
  int status = $lt_dlunknown;
 
17919
 
 
17920
  if (self)
 
17921
    {
 
17922
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17923
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17924
      /* dlclose (self); */
 
17925
    }
 
17926
 
 
17927
    exit (status);
 
17928
}
 
17929
EOF
 
17930
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17931
  (eval $ac_link) 2>&5
 
17932
  ac_status=$?
 
17933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17934
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17935
    (./conftest; exit; ) 2>/dev/null
 
17936
    lt_status=$?
 
17937
    case x$lt_status in
 
17938
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
17939
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
17940
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
17941
    esac
 
17942
  else :
 
17943
    # compilation failed
 
17944
    lt_cv_dlopen_self_static=no
 
17945
  fi
 
17946
fi
 
17947
rm -fr conftest*
 
17948
 
 
17949
 
 
17950
fi
 
17951
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
17952
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
17953
    fi
 
17954
 
 
17955
    CPPFLAGS="$save_CPPFLAGS"
 
17956
    LDFLAGS="$save_LDFLAGS"
 
17957
    LIBS="$save_LIBS"
 
17958
    ;;
 
17959
  esac
 
17960
 
 
17961
  case $lt_cv_dlopen_self in
 
17962
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
17963
  *) enable_dlopen_self=unknown ;;
 
17964
  esac
 
17965
 
 
17966
  case $lt_cv_dlopen_self_static in
 
17967
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
17968
  *) enable_dlopen_self_static=unknown ;;
 
17969
  esac
 
17970
fi
 
17971
 
 
17972
 
 
17973
# The else clause should only fire when bootstrapping the
 
17974
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17975
# with your package, and you will get complaints that there are
 
17976
# no rules to generate ltmain.sh.
 
17977
if test -f "$ltmain"; then
 
17978
  # See if we are running on zsh, and set the options which allow our commands through
 
17979
  # without removal of \ escapes.
 
17980
  if test -n "${ZSH_VERSION+set}" ; then
 
17981
    setopt NO_GLOB_SUBST
 
17982
  fi
 
17983
  # Now quote all the things that may contain metacharacters while being
 
17984
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17985
  # variables and quote the copies for generation of the libtool script.
 
17986
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
17987
    SED SHELL STRIP \
 
17988
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17989
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17990
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17991
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17992
    lt_cv_sys_global_symbol_to_c_name_address \
 
17993
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17994
    old_postinstall_cmds old_postuninstall_cmds \
 
17995
    compiler_GCJ \
 
17996
    CC_GCJ \
 
17997
    LD_GCJ \
 
17998
    lt_prog_compiler_wl_GCJ \
 
17999
    lt_prog_compiler_pic_GCJ \
 
18000
    lt_prog_compiler_static_GCJ \
 
18001
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18002
    export_dynamic_flag_spec_GCJ \
 
18003
    thread_safe_flag_spec_GCJ \
 
18004
    whole_archive_flag_spec_GCJ \
 
18005
    enable_shared_with_static_runtimes_GCJ \
 
18006
    old_archive_cmds_GCJ \
 
18007
    old_archive_from_new_cmds_GCJ \
 
18008
    predep_objects_GCJ \
 
18009
    postdep_objects_GCJ \
 
18010
    predeps_GCJ \
 
18011
    postdeps_GCJ \
 
18012
    compiler_lib_search_path_GCJ \
 
18013
    archive_cmds_GCJ \
 
18014
    archive_expsym_cmds_GCJ \
 
18015
    postinstall_cmds_GCJ \
 
18016
    postuninstall_cmds_GCJ \
 
18017
    old_archive_from_expsyms_cmds_GCJ \
 
18018
    allow_undefined_flag_GCJ \
 
18019
    no_undefined_flag_GCJ \
 
18020
    export_symbols_cmds_GCJ \
 
18021
    hardcode_libdir_flag_spec_GCJ \
 
18022
    hardcode_libdir_flag_spec_ld_GCJ \
 
18023
    hardcode_libdir_separator_GCJ \
 
18024
    hardcode_automatic_GCJ \
 
18025
    module_cmds_GCJ \
 
18026
    module_expsym_cmds_GCJ \
 
18027
    lt_cv_prog_compiler_c_o_GCJ \
 
18028
    exclude_expsyms_GCJ \
 
18029
    include_expsyms_GCJ; do
 
18030
 
 
18031
    case $var in
 
18032
    old_archive_cmds_GCJ | \
 
18033
    old_archive_from_new_cmds_GCJ | \
 
18034
    archive_cmds_GCJ | \
 
18035
    archive_expsym_cmds_GCJ | \
 
18036
    module_cmds_GCJ | \
 
18037
    module_expsym_cmds_GCJ | \
 
18038
    old_archive_from_expsyms_cmds_GCJ | \
 
18039
    export_symbols_cmds_GCJ | \
 
18040
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18041
    postinstall_cmds | postuninstall_cmds | \
 
18042
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18043
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18044
      # Double-quote double-evaled strings.
 
18045
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18046
      ;;
 
18047
    *)
 
18048
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18049
      ;;
 
18050
    esac
 
18051
  done
 
18052
 
 
18053
  case $lt_echo in
 
18054
  *'\$0 --fallback-echo"')
 
18055
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18056
    ;;
 
18057
  esac
 
18058
 
 
18059
cfgfile="$ofile"
 
18060
 
 
18061
  cat <<__EOF__ >> "$cfgfile"
 
18062
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18063
 
 
18064
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18065
 
 
18066
# Shell to use when invoking shell scripts.
 
18067
SHELL=$lt_SHELL
 
18068
 
 
18069
# Whether or not to build shared libraries.
 
18070
build_libtool_libs=$enable_shared
 
18071
 
 
18072
# Whether or not to build static libraries.
 
18073
build_old_libs=$enable_static
 
18074
 
 
18075
# Whether or not to add -lc for building shared libraries.
 
18076
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18077
 
 
18078
# Whether or not to disallow shared libs when runtime libs are static
 
18079
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18080
 
 
18081
# Whether or not to optimize for fast installation.
 
18082
fast_install=$enable_fast_install
 
18083
 
 
18084
# The host system.
 
18085
host_alias=$host_alias
 
18086
host=$host
 
18087
host_os=$host_os
 
18088
 
 
18089
# The build system.
 
18090
build_alias=$build_alias
 
18091
build=$build
 
18092
build_os=$build_os
 
18093
 
 
18094
# An echo program that does not interpret backslashes.
 
18095
echo=$lt_echo
 
18096
 
 
18097
# The archiver.
 
18098
AR=$lt_AR
 
18099
AR_FLAGS=$lt_AR_FLAGS
 
18100
 
 
18101
# A C compiler.
 
18102
LTCC=$lt_LTCC
 
18103
 
 
18104
# A language-specific compiler.
 
18105
CC=$lt_compiler_GCJ
 
18106
 
 
18107
# Is the compiler the GNU C compiler?
 
18108
with_gcc=$GCC_GCJ
 
18109
 
 
18110
# An ERE matcher.
 
18111
EGREP=$lt_EGREP
 
18112
 
 
18113
# The linker used to build libraries.
 
18114
LD=$lt_LD_GCJ
 
18115
 
 
18116
# Whether we need hard or soft links.
 
18117
LN_S=$lt_LN_S
 
18118
 
 
18119
# A BSD-compatible nm program.
 
18120
NM=$lt_NM
 
18121
 
 
18122
# A symbol stripping program
 
18123
STRIP=$lt_STRIP
 
18124
 
 
18125
# Used to examine libraries when file_magic_cmd begins "file"
 
18126
MAGIC_CMD=$MAGIC_CMD
 
18127
 
 
18128
# Used on cygwin: DLL creation program.
 
18129
DLLTOOL="$DLLTOOL"
 
18130
 
 
18131
# Used on cygwin: object dumper.
 
18132
OBJDUMP="$OBJDUMP"
 
18133
 
 
18134
# Used on cygwin: assembler.
 
18135
AS="$AS"
 
18136
 
 
18137
# The name of the directory that contains temporary libtool files.
 
18138
objdir=$objdir
 
18139
 
 
18140
# How to create reloadable object files.
 
18141
reload_flag=$lt_reload_flag
 
18142
reload_cmds=$lt_reload_cmds
 
18143
 
 
18144
# How to pass a linker flag through the compiler.
 
18145
wl=$lt_lt_prog_compiler_wl_GCJ
 
18146
 
 
18147
# Object file suffix (normally "o").
 
18148
objext="$ac_objext"
 
18149
 
 
18150
# Old archive suffix (normally "a").
 
18151
libext="$libext"
 
18152
 
 
18153
# Shared library suffix (normally ".so").
 
18154
shrext_cmds='$shrext_cmds'
 
18155
 
 
18156
# Executable file suffix (normally "").
 
18157
exeext="$exeext"
 
18158
 
 
18159
# Additional compiler flags for building library objects.
 
18160
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18161
pic_mode=$pic_mode
 
18162
 
 
18163
# What is the maximum length of a command?
 
18164
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18165
 
 
18166
# Does compiler simultaneously support -c and -o options?
 
18167
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18168
 
 
18169
# Must we lock files when doing compilation ?
 
18170
need_locks=$lt_need_locks
 
18171
 
 
18172
# Do we need the lib prefix for modules?
 
18173
need_lib_prefix=$need_lib_prefix
 
18174
 
 
18175
# Do we need a version for libraries?
 
18176
need_version=$need_version
 
18177
 
 
18178
# Whether dlopen is supported.
 
18179
dlopen_support=$enable_dlopen
 
18180
 
 
18181
# Whether dlopen of programs is supported.
 
18182
dlopen_self=$enable_dlopen_self
 
18183
 
 
18184
# Whether dlopen of statically linked programs is supported.
 
18185
dlopen_self_static=$enable_dlopen_self_static
 
18186
 
 
18187
# Compiler flag to prevent dynamic linking.
 
18188
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18189
 
 
18190
# Compiler flag to turn off builtin functions.
 
18191
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18192
 
 
18193
# Compiler flag to allow reflexive dlopens.
 
18194
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18195
 
 
18196
# Compiler flag to generate shared objects directly from archives.
 
18197
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18198
 
 
18199
# Compiler flag to generate thread-safe objects.
 
18200
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18201
 
 
18202
# Library versioning type.
 
18203
version_type=$version_type
 
18204
 
 
18205
# Format of library name prefix.
 
18206
libname_spec=$lt_libname_spec
 
18207
 
 
18208
# List of archive names.  First name is the real one, the rest are links.
 
18209
# The last name is the one that the linker finds with -lNAME.
 
18210
library_names_spec=$lt_library_names_spec
 
18211
 
 
18212
# The coded name of the library, if different from the real name.
 
18213
soname_spec=$lt_soname_spec
 
18214
 
 
18215
# Commands used to build and install an old-style archive.
 
18216
RANLIB=$lt_RANLIB
 
18217
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18218
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18219
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18220
 
 
18221
# Create an old-style archive from a shared archive.
 
18222
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18223
 
 
18224
# Create a temporary old-style archive to link instead of a shared archive.
 
18225
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18226
 
 
18227
# Commands used to build and install a shared archive.
 
18228
archive_cmds=$lt_archive_cmds_GCJ
 
18229
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18230
postinstall_cmds=$lt_postinstall_cmds
 
18231
postuninstall_cmds=$lt_postuninstall_cmds
 
18232
 
 
18233
# Commands used to build a loadable module (assumed same as above if empty)
 
18234
module_cmds=$lt_module_cmds_GCJ
 
18235
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18236
 
 
18237
# Commands to strip libraries.
 
18238
old_striplib=$lt_old_striplib
 
18239
striplib=$lt_striplib
 
18240
 
 
18241
# Dependencies to place before the objects being linked to create a
 
18242
# shared library.
 
18243
predep_objects=$lt_predep_objects_GCJ
 
18244
 
 
18245
# Dependencies to place after the objects being linked to create a
 
18246
# shared library.
 
18247
postdep_objects=$lt_postdep_objects_GCJ
 
18248
 
 
18249
# Dependencies to place before the objects being linked to create a
 
18250
# shared library.
 
18251
predeps=$lt_predeps_GCJ
 
18252
 
 
18253
# Dependencies to place after the objects being linked to create a
 
18254
# shared library.
 
18255
postdeps=$lt_postdeps_GCJ
 
18256
 
 
18257
# The library search path used internally by the compiler when linking
 
18258
# a shared library.
 
18259
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18260
 
 
18261
# Method to check whether dependent libraries are shared objects.
 
18262
deplibs_check_method=$lt_deplibs_check_method
 
18263
 
 
18264
# Command to use when deplibs_check_method == file_magic.
 
18265
file_magic_cmd=$lt_file_magic_cmd
 
18266
 
 
18267
# Flag that allows shared libraries with undefined symbols to be built.
 
18268
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18269
 
 
18270
# Flag that forces no undefined symbols.
 
18271
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18272
 
 
18273
# Commands used to finish a libtool library installation in a directory.
 
18274
finish_cmds=$lt_finish_cmds
 
18275
 
 
18276
# Same as above, but a single script fragment to be evaled but not shown.
 
18277
finish_eval=$lt_finish_eval
 
18278
 
 
18279
# Take the output of nm and produce a listing of raw symbols and C names.
 
18280
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18281
 
 
18282
# Transform the output of nm in a proper C declaration
 
18283
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18284
 
 
18285
# Transform the output of nm in a C name address pair
 
18286
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18287
 
 
18288
# This is the shared library runtime path variable.
 
18289
runpath_var=$runpath_var
 
18290
 
 
18291
# This is the shared library path variable.
 
18292
shlibpath_var=$shlibpath_var
 
18293
 
 
18294
# Is shlibpath searched before the hard-coded library search path?
 
18295
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18296
 
 
18297
# How to hardcode a shared library path into an executable.
 
18298
hardcode_action=$hardcode_action_GCJ
 
18299
 
 
18300
# Whether we should hardcode library paths into libraries.
 
18301
hardcode_into_libs=$hardcode_into_libs
 
18302
 
 
18303
# Flag to hardcode \$libdir into a binary during linking.
 
18304
# This must work even if \$libdir does not exist.
 
18305
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18306
 
 
18307
# If ld is used when linking, flag to hardcode \$libdir into
 
18308
# a binary during linking. This must work even if \$libdir does
 
18309
# not exist.
 
18310
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18311
 
 
18312
# Whether we need a single -rpath flag with a separated argument.
 
18313
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18314
 
 
18315
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18316
# resulting binary.
 
18317
hardcode_direct=$hardcode_direct_GCJ
 
18318
 
 
18319
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18320
# resulting binary.
 
18321
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18322
 
 
18323
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18324
# the resulting binary.
 
18325
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18326
 
 
18327
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18328
# and all subsequent libraries and executables linked against it.
 
18329
hardcode_automatic=$hardcode_automatic_GCJ
 
18330
 
 
18331
# Variables whose values should be saved in libtool wrapper scripts and
 
18332
# restored at relink time.
 
18333
variables_saved_for_relink="$variables_saved_for_relink"
 
18334
 
 
18335
# Whether libtool must link a program against all its dependency libraries.
 
18336
link_all_deplibs=$link_all_deplibs_GCJ
 
18337
 
 
18338
# Compile-time system search path for libraries
 
18339
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18340
 
 
18341
# Run-time system search path for libraries
 
18342
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18343
 
 
18344
# Fix the shell variable \$srcfile for the compiler.
 
18345
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18346
 
 
18347
# Set to yes if exported symbols are required.
 
18348
always_export_symbols=$always_export_symbols_GCJ
 
18349
 
 
18350
# The commands to list exported symbols.
 
18351
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18352
 
 
18353
# The commands to extract the exported symbol list from a shared archive.
 
18354
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18355
 
 
18356
# Symbols that should not be listed in the preloaded symbols.
 
18357
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18358
 
 
18359
# Symbols that must always be exported.
 
18360
include_expsyms=$lt_include_expsyms_GCJ
 
18361
 
 
18362
# ### END LIBTOOL TAG CONFIG: $tagname
 
18363
 
 
18364
__EOF__
 
18365
 
 
18366
 
 
18367
else
 
18368
  # If there is no Makefile yet, we rely on a make rule to execute
 
18369
  # `config.status --recheck' to rerun these tests and create the
 
18370
  # libtool script then.
 
18371
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18372
  if test -f "$ltmain_in"; then
 
18373
    test -f Makefile && make "$ltmain"
 
18374
  fi
 
18375
fi
 
18376
 
 
18377
 
 
18378
ac_ext=c
 
18379
ac_cpp='$CPP $CPPFLAGS'
 
18380
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18381
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18382
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18383
 
 
18384
CC="$lt_save_CC"
 
18385
 
 
18386
        else
 
18387
          tagname=""
 
18388
        fi
 
18389
        ;;
 
18390
 
 
18391
      RC)
 
18392
 
 
18393
 
 
18394
 
 
18395
# Source file extension for RC test sources.
 
18396
ac_ext=rc
 
18397
 
 
18398
# Object file extension for compiled RC test sources.
 
18399
objext=o
 
18400
objext_RC=$objext
 
18401
 
 
18402
# Code to be used in simple compile tests
 
18403
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18404
 
 
18405
# Code to be used in simple link tests
 
18406
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18407
 
 
18408
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18409
 
 
18410
# If no C compiler was specified, use CC.
 
18411
LTCC=${LTCC-"$CC"}
 
18412
 
 
18413
# Allow CC to be a program name with arguments.
 
18414
compiler=$CC
 
18415
 
 
18416
 
 
18417
# Allow CC to be a program name with arguments.
 
18418
lt_save_CC="$CC"
 
18419
CC=${RC-"windres"}
 
18420
compiler=$CC
 
18421
compiler_RC=$CC
 
18422
lt_cv_prog_compiler_c_o_RC=yes
 
18423
 
 
18424
# The else clause should only fire when bootstrapping the
 
18425
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18426
# with your package, and you will get complaints that there are
 
18427
# no rules to generate ltmain.sh.
 
18428
if test -f "$ltmain"; then
 
18429
  # See if we are running on zsh, and set the options which allow our commands through
 
18430
  # without removal of \ escapes.
 
18431
  if test -n "${ZSH_VERSION+set}" ; then
 
18432
    setopt NO_GLOB_SUBST
 
18433
  fi
 
18434
  # Now quote all the things that may contain metacharacters while being
 
18435
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18436
  # variables and quote the copies for generation of the libtool script.
 
18437
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18438
    SED SHELL STRIP \
 
18439
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18440
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18441
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18442
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18443
    lt_cv_sys_global_symbol_to_c_name_address \
 
18444
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18445
    old_postinstall_cmds old_postuninstall_cmds \
 
18446
    compiler_RC \
 
18447
    CC_RC \
 
18448
    LD_RC \
 
18449
    lt_prog_compiler_wl_RC \
 
18450
    lt_prog_compiler_pic_RC \
 
18451
    lt_prog_compiler_static_RC \
 
18452
    lt_prog_compiler_no_builtin_flag_RC \
 
18453
    export_dynamic_flag_spec_RC \
 
18454
    thread_safe_flag_spec_RC \
 
18455
    whole_archive_flag_spec_RC \
 
18456
    enable_shared_with_static_runtimes_RC \
 
18457
    old_archive_cmds_RC \
 
18458
    old_archive_from_new_cmds_RC \
 
18459
    predep_objects_RC \
 
18460
    postdep_objects_RC \
 
18461
    predeps_RC \
 
18462
    postdeps_RC \
 
18463
    compiler_lib_search_path_RC \
 
18464
    archive_cmds_RC \
 
18465
    archive_expsym_cmds_RC \
 
18466
    postinstall_cmds_RC \
 
18467
    postuninstall_cmds_RC \
 
18468
    old_archive_from_expsyms_cmds_RC \
 
18469
    allow_undefined_flag_RC \
 
18470
    no_undefined_flag_RC \
 
18471
    export_symbols_cmds_RC \
 
18472
    hardcode_libdir_flag_spec_RC \
 
18473
    hardcode_libdir_flag_spec_ld_RC \
 
18474
    hardcode_libdir_separator_RC \
 
18475
    hardcode_automatic_RC \
 
18476
    module_cmds_RC \
 
18477
    module_expsym_cmds_RC \
 
18478
    lt_cv_prog_compiler_c_o_RC \
 
18479
    exclude_expsyms_RC \
 
18480
    include_expsyms_RC; do
 
18481
 
 
18482
    case $var in
 
18483
    old_archive_cmds_RC | \
 
18484
    old_archive_from_new_cmds_RC | \
 
18485
    archive_cmds_RC | \
 
18486
    archive_expsym_cmds_RC | \
 
18487
    module_cmds_RC | \
 
18488
    module_expsym_cmds_RC | \
 
18489
    old_archive_from_expsyms_cmds_RC | \
 
18490
    export_symbols_cmds_RC | \
 
18491
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18492
    postinstall_cmds | postuninstall_cmds | \
 
18493
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18494
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18495
      # Double-quote double-evaled strings.
 
18496
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18497
      ;;
 
18498
    *)
 
18499
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18500
      ;;
 
18501
    esac
 
18502
  done
 
18503
 
 
18504
  case $lt_echo in
 
18505
  *'\$0 --fallback-echo"')
 
18506
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18507
    ;;
 
18508
  esac
 
18509
 
 
18510
cfgfile="$ofile"
 
18511
 
 
18512
  cat <<__EOF__ >> "$cfgfile"
 
18513
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18514
 
 
18515
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18516
 
 
18517
# Shell to use when invoking shell scripts.
 
18518
SHELL=$lt_SHELL
 
18519
 
 
18520
# Whether or not to build shared libraries.
 
18521
build_libtool_libs=$enable_shared
 
18522
 
 
18523
# Whether or not to build static libraries.
 
18524
build_old_libs=$enable_static
 
18525
 
 
18526
# Whether or not to add -lc for building shared libraries.
 
18527
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18528
 
 
18529
# Whether or not to disallow shared libs when runtime libs are static
 
18530
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18531
 
 
18532
# Whether or not to optimize for fast installation.
 
18533
fast_install=$enable_fast_install
 
18534
 
 
18535
# The host system.
 
18536
host_alias=$host_alias
 
18537
host=$host
 
18538
host_os=$host_os
 
18539
 
 
18540
# The build system.
 
18541
build_alias=$build_alias
 
18542
build=$build
 
18543
build_os=$build_os
 
18544
 
 
18545
# An echo program that does not interpret backslashes.
 
18546
echo=$lt_echo
 
18547
 
 
18548
# The archiver.
 
18549
AR=$lt_AR
 
18550
AR_FLAGS=$lt_AR_FLAGS
 
18551
 
 
18552
# A C compiler.
 
18553
LTCC=$lt_LTCC
 
18554
 
 
18555
# A language-specific compiler.
 
18556
CC=$lt_compiler_RC
 
18557
 
 
18558
# Is the compiler the GNU C compiler?
 
18559
with_gcc=$GCC_RC
 
18560
 
 
18561
# An ERE matcher.
 
18562
EGREP=$lt_EGREP
 
18563
 
 
18564
# The linker used to build libraries.
 
18565
LD=$lt_LD_RC
 
18566
 
 
18567
# Whether we need hard or soft links.
 
18568
LN_S=$lt_LN_S
 
18569
 
 
18570
# A BSD-compatible nm program.
 
18571
NM=$lt_NM
 
18572
 
 
18573
# A symbol stripping program
 
18574
STRIP=$lt_STRIP
 
18575
 
 
18576
# Used to examine libraries when file_magic_cmd begins "file"
 
18577
MAGIC_CMD=$MAGIC_CMD
 
18578
 
 
18579
# Used on cygwin: DLL creation program.
 
18580
DLLTOOL="$DLLTOOL"
 
18581
 
 
18582
# Used on cygwin: object dumper.
 
18583
OBJDUMP="$OBJDUMP"
 
18584
 
 
18585
# Used on cygwin: assembler.
 
18586
AS="$AS"
 
18587
 
 
18588
# The name of the directory that contains temporary libtool files.
 
18589
objdir=$objdir
 
18590
 
 
18591
# How to create reloadable object files.
 
18592
reload_flag=$lt_reload_flag
 
18593
reload_cmds=$lt_reload_cmds
 
18594
 
 
18595
# How to pass a linker flag through the compiler.
 
18596
wl=$lt_lt_prog_compiler_wl_RC
 
18597
 
 
18598
# Object file suffix (normally "o").
 
18599
objext="$ac_objext"
 
18600
 
 
18601
# Old archive suffix (normally "a").
 
18602
libext="$libext"
 
18603
 
 
18604
# Shared library suffix (normally ".so").
 
18605
shrext_cmds='$shrext_cmds'
 
18606
 
 
18607
# Executable file suffix (normally "").
 
18608
exeext="$exeext"
 
18609
 
 
18610
# Additional compiler flags for building library objects.
 
18611
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18612
pic_mode=$pic_mode
 
18613
 
 
18614
# What is the maximum length of a command?
 
18615
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18616
 
 
18617
# Does compiler simultaneously support -c and -o options?
 
18618
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18619
 
 
18620
# Must we lock files when doing compilation ?
 
18621
need_locks=$lt_need_locks
 
18622
 
 
18623
# Do we need the lib prefix for modules?
 
18624
need_lib_prefix=$need_lib_prefix
 
18625
 
 
18626
# Do we need a version for libraries?
 
18627
need_version=$need_version
 
18628
 
 
18629
# Whether dlopen is supported.
 
18630
dlopen_support=$enable_dlopen
 
18631
 
 
18632
# Whether dlopen of programs is supported.
 
18633
dlopen_self=$enable_dlopen_self
 
18634
 
 
18635
# Whether dlopen of statically linked programs is supported.
 
18636
dlopen_self_static=$enable_dlopen_self_static
 
18637
 
 
18638
# Compiler flag to prevent dynamic linking.
 
18639
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18640
 
 
18641
# Compiler flag to turn off builtin functions.
 
18642
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18643
 
 
18644
# Compiler flag to allow reflexive dlopens.
 
18645
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18646
 
 
18647
# Compiler flag to generate shared objects directly from archives.
 
18648
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18649
 
 
18650
# Compiler flag to generate thread-safe objects.
 
18651
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18652
 
 
18653
# Library versioning type.
 
18654
version_type=$version_type
 
18655
 
 
18656
# Format of library name prefix.
 
18657
libname_spec=$lt_libname_spec
 
18658
 
 
18659
# List of archive names.  First name is the real one, the rest are links.
 
18660
# The last name is the one that the linker finds with -lNAME.
 
18661
library_names_spec=$lt_library_names_spec
 
18662
 
 
18663
# The coded name of the library, if different from the real name.
 
18664
soname_spec=$lt_soname_spec
 
18665
 
 
18666
# Commands used to build and install an old-style archive.
 
18667
RANLIB=$lt_RANLIB
 
18668
old_archive_cmds=$lt_old_archive_cmds_RC
 
18669
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18670
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18671
 
 
18672
# Create an old-style archive from a shared archive.
 
18673
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18674
 
 
18675
# Create a temporary old-style archive to link instead of a shared archive.
 
18676
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18677
 
 
18678
# Commands used to build and install a shared archive.
 
18679
archive_cmds=$lt_archive_cmds_RC
 
18680
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18681
postinstall_cmds=$lt_postinstall_cmds
 
18682
postuninstall_cmds=$lt_postuninstall_cmds
 
18683
 
 
18684
# Commands used to build a loadable module (assumed same as above if empty)
 
18685
module_cmds=$lt_module_cmds_RC
 
18686
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18687
 
 
18688
# Commands to strip libraries.
 
18689
old_striplib=$lt_old_striplib
 
18690
striplib=$lt_striplib
 
18691
 
 
18692
# Dependencies to place before the objects being linked to create a
 
18693
# shared library.
 
18694
predep_objects=$lt_predep_objects_RC
 
18695
 
 
18696
# Dependencies to place after the objects being linked to create a
 
18697
# shared library.
 
18698
postdep_objects=$lt_postdep_objects_RC
 
18699
 
 
18700
# Dependencies to place before the objects being linked to create a
 
18701
# shared library.
 
18702
predeps=$lt_predeps_RC
 
18703
 
 
18704
# Dependencies to place after the objects being linked to create a
 
18705
# shared library.
 
18706
postdeps=$lt_postdeps_RC
 
18707
 
 
18708
# The library search path used internally by the compiler when linking
 
18709
# a shared library.
 
18710
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18711
 
 
18712
# Method to check whether dependent libraries are shared objects.
 
18713
deplibs_check_method=$lt_deplibs_check_method
 
18714
 
 
18715
# Command to use when deplibs_check_method == file_magic.
 
18716
file_magic_cmd=$lt_file_magic_cmd
 
18717
 
 
18718
# Flag that allows shared libraries with undefined symbols to be built.
 
18719
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18720
 
 
18721
# Flag that forces no undefined symbols.
 
18722
no_undefined_flag=$lt_no_undefined_flag_RC
 
18723
 
 
18724
# Commands used to finish a libtool library installation in a directory.
 
18725
finish_cmds=$lt_finish_cmds
 
18726
 
 
18727
# Same as above, but a single script fragment to be evaled but not shown.
 
18728
finish_eval=$lt_finish_eval
 
18729
 
 
18730
# Take the output of nm and produce a listing of raw symbols and C names.
 
18731
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18732
 
 
18733
# Transform the output of nm in a proper C declaration
 
18734
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18735
 
 
18736
# Transform the output of nm in a C name address pair
 
18737
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18738
 
 
18739
# This is the shared library runtime path variable.
 
18740
runpath_var=$runpath_var
 
18741
 
 
18742
# This is the shared library path variable.
 
18743
shlibpath_var=$shlibpath_var
 
18744
 
 
18745
# Is shlibpath searched before the hard-coded library search path?
 
18746
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18747
 
 
18748
# How to hardcode a shared library path into an executable.
 
18749
hardcode_action=$hardcode_action_RC
 
18750
 
 
18751
# Whether we should hardcode library paths into libraries.
 
18752
hardcode_into_libs=$hardcode_into_libs
 
18753
 
 
18754
# Flag to hardcode \$libdir into a binary during linking.
 
18755
# This must work even if \$libdir does not exist.
 
18756
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18757
 
 
18758
# If ld is used when linking, flag to hardcode \$libdir into
 
18759
# a binary during linking. This must work even if \$libdir does
 
18760
# not exist.
 
18761
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18762
 
 
18763
# Whether we need a single -rpath flag with a separated argument.
 
18764
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18765
 
 
18766
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18767
# resulting binary.
 
18768
hardcode_direct=$hardcode_direct_RC
 
18769
 
 
18770
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18771
# resulting binary.
 
18772
hardcode_minus_L=$hardcode_minus_L_RC
 
18773
 
 
18774
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18775
# the resulting binary.
 
18776
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18777
 
 
18778
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18779
# and all subsequent libraries and executables linked against it.
 
18780
hardcode_automatic=$hardcode_automatic_RC
 
18781
 
 
18782
# Variables whose values should be saved in libtool wrapper scripts and
 
18783
# restored at relink time.
 
18784
variables_saved_for_relink="$variables_saved_for_relink"
 
18785
 
 
18786
# Whether libtool must link a program against all its dependency libraries.
 
18787
link_all_deplibs=$link_all_deplibs_RC
 
18788
 
 
18789
# Compile-time system search path for libraries
 
18790
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18791
 
 
18792
# Run-time system search path for libraries
 
18793
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18794
 
 
18795
# Fix the shell variable \$srcfile for the compiler.
 
18796
fix_srcfile_path="$fix_srcfile_path_RC"
 
18797
 
 
18798
# Set to yes if exported symbols are required.
 
18799
always_export_symbols=$always_export_symbols_RC
 
18800
 
 
18801
# The commands to list exported symbols.
 
18802
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
18803
 
 
18804
# The commands to extract the exported symbol list from a shared archive.
 
18805
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18806
 
 
18807
# Symbols that should not be listed in the preloaded symbols.
 
18808
exclude_expsyms=$lt_exclude_expsyms_RC
 
18809
 
 
18810
# Symbols that must always be exported.
 
18811
include_expsyms=$lt_include_expsyms_RC
 
18812
 
 
18813
# ### END LIBTOOL TAG CONFIG: $tagname
 
18814
 
 
18815
__EOF__
 
18816
 
 
18817
 
 
18818
else
 
18819
  # If there is no Makefile yet, we rely on a make rule to execute
 
18820
  # `config.status --recheck' to rerun these tests and create the
 
18821
  # libtool script then.
 
18822
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18823
  if test -f "$ltmain_in"; then
 
18824
    test -f Makefile && make "$ltmain"
 
18825
  fi
 
18826
fi
 
18827
 
 
18828
 
 
18829
ac_ext=c
 
18830
ac_cpp='$CPP $CPPFLAGS'
 
18831
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18832
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18833
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18834
 
 
18835
CC="$lt_save_CC"
 
18836
 
 
18837
        ;;
 
18838
 
 
18839
      *)
 
18840
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
18841
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
18842
   { (exit 1); exit 1; }; }
 
18843
        ;;
 
18844
      esac
 
18845
 
 
18846
      # Append the new tag name to the list of available tags.
 
18847
      if test -n "$tagname" ; then
 
18848
      available_tags="$available_tags $tagname"
 
18849
    fi
 
18850
    fi
 
18851
  done
 
18852
  IFS="$lt_save_ifs"
 
18853
 
 
18854
  # Now substitute the updated list of available tags.
 
18855
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
18856
    mv "${ofile}T" "$ofile"
 
18857
    chmod +x "$ofile"
 
18858
  else
 
18859
    rm -f "${ofile}T"
 
18860
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
18861
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
18862
   { (exit 1); exit 1; }; }
 
18863
  fi
 
18864
fi
7505
18865
 
7506
18866
 
7507
18867
 
7516
18876
 
7517
18877
 
7518
18878
 
 
18879
 
 
18880
 
 
18881
 
 
18882
 
 
18883
 
 
18884
 
 
18885
 
 
18886
 
 
18887
 
 
18888
 
 
18889
 
 
18890
 
 
18891
 
 
18892
 
 
18893
 
 
18894
 
 
18895
 
 
18896
 
7519
18897
case "$host_os" in
7520
18898
  *win32) exeext='.exe';;
7521
18899
  *) exeext='';;
7522
18900
esac
7523
18901
 
7524
18902
 
7525
 
 
7526
 
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
7527
 
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
7528
 
if test "${am_cv_prog_cc_stdc+set}" = set; then
7529
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7530
 
else
7531
 
  am_cv_prog_cc_stdc=no
7532
 
ac_save_CC="$CC"
7533
 
# Don't try gcc -ansi; that turns off useful extensions and
7534
 
# breaks some systems' header files.
7535
 
# AIX                   -qlanglvl=ansi
7536
 
# Ultrix and OSF/1      -std1
7537
 
# HP-UX                 -Aa -D_HPUX_SOURCE
7538
 
for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE"
7539
 
do
7540
 
  CC="$ac_save_CC $ac_arg"
7541
 
  cat >conftest.$ac_ext <<_ACEOF
7542
 
#line $LINENO "configure"
7543
 
/* confdefs.h.  */
7544
 
_ACEOF
7545
 
cat confdefs.h >>conftest.$ac_ext
7546
 
cat >>conftest.$ac_ext <<_ACEOF
7547
 
/* end confdefs.h.  */
7548
 
#if !defined(__STDC__)
7549
 
choke me
7550
 
#endif
7551
 
/* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
7552
 
#ifdef _SEQUENT_
7553
 
# include <sys/types.h>
7554
 
# include <sys/stat.h>
7555
 
#endif
7556
 
 
7557
 
int
7558
 
main ()
7559
 
{
7560
 
 
7561
 
int test (int i, double x);
7562
 
struct s1 {int (*f) (int a);};
7563
 
struct s2 {int (*f) (double a);};
7564
 
  ;
7565
 
  return 0;
7566
 
}
7567
 
_ACEOF
7568
 
rm -f conftest.$ac_objext
7569
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7570
 
  (eval $ac_compile) 2>&5
7571
 
  ac_status=$?
7572
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573
 
  (exit $ac_status); } &&
7574
 
         { ac_try='test -s conftest.$ac_objext'
7575
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576
 
  (eval $ac_try) 2>&5
7577
 
  ac_status=$?
7578
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579
 
  (exit $ac_status); }; }; then
7580
 
  am_cv_prog_cc_stdc="$ac_arg"; break
7581
 
else
7582
 
  echo "$as_me: failed program was:" >&5
7583
 
sed 's/^/| /' conftest.$ac_ext >&5
7584
 
 
7585
 
fi
7586
 
rm -f conftest.$ac_objext conftest.$ac_ext
7587
 
done
7588
 
CC="$ac_save_CC"
7589
 
 
7590
 
fi
7591
 
 
7592
 
echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
7593
 
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
7594
 
case "x$am_cv_prog_cc_stdc" in
7595
 
  x|xno) ;;
7596
 
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
7597
 
esac
7598
 
 
7599
 
 
7600
 
 
7601
 
echo "$as_me:$LINENO: checking for function prototypes" >&5
7602
 
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
7603
 
if test "$am_cv_prog_cc_stdc" != no; then
7604
 
  echo "$as_me:$LINENO: result: yes" >&5
7605
 
echo "${ECHO_T}yes" >&6
7606
 
  cat >>confdefs.h <<\_ACEOF
7607
 
#define PROTOTYPES 1
7608
 
_ACEOF
7609
 
 
7610
 
  U= ANSI2KNR=
7611
 
else
7612
 
  echo "$as_me:$LINENO: result: no" >&5
7613
 
echo "${ECHO_T}no" >&6
7614
 
  U=_ ANSI2KNR=./ansi2knr
7615
 
  # Ensure some checks needed by ansi2knr itself.
7616
 
  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7617
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7618
 
if test "${ac_cv_header_stdc+set}" = set; then
7619
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7620
 
else
7621
 
  cat >conftest.$ac_ext <<_ACEOF
7622
 
#line $LINENO "configure"
7623
 
/* confdefs.h.  */
7624
 
_ACEOF
7625
 
cat confdefs.h >>conftest.$ac_ext
7626
 
cat >>conftest.$ac_ext <<_ACEOF
7627
 
/* end confdefs.h.  */
7628
 
#include <stdlib.h>
7629
 
#include <stdarg.h>
7630
 
#include <string.h>
7631
 
#include <float.h>
7632
 
 
7633
 
int
7634
 
main ()
7635
 
{
7636
 
 
7637
 
  ;
7638
 
  return 0;
7639
 
}
7640
 
_ACEOF
7641
 
rm -f conftest.$ac_objext
7642
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7643
 
  (eval $ac_compile) 2>&5
7644
 
  ac_status=$?
7645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646
 
  (exit $ac_status); } &&
7647
 
         { ac_try='test -s conftest.$ac_objext'
7648
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649
 
  (eval $ac_try) 2>&5
7650
 
  ac_status=$?
7651
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652
 
  (exit $ac_status); }; }; then
7653
 
  ac_cv_header_stdc=yes
7654
 
else
7655
 
  echo "$as_me: failed program was:" >&5
7656
 
sed 's/^/| /' conftest.$ac_ext >&5
7657
 
 
7658
 
ac_cv_header_stdc=no
7659
 
fi
7660
 
rm -f conftest.$ac_objext conftest.$ac_ext
7661
 
 
7662
 
if test $ac_cv_header_stdc = yes; then
7663
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7664
 
  cat >conftest.$ac_ext <<_ACEOF
7665
 
#line $LINENO "configure"
7666
 
/* confdefs.h.  */
7667
 
_ACEOF
7668
 
cat confdefs.h >>conftest.$ac_ext
7669
 
cat >>conftest.$ac_ext <<_ACEOF
7670
 
/* end confdefs.h.  */
7671
 
#include <string.h>
7672
 
 
7673
 
_ACEOF
7674
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7675
 
  $EGREP "memchr" >/dev/null 2>&1; then
7676
 
  :
7677
 
else
7678
 
  ac_cv_header_stdc=no
7679
 
fi
7680
 
rm -f conftest*
7681
 
 
7682
 
fi
7683
 
 
7684
 
if test $ac_cv_header_stdc = yes; then
7685
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7686
 
  cat >conftest.$ac_ext <<_ACEOF
7687
 
#line $LINENO "configure"
7688
 
/* confdefs.h.  */
7689
 
_ACEOF
7690
 
cat confdefs.h >>conftest.$ac_ext
7691
 
cat >>conftest.$ac_ext <<_ACEOF
7692
 
/* end confdefs.h.  */
7693
 
#include <stdlib.h>
7694
 
 
7695
 
_ACEOF
7696
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7697
 
  $EGREP "free" >/dev/null 2>&1; then
7698
 
  :
7699
 
else
7700
 
  ac_cv_header_stdc=no
7701
 
fi
7702
 
rm -f conftest*
7703
 
 
7704
 
fi
7705
 
 
7706
 
if test $ac_cv_header_stdc = yes; then
7707
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7708
 
  if test "$cross_compiling" = yes; then
7709
 
  :
7710
 
else
7711
 
  cat >conftest.$ac_ext <<_ACEOF
7712
 
#line $LINENO "configure"
7713
 
/* confdefs.h.  */
7714
 
_ACEOF
7715
 
cat confdefs.h >>conftest.$ac_ext
7716
 
cat >>conftest.$ac_ext <<_ACEOF
7717
 
/* end confdefs.h.  */
7718
 
#include <ctype.h>
7719
 
#if ((' ' & 0x0FF) == 0x020)
7720
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7721
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7722
 
#else
7723
 
# define ISLOWER(c) \
7724
 
                   (('a' <= (c) && (c) <= 'i') \
7725
 
                     || ('j' <= (c) && (c) <= 'r') \
7726
 
                     || ('s' <= (c) && (c) <= 'z'))
7727
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7728
 
#endif
7729
 
 
7730
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7731
 
int
7732
 
main ()
7733
 
{
7734
 
  int i;
7735
 
  for (i = 0; i < 256; i++)
7736
 
    if (XOR (islower (i), ISLOWER (i))
7737
 
        || toupper (i) != TOUPPER (i))
7738
 
      exit(2);
7739
 
  exit (0);
7740
 
}
7741
 
_ACEOF
7742
 
rm -f conftest$ac_exeext
7743
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7744
 
  (eval $ac_link) 2>&5
7745
 
  ac_status=$?
7746
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7748
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749
 
  (eval $ac_try) 2>&5
7750
 
  ac_status=$?
7751
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752
 
  (exit $ac_status); }; }; then
7753
 
  :
7754
 
else
7755
 
  echo "$as_me: program exited with status $ac_status" >&5
7756
 
echo "$as_me: failed program was:" >&5
7757
 
sed 's/^/| /' conftest.$ac_ext >&5
7758
 
 
7759
 
( exit $ac_status )
7760
 
ac_cv_header_stdc=no
7761
 
fi
7762
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7763
 
fi
7764
 
fi
7765
 
fi
7766
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7767
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7768
 
if test $ac_cv_header_stdc = yes; then
7769
 
 
7770
 
cat >>confdefs.h <<\_ACEOF
7771
 
#define STDC_HEADERS 1
7772
 
_ACEOF
7773
 
 
7774
 
fi
7775
 
 
7776
 
 
7777
 
for ac_header in string.h
7778
 
do
7779
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7780
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7781
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
7782
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7783
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7785
 
fi
7786
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7787
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7788
 
else
7789
 
  # Is the header compilable?
7790
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7791
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7792
 
cat >conftest.$ac_ext <<_ACEOF
7793
 
#line $LINENO "configure"
7794
 
/* confdefs.h.  */
7795
 
_ACEOF
7796
 
cat confdefs.h >>conftest.$ac_ext
7797
 
cat >>conftest.$ac_ext <<_ACEOF
7798
 
/* end confdefs.h.  */
7799
 
$ac_includes_default
7800
 
#include <$ac_header>
7801
 
_ACEOF
7802
 
rm -f conftest.$ac_objext
7803
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7804
 
  (eval $ac_compile) 2>&5
7805
 
  ac_status=$?
7806
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807
 
  (exit $ac_status); } &&
7808
 
         { ac_try='test -s conftest.$ac_objext'
7809
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810
 
  (eval $ac_try) 2>&5
7811
 
  ac_status=$?
7812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813
 
  (exit $ac_status); }; }; then
7814
 
  ac_header_compiler=yes
7815
 
else
7816
 
  echo "$as_me: failed program was:" >&5
7817
 
sed 's/^/| /' conftest.$ac_ext >&5
7818
 
 
7819
 
ac_header_compiler=no
7820
 
fi
7821
 
rm -f conftest.$ac_objext conftest.$ac_ext
7822
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7823
 
echo "${ECHO_T}$ac_header_compiler" >&6
7824
 
 
7825
 
# Is the header present?
7826
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7827
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7828
 
cat >conftest.$ac_ext <<_ACEOF
7829
 
#line $LINENO "configure"
7830
 
/* confdefs.h.  */
7831
 
_ACEOF
7832
 
cat confdefs.h >>conftest.$ac_ext
7833
 
cat >>conftest.$ac_ext <<_ACEOF
7834
 
/* end confdefs.h.  */
7835
 
#include <$ac_header>
7836
 
_ACEOF
7837
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7838
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7839
 
  ac_status=$?
7840
 
  grep -v '^ *+' conftest.er1 >conftest.err
7841
 
  rm -f conftest.er1
7842
 
  cat conftest.err >&5
7843
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844
 
  (exit $ac_status); } >/dev/null; then
7845
 
  if test -s conftest.err; then
7846
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7847
 
  else
7848
 
    ac_cpp_err=
7849
 
  fi
7850
 
else
7851
 
  ac_cpp_err=yes
7852
 
fi
7853
 
if test -z "$ac_cpp_err"; then
7854
 
  ac_header_preproc=yes
7855
 
else
7856
 
  echo "$as_me: failed program was:" >&5
7857
 
sed 's/^/| /' conftest.$ac_ext >&5
7858
 
 
7859
 
  ac_header_preproc=no
7860
 
fi
7861
 
rm -f conftest.err conftest.$ac_ext
7862
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7863
 
echo "${ECHO_T}$ac_header_preproc" >&6
7864
 
 
7865
 
# So?  What about this header?
7866
 
case $ac_header_compiler:$ac_header_preproc in
7867
 
  yes:no )
7868
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7869
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7870
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7871
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7872
 
    (
7873
 
      cat <<\_ASBOX
7874
 
## ------------------------------------ ##
7875
 
## Report this to bug-autoconf@gnu.org. ##
7876
 
## ------------------------------------ ##
7877
 
_ASBOX
7878
 
    ) |
7879
 
      sed "s/^/$as_me: WARNING:     /" >&2
7880
 
    ;;
7881
 
  no:yes )
7882
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7883
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7884
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7885
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7886
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7888
 
    (
7889
 
      cat <<\_ASBOX
7890
 
## ------------------------------------ ##
7891
 
## Report this to bug-autoconf@gnu.org. ##
7892
 
## ------------------------------------ ##
7893
 
_ASBOX
7894
 
    ) |
7895
 
      sed "s/^/$as_me: WARNING:     /" >&2
7896
 
    ;;
7897
 
esac
7898
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
7899
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7900
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7901
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7902
 
else
7903
 
  eval "$as_ac_Header=$ac_header_preproc"
7904
 
fi
7905
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7906
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7907
 
 
7908
 
fi
7909
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7910
 
  cat >>confdefs.h <<_ACEOF
7911
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7912
 
_ACEOF
7913
 
 
7914
 
fi
7915
 
 
7916
 
done
7917
 
 
7918
 
fi
7919
 
 
7920
 
 
7921
18903
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7922
18904
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7923
18905
if test "${ac_cv_c_const+set}" = set; then
7924
18906
  echo $ECHO_N "(cached) $ECHO_C" >&6
7925
18907
else
7926
18908
  cat >conftest.$ac_ext <<_ACEOF
7927
 
#line $LINENO "configure"
7928
18909
/* confdefs.h.  */
7929
18910
_ACEOF
7930
18911
cat confdefs.h >>conftest.$ac_ext
7987
18968
_ACEOF
7988
18969
rm -f conftest.$ac_objext
7989
18970
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7990
 
  (eval $ac_compile) 2>&5
 
18971
  (eval $ac_compile) 2>conftest.er1
7991
18972
  ac_status=$?
 
18973
  grep -v '^ *+' conftest.er1 >conftest.err
 
18974
  rm -f conftest.er1
 
18975
  cat conftest.err >&5
7992
18976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993
18977
  (exit $ac_status); } &&
7994
 
         { ac_try='test -s conftest.$ac_objext'
 
18978
         { ac_try='test -z "$ac_c_werror_flag"
 
18979
                         || test ! -s conftest.err'
 
18980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18981
  (eval $ac_try) 2>&5
 
18982
  ac_status=$?
 
18983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18984
  (exit $ac_status); }; } &&
 
18985
         { ac_try='test -s conftest.$ac_objext'
7995
18986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996
18987
  (eval $ac_try) 2>&5
7997
18988
  ac_status=$?
8004
18995
 
8005
18996
ac_cv_c_const=no
8006
18997
fi
8007
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
18998
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8008
18999
fi
8009
19000
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8010
19001
echo "${ECHO_T}$ac_cv_c_const" >&6
8024
19015
  ac_cv_c_inline=no
8025
19016
for ac_kw in inline __inline__ __inline; do
8026
19017
  cat >conftest.$ac_ext <<_ACEOF
8027
 
#line $LINENO "configure"
8028
19018
/* confdefs.h.  */
8029
19019
_ACEOF
8030
19020
cat confdefs.h >>conftest.$ac_ext
8039
19029
_ACEOF
8040
19030
rm -f conftest.$ac_objext
8041
19031
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042
 
  (eval $ac_compile) 2>&5
 
19032
  (eval $ac_compile) 2>conftest.er1
8043
19033
  ac_status=$?
 
19034
  grep -v '^ *+' conftest.er1 >conftest.err
 
19035
  rm -f conftest.er1
 
19036
  cat conftest.err >&5
8044
19037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045
19038
  (exit $ac_status); } &&
8046
 
         { ac_try='test -s conftest.$ac_objext'
 
19039
         { ac_try='test -z "$ac_c_werror_flag"
 
19040
                         || test ! -s conftest.err'
 
19041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19042
  (eval $ac_try) 2>&5
 
19043
  ac_status=$?
 
19044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19045
  (exit $ac_status); }; } &&
 
19046
         { ac_try='test -s conftest.$ac_objext'
8047
19047
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048
19048
  (eval $ac_try) 2>&5
8049
19049
  ac_status=$?
8055
19055
sed 's/^/| /' conftest.$ac_ext >&5
8056
19056
 
8057
19057
fi
8058
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
19058
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8059
19059
done
8060
19060
 
8061
19061
fi
8062
19062
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8063
19063
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
19064
 
 
19065
 
8064
19066
case $ac_cv_c_inline in
8065
19067
  inline | yes) ;;
8066
 
  no)
 
19068
  *)
 
19069
    case $ac_cv_c_inline in
 
19070
      no) ac_val=;;
 
19071
      *) ac_val=$ac_cv_c_inline;;
 
19072
    esac
 
19073
    cat >>confdefs.h <<_ACEOF
 
19074
#ifndef __cplusplus
 
19075
#define inline $ac_val
 
19076
#endif
 
19077
_ACEOF
 
19078
    ;;
 
19079
esac
 
19080
 
 
19081
echo "$as_me:$LINENO: checking for working volatile" >&5
 
19082
echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
 
19083
if test "${ac_cv_c_volatile+set}" = set; then
 
19084
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19085
else
 
19086
  cat >conftest.$ac_ext <<_ACEOF
 
19087
/* confdefs.h.  */
 
19088
_ACEOF
 
19089
cat confdefs.h >>conftest.$ac_ext
 
19090
cat >>conftest.$ac_ext <<_ACEOF
 
19091
/* end confdefs.h.  */
 
19092
 
 
19093
int
 
19094
main ()
 
19095
{
 
19096
 
 
19097
volatile int x;
 
19098
int * volatile y;
 
19099
  ;
 
19100
  return 0;
 
19101
}
 
19102
_ACEOF
 
19103
rm -f conftest.$ac_objext
 
19104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19105
  (eval $ac_compile) 2>conftest.er1
 
19106
  ac_status=$?
 
19107
  grep -v '^ *+' conftest.er1 >conftest.err
 
19108
  rm -f conftest.er1
 
19109
  cat conftest.err >&5
 
19110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19111
  (exit $ac_status); } &&
 
19112
         { ac_try='test -z "$ac_c_werror_flag"
 
19113
                         || test ! -s conftest.err'
 
19114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19115
  (eval $ac_try) 2>&5
 
19116
  ac_status=$?
 
19117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19118
  (exit $ac_status); }; } &&
 
19119
         { ac_try='test -s conftest.$ac_objext'
 
19120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19121
  (eval $ac_try) 2>&5
 
19122
  ac_status=$?
 
19123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19124
  (exit $ac_status); }; }; then
 
19125
  ac_cv_c_volatile=yes
 
19126
else
 
19127
  echo "$as_me: failed program was:" >&5
 
19128
sed 's/^/| /' conftest.$ac_ext >&5
 
19129
 
 
19130
ac_cv_c_volatile=no
 
19131
fi
 
19132
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19133
fi
 
19134
echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
 
19135
echo "${ECHO_T}$ac_cv_c_volatile" >&6
 
19136
if test $ac_cv_c_volatile = no; then
 
19137
 
8067
19138
cat >>confdefs.h <<\_ACEOF
8068
 
#define inline
8069
 
_ACEOF
8070
 
 ;;
8071
 
  *)  cat >>confdefs.h <<_ACEOF
8072
 
#define inline $ac_cv_c_inline
8073
 
_ACEOF
8074
 
 ;;
8075
 
esac
8076
 
 
8077
 
echo "$as_me:$LINENO: checking for size_t" >&5
8078
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8079
 
if test "${ac_cv_type_size_t+set}" = set; then
8080
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8081
 
else
8082
 
  cat >conftest.$ac_ext <<_ACEOF
8083
 
#line $LINENO "configure"
8084
 
/* confdefs.h.  */
8085
 
_ACEOF
8086
 
cat confdefs.h >>conftest.$ac_ext
8087
 
cat >>conftest.$ac_ext <<_ACEOF
8088
 
/* end confdefs.h.  */
8089
 
$ac_includes_default
8090
 
int
8091
 
main ()
8092
 
{
8093
 
if ((size_t *) 0)
8094
 
  return 0;
8095
 
if (sizeof (size_t))
8096
 
  return 0;
8097
 
  ;
8098
 
  return 0;
8099
 
}
8100
 
_ACEOF
8101
 
rm -f conftest.$ac_objext
8102
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103
 
  (eval $ac_compile) 2>&5
8104
 
  ac_status=$?
8105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106
 
  (exit $ac_status); } &&
8107
 
         { ac_try='test -s conftest.$ac_objext'
8108
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109
 
  (eval $ac_try) 2>&5
8110
 
  ac_status=$?
8111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112
 
  (exit $ac_status); }; }; then
8113
 
  ac_cv_type_size_t=yes
8114
 
else
8115
 
  echo "$as_me: failed program was:" >&5
8116
 
sed 's/^/| /' conftest.$ac_ext >&5
8117
 
 
8118
 
ac_cv_type_size_t=no
8119
 
fi
8120
 
rm -f conftest.$ac_objext conftest.$ac_ext
8121
 
fi
8122
 
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8123
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
8124
 
if test $ac_cv_type_size_t = yes; then
8125
 
  :
8126
 
else
8127
 
 
8128
 
cat >>confdefs.h <<_ACEOF
8129
 
#define size_t unsigned
8130
 
_ACEOF
8131
 
 
8132
 
fi
8133
 
 
8134
 
echo "$as_me:$LINENO: checking for pid_t" >&5
8135
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8136
 
if test "${ac_cv_type_pid_t+set}" = set; then
8137
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8138
 
else
8139
 
  cat >conftest.$ac_ext <<_ACEOF
8140
 
#line $LINENO "configure"
8141
 
/* confdefs.h.  */
8142
 
_ACEOF
8143
 
cat confdefs.h >>conftest.$ac_ext
8144
 
cat >>conftest.$ac_ext <<_ACEOF
8145
 
/* end confdefs.h.  */
8146
 
$ac_includes_default
8147
 
int
8148
 
main ()
8149
 
{
8150
 
if ((pid_t *) 0)
8151
 
  return 0;
8152
 
if (sizeof (pid_t))
8153
 
  return 0;
8154
 
  ;
8155
 
  return 0;
8156
 
}
8157
 
_ACEOF
8158
 
rm -f conftest.$ac_objext
8159
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8160
 
  (eval $ac_compile) 2>&5
8161
 
  ac_status=$?
8162
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163
 
  (exit $ac_status); } &&
8164
 
         { ac_try='test -s conftest.$ac_objext'
8165
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166
 
  (eval $ac_try) 2>&5
8167
 
  ac_status=$?
8168
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169
 
  (exit $ac_status); }; }; then
8170
 
  ac_cv_type_pid_t=yes
8171
 
else
8172
 
  echo "$as_me: failed program was:" >&5
8173
 
sed 's/^/| /' conftest.$ac_ext >&5
8174
 
 
8175
 
ac_cv_type_pid_t=no
8176
 
fi
8177
 
rm -f conftest.$ac_objext conftest.$ac_ext
8178
 
fi
8179
 
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8180
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8181
 
if test $ac_cv_type_pid_t = yes; then
8182
 
  :
8183
 
else
8184
 
 
8185
 
cat >>confdefs.h <<_ACEOF
8186
 
#define pid_t int
 
19139
#define volatile
8187
19140
_ACEOF
8188
19141
 
8189
19142
fi
8195
19148
else
8196
19149
  # See if sys/param.h defines the BYTE_ORDER macro.
8197
19150
cat >conftest.$ac_ext <<_ACEOF
8198
 
#line $LINENO "configure"
8199
19151
/* confdefs.h.  */
8200
19152
_ACEOF
8201
19153
cat confdefs.h >>conftest.$ac_ext
8217
19169
_ACEOF
8218
19170
rm -f conftest.$ac_objext
8219
19171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8220
 
  (eval $ac_compile) 2>&5
 
19172
  (eval $ac_compile) 2>conftest.er1
8221
19173
  ac_status=$?
 
19174
  grep -v '^ *+' conftest.er1 >conftest.err
 
19175
  rm -f conftest.er1
 
19176
  cat conftest.err >&5
8222
19177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223
19178
  (exit $ac_status); } &&
8224
 
         { ac_try='test -s conftest.$ac_objext'
 
19179
         { ac_try='test -z "$ac_c_werror_flag"
 
19180
                         || test ! -s conftest.err'
 
19181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19182
  (eval $ac_try) 2>&5
 
19183
  ac_status=$?
 
19184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19185
  (exit $ac_status); }; } &&
 
19186
         { ac_try='test -s conftest.$ac_objext'
8225
19187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226
19188
  (eval $ac_try) 2>&5
8227
19189
  ac_status=$?
8229
19191
  (exit $ac_status); }; }; then
8230
19192
  # It does; now see whether it defined to BIG_ENDIAN or not.
8231
19193
cat >conftest.$ac_ext <<_ACEOF
8232
 
#line $LINENO "configure"
8233
19194
/* confdefs.h.  */
8234
19195
_ACEOF
8235
19196
cat confdefs.h >>conftest.$ac_ext
8251
19212
_ACEOF
8252
19213
rm -f conftest.$ac_objext
8253
19214
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8254
 
  (eval $ac_compile) 2>&5
 
19215
  (eval $ac_compile) 2>conftest.er1
8255
19216
  ac_status=$?
 
19217
  grep -v '^ *+' conftest.er1 >conftest.err
 
19218
  rm -f conftest.er1
 
19219
  cat conftest.err >&5
8256
19220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257
19221
  (exit $ac_status); } &&
8258
 
         { ac_try='test -s conftest.$ac_objext'
 
19222
         { ac_try='test -z "$ac_c_werror_flag"
 
19223
                         || test ! -s conftest.err'
 
19224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19225
  (eval $ac_try) 2>&5
 
19226
  ac_status=$?
 
19227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19228
  (exit $ac_status); }; } &&
 
19229
         { ac_try='test -s conftest.$ac_objext'
8259
19230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260
19231
  (eval $ac_try) 2>&5
8261
19232
  ac_status=$?
8268
19239
 
8269
19240
ac_cv_c_bigendian=no
8270
19241
fi
8271
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
19242
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8272
19243
else
8273
19244
  echo "$as_me: failed program was:" >&5
8274
19245
sed 's/^/| /' conftest.$ac_ext >&5
8278
19249
  # try to guess the endianness by grepping values into an object file
8279
19250
  ac_cv_c_bigendian=unknown
8280
19251
  cat >conftest.$ac_ext <<_ACEOF
8281
 
#line $LINENO "configure"
8282
19252
/* confdefs.h.  */
8283
19253
_ACEOF
8284
19254
cat confdefs.h >>conftest.$ac_ext
8300
19270
_ACEOF
8301
19271
rm -f conftest.$ac_objext
8302
19272
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303
 
  (eval $ac_compile) 2>&5
 
19273
  (eval $ac_compile) 2>conftest.er1
8304
19274
  ac_status=$?
 
19275
  grep -v '^ *+' conftest.er1 >conftest.err
 
19276
  rm -f conftest.er1
 
19277
  cat conftest.err >&5
8305
19278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306
19279
  (exit $ac_status); } &&
8307
 
         { ac_try='test -s conftest.$ac_objext'
 
19280
         { ac_try='test -z "$ac_c_werror_flag"
 
19281
                         || test ! -s conftest.err'
 
19282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19283
  (eval $ac_try) 2>&5
 
19284
  ac_status=$?
 
19285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19286
  (exit $ac_status); }; } &&
 
19287
         { ac_try='test -s conftest.$ac_objext'
8308
19288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309
19289
  (eval $ac_try) 2>&5
8310
19290
  ac_status=$?
8326
19306
sed 's/^/| /' conftest.$ac_ext >&5
8327
19307
 
8328
19308
fi
8329
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
19309
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8330
19310
else
8331
19311
  cat >conftest.$ac_ext <<_ACEOF
8332
 
#line $LINENO "configure"
8333
19312
/* confdefs.h.  */
8334
19313
_ACEOF
8335
19314
cat confdefs.h >>conftest.$ac_ext
8368
19347
( exit $ac_status )
8369
19348
ac_cv_c_bigendian=yes
8370
19349
fi
8371
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8372
 
fi
8373
 
fi
8374
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
19350
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19351
fi
 
19352
fi
 
19353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8375
19354
fi
8376
19355
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8377
19356
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8392
19371
   { (exit 1); exit 1; }; } ;;
8393
19372
esac
8394
19373
 
 
19374
echo "$as_me:$LINENO: checking for function prototypes" >&5
 
19375
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
 
19376
if test "$ac_cv_prog_cc_stdc" != no; then
 
19377
  echo "$as_me:$LINENO: result: yes" >&5
 
19378
echo "${ECHO_T}yes" >&6
 
19379
 
 
19380
cat >>confdefs.h <<\_ACEOF
 
19381
#define PROTOTYPES 1
 
19382
_ACEOF
 
19383
 
 
19384
 
 
19385
cat >>confdefs.h <<\_ACEOF
 
19386
#define __PROTOTYPES 1
 
19387
_ACEOF
 
19388
 
 
19389
else
 
19390
  echo "$as_me:$LINENO: result: no" >&5
 
19391
echo "${ECHO_T}no" >&6
 
19392
fi
 
19393
 
 
19394
 
 
19395
if test x"$am_cv_prog_cc_stdc" != xno; then :
 
19396
 
 
19397
 
 
19398
else
 
19399
  U=_
 
19400
 
 
19401
  ANSI2KNR=./ansi2knr
 
19402
 
 
19403
fi
 
19404
 
 
19405
 
 
19406
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
19407
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
19408
if test "${ac_cv_header_stdc+set}" = set; then
 
19409
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19410
else
 
19411
  cat >conftest.$ac_ext <<_ACEOF
 
19412
/* confdefs.h.  */
 
19413
_ACEOF
 
19414
cat confdefs.h >>conftest.$ac_ext
 
19415
cat >>conftest.$ac_ext <<_ACEOF
 
19416
/* end confdefs.h.  */
 
19417
#include <stdlib.h>
 
19418
#include <stdarg.h>
 
19419
#include <string.h>
 
19420
#include <float.h>
 
19421
 
 
19422
int
 
19423
main ()
 
19424
{
 
19425
 
 
19426
  ;
 
19427
  return 0;
 
19428
}
 
19429
_ACEOF
 
19430
rm -f conftest.$ac_objext
 
19431
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19432
  (eval $ac_compile) 2>conftest.er1
 
19433
  ac_status=$?
 
19434
  grep -v '^ *+' conftest.er1 >conftest.err
 
19435
  rm -f conftest.er1
 
19436
  cat conftest.err >&5
 
19437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19438
  (exit $ac_status); } &&
 
19439
         { ac_try='test -z "$ac_c_werror_flag"
 
19440
                         || test ! -s conftest.err'
 
19441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19442
  (eval $ac_try) 2>&5
 
19443
  ac_status=$?
 
19444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19445
  (exit $ac_status); }; } &&
 
19446
         { ac_try='test -s conftest.$ac_objext'
 
19447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19448
  (eval $ac_try) 2>&5
 
19449
  ac_status=$?
 
19450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19451
  (exit $ac_status); }; }; then
 
19452
  ac_cv_header_stdc=yes
 
19453
else
 
19454
  echo "$as_me: failed program was:" >&5
 
19455
sed 's/^/| /' conftest.$ac_ext >&5
 
19456
 
 
19457
ac_cv_header_stdc=no
 
19458
fi
 
19459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19460
 
 
19461
if test $ac_cv_header_stdc = yes; then
 
19462
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
19463
  cat >conftest.$ac_ext <<_ACEOF
 
19464
/* confdefs.h.  */
 
19465
_ACEOF
 
19466
cat confdefs.h >>conftest.$ac_ext
 
19467
cat >>conftest.$ac_ext <<_ACEOF
 
19468
/* end confdefs.h.  */
 
19469
#include <string.h>
 
19470
 
 
19471
_ACEOF
 
19472
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19473
  $EGREP "memchr" >/dev/null 2>&1; then
 
19474
  :
 
19475
else
 
19476
  ac_cv_header_stdc=no
 
19477
fi
 
19478
rm -f conftest*
 
19479
 
 
19480
fi
 
19481
 
 
19482
if test $ac_cv_header_stdc = yes; then
 
19483
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
19484
  cat >conftest.$ac_ext <<_ACEOF
 
19485
/* confdefs.h.  */
 
19486
_ACEOF
 
19487
cat confdefs.h >>conftest.$ac_ext
 
19488
cat >>conftest.$ac_ext <<_ACEOF
 
19489
/* end confdefs.h.  */
 
19490
#include <stdlib.h>
 
19491
 
 
19492
_ACEOF
 
19493
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
19494
  $EGREP "free" >/dev/null 2>&1; then
 
19495
  :
 
19496
else
 
19497
  ac_cv_header_stdc=no
 
19498
fi
 
19499
rm -f conftest*
 
19500
 
 
19501
fi
 
19502
 
 
19503
if test $ac_cv_header_stdc = yes; then
 
19504
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
19505
  if test "$cross_compiling" = yes; then
 
19506
  :
 
19507
else
 
19508
  cat >conftest.$ac_ext <<_ACEOF
 
19509
/* confdefs.h.  */
 
19510
_ACEOF
 
19511
cat confdefs.h >>conftest.$ac_ext
 
19512
cat >>conftest.$ac_ext <<_ACEOF
 
19513
/* end confdefs.h.  */
 
19514
#include <ctype.h>
 
19515
#if ((' ' & 0x0FF) == 0x020)
 
19516
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
19517
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
19518
#else
 
19519
# define ISLOWER(c) \
 
19520
                   (('a' <= (c) && (c) <= 'i') \
 
19521
                     || ('j' <= (c) && (c) <= 'r') \
 
19522
                     || ('s' <= (c) && (c) <= 'z'))
 
19523
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
19524
#endif
 
19525
 
 
19526
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
19527
int
 
19528
main ()
 
19529
{
 
19530
  int i;
 
19531
  for (i = 0; i < 256; i++)
 
19532
    if (XOR (islower (i), ISLOWER (i))
 
19533
        || toupper (i) != TOUPPER (i))
 
19534
      exit(2);
 
19535
  exit (0);
 
19536
}
 
19537
_ACEOF
 
19538
rm -f conftest$ac_exeext
 
19539
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19540
  (eval $ac_link) 2>&5
 
19541
  ac_status=$?
 
19542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19543
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19545
  (eval $ac_try) 2>&5
 
19546
  ac_status=$?
 
19547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19548
  (exit $ac_status); }; }; then
 
19549
  :
 
19550
else
 
19551
  echo "$as_me: program exited with status $ac_status" >&5
 
19552
echo "$as_me: failed program was:" >&5
 
19553
sed 's/^/| /' conftest.$ac_ext >&5
 
19554
 
 
19555
( exit $ac_status )
 
19556
ac_cv_header_stdc=no
 
19557
fi
 
19558
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19559
fi
 
19560
fi
 
19561
fi
 
19562
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
19563
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
19564
if test $ac_cv_header_stdc = yes; then
 
19565
 
 
19566
cat >>confdefs.h <<\_ACEOF
 
19567
#define STDC_HEADERS 1
 
19568
_ACEOF
 
19569
 
 
19570
fi
 
19571
 
 
19572
 
 
19573
 
 
19574
for ac_header in sys/types.h sys/stat.h
 
19575
do
 
19576
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19577
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19578
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19579
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19580
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19581
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19582
fi
 
19583
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19584
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19585
else
 
19586
  # Is the header compilable?
 
19587
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19588
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
19589
cat >conftest.$ac_ext <<_ACEOF
 
19590
/* confdefs.h.  */
 
19591
_ACEOF
 
19592
cat confdefs.h >>conftest.$ac_ext
 
19593
cat >>conftest.$ac_ext <<_ACEOF
 
19594
/* end confdefs.h.  */
 
19595
$ac_includes_default
 
19596
#include <$ac_header>
 
19597
_ACEOF
 
19598
rm -f conftest.$ac_objext
 
19599
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19600
  (eval $ac_compile) 2>conftest.er1
 
19601
  ac_status=$?
 
19602
  grep -v '^ *+' conftest.er1 >conftest.err
 
19603
  rm -f conftest.er1
 
19604
  cat conftest.err >&5
 
19605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19606
  (exit $ac_status); } &&
 
19607
         { ac_try='test -z "$ac_c_werror_flag"
 
19608
                         || test ! -s conftest.err'
 
19609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19610
  (eval $ac_try) 2>&5
 
19611
  ac_status=$?
 
19612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19613
  (exit $ac_status); }; } &&
 
19614
         { ac_try='test -s conftest.$ac_objext'
 
19615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19616
  (eval $ac_try) 2>&5
 
19617
  ac_status=$?
 
19618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19619
  (exit $ac_status); }; }; then
 
19620
  ac_header_compiler=yes
 
19621
else
 
19622
  echo "$as_me: failed program was:" >&5
 
19623
sed 's/^/| /' conftest.$ac_ext >&5
 
19624
 
 
19625
ac_header_compiler=no
 
19626
fi
 
19627
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19628
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19629
echo "${ECHO_T}$ac_header_compiler" >&6
 
19630
 
 
19631
# Is the header present?
 
19632
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19633
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
19634
cat >conftest.$ac_ext <<_ACEOF
 
19635
/* confdefs.h.  */
 
19636
_ACEOF
 
19637
cat confdefs.h >>conftest.$ac_ext
 
19638
cat >>conftest.$ac_ext <<_ACEOF
 
19639
/* end confdefs.h.  */
 
19640
#include <$ac_header>
 
19641
_ACEOF
 
19642
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19643
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19644
  ac_status=$?
 
19645
  grep -v '^ *+' conftest.er1 >conftest.err
 
19646
  rm -f conftest.er1
 
19647
  cat conftest.err >&5
 
19648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19649
  (exit $ac_status); } >/dev/null; then
 
19650
  if test -s conftest.err; then
 
19651
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19652
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
19653
  else
 
19654
    ac_cpp_err=
 
19655
  fi
 
19656
else
 
19657
  ac_cpp_err=yes
 
19658
fi
 
19659
if test -z "$ac_cpp_err"; then
 
19660
  ac_header_preproc=yes
 
19661
else
 
19662
  echo "$as_me: failed program was:" >&5
 
19663
sed 's/^/| /' conftest.$ac_ext >&5
 
19664
 
 
19665
  ac_header_preproc=no
 
19666
fi
 
19667
rm -f conftest.err conftest.$ac_ext
 
19668
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19669
echo "${ECHO_T}$ac_header_preproc" >&6
 
19670
 
 
19671
# So?  What about this header?
 
19672
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19673
  yes:no: )
 
19674
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19675
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19676
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19677
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19678
    ac_header_preproc=yes
 
19679
    ;;
 
19680
  no:yes:* )
 
19681
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19682
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19683
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19684
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19685
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19686
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19687
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19688
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19689
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19690
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19691
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19692
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
19693
    (
 
19694
      cat <<\_ASBOX
 
19695
## ------------------------------------------ ##
 
19696
## Report this to the AC_PACKAGE_NAME lists.  ##
 
19697
## ------------------------------------------ ##
 
19698
_ASBOX
 
19699
    ) |
 
19700
      sed "s/^/$as_me: WARNING:     /" >&2
 
19701
    ;;
 
19702
esac
 
19703
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19704
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19705
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19707
else
 
19708
  eval "$as_ac_Header=\$ac_header_preproc"
 
19709
fi
 
19710
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19711
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19712
 
 
19713
fi
 
19714
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19715
  cat >>confdefs.h <<_ACEOF
 
19716
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19717
_ACEOF
 
19718
 
 
19719
fi
 
19720
 
 
19721
done
 
19722
 
 
19723
 
 
19724
 
 
19725
 
 
19726
 
 
19727
 
 
19728
 
 
19729
for ac_header in string.h strings.h stdarg.h limits.h unistd.h sys/time.h
 
19730
do
 
19731
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19732
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19733
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19734
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19735
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19737
fi
 
19738
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19739
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19740
else
 
19741
  # Is the header compilable?
 
19742
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19743
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
19744
cat >conftest.$ac_ext <<_ACEOF
 
19745
/* confdefs.h.  */
 
19746
_ACEOF
 
19747
cat confdefs.h >>conftest.$ac_ext
 
19748
cat >>conftest.$ac_ext <<_ACEOF
 
19749
/* end confdefs.h.  */
 
19750
$ac_includes_default
 
19751
#include <$ac_header>
 
19752
_ACEOF
 
19753
rm -f conftest.$ac_objext
 
19754
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19755
  (eval $ac_compile) 2>conftest.er1
 
19756
  ac_status=$?
 
19757
  grep -v '^ *+' conftest.er1 >conftest.err
 
19758
  rm -f conftest.er1
 
19759
  cat conftest.err >&5
 
19760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19761
  (exit $ac_status); } &&
 
19762
         { ac_try='test -z "$ac_c_werror_flag"
 
19763
                         || test ! -s conftest.err'
 
19764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19765
  (eval $ac_try) 2>&5
 
19766
  ac_status=$?
 
19767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19768
  (exit $ac_status); }; } &&
 
19769
         { ac_try='test -s conftest.$ac_objext'
 
19770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19771
  (eval $ac_try) 2>&5
 
19772
  ac_status=$?
 
19773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19774
  (exit $ac_status); }; }; then
 
19775
  ac_header_compiler=yes
 
19776
else
 
19777
  echo "$as_me: failed program was:" >&5
 
19778
sed 's/^/| /' conftest.$ac_ext >&5
 
19779
 
 
19780
ac_header_compiler=no
 
19781
fi
 
19782
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19783
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19784
echo "${ECHO_T}$ac_header_compiler" >&6
 
19785
 
 
19786
# Is the header present?
 
19787
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19788
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
19789
cat >conftest.$ac_ext <<_ACEOF
 
19790
/* confdefs.h.  */
 
19791
_ACEOF
 
19792
cat confdefs.h >>conftest.$ac_ext
 
19793
cat >>conftest.$ac_ext <<_ACEOF
 
19794
/* end confdefs.h.  */
 
19795
#include <$ac_header>
 
19796
_ACEOF
 
19797
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19798
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19799
  ac_status=$?
 
19800
  grep -v '^ *+' conftest.er1 >conftest.err
 
19801
  rm -f conftest.er1
 
19802
  cat conftest.err >&5
 
19803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19804
  (exit $ac_status); } >/dev/null; then
 
19805
  if test -s conftest.err; then
 
19806
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19807
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
19808
  else
 
19809
    ac_cpp_err=
 
19810
  fi
 
19811
else
 
19812
  ac_cpp_err=yes
 
19813
fi
 
19814
if test -z "$ac_cpp_err"; then
 
19815
  ac_header_preproc=yes
 
19816
else
 
19817
  echo "$as_me: failed program was:" >&5
 
19818
sed 's/^/| /' conftest.$ac_ext >&5
 
19819
 
 
19820
  ac_header_preproc=no
 
19821
fi
 
19822
rm -f conftest.err conftest.$ac_ext
 
19823
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19824
echo "${ECHO_T}$ac_header_preproc" >&6
 
19825
 
 
19826
# So?  What about this header?
 
19827
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19828
  yes:no: )
 
19829
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19830
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19831
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19832
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19833
    ac_header_preproc=yes
 
19834
    ;;
 
19835
  no:yes:* )
 
19836
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19837
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19838
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19839
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19840
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19841
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19842
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19843
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19844
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19845
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19846
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19847
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
19848
    (
 
19849
      cat <<\_ASBOX
 
19850
## ------------------------------------------ ##
 
19851
## Report this to the AC_PACKAGE_NAME lists.  ##
 
19852
## ------------------------------------------ ##
 
19853
_ASBOX
 
19854
    ) |
 
19855
      sed "s/^/$as_me: WARNING:     /" >&2
 
19856
    ;;
 
19857
esac
 
19858
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19859
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19860
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19862
else
 
19863
  eval "$as_ac_Header=\$ac_header_preproc"
 
19864
fi
 
19865
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19866
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19867
 
 
19868
fi
 
19869
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19870
  cat >>confdefs.h <<_ACEOF
 
19871
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19872
_ACEOF
 
19873
 
 
19874
fi
 
19875
 
 
19876
done
 
19877
 
 
19878
 
 
19879
 
 
19880
 
 
19881
 
 
19882
 
 
19883
for ac_header in termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h
 
19884
do
 
19885
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19886
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19887
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19888
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19889
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19891
fi
 
19892
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19893
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19894
else
 
19895
  # Is the header compilable?
 
19896
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19897
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
19898
cat >conftest.$ac_ext <<_ACEOF
 
19899
/* confdefs.h.  */
 
19900
_ACEOF
 
19901
cat confdefs.h >>conftest.$ac_ext
 
19902
cat >>conftest.$ac_ext <<_ACEOF
 
19903
/* end confdefs.h.  */
 
19904
$ac_includes_default
 
19905
#include <$ac_header>
 
19906
_ACEOF
 
19907
rm -f conftest.$ac_objext
 
19908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19909
  (eval $ac_compile) 2>conftest.er1
 
19910
  ac_status=$?
 
19911
  grep -v '^ *+' conftest.er1 >conftest.err
 
19912
  rm -f conftest.er1
 
19913
  cat conftest.err >&5
 
19914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19915
  (exit $ac_status); } &&
 
19916
         { ac_try='test -z "$ac_c_werror_flag"
 
19917
                         || test ! -s conftest.err'
 
19918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19919
  (eval $ac_try) 2>&5
 
19920
  ac_status=$?
 
19921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19922
  (exit $ac_status); }; } &&
 
19923
         { ac_try='test -s conftest.$ac_objext'
 
19924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19925
  (eval $ac_try) 2>&5
 
19926
  ac_status=$?
 
19927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19928
  (exit $ac_status); }; }; then
 
19929
  ac_header_compiler=yes
 
19930
else
 
19931
  echo "$as_me: failed program was:" >&5
 
19932
sed 's/^/| /' conftest.$ac_ext >&5
 
19933
 
 
19934
ac_header_compiler=no
 
19935
fi
 
19936
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19937
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19938
echo "${ECHO_T}$ac_header_compiler" >&6
 
19939
 
 
19940
# Is the header present?
 
19941
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19942
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
19943
cat >conftest.$ac_ext <<_ACEOF
 
19944
/* confdefs.h.  */
 
19945
_ACEOF
 
19946
cat confdefs.h >>conftest.$ac_ext
 
19947
cat >>conftest.$ac_ext <<_ACEOF
 
19948
/* end confdefs.h.  */
 
19949
#include <$ac_header>
 
19950
_ACEOF
 
19951
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19952
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19953
  ac_status=$?
 
19954
  grep -v '^ *+' conftest.er1 >conftest.err
 
19955
  rm -f conftest.er1
 
19956
  cat conftest.err >&5
 
19957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19958
  (exit $ac_status); } >/dev/null; then
 
19959
  if test -s conftest.err; then
 
19960
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19961
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
19962
  else
 
19963
    ac_cpp_err=
 
19964
  fi
 
19965
else
 
19966
  ac_cpp_err=yes
 
19967
fi
 
19968
if test -z "$ac_cpp_err"; then
 
19969
  ac_header_preproc=yes
 
19970
else
 
19971
  echo "$as_me: failed program was:" >&5
 
19972
sed 's/^/| /' conftest.$ac_ext >&5
 
19973
 
 
19974
  ac_header_preproc=no
 
19975
fi
 
19976
rm -f conftest.err conftest.$ac_ext
 
19977
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19978
echo "${ECHO_T}$ac_header_preproc" >&6
 
19979
 
 
19980
# So?  What about this header?
 
19981
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19982
  yes:no: )
 
19983
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19984
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19985
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19986
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19987
    ac_header_preproc=yes
 
19988
    ;;
 
19989
  no:yes:* )
 
19990
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19991
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19992
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19993
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19994
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19995
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19996
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19997
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19998
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19999
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20000
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20001
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20002
    (
 
20003
      cat <<\_ASBOX
 
20004
## ------------------------------------------ ##
 
20005
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20006
## ------------------------------------------ ##
 
20007
_ASBOX
 
20008
    ) |
 
20009
      sed "s/^/$as_me: WARNING:     /" >&2
 
20010
    ;;
 
20011
esac
 
20012
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20013
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20014
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20016
else
 
20017
  eval "$as_ac_Header=\$ac_header_preproc"
 
20018
fi
 
20019
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20020
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20021
 
 
20022
fi
 
20023
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20024
  cat >>confdefs.h <<_ACEOF
 
20025
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20026
_ACEOF
 
20027
 
 
20028
fi
 
20029
 
 
20030
done
 
20031
 
 
20032
 
 
20033
 
 
20034
 
 
20035
 
 
20036
 
 
20037
for ac_header in stdint.h inttypes.h signal.h setjmp.h pwd.h
 
20038
do
 
20039
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20040
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20041
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20042
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20043
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20044
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20045
fi
 
20046
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20047
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20048
else
 
20049
  # Is the header compilable?
 
20050
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20051
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20052
cat >conftest.$ac_ext <<_ACEOF
 
20053
/* confdefs.h.  */
 
20054
_ACEOF
 
20055
cat confdefs.h >>conftest.$ac_ext
 
20056
cat >>conftest.$ac_ext <<_ACEOF
 
20057
/* end confdefs.h.  */
 
20058
$ac_includes_default
 
20059
#include <$ac_header>
 
20060
_ACEOF
 
20061
rm -f conftest.$ac_objext
 
20062
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20063
  (eval $ac_compile) 2>conftest.er1
 
20064
  ac_status=$?
 
20065
  grep -v '^ *+' conftest.er1 >conftest.err
 
20066
  rm -f conftest.er1
 
20067
  cat conftest.err >&5
 
20068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20069
  (exit $ac_status); } &&
 
20070
         { ac_try='test -z "$ac_c_werror_flag"
 
20071
                         || test ! -s conftest.err'
 
20072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20073
  (eval $ac_try) 2>&5
 
20074
  ac_status=$?
 
20075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20076
  (exit $ac_status); }; } &&
 
20077
         { ac_try='test -s conftest.$ac_objext'
 
20078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20079
  (eval $ac_try) 2>&5
 
20080
  ac_status=$?
 
20081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20082
  (exit $ac_status); }; }; then
 
20083
  ac_header_compiler=yes
 
20084
else
 
20085
  echo "$as_me: failed program was:" >&5
 
20086
sed 's/^/| /' conftest.$ac_ext >&5
 
20087
 
 
20088
ac_header_compiler=no
 
20089
fi
 
20090
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20091
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20092
echo "${ECHO_T}$ac_header_compiler" >&6
 
20093
 
 
20094
# Is the header present?
 
20095
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20096
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20097
cat >conftest.$ac_ext <<_ACEOF
 
20098
/* confdefs.h.  */
 
20099
_ACEOF
 
20100
cat confdefs.h >>conftest.$ac_ext
 
20101
cat >>conftest.$ac_ext <<_ACEOF
 
20102
/* end confdefs.h.  */
 
20103
#include <$ac_header>
 
20104
_ACEOF
 
20105
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20106
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20107
  ac_status=$?
 
20108
  grep -v '^ *+' conftest.er1 >conftest.err
 
20109
  rm -f conftest.er1
 
20110
  cat conftest.err >&5
 
20111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20112
  (exit $ac_status); } >/dev/null; then
 
20113
  if test -s conftest.err; then
 
20114
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20115
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20116
  else
 
20117
    ac_cpp_err=
 
20118
  fi
 
20119
else
 
20120
  ac_cpp_err=yes
 
20121
fi
 
20122
if test -z "$ac_cpp_err"; then
 
20123
  ac_header_preproc=yes
 
20124
else
 
20125
  echo "$as_me: failed program was:" >&5
 
20126
sed 's/^/| /' conftest.$ac_ext >&5
 
20127
 
 
20128
  ac_header_preproc=no
 
20129
fi
 
20130
rm -f conftest.err conftest.$ac_ext
 
20131
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20132
echo "${ECHO_T}$ac_header_preproc" >&6
 
20133
 
 
20134
# So?  What about this header?
 
20135
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20136
  yes:no: )
 
20137
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20138
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20139
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20140
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20141
    ac_header_preproc=yes
 
20142
    ;;
 
20143
  no:yes:* )
 
20144
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20145
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20146
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20147
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20148
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20149
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20150
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20151
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20152
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20153
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20154
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20155
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20156
    (
 
20157
      cat <<\_ASBOX
 
20158
## ------------------------------------------ ##
 
20159
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20160
## ------------------------------------------ ##
 
20161
_ASBOX
 
20162
    ) |
 
20163
      sed "s/^/$as_me: WARNING:     /" >&2
 
20164
    ;;
 
20165
esac
 
20166
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20167
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20168
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20170
else
 
20171
  eval "$as_ac_Header=\$ac_header_preproc"
 
20172
fi
 
20173
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20174
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20175
 
 
20176
fi
 
20177
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20178
  cat >>confdefs.h <<_ACEOF
 
20179
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20180
_ACEOF
 
20181
 
 
20182
fi
 
20183
 
 
20184
done
 
20185
 
 
20186
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
20187
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
20188
if test "${ac_cv_header_time+set}" = set; then
 
20189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20190
else
 
20191
  cat >conftest.$ac_ext <<_ACEOF
 
20192
/* confdefs.h.  */
 
20193
_ACEOF
 
20194
cat confdefs.h >>conftest.$ac_ext
 
20195
cat >>conftest.$ac_ext <<_ACEOF
 
20196
/* end confdefs.h.  */
 
20197
#include <sys/types.h>
 
20198
#include <sys/time.h>
 
20199
#include <time.h>
 
20200
 
 
20201
int
 
20202
main ()
 
20203
{
 
20204
if ((struct tm *) 0)
 
20205
return 0;
 
20206
  ;
 
20207
  return 0;
 
20208
}
 
20209
_ACEOF
 
20210
rm -f conftest.$ac_objext
 
20211
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20212
  (eval $ac_compile) 2>conftest.er1
 
20213
  ac_status=$?
 
20214
  grep -v '^ *+' conftest.er1 >conftest.err
 
20215
  rm -f conftest.er1
 
20216
  cat conftest.err >&5
 
20217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20218
  (exit $ac_status); } &&
 
20219
         { ac_try='test -z "$ac_c_werror_flag"
 
20220
                         || test ! -s conftest.err'
 
20221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20222
  (eval $ac_try) 2>&5
 
20223
  ac_status=$?
 
20224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20225
  (exit $ac_status); }; } &&
 
20226
         { ac_try='test -s conftest.$ac_objext'
 
20227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20228
  (eval $ac_try) 2>&5
 
20229
  ac_status=$?
 
20230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20231
  (exit $ac_status); }; }; then
 
20232
  ac_cv_header_time=yes
 
20233
else
 
20234
  echo "$as_me: failed program was:" >&5
 
20235
sed 's/^/| /' conftest.$ac_ext >&5
 
20236
 
 
20237
ac_cv_header_time=no
 
20238
fi
 
20239
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20240
fi
 
20241
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
20242
echo "${ECHO_T}$ac_cv_header_time" >&6
 
20243
if test $ac_cv_header_time = yes; then
 
20244
 
 
20245
cat >>confdefs.h <<\_ACEOF
 
20246
#define TIME_WITH_SYS_TIME 1
 
20247
_ACEOF
 
20248
 
 
20249
fi
 
20250
 
8395
20251
 
8396
20252
echo "$as_me:$LINENO: checking for short" >&5
8397
20253
echo $ECHO_N "checking for short... $ECHO_C" >&6
8399
20255
  echo $ECHO_N "(cached) $ECHO_C" >&6
8400
20256
else
8401
20257
  cat >conftest.$ac_ext <<_ACEOF
8402
 
#line $LINENO "configure"
8403
20258
/* confdefs.h.  */
8404
20259
_ACEOF
8405
20260
cat confdefs.h >>conftest.$ac_ext
8419
20274
_ACEOF
8420
20275
rm -f conftest.$ac_objext
8421
20276
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8422
 
  (eval $ac_compile) 2>&5
 
20277
  (eval $ac_compile) 2>conftest.er1
8423
20278
  ac_status=$?
 
20279
  grep -v '^ *+' conftest.er1 >conftest.err
 
20280
  rm -f conftest.er1
 
20281
  cat conftest.err >&5
8424
20282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425
20283
  (exit $ac_status); } &&
8426
 
         { ac_try='test -s conftest.$ac_objext'
 
20284
         { ac_try='test -z "$ac_c_werror_flag"
 
20285
                         || test ! -s conftest.err'
 
20286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20287
  (eval $ac_try) 2>&5
 
20288
  ac_status=$?
 
20289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20290
  (exit $ac_status); }; } &&
 
20291
         { ac_try='test -s conftest.$ac_objext'
8427
20292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428
20293
  (eval $ac_try) 2>&5
8429
20294
  ac_status=$?
8436
20301
 
8437
20302
ac_cv_type_short=no
8438
20303
fi
8439
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20304
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8440
20305
fi
8441
20306
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8442
20307
echo "${ECHO_T}$ac_cv_type_short" >&6
8454
20319
  if test "$cross_compiling" = yes; then
8455
20320
  # Depending upon the size, compute the lo and hi bounds.
8456
20321
cat >conftest.$ac_ext <<_ACEOF
8457
 
#line $LINENO "configure"
8458
20322
/* confdefs.h.  */
8459
20323
_ACEOF
8460
20324
cat confdefs.h >>conftest.$ac_ext
8473
20337
_ACEOF
8474
20338
rm -f conftest.$ac_objext
8475
20339
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476
 
  (eval $ac_compile) 2>&5
 
20340
  (eval $ac_compile) 2>conftest.er1
8477
20341
  ac_status=$?
 
20342
  grep -v '^ *+' conftest.er1 >conftest.err
 
20343
  rm -f conftest.er1
 
20344
  cat conftest.err >&5
8478
20345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479
20346
  (exit $ac_status); } &&
8480
 
         { ac_try='test -s conftest.$ac_objext'
 
20347
         { ac_try='test -z "$ac_c_werror_flag"
 
20348
                         || test ! -s conftest.err'
 
20349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20350
  (eval $ac_try) 2>&5
 
20351
  ac_status=$?
 
20352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20353
  (exit $ac_status); }; } &&
 
20354
         { ac_try='test -s conftest.$ac_objext'
8481
20355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482
20356
  (eval $ac_try) 2>&5
8483
20357
  ac_status=$?
8486
20360
  ac_lo=0 ac_mid=0
8487
20361
  while :; do
8488
20362
    cat >conftest.$ac_ext <<_ACEOF
8489
 
#line $LINENO "configure"
8490
20363
/* confdefs.h.  */
8491
20364
_ACEOF
8492
20365
cat confdefs.h >>conftest.$ac_ext
8505
20378
_ACEOF
8506
20379
rm -f conftest.$ac_objext
8507
20380
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8508
 
  (eval $ac_compile) 2>&5
 
20381
  (eval $ac_compile) 2>conftest.er1
8509
20382
  ac_status=$?
 
20383
  grep -v '^ *+' conftest.er1 >conftest.err
 
20384
  rm -f conftest.er1
 
20385
  cat conftest.err >&5
8510
20386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511
20387
  (exit $ac_status); } &&
8512
 
         { ac_try='test -s conftest.$ac_objext'
 
20388
         { ac_try='test -z "$ac_c_werror_flag"
 
20389
                         || test ! -s conftest.err'
 
20390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20391
  (eval $ac_try) 2>&5
 
20392
  ac_status=$?
 
20393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20394
  (exit $ac_status); }; } &&
 
20395
         { ac_try='test -s conftest.$ac_objext'
8513
20396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514
20397
  (eval $ac_try) 2>&5
8515
20398
  ac_status=$?
8521
20404
sed 's/^/| /' conftest.$ac_ext >&5
8522
20405
 
8523
20406
ac_lo=`expr $ac_mid + 1`
8524
 
                    if test $ac_lo -le $ac_mid; then
8525
 
                      ac_lo= ac_hi=
8526
 
                      break
8527
 
                    fi
8528
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
20407
                    if test $ac_lo -le $ac_mid; then
 
20408
                      ac_lo= ac_hi=
 
20409
                      break
 
20410
                    fi
 
20411
                    ac_mid=`expr 2 '*' $ac_mid + 1`
8529
20412
fi
8530
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20413
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8531
20414
  done
8532
20415
else
8533
20416
  echo "$as_me: failed program was:" >&5
8534
20417
sed 's/^/| /' conftest.$ac_ext >&5
8535
20418
 
8536
20419
cat >conftest.$ac_ext <<_ACEOF
8537
 
#line $LINENO "configure"
8538
20420
/* confdefs.h.  */
8539
20421
_ACEOF
8540
20422
cat confdefs.h >>conftest.$ac_ext
8553
20435
_ACEOF
8554
20436
rm -f conftest.$ac_objext
8555
20437
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8556
 
  (eval $ac_compile) 2>&5
 
20438
  (eval $ac_compile) 2>conftest.er1
8557
20439
  ac_status=$?
 
20440
  grep -v '^ *+' conftest.er1 >conftest.err
 
20441
  rm -f conftest.er1
 
20442
  cat conftest.err >&5
8558
20443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559
20444
  (exit $ac_status); } &&
8560
 
         { ac_try='test -s conftest.$ac_objext'
 
20445
         { ac_try='test -z "$ac_c_werror_flag"
 
20446
                         || test ! -s conftest.err'
 
20447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20448
  (eval $ac_try) 2>&5
 
20449
  ac_status=$?
 
20450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20451
  (exit $ac_status); }; } &&
 
20452
         { ac_try='test -s conftest.$ac_objext'
8561
20453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562
20454
  (eval $ac_try) 2>&5
8563
20455
  ac_status=$?
8566
20458
  ac_hi=-1 ac_mid=-1
8567
20459
  while :; do
8568
20460
    cat >conftest.$ac_ext <<_ACEOF
8569
 
#line $LINENO "configure"
8570
20461
/* confdefs.h.  */
8571
20462
_ACEOF
8572
20463
cat confdefs.h >>conftest.$ac_ext
8585
20476
_ACEOF
8586
20477
rm -f conftest.$ac_objext
8587
20478
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588
 
  (eval $ac_compile) 2>&5
 
20479
  (eval $ac_compile) 2>conftest.er1
8589
20480
  ac_status=$?
 
20481
  grep -v '^ *+' conftest.er1 >conftest.err
 
20482
  rm -f conftest.er1
 
20483
  cat conftest.err >&5
8590
20484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591
20485
  (exit $ac_status); } &&
8592
 
         { ac_try='test -s conftest.$ac_objext'
 
20486
         { ac_try='test -z "$ac_c_werror_flag"
 
20487
                         || test ! -s conftest.err'
 
20488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20489
  (eval $ac_try) 2>&5
 
20490
  ac_status=$?
 
20491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20492
  (exit $ac_status); }; } &&
 
20493
         { ac_try='test -s conftest.$ac_objext'
8593
20494
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594
20495
  (eval $ac_try) 2>&5
8595
20496
  ac_status=$?
8601
20502
sed 's/^/| /' conftest.$ac_ext >&5
8602
20503
 
8603
20504
ac_hi=`expr '(' $ac_mid ')' - 1`
8604
 
                       if test $ac_mid -le $ac_hi; then
8605
 
                         ac_lo= ac_hi=
8606
 
                         break
8607
 
                       fi
8608
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
20505
                       if test $ac_mid -le $ac_hi; then
 
20506
                         ac_lo= ac_hi=
 
20507
                         break
 
20508
                       fi
 
20509
                       ac_mid=`expr 2 '*' $ac_mid`
8609
20510
fi
8610
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20511
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8611
20512
  done
8612
20513
else
8613
20514
  echo "$as_me: failed program was:" >&5
8615
20516
 
8616
20517
ac_lo= ac_hi=
8617
20518
fi
8618
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20519
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8619
20520
fi
8620
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20521
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8621
20522
# Binary search between lo and hi bounds.
8622
20523
while test "x$ac_lo" != "x$ac_hi"; do
8623
20524
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8624
20525
  cat >conftest.$ac_ext <<_ACEOF
8625
 
#line $LINENO "configure"
8626
20526
/* confdefs.h.  */
8627
20527
_ACEOF
8628
20528
cat confdefs.h >>conftest.$ac_ext
8641
20541
_ACEOF
8642
20542
rm -f conftest.$ac_objext
8643
20543
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644
 
  (eval $ac_compile) 2>&5
 
20544
  (eval $ac_compile) 2>conftest.er1
8645
20545
  ac_status=$?
 
20546
  grep -v '^ *+' conftest.er1 >conftest.err
 
20547
  rm -f conftest.er1
 
20548
  cat conftest.err >&5
8646
20549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647
20550
  (exit $ac_status); } &&
8648
 
         { ac_try='test -s conftest.$ac_objext'
 
20551
         { ac_try='test -z "$ac_c_werror_flag"
 
20552
                         || test ! -s conftest.err'
 
20553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20554
  (eval $ac_try) 2>&5
 
20555
  ac_status=$?
 
20556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20557
  (exit $ac_status); }; } &&
 
20558
         { ac_try='test -s conftest.$ac_objext'
8649
20559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650
20560
  (eval $ac_try) 2>&5
8651
20561
  ac_status=$?
8658
20568
 
8659
20569
ac_lo=`expr '(' $ac_mid ')' + 1`
8660
20570
fi
8661
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20571
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8662
20572
done
8663
20573
case $ac_lo in
8664
20574
?*) ac_cv_sizeof_short=$ac_lo;;
8677
20587
   { (exit 1); exit 1; }; }
8678
20588
else
8679
20589
  cat >conftest.$ac_ext <<_ACEOF
8680
 
#line $LINENO "configure"
8681
20590
/* confdefs.h.  */
8682
20591
_ACEOF
8683
20592
cat confdefs.h >>conftest.$ac_ext
8739
20648
See \`config.log' for more details." >&2;}
8740
20649
   { (exit 1); exit 1; }; }
8741
20650
fi
8742
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20651
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8743
20652
fi
8744
20653
fi
8745
20654
rm -f conftest.val
8760
20669
  echo $ECHO_N "(cached) $ECHO_C" >&6
8761
20670
else
8762
20671
  cat >conftest.$ac_ext <<_ACEOF
8763
 
#line $LINENO "configure"
8764
20672
/* confdefs.h.  */
8765
20673
_ACEOF
8766
20674
cat confdefs.h >>conftest.$ac_ext
8780
20688
_ACEOF
8781
20689
rm -f conftest.$ac_objext
8782
20690
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783
 
  (eval $ac_compile) 2>&5
 
20691
  (eval $ac_compile) 2>conftest.er1
8784
20692
  ac_status=$?
 
20693
  grep -v '^ *+' conftest.er1 >conftest.err
 
20694
  rm -f conftest.er1
 
20695
  cat conftest.err >&5
8785
20696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786
20697
  (exit $ac_status); } &&
8787
 
         { ac_try='test -s conftest.$ac_objext'
 
20698
         { ac_try='test -z "$ac_c_werror_flag"
 
20699
                         || test ! -s conftest.err'
 
20700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20701
  (eval $ac_try) 2>&5
 
20702
  ac_status=$?
 
20703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20704
  (exit $ac_status); }; } &&
 
20705
         { ac_try='test -s conftest.$ac_objext'
8788
20706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789
20707
  (eval $ac_try) 2>&5
8790
20708
  ac_status=$?
8797
20715
 
8798
20716
ac_cv_type_int=no
8799
20717
fi
8800
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8801
20719
fi
8802
20720
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8803
20721
echo "${ECHO_T}$ac_cv_type_int" >&6
8815
20733
  if test "$cross_compiling" = yes; then
8816
20734
  # Depending upon the size, compute the lo and hi bounds.
8817
20735
cat >conftest.$ac_ext <<_ACEOF
8818
 
#line $LINENO "configure"
8819
20736
/* confdefs.h.  */
8820
20737
_ACEOF
8821
20738
cat confdefs.h >>conftest.$ac_ext
8834
20751
_ACEOF
8835
20752
rm -f conftest.$ac_objext
8836
20753
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8837
 
  (eval $ac_compile) 2>&5
 
20754
  (eval $ac_compile) 2>conftest.er1
8838
20755
  ac_status=$?
 
20756
  grep -v '^ *+' conftest.er1 >conftest.err
 
20757
  rm -f conftest.er1
 
20758
  cat conftest.err >&5
8839
20759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840
20760
  (exit $ac_status); } &&
8841
 
         { ac_try='test -s conftest.$ac_objext'
 
20761
         { ac_try='test -z "$ac_c_werror_flag"
 
20762
                         || test ! -s conftest.err'
 
20763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20764
  (eval $ac_try) 2>&5
 
20765
  ac_status=$?
 
20766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20767
  (exit $ac_status); }; } &&
 
20768
         { ac_try='test -s conftest.$ac_objext'
8842
20769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843
20770
  (eval $ac_try) 2>&5
8844
20771
  ac_status=$?
8847
20774
  ac_lo=0 ac_mid=0
8848
20775
  while :; do
8849
20776
    cat >conftest.$ac_ext <<_ACEOF
8850
 
#line $LINENO "configure"
8851
20777
/* confdefs.h.  */
8852
20778
_ACEOF
8853
20779
cat confdefs.h >>conftest.$ac_ext
8866
20792
_ACEOF
8867
20793
rm -f conftest.$ac_objext
8868
20794
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8869
 
  (eval $ac_compile) 2>&5
 
20795
  (eval $ac_compile) 2>conftest.er1
8870
20796
  ac_status=$?
 
20797
  grep -v '^ *+' conftest.er1 >conftest.err
 
20798
  rm -f conftest.er1
 
20799
  cat conftest.err >&5
8871
20800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872
20801
  (exit $ac_status); } &&
8873
 
         { ac_try='test -s conftest.$ac_objext'
 
20802
         { ac_try='test -z "$ac_c_werror_flag"
 
20803
                         || test ! -s conftest.err'
 
20804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20805
  (eval $ac_try) 2>&5
 
20806
  ac_status=$?
 
20807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20808
  (exit $ac_status); }; } &&
 
20809
         { ac_try='test -s conftest.$ac_objext'
8874
20810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875
20811
  (eval $ac_try) 2>&5
8876
20812
  ac_status=$?
8882
20818
sed 's/^/| /' conftest.$ac_ext >&5
8883
20819
 
8884
20820
ac_lo=`expr $ac_mid + 1`
8885
 
                    if test $ac_lo -le $ac_mid; then
8886
 
                      ac_lo= ac_hi=
8887
 
                      break
8888
 
                    fi
8889
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
20821
                    if test $ac_lo -le $ac_mid; then
 
20822
                      ac_lo= ac_hi=
 
20823
                      break
 
20824
                    fi
 
20825
                    ac_mid=`expr 2 '*' $ac_mid + 1`
8890
20826
fi
8891
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20827
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8892
20828
  done
8893
20829
else
8894
20830
  echo "$as_me: failed program was:" >&5
8895
20831
sed 's/^/| /' conftest.$ac_ext >&5
8896
20832
 
8897
20833
cat >conftest.$ac_ext <<_ACEOF
8898
 
#line $LINENO "configure"
8899
20834
/* confdefs.h.  */
8900
20835
_ACEOF
8901
20836
cat confdefs.h >>conftest.$ac_ext
8914
20849
_ACEOF
8915
20850
rm -f conftest.$ac_objext
8916
20851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8917
 
  (eval $ac_compile) 2>&5
 
20852
  (eval $ac_compile) 2>conftest.er1
8918
20853
  ac_status=$?
 
20854
  grep -v '^ *+' conftest.er1 >conftest.err
 
20855
  rm -f conftest.er1
 
20856
  cat conftest.err >&5
8919
20857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920
20858
  (exit $ac_status); } &&
8921
 
         { ac_try='test -s conftest.$ac_objext'
 
20859
         { ac_try='test -z "$ac_c_werror_flag"
 
20860
                         || test ! -s conftest.err'
 
20861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20862
  (eval $ac_try) 2>&5
 
20863
  ac_status=$?
 
20864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20865
  (exit $ac_status); }; } &&
 
20866
         { ac_try='test -s conftest.$ac_objext'
8922
20867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923
20868
  (eval $ac_try) 2>&5
8924
20869
  ac_status=$?
8927
20872
  ac_hi=-1 ac_mid=-1
8928
20873
  while :; do
8929
20874
    cat >conftest.$ac_ext <<_ACEOF
8930
 
#line $LINENO "configure"
8931
20875
/* confdefs.h.  */
8932
20876
_ACEOF
8933
20877
cat confdefs.h >>conftest.$ac_ext
8946
20890
_ACEOF
8947
20891
rm -f conftest.$ac_objext
8948
20892
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949
 
  (eval $ac_compile) 2>&5
 
20893
  (eval $ac_compile) 2>conftest.er1
8950
20894
  ac_status=$?
 
20895
  grep -v '^ *+' conftest.er1 >conftest.err
 
20896
  rm -f conftest.er1
 
20897
  cat conftest.err >&5
8951
20898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952
20899
  (exit $ac_status); } &&
8953
 
         { ac_try='test -s conftest.$ac_objext'
 
20900
         { ac_try='test -z "$ac_c_werror_flag"
 
20901
                         || test ! -s conftest.err'
 
20902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20903
  (eval $ac_try) 2>&5
 
20904
  ac_status=$?
 
20905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20906
  (exit $ac_status); }; } &&
 
20907
         { ac_try='test -s conftest.$ac_objext'
8954
20908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955
20909
  (eval $ac_try) 2>&5
8956
20910
  ac_status=$?
8962
20916
sed 's/^/| /' conftest.$ac_ext >&5
8963
20917
 
8964
20918
ac_hi=`expr '(' $ac_mid ')' - 1`
8965
 
                       if test $ac_mid -le $ac_hi; then
8966
 
                         ac_lo= ac_hi=
8967
 
                         break
8968
 
                       fi
8969
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
20919
                       if test $ac_mid -le $ac_hi; then
 
20920
                         ac_lo= ac_hi=
 
20921
                         break
 
20922
                       fi
 
20923
                       ac_mid=`expr 2 '*' $ac_mid`
8970
20924
fi
8971
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20925
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8972
20926
  done
8973
20927
else
8974
20928
  echo "$as_me: failed program was:" >&5
8976
20930
 
8977
20931
ac_lo= ac_hi=
8978
20932
fi
8979
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20933
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8980
20934
fi
8981
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8982
20936
# Binary search between lo and hi bounds.
8983
20937
while test "x$ac_lo" != "x$ac_hi"; do
8984
20938
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8985
20939
  cat >conftest.$ac_ext <<_ACEOF
8986
 
#line $LINENO "configure"
8987
20940
/* confdefs.h.  */
8988
20941
_ACEOF
8989
20942
cat confdefs.h >>conftest.$ac_ext
9002
20955
_ACEOF
9003
20956
rm -f conftest.$ac_objext
9004
20957
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9005
 
  (eval $ac_compile) 2>&5
 
20958
  (eval $ac_compile) 2>conftest.er1
9006
20959
  ac_status=$?
 
20960
  grep -v '^ *+' conftest.er1 >conftest.err
 
20961
  rm -f conftest.er1
 
20962
  cat conftest.err >&5
9007
20963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008
20964
  (exit $ac_status); } &&
9009
 
         { ac_try='test -s conftest.$ac_objext'
 
20965
         { ac_try='test -z "$ac_c_werror_flag"
 
20966
                         || test ! -s conftest.err'
 
20967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20968
  (eval $ac_try) 2>&5
 
20969
  ac_status=$?
 
20970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20971
  (exit $ac_status); }; } &&
 
20972
         { ac_try='test -s conftest.$ac_objext'
9010
20973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011
20974
  (eval $ac_try) 2>&5
9012
20975
  ac_status=$?
9019
20982
 
9020
20983
ac_lo=`expr '(' $ac_mid ')' + 1`
9021
20984
fi
9022
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
20985
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9023
20986
done
9024
20987
case $ac_lo in
9025
20988
?*) ac_cv_sizeof_int=$ac_lo;;
9038
21001
   { (exit 1); exit 1; }; }
9039
21002
else
9040
21003
  cat >conftest.$ac_ext <<_ACEOF
9041
 
#line $LINENO "configure"
9042
21004
/* confdefs.h.  */
9043
21005
_ACEOF
9044
21006
cat confdefs.h >>conftest.$ac_ext
9100
21062
See \`config.log' for more details." >&2;}
9101
21063
   { (exit 1); exit 1; }; }
9102
21064
fi
9103
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21065
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9104
21066
fi
9105
21067
fi
9106
21068
rm -f conftest.val
9121
21083
  echo $ECHO_N "(cached) $ECHO_C" >&6
9122
21084
else
9123
21085
  cat >conftest.$ac_ext <<_ACEOF
9124
 
#line $LINENO "configure"
9125
21086
/* confdefs.h.  */
9126
21087
_ACEOF
9127
21088
cat confdefs.h >>conftest.$ac_ext
9141
21102
_ACEOF
9142
21103
rm -f conftest.$ac_objext
9143
21104
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9144
 
  (eval $ac_compile) 2>&5
 
21105
  (eval $ac_compile) 2>conftest.er1
9145
21106
  ac_status=$?
 
21107
  grep -v '^ *+' conftest.er1 >conftest.err
 
21108
  rm -f conftest.er1
 
21109
  cat conftest.err >&5
9146
21110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147
21111
  (exit $ac_status); } &&
9148
 
         { ac_try='test -s conftest.$ac_objext'
 
21112
         { ac_try='test -z "$ac_c_werror_flag"
 
21113
                         || test ! -s conftest.err'
 
21114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21115
  (eval $ac_try) 2>&5
 
21116
  ac_status=$?
 
21117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21118
  (exit $ac_status); }; } &&
 
21119
         { ac_try='test -s conftest.$ac_objext'
9149
21120
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150
21121
  (eval $ac_try) 2>&5
9151
21122
  ac_status=$?
9158
21129
 
9159
21130
ac_cv_type_long=no
9160
21131
fi
9161
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21132
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9162
21133
fi
9163
21134
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9164
21135
echo "${ECHO_T}$ac_cv_type_long" >&6
9176
21147
  if test "$cross_compiling" = yes; then
9177
21148
  # Depending upon the size, compute the lo and hi bounds.
9178
21149
cat >conftest.$ac_ext <<_ACEOF
9179
 
#line $LINENO "configure"
9180
21150
/* confdefs.h.  */
9181
21151
_ACEOF
9182
21152
cat confdefs.h >>conftest.$ac_ext
9195
21165
_ACEOF
9196
21166
rm -f conftest.$ac_objext
9197
21167
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9198
 
  (eval $ac_compile) 2>&5
 
21168
  (eval $ac_compile) 2>conftest.er1
9199
21169
  ac_status=$?
 
21170
  grep -v '^ *+' conftest.er1 >conftest.err
 
21171
  rm -f conftest.er1
 
21172
  cat conftest.err >&5
9200
21173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201
21174
  (exit $ac_status); } &&
9202
 
         { ac_try='test -s conftest.$ac_objext'
 
21175
         { ac_try='test -z "$ac_c_werror_flag"
 
21176
                         || test ! -s conftest.err'
 
21177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21178
  (eval $ac_try) 2>&5
 
21179
  ac_status=$?
 
21180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21181
  (exit $ac_status); }; } &&
 
21182
         { ac_try='test -s conftest.$ac_objext'
9203
21183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204
21184
  (eval $ac_try) 2>&5
9205
21185
  ac_status=$?
9208
21188
  ac_lo=0 ac_mid=0
9209
21189
  while :; do
9210
21190
    cat >conftest.$ac_ext <<_ACEOF
9211
 
#line $LINENO "configure"
9212
21191
/* confdefs.h.  */
9213
21192
_ACEOF
9214
21193
cat confdefs.h >>conftest.$ac_ext
9227
21206
_ACEOF
9228
21207
rm -f conftest.$ac_objext
9229
21208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9230
 
  (eval $ac_compile) 2>&5
 
21209
  (eval $ac_compile) 2>conftest.er1
9231
21210
  ac_status=$?
 
21211
  grep -v '^ *+' conftest.er1 >conftest.err
 
21212
  rm -f conftest.er1
 
21213
  cat conftest.err >&5
9232
21214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233
21215
  (exit $ac_status); } &&
9234
 
         { ac_try='test -s conftest.$ac_objext'
 
21216
         { ac_try='test -z "$ac_c_werror_flag"
 
21217
                         || test ! -s conftest.err'
 
21218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21219
  (eval $ac_try) 2>&5
 
21220
  ac_status=$?
 
21221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21222
  (exit $ac_status); }; } &&
 
21223
         { ac_try='test -s conftest.$ac_objext'
9235
21224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236
21225
  (eval $ac_try) 2>&5
9237
21226
  ac_status=$?
9243
21232
sed 's/^/| /' conftest.$ac_ext >&5
9244
21233
 
9245
21234
ac_lo=`expr $ac_mid + 1`
9246
 
                    if test $ac_lo -le $ac_mid; then
9247
 
                      ac_lo= ac_hi=
9248
 
                      break
9249
 
                    fi
9250
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
21235
                    if test $ac_lo -le $ac_mid; then
 
21236
                      ac_lo= ac_hi=
 
21237
                      break
 
21238
                    fi
 
21239
                    ac_mid=`expr 2 '*' $ac_mid + 1`
9251
21240
fi
9252
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21241
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9253
21242
  done
9254
21243
else
9255
21244
  echo "$as_me: failed program was:" >&5
9256
21245
sed 's/^/| /' conftest.$ac_ext >&5
9257
21246
 
9258
21247
cat >conftest.$ac_ext <<_ACEOF
9259
 
#line $LINENO "configure"
9260
21248
/* confdefs.h.  */
9261
21249
_ACEOF
9262
21250
cat confdefs.h >>conftest.$ac_ext
9275
21263
_ACEOF
9276
21264
rm -f conftest.$ac_objext
9277
21265
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9278
 
  (eval $ac_compile) 2>&5
 
21266
  (eval $ac_compile) 2>conftest.er1
9279
21267
  ac_status=$?
 
21268
  grep -v '^ *+' conftest.er1 >conftest.err
 
21269
  rm -f conftest.er1
 
21270
  cat conftest.err >&5
9280
21271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281
21272
  (exit $ac_status); } &&
9282
 
         { ac_try='test -s conftest.$ac_objext'
 
21273
         { ac_try='test -z "$ac_c_werror_flag"
 
21274
                         || test ! -s conftest.err'
 
21275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21276
  (eval $ac_try) 2>&5
 
21277
  ac_status=$?
 
21278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21279
  (exit $ac_status); }; } &&
 
21280
         { ac_try='test -s conftest.$ac_objext'
9283
21281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284
21282
  (eval $ac_try) 2>&5
9285
21283
  ac_status=$?
9288
21286
  ac_hi=-1 ac_mid=-1
9289
21287
  while :; do
9290
21288
    cat >conftest.$ac_ext <<_ACEOF
9291
 
#line $LINENO "configure"
9292
21289
/* confdefs.h.  */
9293
21290
_ACEOF
9294
21291
cat confdefs.h >>conftest.$ac_ext
9307
21304
_ACEOF
9308
21305
rm -f conftest.$ac_objext
9309
21306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9310
 
  (eval $ac_compile) 2>&5
 
21307
  (eval $ac_compile) 2>conftest.er1
9311
21308
  ac_status=$?
 
21309
  grep -v '^ *+' conftest.er1 >conftest.err
 
21310
  rm -f conftest.er1
 
21311
  cat conftest.err >&5
9312
21312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313
21313
  (exit $ac_status); } &&
9314
 
         { ac_try='test -s conftest.$ac_objext'
 
21314
         { ac_try='test -z "$ac_c_werror_flag"
 
21315
                         || test ! -s conftest.err'
 
21316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21317
  (eval $ac_try) 2>&5
 
21318
  ac_status=$?
 
21319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21320
  (exit $ac_status); }; } &&
 
21321
         { ac_try='test -s conftest.$ac_objext'
9315
21322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316
21323
  (eval $ac_try) 2>&5
9317
21324
  ac_status=$?
9323
21330
sed 's/^/| /' conftest.$ac_ext >&5
9324
21331
 
9325
21332
ac_hi=`expr '(' $ac_mid ')' - 1`
9326
 
                       if test $ac_mid -le $ac_hi; then
9327
 
                         ac_lo= ac_hi=
9328
 
                         break
9329
 
                       fi
9330
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
21333
                       if test $ac_mid -le $ac_hi; then
 
21334
                         ac_lo= ac_hi=
 
21335
                         break
 
21336
                       fi
 
21337
                       ac_mid=`expr 2 '*' $ac_mid`
9331
21338
fi
9332
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9333
21340
  done
9334
21341
else
9335
21342
  echo "$as_me: failed program was:" >&5
9337
21344
 
9338
21345
ac_lo= ac_hi=
9339
21346
fi
9340
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21347
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9341
21348
fi
9342
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21349
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9343
21350
# Binary search between lo and hi bounds.
9344
21351
while test "x$ac_lo" != "x$ac_hi"; do
9345
21352
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9346
21353
  cat >conftest.$ac_ext <<_ACEOF
9347
 
#line $LINENO "configure"
9348
21354
/* confdefs.h.  */
9349
21355
_ACEOF
9350
21356
cat confdefs.h >>conftest.$ac_ext
9363
21369
_ACEOF
9364
21370
rm -f conftest.$ac_objext
9365
21371
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9366
 
  (eval $ac_compile) 2>&5
 
21372
  (eval $ac_compile) 2>conftest.er1
9367
21373
  ac_status=$?
 
21374
  grep -v '^ *+' conftest.er1 >conftest.err
 
21375
  rm -f conftest.er1
 
21376
  cat conftest.err >&5
9368
21377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369
21378
  (exit $ac_status); } &&
9370
 
         { ac_try='test -s conftest.$ac_objext'
 
21379
         { ac_try='test -z "$ac_c_werror_flag"
 
21380
                         || test ! -s conftest.err'
 
21381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21382
  (eval $ac_try) 2>&5
 
21383
  ac_status=$?
 
21384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21385
  (exit $ac_status); }; } &&
 
21386
         { ac_try='test -s conftest.$ac_objext'
9371
21387
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372
21388
  (eval $ac_try) 2>&5
9373
21389
  ac_status=$?
9380
21396
 
9381
21397
ac_lo=`expr '(' $ac_mid ')' + 1`
9382
21398
fi
9383
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21399
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9384
21400
done
9385
21401
case $ac_lo in
9386
21402
?*) ac_cv_sizeof_long=$ac_lo;;
9399
21415
   { (exit 1); exit 1; }; }
9400
21416
else
9401
21417
  cat >conftest.$ac_ext <<_ACEOF
9402
 
#line $LINENO "configure"
9403
21418
/* confdefs.h.  */
9404
21419
_ACEOF
9405
21420
cat confdefs.h >>conftest.$ac_ext
9461
21476
See \`config.log' for more details." >&2;}
9462
21477
   { (exit 1); exit 1; }; }
9463
21478
fi
9464
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21479
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9465
21480
fi
9466
21481
fi
9467
21482
rm -f conftest.val
9482
21497
  echo $ECHO_N "(cached) $ECHO_C" >&6
9483
21498
else
9484
21499
  cat >conftest.$ac_ext <<_ACEOF
9485
 
#line $LINENO "configure"
9486
21500
/* confdefs.h.  */
9487
21501
_ACEOF
9488
21502
cat confdefs.h >>conftest.$ac_ext
9502
21516
_ACEOF
9503
21517
rm -f conftest.$ac_objext
9504
21518
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9505
 
  (eval $ac_compile) 2>&5
 
21519
  (eval $ac_compile) 2>conftest.er1
9506
21520
  ac_status=$?
 
21521
  grep -v '^ *+' conftest.er1 >conftest.err
 
21522
  rm -f conftest.er1
 
21523
  cat conftest.err >&5
9507
21524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508
21525
  (exit $ac_status); } &&
9509
 
         { ac_try='test -s conftest.$ac_objext'
 
21526
         { ac_try='test -z "$ac_c_werror_flag"
 
21527
                         || test ! -s conftest.err'
 
21528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21529
  (eval $ac_try) 2>&5
 
21530
  ac_status=$?
 
21531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21532
  (exit $ac_status); }; } &&
 
21533
         { ac_try='test -s conftest.$ac_objext'
9510
21534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511
21535
  (eval $ac_try) 2>&5
9512
21536
  ac_status=$?
9519
21543
 
9520
21544
ac_cv_type_long_long=no
9521
21545
fi
9522
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21546
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9523
21547
fi
9524
21548
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9525
21549
echo "${ECHO_T}$ac_cv_type_long_long" >&6
9537
21561
  if test "$cross_compiling" = yes; then
9538
21562
  # Depending upon the size, compute the lo and hi bounds.
9539
21563
cat >conftest.$ac_ext <<_ACEOF
9540
 
#line $LINENO "configure"
9541
21564
/* confdefs.h.  */
9542
21565
_ACEOF
9543
21566
cat confdefs.h >>conftest.$ac_ext
9556
21579
_ACEOF
9557
21580
rm -f conftest.$ac_objext
9558
21581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559
 
  (eval $ac_compile) 2>&5
 
21582
  (eval $ac_compile) 2>conftest.er1
9560
21583
  ac_status=$?
 
21584
  grep -v '^ *+' conftest.er1 >conftest.err
 
21585
  rm -f conftest.er1
 
21586
  cat conftest.err >&5
9561
21587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562
21588
  (exit $ac_status); } &&
9563
 
         { ac_try='test -s conftest.$ac_objext'
 
21589
         { ac_try='test -z "$ac_c_werror_flag"
 
21590
                         || test ! -s conftest.err'
 
21591
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21592
  (eval $ac_try) 2>&5
 
21593
  ac_status=$?
 
21594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21595
  (exit $ac_status); }; } &&
 
21596
         { ac_try='test -s conftest.$ac_objext'
9564
21597
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565
21598
  (eval $ac_try) 2>&5
9566
21599
  ac_status=$?
9569
21602
  ac_lo=0 ac_mid=0
9570
21603
  while :; do
9571
21604
    cat >conftest.$ac_ext <<_ACEOF
9572
 
#line $LINENO "configure"
9573
21605
/* confdefs.h.  */
9574
21606
_ACEOF
9575
21607
cat confdefs.h >>conftest.$ac_ext
9588
21620
_ACEOF
9589
21621
rm -f conftest.$ac_objext
9590
21622
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591
 
  (eval $ac_compile) 2>&5
 
21623
  (eval $ac_compile) 2>conftest.er1
9592
21624
  ac_status=$?
 
21625
  grep -v '^ *+' conftest.er1 >conftest.err
 
21626
  rm -f conftest.er1
 
21627
  cat conftest.err >&5
9593
21628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594
21629
  (exit $ac_status); } &&
9595
 
         { ac_try='test -s conftest.$ac_objext'
 
21630
         { ac_try='test -z "$ac_c_werror_flag"
 
21631
                         || test ! -s conftest.err'
 
21632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21633
  (eval $ac_try) 2>&5
 
21634
  ac_status=$?
 
21635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21636
  (exit $ac_status); }; } &&
 
21637
         { ac_try='test -s conftest.$ac_objext'
9596
21638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597
21639
  (eval $ac_try) 2>&5
9598
21640
  ac_status=$?
9604
21646
sed 's/^/| /' conftest.$ac_ext >&5
9605
21647
 
9606
21648
ac_lo=`expr $ac_mid + 1`
9607
 
                    if test $ac_lo -le $ac_mid; then
9608
 
                      ac_lo= ac_hi=
9609
 
                      break
9610
 
                    fi
9611
 
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
21649
                    if test $ac_lo -le $ac_mid; then
 
21650
                      ac_lo= ac_hi=
 
21651
                      break
 
21652
                    fi
 
21653
                    ac_mid=`expr 2 '*' $ac_mid + 1`
9612
21654
fi
9613
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21655
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9614
21656
  done
9615
21657
else
9616
21658
  echo "$as_me: failed program was:" >&5
9617
21659
sed 's/^/| /' conftest.$ac_ext >&5
9618
21660
 
9619
21661
cat >conftest.$ac_ext <<_ACEOF
9620
 
#line $LINENO "configure"
9621
21662
/* confdefs.h.  */
9622
21663
_ACEOF
9623
21664
cat confdefs.h >>conftest.$ac_ext
9636
21677
_ACEOF
9637
21678
rm -f conftest.$ac_objext
9638
21679
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9639
 
  (eval $ac_compile) 2>&5
 
21680
  (eval $ac_compile) 2>conftest.er1
9640
21681
  ac_status=$?
 
21682
  grep -v '^ *+' conftest.er1 >conftest.err
 
21683
  rm -f conftest.er1
 
21684
  cat conftest.err >&5
9641
21685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642
21686
  (exit $ac_status); } &&
9643
 
         { ac_try='test -s conftest.$ac_objext'
 
21687
         { ac_try='test -z "$ac_c_werror_flag"
 
21688
                         || test ! -s conftest.err'
 
21689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21690
  (eval $ac_try) 2>&5
 
21691
  ac_status=$?
 
21692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21693
  (exit $ac_status); }; } &&
 
21694
         { ac_try='test -s conftest.$ac_objext'
9644
21695
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645
21696
  (eval $ac_try) 2>&5
9646
21697
  ac_status=$?
9649
21700
  ac_hi=-1 ac_mid=-1
9650
21701
  while :; do
9651
21702
    cat >conftest.$ac_ext <<_ACEOF
9652
 
#line $LINENO "configure"
9653
21703
/* confdefs.h.  */
9654
21704
_ACEOF
9655
21705
cat confdefs.h >>conftest.$ac_ext
9668
21718
_ACEOF
9669
21719
rm -f conftest.$ac_objext
9670
21720
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671
 
  (eval $ac_compile) 2>&5
 
21721
  (eval $ac_compile) 2>conftest.er1
9672
21722
  ac_status=$?
 
21723
  grep -v '^ *+' conftest.er1 >conftest.err
 
21724
  rm -f conftest.er1
 
21725
  cat conftest.err >&5
9673
21726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674
21727
  (exit $ac_status); } &&
9675
 
         { ac_try='test -s conftest.$ac_objext'
 
21728
         { ac_try='test -z "$ac_c_werror_flag"
 
21729
                         || test ! -s conftest.err'
 
21730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21731
  (eval $ac_try) 2>&5
 
21732
  ac_status=$?
 
21733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21734
  (exit $ac_status); }; } &&
 
21735
         { ac_try='test -s conftest.$ac_objext'
9676
21736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677
21737
  (eval $ac_try) 2>&5
9678
21738
  ac_status=$?
9684
21744
sed 's/^/| /' conftest.$ac_ext >&5
9685
21745
 
9686
21746
ac_hi=`expr '(' $ac_mid ')' - 1`
9687
 
                       if test $ac_mid -le $ac_hi; then
9688
 
                         ac_lo= ac_hi=
9689
 
                         break
9690
 
                       fi
9691
 
                       ac_mid=`expr 2 '*' $ac_mid`
 
21747
                       if test $ac_mid -le $ac_hi; then
 
21748
                         ac_lo= ac_hi=
 
21749
                         break
 
21750
                       fi
 
21751
                       ac_mid=`expr 2 '*' $ac_mid`
9692
21752
fi
9693
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694
21754
  done
9695
21755
else
9696
21756
  echo "$as_me: failed program was:" >&5
9698
21758
 
9699
21759
ac_lo= ac_hi=
9700
21760
fi
9701
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21761
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9702
21762
fi
9703
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21763
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9704
21764
# Binary search between lo and hi bounds.
9705
21765
while test "x$ac_lo" != "x$ac_hi"; do
9706
21766
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9707
21767
  cat >conftest.$ac_ext <<_ACEOF
9708
 
#line $LINENO "configure"
9709
21768
/* confdefs.h.  */
9710
21769
_ACEOF
9711
21770
cat confdefs.h >>conftest.$ac_ext
9724
21783
_ACEOF
9725
21784
rm -f conftest.$ac_objext
9726
21785
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9727
 
  (eval $ac_compile) 2>&5
 
21786
  (eval $ac_compile) 2>conftest.er1
9728
21787
  ac_status=$?
 
21788
  grep -v '^ *+' conftest.er1 >conftest.err
 
21789
  rm -f conftest.er1
 
21790
  cat conftest.err >&5
9729
21791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730
21792
  (exit $ac_status); } &&
9731
 
         { ac_try='test -s conftest.$ac_objext'
 
21793
         { ac_try='test -z "$ac_c_werror_flag"
 
21794
                         || test ! -s conftest.err'
 
21795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21796
  (eval $ac_try) 2>&5
 
21797
  ac_status=$?
 
21798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21799
  (exit $ac_status); }; } &&
 
21800
         { ac_try='test -s conftest.$ac_objext'
9732
21801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733
21802
  (eval $ac_try) 2>&5
9734
21803
  ac_status=$?
9741
21810
 
9742
21811
ac_lo=`expr '(' $ac_mid ')' + 1`
9743
21812
fi
9744
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
21813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9745
21814
done
9746
21815
case $ac_lo in
9747
21816
?*) ac_cv_sizeof_long_long=$ac_lo;;
9760
21829
   { (exit 1); exit 1; }; }
9761
21830
else
9762
21831
  cat >conftest.$ac_ext <<_ACEOF
9763
 
#line $LINENO "configure"
9764
21832
/* confdefs.h.  */
9765
21833
_ACEOF
9766
21834
cat confdefs.h >>conftest.$ac_ext
9822
21890
See \`config.log' for more details." >&2;}
9823
21891
   { (exit 1); exit 1; }; }
9824
21892
fi
9825
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21893
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9826
21894
fi
9827
21895
fi
9828
21896
rm -f conftest.val
9838
21906
 
9839
21907
 
9840
21908
 
9841
 
for ac_header in inttypes.h
9842
 
do
9843
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9844
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9845
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9846
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9847
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21909
# Check whether --enable-largefile or --disable-largefile was given.
 
21910
if test "${enable_largefile+set}" = set; then
 
21911
  enableval="$enable_largefile"
 
21912
 
 
21913
fi;
 
21914
if test "$enable_largefile" != no; then
 
21915
 
 
21916
  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
 
21917
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
 
21918
if test "${ac_cv_sys_largefile_CC+set}" = set; then
9848
21919
  echo $ECHO_N "(cached) $ECHO_C" >&6
9849
 
fi
9850
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9851
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9852
 
else
9853
 
  # Is the header compilable?
9854
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9855
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9856
 
cat >conftest.$ac_ext <<_ACEOF
9857
 
#line $LINENO "configure"
9858
 
/* confdefs.h.  */
9859
 
_ACEOF
9860
 
cat confdefs.h >>conftest.$ac_ext
9861
 
cat >>conftest.$ac_ext <<_ACEOF
9862
 
/* end confdefs.h.  */
9863
 
$ac_includes_default
9864
 
#include <$ac_header>
9865
 
_ACEOF
9866
 
rm -f conftest.$ac_objext
9867
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9868
 
  (eval $ac_compile) 2>&5
9869
 
  ac_status=$?
9870
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871
 
  (exit $ac_status); } &&
9872
 
         { ac_try='test -s conftest.$ac_objext'
9873
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874
 
  (eval $ac_try) 2>&5
9875
 
  ac_status=$?
9876
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877
 
  (exit $ac_status); }; }; then
9878
 
  ac_header_compiler=yes
9879
 
else
9880
 
  echo "$as_me: failed program was:" >&5
9881
 
sed 's/^/| /' conftest.$ac_ext >&5
9882
 
 
9883
 
ac_header_compiler=no
9884
 
fi
9885
 
rm -f conftest.$ac_objext conftest.$ac_ext
9886
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9887
 
echo "${ECHO_T}$ac_header_compiler" >&6
9888
 
 
9889
 
# Is the header present?
9890
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9891
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9892
 
cat >conftest.$ac_ext <<_ACEOF
9893
 
#line $LINENO "configure"
9894
 
/* confdefs.h.  */
9895
 
_ACEOF
9896
 
cat confdefs.h >>conftest.$ac_ext
9897
 
cat >>conftest.$ac_ext <<_ACEOF
9898
 
/* end confdefs.h.  */
9899
 
#include <$ac_header>
9900
 
_ACEOF
9901
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9902
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9903
 
  ac_status=$?
9904
 
  grep -v '^ *+' conftest.er1 >conftest.err
9905
 
  rm -f conftest.er1
9906
 
  cat conftest.err >&5
9907
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908
 
  (exit $ac_status); } >/dev/null; then
9909
 
  if test -s conftest.err; then
9910
 
    ac_cpp_err=$ac_c_preproc_warn_flag
9911
 
  else
9912
 
    ac_cpp_err=
 
21920
else
 
21921
  ac_cv_sys_largefile_CC=no
 
21922
     if test "$GCC" != yes; then
 
21923
       ac_save_CC=$CC
 
21924
       while :; do
 
21925
         # IRIX 6.2 and later do not support large files by default,
 
21926
         # so use the C compiler's -n32 option if that helps.
 
21927
         cat >conftest.$ac_ext <<_ACEOF
 
21928
/* confdefs.h.  */
 
21929
_ACEOF
 
21930
cat confdefs.h >>conftest.$ac_ext
 
21931
cat >>conftest.$ac_ext <<_ACEOF
 
21932
/* end confdefs.h.  */
 
21933
#include <sys/types.h>
 
21934
 /* Check that off_t can represent 2**63 - 1 correctly.
 
21935
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
21936
    since some C++ compilers masquerading as C compilers
 
21937
    incorrectly reject 9223372036854775807.  */
 
21938
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
21939
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
21940
                       && LARGE_OFF_T % 2147483647 == 1)
 
21941
                      ? 1 : -1];
 
21942
int
 
21943
main ()
 
21944
{
 
21945
 
 
21946
  ;
 
21947
  return 0;
 
21948
}
 
21949
_ACEOF
 
21950
         rm -f conftest.$ac_objext
 
21951
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21952
  (eval $ac_compile) 2>conftest.er1
 
21953
  ac_status=$?
 
21954
  grep -v '^ *+' conftest.er1 >conftest.err
 
21955
  rm -f conftest.er1
 
21956
  cat conftest.err >&5
 
21957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21958
  (exit $ac_status); } &&
 
21959
         { ac_try='test -z "$ac_c_werror_flag"
 
21960
                         || test ! -s conftest.err'
 
21961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21962
  (eval $ac_try) 2>&5
 
21963
  ac_status=$?
 
21964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21965
  (exit $ac_status); }; } &&
 
21966
         { ac_try='test -s conftest.$ac_objext'
 
21967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21968
  (eval $ac_try) 2>&5
 
21969
  ac_status=$?
 
21970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21971
  (exit $ac_status); }; }; then
 
21972
  break
 
21973
else
 
21974
  echo "$as_me: failed program was:" >&5
 
21975
sed 's/^/| /' conftest.$ac_ext >&5
 
21976
 
 
21977
fi
 
21978
rm -f conftest.err conftest.$ac_objext
 
21979
         CC="$CC -n32"
 
21980
         rm -f conftest.$ac_objext
 
21981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21982
  (eval $ac_compile) 2>conftest.er1
 
21983
  ac_status=$?
 
21984
  grep -v '^ *+' conftest.er1 >conftest.err
 
21985
  rm -f conftest.er1
 
21986
  cat conftest.err >&5
 
21987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21988
  (exit $ac_status); } &&
 
21989
         { ac_try='test -z "$ac_c_werror_flag"
 
21990
                         || test ! -s conftest.err'
 
21991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21992
  (eval $ac_try) 2>&5
 
21993
  ac_status=$?
 
21994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21995
  (exit $ac_status); }; } &&
 
21996
         { ac_try='test -s conftest.$ac_objext'
 
21997
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21998
  (eval $ac_try) 2>&5
 
21999
  ac_status=$?
 
22000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22001
  (exit $ac_status); }; }; then
 
22002
  ac_cv_sys_largefile_CC=' -n32'; break
 
22003
else
 
22004
  echo "$as_me: failed program was:" >&5
 
22005
sed 's/^/| /' conftest.$ac_ext >&5
 
22006
 
 
22007
fi
 
22008
rm -f conftest.err conftest.$ac_objext
 
22009
         break
 
22010
       done
 
22011
       CC=$ac_save_CC
 
22012
       rm -f conftest.$ac_ext
 
22013
    fi
 
22014
fi
 
22015
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
 
22016
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
 
22017
  if test "$ac_cv_sys_largefile_CC" != no; then
 
22018
    CC=$CC$ac_cv_sys_largefile_CC
9913
22019
  fi
9914
 
else
9915
 
  ac_cpp_err=yes
9916
 
fi
9917
 
if test -z "$ac_cpp_err"; then
9918
 
  ac_header_preproc=yes
9919
 
else
9920
 
  echo "$as_me: failed program was:" >&5
9921
 
sed 's/^/| /' conftest.$ac_ext >&5
9922
 
 
9923
 
  ac_header_preproc=no
9924
 
fi
9925
 
rm -f conftest.err conftest.$ac_ext
9926
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9927
 
echo "${ECHO_T}$ac_header_preproc" >&6
9928
 
 
9929
 
# So?  What about this header?
9930
 
case $ac_header_compiler:$ac_header_preproc in
9931
 
  yes:no )
9932
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9933
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9934
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9935
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9936
 
    (
9937
 
      cat <<\_ASBOX
9938
 
## ------------------------------------ ##
9939
 
## Report this to bug-autoconf@gnu.org. ##
9940
 
## ------------------------------------ ##
9941
 
_ASBOX
9942
 
    ) |
9943
 
      sed "s/^/$as_me: WARNING:     /" >&2
9944
 
    ;;
9945
 
  no:yes )
9946
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9947
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9948
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9949
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9950
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9951
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9952
 
    (
9953
 
      cat <<\_ASBOX
9954
 
## ------------------------------------ ##
9955
 
## Report this to bug-autoconf@gnu.org. ##
9956
 
## ------------------------------------ ##
9957
 
_ASBOX
9958
 
    ) |
9959
 
      sed "s/^/$as_me: WARNING:     /" >&2
9960
 
    ;;
 
22020
 
 
22021
  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
22022
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
 
22023
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
22024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22025
else
 
22026
  while :; do
 
22027
  ac_cv_sys_file_offset_bits=no
 
22028
  cat >conftest.$ac_ext <<_ACEOF
 
22029
/* confdefs.h.  */
 
22030
_ACEOF
 
22031
cat confdefs.h >>conftest.$ac_ext
 
22032
cat >>conftest.$ac_ext <<_ACEOF
 
22033
/* end confdefs.h.  */
 
22034
#include <sys/types.h>
 
22035
 /* Check that off_t can represent 2**63 - 1 correctly.
 
22036
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
22037
    since some C++ compilers masquerading as C compilers
 
22038
    incorrectly reject 9223372036854775807.  */
 
22039
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
22040
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
22041
                       && LARGE_OFF_T % 2147483647 == 1)
 
22042
                      ? 1 : -1];
 
22043
int
 
22044
main ()
 
22045
{
 
22046
 
 
22047
  ;
 
22048
  return 0;
 
22049
}
 
22050
_ACEOF
 
22051
rm -f conftest.$ac_objext
 
22052
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22053
  (eval $ac_compile) 2>conftest.er1
 
22054
  ac_status=$?
 
22055
  grep -v '^ *+' conftest.er1 >conftest.err
 
22056
  rm -f conftest.er1
 
22057
  cat conftest.err >&5
 
22058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22059
  (exit $ac_status); } &&
 
22060
         { ac_try='test -z "$ac_c_werror_flag"
 
22061
                         || test ! -s conftest.err'
 
22062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22063
  (eval $ac_try) 2>&5
 
22064
  ac_status=$?
 
22065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22066
  (exit $ac_status); }; } &&
 
22067
         { ac_try='test -s conftest.$ac_objext'
 
22068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22069
  (eval $ac_try) 2>&5
 
22070
  ac_status=$?
 
22071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22072
  (exit $ac_status); }; }; then
 
22073
  break
 
22074
else
 
22075
  echo "$as_me: failed program was:" >&5
 
22076
sed 's/^/| /' conftest.$ac_ext >&5
 
22077
 
 
22078
fi
 
22079
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22080
  cat >conftest.$ac_ext <<_ACEOF
 
22081
/* confdefs.h.  */
 
22082
_ACEOF
 
22083
cat confdefs.h >>conftest.$ac_ext
 
22084
cat >>conftest.$ac_ext <<_ACEOF
 
22085
/* end confdefs.h.  */
 
22086
#define _FILE_OFFSET_BITS 64
 
22087
#include <sys/types.h>
 
22088
 /* Check that off_t can represent 2**63 - 1 correctly.
 
22089
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
22090
    since some C++ compilers masquerading as C compilers
 
22091
    incorrectly reject 9223372036854775807.  */
 
22092
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
22093
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
22094
                       && LARGE_OFF_T % 2147483647 == 1)
 
22095
                      ? 1 : -1];
 
22096
int
 
22097
main ()
 
22098
{
 
22099
 
 
22100
  ;
 
22101
  return 0;
 
22102
}
 
22103
_ACEOF
 
22104
rm -f conftest.$ac_objext
 
22105
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22106
  (eval $ac_compile) 2>conftest.er1
 
22107
  ac_status=$?
 
22108
  grep -v '^ *+' conftest.er1 >conftest.err
 
22109
  rm -f conftest.er1
 
22110
  cat conftest.err >&5
 
22111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22112
  (exit $ac_status); } &&
 
22113
         { ac_try='test -z "$ac_c_werror_flag"
 
22114
                         || test ! -s conftest.err'
 
22115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22116
  (eval $ac_try) 2>&5
 
22117
  ac_status=$?
 
22118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22119
  (exit $ac_status); }; } &&
 
22120
         { ac_try='test -s conftest.$ac_objext'
 
22121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22122
  (eval $ac_try) 2>&5
 
22123
  ac_status=$?
 
22124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22125
  (exit $ac_status); }; }; then
 
22126
  ac_cv_sys_file_offset_bits=64; break
 
22127
else
 
22128
  echo "$as_me: failed program was:" >&5
 
22129
sed 's/^/| /' conftest.$ac_ext >&5
 
22130
 
 
22131
fi
 
22132
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22133
  break
 
22134
done
 
22135
fi
 
22136
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
22137
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
 
22138
if test "$ac_cv_sys_file_offset_bits" != no; then
 
22139
 
 
22140
cat >>confdefs.h <<_ACEOF
 
22141
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
22142
_ACEOF
 
22143
 
 
22144
fi
 
22145
rm -f conftest*
 
22146
  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
 
22147
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
 
22148
if test "${ac_cv_sys_large_files+set}" = set; then
 
22149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22150
else
 
22151
  while :; do
 
22152
  ac_cv_sys_large_files=no
 
22153
  cat >conftest.$ac_ext <<_ACEOF
 
22154
/* confdefs.h.  */
 
22155
_ACEOF
 
22156
cat confdefs.h >>conftest.$ac_ext
 
22157
cat >>conftest.$ac_ext <<_ACEOF
 
22158
/* end confdefs.h.  */
 
22159
#include <sys/types.h>
 
22160
 /* Check that off_t can represent 2**63 - 1 correctly.
 
22161
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
22162
    since some C++ compilers masquerading as C compilers
 
22163
    incorrectly reject 9223372036854775807.  */
 
22164
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
22165
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
22166
                       && LARGE_OFF_T % 2147483647 == 1)
 
22167
                      ? 1 : -1];
 
22168
int
 
22169
main ()
 
22170
{
 
22171
 
 
22172
  ;
 
22173
  return 0;
 
22174
}
 
22175
_ACEOF
 
22176
rm -f conftest.$ac_objext
 
22177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22178
  (eval $ac_compile) 2>conftest.er1
 
22179
  ac_status=$?
 
22180
  grep -v '^ *+' conftest.er1 >conftest.err
 
22181
  rm -f conftest.er1
 
22182
  cat conftest.err >&5
 
22183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22184
  (exit $ac_status); } &&
 
22185
         { ac_try='test -z "$ac_c_werror_flag"
 
22186
                         || test ! -s conftest.err'
 
22187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22188
  (eval $ac_try) 2>&5
 
22189
  ac_status=$?
 
22190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22191
  (exit $ac_status); }; } &&
 
22192
         { ac_try='test -s conftest.$ac_objext'
 
22193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22194
  (eval $ac_try) 2>&5
 
22195
  ac_status=$?
 
22196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22197
  (exit $ac_status); }; }; then
 
22198
  break
 
22199
else
 
22200
  echo "$as_me: failed program was:" >&5
 
22201
sed 's/^/| /' conftest.$ac_ext >&5
 
22202
 
 
22203
fi
 
22204
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22205
  cat >conftest.$ac_ext <<_ACEOF
 
22206
/* confdefs.h.  */
 
22207
_ACEOF
 
22208
cat confdefs.h >>conftest.$ac_ext
 
22209
cat >>conftest.$ac_ext <<_ACEOF
 
22210
/* end confdefs.h.  */
 
22211
#define _LARGE_FILES 1
 
22212
#include <sys/types.h>
 
22213
 /* Check that off_t can represent 2**63 - 1 correctly.
 
22214
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
22215
    since some C++ compilers masquerading as C compilers
 
22216
    incorrectly reject 9223372036854775807.  */
 
22217
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
22218
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
22219
                       && LARGE_OFF_T % 2147483647 == 1)
 
22220
                      ? 1 : -1];
 
22221
int
 
22222
main ()
 
22223
{
 
22224
 
 
22225
  ;
 
22226
  return 0;
 
22227
}
 
22228
_ACEOF
 
22229
rm -f conftest.$ac_objext
 
22230
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22231
  (eval $ac_compile) 2>conftest.er1
 
22232
  ac_status=$?
 
22233
  grep -v '^ *+' conftest.er1 >conftest.err
 
22234
  rm -f conftest.er1
 
22235
  cat conftest.err >&5
 
22236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22237
  (exit $ac_status); } &&
 
22238
         { ac_try='test -z "$ac_c_werror_flag"
 
22239
                         || test ! -s conftest.err'
 
22240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22241
  (eval $ac_try) 2>&5
 
22242
  ac_status=$?
 
22243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22244
  (exit $ac_status); }; } &&
 
22245
         { ac_try='test -s conftest.$ac_objext'
 
22246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22247
  (eval $ac_try) 2>&5
 
22248
  ac_status=$?
 
22249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22250
  (exit $ac_status); }; }; then
 
22251
  ac_cv_sys_large_files=1; break
 
22252
else
 
22253
  echo "$as_me: failed program was:" >&5
 
22254
sed 's/^/| /' conftest.$ac_ext >&5
 
22255
 
 
22256
fi
 
22257
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22258
  break
 
22259
done
 
22260
fi
 
22261
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
22262
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
 
22263
if test "$ac_cv_sys_large_files" != no; then
 
22264
 
 
22265
cat >>confdefs.h <<_ACEOF
 
22266
#define _LARGE_FILES $ac_cv_sys_large_files
 
22267
_ACEOF
 
22268
 
 
22269
fi
 
22270
rm -f conftest*
 
22271
fi
 
22272
 
 
22273
echo "$as_me:$LINENO: checking for off_t" >&5
 
22274
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
22275
if test "${ac_cv_type_off_t+set}" = set; then
 
22276
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22277
else
 
22278
  cat >conftest.$ac_ext <<_ACEOF
 
22279
/* confdefs.h.  */
 
22280
_ACEOF
 
22281
cat confdefs.h >>conftest.$ac_ext
 
22282
cat >>conftest.$ac_ext <<_ACEOF
 
22283
/* end confdefs.h.  */
 
22284
$ac_includes_default
 
22285
int
 
22286
main ()
 
22287
{
 
22288
if ((off_t *) 0)
 
22289
  return 0;
 
22290
if (sizeof (off_t))
 
22291
  return 0;
 
22292
  ;
 
22293
  return 0;
 
22294
}
 
22295
_ACEOF
 
22296
rm -f conftest.$ac_objext
 
22297
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22298
  (eval $ac_compile) 2>conftest.er1
 
22299
  ac_status=$?
 
22300
  grep -v '^ *+' conftest.er1 >conftest.err
 
22301
  rm -f conftest.er1
 
22302
  cat conftest.err >&5
 
22303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22304
  (exit $ac_status); } &&
 
22305
         { ac_try='test -z "$ac_c_werror_flag"
 
22306
                         || test ! -s conftest.err'
 
22307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22308
  (eval $ac_try) 2>&5
 
22309
  ac_status=$?
 
22310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22311
  (exit $ac_status); }; } &&
 
22312
         { ac_try='test -s conftest.$ac_objext'
 
22313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22314
  (eval $ac_try) 2>&5
 
22315
  ac_status=$?
 
22316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22317
  (exit $ac_status); }; }; then
 
22318
  ac_cv_type_off_t=yes
 
22319
else
 
22320
  echo "$as_me: failed program was:" >&5
 
22321
sed 's/^/| /' conftest.$ac_ext >&5
 
22322
 
 
22323
ac_cv_type_off_t=no
 
22324
fi
 
22325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22326
fi
 
22327
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
22328
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
22329
 
 
22330
echo "$as_me:$LINENO: checking size of off_t" >&5
 
22331
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
 
22332
if test "${ac_cv_sizeof_off_t+set}" = set; then
 
22333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22334
else
 
22335
  if test "$ac_cv_type_off_t" = yes; then
 
22336
  # The cast to unsigned long works around a bug in the HP C Compiler
 
22337
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
22338
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
22339
  # This bug is HP SR number 8606223364.
 
22340
  if test "$cross_compiling" = yes; then
 
22341
  # Depending upon the size, compute the lo and hi bounds.
 
22342
cat >conftest.$ac_ext <<_ACEOF
 
22343
/* confdefs.h.  */
 
22344
_ACEOF
 
22345
cat confdefs.h >>conftest.$ac_ext
 
22346
cat >>conftest.$ac_ext <<_ACEOF
 
22347
/* end confdefs.h.  */
 
22348
$ac_includes_default
 
22349
int
 
22350
main ()
 
22351
{
 
22352
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
 
22353
test_array [0] = 0
 
22354
 
 
22355
  ;
 
22356
  return 0;
 
22357
}
 
22358
_ACEOF
 
22359
rm -f conftest.$ac_objext
 
22360
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22361
  (eval $ac_compile) 2>conftest.er1
 
22362
  ac_status=$?
 
22363
  grep -v '^ *+' conftest.er1 >conftest.err
 
22364
  rm -f conftest.er1
 
22365
  cat conftest.err >&5
 
22366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22367
  (exit $ac_status); } &&
 
22368
         { ac_try='test -z "$ac_c_werror_flag"
 
22369
                         || test ! -s conftest.err'
 
22370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22371
  (eval $ac_try) 2>&5
 
22372
  ac_status=$?
 
22373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22374
  (exit $ac_status); }; } &&
 
22375
         { ac_try='test -s conftest.$ac_objext'
 
22376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22377
  (eval $ac_try) 2>&5
 
22378
  ac_status=$?
 
22379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22380
  (exit $ac_status); }; }; then
 
22381
  ac_lo=0 ac_mid=0
 
22382
  while :; do
 
22383
    cat >conftest.$ac_ext <<_ACEOF
 
22384
/* confdefs.h.  */
 
22385
_ACEOF
 
22386
cat confdefs.h >>conftest.$ac_ext
 
22387
cat >>conftest.$ac_ext <<_ACEOF
 
22388
/* end confdefs.h.  */
 
22389
$ac_includes_default
 
22390
int
 
22391
main ()
 
22392
{
 
22393
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
 
22394
test_array [0] = 0
 
22395
 
 
22396
  ;
 
22397
  return 0;
 
22398
}
 
22399
_ACEOF
 
22400
rm -f conftest.$ac_objext
 
22401
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22402
  (eval $ac_compile) 2>conftest.er1
 
22403
  ac_status=$?
 
22404
  grep -v '^ *+' conftest.er1 >conftest.err
 
22405
  rm -f conftest.er1
 
22406
  cat conftest.err >&5
 
22407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22408
  (exit $ac_status); } &&
 
22409
         { ac_try='test -z "$ac_c_werror_flag"
 
22410
                         || test ! -s conftest.err'
 
22411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22412
  (eval $ac_try) 2>&5
 
22413
  ac_status=$?
 
22414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22415
  (exit $ac_status); }; } &&
 
22416
         { ac_try='test -s conftest.$ac_objext'
 
22417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22418
  (eval $ac_try) 2>&5
 
22419
  ac_status=$?
 
22420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22421
  (exit $ac_status); }; }; then
 
22422
  ac_hi=$ac_mid; break
 
22423
else
 
22424
  echo "$as_me: failed program was:" >&5
 
22425
sed 's/^/| /' conftest.$ac_ext >&5
 
22426
 
 
22427
ac_lo=`expr $ac_mid + 1`
 
22428
                    if test $ac_lo -le $ac_mid; then
 
22429
                      ac_lo= ac_hi=
 
22430
                      break
 
22431
                    fi
 
22432
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
22433
fi
 
22434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22435
  done
 
22436
else
 
22437
  echo "$as_me: failed program was:" >&5
 
22438
sed 's/^/| /' conftest.$ac_ext >&5
 
22439
 
 
22440
cat >conftest.$ac_ext <<_ACEOF
 
22441
/* confdefs.h.  */
 
22442
_ACEOF
 
22443
cat confdefs.h >>conftest.$ac_ext
 
22444
cat >>conftest.$ac_ext <<_ACEOF
 
22445
/* end confdefs.h.  */
 
22446
$ac_includes_default
 
22447
int
 
22448
main ()
 
22449
{
 
22450
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
 
22451
test_array [0] = 0
 
22452
 
 
22453
  ;
 
22454
  return 0;
 
22455
}
 
22456
_ACEOF
 
22457
rm -f conftest.$ac_objext
 
22458
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22459
  (eval $ac_compile) 2>conftest.er1
 
22460
  ac_status=$?
 
22461
  grep -v '^ *+' conftest.er1 >conftest.err
 
22462
  rm -f conftest.er1
 
22463
  cat conftest.err >&5
 
22464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22465
  (exit $ac_status); } &&
 
22466
         { ac_try='test -z "$ac_c_werror_flag"
 
22467
                         || test ! -s conftest.err'
 
22468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22469
  (eval $ac_try) 2>&5
 
22470
  ac_status=$?
 
22471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22472
  (exit $ac_status); }; } &&
 
22473
         { ac_try='test -s conftest.$ac_objext'
 
22474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22475
  (eval $ac_try) 2>&5
 
22476
  ac_status=$?
 
22477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22478
  (exit $ac_status); }; }; then
 
22479
  ac_hi=-1 ac_mid=-1
 
22480
  while :; do
 
22481
    cat >conftest.$ac_ext <<_ACEOF
 
22482
/* confdefs.h.  */
 
22483
_ACEOF
 
22484
cat confdefs.h >>conftest.$ac_ext
 
22485
cat >>conftest.$ac_ext <<_ACEOF
 
22486
/* end confdefs.h.  */
 
22487
$ac_includes_default
 
22488
int
 
22489
main ()
 
22490
{
 
22491
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
 
22492
test_array [0] = 0
 
22493
 
 
22494
  ;
 
22495
  return 0;
 
22496
}
 
22497
_ACEOF
 
22498
rm -f conftest.$ac_objext
 
22499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22500
  (eval $ac_compile) 2>conftest.er1
 
22501
  ac_status=$?
 
22502
  grep -v '^ *+' conftest.er1 >conftest.err
 
22503
  rm -f conftest.er1
 
22504
  cat conftest.err >&5
 
22505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22506
  (exit $ac_status); } &&
 
22507
         { ac_try='test -z "$ac_c_werror_flag"
 
22508
                         || test ! -s conftest.err'
 
22509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22510
  (eval $ac_try) 2>&5
 
22511
  ac_status=$?
 
22512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22513
  (exit $ac_status); }; } &&
 
22514
         { ac_try='test -s conftest.$ac_objext'
 
22515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22516
  (eval $ac_try) 2>&5
 
22517
  ac_status=$?
 
22518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22519
  (exit $ac_status); }; }; then
 
22520
  ac_lo=$ac_mid; break
 
22521
else
 
22522
  echo "$as_me: failed program was:" >&5
 
22523
sed 's/^/| /' conftest.$ac_ext >&5
 
22524
 
 
22525
ac_hi=`expr '(' $ac_mid ')' - 1`
 
22526
                       if test $ac_mid -le $ac_hi; then
 
22527
                         ac_lo= ac_hi=
 
22528
                         break
 
22529
                       fi
 
22530
                       ac_mid=`expr 2 '*' $ac_mid`
 
22531
fi
 
22532
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22533
  done
 
22534
else
 
22535
  echo "$as_me: failed program was:" >&5
 
22536
sed 's/^/| /' conftest.$ac_ext >&5
 
22537
 
 
22538
ac_lo= ac_hi=
 
22539
fi
 
22540
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22541
fi
 
22542
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22543
# Binary search between lo and hi bounds.
 
22544
while test "x$ac_lo" != "x$ac_hi"; do
 
22545
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22546
  cat >conftest.$ac_ext <<_ACEOF
 
22547
/* confdefs.h.  */
 
22548
_ACEOF
 
22549
cat confdefs.h >>conftest.$ac_ext
 
22550
cat >>conftest.$ac_ext <<_ACEOF
 
22551
/* end confdefs.h.  */
 
22552
$ac_includes_default
 
22553
int
 
22554
main ()
 
22555
{
 
22556
static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
 
22557
test_array [0] = 0
 
22558
 
 
22559
  ;
 
22560
  return 0;
 
22561
}
 
22562
_ACEOF
 
22563
rm -f conftest.$ac_objext
 
22564
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22565
  (eval $ac_compile) 2>conftest.er1
 
22566
  ac_status=$?
 
22567
  grep -v '^ *+' conftest.er1 >conftest.err
 
22568
  rm -f conftest.er1
 
22569
  cat conftest.err >&5
 
22570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22571
  (exit $ac_status); } &&
 
22572
         { ac_try='test -z "$ac_c_werror_flag"
 
22573
                         || test ! -s conftest.err'
 
22574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22575
  (eval $ac_try) 2>&5
 
22576
  ac_status=$?
 
22577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22578
  (exit $ac_status); }; } &&
 
22579
         { ac_try='test -s conftest.$ac_objext'
 
22580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22581
  (eval $ac_try) 2>&5
 
22582
  ac_status=$?
 
22583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22584
  (exit $ac_status); }; }; then
 
22585
  ac_hi=$ac_mid
 
22586
else
 
22587
  echo "$as_me: failed program was:" >&5
 
22588
sed 's/^/| /' conftest.$ac_ext >&5
 
22589
 
 
22590
ac_lo=`expr '(' $ac_mid ')' + 1`
 
22591
fi
 
22592
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22593
done
 
22594
case $ac_lo in
 
22595
?*) ac_cv_sizeof_off_t=$ac_lo;;
 
22596
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
 
22597
See \`config.log' for more details." >&5
 
22598
echo "$as_me: error: cannot compute sizeof (off_t), 77
 
22599
See \`config.log' for more details." >&2;}
 
22600
   { (exit 1); exit 1; }; } ;;
9961
22601
esac
9962
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
9963
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9964
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9966
 
else
9967
 
  eval "$as_ac_Header=$ac_header_preproc"
9968
 
fi
9969
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9970
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9971
 
 
9972
 
fi
9973
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9974
 
  cat >>confdefs.h <<_ACEOF
9975
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9976
 
_ACEOF
9977
 
 
9978
 
fi
9979
 
 
9980
 
done
 
22602
else
 
22603
  if test "$cross_compiling" = yes; then
 
22604
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
22605
See \`config.log' for more details." >&5
 
22606
echo "$as_me: error: cannot run test program while cross compiling
 
22607
See \`config.log' for more details." >&2;}
 
22608
   { (exit 1); exit 1; }; }
 
22609
else
 
22610
  cat >conftest.$ac_ext <<_ACEOF
 
22611
/* confdefs.h.  */
 
22612
_ACEOF
 
22613
cat confdefs.h >>conftest.$ac_ext
 
22614
cat >>conftest.$ac_ext <<_ACEOF
 
22615
/* end confdefs.h.  */
 
22616
$ac_includes_default
 
22617
long longval () { return (long) (sizeof (off_t)); }
 
22618
unsigned long ulongval () { return (long) (sizeof (off_t)); }
 
22619
#include <stdio.h>
 
22620
#include <stdlib.h>
 
22621
int
 
22622
main ()
 
22623
{
 
22624
 
 
22625
  FILE *f = fopen ("conftest.val", "w");
 
22626
  if (! f)
 
22627
    exit (1);
 
22628
  if (((long) (sizeof (off_t))) < 0)
 
22629
    {
 
22630
      long i = longval ();
 
22631
      if (i != ((long) (sizeof (off_t))))
 
22632
        exit (1);
 
22633
      fprintf (f, "%ld\n", i);
 
22634
    }
 
22635
  else
 
22636
    {
 
22637
      unsigned long i = ulongval ();
 
22638
      if (i != ((long) (sizeof (off_t))))
 
22639
        exit (1);
 
22640
      fprintf (f, "%lu\n", i);
 
22641
    }
 
22642
  exit (ferror (f) || fclose (f) != 0);
 
22643
 
 
22644
  ;
 
22645
  return 0;
 
22646
}
 
22647
_ACEOF
 
22648
rm -f conftest$ac_exeext
 
22649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22650
  (eval $ac_link) 2>&5
 
22651
  ac_status=$?
 
22652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22653
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22655
  (eval $ac_try) 2>&5
 
22656
  ac_status=$?
 
22657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22658
  (exit $ac_status); }; }; then
 
22659
  ac_cv_sizeof_off_t=`cat conftest.val`
 
22660
else
 
22661
  echo "$as_me: program exited with status $ac_status" >&5
 
22662
echo "$as_me: failed program was:" >&5
 
22663
sed 's/^/| /' conftest.$ac_ext >&5
 
22664
 
 
22665
( exit $ac_status )
 
22666
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
 
22667
See \`config.log' for more details." >&5
 
22668
echo "$as_me: error: cannot compute sizeof (off_t), 77
 
22669
See \`config.log' for more details." >&2;}
 
22670
   { (exit 1); exit 1; }; }
 
22671
fi
 
22672
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22673
fi
 
22674
fi
 
22675
rm -f conftest.val
 
22676
else
 
22677
  ac_cv_sizeof_off_t=0
 
22678
fi
 
22679
fi
 
22680
echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
 
22681
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
 
22682
cat >>confdefs.h <<_ACEOF
 
22683
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
 
22684
_ACEOF
 
22685
 
 
22686
 
 
22687
 
 
22688
echo "$as_me:$LINENO: checking for size_t" >&5
 
22689
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
22690
if test "${ac_cv_type_size_t+set}" = set; then
 
22691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22692
else
 
22693
  cat >conftest.$ac_ext <<_ACEOF
 
22694
/* confdefs.h.  */
 
22695
_ACEOF
 
22696
cat confdefs.h >>conftest.$ac_ext
 
22697
cat >>conftest.$ac_ext <<_ACEOF
 
22698
/* end confdefs.h.  */
 
22699
$ac_includes_default
 
22700
int
 
22701
main ()
 
22702
{
 
22703
if ((size_t *) 0)
 
22704
  return 0;
 
22705
if (sizeof (size_t))
 
22706
  return 0;
 
22707
  ;
 
22708
  return 0;
 
22709
}
 
22710
_ACEOF
 
22711
rm -f conftest.$ac_objext
 
22712
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22713
  (eval $ac_compile) 2>conftest.er1
 
22714
  ac_status=$?
 
22715
  grep -v '^ *+' conftest.er1 >conftest.err
 
22716
  rm -f conftest.er1
 
22717
  cat conftest.err >&5
 
22718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22719
  (exit $ac_status); } &&
 
22720
         { ac_try='test -z "$ac_c_werror_flag"
 
22721
                         || test ! -s conftest.err'
 
22722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22723
  (eval $ac_try) 2>&5
 
22724
  ac_status=$?
 
22725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22726
  (exit $ac_status); }; } &&
 
22727
         { ac_try='test -s conftest.$ac_objext'
 
22728
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22729
  (eval $ac_try) 2>&5
 
22730
  ac_status=$?
 
22731
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22732
  (exit $ac_status); }; }; then
 
22733
  ac_cv_type_size_t=yes
 
22734
else
 
22735
  echo "$as_me: failed program was:" >&5
 
22736
sed 's/^/| /' conftest.$ac_ext >&5
 
22737
 
 
22738
ac_cv_type_size_t=no
 
22739
fi
 
22740
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22741
fi
 
22742
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
22743
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
22744
if test $ac_cv_type_size_t = yes; then
 
22745
  :
 
22746
else
 
22747
 
 
22748
cat >>confdefs.h <<_ACEOF
 
22749
#define size_t unsigned
 
22750
_ACEOF
 
22751
 
 
22752
fi
 
22753
 
 
22754
echo "$as_me:$LINENO: checking for pid_t" >&5
 
22755
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
22756
if test "${ac_cv_type_pid_t+set}" = set; then
 
22757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22758
else
 
22759
  cat >conftest.$ac_ext <<_ACEOF
 
22760
/* confdefs.h.  */
 
22761
_ACEOF
 
22762
cat confdefs.h >>conftest.$ac_ext
 
22763
cat >>conftest.$ac_ext <<_ACEOF
 
22764
/* end confdefs.h.  */
 
22765
$ac_includes_default
 
22766
int
 
22767
main ()
 
22768
{
 
22769
if ((pid_t *) 0)
 
22770
  return 0;
 
22771
if (sizeof (pid_t))
 
22772
  return 0;
 
22773
  ;
 
22774
  return 0;
 
22775
}
 
22776
_ACEOF
 
22777
rm -f conftest.$ac_objext
 
22778
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22779
  (eval $ac_compile) 2>conftest.er1
 
22780
  ac_status=$?
 
22781
  grep -v '^ *+' conftest.er1 >conftest.err
 
22782
  rm -f conftest.er1
 
22783
  cat conftest.err >&5
 
22784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22785
  (exit $ac_status); } &&
 
22786
         { ac_try='test -z "$ac_c_werror_flag"
 
22787
                         || test ! -s conftest.err'
 
22788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22789
  (eval $ac_try) 2>&5
 
22790
  ac_status=$?
 
22791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22792
  (exit $ac_status); }; } &&
 
22793
         { ac_try='test -s conftest.$ac_objext'
 
22794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22795
  (eval $ac_try) 2>&5
 
22796
  ac_status=$?
 
22797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22798
  (exit $ac_status); }; }; then
 
22799
  ac_cv_type_pid_t=yes
 
22800
else
 
22801
  echo "$as_me: failed program was:" >&5
 
22802
sed 's/^/| /' conftest.$ac_ext >&5
 
22803
 
 
22804
ac_cv_type_pid_t=no
 
22805
fi
 
22806
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22807
fi
 
22808
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
22809
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
22810
if test $ac_cv_type_pid_t = yes; then
 
22811
  :
 
22812
else
 
22813
 
 
22814
cat >>confdefs.h <<_ACEOF
 
22815
#define pid_t int
 
22816
_ACEOF
 
22817
 
 
22818
fi
9981
22819
 
9982
22820
echo "$as_me:$LINENO: checking for uint32_t" >&5
9983
22821
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9985
22823
  echo $ECHO_N "(cached) $ECHO_C" >&6
9986
22824
else
9987
22825
  cat >conftest.$ac_ext <<_ACEOF
9988
 
#line $LINENO "configure"
9989
22826
/* confdefs.h.  */
9990
22827
_ACEOF
9991
22828
cat confdefs.h >>conftest.$ac_ext
10005
22842
_ACEOF
10006
22843
rm -f conftest.$ac_objext
10007
22844
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10008
 
  (eval $ac_compile) 2>&5
 
22845
  (eval $ac_compile) 2>conftest.er1
10009
22846
  ac_status=$?
 
22847
  grep -v '^ *+' conftest.er1 >conftest.err
 
22848
  rm -f conftest.er1
 
22849
  cat conftest.err >&5
10010
22850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011
22851
  (exit $ac_status); } &&
10012
 
         { ac_try='test -s conftest.$ac_objext'
 
22852
         { ac_try='test -z "$ac_c_werror_flag"
 
22853
                         || test ! -s conftest.err'
 
22854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22855
  (eval $ac_try) 2>&5
 
22856
  ac_status=$?
 
22857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22858
  (exit $ac_status); }; } &&
 
22859
         { ac_try='test -s conftest.$ac_objext'
10013
22860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014
22861
  (eval $ac_try) 2>&5
10015
22862
  ac_status=$?
10022
22869
 
10023
22870
ac_cv_type_uint32_t=no
10024
22871
fi
10025
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22872
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10026
22873
fi
10027
22874
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
10028
22875
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
10035
22882
 
10036
22883
fi
10037
22884
 
10038
 
 
10039
 
 
10040
 
 
10041
 
 
10042
 
 
10043
 
 
10044
 
 
10045
 
 
10046
 
for ac_header in string.h stdarg.h unistd.h sys/time.h utime.h sys/utime.h pwd.h
10047
 
do
10048
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10049
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10050
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10051
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10052
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10053
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10054
 
fi
10055
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10056
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10057
 
else
10058
 
  # Is the header compilable?
10059
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10060
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10061
 
cat >conftest.$ac_ext <<_ACEOF
10062
 
#line $LINENO "configure"
10063
 
/* confdefs.h.  */
10064
 
_ACEOF
10065
 
cat confdefs.h >>conftest.$ac_ext
10066
 
cat >>conftest.$ac_ext <<_ACEOF
10067
 
/* end confdefs.h.  */
10068
 
$ac_includes_default
10069
 
#include <$ac_header>
10070
 
_ACEOF
10071
 
rm -f conftest.$ac_objext
10072
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10073
 
  (eval $ac_compile) 2>&5
10074
 
  ac_status=$?
10075
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076
 
  (exit $ac_status); } &&
10077
 
         { ac_try='test -s conftest.$ac_objext'
10078
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079
 
  (eval $ac_try) 2>&5
10080
 
  ac_status=$?
10081
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082
 
  (exit $ac_status); }; }; then
10083
 
  ac_header_compiler=yes
10084
 
else
10085
 
  echo "$as_me: failed program was:" >&5
10086
 
sed 's/^/| /' conftest.$ac_ext >&5
10087
 
 
10088
 
ac_header_compiler=no
10089
 
fi
10090
 
rm -f conftest.$ac_objext conftest.$ac_ext
10091
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10092
 
echo "${ECHO_T}$ac_header_compiler" >&6
10093
 
 
10094
 
# Is the header present?
10095
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10096
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10097
 
cat >conftest.$ac_ext <<_ACEOF
10098
 
#line $LINENO "configure"
10099
 
/* confdefs.h.  */
10100
 
_ACEOF
10101
 
cat confdefs.h >>conftest.$ac_ext
10102
 
cat >>conftest.$ac_ext <<_ACEOF
10103
 
/* end confdefs.h.  */
10104
 
#include <$ac_header>
10105
 
_ACEOF
10106
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10107
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10108
 
  ac_status=$?
10109
 
  grep -v '^ *+' conftest.er1 >conftest.err
10110
 
  rm -f conftest.er1
10111
 
  cat conftest.err >&5
10112
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113
 
  (exit $ac_status); } >/dev/null; then
10114
 
  if test -s conftest.err; then
10115
 
    ac_cpp_err=$ac_c_preproc_warn_flag
10116
 
  else
10117
 
    ac_cpp_err=
10118
 
  fi
10119
 
else
10120
 
  ac_cpp_err=yes
10121
 
fi
10122
 
if test -z "$ac_cpp_err"; then
10123
 
  ac_header_preproc=yes
10124
 
else
10125
 
  echo "$as_me: failed program was:" >&5
10126
 
sed 's/^/| /' conftest.$ac_ext >&5
10127
 
 
10128
 
  ac_header_preproc=no
10129
 
fi
10130
 
rm -f conftest.err conftest.$ac_ext
10131
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10132
 
echo "${ECHO_T}$ac_header_preproc" >&6
10133
 
 
10134
 
# So?  What about this header?
10135
 
case $ac_header_compiler:$ac_header_preproc in
10136
 
  yes:no )
10137
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10138
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10139
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10140
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10141
 
    (
10142
 
      cat <<\_ASBOX
10143
 
## ------------------------------------ ##
10144
 
## Report this to bug-autoconf@gnu.org. ##
10145
 
## ------------------------------------ ##
10146
 
_ASBOX
10147
 
    ) |
10148
 
      sed "s/^/$as_me: WARNING:     /" >&2
10149
 
    ;;
10150
 
  no:yes )
10151
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10152
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10153
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10154
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10155
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10156
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10157
 
    (
10158
 
      cat <<\_ASBOX
10159
 
## ------------------------------------ ##
10160
 
## Report this to bug-autoconf@gnu.org. ##
10161
 
## ------------------------------------ ##
10162
 
_ASBOX
10163
 
    ) |
10164
 
      sed "s/^/$as_me: WARNING:     /" >&2
10165
 
    ;;
10166
 
esac
10167
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
10168
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10169
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10170
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10171
 
else
10172
 
  eval "$as_ac_Header=$ac_header_preproc"
10173
 
fi
10174
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10175
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10176
 
 
10177
 
fi
10178
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10179
 
  cat >>confdefs.h <<_ACEOF
10180
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10181
 
_ACEOF
10182
 
 
10183
 
fi
10184
 
 
10185
 
done
10186
 
 
10187
 
 
10188
 
 
10189
 
 
10190
 
 
10191
 
for ac_header in termios.h sys/ioctl.h sys/select.h sys/utsname.h
10192
 
do
10193
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10194
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10195
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10196
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10197
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10198
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10199
 
fi
10200
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10201
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10202
 
else
10203
 
  # Is the header compilable?
10204
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10205
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10206
 
cat >conftest.$ac_ext <<_ACEOF
10207
 
#line $LINENO "configure"
10208
 
/* confdefs.h.  */
10209
 
_ACEOF
10210
 
cat confdefs.h >>conftest.$ac_ext
10211
 
cat >>conftest.$ac_ext <<_ACEOF
10212
 
/* end confdefs.h.  */
10213
 
$ac_includes_default
10214
 
#include <$ac_header>
10215
 
_ACEOF
10216
 
rm -f conftest.$ac_objext
10217
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218
 
  (eval $ac_compile) 2>&5
10219
 
  ac_status=$?
10220
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221
 
  (exit $ac_status); } &&
10222
 
         { ac_try='test -s conftest.$ac_objext'
10223
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224
 
  (eval $ac_try) 2>&5
10225
 
  ac_status=$?
10226
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227
 
  (exit $ac_status); }; }; then
10228
 
  ac_header_compiler=yes
10229
 
else
10230
 
  echo "$as_me: failed program was:" >&5
10231
 
sed 's/^/| /' conftest.$ac_ext >&5
10232
 
 
10233
 
ac_header_compiler=no
10234
 
fi
10235
 
rm -f conftest.$ac_objext conftest.$ac_ext
10236
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10237
 
echo "${ECHO_T}$ac_header_compiler" >&6
10238
 
 
10239
 
# Is the header present?
10240
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10241
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10242
 
cat >conftest.$ac_ext <<_ACEOF
10243
 
#line $LINENO "configure"
10244
 
/* confdefs.h.  */
10245
 
_ACEOF
10246
 
cat confdefs.h >>conftest.$ac_ext
10247
 
cat >>conftest.$ac_ext <<_ACEOF
10248
 
/* end confdefs.h.  */
10249
 
#include <$ac_header>
10250
 
_ACEOF
10251
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10252
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10253
 
  ac_status=$?
10254
 
  grep -v '^ *+' conftest.er1 >conftest.err
10255
 
  rm -f conftest.er1
10256
 
  cat conftest.err >&5
10257
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258
 
  (exit $ac_status); } >/dev/null; then
10259
 
  if test -s conftest.err; then
10260
 
    ac_cpp_err=$ac_c_preproc_warn_flag
10261
 
  else
10262
 
    ac_cpp_err=
10263
 
  fi
10264
 
else
10265
 
  ac_cpp_err=yes
10266
 
fi
10267
 
if test -z "$ac_cpp_err"; then
10268
 
  ac_header_preproc=yes
10269
 
else
10270
 
  echo "$as_me: failed program was:" >&5
10271
 
sed 's/^/| /' conftest.$ac_ext >&5
10272
 
 
10273
 
  ac_header_preproc=no
10274
 
fi
10275
 
rm -f conftest.err conftest.$ac_ext
10276
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10277
 
echo "${ECHO_T}$ac_header_preproc" >&6
10278
 
 
10279
 
# So?  What about this header?
10280
 
case $ac_header_compiler:$ac_header_preproc in
10281
 
  yes:no )
10282
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10283
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10284
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10285
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10286
 
    (
10287
 
      cat <<\_ASBOX
10288
 
## ------------------------------------ ##
10289
 
## Report this to bug-autoconf@gnu.org. ##
10290
 
## ------------------------------------ ##
10291
 
_ASBOX
10292
 
    ) |
10293
 
      sed "s/^/$as_me: WARNING:     /" >&2
10294
 
    ;;
10295
 
  no:yes )
10296
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10297
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10298
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10299
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10300
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10301
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10302
 
    (
10303
 
      cat <<\_ASBOX
10304
 
## ------------------------------------ ##
10305
 
## Report this to bug-autoconf@gnu.org. ##
10306
 
## ------------------------------------ ##
10307
 
_ASBOX
10308
 
    ) |
10309
 
      sed "s/^/$as_me: WARNING:     /" >&2
10310
 
    ;;
10311
 
esac
10312
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
10313
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10314
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10315
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10316
 
else
10317
 
  eval "$as_ac_Header=$ac_header_preproc"
10318
 
fi
10319
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10320
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10321
 
 
10322
 
fi
10323
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10324
 
  cat >>confdefs.h <<_ACEOF
10325
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10326
 
_ACEOF
10327
 
 
10328
 
fi
10329
 
 
10330
 
done
10331
 
 
10332
 
 
10333
 
 
10334
 
for ac_header in signal.h setjmp.h
10335
 
do
10336
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10337
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10338
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
10339
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10340
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10342
 
fi
10343
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10344
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10345
 
else
10346
 
  # Is the header compilable?
10347
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10348
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10349
 
cat >conftest.$ac_ext <<_ACEOF
10350
 
#line $LINENO "configure"
10351
 
/* confdefs.h.  */
10352
 
_ACEOF
10353
 
cat confdefs.h >>conftest.$ac_ext
10354
 
cat >>conftest.$ac_ext <<_ACEOF
10355
 
/* end confdefs.h.  */
10356
 
$ac_includes_default
10357
 
#include <$ac_header>
10358
 
_ACEOF
10359
 
rm -f conftest.$ac_objext
10360
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10361
 
  (eval $ac_compile) 2>&5
10362
 
  ac_status=$?
10363
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364
 
  (exit $ac_status); } &&
10365
 
         { ac_try='test -s conftest.$ac_objext'
10366
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367
 
  (eval $ac_try) 2>&5
10368
 
  ac_status=$?
10369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370
 
  (exit $ac_status); }; }; then
10371
 
  ac_header_compiler=yes
10372
 
else
10373
 
  echo "$as_me: failed program was:" >&5
10374
 
sed 's/^/| /' conftest.$ac_ext >&5
10375
 
 
10376
 
ac_header_compiler=no
10377
 
fi
10378
 
rm -f conftest.$ac_objext conftest.$ac_ext
10379
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10380
 
echo "${ECHO_T}$ac_header_compiler" >&6
10381
 
 
10382
 
# Is the header present?
10383
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10384
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10385
 
cat >conftest.$ac_ext <<_ACEOF
10386
 
#line $LINENO "configure"
10387
 
/* confdefs.h.  */
10388
 
_ACEOF
10389
 
cat confdefs.h >>conftest.$ac_ext
10390
 
cat >>conftest.$ac_ext <<_ACEOF
10391
 
/* end confdefs.h.  */
10392
 
#include <$ac_header>
10393
 
_ACEOF
10394
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10395
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10396
 
  ac_status=$?
10397
 
  grep -v '^ *+' conftest.er1 >conftest.err
10398
 
  rm -f conftest.er1
10399
 
  cat conftest.err >&5
10400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401
 
  (exit $ac_status); } >/dev/null; then
10402
 
  if test -s conftest.err; then
10403
 
    ac_cpp_err=$ac_c_preproc_warn_flag
10404
 
  else
10405
 
    ac_cpp_err=
10406
 
  fi
10407
 
else
10408
 
  ac_cpp_err=yes
10409
 
fi
10410
 
if test -z "$ac_cpp_err"; then
10411
 
  ac_header_preproc=yes
10412
 
else
10413
 
  echo "$as_me: failed program was:" >&5
10414
 
sed 's/^/| /' conftest.$ac_ext >&5
10415
 
 
10416
 
  ac_header_preproc=no
10417
 
fi
10418
 
rm -f conftest.err conftest.$ac_ext
10419
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10420
 
echo "${ECHO_T}$ac_header_preproc" >&6
10421
 
 
10422
 
# So?  What about this header?
10423
 
case $ac_header_compiler:$ac_header_preproc in
10424
 
  yes:no )
10425
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10426
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10427
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10428
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10429
 
    (
10430
 
      cat <<\_ASBOX
10431
 
## ------------------------------------ ##
10432
 
## Report this to bug-autoconf@gnu.org. ##
10433
 
## ------------------------------------ ##
10434
 
_ASBOX
10435
 
    ) |
10436
 
      sed "s/^/$as_me: WARNING:     /" >&2
10437
 
    ;;
10438
 
  no:yes )
10439
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10440
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10441
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10442
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10443
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10444
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10445
 
    (
10446
 
      cat <<\_ASBOX
10447
 
## ------------------------------------ ##
10448
 
## Report this to bug-autoconf@gnu.org. ##
10449
 
## ------------------------------------ ##
10450
 
_ASBOX
10451
 
    ) |
10452
 
      sed "s/^/$as_me: WARNING:     /" >&2
10453
 
    ;;
10454
 
esac
10455
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
10456
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10457
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10458
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10459
 
else
10460
 
  eval "$as_ac_Header=$ac_header_preproc"
10461
 
fi
10462
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10463
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10464
 
 
10465
 
fi
10466
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10467
 
  cat >>confdefs.h <<_ACEOF
10468
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10469
 
_ACEOF
10470
 
 
10471
 
fi
10472
 
 
10473
 
done
10474
 
 
10475
 
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10476
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10477
 
if test "${ac_cv_header_time+set}" = set; then
10478
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10479
 
else
10480
 
  cat >conftest.$ac_ext <<_ACEOF
10481
 
#line $LINENO "configure"
10482
 
/* confdefs.h.  */
10483
 
_ACEOF
10484
 
cat confdefs.h >>conftest.$ac_ext
10485
 
cat >>conftest.$ac_ext <<_ACEOF
10486
 
/* end confdefs.h.  */
10487
 
#include <sys/types.h>
10488
 
#include <sys/time.h>
10489
 
#include <time.h>
10490
 
 
10491
 
int
10492
 
main ()
10493
 
{
10494
 
if ((struct tm *) 0)
10495
 
return 0;
10496
 
  ;
10497
 
  return 0;
10498
 
}
10499
 
_ACEOF
10500
 
rm -f conftest.$ac_objext
10501
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502
 
  (eval $ac_compile) 2>&5
10503
 
  ac_status=$?
10504
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505
 
  (exit $ac_status); } &&
10506
 
         { ac_try='test -s conftest.$ac_objext'
10507
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508
 
  (eval $ac_try) 2>&5
10509
 
  ac_status=$?
10510
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511
 
  (exit $ac_status); }; }; then
10512
 
  ac_cv_header_time=yes
10513
 
else
10514
 
  echo "$as_me: failed program was:" >&5
10515
 
sed 's/^/| /' conftest.$ac_ext >&5
10516
 
 
10517
 
ac_cv_header_time=no
10518
 
fi
10519
 
rm -f conftest.$ac_objext conftest.$ac_ext
10520
 
fi
10521
 
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10522
 
echo "${ECHO_T}$ac_cv_header_time" >&6
10523
 
if test $ac_cv_header_time = yes; then
10524
 
 
10525
 
cat >>confdefs.h <<\_ACEOF
10526
 
#define TIME_WITH_SYS_TIME 1
10527
 
_ACEOF
10528
 
 
10529
 
fi
10530
 
 
10531
 
 
10532
22885
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10533
22886
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10534
22887
if test "${ac_cv_type_signal+set}" = set; then
10535
22888
  echo $ECHO_N "(cached) $ECHO_C" >&6
10536
22889
else
10537
22890
  cat >conftest.$ac_ext <<_ACEOF
10538
 
#line $LINENO "configure"
10539
22891
/* confdefs.h.  */
10540
22892
_ACEOF
10541
22893
cat confdefs.h >>conftest.$ac_ext
10562
22914
_ACEOF
10563
22915
rm -f conftest.$ac_objext
10564
22916
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10565
 
  (eval $ac_compile) 2>&5
 
22917
  (eval $ac_compile) 2>conftest.er1
10566
22918
  ac_status=$?
 
22919
  grep -v '^ *+' conftest.er1 >conftest.err
 
22920
  rm -f conftest.er1
 
22921
  cat conftest.err >&5
10567
22922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568
22923
  (exit $ac_status); } &&
10569
 
         { ac_try='test -s conftest.$ac_objext'
 
22924
         { ac_try='test -z "$ac_c_werror_flag"
 
22925
                         || test ! -s conftest.err'
 
22926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22927
  (eval $ac_try) 2>&5
 
22928
  ac_status=$?
 
22929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22930
  (exit $ac_status); }; } &&
 
22931
         { ac_try='test -s conftest.$ac_objext'
10570
22932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571
22933
  (eval $ac_try) 2>&5
10572
22934
  ac_status=$?
10579
22941
 
10580
22942
ac_cv_type_signal=int
10581
22943
fi
10582
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22944
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10583
22945
fi
10584
22946
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10585
22947
echo "${ECHO_T}$ac_cv_type_signal" >&6
10589
22951
_ACEOF
10590
22952
 
10591
22953
 
10592
 
 
10593
 
echo "$as_me:$LINENO: checking for struct utimbuf" >&5
10594
 
echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
10595
 
if test x"$ac_cv_header_utime_h" = xyes; then
10596
 
  cat >conftest.$ac_ext <<_ACEOF
10597
 
#line $LINENO "configure"
10598
 
/* confdefs.h.  */
10599
 
_ACEOF
10600
 
cat confdefs.h >>conftest.$ac_ext
10601
 
cat >>conftest.$ac_ext <<_ACEOF
10602
 
/* end confdefs.h.  */
10603
 
#include <utime.h>
10604
 
_ACEOF
10605
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10606
 
  $EGREP "struct[       ]+utimbuf" >/dev/null 2>&1; then
10607
 
  cat >>confdefs.h <<\_ACEOF
10608
 
#define HAVE_STRUCT_UTIMBUF 1
10609
 
_ACEOF
10610
 
 
10611
 
      echo "$as_me:$LINENO: result: yes" >&5
10612
 
echo "${ECHO_T}yes" >&6
10613
 
else
10614
 
  echo "$as_me:$LINENO: result: no" >&5
10615
 
echo "${ECHO_T}no" >&6
10616
 
fi
10617
 
rm -f conftest*
10618
 
 
10619
 
else
10620
 
  echo "$as_me:$LINENO: result: no" >&5
10621
 
echo "${ECHO_T}no" >&6
10622
 
fi
10623
 
 
10624
 
  echo "$as_me:$LINENO: checking for socklen_t" >&5
10625
 
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10626
 
  cat >conftest.$ac_ext <<_ACEOF
10627
 
#line $LINENO "configure"
10628
 
/* confdefs.h.  */
10629
 
_ACEOF
10630
 
cat confdefs.h >>conftest.$ac_ext
10631
 
cat >>conftest.$ac_ext <<_ACEOF
10632
 
/* end confdefs.h.  */
10633
 
 
10634
 
#include <sys/types.h>
10635
 
#include <sys/socket.h>
10636
 
socklen_t x;
10637
 
 
10638
 
int
10639
 
main ()
10640
 
{
10641
 
 
10642
 
  ;
10643
 
  return 0;
10644
 
}
10645
 
_ACEOF
10646
 
rm -f conftest.$ac_objext
10647
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648
 
  (eval $ac_compile) 2>&5
10649
 
  ac_status=$?
10650
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651
 
  (exit $ac_status); } &&
10652
 
         { ac_try='test -s conftest.$ac_objext'
10653
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654
 
  (eval $ac_try) 2>&5
10655
 
  ac_status=$?
10656
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657
 
  (exit $ac_status); }; }; then
10658
 
  echo "$as_me:$LINENO: result: yes" >&5
10659
 
echo "${ECHO_T}yes" >&6
10660
 
else
10661
 
  echo "$as_me: failed program was:" >&5
10662
 
sed 's/^/| /' conftest.$ac_ext >&5
10663
 
 
10664
 
 
10665
 
      cat >conftest.$ac_ext <<_ACEOF
10666
 
#line $LINENO "configure"
10667
 
/* confdefs.h.  */
10668
 
_ACEOF
10669
 
cat confdefs.h >>conftest.$ac_ext
10670
 
cat >>conftest.$ac_ext <<_ACEOF
10671
 
/* end confdefs.h.  */
10672
 
 
10673
 
#include <sys/types.h>
10674
 
#include <sys/socket.h>
10675
 
int accept (int, struct sockaddr *, size_t *);
10676
 
 
10677
 
int
10678
 
main ()
10679
 
{
10680
 
 
10681
 
  ;
10682
 
  return 0;
10683
 
}
10684
 
_ACEOF
10685
 
rm -f conftest.$ac_objext
10686
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10687
 
  (eval $ac_compile) 2>&5
10688
 
  ac_status=$?
10689
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690
 
  (exit $ac_status); } &&
10691
 
         { ac_try='test -s conftest.$ac_objext'
10692
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693
 
  (eval $ac_try) 2>&5
10694
 
  ac_status=$?
10695
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696
 
  (exit $ac_status); }; }; then
10697
 
 
10698
 
      echo "$as_me:$LINENO: result: size_t" >&5
10699
 
echo "${ECHO_T}size_t" >&6
10700
 
      cat >>confdefs.h <<\_ACEOF
10701
 
#define socklen_t size_t
10702
 
_ACEOF
10703
 
 
10704
 
 
10705
 
else
10706
 
  echo "$as_me: failed program was:" >&5
10707
 
sed 's/^/| /' conftest.$ac_ext >&5
10708
 
 
10709
 
 
10710
 
      echo "$as_me:$LINENO: result: int" >&5
10711
 
echo "${ECHO_T}int" >&6
10712
 
      cat >>confdefs.h <<\_ACEOF
10713
 
#define socklen_t int
10714
 
_ACEOF
10715
 
 
10716
 
 
10717
 
fi
10718
 
rm -f conftest.$ac_objext conftest.$ac_ext
10719
 
 
10720
 
fi
10721
 
rm -f conftest.$ac_objext conftest.$ac_ext
10722
 
 
10723
 
 
10724
 
  echo "$as_me:$LINENO: checking for working fnmatch.h" >&5
10725
 
echo $ECHO_N "checking for working fnmatch.h... $ECHO_C" >&6
10726
 
  cat >conftest.$ac_ext <<_ACEOF
10727
 
#include <fnmatch.h>
10728
 
 
10729
 
_ACEOF
10730
 
rm -f conftest.$ac_objext
10731
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10732
 
  (eval $ac_compile) 2>&5
10733
 
  ac_status=$?
10734
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735
 
  (exit $ac_status); } &&
10736
 
         { ac_try='test -s conftest.$ac_objext'
10737
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738
 
  (eval $ac_try) 2>&5
10739
 
  ac_status=$?
10740
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741
 
  (exit $ac_status); }; }; then
10742
 
 
10743
 
    echo "$as_me:$LINENO: result: yes" >&5
10744
 
echo "${ECHO_T}yes" >&6
10745
 
    cat >>confdefs.h <<\_ACEOF
10746
 
#define HAVE_WORKING_FNMATCH_H 1
10747
 
_ACEOF
10748
 
 
10749
 
 
10750
 
else
10751
 
  echo "$as_me: failed program was:" >&5
10752
 
sed 's/^/| /' conftest.$ac_ext >&5
10753
 
 
10754
 
 
10755
 
    echo "$as_me:$LINENO: result: no" >&5
10756
 
echo "${ECHO_T}no" >&6
10757
 
 
10758
 
fi
10759
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22954
echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
 
22955
echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
 
22956
if test "${ac_cv_type_sig_atomic_t+set}" = set; then
 
22957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22958
else
 
22959
  cat >conftest.$ac_ext <<_ACEOF
 
22960
/* confdefs.h.  */
 
22961
_ACEOF
 
22962
cat confdefs.h >>conftest.$ac_ext
 
22963
cat >>conftest.$ac_ext <<_ACEOF
 
22964
/* end confdefs.h.  */
 
22965
 
 
22966
#include <stdio.h>
 
22967
#include <sys/types.h>
 
22968
#if HAVE_INTTYPES_H
 
22969
# include <inttypes.h>
 
22970
#endif
 
22971
#ifdef HAVE_SIGNAL_H
 
22972
# include <signal.h>
 
22973
#endif
 
22974
 
 
22975
 
 
22976
int
 
22977
main ()
 
22978
{
 
22979
if ((sig_atomic_t *) 0)
 
22980
  return 0;
 
22981
if (sizeof (sig_atomic_t))
 
22982
  return 0;
 
22983
  ;
 
22984
  return 0;
 
22985
}
 
22986
_ACEOF
 
22987
rm -f conftest.$ac_objext
 
22988
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22989
  (eval $ac_compile) 2>conftest.er1
 
22990
  ac_status=$?
 
22991
  grep -v '^ *+' conftest.er1 >conftest.err
 
22992
  rm -f conftest.er1
 
22993
  cat conftest.err >&5
 
22994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22995
  (exit $ac_status); } &&
 
22996
         { ac_try='test -z "$ac_c_werror_flag"
 
22997
                         || test ! -s conftest.err'
 
22998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22999
  (eval $ac_try) 2>&5
 
23000
  ac_status=$?
 
23001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23002
  (exit $ac_status); }; } &&
 
23003
         { ac_try='test -s conftest.$ac_objext'
 
23004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23005
  (eval $ac_try) 2>&5
 
23006
  ac_status=$?
 
23007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23008
  (exit $ac_status); }; }; then
 
23009
  ac_cv_type_sig_atomic_t=yes
 
23010
else
 
23011
  echo "$as_me: failed program was:" >&5
 
23012
sed 's/^/| /' conftest.$ac_ext >&5
 
23013
 
 
23014
ac_cv_type_sig_atomic_t=no
 
23015
fi
 
23016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23017
fi
 
23018
echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
 
23019
echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
 
23020
if test $ac_cv_type_sig_atomic_t = yes; then
 
23021
 
 
23022
cat >>confdefs.h <<_ACEOF
 
23023
#define HAVE_SIG_ATOMIC_T 1
 
23024
_ACEOF
 
23025
 
 
23026
 
 
23027
fi
10760
23028
 
10761
23029
 
10762
23030
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10767
23035
  echo $ECHO_N "(cached) $ECHO_C" >&6
10768
23036
else
10769
23037
  cat >conftest.$ac_ext <<_ACEOF
10770
 
#line $LINENO "configure"
10771
23038
/* confdefs.h.  */
10772
23039
_ACEOF
10773
23040
cat confdefs.h >>conftest.$ac_ext
10784
23051
_ACEOF
10785
23052
rm -f conftest.$ac_objext conftest$ac_exeext
10786
23053
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10787
 
  (eval $ac_link) 2>&5
 
23054
  (eval $ac_link) 2>conftest.er1
10788
23055
  ac_status=$?
 
23056
  grep -v '^ *+' conftest.er1 >conftest.err
 
23057
  rm -f conftest.er1
 
23058
  cat conftest.err >&5
10789
23059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790
23060
  (exit $ac_status); } &&
10791
 
         { ac_try='test -s conftest$ac_exeext'
 
23061
         { ac_try='test -z "$ac_c_werror_flag"
 
23062
                         || test ! -s conftest.err'
 
23063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23064
  (eval $ac_try) 2>&5
 
23065
  ac_status=$?
 
23066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23067
  (exit $ac_status); }; } &&
 
23068
         { ac_try='test -s conftest$ac_exeext'
10792
23069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793
23070
  (eval $ac_try) 2>&5
10794
23071
  ac_status=$?
10801
23078
 
10802
23079
ac_cv_working_alloca_h=no
10803
23080
fi
10804
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23081
rm -f conftest.err conftest.$ac_objext \
 
23082
      conftest$ac_exeext conftest.$ac_ext
10805
23083
fi
10806
23084
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10807
23085
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10819
23097
  echo $ECHO_N "(cached) $ECHO_C" >&6
10820
23098
else
10821
23099
  cat >conftest.$ac_ext <<_ACEOF
10822
 
#line $LINENO "configure"
10823
23100
/* confdefs.h.  */
10824
23101
_ACEOF
10825
23102
cat confdefs.h >>conftest.$ac_ext
10856
23133
_ACEOF
10857
23134
rm -f conftest.$ac_objext conftest$ac_exeext
10858
23135
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10859
 
  (eval $ac_link) 2>&5
 
23136
  (eval $ac_link) 2>conftest.er1
10860
23137
  ac_status=$?
 
23138
  grep -v '^ *+' conftest.er1 >conftest.err
 
23139
  rm -f conftest.er1
 
23140
  cat conftest.err >&5
10861
23141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862
23142
  (exit $ac_status); } &&
10863
 
         { ac_try='test -s conftest$ac_exeext'
 
23143
         { ac_try='test -z "$ac_c_werror_flag"
 
23144
                         || test ! -s conftest.err'
 
23145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23146
  (eval $ac_try) 2>&5
 
23147
  ac_status=$?
 
23148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23149
  (exit $ac_status); }; } &&
 
23150
         { ac_try='test -s conftest$ac_exeext'
10864
23151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865
23152
  (eval $ac_try) 2>&5
10866
23153
  ac_status=$?
10873
23160
 
10874
23161
ac_cv_func_alloca_works=no
10875
23162
fi
10876
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23163
rm -f conftest.err conftest.$ac_objext \
 
23164
      conftest$ac_exeext conftest.$ac_ext
10877
23165
fi
10878
23166
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10879
23167
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10903
23191
  echo $ECHO_N "(cached) $ECHO_C" >&6
10904
23192
else
10905
23193
  cat >conftest.$ac_ext <<_ACEOF
10906
 
#line $LINENO "configure"
10907
23194
/* confdefs.h.  */
10908
23195
_ACEOF
10909
23196
cat confdefs.h >>conftest.$ac_ext
10936
23223
  echo $ECHO_N "(cached) $ECHO_C" >&6
10937
23224
else
10938
23225
  cat >conftest.$ac_ext <<_ACEOF
10939
 
#line $LINENO "configure"
10940
23226
/* confdefs.h.  */
10941
23227
_ACEOF
10942
23228
cat confdefs.h >>conftest.$ac_ext
10943
23229
cat >>conftest.$ac_ext <<_ACEOF
10944
23230
/* end confdefs.h.  */
 
23231
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23232
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23233
#define $ac_func innocuous_$ac_func
 
23234
 
10945
23235
/* System header to define __stub macros and hopefully few prototypes,
10946
23236
    which can conflict with char $ac_func (); below.
10947
23237
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10948
23238
    <limits.h> exists even on freestanding compilers.  */
 
23239
 
10949
23240
#ifdef __STDC__
10950
23241
# include <limits.h>
10951
23242
#else
10952
23243
# include <assert.h>
10953
23244
#endif
 
23245
 
 
23246
#undef $ac_func
 
23247
 
10954
23248
/* Override any gcc2 internal prototype to avoid an error.  */
10955
23249
#ifdef __cplusplus
10956
23250
extern "C"
10981
23275
_ACEOF
10982
23276
rm -f conftest.$ac_objext conftest$ac_exeext
10983
23277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10984
 
  (eval $ac_link) 2>&5
 
23278
  (eval $ac_link) 2>conftest.er1
10985
23279
  ac_status=$?
 
23280
  grep -v '^ *+' conftest.er1 >conftest.err
 
23281
  rm -f conftest.er1
 
23282
  cat conftest.err >&5
10986
23283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987
23284
  (exit $ac_status); } &&
10988
 
         { ac_try='test -s conftest$ac_exeext'
 
23285
         { ac_try='test -z "$ac_c_werror_flag"
 
23286
                         || test ! -s conftest.err'
 
23287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23288
  (eval $ac_try) 2>&5
 
23289
  ac_status=$?
 
23290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23291
  (exit $ac_status); }; } &&
 
23292
         { ac_try='test -s conftest$ac_exeext'
10989
23293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990
23294
  (eval $ac_try) 2>&5
10991
23295
  ac_status=$?
10998
23302
 
10999
23303
eval "$as_ac_var=no"
11000
23304
fi
11001
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23305
rm -f conftest.err conftest.$ac_objext \
 
23306
      conftest$ac_exeext conftest.$ac_ext
11002
23307
fi
11003
23308
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11004
23309
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11023
23328
  ac_cv_c_stack_direction=0
11024
23329
else
11025
23330
  cat >conftest.$ac_ext <<_ACEOF
11026
 
#line $LINENO "configure"
11027
23331
/* confdefs.h.  */
11028
23332
_ACEOF
11029
23333
cat confdefs.h >>conftest.$ac_ext
11069
23373
( exit $ac_status )
11070
23374
ac_cv_c_stack_direction=-1
11071
23375
fi
11072
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23376
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11073
23377
fi
11074
23378
fi
11075
23379
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11100
23404
echo "$as_me:$LINENO: checking $ac_header usability" >&5
11101
23405
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11102
23406
cat >conftest.$ac_ext <<_ACEOF
11103
 
#line $LINENO "configure"
11104
23407
/* confdefs.h.  */
11105
23408
_ACEOF
11106
23409
cat confdefs.h >>conftest.$ac_ext
11111
23414
_ACEOF
11112
23415
rm -f conftest.$ac_objext
11113
23416
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11114
 
  (eval $ac_compile) 2>&5
 
23417
  (eval $ac_compile) 2>conftest.er1
11115
23418
  ac_status=$?
 
23419
  grep -v '^ *+' conftest.er1 >conftest.err
 
23420
  rm -f conftest.er1
 
23421
  cat conftest.err >&5
11116
23422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117
23423
  (exit $ac_status); } &&
11118
 
         { ac_try='test -s conftest.$ac_objext'
 
23424
         { ac_try='test -z "$ac_c_werror_flag"
 
23425
                         || test ! -s conftest.err'
 
23426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23427
  (eval $ac_try) 2>&5
 
23428
  ac_status=$?
 
23429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23430
  (exit $ac_status); }; } &&
 
23431
         { ac_try='test -s conftest.$ac_objext'
11119
23432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120
23433
  (eval $ac_try) 2>&5
11121
23434
  ac_status=$?
11128
23441
 
11129
23442
ac_header_compiler=no
11130
23443
fi
11131
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
23444
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11132
23445
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11133
23446
echo "${ECHO_T}$ac_header_compiler" >&6
11134
23447
 
11136
23449
echo "$as_me:$LINENO: checking $ac_header presence" >&5
11137
23450
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11138
23451
cat >conftest.$ac_ext <<_ACEOF
11139
 
#line $LINENO "configure"
11140
23452
/* confdefs.h.  */
11141
23453
_ACEOF
11142
23454
cat confdefs.h >>conftest.$ac_ext
11154
23466
  (exit $ac_status); } >/dev/null; then
11155
23467
  if test -s conftest.err; then
11156
23468
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23469
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11157
23470
  else
11158
23471
    ac_cpp_err=
11159
23472
  fi
11173
23486
echo "${ECHO_T}$ac_header_preproc" >&6
11174
23487
 
11175
23488
# So?  What about this header?
11176
 
case $ac_header_compiler:$ac_header_preproc in
11177
 
  yes:no )
 
23489
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23490
  yes:no: )
11178
23491
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11179
23492
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11180
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11181
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11182
 
    (
11183
 
      cat <<\_ASBOX
11184
 
## ------------------------------------ ##
11185
 
## Report this to bug-autoconf@gnu.org. ##
11186
 
## ------------------------------------ ##
11187
 
_ASBOX
11188
 
    ) |
11189
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
23493
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23494
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23495
    ac_header_preproc=yes
11190
23496
    ;;
11191
 
  no:yes )
 
23497
  no:yes:* )
11192
23498
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11193
23499
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11194
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11195
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
23500
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23501
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23502
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23503
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23504
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23505
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11196
23506
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11197
23507
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23508
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23509
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11198
23510
    (
11199
23511
      cat <<\_ASBOX
11200
 
## ------------------------------------ ##
11201
 
## Report this to bug-autoconf@gnu.org. ##
11202
 
## ------------------------------------ ##
 
23512
## ------------------------------------------ ##
 
23513
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23514
## ------------------------------------------ ##
11203
23515
_ASBOX
11204
23516
    ) |
11205
23517
      sed "s/^/$as_me: WARNING:     /" >&2
11210
23522
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11211
23523
  echo $ECHO_N "(cached) $ECHO_C" >&6
11212
23524
else
11213
 
  eval "$as_ac_Header=$ac_header_preproc"
 
23525
  eval "$as_ac_Header=\$ac_header_preproc"
11214
23526
fi
11215
23527
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11216
23528
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11235
23547
  echo $ECHO_N "(cached) $ECHO_C" >&6
11236
23548
else
11237
23549
  cat >conftest.$ac_ext <<_ACEOF
11238
 
#line $LINENO "configure"
11239
23550
/* confdefs.h.  */
11240
23551
_ACEOF
11241
23552
cat confdefs.h >>conftest.$ac_ext
11242
23553
cat >>conftest.$ac_ext <<_ACEOF
11243
23554
/* end confdefs.h.  */
 
23555
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23556
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23557
#define $ac_func innocuous_$ac_func
 
23558
 
11244
23559
/* System header to define __stub macros and hopefully few prototypes,
11245
23560
    which can conflict with char $ac_func (); below.
11246
23561
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247
23562
    <limits.h> exists even on freestanding compilers.  */
 
23563
 
11248
23564
#ifdef __STDC__
11249
23565
# include <limits.h>
11250
23566
#else
11251
23567
# include <assert.h>
11252
23568
#endif
 
23569
 
 
23570
#undef $ac_func
 
23571
 
11253
23572
/* Override any gcc2 internal prototype to avoid an error.  */
11254
23573
#ifdef __cplusplus
11255
23574
extern "C"
11280
23599
_ACEOF
11281
23600
rm -f conftest.$ac_objext conftest$ac_exeext
11282
23601
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11283
 
  (eval $ac_link) 2>&5
 
23602
  (eval $ac_link) 2>conftest.er1
11284
23603
  ac_status=$?
 
23604
  grep -v '^ *+' conftest.er1 >conftest.err
 
23605
  rm -f conftest.er1
 
23606
  cat conftest.err >&5
11285
23607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286
23608
  (exit $ac_status); } &&
11287
 
         { ac_try='test -s conftest$ac_exeext'
 
23609
         { ac_try='test -z "$ac_c_werror_flag"
 
23610
                         || test ! -s conftest.err'
 
23611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23612
  (eval $ac_try) 2>&5
 
23613
  ac_status=$?
 
23614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23615
  (exit $ac_status); }; } &&
 
23616
         { ac_try='test -s conftest$ac_exeext'
11288
23617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289
23618
  (eval $ac_try) 2>&5
11290
23619
  ac_status=$?
11297
23626
 
11298
23627
eval "$as_ac_var=no"
11299
23628
fi
11300
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23629
rm -f conftest.err conftest.$ac_objext \
 
23630
      conftest$ac_exeext conftest.$ac_ext
11301
23631
fi
11302
23632
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11303
23633
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11318
23648
  ac_cv_func_mmap_fixed_mapped=no
11319
23649
else
11320
23650
  cat >conftest.$ac_ext <<_ACEOF
11321
 
#line $LINENO "configure"
11322
23651
/* confdefs.h.  */
11323
23652
_ACEOF
11324
23653
cat confdefs.h >>conftest.$ac_ext
11426
23755
  data2 = (char *) malloc (2 * pagesize);
11427
23756
  if (!data2)
11428
23757
    exit (1);
11429
 
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
 
23758
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
11430
23759
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11431
 
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
23760
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
11432
23761
    exit (1);
11433
23762
  for (i = 0; i < pagesize; ++i)
11434
23763
    if (*(data + i) != *(data2 + i))
11471
23800
( exit $ac_status )
11472
23801
ac_cv_func_mmap_fixed_mapped=no
11473
23802
fi
11474
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23803
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11475
23804
fi
11476
23805
fi
11477
23806
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11485
23814
fi
11486
23815
rm -f conftest.mmap
11487
23816
 
 
23817
echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
 
23818
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
 
23819
if test "${ac_cv_sys_largefile_source+set}" = set; then
 
23820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23821
else
 
23822
  while :; do
 
23823
  ac_cv_sys_largefile_source=no
 
23824
  cat >conftest.$ac_ext <<_ACEOF
 
23825
/* confdefs.h.  */
 
23826
_ACEOF
 
23827
cat confdefs.h >>conftest.$ac_ext
 
23828
cat >>conftest.$ac_ext <<_ACEOF
 
23829
/* end confdefs.h.  */
 
23830
#include <stdio.h>
 
23831
int
 
23832
main ()
 
23833
{
 
23834
return !fseeko;
 
23835
  ;
 
23836
  return 0;
 
23837
}
 
23838
_ACEOF
 
23839
rm -f conftest.$ac_objext
 
23840
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23841
  (eval $ac_compile) 2>conftest.er1
 
23842
  ac_status=$?
 
23843
  grep -v '^ *+' conftest.er1 >conftest.err
 
23844
  rm -f conftest.er1
 
23845
  cat conftest.err >&5
 
23846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23847
  (exit $ac_status); } &&
 
23848
         { ac_try='test -z "$ac_c_werror_flag"
 
23849
                         || test ! -s conftest.err'
 
23850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23851
  (eval $ac_try) 2>&5
 
23852
  ac_status=$?
 
23853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23854
  (exit $ac_status); }; } &&
 
23855
         { ac_try='test -s conftest.$ac_objext'
 
23856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23857
  (eval $ac_try) 2>&5
 
23858
  ac_status=$?
 
23859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23860
  (exit $ac_status); }; }; then
 
23861
  break
 
23862
else
 
23863
  echo "$as_me: failed program was:" >&5
 
23864
sed 's/^/| /' conftest.$ac_ext >&5
 
23865
 
 
23866
fi
 
23867
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23868
  cat >conftest.$ac_ext <<_ACEOF
 
23869
/* confdefs.h.  */
 
23870
_ACEOF
 
23871
cat confdefs.h >>conftest.$ac_ext
 
23872
cat >>conftest.$ac_ext <<_ACEOF
 
23873
/* end confdefs.h.  */
 
23874
#define _LARGEFILE_SOURCE 1
 
23875
#include <stdio.h>
 
23876
int
 
23877
main ()
 
23878
{
 
23879
return !fseeko;
 
23880
  ;
 
23881
  return 0;
 
23882
}
 
23883
_ACEOF
 
23884
rm -f conftest.$ac_objext
 
23885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23886
  (eval $ac_compile) 2>conftest.er1
 
23887
  ac_status=$?
 
23888
  grep -v '^ *+' conftest.er1 >conftest.err
 
23889
  rm -f conftest.er1
 
23890
  cat conftest.err >&5
 
23891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23892
  (exit $ac_status); } &&
 
23893
         { ac_try='test -z "$ac_c_werror_flag"
 
23894
                         || test ! -s conftest.err'
 
23895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23896
  (eval $ac_try) 2>&5
 
23897
  ac_status=$?
 
23898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23899
  (exit $ac_status); }; } &&
 
23900
         { ac_try='test -s conftest.$ac_objext'
 
23901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23902
  (eval $ac_try) 2>&5
 
23903
  ac_status=$?
 
23904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23905
  (exit $ac_status); }; }; then
 
23906
  ac_cv_sys_largefile_source=1; break
 
23907
else
 
23908
  echo "$as_me: failed program was:" >&5
 
23909
sed 's/^/| /' conftest.$ac_ext >&5
 
23910
 
 
23911
fi
 
23912
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23913
  break
 
23914
done
 
23915
fi
 
23916
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
 
23917
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
 
23918
if test "$ac_cv_sys_largefile_source" != no; then
 
23919
 
 
23920
cat >>confdefs.h <<_ACEOF
 
23921
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
 
23922
_ACEOF
 
23923
 
 
23924
fi
 
23925
rm -f conftest*
 
23926
 
 
23927
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
 
23928
# in glibc 2.1.3, but that breaks too many other things.
 
23929
# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
 
23930
echo "$as_me:$LINENO: checking for fseeko" >&5
 
23931
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
 
23932
if test "${ac_cv_func_fseeko+set}" = set; then
 
23933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23934
else
 
23935
  cat >conftest.$ac_ext <<_ACEOF
 
23936
/* confdefs.h.  */
 
23937
_ACEOF
 
23938
cat confdefs.h >>conftest.$ac_ext
 
23939
cat >>conftest.$ac_ext <<_ACEOF
 
23940
/* end confdefs.h.  */
 
23941
#include <stdio.h>
 
23942
int
 
23943
main ()
 
23944
{
 
23945
return fseeko && fseeko (stdin, 0, 0);
 
23946
  ;
 
23947
  return 0;
 
23948
}
 
23949
_ACEOF
 
23950
rm -f conftest.$ac_objext conftest$ac_exeext
 
23951
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23952
  (eval $ac_link) 2>conftest.er1
 
23953
  ac_status=$?
 
23954
  grep -v '^ *+' conftest.er1 >conftest.err
 
23955
  rm -f conftest.er1
 
23956
  cat conftest.err >&5
 
23957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23958
  (exit $ac_status); } &&
 
23959
         { ac_try='test -z "$ac_c_werror_flag"
 
23960
                         || test ! -s conftest.err'
 
23961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23962
  (eval $ac_try) 2>&5
 
23963
  ac_status=$?
 
23964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23965
  (exit $ac_status); }; } &&
 
23966
         { ac_try='test -s conftest$ac_exeext'
 
23967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23968
  (eval $ac_try) 2>&5
 
23969
  ac_status=$?
 
23970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23971
  (exit $ac_status); }; }; then
 
23972
  ac_cv_func_fseeko=yes
 
23973
else
 
23974
  echo "$as_me: failed program was:" >&5
 
23975
sed 's/^/| /' conftest.$ac_ext >&5
 
23976
 
 
23977
ac_cv_func_fseeko=no
 
23978
fi
 
23979
rm -f conftest.err conftest.$ac_objext \
 
23980
      conftest$ac_exeext conftest.$ac_ext
 
23981
fi
 
23982
echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
 
23983
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
 
23984
if test $ac_cv_func_fseeko = yes; then
 
23985
 
 
23986
cat >>confdefs.h <<\_ACEOF
 
23987
#define HAVE_FSEEKO 1
 
23988
_ACEOF
 
23989
 
 
23990
fi
 
23991
 
11488
23992
 
11489
23993
 
11490
23994
 
11500
24004
  echo $ECHO_N "(cached) $ECHO_C" >&6
11501
24005
else
11502
24006
  cat >conftest.$ac_ext <<_ACEOF
11503
 
#line $LINENO "configure"
11504
24007
/* confdefs.h.  */
11505
24008
_ACEOF
11506
24009
cat confdefs.h >>conftest.$ac_ext
11507
24010
cat >>conftest.$ac_ext <<_ACEOF
11508
24011
/* end confdefs.h.  */
 
24012
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24013
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24014
#define $ac_func innocuous_$ac_func
 
24015
 
11509
24016
/* System header to define __stub macros and hopefully few prototypes,
11510
24017
    which can conflict with char $ac_func (); below.
11511
24018
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11512
24019
    <limits.h> exists even on freestanding compilers.  */
 
24020
 
11513
24021
#ifdef __STDC__
11514
24022
# include <limits.h>
11515
24023
#else
11516
24024
# include <assert.h>
11517
24025
#endif
 
24026
 
 
24027
#undef $ac_func
 
24028
 
11518
24029
/* Override any gcc2 internal prototype to avoid an error.  */
11519
24030
#ifdef __cplusplus
11520
24031
extern "C"
11545
24056
_ACEOF
11546
24057
rm -f conftest.$ac_objext conftest$ac_exeext
11547
24058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11548
 
  (eval $ac_link) 2>&5
 
24059
  (eval $ac_link) 2>conftest.er1
11549
24060
  ac_status=$?
 
24061
  grep -v '^ *+' conftest.er1 >conftest.err
 
24062
  rm -f conftest.er1
 
24063
  cat conftest.err >&5
11550
24064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551
24065
  (exit $ac_status); } &&
11552
 
         { ac_try='test -s conftest$ac_exeext'
 
24066
         { ac_try='test -z "$ac_c_werror_flag"
 
24067
                         || test ! -s conftest.err'
 
24068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24069
  (eval $ac_try) 2>&5
 
24070
  ac_status=$?
 
24071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24072
  (exit $ac_status); }; } &&
 
24073
         { ac_try='test -s conftest$ac_exeext'
11553
24074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554
24075
  (eval $ac_try) 2>&5
11555
24076
  ac_status=$?
11562
24083
 
11563
24084
eval "$as_ac_var=no"
11564
24085
fi
11565
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
24086
rm -f conftest.err conftest.$ac_objext \
 
24087
      conftest$ac_exeext conftest.$ac_ext
11566
24088
fi
11567
24089
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11568
24090
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11589
24111
  echo $ECHO_N "(cached) $ECHO_C" >&6
11590
24112
else
11591
24113
  cat >conftest.$ac_ext <<_ACEOF
11592
 
#line $LINENO "configure"
11593
 
/* confdefs.h.  */
11594
 
_ACEOF
11595
 
cat confdefs.h >>conftest.$ac_ext
11596
 
cat >>conftest.$ac_ext <<_ACEOF
11597
 
/* end confdefs.h.  */
11598
 
/* System header to define __stub macros and hopefully few prototypes,
11599
 
    which can conflict with char $ac_func (); below.
11600
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11601
 
    <limits.h> exists even on freestanding compilers.  */
11602
 
#ifdef __STDC__
11603
 
# include <limits.h>
11604
 
#else
11605
 
# include <assert.h>
11606
 
#endif
11607
 
/* Override any gcc2 internal prototype to avoid an error.  */
11608
 
#ifdef __cplusplus
11609
 
extern "C"
11610
 
{
11611
 
#endif
11612
 
/* We use char because int might match the return type of a gcc2
11613
 
   builtin and then its argument prototype would still apply.  */
11614
 
char $ac_func ();
11615
 
/* The GNU C library defines this for functions which it implements
11616
 
    to always fail with ENOSYS.  Some functions are actually named
11617
 
    something starting with __ and the normal name is an alias.  */
11618
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11619
 
choke me
11620
 
#else
11621
 
char (*f) () = $ac_func;
11622
 
#endif
11623
 
#ifdef __cplusplus
11624
 
}
11625
 
#endif
11626
 
 
11627
 
int
11628
 
main ()
11629
 
{
11630
 
return f != $ac_func;
11631
 
  ;
11632
 
  return 0;
11633
 
}
11634
 
_ACEOF
11635
 
rm -f conftest.$ac_objext conftest$ac_exeext
11636
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11637
 
  (eval $ac_link) 2>&5
11638
 
  ac_status=$?
11639
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640
 
  (exit $ac_status); } &&
11641
 
         { ac_try='test -s conftest$ac_exeext'
11642
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643
 
  (eval $ac_try) 2>&5
11644
 
  ac_status=$?
11645
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646
 
  (exit $ac_status); }; }; then
11647
 
  eval "$as_ac_var=yes"
11648
 
else
11649
 
  echo "$as_me: failed program was:" >&5
11650
 
sed 's/^/| /' conftest.$ac_ext >&5
11651
 
 
11652
 
eval "$as_ac_var=no"
11653
 
fi
11654
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11655
 
fi
11656
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11657
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11658
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11659
 
  cat >>confdefs.h <<_ACEOF
11660
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11661
 
_ACEOF
11662
 
 
11663
 
fi
11664
 
done
11665
 
 
11666
 
 
11667
 
 
11668
 
 
11669
 
 
11670
 
 
11671
 
 
11672
 
 
11673
 
for ac_func in select sigblock sigsetjmp signal symlink access isatty
11674
 
do
11675
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11676
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
11677
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11678
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
11679
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11680
 
else
11681
 
  cat >conftest.$ac_ext <<_ACEOF
11682
 
#line $LINENO "configure"
11683
 
/* confdefs.h.  */
11684
 
_ACEOF
11685
 
cat confdefs.h >>conftest.$ac_ext
11686
 
cat >>conftest.$ac_ext <<_ACEOF
11687
 
/* end confdefs.h.  */
11688
 
/* System header to define __stub macros and hopefully few prototypes,
11689
 
    which can conflict with char $ac_func (); below.
11690
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11691
 
    <limits.h> exists even on freestanding compilers.  */
11692
 
#ifdef __STDC__
11693
 
# include <limits.h>
11694
 
#else
11695
 
# include <assert.h>
11696
 
#endif
11697
 
/* Override any gcc2 internal prototype to avoid an error.  */
11698
 
#ifdef __cplusplus
11699
 
extern "C"
11700
 
{
11701
 
#endif
11702
 
/* We use char because int might match the return type of a gcc2
11703
 
   builtin and then its argument prototype would still apply.  */
11704
 
char $ac_func ();
11705
 
/* The GNU C library defines this for functions which it implements
11706
 
    to always fail with ENOSYS.  Some functions are actually named
11707
 
    something starting with __ and the normal name is an alias.  */
11708
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11709
 
choke me
11710
 
#else
11711
 
char (*f) () = $ac_func;
11712
 
#endif
11713
 
#ifdef __cplusplus
11714
 
}
11715
 
#endif
11716
 
 
11717
 
int
11718
 
main ()
11719
 
{
11720
 
return f != $ac_func;
11721
 
  ;
11722
 
  return 0;
11723
 
}
11724
 
_ACEOF
11725
 
rm -f conftest.$ac_objext conftest$ac_exeext
11726
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11727
 
  (eval $ac_link) 2>&5
11728
 
  ac_status=$?
11729
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730
 
  (exit $ac_status); } &&
11731
 
         { ac_try='test -s conftest$ac_exeext'
11732
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733
 
  (eval $ac_try) 2>&5
11734
 
  ac_status=$?
11735
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736
 
  (exit $ac_status); }; }; then
11737
 
  eval "$as_ac_var=yes"
11738
 
else
11739
 
  echo "$as_me: failed program was:" >&5
11740
 
sed 's/^/| /' conftest.$ac_ext >&5
11741
 
 
11742
 
eval "$as_ac_var=no"
11743
 
fi
11744
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11745
 
fi
11746
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11747
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11748
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11749
 
  cat >>confdefs.h <<_ACEOF
11750
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11751
 
_ACEOF
11752
 
 
11753
 
fi
11754
 
done
11755
 
 
11756
 
 
11757
 
 
11758
 
 
11759
 
for ac_func in uname gethostname usleep
11760
 
do
11761
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11762
 
echo "$as_me:$LINENO: checking for $ac_func" >&5
11763
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11764
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
11765
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11766
 
else
11767
 
  cat >conftest.$ac_ext <<_ACEOF
11768
 
#line $LINENO "configure"
11769
 
/* confdefs.h.  */
11770
 
_ACEOF
11771
 
cat confdefs.h >>conftest.$ac_ext
11772
 
cat >>conftest.$ac_ext <<_ACEOF
11773
 
/* end confdefs.h.  */
11774
 
/* System header to define __stub macros and hopefully few prototypes,
11775
 
    which can conflict with char $ac_func (); below.
11776
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11777
 
    <limits.h> exists even on freestanding compilers.  */
11778
 
#ifdef __STDC__
11779
 
# include <limits.h>
11780
 
#else
11781
 
# include <assert.h>
11782
 
#endif
11783
 
/* Override any gcc2 internal prototype to avoid an error.  */
11784
 
#ifdef __cplusplus
11785
 
extern "C"
11786
 
{
11787
 
#endif
11788
 
/* We use char because int might match the return type of a gcc2
11789
 
   builtin and then its argument prototype would still apply.  */
11790
 
char $ac_func ();
11791
 
/* The GNU C library defines this for functions which it implements
11792
 
    to always fail with ENOSYS.  Some functions are actually named
11793
 
    something starting with __ and the normal name is an alias.  */
11794
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11795
 
choke me
11796
 
#else
11797
 
char (*f) () = $ac_func;
11798
 
#endif
11799
 
#ifdef __cplusplus
11800
 
}
11801
 
#endif
11802
 
 
11803
 
int
11804
 
main ()
11805
 
{
11806
 
return f != $ac_func;
11807
 
  ;
11808
 
  return 0;
11809
 
}
11810
 
_ACEOF
11811
 
rm -f conftest.$ac_objext conftest$ac_exeext
11812
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11813
 
  (eval $ac_link) 2>&5
11814
 
  ac_status=$?
11815
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816
 
  (exit $ac_status); } &&
11817
 
         { ac_try='test -s conftest$ac_exeext'
11818
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819
 
  (eval $ac_try) 2>&5
11820
 
  ac_status=$?
11821
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822
 
  (exit $ac_status); }; }; then
11823
 
  eval "$as_ac_var=yes"
11824
 
else
11825
 
  echo "$as_me: failed program was:" >&5
11826
 
sed 's/^/| /' conftest.$ac_ext >&5
11827
 
 
11828
 
eval "$as_ac_var=no"
11829
 
fi
11830
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11831
 
fi
11832
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11833
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11834
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
11835
 
  cat >>confdefs.h <<_ACEOF
11836
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11837
 
_ACEOF
11838
 
 
11839
 
fi
11840
 
done
11841
 
 
11842
 
 
11843
 
echo "$as_me:$LINENO: checking for getopt_long" >&5
11844
 
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
11845
 
if test "${ac_cv_func_getopt_long+set}" = set; then
11846
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11847
 
else
11848
 
  cat >conftest.$ac_ext <<_ACEOF
11849
 
#line $LINENO "configure"
11850
 
/* confdefs.h.  */
11851
 
_ACEOF
11852
 
cat confdefs.h >>conftest.$ac_ext
11853
 
cat >>conftest.$ac_ext <<_ACEOF
11854
 
/* end confdefs.h.  */
11855
 
/* System header to define __stub macros and hopefully few prototypes,
11856
 
    which can conflict with char getopt_long (); below.
11857
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11858
 
    <limits.h> exists even on freestanding compilers.  */
11859
 
#ifdef __STDC__
11860
 
# include <limits.h>
11861
 
#else
11862
 
# include <assert.h>
11863
 
#endif
11864
 
/* Override any gcc2 internal prototype to avoid an error.  */
11865
 
#ifdef __cplusplus
11866
 
extern "C"
11867
 
{
11868
 
#endif
11869
 
/* We use char because int might match the return type of a gcc2
11870
 
   builtin and then its argument prototype would still apply.  */
11871
 
char getopt_long ();
11872
 
/* The GNU C library defines this for functions which it implements
11873
 
    to always fail with ENOSYS.  Some functions are actually named
11874
 
    something starting with __ and the normal name is an alias.  */
11875
 
#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
11876
 
choke me
11877
 
#else
11878
 
char (*f) () = getopt_long;
11879
 
#endif
11880
 
#ifdef __cplusplus
11881
 
}
11882
 
#endif
11883
 
 
11884
 
int
11885
 
main ()
11886
 
{
11887
 
return f != getopt_long;
11888
 
  ;
11889
 
  return 0;
11890
 
}
11891
 
_ACEOF
11892
 
rm -f conftest.$ac_objext conftest$ac_exeext
11893
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894
 
  (eval $ac_link) 2>&5
11895
 
  ac_status=$?
11896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897
 
  (exit $ac_status); } &&
11898
 
         { ac_try='test -s conftest$ac_exeext'
11899
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900
 
  (eval $ac_try) 2>&5
11901
 
  ac_status=$?
11902
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903
 
  (exit $ac_status); }; }; then
11904
 
  ac_cv_func_getopt_long=yes
11905
 
else
11906
 
  echo "$as_me: failed program was:" >&5
11907
 
sed 's/^/| /' conftest.$ac_ext >&5
11908
 
 
11909
 
ac_cv_func_getopt_long=no
11910
 
fi
11911
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11912
 
fi
11913
 
echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
11914
 
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
11915
 
if test $ac_cv_func_getopt_long = yes; then
11916
 
  :
11917
 
else
11918
 
 
11919
 
  GETOPT_OBJ='getopt$o'
11920
 
 
11921
 
fi
11922
 
 
11923
 
 
11924
 
 
11925
 
 
11926
 
 
11927
 
wget_check_in_nsl=NONE
 
24114
/* confdefs.h.  */
 
24115
_ACEOF
 
24116
cat confdefs.h >>conftest.$ac_ext
 
24117
cat >>conftest.$ac_ext <<_ACEOF
 
24118
/* end confdefs.h.  */
 
24119
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24120
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24121
#define $ac_func innocuous_$ac_func
 
24122
 
 
24123
/* System header to define __stub macros and hopefully few prototypes,
 
24124
    which can conflict with char $ac_func (); below.
 
24125
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24126
    <limits.h> exists even on freestanding compilers.  */
 
24127
 
 
24128
#ifdef __STDC__
 
24129
# include <limits.h>
 
24130
#else
 
24131
# include <assert.h>
 
24132
#endif
 
24133
 
 
24134
#undef $ac_func
 
24135
 
 
24136
/* Override any gcc2 internal prototype to avoid an error.  */
 
24137
#ifdef __cplusplus
 
24138
extern "C"
 
24139
{
 
24140
#endif
 
24141
/* We use char because int might match the return type of a gcc2
 
24142
   builtin and then its argument prototype would still apply.  */
 
24143
char $ac_func ();
 
24144
/* The GNU C library defines this for functions which it implements
 
24145
    to always fail with ENOSYS.  Some functions are actually named
 
24146
    something starting with __ and the normal name is an alias.  */
 
24147
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
24148
choke me
 
24149
#else
 
24150
char (*f) () = $ac_func;
 
24151
#endif
 
24152
#ifdef __cplusplus
 
24153
}
 
24154
#endif
 
24155
 
 
24156
int
 
24157
main ()
 
24158
{
 
24159
return f != $ac_func;
 
24160
  ;
 
24161
  return 0;
 
24162
}
 
24163
_ACEOF
 
24164
rm -f conftest.$ac_objext conftest$ac_exeext
 
24165
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24166
  (eval $ac_link) 2>conftest.er1
 
24167
  ac_status=$?
 
24168
  grep -v '^ *+' conftest.er1 >conftest.err
 
24169
  rm -f conftest.er1
 
24170
  cat conftest.err >&5
 
24171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24172
  (exit $ac_status); } &&
 
24173
         { ac_try='test -z "$ac_c_werror_flag"
 
24174
                         || test ! -s conftest.err'
 
24175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24176
  (eval $ac_try) 2>&5
 
24177
  ac_status=$?
 
24178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24179
  (exit $ac_status); }; } &&
 
24180
         { ac_try='test -s conftest$ac_exeext'
 
24181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24182
  (eval $ac_try) 2>&5
 
24183
  ac_status=$?
 
24184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24185
  (exit $ac_status); }; }; then
 
24186
  eval "$as_ac_var=yes"
 
24187
else
 
24188
  echo "$as_me: failed program was:" >&5
 
24189
sed 's/^/| /' conftest.$ac_ext >&5
 
24190
 
 
24191
eval "$as_ac_var=no"
 
24192
fi
 
24193
rm -f conftest.err conftest.$ac_objext \
 
24194
      conftest$ac_exeext conftest.$ac_ext
 
24195
fi
 
24196
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
24197
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
24198
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24199
  cat >>confdefs.h <<_ACEOF
 
24200
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24201
_ACEOF
 
24202
 
 
24203
fi
 
24204
done
 
24205
 
 
24206
 
 
24207
 
 
24208
 
 
24209
 
 
24210
 
 
24211
 
 
24212
for ac_func in usleep select ftello sigblock sigsetjmp signal
 
24213
do
 
24214
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24215
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24216
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
24217
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
24218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24219
else
 
24220
  cat >conftest.$ac_ext <<_ACEOF
 
24221
/* confdefs.h.  */
 
24222
_ACEOF
 
24223
cat confdefs.h >>conftest.$ac_ext
 
24224
cat >>conftest.$ac_ext <<_ACEOF
 
24225
/* end confdefs.h.  */
 
24226
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24227
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24228
#define $ac_func innocuous_$ac_func
 
24229
 
 
24230
/* System header to define __stub macros and hopefully few prototypes,
 
24231
    which can conflict with char $ac_func (); below.
 
24232
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24233
    <limits.h> exists even on freestanding compilers.  */
 
24234
 
 
24235
#ifdef __STDC__
 
24236
# include <limits.h>
 
24237
#else
 
24238
# include <assert.h>
 
24239
#endif
 
24240
 
 
24241
#undef $ac_func
 
24242
 
 
24243
/* Override any gcc2 internal prototype to avoid an error.  */
 
24244
#ifdef __cplusplus
 
24245
extern "C"
 
24246
{
 
24247
#endif
 
24248
/* We use char because int might match the return type of a gcc2
 
24249
   builtin and then its argument prototype would still apply.  */
 
24250
char $ac_func ();
 
24251
/* The GNU C library defines this for functions which it implements
 
24252
    to always fail with ENOSYS.  Some functions are actually named
 
24253
    something starting with __ and the normal name is an alias.  */
 
24254
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
24255
choke me
 
24256
#else
 
24257
char (*f) () = $ac_func;
 
24258
#endif
 
24259
#ifdef __cplusplus
 
24260
}
 
24261
#endif
 
24262
 
 
24263
int
 
24264
main ()
 
24265
{
 
24266
return f != $ac_func;
 
24267
  ;
 
24268
  return 0;
 
24269
}
 
24270
_ACEOF
 
24271
rm -f conftest.$ac_objext conftest$ac_exeext
 
24272
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24273
  (eval $ac_link) 2>conftest.er1
 
24274
  ac_status=$?
 
24275
  grep -v '^ *+' conftest.er1 >conftest.err
 
24276
  rm -f conftest.er1
 
24277
  cat conftest.err >&5
 
24278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24279
  (exit $ac_status); } &&
 
24280
         { ac_try='test -z "$ac_c_werror_flag"
 
24281
                         || test ! -s conftest.err'
 
24282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24283
  (eval $ac_try) 2>&5
 
24284
  ac_status=$?
 
24285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24286
  (exit $ac_status); }; } &&
 
24287
         { ac_try='test -s conftest$ac_exeext'
 
24288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24289
  (eval $ac_try) 2>&5
 
24290
  ac_status=$?
 
24291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24292
  (exit $ac_status); }; }; then
 
24293
  eval "$as_ac_var=yes"
 
24294
else
 
24295
  echo "$as_me: failed program was:" >&5
 
24296
sed 's/^/| /' conftest.$ac_ext >&5
 
24297
 
 
24298
eval "$as_ac_var=no"
 
24299
fi
 
24300
rm -f conftest.err conftest.$ac_objext \
 
24301
      conftest$ac_exeext conftest.$ac_ext
 
24302
fi
 
24303
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
24304
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
24305
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24306
  cat >>confdefs.h <<_ACEOF
 
24307
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24308
_ACEOF
 
24309
 
 
24310
fi
 
24311
done
 
24312
 
 
24313
 
 
24314
 
 
24315
 
 
24316
for ac_func in symlink access isatty
 
24317
do
 
24318
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24319
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24320
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
24321
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
24322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24323
else
 
24324
  cat >conftest.$ac_ext <<_ACEOF
 
24325
/* confdefs.h.  */
 
24326
_ACEOF
 
24327
cat confdefs.h >>conftest.$ac_ext
 
24328
cat >>conftest.$ac_ext <<_ACEOF
 
24329
/* end confdefs.h.  */
 
24330
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24331
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24332
#define $ac_func innocuous_$ac_func
 
24333
 
 
24334
/* System header to define __stub macros and hopefully few prototypes,
 
24335
    which can conflict with char $ac_func (); below.
 
24336
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24337
    <limits.h> exists even on freestanding compilers.  */
 
24338
 
 
24339
#ifdef __STDC__
 
24340
# include <limits.h>
 
24341
#else
 
24342
# include <assert.h>
 
24343
#endif
 
24344
 
 
24345
#undef $ac_func
 
24346
 
 
24347
/* Override any gcc2 internal prototype to avoid an error.  */
 
24348
#ifdef __cplusplus
 
24349
extern "C"
 
24350
{
 
24351
#endif
 
24352
/* We use char because int might match the return type of a gcc2
 
24353
   builtin and then its argument prototype would still apply.  */
 
24354
char $ac_func ();
 
24355
/* The GNU C library defines this for functions which it implements
 
24356
    to always fail with ENOSYS.  Some functions are actually named
 
24357
    something starting with __ and the normal name is an alias.  */
 
24358
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
24359
choke me
 
24360
#else
 
24361
char (*f) () = $ac_func;
 
24362
#endif
 
24363
#ifdef __cplusplus
 
24364
}
 
24365
#endif
 
24366
 
 
24367
int
 
24368
main ()
 
24369
{
 
24370
return f != $ac_func;
 
24371
  ;
 
24372
  return 0;
 
24373
}
 
24374
_ACEOF
 
24375
rm -f conftest.$ac_objext conftest$ac_exeext
 
24376
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24377
  (eval $ac_link) 2>conftest.er1
 
24378
  ac_status=$?
 
24379
  grep -v '^ *+' conftest.er1 >conftest.err
 
24380
  rm -f conftest.er1
 
24381
  cat conftest.err >&5
 
24382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24383
  (exit $ac_status); } &&
 
24384
         { ac_try='test -z "$ac_c_werror_flag"
 
24385
                         || test ! -s conftest.err'
 
24386
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24387
  (eval $ac_try) 2>&5
 
24388
  ac_status=$?
 
24389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24390
  (exit $ac_status); }; } &&
 
24391
         { ac_try='test -s conftest$ac_exeext'
 
24392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24393
  (eval $ac_try) 2>&5
 
24394
  ac_status=$?
 
24395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24396
  (exit $ac_status); }; }; then
 
24397
  eval "$as_ac_var=yes"
 
24398
else
 
24399
  echo "$as_me: failed program was:" >&5
 
24400
sed 's/^/| /' conftest.$ac_ext >&5
 
24401
 
 
24402
eval "$as_ac_var=no"
 
24403
fi
 
24404
rm -f conftest.err conftest.$ac_objext \
 
24405
      conftest$ac_exeext conftest.$ac_ext
 
24406
fi
 
24407
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
24408
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
24409
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24410
  cat >>confdefs.h <<_ACEOF
 
24411
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24412
_ACEOF
 
24413
 
 
24414
fi
 
24415
done
 
24416
 
 
24417
 
 
24418
 
 
24419
  echo "$as_me:$LINENO: checking for struct utimbuf" >&5
 
24420
echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
 
24421
if test "${ac_cv_type_struct_utimbuf+set}" = set; then
 
24422
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24423
else
 
24424
  cat >conftest.$ac_ext <<_ACEOF
 
24425
/* confdefs.h.  */
 
24426
_ACEOF
 
24427
cat confdefs.h >>conftest.$ac_ext
 
24428
cat >>conftest.$ac_ext <<_ACEOF
 
24429
/* end confdefs.h.  */
 
24430
 
 
24431
#include <stdio.h>
 
24432
#if HAVE_SYS_TYPES_H
 
24433
# include <sys/types.h>
 
24434
#endif
 
24435
#if HAVE_UTIME_H
 
24436
# include <utime.h>
 
24437
#endif
 
24438
 
 
24439
 
 
24440
int
 
24441
main ()
 
24442
{
 
24443
if ((struct utimbuf *) 0)
 
24444
  return 0;
 
24445
if (sizeof (struct utimbuf))
 
24446
  return 0;
 
24447
  ;
 
24448
  return 0;
 
24449
}
 
24450
_ACEOF
 
24451
rm -f conftest.$ac_objext
 
24452
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24453
  (eval $ac_compile) 2>conftest.er1
 
24454
  ac_status=$?
 
24455
  grep -v '^ *+' conftest.er1 >conftest.err
 
24456
  rm -f conftest.er1
 
24457
  cat conftest.err >&5
 
24458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24459
  (exit $ac_status); } &&
 
24460
         { ac_try='test -z "$ac_c_werror_flag"
 
24461
                         || test ! -s conftest.err'
 
24462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24463
  (eval $ac_try) 2>&5
 
24464
  ac_status=$?
 
24465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24466
  (exit $ac_status); }; } &&
 
24467
         { ac_try='test -s conftest.$ac_objext'
 
24468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24469
  (eval $ac_try) 2>&5
 
24470
  ac_status=$?
 
24471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24472
  (exit $ac_status); }; }; then
 
24473
  ac_cv_type_struct_utimbuf=yes
 
24474
else
 
24475
  echo "$as_me: failed program was:" >&5
 
24476
sed 's/^/| /' conftest.$ac_ext >&5
 
24477
 
 
24478
ac_cv_type_struct_utimbuf=no
 
24479
fi
 
24480
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24481
fi
 
24482
echo "$as_me:$LINENO: result: $ac_cv_type_struct_utimbuf" >&5
 
24483
echo "${ECHO_T}$ac_cv_type_struct_utimbuf" >&6
 
24484
if test $ac_cv_type_struct_utimbuf = yes; then
 
24485
 
 
24486
cat >>confdefs.h <<_ACEOF
 
24487
#define HAVE_STRUCT_UTIMBUF 1
 
24488
_ACEOF
 
24489
 
 
24490
 
 
24491
fi
 
24492
 
 
24493
 
 
24494
 
 
24495
  echo "$as_me:$LINENO: checking for socklen_t" >&5
 
24496
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
 
24497
  cat >conftest.$ac_ext <<_ACEOF
 
24498
 
 
24499
#include <sys/types.h>
 
24500
#include <sys/socket.h>
 
24501
socklen_t x;
 
24502
 
 
24503
_ACEOF
 
24504
rm -f conftest.$ac_objext
 
24505
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24506
  (eval $ac_compile) 2>conftest.er1
 
24507
  ac_status=$?
 
24508
  grep -v '^ *+' conftest.er1 >conftest.err
 
24509
  rm -f conftest.er1
 
24510
  cat conftest.err >&5
 
24511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24512
  (exit $ac_status); } &&
 
24513
         { ac_try='test -z "$ac_c_werror_flag"
 
24514
                         || test ! -s conftest.err'
 
24515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24516
  (eval $ac_try) 2>&5
 
24517
  ac_status=$?
 
24518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24519
  (exit $ac_status); }; } &&
 
24520
         { ac_try='test -s conftest.$ac_objext'
 
24521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24522
  (eval $ac_try) 2>&5
 
24523
  ac_status=$?
 
24524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24525
  (exit $ac_status); }; }; then
 
24526
  echo "$as_me:$LINENO: result: socklen_t" >&5
 
24527
echo "${ECHO_T}socklen_t" >&6
 
24528
else
 
24529
  echo "$as_me: failed program was:" >&5
 
24530
sed 's/^/| /' conftest.$ac_ext >&5
 
24531
 
 
24532
 
 
24533
    cat >conftest.$ac_ext <<_ACEOF
 
24534
 
 
24535
#include <sys/types.h>
 
24536
#include <sys/socket.h>
 
24537
int accept (int, struct sockaddr *, size_t *);
 
24538
 
 
24539
_ACEOF
 
24540
rm -f conftest.$ac_objext
 
24541
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24542
  (eval $ac_compile) 2>conftest.er1
 
24543
  ac_status=$?
 
24544
  grep -v '^ *+' conftest.er1 >conftest.err
 
24545
  rm -f conftest.er1
 
24546
  cat conftest.err >&5
 
24547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24548
  (exit $ac_status); } &&
 
24549
         { ac_try='test -z "$ac_c_werror_flag"
 
24550
                         || test ! -s conftest.err'
 
24551
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24552
  (eval $ac_try) 2>&5
 
24553
  ac_status=$?
 
24554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24555
  (exit $ac_status); }; } &&
 
24556
         { ac_try='test -s conftest.$ac_objext'
 
24557
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24558
  (eval $ac_try) 2>&5
 
24559
  ac_status=$?
 
24560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24561
  (exit $ac_status); }; }; then
 
24562
 
 
24563
      echo "$as_me:$LINENO: result: size_t" >&5
 
24564
echo "${ECHO_T}size_t" >&6
 
24565
 
 
24566
cat >>confdefs.h <<\_ACEOF
 
24567
#define socklen_t size_t
 
24568
_ACEOF
 
24569
 
 
24570
 
 
24571
else
 
24572
  echo "$as_me: failed program was:" >&5
 
24573
sed 's/^/| /' conftest.$ac_ext >&5
 
24574
 
 
24575
 
 
24576
      echo "$as_me:$LINENO: result: int" >&5
 
24577
echo "${ECHO_T}int" >&6
 
24578
 
 
24579
cat >>confdefs.h <<\_ACEOF
 
24580
#define socklen_t int
 
24581
_ACEOF
 
24582
 
 
24583
 
 
24584
fi
 
24585
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24586
 
 
24587
fi
 
24588
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24589
 
 
24590
 
 
24591
  echo "$as_me:$LINENO: checking for working fnmatch.h" >&5
 
24592
echo $ECHO_N "checking for working fnmatch.h... $ECHO_C" >&6
 
24593
  cat >conftest.$ac_ext <<_ACEOF
 
24594
#include <fnmatch.h>
 
24595
 
 
24596
_ACEOF
 
24597
rm -f conftest.$ac_objext
 
24598
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24599
  (eval $ac_compile) 2>conftest.er1
 
24600
  ac_status=$?
 
24601
  grep -v '^ *+' conftest.er1 >conftest.err
 
24602
  rm -f conftest.er1
 
24603
  cat conftest.err >&5
 
24604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24605
  (exit $ac_status); } &&
 
24606
         { ac_try='test -z "$ac_c_werror_flag"
 
24607
                         || test ! -s conftest.err'
 
24608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24609
  (eval $ac_try) 2>&5
 
24610
  ac_status=$?
 
24611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24612
  (exit $ac_status); }; } &&
 
24613
         { ac_try='test -s conftest.$ac_objext'
 
24614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24615
  (eval $ac_try) 2>&5
 
24616
  ac_status=$?
 
24617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24618
  (exit $ac_status); }; }; then
 
24619
 
 
24620
    echo "$as_me:$LINENO: result: yes" >&5
 
24621
echo "${ECHO_T}yes" >&6
 
24622
 
 
24623
cat >>confdefs.h <<\_ACEOF
 
24624
#define HAVE_WORKING_FNMATCH_H 1
 
24625
_ACEOF
 
24626
 
 
24627
 
 
24628
else
 
24629
  echo "$as_me: failed program was:" >&5
 
24630
sed 's/^/| /' conftest.$ac_ext >&5
 
24631
 
 
24632
 
 
24633
    echo "$as_me:$LINENO: result: no" >&5
 
24634
echo "${ECHO_T}no" >&6
 
24635
 
 
24636
fi
 
24637
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24638
 
 
24639
 
 
24640
 
 
24641
for ac_func in nanosleep
 
24642
do
 
24643
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24644
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24645
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
24646
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
24647
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24648
else
 
24649
  cat >conftest.$ac_ext <<_ACEOF
 
24650
/* confdefs.h.  */
 
24651
_ACEOF
 
24652
cat confdefs.h >>conftest.$ac_ext
 
24653
cat >>conftest.$ac_ext <<_ACEOF
 
24654
/* end confdefs.h.  */
 
24655
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24656
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24657
#define $ac_func innocuous_$ac_func
 
24658
 
 
24659
/* System header to define __stub macros and hopefully few prototypes,
 
24660
    which can conflict with char $ac_func (); below.
 
24661
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24662
    <limits.h> exists even on freestanding compilers.  */
 
24663
 
 
24664
#ifdef __STDC__
 
24665
# include <limits.h>
 
24666
#else
 
24667
# include <assert.h>
 
24668
#endif
 
24669
 
 
24670
#undef $ac_func
 
24671
 
 
24672
/* Override any gcc2 internal prototype to avoid an error.  */
 
24673
#ifdef __cplusplus
 
24674
extern "C"
 
24675
{
 
24676
#endif
 
24677
/* We use char because int might match the return type of a gcc2
 
24678
   builtin and then its argument prototype would still apply.  */
 
24679
char $ac_func ();
 
24680
/* The GNU C library defines this for functions which it implements
 
24681
    to always fail with ENOSYS.  Some functions are actually named
 
24682
    something starting with __ and the normal name is an alias.  */
 
24683
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
24684
choke me
 
24685
#else
 
24686
char (*f) () = $ac_func;
 
24687
#endif
 
24688
#ifdef __cplusplus
 
24689
}
 
24690
#endif
 
24691
 
 
24692
int
 
24693
main ()
 
24694
{
 
24695
return f != $ac_func;
 
24696
  ;
 
24697
  return 0;
 
24698
}
 
24699
_ACEOF
 
24700
rm -f conftest.$ac_objext conftest$ac_exeext
 
24701
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24702
  (eval $ac_link) 2>conftest.er1
 
24703
  ac_status=$?
 
24704
  grep -v '^ *+' conftest.er1 >conftest.err
 
24705
  rm -f conftest.er1
 
24706
  cat conftest.err >&5
 
24707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24708
  (exit $ac_status); } &&
 
24709
         { ac_try='test -z "$ac_c_werror_flag"
 
24710
                         || test ! -s conftest.err'
 
24711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24712
  (eval $ac_try) 2>&5
 
24713
  ac_status=$?
 
24714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24715
  (exit $ac_status); }; } &&
 
24716
         { ac_try='test -s conftest$ac_exeext'
 
24717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24718
  (eval $ac_try) 2>&5
 
24719
  ac_status=$?
 
24720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24721
  (exit $ac_status); }; }; then
 
24722
  eval "$as_ac_var=yes"
 
24723
else
 
24724
  echo "$as_me: failed program was:" >&5
 
24725
sed 's/^/| /' conftest.$ac_ext >&5
 
24726
 
 
24727
eval "$as_ac_var=no"
 
24728
fi
 
24729
rm -f conftest.err conftest.$ac_objext \
 
24730
      conftest$ac_exeext conftest.$ac_ext
 
24731
fi
 
24732
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
24733
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
24734
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24735
  cat >>confdefs.h <<_ACEOF
 
24736
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24737
_ACEOF
 
24738
 
 
24739
else
 
24740
 
 
24741
    echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
 
24742
echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
 
24743
if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
 
24744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24745
else
 
24746
  ac_check_lib_save_LIBS=$LIBS
 
24747
LIBS="-lrt  $LIBS"
 
24748
cat >conftest.$ac_ext <<_ACEOF
 
24749
/* confdefs.h.  */
 
24750
_ACEOF
 
24751
cat confdefs.h >>conftest.$ac_ext
 
24752
cat >>conftest.$ac_ext <<_ACEOF
 
24753
/* end confdefs.h.  */
 
24754
 
 
24755
/* Override any gcc2 internal prototype to avoid an error.  */
 
24756
#ifdef __cplusplus
 
24757
extern "C"
 
24758
#endif
 
24759
/* We use char because int might match the return type of a gcc2
 
24760
   builtin and then its argument prototype would still apply.  */
 
24761
char nanosleep ();
 
24762
int
 
24763
main ()
 
24764
{
 
24765
nanosleep ();
 
24766
  ;
 
24767
  return 0;
 
24768
}
 
24769
_ACEOF
 
24770
rm -f conftest.$ac_objext conftest$ac_exeext
 
24771
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24772
  (eval $ac_link) 2>conftest.er1
 
24773
  ac_status=$?
 
24774
  grep -v '^ *+' conftest.er1 >conftest.err
 
24775
  rm -f conftest.er1
 
24776
  cat conftest.err >&5
 
24777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24778
  (exit $ac_status); } &&
 
24779
         { ac_try='test -z "$ac_c_werror_flag"
 
24780
                         || test ! -s conftest.err'
 
24781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24782
  (eval $ac_try) 2>&5
 
24783
  ac_status=$?
 
24784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24785
  (exit $ac_status); }; } &&
 
24786
         { ac_try='test -s conftest$ac_exeext'
 
24787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24788
  (eval $ac_try) 2>&5
 
24789
  ac_status=$?
 
24790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24791
  (exit $ac_status); }; }; then
 
24792
  ac_cv_lib_rt_nanosleep=yes
 
24793
else
 
24794
  echo "$as_me: failed program was:" >&5
 
24795
sed 's/^/| /' conftest.$ac_ext >&5
 
24796
 
 
24797
ac_cv_lib_rt_nanosleep=no
 
24798
fi
 
24799
rm -f conftest.err conftest.$ac_objext \
 
24800
      conftest$ac_exeext conftest.$ac_ext
 
24801
LIBS=$ac_check_lib_save_LIBS
 
24802
fi
 
24803
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
 
24804
echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
 
24805
if test $ac_cv_lib_rt_nanosleep = yes; then
 
24806
 
 
24807
 
 
24808
cat >>confdefs.h <<\_ACEOF
 
24809
#define HAVE_NANOSLEEP 1
 
24810
_ACEOF
 
24811
 
 
24812
      LIBS="-lrt $LIBS"
 
24813
 
 
24814
else
 
24815
 
 
24816
      echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
 
24817
echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
 
24818
if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
 
24819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24820
else
 
24821
  ac_check_lib_save_LIBS=$LIBS
 
24822
LIBS="-lposix4  $LIBS"
 
24823
cat >conftest.$ac_ext <<_ACEOF
 
24824
/* confdefs.h.  */
 
24825
_ACEOF
 
24826
cat confdefs.h >>conftest.$ac_ext
 
24827
cat >>conftest.$ac_ext <<_ACEOF
 
24828
/* end confdefs.h.  */
 
24829
 
 
24830
/* Override any gcc2 internal prototype to avoid an error.  */
 
24831
#ifdef __cplusplus
 
24832
extern "C"
 
24833
#endif
 
24834
/* We use char because int might match the return type of a gcc2
 
24835
   builtin and then its argument prototype would still apply.  */
 
24836
char nanosleep ();
 
24837
int
 
24838
main ()
 
24839
{
 
24840
nanosleep ();
 
24841
  ;
 
24842
  return 0;
 
24843
}
 
24844
_ACEOF
 
24845
rm -f conftest.$ac_objext conftest$ac_exeext
 
24846
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24847
  (eval $ac_link) 2>conftest.er1
 
24848
  ac_status=$?
 
24849
  grep -v '^ *+' conftest.er1 >conftest.err
 
24850
  rm -f conftest.er1
 
24851
  cat conftest.err >&5
 
24852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24853
  (exit $ac_status); } &&
 
24854
         { ac_try='test -z "$ac_c_werror_flag"
 
24855
                         || test ! -s conftest.err'
 
24856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24857
  (eval $ac_try) 2>&5
 
24858
  ac_status=$?
 
24859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24860
  (exit $ac_status); }; } &&
 
24861
         { ac_try='test -s conftest$ac_exeext'
 
24862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24863
  (eval $ac_try) 2>&5
 
24864
  ac_status=$?
 
24865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24866
  (exit $ac_status); }; }; then
 
24867
  ac_cv_lib_posix4_nanosleep=yes
 
24868
else
 
24869
  echo "$as_me: failed program was:" >&5
 
24870
sed 's/^/| /' conftest.$ac_ext >&5
 
24871
 
 
24872
ac_cv_lib_posix4_nanosleep=no
 
24873
fi
 
24874
rm -f conftest.err conftest.$ac_objext \
 
24875
      conftest$ac_exeext conftest.$ac_ext
 
24876
LIBS=$ac_check_lib_save_LIBS
 
24877
fi
 
24878
echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
 
24879
echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
 
24880
if test $ac_cv_lib_posix4_nanosleep = yes; then
 
24881
 
 
24882
 
 
24883
cat >>confdefs.h <<\_ACEOF
 
24884
#define HAVE_NANOSLEEP 1
 
24885
_ACEOF
 
24886
 
 
24887
        LIBS="-lposix4 $LIBS"
 
24888
 
 
24889
fi
 
24890
 
 
24891
 
 
24892
fi
 
24893
 
 
24894
 
 
24895
fi
 
24896
done
 
24897
 
 
24898
 
 
24899
 
 
24900
 
 
24901
for ac_func in clock_gettime
 
24902
do
 
24903
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
24904
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
24905
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
24906
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
24907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24908
else
 
24909
  cat >conftest.$ac_ext <<_ACEOF
 
24910
/* confdefs.h.  */
 
24911
_ACEOF
 
24912
cat confdefs.h >>conftest.$ac_ext
 
24913
cat >>conftest.$ac_ext <<_ACEOF
 
24914
/* end confdefs.h.  */
 
24915
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
24916
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24917
#define $ac_func innocuous_$ac_func
 
24918
 
 
24919
/* System header to define __stub macros and hopefully few prototypes,
 
24920
    which can conflict with char $ac_func (); below.
 
24921
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24922
    <limits.h> exists even on freestanding compilers.  */
 
24923
 
 
24924
#ifdef __STDC__
 
24925
# include <limits.h>
 
24926
#else
 
24927
# include <assert.h>
 
24928
#endif
 
24929
 
 
24930
#undef $ac_func
 
24931
 
 
24932
/* Override any gcc2 internal prototype to avoid an error.  */
 
24933
#ifdef __cplusplus
 
24934
extern "C"
 
24935
{
 
24936
#endif
 
24937
/* We use char because int might match the return type of a gcc2
 
24938
   builtin and then its argument prototype would still apply.  */
 
24939
char $ac_func ();
 
24940
/* The GNU C library defines this for functions which it implements
 
24941
    to always fail with ENOSYS.  Some functions are actually named
 
24942
    something starting with __ and the normal name is an alias.  */
 
24943
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
24944
choke me
 
24945
#else
 
24946
char (*f) () = $ac_func;
 
24947
#endif
 
24948
#ifdef __cplusplus
 
24949
}
 
24950
#endif
 
24951
 
 
24952
int
 
24953
main ()
 
24954
{
 
24955
return f != $ac_func;
 
24956
  ;
 
24957
  return 0;
 
24958
}
 
24959
_ACEOF
 
24960
rm -f conftest.$ac_objext conftest$ac_exeext
 
24961
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24962
  (eval $ac_link) 2>conftest.er1
 
24963
  ac_status=$?
 
24964
  grep -v '^ *+' conftest.er1 >conftest.err
 
24965
  rm -f conftest.er1
 
24966
  cat conftest.err >&5
 
24967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24968
  (exit $ac_status); } &&
 
24969
         { ac_try='test -z "$ac_c_werror_flag"
 
24970
                         || test ! -s conftest.err'
 
24971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24972
  (eval $ac_try) 2>&5
 
24973
  ac_status=$?
 
24974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24975
  (exit $ac_status); }; } &&
 
24976
         { ac_try='test -s conftest$ac_exeext'
 
24977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24978
  (eval $ac_try) 2>&5
 
24979
  ac_status=$?
 
24980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24981
  (exit $ac_status); }; }; then
 
24982
  eval "$as_ac_var=yes"
 
24983
else
 
24984
  echo "$as_me: failed program was:" >&5
 
24985
sed 's/^/| /' conftest.$ac_ext >&5
 
24986
 
 
24987
eval "$as_ac_var=no"
 
24988
fi
 
24989
rm -f conftest.err conftest.$ac_objext \
 
24990
      conftest$ac_exeext conftest.$ac_ext
 
24991
fi
 
24992
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
24993
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
24994
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
24995
  cat >>confdefs.h <<_ACEOF
 
24996
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
24997
_ACEOF
 
24998
 
 
24999
else
 
25000
 
 
25001
 
 
25002
echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
 
25003
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
 
25004
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
 
25005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25006
else
 
25007
  ac_check_lib_save_LIBS=$LIBS
 
25008
LIBS="-lrt  $LIBS"
 
25009
cat >conftest.$ac_ext <<_ACEOF
 
25010
/* confdefs.h.  */
 
25011
_ACEOF
 
25012
cat confdefs.h >>conftest.$ac_ext
 
25013
cat >>conftest.$ac_ext <<_ACEOF
 
25014
/* end confdefs.h.  */
 
25015
 
 
25016
/* Override any gcc2 internal prototype to avoid an error.  */
 
25017
#ifdef __cplusplus
 
25018
extern "C"
 
25019
#endif
 
25020
/* We use char because int might match the return type of a gcc2
 
25021
   builtin and then its argument prototype would still apply.  */
 
25022
char clock_gettime ();
 
25023
int
 
25024
main ()
 
25025
{
 
25026
clock_gettime ();
 
25027
  ;
 
25028
  return 0;
 
25029
}
 
25030
_ACEOF
 
25031
rm -f conftest.$ac_objext conftest$ac_exeext
 
25032
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25033
  (eval $ac_link) 2>conftest.er1
 
25034
  ac_status=$?
 
25035
  grep -v '^ *+' conftest.er1 >conftest.err
 
25036
  rm -f conftest.er1
 
25037
  cat conftest.err >&5
 
25038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25039
  (exit $ac_status); } &&
 
25040
         { ac_try='test -z "$ac_c_werror_flag"
 
25041
                         || test ! -s conftest.err'
 
25042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25043
  (eval $ac_try) 2>&5
 
25044
  ac_status=$?
 
25045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25046
  (exit $ac_status); }; } &&
 
25047
         { ac_try='test -s conftest$ac_exeext'
 
25048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25049
  (eval $ac_try) 2>&5
 
25050
  ac_status=$?
 
25051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25052
  (exit $ac_status); }; }; then
 
25053
  ac_cv_lib_rt_clock_gettime=yes
 
25054
else
 
25055
  echo "$as_me: failed program was:" >&5
 
25056
sed 's/^/| /' conftest.$ac_ext >&5
 
25057
 
 
25058
ac_cv_lib_rt_clock_gettime=no
 
25059
fi
 
25060
rm -f conftest.err conftest.$ac_objext \
 
25061
      conftest$ac_exeext conftest.$ac_ext
 
25062
LIBS=$ac_check_lib_save_LIBS
 
25063
fi
 
25064
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
 
25065
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
 
25066
if test $ac_cv_lib_rt_clock_gettime = yes; then
 
25067
  cat >>confdefs.h <<_ACEOF
 
25068
#define HAVE_LIBRT 1
 
25069
_ACEOF
 
25070
 
 
25071
  LIBS="-lrt $LIBS"
 
25072
 
 
25073
fi
 
25074
 
 
25075
 
 
25076
fi
 
25077
done
 
25078
 
 
25079
 
 
25080
 
 
25081
              wget_check_in_nsl=NONE
11928
25082
 
11929
25083
for ac_func in gethostbyname
11930
25084
do
11935
25089
  echo $ECHO_N "(cached) $ECHO_C" >&6
11936
25090
else
11937
25091
  cat >conftest.$ac_ext <<_ACEOF
11938
 
#line $LINENO "configure"
11939
25092
/* confdefs.h.  */
11940
25093
_ACEOF
11941
25094
cat confdefs.h >>conftest.$ac_ext
11942
25095
cat >>conftest.$ac_ext <<_ACEOF
11943
25096
/* end confdefs.h.  */
 
25097
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
25098
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
25099
#define $ac_func innocuous_$ac_func
 
25100
 
11944
25101
/* System header to define __stub macros and hopefully few prototypes,
11945
25102
    which can conflict with char $ac_func (); below.
11946
25103
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11947
25104
    <limits.h> exists even on freestanding compilers.  */
 
25105
 
11948
25106
#ifdef __STDC__
11949
25107
# include <limits.h>
11950
25108
#else
11951
25109
# include <assert.h>
11952
25110
#endif
 
25111
 
 
25112
#undef $ac_func
 
25113
 
11953
25114
/* Override any gcc2 internal prototype to avoid an error.  */
11954
25115
#ifdef __cplusplus
11955
25116
extern "C"
11980
25141
_ACEOF
11981
25142
rm -f conftest.$ac_objext conftest$ac_exeext
11982
25143
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983
 
  (eval $ac_link) 2>&5
 
25144
  (eval $ac_link) 2>conftest.er1
11984
25145
  ac_status=$?
 
25146
  grep -v '^ *+' conftest.er1 >conftest.err
 
25147
  rm -f conftest.er1
 
25148
  cat conftest.err >&5
11985
25149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986
25150
  (exit $ac_status); } &&
11987
 
         { ac_try='test -s conftest$ac_exeext'
 
25151
         { ac_try='test -z "$ac_c_werror_flag"
 
25152
                         || test ! -s conftest.err'
 
25153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25154
  (eval $ac_try) 2>&5
 
25155
  ac_status=$?
 
25156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25157
  (exit $ac_status); }; } &&
 
25158
         { ac_try='test -s conftest$ac_exeext'
11988
25159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989
25160
  (eval $ac_try) 2>&5
11990
25161
  ac_status=$?
11997
25168
 
11998
25169
eval "$as_ac_var=no"
11999
25170
fi
12000
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
25171
rm -f conftest.err conftest.$ac_objext \
 
25172
      conftest$ac_exeext conftest.$ac_ext
12001
25173
fi
12002
25174
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12003
25175
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12008
25180
 
12009
25181
else
12010
25182
 
12011
 
  wget_check_in_nsl=gethostbyname
 
25183
    wget_check_in_nsl=gethostbyname
12012
25184
 
12013
25185
fi
12014
25186
done
12023
25195
  echo $ECHO_N "(cached) $ECHO_C" >&6
12024
25196
else
12025
25197
  cat >conftest.$ac_ext <<_ACEOF
12026
 
#line $LINENO "configure"
12027
25198
/* confdefs.h.  */
12028
25199
_ACEOF
12029
25200
cat confdefs.h >>conftest.$ac_ext
12030
25201
cat >>conftest.$ac_ext <<_ACEOF
12031
25202
/* end confdefs.h.  */
 
25203
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
25204
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
25205
#define $ac_func innocuous_$ac_func
 
25206
 
12032
25207
/* System header to define __stub macros and hopefully few prototypes,
12033
25208
    which can conflict with char $ac_func (); below.
12034
25209
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035
25210
    <limits.h> exists even on freestanding compilers.  */
 
25211
 
12036
25212
#ifdef __STDC__
12037
25213
# include <limits.h>
12038
25214
#else
12039
25215
# include <assert.h>
12040
25216
#endif
 
25217
 
 
25218
#undef $ac_func
 
25219
 
12041
25220
/* Override any gcc2 internal prototype to avoid an error.  */
12042
25221
#ifdef __cplusplus
12043
25222
extern "C"
12068
25247
_ACEOF
12069
25248
rm -f conftest.$ac_objext conftest$ac_exeext
12070
25249
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12071
 
  (eval $ac_link) 2>&5
 
25250
  (eval $ac_link) 2>conftest.er1
12072
25251
  ac_status=$?
 
25252
  grep -v '^ *+' conftest.er1 >conftest.err
 
25253
  rm -f conftest.er1
 
25254
  cat conftest.err >&5
12073
25255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074
25256
  (exit $ac_status); } &&
12075
 
         { ac_try='test -s conftest$ac_exeext'
 
25257
         { ac_try='test -z "$ac_c_werror_flag"
 
25258
                         || test ! -s conftest.err'
 
25259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25260
  (eval $ac_try) 2>&5
 
25261
  ac_status=$?
 
25262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25263
  (exit $ac_status); }; } &&
 
25264
         { ac_try='test -s conftest$ac_exeext'
12076
25265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077
25266
  (eval $ac_try) 2>&5
12078
25267
  ac_status=$?
12085
25274
 
12086
25275
eval "$as_ac_var=no"
12087
25276
fi
12088
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
25277
rm -f conftest.err conftest.$ac_objext \
 
25278
      conftest$ac_exeext conftest.$ac_ext
12089
25279
fi
12090
25280
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12091
25281
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12096
25286
 
12097
25287
else
12098
25288
 
12099
 
  wget_check_in_nsl=inet_ntoa
 
25289
    wget_check_in_nsl=inet_ntoa
12100
25290
 
12101
25291
fi
12102
25292
done
12103
25293
 
12104
 
if test $wget_check_in_nsl != NONE; then
 
25294
  if test $wget_check_in_nsl != NONE; then
12105
25295
 
12106
25296
as_ac_Lib=`echo "ac_cv_lib_nsl_$wget_check_in_nsl" | $as_tr_sh`
12107
25297
echo "$as_me:$LINENO: checking for $wget_check_in_nsl in -lnsl" >&5
12112
25302
  ac_check_lib_save_LIBS=$LIBS
12113
25303
LIBS="-lnsl  $LIBS"
12114
25304
cat >conftest.$ac_ext <<_ACEOF
12115
 
#line $LINENO "configure"
12116
25305
/* confdefs.h.  */
12117
25306
_ACEOF
12118
25307
cat confdefs.h >>conftest.$ac_ext
12136
25325
_ACEOF
12137
25326
rm -f conftest.$ac_objext conftest$ac_exeext
12138
25327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12139
 
  (eval $ac_link) 2>&5
 
25328
  (eval $ac_link) 2>conftest.er1
12140
25329
  ac_status=$?
 
25330
  grep -v '^ *+' conftest.er1 >conftest.err
 
25331
  rm -f conftest.er1
 
25332
  cat conftest.err >&5
12141
25333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142
25334
  (exit $ac_status); } &&
12143
 
         { ac_try='test -s conftest$ac_exeext'
 
25335
         { ac_try='test -z "$ac_c_werror_flag"
 
25336
                         || test ! -s conftest.err'
 
25337
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25338
  (eval $ac_try) 2>&5
 
25339
  ac_status=$?
 
25340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25341
  (exit $ac_status); }; } &&
 
25342
         { ac_try='test -s conftest$ac_exeext'
12144
25343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145
25344
  (eval $ac_try) 2>&5
12146
25345
  ac_status=$?
12153
25352
 
12154
25353
eval "$as_ac_Lib=no"
12155
25354
fi
12156
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
25355
rm -f conftest.err conftest.$ac_objext \
 
25356
      conftest$ac_exeext conftest.$ac_ext
12157
25357
LIBS=$ac_check_lib_save_LIBS
12158
25358
fi
12159
25359
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12167
25367
 
12168
25368
fi
12169
25369
 
12170
 
fi
12171
 
 
 
25370
  fi
12172
25371
 
12173
25372
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12174
25373
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
12178
25377
  ac_check_lib_save_LIBS=$LIBS
12179
25378
LIBS="-lsocket  $LIBS"
12180
25379
cat >conftest.$ac_ext <<_ACEOF
12181
 
#line $LINENO "configure"
12182
25380
/* confdefs.h.  */
12183
25381
_ACEOF
12184
25382
cat confdefs.h >>conftest.$ac_ext
12202
25400
_ACEOF
12203
25401
rm -f conftest.$ac_objext conftest$ac_exeext
12204
25402
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12205
 
  (eval $ac_link) 2>&5
 
25403
  (eval $ac_link) 2>conftest.er1
12206
25404
  ac_status=$?
 
25405
  grep -v '^ *+' conftest.er1 >conftest.err
 
25406
  rm -f conftest.er1
 
25407
  cat conftest.err >&5
12207
25408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208
25409
  (exit $ac_status); } &&
12209
 
         { ac_try='test -s conftest$ac_exeext'
 
25410
         { ac_try='test -z "$ac_c_werror_flag"
 
25411
                         || test ! -s conftest.err'
 
25412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25413
  (eval $ac_try) 2>&5
 
25414
  ac_status=$?
 
25415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25416
  (exit $ac_status); }; } &&
 
25417
         { ac_try='test -s conftest$ac_exeext'
12210
25418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211
25419
  (eval $ac_try) 2>&5
12212
25420
  ac_status=$?
12219
25427
 
12220
25428
ac_cv_lib_socket_socket=no
12221
25429
fi
12222
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
25430
rm -f conftest.err conftest.$ac_objext \
 
25431
      conftest$ac_exeext conftest.$ac_ext
12223
25432
LIBS=$ac_check_lib_save_LIBS
12224
25433
fi
12225
25434
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12234
25443
fi
12235
25444
 
12236
25445
 
12237
 
if test "x${with_socks}" = xyes
12238
 
then
12239
 
 
12240
 
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
12241
 
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
12242
 
if test "${ac_cv_lib_resolv_main+set}" = set; then
12243
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12244
 
else
12245
 
  ac_check_lib_save_LIBS=$LIBS
12246
 
LIBS="-lresolv  $LIBS"
12247
 
cat >conftest.$ac_ext <<_ACEOF
12248
 
#line $LINENO "configure"
12249
 
/* confdefs.h.  */
12250
 
_ACEOF
12251
 
cat confdefs.h >>conftest.$ac_ext
12252
 
cat >>conftest.$ac_ext <<_ACEOF
12253
 
/* end confdefs.h.  */
12254
 
 
12255
 
 
12256
 
int
12257
 
main ()
12258
 
{
12259
 
main ();
12260
 
  ;
12261
 
  return 0;
12262
 
}
12263
 
_ACEOF
12264
 
rm -f conftest.$ac_objext conftest$ac_exeext
12265
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12266
 
  (eval $ac_link) 2>&5
12267
 
  ac_status=$?
12268
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269
 
  (exit $ac_status); } &&
12270
 
         { ac_try='test -s conftest$ac_exeext'
12271
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272
 
  (eval $ac_try) 2>&5
12273
 
  ac_status=$?
12274
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275
 
  (exit $ac_status); }; }; then
12276
 
  ac_cv_lib_resolv_main=yes
12277
 
else
12278
 
  echo "$as_me: failed program was:" >&5
12279
 
sed 's/^/| /' conftest.$ac_ext >&5
12280
 
 
12281
 
ac_cv_lib_resolv_main=no
12282
 
fi
12283
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12284
 
LIBS=$ac_check_lib_save_LIBS
12285
 
fi
12286
 
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
12287
 
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
12288
 
if test $ac_cv_lib_resolv_main = yes; then
12289
 
  cat >>confdefs.h <<_ACEOF
12290
 
#define HAVE_LIBRESOLV 1
12291
 
_ACEOF
12292
 
 
12293
 
  LIBS="-lresolv $LIBS"
12294
 
 
12295
 
fi
12296
 
 
12297
 
 
12298
 
echo "$as_me:$LINENO: checking for Rconnect in -lsocks" >&5
12299
 
echo $ECHO_N "checking for Rconnect in -lsocks... $ECHO_C" >&6
12300
 
if test "${ac_cv_lib_socks_Rconnect+set}" = set; then
12301
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12302
 
else
12303
 
  ac_check_lib_save_LIBS=$LIBS
12304
 
LIBS="-lsocks  $LIBS"
12305
 
cat >conftest.$ac_ext <<_ACEOF
12306
 
#line $LINENO "configure"
12307
 
/* confdefs.h.  */
12308
 
_ACEOF
12309
 
cat confdefs.h >>conftest.$ac_ext
12310
 
cat >>conftest.$ac_ext <<_ACEOF
12311
 
/* end confdefs.h.  */
 
25446
 
 
25447
echo "$as_me:$LINENO: checking for getopt_long" >&5
 
25448
echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
 
25449
if test "${ac_cv_func_getopt_long+set}" = set; then
 
25450
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25451
else
 
25452
  cat >conftest.$ac_ext <<_ACEOF
 
25453
/* confdefs.h.  */
 
25454
_ACEOF
 
25455
cat confdefs.h >>conftest.$ac_ext
 
25456
cat >>conftest.$ac_ext <<_ACEOF
 
25457
/* end confdefs.h.  */
 
25458
/* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
 
25459
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
25460
#define getopt_long innocuous_getopt_long
 
25461
 
 
25462
/* System header to define __stub macros and hopefully few prototypes,
 
25463
    which can conflict with char getopt_long (); below.
 
25464
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
25465
    <limits.h> exists even on freestanding compilers.  */
 
25466
 
 
25467
#ifdef __STDC__
 
25468
# include <limits.h>
 
25469
#else
 
25470
# include <assert.h>
 
25471
#endif
 
25472
 
 
25473
#undef getopt_long
12312
25474
 
12313
25475
/* Override any gcc2 internal prototype to avoid an error.  */
12314
25476
#ifdef __cplusplus
12315
25477
extern "C"
 
25478
{
12316
25479
#endif
12317
25480
/* We use char because int might match the return type of a gcc2
12318
25481
   builtin and then its argument prototype would still apply.  */
12319
 
char Rconnect ();
 
25482
char getopt_long ();
 
25483
/* The GNU C library defines this for functions which it implements
 
25484
    to always fail with ENOSYS.  Some functions are actually named
 
25485
    something starting with __ and the normal name is an alias.  */
 
25486
#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
 
25487
choke me
 
25488
#else
 
25489
char (*f) () = getopt_long;
 
25490
#endif
 
25491
#ifdef __cplusplus
 
25492
}
 
25493
#endif
 
25494
 
12320
25495
int
12321
25496
main ()
12322
25497
{
12323
 
Rconnect ();
 
25498
return f != getopt_long;
12324
25499
  ;
12325
25500
  return 0;
12326
25501
}
12327
25502
_ACEOF
12328
25503
rm -f conftest.$ac_objext conftest$ac_exeext
12329
25504
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330
 
  (eval $ac_link) 2>&5
 
25505
  (eval $ac_link) 2>conftest.er1
12331
25506
  ac_status=$?
 
25507
  grep -v '^ *+' conftest.er1 >conftest.err
 
25508
  rm -f conftest.er1
 
25509
  cat conftest.err >&5
12332
25510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333
25511
  (exit $ac_status); } &&
12334
 
         { ac_try='test -s conftest$ac_exeext'
 
25512
         { ac_try='test -z "$ac_c_werror_flag"
 
25513
                         || test ! -s conftest.err'
 
25514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25515
  (eval $ac_try) 2>&5
 
25516
  ac_status=$?
 
25517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25518
  (exit $ac_status); }; } &&
 
25519
         { ac_try='test -s conftest$ac_exeext'
12335
25520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336
25521
  (eval $ac_try) 2>&5
12337
25522
  ac_status=$?
12338
25523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339
25524
  (exit $ac_status); }; }; then
12340
 
  ac_cv_lib_socks_Rconnect=yes
 
25525
  ac_cv_func_getopt_long=yes
12341
25526
else
12342
25527
  echo "$as_me: failed program was:" >&5
12343
25528
sed 's/^/| /' conftest.$ac_ext >&5
12344
25529
 
12345
 
ac_cv_lib_socks_Rconnect=no
12346
 
fi
12347
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12348
 
LIBS=$ac_check_lib_save_LIBS
12349
 
fi
12350
 
echo "$as_me:$LINENO: result: $ac_cv_lib_socks_Rconnect" >&5
12351
 
echo "${ECHO_T}$ac_cv_lib_socks_Rconnect" >&6
12352
 
if test $ac_cv_lib_socks_Rconnect = yes; then
12353
 
  cat >>confdefs.h <<_ACEOF
12354
 
#define HAVE_LIBSOCKS 1
12355
 
_ACEOF
12356
 
 
12357
 
  LIBS="-lsocks $LIBS"
12358
 
 
12359
 
fi
12360
 
 
12361
 
fi
 
25530
ac_cv_func_getopt_long=no
 
25531
fi
 
25532
rm -f conftest.err conftest.$ac_objext \
 
25533
      conftest$ac_exeext conftest.$ac_ext
 
25534
fi
 
25535
echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
 
25536
echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
 
25537
if test $ac_cv_func_getopt_long = yes; then
 
25538
  :
 
25539
else
 
25540
 
 
25541
  GETOPT_OBJ='getopt$o'
 
25542
 
 
25543
fi
 
25544
 
 
25545
 
 
25546
 
12362
25547
 
12363
25548
 
12364
25549
if test x"$with_ssl" = x; then
12396
25581
  ac_check_lib_save_LIBS=$LIBS
12397
25582
LIBS="-ldl  $LIBS"
12398
25583
cat >conftest.$ac_ext <<_ACEOF
12399
 
#line $LINENO "configure"
12400
25584
/* confdefs.h.  */
12401
25585
_ACEOF
12402
25586
cat confdefs.h >>conftest.$ac_ext
12420
25604
_ACEOF
12421
25605
rm -f conftest.$ac_objext conftest$ac_exeext
12422
25606
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423
 
  (eval $ac_link) 2>&5
 
25607
  (eval $ac_link) 2>conftest.er1
12424
25608
  ac_status=$?
 
25609
  grep -v '^ *+' conftest.er1 >conftest.err
 
25610
  rm -f conftest.er1
 
25611
  cat conftest.err >&5
12425
25612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426
25613
  (exit $ac_status); } &&
12427
 
         { ac_try='test -s conftest$ac_exeext'
 
25614
         { ac_try='test -z "$ac_c_werror_flag"
 
25615
                         || test ! -s conftest.err'
 
25616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25617
  (eval $ac_try) 2>&5
 
25618
  ac_status=$?
 
25619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25620
  (exit $ac_status); }; } &&
 
25621
         { ac_try='test -s conftest$ac_exeext'
12428
25622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429
25623
  (eval $ac_try) 2>&5
12430
25624
  ac_status=$?
12437
25631
 
12438
25632
ac_cv_lib_dl_dlopen=no
12439
25633
fi
12440
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
25634
rm -f conftest.err conftest.$ac_objext \
 
25635
      conftest$ac_exeext conftest.$ac_ext
12441
25636
LIBS=$ac_check_lib_save_LIBS
12442
25637
fi
12443
25638
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12460
25655
  ac_check_lib_save_LIBS=$LIBS
12461
25656
LIBS="-ldl  $LIBS"
12462
25657
cat >conftest.$ac_ext <<_ACEOF
12463
 
#line $LINENO "configure"
12464
25658
/* confdefs.h.  */
12465
25659
_ACEOF
12466
25660
cat confdefs.h >>conftest.$ac_ext
12484
25678
_ACEOF
12485
25679
rm -f conftest.$ac_objext conftest$ac_exeext
12486
25680
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487
 
  (eval $ac_link) 2>&5
 
25681
  (eval $ac_link) 2>conftest.er1
12488
25682
  ac_status=$?
 
25683
  grep -v '^ *+' conftest.er1 >conftest.err
 
25684
  rm -f conftest.er1
 
25685
  cat conftest.err >&5
12489
25686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490
25687
  (exit $ac_status); } &&
12491
 
         { ac_try='test -s conftest$ac_exeext'
 
25688
         { ac_try='test -z "$ac_c_werror_flag"
 
25689
                         || test ! -s conftest.err'
 
25690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25691
  (eval $ac_try) 2>&5
 
25692
  ac_status=$?
 
25693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25694
  (exit $ac_status); }; } &&
 
25695
         { ac_try='test -s conftest$ac_exeext'
12492
25696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493
25697
  (eval $ac_try) 2>&5
12494
25698
  ac_status=$?
12501
25705
 
12502
25706
ac_cv_lib_dl_shl_load=no
12503
25707
fi
12504
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
25708
rm -f conftest.err conftest.$ac_objext \
 
25709
      conftest$ac_exeext conftest.$ac_ext
12505
25710
LIBS=$ac_check_lib_save_LIBS
12506
25711
fi
12507
25712
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_shl_load" >&5
12527
25732
                  LDFLAGS="-L$ssl_root/lib -R$ssl_root/lib $wget_save_LDFLAGS"
12528
25733
    fi
12529
25734
 
12530
 
    echo "$as_me:$LINENO: result: Looking for SSL libraries in $ssl_root" >&5
12531
 
echo "${ECHO_T}Looking for SSL libraries in $ssl_root" >&6
 
25735
    { echo "$as_me:$LINENO: looking for SSL libraries in $ssl_root" >&5
 
25736
echo "$as_me: looking for SSL libraries in $ssl_root" >&6;}
12532
25737
 
12533
25738
 
12534
25739
    ssl_found_includes=no
12535
25740
    CPPFLAGS="$SSL_INCLUDES $wget_save_CPPFLAGS"
12536
25741
 
12537
 
    echo "$as_me:$LINENO: checking for includes" >&5
 
25742
                echo "$as_me:$LINENO: checking for includes" >&5
12538
25743
echo $ECHO_N "checking for includes... $ECHO_C" >&6
 
25744
    cat >conftest.$ac_ext <<_ACEOF
12539
25745
 
12540
 
    cat >conftest.$ac_ext <<_ACEOF
12541
 
#line $LINENO "configure"
12542
 
/* confdefs.h.  */
12543
 
_ACEOF
12544
 
cat confdefs.h >>conftest.$ac_ext
12545
 
cat >>conftest.$ac_ext <<_ACEOF
12546
 
/* end confdefs.h.  */
12547
25746
#include <openssl/ssl.h>
12548
 
#include <openssl/rsa.h>
 
25747
#include <openssl/x509.h>
 
25748
#include <openssl/err.h>
 
25749
#include <openssl/rand.h>
 
25750
#include <openssl/des.h>
 
25751
#include <openssl/md4.h>
 
25752
#include <openssl/md5.h>
12549
25753
 
12550
25754
_ACEOF
12551
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12552
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
25755
rm -f conftest.$ac_objext
 
25756
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25757
  (eval $ac_compile) 2>conftest.er1
12553
25758
  ac_status=$?
12554
25759
  grep -v '^ *+' conftest.er1 >conftest.err
12555
25760
  rm -f conftest.er1
12556
25761
  cat conftest.err >&5
12557
25762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558
 
  (exit $ac_status); } >/dev/null; then
12559
 
  if test -s conftest.err; then
12560
 
    ac_cpp_err=$ac_c_preproc_warn_flag
12561
 
  else
12562
 
    ac_cpp_err=
12563
 
  fi
12564
 
else
12565
 
  ac_cpp_err=yes
12566
 
fi
12567
 
if test -z "$ac_cpp_err"; then
12568
 
  echo "$as_me:$LINENO: result: found" >&5
12569
 
echo "${ECHO_T}found" >&6; ssl_found_includes=yes
 
25763
  (exit $ac_status); } &&
 
25764
         { ac_try='test -z "$ac_c_werror_flag"
 
25765
                         || test ! -s conftest.err'
 
25766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25767
  (eval $ac_try) 2>&5
 
25768
  ac_status=$?
 
25769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25770
  (exit $ac_status); }; } &&
 
25771
         { ac_try='test -s conftest.$ac_objext'
 
25772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25773
  (eval $ac_try) 2>&5
 
25774
  ac_status=$?
 
25775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25776
  (exit $ac_status); }; }; then
 
25777
 
 
25778
      echo "$as_me:$LINENO: result: found" >&5
 
25779
echo "${ECHO_T}found" >&6
 
25780
      ssl_found_includes=yes
 
25781
 
12570
25782
else
12571
25783
  echo "$as_me: failed program was:" >&5
12572
25784
sed 's/^/| /' conftest.$ac_ext >&5
12573
25785
 
12574
 
  echo "$as_me:$LINENO: result: not found" >&5
 
25786
 
 
25787
      echo "$as_me:$LINENO: result: not found" >&5
12575
25788
echo "${ECHO_T}not found" >&6
12576
25789
 
12577
25790
fi
12578
 
rm -f conftest.err conftest.$ac_ext
 
25791
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12579
25792
 
12580
25793
    if test x"$ssl_found_includes" = xno; then
12581
25794
      continue
12597
25810
  ac_check_lib_save_LIBS=$LIBS
12598
25811
LIBS="-lcrypto  $LIBS"
12599
25812
cat >conftest.$ac_ext <<_ACEOF
12600
 
#line $LINENO "configure"
12601
25813
/* confdefs.h.  */
12602
25814
_ACEOF
12603
25815
cat confdefs.h >>conftest.$ac_ext
12621
25833
_ACEOF
12622
25834
rm -f conftest.$ac_objext conftest$ac_exeext
12623
25835
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624
 
  (eval $ac_link) 2>&5
 
25836
  (eval $ac_link) 2>conftest.er1
12625
25837
  ac_status=$?
 
25838
  grep -v '^ *+' conftest.er1 >conftest.err
 
25839
  rm -f conftest.er1
 
25840
  cat conftest.err >&5
12626
25841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627
25842
  (exit $ac_status); } &&
12628
 
         { ac_try='test -s conftest$ac_exeext'
 
25843
         { ac_try='test -z "$ac_c_werror_flag"
 
25844
                         || test ! -s conftest.err'
 
25845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25846
  (eval $ac_try) 2>&5
 
25847
  ac_status=$?
 
25848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25849
  (exit $ac_status); }; } &&
 
25850
         { ac_try='test -s conftest$ac_exeext'
12629
25851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630
25852
  (eval $ac_try) 2>&5
12631
25853
  ac_status=$?
12638
25860
 
12639
25861
ac_cv_lib_crypto_RSA_new=no
12640
25862
fi
12641
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
25863
rm -f conftest.err conftest.$ac_objext \
 
25864
      conftest$ac_exeext conftest.$ac_ext
12642
25865
LIBS=$ac_check_lib_save_LIBS
12643
25866
fi
12644
25867
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_new" >&5
12663
25886
  ac_check_lib_save_LIBS=$LIBS
12664
25887
LIBS="-lssl  $LIBS"
12665
25888
cat >conftest.$ac_ext <<_ACEOF
12666
 
#line $LINENO "configure"
12667
25889
/* confdefs.h.  */
12668
25890
_ACEOF
12669
25891
cat confdefs.h >>conftest.$ac_ext
12687
25909
_ACEOF
12688
25910
rm -f conftest.$ac_objext conftest$ac_exeext
12689
25911
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690
 
  (eval $ac_link) 2>&5
 
25912
  (eval $ac_link) 2>conftest.er1
12691
25913
  ac_status=$?
 
25914
  grep -v '^ *+' conftest.er1 >conftest.err
 
25915
  rm -f conftest.er1
 
25916
  cat conftest.err >&5
12692
25917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693
25918
  (exit $ac_status); } &&
12694
 
         { ac_try='test -s conftest$ac_exeext'
 
25919
         { ac_try='test -z "$ac_c_werror_flag"
 
25920
                         || test ! -s conftest.err'
 
25921
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25922
  (eval $ac_try) 2>&5
 
25923
  ac_status=$?
 
25924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25925
  (exit $ac_status); }; } &&
 
25926
         { ac_try='test -s conftest$ac_exeext'
12695
25927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696
25928
  (eval $ac_try) 2>&5
12697
25929
  ac_status=$?
12704
25936
 
12705
25937
ac_cv_lib_ssl_SSL_new=no
12706
25938
fi
12707
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
25939
rm -f conftest.err conftest.$ac_objext \
 
25940
      conftest$ac_exeext conftest.$ac_ext
12708
25941
LIBS=$ac_check_lib_save_LIBS
12709
25942
fi
12710
25943
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
12737
25970
 
12738
25971
else
12739
25972
  cat >conftest.$ac_ext <<_ACEOF
12740
 
#line $LINENO "configure"
12741
25973
/* confdefs.h.  */
12742
25974
_ACEOF
12743
25975
cat confdefs.h >>conftest.$ac_ext
12771
26003
echo "$as_me:$LINENO: result: no" >&5
12772
26004
echo "${ECHO_T}no" >&6; ssl_run_failure=yes
12773
26005
fi
12774
 
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
26006
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12775
26007
fi
12776
26008
 
12777
26009
    if test x"$ssl_run_failure" = xno; then
12781
26013
  done
12782
26014
 
12783
26015
  if test x"$ssl_success" = xyes; then
12784
 
            echo "$as_me:$LINENO: result: Compiling in support for SSL in $ssl_root" >&5
12785
 
echo "${ECHO_T}Compiling in support for SSL in $ssl_root" >&6
12786
 
    cat >>confdefs.h <<\_ACEOF
 
26016
    { echo "$as_me:$LINENO: compiling in support for SSL in $ssl_root" >&5
 
26017
echo "$as_me: compiling in support for SSL in $ssl_root" >&6;}
 
26018
 
 
26019
cat >>confdefs.h <<\_ACEOF
12787
26020
#define HAVE_SSL 1
12788
26021
_ACEOF
12789
26022
 
12790
26023
 
12791
 
    SSL_OBJ='gen_sslfunc$o'
 
26024
    SSL_OBJ='openssl$o'
12792
26025
 
12793
26026
  else
12794
26027
    LDFLAGS=$wget_save_LDFLAGS
12795
26028
    LIBS=$wget_save_LIBS
12796
26029
 
12797
26030
            if test x"$wget_force_ssl" = x"yes"; then
12798
 
      exec >&2
12799
 
      echo "ERROR: Failed to find OpenSSL libraries."
12800
 
      exit 2
 
26031
      { { echo "$as_me:$LINENO: error: failed to find OpenSSL libraries" >&5
 
26032
echo "$as_me: error: failed to find OpenSSL libraries" >&2;}
 
26033
   { (exit 2); exit 2; }; }
12801
26034
    fi
12802
26035
  fi
12803
26036
 
12806
26039
        CPPFLAGS=$wget_save_CPPFLAGS
12807
26040
fi
12808
26041
 
 
26042
NTLM_OBJ=''
 
26043
if test x"$ssl_success" = xyes
 
26044
then
 
26045
  if test x"$ENABLE_NTLM" != xno
 
26046
  then
 
26047
 
 
26048
cat >>confdefs.h <<\_ACEOF
 
26049
#define ENABLE_NTLM 1
 
26050
_ACEOF
 
26051
 
 
26052
    NTLM_OBJ='http-ntlm$o'
 
26053
  fi
 
26054
else
 
26055
      if test x"$ENABLE_NTLM" = xyes
 
26056
  then
 
26057
    { { echo "$as_me:$LINENO: error: NTLM authorization requested and OpenSSL not found; aborting" >&5
 
26058
echo "$as_me: error: NTLM authorization requested and OpenSSL not found; aborting" >&2;}
 
26059
   { (exit 1); exit 1; }; }
 
26060
  fi
 
26061
fi
 
26062
 
 
26063
 
12809
26064
 
12810
26065
if test x"$wget_need_md5" = xyes
12811
26066
then
 
26067
 
12812
26068
  MD5_OBJ='gen-md5$o'
12813
 
 
12814
26069
  found_md5=no
12815
26070
 
12816
26071
          if test x"$found_md5" = xno; then
12822
26077
  ac_check_lib_save_LIBS=$LIBS
12823
26078
LIBS="-lmd5  $LIBS"
12824
26079
cat >conftest.$ac_ext <<_ACEOF
12825
 
#line $LINENO "configure"
12826
26080
/* confdefs.h.  */
12827
26081
_ACEOF
12828
26082
cat confdefs.h >>conftest.$ac_ext
12846
26100
_ACEOF
12847
26101
rm -f conftest.$ac_objext conftest$ac_exeext
12848
26102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12849
 
  (eval $ac_link) 2>&5
 
26103
  (eval $ac_link) 2>conftest.er1
12850
26104
  ac_status=$?
 
26105
  grep -v '^ *+' conftest.er1 >conftest.err
 
26106
  rm -f conftest.er1
 
26107
  cat conftest.err >&5
12851
26108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852
26109
  (exit $ac_status); } &&
12853
 
         { ac_try='test -s conftest$ac_exeext'
 
26110
         { ac_try='test -z "$ac_c_werror_flag"
 
26111
                         || test ! -s conftest.err'
 
26112
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26113
  (eval $ac_try) 2>&5
 
26114
  ac_status=$?
 
26115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26116
  (exit $ac_status); }; } &&
 
26117
         { ac_try='test -s conftest$ac_exeext'
12854
26118
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855
26119
  (eval $ac_try) 2>&5
12856
26120
  ac_status=$?
12863
26127
 
12864
26128
ac_cv_lib_md5_md5_calc=no
12865
26129
fi
12866
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
26130
rm -f conftest.err conftest.$ac_objext \
 
26131
      conftest$ac_exeext conftest.$ac_ext
12867
26132
LIBS=$ac_check_lib_save_LIBS
12868
26133
fi
12869
26134
echo "$as_me:$LINENO: result: $ac_cv_lib_md5_md5_calc" >&5
12870
26135
echo "${ECHO_T}$ac_cv_lib_md5_md5_calc" >&6
12871
26136
if test $ac_cv_lib_md5_md5_calc = yes; then
12872
26137
 
12873
 
                  echo "$as_me:$LINENO: checking whether md5.h can be included" >&5
12874
 
echo $ECHO_N "checking whether md5.h can be included... $ECHO_C" >&6
 
26138
                  echo "$as_me:$LINENO: checking for working md5.h" >&5
 
26139
echo $ECHO_N "checking for working md5.h... $ECHO_C" >&6
12875
26140
      cat >conftest.$ac_ext <<_ACEOF
12876
26141
#include <md5.h>
12877
26142
 
12878
26143
_ACEOF
12879
26144
rm -f conftest.$ac_objext
12880
26145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12881
 
  (eval $ac_compile) 2>&5
 
26146
  (eval $ac_compile) 2>conftest.er1
12882
26147
  ac_status=$?
 
26148
  grep -v '^ *+' conftest.er1 >conftest.err
 
26149
  rm -f conftest.er1
 
26150
  cat conftest.err >&5
12883
26151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884
26152
  (exit $ac_status); } &&
12885
 
         { ac_try='test -s conftest.$ac_objext'
 
26153
         { ac_try='test -z "$ac_c_werror_flag"
 
26154
                         || test ! -s conftest.err'
 
26155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26156
  (eval $ac_try) 2>&5
 
26157
  ac_status=$?
 
26158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26159
  (exit $ac_status); }; } &&
 
26160
         { ac_try='test -s conftest.$ac_objext'
12886
26161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887
26162
  (eval $ac_try) 2>&5
12888
26163
  ac_status=$?
12891
26166
 
12892
26167
        echo "$as_me:$LINENO: result: yes" >&5
12893
26168
echo "${ECHO_T}yes" >&6
12894
 
        cat >>confdefs.h <<\_ACEOF
 
26169
 
 
26170
cat >>confdefs.h <<\_ACEOF
12895
26171
#define HAVE_SOLARIS_MD5 1
12896
26172
_ACEOF
12897
26173
 
12907
26183
echo "$as_me:$LINENO: result: no" >&5
12908
26184
echo "${ECHO_T}no" >&6
12909
26185
fi
12910
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
26186
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12911
26187
 
12912
26188
fi
12913
26189
 
12915
26191
 
12916
26192
      if test x"$found_md5" = xno; then
12917
26193
    if test x"$ssl_success" = xyes; then
12918
 
      cat >>confdefs.h <<\_ACEOF
 
26194
 
 
26195
cat >>confdefs.h <<\_ACEOF
12919
26196
#define HAVE_OPENSSL_MD5 1
12920
26197
_ACEOF
12921
26198
 
12926
26203
  fi
12927
26204
 
12928
26205
    if test x"$found_md5" = xno; then
12929
 
    cat >>confdefs.h <<\_ACEOF
 
26206
 
 
26207
cat >>confdefs.h <<\_ACEOF
12930
26208
#define HAVE_BUILTIN_MD5 1
12931
26209
_ACEOF
12932
26210
 
12936
26214
echo "$as_me: using the GNU MD5 implementation" >&6;}
12937
26215
  fi
12938
26216
fi
 
26217
 
12939
26218
cat >>confdefs.h <<\_ACEOF
12940
26219
#define HAVE_MD5 1
12941
26220
_ACEOF
12943
26222
 
12944
26223
 
12945
26224
 
12946
 
ipv6=
12947
 
check_for_ipv6=no
 
26225
 
12948
26226
# Check whether --enable-ipv6 or --disable-ipv6 was given.
12949
26227
if test "${enable_ipv6+set}" = set; then
12950
26228
  enableval="$enable_ipv6"
12951
26229
  case "${enable_ipv6}" in
12952
 
  no)
12953
 
    { echo "$as_me:$LINENO: Disabling IPv6 at user request" >&5
12954
 
echo "$as_me: Disabling IPv6 at user request" >&6;}
12955
 
    ipv6=no
12956
 
    ;;
12957
 
  *)
12958
 
    ipv6=yes
12959
 
    ;;
12960
 
  esac
 
26230
    no)
 
26231
      { echo "$as_me:$LINENO: disabling IPv6 at user request" >&5
 
26232
echo "$as_me: disabling IPv6 at user request" >&6;}
 
26233
            ipv6=no
 
26234
      ;;
 
26235
    yes)
 
26236
            ipv6=yes
 
26237
      force_ipv6=yes
 
26238
      ;;
 
26239
    auto)
 
26240
            ipv6=yes
 
26241
      ;;
 
26242
    *)
 
26243
      { { echo "$as_me:$LINENO: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&5
 
26244
echo "$as_me: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&2;}
 
26245
   { (exit 1); exit 1; }; }
 
26246
      ;;
 
26247
    esac
 
26248
 
12961
26249
else
12962
 
  check_for_ipv6=no
 
26250
 
 
26251
        ipv6=yes
 
26252
 
12963
26253
 
12964
26254
fi;
12965
26255
 
12966
 
if test "X$ipv6" = "Xyes" || test "X$check_for_ipv6" = "Xyes"; then
 
26256
if test "X$ipv6" = "Xyes"; then
12967
26257
 
12968
26258
for ac_func in getaddrinfo
12969
26259
do
12974
26264
  echo $ECHO_N "(cached) $ECHO_C" >&6
12975
26265
else
12976
26266
  cat >conftest.$ac_ext <<_ACEOF
12977
 
#line $LINENO "configure"
12978
26267
/* confdefs.h.  */
12979
26268
_ACEOF
12980
26269
cat confdefs.h >>conftest.$ac_ext
12981
26270
cat >>conftest.$ac_ext <<_ACEOF
12982
26271
/* end confdefs.h.  */
 
26272
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
26273
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
26274
#define $ac_func innocuous_$ac_func
 
26275
 
12983
26276
/* System header to define __stub macros and hopefully few prototypes,
12984
26277
    which can conflict with char $ac_func (); below.
12985
26278
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12986
26279
    <limits.h> exists even on freestanding compilers.  */
 
26280
 
12987
26281
#ifdef __STDC__
12988
26282
# include <limits.h>
12989
26283
#else
12990
26284
# include <assert.h>
12991
26285
#endif
 
26286
 
 
26287
#undef $ac_func
 
26288
 
12992
26289
/* Override any gcc2 internal prototype to avoid an error.  */
12993
26290
#ifdef __cplusplus
12994
26291
extern "C"
13019
26316
_ACEOF
13020
26317
rm -f conftest.$ac_objext conftest$ac_exeext
13021
26318
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13022
 
  (eval $ac_link) 2>&5
 
26319
  (eval $ac_link) 2>conftest.er1
13023
26320
  ac_status=$?
 
26321
  grep -v '^ *+' conftest.er1 >conftest.err
 
26322
  rm -f conftest.er1
 
26323
  cat conftest.err >&5
13024
26324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025
26325
  (exit $ac_status); } &&
13026
 
         { ac_try='test -s conftest$ac_exeext'
 
26326
         { ac_try='test -z "$ac_c_werror_flag"
 
26327
                         || test ! -s conftest.err'
 
26328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26329
  (eval $ac_try) 2>&5
 
26330
  ac_status=$?
 
26331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26332
  (exit $ac_status); }; } &&
 
26333
         { ac_try='test -s conftest$ac_exeext'
13027
26334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028
26335
  (eval $ac_try) 2>&5
13029
26336
  ac_status=$?
13036
26343
 
13037
26344
eval "$as_ac_var=no"
13038
26345
fi
13039
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
26346
rm -f conftest.err conftest.$ac_objext \
 
26347
      conftest$ac_exeext conftest.$ac_ext
13040
26348
fi
13041
26349
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13042
26350
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13045
26353
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13046
26354
_ACEOF
13047
26355
 
13048
 
 
13049
 
  echo "$as_me:$LINENO: checking if getaddrinfo supports AI_ADDRCONFIG" >&5
13050
 
echo $ECHO_N "checking if getaddrinfo supports AI_ADDRCONFIG... $ECHO_C" >&6
13051
 
if test "${ds6_cv_gai_ai_addrconfig+set}" = set; then
13052
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13053
 
else
13054
 
 
13055
 
    cat >conftest.$ac_ext <<_ACEOF
13056
 
#line $LINENO "configure"
13057
 
/* confdefs.h.  */
13058
 
_ACEOF
13059
 
cat confdefs.h >>conftest.$ac_ext
13060
 
cat >>conftest.$ac_ext <<_ACEOF
13061
 
/* end confdefs.h.  */
13062
 
 
13063
 
#include <netdb.h>
13064
 
 
13065
 
#ifndef AI_ADDRCONFIG
13066
 
#error Missing AI_ADDRCONFIG
13067
 
#endif
13068
 
 
13069
 
_ACEOF
13070
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13071
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13072
 
  ac_status=$?
13073
 
  grep -v '^ *+' conftest.er1 >conftest.err
13074
 
  rm -f conftest.er1
13075
 
  cat conftest.err >&5
13076
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077
 
  (exit $ac_status); } >/dev/null; then
13078
 
  if test -s conftest.err; then
13079
 
    ac_cpp_err=$ac_c_preproc_warn_flag
13080
 
  else
13081
 
    ac_cpp_err=
13082
 
  fi
13083
 
else
13084
 
  ac_cpp_err=yes
13085
 
fi
13086
 
if test -z "$ac_cpp_err"; then
13087
 
 
13088
 
      ds6_cv_gai_ai_addrconfig=yes
13089
 
 
13090
 
else
13091
 
  echo "$as_me: failed program was:" >&5
13092
 
sed 's/^/| /' conftest.$ac_ext >&5
13093
 
 
13094
 
 
13095
 
      ds6_cv_gai_ai_addrconfig=no
13096
 
 
13097
 
fi
13098
 
rm -f conftest.err conftest.$ac_ext
13099
 
 
13100
 
fi
13101
 
echo "$as_me:$LINENO: result: $ds6_cv_gai_ai_addrconfig" >&5
13102
 
echo "${ECHO_T}$ds6_cv_gai_ai_addrconfig" >&6
13103
 
 
13104
 
  if test "X$ds6_cv_gai_ai_addrconfig" = "Xyes"; then :
13105
 
 
13106
 
cat >>confdefs.h <<\_ACEOF
13107
 
#define HAVE_GETADDRINFO_AI_ADDRCONFIG 1
13108
 
_ACEOF
13109
 
 
13110
 
 
13111
 
  else :
13112
 
 
13113
 
  fi
13114
 
 
13115
 
 
13116
 
  echo "$as_me:$LINENO: checking if getaddrinfo supports AI_V4MAPPED" >&5
13117
 
echo $ECHO_N "checking if getaddrinfo supports AI_V4MAPPED... $ECHO_C" >&6
13118
 
if test "${ds6_cv_gai_ai_v4mapped+set}" = set; then
13119
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13120
 
else
13121
 
 
13122
 
    cat >conftest.$ac_ext <<_ACEOF
13123
 
#line $LINENO "configure"
13124
 
/* confdefs.h.  */
13125
 
_ACEOF
13126
 
cat confdefs.h >>conftest.$ac_ext
13127
 
cat >>conftest.$ac_ext <<_ACEOF
13128
 
/* end confdefs.h.  */
13129
 
 
13130
 
#include <netdb.h>
13131
 
 
13132
 
#ifndef AI_V4MAPPED
13133
 
#error Missing AI_V4MAPPED
13134
 
#endif
13135
 
 
13136
 
_ACEOF
13137
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13138
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13139
 
  ac_status=$?
13140
 
  grep -v '^ *+' conftest.er1 >conftest.err
13141
 
  rm -f conftest.er1
13142
 
  cat conftest.err >&5
13143
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144
 
  (exit $ac_status); } >/dev/null; then
13145
 
  if test -s conftest.err; then
13146
 
    ac_cpp_err=$ac_c_preproc_warn_flag
13147
 
  else
13148
 
    ac_cpp_err=
13149
 
  fi
13150
 
else
13151
 
  ac_cpp_err=yes
13152
 
fi
13153
 
if test -z "$ac_cpp_err"; then
13154
 
 
13155
 
      ds6_cv_gai_ai_v4mapped=yes
13156
 
 
13157
 
else
13158
 
  echo "$as_me: failed program was:" >&5
13159
 
sed 's/^/| /' conftest.$ac_ext >&5
13160
 
 
13161
 
 
13162
 
      ds6_cv_gai_ai_v4mapped=no
13163
 
 
13164
 
fi
13165
 
rm -f conftest.err conftest.$ac_ext
13166
 
 
13167
 
fi
13168
 
echo "$as_me:$LINENO: result: $ds6_cv_gai_ai_v4mapped" >&5
13169
 
echo "${ECHO_T}$ds6_cv_gai_ai_v4mapped" >&6
13170
 
 
13171
 
  if test "X$ds6_cv_gai_ai_v4mapped" = "Xyes"; then :
13172
 
 
13173
 
cat >>confdefs.h <<\_ACEOF
13174
 
#define HAVE_GETADDRINFO_AI_V4MAPPED 1
13175
 
_ACEOF
13176
 
 
13177
 
 
13178
 
  else :
13179
 
 
13180
 
  fi
13181
 
 
13182
 
 
13183
 
  echo "$as_me:$LINENO: checking if getaddrinfo supports AI_ALL" >&5
13184
 
echo $ECHO_N "checking if getaddrinfo supports AI_ALL... $ECHO_C" >&6
13185
 
if test "${ds6_cv_gai_ai_all+set}" = set; then
13186
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13187
 
else
13188
 
 
13189
 
    cat >conftest.$ac_ext <<_ACEOF
13190
 
#line $LINENO "configure"
13191
 
/* confdefs.h.  */
13192
 
_ACEOF
13193
 
cat confdefs.h >>conftest.$ac_ext
13194
 
cat >>conftest.$ac_ext <<_ACEOF
13195
 
/* end confdefs.h.  */
13196
 
 
13197
 
#include <netdb.h>
13198
 
 
13199
 
#ifndef AI_ALL
13200
 
#error Missing AI_ALL
13201
 
#endif
13202
 
 
13203
 
_ACEOF
13204
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13205
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13206
 
  ac_status=$?
13207
 
  grep -v '^ *+' conftest.er1 >conftest.err
13208
 
  rm -f conftest.er1
13209
 
  cat conftest.err >&5
13210
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211
 
  (exit $ac_status); } >/dev/null; then
13212
 
  if test -s conftest.err; then
13213
 
    ac_cpp_err=$ac_c_preproc_warn_flag
13214
 
  else
13215
 
    ac_cpp_err=
13216
 
  fi
13217
 
else
13218
 
  ac_cpp_err=yes
13219
 
fi
13220
 
if test -z "$ac_cpp_err"; then
13221
 
 
13222
 
      ds6_cv_gai_ai_all=yes
13223
 
 
13224
 
else
13225
 
  echo "$as_me: failed program was:" >&5
13226
 
sed 's/^/| /' conftest.$ac_ext >&5
13227
 
 
13228
 
 
13229
 
      ds6_cv_gai_ai_all=no
13230
 
 
13231
 
fi
13232
 
rm -f conftest.err conftest.$ac_ext
13233
 
 
13234
 
fi
13235
 
echo "$as_me:$LINENO: result: $ds6_cv_gai_ai_all" >&5
13236
 
echo "${ECHO_T}$ds6_cv_gai_ai_all" >&6
13237
 
 
13238
 
  if test "X$ds6_cv_gai_ai_all" = "Xyes"; then :
13239
 
 
13240
 
cat >>confdefs.h <<\_ACEOF
13241
 
#define HAVE_GETADDRINFO_AI_ALL 1
13242
 
_ACEOF
13243
 
 
13244
 
 
13245
 
  else :
13246
 
 
13247
 
  fi
13248
 
 
13249
 
 
13250
26356
else
13251
26357
 
13252
26358
    { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&5
13258
26364
 
13259
26365
fi
13260
26366
 
13261
 
if test "X$ipv6" = "Xyes" || test "X$check_for_ipv6" = "Xyes"; then
 
26367
if test "X$ipv6" = "Xyes"; then
13262
26368
 
13263
26369
  echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
13264
26370
echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6
13265
 
if test "${ds6_cv_proto_inet6+set}" = set; then
 
26371
if test "${wget_cv_proto_inet6+set}" = set; then
13266
26372
  echo $ECHO_N "(cached) $ECHO_C" >&6
13267
26373
else
13268
26374
 
13269
26375
    cat >conftest.$ac_ext <<_ACEOF
13270
 
#line $LINENO "configure"
13271
26376
/* confdefs.h.  */
13272
26377
_ACEOF
13273
26378
cat confdefs.h >>conftest.$ac_ext
13295
26400
  (exit $ac_status); } >/dev/null; then
13296
26401
  if test -s conftest.err; then
13297
26402
    ac_cpp_err=$ac_c_preproc_warn_flag
 
26403
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13298
26404
  else
13299
26405
    ac_cpp_err=
13300
26406
  fi
13303
26409
fi
13304
26410
if test -z "$ac_cpp_err"; then
13305
26411
 
13306
 
      ds6_cv_proto_inet6=yes
 
26412
      wget_cv_proto_inet6=yes
13307
26413
 
13308
26414
else
13309
26415
  echo "$as_me: failed program was:" >&5
13310
26416
sed 's/^/| /' conftest.$ac_ext >&5
13311
26417
 
13312
26418
 
13313
 
      ds6_cv_proto_inet6=no
 
26419
      wget_cv_proto_inet6=no
13314
26420
 
13315
26421
fi
13316
26422
rm -f conftest.err conftest.$ac_ext
13317
26423
 
13318
26424
fi
13319
 
echo "$as_me:$LINENO: result: $ds6_cv_proto_inet6" >&5
13320
 
echo "${ECHO_T}$ds6_cv_proto_inet6" >&6
 
26425
echo "$as_me:$LINENO: result: $wget_cv_proto_inet6" >&5
 
26426
echo "${ECHO_T}$wget_cv_proto_inet6" >&6
13321
26427
 
13322
 
  if test "X$ds6_cv_proto_inet6" = "Xyes"; then :
 
26428
  if test "X$wget_cv_proto_inet6" = "Xyes"; then :
13323
26429
 
13324
26430
  else :
13325
26431
 
13331
26437
 
13332
26438
fi
13333
26439
 
13334
 
if test "X$ipv6" = "Xyes" || test "X$check_for_ipv6" = "Xyes"; then
 
26440
if test "X$ipv6" = "Xyes"; then
13335
26441
 
13336
 
  ds6_have_sockaddr_in6=
 
26442
  wget_have_sockaddr_in6=
13337
26443
  echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
13338
26444
echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
13339
26445
if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
13340
26446
  echo $ECHO_N "(cached) $ECHO_C" >&6
13341
26447
else
13342
26448
  cat >conftest.$ac_ext <<_ACEOF
13343
 
#line $LINENO "configure"
13344
26449
/* confdefs.h.  */
13345
26450
_ACEOF
13346
26451
cat confdefs.h >>conftest.$ac_ext
13365
26470
_ACEOF
13366
26471
rm -f conftest.$ac_objext
13367
26472
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13368
 
  (eval $ac_compile) 2>&5
 
26473
  (eval $ac_compile) 2>conftest.er1
13369
26474
  ac_status=$?
 
26475
  grep -v '^ *+' conftest.er1 >conftest.err
 
26476
  rm -f conftest.er1
 
26477
  cat conftest.err >&5
13370
26478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371
26479
  (exit $ac_status); } &&
13372
 
         { ac_try='test -s conftest.$ac_objext'
 
26480
         { ac_try='test -z "$ac_c_werror_flag"
 
26481
                         || test ! -s conftest.err'
 
26482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26483
  (eval $ac_try) 2>&5
 
26484
  ac_status=$?
 
26485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26486
  (exit $ac_status); }; } &&
 
26487
         { ac_try='test -s conftest.$ac_objext'
13373
26488
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374
26489
  (eval $ac_try) 2>&5
13375
26490
  ac_status=$?
13382
26497
 
13383
26498
ac_cv_type_struct_sockaddr_in6=no
13384
26499
fi
13385
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
26500
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13386
26501
fi
13387
26502
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
13388
26503
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
13393
26508
_ACEOF
13394
26509
 
13395
26510
 
13396
 
    ds6_have_sockaddr_in6=yes
 
26511
    wget_have_sockaddr_in6=yes
13397
26512
 
13398
26513
else
13399
26514
 
13400
 
    ds6_have_sockaddr_in6=no
 
26515
    wget_have_sockaddr_in6=no
13401
26516
 
13402
26517
fi
13403
26518
 
13404
26519
 
13405
 
  if test "X$ds6_have_sockaddr_in6" = "Xyes"; then :
13406
 
 
13407
 
    ipv6=yes
 
26520
  if test "X$wget_have_sockaddr_in6" = "Xyes"; then :
13408
26521
 
13409
26522
  else :
13410
26523
 
13411
 
    { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support 'struct sockaddr_in6'" >&5
13412
 
echo "$as_me: Disabling IPv6 support: your system does not support 'struct sockaddr_in6'" >&6;}
 
26524
    { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&5
 
26525
echo "$as_me: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&6;}
13413
26526
    ipv6=no
13414
26527
 
13415
26528
  fi
13416
26529
 
13417
26530
  if test "X$ipv6" = "Xyes"; then
13418
26531
 
13419
 
 
13420
 
 
13421
 
  ds6_member_sin6_scope_id=
13422
 
  if test "X$ds6_have_sockaddr_in6" = "Xyes"; then
 
26532
  echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
 
26533
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
 
26534
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
 
26535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26536
else
 
26537
  cat >conftest.$ac_ext <<_ACEOF
 
26538
/* confdefs.h.  */
 
26539
_ACEOF
 
26540
cat confdefs.h >>conftest.$ac_ext
 
26541
cat >>conftest.$ac_ext <<_ACEOF
 
26542
/* end confdefs.h.  */
 
26543
 
 
26544
#include <sys/types.h>
 
26545
#include <sys/socket.h>
 
26546
 
 
26547
 
 
26548
int
 
26549
main ()
 
26550
{
 
26551
if ((struct sockaddr_storage *) 0)
 
26552
  return 0;
 
26553
if (sizeof (struct sockaddr_storage))
 
26554
  return 0;
 
26555
  ;
 
26556
  return 0;
 
26557
}
 
26558
_ACEOF
 
26559
rm -f conftest.$ac_objext
 
26560
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26561
  (eval $ac_compile) 2>conftest.er1
 
26562
  ac_status=$?
 
26563
  grep -v '^ *+' conftest.er1 >conftest.err
 
26564
  rm -f conftest.er1
 
26565
  cat conftest.err >&5
 
26566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26567
  (exit $ac_status); } &&
 
26568
         { ac_try='test -z "$ac_c_werror_flag"
 
26569
                         || test ! -s conftest.err'
 
26570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26571
  (eval $ac_try) 2>&5
 
26572
  ac_status=$?
 
26573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26574
  (exit $ac_status); }; } &&
 
26575
         { ac_try='test -s conftest.$ac_objext'
 
26576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26577
  (eval $ac_try) 2>&5
 
26578
  ac_status=$?
 
26579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26580
  (exit $ac_status); }; }; then
 
26581
  ac_cv_type_struct_sockaddr_storage=yes
 
26582
else
 
26583
  echo "$as_me: failed program was:" >&5
 
26584
sed 's/^/| /' conftest.$ac_ext >&5
 
26585
 
 
26586
ac_cv_type_struct_sockaddr_storage=no
 
26587
fi
 
26588
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26589
fi
 
26590
echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
 
26591
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
 
26592
if test $ac_cv_type_struct_sockaddr_storage = yes; then
 
26593
 
 
26594
cat >>confdefs.h <<_ACEOF
 
26595
#define HAVE_STRUCT_SOCKADDR_STORAGE 1
 
26596
_ACEOF
 
26597
 
 
26598
 
 
26599
fi
 
26600
 
 
26601
 
 
26602
 
 
26603
 
 
26604
 
 
26605
  wget_member_sin6_scope_id=
 
26606
  if test "X$wget_have_sockaddr_in6" = "Xyes"; then
13423
26607
    echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
13424
26608
echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6
13425
26609
if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
13426
26610
  echo $ECHO_N "(cached) $ECHO_C" >&6
13427
26611
else
13428
26612
  cat >conftest.$ac_ext <<_ACEOF
13429
 
#line $LINENO "configure"
13430
26613
/* confdefs.h.  */
13431
26614
_ACEOF
13432
26615
cat confdefs.h >>conftest.$ac_ext
13450
26633
_ACEOF
13451
26634
rm -f conftest.$ac_objext
13452
26635
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13453
 
  (eval $ac_compile) 2>&5
 
26636
  (eval $ac_compile) 2>conftest.er1
13454
26637
  ac_status=$?
 
26638
  grep -v '^ *+' conftest.er1 >conftest.err
 
26639
  rm -f conftest.er1
 
26640
  cat conftest.err >&5
13455
26641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456
26642
  (exit $ac_status); } &&
13457
 
         { ac_try='test -s conftest.$ac_objext'
 
26643
         { ac_try='test -z "$ac_c_werror_flag"
 
26644
                         || test ! -s conftest.err'
 
26645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26646
  (eval $ac_try) 2>&5
 
26647
  ac_status=$?
 
26648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26649
  (exit $ac_status); }; } &&
 
26650
         { ac_try='test -s conftest.$ac_objext'
13458
26651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459
26652
  (eval $ac_try) 2>&5
13460
26653
  ac_status=$?
13466
26659
sed 's/^/| /' conftest.$ac_ext >&5
13467
26660
 
13468
26661
cat >conftest.$ac_ext <<_ACEOF
13469
 
#line $LINENO "configure"
13470
26662
/* confdefs.h.  */
13471
26663
_ACEOF
13472
26664
cat confdefs.h >>conftest.$ac_ext
13490
26682
_ACEOF
13491
26683
rm -f conftest.$ac_objext
13492
26684
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493
 
  (eval $ac_compile) 2>&5
 
26685
  (eval $ac_compile) 2>conftest.er1
13494
26686
  ac_status=$?
 
26687
  grep -v '^ *+' conftest.er1 >conftest.err
 
26688
  rm -f conftest.er1
 
26689
  cat conftest.err >&5
13495
26690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496
26691
  (exit $ac_status); } &&
13497
 
         { ac_try='test -s conftest.$ac_objext'
 
26692
         { ac_try='test -z "$ac_c_werror_flag"
 
26693
                         || test ! -s conftest.err'
 
26694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26695
  (eval $ac_try) 2>&5
 
26696
  ac_status=$?
 
26697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26698
  (exit $ac_status); }; } &&
 
26699
         { ac_try='test -s conftest.$ac_objext'
13498
26700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499
26701
  (eval $ac_try) 2>&5
13500
26702
  ac_status=$?
13507
26709
 
13508
26710
ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
13509
26711
fi
13510
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
26712
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13511
26713
fi
13512
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
26714
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13513
26715
fi
13514
26716
echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
13515
26717
echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6
13516
26718
if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
13517
26719
 
13518
 
      ds6_member_sin6_scope_id=yes
 
26720
      wget_member_sin6_scope_id=yes
13519
26721
 
13520
26722
else
13521
26723
 
13522
 
      ds6_member_sin6_scope_id=no
 
26724
      wget_member_sin6_scope_id=no
13523
26725
 
13524
26726
fi
13525
26727
 
13526
26728
  fi
13527
26729
 
13528
 
  if test "X$ds6_member_sin6_scope_id" = "Xyes"; then
 
26730
  if test "X$wget_member_sin6_scope_id" = "Xyes"; then
13529
26731
 
13530
26732
cat >>confdefs.h <<\_ACEOF
13531
26733
#define HAVE_SOCKADDR_IN6_SCOPE_ID 1
13545
26747
#define ENABLE_IPV6 1
13546
26748
_ACEOF
13547
26749
 
 
26750
  { echo "$as_me:$LINENO: Enabling support for IPv6." >&5
 
26751
echo "$as_me: Enabling support for IPv6." >&6;}
 
26752
elif test "x$force_ipv6" = "xyes"; then
 
26753
  { { echo "$as_me:$LINENO: error: IPv6 support requested but not found; aborting" >&5
 
26754
echo "$as_me: error: IPv6 support requested but not found; aborting" >&2;}
 
26755
   { (exit 1); exit 1; }; }
13548
26756
fi
13549
26757
 
13550
26758
 
13565
26773
 
13566
26774
 
13567
26775
    if test x"$HAVE_NLS" = xyes; then
13568
 
      echo "$as_me:$LINENO: result: language catalogs: $ALL_LINGUAS" >&5
13569
 
echo "${ECHO_T}language catalogs: $ALL_LINGUAS" >&6
 
26776
                        if test x"$LINGUAS" != x; then
 
26777
        new_linguas=
 
26778
        for lang1 in $ALL_LINGUAS; do
 
26779
          for lang2 in $LINGUAS; do
 
26780
            if test "$lang1" = "$lang2"; then
 
26781
              new_linguas="$new_linguas $lang1"
 
26782
            fi
 
26783
          done
 
26784
        done
 
26785
        ALL_LINGUAS=$new_linguas
 
26786
      fi
 
26787
      { echo "$as_me:$LINENO: language catalogs: $ALL_LINGUAS" >&5
 
26788
echo "$as_me: language catalogs: $ALL_LINGUAS" >&6;}
13570
26789
      # Extract the first word of "msgfmt", so it can be a program name with args.
13571
26790
set dummy msgfmt; ac_word=$2
13572
26791
echo "$as_me:$LINENO: checking for $ac_word" >&5
13712
26931
echo "$as_me:$LINENO: checking $ac_header usability" >&5
13713
26932
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13714
26933
cat >conftest.$ac_ext <<_ACEOF
13715
 
#line $LINENO "configure"
13716
26934
/* confdefs.h.  */
13717
26935
_ACEOF
13718
26936
cat confdefs.h >>conftest.$ac_ext
13723
26941
_ACEOF
13724
26942
rm -f conftest.$ac_objext
13725
26943
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13726
 
  (eval $ac_compile) 2>&5
 
26944
  (eval $ac_compile) 2>conftest.er1
13727
26945
  ac_status=$?
 
26946
  grep -v '^ *+' conftest.er1 >conftest.err
 
26947
  rm -f conftest.er1
 
26948
  cat conftest.err >&5
13728
26949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729
26950
  (exit $ac_status); } &&
13730
 
         { ac_try='test -s conftest.$ac_objext'
 
26951
         { ac_try='test -z "$ac_c_werror_flag"
 
26952
                         || test ! -s conftest.err'
 
26953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26954
  (eval $ac_try) 2>&5
 
26955
  ac_status=$?
 
26956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26957
  (exit $ac_status); }; } &&
 
26958
         { ac_try='test -s conftest.$ac_objext'
13731
26959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732
26960
  (eval $ac_try) 2>&5
13733
26961
  ac_status=$?
13740
26968
 
13741
26969
ac_header_compiler=no
13742
26970
fi
13743
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
26971
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13744
26972
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13745
26973
echo "${ECHO_T}$ac_header_compiler" >&6
13746
26974
 
13748
26976
echo "$as_me:$LINENO: checking $ac_header presence" >&5
13749
26977
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13750
26978
cat >conftest.$ac_ext <<_ACEOF
13751
 
#line $LINENO "configure"
13752
26979
/* confdefs.h.  */
13753
26980
_ACEOF
13754
26981
cat confdefs.h >>conftest.$ac_ext
13766
26993
  (exit $ac_status); } >/dev/null; then
13767
26994
  if test -s conftest.err; then
13768
26995
    ac_cpp_err=$ac_c_preproc_warn_flag
 
26996
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13769
26997
  else
13770
26998
    ac_cpp_err=
13771
26999
  fi
13785
27013
echo "${ECHO_T}$ac_header_preproc" >&6
13786
27014
 
13787
27015
# So?  What about this header?
13788
 
case $ac_header_compiler:$ac_header_preproc in
13789
 
  yes:no )
 
27016
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27017
  yes:no: )
13790
27018
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13791
27019
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13792
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13793
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13794
 
    (
13795
 
      cat <<\_ASBOX
13796
 
## ------------------------------------ ##
13797
 
## Report this to bug-autoconf@gnu.org. ##
13798
 
## ------------------------------------ ##
13799
 
_ASBOX
13800
 
    ) |
13801
 
      sed "s/^/$as_me: WARNING:     /" >&2
 
27020
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
27021
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
27022
    ac_header_preproc=yes
13802
27023
    ;;
13803
 
  no:yes )
 
27024
  no:yes:* )
13804
27025
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13805
27026
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13806
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13807
 
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
27027
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
27028
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
27029
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
27030
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
27031
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
27032
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13808
27033
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13809
27034
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
27035
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
27036
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13810
27037
    (
13811
27038
      cat <<\_ASBOX
13812
 
## ------------------------------------ ##
13813
 
## Report this to bug-autoconf@gnu.org. ##
13814
 
## ------------------------------------ ##
 
27039
## ------------------------------------------ ##
 
27040
## Report this to the AC_PACKAGE_NAME lists.  ##
 
27041
## ------------------------------------------ ##
13815
27042
_ASBOX
13816
27043
    ) |
13817
27044
      sed "s/^/$as_me: WARNING:     /" >&2
13822
27049
if eval "test \"\${$as_ac_Header+set}\" = set"; then
13823
27050
  echo $ECHO_N "(cached) $ECHO_C" >&6
13824
27051
else
13825
 
  eval "$as_ac_Header=$ac_header_preproc"
 
27052
  eval "$as_ac_Header=\$ac_header_preproc"
13826
27053
fi
13827
27054
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13828
27055
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13847
27074
  ac_check_lib_save_LIBS=$LIBS
13848
27075
LIBS="-lintl  $LIBS"
13849
27076
cat >conftest.$ac_ext <<_ACEOF
13850
 
#line $LINENO "configure"
13851
27077
/* confdefs.h.  */
13852
27078
_ACEOF
13853
27079
cat confdefs.h >>conftest.$ac_ext
13871
27097
_ACEOF
13872
27098
rm -f conftest.$ac_objext conftest$ac_exeext
13873
27099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874
 
  (eval $ac_link) 2>&5
 
27100
  (eval $ac_link) 2>conftest.er1
13875
27101
  ac_status=$?
 
27102
  grep -v '^ *+' conftest.er1 >conftest.err
 
27103
  rm -f conftest.er1
 
27104
  cat conftest.err >&5
13876
27105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877
27106
  (exit $ac_status); } &&
13878
 
         { ac_try='test -s conftest$ac_exeext'
 
27107
         { ac_try='test -z "$ac_c_werror_flag"
 
27108
                         || test ! -s conftest.err'
 
27109
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27110
  (eval $ac_try) 2>&5
 
27111
  ac_status=$?
 
27112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27113
  (exit $ac_status); }; } &&
 
27114
         { ac_try='test -s conftest$ac_exeext'
13879
27115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880
27116
  (eval $ac_try) 2>&5
13881
27117
  ac_status=$?
13888
27124
 
13889
27125
ac_cv_lib_intl_gettext=no
13890
27126
fi
13891
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
27127
rm -f conftest.err conftest.$ac_objext \
 
27128
      conftest$ac_exeext conftest.$ac_ext
13892
27129
LIBS=$ac_check_lib_save_LIBS
13893
27130
fi
13894
27131
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
13896
27133
if test $ac_cv_lib_intl_gettext = yes; then
13897
27134
 
13898
27135
                LIBS="-lintl $LIBS"
13899
 
        cat >>confdefs.h <<\_ACEOF
 
27136
 
 
27137
cat >>confdefs.h <<\_ACEOF
13900
27138
#define HAVE_GETTEXT 1
13901
27139
_ACEOF
13902
27140
 
13913
27151
  echo $ECHO_N "(cached) $ECHO_C" >&6
13914
27152
else
13915
27153
  cat >conftest.$ac_ext <<_ACEOF
13916
 
#line $LINENO "configure"
13917
27154
/* confdefs.h.  */
13918
27155
_ACEOF
13919
27156
cat confdefs.h >>conftest.$ac_ext
13920
27157
cat >>conftest.$ac_ext <<_ACEOF
13921
27158
/* end confdefs.h.  */
 
27159
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27160
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27161
#define $ac_func innocuous_$ac_func
 
27162
 
13922
27163
/* System header to define __stub macros and hopefully few prototypes,
13923
27164
    which can conflict with char $ac_func (); below.
13924
27165
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13925
27166
    <limits.h> exists even on freestanding compilers.  */
 
27167
 
13926
27168
#ifdef __STDC__
13927
27169
# include <limits.h>
13928
27170
#else
13929
27171
# include <assert.h>
13930
27172
#endif
 
27173
 
 
27174
#undef $ac_func
 
27175
 
13931
27176
/* Override any gcc2 internal prototype to avoid an error.  */
13932
27177
#ifdef __cplusplus
13933
27178
extern "C"
13958
27203
_ACEOF
13959
27204
rm -f conftest.$ac_objext conftest$ac_exeext
13960
27205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961
 
  (eval $ac_link) 2>&5
 
27206
  (eval $ac_link) 2>conftest.er1
13962
27207
  ac_status=$?
 
27208
  grep -v '^ *+' conftest.er1 >conftest.err
 
27209
  rm -f conftest.er1
 
27210
  cat conftest.err >&5
13963
27211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964
27212
  (exit $ac_status); } &&
13965
 
         { ac_try='test -s conftest$ac_exeext'
 
27213
         { ac_try='test -z "$ac_c_werror_flag"
 
27214
                         || test ! -s conftest.err'
 
27215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27216
  (eval $ac_try) 2>&5
 
27217
  ac_status=$?
 
27218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27219
  (exit $ac_status); }; } &&
 
27220
         { ac_try='test -s conftest$ac_exeext'
13966
27221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967
27222
  (eval $ac_try) 2>&5
13968
27223
  ac_status=$?
13975
27230
 
13976
27231
eval "$as_ac_var=no"
13977
27232
fi
13978
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
27233
rm -f conftest.err conftest.$ac_objext \
 
27234
      conftest$ac_exeext conftest.$ac_ext
13979
27235
fi
13980
27236
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13981
27237
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13997
27253
fi
13998
27254
 
13999
27255
 
14000
 
                        for lang in $ALL_LINGUAS; do
 
27256
      for lang in $ALL_LINGUAS; do
14001
27257
        GMOFILES="$GMOFILES $lang.gmo"
14002
27258
        POFILES="$POFILES $lang.po"
14003
27259
      done
14017
27273
            USE_NLS=$HAVE_NLS
14018
27274
 
14019
27275
    if test "x$HAVE_NLS" = xyes; then
14020
 
      cat >>confdefs.h <<\_ACEOF
 
27276
 
 
27277
cat >>confdefs.h <<\_ACEOF
14021
27278
#define HAVE_NLS 1
14022
27279
_ACEOF
14023
27280
 
14025
27282
 
14026
27283
 
14027
27284
 
14028
 
for ac_prog in makeinfo emacs xemacs
 
27285
for ac_prog in makeinfo
14029
27286
do
14030
27287
  # Extract the first word of "$ac_prog", so it can be a program name with args.
14031
27288
set dummy $ac_prog; ac_word=$2
14064
27321
 
14065
27322
  test -n "$MAKEINFO" && break
14066
27323
done
14067
 
 
14068
 
 
14069
 
case "${MAKEINFO}" in
14070
 
   *makeinfo) MAKEINFO="${MAKEINFO} \$(srcdir)/wget.texi"  ;;
14071
 
   *emacs | *xemacs) MAKEINFO="${MAKEINFO} -batch -q -no-site-file -eval '(find-file \"\$(srcdir)/wget.texi\")' -l texinfmt -f texinfo-format-buffer -f save-buffer"  ;;
14072
 
   *) MAKEINFO="makeinfo \$(srcdir)/wget.texi"            ;;
14073
 
esac
 
27324
test -n "$MAKEINFO" || MAKEINFO="true"
 
27325
 
14074
27326
 
14075
27327
 
14076
27328
for ac_prog in perl5 perl
14167
27419
 
14168
27420
 
14169
27421
                                                            ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in windows/Makefile"
 
27422
 
 
27423
          ac_config_headers="$ac_config_headers src/config.h"
 
27424
 
 
27425
 
 
27426
 
 
27427
          ac_config_files="$ac_config_files stamp-h"
 
27428
 
14170
27429
          ac_config_commands="$ac_config_commands default"
 
27430
 
14171
27431
cat >confcache <<\_ACEOF
14172
27432
# This file is a shell script that caches the results of configure
14173
27433
# tests run on this system so they can be shared between configure
14196
27456
      # `set' does not quote correctly, so add quotes (double-quote
14197
27457
      # substitution turns \\\\ into \\, and sed turns \\ into \).
14198
27458
      sed -n \
14199
 
        "s/'/'\\\\''/g;
14200
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
27459
        "s/'/'\\\\''/g;
 
27460
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14201
27461
      ;;
14202
27462
    *)
14203
27463
      # `set' quotes correctly as required by POSIX, so do not add quotes.
14204
27464
      sed -n \
14205
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
27465
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14206
27466
      ;;
14207
27467
    esac;
14208
27468
} |
14232
27492
# trailing colons and then remove the whole line if VPATH becomes empty
14233
27493
# (actually we leave an empty line to preserve line numbers).
14234
27494
if test "x$srcdir" = x.; then
14235
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
27495
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
14236
27496
s/:*\$(srcdir):*/:/;
14237
27497
s/:*\${srcdir}:*/:/;
14238
27498
s/:*@srcdir@:*/:/;
14239
 
s/^\([^=]*=[    ]*\):*/\1/;
 
27499
s/^\([^=]*=[     ]*\):*/\1/;
14240
27500
s/:*$//;
14241
 
s/^[^=]*=[      ]*$//;
 
27501
s/^[^=]*=[       ]*$//;
14242
27502
}'
14243
27503
fi
14244
27504
 
14249
27509
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14250
27510
  # 1. Remove the extension, and $U if already installed.
14251
27511
  ac_i=`echo "$ac_i" |
14252
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
27512
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14253
27513
  # 2. Add them.
14254
27514
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14255
27515
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14293
27553
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14294
27554
  set -o posix
14295
27555
fi
 
27556
DUALCASE=1; export DUALCASE # for MKS sh
14296
27557
 
14297
27558
# Support unset when possible.
14298
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
27559
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14299
27560
  as_unset=unset
14300
27561
else
14301
27562
  as_unset=false
14314
27575
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14315
27576
  LC_TELEPHONE LC_TIME
14316
27577
do
14317
 
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
27578
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14318
27579
    eval $as_var=C; export $as_var
14319
27580
  else
14320
27581
    $as_unset $as_var
14493
27754
if mkdir -p . 2>/dev/null; then
14494
27755
  as_mkdir_p=:
14495
27756
else
 
27757
  test -d ./-p && rmdir ./-p
14496
27758
  as_mkdir_p=false
14497
27759
fi
14498
27760
 
14499
27761
as_executable_p="test -f"
14500
27762
 
14501
27763
# Sed expression to map a string onto a valid CPP name.
14502
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
27764
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14503
27765
 
14504
27766
# Sed expression to map a string onto a valid variable name.
14505
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
27767
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14506
27768
 
14507
27769
 
14508
27770
# IFS
14529
27791
cat >&5 <<_CSEOF
14530
27792
 
14531
27793
This file was extended by $as_me, which was
14532
 
generated by GNU Autoconf 2.57.  Invocation command line was
 
27794
generated by GNU Autoconf 2.59.  Invocation command line was
14533
27795
 
14534
27796
  CONFIG_FILES    = $CONFIG_FILES
14535
27797
  CONFIG_HEADERS  = $CONFIG_HEADERS
14573
27835
  -d, --debug      don't remove temporary files
14574
27836
      --recheck    update $as_me by reconfiguring in the same conditions
14575
27837
  --file=FILE[:TEMPLATE]
14576
 
                   instantiate the configuration file FILE
 
27838
                   instantiate the configuration file FILE
14577
27839
  --header=FILE[:TEMPLATE]
14578
 
                   instantiate the configuration header FILE
 
27840
                   instantiate the configuration header FILE
14579
27841
 
14580
27842
Configuration files:
14581
27843
$config_files
14592
27854
cat >>$CONFIG_STATUS <<_ACEOF
14593
27855
ac_cs_version="\\
14594
27856
config.status
14595
 
configured by $0, generated by GNU Autoconf 2.57,
 
27857
configured by $0, generated by GNU Autoconf 2.59,
14596
27858
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14597
27859
 
14598
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14599
 
Free Software Foundation, Inc.
 
27860
Copyright (C) 2003 Free Software Foundation, Inc.
14600
27861
This config.status script is free software; the Free Software Foundation
14601
27862
gives unlimited permission to copy, distribute and modify it."
14602
27863
srcdir=$srcdir
14701
27962
  "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
14702
27963
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14703
27964
  "windows/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
 
27965
  "stamp-h" ) CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
14704
27966
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14705
27967
  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14706
27968
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14814
28076
s,@EGREP@,$EGREP,;t t
14815
28077
s,@LN_S@,$LN_S,;t t
14816
28078
s,@ECHO@,$ECHO,;t t
 
28079
s,@AR@,$AR,;t t
 
28080
s,@ac_ct_AR@,$ac_ct_AR,;t t
14817
28081
s,@RANLIB@,$RANLIB,;t t
14818
28082
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14819
28083
s,@STRIP@,$STRIP,;t t
14820
28084
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
28085
s,@CXX@,$CXX,;t t
 
28086
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
28087
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
28088
s,@CXXCPP@,$CXXCPP,;t t
 
28089
s,@F77@,$F77,;t t
 
28090
s,@FFLAGS@,$FFLAGS,;t t
 
28091
s,@ac_ct_F77@,$ac_ct_F77,;t t
14821
28092
s,@LIBTOOL@,$LIBTOOL,;t t
14822
28093
s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
14823
28094
s,@exeext@,$exeext,;t t
14827
28098
s,@GETOPT_OBJ@,$GETOPT_OBJ,;t t
14828
28099
s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t
14829
28100
s,@SSL_OBJ@,$SSL_OBJ,;t t
 
28101
s,@NTLM_OBJ@,$NTLM_OBJ,;t t
14830
28102
s,@MD5_OBJ@,$MD5_OBJ,;t t
14831
28103
s,@MSGFMT@,$MSGFMT,;t t
14832
28104
s,@XGETTEXT@,$XGETTEXT,;t t
14875
28147
      (echo ':t
14876
28148
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14877
28149
      if test -z "$ac_sed_cmds"; then
14878
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
28150
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14879
28151
      else
14880
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
28152
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14881
28153
      fi
14882
28154
      ac_sed_frag=`expr $ac_sed_frag + 1`
14883
28155
      ac_beg=$ac_end
14895
28167
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14896
28168
  case $ac_file in
14897
28169
  - | *:- | *:-:* ) # input from stdin
14898
 
        cat >$tmp/stdin
14899
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14900
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
28170
        cat >$tmp/stdin
 
28171
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
28172
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14901
28173
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14902
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
28174
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14903
28175
  * )   ac_file_in=$ac_file.in ;;
14904
28176
  esac
14905
28177
 
14906
28178
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14907
28179
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14908
28180
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14909
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
14910
 
         X"$ac_file" : 'X\(//\)$' \| \
14911
 
         X"$ac_file" : 'X\(/\)' \| \
14912
 
         .     : '\(.\)' 2>/dev/null ||
 
28181
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
28182
         X"$ac_file" : 'X\(//\)$' \| \
 
28183
         X"$ac_file" : 'X\(/\)' \| \
 
28184
         .     : '\(.\)' 2>/dev/null ||
14913
28185
echo X"$ac_file" |
14914
28186
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14915
28187
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14925
28197
      as_dirs="$as_dir $as_dirs"
14926
28198
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14927
28199
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14928
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
14929
 
         X"$as_dir" : 'X\(//\)$' \| \
14930
 
         X"$as_dir" : 'X\(/\)' \| \
14931
 
         .     : '\(.\)' 2>/dev/null ||
 
28200
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
28201
         X"$as_dir" : 'X\(//\)$' \| \
 
28202
         X"$as_dir" : 'X\(/\)' \| \
 
28203
         .     : '\(.\)' 2>/dev/null ||
14932
28204
echo X"$as_dir" |
14933
28205
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14934
28206
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14966
28238
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14967
28239
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
14968
28240
esac
14969
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14970
 
# absolute.
14971
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14972
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14973
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14974
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
28241
 
 
28242
# Do not use `cd foo && pwd` to compute absolute paths, because
 
28243
# the directories may not exist.
 
28244
case `pwd` in
 
28245
.) ac_abs_builddir="$ac_dir";;
 
28246
*)
 
28247
  case "$ac_dir" in
 
28248
  .) ac_abs_builddir=`pwd`;;
 
28249
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
28250
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
28251
  esac;;
 
28252
esac
 
28253
case $ac_abs_builddir in
 
28254
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
28255
*)
 
28256
  case ${ac_top_builddir}. in
 
28257
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
28258
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
28259
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
28260
  esac;;
 
28261
esac
 
28262
case $ac_abs_builddir in
 
28263
.) ac_abs_srcdir=$ac_srcdir;;
 
28264
*)
 
28265
  case $ac_srcdir in
 
28266
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
28267
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
28268
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
28269
  esac;;
 
28270
esac
 
28271
case $ac_abs_builddir in
 
28272
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
28273
*)
 
28274
  case $ac_top_srcdir in
 
28275
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
28276
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
28277
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
28278
  esac;;
 
28279
esac
14975
28280
 
14976
28281
 
14977
28282
  case $INSTALL in
14993
28298
    configure_input="$ac_file.  "
14994
28299
  fi
14995
28300
  configure_input=$configure_input"Generated from `echo $ac_file_in |
14996
 
                                     sed 's,.*/,,'` by configure."
 
28301
                                     sed 's,.*/,,'` by configure."
14997
28302
 
14998
28303
  # First look for the input files in the build tree, otherwise in the
14999
28304
  # src tree.
15002
28307
      case $f in
15003
28308
      -) echo $tmp/stdin ;;
15004
28309
      [\\/$]*)
15005
 
         # Absolute (can't be DOS-style, as IFS=:)
15006
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
28310
         # Absolute (can't be DOS-style, as IFS=:)
 
28311
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15007
28312
echo "$as_me: error: cannot find input file: $f" >&2;}
15008
28313
   { (exit 1); exit 1; }; }
15009
 
         echo $f;;
 
28314
         echo "$f";;
15010
28315
      *) # Relative
15011
 
         if test -f "$f"; then
15012
 
           # Build tree
15013
 
           echo $f
15014
 
         elif test -f "$srcdir/$f"; then
15015
 
           # Source tree
15016
 
           echo $srcdir/$f
15017
 
         else
15018
 
           # /dev/null tree
15019
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
28316
         if test -f "$f"; then
 
28317
           # Build tree
 
28318
           echo "$f"
 
28319
         elif test -f "$srcdir/$f"; then
 
28320
           # Source tree
 
28321
           echo "$srcdir/$f"
 
28322
         else
 
28323
           # /dev/null tree
 
28324
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15020
28325
echo "$as_me: error: cannot find input file: $f" >&2;}
15021
28326
   { (exit 1); exit 1; }; }
15022
 
         fi;;
 
28327
         fi;;
15023
28328
      esac
15024
28329
    done` || { (exit 1); exit 1; }
15025
28330
_ACEOF
15049
28354
    rm -f $tmp/out
15050
28355
  fi
15051
28356
 
 
28357
  # Run the commands associated with the file.
 
28358
  case $ac_file in
 
28359
    stamp-h ) echo timestamp > stamp-h ;;
 
28360
  esac
15052
28361
done
15053
28362
_ACEOF
15054
28363
cat >>$CONFIG_STATUS <<\_ACEOF
15061
28370
# NAME is the cpp macro being defined and VALUE is the value it is being given.
15062
28371
#
15063
28372
# ac_d sets the value in "#define NAME VALUE" lines.
15064
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
15065
 
ac_dB='[        ].*$,\1#\2'
 
28373
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
28374
ac_dB='[         ].*$,\1#\2'
15066
28375
ac_dC=' '
15067
28376
ac_dD=',;t'
15068
28377
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15069
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
28378
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15070
28379
ac_uB='$,\1#\2define\3'
15071
28380
ac_uC=' '
15072
28381
ac_uD=',;t'
15075
28384
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15076
28385
  case $ac_file in
15077
28386
  - | *:- | *:-:* ) # input from stdin
15078
 
        cat >$tmp/stdin
15079
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15080
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
28387
        cat >$tmp/stdin
 
28388
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
28389
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15081
28390
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15082
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
28391
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15083
28392
  * )   ac_file_in=$ac_file.in ;;
15084
28393
  esac
15085
28394
 
15093
28402
      case $f in
15094
28403
      -) echo $tmp/stdin ;;
15095
28404
      [\\/$]*)
15096
 
         # Absolute (can't be DOS-style, as IFS=:)
15097
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
28405
         # Absolute (can't be DOS-style, as IFS=:)
 
28406
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15098
28407
echo "$as_me: error: cannot find input file: $f" >&2;}
15099
28408
   { (exit 1); exit 1; }; }
15100
 
         echo $f;;
 
28409
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
28410
         echo "$f";;
15101
28411
      *) # Relative
15102
 
         if test -f "$f"; then
15103
 
           # Build tree
15104
 
           echo $f
15105
 
         elif test -f "$srcdir/$f"; then
15106
 
           # Source tree
15107
 
           echo $srcdir/$f
15108
 
         else
15109
 
           # /dev/null tree
15110
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
28412
         if test -f "$f"; then
 
28413
           # Build tree
 
28414
           echo "$f"
 
28415
         elif test -f "$srcdir/$f"; then
 
28416
           # Source tree
 
28417
           echo "$srcdir/$f"
 
28418
         else
 
28419
           # /dev/null tree
 
28420
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15111
28421
echo "$as_me: error: cannot find input file: $f" >&2;}
15112
28422
   { (exit 1); exit 1; }; }
15113
 
         fi;;
 
28423
         fi;;
15114
28424
      esac
15115
28425
    done` || { (exit 1); exit 1; }
15116
28426
  # Remove the trailing spaces.
15117
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
28427
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15118
28428
 
15119
28429
_ACEOF
15120
28430
 
15137
28447
s,[\\$`],\\&,g
15138
28448
t clear
15139
28449
: clear
15140
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
28450
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15141
28451
t end
15142
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
28452
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15143
28453
: end
15144
28454
_ACEOF
15145
28455
# If some macros were called several times there might be several times
15153
28463
# example, in the case of _POSIX_SOURCE, which is predefined and required
15154
28464
# on some systems where configure will not decide to define it.
15155
28465
cat >>conftest.undefs <<\_ACEOF
15156
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
28466
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15157
28467
_ACEOF
15158
28468
 
15159
28469
# Break up conftest.defines because some shells have a limit on the size
15160
28470
# of here documents, and old seds have small limits too (100 cmds).
15161
28471
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15162
 
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
28472
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15163
28473
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15164
28474
echo '  :' >>$CONFIG_STATUS
15165
28475
rm -f conftest.tail
15168
28478
  # Write a limited-size here document to $tmp/defines.sed.
15169
28479
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15170
28480
  # Speed up: don't consider the non `#define' lines.
15171
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
28481
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15172
28482
  # Work around the forget-to-reset-the-flag bug.
15173
28483
  echo 't clr' >>$CONFIG_STATUS
15174
28484
  echo ': clr' >>$CONFIG_STATUS
15195
28505
  # Write a limited-size here document to $tmp/undefs.sed.
15196
28506
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15197
28507
  # Speed up: don't consider the non `#undef'
15198
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
28508
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15199
28509
  # Work around the forget-to-reset-the-flag bug.
15200
28510
  echo 't clr' >>$CONFIG_STATUS
15201
28511
  echo ': clr' >>$CONFIG_STATUS
15229
28539
    else
15230
28540
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15231
28541
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15232
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
15233
 
         X"$ac_file" : 'X\(//\)$' \| \
15234
 
         X"$ac_file" : 'X\(/\)' \| \
15235
 
         .     : '\(.\)' 2>/dev/null ||
 
28542
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
28543
         X"$ac_file" : 'X\(//\)$' \| \
 
28544
         X"$ac_file" : 'X\(/\)' \| \
 
28545
         .     : '\(.\)' 2>/dev/null ||
15236
28546
echo X"$ac_file" |
15237
28547
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15238
28548
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15248
28558
      as_dirs="$as_dir $as_dirs"
15249
28559
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15250
28560
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15251
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
15252
 
         X"$as_dir" : 'X\(//\)$' \| \
15253
 
         X"$as_dir" : 'X\(/\)' \| \
15254
 
         .     : '\(.\)' 2>/dev/null ||
 
28561
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
28562
         X"$as_dir" : 'X\(//\)$' \| \
 
28563
         X"$as_dir" : 'X\(/\)' \| \
 
28564
         .     : '\(.\)' 2>/dev/null ||
15255
28565
echo X"$as_dir" |
15256
28566
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15257
28567
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15283
28593
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15284
28594
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15285
28595
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15286
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
15287
 
         X"$ac_dest" : 'X\(//\)$' \| \
15288
 
         X"$ac_dest" : 'X\(/\)' \| \
15289
 
         .     : '\(.\)' 2>/dev/null ||
 
28596
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
28597
         X"$ac_dest" : 'X\(//\)$' \| \
 
28598
         X"$ac_dest" : 'X\(/\)' \| \
 
28599
         .     : '\(.\)' 2>/dev/null ||
15290
28600
echo X"$ac_dest" |
15291
28601
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15292
28602
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15293
28603
          /^X\(\/\/\)$/{ s//\1/; q; }
15294
28604
          /^X\(\/\).*/{ s//\1/; q; }
15295
28605
          s/.*/./; q'`
 
28606
  { if $as_mkdir_p; then
 
28607
    mkdir -p "$ac_dir"
 
28608
  else
 
28609
    as_dir="$ac_dir"
 
28610
    as_dirs=
 
28611
    while test ! -d "$as_dir"; do
 
28612
      as_dirs="$as_dir $as_dirs"
 
28613
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
28614
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
28615
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
28616
         X"$as_dir" : 'X\(//\)$' \| \
 
28617
         X"$as_dir" : 'X\(/\)' \| \
 
28618
         .     : '\(.\)' 2>/dev/null ||
 
28619
echo X"$as_dir" |
 
28620
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
28621
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
28622
          /^X\(\/\/\)$/{ s//\1/; q; }
 
28623
          /^X\(\/\).*/{ s//\1/; q; }
 
28624
          s/.*/./; q'`
 
28625
    done
 
28626
    test ! -n "$as_dirs" || mkdir $as_dirs
 
28627
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
28628
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
28629
   { (exit 1); exit 1; }; }; }
 
28630
 
15296
28631
  ac_builddir=.
15297
28632
 
15298
28633
if test "$ac_dir" != .; then
15318
28653
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15319
28654
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15320
28655
esac
15321
 
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15322
 
# absolute.
15323
 
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15324
 
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15325
 
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15326
 
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
28656
 
 
28657
# Do not use `cd foo && pwd` to compute absolute paths, because
 
28658
# the directories may not exist.
 
28659
case `pwd` in
 
28660
.) ac_abs_builddir="$ac_dir";;
 
28661
*)
 
28662
  case "$ac_dir" in
 
28663
  .) ac_abs_builddir=`pwd`;;
 
28664
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
28665
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
28666
  esac;;
 
28667
esac
 
28668
case $ac_abs_builddir in
 
28669
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
28670
*)
 
28671
  case ${ac_top_builddir}. in
 
28672
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
28673
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
28674
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
28675
  esac;;
 
28676
esac
 
28677
case $ac_abs_builddir in
 
28678
.) ac_abs_srcdir=$ac_srcdir;;
 
28679
*)
 
28680
  case $ac_srcdir in
 
28681
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
28682
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
28683
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
28684
  esac;;
 
28685
esac
 
28686
case $ac_abs_builddir in
 
28687
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
28688
*)
 
28689
  case $ac_top_srcdir in
 
28690
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
28691
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
28692
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
28693
  esac;;
 
28694
esac
15327
28695
 
15328
28696
 
15329
28697
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15346
28714
        < $srcdir/po/POTFILES.in > po/POTFILES
15347
28715
   echo "creating po/Makefile"
15348
28716
   sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
15349
 
 
15350
 
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
 
28717
   ;;
15351
28718
  esac
15352
28719
done
15353
28720
_ACEOF