~ubuntu-branches/ubuntu/trusty/librep/trusty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Christian Marillat
  • Date: 2005-01-14 14:18:11 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050114141811-k2x3wczuc17qai2v
Tags: 0.17-7
Build with -Oo for amd64

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
 
# From configure.in Revision: 1.135 
4
 
 
5
 
 
6
 
 
7
 
 
8
 
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
9
 
 
10
 
# serial 46 AC_PROG_LIBTOOL
11
 
 
12
 
 
13
 
 
14
 
 
15
 
# _LT_AC_CHECK_DLFCN
16
 
# --------------------
17
 
# _LT_AC_CHECK_DLFCN
18
 
 
19
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
20
 
# ---------------------------------
21
 
 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
22
 
 
23
 
# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
24
 
# ---------------------------------
25
 
# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
26
 
 
27
 
# _LT_AC_PROG_ECHO_BACKSLASH
28
 
# --------------------------
29
 
# Add some code to the start of the generated configure script which
30
 
# will find an echo command which doesn;t interpret backslashes.
31
 
# _LT_AC_PROG_ECHO_BACKSLASH
32
 
 
33
 
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
34
 
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
35
 
# ------------------------------------------------------------------
36
 
# _LT_AC_TRY_DLOPEN_SELF
37
 
 
38
 
# AC_LIBTOOL_DLOPEN_SELF
39
 
# -------------------
40
 
# AC_LIBTOOL_DLOPEN_SELF
41
 
 
42
 
# _LT_AC_LTCONFIG_HACK
43
 
 
44
 
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
45
 
 
46
 
 
47
 
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
48
 
 
49
 
 
50
 
# AC_ENABLE_SHARED - implement the --enable-shared flag
51
 
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
52
 
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
53
 
#   `yes'.
54
 
 
55
 
 
56
 
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
57
 
 
58
 
 
59
 
# AC_ENABLE_STATIC - implement the --enable-static flag
60
 
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
61
 
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
62
 
#   `yes'.
63
 
 
64
 
 
65
 
# AC_DISABLE_STATIC - set the default static flag to --disable-static
66
 
 
67
 
 
68
 
 
69
 
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
70
 
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
71
 
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
72
 
#   `yes'.
73
 
 
74
 
 
75
 
# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
76
 
 
77
 
 
78
 
# AC_LIBTOOL_PICMODE - implement the --with-pic flag
79
 
# Usage: AC_LIBTOOL_PICMODE[(MODE)]
80
 
#   Where MODE is either `yes' or `no'.  If omitted, it defaults to
81
 
#   `both'.
82
 
 
83
 
 
84
 
 
85
 
# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
86
 
 
87
 
 
88
 
 
89
 
# AC_PATH_MAGIC - find a file program which can recognise a shared library
90
 
 
91
 
 
92
 
 
93
 
# AC_PROG_LD - find the path to the GNU or non-GNU linker
94
 
 
95
 
 
96
 
# AC_PROG_LD_GNU -
97
 
 
98
 
 
99
 
# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
100
 
#   -- PORTME Some linkers may need a different reload flag.
101
 
 
102
 
 
103
 
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
104
 
#  -- PORTME fill in with the dynamic library characteristics
105
 
 
106
 
 
107
 
 
108
 
# AC_PROG_NM - find the path to a BSD-compatible name lister
109
 
 
110
 
 
111
 
# AC_CHECK_LIBM - check for math library
112
 
 
113
 
 
114
 
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
115
 
# the libltdl convenience library and INCLTDL to the include flags for
116
 
# the libltdl header and adds --enable-ltdl-convenience to the
117
 
# configure arguments.  Note that LIBLTDL and INCLTDL are not
118
 
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
119
 
# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
120
 
# with '${top_builddir}/' and INCLTDL will be prefixed with
121
 
# '${top_srcdir}/' (note the single quotes!).  If your package is not
122
 
# flat and you're not using automake, define top_builddir and
123
 
# top_srcdir appropriately in the Makefiles.
124
 
 
125
 
 
126
 
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
127
 
# the libltdl installable library and INCLTDL to the include flags for
128
 
# the libltdl header and adds --enable-ltdl-install to the configure
129
 
# arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
130
 
# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
131
 
# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
132
 
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
133
 
# with '${top_srcdir}/' (note the single quotes!).  If your package is
134
 
# not flat and you're not using automake, define top_builddir and
135
 
# top_srcdir appropriately in the Makefiles.
136
 
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
137
 
 
138
 
 
139
 
# old names
140
 
 
141
 
 
142
 
 
143
 
 
144
 
 
145
 
 
146
 
 
147
 
 
148
 
# This is just to silence aclocal about the macro not being used
149
 
 
150
 
 
151
 
# Check whether LC_MESSAGES is available in <locale.h>.
152
 
# Ulrich Drepper <drepper@cygnus.com>, 1995.
153
 
#
154
 
# This file can be copied and used freely without restrictions.  It can
155
 
# be used in projects which are not available under the GNU Public License
156
 
# but which still want to provide support for the GNU gettext functionality.
157
 
# Please note that the actual code is *not* freely available.
158
 
 
159
 
# serial 1
160
 
 
161
 
 
162
 
 
 
2
# From configure.in Revision: 1.145 .
163
3
# Guess values for system-dependent variables and create Makefiles.
164
 
# Generated automatically using autoconf version 2.13 
165
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
4
# Generated by GNU Autoconf 2.57.
166
5
#
 
6
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
7
# Free Software Foundation, Inc.
167
8
# This configure script is free software; the Free Software Foundation
168
9
# gives unlimited permission to copy, distribute and modify it.
169
 
 
170
 
# Defaults:
171
 
ac_help=
172
 
ac_default_prefix=/usr/local
173
 
# Any additions from configure.in:
174
 
ac_help="$ac_help
175
 
  --enable-static[=PKGS]  build static libraries [default=no]"
176
 
ac_help="$ac_help
177
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
178
 
ac_help="$ac_help
179
 
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
180
 
ac_help="$ac_help
181
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
182
 
 
183
 
# Find the correct PATH separator.  Usually this is `:', but
184
 
# DJGPP uses `;' like DOS.
185
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
186
 
  UNAME=${UNAME-`uname 2>/dev/null`}
187
 
  case X$UNAME in
188
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
189
 
    *)     lt_cv_sys_path_separator=':' ;;
190
 
  esac
191
 
fi
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
 
 
25
# Support unset when possible.
 
26
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
27
  as_unset=unset
 
28
else
 
29
  as_unset=false
 
30
fi
 
31
 
 
32
 
 
33
# Work around bugs in pre-3.0 UWIN ksh.
 
34
$as_unset ENV MAIL MAILPATH
 
35
PS1='$ '
 
36
PS2='> '
 
37
PS4='+ '
 
38
 
 
39
# NLS nuisances.
 
40
for as_var in \
 
41
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
42
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
43
  LC_TELEPHONE LC_TIME
 
44
do
 
45
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
46
    eval $as_var=C; export $as_var
 
47
  else
 
48
    $as_unset $as_var
 
49
  fi
 
50
done
 
51
 
 
52
# Required to use basename.
 
53
if expr a : '\(a\)' >/dev/null 2>&1; then
 
54
  as_expr=expr
 
55
else
 
56
  as_expr=false
 
57
fi
 
58
 
 
59
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
60
  as_basename=basename
 
61
else
 
62
  as_basename=false
 
63
fi
 
64
 
 
65
 
 
66
# Name of the executable.
 
67
as_me=`$as_basename "$0" ||
 
68
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
69
         X"$0" : 'X\(//\)$' \| \
 
70
         X"$0" : 'X\(/\)$' \| \
 
71
         .     : '\(.\)' 2>/dev/null ||
 
72
echo X/"$0" |
 
73
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
74
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
75
          /^X\/\(\/\).*/{ s//\1/; q; }
 
76
          s/.*/./; q'`
 
77
 
 
78
 
 
79
# PATH needs CR, and LINENO needs CR and PATH.
 
80
# Avoid depending upon Character Ranges.
 
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
84
as_cr_digits='0123456789'
 
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
86
 
 
87
# The user is always right.
 
88
if test "${PATH_SEPARATOR+set}" != set; then
 
89
  echo "#! /bin/sh" >conf$$.sh
 
90
  echo  "exit 0"   >>conf$$.sh
 
91
  chmod +x conf$$.sh
 
92
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
93
    PATH_SEPARATOR=';'
 
94
  else
 
95
    PATH_SEPARATOR=:
 
96
  fi
 
97
  rm -f conf$$.sh
 
98
fi
 
99
 
 
100
 
 
101
  as_lineno_1=$LINENO
 
102
  as_lineno_2=$LINENO
 
103
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
104
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
105
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
106
  # Find who we are.  Look in the path if we contain no path at all
 
107
  # relative or not.
 
108
  case $0 in
 
109
    *[\\/]* ) as_myself=$0 ;;
 
110
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
111
for as_dir in $PATH
 
112
do
 
113
  IFS=$as_save_IFS
 
114
  test -z "$as_dir" && as_dir=.
 
115
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
116
done
 
117
 
 
118
       ;;
 
119
  esac
 
120
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
121
  # in which case we are not to be found in the path.
 
122
  if test "x$as_myself" = x; then
 
123
    as_myself=$0
 
124
  fi
 
125
  if test ! -f "$as_myself"; then
 
126
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
127
   { (exit 1); exit 1; }; }
 
128
  fi
 
129
  case $CONFIG_SHELL in
 
130
  '')
 
131
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
133
do
 
134
  IFS=$as_save_IFS
 
135
  test -z "$as_dir" && as_dir=.
 
136
  for as_base in sh bash ksh sh5; do
 
137
         case $as_dir in
 
138
         /*)
 
139
           if ("$as_dir/$as_base" -c '
 
140
  as_lineno_1=$LINENO
 
141
  as_lineno_2=$LINENO
 
142
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
143
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
144
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
145
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
146
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
147
             CONFIG_SHELL=$as_dir/$as_base
 
148
             export CONFIG_SHELL
 
149
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
150
           fi;;
 
151
         esac
 
152
       done
 
153
done
 
154
;;
 
155
  esac
 
156
 
 
157
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
158
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
159
  # line-number line before each line; the second 'sed' does the real
 
160
  # work.  The second script uses 'N' to pair each line-number line
 
161
  # with the numbered line, and appends trailing '-' during
 
162
  # substitution so that $LINENO is not a special case at line end.
 
163
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
164
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
165
  sed '=' <$as_myself |
 
166
    sed '
 
167
      N
 
168
      s,$,-,
 
169
      : loop
 
170
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
171
      t loop
 
172
      s,-$,,
 
173
      s,^['$as_cr_digits']*\n,,
 
174
    ' >$as_me.lineno &&
 
175
  chmod +x $as_me.lineno ||
 
176
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
177
   { (exit 1); exit 1; }; }
 
178
 
 
179
  # Don't try to exec as it changes $[0], causing all sort of problems
 
180
  # (the dirname of $[0] is not the place where we might find the
 
181
  # original and so on.  Autoconf is especially sensible to this).
 
182
  . ./$as_me.lineno
 
183
  # Exit status is that of the last command.
 
184
  exit
 
185
}
 
186
 
 
187
 
 
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
189
  *c*,-n*) ECHO_N= ECHO_C='
 
190
' ECHO_T='      ' ;;
 
191
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
192
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
193
esac
 
194
 
 
195
if expr a : '\(a\)' >/dev/null 2>&1; then
 
196
  as_expr=expr
 
197
else
 
198
  as_expr=false
 
199
fi
 
200
 
 
201
rm -f conf$$ conf$$.exe conf$$.file
 
202
echo >conf$$.file
 
203
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
204
  # We could just check for DJGPP; but this test a) works b) is more generic
 
205
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
206
  if test -f conf$$.exe; then
 
207
    # Don't use ln at all; we don't have any links
 
208
    as_ln_s='cp -p'
 
209
  else
 
210
    as_ln_s='ln -s'
 
211
  fi
 
212
elif ln conf$$.file conf$$ 2>/dev/null; then
 
213
  as_ln_s=ln
 
214
else
 
215
  as_ln_s='cp -p'
 
216
fi
 
217
rm -f conf$$ conf$$.exe conf$$.file
 
218
 
 
219
if mkdir -p . 2>/dev/null; then
 
220
  as_mkdir_p=:
 
221
else
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
192
243
 
193
244
 
194
245
# Check that we are running under the correct shell.
208
259
elif test "X$1" = X--fallback-echo; then
209
260
  # Avoid inline document here, it may be left over
210
261
  :
211
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
212
263
  # Yippee, $echo works!
213
264
  :
214
265
else
220
271
  # used as fallback echo
221
272
  shift
222
273
  cat <<EOF
223
 
 
 
274
$*
224
275
EOF
225
276
  exit 0
226
277
fi
254
305
  #
255
306
  # So, first we look for a working echo in the user's PATH.
256
307
 
257
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
258
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
259
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
260
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
261
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
264
316
      break
265
317
    fi
266
318
  done
267
 
  IFS="$save_ifs"
 
319
  IFS="$lt_save_ifs"
268
320
 
269
321
  if test "X$echo" = Xecho; then
270
322
    # We didn't find a better echo, so look for alternatives.
337
389
fi
338
390
 
339
391
 
340
 
ac_help="$ac_help
341
 
  --disable-libtool-lock  avoid locking (might break parallel builds)"
342
 
ac_help="$ac_help
343
 
  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
344
 
ac_help="$ac_help
345
 
  --without-gmp           Don't use GMP for bignum/rational numbers"
346
 
ac_help="$ac_help
347
 
  --with-gmp-prefix=DIR   path to GMP"
348
 
ac_help="$ac_help
349
 
  --with-gdbm-prefix=DIR  path to GDBM"
350
 
ac_help="$ac_help
351
 
  --with-readline         support fancy command input editing
352
 
  --without-readline      Don't use readline"
353
 
ac_help="$ac_help
354
 
  --with-readline-prefix=DIR path to readline"
355
 
ac_help="$ac_help
356
 
  --with-extra-cflags=FLAGS Extra flags to pass to C compiler"
357
 
ac_help="$ac_help
358
 
  --with-aclocaldir=DIR   Directory in which to install autoconf macros"
359
 
ac_help="$ac_help
360
 
  --disable-continuations Don't include support for continuations
361
 
                           or multi-threading"
362
 
ac_help="$ac_help
363
 
  --enable-dballoc        Trace all memory allocations"
364
 
ac_help="$ac_help
365
 
  --disable-dbsyms        When writing debug output, don't translate
366
 
                           addresses to symbol names"
367
 
ac_help="$ac_help
368
 
  --enable-gprof          Build for gprof (needs --enable-static)"
369
 
ac_help="$ac_help
370
 
  --enable-full-name-terminator=C Full name in gecos field of passwd
371
 
                           file is terminated by first C character"
372
 
ac_help="$ac_help
373
 
  --with-value-type=TYPE  Implicitly signed integer type, at least as wide
374
 
                           as a pointer. [TYPE=<probed>] (see README)"
375
 
ac_help="$ac_help
376
 
  --with-value-sizeof=N   Size (in bytes) of value type. [N=<probed>]"
377
 
ac_help="$ac_help
378
 
  --with-malloc-alignment=BYTES Must be less than or equal to the alignment
379
 
                           returned by the malloc function. [BYTES=N]"
380
 
ac_help="$ac_help
381
 
  --with-stack-direction=DIR Stack growth direction. -1 for downwards,
382
 
                           +1 for upwards."
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="src/rep_subrs.h"
 
429
# Factoring default headers for most tests.
 
430
ac_includes_default="\
 
431
#include <stdio.h>
 
432
#if HAVE_SYS_TYPES_H
 
433
# include <sys/types.h>
 
434
#endif
 
435
#if HAVE_SYS_STAT_H
 
436
# include <sys/stat.h>
 
437
#endif
 
438
#if STDC_HEADERS
 
439
# include <stdlib.h>
 
440
# include <stddef.h>
 
441
#else
 
442
# if HAVE_STDLIB_H
 
443
#  include <stdlib.h>
 
444
# endif
 
445
#endif
 
446
#if HAVE_STRING_H
 
447
# if !STDC_HEADERS && HAVE_MEMORY_H
 
448
#  include <memory.h>
 
449
# endif
 
450
# include <string.h>
 
451
#endif
 
452
#if HAVE_STRINGS_H
 
453
# include <strings.h>
 
454
#endif
 
455
#if HAVE_INTTYPES_H
 
456
# include <inttypes.h>
 
457
#else
 
458
# if HAVE_STDINT_H
 
459
#  include <stdint.h>
 
460
# endif
 
461
#endif
 
462
#if HAVE_UNISTD_H
 
463
# include <unistd.h>
 
464
#endif"
 
465
 
 
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EXTRA_LIBOBJS LDFLAGS CPPFLAGS CFLAGS CC ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE EGREP 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 GMP_LIBS GDBM_LIBS READLINE_LIBS FFI_LIBS ALLOCA LIBOBJS MAKEDEP aclocaldir version libversion repdir repexecdir repcommonexecdir replispdir repdocfile emacssitelispdir HAVE_UNIX HAVE_X11 VERSION PACKAGE DATADIRNAME MKINSTALLDIRS INTLOBJS GT_YES GT_NO l USE_INCLUDED_LIBINTL LTLIBOBJS'
 
467
ac_subst_files=''
383
468
 
384
469
# Initialize some variables set by options.
 
470
ac_init_help=
 
471
ac_init_version=false
385
472
# The variables have the same names as the options, with
386
473
# dashes changed to underlines.
387
 
build=NONE
388
 
cache_file=./config.cache
 
474
cache_file=/dev/null
389
475
exec_prefix=NONE
390
 
host=NONE
391
476
no_create=
392
 
nonopt=NONE
393
477
no_recursion=
394
478
prefix=NONE
395
479
program_prefix=NONE
398
482
silent=
399
483
site=
400
484
srcdir=
401
 
target=NONE
402
485
verbose=
403
486
x_includes=NONE
404
487
x_libraries=NONE
 
488
 
 
489
# Installation directory options.
 
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
491
# and all the variables that are supposed to be based on exec_prefix
 
492
# by default will actually change.
 
493
# Use braces instead of parens because sh, perl, etc. also accept them.
405
494
bindir='${exec_prefix}/bin'
406
495
sbindir='${exec_prefix}/sbin'
407
496
libexecdir='${exec_prefix}/libexec'
415
504
infodir='${prefix}/info'
416
505
mandir='${prefix}/man'
417
506
 
418
 
# Initialize some other variables.
419
 
subdirs=
420
 
MFLAGS= MAKEFLAGS=
421
 
SHELL=${CONFIG_SHELL-/bin/sh}
422
 
# Maximum number of lines to put in a shell here document.
423
 
ac_max_here_lines=12
424
 
 
425
507
ac_prev=
426
508
for ac_option
427
509
do
428
 
 
429
510
  # If the previous option needs an argument, assign it.
430
511
  if test -n "$ac_prev"; then
431
512
    eval "$ac_prev=\$ac_option"
433
514
    continue
434
515
  fi
435
516
 
436
 
  case "$ac_option" in
437
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
438
 
  *) ac_optarg= ;;
439
 
  esac
 
517
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
440
518
 
441
519
  # Accept the important Cygnus configure options, so we can diagnose typos.
442
520
 
443
 
  case "$ac_option" in
 
521
  case $ac_option in
444
522
 
445
523
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
446
524
    ac_prev=bindir ;;
447
525
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
448
 
    bindir="$ac_optarg" ;;
 
526
    bindir=$ac_optarg ;;
449
527
 
450
528
  -build | --build | --buil | --bui | --bu)
451
 
    ac_prev=build ;;
 
529
    ac_prev=build_alias ;;
452
530
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
453
 
    build="$ac_optarg" ;;
 
531
    build_alias=$ac_optarg ;;
454
532
 
455
533
  -cache-file | --cache-file | --cache-fil | --cache-fi \
456
534
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
457
535
    ac_prev=cache_file ;;
458
536
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
459
537
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
460
 
    cache_file="$ac_optarg" ;;
 
538
    cache_file=$ac_optarg ;;
 
539
 
 
540
  --config-cache | -C)
 
541
    cache_file=config.cache ;;
461
542
 
462
543
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
463
544
    ac_prev=datadir ;;
464
545
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
465
546
  | --da=*)
466
 
    datadir="$ac_optarg" ;;
 
547
    datadir=$ac_optarg ;;
467
548
 
468
549
  -disable-* | --disable-*)
469
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
550
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
470
551
    # Reject names that are not valid shell variable names.
471
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
472
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
473
 
    fi
474
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
475
 
    eval "enable_${ac_feature}=no" ;;
 
552
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
553
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
554
   { (exit 1); exit 1; }; }
 
555
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
556
    eval "enable_$ac_feature=no" ;;
476
557
 
477
558
  -enable-* | --enable-*)
478
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
559
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
479
560
    # Reject names that are not valid shell variable names.
480
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
481
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
482
 
    fi
483
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
484
 
    case "$ac_option" in
485
 
      *=*) ;;
 
561
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
562
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
563
   { (exit 1); exit 1; }; }
 
564
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
565
    case $ac_option in
 
566
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
486
567
      *) ac_optarg=yes ;;
487
568
    esac
488
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
569
    eval "enable_$ac_feature='$ac_optarg'" ;;
489
570
 
490
571
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
491
572
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
494
575
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
495
576
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
496
577
  | --exec=* | --exe=* | --ex=*)
497
 
    exec_prefix="$ac_optarg" ;;
 
578
    exec_prefix=$ac_optarg ;;
498
579
 
499
580
  -gas | --gas | --ga | --g)
500
581
    # Obsolete; use --with-gas.
501
582
    with_gas=yes ;;
502
583
 
503
 
  -help | --help | --hel | --he)
504
 
    # Omit some internal or obsolete options to make the list less imposing.
505
 
    # This message is too long to be a string in the A/UX 3.1 sh.
506
 
    cat << EOF
507
 
Usage: configure [options] [host]
508
 
Options: [defaults in brackets after descriptions]
509
 
Configuration:
510
 
  --cache-file=FILE       cache test results in FILE
511
 
  --help                  print this message
512
 
  --no-create             do not create output files
513
 
  --quiet, --silent       do not print \`checking...' messages
514
 
  --version               print the version of autoconf that created configure
515
 
Directory and file names:
516
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
517
 
                          [$ac_default_prefix]
518
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
519
 
                          [same as prefix]
520
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
521
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
522
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
523
 
  --datadir=DIR           read-only architecture-independent data in DIR
524
 
                          [PREFIX/share]
525
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
526
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
527
 
                          [PREFIX/com]
528
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
529
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
530
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
531
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
532
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
533
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
534
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
535
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
536
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
537
 
  --program-transform-name=PROGRAM
538
 
                          run sed PROGRAM on installed program names
539
 
EOF
540
 
    cat << EOF
541
 
Host type:
542
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
543
 
  --host=HOST             configure for HOST [guessed]
544
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
545
 
Features and packages:
546
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
547
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
548
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
549
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
550
 
  --x-includes=DIR        X include files are in DIR
551
 
  --x-libraries=DIR       X library files are in DIR
552
 
EOF
553
 
    if test -n "$ac_help"; then
554
 
      echo "--enable and --with options recognized:$ac_help"
555
 
    fi
556
 
    exit 0 ;;
 
584
  -help | --help | --hel | --he | -h)
 
585
    ac_init_help=long ;;
 
586
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
587
    ac_init_help=recursive ;;
 
588
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
589
    ac_init_help=short ;;
557
590
 
558
591
  -host | --host | --hos | --ho)
559
 
    ac_prev=host ;;
 
592
    ac_prev=host_alias ;;
560
593
  -host=* | --host=* | --hos=* | --ho=*)
561
 
    host="$ac_optarg" ;;
 
594
    host_alias=$ac_optarg ;;
562
595
 
563
596
  -includedir | --includedir | --includedi | --included | --include \
564
597
  | --includ | --inclu | --incl | --inc)
565
598
    ac_prev=includedir ;;
566
599
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
567
600
  | --includ=* | --inclu=* | --incl=* | --inc=*)
568
 
    includedir="$ac_optarg" ;;
 
601
    includedir=$ac_optarg ;;
569
602
 
570
603
  -infodir | --infodir | --infodi | --infod | --info | --inf)
571
604
    ac_prev=infodir ;;
572
605
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
573
 
    infodir="$ac_optarg" ;;
 
606
    infodir=$ac_optarg ;;
574
607
 
575
608
  -libdir | --libdir | --libdi | --libd)
576
609
    ac_prev=libdir ;;
577
610
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
578
 
    libdir="$ac_optarg" ;;
 
611
    libdir=$ac_optarg ;;
579
612
 
580
613
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
581
614
  | --libexe | --libex | --libe)
582
615
    ac_prev=libexecdir ;;
583
616
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
584
617
  | --libexe=* | --libex=* | --libe=*)
585
 
    libexecdir="$ac_optarg" ;;
 
618
    libexecdir=$ac_optarg ;;
586
619
 
587
620
  -localstatedir | --localstatedir | --localstatedi | --localstated \
588
621
  | --localstate | --localstat | --localsta | --localst \
591
624
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
592
625
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
593
626
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
594
 
    localstatedir="$ac_optarg" ;;
 
627
    localstatedir=$ac_optarg ;;
595
628
 
596
629
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
597
630
    ac_prev=mandir ;;
598
631
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
599
 
    mandir="$ac_optarg" ;;
 
632
    mandir=$ac_optarg ;;
600
633
 
601
634
  -nfp | --nfp | --nf)
602
635
    # Obsolete; use --without-fp.
603
636
    with_fp=no ;;
604
637
 
605
638
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
606
 
  | --no-cr | --no-c)
 
639
  | --no-cr | --no-c | -n)
607
640
    no_create=yes ;;
608
641
 
609
642
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
617
650
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
618
651
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
619
652
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
620
 
    oldincludedir="$ac_optarg" ;;
 
653
    oldincludedir=$ac_optarg ;;
621
654
 
622
655
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
623
656
    ac_prev=prefix ;;
624
657
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
625
 
    prefix="$ac_optarg" ;;
 
658
    prefix=$ac_optarg ;;
626
659
 
627
660
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
628
661
  | --program-pre | --program-pr | --program-p)
629
662
    ac_prev=program_prefix ;;
630
663
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
631
664
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
632
 
    program_prefix="$ac_optarg" ;;
 
665
    program_prefix=$ac_optarg ;;
633
666
 
634
667
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
635
668
  | --program-suf | --program-su | --program-s)
636
669
    ac_prev=program_suffix ;;
637
670
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
638
671
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
639
 
    program_suffix="$ac_optarg" ;;
 
672
    program_suffix=$ac_optarg ;;
640
673
 
641
674
  -program-transform-name | --program-transform-name \
642
675
  | --program-transform-nam | --program-transform-na \
653
686
  | --program-transfo=* | --program-transf=* \
654
687
  | --program-trans=* | --program-tran=* \
655
688
  | --progr-tra=* | --program-tr=* | --program-t=*)
656
 
    program_transform_name="$ac_optarg" ;;
 
689
    program_transform_name=$ac_optarg ;;
657
690
 
658
691
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
659
692
  | -silent | --silent | --silen | --sile | --sil)
663
696
    ac_prev=sbindir ;;
664
697
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
665
698
  | --sbi=* | --sb=*)
666
 
    sbindir="$ac_optarg" ;;
 
699
    sbindir=$ac_optarg ;;
667
700
 
668
701
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
669
702
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
674
707
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
675
708
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
676
709
  | --sha=* | --sh=*)
677
 
    sharedstatedir="$ac_optarg" ;;
 
710
    sharedstatedir=$ac_optarg ;;
678
711
 
679
712
  -site | --site | --sit)
680
713
    ac_prev=site ;;
681
714
  -site=* | --site=* | --sit=*)
682
 
    site="$ac_optarg" ;;
 
715
    site=$ac_optarg ;;
683
716
 
684
717
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
685
718
    ac_prev=srcdir ;;
686
719
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
687
 
    srcdir="$ac_optarg" ;;
 
720
    srcdir=$ac_optarg ;;
688
721
 
689
722
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
690
723
  | --syscon | --sysco | --sysc | --sys | --sy)
691
724
    ac_prev=sysconfdir ;;
692
725
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
693
726
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
694
 
    sysconfdir="$ac_optarg" ;;
 
727
    sysconfdir=$ac_optarg ;;
695
728
 
696
729
  -target | --target | --targe | --targ | --tar | --ta | --t)
697
 
    ac_prev=target ;;
 
730
    ac_prev=target_alias ;;
698
731
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
699
 
    target="$ac_optarg" ;;
 
732
    target_alias=$ac_optarg ;;
700
733
 
701
734
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
702
735
    verbose=yes ;;
703
736
 
704
 
  -version | --version | --versio | --versi | --vers)
705
 
    echo "configure generated by autoconf version 2.13"
706
 
    exit 0 ;;
 
737
  -version | --version | --versio | --versi | --vers | -V)
 
738
    ac_init_version=: ;;
707
739
 
708
740
  -with-* | --with-*)
709
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
741
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
710
742
    # Reject names that are not valid shell variable names.
711
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
712
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
713
 
    fi
 
743
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
744
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
745
   { (exit 1); exit 1; }; }
714
746
    ac_package=`echo $ac_package| sed 's/-/_/g'`
715
 
    case "$ac_option" in
716
 
      *=*) ;;
 
747
    case $ac_option in
 
748
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
717
749
      *) ac_optarg=yes ;;
718
750
    esac
719
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
751
    eval "with_$ac_package='$ac_optarg'" ;;
720
752
 
721
753
  -without-* | --without-*)
722
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
754
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
723
755
    # Reject names that are not valid shell variable names.
724
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
725
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
726
 
    fi
727
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
728
 
    eval "with_${ac_package}=no" ;;
 
756
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
757
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
758
   { (exit 1); exit 1; }; }
 
759
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
760
    eval "with_$ac_package=no" ;;
729
761
 
730
762
  --x)
731
763
    # Obsolete; use --with-x.
736
768
    ac_prev=x_includes ;;
737
769
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
738
770
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
739
 
    x_includes="$ac_optarg" ;;
 
771
    x_includes=$ac_optarg ;;
740
772
 
741
773
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
742
774
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
743
775
    ac_prev=x_libraries ;;
744
776
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
745
777
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
746
 
    x_libraries="$ac_optarg" ;;
 
778
    x_libraries=$ac_optarg ;;
747
779
 
748
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
780
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
781
Try \`$0 --help' for more information." >&2
 
782
   { (exit 1); exit 1; }; }
749
783
    ;;
750
784
 
 
785
  *=*)
 
786
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
787
    # Reject names that are not valid shell variable names.
 
788
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
789
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
790
   { (exit 1); exit 1; }; }
 
791
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
792
    eval "$ac_envvar='$ac_optarg'"
 
793
    export $ac_envvar ;;
 
794
 
751
795
  *)
752
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
753
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
754
 
    fi
755
 
    if test "x$nonopt" != xNONE; then
756
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
757
 
    fi
758
 
    nonopt="$ac_option"
 
796
    # FIXME: should be removed in autoconf 3.0.
 
797
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
798
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
799
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
800
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
759
801
    ;;
760
802
 
761
803
  esac
762
804
done
763
805
 
764
806
if test -n "$ac_prev"; then
765
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
766
 
fi
767
 
 
768
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
769
 
 
770
 
# File descriptor usage:
771
 
# 0 standard input
772
 
# 1 file creation
773
 
# 2 errors and warnings
774
 
# 3 some systems may open it to /dev/tty
775
 
# 4 used on the Kubota Titan
776
 
# 6 checking for... messages and results
777
 
# 5 compiler messages saved in config.log
778
 
if test "$silent" = yes; then
779
 
  exec 6>/dev/null
780
 
else
781
 
  exec 6>&1
782
 
fi
783
 
exec 5>./config.log
784
 
 
785
 
echo "\
786
 
This file contains any messages produced by compilers while
787
 
running configure, to aid debugging if configure makes a mistake.
788
 
" 1>&5
789
 
 
790
 
# Strip out --no-create and --no-recursion so they do not pile up.
791
 
# Also quote any args containing shell metacharacters.
792
 
ac_configure_args=
793
 
for ac_arg
794
 
do
795
 
  case "$ac_arg" in
796
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
797
 
  | --no-cr | --no-c) ;;
798
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
799
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
800
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
801
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
802
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
803
 
  esac
804
 
done
805
 
 
806
 
# NLS nuisances.
807
 
# Only set these to C if already set.  These must not be set unconditionally
808
 
# because not all systems understand e.g. LANG=C (notably SCO).
809
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
810
 
# Non-C LC_CTYPE values break the ctype check.
811
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
812
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
813
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
814
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
815
 
 
816
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
817
 
rm -rf conftest* confdefs.h
818
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
819
 
echo > confdefs.h
820
 
 
821
 
# A filename unique to this package, relative to the directory that
822
 
# configure is in, which we can look for to find out if srcdir is correct.
823
 
ac_unique_file=src/rep_subrs.h
 
807
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
808
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
809
   { (exit 1); exit 1; }; }
 
810
fi
 
811
 
 
812
# Be sure to have absolute paths.
 
813
for ac_var in exec_prefix prefix
 
814
do
 
815
  eval ac_val=$`echo $ac_var`
 
816
  case $ac_val in
 
817
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
818
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
819
   { (exit 1); exit 1; }; };;
 
820
  esac
 
821
done
 
822
 
 
823
# Be sure to have absolute paths.
 
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
825
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
do
 
827
  eval ac_val=$`echo $ac_var`
 
828
  case $ac_val in
 
829
    [\\/$]* | ?:[\\/]* ) ;;
 
830
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
831
   { (exit 1); exit 1; }; };;
 
832
  esac
 
833
done
 
834
 
 
835
# There might be people who depend on the old broken behavior: `$host'
 
836
# used to hold the argument of --host etc.
 
837
# FIXME: To remove some day.
 
838
build=$build_alias
 
839
host=$host_alias
 
840
target=$target_alias
 
841
 
 
842
# FIXME: To remove some day.
 
843
if test "x$host_alias" != x; then
 
844
  if test "x$build_alias" = x; then
 
845
    cross_compiling=maybe
 
846
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
847
    If a cross compiler is detected then cross compile mode will be used." >&2
 
848
  elif test "x$build_alias" != "x$host_alias"; then
 
849
    cross_compiling=yes
 
850
  fi
 
851
fi
 
852
 
 
853
ac_tool_prefix=
 
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
855
 
 
856
test "$silent" = yes && exec 6>/dev/null
 
857
 
824
858
 
825
859
# Find the source files, if location was not specified.
826
860
if test -z "$srcdir"; then
827
861
  ac_srcdir_defaulted=yes
828
862
  # Try the directory containing this script, then its parent.
829
 
  ac_prog=$0
830
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
831
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
865
         X"$0" : 'X\(//\)[^/]' \| \
 
866
         X"$0" : 'X\(//\)$' \| \
 
867
         X"$0" : 'X\(/\)' \| \
 
868
         .     : '\(.\)' 2>/dev/null ||
 
869
echo X"$0" |
 
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
871
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
872
          /^X\(\/\/\)$/{ s//\1/; q; }
 
873
          /^X\(\/\).*/{ s//\1/; q; }
 
874
          s/.*/./; q'`
832
875
  srcdir=$ac_confdir
833
876
  if test ! -r $srcdir/$ac_unique_file; then
834
877
    srcdir=..
838
881
fi
839
882
if test ! -r $srcdir/$ac_unique_file; then
840
883
  if test "$ac_srcdir_defaulted" = yes; then
841
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
885
   { (exit 1); exit 1; }; }
842
886
  else
843
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
888
   { (exit 1); exit 1; }; }
844
889
  fi
845
890
fi
846
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
847
 
 
 
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
892
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
893
   { (exit 1); exit 1; }; }
 
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
895
ac_env_build_alias_set=${build_alias+set}
 
896
ac_env_build_alias_value=$build_alias
 
897
ac_cv_env_build_alias_set=${build_alias+set}
 
898
ac_cv_env_build_alias_value=$build_alias
 
899
ac_env_host_alias_set=${host_alias+set}
 
900
ac_env_host_alias_value=$host_alias
 
901
ac_cv_env_host_alias_set=${host_alias+set}
 
902
ac_cv_env_host_alias_value=$host_alias
 
903
ac_env_target_alias_set=${target_alias+set}
 
904
ac_env_target_alias_value=$target_alias
 
905
ac_cv_env_target_alias_set=${target_alias+set}
 
906
ac_cv_env_target_alias_value=$target_alias
 
907
ac_env_CC_set=${CC+set}
 
908
ac_env_CC_value=$CC
 
909
ac_cv_env_CC_set=${CC+set}
 
910
ac_cv_env_CC_value=$CC
 
911
ac_env_CFLAGS_set=${CFLAGS+set}
 
912
ac_env_CFLAGS_value=$CFLAGS
 
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_cv_env_CFLAGS_value=$CFLAGS
 
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
916
ac_env_LDFLAGS_value=$LDFLAGS
 
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
920
ac_env_CPPFLAGS_value=$CPPFLAGS
 
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_env_CPP_set=${CPP+set}
 
924
ac_env_CPP_value=$CPP
 
925
ac_cv_env_CPP_set=${CPP+set}
 
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
 
947
 
 
948
#
 
949
# Report the --help message.
 
950
#
 
951
if test "$ac_init_help" = "long"; then
 
952
  # Omit some internal or obsolete options to make the list less imposing.
 
953
  # This message is too long to be a string in the A/UX 3.1 sh.
 
954
  cat <<_ACEOF
 
955
\`configure' configures this package to adapt to many kinds of systems.
 
956
 
 
957
Usage: $0 [OPTION]... [VAR=VALUE]...
 
958
 
 
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
960
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
961
 
 
962
Defaults for the options are specified in brackets.
 
963
 
 
964
Configuration:
 
965
  -h, --help              display this help and exit
 
966
      --help=short        display options specific to this package
 
967
      --help=recursive    display the short help of all the included packages
 
968
  -V, --version           display version information and exit
 
969
  -q, --quiet, --silent   do not print \`checking...' messages
 
970
      --cache-file=FILE   cache test results in FILE [disabled]
 
971
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
972
  -n, --no-create         do not create output files
 
973
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
974
 
 
975
_ACEOF
 
976
 
 
977
  cat <<_ACEOF
 
978
Installation directories:
 
979
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
980
                          [$ac_default_prefix]
 
981
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
982
                          [PREFIX]
 
983
 
 
984
By default, \`make install' will install all the files in
 
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
987
for instance \`--prefix=\$HOME'.
 
988
 
 
989
For better control, use the options below.
 
990
 
 
991
Fine tuning of the installation directories:
 
992
  --bindir=DIR           user executables [EPREFIX/bin]
 
993
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
994
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
995
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
996
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
997
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
998
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
999
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1000
  --includedir=DIR       C header files [PREFIX/include]
 
1001
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1002
  --infodir=DIR          info documentation [PREFIX/info]
 
1003
  --mandir=DIR           man documentation [PREFIX/man]
 
1004
_ACEOF
 
1005
 
 
1006
  cat <<\_ACEOF
 
1007
 
 
1008
System types:
 
1009
  --build=BUILD     configure for building on BUILD [guessed]
 
1010
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1011
_ACEOF
 
1012
fi
 
1013
 
 
1014
if test -n "$ac_init_help"; then
 
1015
 
 
1016
  cat <<\_ACEOF
 
1017
 
 
1018
Optional Features:
 
1019
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1020
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1021
  --enable-static[=PKGS]
 
1022
                          build static libraries [default=no]
 
1023
  --enable-shared[=PKGS]
 
1024
                          build shared libraries [default=yes]
 
1025
  --enable-fast-install[=PKGS]
 
1026
                          optimize for fast installation [default=yes]
 
1027
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1028
  --disable-continuations Don't include support for continuations
 
1029
                           or multi-threading
 
1030
  --enable-dballoc        Trace all memory allocations
 
1031
  --disable-dbsyms        When writing debug output, don't translate
 
1032
                           addresses to symbol names
 
1033
  --enable-gprof          Build for gprof (needs --enable-static)
 
1034
  --enable-full-name-terminator=C Full name in gecos field of passwd
 
1035
                           file is terminated by first C character
 
1036
 
 
1037
Optional Packages:
 
1038
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1039
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1040
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1041
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1042
                          both]
 
1043
  --with-tags[=TAGS]
 
1044
                          include additional configurations [automatic]
 
1045
  --without-gmp           Don't use GMP for bignum/rational numbers
 
1046
  --with-gmp-prefix=DIR   path to GMP
 
1047
  --with-gdbm-prefix=DIR  path to GDBM
 
1048
  --with-readline         support fancy command input editing
 
1049
  --without-readline      Don't use readline
 
1050
  --with-readline-prefix=DIR path to readline
 
1051
  --with-ffi              Support for ffi
 
1052
  --without-ffi           Don't use ffi
 
1053
  --with-ffi-prefix=DIR   path to ffi
 
1054
  --with-extra-cflags=FLAGS Extra flags to pass to C compiler
 
1055
  --with-aclocaldir=DIR   Directory in which to install autoconf macros
 
1056
  --with-value-type=TYPE  Implicitly signed integer type, at least as wide
 
1057
                           as a pointer. TYPE=<probed> (see README)
 
1058
  --with-value-sizeof=N   Size (in bytes) of value type. N=<probed>
 
1059
  --with-malloc-alignment=BYTES Must be less than or equal to the alignment
 
1060
                           returned by the malloc function. BYTES=N
 
1061
  --with-stack-direction=DIR Stack growth direction. -1 for downwards,
 
1062
                           +1 for upwards.
 
1063
 
 
1064
Some influential environment variables:
 
1065
  CC          C compiler command
 
1066
  CFLAGS      C compiler flags
 
1067
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1068
              nonstandard directory <lib dir>
 
1069
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1070
              headers in a nonstandard directory <include dir>
 
1071
  CPP         C preprocessor
 
1072
  CXX         C++ compiler command
 
1073
  CXXFLAGS    C++ compiler flags
 
1074
  CXXCPP      C++ preprocessor
 
1075
  F77         Fortran 77 compiler command
 
1076
  FFLAGS      Fortran 77 compiler flags
 
1077
 
 
1078
Use these variables to override the choices made by `configure' or to help
 
1079
it to find libraries and programs with nonstandard names/locations.
 
1080
 
 
1081
_ACEOF
 
1082
fi
 
1083
 
 
1084
if test "$ac_init_help" = "recursive"; then
 
1085
  # If there are subdirs, report their specific --help.
 
1086
  ac_popdir=`pwd`
 
1087
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1088
    test -d $ac_dir || continue
 
1089
    ac_builddir=.
 
1090
 
 
1091
if test "$ac_dir" != .; then
 
1092
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1093
  # A "../" for each directory in $ac_dir_suffix.
 
1094
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1095
else
 
1096
  ac_dir_suffix= ac_top_builddir=
 
1097
fi
 
1098
 
 
1099
case $srcdir in
 
1100
  .)  # No --srcdir option.  We are building in place.
 
1101
    ac_srcdir=.
 
1102
    if test -z "$ac_top_builddir"; then
 
1103
       ac_top_srcdir=.
 
1104
    else
 
1105
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1106
    fi ;;
 
1107
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1108
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1109
    ac_top_srcdir=$srcdir ;;
 
1110
  *) # Relative path.
 
1111
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1112
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1113
esac
 
1114
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
1115
# absolute.
 
1116
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
1117
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
1118
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
1119
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1120
 
 
1121
    cd $ac_dir
 
1122
    # Check for guested configure; otherwise get Cygnus style configure.
 
1123
    if test -f $ac_srcdir/configure.gnu; then
 
1124
      echo
 
1125
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1126
    elif test -f $ac_srcdir/configure; then
 
1127
      echo
 
1128
      $SHELL $ac_srcdir/configure  --help=recursive
 
1129
    elif test -f $ac_srcdir/configure.ac ||
 
1130
           test -f $ac_srcdir/configure.in; then
 
1131
      echo
 
1132
      $ac_configure --help
 
1133
    else
 
1134
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1135
    fi
 
1136
    cd "$ac_popdir"
 
1137
  done
 
1138
fi
 
1139
 
 
1140
test -n "$ac_init_help" && exit 0
 
1141
if $ac_init_version; then
 
1142
  cat <<\_ACEOF
 
1143
 
 
1144
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
1145
Free Software Foundation, Inc.
 
1146
This configure script is free software; the Free Software Foundation
 
1147
gives unlimited permission to copy, distribute and modify it.
 
1148
_ACEOF
 
1149
  exit 0
 
1150
fi
 
1151
exec 5>config.log
 
1152
cat >&5 <<_ACEOF
 
1153
This file contains any messages produced by compilers while
 
1154
running configure, to aid debugging if configure makes a mistake.
 
1155
 
 
1156
It was created by $as_me, which was
 
1157
generated by GNU Autoconf 2.57.  Invocation command line was
 
1158
 
 
1159
  $ $0 $@
 
1160
 
 
1161
_ACEOF
 
1162
{
 
1163
cat <<_ASUNAME
 
1164
## --------- ##
 
1165
## Platform. ##
 
1166
## --------- ##
 
1167
 
 
1168
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1169
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1170
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1171
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1172
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1173
 
 
1174
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1175
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1176
 
 
1177
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1178
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1179
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1180
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1181
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1182
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1183
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1184
 
 
1185
_ASUNAME
 
1186
 
 
1187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1188
for as_dir in $PATH
 
1189
do
 
1190
  IFS=$as_save_IFS
 
1191
  test -z "$as_dir" && as_dir=.
 
1192
  echo "PATH: $as_dir"
 
1193
done
 
1194
 
 
1195
} >&5
 
1196
 
 
1197
cat >&5 <<_ACEOF
 
1198
 
 
1199
 
 
1200
## ----------- ##
 
1201
## Core tests. ##
 
1202
## ----------- ##
 
1203
 
 
1204
_ACEOF
 
1205
 
 
1206
 
 
1207
# Keep a trace of the command line.
 
1208
# Strip out --no-create and --no-recursion so they do not pile up.
 
1209
# Strip out --silent because we don't want to record it for future runs.
 
1210
# Also quote any args containing shell meta-characters.
 
1211
# Make two passes to allow for proper duplicate-argument suppression.
 
1212
ac_configure_args=
 
1213
ac_configure_args0=
 
1214
ac_configure_args1=
 
1215
ac_sep=
 
1216
ac_must_keep_next=false
 
1217
for ac_pass in 1 2
 
1218
do
 
1219
  for ac_arg
 
1220
  do
 
1221
    case $ac_arg in
 
1222
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1223
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1224
    | -silent | --silent | --silen | --sile | --sil)
 
1225
      continue ;;
 
1226
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1227
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1228
    esac
 
1229
    case $ac_pass in
 
1230
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1231
    2)
 
1232
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1233
      if test $ac_must_keep_next = true; then
 
1234
        ac_must_keep_next=false # Got value, back to normal.
 
1235
      else
 
1236
        case $ac_arg in
 
1237
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1238
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1239
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1240
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1241
            case "$ac_configure_args0 " in
 
1242
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1243
            esac
 
1244
            ;;
 
1245
          -* ) ac_must_keep_next=true ;;
 
1246
        esac
 
1247
      fi
 
1248
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1249
      # Get rid of the leading space.
 
1250
      ac_sep=" "
 
1251
      ;;
 
1252
    esac
 
1253
  done
 
1254
done
 
1255
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1256
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1257
 
 
1258
# When interrupted or exit'd, cleanup temporary files, and complete
 
1259
# config.log.  We remove comments because anyway the quotes in there
 
1260
# would cause problems or look ugly.
 
1261
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1262
# such as our DU 5.0 friend, will then `close' the trap.
 
1263
trap 'exit_status=$?
 
1264
  # Save into config.log some information that might help in debugging.
 
1265
  {
 
1266
    echo
 
1267
 
 
1268
    cat <<\_ASBOX
 
1269
## ---------------- ##
 
1270
## Cache variables. ##
 
1271
## ---------------- ##
 
1272
_ASBOX
 
1273
    echo
 
1274
    # The following way of writing the cache mishandles newlines in values,
 
1275
{
 
1276
  (set) 2>&1 |
 
1277
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1278
    *ac_space=\ *)
 
1279
      sed -n \
 
1280
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1281
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1282
      ;;
 
1283
    *)
 
1284
      sed -n \
 
1285
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1286
      ;;
 
1287
    esac;
 
1288
}
 
1289
    echo
 
1290
 
 
1291
    cat <<\_ASBOX
 
1292
## ----------------- ##
 
1293
## Output variables. ##
 
1294
## ----------------- ##
 
1295
_ASBOX
 
1296
    echo
 
1297
    for ac_var in $ac_subst_vars
 
1298
    do
 
1299
      eval ac_val=$`echo $ac_var`
 
1300
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1301
    done | sort
 
1302
    echo
 
1303
 
 
1304
    if test -n "$ac_subst_files"; then
 
1305
      cat <<\_ASBOX
 
1306
## ------------- ##
 
1307
## Output files. ##
 
1308
## ------------- ##
 
1309
_ASBOX
 
1310
      echo
 
1311
      for ac_var in $ac_subst_files
 
1312
      do
 
1313
        eval ac_val=$`echo $ac_var`
 
1314
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1315
      done | sort
 
1316
      echo
 
1317
    fi
 
1318
 
 
1319
    if test -s confdefs.h; then
 
1320
      cat <<\_ASBOX
 
1321
## ----------- ##
 
1322
## confdefs.h. ##
 
1323
## ----------- ##
 
1324
_ASBOX
 
1325
      echo
 
1326
      sed "/^$/d" confdefs.h | sort
 
1327
      echo
 
1328
    fi
 
1329
    test "$ac_signal" != 0 &&
 
1330
      echo "$as_me: caught signal $ac_signal"
 
1331
    echo "$as_me: exit $exit_status"
 
1332
  } >&5
 
1333
  rm -f core *.core &&
 
1334
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1335
    exit $exit_status
 
1336
     ' 0
 
1337
for ac_signal in 1 2 13 15; do
 
1338
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1339
done
 
1340
ac_signal=0
 
1341
 
 
1342
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1343
rm -rf conftest* confdefs.h
 
1344
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1345
echo >confdefs.h
 
1346
 
 
1347
# Predefined preprocessor variables.
 
1348
 
 
1349
cat >>confdefs.h <<_ACEOF
 
1350
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1351
_ACEOF
 
1352
 
 
1353
 
 
1354
cat >>confdefs.h <<_ACEOF
 
1355
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1356
_ACEOF
 
1357
 
 
1358
 
 
1359
cat >>confdefs.h <<_ACEOF
 
1360
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1361
_ACEOF
 
1362
 
 
1363
 
 
1364
cat >>confdefs.h <<_ACEOF
 
1365
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1366
_ACEOF
 
1367
 
 
1368
 
 
1369
cat >>confdefs.h <<_ACEOF
 
1370
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1371
_ACEOF
 
1372
 
 
1373
 
 
1374
# Let the site file select an alternate cache file if it wants to.
848
1375
# Prefer explicitly selected file to automatically selected ones.
849
1376
if test -z "$CONFIG_SITE"; then
850
1377
  if test "x$prefix" != xNONE; then
855
1382
fi
856
1383
for ac_site_file in $CONFIG_SITE; do
857
1384
  if test -r "$ac_site_file"; then
858
 
    echo "loading site script $ac_site_file"
 
1385
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1386
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1387
    sed 's/^/| /' "$ac_site_file" >&5
859
1388
    . "$ac_site_file"
860
1389
  fi
861
1390
done
862
1391
 
863
1392
if test -r "$cache_file"; then
864
 
  echo "loading cache $cache_file"
865
 
  . $cache_file
 
1393
  # Some versions of bash will fail to source /dev/null (special
 
1394
  # files actually), so we avoid doing that.
 
1395
  if test -f "$cache_file"; then
 
1396
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1397
echo "$as_me: loading cache $cache_file" >&6;}
 
1398
    case $cache_file in
 
1399
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1400
      *)                      . ./$cache_file;;
 
1401
    esac
 
1402
  fi
866
1403
else
867
 
  echo "creating cache $cache_file"
868
 
  > $cache_file
 
1404
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1405
echo "$as_me: creating cache $cache_file" >&6;}
 
1406
  >$cache_file
 
1407
fi
 
1408
 
 
1409
# Check that the precious variables saved in the cache have kept the same
 
1410
# value.
 
1411
ac_cache_corrupted=false
 
1412
for ac_var in `(set) 2>&1 |
 
1413
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1414
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1415
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1416
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1417
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1418
  case $ac_old_set,$ac_new_set in
 
1419
    set,)
 
1420
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1421
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1422
      ac_cache_corrupted=: ;;
 
1423
    ,set)
 
1424
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1425
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1426
      ac_cache_corrupted=: ;;
 
1427
    ,);;
 
1428
    *)
 
1429
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1430
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1431
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1432
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1433
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1434
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1435
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1436
        ac_cache_corrupted=:
 
1437
      fi;;
 
1438
  esac
 
1439
  # Pass precious variables to config.status.
 
1440
  if test "$ac_new_set" = set; then
 
1441
    case $ac_new_val in
 
1442
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1443
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1444
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1445
    esac
 
1446
    case " $ac_configure_args " in
 
1447
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1448
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1449
    esac
 
1450
  fi
 
1451
done
 
1452
if $ac_cache_corrupted; then
 
1453
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1454
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1455
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1456
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1457
   { (exit 1); exit 1; }; }
869
1458
fi
870
1459
 
871
1460
ac_ext=c
872
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
873
1461
ac_cpp='$CPP $CPPFLAGS'
874
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
875
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
876
 
cross_compiling=$ac_cv_prog_cc_cross
877
 
 
878
 
ac_exeext=
879
 
ac_objext=o
880
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
881
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
882
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
883
 
    ac_n= ac_c='
884
 
' ac_t='        '
885
 
  else
886
 
    ac_n=-n ac_c= ac_t=
887
 
  fi
888
 
else
889
 
  ac_n= ac_c='\c' ac_t=
890
 
fi
891
 
 
892
 
 
893
 
 
894
 
 
895
 
version="0.15.2"
896
 
 
897
 
libcurrent=11
898
 
librevision=2
899
 
libage=2
 
1462
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1463
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1464
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1465
 
 
1466
 
 
1467
 
 
1468
 
 
1469
 
 
1470
 
 
1471
 
 
1472
 
 
1473
 
 
1474
 
 
1475
 
 
1476
 
 
1477
 
 
1478
 
 
1479
 
 
1480
 
 
1481
 
 
1482
 
 
1483
 
 
1484
                    ac_config_headers="$ac_config_headers config.h src/rep_config.h"
 
1485
 
 
1486
 
 
1487
version="0.17"
 
1488
 
 
1489
libcurrent=13
 
1490
librevision=0
 
1491
libage=4
900
1492
libversion="$libcurrent:$librevision:$libage"
901
1493
 
902
1494
makefile_template="Makefile.in:Makedefs.in"
916
1508
    ac_aux_dir=$ac_dir
917
1509
    ac_install_sh="$ac_aux_dir/install.sh -c"
918
1510
    break
 
1511
  elif test -f $ac_dir/shtool; then
 
1512
    ac_aux_dir=$ac_dir
 
1513
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1514
    break
919
1515
  fi
920
1516
done
921
1517
if test -z "$ac_aux_dir"; then
922
 
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
1518
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1519
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1520
   { (exit 1); exit 1; }; }
923
1521
fi
924
 
ac_config_guess=$ac_aux_dir/config.guess
925
 
ac_config_sub=$ac_aux_dir/config.sub
926
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
927
 
 
 
1522
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1523
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1524
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
928
1525
 
929
1526
# Make sure we can run config.sub.
930
 
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
931
 
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
932
 
fi
933
 
 
934
 
echo $ac_n "checking host system type""... $ac_c" 1>&6
935
 
echo "configure:936: checking host system type" >&5
936
 
 
937
 
host_alias=$host
938
 
case "$host_alias" in
939
 
NONE)
940
 
  case $nonopt in
941
 
  NONE)
942
 
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
943
 
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
944
 
    fi ;;
945
 
  *) host_alias=$nonopt ;;
946
 
  esac ;;
947
 
esac
948
 
 
949
 
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
950
 
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
951
 
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
952
 
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
953
 
echo "$ac_t""$host" 1>&6
 
1527
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1528
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1529
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1530
   { (exit 1); exit 1; }; }
 
1531
 
 
1532
echo "$as_me:$LINENO: checking build system type" >&5
 
1533
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1534
if test "${ac_cv_build+set}" = set; then
 
1535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1536
else
 
1537
  ac_cv_build_alias=$build_alias
 
1538
test -z "$ac_cv_build_alias" &&
 
1539
  ac_cv_build_alias=`$ac_config_guess`
 
1540
test -z "$ac_cv_build_alias" &&
 
1541
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1542
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1543
   { (exit 1); exit 1; }; }
 
1544
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1545
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1546
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1547
   { (exit 1); exit 1; }; }
 
1548
 
 
1549
fi
 
1550
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1551
echo "${ECHO_T}$ac_cv_build" >&6
 
1552
build=$ac_cv_build
 
1553
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1554
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1555
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1556
 
 
1557
 
 
1558
echo "$as_me:$LINENO: checking host system type" >&5
 
1559
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1560
if test "${ac_cv_host+set}" = set; then
 
1561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1562
else
 
1563
  ac_cv_host_alias=$host_alias
 
1564
test -z "$ac_cv_host_alias" &&
 
1565
  ac_cv_host_alias=$ac_cv_build_alias
 
1566
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1567
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1568
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1569
   { (exit 1); exit 1; }; }
 
1570
 
 
1571
fi
 
1572
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1573
echo "${ECHO_T}$ac_cv_host" >&6
 
1574
host=$ac_cv_host
 
1575
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1576
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1577
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1578
 
954
1579
 
955
1580
 
956
1581
case "${prefix}" in
963
1588
replispdir='${repdir}/${version}/lisp'
964
1589
repexecdir='${libexecdir}/rep/${version}/${host_type}'
965
1590
repcommonexecdir='${libexecdir}/rep/${host_type}'
966
 
repdocfile='${repexecdir}/DOC'
 
1591
repdocfile='${repexecdir}/doc-strings'
967
1592
 
968
1593
emacssitelispdir='${datadir}/emacs/site-lisp'
969
1594
 
 
1595
case "$prefix" in
 
1596
  /|/usr|/usr/local|NONE)
 
1597
    ;;
 
1598
  *)
 
1599
    LDFLAGS="${LDFLAGS} -L$prefix/lib"
 
1600
    CPPFLAGS="${CPPFLAGS} -I$prefix/include"
 
1601
    ;;
 
1602
esac
 
1603
 
970
1604
EXTRA_LIBOBJS=""
971
1605
 
972
1606
 
973
 
# Extract the first word of "gcc", so it can be a program name with args.
 
1607
 
 
1608
 
 
1609
 
 
1610
 
 
1611
ac_ext=c
 
1612
ac_cpp='$CPP $CPPFLAGS'
 
1613
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1614
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1615
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1616
if test -n "$ac_tool_prefix"; then
 
1617
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1618
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1619
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1621
if test "${ac_cv_prog_CC+set}" = set; then
 
1622
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1623
else
 
1624
  if test -n "$CC"; then
 
1625
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1626
else
 
1627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1628
for as_dir in $PATH
 
1629
do
 
1630
  IFS=$as_save_IFS
 
1631
  test -z "$as_dir" && as_dir=.
 
1632
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1633
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1634
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1635
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1636
    break 2
 
1637
  fi
 
1638
done
 
1639
done
 
1640
 
 
1641
fi
 
1642
fi
 
1643
CC=$ac_cv_prog_CC
 
1644
if test -n "$CC"; then
 
1645
  echo "$as_me:$LINENO: result: $CC" >&5
 
1646
echo "${ECHO_T}$CC" >&6
 
1647
else
 
1648
  echo "$as_me:$LINENO: result: no" >&5
 
1649
echo "${ECHO_T}no" >&6
 
1650
fi
 
1651
 
 
1652
fi
 
1653
if test -z "$ac_cv_prog_CC"; then
 
1654
  ac_ct_CC=$CC
 
1655
  # Extract the first word of "gcc", so it can be a program name with args.
974
1656
set dummy gcc; ac_word=$2
975
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
976
 
echo "configure:977: checking for $ac_word" >&5
977
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
978
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1657
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1658
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1659
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1661
else
 
1662
  if test -n "$ac_ct_CC"; then
 
1663
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1664
else
 
1665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1666
for as_dir in $PATH
 
1667
do
 
1668
  IFS=$as_save_IFS
 
1669
  test -z "$as_dir" && as_dir=.
 
1670
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1671
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1672
    ac_cv_prog_ac_ct_CC="gcc"
 
1673
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1674
    break 2
 
1675
  fi
 
1676
done
 
1677
done
 
1678
 
 
1679
fi
 
1680
fi
 
1681
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1682
if test -n "$ac_ct_CC"; then
 
1683
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1684
echo "${ECHO_T}$ac_ct_CC" >&6
 
1685
else
 
1686
  echo "$as_me:$LINENO: result: no" >&5
 
1687
echo "${ECHO_T}no" >&6
 
1688
fi
 
1689
 
 
1690
  CC=$ac_ct_CC
 
1691
else
 
1692
  CC="$ac_cv_prog_CC"
 
1693
fi
 
1694
 
 
1695
if test -z "$CC"; then
 
1696
  if test -n "$ac_tool_prefix"; then
 
1697
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1698
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1699
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1700
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1701
if test "${ac_cv_prog_CC+set}" = set; then
 
1702
  echo $ECHO_N "(cached) $ECHO_C" >&6
979
1703
else
980
1704
  if test -n "$CC"; then
981
1705
  ac_cv_prog_CC="$CC" # Let the user override the test.
982
1706
else
983
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
984
 
  ac_dummy="$PATH"
985
 
  for ac_dir in $ac_dummy; do
986
 
    test -z "$ac_dir" && ac_dir=.
987
 
    if test -f $ac_dir/$ac_word; then
988
 
      ac_cv_prog_CC="gcc"
989
 
      break
990
 
    fi
991
 
  done
992
 
  IFS="$ac_save_ifs"
993
 
fi
994
 
fi
995
 
CC="$ac_cv_prog_CC"
 
1707
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1708
for as_dir in $PATH
 
1709
do
 
1710
  IFS=$as_save_IFS
 
1711
  test -z "$as_dir" && as_dir=.
 
1712
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1713
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1714
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1715
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1716
    break 2
 
1717
  fi
 
1718
done
 
1719
done
 
1720
 
 
1721
fi
 
1722
fi
 
1723
CC=$ac_cv_prog_CC
996
1724
if test -n "$CC"; then
997
 
  echo "$ac_t""$CC" 1>&6
998
 
else
999
 
  echo "$ac_t""no" 1>&6
1000
 
fi
1001
 
 
 
1725
  echo "$as_me:$LINENO: result: $CC" >&5
 
1726
echo "${ECHO_T}$CC" >&6
 
1727
else
 
1728
  echo "$as_me:$LINENO: result: no" >&5
 
1729
echo "${ECHO_T}no" >&6
 
1730
fi
 
1731
 
 
1732
fi
 
1733
if test -z "$ac_cv_prog_CC"; then
 
1734
  ac_ct_CC=$CC
 
1735
  # Extract the first word of "cc", so it can be a program name with args.
 
1736
set dummy cc; ac_word=$2
 
1737
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1738
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1739
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1740
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1741
else
 
1742
  if test -n "$ac_ct_CC"; then
 
1743
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1744
else
 
1745
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1746
for as_dir in $PATH
 
1747
do
 
1748
  IFS=$as_save_IFS
 
1749
  test -z "$as_dir" && as_dir=.
 
1750
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1751
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1752
    ac_cv_prog_ac_ct_CC="cc"
 
1753
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1754
    break 2
 
1755
  fi
 
1756
done
 
1757
done
 
1758
 
 
1759
fi
 
1760
fi
 
1761
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1762
if test -n "$ac_ct_CC"; then
 
1763
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1764
echo "${ECHO_T}$ac_ct_CC" >&6
 
1765
else
 
1766
  echo "$as_me:$LINENO: result: no" >&5
 
1767
echo "${ECHO_T}no" >&6
 
1768
fi
 
1769
 
 
1770
  CC=$ac_ct_CC
 
1771
else
 
1772
  CC="$ac_cv_prog_CC"
 
1773
fi
 
1774
 
 
1775
fi
1002
1776
if test -z "$CC"; then
1003
1777
  # Extract the first word of "cc", so it can be a program name with args.
1004
1778
set dummy cc; ac_word=$2
1005
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006
 
echo "configure:1007: checking for $ac_word" >&5
1007
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1008
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1779
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1780
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1781
if test "${ac_cv_prog_CC+set}" = set; then
 
1782
  echo $ECHO_N "(cached) $ECHO_C" >&6
1009
1783
else
1010
1784
  if test -n "$CC"; then
1011
1785
  ac_cv_prog_CC="$CC" # Let the user override the test.
1012
1786
else
1013
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1014
1787
  ac_prog_rejected=no
1015
 
  ac_dummy="$PATH"
1016
 
  for ac_dir in $ac_dummy; do
1017
 
    test -z "$ac_dir" && ac_dir=.
1018
 
    if test -f $ac_dir/$ac_word; then
1019
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1020
 
        ac_prog_rejected=yes
1021
 
        continue
1022
 
      fi
1023
 
      ac_cv_prog_CC="cc"
1024
 
      break
1025
 
    fi
1026
 
  done
1027
 
  IFS="$ac_save_ifs"
 
1788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1789
for as_dir in $PATH
 
1790
do
 
1791
  IFS=$as_save_IFS
 
1792
  test -z "$as_dir" && as_dir=.
 
1793
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1794
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1795
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1796
       ac_prog_rejected=yes
 
1797
       continue
 
1798
     fi
 
1799
    ac_cv_prog_CC="cc"
 
1800
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1801
    break 2
 
1802
  fi
 
1803
done
 
1804
done
 
1805
 
1028
1806
if test $ac_prog_rejected = yes; then
1029
1807
  # We found a bogon in the path, so make sure we never use it.
1030
1808
  set dummy $ac_cv_prog_CC
1031
1809
  shift
1032
 
  if test $# -gt 0; then
 
1810
  if test $# != 0; then
1033
1811
    # We chose a different compiler from the bogus one.
1034
1812
    # However, it has the same basename, so the bogon will be chosen
1035
1813
    # first if we set CC to just the basename; use the full file name.
1036
1814
    shift
1037
 
    set dummy "$ac_dir/$ac_word" "$@"
1038
 
    shift
1039
 
    ac_cv_prog_CC="$@"
 
1815
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1040
1816
  fi
1041
1817
fi
1042
1818
fi
1043
1819
fi
1044
 
CC="$ac_cv_prog_CC"
 
1820
CC=$ac_cv_prog_CC
1045
1821
if test -n "$CC"; then
1046
 
  echo "$ac_t""$CC" 1>&6
 
1822
  echo "$as_me:$LINENO: result: $CC" >&5
 
1823
echo "${ECHO_T}$CC" >&6
1047
1824
else
1048
 
  echo "$ac_t""no" 1>&6
 
1825
  echo "$as_me:$LINENO: result: no" >&5
 
1826
echo "${ECHO_T}no" >&6
1049
1827
fi
1050
1828
 
1051
 
  if test -z "$CC"; then
1052
 
    case "`uname -s`" in
1053
 
    *win32* | *WIN32*)
1054
 
      # Extract the first word of "cl", so it can be a program name with args.
1055
 
set dummy cl; ac_word=$2
1056
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057
 
echo "configure:1058: checking for $ac_word" >&5
1058
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1059
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1829
fi
 
1830
if test -z "$CC"; then
 
1831
  if test -n "$ac_tool_prefix"; then
 
1832
  for ac_prog in cl
 
1833
  do
 
1834
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1835
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1836
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1837
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1838
if test "${ac_cv_prog_CC+set}" = set; then
 
1839
  echo $ECHO_N "(cached) $ECHO_C" >&6
1060
1840
else
1061
1841
  if test -n "$CC"; then
1062
1842
  ac_cv_prog_CC="$CC" # Let the user override the test.
1063
1843
else
1064
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1065
 
  ac_dummy="$PATH"
1066
 
  for ac_dir in $ac_dummy; do
1067
 
    test -z "$ac_dir" && ac_dir=.
1068
 
    if test -f $ac_dir/$ac_word; then
1069
 
      ac_cv_prog_CC="cl"
1070
 
      break
1071
 
    fi
 
1844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1845
for as_dir in $PATH
 
1846
do
 
1847
  IFS=$as_save_IFS
 
1848
  test -z "$as_dir" && as_dir=.
 
1849
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1850
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1851
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1852
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1853
    break 2
 
1854
  fi
 
1855
done
 
1856
done
 
1857
 
 
1858
fi
 
1859
fi
 
1860
CC=$ac_cv_prog_CC
 
1861
if test -n "$CC"; then
 
1862
  echo "$as_me:$LINENO: result: $CC" >&5
 
1863
echo "${ECHO_T}$CC" >&6
 
1864
else
 
1865
  echo "$as_me:$LINENO: result: no" >&5
 
1866
echo "${ECHO_T}no" >&6
 
1867
fi
 
1868
 
 
1869
    test -n "$CC" && break
1072
1870
  done
1073
 
  IFS="$ac_save_ifs"
1074
 
fi
1075
 
fi
1076
 
CC="$ac_cv_prog_CC"
1077
 
if test -n "$CC"; then
1078
 
  echo "$ac_t""$CC" 1>&6
1079
 
else
1080
 
  echo "$ac_t""no" 1>&6
1081
 
fi
1082
 
 ;;
1083
 
    esac
 
1871
fi
 
1872
if test -z "$CC"; then
 
1873
  ac_ct_CC=$CC
 
1874
  for ac_prog in cl
 
1875
do
 
1876
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1877
set dummy $ac_prog; ac_word=$2
 
1878
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1879
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1880
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1882
else
 
1883
  if test -n "$ac_ct_CC"; then
 
1884
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1885
else
 
1886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1887
for as_dir in $PATH
 
1888
do
 
1889
  IFS=$as_save_IFS
 
1890
  test -z "$as_dir" && as_dir=.
 
1891
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1892
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1893
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1894
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1895
    break 2
1084
1896
  fi
1085
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1086
 
fi
1087
 
 
1088
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1089
 
echo "configure:1090: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1090
 
 
1091
 
ac_ext=c
1092
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1093
 
ac_cpp='$CPP $CPPFLAGS'
1094
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1095
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1096
 
cross_compiling=$ac_cv_prog_cc_cross
1097
 
 
1098
 
cat > conftest.$ac_ext << EOF
1099
 
 
1100
 
#line 1101 "configure"
1101
 
#include "confdefs.h"
1102
 
 
1103
 
main(){return(0);}
1104
 
EOF
1105
 
if { (eval echo configure:1106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1106
 
  ac_cv_prog_cc_works=yes
1107
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1108
 
  if (./conftest; exit) 2>/dev/null; then
1109
 
    ac_cv_prog_cc_cross=no
 
1897
done
 
1898
done
 
1899
 
 
1900
fi
 
1901
fi
 
1902
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1903
if test -n "$ac_ct_CC"; then
 
1904
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1905
echo "${ECHO_T}$ac_ct_CC" >&6
 
1906
else
 
1907
  echo "$as_me:$LINENO: result: no" >&5
 
1908
echo "${ECHO_T}no" >&6
 
1909
fi
 
1910
 
 
1911
  test -n "$ac_ct_CC" && break
 
1912
done
 
1913
 
 
1914
  CC=$ac_ct_CC
 
1915
fi
 
1916
 
 
1917
fi
 
1918
 
 
1919
 
 
1920
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1921
See \`config.log' for more details." >&5
 
1922
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1923
See \`config.log' for more details." >&2;}
 
1924
   { (exit 1); exit 1; }; }
 
1925
 
 
1926
# Provide some information about the compiler.
 
1927
echo "$as_me:$LINENO:" \
 
1928
     "checking for C compiler version" >&5
 
1929
ac_compiler=`set X $ac_compile; echo $2`
 
1930
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1931
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1932
  ac_status=$?
 
1933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1934
  (exit $ac_status); }
 
1935
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1936
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1937
  ac_status=$?
 
1938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1939
  (exit $ac_status); }
 
1940
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1941
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1942
  ac_status=$?
 
1943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1944
  (exit $ac_status); }
 
1945
 
 
1946
cat >conftest.$ac_ext <<_ACEOF
 
1947
#line $LINENO "configure"
 
1948
/* confdefs.h.  */
 
1949
_ACEOF
 
1950
cat confdefs.h >>conftest.$ac_ext
 
1951
cat >>conftest.$ac_ext <<_ACEOF
 
1952
/* end confdefs.h.  */
 
1953
 
 
1954
int
 
1955
main ()
 
1956
{
 
1957
 
 
1958
  ;
 
1959
  return 0;
 
1960
}
 
1961
_ACEOF
 
1962
ac_clean_files_save=$ac_clean_files
 
1963
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1964
# Try to create an executable without -o first, disregard a.out.
 
1965
# It will help us diagnose broken compilers, and finding out an intuition
 
1966
# of exeext.
 
1967
echo "$as_me:$LINENO: checking for C compiler default output" >&5
 
1968
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
1969
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1970
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1971
  (eval $ac_link_default) 2>&5
 
1972
  ac_status=$?
 
1973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1974
  (exit $ac_status); }; then
 
1975
  # Find the output, starting from the most likely.  This scheme is
 
1976
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1977
# resort.
 
1978
 
 
1979
# Be careful to initialize this variable, since it used to be cached.
 
1980
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1981
ac_cv_exeext=
 
1982
# b.out is created by i960 compilers.
 
1983
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1984
do
 
1985
  test -f "$ac_file" || continue
 
1986
  case $ac_file in
 
1987
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1988
        ;;
 
1989
    conftest.$ac_ext )
 
1990
        # This is the source file.
 
1991
        ;;
 
1992
    [ab].out )
 
1993
        # We found the default executable, but exeext='' is most
 
1994
        # certainly right.
 
1995
        break;;
 
1996
    *.* )
 
1997
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1998
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1999
        # but it would be cool to find out if it's true.  Does anybody
 
2000
        # maintain Libtool? --akim.
 
2001
        export ac_cv_exeext
 
2002
        break;;
 
2003
    * )
 
2004
        break;;
 
2005
  esac
 
2006
done
 
2007
else
 
2008
  echo "$as_me: failed program was:" >&5
 
2009
sed 's/^/| /' conftest.$ac_ext >&5
 
2010
 
 
2011
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2012
See \`config.log' for more details." >&5
 
2013
echo "$as_me: error: C compiler cannot create executables
 
2014
See \`config.log' for more details." >&2;}
 
2015
   { (exit 77); exit 77; }; }
 
2016
fi
 
2017
 
 
2018
ac_exeext=$ac_cv_exeext
 
2019
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2020
echo "${ECHO_T}$ac_file" >&6
 
2021
 
 
2022
# Check the compiler produces executables we can run.  If not, either
 
2023
# the compiler is broken, or we cross compile.
 
2024
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2025
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2026
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2027
# If not cross compiling, check that we can run a simple program.
 
2028
if test "$cross_compiling" != yes; then
 
2029
  if { ac_try='./$ac_file'
 
2030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2031
  (eval $ac_try) 2>&5
 
2032
  ac_status=$?
 
2033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2034
  (exit $ac_status); }; }; then
 
2035
    cross_compiling=no
1110
2036
  else
1111
 
    ac_cv_prog_cc_cross=yes
 
2037
    if test "$cross_compiling" = maybe; then
 
2038
        cross_compiling=yes
 
2039
    else
 
2040
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2041
If you meant to cross compile, use \`--host'.
 
2042
See \`config.log' for more details." >&5
 
2043
echo "$as_me: error: cannot run C compiled programs.
 
2044
If you meant to cross compile, use \`--host'.
 
2045
See \`config.log' for more details." >&2;}
 
2046
   { (exit 1); exit 1; }; }
 
2047
    fi
1112
2048
  fi
1113
 
else
1114
 
  echo "configure: failed program was:" >&5
1115
 
  cat conftest.$ac_ext >&5
1116
 
  ac_cv_prog_cc_works=no
1117
 
fi
1118
 
rm -fr conftest*
1119
 
ac_ext=c
1120
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1121
 
ac_cpp='$CPP $CPPFLAGS'
1122
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1123
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1124
 
cross_compiling=$ac_cv_prog_cc_cross
1125
 
 
1126
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1127
 
if test $ac_cv_prog_cc_works = no; then
1128
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1129
 
fi
1130
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1131
 
echo "configure:1132: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1132
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1133
 
cross_compiling=$ac_cv_prog_cc_cross
1134
 
 
1135
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1136
 
echo "configure:1137: checking whether we are using GNU C" >&5
1137
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1138
 
  echo $ac_n "(cached) $ac_c" 1>&6
1139
 
else
1140
 
  cat > conftest.c <<EOF
1141
 
#ifdef __GNUC__
1142
 
  yes;
 
2049
fi
 
2050
echo "$as_me:$LINENO: result: yes" >&5
 
2051
echo "${ECHO_T}yes" >&6
 
2052
 
 
2053
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2054
ac_clean_files=$ac_clean_files_save
 
2055
# Check the compiler produces executables we can run.  If not, either
 
2056
# the compiler is broken, or we cross compile.
 
2057
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2058
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2059
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2060
echo "${ECHO_T}$cross_compiling" >&6
 
2061
 
 
2062
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2063
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2064
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2065
  (eval $ac_link) 2>&5
 
2066
  ac_status=$?
 
2067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2068
  (exit $ac_status); }; then
 
2069
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2070
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2071
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2072
# `rm'.
 
2073
for ac_file in conftest.exe conftest conftest.*; do
 
2074
  test -f "$ac_file" || continue
 
2075
  case $ac_file in
 
2076
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2077
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2078
          export ac_cv_exeext
 
2079
          break;;
 
2080
    * ) break;;
 
2081
  esac
 
2082
done
 
2083
else
 
2084
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2085
See \`config.log' for more details." >&5
 
2086
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2087
See \`config.log' for more details." >&2;}
 
2088
   { (exit 1); exit 1; }; }
 
2089
fi
 
2090
 
 
2091
rm -f conftest$ac_cv_exeext
 
2092
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2093
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2094
 
 
2095
rm -f conftest.$ac_ext
 
2096
EXEEXT=$ac_cv_exeext
 
2097
ac_exeext=$EXEEXT
 
2098
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2099
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2100
if test "${ac_cv_objext+set}" = set; then
 
2101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2102
else
 
2103
  cat >conftest.$ac_ext <<_ACEOF
 
2104
#line $LINENO "configure"
 
2105
/* confdefs.h.  */
 
2106
_ACEOF
 
2107
cat confdefs.h >>conftest.$ac_ext
 
2108
cat >>conftest.$ac_ext <<_ACEOF
 
2109
/* end confdefs.h.  */
 
2110
 
 
2111
int
 
2112
main ()
 
2113
{
 
2114
 
 
2115
  ;
 
2116
  return 0;
 
2117
}
 
2118
_ACEOF
 
2119
rm -f conftest.o conftest.obj
 
2120
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2121
  (eval $ac_compile) 2>&5
 
2122
  ac_status=$?
 
2123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2124
  (exit $ac_status); }; then
 
2125
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2126
  case $ac_file in
 
2127
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2128
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2129
       break;;
 
2130
  esac
 
2131
done
 
2132
else
 
2133
  echo "$as_me: failed program was:" >&5
 
2134
sed 's/^/| /' conftest.$ac_ext >&5
 
2135
 
 
2136
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2137
See \`config.log' for more details." >&5
 
2138
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2139
See \`config.log' for more details." >&2;}
 
2140
   { (exit 1); exit 1; }; }
 
2141
fi
 
2142
 
 
2143
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2144
fi
 
2145
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2146
echo "${ECHO_T}$ac_cv_objext" >&6
 
2147
OBJEXT=$ac_cv_objext
 
2148
ac_objext=$OBJEXT
 
2149
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2150
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2151
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2152
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2153
else
 
2154
  cat >conftest.$ac_ext <<_ACEOF
 
2155
#line $LINENO "configure"
 
2156
/* confdefs.h.  */
 
2157
_ACEOF
 
2158
cat confdefs.h >>conftest.$ac_ext
 
2159
cat >>conftest.$ac_ext <<_ACEOF
 
2160
/* end confdefs.h.  */
 
2161
 
 
2162
int
 
2163
main ()
 
2164
{
 
2165
#ifndef __GNUC__
 
2166
       choke me
1143
2167
#endif
1144
 
EOF
1145
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1146
 
  ac_cv_prog_gcc=yes
1147
 
else
1148
 
  ac_cv_prog_gcc=no
1149
 
fi
1150
 
fi
1151
 
 
1152
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1153
 
 
1154
 
if test $ac_cv_prog_gcc = yes; then
1155
 
  GCC=yes
1156
 
else
1157
 
  GCC=
1158
 
fi
1159
 
 
1160
 
ac_test_CFLAGS="${CFLAGS+set}"
1161
 
ac_save_CFLAGS="$CFLAGS"
1162
 
CFLAGS=
1163
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1164
 
echo "configure:1165: checking whether ${CC-cc} accepts -g" >&5
1165
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1166
 
  echo $ac_n "(cached) $ac_c" 1>&6
1167
 
else
1168
 
  echo 'void f(){}' > conftest.c
1169
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
2168
 
 
2169
  ;
 
2170
  return 0;
 
2171
}
 
2172
_ACEOF
 
2173
rm -f conftest.$ac_objext
 
2174
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2175
  (eval $ac_compile) 2>&5
 
2176
  ac_status=$?
 
2177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2178
  (exit $ac_status); } &&
 
2179
         { ac_try='test -s conftest.$ac_objext'
 
2180
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2181
  (eval $ac_try) 2>&5
 
2182
  ac_status=$?
 
2183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2184
  (exit $ac_status); }; }; then
 
2185
  ac_compiler_gnu=yes
 
2186
else
 
2187
  echo "$as_me: failed program was:" >&5
 
2188
sed 's/^/| /' conftest.$ac_ext >&5
 
2189
 
 
2190
ac_compiler_gnu=no
 
2191
fi
 
2192
rm -f conftest.$ac_objext conftest.$ac_ext
 
2193
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2194
 
 
2195
fi
 
2196
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2197
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2198
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2199
ac_test_CFLAGS=${CFLAGS+set}
 
2200
ac_save_CFLAGS=$CFLAGS
 
2201
CFLAGS="-g"
 
2202
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2203
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2204
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2206
else
 
2207
  cat >conftest.$ac_ext <<_ACEOF
 
2208
#line $LINENO "configure"
 
2209
/* confdefs.h.  */
 
2210
_ACEOF
 
2211
cat confdefs.h >>conftest.$ac_ext
 
2212
cat >>conftest.$ac_ext <<_ACEOF
 
2213
/* end confdefs.h.  */
 
2214
 
 
2215
int
 
2216
main ()
 
2217
{
 
2218
 
 
2219
  ;
 
2220
  return 0;
 
2221
}
 
2222
_ACEOF
 
2223
rm -f conftest.$ac_objext
 
2224
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2225
  (eval $ac_compile) 2>&5
 
2226
  ac_status=$?
 
2227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2228
  (exit $ac_status); } &&
 
2229
         { ac_try='test -s conftest.$ac_objext'
 
2230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2231
  (eval $ac_try) 2>&5
 
2232
  ac_status=$?
 
2233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2234
  (exit $ac_status); }; }; then
1170
2235
  ac_cv_prog_cc_g=yes
1171
2236
else
1172
 
  ac_cv_prog_cc_g=no
1173
 
fi
1174
 
rm -f conftest*
1175
 
 
1176
 
fi
1177
 
 
1178
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
2237
  echo "$as_me: failed program was:" >&5
 
2238
sed 's/^/| /' conftest.$ac_ext >&5
 
2239
 
 
2240
ac_cv_prog_cc_g=no
 
2241
fi
 
2242
rm -f conftest.$ac_objext conftest.$ac_ext
 
2243
fi
 
2244
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2245
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1179
2246
if test "$ac_test_CFLAGS" = set; then
1180
 
  CFLAGS="$ac_save_CFLAGS"
 
2247
  CFLAGS=$ac_save_CFLAGS
1181
2248
elif test $ac_cv_prog_cc_g = yes; then
1182
2249
  if test "$GCC" = yes; then
1183
2250
    CFLAGS="-g -O2"
1191
2258
    CFLAGS=
1192
2259
  fi
1193
2260
fi
1194
 
 
1195
 
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1196
 
echo "configure:1197: checking for POSIXized ISC" >&5
1197
 
if test -d /etc/conf/kconfig.d &&
1198
 
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1199
 
then
1200
 
  echo "$ac_t""yes" 1>&6
1201
 
  ISC=yes # If later tests want to check for ISC.
1202
 
  cat >> confdefs.h <<\EOF
1203
 
#define _POSIX_SOURCE 1
1204
 
EOF
1205
 
 
1206
 
  if test "$GCC" = yes; then
1207
 
    CC="$CC -posix"
1208
 
  else
1209
 
    CC="$CC -Xp"
1210
 
  fi
1211
 
else
1212
 
  echo "$ac_t""no" 1>&6
1213
 
  ISC=
1214
 
fi
1215
 
 
1216
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1217
 
echo "configure:1218: checking how to run the C preprocessor" >&5
 
2261
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2262
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2263
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2265
else
 
2266
  ac_cv_prog_cc_stdc=no
 
2267
ac_save_CC=$CC
 
2268
cat >conftest.$ac_ext <<_ACEOF
 
2269
#line $LINENO "configure"
 
2270
/* confdefs.h.  */
 
2271
_ACEOF
 
2272
cat confdefs.h >>conftest.$ac_ext
 
2273
cat >>conftest.$ac_ext <<_ACEOF
 
2274
/* end confdefs.h.  */
 
2275
#include <stdarg.h>
 
2276
#include <stdio.h>
 
2277
#include <sys/types.h>
 
2278
#include <sys/stat.h>
 
2279
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2280
struct buf { int x; };
 
2281
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2282
static char *e (p, i)
 
2283
     char **p;
 
2284
     int i;
 
2285
{
 
2286
  return p[i];
 
2287
}
 
2288
static char *f (char * (*g) (char **, int), char **p, ...)
 
2289
{
 
2290
  char *s;
 
2291
  va_list v;
 
2292
  va_start (v,p);
 
2293
  s = g (p, va_arg (v,int));
 
2294
  va_end (v);
 
2295
  return s;
 
2296
}
 
2297
int test (int i, double x);
 
2298
struct s1 {int (*f) (int a);};
 
2299
struct s2 {int (*f) (double a);};
 
2300
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2301
int argc;
 
2302
char **argv;
 
2303
int
 
2304
main ()
 
2305
{
 
2306
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2307
  ;
 
2308
  return 0;
 
2309
}
 
2310
_ACEOF
 
2311
# Don't try gcc -ansi; that turns off useful extensions and
 
2312
# breaks some systems' header files.
 
2313
# AIX                   -qlanglvl=ansi
 
2314
# Ultrix and OSF/1      -std1
 
2315
# HP-UX 10.20 and later -Ae
 
2316
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2317
# SVR4                  -Xc -D__EXTENSIONS__
 
2318
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2319
do
 
2320
  CC="$ac_save_CC $ac_arg"
 
2321
  rm -f conftest.$ac_objext
 
2322
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2323
  (eval $ac_compile) 2>&5
 
2324
  ac_status=$?
 
2325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2326
  (exit $ac_status); } &&
 
2327
         { ac_try='test -s conftest.$ac_objext'
 
2328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2329
  (eval $ac_try) 2>&5
 
2330
  ac_status=$?
 
2331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2332
  (exit $ac_status); }; }; then
 
2333
  ac_cv_prog_cc_stdc=$ac_arg
 
2334
break
 
2335
else
 
2336
  echo "$as_me: failed program was:" >&5
 
2337
sed 's/^/| /' conftest.$ac_ext >&5
 
2338
 
 
2339
fi
 
2340
rm -f conftest.$ac_objext
 
2341
done
 
2342
rm -f conftest.$ac_ext conftest.$ac_objext
 
2343
CC=$ac_save_CC
 
2344
 
 
2345
fi
 
2346
 
 
2347
case "x$ac_cv_prog_cc_stdc" in
 
2348
  x|xno)
 
2349
    echo "$as_me:$LINENO: result: none needed" >&5
 
2350
echo "${ECHO_T}none needed" >&6 ;;
 
2351
  *)
 
2352
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2353
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2354
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2355
esac
 
2356
 
 
2357
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2358
# in C++ we need to declare it.  In case someone uses the same compiler
 
2359
# for both compiling C and C++ we need to have the C++ compiler decide
 
2360
# the declaration of exit, since it's the most demanding environment.
 
2361
cat >conftest.$ac_ext <<_ACEOF
 
2362
#ifndef __cplusplus
 
2363
  choke me
 
2364
#endif
 
2365
_ACEOF
 
2366
rm -f conftest.$ac_objext
 
2367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2368
  (eval $ac_compile) 2>&5
 
2369
  ac_status=$?
 
2370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2371
  (exit $ac_status); } &&
 
2372
         { ac_try='test -s conftest.$ac_objext'
 
2373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2374
  (eval $ac_try) 2>&5
 
2375
  ac_status=$?
 
2376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2377
  (exit $ac_status); }; }; then
 
2378
  for ac_declaration in \
 
2379
   '' \
 
2380
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2381
   'extern "C" void std::exit (int); using std::exit;' \
 
2382
   'extern "C" void exit (int) throw ();' \
 
2383
   'extern "C" void exit (int);' \
 
2384
   'void exit (int);'
 
2385
do
 
2386
  cat >conftest.$ac_ext <<_ACEOF
 
2387
#line $LINENO "configure"
 
2388
/* confdefs.h.  */
 
2389
_ACEOF
 
2390
cat confdefs.h >>conftest.$ac_ext
 
2391
cat >>conftest.$ac_ext <<_ACEOF
 
2392
/* end confdefs.h.  */
 
2393
$ac_declaration
 
2394
#include <stdlib.h>
 
2395
int
 
2396
main ()
 
2397
{
 
2398
exit (42);
 
2399
  ;
 
2400
  return 0;
 
2401
}
 
2402
_ACEOF
 
2403
rm -f conftest.$ac_objext
 
2404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2405
  (eval $ac_compile) 2>&5
 
2406
  ac_status=$?
 
2407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2408
  (exit $ac_status); } &&
 
2409
         { ac_try='test -s conftest.$ac_objext'
 
2410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2411
  (eval $ac_try) 2>&5
 
2412
  ac_status=$?
 
2413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2414
  (exit $ac_status); }; }; then
 
2415
  :
 
2416
else
 
2417
  echo "$as_me: failed program was:" >&5
 
2418
sed 's/^/| /' conftest.$ac_ext >&5
 
2419
 
 
2420
continue
 
2421
fi
 
2422
rm -f conftest.$ac_objext conftest.$ac_ext
 
2423
  cat >conftest.$ac_ext <<_ACEOF
 
2424
#line $LINENO "configure"
 
2425
/* confdefs.h.  */
 
2426
_ACEOF
 
2427
cat confdefs.h >>conftest.$ac_ext
 
2428
cat >>conftest.$ac_ext <<_ACEOF
 
2429
/* end confdefs.h.  */
 
2430
$ac_declaration
 
2431
int
 
2432
main ()
 
2433
{
 
2434
exit (42);
 
2435
  ;
 
2436
  return 0;
 
2437
}
 
2438
_ACEOF
 
2439
rm -f conftest.$ac_objext
 
2440
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2441
  (eval $ac_compile) 2>&5
 
2442
  ac_status=$?
 
2443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2444
  (exit $ac_status); } &&
 
2445
         { ac_try='test -s conftest.$ac_objext'
 
2446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2447
  (eval $ac_try) 2>&5
 
2448
  ac_status=$?
 
2449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2450
  (exit $ac_status); }; }; then
 
2451
  break
 
2452
else
 
2453
  echo "$as_me: failed program was:" >&5
 
2454
sed 's/^/| /' conftest.$ac_ext >&5
 
2455
 
 
2456
fi
 
2457
rm -f conftest.$ac_objext conftest.$ac_ext
 
2458
done
 
2459
rm -f conftest*
 
2460
if test -n "$ac_declaration"; then
 
2461
  echo '#ifdef __cplusplus' >>confdefs.h
 
2462
  echo $ac_declaration      >>confdefs.h
 
2463
  echo '#endif'             >>confdefs.h
 
2464
fi
 
2465
 
 
2466
else
 
2467
  echo "$as_me: failed program was:" >&5
 
2468
sed 's/^/| /' conftest.$ac_ext >&5
 
2469
 
 
2470
fi
 
2471
rm -f conftest.$ac_objext conftest.$ac_ext
 
2472
ac_ext=c
 
2473
ac_cpp='$CPP $CPPFLAGS'
 
2474
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2475
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2476
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2477
 
 
2478
 
 
2479
 
 
2480
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
2481
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
2482
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
2483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2484
else
 
2485
  ac_check_lib_save_LIBS=$LIBS
 
2486
LIBS="-lcposix  $LIBS"
 
2487
cat >conftest.$ac_ext <<_ACEOF
 
2488
#line $LINENO "configure"
 
2489
/* confdefs.h.  */
 
2490
_ACEOF
 
2491
cat confdefs.h >>conftest.$ac_ext
 
2492
cat >>conftest.$ac_ext <<_ACEOF
 
2493
/* end confdefs.h.  */
 
2494
 
 
2495
/* Override any gcc2 internal prototype to avoid an error.  */
 
2496
#ifdef __cplusplus
 
2497
extern "C"
 
2498
#endif
 
2499
/* We use char because int might match the return type of a gcc2
 
2500
   builtin and then its argument prototype would still apply.  */
 
2501
char strerror ();
 
2502
int
 
2503
main ()
 
2504
{
 
2505
strerror ();
 
2506
  ;
 
2507
  return 0;
 
2508
}
 
2509
_ACEOF
 
2510
rm -f conftest.$ac_objext conftest$ac_exeext
 
2511
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2512
  (eval $ac_link) 2>&5
 
2513
  ac_status=$?
 
2514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2515
  (exit $ac_status); } &&
 
2516
         { ac_try='test -s conftest$ac_exeext'
 
2517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2518
  (eval $ac_try) 2>&5
 
2519
  ac_status=$?
 
2520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2521
  (exit $ac_status); }; }; then
 
2522
  ac_cv_lib_cposix_strerror=yes
 
2523
else
 
2524
  echo "$as_me: failed program was:" >&5
 
2525
sed 's/^/| /' conftest.$ac_ext >&5
 
2526
 
 
2527
ac_cv_lib_cposix_strerror=no
 
2528
fi
 
2529
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
2530
LIBS=$ac_check_lib_save_LIBS
 
2531
fi
 
2532
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
2533
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
2534
if test $ac_cv_lib_cposix_strerror = yes; then
 
2535
  LIBS="$LIBS -lcposix"
 
2536
fi
 
2537
 
 
2538
 
 
2539
 
 
2540
ac_ext=c
 
2541
ac_cpp='$CPP $CPPFLAGS'
 
2542
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2543
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2544
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2545
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2546
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1218
2547
# On Suns, sometimes $CPP names a directory.
1219
2548
if test -n "$CPP" && test -d "$CPP"; then
1220
2549
  CPP=
1221
2550
fi
1222
2551
if test -z "$CPP"; then
1223
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1224
 
  echo $ac_n "(cached) $ac_c" 1>&6
1225
 
else
1226
 
    # This must be in double quotes, not single quotes, because CPP may get
1227
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1228
 
  CPP="${CC-cc} -E"
1229
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
1230
 
  # not just through cpp.
1231
 
  cat > conftest.$ac_ext <<EOF
1232
 
#line 1233 "configure"
1233
 
#include "confdefs.h"
1234
 
#include <assert.h>
1235
 
Syntax Error
1236
 
EOF
1237
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1238
 
{ (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1239
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1240
 
if test -z "$ac_err"; then
1241
 
  :
1242
 
else
1243
 
  echo "$ac_err" >&5
1244
 
  echo "configure: failed program was:" >&5
1245
 
  cat conftest.$ac_ext >&5
1246
 
  rm -rf conftest*
1247
 
  CPP="${CC-cc} -E -traditional-cpp"
1248
 
  cat > conftest.$ac_ext <<EOF
1249
 
#line 1250 "configure"
1250
 
#include "confdefs.h"
1251
 
#include <assert.h>
1252
 
Syntax Error
1253
 
EOF
1254
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1255
 
{ (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1256
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1257
 
if test -z "$ac_err"; then
1258
 
  :
1259
 
else
1260
 
  echo "$ac_err" >&5
1261
 
  echo "configure: failed program was:" >&5
1262
 
  cat conftest.$ac_ext >&5
1263
 
  rm -rf conftest*
1264
 
  CPP="${CC-cc} -nologo -E"
1265
 
  cat > conftest.$ac_ext <<EOF
1266
 
#line 1267 "configure"
1267
 
#include "confdefs.h"
1268
 
#include <assert.h>
1269
 
Syntax Error
1270
 
EOF
1271
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1272
 
{ (eval echo configure:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1273
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1274
 
if test -z "$ac_err"; then
1275
 
  :
1276
 
else
1277
 
  echo "$ac_err" >&5
1278
 
  echo "configure: failed program was:" >&5
1279
 
  cat conftest.$ac_ext >&5
1280
 
  rm -rf conftest*
1281
 
  CPP=/lib/cpp
1282
 
fi
1283
 
rm -f conftest*
1284
 
fi
1285
 
rm -f conftest*
1286
 
fi
1287
 
rm -f conftest*
1288
 
  ac_cv_prog_CPP="$CPP"
1289
 
fi
1290
 
  CPP="$ac_cv_prog_CPP"
1291
 
else
1292
 
  ac_cv_prog_CPP="$CPP"
1293
 
fi
1294
 
echo "$ac_t""$CPP" 1>&6
 
2552
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2554
else
 
2555
      # Double quotes because CPP needs to be expanded
 
2556
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2557
    do
 
2558
      ac_preproc_ok=false
 
2559
for ac_c_preproc_warn_flag in '' yes
 
2560
do
 
2561
  # Use a header file that comes with gcc, so configuring glibc
 
2562
  # with a fresh cross-compiler works.
 
2563
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2564
  # <limits.h> exists even on freestanding compilers.
 
2565
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2566
  # not just through cpp. "Syntax error" is here to catch this case.
 
2567
  cat >conftest.$ac_ext <<_ACEOF
 
2568
#line $LINENO "configure"
 
2569
/* confdefs.h.  */
 
2570
_ACEOF
 
2571
cat confdefs.h >>conftest.$ac_ext
 
2572
cat >>conftest.$ac_ext <<_ACEOF
 
2573
/* end confdefs.h.  */
 
2574
#ifdef __STDC__
 
2575
# include <limits.h>
 
2576
#else
 
2577
# include <assert.h>
 
2578
#endif
 
2579
                     Syntax error
 
2580
_ACEOF
 
2581
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2582
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2583
  ac_status=$?
 
2584
  grep -v '^ *+' conftest.er1 >conftest.err
 
2585
  rm -f conftest.er1
 
2586
  cat conftest.err >&5
 
2587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2588
  (exit $ac_status); } >/dev/null; then
 
2589
  if test -s conftest.err; then
 
2590
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2591
  else
 
2592
    ac_cpp_err=
 
2593
  fi
 
2594
else
 
2595
  ac_cpp_err=yes
 
2596
fi
 
2597
if test -z "$ac_cpp_err"; then
 
2598
  :
 
2599
else
 
2600
  echo "$as_me: failed program was:" >&5
 
2601
sed 's/^/| /' conftest.$ac_ext >&5
 
2602
 
 
2603
  # Broken: fails on valid input.
 
2604
continue
 
2605
fi
 
2606
rm -f conftest.err conftest.$ac_ext
 
2607
 
 
2608
  # OK, works on sane cases.  Now check whether non-existent headers
 
2609
  # can be detected and how.
 
2610
  cat >conftest.$ac_ext <<_ACEOF
 
2611
#line $LINENO "configure"
 
2612
/* confdefs.h.  */
 
2613
_ACEOF
 
2614
cat confdefs.h >>conftest.$ac_ext
 
2615
cat >>conftest.$ac_ext <<_ACEOF
 
2616
/* end confdefs.h.  */
 
2617
#include <ac_nonexistent.h>
 
2618
_ACEOF
 
2619
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2620
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2621
  ac_status=$?
 
2622
  grep -v '^ *+' conftest.er1 >conftest.err
 
2623
  rm -f conftest.er1
 
2624
  cat conftest.err >&5
 
2625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2626
  (exit $ac_status); } >/dev/null; then
 
2627
  if test -s conftest.err; then
 
2628
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2629
  else
 
2630
    ac_cpp_err=
 
2631
  fi
 
2632
else
 
2633
  ac_cpp_err=yes
 
2634
fi
 
2635
if test -z "$ac_cpp_err"; then
 
2636
  # Broken: success on invalid input.
 
2637
continue
 
2638
else
 
2639
  echo "$as_me: failed program was:" >&5
 
2640
sed 's/^/| /' conftest.$ac_ext >&5
 
2641
 
 
2642
  # Passes both tests.
 
2643
ac_preproc_ok=:
 
2644
break
 
2645
fi
 
2646
rm -f conftest.err conftest.$ac_ext
 
2647
 
 
2648
done
 
2649
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2650
rm -f conftest.err conftest.$ac_ext
 
2651
if $ac_preproc_ok; then
 
2652
  break
 
2653
fi
 
2654
 
 
2655
    done
 
2656
    ac_cv_prog_CPP=$CPP
 
2657
 
 
2658
fi
 
2659
  CPP=$ac_cv_prog_CPP
 
2660
else
 
2661
  ac_cv_prog_CPP=$CPP
 
2662
fi
 
2663
echo "$as_me:$LINENO: result: $CPP" >&5
 
2664
echo "${ECHO_T}$CPP" >&6
 
2665
ac_preproc_ok=false
 
2666
for ac_c_preproc_warn_flag in '' yes
 
2667
do
 
2668
  # Use a header file that comes with gcc, so configuring glibc
 
2669
  # with a fresh cross-compiler works.
 
2670
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2671
  # <limits.h> exists even on freestanding compilers.
 
2672
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2673
  # not just through cpp. "Syntax error" is here to catch this case.
 
2674
  cat >conftest.$ac_ext <<_ACEOF
 
2675
#line $LINENO "configure"
 
2676
/* confdefs.h.  */
 
2677
_ACEOF
 
2678
cat confdefs.h >>conftest.$ac_ext
 
2679
cat >>conftest.$ac_ext <<_ACEOF
 
2680
/* end confdefs.h.  */
 
2681
#ifdef __STDC__
 
2682
# include <limits.h>
 
2683
#else
 
2684
# include <assert.h>
 
2685
#endif
 
2686
                     Syntax error
 
2687
_ACEOF
 
2688
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2689
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2690
  ac_status=$?
 
2691
  grep -v '^ *+' conftest.er1 >conftest.err
 
2692
  rm -f conftest.er1
 
2693
  cat conftest.err >&5
 
2694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2695
  (exit $ac_status); } >/dev/null; then
 
2696
  if test -s conftest.err; then
 
2697
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2698
  else
 
2699
    ac_cpp_err=
 
2700
  fi
 
2701
else
 
2702
  ac_cpp_err=yes
 
2703
fi
 
2704
if test -z "$ac_cpp_err"; then
 
2705
  :
 
2706
else
 
2707
  echo "$as_me: failed program was:" >&5
 
2708
sed 's/^/| /' conftest.$ac_ext >&5
 
2709
 
 
2710
  # Broken: fails on valid input.
 
2711
continue
 
2712
fi
 
2713
rm -f conftest.err conftest.$ac_ext
 
2714
 
 
2715
  # OK, works on sane cases.  Now check whether non-existent headers
 
2716
  # can be detected and how.
 
2717
  cat >conftest.$ac_ext <<_ACEOF
 
2718
#line $LINENO "configure"
 
2719
/* confdefs.h.  */
 
2720
_ACEOF
 
2721
cat confdefs.h >>conftest.$ac_ext
 
2722
cat >>conftest.$ac_ext <<_ACEOF
 
2723
/* end confdefs.h.  */
 
2724
#include <ac_nonexistent.h>
 
2725
_ACEOF
 
2726
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
2727
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
2728
  ac_status=$?
 
2729
  grep -v '^ *+' conftest.er1 >conftest.err
 
2730
  rm -f conftest.er1
 
2731
  cat conftest.err >&5
 
2732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2733
  (exit $ac_status); } >/dev/null; then
 
2734
  if test -s conftest.err; then
 
2735
    ac_cpp_err=$ac_c_preproc_warn_flag
 
2736
  else
 
2737
    ac_cpp_err=
 
2738
  fi
 
2739
else
 
2740
  ac_cpp_err=yes
 
2741
fi
 
2742
if test -z "$ac_cpp_err"; then
 
2743
  # Broken: success on invalid input.
 
2744
continue
 
2745
else
 
2746
  echo "$as_me: failed program was:" >&5
 
2747
sed 's/^/| /' conftest.$ac_ext >&5
 
2748
 
 
2749
  # Passes both tests.
 
2750
ac_preproc_ok=:
 
2751
break
 
2752
fi
 
2753
rm -f conftest.err conftest.$ac_ext
 
2754
 
 
2755
done
 
2756
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
2757
rm -f conftest.err conftest.$ac_ext
 
2758
if $ac_preproc_ok; then
 
2759
  :
 
2760
else
 
2761
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
2762
See \`config.log' for more details." >&5
 
2763
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
2764
See \`config.log' for more details." >&2;}
 
2765
   { (exit 1); exit 1; }; }
 
2766
fi
 
2767
 
 
2768
ac_ext=c
 
2769
ac_cpp='$CPP $CPPFLAGS'
 
2770
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2771
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2772
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295
2773
 
1296
2774
# Find a good install program.  We prefer a C program (faster),
1297
2775
# so one script is as good as another.  But avoid the broken or
1300
2778
# SunOS /usr/etc/install
1301
2779
# IRIX /sbin/install
1302
2780
# AIX /bin/install
 
2781
# AmigaOS /C/install, which installs bootblocks on floppy discs
1303
2782
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1304
2783
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1305
2784
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1306
2785
# ./install, which can be erroneously created by make from ./install.sh.
1307
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1308
 
echo "configure:1309: checking for a BSD compatible install" >&5
 
2786
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2787
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1309
2788
if test -z "$INSTALL"; then
1310
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1311
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2789
if test "${ac_cv_path_install+set}" = set; then
 
2790
  echo $ECHO_N "(cached) $ECHO_C" >&6
1312
2791
else
1313
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1314
 
  for ac_dir in $PATH; do
1315
 
    # Account for people who put trailing slashes in PATH elements.
1316
 
    case "$ac_dir/" in
1317
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1318
 
    *)
1319
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
1320
 
      # Don't use installbsd from OSF since it installs stuff as root
1321
 
      # by default.
1322
 
      for ac_prog in ginstall scoinst install; do
1323
 
        if test -f $ac_dir/$ac_prog; then
1324
 
          if test $ac_prog = install &&
1325
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1326
 
            # AIX install.  It has an incompatible calling convention.
1327
 
            :
1328
 
          else
1329
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1330
 
            break 2
1331
 
          fi
1332
 
        fi
 
2792
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2793
for as_dir in $PATH
 
2794
do
 
2795
  IFS=$as_save_IFS
 
2796
  test -z "$as_dir" && as_dir=.
 
2797
  # Account for people who put trailing slashes in PATH elements.
 
2798
case $as_dir/ in
 
2799
  ./ | .// | /cC/* | \
 
2800
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2801
  /usr/ucb/* ) ;;
 
2802
  *)
 
2803
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2804
    # Don't use installbsd from OSF since it installs stuff as root
 
2805
    # by default.
 
2806
    for ac_prog in ginstall scoinst install; do
 
2807
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2808
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2809
          if test $ac_prog = install &&
 
2810
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2811
            # AIX install.  It has an incompatible calling convention.
 
2812
            :
 
2813
          elif test $ac_prog = install &&
 
2814
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2815
            # program-specific install script used by HP pwplus--don't use.
 
2816
            :
 
2817
          else
 
2818
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2819
            break 3
 
2820
          fi
 
2821
        fi
1333
2822
      done
1334
 
      ;;
1335
 
    esac
1336
 
  done
1337
 
  IFS="$ac_save_IFS"
 
2823
    done
 
2824
    ;;
 
2825
esac
 
2826
done
 
2827
 
1338
2828
 
1339
2829
fi
1340
2830
  if test "${ac_cv_path_install+set}" = set; then
1341
 
    INSTALL="$ac_cv_path_install"
 
2831
    INSTALL=$ac_cv_path_install
1342
2832
  else
1343
2833
    # As a last resort, use the slow shell script.  We don't cache a
1344
2834
    # path for INSTALL within a source directory, because that will
1345
2835
    # break other packages using the cache if that directory is
1346
2836
    # removed, or if the path is relative.
1347
 
    INSTALL="$ac_install_sh"
 
2837
    INSTALL=$ac_install_sh
1348
2838
  fi
1349
2839
fi
1350
 
echo "$ac_t""$INSTALL" 1>&6
 
2840
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2841
echo "${ECHO_T}$INSTALL" >&6
1351
2842
 
1352
2843
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1353
2844
# It thinks the first close brace ends the variable substitution.
1354
2845
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1355
2846
 
1356
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
2847
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1357
2848
 
1358
2849
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1359
2850
 
1360
 
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1361
 
echo "configure:1362: checking whether ln -s works" >&5
1362
 
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1363
 
  echo $ac_n "(cached) $ac_c" 1>&6
1364
 
else
1365
 
  rm -f conftestdata
1366
 
if ln -s X conftestdata 2>/dev/null
1367
 
then
1368
 
  rm -f conftestdata
1369
 
  ac_cv_prog_LN_S="ln -s"
1370
 
else
1371
 
  ac_cv_prog_LN_S=ln
1372
 
fi
1373
 
fi
1374
 
LN_S="$ac_cv_prog_LN_S"
1375
 
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1376
 
  echo "$ac_t""yes" 1>&6
1377
 
else
1378
 
  echo "$ac_t""no" 1>&6
 
2851
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
2852
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
2853
LN_S=$as_ln_s
 
2854
if test "$LN_S" = "ln -s"; then
 
2855
  echo "$as_me:$LINENO: result: yes" >&5
 
2856
echo "${ECHO_T}yes" >&6
 
2857
else
 
2858
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
2859
echo "${ECHO_T}no, using $LN_S" >&6
1379
2860
fi
1380
2861
 
1381
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1382
 
echo "configure:1383: checking whether ${MAKE-make} sets \${MAKE}" >&5
1383
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1384
 
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1385
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2862
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2863
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
2864
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
2865
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2866
  echo $ECHO_N "(cached) $ECHO_C" >&6
1386
2867
else
1387
 
  cat > conftestmake <<\EOF
 
2868
  cat >conftest.make <<\_ACEOF
1388
2869
all:
1389
 
        @echo 'ac_maketemp="${MAKE}"'
1390
 
EOF
 
2870
        @echo 'ac_maketemp="$(MAKE)"'
 
2871
_ACEOF
1391
2872
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1392
 
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
2873
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1393
2874
if test -n "$ac_maketemp"; then
1394
2875
  eval ac_cv_prog_make_${ac_make}_set=yes
1395
2876
else
1396
2877
  eval ac_cv_prog_make_${ac_make}_set=no
1397
2878
fi
1398
 
rm -f conftestmake
 
2879
rm -f conftest.make
1399
2880
fi
1400
2881
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1401
 
  echo "$ac_t""yes" 1>&6
 
2882
  echo "$as_me:$LINENO: result: yes" >&5
 
2883
echo "${ECHO_T}yes" >&6
1402
2884
  SET_MAKE=
1403
2885
else
1404
 
  echo "$ac_t""no" 1>&6
 
2886
  echo "$as_me:$LINENO: result: no" >&5
 
2887
echo "${ECHO_T}no" >&6
1405
2888
  SET_MAKE="MAKE=${MAKE-make}"
1406
2889
fi
1407
2890
 
1408
 
if test $ac_cv_prog_gcc = yes; then
1409
 
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1410
 
echo "configure:1411: checking whether ${CC-cc} needs -traditional" >&5
1411
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1412
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
2891
 
 
2892
echo "$as_me:$LINENO: checking for egrep" >&5
 
2893
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2894
if test "${ac_cv_prog_egrep+set}" = set; then
 
2895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2896
else
 
2897
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2898
    then ac_cv_prog_egrep='grep -E'
 
2899
    else ac_cv_prog_egrep='egrep'
 
2900
    fi
 
2901
fi
 
2902
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2903
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2904
 EGREP=$ac_cv_prog_egrep
 
2905
 
 
2906
 
 
2907
if test $ac_cv_c_compiler_gnu = yes; then
 
2908
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
2909
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
 
2910
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
2911
  echo $ECHO_N "(cached) $ECHO_C" >&6
1413
2912
else
1414
2913
    ac_pattern="Autoconf.*'x'"
1415
 
  cat > conftest.$ac_ext <<EOF
1416
 
#line 1417 "configure"
1417
 
#include "confdefs.h"
 
2914
  cat >conftest.$ac_ext <<_ACEOF
 
2915
#line $LINENO "configure"
 
2916
/* confdefs.h.  */
 
2917
_ACEOF
 
2918
cat confdefs.h >>conftest.$ac_ext
 
2919
cat >>conftest.$ac_ext <<_ACEOF
 
2920
/* end confdefs.h.  */
1418
2921
#include <sgtty.h>
1419
2922
Autoconf TIOCGETP
1420
 
EOF
 
2923
_ACEOF
1421
2924
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1422
 
  egrep "$ac_pattern" >/dev/null 2>&1; then
1423
 
  rm -rf conftest*
 
2925
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
1424
2926
  ac_cv_prog_gcc_traditional=yes
1425
2927
else
1426
 
  rm -rf conftest*
1427
2928
  ac_cv_prog_gcc_traditional=no
1428
2929
fi
1429
2930
rm -f conftest*
1430
2931
 
1431
2932
 
1432
2933
  if test $ac_cv_prog_gcc_traditional = no; then
1433
 
    cat > conftest.$ac_ext <<EOF
1434
 
#line 1435 "configure"
1435
 
#include "confdefs.h"
 
2934
    cat >conftest.$ac_ext <<_ACEOF
 
2935
#line $LINENO "configure"
 
2936
/* confdefs.h.  */
 
2937
_ACEOF
 
2938
cat confdefs.h >>conftest.$ac_ext
 
2939
cat >>conftest.$ac_ext <<_ACEOF
 
2940
/* end confdefs.h.  */
1436
2941
#include <termio.h>
1437
2942
Autoconf TCGETA
1438
 
EOF
 
2943
_ACEOF
1439
2944
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1440
 
  egrep "$ac_pattern" >/dev/null 2>&1; then
1441
 
  rm -rf conftest*
 
2945
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
1442
2946
  ac_cv_prog_gcc_traditional=yes
1443
2947
fi
1444
2948
rm -f conftest*
1445
2949
 
1446
2950
  fi
1447
2951
fi
1448
 
 
1449
 
echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
 
2952
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
2953
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1450
2954
  if test $ac_cv_prog_gcc_traditional = yes; then
1451
2955
    CC="$CC -traditional"
1452
2956
  fi
1457
2961
if test "${enable_static+set}" = set; then
1458
2962
  enableval="$enable_static"
1459
2963
  p=${PACKAGE-default}
1460
 
case $enableval in
1461
 
yes) enable_static=yes ;;
1462
 
no) enable_static=no ;;
1463
 
*)
1464
 
  enable_static=no
1465
 
  # Look at the argument we got.  We use all the common list separators.
1466
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1467
 
  for pkg in $enableval; do
1468
 
    if test "X$pkg" = "X$p"; then
1469
 
      enable_static=yes
1470
 
    fi
1471
 
  done
1472
 
  IFS="$ac_save_ifs"
1473
 
  ;;
1474
 
esac
1475
 
else
1476
 
  enable_static=no
1477
 
fi
1478
 
 
1479
 
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1480
 
echo "configure:1481: checking for Cygwin environment" >&5
1481
 
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1482
 
  echo $ac_n "(cached) $ac_c" 1>&6
1483
 
else
1484
 
  cat > conftest.$ac_ext <<EOF
1485
 
#line 1486 "configure"
1486
 
#include "confdefs.h"
1487
 
 
1488
 
int main() {
1489
 
 
1490
 
#ifndef __CYGWIN__
1491
 
#define __CYGWIN__ __CYGWIN32__
1492
 
#endif
1493
 
return __CYGWIN__;
1494
 
; return 0; }
1495
 
EOF
1496
 
if { (eval echo configure:1497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1497
 
  rm -rf conftest*
1498
 
  ac_cv_cygwin=yes
1499
 
else
1500
 
  echo "configure: failed program was:" >&5
1501
 
  cat conftest.$ac_ext >&5
1502
 
  rm -rf conftest*
1503
 
  ac_cv_cygwin=no
1504
 
fi
1505
 
rm -f conftest*
1506
 
rm -f conftest*
1507
 
fi
1508
 
 
1509
 
echo "$ac_t""$ac_cv_cygwin" 1>&6
1510
 
CYGWIN=
1511
 
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1512
 
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1513
 
echo "configure:1514: checking for mingw32 environment" >&5
1514
 
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1515
 
  echo $ac_n "(cached) $ac_c" 1>&6
1516
 
else
1517
 
  cat > conftest.$ac_ext <<EOF
1518
 
#line 1519 "configure"
1519
 
#include "confdefs.h"
1520
 
 
1521
 
int main() {
1522
 
return __MINGW32__;
1523
 
; return 0; }
1524
 
EOF
1525
 
if { (eval echo configure:1526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1526
 
  rm -rf conftest*
1527
 
  ac_cv_mingw32=yes
1528
 
else
1529
 
  echo "configure: failed program was:" >&5
1530
 
  cat conftest.$ac_ext >&5
1531
 
  rm -rf conftest*
1532
 
  ac_cv_mingw32=no
1533
 
fi
1534
 
rm -f conftest*
1535
 
rm -f conftest*
1536
 
fi
1537
 
 
1538
 
echo "$ac_t""$ac_cv_mingw32" 1>&6
1539
 
MINGW32=
1540
 
test "$ac_cv_mingw32" = yes && MINGW32=yes
 
2964
    case $enableval in
 
2965
    yes) enable_static=yes ;;
 
2966
    no) enable_static=no ;;
 
2967
    *)
 
2968
     enable_static=no
 
2969
      # Look at the argument we got.  We use all the common list separators.
 
2970
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2971
      for pkg in $enableval; do
 
2972
        IFS="$lt_save_ifs"
 
2973
        if test "X$pkg" = "X$p"; then
 
2974
          enable_static=yes
 
2975
        fi
 
2976
      done
 
2977
      IFS="$lt_save_ifs"
 
2978
      ;;
 
2979
    esac
 
2980
else
 
2981
  enable_static=no
 
2982
fi;
 
2983
 
 
2984
 
1541
2985
# Check whether --enable-shared or --disable-shared was given.
1542
2986
if test "${enable_shared+set}" = set; then
1543
2987
  enableval="$enable_shared"
1544
2988
  p=${PACKAGE-default}
1545
 
case $enableval in
1546
 
yes) enable_shared=yes ;;
1547
 
no) enable_shared=no ;;
1548
 
*)
1549
 
  enable_shared=no
1550
 
  # Look at the argument we got.  We use all the common list separators.
1551
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1552
 
  for pkg in $enableval; do
1553
 
    if test "X$pkg" = "X$p"; then
1554
 
      enable_shared=yes
1555
 
    fi
1556
 
  done
1557
 
  IFS="$ac_save_ifs"
1558
 
  ;;
1559
 
esac
 
2989
    case $enableval in
 
2990
    yes) enable_shared=yes ;;
 
2991
    no) enable_shared=no ;;
 
2992
    *)
 
2993
      enable_shared=no
 
2994
      # Look at the argument we got.  We use all the common list separators.
 
2995
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2996
      for pkg in $enableval; do
 
2997
        IFS="$lt_save_ifs"
 
2998
        if test "X$pkg" = "X$p"; then
 
2999
          enable_shared=yes
 
3000
        fi
 
3001
      done
 
3002
      IFS="$lt_save_ifs"
 
3003
      ;;
 
3004
    esac
1560
3005
else
1561
3006
  enable_shared=yes
1562
 
fi
 
3007
fi;
1563
3008
 
1564
3009
# Check whether --enable-fast-install or --disable-fast-install was given.
1565
3010
if test "${enable_fast_install+set}" = set; then
1566
3011
  enableval="$enable_fast_install"
1567
3012
  p=${PACKAGE-default}
1568
 
case $enableval in
1569
 
yes) enable_fast_install=yes ;;
1570
 
no) enable_fast_install=no ;;
1571
 
*)
1572
 
  enable_fast_install=no
1573
 
  # Look at the argument we got.  We use all the common list separators.
1574
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1575
 
  for pkg in $enableval; do
1576
 
    if test "X$pkg" = "X$p"; then
1577
 
      enable_fast_install=yes
1578
 
    fi
1579
 
  done
1580
 
  IFS="$ac_save_ifs"
1581
 
  ;;
1582
 
esac
 
3013
    case $enableval in
 
3014
    yes) enable_fast_install=yes ;;
 
3015
    no) enable_fast_install=no ;;
 
3016
    *)
 
3017
      enable_fast_install=no
 
3018
      # Look at the argument we got.  We use all the common list separators.
 
3019
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3020
      for pkg in $enableval; do
 
3021
        IFS="$lt_save_ifs"
 
3022
        if test "X$pkg" = "X$p"; then
 
3023
          enable_fast_install=yes
 
3024
        fi
 
3025
      done
 
3026
      IFS="$lt_save_ifs"
 
3027
      ;;
 
3028
    esac
1583
3029
else
1584
3030
  enable_fast_install=yes
 
3031
fi;
 
3032
 
 
3033
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3034
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3035
if test "${lt_cv_path_SED+set}" = set; then
 
3036
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3037
else
 
3038
  # Loop through the user's path and test for sed and gsed.
 
3039
# Then use that list of sed's as ones to test for truncation.
 
3040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3041
for as_dir in $PATH
 
3042
do
 
3043
  IFS=$as_save_IFS
 
3044
  test -z "$as_dir" && as_dir=.
 
3045
  for lt_ac_prog in sed gsed; do
 
3046
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3047
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3048
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3049
      fi
 
3050
    done
 
3051
  done
 
3052
done
 
3053
lt_ac_max=0
 
3054
lt_ac_count=0
 
3055
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3056
# along with /bin/sed that truncates output.
 
3057
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3058
  test ! -f $lt_ac_sed && break
 
3059
  cat /dev/null > conftest.in
 
3060
  lt_ac_count=0
 
3061
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3062
  # Check for GNU sed and select it if it is found.
 
3063
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3064
    lt_cv_path_SED=$lt_ac_sed
 
3065
    break
 
3066
  fi
 
3067
  while true; do
 
3068
    cat conftest.in conftest.in >conftest.tmp
 
3069
    mv conftest.tmp conftest.in
 
3070
    cp conftest.in conftest.nl
 
3071
    echo >>conftest.nl
 
3072
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3073
    cmp -s conftest.out conftest.nl || break
 
3074
    # 10000 chars as input seems more than enough
 
3075
    test $lt_ac_count -gt 10 && break
 
3076
    lt_ac_count=`expr $lt_ac_count + 1`
 
3077
    if test $lt_ac_count -gt $lt_ac_max; then
 
3078
      lt_ac_max=$lt_ac_count
 
3079
      lt_cv_path_SED=$lt_ac_sed
 
3080
    fi
 
3081
  done
 
3082
done
 
3083
SED=$lt_cv_path_SED
 
3084
 
1585
3085
fi
1586
3086
 
1587
 
echo $ac_n "checking build system type""... $ac_c" 1>&6
1588
 
echo "configure:1589: checking build system type" >&5
1589
 
 
1590
 
build_alias=$build
1591
 
case "$build_alias" in
1592
 
NONE)
1593
 
  case $nonopt in
1594
 
  NONE) build_alias=$host_alias ;;
1595
 
  *) build_alias=$nonopt ;;
1596
 
  esac ;;
1597
 
esac
1598
 
 
1599
 
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1600
 
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1601
 
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1602
 
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603
 
echo "$ac_t""$build" 1>&6
 
3087
echo "$as_me:$LINENO: result: $SED" >&5
 
3088
echo "${ECHO_T}$SED" >&6
 
3089
 
1604
3090
 
1605
3091
# Check whether --with-gnu-ld or --without-gnu-ld was given.
1606
3092
if test "${with_gnu_ld+set}" = set; then
1608
3094
  test "$withval" = no || with_gnu_ld=yes
1609
3095
else
1610
3096
  with_gnu_ld=no
1611
 
fi
1612
 
 
 
3097
fi;
1613
3098
ac_prog=ld
1614
3099
if test "$GCC" = yes; then
1615
3100
  # Check if gcc -print-prog-name=ld gives a path.
1616
 
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1617
 
echo "configure:1618: checking for ld used by GCC" >&5
 
3101
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3102
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1618
3103
  case $host in
1619
3104
  *-*-mingw*)
1620
3105
    # gcc leaves a trailing carriage return which upsets mingw
1624
3109
  esac
1625
3110
  case $ac_prog in
1626
3111
    # Accept absolute paths.
1627
 
    [\\/]* | [A-Za-z]:[\\/]*)
 
3112
    [\\/]* | ?:[\\/]*)
1628
3113
      re_direlt='/[^/][^/]*/\.\./'
1629
 
      # Canonicalize the path of ld
1630
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
3114
      # Canonicalize the pathname of ld
 
3115
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1631
3116
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1632
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
3117
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1633
3118
      done
1634
3119
      test -z "$LD" && LD="$ac_prog"
1635
3120
      ;;
1643
3128
    ;;
1644
3129
  esac
1645
3130
elif test "$with_gnu_ld" = yes; then
1646
 
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1647
 
echo "configure:1648: checking for GNU ld" >&5
 
3131
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3132
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1648
3133
else
1649
 
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1650
 
echo "configure:1651: checking for non-GNU ld" >&5
 
3134
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3135
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1651
3136
fi
1652
 
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1653
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3137
if test "${lt_cv_path_LD+set}" = set; then
 
3138
  echo $ECHO_N "(cached) $ECHO_C" >&6
1654
3139
else
1655
3140
  if test -z "$LD"; then
1656
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
3141
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1657
3142
  for ac_dir in $PATH; do
 
3143
    IFS="$lt_save_ifs"
1658
3144
    test -z "$ac_dir" && ac_dir=.
1659
3145
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1660
3146
      lt_cv_path_LD="$ac_dir/$ac_prog"
1661
3147
      # Check to see if the program is GNU ld.  I'd rather use --version,
1662
3148
      # but apparently some GNU ld's only accept -v.
1663
3149
      # Break only if it was the GNU/non-GNU ld that we prefer.
1664
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3150
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3151
      *GNU* | *'with BFD'*)
1665
3152
        test "$with_gnu_ld" != no && break
1666
 
      else
 
3153
        ;;
 
3154
      *)
1667
3155
        test "$with_gnu_ld" != yes && break
1668
 
      fi
 
3156
        ;;
 
3157
      esac
1669
3158
    fi
1670
3159
  done
1671
 
  IFS="$ac_save_ifs"
 
3160
  IFS="$lt_save_ifs"
1672
3161
else
1673
3162
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
1674
3163
fi
1676
3165
 
1677
3166
LD="$lt_cv_path_LD"
1678
3167
if test -n "$LD"; then
1679
 
  echo "$ac_t""$LD" 1>&6
 
3168
  echo "$as_me:$LINENO: result: $LD" >&5
 
3169
echo "${ECHO_T}$LD" >&6
1680
3170
else
1681
 
  echo "$ac_t""no" 1>&6
 
3171
  echo "$as_me:$LINENO: result: no" >&5
 
3172
echo "${ECHO_T}no" >&6
1682
3173
fi
1683
 
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1684
 
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1685
 
echo "configure:1686: checking if the linker ($LD) is GNU ld" >&5
1686
 
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1687
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3174
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3175
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3176
   { (exit 1); exit 1; }; }
 
3177
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3178
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3179
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3180
  echo $ECHO_N "(cached) $ECHO_C" >&6
1688
3181
else
1689
3182
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1690
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3183
case `$LD -v 2>&1 </dev/null` in
 
3184
*GNU* | *'with BFD'*)
1691
3185
  lt_cv_prog_gnu_ld=yes
1692
 
else
 
3186
  ;;
 
3187
*)
1693
3188
  lt_cv_prog_gnu_ld=no
1694
 
fi
1695
 
fi
1696
 
 
1697
 
echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
 
3189
  ;;
 
3190
esac
 
3191
fi
 
3192
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3193
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1698
3194
with_gnu_ld=$lt_cv_prog_gnu_ld
1699
3195
 
1700
3196
 
1701
 
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1702
 
echo "configure:1703: checking for $LD option to reload object files" >&5
1703
 
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1704
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3197
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3198
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3199
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3200
  echo $ECHO_N "(cached) $ECHO_C" >&6
1705
3201
else
1706
3202
  lt_cv_ld_reload_flag='-r'
1707
3203
fi
1708
 
 
1709
 
echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
 
3204
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3205
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1710
3206
reload_flag=$lt_cv_ld_reload_flag
1711
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
3207
case $reload_flag in
 
3208
"" | " "*) ;;
 
3209
*) reload_flag=" $reload_flag" ;;
 
3210
esac
 
3211
reload_cmds='$LD$reload_flag -o $output$reload_objs'
1712
3212
 
1713
 
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1714
 
echo "configure:1715: checking for BSD-compatible nm" >&5
1715
 
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1716
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3213
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3214
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3215
if test "${lt_cv_path_NM+set}" = set; then
 
3216
  echo $ECHO_N "(cached) $ECHO_C" >&6
1717
3217
else
1718
3218
  if test -n "$NM"; then
1719
3219
  # Let the user override the test.
1720
3220
  lt_cv_path_NM="$NM"
1721
3221
else
1722
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
3222
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1723
3223
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3224
    IFS="$lt_save_ifs"
1724
3225
    test -z "$ac_dir" && ac_dir=.
1725
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
1726
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
3226
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3227
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1727
3228
      # Check to see if the nm accepts a BSD-compat flag.
1728
3229
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1729
3230
      #   nm: unknown option "B" ignored
1730
3231
      # Tru64's nm complains that /dev/null is an invalid object file
1731
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
3232
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3233
      */dev/null* | *'Invalid file or object type'*)
1732
3234
        lt_cv_path_NM="$tmp_nm -B"
1733
3235
        break
1734
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1735
 
        lt_cv_path_NM="$tmp_nm -p"
1736
 
        break
1737
 
      else
1738
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1739
 
        continue # so that we can try to find one that supports BSD flags
1740
 
      fi
 
3236
        ;;
 
3237
      *)
 
3238
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3239
        */dev/null*)
 
3240
          lt_cv_path_NM="$tmp_nm -p"
 
3241
          break
 
3242
          ;;
 
3243
        *)
 
3244
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3245
          continue # so that we can try to find one that supports BSD flags
 
3246
          ;;
 
3247
        esac
 
3248
      esac
1741
3249
    fi
1742
3250
  done
1743
 
  IFS="$ac_save_ifs"
 
3251
  IFS="$lt_save_ifs"
1744
3252
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1745
3253
fi
1746
3254
fi
1747
 
 
 
3255
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3256
echo "${ECHO_T}$lt_cv_path_NM" >&6
1748
3257
NM="$lt_cv_path_NM"
1749
 
echo "$ac_t""$NM" 1>&6
1750
3258
 
1751
 
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1752
 
echo "configure:1753: checking how to recognise dependant libraries" >&5
1753
 
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1754
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3259
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3260
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3261
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3262
  echo $ECHO_N "(cached) $ECHO_C" >&6
1755
3263
else
1756
3264
  lt_cv_file_magic_cmd='$MAGIC_CMD'
1757
3265
lt_cv_file_magic_test_file=
1762
3270
# `unknown' -- same as none, but documents that we really don't know.
1763
3271
# 'pass_all' -- all dependencies passed with no checks.
1764
3272
# 'test_compile' -- check by making test program.
1765
 
# ['file_magic [regex]'] -- check by looking for files in library path
1766
 
# which responds to the $file_magic_cmd with a given egrep regex.
 
3273
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3274
# which responds to the $file_magic_cmd with a given extended regex.
1767
3275
# If you have `file' or equivalent on your system and you're not sure
1768
3276
# whether `pass_all' will *always* work, you probably want this one.
1769
3277
 
1783
3291
  ;;
1784
3292
 
1785
3293
cygwin* | mingw* | pw32*)
1786
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1787
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3294
  # win32_libid is a shell function defined in ltmain.sh
 
3295
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3296
  lt_cv_file_magic_cmd='win32_libid'
1788
3297
  ;;
1789
3298
 
1790
3299
darwin* | rhapsody*)
 
3300
  # this will be overwritten by pass_all, but leave it in just in case
1791
3301
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1792
3302
  lt_cv_file_magic_cmd='/usr/bin/file -L'
1793
3303
  case "$host_os" in
1794
 
  rhapsody* | darwin1.012)
1795
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
3304
  rhapsody* | darwin1.[012])
 
3305
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
1796
3306
    ;;
1797
3307
  *) # Darwin 1.3 on
1798
3308
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1799
3309
    ;;
1800
3310
  esac
 
3311
  lt_cv_deplibs_check_method=pass_all
1801
3312
  ;;
1802
3313
 
1803
 
freebsd*)
 
3314
freebsd* | kfreebsd*-gnu)
1804
3315
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1805
3316
    case $host_cpu in
1806
3317
    i*86 )
1820
3331
  lt_cv_deplibs_check_method=pass_all
1821
3332
  ;;
1822
3333
 
1823
 
hpux10.20*|hpux11*)
1824
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3334
hpux10.20* | hpux11*)
1825
3335
  lt_cv_file_magic_cmd=/usr/bin/file
1826
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3336
  case "$host_cpu" in
 
3337
  ia64*)
 
3338
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3339
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3340
    ;;
 
3341
  hppa*64*)
 
3342
    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]'
 
3343
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3344
    ;;
 
3345
  *)
 
3346
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3347
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3348
    ;;
 
3349
  esac
1827
3350
  ;;
1828
3351
 
1829
 
irix5* | irix6*)
 
3352
irix5* | irix6* | nonstopux*)
1830
3353
  case $host_os in
1831
 
  irix5*)
 
3354
  irix5* | nonstopux*)
1832
3355
    # this will be overridden with pass_all, but let us keep it just in case
1833
3356
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1834
3357
    ;;
1848
3371
  ;;
1849
3372
 
1850
3373
# This must be Linux ELF.
1851
 
linux-gnu*)
 
3374
linux*)
1852
3375
  case $host_cpu in
1853
 
  alpha* | i*86 | powerpc* | sparc* | ia64* )
 
3376
  alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
1854
3377
    lt_cv_deplibs_check_method=pass_all ;;
1855
3378
  *)
1856
3379
    # glibc up to 2.1.1 does not perform some relocations on ARM
1861
3384
 
1862
3385
netbsd*)
1863
3386
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1864
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
3387
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1865
3388
  else
1866
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
3389
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1867
3390
  fi
1868
3391
  ;;
1869
3392
 
1873
3396
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
1874
3397
  ;;
1875
3398
 
 
3399
nto-qnx*)
 
3400
  lt_cv_deplibs_check_method=unknown
 
3401
  ;;
 
3402
 
 
3403
openbsd*)
 
3404
  lt_cv_file_magic_cmd=/usr/bin/file
 
3405
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3406
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3407
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3408
  else
 
3409
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3410
  fi
 
3411
  ;;
 
3412
 
1876
3413
osf3* | osf4* | osf5*)
1877
3414
  # this will be overridden with pass_all, but let us keep it just in case
1878
3415
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1889
3426
  lt_cv_file_magic_test_file=/lib/libc.so
1890
3427
  ;;
1891
3428
 
1892
 
sysv5uw[78]* | sysv4*uw2*)
1893
 
  lt_cv_deplibs_check_method=pass_all
1894
 
  ;;
1895
 
 
1896
3429
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1897
3430
  case $host_vendor in
1898
3431
  motorola)
1911
3444
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1912
3445
    lt_cv_file_magic_test_file=/lib/libc.so
1913
3446
    ;;
 
3447
  siemens)
 
3448
    lt_cv_deplibs_check_method=pass_all
 
3449
    ;;
1914
3450
  esac
1915
3451
  ;;
 
3452
 
 
3453
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3454
  lt_cv_deplibs_check_method=pass_all
 
3455
  ;;
1916
3456
esac
1917
3457
 
1918
3458
fi
1919
 
 
1920
 
echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
 
3459
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3460
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1921
3461
file_magic_cmd=$lt_cv_file_magic_cmd
1922
3462
deplibs_check_method=$lt_cv_deplibs_check_method
1923
 
 
1924
 
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1925
 
echo "configure:1926: checking for object suffix" >&5
1926
 
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1927
 
  echo $ac_n "(cached) $ac_c" 1>&6
1928
 
else
1929
 
  rm -f conftest*
1930
 
echo 'int i = 1;' > conftest.$ac_ext
1931
 
if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1932
 
  for ac_file in conftest.*; do
1933
 
    case $ac_file in
1934
 
    *.c) ;;
1935
 
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1936
 
    esac
1937
 
  done
1938
 
else
1939
 
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1940
 
fi
1941
 
rm -f conftest*
1942
 
fi
1943
 
 
1944
 
echo "$ac_t""$ac_cv_objext" 1>&6
1945
 
OBJEXT=$ac_cv_objext
1946
 
ac_objext=$ac_cv_objext
1947
 
 
1948
 
 
1949
 
 
1950
 
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1951
 
echo "configure:1952: checking for executable suffix" >&5
1952
 
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1953
 
  echo $ac_n "(cached) $ac_c" 1>&6
1954
 
else
1955
 
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1956
 
  ac_cv_exeext=.exe
1957
 
else
1958
 
  rm -f conftest*
1959
 
  echo 'int main () { return 0; }' > conftest.$ac_ext
1960
 
  ac_cv_exeext=
1961
 
  if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1962
 
    for file in conftest.*; do
1963
 
      case $file in
1964
 
      *.c | *.o | *.obj) ;;
1965
 
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1966
 
      esac
1967
 
    done
1968
 
  else
1969
 
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1970
 
  fi
1971
 
  rm -f conftest*
1972
 
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1973
 
fi
1974
 
fi
1975
 
 
1976
 
EXEEXT=""
1977
 
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1978
 
echo "$ac_t""${ac_cv_exeext}" 1>&6
1979
 
ac_exeext=$EXEEXT
1980
 
 
1981
 
if test $host != $build; then
1982
 
  ac_tool_prefix=${host_alias}-
1983
 
else
1984
 
  ac_tool_prefix=
 
3463
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3464
 
 
3465
 
 
3466
 
 
3467
 
 
3468
# If no C compiler was specified, use CC.
 
3469
LTCC=${LTCC-"$CC"}
 
3470
 
 
3471
# Allow CC to be a program name with arguments.
 
3472
compiler=$CC
 
3473
 
 
3474
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3475
if test "${enable_libtool_lock+set}" = set; then
 
3476
  enableval="$enable_libtool_lock"
 
3477
 
 
3478
fi;
 
3479
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3480
 
 
3481
# Some flags need to be propagated to the compiler or linker for good
 
3482
# libtool support.
 
3483
case $host in
 
3484
ia64-*-hpux*)
 
3485
  # Find out which ABI we are using.
 
3486
  echo 'int i;' > conftest.$ac_ext
 
3487
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3488
  (eval $ac_compile) 2>&5
 
3489
  ac_status=$?
 
3490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3491
  (exit $ac_status); }; then
 
3492
    case `/usr/bin/file conftest.$ac_objext` in
 
3493
    *ELF-32*)
 
3494
      HPUX_IA64_MODE="32"
 
3495
      ;;
 
3496
    *ELF-64*)
 
3497
      HPUX_IA64_MODE="64"
 
3498
      ;;
 
3499
    esac
 
3500
  fi
 
3501
  rm -rf conftest*
 
3502
  ;;
 
3503
*-*-irix6*)
 
3504
  # Find out which ABI we are using.
 
3505
  echo '#line 3505 "configure"' > conftest.$ac_ext
 
3506
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3507
  (eval $ac_compile) 2>&5
 
3508
  ac_status=$?
 
3509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3510
  (exit $ac_status); }; then
 
3511
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3512
    case `/usr/bin/file conftest.$ac_objext` in
 
3513
    *32-bit*)
 
3514
      LD="${LD-ld} -melf32bsmip"
 
3515
      ;;
 
3516
    *N32*)
 
3517
      LD="${LD-ld} -melf32bmipn32"
 
3518
      ;;
 
3519
    *64-bit*)
 
3520
      LD="${LD-ld} -melf64bmip"
 
3521
      ;;
 
3522
    esac
 
3523
   else
 
3524
    case `/usr/bin/file conftest.$ac_objext` in
 
3525
    *32-bit*)
 
3526
      LD="${LD-ld} -32"
 
3527
      ;;
 
3528
    *N32*)
 
3529
      LD="${LD-ld} -n32"
 
3530
      ;;
 
3531
    *64-bit*)
 
3532
      LD="${LD-ld} -64"
 
3533
      ;;
 
3534
    esac
 
3535
   fi
 
3536
  fi
 
3537
  rm -rf conftest*
 
3538
  ;;
 
3539
 
 
3540
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3541
  # Find out which ABI we are using.
 
3542
  echo 'int i;' > conftest.$ac_ext
 
3543
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3544
  (eval $ac_compile) 2>&5
 
3545
  ac_status=$?
 
3546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3547
  (exit $ac_status); }; then
 
3548
    case "`/usr/bin/file conftest.o`" in
 
3549
    *32-bit*)
 
3550
      case $host in
 
3551
        x86_64-*linux*)
 
3552
          LD="${LD-ld} -m elf_i386"
 
3553
          ;;
 
3554
        ppc64-*linux*|powerpc64-*linux*)
 
3555
          LD="${LD-ld} -m elf32ppclinux"
 
3556
          ;;
 
3557
        s390x-*linux*)
 
3558
          LD="${LD-ld} -m elf_s390"
 
3559
          ;;
 
3560
        sparc64-*linux*)
 
3561
          LD="${LD-ld} -m elf32_sparc"
 
3562
          ;;
 
3563
      esac
 
3564
      ;;
 
3565
    *64-bit*)
 
3566
      case $host in
 
3567
        x86_64-*linux*)
 
3568
          LD="${LD-ld} -m elf_x86_64"
 
3569
          ;;
 
3570
        ppc*-*linux*|powerpc*-*linux*)
 
3571
          LD="${LD-ld} -m elf64ppc"
 
3572
          ;;
 
3573
        s390*-*linux*)
 
3574
          LD="${LD-ld} -m elf64_s390"
 
3575
          ;;
 
3576
        sparc*-*linux*)
 
3577
          LD="${LD-ld} -m elf64_sparc"
 
3578
          ;;
 
3579
      esac
 
3580
      ;;
 
3581
    esac
 
3582
  fi
 
3583
  rm -rf conftest*
 
3584
  ;;
 
3585
 
 
3586
*-*-sco3.2v5*)
 
3587
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3588
  SAVE_CFLAGS="$CFLAGS"
 
3589
  CFLAGS="$CFLAGS -belf"
 
3590
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3591
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3592
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3593
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3594
else
 
3595
  ac_ext=c
 
3596
ac_cpp='$CPP $CPPFLAGS'
 
3597
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3598
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3599
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3600
 
 
3601
     cat >conftest.$ac_ext <<_ACEOF
 
3602
#line $LINENO "configure"
 
3603
/* confdefs.h.  */
 
3604
_ACEOF
 
3605
cat confdefs.h >>conftest.$ac_ext
 
3606
cat >>conftest.$ac_ext <<_ACEOF
 
3607
/* end confdefs.h.  */
 
3608
 
 
3609
int
 
3610
main ()
 
3611
{
 
3612
 
 
3613
  ;
 
3614
  return 0;
 
3615
}
 
3616
_ACEOF
 
3617
rm -f conftest.$ac_objext conftest$ac_exeext
 
3618
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3619
  (eval $ac_link) 2>&5
 
3620
  ac_status=$?
 
3621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3622
  (exit $ac_status); } &&
 
3623
         { ac_try='test -s conftest$ac_exeext'
 
3624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3625
  (eval $ac_try) 2>&5
 
3626
  ac_status=$?
 
3627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3628
  (exit $ac_status); }; }; then
 
3629
  lt_cv_cc_needs_belf=yes
 
3630
else
 
3631
  echo "$as_me: failed program was:" >&5
 
3632
sed 's/^/| /' conftest.$ac_ext >&5
 
3633
 
 
3634
lt_cv_cc_needs_belf=no
 
3635
fi
 
3636
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3637
     ac_ext=c
 
3638
ac_cpp='$CPP $CPPFLAGS'
 
3639
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3640
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3641
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3642
 
 
3643
fi
 
3644
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3645
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3646
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3647
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3648
    CFLAGS="$SAVE_CFLAGS"
 
3649
  fi
 
3650
  ;;
 
3651
 
 
3652
esac
 
3653
 
 
3654
need_locks="$enable_libtool_lock"
 
3655
 
 
3656
 
 
3657
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3658
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3659
if test "${ac_cv_header_stdc+set}" = set; then
 
3660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3661
else
 
3662
  cat >conftest.$ac_ext <<_ACEOF
 
3663
#line $LINENO "configure"
 
3664
/* confdefs.h.  */
 
3665
_ACEOF
 
3666
cat confdefs.h >>conftest.$ac_ext
 
3667
cat >>conftest.$ac_ext <<_ACEOF
 
3668
/* end confdefs.h.  */
 
3669
#include <stdlib.h>
 
3670
#include <stdarg.h>
 
3671
#include <string.h>
 
3672
#include <float.h>
 
3673
 
 
3674
int
 
3675
main ()
 
3676
{
 
3677
 
 
3678
  ;
 
3679
  return 0;
 
3680
}
 
3681
_ACEOF
 
3682
rm -f conftest.$ac_objext
 
3683
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3684
  (eval $ac_compile) 2>&5
 
3685
  ac_status=$?
 
3686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3687
  (exit $ac_status); } &&
 
3688
         { ac_try='test -s conftest.$ac_objext'
 
3689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3690
  (eval $ac_try) 2>&5
 
3691
  ac_status=$?
 
3692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3693
  (exit $ac_status); }; }; then
 
3694
  ac_cv_header_stdc=yes
 
3695
else
 
3696
  echo "$as_me: failed program was:" >&5
 
3697
sed 's/^/| /' conftest.$ac_ext >&5
 
3698
 
 
3699
ac_cv_header_stdc=no
 
3700
fi
 
3701
rm -f conftest.$ac_objext conftest.$ac_ext
 
3702
 
 
3703
if test $ac_cv_header_stdc = yes; then
 
3704
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3705
  cat >conftest.$ac_ext <<_ACEOF
 
3706
#line $LINENO "configure"
 
3707
/* confdefs.h.  */
 
3708
_ACEOF
 
3709
cat confdefs.h >>conftest.$ac_ext
 
3710
cat >>conftest.$ac_ext <<_ACEOF
 
3711
/* end confdefs.h.  */
 
3712
#include <string.h>
 
3713
 
 
3714
_ACEOF
 
3715
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3716
  $EGREP "memchr" >/dev/null 2>&1; then
 
3717
  :
 
3718
else
 
3719
  ac_cv_header_stdc=no
 
3720
fi
 
3721
rm -f conftest*
 
3722
 
 
3723
fi
 
3724
 
 
3725
if test $ac_cv_header_stdc = yes; then
 
3726
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3727
  cat >conftest.$ac_ext <<_ACEOF
 
3728
#line $LINENO "configure"
 
3729
/* confdefs.h.  */
 
3730
_ACEOF
 
3731
cat confdefs.h >>conftest.$ac_ext
 
3732
cat >>conftest.$ac_ext <<_ACEOF
 
3733
/* end confdefs.h.  */
 
3734
#include <stdlib.h>
 
3735
 
 
3736
_ACEOF
 
3737
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3738
  $EGREP "free" >/dev/null 2>&1; then
 
3739
  :
 
3740
else
 
3741
  ac_cv_header_stdc=no
 
3742
fi
 
3743
rm -f conftest*
 
3744
 
 
3745
fi
 
3746
 
 
3747
if test $ac_cv_header_stdc = yes; then
 
3748
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3749
  if test "$cross_compiling" = yes; then
 
3750
  :
 
3751
else
 
3752
  cat >conftest.$ac_ext <<_ACEOF
 
3753
#line $LINENO "configure"
 
3754
/* confdefs.h.  */
 
3755
_ACEOF
 
3756
cat confdefs.h >>conftest.$ac_ext
 
3757
cat >>conftest.$ac_ext <<_ACEOF
 
3758
/* end confdefs.h.  */
 
3759
#include <ctype.h>
 
3760
#if ((' ' & 0x0FF) == 0x020)
 
3761
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3762
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3763
#else
 
3764
# define ISLOWER(c) \
 
3765
                   (('a' <= (c) && (c) <= 'i') \
 
3766
                     || ('j' <= (c) && (c) <= 'r') \
 
3767
                     || ('s' <= (c) && (c) <= 'z'))
 
3768
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3769
#endif
 
3770
 
 
3771
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3772
int
 
3773
main ()
 
3774
{
 
3775
  int i;
 
3776
  for (i = 0; i < 256; i++)
 
3777
    if (XOR (islower (i), ISLOWER (i))
 
3778
        || toupper (i) != TOUPPER (i))
 
3779
      exit(2);
 
3780
  exit (0);
 
3781
}
 
3782
_ACEOF
 
3783
rm -f conftest$ac_exeext
 
3784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3785
  (eval $ac_link) 2>&5
 
3786
  ac_status=$?
 
3787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3788
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3790
  (eval $ac_try) 2>&5
 
3791
  ac_status=$?
 
3792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3793
  (exit $ac_status); }; }; then
 
3794
  :
 
3795
else
 
3796
  echo "$as_me: program exited with status $ac_status" >&5
 
3797
echo "$as_me: failed program was:" >&5
 
3798
sed 's/^/| /' conftest.$ac_ext >&5
 
3799
 
 
3800
( exit $ac_status )
 
3801
ac_cv_header_stdc=no
 
3802
fi
 
3803
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3804
fi
 
3805
fi
 
3806
fi
 
3807
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3808
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3809
if test $ac_cv_header_stdc = yes; then
 
3810
 
 
3811
cat >>confdefs.h <<\_ACEOF
 
3812
#define STDC_HEADERS 1
 
3813
_ACEOF
 
3814
 
 
3815
fi
 
3816
 
 
3817
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3818
 
 
3819
 
 
3820
 
 
3821
 
 
3822
 
 
3823
 
 
3824
 
 
3825
 
 
3826
 
 
3827
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3828
                  inttypes.h stdint.h unistd.h
 
3829
do
 
3830
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3831
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3832
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3833
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3835
else
 
3836
  cat >conftest.$ac_ext <<_ACEOF
 
3837
#line $LINENO "configure"
 
3838
/* confdefs.h.  */
 
3839
_ACEOF
 
3840
cat confdefs.h >>conftest.$ac_ext
 
3841
cat >>conftest.$ac_ext <<_ACEOF
 
3842
/* end confdefs.h.  */
 
3843
$ac_includes_default
 
3844
 
 
3845
#include <$ac_header>
 
3846
_ACEOF
 
3847
rm -f conftest.$ac_objext
 
3848
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3849
  (eval $ac_compile) 2>&5
 
3850
  ac_status=$?
 
3851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3852
  (exit $ac_status); } &&
 
3853
         { ac_try='test -s conftest.$ac_objext'
 
3854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3855
  (eval $ac_try) 2>&5
 
3856
  ac_status=$?
 
3857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3858
  (exit $ac_status); }; }; then
 
3859
  eval "$as_ac_Header=yes"
 
3860
else
 
3861
  echo "$as_me: failed program was:" >&5
 
3862
sed 's/^/| /' conftest.$ac_ext >&5
 
3863
 
 
3864
eval "$as_ac_Header=no"
 
3865
fi
 
3866
rm -f conftest.$ac_objext conftest.$ac_ext
 
3867
fi
 
3868
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3869
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3870
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3871
  cat >>confdefs.h <<_ACEOF
 
3872
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3873
_ACEOF
 
3874
 
 
3875
fi
 
3876
 
 
3877
done
 
3878
 
 
3879
 
 
3880
 
 
3881
for ac_header in dlfcn.h
 
3882
do
 
3883
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3884
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3885
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3886
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3887
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3888
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3889
fi
 
3890
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3891
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3892
else
 
3893
  # Is the header compilable?
 
3894
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3895
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3896
cat >conftest.$ac_ext <<_ACEOF
 
3897
#line $LINENO "configure"
 
3898
/* confdefs.h.  */
 
3899
_ACEOF
 
3900
cat confdefs.h >>conftest.$ac_ext
 
3901
cat >>conftest.$ac_ext <<_ACEOF
 
3902
/* end confdefs.h.  */
 
3903
$ac_includes_default
 
3904
#include <$ac_header>
 
3905
_ACEOF
 
3906
rm -f conftest.$ac_objext
 
3907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3908
  (eval $ac_compile) 2>&5
 
3909
  ac_status=$?
 
3910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3911
  (exit $ac_status); } &&
 
3912
         { ac_try='test -s conftest.$ac_objext'
 
3913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3914
  (eval $ac_try) 2>&5
 
3915
  ac_status=$?
 
3916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3917
  (exit $ac_status); }; }; then
 
3918
  ac_header_compiler=yes
 
3919
else
 
3920
  echo "$as_me: failed program was:" >&5
 
3921
sed 's/^/| /' conftest.$ac_ext >&5
 
3922
 
 
3923
ac_header_compiler=no
 
3924
fi
 
3925
rm -f conftest.$ac_objext conftest.$ac_ext
 
3926
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3927
echo "${ECHO_T}$ac_header_compiler" >&6
 
3928
 
 
3929
# Is the header present?
 
3930
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3931
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3932
cat >conftest.$ac_ext <<_ACEOF
 
3933
#line $LINENO "configure"
 
3934
/* confdefs.h.  */
 
3935
_ACEOF
 
3936
cat confdefs.h >>conftest.$ac_ext
 
3937
cat >>conftest.$ac_ext <<_ACEOF
 
3938
/* end confdefs.h.  */
 
3939
#include <$ac_header>
 
3940
_ACEOF
 
3941
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3942
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3943
  ac_status=$?
 
3944
  grep -v '^ *+' conftest.er1 >conftest.err
 
3945
  rm -f conftest.er1
 
3946
  cat conftest.err >&5
 
3947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3948
  (exit $ac_status); } >/dev/null; then
 
3949
  if test -s conftest.err; then
 
3950
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3951
  else
 
3952
    ac_cpp_err=
 
3953
  fi
 
3954
else
 
3955
  ac_cpp_err=yes
 
3956
fi
 
3957
if test -z "$ac_cpp_err"; then
 
3958
  ac_header_preproc=yes
 
3959
else
 
3960
  echo "$as_me: failed program was:" >&5
 
3961
sed 's/^/| /' conftest.$ac_ext >&5
 
3962
 
 
3963
  ac_header_preproc=no
 
3964
fi
 
3965
rm -f conftest.err conftest.$ac_ext
 
3966
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3967
echo "${ECHO_T}$ac_header_preproc" >&6
 
3968
 
 
3969
# So?  What about this header?
 
3970
case $ac_header_compiler:$ac_header_preproc in
 
3971
  yes:no )
 
3972
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3973
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3974
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3975
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3976
    (
 
3977
      cat <<\_ASBOX
 
3978
## ------------------------------------ ##
 
3979
## Report this to bug-autoconf@gnu.org. ##
 
3980
## ------------------------------------ ##
 
3981
_ASBOX
 
3982
    ) |
 
3983
      sed "s/^/$as_me: WARNING:     /" >&2
 
3984
    ;;
 
3985
  no:yes )
 
3986
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3987
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3988
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
3989
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
3990
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3991
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3992
    (
 
3993
      cat <<\_ASBOX
 
3994
## ------------------------------------ ##
 
3995
## Report this to bug-autoconf@gnu.org. ##
 
3996
## ------------------------------------ ##
 
3997
_ASBOX
 
3998
    ) |
 
3999
      sed "s/^/$as_me: WARNING:     /" >&2
 
4000
    ;;
 
4001
esac
 
4002
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4003
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4004
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4006
else
 
4007
  eval "$as_ac_Header=$ac_header_preproc"
 
4008
fi
 
4009
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4010
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4011
 
 
4012
fi
 
4013
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4014
  cat >>confdefs.h <<_ACEOF
 
4015
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4016
_ACEOF
 
4017
 
 
4018
fi
 
4019
 
 
4020
done
 
4021
 
 
4022
ac_ext=cc
 
4023
ac_cpp='$CXXCPP $CPPFLAGS'
 
4024
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4025
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4026
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4027
if test -n "$ac_tool_prefix"; then
 
4028
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4029
  do
 
4030
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4031
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4032
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4033
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4034
if test "${ac_cv_prog_CXX+set}" = set; then
 
4035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4036
else
 
4037
  if test -n "$CXX"; then
 
4038
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4039
else
 
4040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4041
for as_dir in $PATH
 
4042
do
 
4043
  IFS=$as_save_IFS
 
4044
  test -z "$as_dir" && as_dir=.
 
4045
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4046
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4047
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4048
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4049
    break 2
 
4050
  fi
 
4051
done
 
4052
done
 
4053
 
 
4054
fi
 
4055
fi
 
4056
CXX=$ac_cv_prog_CXX
 
4057
if test -n "$CXX"; then
 
4058
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4059
echo "${ECHO_T}$CXX" >&6
 
4060
else
 
4061
  echo "$as_me:$LINENO: result: no" >&5
 
4062
echo "${ECHO_T}no" >&6
 
4063
fi
 
4064
 
 
4065
    test -n "$CXX" && break
 
4066
  done
 
4067
fi
 
4068
if test -z "$CXX"; then
 
4069
  ac_ct_CXX=$CXX
 
4070
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4071
do
 
4072
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4073
set dummy $ac_prog; ac_word=$2
 
4074
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4075
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4076
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4078
else
 
4079
  if test -n "$ac_ct_CXX"; then
 
4080
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4081
else
 
4082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4083
for as_dir in $PATH
 
4084
do
 
4085
  IFS=$as_save_IFS
 
4086
  test -z "$as_dir" && as_dir=.
 
4087
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4088
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4089
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4090
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4091
    break 2
 
4092
  fi
 
4093
done
 
4094
done
 
4095
 
 
4096
fi
 
4097
fi
 
4098
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4099
if test -n "$ac_ct_CXX"; then
 
4100
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4101
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4102
else
 
4103
  echo "$as_me:$LINENO: result: no" >&5
 
4104
echo "${ECHO_T}no" >&6
 
4105
fi
 
4106
 
 
4107
  test -n "$ac_ct_CXX" && break
 
4108
done
 
4109
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4110
 
 
4111
  CXX=$ac_ct_CXX
 
4112
fi
 
4113
 
 
4114
 
 
4115
# Provide some information about the compiler.
 
4116
echo "$as_me:$LINENO:" \
 
4117
     "checking for C++ compiler version" >&5
 
4118
ac_compiler=`set X $ac_compile; echo $2`
 
4119
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4120
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4121
  ac_status=$?
 
4122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4123
  (exit $ac_status); }
 
4124
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4125
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4126
  ac_status=$?
 
4127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4128
  (exit $ac_status); }
 
4129
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4130
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4131
  ac_status=$?
 
4132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4133
  (exit $ac_status); }
 
4134
 
 
4135
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4136
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4137
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4138
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4139
else
 
4140
  cat >conftest.$ac_ext <<_ACEOF
 
4141
#line $LINENO "configure"
 
4142
/* confdefs.h.  */
 
4143
_ACEOF
 
4144
cat confdefs.h >>conftest.$ac_ext
 
4145
cat >>conftest.$ac_ext <<_ACEOF
 
4146
/* end confdefs.h.  */
 
4147
 
 
4148
int
 
4149
main ()
 
4150
{
 
4151
#ifndef __GNUC__
 
4152
       choke me
 
4153
#endif
 
4154
 
 
4155
  ;
 
4156
  return 0;
 
4157
}
 
4158
_ACEOF
 
4159
rm -f conftest.$ac_objext
 
4160
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4161
  (eval $ac_compile) 2>&5
 
4162
  ac_status=$?
 
4163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4164
  (exit $ac_status); } &&
 
4165
         { ac_try='test -s conftest.$ac_objext'
 
4166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4167
  (eval $ac_try) 2>&5
 
4168
  ac_status=$?
 
4169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4170
  (exit $ac_status); }; }; then
 
4171
  ac_compiler_gnu=yes
 
4172
else
 
4173
  echo "$as_me: failed program was:" >&5
 
4174
sed 's/^/| /' conftest.$ac_ext >&5
 
4175
 
 
4176
ac_compiler_gnu=no
 
4177
fi
 
4178
rm -f conftest.$ac_objext conftest.$ac_ext
 
4179
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4180
 
 
4181
fi
 
4182
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4183
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4184
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4185
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4186
ac_save_CXXFLAGS=$CXXFLAGS
 
4187
CXXFLAGS="-g"
 
4188
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4189
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4190
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4192
else
 
4193
  cat >conftest.$ac_ext <<_ACEOF
 
4194
#line $LINENO "configure"
 
4195
/* confdefs.h.  */
 
4196
_ACEOF
 
4197
cat confdefs.h >>conftest.$ac_ext
 
4198
cat >>conftest.$ac_ext <<_ACEOF
 
4199
/* end confdefs.h.  */
 
4200
 
 
4201
int
 
4202
main ()
 
4203
{
 
4204
 
 
4205
  ;
 
4206
  return 0;
 
4207
}
 
4208
_ACEOF
 
4209
rm -f conftest.$ac_objext
 
4210
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4211
  (eval $ac_compile) 2>&5
 
4212
  ac_status=$?
 
4213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4214
  (exit $ac_status); } &&
 
4215
         { ac_try='test -s conftest.$ac_objext'
 
4216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4217
  (eval $ac_try) 2>&5
 
4218
  ac_status=$?
 
4219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4220
  (exit $ac_status); }; }; then
 
4221
  ac_cv_prog_cxx_g=yes
 
4222
else
 
4223
  echo "$as_me: failed program was:" >&5
 
4224
sed 's/^/| /' conftest.$ac_ext >&5
 
4225
 
 
4226
ac_cv_prog_cxx_g=no
 
4227
fi
 
4228
rm -f conftest.$ac_objext conftest.$ac_ext
 
4229
fi
 
4230
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4231
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4232
if test "$ac_test_CXXFLAGS" = set; then
 
4233
  CXXFLAGS=$ac_save_CXXFLAGS
 
4234
elif test $ac_cv_prog_cxx_g = yes; then
 
4235
  if test "$GXX" = yes; then
 
4236
    CXXFLAGS="-g -O2"
 
4237
  else
 
4238
    CXXFLAGS="-g"
 
4239
  fi
 
4240
else
 
4241
  if test "$GXX" = yes; then
 
4242
    CXXFLAGS="-O2"
 
4243
  else
 
4244
    CXXFLAGS=
 
4245
  fi
 
4246
fi
 
4247
for ac_declaration in \
 
4248
   '' \
 
4249
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4250
   'extern "C" void std::exit (int); using std::exit;' \
 
4251
   'extern "C" void exit (int) throw ();' \
 
4252
   'extern "C" void exit (int);' \
 
4253
   'void exit (int);'
 
4254
do
 
4255
  cat >conftest.$ac_ext <<_ACEOF
 
4256
#line $LINENO "configure"
 
4257
/* confdefs.h.  */
 
4258
_ACEOF
 
4259
cat confdefs.h >>conftest.$ac_ext
 
4260
cat >>conftest.$ac_ext <<_ACEOF
 
4261
/* end confdefs.h.  */
 
4262
$ac_declaration
 
4263
#include <stdlib.h>
 
4264
int
 
4265
main ()
 
4266
{
 
4267
exit (42);
 
4268
  ;
 
4269
  return 0;
 
4270
}
 
4271
_ACEOF
 
4272
rm -f conftest.$ac_objext
 
4273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4274
  (eval $ac_compile) 2>&5
 
4275
  ac_status=$?
 
4276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4277
  (exit $ac_status); } &&
 
4278
         { ac_try='test -s conftest.$ac_objext'
 
4279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4280
  (eval $ac_try) 2>&5
 
4281
  ac_status=$?
 
4282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4283
  (exit $ac_status); }; }; then
 
4284
  :
 
4285
else
 
4286
  echo "$as_me: failed program was:" >&5
 
4287
sed 's/^/| /' conftest.$ac_ext >&5
 
4288
 
 
4289
continue
 
4290
fi
 
4291
rm -f conftest.$ac_objext conftest.$ac_ext
 
4292
  cat >conftest.$ac_ext <<_ACEOF
 
4293
#line $LINENO "configure"
 
4294
/* confdefs.h.  */
 
4295
_ACEOF
 
4296
cat confdefs.h >>conftest.$ac_ext
 
4297
cat >>conftest.$ac_ext <<_ACEOF
 
4298
/* end confdefs.h.  */
 
4299
$ac_declaration
 
4300
int
 
4301
main ()
 
4302
{
 
4303
exit (42);
 
4304
  ;
 
4305
  return 0;
 
4306
}
 
4307
_ACEOF
 
4308
rm -f conftest.$ac_objext
 
4309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4310
  (eval $ac_compile) 2>&5
 
4311
  ac_status=$?
 
4312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4313
  (exit $ac_status); } &&
 
4314
         { ac_try='test -s conftest.$ac_objext'
 
4315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4316
  (eval $ac_try) 2>&5
 
4317
  ac_status=$?
 
4318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4319
  (exit $ac_status); }; }; then
 
4320
  break
 
4321
else
 
4322
  echo "$as_me: failed program was:" >&5
 
4323
sed 's/^/| /' conftest.$ac_ext >&5
 
4324
 
 
4325
fi
 
4326
rm -f conftest.$ac_objext conftest.$ac_ext
 
4327
done
 
4328
rm -f conftest*
 
4329
if test -n "$ac_declaration"; then
 
4330
  echo '#ifdef __cplusplus' >>confdefs.h
 
4331
  echo $ac_declaration      >>confdefs.h
 
4332
  echo '#endif'             >>confdefs.h
 
4333
fi
 
4334
 
 
4335
ac_ext=cc
 
4336
ac_cpp='$CXXCPP $CPPFLAGS'
 
4337
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4338
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4339
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4340
 
 
4341
ac_ext=cc
 
4342
ac_cpp='$CXXCPP $CPPFLAGS'
 
4343
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4344
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4345
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4346
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4347
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4348
if test -z "$CXXCPP"; then
 
4349
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4351
else
 
4352
      # Double quotes because CXXCPP needs to be expanded
 
4353
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4354
    do
 
4355
      ac_preproc_ok=false
 
4356
for ac_cxx_preproc_warn_flag in '' yes
 
4357
do
 
4358
  # Use a header file that comes with gcc, so configuring glibc
 
4359
  # with a fresh cross-compiler works.
 
4360
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4361
  # <limits.h> exists even on freestanding compilers.
 
4362
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4363
  # not just through cpp. "Syntax error" is here to catch this case.
 
4364
  cat >conftest.$ac_ext <<_ACEOF
 
4365
#line $LINENO "configure"
 
4366
/* confdefs.h.  */
 
4367
_ACEOF
 
4368
cat confdefs.h >>conftest.$ac_ext
 
4369
cat >>conftest.$ac_ext <<_ACEOF
 
4370
/* end confdefs.h.  */
 
4371
#ifdef __STDC__
 
4372
# include <limits.h>
 
4373
#else
 
4374
# include <assert.h>
 
4375
#endif
 
4376
                     Syntax error
 
4377
_ACEOF
 
4378
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4379
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4380
  ac_status=$?
 
4381
  grep -v '^ *+' conftest.er1 >conftest.err
 
4382
  rm -f conftest.er1
 
4383
  cat conftest.err >&5
 
4384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4385
  (exit $ac_status); } >/dev/null; then
 
4386
  if test -s conftest.err; then
 
4387
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4388
  else
 
4389
    ac_cpp_err=
 
4390
  fi
 
4391
else
 
4392
  ac_cpp_err=yes
 
4393
fi
 
4394
if test -z "$ac_cpp_err"; then
 
4395
  :
 
4396
else
 
4397
  echo "$as_me: failed program was:" >&5
 
4398
sed 's/^/| /' conftest.$ac_ext >&5
 
4399
 
 
4400
  # Broken: fails on valid input.
 
4401
continue
 
4402
fi
 
4403
rm -f conftest.err conftest.$ac_ext
 
4404
 
 
4405
  # OK, works on sane cases.  Now check whether non-existent headers
 
4406
  # can be detected and how.
 
4407
  cat >conftest.$ac_ext <<_ACEOF
 
4408
#line $LINENO "configure"
 
4409
/* confdefs.h.  */
 
4410
_ACEOF
 
4411
cat confdefs.h >>conftest.$ac_ext
 
4412
cat >>conftest.$ac_ext <<_ACEOF
 
4413
/* end confdefs.h.  */
 
4414
#include <ac_nonexistent.h>
 
4415
_ACEOF
 
4416
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4417
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4418
  ac_status=$?
 
4419
  grep -v '^ *+' conftest.er1 >conftest.err
 
4420
  rm -f conftest.er1
 
4421
  cat conftest.err >&5
 
4422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4423
  (exit $ac_status); } >/dev/null; then
 
4424
  if test -s conftest.err; then
 
4425
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4426
  else
 
4427
    ac_cpp_err=
 
4428
  fi
 
4429
else
 
4430
  ac_cpp_err=yes
 
4431
fi
 
4432
if test -z "$ac_cpp_err"; then
 
4433
  # Broken: success on invalid input.
 
4434
continue
 
4435
else
 
4436
  echo "$as_me: failed program was:" >&5
 
4437
sed 's/^/| /' conftest.$ac_ext >&5
 
4438
 
 
4439
  # Passes both tests.
 
4440
ac_preproc_ok=:
 
4441
break
 
4442
fi
 
4443
rm -f conftest.err conftest.$ac_ext
 
4444
 
 
4445
done
 
4446
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4447
rm -f conftest.err conftest.$ac_ext
 
4448
if $ac_preproc_ok; then
 
4449
  break
 
4450
fi
 
4451
 
 
4452
    done
 
4453
    ac_cv_prog_CXXCPP=$CXXCPP
 
4454
 
 
4455
fi
 
4456
  CXXCPP=$ac_cv_prog_CXXCPP
 
4457
else
 
4458
  ac_cv_prog_CXXCPP=$CXXCPP
 
4459
fi
 
4460
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
4461
echo "${ECHO_T}$CXXCPP" >&6
 
4462
ac_preproc_ok=false
 
4463
for ac_cxx_preproc_warn_flag in '' yes
 
4464
do
 
4465
  # Use a header file that comes with gcc, so configuring glibc
 
4466
  # with a fresh cross-compiler works.
 
4467
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4468
  # <limits.h> exists even on freestanding compilers.
 
4469
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4470
  # not just through cpp. "Syntax error" is here to catch this case.
 
4471
  cat >conftest.$ac_ext <<_ACEOF
 
4472
#line $LINENO "configure"
 
4473
/* confdefs.h.  */
 
4474
_ACEOF
 
4475
cat confdefs.h >>conftest.$ac_ext
 
4476
cat >>conftest.$ac_ext <<_ACEOF
 
4477
/* end confdefs.h.  */
 
4478
#ifdef __STDC__
 
4479
# include <limits.h>
 
4480
#else
 
4481
# include <assert.h>
 
4482
#endif
 
4483
                     Syntax error
 
4484
_ACEOF
 
4485
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4486
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4487
  ac_status=$?
 
4488
  grep -v '^ *+' conftest.er1 >conftest.err
 
4489
  rm -f conftest.er1
 
4490
  cat conftest.err >&5
 
4491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4492
  (exit $ac_status); } >/dev/null; then
 
4493
  if test -s conftest.err; then
 
4494
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4495
  else
 
4496
    ac_cpp_err=
 
4497
  fi
 
4498
else
 
4499
  ac_cpp_err=yes
 
4500
fi
 
4501
if test -z "$ac_cpp_err"; then
 
4502
  :
 
4503
else
 
4504
  echo "$as_me: failed program was:" >&5
 
4505
sed 's/^/| /' conftest.$ac_ext >&5
 
4506
 
 
4507
  # Broken: fails on valid input.
 
4508
continue
 
4509
fi
 
4510
rm -f conftest.err conftest.$ac_ext
 
4511
 
 
4512
  # OK, works on sane cases.  Now check whether non-existent headers
 
4513
  # can be detected and how.
 
4514
  cat >conftest.$ac_ext <<_ACEOF
 
4515
#line $LINENO "configure"
 
4516
/* confdefs.h.  */
 
4517
_ACEOF
 
4518
cat confdefs.h >>conftest.$ac_ext
 
4519
cat >>conftest.$ac_ext <<_ACEOF
 
4520
/* end confdefs.h.  */
 
4521
#include <ac_nonexistent.h>
 
4522
_ACEOF
 
4523
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4524
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4525
  ac_status=$?
 
4526
  grep -v '^ *+' conftest.er1 >conftest.err
 
4527
  rm -f conftest.er1
 
4528
  cat conftest.err >&5
 
4529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4530
  (exit $ac_status); } >/dev/null; then
 
4531
  if test -s conftest.err; then
 
4532
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4533
  else
 
4534
    ac_cpp_err=
 
4535
  fi
 
4536
else
 
4537
  ac_cpp_err=yes
 
4538
fi
 
4539
if test -z "$ac_cpp_err"; then
 
4540
  # Broken: success on invalid input.
 
4541
continue
 
4542
else
 
4543
  echo "$as_me: failed program was:" >&5
 
4544
sed 's/^/| /' conftest.$ac_ext >&5
 
4545
 
 
4546
  # Passes both tests.
 
4547
ac_preproc_ok=:
 
4548
break
 
4549
fi
 
4550
rm -f conftest.err conftest.$ac_ext
 
4551
 
 
4552
done
 
4553
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4554
rm -f conftest.err conftest.$ac_ext
 
4555
if $ac_preproc_ok; then
 
4556
  :
 
4557
else
 
4558
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4559
See \`config.log' for more details." >&5
 
4560
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4561
See \`config.log' for more details." >&2;}
 
4562
   { (exit 1); exit 1; }; }
 
4563
fi
 
4564
 
 
4565
ac_ext=cc
 
4566
ac_cpp='$CXXCPP $CPPFLAGS'
 
4567
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4568
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4569
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4570
 
 
4571
 
 
4572
ac_ext=f
 
4573
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
4574
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4575
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
4576
if test -n "$ac_tool_prefix"; then
 
4577
  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
 
4578
  do
 
4579
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4580
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4581
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4582
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4583
if test "${ac_cv_prog_F77+set}" = set; then
 
4584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4585
else
 
4586
  if test -n "$F77"; then
 
4587
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
4588
else
 
4589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4590
for as_dir in $PATH
 
4591
do
 
4592
  IFS=$as_save_IFS
 
4593
  test -z "$as_dir" && as_dir=.
 
4594
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4595
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4596
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
4597
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4598
    break 2
 
4599
  fi
 
4600
done
 
4601
done
 
4602
 
 
4603
fi
 
4604
fi
 
4605
F77=$ac_cv_prog_F77
 
4606
if test -n "$F77"; then
 
4607
  echo "$as_me:$LINENO: result: $F77" >&5
 
4608
echo "${ECHO_T}$F77" >&6
 
4609
else
 
4610
  echo "$as_me:$LINENO: result: no" >&5
 
4611
echo "${ECHO_T}no" >&6
 
4612
fi
 
4613
 
 
4614
    test -n "$F77" && break
 
4615
  done
 
4616
fi
 
4617
if test -z "$F77"; then
 
4618
  ac_ct_F77=$F77
 
4619
  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
 
4620
do
 
4621
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4622
set dummy $ac_prog; ac_word=$2
 
4623
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4624
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4625
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
4626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4627
else
 
4628
  if test -n "$ac_ct_F77"; then
 
4629
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
4630
else
 
4631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4632
for as_dir in $PATH
 
4633
do
 
4634
  IFS=$as_save_IFS
 
4635
  test -z "$as_dir" && as_dir=.
 
4636
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4637
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4638
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
4639
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4640
    break 2
 
4641
  fi
 
4642
done
 
4643
done
 
4644
 
 
4645
fi
 
4646
fi
 
4647
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
4648
if test -n "$ac_ct_F77"; then
 
4649
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
4650
echo "${ECHO_T}$ac_ct_F77" >&6
 
4651
else
 
4652
  echo "$as_me:$LINENO: result: no" >&5
 
4653
echo "${ECHO_T}no" >&6
 
4654
fi
 
4655
 
 
4656
  test -n "$ac_ct_F77" && break
 
4657
done
 
4658
 
 
4659
  F77=$ac_ct_F77
 
4660
fi
 
4661
 
 
4662
 
 
4663
# Provide some information about the compiler.
 
4664
echo "$as_me:4664:" \
 
4665
     "checking for Fortran 77 compiler version" >&5
 
4666
ac_compiler=`set X $ac_compile; echo $2`
 
4667
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4668
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4669
  ac_status=$?
 
4670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4671
  (exit $ac_status); }
 
4672
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4673
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4674
  ac_status=$?
 
4675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4676
  (exit $ac_status); }
 
4677
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4678
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4679
  ac_status=$?
 
4680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4681
  (exit $ac_status); }
 
4682
 
 
4683
# If we don't use `.F' as extension, the preprocessor is not run on the
 
4684
# input file.
 
4685
ac_save_ext=$ac_ext
 
4686
ac_ext=F
 
4687
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
4688
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
4689
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
4690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4691
else
 
4692
  cat >conftest.$ac_ext <<_ACEOF
 
4693
      program main
 
4694
#ifndef __GNUC__
 
4695
       choke me
 
4696
#endif
 
4697
 
 
4698
      end
 
4699
_ACEOF
 
4700
rm -f conftest.$ac_objext
 
4701
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4702
  (eval $ac_compile) 2>&5
 
4703
  ac_status=$?
 
4704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4705
  (exit $ac_status); } &&
 
4706
         { ac_try='test -s conftest.$ac_objext'
 
4707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4708
  (eval $ac_try) 2>&5
 
4709
  ac_status=$?
 
4710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4711
  (exit $ac_status); }; }; then
 
4712
  ac_compiler_gnu=yes
 
4713
else
 
4714
  echo "$as_me: failed program was:" >&5
 
4715
sed 's/^/| /' conftest.$ac_ext >&5
 
4716
 
 
4717
ac_compiler_gnu=no
 
4718
fi
 
4719
rm -f conftest.$ac_objext conftest.$ac_ext
 
4720
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
4721
 
 
4722
fi
 
4723
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
4724
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
4725
ac_ext=$ac_save_ext
 
4726
G77=`test $ac_compiler_gnu = yes && echo yes`
 
4727
ac_test_FFLAGS=${FFLAGS+set}
 
4728
ac_save_FFLAGS=$FFLAGS
 
4729
FFLAGS=
 
4730
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
4731
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
4732
if test "${ac_cv_prog_f77_g+set}" = set; then
 
4733
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4734
else
 
4735
  FFLAGS=-g
 
4736
cat >conftest.$ac_ext <<_ACEOF
 
4737
      program main
 
4738
 
 
4739
      end
 
4740
_ACEOF
 
4741
rm -f conftest.$ac_objext
 
4742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4743
  (eval $ac_compile) 2>&5
 
4744
  ac_status=$?
 
4745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4746
  (exit $ac_status); } &&
 
4747
         { ac_try='test -s conftest.$ac_objext'
 
4748
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4749
  (eval $ac_try) 2>&5
 
4750
  ac_status=$?
 
4751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4752
  (exit $ac_status); }; }; then
 
4753
  ac_cv_prog_f77_g=yes
 
4754
else
 
4755
  echo "$as_me: failed program was:" >&5
 
4756
sed 's/^/| /' conftest.$ac_ext >&5
 
4757
 
 
4758
ac_cv_prog_f77_g=no
 
4759
fi
 
4760
rm -f conftest.$ac_objext conftest.$ac_ext
 
4761
 
 
4762
fi
 
4763
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
4764
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
4765
if test "$ac_test_FFLAGS" = set; then
 
4766
  FFLAGS=$ac_save_FFLAGS
 
4767
elif test $ac_cv_prog_f77_g = yes; then
 
4768
  if test "$G77" = yes; then
 
4769
    FFLAGS="-g -O2"
 
4770
  else
 
4771
    FFLAGS="-g"
 
4772
  fi
 
4773
else
 
4774
  if test "$G77" = yes; then
 
4775
    FFLAGS="-O2"
 
4776
  else
 
4777
    FFLAGS=
 
4778
  fi
 
4779
fi
 
4780
ac_ext=c
 
4781
ac_cpp='$CPP $CPPFLAGS'
 
4782
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4783
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4785
 
 
4786
 
 
4787
 
 
4788
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
4789
 
 
4790
# find the maximum length of command line arguments
 
4791
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4792
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
4793
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4795
else
 
4796
    i=0
 
4797
  testring="ABCD"
 
4798
 
 
4799
  case $build_os in
 
4800
  msdosdjgpp*)
 
4801
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4802
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4803
    # during glob expansion).  Even if it were fixed, the result of this
 
4804
    # check would be larger than it should be.
 
4805
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4806
    ;;
 
4807
 
 
4808
  gnu*)
 
4809
    # Under GNU Hurd, this test is not required because there is
 
4810
    # no limit to the length of command line arguments.
 
4811
    # Libtool will interpret -1 as no limit whatsoever
 
4812
    lt_cv_sys_max_cmd_len=-1;
 
4813
    ;;
 
4814
 
 
4815
  cygwin* | mingw*)
 
4816
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4817
    # about 5 minutes as the teststring grows exponentially.
 
4818
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4819
    # you end up with a "frozen" computer, even though with patience
 
4820
    # the test eventually succeeds (with a max line length of 256k).
 
4821
    # Instead, let's just punt: use the minimum linelength reported by
 
4822
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4823
    lt_cv_sys_max_cmd_len=8192;
 
4824
    ;;
 
4825
 
 
4826
  amigaos*)
 
4827
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4828
    # So we just punt and use a minimum line length of 8192.
 
4829
    lt_cv_sys_max_cmd_len=8192;
 
4830
    ;;
 
4831
 
 
4832
 *)
 
4833
    # If test is not a shell built-in, we'll probably end up computing a
 
4834
    # maximum length that is only half of the actual maximum length, but
 
4835
    # we can't tell.
 
4836
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
4837
               = "XX$testring") >/dev/null 2>&1 &&
 
4838
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
4839
            lt_cv_sys_max_cmd_len=$new_result &&
 
4840
            test $i != 17 # 1/2 MB should be enough
 
4841
    do
 
4842
      i=`expr $i + 1`
 
4843
      testring=$testring$testring
 
4844
    done
 
4845
    testring=
 
4846
    # Add a significant safety factor because C++ compilers can tack on massive
 
4847
    # amounts of additional arguments before passing them to the linker.
 
4848
    # It appears as though 1/2 is a usable value.
 
4849
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4850
    ;;
 
4851
  esac
 
4852
 
 
4853
fi
 
4854
 
 
4855
if test -n $lt_cv_sys_max_cmd_len ; then
 
4856
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4857
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
4858
else
 
4859
  echo "$as_me:$LINENO: result: none" >&5
 
4860
echo "${ECHO_T}none" >&6
1985
4861
fi
1986
4862
 
1987
4863
 
1988
4864
 
1989
4865
 
1990
4866
# Check for command to grab the raw symbol name followed by C symbol from nm.
1991
 
echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1992
 
echo "configure:1993: checking command to parse $NM output" >&5
1993
 
if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1994
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
4867
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
4868
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
4869
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
4870
  echo $ECHO_N "(cached) $ECHO_C" >&6
1995
4871
else
1996
 
  
 
4872
 
1997
4873
# These are sane defaults that work on at least a few old systems.
1998
4874
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
1999
4875
 
2007
4883
symxfrm='\1 \2\3 \3'
2008
4884
 
2009
4885
# Transform an extracted symbol line into a proper C declaration
2010
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
4886
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
4887
 
 
4888
# Transform an extracted symbol line into symbol name and symbol address
 
4889
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'"
2011
4890
 
2012
4891
# Define system-specific variables.
2013
4892
case $host_os in
2018
4897
  symcode='[ABCDGISTW]'
2019
4898
  ;;
2020
4899
hpux*) # Its linker distinguishes data from code symbols
2021
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4900
  if test "$host_cpu" = ia64; then
 
4901
    symcode='[ABCDEGRST]'
 
4902
  fi
 
4903
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4904
  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'"
2022
4905
  ;;
2023
 
irix*)
 
4906
irix* | nonstopux*)
2024
4907
  symcode='[BCDEGRST]'
2025
4908
  ;;
 
4909
osf*)
 
4910
  symcode='[BCDEGQRST]'
 
4911
  ;;
2026
4912
solaris* | sysv5*)
2027
 
  symcode='[BDT]'
 
4913
  symcode='[BDRT]'
2028
4914
  ;;
2029
4915
sysv4)
2030
4916
  symcode='[DFNSTU]'
2033
4919
 
2034
4920
# Handle CRLF in mingw tool chain
2035
4921
opt_cr=
2036
 
case $host_os in
 
4922
case $build_os in
2037
4923
mingw*)
2038
4924
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2039
4925
  ;;
2040
4926
esac
2041
4927
 
2042
4928
# If we're using GNU nm, then use its standard symbol codes.
2043
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2044
 
  symcode='[ABCDGISTW]'
2045
 
fi
 
4929
case `$NM -V 2>&1` in
 
4930
*GNU* | *'with BFD'*)
 
4931
  symcode='[ABCDGIRSTW]' ;;
 
4932
esac
2046
4933
 
2047
4934
# Try without a prefix undercore, then with it.
2048
4935
for ac_symprfx in "" "_"; do
2049
4936
 
2050
4937
  # Write the raw and C identifiers.
2051
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
4938
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2052
4939
 
2053
4940
  # Check to see that the pipe works correctly.
2054
4941
  pipe_works=no
 
4942
 
2055
4943
  rm -f conftest*
2056
4944
  cat > conftest.$ac_ext <<EOF
2057
4945
#ifdef __cplusplus
2065
4953
int main(){nm_test_var='a';nm_test_func();return(0);}
2066
4954
EOF
2067
4955
 
2068
 
  if { (eval echo configure:2069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
4956
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4957
  (eval $ac_compile) 2>&5
 
4958
  ac_status=$?
 
4959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4960
  (exit $ac_status); }; then
2069
4961
    # Now try to grab the symbols.
2070
4962
    nlist=conftest.nm
2071
 
    if { (eval echo configure:2072: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
 
4963
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
4964
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
4965
  ac_status=$?
 
4966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4967
  (exit $ac_status); } && test -s "$nlist"; then
2072
4968
      # Try sorting and uniquifying the output.
2073
4969
      if sort "$nlist" | uniq > "$nlist"T; then
2074
4970
        mv -f "$nlist"T "$nlist"
2077
4973
      fi
2078
4974
 
2079
4975
      # Make sure that we snagged all the symbols we need.
2080
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2081
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
4976
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
4977
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
2082
4978
          cat <<EOF > conftest.$ac_ext
2083
4979
#ifdef __cplusplus
2084
4980
extern "C" {
2086
4982
 
2087
4983
EOF
2088
4984
          # Now generate the symbol file.
2089
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
4985
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
2090
4986
 
2091
4987
          cat <<EOF >> conftest.$ac_ext
2092
4988
#if defined (__STDC__) && __STDC__
2104
5000
lt_preloaded_symbols[] =
2105
5001
{
2106
5002
EOF
2107
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
5003
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
2108
5004
          cat <<\EOF >> conftest.$ac_ext
2109
5005
  {0, (lt_ptr_t) 0}
2110
5006
};
2115
5011
EOF
2116
5012
          # Now try linking the two files.
2117
5013
          mv conftest.$ac_objext conftstm.$ac_objext
2118
 
          save_LIBS="$LIBS"
2119
 
          save_CFLAGS="$CFLAGS"
 
5014
          lt_save_LIBS="$LIBS"
 
5015
          lt_save_CFLAGS="$CFLAGS"
2120
5016
          LIBS="conftstm.$ac_objext"
2121
 
          CFLAGS="$CFLAGS$no_builtin_flag"
2122
 
          if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
5017
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5018
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5019
  (eval $ac_link) 2>&5
 
5020
  ac_status=$?
 
5021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5022
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
2123
5023
            pipe_works=yes
2124
5024
          fi
2125
 
          LIBS="$save_LIBS"
2126
 
          CFLAGS="$save_CFLAGS"
 
5025
          LIBS="$lt_save_LIBS"
 
5026
          CFLAGS="$lt_save_CFLAGS"
2127
5027
        else
2128
5028
          echo "cannot find nm_test_func in $nlist" >&5
2129
5029
        fi
2149
5049
 
2150
5050
fi
2151
5051
 
2152
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2153
5052
if test -z "$lt_cv_sys_global_symbol_pipe"; then
2154
 
  global_symbol_to_cdecl=
2155
 
else
2156
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2157
 
fi
2158
 
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2159
 
  echo "$ac_t""failed" 1>&6
2160
 
else
2161
 
  echo "$ac_t""ok" 1>&6
2162
 
fi
2163
 
 
2164
 
for ac_hdr in dlfcn.h
2165
 
do
2166
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2167
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2168
 
echo "configure:2169: checking for $ac_hdr" >&5
2169
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2170
 
  echo $ac_n "(cached) $ac_c" 1>&6
2171
 
else
2172
 
  cat > conftest.$ac_ext <<EOF
2173
 
#line 2174 "configure"
2174
 
#include "confdefs.h"
2175
 
#include <$ac_hdr>
2176
 
EOF
2177
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2178
 
{ (eval echo configure:2179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2179
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2180
 
if test -z "$ac_err"; then
2181
 
  rm -rf conftest*
2182
 
  eval "ac_cv_header_$ac_safe=yes"
2183
 
else
2184
 
  echo "$ac_err" >&5
2185
 
  echo "configure: failed program was:" >&5
2186
 
  cat conftest.$ac_ext >&5
2187
 
  rm -rf conftest*
2188
 
  eval "ac_cv_header_$ac_safe=no"
2189
 
fi
2190
 
rm -f conftest*
2191
 
fi
2192
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2193
 
  echo "$ac_t""yes" 1>&6
2194
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2195
 
  cat >> confdefs.h <<EOF
2196
 
#define $ac_tr_hdr 1
2197
 
EOF
2198
 
 
2199
 
else
2200
 
  echo "$ac_t""no" 1>&6
2201
 
fi
2202
 
done
2203
 
 
2204
 
 
2205
 
 
2206
 
 
2207
 
 
2208
 
# Only perform the check for file, if the check method requires it
2209
 
case $deplibs_check_method in
2210
 
file_magic*)
2211
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2212
 
    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2213
 
echo "configure:2214: checking for ${ac_tool_prefix}file" >&5
2214
 
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2215
 
  echo $ac_n "(cached) $ac_c" 1>&6
2216
 
else
2217
 
  case $MAGIC_CMD in
2218
 
  /*)
2219
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2220
 
  ;;
2221
 
  ?:/*)
2222
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2223
 
  ;;
2224
 
  *)
2225
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
2226
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2227
 
  ac_dummy="/usr/bin:$PATH"
2228
 
  for ac_dir in $ac_dummy; do
2229
 
    test -z "$ac_dir" && ac_dir=.
2230
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
2231
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2232
 
      if test -n "$file_magic_test_file"; then
2233
 
        case $deplibs_check_method in
2234
 
        "file_magic "*)
2235
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2236
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2237
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2238
 
            egrep "$file_magic_regex" > /dev/null; then
2239
 
            :
2240
 
          else
2241
 
            cat <<EOF 1>&2
2242
 
 
2243
 
*** Warning: the command libtool uses to detect shared libraries,
2244
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
2245
 
*** The result is that libtool may fail to recognize shared libraries
2246
 
*** as such.  This will affect the creation of libtool libraries that
2247
 
*** depend on shared libraries, but programs linked with such libtool
2248
 
*** libraries will work regardless of this problem.  Nevertheless, you
2249
 
*** may want to report the problem to your system manager and/or to
2250
 
*** bug-libtool@gnu.org
2251
 
 
2252
 
EOF
2253
 
          fi ;;
2254
 
        esac
2255
 
      fi
2256
 
      break
2257
 
    fi
2258
 
  done
2259
 
  IFS="$ac_save_ifs"
2260
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
2261
 
  ;;
2262
 
esac
2263
 
fi
2264
 
 
2265
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2266
 
if test -n "$MAGIC_CMD"; then
2267
 
  echo "$ac_t""$MAGIC_CMD" 1>&6
2268
 
else
2269
 
  echo "$ac_t""no" 1>&6
2270
 
fi
2271
 
 
2272
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
2273
 
  if test -n "$ac_tool_prefix"; then
2274
 
    echo $ac_n "checking for file""... $ac_c" 1>&6
2275
 
echo "configure:2276: checking for file" >&5
2276
 
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2277
 
  echo $ac_n "(cached) $ac_c" 1>&6
2278
 
else
2279
 
  case $MAGIC_CMD in
2280
 
  /*)
2281
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2282
 
  ;;
2283
 
  ?:/*)
2284
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2285
 
  ;;
2286
 
  *)
2287
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
2288
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2289
 
  ac_dummy="/usr/bin:$PATH"
2290
 
  for ac_dir in $ac_dummy; do
2291
 
    test -z "$ac_dir" && ac_dir=.
2292
 
    if test -f $ac_dir/file; then
2293
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
2294
 
      if test -n "$file_magic_test_file"; then
2295
 
        case $deplibs_check_method in
2296
 
        "file_magic "*)
2297
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2298
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2299
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2300
 
            egrep "$file_magic_regex" > /dev/null; then
2301
 
            :
2302
 
          else
2303
 
            cat <<EOF 1>&2
2304
 
 
2305
 
*** Warning: the command libtool uses to detect shared libraries,
2306
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
2307
 
*** The result is that libtool may fail to recognize shared libraries
2308
 
*** as such.  This will affect the creation of libtool libraries that
2309
 
*** depend on shared libraries, but programs linked with such libtool
2310
 
*** libraries will work regardless of this problem.  Nevertheless, you
2311
 
*** may want to report the problem to your system manager and/or to
2312
 
*** bug-libtool@gnu.org
2313
 
 
2314
 
EOF
2315
 
          fi ;;
2316
 
        esac
2317
 
      fi
2318
 
      break
2319
 
    fi
2320
 
  done
2321
 
  IFS="$ac_save_ifs"
2322
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
2323
 
  ;;
2324
 
esac
2325
 
fi
2326
 
 
2327
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2328
 
if test -n "$MAGIC_CMD"; then
2329
 
  echo "$ac_t""$MAGIC_CMD" 1>&6
2330
 
else
2331
 
  echo "$ac_t""no" 1>&6
2332
 
fi
2333
 
 
2334
 
  else
2335
 
    MAGIC_CMD=:
2336
 
  fi
2337
 
fi
2338
 
 
2339
 
  fi
2340
 
  ;;
2341
 
esac
2342
 
 
2343
 
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2344
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2345
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2346
 
echo "configure:2347: checking for $ac_word" >&5
2347
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2348
 
  echo $ac_n "(cached) $ac_c" 1>&6
2349
 
else
2350
 
  if test -n "$RANLIB"; then
2351
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2352
 
else
2353
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2354
 
  ac_dummy="$PATH"
2355
 
  for ac_dir in $ac_dummy; do
2356
 
    test -z "$ac_dir" && ac_dir=.
2357
 
    if test -f $ac_dir/$ac_word; then
2358
 
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2359
 
      break
2360
 
    fi
2361
 
  done
2362
 
  IFS="$ac_save_ifs"
2363
 
fi
2364
 
fi
2365
 
RANLIB="$ac_cv_prog_RANLIB"
2366
 
if test -n "$RANLIB"; then
2367
 
  echo "$ac_t""$RANLIB" 1>&6
2368
 
else
2369
 
  echo "$ac_t""no" 1>&6
2370
 
fi
2371
 
 
2372
 
 
2373
 
if test -z "$ac_cv_prog_RANLIB"; then
2374
 
if test -n "$ac_tool_prefix"; then
2375
 
  # Extract the first word of "ranlib", so it can be a program name with args.
2376
 
set dummy ranlib; ac_word=$2
2377
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378
 
echo "configure:2379: checking for $ac_word" >&5
2379
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2380
 
  echo $ac_n "(cached) $ac_c" 1>&6
2381
 
else
2382
 
  if test -n "$RANLIB"; then
2383
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2384
 
else
2385
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2386
 
  ac_dummy="$PATH"
2387
 
  for ac_dir in $ac_dummy; do
2388
 
    test -z "$ac_dir" && ac_dir=.
2389
 
    if test -f $ac_dir/$ac_word; then
2390
 
      ac_cv_prog_RANLIB="ranlib"
2391
 
      break
2392
 
    fi
2393
 
  done
2394
 
  IFS="$ac_save_ifs"
2395
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2396
 
fi
2397
 
fi
2398
 
RANLIB="$ac_cv_prog_RANLIB"
2399
 
if test -n "$RANLIB"; then
2400
 
  echo "$ac_t""$RANLIB" 1>&6
2401
 
else
2402
 
  echo "$ac_t""no" 1>&6
2403
 
fi
2404
 
 
2405
 
else
2406
 
  RANLIB=":"
2407
 
fi
2408
 
fi
2409
 
 
2410
 
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2412
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2413
 
echo "configure:2414: checking for $ac_word" >&5
2414
 
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2415
 
  echo $ac_n "(cached) $ac_c" 1>&6
2416
 
else
2417
 
  if test -n "$STRIP"; then
2418
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2419
 
else
2420
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2421
 
  ac_dummy="$PATH"
2422
 
  for ac_dir in $ac_dummy; do
2423
 
    test -z "$ac_dir" && ac_dir=.
2424
 
    if test -f $ac_dir/$ac_word; then
2425
 
      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2426
 
      break
2427
 
    fi
2428
 
  done
2429
 
  IFS="$ac_save_ifs"
2430
 
fi
2431
 
fi
2432
 
STRIP="$ac_cv_prog_STRIP"
2433
 
if test -n "$STRIP"; then
2434
 
  echo "$ac_t""$STRIP" 1>&6
2435
 
else
2436
 
  echo "$ac_t""no" 1>&6
2437
 
fi
2438
 
 
2439
 
 
2440
 
if test -z "$ac_cv_prog_STRIP"; then
2441
 
if test -n "$ac_tool_prefix"; then
2442
 
  # Extract the first word of "strip", so it can be a program name with args.
2443
 
set dummy strip; ac_word=$2
2444
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2445
 
echo "configure:2446: checking for $ac_word" >&5
2446
 
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2447
 
  echo $ac_n "(cached) $ac_c" 1>&6
2448
 
else
2449
 
  if test -n "$STRIP"; then
2450
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2451
 
else
2452
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2453
 
  ac_dummy="$PATH"
2454
 
  for ac_dir in $ac_dummy; do
2455
 
    test -z "$ac_dir" && ac_dir=.
2456
 
    if test -f $ac_dir/$ac_word; then
2457
 
      ac_cv_prog_STRIP="strip"
2458
 
      break
2459
 
    fi
2460
 
  done
2461
 
  IFS="$ac_save_ifs"
2462
 
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2463
 
fi
2464
 
fi
2465
 
STRIP="$ac_cv_prog_STRIP"
2466
 
if test -n "$STRIP"; then
2467
 
  echo "$ac_t""$STRIP" 1>&6
2468
 
else
2469
 
  echo "$ac_t""no" 1>&6
2470
 
fi
2471
 
 
2472
 
else
2473
 
  STRIP=":"
2474
 
fi
2475
 
fi
2476
 
 
2477
 
 
2478
 
enable_dlopen=no
2479
 
enable_win32_dll=no
2480
 
 
2481
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2482
 
if test "${enable_libtool_lock+set}" = set; then
2483
 
  enableval="$enable_libtool_lock"
2484
 
  :
2485
 
fi
2486
 
 
2487
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2488
 
 
2489
 
# Some flags need to be propagated to the compiler or linker for good
2490
 
# libtool support.
2491
 
case $host in
2492
 
*-*-irix6*)
2493
 
  # Find out which ABI we are using.
2494
 
  echo '#line 2495 "configure"' > conftest.$ac_ext
2495
 
  if { (eval echo configure:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2496
 
    case `/usr/bin/file conftest.$ac_objext` in
2497
 
    *32-bit*)
2498
 
      LD="${LD-ld} -32"
2499
 
      ;;
2500
 
    *N32*)
2501
 
      LD="${LD-ld} -n32"
2502
 
      ;;
2503
 
    *64-bit*)
2504
 
      LD="${LD-ld} -64"
2505
 
      ;;
2506
 
    esac
2507
 
  fi
2508
 
  rm -rf conftest*
2509
 
  ;;
2510
 
 
2511
 
*-*-sco3.2v5*)
2512
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2513
 
  SAVE_CFLAGS="$CFLAGS"
2514
 
  CFLAGS="$CFLAGS -belf"
2515
 
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2516
 
echo "configure:2517: checking whether the C compiler needs -belf" >&5
2517
 
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2518
 
  echo $ac_n "(cached) $ac_c" 1>&6
2519
 
else
2520
 
  
2521
 
     ac_ext=c
2522
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2523
 
ac_cpp='$CPP $CPPFLAGS'
2524
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2525
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2526
 
cross_compiling=$ac_cv_prog_cc_cross
2527
 
 
2528
 
     cat > conftest.$ac_ext <<EOF
2529
 
#line 2530 "configure"
2530
 
#include "confdefs.h"
2531
 
 
2532
 
int main() {
2533
 
 
2534
 
; return 0; }
2535
 
EOF
2536
 
if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2537
 
  rm -rf conftest*
2538
 
  lt_cv_cc_needs_belf=yes
2539
 
else
2540
 
  echo "configure: failed program was:" >&5
2541
 
  cat conftest.$ac_ext >&5
2542
 
  rm -rf conftest*
2543
 
  lt_cv_cc_needs_belf=no
2544
 
fi
2545
 
rm -f conftest*
2546
 
     ac_ext=c
2547
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2548
 
ac_cpp='$CPP $CPPFLAGS'
2549
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2550
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2551
 
cross_compiling=$ac_cv_prog_cc_cross
2552
 
 
2553
 
fi
2554
 
 
2555
 
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2556
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2557
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2558
 
    CFLAGS="$SAVE_CFLAGS"
2559
 
  fi
2560
 
  ;;
2561
 
 
2562
 
 
 
5053
  lt_cv_sys_global_symbol_to_cdecl=
 
5054
fi
 
5055
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5056
  echo "$as_me:$LINENO: result: failed" >&5
 
5057
echo "${ECHO_T}failed" >&6
 
5058
else
 
5059
  echo "$as_me:$LINENO: result: ok" >&5
 
5060
echo "${ECHO_T}ok" >&6
 
5061
fi
 
5062
 
 
5063
echo "$as_me:$LINENO: checking for objdir" >&5
 
5064
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5065
if test "${lt_cv_objdir+set}" = set; then
 
5066
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5067
else
 
5068
  rm -f .libs 2>/dev/null
 
5069
mkdir .libs 2>/dev/null
 
5070
if test -d .libs; then
 
5071
  lt_cv_objdir=.libs
 
5072
else
 
5073
  # MS-DOS does not allow filenames that begin with a dot.
 
5074
  lt_cv_objdir=_libs
 
5075
fi
 
5076
rmdir .libs 2>/dev/null
 
5077
fi
 
5078
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5079
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5080
objdir=$lt_cv_objdir
 
5081
 
 
5082
 
 
5083
 
 
5084
 
 
5085
 
 
5086
case $host_os in
 
5087
aix3*)
 
5088
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5089
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5090
  # vanish in a puff of smoke.
 
5091
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5092
    COLLECT_NAMES=
 
5093
    export COLLECT_NAMES
 
5094
  fi
 
5095
  ;;
2563
5096
esac
2564
5097
 
2565
5098
# Sed substitution that helps us do robust quoting.  It backslashifies
2574
5107
# double_quote_subst'ed string.
2575
5108
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2576
5109
 
 
5110
# Sed substitution to avoid accidental globbing in evaled expressions
 
5111
no_glob_subst='s/\*/\\\*/g'
 
5112
 
2577
5113
# Constants:
2578
5114
rm="rm -f"
2579
5115
 
2587
5123
ltmain="$ac_aux_dir/ltmain.sh"
2588
5124
ofile="$default_ofile"
2589
5125
with_gnu_ld="$lt_cv_prog_gnu_ld"
2590
 
need_locks="$enable_libtool_lock"
 
5126
 
 
5127
if test -n "$ac_tool_prefix"; then
 
5128
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5129
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5130
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5131
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5132
if test "${ac_cv_prog_AR+set}" = set; then
 
5133
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5134
else
 
5135
  if test -n "$AR"; then
 
5136
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5137
else
 
5138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5139
for as_dir in $PATH
 
5140
do
 
5141
  IFS=$as_save_IFS
 
5142
  test -z "$as_dir" && as_dir=.
 
5143
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5144
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5145
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5146
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5147
    break 2
 
5148
  fi
 
5149
done
 
5150
done
 
5151
 
 
5152
fi
 
5153
fi
 
5154
AR=$ac_cv_prog_AR
 
5155
if test -n "$AR"; then
 
5156
  echo "$as_me:$LINENO: result: $AR" >&5
 
5157
echo "${ECHO_T}$AR" >&6
 
5158
else
 
5159
  echo "$as_me:$LINENO: result: no" >&5
 
5160
echo "${ECHO_T}no" >&6
 
5161
fi
 
5162
 
 
5163
fi
 
5164
if test -z "$ac_cv_prog_AR"; then
 
5165
  ac_ct_AR=$AR
 
5166
  # Extract the first word of "ar", so it can be a program name with args.
 
5167
set dummy ar; ac_word=$2
 
5168
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5169
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5170
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5172
else
 
5173
  if test -n "$ac_ct_AR"; then
 
5174
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5175
else
 
5176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5177
for as_dir in $PATH
 
5178
do
 
5179
  IFS=$as_save_IFS
 
5180
  test -z "$as_dir" && as_dir=.
 
5181
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5182
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5183
    ac_cv_prog_ac_ct_AR="ar"
 
5184
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5185
    break 2
 
5186
  fi
 
5187
done
 
5188
done
 
5189
 
 
5190
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5191
fi
 
5192
fi
 
5193
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5194
if test -n "$ac_ct_AR"; then
 
5195
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5196
echo "${ECHO_T}$ac_ct_AR" >&6
 
5197
else
 
5198
  echo "$as_me:$LINENO: result: no" >&5
 
5199
echo "${ECHO_T}no" >&6
 
5200
fi
 
5201
 
 
5202
  AR=$ac_ct_AR
 
5203
else
 
5204
  AR="$ac_cv_prog_AR"
 
5205
fi
 
5206
 
 
5207
if test -n "$ac_tool_prefix"; then
 
5208
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5209
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5210
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5212
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5214
else
 
5215
  if test -n "$RANLIB"; then
 
5216
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5217
else
 
5218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5219
for as_dir in $PATH
 
5220
do
 
5221
  IFS=$as_save_IFS
 
5222
  test -z "$as_dir" && as_dir=.
 
5223
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5224
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5225
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5226
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5227
    break 2
 
5228
  fi
 
5229
done
 
5230
done
 
5231
 
 
5232
fi
 
5233
fi
 
5234
RANLIB=$ac_cv_prog_RANLIB
 
5235
if test -n "$RANLIB"; then
 
5236
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5237
echo "${ECHO_T}$RANLIB" >&6
 
5238
else
 
5239
  echo "$as_me:$LINENO: result: no" >&5
 
5240
echo "${ECHO_T}no" >&6
 
5241
fi
 
5242
 
 
5243
fi
 
5244
if test -z "$ac_cv_prog_RANLIB"; then
 
5245
  ac_ct_RANLIB=$RANLIB
 
5246
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5247
set dummy ranlib; ac_word=$2
 
5248
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5250
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5252
else
 
5253
  if test -n "$ac_ct_RANLIB"; then
 
5254
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5255
else
 
5256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5257
for as_dir in $PATH
 
5258
do
 
5259
  IFS=$as_save_IFS
 
5260
  test -z "$as_dir" && as_dir=.
 
5261
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5262
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5263
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5264
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5265
    break 2
 
5266
  fi
 
5267
done
 
5268
done
 
5269
 
 
5270
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5271
fi
 
5272
fi
 
5273
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5274
if test -n "$ac_ct_RANLIB"; then
 
5275
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5276
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5277
else
 
5278
  echo "$as_me:$LINENO: result: no" >&5
 
5279
echo "${ECHO_T}no" >&6
 
5280
fi
 
5281
 
 
5282
  RANLIB=$ac_ct_RANLIB
 
5283
else
 
5284
  RANLIB="$ac_cv_prog_RANLIB"
 
5285
fi
 
5286
 
 
5287
if test -n "$ac_tool_prefix"; then
 
5288
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5289
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5290
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5291
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5292
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5294
else
 
5295
  if test -n "$STRIP"; then
 
5296
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5297
else
 
5298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5299
for as_dir in $PATH
 
5300
do
 
5301
  IFS=$as_save_IFS
 
5302
  test -z "$as_dir" && as_dir=.
 
5303
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5304
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5305
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5306
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5307
    break 2
 
5308
  fi
 
5309
done
 
5310
done
 
5311
 
 
5312
fi
 
5313
fi
 
5314
STRIP=$ac_cv_prog_STRIP
 
5315
if test -n "$STRIP"; then
 
5316
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5317
echo "${ECHO_T}$STRIP" >&6
 
5318
else
 
5319
  echo "$as_me:$LINENO: result: no" >&5
 
5320
echo "${ECHO_T}no" >&6
 
5321
fi
 
5322
 
 
5323
fi
 
5324
if test -z "$ac_cv_prog_STRIP"; then
 
5325
  ac_ct_STRIP=$STRIP
 
5326
  # Extract the first word of "strip", so it can be a program name with args.
 
5327
set dummy strip; ac_word=$2
 
5328
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5329
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5330
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5332
else
 
5333
  if test -n "$ac_ct_STRIP"; then
 
5334
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5335
else
 
5336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5337
for as_dir in $PATH
 
5338
do
 
5339
  IFS=$as_save_IFS
 
5340
  test -z "$as_dir" && as_dir=.
 
5341
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5342
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5343
    ac_cv_prog_ac_ct_STRIP="strip"
 
5344
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5345
    break 2
 
5346
  fi
 
5347
done
 
5348
done
 
5349
 
 
5350
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5351
fi
 
5352
fi
 
5353
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5354
if test -n "$ac_ct_STRIP"; then
 
5355
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5356
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5357
else
 
5358
  echo "$as_me:$LINENO: result: no" >&5
 
5359
echo "${ECHO_T}no" >&6
 
5360
fi
 
5361
 
 
5362
  STRIP=$ac_ct_STRIP
 
5363
else
 
5364
  STRIP="$ac_cv_prog_STRIP"
 
5365
fi
 
5366
 
2591
5367
 
2592
5368
old_CC="$CC"
2593
5369
old_CFLAGS="$CFLAGS"
2597
5373
test -z "$AR_FLAGS" && AR_FLAGS=cru
2598
5374
test -z "$AS" && AS=as
2599
5375
test -z "$CC" && CC=cc
 
5376
test -z "$LTCC" && LTCC=$CC
2600
5377
test -z "$DLLTOOL" && DLLTOOL=dlltool
2601
5378
test -z "$LD" && LD=ld
2602
5379
test -z "$LN_S" && LN_S="ln -s"
2603
5380
test -z "$MAGIC_CMD" && MAGIC_CMD=file
2604
5381
test -z "$NM" && NM=nm
 
5382
test -z "$SED" && SED=sed
2605
5383
test -z "$OBJDUMP" && OBJDUMP=objdump
2606
5384
test -z "$RANLIB" && RANLIB=:
2607
5385
test -z "$STRIP" && STRIP=:
2608
5386
test -z "$ac_objext" && ac_objext=o
2609
5387
 
2610
 
if test x"$host" != x"$build"; then
2611
 
  ac_tool_prefix=${host_alias}-
2612
 
else
2613
 
  ac_tool_prefix=
2614
 
fi
2615
 
 
2616
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2617
 
case $host_os in
2618
 
linux-gnu*) ;;
2619
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2620
 
esac
2621
 
 
2622
 
case $host_os in
2623
 
aix3*)
2624
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
2625
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
2626
 
  # vanish in a puff of smoke.
2627
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
2628
 
    COLLECT_NAMES=
2629
 
    export COLLECT_NAMES
2630
 
  fi
2631
 
  ;;
2632
 
esac
2633
 
 
2634
5388
# Determine commands to create old-style static archives.
2635
5389
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2636
5390
old_postinstall_cmds='chmod 644 $oldlib'
2637
5391
old_postuninstall_cmds=
2638
5392
 
2639
5393
if test -n "$RANLIB"; then
 
5394
  case $host_os in
 
5395
  openbsd*)
 
5396
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
5397
    ;;
 
5398
  *)
 
5399
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
5400
    ;;
 
5401
  esac
2640
5402
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2641
 
  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2642
 
fi
2643
 
 
2644
 
# Allow CC to be a program name with arguments.
2645
 
set dummy $CC
2646
 
compiler="$2"
2647
 
 
2648
 
echo $ac_n "checking for objdir""... $ac_c" 1>&6
2649
 
echo "configure:2650: checking for objdir" >&5
2650
 
rm -f .libs 2>/dev/null
2651
 
mkdir .libs 2>/dev/null
2652
 
if test -d .libs; then
2653
 
  objdir=.libs
2654
 
else
2655
 
  # MS-DOS does not allow filenames that begin with a dot.
2656
 
  objdir=_libs
2657
 
fi
2658
 
rmdir .libs 2>/dev/null
2659
 
echo "$ac_t""$objdir" 1>&6
 
5403
fi
 
5404
 
 
5405
# Only perform the check for file, if the check method requires it
 
5406
case $deplibs_check_method in
 
5407
file_magic*)
 
5408
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5409
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5410
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5411
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5413
else
 
5414
  case $MAGIC_CMD in
 
5415
[\\/*] |  ?:[\\/]*)
 
5416
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5417
  ;;
 
5418
*)
 
5419
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5420
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5421
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5422
  for ac_dir in $ac_dummy; do
 
5423
    IFS="$lt_save_ifs"
 
5424
    test -z "$ac_dir" && ac_dir=.
 
5425
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
5426
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
5427
      if test -n "$file_magic_test_file"; then
 
5428
        case $deplibs_check_method in
 
5429
        "file_magic "*)
 
5430
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5431
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5432
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5433
            $EGREP "$file_magic_regex" > /dev/null; then
 
5434
            :
 
5435
          else
 
5436
            cat <<EOF 1>&2
 
5437
 
 
5438
*** Warning: the command libtool uses to detect shared libraries,
 
5439
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5440
*** The result is that libtool may fail to recognize shared libraries
 
5441
*** as such.  This will affect the creation of libtool libraries that
 
5442
*** depend on shared libraries, but programs linked with such libtool
 
5443
*** libraries will work regardless of this problem.  Nevertheless, you
 
5444
*** may want to report the problem to your system manager and/or to
 
5445
*** bug-libtool@gnu.org
 
5446
 
 
5447
EOF
 
5448
          fi ;;
 
5449
        esac
 
5450
      fi
 
5451
      break
 
5452
    fi
 
5453
  done
 
5454
  IFS="$lt_save_ifs"
 
5455
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5456
  ;;
 
5457
esac
 
5458
fi
 
5459
 
 
5460
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5461
if test -n "$MAGIC_CMD"; then
 
5462
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5463
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5464
else
 
5465
  echo "$as_me:$LINENO: result: no" >&5
 
5466
echo "${ECHO_T}no" >&6
 
5467
fi
 
5468
 
 
5469
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
5470
  if test -n "$ac_tool_prefix"; then
 
5471
    echo "$as_me:$LINENO: checking for file" >&5
 
5472
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
5473
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5475
else
 
5476
  case $MAGIC_CMD in
 
5477
[\\/*] |  ?:[\\/]*)
 
5478
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5479
  ;;
 
5480
*)
 
5481
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5482
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5483
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5484
  for ac_dir in $ac_dummy; do
 
5485
    IFS="$lt_save_ifs"
 
5486
    test -z "$ac_dir" && ac_dir=.
 
5487
    if test -f $ac_dir/file; then
 
5488
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
5489
      if test -n "$file_magic_test_file"; then
 
5490
        case $deplibs_check_method in
 
5491
        "file_magic "*)
 
5492
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5493
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5494
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5495
            $EGREP "$file_magic_regex" > /dev/null; then
 
5496
            :
 
5497
          else
 
5498
            cat <<EOF 1>&2
 
5499
 
 
5500
*** Warning: the command libtool uses to detect shared libraries,
 
5501
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5502
*** The result is that libtool may fail to recognize shared libraries
 
5503
*** as such.  This will affect the creation of libtool libraries that
 
5504
*** depend on shared libraries, but programs linked with such libtool
 
5505
*** libraries will work regardless of this problem.  Nevertheless, you
 
5506
*** may want to report the problem to your system manager and/or to
 
5507
*** bug-libtool@gnu.org
 
5508
 
 
5509
EOF
 
5510
          fi ;;
 
5511
        esac
 
5512
      fi
 
5513
      break
 
5514
    fi
 
5515
  done
 
5516
  IFS="$lt_save_ifs"
 
5517
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5518
  ;;
 
5519
esac
 
5520
fi
 
5521
 
 
5522
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5523
if test -n "$MAGIC_CMD"; then
 
5524
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5525
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5526
else
 
5527
  echo "$as_me:$LINENO: result: no" >&5
 
5528
echo "${ECHO_T}no" >&6
 
5529
fi
 
5530
 
 
5531
  else
 
5532
    MAGIC_CMD=:
 
5533
  fi
 
5534
fi
 
5535
 
 
5536
  fi
 
5537
  ;;
 
5538
esac
 
5539
 
 
5540
enable_dlopen=no
 
5541
enable_win32_dll=no
 
5542
 
 
5543
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5544
if test "${enable_libtool_lock+set}" = set; then
 
5545
  enableval="$enable_libtool_lock"
 
5546
 
 
5547
fi;
 
5548
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2660
5549
 
2661
5550
 
2662
5551
# Check whether --with-pic or --without-pic was given.
2665
5554
  pic_mode="$withval"
2666
5555
else
2667
5556
  pic_mode=default
2668
 
fi
2669
 
 
 
5557
fi;
2670
5558
test -z "$pic_mode" && pic_mode=default
2671
5559
 
2672
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2673
 
# in isolation, and that seeing it set (from the cache) indicates that
2674
 
# the associated values are set (in the cache) correctly too.
2675
 
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2676
 
echo "configure:2677: checking for $compiler option to produce PIC" >&5
2677
 
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2678
 
  echo $ac_n "(cached) $ac_c" 1>&6
2679
 
else
2680
 
   lt_cv_prog_cc_pic=
2681
 
  lt_cv_prog_cc_shlib=
2682
 
  lt_cv_prog_cc_wl=
2683
 
  lt_cv_prog_cc_static=
2684
 
  lt_cv_prog_cc_no_builtin=
2685
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
2686
 
 
2687
 
  if test "$GCC" = yes; then
2688
 
    lt_cv_prog_cc_wl='-Wl,'
2689
 
    lt_cv_prog_cc_static='-static'
2690
 
 
2691
 
    case $host_os in
2692
 
    aix*)
2693
 
      # Below there is a dirty hack to force normal static linking with -ldl
2694
 
      # The problem is because libdl dynamically linked with both libc and
2695
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
2696
 
      # list by gcc. This cause undefined symbols with -static flags.
2697
 
      # This hack allows C programs to be linked with "-static -ldl", but
2698
 
      # we not sure about C++ programs.
2699
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2700
 
      ;;
2701
 
    amigaos*)
2702
 
      # FIXME: we need at least 68020 code to build shared libraries, but
2703
 
      # adding the `-m68020' flag to GCC prevents building anything better,
2704
 
      # like `-m68040'.
2705
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2706
 
      ;;
2707
 
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2708
 
      # PIC is the default for these OSes.
2709
 
      ;;
2710
 
    darwin* | rhapsody*)
2711
 
      # PIC is the default on this platform
2712
 
      # Common symbols not allowed in MH_DYLIB files
2713
 
      lt_cv_prog_cc_pic='-fno-common'
2714
 
      ;;
2715
 
    cygwin* | mingw* | pw32* | os2*)
2716
 
      # This hack is so that the source file can tell whether it is being
2717
 
      # built for inclusion in a dll (and should export symbols for example).
2718
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
2719
 
      ;;
2720
 
    sysv4*MP*)
2721
 
      if test -d /usr/nec; then
2722
 
         lt_cv_prog_cc_pic=-Kconform_pic
2723
 
      fi
2724
 
      ;;
2725
 
    *)
2726
 
      lt_cv_prog_cc_pic='-fPIC'
2727
 
      ;;
2728
 
    esac
2729
 
  else
2730
 
    # PORTME Check for PIC flags for the system compiler.
2731
 
    case $host_os in
2732
 
    aix3* | aix4* | aix5*)
2733
 
      # All AIX code is PIC.
2734
 
      if test "$host_cpu" = ia64; then
2735
 
        # AIX 5 now supports IA64 processor
2736
 
        lt_cv_prog_cc_static='-Bstatic'
2737
 
        lt_cv_prog_cc_wl='-Wl,'
2738
 
      else
2739
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2740
 
      fi
2741
 
      ;;
2742
 
 
2743
 
    hpux9* | hpux10* | hpux11*)
2744
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2745
 
      lt_cv_prog_cc_wl='-Wl,'
2746
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2747
 
      lt_cv_prog_cc_pic='+Z'
2748
 
      ;;
2749
 
 
2750
 
    irix5* | irix6*)
2751
 
      lt_cv_prog_cc_wl='-Wl,'
2752
 
      lt_cv_prog_cc_static='-non_shared'
2753
 
      # PIC (with -KPIC) is the default.
2754
 
      ;;
2755
 
 
2756
 
    cygwin* | mingw* | pw32* | os2*)
2757
 
      # This hack is so that the source file can tell whether it is being
2758
 
      # built for inclusion in a dll (and should export symbols for example).
2759
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
2760
 
      ;;
2761
 
 
2762
 
    newsos6)
2763
 
      lt_cv_prog_cc_pic='-KPIC'
2764
 
      lt_cv_prog_cc_static='-Bstatic'
2765
 
      ;;
2766
 
 
2767
 
    osf3* | osf4* | osf5*)
2768
 
      # All OSF/1 code is PIC.
2769
 
      lt_cv_prog_cc_wl='-Wl,'
2770
 
      lt_cv_prog_cc_static='-non_shared'
2771
 
      ;;
2772
 
 
2773
 
    sco3.2v5*)
2774
 
      lt_cv_prog_cc_pic='-Kpic'
2775
 
      lt_cv_prog_cc_static='-dn'
2776
 
      lt_cv_prog_cc_shlib='-belf'
2777
 
      ;;
2778
 
 
2779
 
    solaris*)
2780
 
      lt_cv_prog_cc_pic='-KPIC'
2781
 
      lt_cv_prog_cc_static='-Bstatic'
2782
 
      lt_cv_prog_cc_wl='-Wl,'
2783
 
      ;;
2784
 
 
2785
 
    sunos4*)
2786
 
      lt_cv_prog_cc_pic='-PIC'
2787
 
      lt_cv_prog_cc_static='-Bstatic'
2788
 
      lt_cv_prog_cc_wl='-Qoption ld '
2789
 
      ;;
2790
 
 
2791
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2792
 
      lt_cv_prog_cc_pic='-KPIC'
2793
 
      lt_cv_prog_cc_static='-Bstatic'
2794
 
      if test "x$host_vendor" = xsni; then
2795
 
        lt_cv_prog_cc_wl='-LD'
2796
 
      else
2797
 
        lt_cv_prog_cc_wl='-Wl,'
2798
 
      fi
2799
 
      ;;
2800
 
 
2801
 
    uts4*)
2802
 
      lt_cv_prog_cc_pic='-pic'
2803
 
      lt_cv_prog_cc_static='-Bstatic'
2804
 
      ;;
2805
 
 
2806
 
    sysv4*MP*)
2807
 
      if test -d /usr/nec ;then
2808
 
        lt_cv_prog_cc_pic='-Kconform_pic'
2809
 
        lt_cv_prog_cc_static='-Bstatic'
2810
 
      fi
2811
 
      ;;
2812
 
 
2813
 
    *)
2814
 
      lt_cv_prog_cc_can_build_shared=no
2815
 
      ;;
2816
 
    esac
2817
 
  fi
2818
 
 
2819
 
fi
2820
 
 
2821
 
if test -z "$lt_cv_prog_cc_pic"; then
2822
 
  echo "$ac_t""none" 1>&6
2823
 
else
2824
 
  echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2825
 
 
2826
 
  # Check to make sure the pic_flag actually works.
2827
 
  echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2828
 
echo "configure:2829: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2829
 
  if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2830
 
  echo $ac_n "(cached) $ac_c" 1>&6
2831
 
else
2832
 
      save_CFLAGS="$CFLAGS"
2833
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2834
 
    cat > conftest.$ac_ext <<EOF
2835
 
#line 2836 "configure"
2836
 
#include "confdefs.h"
2837
 
 
2838
 
int main() {
2839
 
 
2840
 
; return 0; }
2841
 
EOF
2842
 
if { (eval echo configure:2843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2843
 
  rm -rf conftest*
2844
 
        case $host_os in
2845
 
      hpux9* | hpux10* | hpux11*)
2846
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
2847
 
        # they create non-PIC objects.  So, if there were any warnings, we
2848
 
        # assume that PIC is not supported.
2849
 
        if test -s conftest.err; then
2850
 
          lt_cv_prog_cc_pic_works=no
2851
 
        else
2852
 
          lt_cv_prog_cc_pic_works=yes
2853
 
        fi
2854
 
        ;;
2855
 
      *)
2856
 
        lt_cv_prog_cc_pic_works=yes
2857
 
        ;;
2858
 
      esac
2859
 
    
2860
 
else
2861
 
  echo "configure: failed program was:" >&5
2862
 
  cat conftest.$ac_ext >&5
2863
 
  rm -rf conftest*
2864
 
        lt_cv_prog_cc_pic_works=no
2865
 
    
2866
 
fi
2867
 
rm -f conftest*
2868
 
    CFLAGS="$save_CFLAGS"
2869
 
  
2870
 
fi
2871
 
 
2872
 
 
2873
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2874
 
    lt_cv_prog_cc_pic=
2875
 
    lt_cv_prog_cc_can_build_shared=no
2876
 
  else
2877
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2878
 
  fi
2879
 
 
2880
 
  echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2881
 
fi
2882
 
 
 
5560
# Use C for the default configuration in the libtool script
 
5561
tagname=
 
5562
lt_save_CC="$CC"
 
5563
ac_ext=c
 
5564
ac_cpp='$CPP $CPPFLAGS'
 
5565
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5566
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5567
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5568
 
 
5569
 
 
5570
# Source file extension for C test sources.
 
5571
ac_ext=c
 
5572
 
 
5573
# Object file extension for compiled C test sources.
 
5574
objext=o
 
5575
objext=$objext
 
5576
 
 
5577
# Code to be used in simple compile tests
 
5578
lt_simple_compile_test_code="int some_variable = 0;\n"
 
5579
 
 
5580
# Code to be used in simple link tests
 
5581
lt_simple_link_test_code='int main(){return(0);}\n'
 
5582
 
 
5583
 
 
5584
# If no C compiler was specified, use CC.
 
5585
LTCC=${LTCC-"$CC"}
 
5586
 
 
5587
# Allow CC to be a program name with arguments.
 
5588
compiler=$CC
 
5589
 
 
5590
 
 
5591
#
2883
5592
# Check for any special shared library compilation flags.
2884
 
if test -n "$lt_cv_prog_cc_shlib"; then
2885
 
  echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2886
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
2887
 
  else
2888
 
   echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2889
 
    lt_cv_prog_cc_can_build_shared=no
2890
 
  fi
2891
 
fi
2892
 
 
2893
 
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2894
 
echo "configure:2895: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2895
 
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2896
 
  echo $ac_n "(cached) $ac_c" 1>&6
2897
 
else
2898
 
    lt_cv_prog_cc_static_works=no
2899
 
  save_LDFLAGS="$LDFLAGS"
2900
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2901
 
  cat > conftest.$ac_ext <<EOF
2902
 
#line 2903 "configure"
2903
 
#include "confdefs.h"
2904
 
 
2905
 
int main() {
2906
 
 
2907
 
; return 0; }
2908
 
EOF
2909
 
if { (eval echo configure:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2910
 
  rm -rf conftest*
2911
 
  lt_cv_prog_cc_static_works=yes
2912
 
else
2913
 
  echo "configure: failed program was:" >&5
2914
 
  cat conftest.$ac_ext >&5
2915
 
fi
2916
 
rm -f conftest*
2917
 
  LDFLAGS="$save_LDFLAGS"
2918
 
 
2919
 
fi
2920
 
 
2921
 
 
2922
 
# Belt *and* braces to stop my trousers falling down:
2923
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2924
 
echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2925
 
 
2926
 
pic_flag="$lt_cv_prog_cc_pic"
2927
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2928
 
wl="$lt_cv_prog_cc_wl"
2929
 
link_static_flag="$lt_cv_prog_cc_static"
2930
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2931
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
2932
 
 
2933
 
 
2934
 
# Check to see if options -o and -c are simultaneously supported by compiler
2935
 
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2936
 
echo "configure:2937: checking if $compiler supports -c -o file.$ac_objext" >&5
2937
 
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2938
 
  echo $ac_n "(cached) $ac_c" 1>&6
2939
 
else
2940
 
  
2941
 
$rm -r conftest 2>/dev/null
2942
 
mkdir conftest
2943
 
cd conftest
2944
 
echo "int some_variable = 0;" > conftest.$ac_ext
2945
 
mkdir out
2946
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2947
 
# that will create temporary files in the current directory regardless of
2948
 
# the output directory.  Thus, making CWD read-only will cause this test
2949
 
# to fail, enabling locking or at least warning the user not to do parallel
2950
 
# builds.
2951
 
chmod -w .
2952
 
save_CFLAGS="$CFLAGS"
2953
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2954
 
compiler_c_o=no
2955
 
if { (eval echo configure:2956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2956
 
  # The compiler can only warn and ignore the option if not recognized
2957
 
  # So say no if there are warnings
2958
 
  if test -s out/conftest.err; then
2959
 
    lt_cv_compiler_c_o=no
2960
 
  else
2961
 
    lt_cv_compiler_c_o=yes
2962
 
  fi
2963
 
else
2964
 
  # Append any errors to the config.log.
2965
 
  cat out/conftest.err 1>&5
2966
 
  lt_cv_compiler_c_o=no
2967
 
fi
2968
 
CFLAGS="$save_CFLAGS"
2969
 
chmod u+w .
2970
 
$rm conftest* out/*
2971
 
rmdir out
2972
 
cd ..
2973
 
rmdir conftest
2974
 
$rm -r conftest 2>/dev/null
2975
 
 
2976
 
fi
2977
 
 
2978
 
compiler_c_o=$lt_cv_compiler_c_o
2979
 
echo "$ac_t""$compiler_c_o" 1>&6
2980
 
 
2981
 
if test x"$compiler_c_o" = x"yes"; then
2982
 
  # Check to see if we can write to a .lo
2983
 
  echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2984
 
echo "configure:2985: checking if $compiler supports -c -o file.lo" >&5
2985
 
  if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2986
 
  echo $ac_n "(cached) $ac_c" 1>&6
2987
 
else
2988
 
  
2989
 
  lt_cv_compiler_o_lo=no
2990
 
  save_CFLAGS="$CFLAGS"
2991
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
2992
 
  cat > conftest.$ac_ext <<EOF
2993
 
#line 2994 "configure"
2994
 
#include "confdefs.h"
2995
 
 
2996
 
int main() {
2997
 
int some_variable = 0;
2998
 
; return 0; }
2999
 
EOF
3000
 
if { (eval echo configure:3001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001
 
  rm -rf conftest*
3002
 
      # The compiler can only warn and ignore the option if not recognized
3003
 
    # So say no if there are warnings
3004
 
    if test -s conftest.err; then
3005
 
      lt_cv_compiler_o_lo=no
3006
 
    else
3007
 
      lt_cv_compiler_o_lo=yes
3008
 
    fi
3009
 
  
3010
 
else
3011
 
  echo "configure: failed program was:" >&5
3012
 
  cat conftest.$ac_ext >&5
3013
 
fi
3014
 
rm -f conftest*
3015
 
  CFLAGS="$save_CFLAGS"
3016
 
  
3017
 
fi
3018
 
 
3019
 
  compiler_o_lo=$lt_cv_compiler_o_lo
3020
 
  echo "$ac_t""$compiler_c_lo" 1>&6
3021
 
else
3022
 
  compiler_o_lo=no
3023
 
fi
3024
 
 
3025
 
# Check to see if we can do hard links to lock some files if needed
3026
 
hard_links="nottested"
3027
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
3028
 
  # do not overwrite the value of need_locks provided by the user
3029
 
  echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3030
 
echo "configure:3031: checking if we can lock with hard links" >&5
3031
 
  hard_links=yes
3032
 
  $rm conftest*
3033
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3034
 
  touch conftest.a
3035
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
3036
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3037
 
  echo "$ac_t""$hard_links" 1>&6
3038
 
  if test "$hard_links" = no; then
3039
 
    echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3040
 
    need_locks=warn
3041
 
  fi
3042
 
else
3043
 
  need_locks=no
3044
 
fi
3045
 
 
3046
 
if test "$GCC" = yes; then
3047
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3048
 
  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3049
 
echo "configure:3050: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3050
 
  echo "int some_variable = 0;" > conftest.$ac_ext
3051
 
  save_CFLAGS="$CFLAGS"
3052
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3053
 
  compiler_rtti_exceptions=no
3054
 
  cat > conftest.$ac_ext <<EOF
3055
 
#line 3056 "configure"
3056
 
#include "confdefs.h"
3057
 
 
3058
 
int main() {
3059
 
int some_variable = 0;
3060
 
; return 0; }
3061
 
EOF
3062
 
if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3063
 
  rm -rf conftest*
3064
 
      # The compiler can only warn and ignore the option if not recognized
3065
 
    # So say no if there are warnings
3066
 
    if test -s conftest.err; then
3067
 
      compiler_rtti_exceptions=no
3068
 
    else
3069
 
      compiler_rtti_exceptions=yes
3070
 
    fi
3071
 
  
3072
 
else
3073
 
  echo "configure: failed program was:" >&5
3074
 
  cat conftest.$ac_ext >&5
3075
 
fi
3076
 
rm -f conftest*
3077
 
  CFLAGS="$save_CFLAGS"
3078
 
  echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3079
 
 
3080
 
  if test "$compiler_rtti_exceptions" = "yes"; then
3081
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3082
 
  else
3083
 
    no_builtin_flag=' -fno-builtin'
3084
 
  fi
3085
 
fi
3086
 
 
3087
 
# See if the linker supports building shared libraries.
3088
 
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3089
 
echo "configure:3090: checking whether the linker ($LD) supports shared libraries" >&5
3090
 
 
3091
 
allow_undefined_flag=
3092
 
no_undefined_flag=
3093
 
need_lib_prefix=unknown
3094
 
need_version=unknown
3095
 
# when you set need_version to no, make sure it does not cause -set_version
3096
 
# flags to be left without arguments
3097
 
archive_cmds=
3098
 
archive_expsym_cmds=
3099
 
old_archive_from_new_cmds=
3100
 
old_archive_from_expsyms_cmds=
3101
 
export_dynamic_flag_spec=
3102
 
whole_archive_flag_spec=
3103
 
thread_safe_flag_spec=
3104
 
hardcode_into_libs=no
3105
 
hardcode_libdir_flag_spec=
3106
 
hardcode_libdir_separator=
3107
 
hardcode_direct=no
3108
 
hardcode_minus_L=no
3109
 
hardcode_shlibpath_var=unsupported
3110
 
runpath_var=
3111
 
link_all_deplibs=unknown
3112
 
always_export_symbols=no
3113
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3114
 
# include_expsyms should be a list of space-separated symbols to be *always*
3115
 
# included in the symbol list
3116
 
include_expsyms=
3117
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
3118
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
3119
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3120
 
# as well as any symbol that contains `d'.
3121
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3122
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3123
 
# platforms (ab)use it in PIC code, but their linkers get confused if
3124
 
# the symbol is explicitly referenced.  Since portable code cannot
3125
 
# rely on this symbol name, it's probably fine to never include it in
3126
 
# preloaded symbol tables.
3127
 
extract_expsyms_cmds=
3128
 
 
3129
 
case $host_os in
3130
 
cygwin* | mingw* | pw32* )
3131
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
3132
 
  # When not using gcc, we currently assume that we are using
3133
 
  # Microsoft Visual C++.
3134
 
  if test "$GCC" != yes; then
3135
 
    with_gnu_ld=no
3136
 
  fi
3137
 
  ;;
3138
 
 
3139
 
esac
3140
 
 
3141
 
ld_shlibs=yes
3142
 
if test "$with_gnu_ld" = yes; then
3143
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
3144
 
  wlarc='${wl}'
3145
 
 
3146
 
  # See if GNU ld supports shared libraries.
3147
 
  case $host_os in
3148
 
  aix3* | aix4* | aix5*)
3149
 
    # On AIX, the GNU linker is very broken
3150
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3151
 
    ld_shlibs=no
3152
 
    cat <<EOF 1>&2
3153
 
 
3154
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
3155
 
*** to be unable to reliably create shared libraries on AIX.
3156
 
*** Therefore, libtool is disabling shared libraries support.  If you
3157
 
*** really care for shared libraries, you may want to modify your PATH
3158
 
*** so that a non-GNU linker is found, and then restart.
3159
 
 
3160
 
EOF
3161
 
    ;;
3162
 
 
3163
 
  amigaos*)
3164
 
    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)'
3165
 
    hardcode_libdir_flag_spec='-L$libdir'
3166
 
    hardcode_minus_L=yes
3167
 
 
3168
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3169
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
3170
 
    # to version 4, is to share data among multiple programs linked
3171
 
    # with the same dynamic library.  Since this doesn't match the
3172
 
    # behavior of shared libraries on other platforms, we can use
3173
 
    # them.
3174
 
    ld_shlibs=no
3175
 
    ;;
3176
 
 
3177
 
  beos*)
3178
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3179
 
      allow_undefined_flag=unsupported
3180
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3181
 
      # support --undefined.  This deserves some investigation.  FIXME
3182
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3183
 
    else
3184
 
      ld_shlibs=no
3185
 
    fi
3186
 
    ;;
3187
 
 
3188
 
  cygwin* | mingw* | pw32*)
3189
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
3190
 
    # no search path for DLLs.
3191
 
    hardcode_libdir_flag_spec='-L$libdir'
3192
 
    allow_undefined_flag=unsupported
3193
 
    always_export_symbols=yes
3194
 
 
3195
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3196
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3197
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3198
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3199
 
      else $CC -o impgen impgen.c ; fi)~
3200
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3201
 
 
3202
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3203
 
 
3204
 
    # cygwin and mingw dlls have different entry points and sets of symbols
3205
 
    # to exclude.
3206
 
    # FIXME: what about values for MSVC?
3207
 
    dll_entry=__cygwin_dll_entry@12
3208
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3209
 
    case $host_os in
3210
 
    mingw*)
3211
 
      # mingw values
3212
 
      dll_entry=_DllMainCRTStartup@12
3213
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3214
 
      ;;
3215
 
    esac
3216
 
 
3217
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
3218
 
    # of the two symbol sets.
3219
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3220
 
 
3221
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
3222
 
    # can override, but on older systems we have to supply one (in ltdll.c)
3223
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
3224
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3225
 
      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~
3226
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3227
 
    else
3228
 
      ltdll_obj=
3229
 
      ltdll_cmds=
3230
 
    fi
3231
 
 
3232
 
    # Extract the symbol export list from an `--export-all' def file,
3233
 
    # then regenerate the def file from the symbol export list, so that
3234
 
    # the compiled dll only exports the symbol export list.
3235
 
    # Be careful not to strip the DATA tag left be newer dlltools.
3236
 
    export_symbols_cmds="$ltdll_cmds"'
3237
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3238
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3239
 
 
3240
 
    # If the export-symbols file already is a .def file (1st line
3241
 
    # is EXPORTS), use it as is.
3242
 
    # If DATA tags from a recent dlltool are present, honour them!
3243
 
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3244
 
        cp $export_symbols $output_objdir/$soname-def;
3245
 
      else
3246
 
        echo EXPORTS > $output_objdir/$soname-def;
3247
 
        _lt_hint=1;
3248
 
        cat $export_symbols | while read symbol; do
3249
 
         set dummy \$symbol;
3250
 
         case \$# in
3251
 
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3252
 
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3253
 
         esac;
3254
 
         _lt_hint=`expr 1 + \$_lt_hint`;
3255
 
        done;
3256
 
      fi~
3257
 
      '"$ltdll_cmds"'
3258
 
      $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~
3259
 
      $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~
3260
 
      $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~
3261
 
      $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~
3262
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3263
 
    ;;
3264
 
 
3265
 
  netbsd*)
3266
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3267
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3268
 
      wlarc=
3269
 
    else
3270
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3271
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3272
 
    fi
3273
 
    ;;
3274
 
 
3275
 
  solaris* | sysv5*)
3276
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3277
 
      ld_shlibs=no
3278
 
      cat <<EOF 1>&2
3279
 
 
3280
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3281
 
*** create shared libraries on Solaris systems.  Therefore, libtool
3282
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
3283
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
3284
 
*** your PATH or compiler configuration so that the native linker is
3285
 
*** used, and then restart.
3286
 
 
3287
 
EOF
3288
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3289
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3290
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3291
 
    else
3292
 
      ld_shlibs=no
3293
 
    fi
3294
 
    ;;
3295
 
 
3296
 
  sunos4*)
3297
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3298
 
    wlarc=
3299
 
    hardcode_direct=yes
3300
 
    hardcode_shlibpath_var=no
3301
 
    ;;
3302
 
 
3303
 
  *)
3304
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3305
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3306
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3307
 
    else
3308
 
      ld_shlibs=no
3309
 
    fi
3310
 
    ;;
3311
 
  esac
3312
 
 
3313
 
  if test "$ld_shlibs" = yes; then
3314
 
    runpath_var=LD_RUN_PATH
3315
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3316
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
3317
 
    case $host_os in
3318
 
    cygwin* | mingw* | pw32*)
3319
 
      # dlltool doesn't understand --whole-archive et. al.
3320
 
      whole_archive_flag_spec=
3321
 
      ;;
3322
 
    *)
3323
 
      # ancient GNU ld didn't support --whole-archive et. al.
3324
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3325
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3326
 
      else
3327
 
        whole_archive_flag_spec=
3328
 
      fi
3329
 
      ;;
3330
 
    esac
3331
 
  fi
3332
 
else
3333
 
  # PORTME fill in a description of your system's linker (not GNU ld)
3334
 
  case $host_os in
3335
 
  aix3*)
3336
 
    allow_undefined_flag=unsupported
3337
 
    always_export_symbols=yes
3338
 
    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'
3339
 
    # Note: this linker hardcodes the directories in LIBPATH if there
3340
 
    # are no directories specified by -L.
3341
 
    hardcode_minus_L=yes
3342
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
3343
 
      # Neither direct hardcoding nor static linking is supported with a
3344
 
      # broken collect2.
3345
 
      hardcode_direct=unsupported
3346
 
    fi
3347
 
    ;;
3348
 
 
3349
 
  aix4* | aix5*)
3350
 
    # When large executables or shared objects are built, AIX ld can
3351
 
    # have problems creating the table of contents.  If linking a library
3352
 
    # or program results in "error TOC overflow" add -mminimal-toc to
3353
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3354
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3355
 
 
3356
 
    archive_cmds=''
3357
 
    hardcode_libdir_separator=':'
3358
 
    if test "$GCC" = yes; then
3359
 
      collect2name=`${CC} -print-prog-name=collect2`
3360
 
      if test -f "$collect2name" && \
3361
 
         strings "$collect2name" | grep resolve_lib_name >/dev/null
3362
 
      then
3363
 
        # We have reworked collect2
3364
 
        hardcode_direct=yes
3365
 
      else
3366
 
        # We have old collect2
3367
 
        hardcode_direct=unsupported
3368
 
        # It fails to find uninstalled libraries when the uninstalled
3369
 
        # path is not listed in the libpath.  Setting hardcode_minus_L
3370
 
        # to unsupported forces relinking
3371
 
        hardcode_minus_L=yes
3372
 
        hardcode_libdir_flag_spec='-L$libdir'
3373
 
        hardcode_libdir_separator=
3374
 
      fi
3375
 
      shared_flag='-shared'
3376
 
    else
3377
 
      if test "$host_cpu" = ia64; then
3378
 
        shared_flag='-G'
3379
 
      else
3380
 
        shared_flag='${wl}-bM:SRE'
3381
 
      fi
3382
 
      hardcode_direct=yes
3383
 
    fi
3384
 
 
3385
 
    if test "$host_cpu" = ia64; then
3386
 
      # On IA64, the linker does run time linking by default, so we don't
3387
 
      # have to do anything special.
3388
 
      aix_use_runtimelinking=no
3389
 
      exp_sym_flag='-Bexport'
3390
 
      no_entry_flag=""
3391
 
    else
3392
 
      # Test if we are trying to use run time linking, or normal AIX style linking.
3393
 
      # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
3394
 
      aix_use_runtimelinking=no
3395
 
      for ld_flag in $LDFLAGS; do
3396
 
        if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
3397
 
          aix_use_runtimelinking=yes
3398
 
          break
3399
 
        fi
3400
 
      done
3401
 
      exp_sym_flag='-bexport'
3402
 
      no_entry_flag='-bnoentry'
3403
 
    fi
3404
 
    # It seems that -bexpall can do strange things, so it is better to
3405
 
    # generate a list of symbols to export.
3406
 
    always_export_symbols=yes
3407
 
    if test "$aix_use_runtimelinking" = yes; then
3408
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3409
 
      allow_undefined_flag=' -Wl,-G'
3410
 
      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"
3411
 
    else
3412
 
      if test "$host_cpu" = ia64; then
3413
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3414
 
       allow_undefined_flag="-znodefs"
3415
 
        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"
3416
 
      else
3417
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3418
 
        # Warning - without using the other run time loading flags, -berok will
3419
 
        #           link without error, but may produce a broken library.
3420
 
        allow_undefined_flag='${wl}-berok"
3421
 
        # This is a bit strange, but is similar to how AIX traditionally builds
3422
 
        # it's shared libraries.
3423
 
        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'
3424
 
      fi
3425
 
    fi
3426
 
    ;;
3427
 
 
3428
 
  amigaos*)
3429
 
    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)'
3430
 
    hardcode_libdir_flag_spec='-L$libdir'
3431
 
    hardcode_minus_L=yes
3432
 
    # see comment about different semantics on the GNU ld section
3433
 
    ld_shlibs=no
3434
 
    ;;
3435
 
 
3436
 
  cygwin* | mingw* | pw32*)
3437
 
    # When not using gcc, we currently assume that we are using
3438
 
    # Microsoft Visual C++.
3439
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
3440
 
    # no search path for DLLs.
3441
 
    hardcode_libdir_flag_spec=' '
3442
 
    allow_undefined_flag=unsupported
3443
 
    # Tell ltmain to make .lib files, not .a files.
3444
 
    libext=lib
3445
 
    # FIXME: Setting linknames here is a bad hack.
3446
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3447
 
    # The linker will automatically build a .lib file if we build a DLL.
3448
 
    old_archive_from_new_cmds='true'
3449
 
    # FIXME: Should let the user specify the lib program.
3450
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3451
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
3452
 
    ;;
3453
 
 
3454
 
  darwin* | rhapsody*)
3455
 
    allow_undefined_flag='-undefined suppress'
3456
 
    # FIXME: Relying on posixy $() will cause problems for
3457
 
    #        cross-compilation, but unfortunately the echo tests do not
3458
 
    #        yet detect zsh echo's removal of \ escapes.
3459
 
    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
3460
 
    # We need to add '_' to the symbols in $export_symbols first
3461
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3462
 
    hardcode_direct=yes
3463
 
    hardcode_shlibpath_var=no
3464
 
    whole_archive_flag_spec='-all_load $convenience'
3465
 
    ;;
3466
 
 
3467
 
  freebsd1*)
3468
 
    ld_shlibs=no
3469
 
    ;;
3470
 
 
3471
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3472
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
3473
 
  # does not break anything, and helps significantly (at the cost of a little
3474
 
  # extra space).
3475
 
  freebsd2.2*)
3476
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3477
 
    hardcode_libdir_flag_spec='-R$libdir'
3478
 
    hardcode_direct=yes
3479
 
    hardcode_shlibpath_var=no
3480
 
    ;;
3481
 
 
3482
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3483
 
  freebsd2*)
3484
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3485
 
    hardcode_direct=yes
3486
 
    hardcode_minus_L=yes
3487
 
    hardcode_shlibpath_var=no
3488
 
    ;;
3489
 
 
3490
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3491
 
  freebsd*)
3492
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3493
 
    hardcode_libdir_flag_spec='-R$libdir'
3494
 
    hardcode_direct=yes
3495
 
    hardcode_shlibpath_var=no
3496
 
    ;;
3497
 
 
3498
 
  hpux9* | hpux10* | hpux11*)
3499
 
    case $host_os in
3500
 
    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' ;;
3501
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3502
 
    esac
3503
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3504
 
    hardcode_libdir_separator=:
3505
 
    hardcode_direct=yes
3506
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
3507
 
                         # location of the library.
3508
 
    export_dynamic_flag_spec='${wl}-E'
3509
 
    ;;
3510
 
 
3511
 
  irix5* | irix6*)
3512
 
    if test "$GCC" = yes; then
3513
 
      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'
3514
 
    else
3515
 
      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'
3516
 
    fi
3517
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3518
 
    hardcode_libdir_separator=:
3519
 
    link_all_deplibs=yes
3520
 
    ;;
3521
 
 
3522
 
  netbsd*)
3523
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3524
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3525
 
    else
3526
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
3527
 
    fi
3528
 
    hardcode_libdir_flag_spec='-R$libdir'
3529
 
    hardcode_direct=yes
3530
 
    hardcode_shlibpath_var=no
3531
 
    ;;
3532
 
 
3533
 
  newsos6)
3534
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
3535
 
    hardcode_direct=yes
3536
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3537
 
    hardcode_libdir_separator=:
3538
 
    hardcode_shlibpath_var=no
3539
 
    ;;
3540
 
 
3541
 
  openbsd*)
3542
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3543
 
    hardcode_libdir_flag_spec='-R$libdir'
3544
 
    hardcode_direct=yes
3545
 
    hardcode_shlibpath_var=no
3546
 
    ;;
3547
 
 
3548
 
  os2*)
3549
 
    hardcode_libdir_flag_spec='-L$libdir'
3550
 
    hardcode_minus_L=yes
3551
 
    allow_undefined_flag=unsupported
3552
 
    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'
3553
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3554
 
    ;;
3555
 
 
3556
 
  osf3*)
3557
 
    if test "$GCC" = yes; then
3558
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3559
 
      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'
3560
 
    else
3561
 
      allow_undefined_flag=' -expect_unresolved \*'
3562
 
      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'
3563
 
    fi
3564
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3565
 
    hardcode_libdir_separator=:
3566
 
    ;;
3567
 
 
3568
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
3569
 
    if test "$GCC" = yes; then
3570
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3571
 
      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'
3572
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3573
 
    else
3574
 
      allow_undefined_flag=' -expect_unresolved \*'
3575
 
      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'
3576
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3577
 
      $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'
3578
 
 
3579
 
      #Both c and cxx compiler support -rpath directly
3580
 
      hardcode_libdir_flag_spec='-rpath $libdir'
3581
 
    fi
3582
 
    hardcode_libdir_separator=:
3583
 
    ;;
3584
 
 
 
5593
#
 
5594
lt_prog_cc_shlib=
 
5595
if test "$GCC" = no; then
 
5596
  case $host_os in
3585
5597
  sco3.2v5*)
3586
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3587
 
    hardcode_shlibpath_var=no
3588
 
    runpath_var=LD_RUN_PATH
3589
 
    hardcode_runpath_var=yes
3590
 
    ;;
3591
 
 
3592
 
  solaris*)
3593
 
    no_undefined_flag=' -z defs'
3594
 
    # $CC -shared without GNU ld will not create a library from C++
3595
 
    # object files and a static libstdc++, better avoid it by now
3596
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3597
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3598
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3599
 
    hardcode_libdir_flag_spec='-R$libdir'
3600
 
    hardcode_shlibpath_var=no
3601
 
    case $host_os in
3602
 
    solaris2.[0-5] | solaris2.[0-5].*) ;;
3603
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3604
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3605
 
    esac
3606
 
    link_all_deplibs=yes
3607
 
    ;;
3608
 
 
3609
 
  sunos4*)
3610
 
    if test "x$host_vendor" = xsequent; then
3611
 
      # Use $CC to link under sequent, because it throws in some extra .o
3612
 
      # files that make .init and .fini sections work.
3613
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3614
 
    else
3615
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3616
 
    fi
3617
 
    hardcode_libdir_flag_spec='-L$libdir'
3618
 
    hardcode_direct=yes
3619
 
    hardcode_minus_L=yes
3620
 
    hardcode_shlibpath_var=no
3621
 
    ;;
3622
 
 
3623
 
  sysv4)
3624
 
    if test "x$host_vendor" = xsno; then
3625
 
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
3626
 
      hardcode_direct=yes # is this really true???
3627
 
    else
3628
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3629
 
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3630
 
    fi
3631
 
    runpath_var='LD_RUN_PATH'
3632
 
    hardcode_shlibpath_var=no
3633
 
    ;;
3634
 
 
3635
 
  sysv4.3*)
3636
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3637
 
    hardcode_shlibpath_var=no
3638
 
    export_dynamic_flag_spec='-Bexport'
3639
 
    ;;
3640
 
 
3641
 
  sysv5*)
3642
 
    no_undefined_flag=' -z text'
3643
 
    # $CC -shared without GNU ld will not create a library from C++
3644
 
    # object files and a static libstdc++, better avoid it by now
3645
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3646
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3647
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3648
 
    hardcode_libdir_flag_spec=
3649
 
    hardcode_shlibpath_var=no
3650
 
    runpath_var='LD_RUN_PATH'
3651
 
    ;;
3652
 
 
3653
 
  uts4*)
3654
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3655
 
    hardcode_libdir_flag_spec='-L$libdir'
3656
 
    hardcode_shlibpath_var=no
3657
 
    ;;
3658
 
 
3659
 
  dgux*)
3660
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3661
 
    hardcode_libdir_flag_spec='-L$libdir'
3662
 
    hardcode_shlibpath_var=no
3663
 
    ;;
3664
 
 
3665
 
  sysv4*MP*)
3666
 
    if test -d /usr/nec; then
3667
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3668
 
      hardcode_shlibpath_var=no
3669
 
      runpath_var=LD_RUN_PATH
3670
 
      hardcode_runpath_var=yes
3671
 
      ld_shlibs=yes
3672
 
    fi
3673
 
    ;;
3674
 
 
3675
 
  sysv4.2uw2*)
3676
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3677
 
    hardcode_direct=yes
3678
 
    hardcode_minus_L=no
3679
 
    hardcode_shlibpath_var=no
3680
 
    hardcode_runpath_var=yes
3681
 
    runpath_var=LD_RUN_PATH
3682
 
    ;;
3683
 
 
3684
 
  sysv5uw7* | unixware7*)
3685
 
    no_undefined_flag='${wl}-z ${wl}text'
3686
 
    if test "$GCC" = yes; then
3687
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3688
 
    else
3689
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3690
 
    fi
3691
 
    runpath_var='LD_RUN_PATH'
3692
 
    hardcode_shlibpath_var=no
3693
 
    ;;
3694
 
 
 
5598
    lt_prog_cc_shlib='-belf'
 
5599
    ;;
 
5600
  esac
 
5601
fi
 
5602
if test -n "$lt_prog_cc_shlib"; then
 
5603
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
5604
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
5605
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
5606
  else
 
5607
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5608
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5609
    lt_cv_prog_cc_can_build_shared=no
 
5610
  fi
 
5611
fi
 
5612
 
 
5613
 
 
5614
#
 
5615
# Check to make sure the static flag actually works.
 
5616
#
 
5617
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
5618
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
5619
if test "${lt_prog_compiler_static_works+set}" = set; then
 
5620
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5621
else
 
5622
  lt_prog_compiler_static_works=no
 
5623
   save_LDFLAGS="$LDFLAGS"
 
5624
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
5625
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
5626
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
5627
     # The compiler can only warn and ignore the option if not recognized
 
5628
     # So say no if there are warnings
 
5629
     if test -s conftest.err; then
 
5630
       # Append any errors to the config.log.
 
5631
       cat conftest.err 1>&5
 
5632
     else
 
5633
       lt_prog_compiler_static_works=yes
 
5634
     fi
 
5635
   fi
 
5636
   $rm conftest*
 
5637
   LDFLAGS="$save_LDFLAGS"
 
5638
 
 
5639
fi
 
5640
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
5641
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
5642
 
 
5643
if test x"$lt_prog_compiler_static_works" = xyes; then
 
5644
    :
 
5645
else
 
5646
    lt_prog_compiler_static=
 
5647
fi
 
5648
 
 
5649
 
 
5650
 
 
5651
 
 
5652
lt_prog_compiler_no_builtin_flag=
 
5653
 
 
5654
if test "$GCC" = yes; then
 
5655
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
5656
 
 
5657
 
 
5658
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5659
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5660
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
5661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5662
else
 
5663
  lt_cv_prog_compiler_rtti_exceptions=no
 
5664
  ac_outfile=conftest.$ac_objext
 
5665
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5666
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
5667
   # Insert the option either (1) after the last *FLAGS variable, or
 
5668
   # (2) before a word containing "conftest.", or (3) at the end.
 
5669
   # Note that $ac_compile itself does not contain backslashes and begins
 
5670
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5671
   # The option is referenced via a variable to avoid confusing sed.
 
5672
   lt_compile=`echo "$ac_compile" | $SED \
 
5673
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
5674
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5675
   -e 's:$: $lt_compiler_flag:'`
 
5676
   (eval echo "\"\$as_me:5676: $lt_compile\"" >&5)
 
5677
   (eval "$lt_compile" 2>conftest.err)
 
5678
   ac_status=$?
 
5679
   cat conftest.err >&5
 
5680
   echo "$as_me:5680: \$? = $ac_status" >&5
 
5681
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
5682
     # The compiler can only warn and ignore the option if not recognized
 
5683
     # So say no if there are warnings
 
5684
     if test ! -s conftest.err; then
 
5685
       lt_cv_prog_compiler_rtti_exceptions=yes
 
5686
     fi
 
5687
   fi
 
5688
   $rm conftest*
 
5689
 
 
5690
fi
 
5691
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
5692
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
5693
 
 
5694
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
5695
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
5696
else
 
5697
    :
 
5698
fi
 
5699
 
 
5700
fi
 
5701
 
 
5702
lt_prog_compiler_wl=
 
5703
lt_prog_compiler_pic=
 
5704
lt_prog_compiler_static=
 
5705
 
 
5706
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
5707
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
5708
 
 
5709
  if test "$GCC" = yes; then
 
5710
    lt_prog_compiler_wl='-Wl,'
 
5711
    lt_prog_compiler_static='-static'
 
5712
 
 
5713
    case $host_os in
 
5714
      aix*)
 
5715
      # All AIX code is PIC.
 
5716
      if test "$host_cpu" = ia64; then
 
5717
        # AIX 5 now supports IA64 processor
 
5718
        lt_prog_compiler_static='-Bstatic'
 
5719
      fi
 
5720
      ;;
 
5721
 
 
5722
    amigaos*)
 
5723
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5724
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5725
      # like `-m68040'.
 
5726
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
5727
      ;;
 
5728
 
 
5729
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5730
      # PIC is the default for these OSes.
 
5731
      ;;
 
5732
 
 
5733
    mingw* | pw32* | os2*)
 
5734
      # This hack is so that the source file can tell whether it is being
 
5735
      # built for inclusion in a dll (and should export symbols for example).
 
5736
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
5737
      ;;
 
5738
 
 
5739
    darwin* | rhapsody*)
 
5740
      # PIC is the default on this platform
 
5741
      # Common symbols not allowed in MH_DYLIB files
 
5742
      lt_prog_compiler_pic='-fno-common'
 
5743
      ;;
 
5744
 
 
5745
    msdosdjgpp*)
 
5746
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5747
      # on systems that don't support them.
 
5748
      lt_prog_compiler_can_build_shared=no
 
5749
      enable_shared=no
 
5750
      ;;
 
5751
 
 
5752
    sysv4*MP*)
 
5753
      if test -d /usr/nec; then
 
5754
        lt_prog_compiler_pic=-Kconform_pic
 
5755
      fi
 
5756
      ;;
 
5757
 
 
5758
    hpux*)
 
5759
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5760
      # not for PA HP-UX.
 
5761
      case "$host_cpu" in
 
5762
      hppa*64*|ia64*)
 
5763
        # +Z the default
 
5764
        ;;
 
5765
      *)
 
5766
        lt_prog_compiler_pic='-fPIC'
 
5767
        ;;
 
5768
      esac
 
5769
      ;;
 
5770
 
 
5771
    *)
 
5772
      lt_prog_compiler_pic='-fPIC'
 
5773
      ;;
 
5774
    esac
 
5775
  else
 
5776
    # PORTME Check for flag to pass linker flags through the system compiler.
 
5777
    case $host_os in
 
5778
    aix*)
 
5779
      lt_prog_compiler_wl='-Wl,'
 
5780
      if test "$host_cpu" = ia64; then
 
5781
        # AIX 5 now supports IA64 processor
 
5782
        lt_prog_compiler_static='-Bstatic'
 
5783
      else
 
5784
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
5785
      fi
 
5786
      ;;
 
5787
 
 
5788
    mingw* | pw32* | os2*)
 
5789
      # This hack is so that the source file can tell whether it is being
 
5790
      # built for inclusion in a dll (and should export symbols for example).
 
5791
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
5792
      ;;
 
5793
 
 
5794
    hpux9* | hpux10* | hpux11*)
 
5795
      lt_prog_compiler_wl='-Wl,'
 
5796
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5797
      # not for PA HP-UX.
 
5798
      case "$host_cpu" in
 
5799
      hppa*64*|ia64*)
 
5800
        # +Z the default
 
5801
        ;;
 
5802
      *)
 
5803
        lt_prog_compiler_pic='+Z'
 
5804
        ;;
 
5805
      esac
 
5806
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
5807
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
5808
      ;;
 
5809
 
 
5810
    irix5* | irix6* | nonstopux*)
 
5811
      lt_prog_compiler_wl='-Wl,'
 
5812
      # PIC (with -KPIC) is the default.
 
5813
      lt_prog_compiler_static='-non_shared'
 
5814
      ;;
 
5815
 
 
5816
    newsos6)
 
5817
      lt_prog_compiler_pic='-KPIC'
 
5818
      lt_prog_compiler_static='-Bstatic'
 
5819
      ;;
 
5820
 
 
5821
    linux*)
 
5822
      case $CC in
 
5823
      icc* | ecc*)
 
5824
        lt_prog_compiler_wl='-Wl,'
 
5825
        lt_prog_compiler_pic='-KPIC'
 
5826
        lt_prog_compiler_static='-static'
 
5827
        ;;
 
5828
      ccc*)
 
5829
        lt_prog_compiler_wl='-Wl,'
 
5830
        # All Alpha code is PIC.
 
5831
        lt_prog_compiler_static='-non_shared'
 
5832
        ;;
 
5833
      esac
 
5834
      ;;
 
5835
 
 
5836
    osf3* | osf4* | osf5*)
 
5837
      lt_prog_compiler_wl='-Wl,'
 
5838
      # All OSF/1 code is PIC.
 
5839
      lt_prog_compiler_static='-non_shared'
 
5840
      ;;
 
5841
 
 
5842
    sco3.2v5*)
 
5843
      lt_prog_compiler_pic='-Kpic'
 
5844
      lt_prog_compiler_static='-dn'
 
5845
      ;;
 
5846
 
 
5847
    solaris*)
 
5848
      lt_prog_compiler_wl='-Wl,'
 
5849
      lt_prog_compiler_pic='-KPIC'
 
5850
      lt_prog_compiler_static='-Bstatic'
 
5851
      ;;
 
5852
 
 
5853
    sunos4*)
 
5854
      lt_prog_compiler_wl='-Qoption ld '
 
5855
      lt_prog_compiler_pic='-PIC'
 
5856
      lt_prog_compiler_static='-Bstatic'
 
5857
      ;;
 
5858
 
 
5859
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5860
      lt_prog_compiler_wl='-Wl,'
 
5861
      lt_prog_compiler_pic='-KPIC'
 
5862
      lt_prog_compiler_static='-Bstatic'
 
5863
      ;;
 
5864
 
 
5865
    sysv4*MP*)
 
5866
      if test -d /usr/nec ;then
 
5867
        lt_prog_compiler_pic='-Kconform_pic'
 
5868
        lt_prog_compiler_static='-Bstatic'
 
5869
      fi
 
5870
      ;;
 
5871
 
 
5872
    uts4*)
 
5873
      lt_prog_compiler_pic='-pic'
 
5874
      lt_prog_compiler_static='-Bstatic'
 
5875
      ;;
 
5876
 
 
5877
    *)
 
5878
      lt_prog_compiler_can_build_shared=no
 
5879
      ;;
 
5880
    esac
 
5881
  fi
 
5882
 
 
5883
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
5884
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
5885
 
 
5886
#
 
5887
# Check to make sure the PIC flag actually works.
 
5888
#
 
5889
if test -n "$lt_prog_compiler_pic"; then
 
5890
 
 
5891
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
5892
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
5893
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
5894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5895
else
 
5896
  lt_prog_compiler_pic_works=no
 
5897
  ac_outfile=conftest.$ac_objext
 
5898
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5899
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
5900
   # Insert the option either (1) after the last *FLAGS variable, or
 
5901
   # (2) before a word containing "conftest.", or (3) at the end.
 
5902
   # Note that $ac_compile itself does not contain backslashes and begins
 
5903
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5904
   # The option is referenced via a variable to avoid confusing sed.
 
5905
   lt_compile=`echo "$ac_compile" | $SED \
 
5906
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
5907
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5908
   -e 's:$: $lt_compiler_flag:'`
 
5909
   (eval echo "\"\$as_me:5909: $lt_compile\"" >&5)
 
5910
   (eval "$lt_compile" 2>conftest.err)
 
5911
   ac_status=$?
 
5912
   cat conftest.err >&5
 
5913
   echo "$as_me:5913: \$? = $ac_status" >&5
 
5914
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
5915
     # The compiler can only warn and ignore the option if not recognized
 
5916
     # So say no if there are warnings
 
5917
     if test ! -s conftest.err; then
 
5918
       lt_prog_compiler_pic_works=yes
 
5919
     fi
 
5920
   fi
 
5921
   $rm conftest*
 
5922
 
 
5923
fi
 
5924
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
5925
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
5926
 
 
5927
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
5928
    case $lt_prog_compiler_pic in
 
5929
     "" | " "*) ;;
 
5930
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
5931
     esac
 
5932
else
 
5933
    lt_prog_compiler_pic=
 
5934
     lt_prog_compiler_can_build_shared=no
 
5935
fi
 
5936
 
 
5937
fi
 
5938
case "$host_os" in
 
5939
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5940
  *djgpp*)
 
5941
    lt_prog_compiler_pic=
 
5942
    ;;
3695
5943
  *)
3696
 
    ld_shlibs=no
 
5944
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
5945
    ;;
 
5946
esac
 
5947
 
 
5948
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
5949
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
5950
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
5951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5952
else
 
5953
  lt_cv_prog_compiler_c_o=no
 
5954
   $rm -r conftest 2>/dev/null
 
5955
   mkdir conftest
 
5956
   cd conftest
 
5957
   mkdir out
 
5958
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5959
 
 
5960
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
5961
   # that will create temporary files in the current directory regardless of
 
5962
   # the output directory.  Thus, making CWD read-only will cause this test
 
5963
   # to fail, enabling locking or at least warning the user not to do parallel
 
5964
   # builds.
 
5965
   chmod -w .
 
5966
 
 
5967
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
5968
   # Insert the option either (1) after the last *FLAGS variable, or
 
5969
   # (2) before a word containing "conftest.", or (3) at the end.
 
5970
   # Note that $ac_compile itself does not contain backslashes and begins
 
5971
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5972
   lt_compile=`echo "$ac_compile" | $SED \
 
5973
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
5974
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5975
   -e 's:$: $lt_compiler_flag:'`
 
5976
   (eval echo "\"\$as_me:5976: $lt_compile\"" >&5)
 
5977
   (eval "$lt_compile" 2>out/conftest.err)
 
5978
   ac_status=$?
 
5979
   cat out/conftest.err >&5
 
5980
   echo "$as_me:5980: \$? = $ac_status" >&5
 
5981
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
5982
   then
 
5983
     # The compiler can only warn and ignore the option if not recognized
 
5984
     # So say no if there are warnings
 
5985
     if test ! -s out/conftest.err; then
 
5986
       lt_cv_prog_compiler_c_o=yes
 
5987
     fi
 
5988
   fi
 
5989
   chmod u+w .
 
5990
   $rm conftest*
 
5991
   # SGI C++ compiler will create directory out/ii_files/ for
 
5992
   # template instantiation
 
5993
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
5994
   $rm out/* && rmdir out
 
5995
   cd ..
 
5996
   rmdir conftest
 
5997
   $rm conftest*
 
5998
 
 
5999
fi
 
6000
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6001
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6002
 
 
6003
 
 
6004
hard_links="nottested"
 
6005
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6006
  # do not overwrite the value of need_locks provided by the user
 
6007
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6008
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6009
  hard_links=yes
 
6010
  $rm conftest*
 
6011
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6012
  touch conftest.a
 
6013
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6014
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6015
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6016
echo "${ECHO_T}$hard_links" >&6
 
6017
  if test "$hard_links" = no; then
 
6018
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6019
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6020
    need_locks=warn
 
6021
  fi
 
6022
else
 
6023
  need_locks=no
 
6024
fi
 
6025
 
 
6026
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6027
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6028
 
 
6029
  runpath_var=
 
6030
  allow_undefined_flag=
 
6031
  enable_shared_with_static_runtimes=no
 
6032
  archive_cmds=
 
6033
  archive_expsym_cmds=
 
6034
  old_archive_From_new_cmds=
 
6035
  old_archive_from_expsyms_cmds=
 
6036
  export_dynamic_flag_spec=
 
6037
  whole_archive_flag_spec=
 
6038
  thread_safe_flag_spec=
 
6039
  hardcode_libdir_flag_spec=
 
6040
  hardcode_libdir_flag_spec_ld=
 
6041
  hardcode_libdir_separator=
 
6042
  hardcode_direct=no
 
6043
  hardcode_minus_L=no
 
6044
  hardcode_shlibpath_var=unsupported
 
6045
  link_all_deplibs=unknown
 
6046
  hardcode_automatic=no
 
6047
  module_cmds=
 
6048
  module_expsym_cmds=
 
6049
  always_export_symbols=no
 
6050
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6051
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6052
  # included in the symbol list
 
6053
  include_expsyms=
 
6054
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6055
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6056
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6057
  # as well as any symbol that contains `d'.
 
6058
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6059
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6060
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6061
  # the symbol is explicitly referenced.  Since portable code cannot
 
6062
  # rely on this symbol name, it's probably fine to never include it in
 
6063
  # preloaded symbol tables.
 
6064
  extract_expsyms_cmds=
 
6065
 
 
6066
  case $host_os in
 
6067
  cygwin* | mingw* | pw32*)
 
6068
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6069
    # When not using gcc, we currently assume that we are using
 
6070
    # Microsoft Visual C++.
 
6071
    if test "$GCC" != yes; then
 
6072
      with_gnu_ld=no
 
6073
    fi
 
6074
    ;;
 
6075
  openbsd*)
 
6076
    with_gnu_ld=no
3697
6077
    ;;
3698
6078
  esac
3699
 
fi
3700
 
echo "$ac_t""$ld_shlibs" 1>&6
 
6079
 
 
6080
  ld_shlibs=yes
 
6081
  if test "$with_gnu_ld" = yes; then
 
6082
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6083
    wlarc='${wl}'
 
6084
 
 
6085
    # See if GNU ld supports shared libraries.
 
6086
    case $host_os in
 
6087
    aix3* | aix4* | aix5*)
 
6088
      # On AIX/PPC, the GNU linker is very broken
 
6089
      if test "$host_cpu" != ia64; then
 
6090
        ld_shlibs=no
 
6091
        cat <<EOF 1>&2
 
6092
 
 
6093
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6094
*** to be unable to reliably create shared libraries on AIX.
 
6095
*** Therefore, libtool is disabling shared libraries support.  If you
 
6096
*** really care for shared libraries, you may want to modify your PATH
 
6097
*** so that a non-GNU linker is found, and then restart.
 
6098
 
 
6099
EOF
 
6100
      fi
 
6101
      ;;
 
6102
 
 
6103
    amigaos*)
 
6104
      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)'
 
6105
      hardcode_libdir_flag_spec='-L$libdir'
 
6106
      hardcode_minus_L=yes
 
6107
 
 
6108
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6109
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6110
      # to version 4, is to share data among multiple programs linked
 
6111
      # with the same dynamic library.  Since this doesn't match the
 
6112
      # behavior of shared libraries on other platforms, we can't use
 
6113
      # them.
 
6114
      ld_shlibs=no
 
6115
      ;;
 
6116
 
 
6117
    beos*)
 
6118
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6119
        allow_undefined_flag=unsupported
 
6120
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6121
        # support --undefined.  This deserves some investigation.  FIXME
 
6122
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6123
      else
 
6124
        ld_shlibs=no
 
6125
      fi
 
6126
      ;;
 
6127
 
 
6128
    cygwin* | mingw* | pw32*)
 
6129
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6130
      # as there is no search path for DLLs.
 
6131
      hardcode_libdir_flag_spec='-L$libdir'
 
6132
      allow_undefined_flag=unsupported
 
6133
      always_export_symbols=no
 
6134
      enable_shared_with_static_runtimes=yes
 
6135
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6136
 
 
6137
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6138
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6139
        # If the export-symbols file already is a .def file (1st line
 
6140
        # is EXPORTS), use it as is; otherwise, prepend...
 
6141
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6142
          cp $export_symbols $output_objdir/$soname.def;
 
6143
        else
 
6144
          echo EXPORTS > $output_objdir/$soname.def;
 
6145
          cat $export_symbols >> $output_objdir/$soname.def;
 
6146
        fi~
 
6147
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6148
      else
 
6149
        ld_shlibs=no
 
6150
      fi
 
6151
      ;;
 
6152
 
 
6153
    netbsd*)
 
6154
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6155
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6156
        wlarc=
 
6157
      else
 
6158
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6159
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6160
      fi
 
6161
      ;;
 
6162
 
 
6163
    solaris* | sysv5*)
 
6164
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6165
        ld_shlibs=no
 
6166
        cat <<EOF 1>&2
 
6167
 
 
6168
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6169
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6170
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6171
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6172
*** your PATH or compiler configuration so that the native linker is
 
6173
*** used, and then restart.
 
6174
 
 
6175
EOF
 
6176
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6177
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6178
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6179
      else
 
6180
        ld_shlibs=no
 
6181
      fi
 
6182
      ;;
 
6183
 
 
6184
    sunos4*)
 
6185
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6186
      wlarc=
 
6187
      hardcode_direct=yes
 
6188
      hardcode_shlibpath_var=no
 
6189
      ;;
 
6190
 
 
6191
  linux*)
 
6192
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6193
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6194
        archive_cmds="$tmp_archive_cmds"
 
6195
      supports_anon_versioning=no
 
6196
      case `$LD -v 2>/dev/null` in
 
6197
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6198
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6199
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6200
        *\ 2.11.*) ;; # other 2.11 versions
 
6201
        *) supports_anon_versioning=yes ;;
 
6202
      esac
 
6203
      if test $supports_anon_versioning = yes; then
 
6204
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6205
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6206
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
6207
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6208
      else
 
6209
        archive_expsym_cmds="$tmp_archive_cmds"
 
6210
      fi
 
6211
    else
 
6212
      ld_shlibs=no
 
6213
    fi
 
6214
    ;;
 
6215
 
 
6216
    *)
 
6217
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6218
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6219
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6220
      else
 
6221
        ld_shlibs=no
 
6222
      fi
 
6223
      ;;
 
6224
    esac
 
6225
 
 
6226
    if test "$ld_shlibs" = yes; then
 
6227
      runpath_var=LD_RUN_PATH
 
6228
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6229
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
6230
      # ancient GNU ld didn't support --whole-archive et. al.
 
6231
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6232
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6233
      else
 
6234
        whole_archive_flag_spec=
 
6235
      fi
 
6236
    fi
 
6237
  else
 
6238
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6239
    case $host_os in
 
6240
    aix3*)
 
6241
      allow_undefined_flag=unsupported
 
6242
      always_export_symbols=yes
 
6243
      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'
 
6244
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6245
      # are no directories specified by -L.
 
6246
      hardcode_minus_L=yes
 
6247
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6248
        # Neither direct hardcoding nor static linking is supported with a
 
6249
        # broken collect2.
 
6250
        hardcode_direct=unsupported
 
6251
      fi
 
6252
      ;;
 
6253
 
 
6254
    aix4* | aix5*)
 
6255
      if test "$host_cpu" = ia64; then
 
6256
        # On IA64, the linker does run time linking by default, so we don't
 
6257
        # have to do anything special.
 
6258
        aix_use_runtimelinking=no
 
6259
        exp_sym_flag='-Bexport'
 
6260
        no_entry_flag=""
 
6261
      else
 
6262
        # If we're using GNU nm, then we don't want the "-C" option.
 
6263
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6264
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6265
          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'
 
6266
        else
 
6267
          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'
 
6268
        fi
 
6269
        aix_use_runtimelinking=no
 
6270
 
 
6271
        # Test if we are trying to use run time linking or normal
 
6272
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6273
        # need to do runtime linking.
 
6274
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6275
          for ld_flag in $LDFLAGS; do
 
6276
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6277
            aix_use_runtimelinking=yes
 
6278
            break
 
6279
          fi
 
6280
          done
 
6281
        esac
 
6282
 
 
6283
        exp_sym_flag='-bexport'
 
6284
        no_entry_flag='-bnoentry'
 
6285
      fi
 
6286
 
 
6287
      # When large executables or shared objects are built, AIX ld can
 
6288
      # have problems creating the table of contents.  If linking a library
 
6289
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6290
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6291
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6292
 
 
6293
      archive_cmds=''
 
6294
      hardcode_direct=yes
 
6295
      hardcode_libdir_separator=':'
 
6296
      link_all_deplibs=yes
 
6297
 
 
6298
      if test "$GCC" = yes; then
 
6299
        case $host_os in aix4.012|aix4.012.*)
 
6300
        # We only want to do this on AIX 4.2 and lower, the check
 
6301
        # below for broken collect2 doesn't work under 4.3+
 
6302
          collect2name=`${CC} -print-prog-name=collect2`
 
6303
          if test -f "$collect2name" && \
 
6304
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6305
          then
 
6306
          # We have reworked collect2
 
6307
          hardcode_direct=yes
 
6308
          else
 
6309
          # We have old collect2
 
6310
          hardcode_direct=unsupported
 
6311
          # It fails to find uninstalled libraries when the uninstalled
 
6312
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6313
          # to unsupported forces relinking
 
6314
          hardcode_minus_L=yes
 
6315
          hardcode_libdir_flag_spec='-L$libdir'
 
6316
          hardcode_libdir_separator=
 
6317
          fi
 
6318
        esac
 
6319
        shared_flag='-shared'
 
6320
      else
 
6321
        # not using gcc
 
6322
        if test "$host_cpu" = ia64; then
 
6323
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6324
        # chokes on -Wl,-G. The following line is correct:
 
6325
          shared_flag='-G'
 
6326
        else
 
6327
        if test "$aix_use_runtimelinking" = yes; then
 
6328
            shared_flag='${wl}-G'
 
6329
          else
 
6330
            shared_flag='${wl}-bM:SRE'
 
6331
        fi
 
6332
        fi
 
6333
      fi
 
6334
 
 
6335
      # It seems that -bexpall does not export symbols beginning with
 
6336
      # underscore (_), so it is better to generate a list of symbols to export.
 
6337
      always_export_symbols=yes
 
6338
      if test "$aix_use_runtimelinking" = yes; then
 
6339
        # Warning - without using the other runtime loading flags (-brtl),
 
6340
        # -berok will link without error, but may produce a broken library.
 
6341
        allow_undefined_flag='-berok'
 
6342
       # Determine the default libpath from the value encoded in an empty executable.
 
6343
       cat >conftest.$ac_ext <<_ACEOF
 
6344
#line $LINENO "configure"
 
6345
/* confdefs.h.  */
 
6346
_ACEOF
 
6347
cat confdefs.h >>conftest.$ac_ext
 
6348
cat >>conftest.$ac_ext <<_ACEOF
 
6349
/* end confdefs.h.  */
 
6350
 
 
6351
int
 
6352
main ()
 
6353
{
 
6354
 
 
6355
  ;
 
6356
  return 0;
 
6357
}
 
6358
_ACEOF
 
6359
rm -f conftest.$ac_objext conftest$ac_exeext
 
6360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6361
  (eval $ac_link) 2>&5
 
6362
  ac_status=$?
 
6363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6364
  (exit $ac_status); } &&
 
6365
         { ac_try='test -s conftest$ac_exeext'
 
6366
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6367
  (eval $ac_try) 2>&5
 
6368
  ac_status=$?
 
6369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6370
  (exit $ac_status); }; }; then
 
6371
 
 
6372
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6373
}'`
 
6374
# Check for a 64-bit object if we didn't find anything.
 
6375
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; }
 
6376
}'`; fi
 
6377
else
 
6378
  echo "$as_me: failed program was:" >&5
 
6379
sed 's/^/| /' conftest.$ac_ext >&5
 
6380
 
 
6381
fi
 
6382
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6383
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6384
 
 
6385
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6386
        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"
 
6387
       else
 
6388
        if test "$host_cpu" = ia64; then
 
6389
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6390
          allow_undefined_flag="-z nodefs"
 
6391
          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"
 
6392
        else
 
6393
         # Determine the default libpath from the value encoded in an empty executable.
 
6394
         cat >conftest.$ac_ext <<_ACEOF
 
6395
#line $LINENO "configure"
 
6396
/* confdefs.h.  */
 
6397
_ACEOF
 
6398
cat confdefs.h >>conftest.$ac_ext
 
6399
cat >>conftest.$ac_ext <<_ACEOF
 
6400
/* end confdefs.h.  */
 
6401
 
 
6402
int
 
6403
main ()
 
6404
{
 
6405
 
 
6406
  ;
 
6407
  return 0;
 
6408
}
 
6409
_ACEOF
 
6410
rm -f conftest.$ac_objext conftest$ac_exeext
 
6411
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6412
  (eval $ac_link) 2>&5
 
6413
  ac_status=$?
 
6414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6415
  (exit $ac_status); } &&
 
6416
         { ac_try='test -s conftest$ac_exeext'
 
6417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6418
  (eval $ac_try) 2>&5
 
6419
  ac_status=$?
 
6420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6421
  (exit $ac_status); }; }; then
 
6422
 
 
6423
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6424
}'`
 
6425
# Check for a 64-bit object if we didn't find anything.
 
6426
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; }
 
6427
}'`; fi
 
6428
else
 
6429
  echo "$as_me: failed program was:" >&5
 
6430
sed 's/^/| /' conftest.$ac_ext >&5
 
6431
 
 
6432
fi
 
6433
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6434
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6435
 
 
6436
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6437
          # Warning - without using the other run time loading flags,
 
6438
          # -berok will link without error, but may produce a broken library.
 
6439
          no_undefined_flag=' ${wl}-bernotok'
 
6440
          allow_undefined_flag=' ${wl}-berok'
 
6441
          # -bexpall does not export symbols beginning with underscore (_)
 
6442
          always_export_symbols=yes
 
6443
          # Exported symbols can be pulled into shared objects from archives
 
6444
          whole_archive_flag_spec=' '
 
6445
          archive_cmds_need_lc=yes
 
6446
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6447
          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'
 
6448
        fi
 
6449
      fi
 
6450
      ;;
 
6451
 
 
6452
    amigaos*)
 
6453
      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)'
 
6454
      hardcode_libdir_flag_spec='-L$libdir'
 
6455
      hardcode_minus_L=yes
 
6456
      # see comment about different semantics on the GNU ld section
 
6457
      ld_shlibs=no
 
6458
      ;;
 
6459
 
 
6460
    bsdi4*)
 
6461
      export_dynamic_flag_spec=-rdynamic
 
6462
      ;;
 
6463
 
 
6464
    cygwin* | mingw* | pw32*)
 
6465
      # When not using gcc, we currently assume that we are using
 
6466
      # Microsoft Visual C++.
 
6467
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6468
      # no search path for DLLs.
 
6469
      hardcode_libdir_flag_spec=' '
 
6470
      allow_undefined_flag=unsupported
 
6471
      # Tell ltmain to make .lib files, not .a files.
 
6472
      libext=lib
 
6473
      # Tell ltmain to make .dll files, not .so files.
 
6474
      shrext=".dll"
 
6475
      # FIXME: Setting linknames here is a bad hack.
 
6476
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6477
      # The linker will automatically build a .lib file if we build a DLL.
 
6478
      old_archive_From_new_cmds='true'
 
6479
      # FIXME: Should let the user specify the lib program.
 
6480
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6481
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6482
      enable_shared_with_static_runtimes=yes
 
6483
      ;;
 
6484
 
 
6485
    darwin* | rhapsody*)
 
6486
    if test "$GXX" = yes ; then
 
6487
      archive_cmds_need_lc=no
 
6488
      case "$host_os" in
 
6489
      rhapsody* | darwin1.[012])
 
6490
        allow_undefined_flag='-undefined suppress'
 
6491
        ;;
 
6492
      *) # Darwin 1.3 on
 
6493
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6494
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
6495
      else
 
6496
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
6497
          10.[012])
 
6498
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
6499
            ;;
 
6500
          10.*)
 
6501
            allow_undefined_flag='-undefined dynamic_lookup'
 
6502
            ;;
 
6503
        esac
 
6504
      fi
 
6505
        ;;
 
6506
      esac
 
6507
        lt_int_apple_cc_single_mod=no
 
6508
        output_verbose_link_cmd='echo'
 
6509
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
6510
          lt_int_apple_cc_single_mod=yes
 
6511
        fi
 
6512
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
6513
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6514
        else
 
6515
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6516
      fi
 
6517
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6518
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6519
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
6520
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6521
        else
 
6522
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6523
        fi
 
6524
          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}'
 
6525
      hardcode_direct=no
 
6526
      hardcode_automatic=yes
 
6527
      hardcode_shlibpath_var=unsupported
 
6528
      whole_archive_flag_spec='-all_load $convenience'
 
6529
      link_all_deplibs=yes
 
6530
    else
 
6531
      ld_shlibs=no
 
6532
    fi
 
6533
      ;;
 
6534
 
 
6535
    dgux*)
 
6536
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6537
      hardcode_libdir_flag_spec='-L$libdir'
 
6538
      hardcode_shlibpath_var=no
 
6539
      ;;
 
6540
 
 
6541
    freebsd1*)
 
6542
      ld_shlibs=no
 
6543
      ;;
 
6544
 
 
6545
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6546
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6547
    # does not break anything, and helps significantly (at the cost of a little
 
6548
    # extra space).
 
6549
    freebsd2.2*)
 
6550
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6551
      hardcode_libdir_flag_spec='-R$libdir'
 
6552
      hardcode_direct=yes
 
6553
      hardcode_shlibpath_var=no
 
6554
      ;;
 
6555
 
 
6556
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6557
    freebsd2*)
 
6558
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6559
      hardcode_direct=yes
 
6560
      hardcode_minus_L=yes
 
6561
      hardcode_shlibpath_var=no
 
6562
      ;;
 
6563
 
 
6564
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6565
    freebsd* | kfreebsd*-gnu)
 
6566
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6567
      hardcode_libdir_flag_spec='-R$libdir'
 
6568
      hardcode_direct=yes
 
6569
      hardcode_shlibpath_var=no
 
6570
      ;;
 
6571
 
 
6572
    hpux9*)
 
6573
      if test "$GCC" = yes; then
 
6574
        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'
 
6575
      else
 
6576
        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'
 
6577
      fi
 
6578
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6579
      hardcode_libdir_separator=:
 
6580
      hardcode_direct=yes
 
6581
 
 
6582
      # hardcode_minus_L: Not really in the search PATH,
 
6583
      # but as the default location of the library.
 
6584
      hardcode_minus_L=yes
 
6585
      export_dynamic_flag_spec='${wl}-E'
 
6586
      ;;
 
6587
 
 
6588
    hpux10* | hpux11*)
 
6589
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6590
        case "$host_cpu" in
 
6591
        hppa*64*|ia64*)
 
6592
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6593
          ;;
 
6594
        *)
 
6595
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6596
          ;;
 
6597
        esac
 
6598
      else
 
6599
        case "$host_cpu" in
 
6600
        hppa*64*|ia64*)
 
6601
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6602
          ;;
 
6603
        *)
 
6604
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6605
          ;;
 
6606
        esac
 
6607
      fi
 
6608
      if test "$with_gnu_ld" = no; then
 
6609
        case "$host_cpu" in
 
6610
        hppa*64*)
 
6611
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6612
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
6613
          hardcode_libdir_separator=:
 
6614
          hardcode_direct=no
 
6615
          hardcode_shlibpath_var=no
 
6616
          ;;
 
6617
        ia64*)
 
6618
          hardcode_libdir_flag_spec='-L$libdir'
 
6619
          hardcode_direct=no
 
6620
          hardcode_shlibpath_var=no
 
6621
 
 
6622
          # hardcode_minus_L: Not really in the search PATH,
 
6623
          # but as the default location of the library.
 
6624
          hardcode_minus_L=yes
 
6625
          ;;
 
6626
        *)
 
6627
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6628
          hardcode_libdir_separator=:
 
6629
          hardcode_direct=yes
 
6630
          export_dynamic_flag_spec='${wl}-E'
 
6631
 
 
6632
          # hardcode_minus_L: Not really in the search PATH,
 
6633
          # but as the default location of the library.
 
6634
          hardcode_minus_L=yes
 
6635
          ;;
 
6636
        esac
 
6637
      fi
 
6638
      ;;
 
6639
 
 
6640
    irix5* | irix6* | nonstopux*)
 
6641
      if test "$GCC" = yes; then
 
6642
        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'
 
6643
      else
 
6644
        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'
 
6645
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
6646
      fi
 
6647
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6648
      hardcode_libdir_separator=:
 
6649
      link_all_deplibs=yes
 
6650
      ;;
 
6651
 
 
6652
    netbsd*)
 
6653
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6654
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6655
      else
 
6656
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6657
      fi
 
6658
      hardcode_libdir_flag_spec='-R$libdir'
 
6659
      hardcode_direct=yes
 
6660
      hardcode_shlibpath_var=no
 
6661
      ;;
 
6662
 
 
6663
    newsos6)
 
6664
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6665
      hardcode_direct=yes
 
6666
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6667
      hardcode_libdir_separator=:
 
6668
      hardcode_shlibpath_var=no
 
6669
      ;;
 
6670
 
 
6671
    openbsd*)
 
6672
      hardcode_direct=yes
 
6673
      hardcode_shlibpath_var=no
 
6674
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6675
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6676
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6677
        export_dynamic_flag_spec='${wl}-E'
 
6678
      else
 
6679
       case $host_os in
 
6680
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
6681
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6682
           hardcode_libdir_flag_spec='-R$libdir'
 
6683
           ;;
 
6684
         *)
 
6685
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6686
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6687
           ;;
 
6688
       esac
 
6689
      fi
 
6690
      ;;
 
6691
 
 
6692
    os2*)
 
6693
      hardcode_libdir_flag_spec='-L$libdir'
 
6694
      hardcode_minus_L=yes
 
6695
      allow_undefined_flag=unsupported
 
6696
      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'
 
6697
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6698
      ;;
 
6699
 
 
6700
    osf3*)
 
6701
      if test "$GCC" = yes; then
 
6702
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6703
        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'
 
6704
      else
 
6705
        allow_undefined_flag=' -expect_unresolved \*'
 
6706
        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'
 
6707
      fi
 
6708
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6709
      hardcode_libdir_separator=:
 
6710
      ;;
 
6711
 
 
6712
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
6713
      if test "$GCC" = yes; then
 
6714
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6715
        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'
 
6716
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6717
      else
 
6718
        allow_undefined_flag=' -expect_unresolved \*'
 
6719
        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'
 
6720
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
6721
        $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'
 
6722
 
 
6723
        # Both c and cxx compiler support -rpath directly
 
6724
        hardcode_libdir_flag_spec='-rpath $libdir'
 
6725
      fi
 
6726
      hardcode_libdir_separator=:
 
6727
      ;;
 
6728
 
 
6729
    sco3.2v5*)
 
6730
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6731
      hardcode_shlibpath_var=no
 
6732
      export_dynamic_flag_spec='${wl}-Bexport'
 
6733
      runpath_var=LD_RUN_PATH
 
6734
      hardcode_runpath_var=yes
 
6735
      ;;
 
6736
 
 
6737
    solaris*)
 
6738
      no_undefined_flag=' -z text'
 
6739
      if test "$GCC" = yes; then
 
6740
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6741
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6742
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
6743
      else
 
6744
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6745
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6746
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6747
      fi
 
6748
      hardcode_libdir_flag_spec='-R$libdir'
 
6749
      hardcode_shlibpath_var=no
 
6750
      case $host_os in
 
6751
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
6752
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6753
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
6754
      esac
 
6755
      link_all_deplibs=yes
 
6756
      ;;
 
6757
 
 
6758
    sunos4*)
 
6759
      if test "x$host_vendor" = xsequent; then
 
6760
        # Use $CC to link under sequent, because it throws in some extra .o
 
6761
        # files that make .init and .fini sections work.
 
6762
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6763
      else
 
6764
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6765
      fi
 
6766
      hardcode_libdir_flag_spec='-L$libdir'
 
6767
      hardcode_direct=yes
 
6768
      hardcode_minus_L=yes
 
6769
      hardcode_shlibpath_var=no
 
6770
      ;;
 
6771
 
 
6772
    sysv4)
 
6773
      case $host_vendor in
 
6774
        sni)
 
6775
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6776
          hardcode_direct=yes # is this really true???
 
6777
        ;;
 
6778
        siemens)
 
6779
          ## LD is ld it makes a PLAMLIB
 
6780
          ## CC just makes a GrossModule.
 
6781
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6782
          reload_cmds='$CC -r -o $output$reload_objs'
 
6783
          hardcode_direct=no
 
6784
        ;;
 
6785
        motorola)
 
6786
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6787
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
6788
        ;;
 
6789
      esac
 
6790
      runpath_var='LD_RUN_PATH'
 
6791
      hardcode_shlibpath_var=no
 
6792
      ;;
 
6793
 
 
6794
    sysv4.3*)
 
6795
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6796
      hardcode_shlibpath_var=no
 
6797
      export_dynamic_flag_spec='-Bexport'
 
6798
      ;;
 
6799
 
 
6800
    sysv4*MP*)
 
6801
      if test -d /usr/nec; then
 
6802
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6803
        hardcode_shlibpath_var=no
 
6804
        runpath_var=LD_RUN_PATH
 
6805
        hardcode_runpath_var=yes
 
6806
        ld_shlibs=yes
 
6807
      fi
 
6808
      ;;
 
6809
 
 
6810
    sysv4.2uw2*)
 
6811
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6812
      hardcode_direct=yes
 
6813
      hardcode_minus_L=no
 
6814
      hardcode_shlibpath_var=no
 
6815
      hardcode_runpath_var=yes
 
6816
      runpath_var=LD_RUN_PATH
 
6817
      ;;
 
6818
 
 
6819
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
6820
      no_undefined_flag='${wl}-z ${wl}text'
 
6821
      if test "$GCC" = yes; then
 
6822
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6823
      else
 
6824
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6825
      fi
 
6826
      runpath_var='LD_RUN_PATH'
 
6827
      hardcode_shlibpath_var=no
 
6828
      ;;
 
6829
 
 
6830
    sysv5*)
 
6831
      no_undefined_flag=' -z text'
 
6832
      # $CC -shared without GNU ld will not create a library from C++
 
6833
      # object files and a static libstdc++, better avoid it by now
 
6834
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6835
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6836
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6837
      hardcode_libdir_flag_spec=
 
6838
      hardcode_shlibpath_var=no
 
6839
      runpath_var='LD_RUN_PATH'
 
6840
      ;;
 
6841
 
 
6842
    uts4*)
 
6843
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6844
      hardcode_libdir_flag_spec='-L$libdir'
 
6845
      hardcode_shlibpath_var=no
 
6846
      ;;
 
6847
 
 
6848
    *)
 
6849
      ld_shlibs=no
 
6850
      ;;
 
6851
    esac
 
6852
  fi
 
6853
 
 
6854
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
6855
echo "${ECHO_T}$ld_shlibs" >&6
3701
6856
test "$ld_shlibs" = no && can_build_shared=no
3702
6857
 
3703
 
# Check hardcoding attributes.
3704
 
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3705
 
echo "configure:3706: checking how to hardcode library paths into programs" >&5
 
6858
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6859
if test "$GCC" = yes; then
 
6860
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6861
fi
 
6862
 
 
6863
#
 
6864
# Do we need to explicitly link libc?
 
6865
#
 
6866
case "x$archive_cmds_need_lc" in
 
6867
x|xyes)
 
6868
  # Assume -lc should be added
 
6869
  archive_cmds_need_lc=yes
 
6870
 
 
6871
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6872
    case $archive_cmds in
 
6873
    *'~'*)
 
6874
      # FIXME: we may have to deal with multi-command sequences.
 
6875
      ;;
 
6876
    '$CC '*)
 
6877
      # Test whether the compiler implicitly links with -lc since on some
 
6878
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6879
      # to ld, don't add -lc before -lgcc.
 
6880
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
6881
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
6882
      $rm conftest*
 
6883
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6884
 
 
6885
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6886
  (eval $ac_compile) 2>&5
 
6887
  ac_status=$?
 
6888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6889
  (exit $ac_status); } 2>conftest.err; then
 
6890
        soname=conftest
 
6891
        lib=conftest
 
6892
        libobjs=conftest.$ac_objext
 
6893
        deplibs=
 
6894
        wl=$lt_prog_compiler_wl
 
6895
        compiler_flags=-v
 
6896
        linker_flags=-v
 
6897
        verstring=
 
6898
        output_objdir=.
 
6899
        libname=conftest
 
6900
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
6901
        allow_undefined_flag=
 
6902
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
6903
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
6904
  ac_status=$?
 
6905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6906
  (exit $ac_status); }
 
6907
        then
 
6908
          archive_cmds_need_lc=no
 
6909
        else
 
6910
          archive_cmds_need_lc=yes
 
6911
        fi
 
6912
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
6913
      else
 
6914
        cat conftest.err 1>&5
 
6915
      fi
 
6916
      $rm conftest*
 
6917
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
6918
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
6919
      ;;
 
6920
    esac
 
6921
  fi
 
6922
  ;;
 
6923
esac
 
6924
 
 
6925
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
6926
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
6927
library_names_spec=
 
6928
libname_spec='lib$name'
 
6929
soname_spec=
 
6930
shrext=".so"
 
6931
postinstall_cmds=
 
6932
postuninstall_cmds=
 
6933
finish_cmds=
 
6934
finish_eval=
 
6935
shlibpath_var=
 
6936
shlibpath_overrides_runpath=unknown
 
6937
version_type=none
 
6938
dynamic_linker="$host_os ld.so"
 
6939
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
6940
if test "$GCC" = yes; then
 
6941
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
6942
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
6943
    # if the path contains ";" then we assume it to be the separator
 
6944
    # otherwise default to the standard path separator (i.e. ":") - it is
 
6945
    # assumed that no part of a normal pathname contains ";" but that should
 
6946
    # okay in the real world where ";" in dirpaths is itself problematic.
 
6947
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
6948
  else
 
6949
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
6950
  fi
 
6951
else
 
6952
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
6953
fi
 
6954
need_lib_prefix=unknown
 
6955
hardcode_into_libs=no
 
6956
 
 
6957
# when you set need_version to no, make sure it does not cause -set_version
 
6958
# flags to be left without arguments
 
6959
need_version=unknown
 
6960
 
 
6961
case $host_os in
 
6962
aix3*)
 
6963
  version_type=linux
 
6964
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
6965
  shlibpath_var=LIBPATH
 
6966
 
 
6967
  # AIX 3 has no versioning support, so we append a major version to the name.
 
6968
  soname_spec='${libname}${release}${shared_ext}$major'
 
6969
  ;;
 
6970
 
 
6971
aix4* | aix5*)
 
6972
  version_type=linux
 
6973
  need_lib_prefix=no
 
6974
  need_version=no
 
6975
  hardcode_into_libs=yes
 
6976
  if test "$host_cpu" = ia64; then
 
6977
    # AIX 5 supports IA64
 
6978
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
6979
    shlibpath_var=LD_LIBRARY_PATH
 
6980
  else
 
6981
    # With GCC up to 2.95.x, collect2 would create an import file
 
6982
    # for dependence libraries.  The import file would start with
 
6983
    # the line `#! .'.  This would cause the generated library to
 
6984
    # depend on `.', always an invalid library.  This was fixed in
 
6985
    # development snapshots of GCC prior to 3.0.
 
6986
    case $host_os in
 
6987
      aix4 | aix4.[01] | aix4.[01].*)
 
6988
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
6989
           echo ' yes '
 
6990
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
6991
        :
 
6992
      else
 
6993
        can_build_shared=no
 
6994
      fi
 
6995
      ;;
 
6996
    esac
 
6997
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
6998
    # soname into executable. Probably we can add versioning support to
 
6999
    # collect2, so additional links can be useful in future.
 
7000
    if test "$aix_use_runtimelinking" = yes; then
 
7001
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7002
      # instead of lib<name>.a to let people know that these are not
 
7003
      # typical AIX shared libraries.
 
7004
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7005
    else
 
7006
      # We preserve .a as extension for shared libraries through AIX4.2
 
7007
      # and later when we are not doing run time linking.
 
7008
      library_names_spec='${libname}${release}.a $libname.a'
 
7009
      soname_spec='${libname}${release}${shared_ext}$major'
 
7010
    fi
 
7011
    shlibpath_var=LIBPATH
 
7012
  fi
 
7013
  ;;
 
7014
 
 
7015
amigaos*)
 
7016
  library_names_spec='$libname.ixlibrary $libname.a'
 
7017
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7018
  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'
 
7019
  ;;
 
7020
 
 
7021
beos*)
 
7022
  library_names_spec='${libname}${shared_ext}'
 
7023
  dynamic_linker="$host_os ld.so"
 
7024
  shlibpath_var=LIBRARY_PATH
 
7025
  ;;
 
7026
 
 
7027
bsdi4*)
 
7028
  version_type=linux
 
7029
  need_version=no
 
7030
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7031
  soname_spec='${libname}${release}${shared_ext}$major'
 
7032
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7033
  shlibpath_var=LD_LIBRARY_PATH
 
7034
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7035
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7036
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7037
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7038
  # libtool to hard-code these into programs
 
7039
  ;;
 
7040
 
 
7041
cygwin* | mingw* | pw32*)
 
7042
  version_type=windows
 
7043
  shrext=".dll"
 
7044
  need_version=no
 
7045
  need_lib_prefix=no
 
7046
 
 
7047
  case $GCC,$host_os in
 
7048
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7049
    library_names_spec='$libname.dll.a'
 
7050
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7051
    postinstall_cmds='base_file=`basename \${file}`~
 
7052
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7053
      dldir=$destdir/`dirname \$dlpath`~
 
7054
      test -d \$dldir || mkdir -p \$dldir~
 
7055
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7056
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7057
      dlpath=$dir/\$dldll~
 
7058
       $rm \$dlpath'
 
7059
    shlibpath_overrides_runpath=yes
 
7060
 
 
7061
    case $host_os in
 
7062
    cygwin*)
 
7063
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7064
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7065
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7066
      ;;
 
7067
    mingw*)
 
7068
      # MinGW DLLs use traditional 'lib' prefix
 
7069
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7070
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7071
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7072
        # It is most probably a Windows format PATH printed by
 
7073
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7074
        # path with ; separators, and with drive letters. We can handle the
 
7075
        # drive letters (cygwin fileutils understands them), so leave them,
 
7076
        # especially as we might pass files found there to a mingw objdump,
 
7077
        # which wouldn't understand a cygwinified path. Ahh.
 
7078
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7079
      else
 
7080
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7081
      fi
 
7082
      ;;
 
7083
    pw32*)
 
7084
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7085
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7086
      ;;
 
7087
    esac
 
7088
    ;;
 
7089
 
 
7090
  *)
 
7091
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7092
    ;;
 
7093
  esac
 
7094
  dynamic_linker='Win32 ld.exe'
 
7095
  # FIXME: first we should search . and the directory the executable is in
 
7096
  shlibpath_var=PATH
 
7097
  ;;
 
7098
 
 
7099
darwin* | rhapsody*)
 
7100
  dynamic_linker="$host_os dyld"
 
7101
  version_type=darwin
 
7102
  need_lib_prefix=no
 
7103
  need_version=no
 
7104
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7105
  soname_spec='${libname}${release}${major}$shared_ext'
 
7106
  shlibpath_overrides_runpath=yes
 
7107
  shlibpath_var=DYLD_LIBRARY_PATH
 
7108
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
7109
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7110
  if test "$GCC" = yes; then
 
7111
    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"`
 
7112
  else
 
7113
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7114
  fi
 
7115
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7116
  ;;
 
7117
 
 
7118
dgux*)
 
7119
  version_type=linux
 
7120
  need_lib_prefix=no
 
7121
  need_version=no
 
7122
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7123
  soname_spec='${libname}${release}${shared_ext}$major'
 
7124
  shlibpath_var=LD_LIBRARY_PATH
 
7125
  ;;
 
7126
 
 
7127
freebsd1*)
 
7128
  dynamic_linker=no
 
7129
  ;;
 
7130
 
 
7131
kfreebsd*-gnu)
 
7132
  version_type=linux
 
7133
  need_lib_prefix=no
 
7134
  need_version=no
 
7135
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7136
  soname_spec='${libname}${release}${shared_ext}$major'
 
7137
  shlibpath_var=LD_LIBRARY_PATH
 
7138
  shlibpath_overrides_runpath=no
 
7139
  hardcode_into_libs=yes
 
7140
  dynamic_linker='GNU ld.so'
 
7141
  ;;
 
7142
 
 
7143
freebsd*)
 
7144
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7145
  version_type=freebsd-$objformat
 
7146
  case $version_type in
 
7147
    freebsd-elf*)
 
7148
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7149
      need_version=no
 
7150
      need_lib_prefix=no
 
7151
      ;;
 
7152
    freebsd-*)
 
7153
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7154
      need_version=yes
 
7155
      ;;
 
7156
  esac
 
7157
  shlibpath_var=LD_LIBRARY_PATH
 
7158
  case $host_os in
 
7159
  freebsd2*)
 
7160
    shlibpath_overrides_runpath=yes
 
7161
    ;;
 
7162
  freebsd3.01* | freebsdelf3.01*)
 
7163
    shlibpath_overrides_runpath=yes
 
7164
    hardcode_into_libs=yes
 
7165
    ;;
 
7166
  *) # from 3.2 on
 
7167
    shlibpath_overrides_runpath=no
 
7168
    hardcode_into_libs=yes
 
7169
    ;;
 
7170
  esac
 
7171
  ;;
 
7172
 
 
7173
gnu*)
 
7174
  version_type=linux
 
7175
  need_lib_prefix=no
 
7176
  need_version=no
 
7177
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7178
  soname_spec='${libname}${release}${shared_ext}$major'
 
7179
  shlibpath_var=LD_LIBRARY_PATH
 
7180
  hardcode_into_libs=yes
 
7181
  ;;
 
7182
 
 
7183
hpux9* | hpux10* | hpux11*)
 
7184
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7185
  # link against other versions.
 
7186
  version_type=sunos
 
7187
  need_lib_prefix=no
 
7188
  need_version=no
 
7189
  case "$host_cpu" in
 
7190
  ia64*)
 
7191
    shrext='.so'
 
7192
    hardcode_into_libs=yes
 
7193
    dynamic_linker="$host_os dld.so"
 
7194
    shlibpath_var=LD_LIBRARY_PATH
 
7195
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7196
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7197
    soname_spec='${libname}${release}${shared_ext}$major'
 
7198
    if test "X$HPUX_IA64_MODE" = X32; then
 
7199
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7200
    else
 
7201
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7202
    fi
 
7203
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7204
    ;;
 
7205
   hppa*64*)
 
7206
     shrext='.sl'
 
7207
     hardcode_into_libs=yes
 
7208
     dynamic_linker="$host_os dld.sl"
 
7209
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7210
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7211
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7212
     soname_spec='${libname}${release}${shared_ext}$major'
 
7213
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7214
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7215
     ;;
 
7216
   *)
 
7217
    shrext='.sl'
 
7218
    dynamic_linker="$host_os dld.sl"
 
7219
    shlibpath_var=SHLIB_PATH
 
7220
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7221
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7222
    soname_spec='${libname}${release}${shared_ext}$major'
 
7223
    ;;
 
7224
  esac
 
7225
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7226
  postinstall_cmds='chmod 555 $lib'
 
7227
  ;;
 
7228
 
 
7229
irix5* | irix6* | nonstopux*)
 
7230
  case $host_os in
 
7231
    nonstopux*) version_type=nonstopux ;;
 
7232
    *)
 
7233
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7234
                version_type=linux
 
7235
        else
 
7236
                version_type=irix
 
7237
        fi ;;
 
7238
  esac
 
7239
  need_lib_prefix=no
 
7240
  need_version=no
 
7241
  soname_spec='${libname}${release}${shared_ext}$major'
 
7242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7243
  case $host_os in
 
7244
  irix5* | nonstopux*)
 
7245
    libsuff= shlibsuff=
 
7246
    ;;
 
7247
  *)
 
7248
    case $LD in # libtool.m4 will add one of these switches to LD
 
7249
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7250
      libsuff= shlibsuff= libmagic=32-bit;;
 
7251
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7252
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7253
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7254
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7255
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7256
    esac
 
7257
    ;;
 
7258
  esac
 
7259
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7260
  shlibpath_overrides_runpath=no
 
7261
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7262
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7263
  hardcode_into_libs=yes
 
7264
  ;;
 
7265
 
 
7266
# No shared lib support for Linux oldld, aout, or coff.
 
7267
linux*oldld* | linux*aout* | linux*coff*)
 
7268
  dynamic_linker=no
 
7269
  ;;
 
7270
 
 
7271
# This must be Linux ELF.
 
7272
linux*)
 
7273
  version_type=linux
 
7274
  need_lib_prefix=no
 
7275
  need_version=no
 
7276
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7277
  soname_spec='${libname}${release}${shared_ext}$major'
 
7278
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7279
  shlibpath_var=LD_LIBRARY_PATH
 
7280
  shlibpath_overrides_runpath=no
 
7281
  # This implies no fast_install, which is unacceptable.
 
7282
  # Some rework will be needed to allow for fast_install
 
7283
  # before this can be enabled.
 
7284
  hardcode_into_libs=yes
 
7285
 
 
7286
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7287
  # powerpc, because MkLinux only supported shared libraries with the
 
7288
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7289
  # most powerpc-linux boxes support dynamic linking these days and
 
7290
  # people can always --disable-shared, the test was removed, and we
 
7291
  # assume the GNU/Linux dynamic linker is in use.
 
7292
  dynamic_linker='GNU/Linux ld.so'
 
7293
  ;;
 
7294
 
 
7295
netbsd*)
 
7296
  version_type=sunos
 
7297
  need_lib_prefix=no
 
7298
  need_version=no
 
7299
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7300
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7301
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7302
    dynamic_linker='NetBSD (a.out) ld.so'
 
7303
  else
 
7304
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
7305
    soname_spec='${libname}${release}${shared_ext}$major'
 
7306
    dynamic_linker='NetBSD ld.elf_so'
 
7307
  fi
 
7308
  shlibpath_var=LD_LIBRARY_PATH
 
7309
  shlibpath_overrides_runpath=yes
 
7310
  hardcode_into_libs=yes
 
7311
  ;;
 
7312
 
 
7313
newsos6)
 
7314
  version_type=linux
 
7315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7316
  shlibpath_var=LD_LIBRARY_PATH
 
7317
  shlibpath_overrides_runpath=yes
 
7318
  ;;
 
7319
 
 
7320
nto-qnx*)
 
7321
  version_type=linux
 
7322
  need_lib_prefix=no
 
7323
  need_version=no
 
7324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7325
  soname_spec='${libname}${release}${shared_ext}$major'
 
7326
  shlibpath_var=LD_LIBRARY_PATH
 
7327
  shlibpath_overrides_runpath=yes
 
7328
  ;;
 
7329
 
 
7330
openbsd*)
 
7331
  version_type=sunos
 
7332
  need_lib_prefix=no
 
7333
  need_version=no
 
7334
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7335
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7336
  shlibpath_var=LD_LIBRARY_PATH
 
7337
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7338
    case $host_os in
 
7339
      openbsd2.[89] | openbsd2.[89].*)
 
7340
        shlibpath_overrides_runpath=no
 
7341
        ;;
 
7342
      *)
 
7343
        shlibpath_overrides_runpath=yes
 
7344
        ;;
 
7345
      esac
 
7346
  else
 
7347
    shlibpath_overrides_runpath=yes
 
7348
  fi
 
7349
  ;;
 
7350
 
 
7351
os2*)
 
7352
  libname_spec='$name'
 
7353
  shrext=".dll"
 
7354
  need_lib_prefix=no
 
7355
  library_names_spec='$libname${shared_ext} $libname.a'
 
7356
  dynamic_linker='OS/2 ld.exe'
 
7357
  shlibpath_var=LIBPATH
 
7358
  ;;
 
7359
 
 
7360
osf3* | osf4* | osf5*)
 
7361
  version_type=osf
 
7362
  need_lib_prefix=no
 
7363
  need_version=no
 
7364
  soname_spec='${libname}${release}${shared_ext}$major'
 
7365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7366
  shlibpath_var=LD_LIBRARY_PATH
 
7367
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7368
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7369
  ;;
 
7370
 
 
7371
sco3.2v5*)
 
7372
  version_type=osf
 
7373
  soname_spec='${libname}${release}${shared_ext}$major'
 
7374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7375
  shlibpath_var=LD_LIBRARY_PATH
 
7376
  ;;
 
7377
 
 
7378
solaris*)
 
7379
  version_type=linux
 
7380
  need_lib_prefix=no
 
7381
  need_version=no
 
7382
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7383
  soname_spec='${libname}${release}${shared_ext}$major'
 
7384
  shlibpath_var=LD_LIBRARY_PATH
 
7385
  shlibpath_overrides_runpath=yes
 
7386
  hardcode_into_libs=yes
 
7387
  # ldd complains unless libraries are executable
 
7388
  postinstall_cmds='chmod +x $lib'
 
7389
  ;;
 
7390
 
 
7391
sunos4*)
 
7392
  version_type=sunos
 
7393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7394
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7395
  shlibpath_var=LD_LIBRARY_PATH
 
7396
  shlibpath_overrides_runpath=yes
 
7397
  if test "$with_gnu_ld" = yes; then
 
7398
    need_lib_prefix=no
 
7399
  fi
 
7400
  need_version=yes
 
7401
  ;;
 
7402
 
 
7403
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7404
  version_type=linux
 
7405
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7406
  soname_spec='${libname}${release}${shared_ext}$major'
 
7407
  shlibpath_var=LD_LIBRARY_PATH
 
7408
  case $host_vendor in
 
7409
    sni)
 
7410
      shlibpath_overrides_runpath=no
 
7411
      need_lib_prefix=no
 
7412
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7413
      runpath_var=LD_RUN_PATH
 
7414
      ;;
 
7415
    siemens)
 
7416
      need_lib_prefix=no
 
7417
      ;;
 
7418
    motorola)
 
7419
      need_lib_prefix=no
 
7420
      need_version=no
 
7421
      shlibpath_overrides_runpath=no
 
7422
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7423
      ;;
 
7424
  esac
 
7425
  ;;
 
7426
 
 
7427
sysv4*MP*)
 
7428
  if test -d /usr/nec ;then
 
7429
    version_type=linux
 
7430
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
7431
    soname_spec='$libname${shared_ext}.$major'
 
7432
    shlibpath_var=LD_LIBRARY_PATH
 
7433
  fi
 
7434
  ;;
 
7435
 
 
7436
uts4*)
 
7437
  version_type=linux
 
7438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7439
  soname_spec='${libname}${release}${shared_ext}$major'
 
7440
  shlibpath_var=LD_LIBRARY_PATH
 
7441
  ;;
 
7442
 
 
7443
*)
 
7444
  dynamic_linker=no
 
7445
  ;;
 
7446
esac
 
7447
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7448
echo "${ECHO_T}$dynamic_linker" >&6
 
7449
test "$dynamic_linker" = no && can_build_shared=no
 
7450
 
 
7451
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
7452
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
3706
7453
hardcode_action=
3707
7454
if test -n "$hardcode_libdir_flag_spec" || \
3708
 
   test -n "$runpath_var"; then
 
7455
   test -n "$runpath_var " || \
 
7456
   test "X$hardcode_automatic"="Xyes" ; then
3709
7457
 
3710
7458
  # We can hardcode non-existant directories.
3711
7459
  if test "$hardcode_direct" != no &&
3712
7460
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
3713
7461
     # have to relink, otherwise we might link with an installed library
3714
7462
     # when we should be linking with a yet-to-be-installed one
3715
 
     ## test "$hardcode_shlibpath_var" != no &&
 
7463
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
3716
7464
     test "$hardcode_minus_L" != no; then
3717
7465
    # Linking always hardcodes the temporary library directory.
3718
7466
    hardcode_action=relink
3725
7473
  # directories.
3726
7474
  hardcode_action=unsupported
3727
7475
fi
3728
 
echo "$ac_t""$hardcode_action" 1>&6
3729
 
 
3730
 
striplib=
3731
 
old_striplib=
3732
 
echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3733
 
echo "configure:3734: checking whether stripping libraries is possible" >&5
3734
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3735
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3736
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3737
 
  echo "$ac_t""yes" 1>&6
3738
 
else
3739
 
  echo "$ac_t""no" 1>&6
3740
 
fi
3741
 
 
3742
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3743
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3744
 
 
3745
 
# PORTME Fill in your ld.so characteristics
3746
 
echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3747
 
echo "configure:3748: checking dynamic linker characteristics" >&5
3748
 
library_names_spec=
3749
 
libname_spec='lib$name'
3750
 
soname_spec=
3751
 
postinstall_cmds=
3752
 
postuninstall_cmds=
3753
 
finish_cmds=
3754
 
finish_eval=
3755
 
shlibpath_var=
3756
 
shlibpath_overrides_runpath=unknown
3757
 
version_type=none
3758
 
dynamic_linker="$host_os ld.so"
3759
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3760
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3761
 
 
3762
 
case $host_os in
3763
 
aix3*)
3764
 
  version_type=linux
3765
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
3766
 
  shlibpath_var=LIBPATH
3767
 
 
3768
 
  # AIX has no versioning support, so we append a major version to the name.
3769
 
  soname_spec='${libname}${release}.so$major'
3770
 
  ;;
3771
 
 
3772
 
aix4* | aix5*)
3773
 
  version_type=linux
3774
 
  if test "$host_cpu" = ia64; then
3775
 
    # AIX 5 supports IA64
3776
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3777
 
    shlibpath_var=LD_LIBRARY_PATH
3778
 
  else
3779
 
    # With GCC up to 2.95.x, collect2 would create an import file
3780
 
    # for dependence libraries.  The import file would start with
3781
 
    # the line `#! .'.  This would cause the generated library to
3782
 
    # depend on `.', always an invalid library.  This was fixed in
3783
 
    # development snapshots of GCC prior to 3.0.
3784
 
    case $host_os in
3785
 
       aix4 | aix4.[01] | aix4.[01].*)
3786
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3787
 
           echo ' yes '
3788
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3789
 
        :
3790
 
      else
3791
 
        can_build_shared=no
3792
 
      fi
3793
 
      ;;
3794
 
    esac
3795
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3796
 
    # soname into executable. Probably we can add versioning support to
3797
 
    # collect2, so additional links can be useful in future.
3798
 
    if test "$aix_use_runtimelinking" = yes; then
3799
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
3800
 
      # lib<name>.a to let people know that these are not typical AIX shared libraries.
3801
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3802
 
    else
3803
 
      # We preserve .a as extension for shared libraries through AIX4.2
3804
 
      # and later when we are not doing run time linking.
3805
 
      library_names_spec='${libname}${release}.a $libname.a'
3806
 
      soname_spec='${libname}${release}.so$major'
3807
 
    fi
3808
 
    shlibpath_var=LIBPATH
3809
 
    deplibs_check_method=pass_all
3810
 
  fi
3811
 
  ;;
3812
 
 
3813
 
amigaos*)
3814
 
  library_names_spec='$libname.ixlibrary $libname.a'
3815
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
3816
 
  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'
3817
 
  ;;
3818
 
 
3819
 
beos*)
3820
 
  library_names_spec='${libname}.so'
3821
 
  dynamic_linker="$host_os ld.so"
3822
 
  shlibpath_var=LIBRARY_PATH
3823
 
  ;;
3824
 
 
3825
 
bsdi4*)
3826
 
  version_type=linux
3827
 
  need_version=no
3828
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3829
 
  soname_spec='${libname}${release}.so$major'
3830
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3831
 
  shlibpath_var=LD_LIBRARY_PATH
3832
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3833
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3834
 
  export_dynamic_flag_spec=-rdynamic
3835
 
  # the default ld.so.conf also contains /usr/contrib/lib and
3836
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3837
 
  # libtool to hard-code these into programs
3838
 
  ;;
3839
 
 
3840
 
cygwin* | mingw* | pw32*)
3841
 
  version_type=windows
3842
 
  need_version=no
3843
 
  need_lib_prefix=no
3844
 
  case $GCC,$host_os in
3845
 
  yes,cygwin*)
3846
 
    library_names_spec='$libname.dll.a'
3847
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3848
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3849
 
      dldir=$destdir/`dirname \$dlpath`~
3850
 
      test -d \$dldir || mkdir -p \$dldir~
3851
 
      $install_prog .libs/$dlname \$dldir/$dlname'
3852
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3853
 
      dlpath=$dir/\$dldll~
3854
 
       $rm \$dlpath'
3855
 
    ;;
3856
 
  yes,mingw*)
3857
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3858
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3859
 
    ;;
3860
 
  yes,pw32*)
3861
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3862
 
    ;;
3863
 
  *)
3864
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3865
 
    ;;
3866
 
  esac
3867
 
  dynamic_linker='Win32 ld.exe'
3868
 
  # FIXME: first we should search . and the directory the executable is in
3869
 
  shlibpath_var=PATH
3870
 
  ;;
3871
 
 
3872
 
darwin* | rhapsody*)
3873
 
  dynamic_linker="$host_os dyld"
3874
 
  version_type=darwin
3875
 
  need_lib_prefix=no
3876
 
  need_version=no
3877
 
  # FIXME: Relying on posixy $() will cause problems for
3878
 
  #        cross-compilation, but unfortunately the echo tests do not
3879
 
  #        yet detect zsh echo's removal of \ escapes.
3880
 
  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)'
3881
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3882
 
  shlibpath_overrides_runpath=yes
3883
 
  shlibpath_var=DYLD_LIBRARY_PATH
3884
 
  ;;
3885
 
 
3886
 
freebsd1*)
3887
 
  dynamic_linker=no
3888
 
  ;;
3889
 
 
3890
 
freebsd*)
3891
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3892
 
  version_type=freebsd-$objformat
3893
 
  case $version_type in
3894
 
    freebsd-elf*)
3895
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3896
 
      need_version=no
3897
 
      need_lib_prefix=no
3898
 
      ;;
3899
 
    freebsd-*)
3900
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3901
 
      need_version=yes
3902
 
      ;;
3903
 
  esac
3904
 
  shlibpath_var=LD_LIBRARY_PATH
3905
 
  case $host_os in
3906
 
  freebsd2*)
3907
 
    shlibpath_overrides_runpath=yes
3908
 
    ;;
3909
 
  *)
3910
 
    shlibpath_overrides_runpath=no
3911
 
    hardcode_into_libs=yes
3912
 
    ;;
3913
 
  esac
3914
 
  ;;
3915
 
 
3916
 
gnu*)
3917
 
  version_type=linux
3918
 
  need_lib_prefix=no
3919
 
  need_version=no
3920
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3921
 
  soname_spec='${libname}${release}.so$major'
3922
 
  shlibpath_var=LD_LIBRARY_PATH
3923
 
  hardcode_into_libs=yes
3924
 
  ;;
3925
 
 
3926
 
hpux9* | hpux10* | hpux11*)
3927
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
3928
 
  # link against other versions.
3929
 
  dynamic_linker="$host_os dld.sl"
3930
 
  version_type=sunos
3931
 
  need_lib_prefix=no
3932
 
  need_version=no
3933
 
  shlibpath_var=SHLIB_PATH
3934
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3935
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3936
 
  soname_spec='${libname}${release}.sl$major'
3937
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
3938
 
  postinstall_cmds='chmod 555 $lib'
3939
 
  ;;
3940
 
 
3941
 
irix5* | irix6*)
3942
 
  version_type=irix
3943
 
  need_lib_prefix=no
3944
 
  need_version=no
3945
 
  soname_spec='${libname}${release}.so$major'
3946
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3947
 
  case $host_os in
3948
 
  irix5*)
3949
 
    libsuff= shlibsuff=
3950
 
    ;;
3951
 
  *)
3952
 
    case $LD in # libtool.m4 will add one of these switches to LD
3953
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3954
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3955
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3956
 
    *) libsuff= shlibsuff= libmagic=never-match;;
3957
 
    esac
3958
 
    ;;
3959
 
  esac
3960
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3961
 
  shlibpath_overrides_runpath=no
3962
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3963
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3964
 
  ;;
3965
 
 
3966
 
# No shared lib support for Linux oldld, aout, or coff.
3967
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
3968
 
  dynamic_linker=no
3969
 
  ;;
3970
 
 
3971
 
# This must be Linux ELF.
3972
 
linux-gnu*)
3973
 
  version_type=linux
3974
 
  need_lib_prefix=no
3975
 
  need_version=no
3976
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3977
 
  soname_spec='${libname}${release}.so$major'
3978
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3979
 
  shlibpath_var=LD_LIBRARY_PATH
3980
 
  shlibpath_overrides_runpath=no
3981
 
  # This implies no fast_install, which is unacceptable.
3982
 
  # Some rework will be needed to allow for fast_install
3983
 
  # before this can be enabled.
3984
 
  hardcode_into_libs=yes
3985
 
 
3986
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
3987
 
  # powerpc, because MkLinux only supported shared libraries with the
3988
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
3989
 
  # most powerpc-linux boxes support dynamic linking these days and
3990
 
  # people can always --disable-shared, the test was removed, and we
3991
 
  # assume the GNU/Linux dynamic linker is in use.
3992
 
  dynamic_linker='GNU/Linux ld.so'
3993
 
  ;;
3994
 
 
3995
 
netbsd*)
3996
 
  version_type=sunos
3997
 
  need_lib_prefix=no
3998
 
  need_version=no
3999
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4000
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4001
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4002
 
    dynamic_linker='NetBSD (a.out) ld.so'
4003
 
  else
4004
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4005
 
    soname_spec='${libname}${release}.so$major'
4006
 
    dynamic_linker='NetBSD ld.elf_so'
4007
 
  fi
4008
 
  shlibpath_var=LD_LIBRARY_PATH
4009
 
  shlibpath_overrides_runpath=yes
4010
 
  hardcode_into_libs=yes
4011
 
  ;;
4012
 
 
4013
 
newsos6)
4014
 
  version_type=linux
4015
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4016
 
  shlibpath_var=LD_LIBRARY_PATH
4017
 
  shlibpath_overrides_runpath=yes
4018
 
  ;;
4019
 
 
4020
 
openbsd*)
4021
 
  version_type=sunos
4022
 
  if test "$with_gnu_ld" = yes; then
4023
 
    need_lib_prefix=no
4024
 
    need_version=no
4025
 
  fi
4026
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4027
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4028
 
  shlibpath_var=LD_LIBRARY_PATH
4029
 
  ;;
4030
 
 
4031
 
os2*)
4032
 
  libname_spec='$name'
4033
 
  need_lib_prefix=no
4034
 
  library_names_spec='$libname.dll $libname.a'
4035
 
  dynamic_linker='OS/2 ld.exe'
4036
 
  shlibpath_var=LIBPATH
4037
 
  ;;
4038
 
 
4039
 
osf3* | osf4* | osf5*)
4040
 
  version_type=osf
4041
 
  need_version=no
4042
 
  soname_spec='${libname}${release}.so'
4043
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4044
 
  shlibpath_var=LD_LIBRARY_PATH
4045
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4046
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4047
 
  ;;
4048
 
 
4049
 
sco3.2v5*)
4050
 
  version_type=osf
4051
 
  soname_spec='${libname}${release}.so$major'
4052
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4053
 
  shlibpath_var=LD_LIBRARY_PATH
4054
 
  ;;
4055
 
 
4056
 
solaris*)
4057
 
  version_type=linux
4058
 
  need_lib_prefix=no
4059
 
  need_version=no
4060
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4061
 
  soname_spec='${libname}${release}.so$major'
4062
 
  shlibpath_var=LD_LIBRARY_PATH
4063
 
  shlibpath_overrides_runpath=yes
4064
 
  hardcode_into_libs=yes
4065
 
  # ldd complains unless libraries are executable
4066
 
  postinstall_cmds='chmod +x $lib'
4067
 
  ;;
4068
 
 
4069
 
sunos4*)
4070
 
  version_type=sunos
4071
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4072
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4073
 
  shlibpath_var=LD_LIBRARY_PATH
4074
 
  shlibpath_overrides_runpath=yes
4075
 
  if test "$with_gnu_ld" = yes; then
4076
 
    need_lib_prefix=no
4077
 
  fi
4078
 
  need_version=yes
4079
 
  ;;
4080
 
 
4081
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4082
 
  version_type=linux
4083
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4084
 
  soname_spec='${libname}${release}.so$major'
4085
 
  shlibpath_var=LD_LIBRARY_PATH
4086
 
  case $host_vendor in
4087
 
    sni)
4088
 
      shlibpath_overrides_runpath=no
4089
 
      ;;
4090
 
    motorola)
4091
 
      need_lib_prefix=no
4092
 
      need_version=no
4093
 
      shlibpath_overrides_runpath=no
4094
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4095
 
      ;;
4096
 
  esac
4097
 
  ;;
4098
 
 
4099
 
uts4*)
4100
 
  version_type=linux
4101
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4102
 
  soname_spec='${libname}${release}.so$major'
4103
 
  shlibpath_var=LD_LIBRARY_PATH
4104
 
  ;;
4105
 
 
4106
 
dgux*)
4107
 
  version_type=linux
4108
 
  need_lib_prefix=no
4109
 
  need_version=no
4110
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4111
 
  soname_spec='${libname}${release}.so$major'
4112
 
  shlibpath_var=LD_LIBRARY_PATH
4113
 
  ;;
4114
 
 
4115
 
sysv4*MP*)
4116
 
  if test -d /usr/nec ;then
4117
 
    version_type=linux
4118
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4119
 
    soname_spec='$libname.so.$major'
4120
 
    shlibpath_var=LD_LIBRARY_PATH
4121
 
  fi
4122
 
  ;;
4123
 
 
4124
 
*)
4125
 
  dynamic_linker=no
4126
 
  ;;
4127
 
esac
4128
 
echo "$ac_t""$dynamic_linker" 1>&6
4129
 
test "$dynamic_linker" = no && can_build_shared=no
4130
 
 
4131
 
# Report the final consequences.
4132
 
echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4133
 
echo "configure:4134: checking if libtool supports shared libraries" >&5
4134
 
echo "$ac_t""$can_build_shared" 1>&6
 
7476
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
7477
echo "${ECHO_T}$hardcode_action" >&6
4135
7478
 
4136
7479
if test "$hardcode_action" = relink; then
4137
7480
  # Fast installation is not supported
4142
7485
  enable_fast_install=needless
4143
7486
fi
4144
7487
 
4145
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4146
 
if test "$GCC" = yes; then
4147
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7488
striplib=
 
7489
old_striplib=
 
7490
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
7491
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
7492
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
7493
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
7494
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
7495
  echo "$as_me:$LINENO: result: yes" >&5
 
7496
echo "${ECHO_T}yes" >&6
 
7497
else
 
7498
# FIXME - insert some real tests, host_os isn't really good enough
 
7499
  case $host_os in
 
7500
   darwin*)
 
7501
       if test -n "$STRIP" ; then
 
7502
         striplib="$STRIP -x"
 
7503
         echo "$as_me:$LINENO: result: yes" >&5
 
7504
echo "${ECHO_T}yes" >&6
 
7505
       else
 
7506
  echo "$as_me:$LINENO: result: no" >&5
 
7507
echo "${ECHO_T}no" >&6
 
7508
fi
 
7509
       ;;
 
7510
   *)
 
7511
  echo "$as_me:$LINENO: result: no" >&5
 
7512
echo "${ECHO_T}no" >&6
 
7513
    ;;
 
7514
  esac
4148
7515
fi
4149
7516
 
4150
7517
if test "x$enable_dlopen" != xyes; then
4162
7529
    lt_cv_dlopen_self=yes
4163
7530
    ;;
4164
7531
 
4165
 
  cygwin* | mingw* | pw32*)
 
7532
  mingw* | pw32*)
4166
7533
    lt_cv_dlopen="LoadLibrary"
4167
7534
    lt_cv_dlopen_libs=
4168
7535
   ;;
4169
7536
 
 
7537
  cygwin*)
 
7538
    lt_cv_dlopen="dlopen"
 
7539
    lt_cv_dlopen_libs=
 
7540
   ;;
 
7541
 
 
7542
  darwin*)
 
7543
  # if libdl is installed we need to link against it
 
7544
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7545
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7546
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7548
else
 
7549
  ac_check_lib_save_LIBS=$LIBS
 
7550
LIBS="-ldl  $LIBS"
 
7551
cat >conftest.$ac_ext <<_ACEOF
 
7552
#line $LINENO "configure"
 
7553
/* confdefs.h.  */
 
7554
_ACEOF
 
7555
cat confdefs.h >>conftest.$ac_ext
 
7556
cat >>conftest.$ac_ext <<_ACEOF
 
7557
/* end confdefs.h.  */
 
7558
 
 
7559
/* Override any gcc2 internal prototype to avoid an error.  */
 
7560
#ifdef __cplusplus
 
7561
extern "C"
 
7562
#endif
 
7563
/* We use char because int might match the return type of a gcc2
 
7564
   builtin and then its argument prototype would still apply.  */
 
7565
char dlopen ();
 
7566
int
 
7567
main ()
 
7568
{
 
7569
dlopen ();
 
7570
  ;
 
7571
  return 0;
 
7572
}
 
7573
_ACEOF
 
7574
rm -f conftest.$ac_objext conftest$ac_exeext
 
7575
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7576
  (eval $ac_link) 2>&5
 
7577
  ac_status=$?
 
7578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7579
  (exit $ac_status); } &&
 
7580
         { ac_try='test -s conftest$ac_exeext'
 
7581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7582
  (eval $ac_try) 2>&5
 
7583
  ac_status=$?
 
7584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7585
  (exit $ac_status); }; }; then
 
7586
  ac_cv_lib_dl_dlopen=yes
 
7587
else
 
7588
  echo "$as_me: failed program was:" >&5
 
7589
sed 's/^/| /' conftest.$ac_ext >&5
 
7590
 
 
7591
ac_cv_lib_dl_dlopen=no
 
7592
fi
 
7593
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7594
LIBS=$ac_check_lib_save_LIBS
 
7595
fi
 
7596
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7597
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7598
if test $ac_cv_lib_dl_dlopen = yes; then
 
7599
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7600
else
 
7601
 
 
7602
    lt_cv_dlopen="dyld"
 
7603
    lt_cv_dlopen_libs=
 
7604
    lt_cv_dlopen_self=yes
 
7605
 
 
7606
fi
 
7607
 
 
7608
   ;;
 
7609
 
4170
7610
  *)
4171
 
    echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4172
 
echo "configure:4173: checking for dlopen in -ldl" >&5
4173
 
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4174
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4175
 
  echo $ac_n "(cached) $ac_c" 1>&6
4176
 
else
4177
 
  ac_save_LIBS="$LIBS"
4178
 
LIBS="-ldl  $LIBS"
4179
 
cat > conftest.$ac_ext <<EOF
4180
 
#line 4181 "configure"
4181
 
#include "confdefs.h"
4182
 
/* Override any gcc2 internal prototype to avoid an error.  */
4183
 
/* We use char because int might match the return type of a gcc2
4184
 
    builtin and then its argument prototype would still apply.  */
4185
 
char dlopen();
4186
 
 
4187
 
int main() {
4188
 
dlopen()
4189
 
; return 0; }
4190
 
EOF
4191
 
if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4192
 
  rm -rf conftest*
4193
 
  eval "ac_cv_lib_$ac_lib_var=yes"
4194
 
else
4195
 
  echo "configure: failed program was:" >&5
4196
 
  cat conftest.$ac_ext >&5
4197
 
  rm -rf conftest*
4198
 
  eval "ac_cv_lib_$ac_lib_var=no"
4199
 
fi
4200
 
rm -f conftest*
4201
 
LIBS="$ac_save_LIBS"
4202
 
 
4203
 
fi
4204
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4205
 
  echo "$ac_t""yes" 1>&6
4206
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4207
 
else
4208
 
  echo "$ac_t""no" 1>&6
4209
 
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4210
 
echo "configure:4211: checking for dlopen" >&5
4211
 
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4212
 
  echo $ac_n "(cached) $ac_c" 1>&6
4213
 
else
4214
 
  cat > conftest.$ac_ext <<EOF
4215
 
#line 4216 "configure"
4216
 
#include "confdefs.h"
4217
 
/* System header to define __stub macros and hopefully few prototypes,
4218
 
    which can conflict with char dlopen(); below.  */
4219
 
#include <assert.h>
4220
 
/* Override any gcc2 internal prototype to avoid an error.  */
4221
 
/* We use char because int might match the return type of a gcc2
4222
 
    builtin and then its argument prototype would still apply.  */
4223
 
char dlopen();
4224
 
 
4225
 
int main() {
4226
 
 
 
7611
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
7612
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
7613
if test "${ac_cv_func_shl_load+set}" = set; then
 
7614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7615
else
 
7616
  cat >conftest.$ac_ext <<_ACEOF
 
7617
#line $LINENO "configure"
 
7618
/* confdefs.h.  */
 
7619
_ACEOF
 
7620
cat confdefs.h >>conftest.$ac_ext
 
7621
cat >>conftest.$ac_ext <<_ACEOF
 
7622
/* end confdefs.h.  */
 
7623
/* System header to define __stub macros and hopefully few prototypes,
 
7624
    which can conflict with char shl_load (); below.
 
7625
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7626
    <limits.h> exists even on freestanding compilers.  */
 
7627
#ifdef __STDC__
 
7628
# include <limits.h>
 
7629
#else
 
7630
# include <assert.h>
 
7631
#endif
 
7632
/* Override any gcc2 internal prototype to avoid an error.  */
 
7633
#ifdef __cplusplus
 
7634
extern "C"
 
7635
{
 
7636
#endif
 
7637
/* We use char because int might match the return type of a gcc2
 
7638
   builtin and then its argument prototype would still apply.  */
 
7639
char shl_load ();
 
7640
/* The GNU C library defines this for functions which it implements
 
7641
    to always fail with ENOSYS.  Some functions are actually named
 
7642
    something starting with __ and the normal name is an alias.  */
 
7643
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
7644
choke me
 
7645
#else
 
7646
char (*f) () = shl_load;
 
7647
#endif
 
7648
#ifdef __cplusplus
 
7649
}
 
7650
#endif
 
7651
 
 
7652
int
 
7653
main ()
 
7654
{
 
7655
return f != shl_load;
 
7656
  ;
 
7657
  return 0;
 
7658
}
 
7659
_ACEOF
 
7660
rm -f conftest.$ac_objext conftest$ac_exeext
 
7661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7662
  (eval $ac_link) 2>&5
 
7663
  ac_status=$?
 
7664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7665
  (exit $ac_status); } &&
 
7666
         { ac_try='test -s conftest$ac_exeext'
 
7667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7668
  (eval $ac_try) 2>&5
 
7669
  ac_status=$?
 
7670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7671
  (exit $ac_status); }; }; then
 
7672
  ac_cv_func_shl_load=yes
 
7673
else
 
7674
  echo "$as_me: failed program was:" >&5
 
7675
sed 's/^/| /' conftest.$ac_ext >&5
 
7676
 
 
7677
ac_cv_func_shl_load=no
 
7678
fi
 
7679
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7680
fi
 
7681
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
7682
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
7683
if test $ac_cv_func_shl_load = yes; then
 
7684
  lt_cv_dlopen="shl_load"
 
7685
else
 
7686
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
7687
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
7688
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
7689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7690
else
 
7691
  ac_check_lib_save_LIBS=$LIBS
 
7692
LIBS="-ldld  $LIBS"
 
7693
cat >conftest.$ac_ext <<_ACEOF
 
7694
#line $LINENO "configure"
 
7695
/* confdefs.h.  */
 
7696
_ACEOF
 
7697
cat confdefs.h >>conftest.$ac_ext
 
7698
cat >>conftest.$ac_ext <<_ACEOF
 
7699
/* end confdefs.h.  */
 
7700
 
 
7701
/* Override any gcc2 internal prototype to avoid an error.  */
 
7702
#ifdef __cplusplus
 
7703
extern "C"
 
7704
#endif
 
7705
/* We use char because int might match the return type of a gcc2
 
7706
   builtin and then its argument prototype would still apply.  */
 
7707
char shl_load ();
 
7708
int
 
7709
main ()
 
7710
{
 
7711
shl_load ();
 
7712
  ;
 
7713
  return 0;
 
7714
}
 
7715
_ACEOF
 
7716
rm -f conftest.$ac_objext conftest$ac_exeext
 
7717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7718
  (eval $ac_link) 2>&5
 
7719
  ac_status=$?
 
7720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7721
  (exit $ac_status); } &&
 
7722
         { ac_try='test -s conftest$ac_exeext'
 
7723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7724
  (eval $ac_try) 2>&5
 
7725
  ac_status=$?
 
7726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7727
  (exit $ac_status); }; }; then
 
7728
  ac_cv_lib_dld_shl_load=yes
 
7729
else
 
7730
  echo "$as_me: failed program was:" >&5
 
7731
sed 's/^/| /' conftest.$ac_ext >&5
 
7732
 
 
7733
ac_cv_lib_dld_shl_load=no
 
7734
fi
 
7735
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7736
LIBS=$ac_check_lib_save_LIBS
 
7737
fi
 
7738
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
7739
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
7740
if test $ac_cv_lib_dld_shl_load = yes; then
 
7741
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
7742
else
 
7743
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
7744
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
7745
if test "${ac_cv_func_dlopen+set}" = set; then
 
7746
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7747
else
 
7748
  cat >conftest.$ac_ext <<_ACEOF
 
7749
#line $LINENO "configure"
 
7750
/* confdefs.h.  */
 
7751
_ACEOF
 
7752
cat confdefs.h >>conftest.$ac_ext
 
7753
cat >>conftest.$ac_ext <<_ACEOF
 
7754
/* end confdefs.h.  */
 
7755
/* System header to define __stub macros and hopefully few prototypes,
 
7756
    which can conflict with char dlopen (); below.
 
7757
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7758
    <limits.h> exists even on freestanding compilers.  */
 
7759
#ifdef __STDC__
 
7760
# include <limits.h>
 
7761
#else
 
7762
# include <assert.h>
 
7763
#endif
 
7764
/* Override any gcc2 internal prototype to avoid an error.  */
 
7765
#ifdef __cplusplus
 
7766
extern "C"
 
7767
{
 
7768
#endif
 
7769
/* We use char because int might match the return type of a gcc2
 
7770
   builtin and then its argument prototype would still apply.  */
 
7771
char dlopen ();
4227
7772
/* The GNU C library defines this for functions which it implements
4228
7773
    to always fail with ENOSYS.  Some functions are actually named
4229
7774
    something starting with __ and the normal name is an alias.  */
4230
7775
#if defined (__stub_dlopen) || defined (__stub___dlopen)
4231
7776
choke me
4232
7777
#else
4233
 
dlopen();
 
7778
char (*f) () = dlopen;
 
7779
#endif
 
7780
#ifdef __cplusplus
 
7781
}
4234
7782
#endif
4235
7783
 
4236
 
; return 0; }
4237
 
EOF
4238
 
if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4239
 
  rm -rf conftest*
4240
 
  eval "ac_cv_func_dlopen=yes"
 
7784
int
 
7785
main ()
 
7786
{
 
7787
return f != dlopen;
 
7788
  ;
 
7789
  return 0;
 
7790
}
 
7791
_ACEOF
 
7792
rm -f conftest.$ac_objext conftest$ac_exeext
 
7793
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7794
  (eval $ac_link) 2>&5
 
7795
  ac_status=$?
 
7796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7797
  (exit $ac_status); } &&
 
7798
         { ac_try='test -s conftest$ac_exeext'
 
7799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7800
  (eval $ac_try) 2>&5
 
7801
  ac_status=$?
 
7802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7803
  (exit $ac_status); }; }; then
 
7804
  ac_cv_func_dlopen=yes
4241
7805
else
4242
 
  echo "configure: failed program was:" >&5
4243
 
  cat conftest.$ac_ext >&5
4244
 
  rm -rf conftest*
4245
 
  eval "ac_cv_func_dlopen=no"
4246
 
fi
4247
 
rm -f conftest*
4248
 
fi
 
7806
  echo "$as_me: failed program was:" >&5
 
7807
sed 's/^/| /' conftest.$ac_ext >&5
4249
7808
 
4250
 
if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4251
 
  echo "$ac_t""yes" 1>&6
 
7809
ac_cv_func_dlopen=no
 
7810
fi
 
7811
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7812
fi
 
7813
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
7814
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
7815
if test $ac_cv_func_dlopen = yes; then
4252
7816
  lt_cv_dlopen="dlopen"
4253
7817
else
4254
 
  echo "$ac_t""no" 1>&6
4255
 
echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4256
 
echo "configure:4257: checking for shl_load" >&5
4257
 
if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4258
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7818
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7819
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7820
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7821
  echo $ECHO_N "(cached) $ECHO_C" >&6
4259
7822
else
4260
 
  cat > conftest.$ac_ext <<EOF
4261
 
#line 4262 "configure"
4262
 
#include "confdefs.h"
4263
 
/* System header to define __stub macros and hopefully few prototypes,
4264
 
    which can conflict with char shl_load(); below.  */
4265
 
#include <assert.h>
 
7823
  ac_check_lib_save_LIBS=$LIBS
 
7824
LIBS="-ldl  $LIBS"
 
7825
cat >conftest.$ac_ext <<_ACEOF
 
7826
#line $LINENO "configure"
 
7827
/* confdefs.h.  */
 
7828
_ACEOF
 
7829
cat confdefs.h >>conftest.$ac_ext
 
7830
cat >>conftest.$ac_ext <<_ACEOF
 
7831
/* end confdefs.h.  */
 
7832
 
4266
7833
/* Override any gcc2 internal prototype to avoid an error.  */
 
7834
#ifdef __cplusplus
 
7835
extern "C"
 
7836
#endif
4267
7837
/* We use char because int might match the return type of a gcc2
4268
 
    builtin and then its argument prototype would still apply.  */
4269
 
char shl_load();
4270
 
 
4271
 
int main() {
4272
 
 
4273
 
/* The GNU C library defines this for functions which it implements
4274
 
    to always fail with ENOSYS.  Some functions are actually named
4275
 
    something starting with __ and the normal name is an alias.  */
4276
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
4277
 
choke me
4278
 
#else
4279
 
shl_load();
4280
 
#endif
4281
 
 
4282
 
; return 0; }
4283
 
EOF
4284
 
if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4285
 
  rm -rf conftest*
4286
 
  eval "ac_cv_func_shl_load=yes"
4287
 
else
4288
 
  echo "configure: failed program was:" >&5
4289
 
  cat conftest.$ac_ext >&5
4290
 
  rm -rf conftest*
4291
 
  eval "ac_cv_func_shl_load=no"
4292
 
fi
4293
 
rm -f conftest*
4294
 
fi
4295
 
 
4296
 
if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4297
 
  echo "$ac_t""yes" 1>&6
4298
 
  lt_cv_dlopen="shl_load"
4299
 
else
4300
 
  echo "$ac_t""no" 1>&6
4301
 
echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4302
 
echo "configure:4303: checking for dlopen in -lsvld" >&5
4303
 
ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4304
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4305
 
  echo $ac_n "(cached) $ac_c" 1>&6
4306
 
else
4307
 
  ac_save_LIBS="$LIBS"
 
7838
   builtin and then its argument prototype would still apply.  */
 
7839
char dlopen ();
 
7840
int
 
7841
main ()
 
7842
{
 
7843
dlopen ();
 
7844
  ;
 
7845
  return 0;
 
7846
}
 
7847
_ACEOF
 
7848
rm -f conftest.$ac_objext conftest$ac_exeext
 
7849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7850
  (eval $ac_link) 2>&5
 
7851
  ac_status=$?
 
7852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7853
  (exit $ac_status); } &&
 
7854
         { ac_try='test -s conftest$ac_exeext'
 
7855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7856
  (eval $ac_try) 2>&5
 
7857
  ac_status=$?
 
7858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7859
  (exit $ac_status); }; }; then
 
7860
  ac_cv_lib_dl_dlopen=yes
 
7861
else
 
7862
  echo "$as_me: failed program was:" >&5
 
7863
sed 's/^/| /' conftest.$ac_ext >&5
 
7864
 
 
7865
ac_cv_lib_dl_dlopen=no
 
7866
fi
 
7867
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7868
LIBS=$ac_check_lib_save_LIBS
 
7869
fi
 
7870
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7871
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7872
if test $ac_cv_lib_dl_dlopen = yes; then
 
7873
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7874
else
 
7875
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
7876
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
7877
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
7878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7879
else
 
7880
  ac_check_lib_save_LIBS=$LIBS
4308
7881
LIBS="-lsvld  $LIBS"
4309
 
cat > conftest.$ac_ext <<EOF
4310
 
#line 4311 "configure"
4311
 
#include "confdefs.h"
 
7882
cat >conftest.$ac_ext <<_ACEOF
 
7883
#line $LINENO "configure"
 
7884
/* confdefs.h.  */
 
7885
_ACEOF
 
7886
cat confdefs.h >>conftest.$ac_ext
 
7887
cat >>conftest.$ac_ext <<_ACEOF
 
7888
/* end confdefs.h.  */
 
7889
 
4312
7890
/* Override any gcc2 internal prototype to avoid an error.  */
 
7891
#ifdef __cplusplus
 
7892
extern "C"
 
7893
#endif
4313
7894
/* We use char because int might match the return type of a gcc2
4314
 
    builtin and then its argument prototype would still apply.  */
4315
 
char dlopen();
4316
 
 
4317
 
int main() {
4318
 
dlopen()
4319
 
; return 0; }
4320
 
EOF
4321
 
if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4322
 
  rm -rf conftest*
4323
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
7895
   builtin and then its argument prototype would still apply.  */
 
7896
char dlopen ();
 
7897
int
 
7898
main ()
 
7899
{
 
7900
dlopen ();
 
7901
  ;
 
7902
  return 0;
 
7903
}
 
7904
_ACEOF
 
7905
rm -f conftest.$ac_objext conftest$ac_exeext
 
7906
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7907
  (eval $ac_link) 2>&5
 
7908
  ac_status=$?
 
7909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7910
  (exit $ac_status); } &&
 
7911
         { ac_try='test -s conftest$ac_exeext'
 
7912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7913
  (eval $ac_try) 2>&5
 
7914
  ac_status=$?
 
7915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7916
  (exit $ac_status); }; }; then
 
7917
  ac_cv_lib_svld_dlopen=yes
4324
7918
else
4325
 
  echo "configure: failed program was:" >&5
4326
 
  cat conftest.$ac_ext >&5
4327
 
  rm -rf conftest*
4328
 
  eval "ac_cv_lib_$ac_lib_var=no"
4329
 
fi
4330
 
rm -f conftest*
4331
 
LIBS="$ac_save_LIBS"
 
7919
  echo "$as_me: failed program was:" >&5
 
7920
sed 's/^/| /' conftest.$ac_ext >&5
4332
7921
 
4333
 
fi
4334
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4335
 
  echo "$ac_t""yes" 1>&6
 
7922
ac_cv_lib_svld_dlopen=no
 
7923
fi
 
7924
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7925
LIBS=$ac_check_lib_save_LIBS
 
7926
fi
 
7927
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
7928
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
7929
if test $ac_cv_lib_svld_dlopen = yes; then
4336
7930
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4337
7931
else
4338
 
  echo "$ac_t""no" 1>&6
4339
 
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4340
 
echo "configure:4341: checking for shl_load in -ldld" >&5
4341
 
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4342
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4343
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
7932
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
7933
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
7934
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
7935
  echo $ECHO_N "(cached) $ECHO_C" >&6
4344
7936
else
4345
 
  ac_save_LIBS="$LIBS"
 
7937
  ac_check_lib_save_LIBS=$LIBS
4346
7938
LIBS="-ldld  $LIBS"
4347
 
cat > conftest.$ac_ext <<EOF
4348
 
#line 4349 "configure"
4349
 
#include "confdefs.h"
 
7939
cat >conftest.$ac_ext <<_ACEOF
 
7940
#line $LINENO "configure"
 
7941
/* confdefs.h.  */
 
7942
_ACEOF
 
7943
cat confdefs.h >>conftest.$ac_ext
 
7944
cat >>conftest.$ac_ext <<_ACEOF
 
7945
/* end confdefs.h.  */
 
7946
 
4350
7947
/* Override any gcc2 internal prototype to avoid an error.  */
 
7948
#ifdef __cplusplus
 
7949
extern "C"
 
7950
#endif
4351
7951
/* We use char because int might match the return type of a gcc2
4352
 
    builtin and then its argument prototype would still apply.  */
4353
 
char shl_load();
4354
 
 
4355
 
int main() {
4356
 
shl_load()
4357
 
; return 0; }
4358
 
EOF
4359
 
if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4360
 
  rm -rf conftest*
4361
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
7952
   builtin and then its argument prototype would still apply.  */
 
7953
char dld_link ();
 
7954
int
 
7955
main ()
 
7956
{
 
7957
dld_link ();
 
7958
  ;
 
7959
  return 0;
 
7960
}
 
7961
_ACEOF
 
7962
rm -f conftest.$ac_objext conftest$ac_exeext
 
7963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7964
  (eval $ac_link) 2>&5
 
7965
  ac_status=$?
 
7966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7967
  (exit $ac_status); } &&
 
7968
         { ac_try='test -s conftest$ac_exeext'
 
7969
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7970
  (eval $ac_try) 2>&5
 
7971
  ac_status=$?
 
7972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7973
  (exit $ac_status); }; }; then
 
7974
  ac_cv_lib_dld_dld_link=yes
4362
7975
else
4363
 
  echo "configure: failed program was:" >&5
4364
 
  cat conftest.$ac_ext >&5
4365
 
  rm -rf conftest*
4366
 
  eval "ac_cv_lib_$ac_lib_var=no"
4367
 
fi
4368
 
rm -f conftest*
4369
 
LIBS="$ac_save_LIBS"
 
7976
  echo "$as_me: failed program was:" >&5
 
7977
sed 's/^/| /' conftest.$ac_ext >&5
4370
7978
 
4371
 
fi
4372
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4373
 
  echo "$ac_t""yes" 1>&6
 
7979
ac_cv_lib_dld_dld_link=no
 
7980
fi
 
7981
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7982
LIBS=$ac_check_lib_save_LIBS
 
7983
fi
 
7984
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
7985
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
7986
if test $ac_cv_lib_dld_dld_link = yes; then
4374
7987
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4375
 
else
4376
 
  echo "$ac_t""no" 1>&6
4377
 
fi
4378
 
 
4379
 
            
4380
 
fi
4381
 
 
4382
 
          
4383
 
fi
4384
 
 
4385
 
        
4386
 
fi
4387
 
 
4388
 
      
 
7988
fi
 
7989
 
 
7990
 
 
7991
fi
 
7992
 
 
7993
 
 
7994
fi
 
7995
 
 
7996
 
 
7997
fi
 
7998
 
 
7999
 
 
8000
fi
 
8001
 
 
8002
 
4389
8003
fi
4390
8004
 
4391
8005
    ;;
4400
8014
  case $lt_cv_dlopen in
4401
8015
  dlopen)
4402
8016
    save_CPPFLAGS="$CPPFLAGS"
4403
 
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8017
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4404
8018
 
4405
8019
    save_LDFLAGS="$LDFLAGS"
4406
8020
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4408
8022
    save_LIBS="$LIBS"
4409
8023
    LIBS="$lt_cv_dlopen_libs $LIBS"
4410
8024
 
4411
 
    echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4412
 
echo "configure:4413: checking whether a program can dlopen itself" >&5
4413
 
if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4414
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8025
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8026
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8027
if test "${lt_cv_dlopen_self+set}" = set; then
 
8028
  echo $ECHO_N "(cached) $ECHO_C" >&6
4415
8029
else
4416
8030
          if test "$cross_compiling" = yes; then :
4417
8031
  lt_cv_dlopen_self=cross
4418
8032
else
4419
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8033
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4420
8034
  lt_status=$lt_dlunknown
4421
8035
  cat > conftest.$ac_ext <<EOF
4422
 
#line 4423 "configure"
 
8036
#line 8036 "configure"
4423
8037
#include "confdefs.h"
4424
8038
 
4425
8039
#if HAVE_DLFCN_H
4480
8094
    exit (status);
4481
8095
}
4482
8096
EOF
4483
 
  if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8097
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8098
  (eval $ac_link) 2>&5
 
8099
  ac_status=$?
 
8100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8101
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4484
8102
    (./conftest; exit; ) 2>/dev/null
4485
8103
    lt_status=$?
4486
8104
    case x$lt_status in
4495
8113
fi
4496
8114
rm -fr conftest*
4497
8115
 
4498
 
    
 
8116
 
4499
8117
fi
4500
 
 
4501
 
echo "$ac_t""$lt_cv_dlopen_self" 1>&6
 
8118
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8119
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
4502
8120
 
4503
8121
    if test "x$lt_cv_dlopen_self" = xyes; then
4504
8122
      LDFLAGS="$LDFLAGS $link_static_flag"
4505
 
      echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4506
 
echo "configure:4507: checking whether a statically linked program can dlopen itself" >&5
4507
 
if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4508
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8123
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8124
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8125
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8126
  echo $ECHO_N "(cached) $ECHO_C" >&6
4509
8127
else
4510
8128
          if test "$cross_compiling" = yes; then :
4511
8129
  lt_cv_dlopen_self_static=cross
4512
8130
else
4513
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8131
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4514
8132
  lt_status=$lt_dlunknown
4515
8133
  cat > conftest.$ac_ext <<EOF
4516
 
#line 4517 "configure"
 
8134
#line 8134 "configure"
4517
8135
#include "confdefs.h"
4518
8136
 
4519
8137
#if HAVE_DLFCN_H
4574
8192
    exit (status);
4575
8193
}
4576
8194
EOF
4577
 
  if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8195
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8196
  (eval $ac_link) 2>&5
 
8197
  ac_status=$?
 
8198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8199
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
4578
8200
    (./conftest; exit; ) 2>/dev/null
4579
8201
    lt_status=$?
4580
8202
    case x$lt_status in
4589
8211
fi
4590
8212
rm -fr conftest*
4591
8213
 
4592
 
      
 
8214
 
4593
8215
fi
4594
 
 
4595
 
echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
 
8216
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8217
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
4596
8218
    fi
4597
8219
 
4598
8220
    CPPFLAGS="$save_CPPFLAGS"
4613
8235
fi
4614
8236
 
4615
8237
 
4616
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
4617
 
  case $archive_cmds in
4618
 
  *'~'*)
4619
 
    # FIXME: we may have to deal with multi-command sequences.
4620
 
    ;;
4621
 
  '$CC '*)
4622
 
    # Test whether the compiler implicitly links with -lc since on some
4623
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
4624
 
    # to ld, don't add -lc before -lgcc.
4625
 
    echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4626
 
echo "configure:4627: checking whether -lc should be explicitly linked in" >&5
4627
 
    if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4628
 
  echo $ac_n "(cached) $ac_c" 1>&6
4629
 
else
4630
 
  $rm conftest*
4631
 
    echo 'static int dummy;' > conftest.$ac_ext
4632
 
 
4633
 
    if { (eval echo configure:4634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4634
 
      soname=conftest
4635
 
      lib=conftest
4636
 
      libobjs=conftest.$ac_objext
4637
 
      deplibs=
4638
 
      wl=$lt_cv_prog_cc_wl
4639
 
      compiler_flags=-v
4640
 
      linker_flags=-v
4641
 
      verstring=
4642
 
      output_objdir=.
4643
 
      libname=conftest
4644
 
      save_allow_undefined_flag=$allow_undefined_flag
4645
 
      allow_undefined_flag=
4646
 
      if { (eval echo configure:4647: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4647
 
      then
4648
 
        lt_cv_archive_cmds_need_lc=no
 
8238
# Report which librarie types wil actually be built
 
8239
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8240
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8241
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8242
echo "${ECHO_T}$can_build_shared" >&6
 
8243
 
 
8244
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8245
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
8246
test "$can_build_shared" = "no" && enable_shared=no
 
8247
 
 
8248
# On AIX, shared libraries and static libraries use the same namespace, and
 
8249
# are all built from PIC.
 
8250
case "$host_os" in
 
8251
aix3*)
 
8252
  test "$enable_shared" = yes && enable_static=no
 
8253
  if test -n "$RANLIB"; then
 
8254
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8255
    postinstall_cmds='$RANLIB $lib'
 
8256
  fi
 
8257
  ;;
 
8258
 
 
8259
aix4*)
 
8260
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8261
    test "$enable_shared" = yes && enable_static=no
 
8262
  fi
 
8263
  ;;
 
8264
  darwin* | rhapsody*)
 
8265
  if test "$GCC" = yes; then
 
8266
    archive_cmds_need_lc=no
 
8267
    case "$host_os" in
 
8268
    rhapsody* | darwin1.[012])
 
8269
      allow_undefined_flag='-undefined suppress'
 
8270
      ;;
 
8271
    *) # Darwin 1.3 on
 
8272
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8273
        allow_undefined_flag='-flat_namespace -undefined suppress'
4649
8274
      else
4650
 
        lt_cv_archive_cmds_need_lc=yes
 
8275
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8276
          10.[012])
 
8277
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
8278
            ;;
 
8279
          10.*)
 
8280
            allow_undefined_flag='-undefined dynamic_lookup'
 
8281
            ;;
 
8282
        esac
4651
8283
      fi
4652
 
      allow_undefined_flag=$save_allow_undefined_flag
4653
 
    else
4654
 
      cat conftest.err 1>&5
4655
 
    fi
4656
 
fi
4657
 
 
4658
 
    echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
 
8284
      ;;
 
8285
    esac
 
8286
    output_verbose_link_cmd='echo'
 
8287
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
8288
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8289
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8290
    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}'
 
8291
    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}'
 
8292
    hardcode_direct=no
 
8293
    hardcode_automatic=yes
 
8294
    hardcode_shlibpath_var=unsupported
 
8295
    whole_archive_flag_spec='-all_load $convenience'
 
8296
    link_all_deplibs=yes
 
8297
  else
 
8298
    ld_shlibs=no
 
8299
  fi
4659
8300
    ;;
4660
 
  esac
4661
 
fi
4662
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
4663
 
 
4664
 
# The second clause should only fire when bootstrapping the
 
8301
esac
 
8302
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
8303
echo "${ECHO_T}$enable_shared" >&6
 
8304
 
 
8305
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
8306
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
8307
# Make sure either enable_shared or enable_static is yes.
 
8308
test "$enable_shared" = yes || enable_static=yes
 
8309
echo "$as_me:$LINENO: result: $enable_static" >&5
 
8310
echo "${ECHO_T}$enable_static" >&6
 
8311
 
 
8312
# The else clause should only fire when bootstrapping the
4665
8313
# libtool distribution, otherwise you forgot to ship ltmain.sh
4666
8314
# with your package, and you will get complaints that there are
4667
8315
# no rules to generate ltmain.sh.
4668
8316
if test -f "$ltmain"; then
4669
 
  :
4670
 
else
4671
 
  # If there is no Makefile yet, we rely on a make rule to execute
4672
 
  # `config.status --recheck' to rerun these tests and create the
4673
 
  # libtool script then.
4674
 
  test -f Makefile && make "$ltmain"
4675
 
fi
4676
 
 
4677
 
if test -f "$ltmain"; then
4678
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4679
 
  $rm -f "${ofile}T"
4680
 
 
4681
 
  echo creating $ofile
4682
 
 
 
8317
  # See if we are running on zsh, and set the options which allow our commands through
 
8318
  # without removal of \ escapes.
 
8319
  if test -n "${ZSH_VERSION+set}" ; then
 
8320
    setopt NO_GLOB_SUBST
 
8321
  fi
4683
8322
  # Now quote all the things that may contain metacharacters while being
4684
8323
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4685
8324
  # variables and quote the copies for generation of the libtool script.
4686
 
  for var in echo old_CC old_CFLAGS \
4687
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
4688
 
    reload_flag reload_cmds wl \
4689
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4690
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4691
 
    library_names_spec soname_spec \
4692
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4693
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4694
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4695
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
4696
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
4697
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4698
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
8325
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
8326
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
8327
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
8328
    deplibs_check_method reload_flag reload_cmds need_locks \
 
8329
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
8330
    lt_cv_sys_global_symbol_to_c_name_address \
4699
8331
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4700
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
8332
    old_postinstall_cmds old_postuninstall_cmds \
 
8333
    compiler \
 
8334
    CC \
 
8335
    LD \
 
8336
    lt_prog_compiler_wl \
 
8337
    lt_prog_compiler_pic \
 
8338
    lt_prog_compiler_static \
 
8339
    lt_prog_compiler_no_builtin_flag \
 
8340
    export_dynamic_flag_spec \
 
8341
    thread_safe_flag_spec \
 
8342
    whole_archive_flag_spec \
 
8343
    enable_shared_with_static_runtimes \
 
8344
    old_archive_cmds \
 
8345
    old_archive_from_new_cmds \
 
8346
    predep_objects \
 
8347
    postdep_objects \
 
8348
    predeps \
 
8349
    postdeps \
 
8350
    compiler_lib_search_path \
 
8351
    archive_cmds \
 
8352
    archive_expsym_cmds \
 
8353
    postinstall_cmds \
 
8354
    postuninstall_cmds \
 
8355
    old_archive_from_expsyms_cmds \
 
8356
    allow_undefined_flag \
 
8357
    no_undefined_flag \
 
8358
    export_symbols_cmds \
 
8359
    hardcode_libdir_flag_spec \
 
8360
    hardcode_libdir_flag_spec_ld \
 
8361
    hardcode_libdir_separator \
 
8362
    hardcode_automatic \
 
8363
    module_cmds \
 
8364
    module_expsym_cmds \
 
8365
    lt_cv_prog_compiler_c_o \
 
8366
    exclude_expsyms \
 
8367
    include_expsyms; do
4701
8368
 
4702
8369
    case $var in
4703
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
8370
    old_archive_cmds | \
 
8371
    old_archive_from_new_cmds | \
 
8372
    archive_cmds | \
 
8373
    archive_expsym_cmds | \
 
8374
    module_cmds | \
 
8375
    module_expsym_cmds | \
 
8376
    old_archive_from_expsyms_cmds | \
 
8377
    export_symbols_cmds | \
 
8378
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
8379
    postinstall_cmds | postuninstall_cmds | \
4704
8380
    old_postinstall_cmds | old_postuninstall_cmds | \
4705
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4706
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4707
 
    postinstall_cmds | postuninstall_cmds | \
4708
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
8381
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4709
8382
      # Double-quote double-evaled strings.
4710
8383
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4711
8384
      ;;
4715
8388
    esac
4716
8389
  done
4717
8390
 
4718
 
  cat <<__EOF__ > "${ofile}T"
 
8391
  case $lt_echo in
 
8392
  *'\$0 --fallback-echo"')
 
8393
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
8394
    ;;
 
8395
  esac
 
8396
 
 
8397
cfgfile="${ofile}T"
 
8398
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
8399
  $rm -f "$cfgfile"
 
8400
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
8401
echo "$as_me: creating $ofile" >&6;}
 
8402
 
 
8403
  cat <<__EOF__ >> "$cfgfile"
4719
8404
#! $SHELL
4720
8405
 
4721
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
8406
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4722
8407
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4723
8408
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4724
8409
#
4725
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
8410
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
8411
# Free Software Foundation, Inc.
 
8412
#
 
8413
# This file is part of GNU Libtool:
4726
8414
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4727
8415
#
4728
8416
# This program is free software; you can redistribute it and/or modify
4744
8432
# configuration script generated by Autoconf, you may include it under
4745
8433
# the same distribution terms that you use for the rest of that program.
4746
8434
 
 
8435
# A sed program that does not truncate output.
 
8436
SED=$lt_SED
 
8437
 
4747
8438
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4748
 
Xsed="sed -e s/^X//"
 
8439
Xsed="$SED -e s/^X//"
4749
8440
 
4750
8441
# The HP-UX ksh and POSIX shell print the target directory to stdout
4751
8442
# if CDPATH is set.
4752
8443
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4753
8444
 
 
8445
# The names of the tagged configurations supported by this script.
 
8446
available_tags=
 
8447
 
4754
8448
# ### BEGIN LIBTOOL CONFIG
4755
8449
 
4756
8450
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4761
8455
# Whether or not to build shared libraries.
4762
8456
build_libtool_libs=$enable_shared
4763
8457
 
4764
 
# Whether or not to add -lc for building shared libraries.
4765
 
build_libtool_need_lc=$need_lc
4766
 
 
4767
8458
# Whether or not to build static libraries.
4768
8459
build_old_libs=$enable_static
4769
8460
 
 
8461
# Whether or not to add -lc for building shared libraries.
 
8462
build_libtool_need_lc=$archive_cmds_need_lc
 
8463
 
 
8464
# Whether or not to disallow shared libs when runtime libs are static
 
8465
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
8466
 
4770
8467
# Whether or not to optimize for fast installation.
4771
8468
fast_install=$enable_fast_install
4772
8469
 
4781
8478
AR=$lt_AR
4782
8479
AR_FLAGS=$lt_AR_FLAGS
4783
8480
 
4784
 
# The default C compiler.
4785
 
CC=$lt_CC
 
8481
# A C compiler.
 
8482
LTCC=$lt_LTCC
 
8483
 
 
8484
# A language-specific compiler.
 
8485
CC=$lt_compiler
4786
8486
 
4787
8487
# Is the compiler the GNU C compiler?
4788
8488
with_gcc=$GCC
4789
8489
 
 
8490
# An ERE matcher.
 
8491
EGREP=$lt_EGREP
 
8492
 
4790
8493
# The linker used to build libraries.
4791
8494
LD=$lt_LD
4792
8495
 
4797
8500
NM=$lt_NM
4798
8501
 
4799
8502
# A symbol stripping program
4800
 
STRIP=$STRIP
 
8503
STRIP="$STRIP"
4801
8504
 
4802
8505
# Used to examine libraries when file_magic_cmd begins "file"
4803
8506
MAGIC_CMD=$MAGIC_CMD
4819
8522
reload_cmds=$lt_reload_cmds
4820
8523
 
4821
8524
# How to pass a linker flag through the compiler.
4822
 
wl=$lt_wl
 
8525
wl=$lt_lt_prog_compiler_wl
4823
8526
 
4824
8527
# Object file suffix (normally "o").
4825
8528
objext="$ac_objext"
4827
8530
# Old archive suffix (normally "a").
4828
8531
libext="$libext"
4829
8532
 
 
8533
# Shared library suffix (normally ".so").
 
8534
shrext='$shrext'
 
8535
 
4830
8536
# Executable file suffix (normally "").
4831
8537
exeext="$exeext"
4832
8538
 
4833
8539
# Additional compiler flags for building library objects.
4834
 
pic_flag=$lt_pic_flag
 
8540
pic_flag=$lt_lt_prog_compiler_pic
4835
8541
pic_mode=$pic_mode
4836
8542
 
 
8543
# What is the maximum length of a command?
 
8544
max_cmd_len=$lt_cv_sys_max_cmd_len
 
8545
 
4837
8546
# Does compiler simultaneously support -c and -o options?
4838
 
compiler_c_o=$lt_compiler_c_o
4839
 
 
4840
 
# Can we write directly to a .lo ?
4841
 
compiler_o_lo=$lt_compiler_o_lo
 
8547
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
4842
8548
 
4843
8549
# Must we lock files when doing compilation ?
4844
8550
need_locks=$lt_need_locks
4859
8565
dlopen_self_static=$enable_dlopen_self_static
4860
8566
 
4861
8567
# Compiler flag to prevent dynamic linking.
4862
 
link_static_flag=$lt_link_static_flag
 
8568
link_static_flag=$lt_lt_prog_compiler_static
4863
8569
 
4864
8570
# Compiler flag to turn off builtin functions.
4865
 
no_builtin_flag=$lt_no_builtin_flag
 
8571
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
4866
8572
 
4867
8573
# Compiler flag to allow reflexive dlopens.
4868
8574
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4904
8610
postinstall_cmds=$lt_postinstall_cmds
4905
8611
postuninstall_cmds=$lt_postuninstall_cmds
4906
8612
 
 
8613
# Commands used to build a loadable module (assumed same as above if empty)
 
8614
module_cmds=$lt_module_cmds
 
8615
module_expsym_cmds=$lt_module_expsym_cmds
 
8616
 
4907
8617
# Commands to strip libraries.
4908
8618
old_striplib=$lt_old_striplib
4909
8619
striplib=$lt_striplib
4910
8620
 
 
8621
# Dependencies to place before the objects being linked to create a
 
8622
# shared library.
 
8623
predep_objects=$lt_predep_objects
 
8624
 
 
8625
# Dependencies to place after the objects being linked to create a
 
8626
# shared library.
 
8627
postdep_objects=$lt_postdep_objects
 
8628
 
 
8629
# Dependencies to place before the objects being linked to create a
 
8630
# shared library.
 
8631
predeps=$lt_predeps
 
8632
 
 
8633
# Dependencies to place after the objects being linked to create a
 
8634
# shared library.
 
8635
postdeps=$lt_postdeps
 
8636
 
 
8637
# The library search path used internally by the compiler when linking
 
8638
# a shared library.
 
8639
compiler_lib_search_path=$lt_compiler_lib_search_path
 
8640
 
4911
8641
# Method to check whether dependent libraries are shared objects.
4912
8642
deplibs_check_method=$lt_deplibs_check_method
4913
8643
 
4927
8657
finish_eval=$lt_finish_eval
4928
8658
 
4929
8659
# Take the output of nm and produce a listing of raw symbols and C names.
4930
 
global_symbol_pipe=$lt_global_symbol_pipe
 
8660
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4931
8661
 
4932
8662
# Transform the output of nm in a proper C declaration
4933
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
8663
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
8664
 
 
8665
# Transform the output of nm in a C name address pair
 
8666
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4934
8667
 
4935
8668
# This is the shared library runtime path variable.
4936
8669
runpath_var=$runpath_var
4951
8684
# This must work even if \$libdir does not exist.
4952
8685
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
4953
8686
 
 
8687
# If ld is used when linking, flag to hardcode \$libdir into
 
8688
# a binary during linking. This must work even if \$libdir does
 
8689
# not exist.
 
8690
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
8691
 
4954
8692
# Whether we need a single -rpath flag with a separated argument.
4955
8693
hardcode_libdir_separator=$lt_hardcode_libdir_separator
4956
8694
 
4957
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
8695
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4958
8696
# resulting binary.
4959
8697
hardcode_direct=$hardcode_direct
4960
8698
 
4966
8704
# the resulting binary.
4967
8705
hardcode_shlibpath_var=$hardcode_shlibpath_var
4968
8706
 
 
8707
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
8708
# and all subsequent libraries and executables linked against it.
 
8709
hardcode_automatic=$hardcode_automatic
 
8710
 
4969
8711
# Variables whose values should be saved in libtool wrapper scripts and
4970
8712
# restored at relink time.
4971
8713
variables_saved_for_relink="$variables_saved_for_relink"
5001
8743
 
5002
8744
__EOF__
5003
8745
 
 
8746
 
5004
8747
  case $host_os in
5005
8748
  aix3*)
5006
 
    cat <<\EOF >> "${ofile}T"
 
8749
    cat <<\EOF >> "$cfgfile"
5007
8750
 
5008
8751
# AIX sometimes has problems with the GCC collect2 program.  For some
5009
8752
# reason, if we set the COLLECT_NAMES environment variable, the problems
5016
8759
    ;;
5017
8760
  esac
5018
8761
 
5019
 
  case $host_os in
5020
 
  cygwin* | mingw* | pw32* | os2*)
5021
 
    cat <<'EOF' >> "${ofile}T"
5022
 
      # This is a source program that is used to create dlls on Windows
5023
 
      # Don't remove nor modify the starting and closing comments
5024
 
# /* ltdll.c starts here */
5025
 
# #define WIN32_LEAN_AND_MEAN
5026
 
# #include <windows.h>
5027
 
# #undef WIN32_LEAN_AND_MEAN
5028
 
# #include <stdio.h>
5029
 
#
5030
 
# #ifndef __CYGWIN__
5031
 
# #  ifdef __CYGWIN32__
5032
 
# #    define __CYGWIN__ __CYGWIN32__
5033
 
# #  endif
5034
 
# #endif
5035
 
#
5036
 
# #ifdef __cplusplus
5037
 
# extern "C" {
5038
 
# #endif
5039
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5040
 
# #ifdef __cplusplus
5041
 
# }
5042
 
# #endif
5043
 
#
5044
 
# #ifdef __CYGWIN__
5045
 
# #include <cygwin/cygwin_dll.h>
5046
 
# DECLARE_CYGWIN_DLL( DllMain );
5047
 
# #endif
5048
 
# HINSTANCE __hDllInstance_base;
5049
 
#
5050
 
# BOOL APIENTRY
5051
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5052
 
# {
5053
 
#   __hDllInstance_base = hInst;
5054
 
#   return TRUE;
5055
 
# }
5056
 
# /* ltdll.c ends here */
5057
 
        # This is a source program that is used to create import libraries
5058
 
        # on Windows for dlls which lack them. Don't remove nor modify the
5059
 
        # starting and closing comments
5060
 
# /* impgen.c starts here */
5061
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
5062
 
#
5063
 
#  This file is part of GNU libtool.
5064
 
#
5065
 
#  This program is free software; you can redistribute it and/or modify
5066
 
#  it under the terms of the GNU General Public License as published by
5067
 
#  the Free Software Foundation; either version 2 of the License, or
5068
 
#  (at your option) any later version.
5069
 
#
5070
 
#  This program is distributed in the hope that it will be useful,
5071
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
5072
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5073
 
#  GNU General Public License for more details.
5074
 
#
5075
 
#  You should have received a copy of the GNU General Public License
5076
 
#  along with this program; if not, write to the Free Software
5077
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5078
 
#  */
5079
 
#
5080
 
# #include <stdio.h>            /* for printf() */
5081
 
# #include <unistd.h>           /* for open(), lseek(), read() */
5082
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
5083
 
# #include <string.h>           /* for strdup() */
5084
 
#
5085
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
5086
 
# #ifndef O_BINARY
5087
 
# #define O_BINARY 0
5088
 
# #endif
5089
 
#
5090
 
# static unsigned int
5091
 
# pe_get16 (fd, offset)
5092
 
#      int fd;
5093
 
#      int offset;
5094
 
# {
5095
 
#   unsigned char b[2];
5096
 
#   lseek (fd, offset, SEEK_SET);
5097
 
#   read (fd, b, 2);
5098
 
#   return b[0] + (b[1]<<8);
5099
 
# }
5100
 
#
5101
 
# static unsigned int
5102
 
# pe_get32 (fd, offset)
5103
 
#     int fd;
5104
 
#     int offset;
5105
 
# {
5106
 
#   unsigned char b[4];
5107
 
#   lseek (fd, offset, SEEK_SET);
5108
 
#   read (fd, b, 4);
5109
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5110
 
# }
5111
 
#
5112
 
# static unsigned int
5113
 
# pe_as32 (ptr)
5114
 
#      void *ptr;
5115
 
# {
5116
 
#   unsigned char *b = ptr;
5117
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5118
 
# }
5119
 
#
5120
 
# int
5121
 
# main (argc, argv)
5122
 
#     int argc;
5123
 
#     char *argv[];
5124
 
# {
5125
 
#     int dll;
5126
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5127
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
5128
 
#     unsigned long name_rvas, nexp;
5129
 
#     unsigned char *expdata, *erva;
5130
 
#     char *filename, *dll_name;
5131
 
#
5132
 
#     filename = argv[1];
5133
 
#
5134
 
#     dll = open(filename, O_RDONLY|O_BINARY);
5135
 
#     if (dll < 1)
5136
 
#       return 1;
5137
 
#
5138
 
#     dll_name = filename;
5139
 
#
5140
 
#     for (i=0; filename[i]; i++)
5141
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
5142
 
#           dll_name = filename + i +1;
5143
 
#
5144
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
5145
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
5146
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
5147
 
#
5148
 
#     if (num_entries < 1) /* no exports */
5149
 
#       return 1;
5150
 
#
5151
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
5152
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
5153
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5154
 
#     secptr = (pe_header_offset + 4 + 20 +
5155
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
5156
 
#
5157
 
#     expptr = 0;
5158
 
#     for (i = 0; i < nsections; i++)
5159
 
#     {
5160
 
#       char sname[8];
5161
 
#       unsigned long secptr1 = secptr + 40 * i;
5162
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5163
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5164
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5165
 
#       lseek(dll, secptr1, SEEK_SET);
5166
 
#       read(dll, sname, 8);
5167
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
5168
 
#       {
5169
 
#           expptr = fptr + (export_rva - vaddr);
5170
 
#           if (export_rva + export_size > vaddr + vsize)
5171
 
#               export_size = vsize - (export_rva - vaddr);
5172
 
#           break;
5173
 
#       }
5174
 
#     }
5175
 
#
5176
 
#     expdata = (unsigned char*)malloc(export_size);
5177
 
#     lseek (dll, expptr, SEEK_SET);
5178
 
#     read (dll, expdata, export_size);
5179
 
#     erva = expdata - export_rva;
5180
 
#
5181
 
#     nexp = pe_as32 (expdata+24);
5182
 
#     name_rvas = pe_as32 (expdata+32);
5183
 
#
5184
 
#     printf ("EXPORTS\n");
5185
 
#     for (i = 0; i<nexp; i++)
5186
 
#     {
5187
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5188
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5189
 
#     }
5190
 
#
5191
 
#     return 0;
5192
 
# }
5193
 
# /* impgen.c ends here */
5194
 
 
5195
 
EOF
5196
 
    ;;
5197
 
  esac
5198
 
 
5199
8762
  # We use sed instead of cat because bash on DJGPP gets confused if
5200
8763
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5201
8764
  # text mode, it properly converts lines to CR/LF.  This bash problem
5202
8765
  # is reportedly fixed, but why not run on old versions too?
5203
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
8766
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5204
8767
 
5205
 
  mv -f "${ofile}T" "$ofile" || \
5206
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
8768
  mv -f "$cfgfile" "$ofile" || \
 
8769
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5207
8770
  chmod +x "$ofile"
5208
 
fi
5209
 
 
5210
 
 
 
8771
 
 
8772
else
 
8773
  # If there is no Makefile yet, we rely on a make rule to execute
 
8774
  # `config.status --recheck' to rerun these tests and create the
 
8775
  # libtool script then.
 
8776
  test -f Makefile && make "$ltmain"
 
8777
fi
 
8778
 
 
8779
 
 
8780
ac_ext=c
 
8781
ac_cpp='$CPP $CPPFLAGS'
 
8782
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8783
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8785
 
 
8786
CC="$lt_save_CC"
 
8787
 
 
8788
 
 
8789
# Check whether --with-tags or --without-tags was given.
 
8790
if test "${with_tags+set}" = set; then
 
8791
  withval="$with_tags"
 
8792
  tagnames="$withval"
 
8793
fi;
 
8794
 
 
8795
if test -f "$ltmain" && test -n "$tagnames"; then
 
8796
  if test ! -f "${ofile}"; then
 
8797
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
8798
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
8799
  fi
 
8800
 
 
8801
  if test -z "$LTCC"; then
 
8802
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
8803
    if test -z "$LTCC"; then
 
8804
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
8805
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
8806
    else
 
8807
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
8808
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
8809
    fi
 
8810
  fi
 
8811
 
 
8812
  # Extract list of available tagged configurations in $ofile.
 
8813
  # Note that this assumes the entire list is on one line.
 
8814
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
8815
 
 
8816
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8817
  for tagname in $tagnames; do
 
8818
    IFS="$lt_save_ifs"
 
8819
    # Check whether tagname contains only valid characters
 
8820
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
8821
    "") ;;
 
8822
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
8823
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
8824
   { (exit 1); exit 1; }; }
 
8825
        ;;
 
8826
    esac
 
8827
 
 
8828
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
8829
    then
 
8830
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
8831
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
8832
   { (exit 1); exit 1; }; }
 
8833
    fi
 
8834
 
 
8835
    # Update the list of available tags.
 
8836
    if test -n "$tagname"; then
 
8837
      echo appending configuration tag \"$tagname\" to $ofile
 
8838
 
 
8839
      case $tagname in
 
8840
      CXX)
 
8841
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
8842
          ac_ext=cc
 
8843
ac_cpp='$CXXCPP $CPPFLAGS'
 
8844
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8845
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8846
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
8847
 
 
8848
 
 
8849
 
 
8850
 
 
8851
archive_cmds_need_lc_CXX=no
 
8852
allow_undefined_flag_CXX=
 
8853
always_export_symbols_CXX=no
 
8854
archive_expsym_cmds_CXX=
 
8855
export_dynamic_flag_spec_CXX=
 
8856
hardcode_direct_CXX=no
 
8857
hardcode_libdir_flag_spec_CXX=
 
8858
hardcode_libdir_flag_spec_ld_CXX=
 
8859
hardcode_libdir_separator_CXX=
 
8860
hardcode_minus_L_CXX=no
 
8861
hardcode_automatic_CXX=no
 
8862
module_cmds_CXX=
 
8863
module_expsym_cmds_CXX=
 
8864
link_all_deplibs_CXX=unknown
 
8865
old_archive_cmds_CXX=$old_archive_cmds
 
8866
no_undefined_flag_CXX=
 
8867
whole_archive_flag_spec_CXX=
 
8868
enable_shared_with_static_runtimes_CXX=no
 
8869
 
 
8870
# Dependencies to place before and after the object being linked:
 
8871
predep_objects_CXX=
 
8872
postdep_objects_CXX=
 
8873
predeps_CXX=
 
8874
postdeps_CXX=
 
8875
compiler_lib_search_path_CXX=
 
8876
 
 
8877
# Source file extension for C++ test sources.
 
8878
ac_ext=cc
 
8879
 
 
8880
# Object file extension for compiled C++ test sources.
 
8881
objext=o
 
8882
objext_CXX=$objext
 
8883
 
 
8884
# Code to be used in simple compile tests
 
8885
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8886
 
 
8887
# Code to be used in simple link tests
 
8888
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
8889
 
 
8890
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
8891
 
 
8892
# If no C compiler was specified, use CC.
 
8893
LTCC=${LTCC-"$CC"}
 
8894
 
 
8895
# Allow CC to be a program name with arguments.
 
8896
compiler=$CC
 
8897
 
 
8898
 
 
8899
# Allow CC to be a program name with arguments.
 
8900
lt_save_CC=$CC
 
8901
lt_save_LD=$LD
 
8902
lt_save_GCC=$GCC
 
8903
GCC=$GXX
 
8904
lt_save_with_gnu_ld=$with_gnu_ld
 
8905
lt_save_path_LD=$lt_cv_path_LD
 
8906
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
8907
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
8908
else
 
8909
  unset lt_cv_prog_gnu_ld
 
8910
fi
 
8911
if test -n "${lt_cv_path_LDCXX+set}"; then
 
8912
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
8913
else
 
8914
  unset lt_cv_path_LD
 
8915
fi
 
8916
test -z "${LDCXX+set}" || LD=$LDCXX
 
8917
CC=${CXX-"c++"}
 
8918
compiler=$CC
 
8919
compiler_CXX=$CC
 
8920
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
8921
 
 
8922
# We don't want -fno-exception wen compiling C++ code, so set the
 
8923
# no_builtin_flag separately
 
8924
if test "$GXX" = yes; then
 
8925
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
8926
else
 
8927
  lt_prog_compiler_no_builtin_flag_CXX=
 
8928
fi
 
8929
 
 
8930
if test "$GXX" = yes; then
 
8931
  # Set up default GNU C++ configuration
 
8932
 
 
8933
 
 
8934
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
8935
if test "${with_gnu_ld+set}" = set; then
 
8936
  withval="$with_gnu_ld"
 
8937
  test "$withval" = no || with_gnu_ld=yes
 
8938
else
 
8939
  with_gnu_ld=no
 
8940
fi;
 
8941
ac_prog=ld
 
8942
if test "$GCC" = yes; then
 
8943
  # Check if gcc -print-prog-name=ld gives a path.
 
8944
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
8945
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
8946
  case $host in
 
8947
  *-*-mingw*)
 
8948
    # gcc leaves a trailing carriage return which upsets mingw
 
8949
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
8950
  *)
 
8951
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
8952
  esac
 
8953
  case $ac_prog in
 
8954
    # Accept absolute paths.
 
8955
    [\\/]* | ?:[\\/]*)
 
8956
      re_direlt='/[^/][^/]*/\.\./'
 
8957
      # Canonicalize the pathname of ld
 
8958
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
8959
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
8960
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
8961
      done
 
8962
      test -z "$LD" && LD="$ac_prog"
 
8963
      ;;
 
8964
  "")
 
8965
    # If it fails, then pretend we aren't using GCC.
 
8966
    ac_prog=ld
 
8967
    ;;
 
8968
  *)
 
8969
    # If it is relative, then search for the first ld in PATH.
 
8970
    with_gnu_ld=unknown
 
8971
    ;;
 
8972
  esac
 
8973
elif test "$with_gnu_ld" = yes; then
 
8974
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
8975
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
8976
else
 
8977
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
8978
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
8979
fi
 
8980
if test "${lt_cv_path_LD+set}" = set; then
 
8981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8982
else
 
8983
  if test -z "$LD"; then
 
8984
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8985
  for ac_dir in $PATH; do
 
8986
    IFS="$lt_save_ifs"
 
8987
    test -z "$ac_dir" && ac_dir=.
 
8988
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
8989
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
8990
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
8991
      # but apparently some GNU ld's only accept -v.
 
8992
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
8993
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
8994
      *GNU* | *'with BFD'*)
 
8995
        test "$with_gnu_ld" != no && break
 
8996
        ;;
 
8997
      *)
 
8998
        test "$with_gnu_ld" != yes && break
 
8999
        ;;
 
9000
      esac
 
9001
    fi
 
9002
  done
 
9003
  IFS="$lt_save_ifs"
 
9004
else
 
9005
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9006
fi
 
9007
fi
 
9008
 
 
9009
LD="$lt_cv_path_LD"
 
9010
if test -n "$LD"; then
 
9011
  echo "$as_me:$LINENO: result: $LD" >&5
 
9012
echo "${ECHO_T}$LD" >&6
 
9013
else
 
9014
  echo "$as_me:$LINENO: result: no" >&5
 
9015
echo "${ECHO_T}no" >&6
 
9016
fi
 
9017
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9018
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9019
   { (exit 1); exit 1; }; }
 
9020
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9021
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9022
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9024
else
 
9025
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9026
case `$LD -v 2>&1 </dev/null` in
 
9027
*GNU* | *'with BFD'*)
 
9028
  lt_cv_prog_gnu_ld=yes
 
9029
  ;;
 
9030
*)
 
9031
  lt_cv_prog_gnu_ld=no
 
9032
  ;;
 
9033
esac
 
9034
fi
 
9035
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9036
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9037
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9038
 
 
9039
 
 
9040
 
 
9041
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9042
  # archiving commands below assume that GNU ld is being used.
 
9043
  if test "$with_gnu_ld" = yes; then
 
9044
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9045
    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'
 
9046
 
 
9047
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9048
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9049
 
 
9050
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9051
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9052
    #     investigate it a little bit more. (MM)
 
9053
    wlarc='${wl}'
 
9054
 
 
9055
    # ancient GNU ld didn't support --whole-archive et. al.
 
9056
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9057
        grep 'no-whole-archive' > /dev/null; then
 
9058
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9059
    else
 
9060
      whole_archive_flag_spec_CXX=
 
9061
    fi
 
9062
  else
 
9063
    with_gnu_ld=no
 
9064
    wlarc=
 
9065
 
 
9066
    # A generic and very simple default shared library creation
 
9067
    # command for GNU C++ for the case where it uses the native
 
9068
    # linker, instead of GNU ld.  If possible, this setting should
 
9069
    # overridden to take advantage of the native linker features on
 
9070
    # the platform it is being used on.
 
9071
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9072
  fi
 
9073
 
 
9074
  # Commands to make compiler produce verbose output that lists
 
9075
  # what "hidden" libraries, object files and flags are used when
 
9076
  # linking a shared library.
 
9077
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9078
 
 
9079
else
 
9080
  GXX=no
 
9081
  with_gnu_ld=no
 
9082
  wlarc=
 
9083
fi
 
9084
 
 
9085
# PORTME: fill in a description of your system's C++ link characteristics
 
9086
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9087
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9088
ld_shlibs_CXX=yes
 
9089
case $host_os in
 
9090
  aix3*)
 
9091
    # FIXME: insert proper C++ library support
 
9092
    ld_shlibs_CXX=no
 
9093
    ;;
 
9094
  aix4* | aix5*)
 
9095
    if test "$host_cpu" = ia64; then
 
9096
      # On IA64, the linker does run time linking by default, so we don't
 
9097
      # have to do anything special.
 
9098
      aix_use_runtimelinking=no
 
9099
      exp_sym_flag='-Bexport'
 
9100
      no_entry_flag=""
 
9101
    else
 
9102
      aix_use_runtimelinking=no
 
9103
 
 
9104
      # Test if we are trying to use run time linking or normal
 
9105
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9106
      # need to do runtime linking.
 
9107
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9108
        for ld_flag in $LDFLAGS; do
 
9109
          case $ld_flag in
 
9110
          *-brtl*)
 
9111
            aix_use_runtimelinking=yes
 
9112
            break
 
9113
            ;;
 
9114
          esac
 
9115
        done
 
9116
      esac
 
9117
 
 
9118
      exp_sym_flag='-bexport'
 
9119
      no_entry_flag='-bnoentry'
 
9120
    fi
 
9121
 
 
9122
    # When large executables or shared objects are built, AIX ld can
 
9123
    # have problems creating the table of contents.  If linking a library
 
9124
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9125
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9126
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9127
 
 
9128
    archive_cmds_CXX=''
 
9129
    hardcode_direct_CXX=yes
 
9130
    hardcode_libdir_separator_CXX=':'
 
9131
    link_all_deplibs_CXX=yes
 
9132
 
 
9133
    if test "$GXX" = yes; then
 
9134
      case $host_os in aix4.012|aix4.012.*)
 
9135
      # We only want to do this on AIX 4.2 and lower, the check
 
9136
      # below for broken collect2 doesn't work under 4.3+
 
9137
        collect2name=`${CC} -print-prog-name=collect2`
 
9138
        if test -f "$collect2name" && \
 
9139
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9140
        then
 
9141
          # We have reworked collect2
 
9142
          hardcode_direct_CXX=yes
 
9143
        else
 
9144
          # We have old collect2
 
9145
          hardcode_direct_CXX=unsupported
 
9146
          # It fails to find uninstalled libraries when the uninstalled
 
9147
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9148
          # to unsupported forces relinking
 
9149
          hardcode_minus_L_CXX=yes
 
9150
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9151
          hardcode_libdir_separator_CXX=
 
9152
        fi
 
9153
      esac
 
9154
      shared_flag='-shared'
 
9155
    else
 
9156
      # not using gcc
 
9157
      if test "$host_cpu" = ia64; then
 
9158
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9159
        # chokes on -Wl,-G. The following line is correct:
 
9160
        shared_flag='-G'
 
9161
      else
 
9162
        if test "$aix_use_runtimelinking" = yes; then
 
9163
          shared_flag='${wl}-G'
 
9164
        else
 
9165
          shared_flag='${wl}-bM:SRE'
 
9166
        fi
 
9167
      fi
 
9168
    fi
 
9169
 
 
9170
    # It seems that -bexpall does not export symbols beginning with
 
9171
    # underscore (_), so it is better to generate a list of symbols to export.
 
9172
    always_export_symbols_CXX=yes
 
9173
    if test "$aix_use_runtimelinking" = yes; then
 
9174
      # Warning - without using the other runtime loading flags (-brtl),
 
9175
      # -berok will link without error, but may produce a broken library.
 
9176
      allow_undefined_flag_CXX='-berok'
 
9177
      # Determine the default libpath from the value encoded in an empty executable.
 
9178
      cat >conftest.$ac_ext <<_ACEOF
 
9179
#line $LINENO "configure"
 
9180
/* confdefs.h.  */
 
9181
_ACEOF
 
9182
cat confdefs.h >>conftest.$ac_ext
 
9183
cat >>conftest.$ac_ext <<_ACEOF
 
9184
/* end confdefs.h.  */
 
9185
 
 
9186
int
 
9187
main ()
 
9188
{
 
9189
 
 
9190
  ;
 
9191
  return 0;
 
9192
}
 
9193
_ACEOF
 
9194
rm -f conftest.$ac_objext conftest$ac_exeext
 
9195
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9196
  (eval $ac_link) 2>&5
 
9197
  ac_status=$?
 
9198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9199
  (exit $ac_status); } &&
 
9200
         { ac_try='test -s conftest$ac_exeext'
 
9201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9202
  (eval $ac_try) 2>&5
 
9203
  ac_status=$?
 
9204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9205
  (exit $ac_status); }; }; then
 
9206
 
 
9207
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9208
}'`
 
9209
# Check for a 64-bit object if we didn't find anything.
 
9210
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; }
 
9211
}'`; fi
 
9212
else
 
9213
  echo "$as_me: failed program was:" >&5
 
9214
sed 's/^/| /' conftest.$ac_ext >&5
 
9215
 
 
9216
fi
 
9217
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9218
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9219
 
 
9220
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9221
 
 
9222
      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"
 
9223
     else
 
9224
      if test "$host_cpu" = ia64; then
 
9225
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
9226
        allow_undefined_flag_CXX="-z nodefs"
 
9227
        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"
 
9228
      else
 
9229
        # Determine the default libpath from the value encoded in an empty executable.
 
9230
        cat >conftest.$ac_ext <<_ACEOF
 
9231
#line $LINENO "configure"
 
9232
/* confdefs.h.  */
 
9233
_ACEOF
 
9234
cat confdefs.h >>conftest.$ac_ext
 
9235
cat >>conftest.$ac_ext <<_ACEOF
 
9236
/* end confdefs.h.  */
 
9237
 
 
9238
int
 
9239
main ()
 
9240
{
 
9241
 
 
9242
  ;
 
9243
  return 0;
 
9244
}
 
9245
_ACEOF
 
9246
rm -f conftest.$ac_objext conftest$ac_exeext
 
9247
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9248
  (eval $ac_link) 2>&5
 
9249
  ac_status=$?
 
9250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9251
  (exit $ac_status); } &&
 
9252
         { ac_try='test -s conftest$ac_exeext'
 
9253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9254
  (eval $ac_try) 2>&5
 
9255
  ac_status=$?
 
9256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9257
  (exit $ac_status); }; }; then
 
9258
 
 
9259
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9260
}'`
 
9261
# Check for a 64-bit object if we didn't find anything.
 
9262
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; }
 
9263
}'`; fi
 
9264
else
 
9265
  echo "$as_me: failed program was:" >&5
 
9266
sed 's/^/| /' conftest.$ac_ext >&5
 
9267
 
 
9268
fi
 
9269
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9270
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9271
 
 
9272
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9273
        # Warning - without using the other run time loading flags,
 
9274
        # -berok will link without error, but may produce a broken library.
 
9275
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
9276
        allow_undefined_flag_CXX=' ${wl}-berok'
 
9277
        # -bexpall does not export symbols beginning with underscore (_)
 
9278
        always_export_symbols_CXX=yes
 
9279
        # Exported symbols can be pulled into shared objects from archives
 
9280
        whole_archive_flag_spec_CXX=' '
 
9281
        archive_cmds_need_lc_CXX=yes
 
9282
        # This is similar to how AIX traditionally builds it's shared libraries.
 
9283
        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'
 
9284
      fi
 
9285
    fi
 
9286
    ;;
 
9287
  chorus*)
 
9288
    case $cc_basename in
 
9289
      *)
 
9290
        # FIXME: insert proper C++ library support
 
9291
        ld_shlibs_CXX=no
 
9292
        ;;
 
9293
    esac
 
9294
    ;;
 
9295
 
 
9296
  cygwin* | mingw* | pw32*)
 
9297
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
9298
    # as there is no search path for DLLs.
 
9299
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9300
    allow_undefined_flag_CXX=unsupported
 
9301
    always_export_symbols_CXX=no
 
9302
    enable_shared_with_static_runtimes_CXX=yes
 
9303
 
 
9304
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9305
      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'
 
9306
      # If the export-symbols file already is a .def file (1st line
 
9307
      # is EXPORTS), use it as is; otherwise, prepend...
 
9308
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9309
        cp $export_symbols $output_objdir/$soname.def;
 
9310
      else
 
9311
        echo EXPORTS > $output_objdir/$soname.def;
 
9312
        cat $export_symbols >> $output_objdir/$soname.def;
 
9313
      fi~
 
9314
      $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'
 
9315
    else
 
9316
      ld_shlibs_CXX=no
 
9317
    fi
 
9318
  ;;
 
9319
 
 
9320
  darwin* | rhapsody*)
 
9321
  if test "$GXX" = yes; then
 
9322
    archive_cmds_need_lc_CXX=no
 
9323
    case "$host_os" in
 
9324
    rhapsody* | darwin1.[012])
 
9325
      allow_undefined_flag_CXX='-undefined suppress'
 
9326
      ;;
 
9327
    *) # Darwin 1.3 on
 
9328
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9329
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
9330
      else
 
9331
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9332
          10.[012])
 
9333
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
9334
            ;;
 
9335
          10.*)
 
9336
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
9337
            ;;
 
9338
        esac
 
9339
      fi
 
9340
      ;;
 
9341
    esac
 
9342
    lt_int_apple_cc_single_mod=no
 
9343
    output_verbose_link_cmd='echo'
 
9344
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9345
      lt_int_apple_cc_single_mod=yes
 
9346
    fi
 
9347
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9348
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9349
    else
 
9350
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9351
    fi
 
9352
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9353
 
 
9354
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9355
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9356
      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}'
 
9357
    else
 
9358
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9359
    fi
 
9360
    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}'
 
9361
    hardcode_direct_CXX=no
 
9362
    hardcode_automatic_CXX=yes
 
9363
    hardcode_shlibpath_var_CXX=unsupported
 
9364
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
9365
    link_all_deplibs_CXX=yes
 
9366
  else
 
9367
    ld_shlibs_CXX=no
 
9368
  fi
 
9369
    ;;
 
9370
 
 
9371
  dgux*)
 
9372
    case $cc_basename in
 
9373
      ec++)
 
9374
        # FIXME: insert proper C++ library support
 
9375
        ld_shlibs_CXX=no
 
9376
        ;;
 
9377
      ghcx)
 
9378
        # Green Hills C++ Compiler
 
9379
        # FIXME: insert proper C++ library support
 
9380
        ld_shlibs_CXX=no
 
9381
        ;;
 
9382
      *)
 
9383
        # FIXME: insert proper C++ library support
 
9384
        ld_shlibs_CXX=no
 
9385
        ;;
 
9386
    esac
 
9387
    ;;
 
9388
  freebsd12*)
 
9389
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
9390
    ld_shlibs_CXX=no
 
9391
    ;;
 
9392
  freebsd-elf*)
 
9393
    archive_cmds_need_lc_CXX=no
 
9394
    ;;
 
9395
  freebsd* | kfreebsd*-gnu)
 
9396
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
9397
    # conventions
 
9398
    ld_shlibs_CXX=yes
 
9399
    ;;
 
9400
  gnu*)
 
9401
    ;;
 
9402
  hpux9*)
 
9403
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9404
    hardcode_libdir_separator_CXX=:
 
9405
    export_dynamic_flag_spec_CXX='${wl}-E'
 
9406
    hardcode_direct_CXX=yes
 
9407
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9408
                                # but as the default
 
9409
                                # location of the library.
 
9410
 
 
9411
    case $cc_basename in
 
9412
    CC)
 
9413
      # FIXME: insert proper C++ library support
 
9414
      ld_shlibs_CXX=no
 
9415
      ;;
 
9416
    aCC)
 
9417
      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'
 
9418
      # Commands to make compiler produce verbose output that lists
 
9419
      # what "hidden" libraries, object files and flags are used when
 
9420
      # linking a shared library.
 
9421
      #
 
9422
      # There doesn't appear to be a way to prevent this compiler from
 
9423
      # explicitly linking system object files so we need to strip them
 
9424
      # from the output so that they don't get included in the library
 
9425
      # dependencies.
 
9426
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
9427
      ;;
 
9428
    *)
 
9429
      if test "$GXX" = yes; then
 
9430
        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'
 
9431
      else
 
9432
        # FIXME: insert proper C++ library support
 
9433
        ld_shlibs_CXX=no
 
9434
      fi
 
9435
      ;;
 
9436
    esac
 
9437
    ;;
 
9438
  hpux10*|hpux11*)
 
9439
    if test $with_gnu_ld = no; then
 
9440
      case "$host_cpu" in
 
9441
      hppa*64*)
 
9442
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9443
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
9444
        hardcode_libdir_separator_CXX=:
 
9445
        ;;
 
9446
      ia64*)
 
9447
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9448
        ;;
 
9449
      *)
 
9450
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9451
        hardcode_libdir_separator_CXX=:
 
9452
        export_dynamic_flag_spec_CXX='${wl}-E'
 
9453
        ;;
 
9454
      esac
 
9455
    fi
 
9456
    case "$host_cpu" in
 
9457
    hppa*64*)
 
9458
      hardcode_direct_CXX=no
 
9459
      hardcode_shlibpath_var_CXX=no
 
9460
      ;;
 
9461
    ia64*)
 
9462
      hardcode_direct_CXX=no
 
9463
      hardcode_shlibpath_var_CXX=no
 
9464
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9465
                                              # but as the default
 
9466
                                              # location of the library.
 
9467
      ;;
 
9468
    *)
 
9469
      hardcode_direct_CXX=yes
 
9470
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9471
                                              # but as the default
 
9472
                                              # location of the library.
 
9473
      ;;
 
9474
    esac
 
9475
 
 
9476
    case $cc_basename in
 
9477
      CC)
 
9478
        # FIXME: insert proper C++ library support
 
9479
        ld_shlibs_CXX=no
 
9480
        ;;
 
9481
      aCC)
 
9482
        case "$host_cpu" in
 
9483
        hppa*64*|ia64*)
 
9484
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9485
          ;;
 
9486
        *)
 
9487
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9488
          ;;
 
9489
        esac
 
9490
        # Commands to make compiler produce verbose output that lists
 
9491
        # what "hidden" libraries, object files and flags are used when
 
9492
        # linking a shared library.
 
9493
        #
 
9494
        # There doesn't appear to be a way to prevent this compiler from
 
9495
        # explicitly linking system object files so we need to strip them
 
9496
        # from the output so that they don't get included in the library
 
9497
        # dependencies.
 
9498
        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'
 
9499
        ;;
 
9500
      *)
 
9501
        if test "$GXX" = yes; then
 
9502
          if test $with_gnu_ld = no; then
 
9503
            case "$host_cpu" in
 
9504
            ia64*|hppa*64*)
 
9505
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9506
              ;;
 
9507
            *)
 
9508
              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'
 
9509
              ;;
 
9510
            esac
 
9511
          fi
 
9512
        else
 
9513
          # FIXME: insert proper C++ library support
 
9514
          ld_shlibs_CXX=no
 
9515
        fi
 
9516
        ;;
 
9517
    esac
 
9518
    ;;
 
9519
  irix5* | irix6*)
 
9520
    case $cc_basename in
 
9521
      CC)
 
9522
        # SGI C++
 
9523
        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'
 
9524
 
 
9525
        # Archives containing C++ object files must be created using
 
9526
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
9527
        # necessary to make sure instantiated templates are included
 
9528
        # in the archive.
 
9529
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
9530
        ;;
 
9531
      *)
 
9532
        if test "$GXX" = yes; then
 
9533
          if test "$with_gnu_ld" = no; then
 
9534
            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'
 
9535
          else
 
9536
            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'
 
9537
          fi
 
9538
        fi
 
9539
        link_all_deplibs_CXX=yes
 
9540
        ;;
 
9541
    esac
 
9542
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9543
    hardcode_libdir_separator_CXX=:
 
9544
    ;;
 
9545
  linux*)
 
9546
    case $cc_basename in
 
9547
      KCC)
 
9548
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9549
 
 
9550
        # KCC will only create a shared library if the output file
 
9551
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9552
        # to its proper name (with version) after linking.
 
9553
        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'
 
9554
        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'
 
9555
        # Commands to make compiler produce verbose output that lists
 
9556
        # what "hidden" libraries, object files and flags are used when
 
9557
        # linking a shared library.
 
9558
        #
 
9559
        # There doesn't appear to be a way to prevent this compiler from
 
9560
        # explicitly linking system object files so we need to strip them
 
9561
        # from the output so that they don't get included in the library
 
9562
        # dependencies.
 
9563
        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'
 
9564
 
 
9565
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
9566
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9567
 
 
9568
        # Archives containing C++ object files must be created using
 
9569
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
9570
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
9571
        ;;
 
9572
      icpc)
 
9573
        # Intel C++
 
9574
        with_gnu_ld=yes
 
9575
        archive_cmds_need_lc_CXX=no
 
9576
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9577
        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'
 
9578
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9579
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9580
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9581
        ;;
 
9582
      cxx)
 
9583
        # Compaq C++
 
9584
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9585
        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'
 
9586
 
 
9587
        runpath_var=LD_RUN_PATH
 
9588
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
9589
        hardcode_libdir_separator_CXX=:
 
9590
 
 
9591
        # Commands to make compiler produce verbose output that lists
 
9592
        # what "hidden" libraries, object files and flags are used when
 
9593
        # linking a shared library.
 
9594
        #
 
9595
        # There doesn't appear to be a way to prevent this compiler from
 
9596
        # explicitly linking system object files so we need to strip them
 
9597
        # from the output so that they don't get included in the library
 
9598
        # dependencies.
 
9599
        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'
 
9600
        ;;
 
9601
    esac
 
9602
    ;;
 
9603
  lynxos*)
 
9604
    # FIXME: insert proper C++ library support
 
9605
    ld_shlibs_CXX=no
 
9606
    ;;
 
9607
  m88k*)
 
9608
    # FIXME: insert proper C++ library support
 
9609
    ld_shlibs_CXX=no
 
9610
    ;;
 
9611
  mvs*)
 
9612
    case $cc_basename in
 
9613
      cxx)
 
9614
        # FIXME: insert proper C++ library support
 
9615
        ld_shlibs_CXX=no
 
9616
        ;;
 
9617
      *)
 
9618
        # FIXME: insert proper C++ library support
 
9619
        ld_shlibs_CXX=no
 
9620
        ;;
 
9621
    esac
 
9622
    ;;
 
9623
  netbsd*)
 
9624
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9625
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
9626
      wlarc=
 
9627
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
9628
      hardcode_direct_CXX=yes
 
9629
      hardcode_shlibpath_var_CXX=no
 
9630
    fi
 
9631
    # Workaround some broken pre-1.5 toolchains
 
9632
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
9633
    ;;
 
9634
  osf3*)
 
9635
    case $cc_basename in
 
9636
      KCC)
 
9637
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9638
 
 
9639
        # KCC will only create a shared library if the output file
 
9640
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9641
        # to its proper name (with version) after linking.
 
9642
        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'
 
9643
 
 
9644
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9645
        hardcode_libdir_separator_CXX=:
 
9646
 
 
9647
        # Archives containing C++ object files must be created using
 
9648
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
9649
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
9650
 
 
9651
        ;;
 
9652
      RCC)
 
9653
        # Rational C++ 2.4.1
 
9654
        # FIXME: insert proper C++ library support
 
9655
        ld_shlibs_CXX=no
 
9656
        ;;
 
9657
      cxx)
 
9658
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
9659
        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'
 
9660
 
 
9661
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9662
        hardcode_libdir_separator_CXX=:
 
9663
 
 
9664
        # Commands to make compiler produce verbose output that lists
 
9665
        # what "hidden" libraries, object files and flags are used when
 
9666
        # linking a shared library.
 
9667
        #
 
9668
        # There doesn't appear to be a way to prevent this compiler from
 
9669
        # explicitly linking system object files so we need to strip them
 
9670
        # from the output so that they don't get included in the library
 
9671
        # dependencies.
 
9672
        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'
 
9673
        ;;
 
9674
      *)
 
9675
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
9676
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
9677
          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'
 
9678
 
 
9679
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9680
          hardcode_libdir_separator_CXX=:
 
9681
 
 
9682
          # Commands to make compiler produce verbose output that lists
 
9683
          # what "hidden" libraries, object files and flags are used when
 
9684
          # linking a shared library.
 
9685
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9686
 
 
9687
        else
 
9688
          # FIXME: insert proper C++ library support
 
9689
          ld_shlibs_CXX=no
 
9690
        fi
 
9691
        ;;
 
9692
    esac
 
9693
    ;;
 
9694
  osf4* | osf5*)
 
9695
    case $cc_basename in
 
9696
      KCC)
 
9697
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9698
 
 
9699
        # KCC will only create a shared library if the output file
 
9700
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9701
        # to its proper name (with version) after linking.
 
9702
        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'
 
9703
 
 
9704
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9705
        hardcode_libdir_separator_CXX=:
 
9706
 
 
9707
        # Archives containing C++ object files must be created using
 
9708
        # the KAI C++ compiler.
 
9709
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
9710
        ;;
 
9711
      RCC)
 
9712
        # Rational C++ 2.4.1
 
9713
        # FIXME: insert proper C++ library support
 
9714
        ld_shlibs_CXX=no
 
9715
        ;;
 
9716
      cxx)
 
9717
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
9718
        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'
 
9719
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
9720
          echo "-hidden">> $lib.exp~
 
9721
          $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~
 
9722
          $rm $lib.exp'
 
9723
 
 
9724
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
9725
        hardcode_libdir_separator_CXX=:
 
9726
 
 
9727
        # Commands to make compiler produce verbose output that lists
 
9728
        # what "hidden" libraries, object files and flags are used when
 
9729
        # linking a shared library.
 
9730
        #
 
9731
        # There doesn't appear to be a way to prevent this compiler from
 
9732
        # explicitly linking system object files so we need to strip them
 
9733
        # from the output so that they don't get included in the library
 
9734
        # dependencies.
 
9735
        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'
 
9736
        ;;
 
9737
      *)
 
9738
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
9739
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
9740
         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'
 
9741
 
 
9742
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9743
          hardcode_libdir_separator_CXX=:
 
9744
 
 
9745
          # Commands to make compiler produce verbose output that lists
 
9746
          # what "hidden" libraries, object files and flags are used when
 
9747
          # linking a shared library.
 
9748
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9749
 
 
9750
        else
 
9751
          # FIXME: insert proper C++ library support
 
9752
          ld_shlibs_CXX=no
 
9753
        fi
 
9754
        ;;
 
9755
    esac
 
9756
    ;;
 
9757
  psos*)
 
9758
    # FIXME: insert proper C++ library support
 
9759
    ld_shlibs_CXX=no
 
9760
    ;;
 
9761
  sco*)
 
9762
    archive_cmds_need_lc_CXX=no
 
9763
    case $cc_basename in
 
9764
      CC)
 
9765
        # FIXME: insert proper C++ library support
 
9766
        ld_shlibs_CXX=no
 
9767
        ;;
 
9768
      *)
 
9769
        # FIXME: insert proper C++ library support
 
9770
        ld_shlibs_CXX=no
 
9771
        ;;
 
9772
    esac
 
9773
    ;;
 
9774
  sunos4*)
 
9775
    case $cc_basename in
 
9776
      CC)
 
9777
        # Sun C++ 4.x
 
9778
        # FIXME: insert proper C++ library support
 
9779
        ld_shlibs_CXX=no
 
9780
        ;;
 
9781
      lcc)
 
9782
        # Lucid
 
9783
        # FIXME: insert proper C++ library support
 
9784
        ld_shlibs_CXX=no
 
9785
        ;;
 
9786
      *)
 
9787
        # FIXME: insert proper C++ library support
 
9788
        ld_shlibs_CXX=no
 
9789
        ;;
 
9790
    esac
 
9791
    ;;
 
9792
  solaris*)
 
9793
    case $cc_basename in
 
9794
      CC)
 
9795
        # Sun C++ 4.2, 5.x and Centerline C++
 
9796
        no_undefined_flag_CXX=' -zdefs'
 
9797
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9798
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9799
        $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'
 
9800
 
 
9801
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
9802
        hardcode_shlibpath_var_CXX=no
 
9803
        case $host_os in
 
9804
          solaris2.0-5 | solaris2.0-5.*) ;;
 
9805
          *)
 
9806
            # The C++ compiler is used as linker so we must use $wl
 
9807
            # flag to pass the commands to the underlying system
 
9808
            # linker.
 
9809
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9810
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9811
            ;;
 
9812
        esac
 
9813
        link_all_deplibs_CXX=yes
 
9814
 
 
9815
        # Commands to make compiler produce verbose output that lists
 
9816
        # what "hidden" libraries, object files and flags are used when
 
9817
        # linking a shared library.
 
9818
        #
 
9819
        # There doesn't appear to be a way to prevent this compiler from
 
9820
        # explicitly linking system object files so we need to strip them
 
9821
        # from the output so that they don't get included in the library
 
9822
        # dependencies.
 
9823
        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'
 
9824
 
 
9825
        # Archives containing C++ object files must be created using
 
9826
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
9827
        # necessary to make sure instantiated templates are included
 
9828
        # in the archive.
 
9829
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
9830
        ;;
 
9831
      gcx)
 
9832
        # Green Hills C++ Compiler
 
9833
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
9834
 
 
9835
        # The C++ compiler must be used to create the archive.
 
9836
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
9837
        ;;
 
9838
      *)
 
9839
        # GNU C++ compiler with Solaris linker
 
9840
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
9841
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
9842
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
9843
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
9844
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9845
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
9846
 
 
9847
            # Commands to make compiler produce verbose output that lists
 
9848
            # what "hidden" libraries, object files and flags are used when
 
9849
            # linking a shared library.
 
9850
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
9851
          else
 
9852
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
9853
            # platform.
 
9854
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
9855
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9856
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
9857
 
 
9858
            # Commands to make compiler produce verbose output that lists
 
9859
            # what "hidden" libraries, object files and flags are used when
 
9860
            # linking a shared library.
 
9861
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
9862
          fi
 
9863
 
 
9864
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
9865
        fi
 
9866
        ;;
 
9867
    esac
 
9868
    ;;
 
9869
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
9870
    archive_cmds_need_lc_CXX=no
 
9871
    ;;
 
9872
  tandem*)
 
9873
    case $cc_basename in
 
9874
      NCC)
 
9875
        # NonStop-UX NCC 3.20
 
9876
        # FIXME: insert proper C++ library support
 
9877
        ld_shlibs_CXX=no
 
9878
        ;;
 
9879
      *)
 
9880
        # FIXME: insert proper C++ library support
 
9881
        ld_shlibs_CXX=no
 
9882
        ;;
 
9883
    esac
 
9884
    ;;
 
9885
  vxworks*)
 
9886
    # FIXME: insert proper C++ library support
 
9887
    ld_shlibs_CXX=no
 
9888
    ;;
 
9889
  *)
 
9890
    # FIXME: insert proper C++ library support
 
9891
    ld_shlibs_CXX=no
 
9892
    ;;
 
9893
esac
 
9894
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
9895
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
9896
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
9897
 
 
9898
GCC_CXX="$GXX"
 
9899
LD_CXX="$LD"
 
9900
 
 
9901
 
 
9902
cat > conftest.$ac_ext <<EOF
 
9903
class Foo
 
9904
{
 
9905
public:
 
9906
  Foo (void) { a = 0; }
 
9907
private:
 
9908
  int a;
 
9909
};
 
9910
EOF
 
9911
 
 
9912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9913
  (eval $ac_compile) 2>&5
 
9914
  ac_status=$?
 
9915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9916
  (exit $ac_status); }; then
 
9917
  # Parse the compiler output and extract the necessary
 
9918
  # objects, libraries and library flags.
 
9919
 
 
9920
  # Sentinel used to keep track of whether or not we are before
 
9921
  # the conftest object file.
 
9922
  pre_test_object_deps_done=no
 
9923
 
 
9924
  # The `*' in the case matches for architectures that use `case' in
 
9925
  # $output_verbose_cmd can trigger glob expansion during the loop
 
9926
  # eval without this substitution.
 
9927
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
9928
 
 
9929
  for p in `eval $output_verbose_link_cmd`; do
 
9930
    case $p in
 
9931
 
 
9932
    -L* | -R* | -l*)
 
9933
       # Some compilers place space between "-{L,R}" and the path.
 
9934
       # Remove the space.
 
9935
       if test $p = "-L" \
 
9936
          || test $p = "-R"; then
 
9937
         prev=$p
 
9938
         continue
 
9939
       else
 
9940
         prev=
 
9941
       fi
 
9942
 
 
9943
       if test "$pre_test_object_deps_done" = no; then
 
9944
         case $p in
 
9945
         -L* | -R*)
 
9946
           # Internal compiler library paths should come after those
 
9947
           # provided the user.  The postdeps already come after the
 
9948
           # user supplied libs so there is no need to process them.
 
9949
           if test -z "$compiler_lib_search_path_CXX"; then
 
9950
             compiler_lib_search_path_CXX="${prev}${p}"
 
9951
           else
 
9952
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
9953
           fi
 
9954
           ;;
 
9955
         # The "-l" case would never come before the object being
 
9956
         # linked, so don't bother handling this case.
 
9957
         esac
 
9958
       else
 
9959
         if test -z "$postdeps_CXX"; then
 
9960
           postdeps_CXX="${prev}${p}"
 
9961
         else
 
9962
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
9963
         fi
 
9964
       fi
 
9965
       ;;
 
9966
 
 
9967
    *.$objext)
 
9968
       # This assumes that the test object file only shows up
 
9969
       # once in the compiler output.
 
9970
       if test "$p" = "conftest.$objext"; then
 
9971
         pre_test_object_deps_done=yes
 
9972
         continue
 
9973
       fi
 
9974
 
 
9975
       if test "$pre_test_object_deps_done" = no; then
 
9976
         if test -z "$predep_objects_CXX"; then
 
9977
           predep_objects_CXX="$p"
 
9978
         else
 
9979
           predep_objects_CXX="$predep_objects_CXX $p"
 
9980
         fi
 
9981
       else
 
9982
         if test -z "$postdep_objects_CXX"; then
 
9983
           postdep_objects_CXX="$p"
 
9984
         else
 
9985
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
9986
         fi
 
9987
       fi
 
9988
       ;;
 
9989
 
 
9990
    *) ;; # Ignore the rest.
 
9991
 
 
9992
    esac
 
9993
  done
 
9994
 
 
9995
  # Clean up.
 
9996
  rm -f a.out a.exe
 
9997
else
 
9998
  echo "libtool.m4: error: problem compiling CXX test program"
 
9999
fi
 
10000
 
 
10001
$rm -f confest.$objext
 
10002
 
 
10003
case " $postdeps_CXX " in
 
10004
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10005
esac
 
10006
 
 
10007
lt_prog_compiler_wl_CXX=
 
10008
lt_prog_compiler_pic_CXX=
 
10009
lt_prog_compiler_static_CXX=
 
10010
 
 
10011
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10012
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10013
 
 
10014
  # C++ specific cases for pic, static, wl, etc.
 
10015
  if test "$GXX" = yes; then
 
10016
    lt_prog_compiler_wl_CXX='-Wl,'
 
10017
    lt_prog_compiler_static_CXX='-static'
 
10018
 
 
10019
    case $host_os in
 
10020
    aix*)
 
10021
      # All AIX code is PIC.
 
10022
      if test "$host_cpu" = ia64; then
 
10023
        # AIX 5 now supports IA64 processor
 
10024
        lt_prog_compiler_static_CXX='-Bstatic'
 
10025
      fi
 
10026
      ;;
 
10027
    amigaos*)
 
10028
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10029
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10030
      # like `-m68040'.
 
10031
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10032
      ;;
 
10033
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10034
      # PIC is the default for these OSes.
 
10035
      ;;
 
10036
    mingw* | os2* | pw32*)
 
10037
      # This hack is so that the source file can tell whether it is being
 
10038
      # built for inclusion in a dll (and should export symbols for example).
 
10039
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10040
      ;;
 
10041
    darwin* | rhapsody*)
 
10042
      # PIC is the default on this platform
 
10043
      # Common symbols not allowed in MH_DYLIB files
 
10044
      lt_prog_compiler_pic_CXX='-fno-common'
 
10045
      ;;
 
10046
    *djgpp*)
 
10047
      # DJGPP does not support shared libraries at all
 
10048
      lt_prog_compiler_pic_CXX=
 
10049
      ;;
 
10050
    sysv4*MP*)
 
10051
      if test -d /usr/nec; then
 
10052
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10053
      fi
 
10054
      ;;
 
10055
    hpux*)
 
10056
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10057
      # not for PA HP-UX.
 
10058
      case "$host_cpu" in
 
10059
      hppa*64*|ia64*)
 
10060
        ;;
 
10061
      *)
 
10062
        lt_prog_compiler_pic_CXX='-fPIC'
 
10063
        ;;
 
10064
      esac
 
10065
      ;;
 
10066
    *)
 
10067
      lt_prog_compiler_pic_CXX='-fPIC'
 
10068
      ;;
 
10069
    esac
 
10070
  else
 
10071
    case $host_os in
 
10072
      aix4* | aix5*)
 
10073
        # All AIX code is PIC.
 
10074
        if test "$host_cpu" = ia64; then
 
10075
          # AIX 5 now supports IA64 processor
 
10076
          lt_prog_compiler_static_CXX='-Bstatic'
 
10077
        else
 
10078
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10079
        fi
 
10080
        ;;
 
10081
      chorus*)
 
10082
        case $cc_basename in
 
10083
        cxch68)
 
10084
          # Green Hills C++ Compiler
 
10085
          # _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"
 
10086
          ;;
 
10087
        esac
 
10088
        ;;
 
10089
      dgux*)
 
10090
        case $cc_basename in
 
10091
          ec++)
 
10092
            lt_prog_compiler_pic_CXX='-KPIC'
 
10093
            ;;
 
10094
          ghcx)
 
10095
            # Green Hills C++ Compiler
 
10096
            lt_prog_compiler_pic_CXX='-pic'
 
10097
            ;;
 
10098
          *)
 
10099
            ;;
 
10100
        esac
 
10101
        ;;
 
10102
      freebsd* | kfreebsd*-gnu)
 
10103
        # FreeBSD uses GNU C++
 
10104
        ;;
 
10105
      hpux9* | hpux10* | hpux11*)
 
10106
        case $cc_basename in
 
10107
          CC)
 
10108
            lt_prog_compiler_wl_CXX='-Wl,'
 
10109
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10110
            if test "$host_cpu" != ia64; then
 
10111
              lt_prog_compiler_pic_CXX='+Z'
 
10112
            fi
 
10113
            ;;
 
10114
          aCC)
 
10115
            lt_prog_compiler_wl_CXX='-Wl,'
 
10116
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10117
            case "$host_cpu" in
 
10118
            hppa*64*|ia64*)
 
10119
              # +Z the default
 
10120
              ;;
 
10121
            *)
 
10122
              lt_prog_compiler_pic_CXX='+Z'
 
10123
              ;;
 
10124
            esac
 
10125
            ;;
 
10126
          *)
 
10127
            ;;
 
10128
        esac
 
10129
        ;;
 
10130
      irix5* | irix6* | nonstopux*)
 
10131
        case $cc_basename in
 
10132
          CC)
 
10133
            lt_prog_compiler_wl_CXX='-Wl,'
 
10134
            lt_prog_compiler_static_CXX='-non_shared'
 
10135
            # CC pic flag -KPIC is the default.
 
10136
            ;;
 
10137
          *)
 
10138
            ;;
 
10139
        esac
 
10140
        ;;
 
10141
      linux*)
 
10142
        case $cc_basename in
 
10143
          KCC)
 
10144
            # KAI C++ Compiler
 
10145
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10146
            lt_prog_compiler_pic_CXX='-fPIC'
 
10147
            ;;
 
10148
          icpc)
 
10149
            # Intel C++
 
10150
            lt_prog_compiler_wl_CXX='-Wl,'
 
10151
            lt_prog_compiler_pic_CXX='-KPIC'
 
10152
            lt_prog_compiler_static_CXX='-static'
 
10153
            ;;
 
10154
          cxx)
 
10155
            # Compaq C++
 
10156
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10157
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10158
            lt_prog_compiler_pic_CXX=
 
10159
            lt_prog_compiler_static_CXX='-non_shared'
 
10160
            ;;
 
10161
          *)
 
10162
            ;;
 
10163
        esac
 
10164
        ;;
 
10165
      lynxos*)
 
10166
        ;;
 
10167
      m88k*)
 
10168
        ;;
 
10169
      mvs*)
 
10170
        case $cc_basename in
 
10171
          cxx)
 
10172
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
10173
            ;;
 
10174
          *)
 
10175
            ;;
 
10176
        esac
 
10177
        ;;
 
10178
      netbsd*)
 
10179
        ;;
 
10180
      osf3* | osf4* | osf5*)
 
10181
        case $cc_basename in
 
10182
          KCC)
 
10183
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10184
            ;;
 
10185
          RCC)
 
10186
            # Rational C++ 2.4.1
 
10187
            lt_prog_compiler_pic_CXX='-pic'
 
10188
            ;;
 
10189
          cxx)
 
10190
            # Digital/Compaq C++
 
10191
            lt_prog_compiler_wl_CXX='-Wl,'
 
10192
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10193
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10194
            lt_prog_compiler_pic_CXX=
 
10195
            lt_prog_compiler_static_CXX='-non_shared'
 
10196
            ;;
 
10197
          *)
 
10198
            ;;
 
10199
        esac
 
10200
        ;;
 
10201
      psos*)
 
10202
        ;;
 
10203
      sco*)
 
10204
        case $cc_basename in
 
10205
          CC)
 
10206
            lt_prog_compiler_pic_CXX='-fPIC'
 
10207
            ;;
 
10208
          *)
 
10209
            ;;
 
10210
        esac
 
10211
        ;;
 
10212
      solaris*)
 
10213
        case $cc_basename in
 
10214
          CC)
 
10215
            # Sun C++ 4.2, 5.x and Centerline C++
 
10216
            lt_prog_compiler_pic_CXX='-KPIC'
 
10217
            lt_prog_compiler_static_CXX='-Bstatic'
 
10218
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
10219
            ;;
 
10220
          gcx)
 
10221
            # Green Hills C++ Compiler
 
10222
            lt_prog_compiler_pic_CXX='-PIC'
 
10223
            ;;
 
10224
          *)
 
10225
            ;;
 
10226
        esac
 
10227
        ;;
 
10228
      sunos4*)
 
10229
        case $cc_basename in
 
10230
          CC)
 
10231
            # Sun C++ 4.x
 
10232
            lt_prog_compiler_pic_CXX='-pic'
 
10233
            lt_prog_compiler_static_CXX='-Bstatic'
 
10234
            ;;
 
10235
          lcc)
 
10236
            # Lucid
 
10237
            lt_prog_compiler_pic_CXX='-pic'
 
10238
            ;;
 
10239
          *)
 
10240
            ;;
 
10241
        esac
 
10242
        ;;
 
10243
      tandem*)
 
10244
        case $cc_basename in
 
10245
          NCC)
 
10246
            # NonStop-UX NCC 3.20
 
10247
            lt_prog_compiler_pic_CXX='-KPIC'
 
10248
            ;;
 
10249
          *)
 
10250
            ;;
 
10251
        esac
 
10252
        ;;
 
10253
      unixware*)
 
10254
        ;;
 
10255
      vxworks*)
 
10256
        ;;
 
10257
      *)
 
10258
        lt_prog_compiler_can_build_shared_CXX=no
 
10259
        ;;
 
10260
    esac
 
10261
  fi
 
10262
 
 
10263
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
10264
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
10265
 
 
10266
#
 
10267
# Check to make sure the PIC flag actually works.
 
10268
#
 
10269
if test -n "$lt_prog_compiler_pic_CXX"; then
 
10270
 
 
10271
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
10272
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
10273
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
10274
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10275
else
 
10276
  lt_prog_compiler_pic_works_CXX=no
 
10277
  ac_outfile=conftest.$ac_objext
 
10278
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10279
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
10280
   # Insert the option either (1) after the last *FLAGS variable, or
 
10281
   # (2) before a word containing "conftest.", or (3) at the end.
 
10282
   # Note that $ac_compile itself does not contain backslashes and begins
 
10283
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10284
   # The option is referenced via a variable to avoid confusing sed.
 
10285
   lt_compile=`echo "$ac_compile" | $SED \
 
10286
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10287
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10288
   -e 's:$: $lt_compiler_flag:'`
 
10289
   (eval echo "\"\$as_me:10289: $lt_compile\"" >&5)
 
10290
   (eval "$lt_compile" 2>conftest.err)
 
10291
   ac_status=$?
 
10292
   cat conftest.err >&5
 
10293
   echo "$as_me:10293: \$? = $ac_status" >&5
 
10294
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10295
     # The compiler can only warn and ignore the option if not recognized
 
10296
     # So say no if there are warnings
 
10297
     if test ! -s conftest.err; then
 
10298
       lt_prog_compiler_pic_works_CXX=yes
 
10299
     fi
 
10300
   fi
 
10301
   $rm conftest*
 
10302
 
 
10303
fi
 
10304
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
10305
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
10306
 
 
10307
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
10308
    case $lt_prog_compiler_pic_CXX in
 
10309
     "" | " "*) ;;
 
10310
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
10311
     esac
 
10312
else
 
10313
    lt_prog_compiler_pic_CXX=
 
10314
     lt_prog_compiler_can_build_shared_CXX=no
 
10315
fi
 
10316
 
 
10317
fi
 
10318
case "$host_os" in
 
10319
  # For platforms which do not support PIC, -DPIC is meaningless:
 
10320
  *djgpp*)
 
10321
    lt_prog_compiler_pic_CXX=
 
10322
    ;;
 
10323
  *)
 
10324
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
10325
    ;;
 
10326
esac
 
10327
 
 
10328
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
10329
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
10330
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
10331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10332
else
 
10333
  lt_cv_prog_compiler_c_o_CXX=no
 
10334
   $rm -r conftest 2>/dev/null
 
10335
   mkdir conftest
 
10336
   cd conftest
 
10337
   mkdir out
 
10338
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10339
 
 
10340
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
10341
   # that will create temporary files in the current directory regardless of
 
10342
   # the output directory.  Thus, making CWD read-only will cause this test
 
10343
   # to fail, enabling locking or at least warning the user not to do parallel
 
10344
   # builds.
 
10345
   chmod -w .
 
10346
 
 
10347
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
10348
   # Insert the option either (1) after the last *FLAGS variable, or
 
10349
   # (2) before a word containing "conftest.", or (3) at the end.
 
10350
   # Note that $ac_compile itself does not contain backslashes and begins
 
10351
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10352
   lt_compile=`echo "$ac_compile" | $SED \
 
10353
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10354
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10355
   -e 's:$: $lt_compiler_flag:'`
 
10356
   (eval echo "\"\$as_me:10356: $lt_compile\"" >&5)
 
10357
   (eval "$lt_compile" 2>out/conftest.err)
 
10358
   ac_status=$?
 
10359
   cat out/conftest.err >&5
 
10360
   echo "$as_me:10360: \$? = $ac_status" >&5
 
10361
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
10362
   then
 
10363
     # The compiler can only warn and ignore the option if not recognized
 
10364
     # So say no if there are warnings
 
10365
     if test ! -s out/conftest.err; then
 
10366
       lt_cv_prog_compiler_c_o_CXX=yes
 
10367
     fi
 
10368
   fi
 
10369
   chmod u+w .
 
10370
   $rm conftest*
 
10371
   # SGI C++ compiler will create directory out/ii_files/ for
 
10372
   # template instantiation
 
10373
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
10374
   $rm out/* && rmdir out
 
10375
   cd ..
 
10376
   rmdir conftest
 
10377
   $rm conftest*
 
10378
 
 
10379
fi
 
10380
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
10381
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
10382
 
 
10383
 
 
10384
hard_links="nottested"
 
10385
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
10386
  # do not overwrite the value of need_locks provided by the user
 
10387
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
10388
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
10389
  hard_links=yes
 
10390
  $rm conftest*
 
10391
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10392
  touch conftest.a
 
10393
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
10394
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10395
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
10396
echo "${ECHO_T}$hard_links" >&6
 
10397
  if test "$hard_links" = no; then
 
10398
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
10399
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
10400
    need_locks=warn
 
10401
  fi
 
10402
else
 
10403
  need_locks=no
 
10404
fi
 
10405
 
 
10406
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10407
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10408
 
 
10409
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10410
  case $host_os in
 
10411
  aix4* | aix5*)
 
10412
    # If we're using GNU nm, then we don't want the "-C" option.
 
10413
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10414
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
10415
      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'
 
10416
    else
 
10417
      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'
 
10418
    fi
 
10419
    ;;
 
10420
  pw32*)
 
10421
    export_symbols_cmds_CXX="$ltdll_cmds"
 
10422
  ;;
 
10423
  cygwin* | mingw*)
 
10424
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
10425
  ;;
 
10426
  *)
 
10427
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10428
  ;;
 
10429
  esac
 
10430
 
 
10431
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10432
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10433
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10434
 
 
10435
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10436
if test "$GCC" = yes; then
 
10437
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10438
fi
 
10439
 
 
10440
#
 
10441
# Do we need to explicitly link libc?
 
10442
#
 
10443
case "x$archive_cmds_need_lc_CXX" in
 
10444
x|xyes)
 
10445
  # Assume -lc should be added
 
10446
  archive_cmds_need_lc_CXX=yes
 
10447
 
 
10448
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10449
    case $archive_cmds_CXX in
 
10450
    *'~'*)
 
10451
      # FIXME: we may have to deal with multi-command sequences.
 
10452
      ;;
 
10453
    '$CC '*)
 
10454
      # Test whether the compiler implicitly links with -lc since on some
 
10455
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10456
      # to ld, don't add -lc before -lgcc.
 
10457
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10458
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
10459
      $rm conftest*
 
10460
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10461
 
 
10462
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10463
  (eval $ac_compile) 2>&5
 
10464
  ac_status=$?
 
10465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10466
  (exit $ac_status); } 2>conftest.err; then
 
10467
        soname=conftest
 
10468
        lib=conftest
 
10469
        libobjs=conftest.$ac_objext
 
10470
        deplibs=
 
10471
        wl=$lt_prog_compiler_wl_CXX
 
10472
        compiler_flags=-v
 
10473
        linker_flags=-v
 
10474
        verstring=
 
10475
        output_objdir=.
 
10476
        libname=conftest
 
10477
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
10478
        allow_undefined_flag_CXX=
 
10479
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10480
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10481
  ac_status=$?
 
10482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10483
  (exit $ac_status); }
 
10484
        then
 
10485
          archive_cmds_need_lc_CXX=no
 
10486
        else
 
10487
          archive_cmds_need_lc_CXX=yes
 
10488
        fi
 
10489
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
10490
      else
 
10491
        cat conftest.err 1>&5
 
10492
      fi
 
10493
      $rm conftest*
 
10494
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
10495
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
10496
      ;;
 
10497
    esac
 
10498
  fi
 
10499
  ;;
 
10500
esac
 
10501
 
 
10502
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10503
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
10504
library_names_spec=
 
10505
libname_spec='lib$name'
 
10506
soname_spec=
 
10507
shrext=".so"
 
10508
postinstall_cmds=
 
10509
postuninstall_cmds=
 
10510
finish_cmds=
 
10511
finish_eval=
 
10512
shlibpath_var=
 
10513
shlibpath_overrides_runpath=unknown
 
10514
version_type=none
 
10515
dynamic_linker="$host_os ld.so"
 
10516
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10517
if test "$GCC" = yes; then
 
10518
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10519
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
10520
    # if the path contains ";" then we assume it to be the separator
 
10521
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10522
    # assumed that no part of a normal pathname contains ";" but that should
 
10523
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10524
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10525
  else
 
10526
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10527
  fi
 
10528
else
 
10529
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10530
fi
 
10531
need_lib_prefix=unknown
 
10532
hardcode_into_libs=no
 
10533
 
 
10534
# when you set need_version to no, make sure it does not cause -set_version
 
10535
# flags to be left without arguments
 
10536
need_version=unknown
 
10537
 
 
10538
case $host_os in
 
10539
aix3*)
 
10540
  version_type=linux
 
10541
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10542
  shlibpath_var=LIBPATH
 
10543
 
 
10544
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10545
  soname_spec='${libname}${release}${shared_ext}$major'
 
10546
  ;;
 
10547
 
 
10548
aix4* | aix5*)
 
10549
  version_type=linux
 
10550
  need_lib_prefix=no
 
10551
  need_version=no
 
10552
  hardcode_into_libs=yes
 
10553
  if test "$host_cpu" = ia64; then
 
10554
    # AIX 5 supports IA64
 
10555
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10556
    shlibpath_var=LD_LIBRARY_PATH
 
10557
  else
 
10558
    # With GCC up to 2.95.x, collect2 would create an import file
 
10559
    # for dependence libraries.  The import file would start with
 
10560
    # the line `#! .'.  This would cause the generated library to
 
10561
    # depend on `.', always an invalid library.  This was fixed in
 
10562
    # development snapshots of GCC prior to 3.0.
 
10563
    case $host_os in
 
10564
      aix4 | aix4.[01] | aix4.[01].*)
 
10565
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10566
           echo ' yes '
 
10567
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10568
        :
 
10569
      else
 
10570
        can_build_shared=no
 
10571
      fi
 
10572
      ;;
 
10573
    esac
 
10574
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10575
    # soname into executable. Probably we can add versioning support to
 
10576
    # collect2, so additional links can be useful in future.
 
10577
    if test "$aix_use_runtimelinking" = yes; then
 
10578
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10579
      # instead of lib<name>.a to let people know that these are not
 
10580
      # typical AIX shared libraries.
 
10581
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10582
    else
 
10583
      # We preserve .a as extension for shared libraries through AIX4.2
 
10584
      # and later when we are not doing run time linking.
 
10585
      library_names_spec='${libname}${release}.a $libname.a'
 
10586
      soname_spec='${libname}${release}${shared_ext}$major'
 
10587
    fi
 
10588
    shlibpath_var=LIBPATH
 
10589
  fi
 
10590
  ;;
 
10591
 
 
10592
amigaos*)
 
10593
  library_names_spec='$libname.ixlibrary $libname.a'
 
10594
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10595
  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'
 
10596
  ;;
 
10597
 
 
10598
beos*)
 
10599
  library_names_spec='${libname}${shared_ext}'
 
10600
  dynamic_linker="$host_os ld.so"
 
10601
  shlibpath_var=LIBRARY_PATH
 
10602
  ;;
 
10603
 
 
10604
bsdi4*)
 
10605
  version_type=linux
 
10606
  need_version=no
 
10607
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10608
  soname_spec='${libname}${release}${shared_ext}$major'
 
10609
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10610
  shlibpath_var=LD_LIBRARY_PATH
 
10611
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10612
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10613
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10614
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10615
  # libtool to hard-code these into programs
 
10616
  ;;
 
10617
 
 
10618
cygwin* | mingw* | pw32*)
 
10619
  version_type=windows
 
10620
  shrext=".dll"
 
10621
  need_version=no
 
10622
  need_lib_prefix=no
 
10623
 
 
10624
  case $GCC,$host_os in
 
10625
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10626
    library_names_spec='$libname.dll.a'
 
10627
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10628
    postinstall_cmds='base_file=`basename \${file}`~
 
10629
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10630
      dldir=$destdir/`dirname \$dlpath`~
 
10631
      test -d \$dldir || mkdir -p \$dldir~
 
10632
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10633
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10634
      dlpath=$dir/\$dldll~
 
10635
       $rm \$dlpath'
 
10636
    shlibpath_overrides_runpath=yes
 
10637
 
 
10638
    case $host_os in
 
10639
    cygwin*)
 
10640
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10641
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10642
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
10643
      ;;
 
10644
    mingw*)
 
10645
      # MinGW DLLs use traditional 'lib' prefix
 
10646
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10647
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10648
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10649
        # It is most probably a Windows format PATH printed by
 
10650
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10651
        # path with ; separators, and with drive letters. We can handle the
 
10652
        # drive letters (cygwin fileutils understands them), so leave them,
 
10653
        # especially as we might pass files found there to a mingw objdump,
 
10654
        # which wouldn't understand a cygwinified path. Ahh.
 
10655
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10656
      else
 
10657
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10658
      fi
 
10659
      ;;
 
10660
    pw32*)
 
10661
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10662
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
10663
      ;;
 
10664
    esac
 
10665
    ;;
 
10666
 
 
10667
  *)
 
10668
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10669
    ;;
 
10670
  esac
 
10671
  dynamic_linker='Win32 ld.exe'
 
10672
  # FIXME: first we should search . and the directory the executable is in
 
10673
  shlibpath_var=PATH
 
10674
  ;;
 
10675
 
 
10676
darwin* | rhapsody*)
 
10677
  dynamic_linker="$host_os dyld"
 
10678
  version_type=darwin
 
10679
  need_lib_prefix=no
 
10680
  need_version=no
 
10681
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
10682
  soname_spec='${libname}${release}${major}$shared_ext'
 
10683
  shlibpath_overrides_runpath=yes
 
10684
  shlibpath_var=DYLD_LIBRARY_PATH
 
10685
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
10686
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
10687
  if test "$GCC" = yes; then
 
10688
    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"`
 
10689
  else
 
10690
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
10691
  fi
 
10692
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
10693
  ;;
 
10694
 
 
10695
dgux*)
 
10696
  version_type=linux
 
10697
  need_lib_prefix=no
 
10698
  need_version=no
 
10699
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
10700
  soname_spec='${libname}${release}${shared_ext}$major'
 
10701
  shlibpath_var=LD_LIBRARY_PATH
 
10702
  ;;
 
10703
 
 
10704
freebsd1*)
 
10705
  dynamic_linker=no
 
10706
  ;;
 
10707
 
 
10708
kfreebsd*-gnu)
 
10709
  version_type=linux
 
10710
  need_lib_prefix=no
 
10711
  need_version=no
 
10712
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10713
  soname_spec='${libname}${release}${shared_ext}$major'
 
10714
  shlibpath_var=LD_LIBRARY_PATH
 
10715
  shlibpath_overrides_runpath=no
 
10716
  hardcode_into_libs=yes
 
10717
  dynamic_linker='GNU ld.so'
 
10718
  ;;
 
10719
 
 
10720
freebsd*)
 
10721
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
10722
  version_type=freebsd-$objformat
 
10723
  case $version_type in
 
10724
    freebsd-elf*)
 
10725
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10726
      need_version=no
 
10727
      need_lib_prefix=no
 
10728
      ;;
 
10729
    freebsd-*)
 
10730
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
10731
      need_version=yes
 
10732
      ;;
 
10733
  esac
 
10734
  shlibpath_var=LD_LIBRARY_PATH
 
10735
  case $host_os in
 
10736
  freebsd2*)
 
10737
    shlibpath_overrides_runpath=yes
 
10738
    ;;
 
10739
  freebsd3.01* | freebsdelf3.01*)
 
10740
    shlibpath_overrides_runpath=yes
 
10741
    hardcode_into_libs=yes
 
10742
    ;;
 
10743
  *) # from 3.2 on
 
10744
    shlibpath_overrides_runpath=no
 
10745
    hardcode_into_libs=yes
 
10746
    ;;
 
10747
  esac
 
10748
  ;;
 
10749
 
 
10750
gnu*)
 
10751
  version_type=linux
 
10752
  need_lib_prefix=no
 
10753
  need_version=no
 
10754
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
10755
  soname_spec='${libname}${release}${shared_ext}$major'
 
10756
  shlibpath_var=LD_LIBRARY_PATH
 
10757
  hardcode_into_libs=yes
 
10758
  ;;
 
10759
 
 
10760
hpux9* | hpux10* | hpux11*)
 
10761
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
10762
  # link against other versions.
 
10763
  version_type=sunos
 
10764
  need_lib_prefix=no
 
10765
  need_version=no
 
10766
  case "$host_cpu" in
 
10767
  ia64*)
 
10768
    shrext='.so'
 
10769
    hardcode_into_libs=yes
 
10770
    dynamic_linker="$host_os dld.so"
 
10771
    shlibpath_var=LD_LIBRARY_PATH
 
10772
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10773
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10774
    soname_spec='${libname}${release}${shared_ext}$major'
 
10775
    if test "X$HPUX_IA64_MODE" = X32; then
 
10776
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
10777
    else
 
10778
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
10779
    fi
 
10780
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10781
    ;;
 
10782
   hppa*64*)
 
10783
     shrext='.sl'
 
10784
     hardcode_into_libs=yes
 
10785
     dynamic_linker="$host_os dld.sl"
 
10786
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
10787
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
10788
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10789
     soname_spec='${libname}${release}${shared_ext}$major'
 
10790
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
10791
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
10792
     ;;
 
10793
   *)
 
10794
    shrext='.sl'
 
10795
    dynamic_linker="$host_os dld.sl"
 
10796
    shlibpath_var=SHLIB_PATH
 
10797
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
10798
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10799
    soname_spec='${libname}${release}${shared_ext}$major'
 
10800
    ;;
 
10801
  esac
 
10802
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
10803
  postinstall_cmds='chmod 555 $lib'
 
10804
  ;;
 
10805
 
 
10806
irix5* | irix6* | nonstopux*)
 
10807
  case $host_os in
 
10808
    nonstopux*) version_type=nonstopux ;;
 
10809
    *)
 
10810
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
10811
                version_type=linux
 
10812
        else
 
10813
                version_type=irix
 
10814
        fi ;;
 
10815
  esac
 
10816
  need_lib_prefix=no
 
10817
  need_version=no
 
10818
  soname_spec='${libname}${release}${shared_ext}$major'
 
10819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
10820
  case $host_os in
 
10821
  irix5* | nonstopux*)
 
10822
    libsuff= shlibsuff=
 
10823
    ;;
 
10824
  *)
 
10825
    case $LD in # libtool.m4 will add one of these switches to LD
 
10826
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
10827
      libsuff= shlibsuff= libmagic=32-bit;;
 
10828
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
10829
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
10830
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
10831
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
10832
    *) libsuff= shlibsuff= libmagic=never-match;;
 
10833
    esac
 
10834
    ;;
 
10835
  esac
 
10836
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
10837
  shlibpath_overrides_runpath=no
 
10838
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
10839
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
10840
  hardcode_into_libs=yes
 
10841
  ;;
 
10842
 
 
10843
# No shared lib support for Linux oldld, aout, or coff.
 
10844
linux*oldld* | linux*aout* | linux*coff*)
 
10845
  dynamic_linker=no
 
10846
  ;;
 
10847
 
 
10848
# This must be Linux ELF.
 
10849
linux*)
 
10850
  version_type=linux
 
10851
  need_lib_prefix=no
 
10852
  need_version=no
 
10853
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10854
  soname_spec='${libname}${release}${shared_ext}$major'
 
10855
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
10856
  shlibpath_var=LD_LIBRARY_PATH
 
10857
  shlibpath_overrides_runpath=no
 
10858
  # This implies no fast_install, which is unacceptable.
 
10859
  # Some rework will be needed to allow for fast_install
 
10860
  # before this can be enabled.
 
10861
  hardcode_into_libs=yes
 
10862
 
 
10863
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
10864
  # powerpc, because MkLinux only supported shared libraries with the
 
10865
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
10866
  # most powerpc-linux boxes support dynamic linking these days and
 
10867
  # people can always --disable-shared, the test was removed, and we
 
10868
  # assume the GNU/Linux dynamic linker is in use.
 
10869
  dynamic_linker='GNU/Linux ld.so'
 
10870
  ;;
 
10871
 
 
10872
netbsd*)
 
10873
  version_type=sunos
 
10874
  need_lib_prefix=no
 
10875
  need_version=no
 
10876
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10877
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10878
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10879
    dynamic_linker='NetBSD (a.out) ld.so'
 
10880
  else
 
10881
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
10882
    soname_spec='${libname}${release}${shared_ext}$major'
 
10883
    dynamic_linker='NetBSD ld.elf_so'
 
10884
  fi
 
10885
  shlibpath_var=LD_LIBRARY_PATH
 
10886
  shlibpath_overrides_runpath=yes
 
10887
  hardcode_into_libs=yes
 
10888
  ;;
 
10889
 
 
10890
newsos6)
 
10891
  version_type=linux
 
10892
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10893
  shlibpath_var=LD_LIBRARY_PATH
 
10894
  shlibpath_overrides_runpath=yes
 
10895
  ;;
 
10896
 
 
10897
nto-qnx*)
 
10898
  version_type=linux
 
10899
  need_lib_prefix=no
 
10900
  need_version=no
 
10901
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10902
  soname_spec='${libname}${release}${shared_ext}$major'
 
10903
  shlibpath_var=LD_LIBRARY_PATH
 
10904
  shlibpath_overrides_runpath=yes
 
10905
  ;;
 
10906
 
 
10907
openbsd*)
 
10908
  version_type=sunos
 
10909
  need_lib_prefix=no
 
10910
  need_version=no
 
10911
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10912
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
10913
  shlibpath_var=LD_LIBRARY_PATH
 
10914
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10915
    case $host_os in
 
10916
      openbsd2.[89] | openbsd2.[89].*)
 
10917
        shlibpath_overrides_runpath=no
 
10918
        ;;
 
10919
      *)
 
10920
        shlibpath_overrides_runpath=yes
 
10921
        ;;
 
10922
      esac
 
10923
  else
 
10924
    shlibpath_overrides_runpath=yes
 
10925
  fi
 
10926
  ;;
 
10927
 
 
10928
os2*)
 
10929
  libname_spec='$name'
 
10930
  shrext=".dll"
 
10931
  need_lib_prefix=no
 
10932
  library_names_spec='$libname${shared_ext} $libname.a'
 
10933
  dynamic_linker='OS/2 ld.exe'
 
10934
  shlibpath_var=LIBPATH
 
10935
  ;;
 
10936
 
 
10937
osf3* | osf4* | osf5*)
 
10938
  version_type=osf
 
10939
  need_lib_prefix=no
 
10940
  need_version=no
 
10941
  soname_spec='${libname}${release}${shared_ext}$major'
 
10942
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10943
  shlibpath_var=LD_LIBRARY_PATH
 
10944
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
10945
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
10946
  ;;
 
10947
 
 
10948
sco3.2v5*)
 
10949
  version_type=osf
 
10950
  soname_spec='${libname}${release}${shared_ext}$major'
 
10951
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10952
  shlibpath_var=LD_LIBRARY_PATH
 
10953
  ;;
 
10954
 
 
10955
solaris*)
 
10956
  version_type=linux
 
10957
  need_lib_prefix=no
 
10958
  need_version=no
 
10959
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10960
  soname_spec='${libname}${release}${shared_ext}$major'
 
10961
  shlibpath_var=LD_LIBRARY_PATH
 
10962
  shlibpath_overrides_runpath=yes
 
10963
  hardcode_into_libs=yes
 
10964
  # ldd complains unless libraries are executable
 
10965
  postinstall_cmds='chmod +x $lib'
 
10966
  ;;
 
10967
 
 
10968
sunos4*)
 
10969
  version_type=sunos
 
10970
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10971
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10972
  shlibpath_var=LD_LIBRARY_PATH
 
10973
  shlibpath_overrides_runpath=yes
 
10974
  if test "$with_gnu_ld" = yes; then
 
10975
    need_lib_prefix=no
 
10976
  fi
 
10977
  need_version=yes
 
10978
  ;;
 
10979
 
 
10980
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10981
  version_type=linux
 
10982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10983
  soname_spec='${libname}${release}${shared_ext}$major'
 
10984
  shlibpath_var=LD_LIBRARY_PATH
 
10985
  case $host_vendor in
 
10986
    sni)
 
10987
      shlibpath_overrides_runpath=no
 
10988
      need_lib_prefix=no
 
10989
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10990
      runpath_var=LD_RUN_PATH
 
10991
      ;;
 
10992
    siemens)
 
10993
      need_lib_prefix=no
 
10994
      ;;
 
10995
    motorola)
 
10996
      need_lib_prefix=no
 
10997
      need_version=no
 
10998
      shlibpath_overrides_runpath=no
 
10999
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11000
      ;;
 
11001
  esac
 
11002
  ;;
 
11003
 
 
11004
sysv4*MP*)
 
11005
  if test -d /usr/nec ;then
 
11006
    version_type=linux
 
11007
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11008
    soname_spec='$libname${shared_ext}.$major'
 
11009
    shlibpath_var=LD_LIBRARY_PATH
 
11010
  fi
 
11011
  ;;
 
11012
 
 
11013
uts4*)
 
11014
  version_type=linux
 
11015
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11016
  soname_spec='${libname}${release}${shared_ext}$major'
 
11017
  shlibpath_var=LD_LIBRARY_PATH
 
11018
  ;;
 
11019
 
 
11020
*)
 
11021
  dynamic_linker=no
 
11022
  ;;
 
11023
esac
 
11024
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11025
echo "${ECHO_T}$dynamic_linker" >&6
 
11026
test "$dynamic_linker" = no && can_build_shared=no
 
11027
 
 
11028
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11029
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
11030
hardcode_action_CXX=
 
11031
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
11032
   test -n "$runpath_var CXX" || \
 
11033
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
11034
 
 
11035
  # We can hardcode non-existant directories.
 
11036
  if test "$hardcode_direct_CXX" != no &&
 
11037
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11038
     # have to relink, otherwise we might link with an installed library
 
11039
     # when we should be linking with a yet-to-be-installed one
 
11040
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
11041
     test "$hardcode_minus_L_CXX" != no; then
 
11042
    # Linking always hardcodes the temporary library directory.
 
11043
    hardcode_action_CXX=relink
 
11044
  else
 
11045
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11046
    hardcode_action_CXX=immediate
 
11047
  fi
 
11048
else
 
11049
  # We cannot hardcode anything, or else we can only hardcode existing
 
11050
  # directories.
 
11051
  hardcode_action_CXX=unsupported
 
11052
fi
 
11053
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11054
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
11055
 
 
11056
if test "$hardcode_action_CXX" = relink; then
 
11057
  # Fast installation is not supported
 
11058
  enable_fast_install=no
 
11059
elif test "$shlibpath_overrides_runpath" = yes ||
 
11060
     test "$enable_shared" = no; then
 
11061
  # Fast installation is not necessary
 
11062
  enable_fast_install=needless
 
11063
fi
 
11064
 
 
11065
striplib=
 
11066
old_striplib=
 
11067
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11068
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11069
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11070
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11071
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11072
  echo "$as_me:$LINENO: result: yes" >&5
 
11073
echo "${ECHO_T}yes" >&6
 
11074
else
 
11075
# FIXME - insert some real tests, host_os isn't really good enough
 
11076
  case $host_os in
 
11077
   darwin*)
 
11078
       if test -n "$STRIP" ; then
 
11079
         striplib="$STRIP -x"
 
11080
         echo "$as_me:$LINENO: result: yes" >&5
 
11081
echo "${ECHO_T}yes" >&6
 
11082
       else
 
11083
  echo "$as_me:$LINENO: result: no" >&5
 
11084
echo "${ECHO_T}no" >&6
 
11085
fi
 
11086
       ;;
 
11087
   *)
 
11088
  echo "$as_me:$LINENO: result: no" >&5
 
11089
echo "${ECHO_T}no" >&6
 
11090
    ;;
 
11091
  esac
 
11092
fi
 
11093
 
 
11094
if test "x$enable_dlopen" != xyes; then
 
11095
  enable_dlopen=unknown
 
11096
  enable_dlopen_self=unknown
 
11097
  enable_dlopen_self_static=unknown
 
11098
else
 
11099
  lt_cv_dlopen=no
 
11100
  lt_cv_dlopen_libs=
 
11101
 
 
11102
  case $host_os in
 
11103
  beos*)
 
11104
    lt_cv_dlopen="load_add_on"
 
11105
    lt_cv_dlopen_libs=
 
11106
    lt_cv_dlopen_self=yes
 
11107
    ;;
 
11108
 
 
11109
  mingw* | pw32*)
 
11110
    lt_cv_dlopen="LoadLibrary"
 
11111
    lt_cv_dlopen_libs=
 
11112
   ;;
 
11113
 
 
11114
  cygwin*)
 
11115
    lt_cv_dlopen="dlopen"
 
11116
    lt_cv_dlopen_libs=
 
11117
   ;;
 
11118
 
 
11119
  darwin*)
 
11120
  # if libdl is installed we need to link against it
 
11121
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11122
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11123
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11124
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11125
else
 
11126
  ac_check_lib_save_LIBS=$LIBS
 
11127
LIBS="-ldl  $LIBS"
 
11128
cat >conftest.$ac_ext <<_ACEOF
 
11129
#line $LINENO "configure"
 
11130
/* confdefs.h.  */
 
11131
_ACEOF
 
11132
cat confdefs.h >>conftest.$ac_ext
 
11133
cat >>conftest.$ac_ext <<_ACEOF
 
11134
/* end confdefs.h.  */
 
11135
 
 
11136
/* Override any gcc2 internal prototype to avoid an error.  */
 
11137
#ifdef __cplusplus
 
11138
extern "C"
 
11139
#endif
 
11140
/* We use char because int might match the return type of a gcc2
 
11141
   builtin and then its argument prototype would still apply.  */
 
11142
char dlopen ();
 
11143
int
 
11144
main ()
 
11145
{
 
11146
dlopen ();
 
11147
  ;
 
11148
  return 0;
 
11149
}
 
11150
_ACEOF
 
11151
rm -f conftest.$ac_objext conftest$ac_exeext
 
11152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11153
  (eval $ac_link) 2>&5
 
11154
  ac_status=$?
 
11155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11156
  (exit $ac_status); } &&
 
11157
         { ac_try='test -s conftest$ac_exeext'
 
11158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11159
  (eval $ac_try) 2>&5
 
11160
  ac_status=$?
 
11161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11162
  (exit $ac_status); }; }; then
 
11163
  ac_cv_lib_dl_dlopen=yes
 
11164
else
 
11165
  echo "$as_me: failed program was:" >&5
 
11166
sed 's/^/| /' conftest.$ac_ext >&5
 
11167
 
 
11168
ac_cv_lib_dl_dlopen=no
 
11169
fi
 
11170
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11171
LIBS=$ac_check_lib_save_LIBS
 
11172
fi
 
11173
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11174
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11175
if test $ac_cv_lib_dl_dlopen = yes; then
 
11176
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11177
else
 
11178
 
 
11179
    lt_cv_dlopen="dyld"
 
11180
    lt_cv_dlopen_libs=
 
11181
    lt_cv_dlopen_self=yes
 
11182
 
 
11183
fi
 
11184
 
 
11185
   ;;
 
11186
 
 
11187
  *)
 
11188
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11189
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11190
if test "${ac_cv_func_shl_load+set}" = set; then
 
11191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11192
else
 
11193
  cat >conftest.$ac_ext <<_ACEOF
 
11194
#line $LINENO "configure"
 
11195
/* confdefs.h.  */
 
11196
_ACEOF
 
11197
cat confdefs.h >>conftest.$ac_ext
 
11198
cat >>conftest.$ac_ext <<_ACEOF
 
11199
/* end confdefs.h.  */
 
11200
/* System header to define __stub macros and hopefully few prototypes,
 
11201
    which can conflict with char shl_load (); below.
 
11202
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11203
    <limits.h> exists even on freestanding compilers.  */
 
11204
#ifdef __STDC__
 
11205
# include <limits.h>
 
11206
#else
 
11207
# include <assert.h>
 
11208
#endif
 
11209
/* Override any gcc2 internal prototype to avoid an error.  */
 
11210
#ifdef __cplusplus
 
11211
extern "C"
 
11212
{
 
11213
#endif
 
11214
/* We use char because int might match the return type of a gcc2
 
11215
   builtin and then its argument prototype would still apply.  */
 
11216
char shl_load ();
 
11217
/* The GNU C library defines this for functions which it implements
 
11218
    to always fail with ENOSYS.  Some functions are actually named
 
11219
    something starting with __ and the normal name is an alias.  */
 
11220
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11221
choke me
 
11222
#else
 
11223
char (*f) () = shl_load;
 
11224
#endif
 
11225
#ifdef __cplusplus
 
11226
}
 
11227
#endif
 
11228
 
 
11229
int
 
11230
main ()
 
11231
{
 
11232
return f != shl_load;
 
11233
  ;
 
11234
  return 0;
 
11235
}
 
11236
_ACEOF
 
11237
rm -f conftest.$ac_objext conftest$ac_exeext
 
11238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11239
  (eval $ac_link) 2>&5
 
11240
  ac_status=$?
 
11241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11242
  (exit $ac_status); } &&
 
11243
         { ac_try='test -s conftest$ac_exeext'
 
11244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11245
  (eval $ac_try) 2>&5
 
11246
  ac_status=$?
 
11247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11248
  (exit $ac_status); }; }; then
 
11249
  ac_cv_func_shl_load=yes
 
11250
else
 
11251
  echo "$as_me: failed program was:" >&5
 
11252
sed 's/^/| /' conftest.$ac_ext >&5
 
11253
 
 
11254
ac_cv_func_shl_load=no
 
11255
fi
 
11256
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11257
fi
 
11258
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11259
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
11260
if test $ac_cv_func_shl_load = yes; then
 
11261
  lt_cv_dlopen="shl_load"
 
11262
else
 
11263
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11264
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
11265
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11267
else
 
11268
  ac_check_lib_save_LIBS=$LIBS
 
11269
LIBS="-ldld  $LIBS"
 
11270
cat >conftest.$ac_ext <<_ACEOF
 
11271
#line $LINENO "configure"
 
11272
/* confdefs.h.  */
 
11273
_ACEOF
 
11274
cat confdefs.h >>conftest.$ac_ext
 
11275
cat >>conftest.$ac_ext <<_ACEOF
 
11276
/* end confdefs.h.  */
 
11277
 
 
11278
/* Override any gcc2 internal prototype to avoid an error.  */
 
11279
#ifdef __cplusplus
 
11280
extern "C"
 
11281
#endif
 
11282
/* We use char because int might match the return type of a gcc2
 
11283
   builtin and then its argument prototype would still apply.  */
 
11284
char shl_load ();
 
11285
int
 
11286
main ()
 
11287
{
 
11288
shl_load ();
 
11289
  ;
 
11290
  return 0;
 
11291
}
 
11292
_ACEOF
 
11293
rm -f conftest.$ac_objext conftest$ac_exeext
 
11294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11295
  (eval $ac_link) 2>&5
 
11296
  ac_status=$?
 
11297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11298
  (exit $ac_status); } &&
 
11299
         { ac_try='test -s conftest$ac_exeext'
 
11300
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11301
  (eval $ac_try) 2>&5
 
11302
  ac_status=$?
 
11303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11304
  (exit $ac_status); }; }; then
 
11305
  ac_cv_lib_dld_shl_load=yes
 
11306
else
 
11307
  echo "$as_me: failed program was:" >&5
 
11308
sed 's/^/| /' conftest.$ac_ext >&5
 
11309
 
 
11310
ac_cv_lib_dld_shl_load=no
 
11311
fi
 
11312
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11313
LIBS=$ac_check_lib_save_LIBS
 
11314
fi
 
11315
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11316
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11317
if test $ac_cv_lib_dld_shl_load = yes; then
 
11318
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11319
else
 
11320
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11321
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11322
if test "${ac_cv_func_dlopen+set}" = set; then
 
11323
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11324
else
 
11325
  cat >conftest.$ac_ext <<_ACEOF
 
11326
#line $LINENO "configure"
 
11327
/* confdefs.h.  */
 
11328
_ACEOF
 
11329
cat confdefs.h >>conftest.$ac_ext
 
11330
cat >>conftest.$ac_ext <<_ACEOF
 
11331
/* end confdefs.h.  */
 
11332
/* System header to define __stub macros and hopefully few prototypes,
 
11333
    which can conflict with char dlopen (); below.
 
11334
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11335
    <limits.h> exists even on freestanding compilers.  */
 
11336
#ifdef __STDC__
 
11337
# include <limits.h>
 
11338
#else
 
11339
# include <assert.h>
 
11340
#endif
 
11341
/* Override any gcc2 internal prototype to avoid an error.  */
 
11342
#ifdef __cplusplus
 
11343
extern "C"
 
11344
{
 
11345
#endif
 
11346
/* We use char because int might match the return type of a gcc2
 
11347
   builtin and then its argument prototype would still apply.  */
 
11348
char dlopen ();
 
11349
/* The GNU C library defines this for functions which it implements
 
11350
    to always fail with ENOSYS.  Some functions are actually named
 
11351
    something starting with __ and the normal name is an alias.  */
 
11352
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11353
choke me
 
11354
#else
 
11355
char (*f) () = dlopen;
 
11356
#endif
 
11357
#ifdef __cplusplus
 
11358
}
 
11359
#endif
 
11360
 
 
11361
int
 
11362
main ()
 
11363
{
 
11364
return f != dlopen;
 
11365
  ;
 
11366
  return 0;
 
11367
}
 
11368
_ACEOF
 
11369
rm -f conftest.$ac_objext conftest$ac_exeext
 
11370
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11371
  (eval $ac_link) 2>&5
 
11372
  ac_status=$?
 
11373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11374
  (exit $ac_status); } &&
 
11375
         { ac_try='test -s conftest$ac_exeext'
 
11376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11377
  (eval $ac_try) 2>&5
 
11378
  ac_status=$?
 
11379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11380
  (exit $ac_status); }; }; then
 
11381
  ac_cv_func_dlopen=yes
 
11382
else
 
11383
  echo "$as_me: failed program was:" >&5
 
11384
sed 's/^/| /' conftest.$ac_ext >&5
 
11385
 
 
11386
ac_cv_func_dlopen=no
 
11387
fi
 
11388
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11389
fi
 
11390
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
11391
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
11392
if test $ac_cv_func_dlopen = yes; then
 
11393
  lt_cv_dlopen="dlopen"
 
11394
else
 
11395
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11396
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11397
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11399
else
 
11400
  ac_check_lib_save_LIBS=$LIBS
 
11401
LIBS="-ldl  $LIBS"
 
11402
cat >conftest.$ac_ext <<_ACEOF
 
11403
#line $LINENO "configure"
 
11404
/* confdefs.h.  */
 
11405
_ACEOF
 
11406
cat confdefs.h >>conftest.$ac_ext
 
11407
cat >>conftest.$ac_ext <<_ACEOF
 
11408
/* end confdefs.h.  */
 
11409
 
 
11410
/* Override any gcc2 internal prototype to avoid an error.  */
 
11411
#ifdef __cplusplus
 
11412
extern "C"
 
11413
#endif
 
11414
/* We use char because int might match the return type of a gcc2
 
11415
   builtin and then its argument prototype would still apply.  */
 
11416
char dlopen ();
 
11417
int
 
11418
main ()
 
11419
{
 
11420
dlopen ();
 
11421
  ;
 
11422
  return 0;
 
11423
}
 
11424
_ACEOF
 
11425
rm -f conftest.$ac_objext conftest$ac_exeext
 
11426
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11427
  (eval $ac_link) 2>&5
 
11428
  ac_status=$?
 
11429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11430
  (exit $ac_status); } &&
 
11431
         { ac_try='test -s conftest$ac_exeext'
 
11432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11433
  (eval $ac_try) 2>&5
 
11434
  ac_status=$?
 
11435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11436
  (exit $ac_status); }; }; then
 
11437
  ac_cv_lib_dl_dlopen=yes
 
11438
else
 
11439
  echo "$as_me: failed program was:" >&5
 
11440
sed 's/^/| /' conftest.$ac_ext >&5
 
11441
 
 
11442
ac_cv_lib_dl_dlopen=no
 
11443
fi
 
11444
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11445
LIBS=$ac_check_lib_save_LIBS
 
11446
fi
 
11447
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11448
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11449
if test $ac_cv_lib_dl_dlopen = yes; then
 
11450
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11451
else
 
11452
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11453
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
11454
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11456
else
 
11457
  ac_check_lib_save_LIBS=$LIBS
 
11458
LIBS="-lsvld  $LIBS"
 
11459
cat >conftest.$ac_ext <<_ACEOF
 
11460
#line $LINENO "configure"
 
11461
/* confdefs.h.  */
 
11462
_ACEOF
 
11463
cat confdefs.h >>conftest.$ac_ext
 
11464
cat >>conftest.$ac_ext <<_ACEOF
 
11465
/* end confdefs.h.  */
 
11466
 
 
11467
/* Override any gcc2 internal prototype to avoid an error.  */
 
11468
#ifdef __cplusplus
 
11469
extern "C"
 
11470
#endif
 
11471
/* We use char because int might match the return type of a gcc2
 
11472
   builtin and then its argument prototype would still apply.  */
 
11473
char dlopen ();
 
11474
int
 
11475
main ()
 
11476
{
 
11477
dlopen ();
 
11478
  ;
 
11479
  return 0;
 
11480
}
 
11481
_ACEOF
 
11482
rm -f conftest.$ac_objext conftest$ac_exeext
 
11483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11484
  (eval $ac_link) 2>&5
 
11485
  ac_status=$?
 
11486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11487
  (exit $ac_status); } &&
 
11488
         { ac_try='test -s conftest$ac_exeext'
 
11489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11490
  (eval $ac_try) 2>&5
 
11491
  ac_status=$?
 
11492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11493
  (exit $ac_status); }; }; then
 
11494
  ac_cv_lib_svld_dlopen=yes
 
11495
else
 
11496
  echo "$as_me: failed program was:" >&5
 
11497
sed 's/^/| /' conftest.$ac_ext >&5
 
11498
 
 
11499
ac_cv_lib_svld_dlopen=no
 
11500
fi
 
11501
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11502
LIBS=$ac_check_lib_save_LIBS
 
11503
fi
 
11504
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11505
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
11506
if test $ac_cv_lib_svld_dlopen = yes; then
 
11507
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11508
else
 
11509
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11510
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
11511
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11512
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11513
else
 
11514
  ac_check_lib_save_LIBS=$LIBS
 
11515
LIBS="-ldld  $LIBS"
 
11516
cat >conftest.$ac_ext <<_ACEOF
 
11517
#line $LINENO "configure"
 
11518
/* confdefs.h.  */
 
11519
_ACEOF
 
11520
cat confdefs.h >>conftest.$ac_ext
 
11521
cat >>conftest.$ac_ext <<_ACEOF
 
11522
/* end confdefs.h.  */
 
11523
 
 
11524
/* Override any gcc2 internal prototype to avoid an error.  */
 
11525
#ifdef __cplusplus
 
11526
extern "C"
 
11527
#endif
 
11528
/* We use char because int might match the return type of a gcc2
 
11529
   builtin and then its argument prototype would still apply.  */
 
11530
char dld_link ();
 
11531
int
 
11532
main ()
 
11533
{
 
11534
dld_link ();
 
11535
  ;
 
11536
  return 0;
 
11537
}
 
11538
_ACEOF
 
11539
rm -f conftest.$ac_objext conftest$ac_exeext
 
11540
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11541
  (eval $ac_link) 2>&5
 
11542
  ac_status=$?
 
11543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11544
  (exit $ac_status); } &&
 
11545
         { ac_try='test -s conftest$ac_exeext'
 
11546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11547
  (eval $ac_try) 2>&5
 
11548
  ac_status=$?
 
11549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11550
  (exit $ac_status); }; }; then
 
11551
  ac_cv_lib_dld_dld_link=yes
 
11552
else
 
11553
  echo "$as_me: failed program was:" >&5
 
11554
sed 's/^/| /' conftest.$ac_ext >&5
 
11555
 
 
11556
ac_cv_lib_dld_dld_link=no
 
11557
fi
 
11558
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11559
LIBS=$ac_check_lib_save_LIBS
 
11560
fi
 
11561
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11562
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
11563
if test $ac_cv_lib_dld_dld_link = yes; then
 
11564
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11565
fi
 
11566
 
 
11567
 
 
11568
fi
 
11569
 
 
11570
 
 
11571
fi
 
11572
 
 
11573
 
 
11574
fi
 
11575
 
 
11576
 
 
11577
fi
 
11578
 
 
11579
 
 
11580
fi
 
11581
 
 
11582
    ;;
 
11583
  esac
 
11584
 
 
11585
  if test "x$lt_cv_dlopen" != xno; then
 
11586
    enable_dlopen=yes
 
11587
  else
 
11588
    enable_dlopen=no
 
11589
  fi
 
11590
 
 
11591
  case $lt_cv_dlopen in
 
11592
  dlopen)
 
11593
    save_CPPFLAGS="$CPPFLAGS"
 
11594
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11595
 
 
11596
    save_LDFLAGS="$LDFLAGS"
 
11597
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11598
 
 
11599
    save_LIBS="$LIBS"
 
11600
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11601
 
 
11602
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11603
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
11604
if test "${lt_cv_dlopen_self+set}" = set; then
 
11605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11606
else
 
11607
          if test "$cross_compiling" = yes; then :
 
11608
  lt_cv_dlopen_self=cross
 
11609
else
 
11610
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11611
  lt_status=$lt_dlunknown
 
11612
  cat > conftest.$ac_ext <<EOF
 
11613
#line 11613 "configure"
 
11614
#include "confdefs.h"
 
11615
 
 
11616
#if HAVE_DLFCN_H
 
11617
#include <dlfcn.h>
 
11618
#endif
 
11619
 
 
11620
#include <stdio.h>
 
11621
 
 
11622
#ifdef RTLD_GLOBAL
 
11623
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11624
#else
 
11625
#  ifdef DL_GLOBAL
 
11626
#    define LT_DLGLOBAL         DL_GLOBAL
 
11627
#  else
 
11628
#    define LT_DLGLOBAL         0
 
11629
#  endif
 
11630
#endif
 
11631
 
 
11632
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11633
   find out it does not work in some platform. */
 
11634
#ifndef LT_DLLAZY_OR_NOW
 
11635
#  ifdef RTLD_LAZY
 
11636
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11637
#  else
 
11638
#    ifdef DL_LAZY
 
11639
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11640
#    else
 
11641
#      ifdef RTLD_NOW
 
11642
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11643
#      else
 
11644
#        ifdef DL_NOW
 
11645
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11646
#        else
 
11647
#          define LT_DLLAZY_OR_NOW      0
 
11648
#        endif
 
11649
#      endif
 
11650
#    endif
 
11651
#  endif
 
11652
#endif
 
11653
 
 
11654
#ifdef __cplusplus
 
11655
extern "C" void exit (int);
 
11656
#endif
 
11657
 
 
11658
void fnord() { int i=42;}
 
11659
int main ()
 
11660
{
 
11661
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11662
  int status = $lt_dlunknown;
 
11663
 
 
11664
  if (self)
 
11665
    {
 
11666
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11667
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11668
      /* dlclose (self); */
 
11669
    }
 
11670
 
 
11671
    exit (status);
 
11672
}
 
11673
EOF
 
11674
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11675
  (eval $ac_link) 2>&5
 
11676
  ac_status=$?
 
11677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11678
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11679
    (./conftest; exit; ) 2>/dev/null
 
11680
    lt_status=$?
 
11681
    case x$lt_status in
 
11682
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11683
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11684
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
11685
    esac
 
11686
  else :
 
11687
    # compilation failed
 
11688
    lt_cv_dlopen_self=no
 
11689
  fi
 
11690
fi
 
11691
rm -fr conftest*
 
11692
 
 
11693
 
 
11694
fi
 
11695
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
11696
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
11697
 
 
11698
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11699
      LDFLAGS="$LDFLAGS $link_static_flag"
 
11700
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
11701
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
11702
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
11703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11704
else
 
11705
          if test "$cross_compiling" = yes; then :
 
11706
  lt_cv_dlopen_self_static=cross
 
11707
else
 
11708
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11709
  lt_status=$lt_dlunknown
 
11710
  cat > conftest.$ac_ext <<EOF
 
11711
#line 11711 "configure"
 
11712
#include "confdefs.h"
 
11713
 
 
11714
#if HAVE_DLFCN_H
 
11715
#include <dlfcn.h>
 
11716
#endif
 
11717
 
 
11718
#include <stdio.h>
 
11719
 
 
11720
#ifdef RTLD_GLOBAL
 
11721
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11722
#else
 
11723
#  ifdef DL_GLOBAL
 
11724
#    define LT_DLGLOBAL         DL_GLOBAL
 
11725
#  else
 
11726
#    define LT_DLGLOBAL         0
 
11727
#  endif
 
11728
#endif
 
11729
 
 
11730
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11731
   find out it does not work in some platform. */
 
11732
#ifndef LT_DLLAZY_OR_NOW
 
11733
#  ifdef RTLD_LAZY
 
11734
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11735
#  else
 
11736
#    ifdef DL_LAZY
 
11737
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11738
#    else
 
11739
#      ifdef RTLD_NOW
 
11740
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11741
#      else
 
11742
#        ifdef DL_NOW
 
11743
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11744
#        else
 
11745
#          define LT_DLLAZY_OR_NOW      0
 
11746
#        endif
 
11747
#      endif
 
11748
#    endif
 
11749
#  endif
 
11750
#endif
 
11751
 
 
11752
#ifdef __cplusplus
 
11753
extern "C" void exit (int);
 
11754
#endif
 
11755
 
 
11756
void fnord() { int i=42;}
 
11757
int main ()
 
11758
{
 
11759
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11760
  int status = $lt_dlunknown;
 
11761
 
 
11762
  if (self)
 
11763
    {
 
11764
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11765
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11766
      /* dlclose (self); */
 
11767
    }
 
11768
 
 
11769
    exit (status);
 
11770
}
 
11771
EOF
 
11772
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11773
  (eval $ac_link) 2>&5
 
11774
  ac_status=$?
 
11775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11776
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11777
    (./conftest; exit; ) 2>/dev/null
 
11778
    lt_status=$?
 
11779
    case x$lt_status in
 
11780
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
11781
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
11782
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
11783
    esac
 
11784
  else :
 
11785
    # compilation failed
 
11786
    lt_cv_dlopen_self_static=no
 
11787
  fi
 
11788
fi
 
11789
rm -fr conftest*
 
11790
 
 
11791
 
 
11792
fi
 
11793
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
11794
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
11795
    fi
 
11796
 
 
11797
    CPPFLAGS="$save_CPPFLAGS"
 
11798
    LDFLAGS="$save_LDFLAGS"
 
11799
    LIBS="$save_LIBS"
 
11800
    ;;
 
11801
  esac
 
11802
 
 
11803
  case $lt_cv_dlopen_self in
 
11804
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
11805
  *) enable_dlopen_self=unknown ;;
 
11806
  esac
 
11807
 
 
11808
  case $lt_cv_dlopen_self_static in
 
11809
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
11810
  *) enable_dlopen_self_static=unknown ;;
 
11811
  esac
 
11812
fi
 
11813
 
 
11814
 
 
11815
# The else clause should only fire when bootstrapping the
 
11816
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
11817
# with your package, and you will get complaints that there are
 
11818
# no rules to generate ltmain.sh.
 
11819
if test -f "$ltmain"; then
 
11820
  # See if we are running on zsh, and set the options which allow our commands through
 
11821
  # without removal of \ escapes.
 
11822
  if test -n "${ZSH_VERSION+set}" ; then
 
11823
    setopt NO_GLOB_SUBST
 
11824
  fi
 
11825
  # Now quote all the things that may contain metacharacters while being
 
11826
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
11827
  # variables and quote the copies for generation of the libtool script.
 
11828
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
11829
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
11830
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
11831
    deplibs_check_method reload_flag reload_cmds need_locks \
 
11832
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
11833
    lt_cv_sys_global_symbol_to_c_name_address \
 
11834
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
11835
    old_postinstall_cmds old_postuninstall_cmds \
 
11836
    compiler_CXX \
 
11837
    CC_CXX \
 
11838
    LD_CXX \
 
11839
    lt_prog_compiler_wl_CXX \
 
11840
    lt_prog_compiler_pic_CXX \
 
11841
    lt_prog_compiler_static_CXX \
 
11842
    lt_prog_compiler_no_builtin_flag_CXX \
 
11843
    export_dynamic_flag_spec_CXX \
 
11844
    thread_safe_flag_spec_CXX \
 
11845
    whole_archive_flag_spec_CXX \
 
11846
    enable_shared_with_static_runtimes_CXX \
 
11847
    old_archive_cmds_CXX \
 
11848
    old_archive_from_new_cmds_CXX \
 
11849
    predep_objects_CXX \
 
11850
    postdep_objects_CXX \
 
11851
    predeps_CXX \
 
11852
    postdeps_CXX \
 
11853
    compiler_lib_search_path_CXX \
 
11854
    archive_cmds_CXX \
 
11855
    archive_expsym_cmds_CXX \
 
11856
    postinstall_cmds_CXX \
 
11857
    postuninstall_cmds_CXX \
 
11858
    old_archive_from_expsyms_cmds_CXX \
 
11859
    allow_undefined_flag_CXX \
 
11860
    no_undefined_flag_CXX \
 
11861
    export_symbols_cmds_CXX \
 
11862
    hardcode_libdir_flag_spec_CXX \
 
11863
    hardcode_libdir_flag_spec_ld_CXX \
 
11864
    hardcode_libdir_separator_CXX \
 
11865
    hardcode_automatic_CXX \
 
11866
    module_cmds_CXX \
 
11867
    module_expsym_cmds_CXX \
 
11868
    lt_cv_prog_compiler_c_o_CXX \
 
11869
    exclude_expsyms_CXX \
 
11870
    include_expsyms_CXX; do
 
11871
 
 
11872
    case $var in
 
11873
    old_archive_cmds_CXX | \
 
11874
    old_archive_from_new_cmds_CXX | \
 
11875
    archive_cmds_CXX | \
 
11876
    archive_expsym_cmds_CXX | \
 
11877
    module_cmds_CXX | \
 
11878
    module_expsym_cmds_CXX | \
 
11879
    old_archive_from_expsyms_cmds_CXX | \
 
11880
    export_symbols_cmds_CXX | \
 
11881
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11882
    postinstall_cmds | postuninstall_cmds | \
 
11883
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11884
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11885
      # Double-quote double-evaled strings.
 
11886
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11887
      ;;
 
11888
    *)
 
11889
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11890
      ;;
 
11891
    esac
 
11892
  done
 
11893
 
 
11894
  case $lt_echo in
 
11895
  *'\$0 --fallback-echo"')
 
11896
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11897
    ;;
 
11898
  esac
 
11899
 
 
11900
cfgfile="$ofile"
 
11901
 
 
11902
  cat <<__EOF__ >> "$cfgfile"
 
11903
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
11904
 
 
11905
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11906
 
 
11907
# Shell to use when invoking shell scripts.
 
11908
SHELL=$lt_SHELL
 
11909
 
 
11910
# Whether or not to build shared libraries.
 
11911
build_libtool_libs=$enable_shared
 
11912
 
 
11913
# Whether or not to build static libraries.
 
11914
build_old_libs=$enable_static
 
11915
 
 
11916
# Whether or not to add -lc for building shared libraries.
 
11917
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
11918
 
 
11919
# Whether or not to disallow shared libs when runtime libs are static
 
11920
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
11921
 
 
11922
# Whether or not to optimize for fast installation.
 
11923
fast_install=$enable_fast_install
 
11924
 
 
11925
# The host system.
 
11926
host_alias=$host_alias
 
11927
host=$host
 
11928
 
 
11929
# An echo program that does not interpret backslashes.
 
11930
echo=$lt_echo
 
11931
 
 
11932
# The archiver.
 
11933
AR=$lt_AR
 
11934
AR_FLAGS=$lt_AR_FLAGS
 
11935
 
 
11936
# A C compiler.
 
11937
LTCC=$lt_LTCC
 
11938
 
 
11939
# A language-specific compiler.
 
11940
CC=$lt_compiler_CXX
 
11941
 
 
11942
# Is the compiler the GNU C compiler?
 
11943
with_gcc=$GCC_CXX
 
11944
 
 
11945
# An ERE matcher.
 
11946
EGREP=$lt_EGREP
 
11947
 
 
11948
# The linker used to build libraries.
 
11949
LD=$lt_LD_CXX
 
11950
 
 
11951
# Whether we need hard or soft links.
 
11952
LN_S=$lt_LN_S
 
11953
 
 
11954
# A BSD-compatible nm program.
 
11955
NM=$lt_NM
 
11956
 
 
11957
# A symbol stripping program
 
11958
STRIP="$STRIP"
 
11959
 
 
11960
# Used to examine libraries when file_magic_cmd begins "file"
 
11961
MAGIC_CMD=$MAGIC_CMD
 
11962
 
 
11963
# Used on cygwin: DLL creation program.
 
11964
DLLTOOL="$DLLTOOL"
 
11965
 
 
11966
# Used on cygwin: object dumper.
 
11967
OBJDUMP="$OBJDUMP"
 
11968
 
 
11969
# Used on cygwin: assembler.
 
11970
AS="$AS"
 
11971
 
 
11972
# The name of the directory that contains temporary libtool files.
 
11973
objdir=$objdir
 
11974
 
 
11975
# How to create reloadable object files.
 
11976
reload_flag=$lt_reload_flag
 
11977
reload_cmds=$lt_reload_cmds
 
11978
 
 
11979
# How to pass a linker flag through the compiler.
 
11980
wl=$lt_lt_prog_compiler_wl_CXX
 
11981
 
 
11982
# Object file suffix (normally "o").
 
11983
objext="$ac_objext"
 
11984
 
 
11985
# Old archive suffix (normally "a").
 
11986
libext="$libext"
 
11987
 
 
11988
# Shared library suffix (normally ".so").
 
11989
shrext='$shrext'
 
11990
 
 
11991
# Executable file suffix (normally "").
 
11992
exeext="$exeext"
 
11993
 
 
11994
# Additional compiler flags for building library objects.
 
11995
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
11996
pic_mode=$pic_mode
 
11997
 
 
11998
# What is the maximum length of a command?
 
11999
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12000
 
 
12001
# Does compiler simultaneously support -c and -o options?
 
12002
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12003
 
 
12004
# Must we lock files when doing compilation ?
 
12005
need_locks=$lt_need_locks
 
12006
 
 
12007
# Do we need the lib prefix for modules?
 
12008
need_lib_prefix=$need_lib_prefix
 
12009
 
 
12010
# Do we need a version for libraries?
 
12011
need_version=$need_version
 
12012
 
 
12013
# Whether dlopen is supported.
 
12014
dlopen_support=$enable_dlopen
 
12015
 
 
12016
# Whether dlopen of programs is supported.
 
12017
dlopen_self=$enable_dlopen_self
 
12018
 
 
12019
# Whether dlopen of statically linked programs is supported.
 
12020
dlopen_self_static=$enable_dlopen_self_static
 
12021
 
 
12022
# Compiler flag to prevent dynamic linking.
 
12023
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12024
 
 
12025
# Compiler flag to turn off builtin functions.
 
12026
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12027
 
 
12028
# Compiler flag to allow reflexive dlopens.
 
12029
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12030
 
 
12031
# Compiler flag to generate shared objects directly from archives.
 
12032
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12033
 
 
12034
# Compiler flag to generate thread-safe objects.
 
12035
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12036
 
 
12037
# Library versioning type.
 
12038
version_type=$version_type
 
12039
 
 
12040
# Format of library name prefix.
 
12041
libname_spec=$lt_libname_spec
 
12042
 
 
12043
# List of archive names.  First name is the real one, the rest are links.
 
12044
# The last name is the one that the linker finds with -lNAME.
 
12045
library_names_spec=$lt_library_names_spec
 
12046
 
 
12047
# The coded name of the library, if different from the real name.
 
12048
soname_spec=$lt_soname_spec
 
12049
 
 
12050
# Commands used to build and install an old-style archive.
 
12051
RANLIB=$lt_RANLIB
 
12052
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12053
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12054
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12055
 
 
12056
# Create an old-style archive from a shared archive.
 
12057
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12058
 
 
12059
# Create a temporary old-style archive to link instead of a shared archive.
 
12060
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12061
 
 
12062
# Commands used to build and install a shared archive.
 
12063
archive_cmds=$lt_archive_cmds_CXX
 
12064
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12065
postinstall_cmds=$lt_postinstall_cmds
 
12066
postuninstall_cmds=$lt_postuninstall_cmds
 
12067
 
 
12068
# Commands used to build a loadable module (assumed same as above if empty)
 
12069
module_cmds=$lt_module_cmds_CXX
 
12070
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12071
 
 
12072
# Commands to strip libraries.
 
12073
old_striplib=$lt_old_striplib
 
12074
striplib=$lt_striplib
 
12075
 
 
12076
# Dependencies to place before the objects being linked to create a
 
12077
# shared library.
 
12078
predep_objects=$lt_predep_objects_CXX
 
12079
 
 
12080
# Dependencies to place after the objects being linked to create a
 
12081
# shared library.
 
12082
postdep_objects=$lt_postdep_objects_CXX
 
12083
 
 
12084
# Dependencies to place before the objects being linked to create a
 
12085
# shared library.
 
12086
predeps=$lt_predeps_CXX
 
12087
 
 
12088
# Dependencies to place after the objects being linked to create a
 
12089
# shared library.
 
12090
postdeps=$lt_postdeps_CXX
 
12091
 
 
12092
# The library search path used internally by the compiler when linking
 
12093
# a shared library.
 
12094
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12095
 
 
12096
# Method to check whether dependent libraries are shared objects.
 
12097
deplibs_check_method=$lt_deplibs_check_method
 
12098
 
 
12099
# Command to use when deplibs_check_method == file_magic.
 
12100
file_magic_cmd=$lt_file_magic_cmd
 
12101
 
 
12102
# Flag that allows shared libraries with undefined symbols to be built.
 
12103
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12104
 
 
12105
# Flag that forces no undefined symbols.
 
12106
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12107
 
 
12108
# Commands used to finish a libtool library installation in a directory.
 
12109
finish_cmds=$lt_finish_cmds
 
12110
 
 
12111
# Same as above, but a single script fragment to be evaled but not shown.
 
12112
finish_eval=$lt_finish_eval
 
12113
 
 
12114
# Take the output of nm and produce a listing of raw symbols and C names.
 
12115
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12116
 
 
12117
# Transform the output of nm in a proper C declaration
 
12118
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12119
 
 
12120
# Transform the output of nm in a C name address pair
 
12121
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12122
 
 
12123
# This is the shared library runtime path variable.
 
12124
runpath_var=$runpath_var
 
12125
 
 
12126
# This is the shared library path variable.
 
12127
shlibpath_var=$shlibpath_var
 
12128
 
 
12129
# Is shlibpath searched before the hard-coded library search path?
 
12130
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12131
 
 
12132
# How to hardcode a shared library path into an executable.
 
12133
hardcode_action=$hardcode_action_CXX
 
12134
 
 
12135
# Whether we should hardcode library paths into libraries.
 
12136
hardcode_into_libs=$hardcode_into_libs
 
12137
 
 
12138
# Flag to hardcode \$libdir into a binary during linking.
 
12139
# This must work even if \$libdir does not exist.
 
12140
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
12141
 
 
12142
# If ld is used when linking, flag to hardcode \$libdir into
 
12143
# a binary during linking. This must work even if \$libdir does
 
12144
# not exist.
 
12145
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
12146
 
 
12147
# Whether we need a single -rpath flag with a separated argument.
 
12148
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
12149
 
 
12150
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12151
# resulting binary.
 
12152
hardcode_direct=$hardcode_direct_CXX
 
12153
 
 
12154
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12155
# resulting binary.
 
12156
hardcode_minus_L=$hardcode_minus_L_CXX
 
12157
 
 
12158
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12159
# the resulting binary.
 
12160
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
12161
 
 
12162
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12163
# and all subsequent libraries and executables linked against it.
 
12164
hardcode_automatic=$hardcode_automatic_CXX
 
12165
 
 
12166
# Variables whose values should be saved in libtool wrapper scripts and
 
12167
# restored at relink time.
 
12168
variables_saved_for_relink="$variables_saved_for_relink"
 
12169
 
 
12170
# Whether libtool must link a program against all its dependency libraries.
 
12171
link_all_deplibs=$link_all_deplibs_CXX
 
12172
 
 
12173
# Compile-time system search path for libraries
 
12174
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12175
 
 
12176
# Run-time system search path for libraries
 
12177
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12178
 
 
12179
# Fix the shell variable \$srcfile for the compiler.
 
12180
fix_srcfile_path="$fix_srcfile_path_CXX"
 
12181
 
 
12182
# Set to yes if exported symbols are required.
 
12183
always_export_symbols=$always_export_symbols_CXX
 
12184
 
 
12185
# The commands to list exported symbols.
 
12186
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
12187
 
 
12188
# The commands to extract the exported symbol list from a shared archive.
 
12189
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12190
 
 
12191
# Symbols that should not be listed in the preloaded symbols.
 
12192
exclude_expsyms=$lt_exclude_expsyms_CXX
 
12193
 
 
12194
# Symbols that must always be exported.
 
12195
include_expsyms=$lt_include_expsyms_CXX
 
12196
 
 
12197
# ### END LIBTOOL TAG CONFIG: $tagname
 
12198
 
 
12199
__EOF__
 
12200
 
 
12201
 
 
12202
else
 
12203
  # If there is no Makefile yet, we rely on a make rule to execute
 
12204
  # `config.status --recheck' to rerun these tests and create the
 
12205
  # libtool script then.
 
12206
  test -f Makefile && make "$ltmain"
 
12207
fi
 
12208
 
 
12209
 
 
12210
ac_ext=c
 
12211
ac_cpp='$CPP $CPPFLAGS'
 
12212
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12213
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12214
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12215
 
 
12216
CC=$lt_save_CC
 
12217
LDCXX=$LD
 
12218
LD=$lt_save_LD
 
12219
GCC=$lt_save_GCC
 
12220
with_gnu_ldcxx=$with_gnu_ld
 
12221
with_gnu_ld=$lt_save_with_gnu_ld
 
12222
lt_cv_path_LDCXX=$lt_cv_path_LD
 
12223
lt_cv_path_LD=$lt_save_path_LD
 
12224
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
12225
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
12226
 
 
12227
        else
 
12228
          tagname=""
 
12229
        fi
 
12230
        ;;
 
12231
 
 
12232
      F77)
 
12233
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
12234
 
 
12235
ac_ext=f
 
12236
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
12237
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12238
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
12239
 
 
12240
 
 
12241
archive_cmds_need_lc_F77=no
 
12242
allow_undefined_flag_F77=
 
12243
always_export_symbols_F77=no
 
12244
archive_expsym_cmds_F77=
 
12245
export_dynamic_flag_spec_F77=
 
12246
hardcode_direct_F77=no
 
12247
hardcode_libdir_flag_spec_F77=
 
12248
hardcode_libdir_flag_spec_ld_F77=
 
12249
hardcode_libdir_separator_F77=
 
12250
hardcode_minus_L_F77=no
 
12251
hardcode_automatic_F77=no
 
12252
module_cmds_F77=
 
12253
module_expsym_cmds_F77=
 
12254
link_all_deplibs_F77=unknown
 
12255
old_archive_cmds_F77=$old_archive_cmds
 
12256
no_undefined_flag_F77=
 
12257
whole_archive_flag_spec_F77=
 
12258
enable_shared_with_static_runtimes_F77=no
 
12259
 
 
12260
# Source file extension for f77 test sources.
 
12261
ac_ext=f
 
12262
 
 
12263
# Object file extension for compiled f77 test sources.
 
12264
objext=o
 
12265
objext_F77=$objext
 
12266
 
 
12267
# Code to be used in simple compile tests
 
12268
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
12269
 
 
12270
# Code to be used in simple link tests
 
12271
lt_simple_link_test_code="      program t\n      end\n"
 
12272
 
 
12273
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12274
 
 
12275
# If no C compiler was specified, use CC.
 
12276
LTCC=${LTCC-"$CC"}
 
12277
 
 
12278
# Allow CC to be a program name with arguments.
 
12279
compiler=$CC
 
12280
 
 
12281
 
 
12282
# Allow CC to be a program name with arguments.
 
12283
lt_save_CC="$CC"
 
12284
CC=${F77-"f77"}
 
12285
compiler=$CC
 
12286
compiler_F77=$CC
 
12287
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12288
 
 
12289
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12290
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
12291
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12292
echo "${ECHO_T}$can_build_shared" >&6
 
12293
 
 
12294
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12295
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
12296
test "$can_build_shared" = "no" && enable_shared=no
 
12297
 
 
12298
# On AIX, shared libraries and static libraries use the same namespace, and
 
12299
# are all built from PIC.
 
12300
case "$host_os" in
 
12301
aix3*)
 
12302
  test "$enable_shared" = yes && enable_static=no
 
12303
  if test -n "$RANLIB"; then
 
12304
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12305
    postinstall_cmds='$RANLIB $lib'
 
12306
  fi
 
12307
  ;;
 
12308
aix4*)
 
12309
  test "$enable_shared" = yes && enable_static=no
 
12310
  ;;
 
12311
esac
 
12312
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12313
echo "${ECHO_T}$enable_shared" >&6
 
12314
 
 
12315
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12316
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
12317
# Make sure either enable_shared or enable_static is yes.
 
12318
test "$enable_shared" = yes || enable_static=yes
 
12319
echo "$as_me:$LINENO: result: $enable_static" >&5
 
12320
echo "${ECHO_T}$enable_static" >&6
 
12321
 
 
12322
test "$ld_shlibs_F77" = no && can_build_shared=no
 
12323
 
 
12324
GCC_F77="$G77"
 
12325
LD_F77="$LD"
 
12326
 
 
12327
lt_prog_compiler_wl_F77=
 
12328
lt_prog_compiler_pic_F77=
 
12329
lt_prog_compiler_static_F77=
 
12330
 
 
12331
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12332
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12333
 
 
12334
  if test "$GCC" = yes; then
 
12335
    lt_prog_compiler_wl_F77='-Wl,'
 
12336
    lt_prog_compiler_static_F77='-static'
 
12337
 
 
12338
    case $host_os in
 
12339
      aix*)
 
12340
      # All AIX code is PIC.
 
12341
      if test "$host_cpu" = ia64; then
 
12342
        # AIX 5 now supports IA64 processor
 
12343
        lt_prog_compiler_static_F77='-Bstatic'
 
12344
      fi
 
12345
      ;;
 
12346
 
 
12347
    amigaos*)
 
12348
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12349
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12350
      # like `-m68040'.
 
12351
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
12352
      ;;
 
12353
 
 
12354
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12355
      # PIC is the default for these OSes.
 
12356
      ;;
 
12357
 
 
12358
    mingw* | pw32* | os2*)
 
12359
      # This hack is so that the source file can tell whether it is being
 
12360
      # built for inclusion in a dll (and should export symbols for example).
 
12361
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
12362
      ;;
 
12363
 
 
12364
    darwin* | rhapsody*)
 
12365
      # PIC is the default on this platform
 
12366
      # Common symbols not allowed in MH_DYLIB files
 
12367
      lt_prog_compiler_pic_F77='-fno-common'
 
12368
      ;;
 
12369
 
 
12370
    msdosdjgpp*)
 
12371
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
12372
      # on systems that don't support them.
 
12373
      lt_prog_compiler_can_build_shared_F77=no
 
12374
      enable_shared=no
 
12375
      ;;
 
12376
 
 
12377
    sysv4*MP*)
 
12378
      if test -d /usr/nec; then
 
12379
        lt_prog_compiler_pic_F77=-Kconform_pic
 
12380
      fi
 
12381
      ;;
 
12382
 
 
12383
    hpux*)
 
12384
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12385
      # not for PA HP-UX.
 
12386
      case "$host_cpu" in
 
12387
      hppa*64*|ia64*)
 
12388
        # +Z the default
 
12389
        ;;
 
12390
      *)
 
12391
        lt_prog_compiler_pic_F77='-fPIC'
 
12392
        ;;
 
12393
      esac
 
12394
      ;;
 
12395
 
 
12396
    *)
 
12397
      lt_prog_compiler_pic_F77='-fPIC'
 
12398
      ;;
 
12399
    esac
 
12400
  else
 
12401
    # PORTME Check for flag to pass linker flags through the system compiler.
 
12402
    case $host_os in
 
12403
    aix*)
 
12404
      lt_prog_compiler_wl_F77='-Wl,'
 
12405
      if test "$host_cpu" = ia64; then
 
12406
        # AIX 5 now supports IA64 processor
 
12407
        lt_prog_compiler_static_F77='-Bstatic'
 
12408
      else
 
12409
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
12410
      fi
 
12411
      ;;
 
12412
 
 
12413
    mingw* | pw32* | os2*)
 
12414
      # This hack is so that the source file can tell whether it is being
 
12415
      # built for inclusion in a dll (and should export symbols for example).
 
12416
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
12417
      ;;
 
12418
 
 
12419
    hpux9* | hpux10* | hpux11*)
 
12420
      lt_prog_compiler_wl_F77='-Wl,'
 
12421
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12422
      # not for PA HP-UX.
 
12423
      case "$host_cpu" in
 
12424
      hppa*64*|ia64*)
 
12425
        # +Z the default
 
12426
        ;;
 
12427
      *)
 
12428
        lt_prog_compiler_pic_F77='+Z'
 
12429
        ;;
 
12430
      esac
 
12431
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
12432
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
12433
      ;;
 
12434
 
 
12435
    irix5* | irix6* | nonstopux*)
 
12436
      lt_prog_compiler_wl_F77='-Wl,'
 
12437
      # PIC (with -KPIC) is the default.
 
12438
      lt_prog_compiler_static_F77='-non_shared'
 
12439
      ;;
 
12440
 
 
12441
    newsos6)
 
12442
      lt_prog_compiler_pic_F77='-KPIC'
 
12443
      lt_prog_compiler_static_F77='-Bstatic'
 
12444
      ;;
 
12445
 
 
12446
    linux*)
 
12447
      case $CC in
 
12448
      icc* | ecc*)
 
12449
        lt_prog_compiler_wl_F77='-Wl,'
 
12450
        lt_prog_compiler_pic_F77='-KPIC'
 
12451
        lt_prog_compiler_static_F77='-static'
 
12452
        ;;
 
12453
      ccc*)
 
12454
        lt_prog_compiler_wl_F77='-Wl,'
 
12455
        # All Alpha code is PIC.
 
12456
        lt_prog_compiler_static_F77='-non_shared'
 
12457
        ;;
 
12458
      esac
 
12459
      ;;
 
12460
 
 
12461
    osf3* | osf4* | osf5*)
 
12462
      lt_prog_compiler_wl_F77='-Wl,'
 
12463
      # All OSF/1 code is PIC.
 
12464
      lt_prog_compiler_static_F77='-non_shared'
 
12465
      ;;
 
12466
 
 
12467
    sco3.2v5*)
 
12468
      lt_prog_compiler_pic_F77='-Kpic'
 
12469
      lt_prog_compiler_static_F77='-dn'
 
12470
      ;;
 
12471
 
 
12472
    solaris*)
 
12473
      lt_prog_compiler_wl_F77='-Wl,'
 
12474
      lt_prog_compiler_pic_F77='-KPIC'
 
12475
      lt_prog_compiler_static_F77='-Bstatic'
 
12476
      ;;
 
12477
 
 
12478
    sunos4*)
 
12479
      lt_prog_compiler_wl_F77='-Qoption ld '
 
12480
      lt_prog_compiler_pic_F77='-PIC'
 
12481
      lt_prog_compiler_static_F77='-Bstatic'
 
12482
      ;;
 
12483
 
 
12484
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12485
      lt_prog_compiler_wl_F77='-Wl,'
 
12486
      lt_prog_compiler_pic_F77='-KPIC'
 
12487
      lt_prog_compiler_static_F77='-Bstatic'
 
12488
      ;;
 
12489
 
 
12490
    sysv4*MP*)
 
12491
      if test -d /usr/nec ;then
 
12492
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
12493
        lt_prog_compiler_static_F77='-Bstatic'
 
12494
      fi
 
12495
      ;;
 
12496
 
 
12497
    uts4*)
 
12498
      lt_prog_compiler_pic_F77='-pic'
 
12499
      lt_prog_compiler_static_F77='-Bstatic'
 
12500
      ;;
 
12501
 
 
12502
    *)
 
12503
      lt_prog_compiler_can_build_shared_F77=no
 
12504
      ;;
 
12505
    esac
 
12506
  fi
 
12507
 
 
12508
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
12509
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
12510
 
 
12511
#
 
12512
# Check to make sure the PIC flag actually works.
 
12513
#
 
12514
if test -n "$lt_prog_compiler_pic_F77"; then
 
12515
 
 
12516
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
12517
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
12518
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
12519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12520
else
 
12521
  lt_prog_compiler_pic_works_F77=no
 
12522
  ac_outfile=conftest.$ac_objext
 
12523
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12524
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
12525
   # Insert the option either (1) after the last *FLAGS variable, or
 
12526
   # (2) before a word containing "conftest.", or (3) at the end.
 
12527
   # Note that $ac_compile itself does not contain backslashes and begins
 
12528
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12529
   # The option is referenced via a variable to avoid confusing sed.
 
12530
   lt_compile=`echo "$ac_compile" | $SED \
 
12531
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12532
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12533
   -e 's:$: $lt_compiler_flag:'`
 
12534
   (eval echo "\"\$as_me:12534: $lt_compile\"" >&5)
 
12535
   (eval "$lt_compile" 2>conftest.err)
 
12536
   ac_status=$?
 
12537
   cat conftest.err >&5
 
12538
   echo "$as_me:12538: \$? = $ac_status" >&5
 
12539
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12540
     # The compiler can only warn and ignore the option if not recognized
 
12541
     # So say no if there are warnings
 
12542
     if test ! -s conftest.err; then
 
12543
       lt_prog_compiler_pic_works_F77=yes
 
12544
     fi
 
12545
   fi
 
12546
   $rm conftest*
 
12547
 
 
12548
fi
 
12549
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
12550
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
12551
 
 
12552
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
12553
    case $lt_prog_compiler_pic_F77 in
 
12554
     "" | " "*) ;;
 
12555
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
12556
     esac
 
12557
else
 
12558
    lt_prog_compiler_pic_F77=
 
12559
     lt_prog_compiler_can_build_shared_F77=no
 
12560
fi
 
12561
 
 
12562
fi
 
12563
case "$host_os" in
 
12564
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12565
  *djgpp*)
 
12566
    lt_prog_compiler_pic_F77=
 
12567
    ;;
 
12568
  *)
 
12569
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
12570
    ;;
 
12571
esac
 
12572
 
 
12573
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12574
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12575
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
12576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12577
else
 
12578
  lt_cv_prog_compiler_c_o_F77=no
 
12579
   $rm -r conftest 2>/dev/null
 
12580
   mkdir conftest
 
12581
   cd conftest
 
12582
   mkdir out
 
12583
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12584
 
 
12585
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
12586
   # that will create temporary files in the current directory regardless of
 
12587
   # the output directory.  Thus, making CWD read-only will cause this test
 
12588
   # to fail, enabling locking or at least warning the user not to do parallel
 
12589
   # builds.
 
12590
   chmod -w .
 
12591
 
 
12592
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12593
   # Insert the option either (1) after the last *FLAGS variable, or
 
12594
   # (2) before a word containing "conftest.", or (3) at the end.
 
12595
   # Note that $ac_compile itself does not contain backslashes and begins
 
12596
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12597
   lt_compile=`echo "$ac_compile" | $SED \
 
12598
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12599
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12600
   -e 's:$: $lt_compiler_flag:'`
 
12601
   (eval echo "\"\$as_me:12601: $lt_compile\"" >&5)
 
12602
   (eval "$lt_compile" 2>out/conftest.err)
 
12603
   ac_status=$?
 
12604
   cat out/conftest.err >&5
 
12605
   echo "$as_me:12605: \$? = $ac_status" >&5
 
12606
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12607
   then
 
12608
     # The compiler can only warn and ignore the option if not recognized
 
12609
     # So say no if there are warnings
 
12610
     if test ! -s out/conftest.err; then
 
12611
       lt_cv_prog_compiler_c_o_F77=yes
 
12612
     fi
 
12613
   fi
 
12614
   chmod u+w .
 
12615
   $rm conftest*
 
12616
   # SGI C++ compiler will create directory out/ii_files/ for
 
12617
   # template instantiation
 
12618
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12619
   $rm out/* && rmdir out
 
12620
   cd ..
 
12621
   rmdir conftest
 
12622
   $rm conftest*
 
12623
 
 
12624
fi
 
12625
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
12626
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
12627
 
 
12628
 
 
12629
hard_links="nottested"
 
12630
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
12631
  # do not overwrite the value of need_locks provided by the user
 
12632
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12633
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
12634
  hard_links=yes
 
12635
  $rm conftest*
 
12636
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12637
  touch conftest.a
 
12638
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12639
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12640
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
12641
echo "${ECHO_T}$hard_links" >&6
 
12642
  if test "$hard_links" = no; then
 
12643
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12644
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12645
    need_locks=warn
 
12646
  fi
 
12647
else
 
12648
  need_locks=no
 
12649
fi
 
12650
 
 
12651
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12652
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12653
 
 
12654
  runpath_var=
 
12655
  allow_undefined_flag_F77=
 
12656
  enable_shared_with_static_runtimes_F77=no
 
12657
  archive_cmds_F77=
 
12658
  archive_expsym_cmds_F77=
 
12659
  old_archive_From_new_cmds_F77=
 
12660
  old_archive_from_expsyms_cmds_F77=
 
12661
  export_dynamic_flag_spec_F77=
 
12662
  whole_archive_flag_spec_F77=
 
12663
  thread_safe_flag_spec_F77=
 
12664
  hardcode_libdir_flag_spec_F77=
 
12665
  hardcode_libdir_flag_spec_ld_F77=
 
12666
  hardcode_libdir_separator_F77=
 
12667
  hardcode_direct_F77=no
 
12668
  hardcode_minus_L_F77=no
 
12669
  hardcode_shlibpath_var_F77=unsupported
 
12670
  link_all_deplibs_F77=unknown
 
12671
  hardcode_automatic_F77=no
 
12672
  module_cmds_F77=
 
12673
  module_expsym_cmds_F77=
 
12674
  always_export_symbols_F77=no
 
12675
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12676
  # include_expsyms should be a list of space-separated symbols to be *always*
 
12677
  # included in the symbol list
 
12678
  include_expsyms_F77=
 
12679
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
12680
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
12681
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
12682
  # as well as any symbol that contains `d'.
 
12683
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
12684
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
12685
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
12686
  # the symbol is explicitly referenced.  Since portable code cannot
 
12687
  # rely on this symbol name, it's probably fine to never include it in
 
12688
  # preloaded symbol tables.
 
12689
  extract_expsyms_cmds=
 
12690
 
 
12691
  case $host_os in
 
12692
  cygwin* | mingw* | pw32*)
 
12693
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
12694
    # When not using gcc, we currently assume that we are using
 
12695
    # Microsoft Visual C++.
 
12696
    if test "$GCC" != yes; then
 
12697
      with_gnu_ld=no
 
12698
    fi
 
12699
    ;;
 
12700
  openbsd*)
 
12701
    with_gnu_ld=no
 
12702
    ;;
 
12703
  esac
 
12704
 
 
12705
  ld_shlibs_F77=yes
 
12706
  if test "$with_gnu_ld" = yes; then
 
12707
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
12708
    wlarc='${wl}'
 
12709
 
 
12710
    # See if GNU ld supports shared libraries.
 
12711
    case $host_os in
 
12712
    aix3* | aix4* | aix5*)
 
12713
      # On AIX/PPC, the GNU linker is very broken
 
12714
      if test "$host_cpu" != ia64; then
 
12715
        ld_shlibs_F77=no
 
12716
        cat <<EOF 1>&2
 
12717
 
 
12718
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
12719
*** to be unable to reliably create shared libraries on AIX.
 
12720
*** Therefore, libtool is disabling shared libraries support.  If you
 
12721
*** really care for shared libraries, you may want to modify your PATH
 
12722
*** so that a non-GNU linker is found, and then restart.
 
12723
 
 
12724
EOF
 
12725
      fi
 
12726
      ;;
 
12727
 
 
12728
    amigaos*)
 
12729
      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)'
 
12730
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
12731
      hardcode_minus_L_F77=yes
 
12732
 
 
12733
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
12734
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
12735
      # to version 4, is to share data among multiple programs linked
 
12736
      # with the same dynamic library.  Since this doesn't match the
 
12737
      # behavior of shared libraries on other platforms, we can't use
 
12738
      # them.
 
12739
      ld_shlibs_F77=no
 
12740
      ;;
 
12741
 
 
12742
    beos*)
 
12743
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12744
        allow_undefined_flag_F77=unsupported
 
12745
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12746
        # support --undefined.  This deserves some investigation.  FIXME
 
12747
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12748
      else
 
12749
        ld_shlibs_F77=no
 
12750
      fi
 
12751
      ;;
 
12752
 
 
12753
    cygwin* | mingw* | pw32*)
 
12754
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
12755
      # as there is no search path for DLLs.
 
12756
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
12757
      allow_undefined_flag_F77=unsupported
 
12758
      always_export_symbols_F77=no
 
12759
      enable_shared_with_static_runtimes_F77=yes
 
12760
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12761
 
 
12762
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12763
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
12764
        # If the export-symbols file already is a .def file (1st line
 
12765
        # is EXPORTS), use it as is; otherwise, prepend...
 
12766
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12767
          cp $export_symbols $output_objdir/$soname.def;
 
12768
        else
 
12769
          echo EXPORTS > $output_objdir/$soname.def;
 
12770
          cat $export_symbols >> $output_objdir/$soname.def;
 
12771
        fi~
 
12772
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
12773
      else
 
12774
        ld_shlibs=no
 
12775
      fi
 
12776
      ;;
 
12777
 
 
12778
    netbsd*)
 
12779
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12780
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
12781
        wlarc=
 
12782
      else
 
12783
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12784
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12785
      fi
 
12786
      ;;
 
12787
 
 
12788
    solaris* | sysv5*)
 
12789
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
12790
        ld_shlibs_F77=no
 
12791
        cat <<EOF 1>&2
 
12792
 
 
12793
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
12794
*** create shared libraries on Solaris systems.  Therefore, libtool
 
12795
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
12796
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
12797
*** your PATH or compiler configuration so that the native linker is
 
12798
*** used, and then restart.
 
12799
 
 
12800
EOF
 
12801
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12802
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12803
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12804
      else
 
12805
        ld_shlibs_F77=no
 
12806
      fi
 
12807
      ;;
 
12808
 
 
12809
    sunos4*)
 
12810
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
12811
      wlarc=
 
12812
      hardcode_direct_F77=yes
 
12813
      hardcode_shlibpath_var_F77=no
 
12814
      ;;
 
12815
 
 
12816
  linux*)
 
12817
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
12818
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12819
        archive_cmds_F77="$tmp_archive_cmds"
 
12820
      supports_anon_versioning=no
 
12821
      case `$LD -v 2>/dev/null` in
 
12822
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
12823
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
12824
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
12825
        *\ 2.11.*) ;; # other 2.11 versions
 
12826
        *) supports_anon_versioning=yes ;;
 
12827
      esac
 
12828
      if test $supports_anon_versioning = yes; then
 
12829
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
12830
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12831
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
12832
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12833
      else
 
12834
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
12835
      fi
 
12836
    else
 
12837
      ld_shlibs_F77=no
 
12838
    fi
 
12839
    ;;
 
12840
 
 
12841
    *)
 
12842
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12843
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12844
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12845
      else
 
12846
        ld_shlibs_F77=no
 
12847
      fi
 
12848
      ;;
 
12849
    esac
 
12850
 
 
12851
    if test "$ld_shlibs_F77" = yes; then
 
12852
      runpath_var=LD_RUN_PATH
 
12853
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
12854
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
12855
      # ancient GNU ld didn't support --whole-archive et. al.
 
12856
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
12857
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12858
      else
 
12859
        whole_archive_flag_spec_F77=
 
12860
      fi
 
12861
    fi
 
12862
  else
 
12863
    # PORTME fill in a description of your system's linker (not GNU ld)
 
12864
    case $host_os in
 
12865
    aix3*)
 
12866
      allow_undefined_flag_F77=unsupported
 
12867
      always_export_symbols_F77=yes
 
12868
      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'
 
12869
      # Note: this linker hardcodes the directories in LIBPATH if there
 
12870
      # are no directories specified by -L.
 
12871
      hardcode_minus_L_F77=yes
 
12872
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
12873
        # Neither direct hardcoding nor static linking is supported with a
 
12874
        # broken collect2.
 
12875
        hardcode_direct_F77=unsupported
 
12876
      fi
 
12877
      ;;
 
12878
 
 
12879
    aix4* | aix5*)
 
12880
      if test "$host_cpu" = ia64; then
 
12881
        # On IA64, the linker does run time linking by default, so we don't
 
12882
        # have to do anything special.
 
12883
        aix_use_runtimelinking=no
 
12884
        exp_sym_flag='-Bexport'
 
12885
        no_entry_flag=""
 
12886
      else
 
12887
        # If we're using GNU nm, then we don't want the "-C" option.
 
12888
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12889
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12890
          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'
 
12891
        else
 
12892
          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'
 
12893
        fi
 
12894
        aix_use_runtimelinking=no
 
12895
 
 
12896
        # Test if we are trying to use run time linking or normal
 
12897
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
12898
        # need to do runtime linking.
 
12899
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
12900
          for ld_flag in $LDFLAGS; do
 
12901
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
12902
            aix_use_runtimelinking=yes
 
12903
            break
 
12904
          fi
 
12905
          done
 
12906
        esac
 
12907
 
 
12908
        exp_sym_flag='-bexport'
 
12909
        no_entry_flag='-bnoentry'
 
12910
      fi
 
12911
 
 
12912
      # When large executables or shared objects are built, AIX ld can
 
12913
      # have problems creating the table of contents.  If linking a library
 
12914
      # or program results in "error TOC overflow" add -mminimal-toc to
 
12915
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
12916
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
12917
 
 
12918
      archive_cmds_F77=''
 
12919
      hardcode_direct_F77=yes
 
12920
      hardcode_libdir_separator_F77=':'
 
12921
      link_all_deplibs_F77=yes
 
12922
 
 
12923
      if test "$GCC" = yes; then
 
12924
        case $host_os in aix4.012|aix4.012.*)
 
12925
        # We only want to do this on AIX 4.2 and lower, the check
 
12926
        # below for broken collect2 doesn't work under 4.3+
 
12927
          collect2name=`${CC} -print-prog-name=collect2`
 
12928
          if test -f "$collect2name" && \
 
12929
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
12930
          then
 
12931
          # We have reworked collect2
 
12932
          hardcode_direct_F77=yes
 
12933
          else
 
12934
          # We have old collect2
 
12935
          hardcode_direct_F77=unsupported
 
12936
          # It fails to find uninstalled libraries when the uninstalled
 
12937
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
12938
          # to unsupported forces relinking
 
12939
          hardcode_minus_L_F77=yes
 
12940
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
12941
          hardcode_libdir_separator_F77=
 
12942
          fi
 
12943
        esac
 
12944
        shared_flag='-shared'
 
12945
      else
 
12946
        # not using gcc
 
12947
        if test "$host_cpu" = ia64; then
 
12948
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
12949
        # chokes on -Wl,-G. The following line is correct:
 
12950
          shared_flag='-G'
 
12951
        else
 
12952
        if test "$aix_use_runtimelinking" = yes; then
 
12953
            shared_flag='${wl}-G'
 
12954
          else
 
12955
            shared_flag='${wl}-bM:SRE'
 
12956
        fi
 
12957
        fi
 
12958
      fi
 
12959
 
 
12960
      # It seems that -bexpall does not export symbols beginning with
 
12961
      # underscore (_), so it is better to generate a list of symbols to export.
 
12962
      always_export_symbols_F77=yes
 
12963
      if test "$aix_use_runtimelinking" = yes; then
 
12964
        # Warning - without using the other runtime loading flags (-brtl),
 
12965
        # -berok will link without error, but may produce a broken library.
 
12966
        allow_undefined_flag_F77='-berok'
 
12967
       # Determine the default libpath from the value encoded in an empty executable.
 
12968
       cat >conftest.$ac_ext <<_ACEOF
 
12969
      program main
 
12970
 
 
12971
      end
 
12972
_ACEOF
 
12973
rm -f conftest.$ac_objext conftest$ac_exeext
 
12974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12975
  (eval $ac_link) 2>&5
 
12976
  ac_status=$?
 
12977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12978
  (exit $ac_status); } &&
 
12979
         { ac_try='test -s conftest$ac_exeext'
 
12980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12981
  (eval $ac_try) 2>&5
 
12982
  ac_status=$?
 
12983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12984
  (exit $ac_status); }; }; then
 
12985
 
 
12986
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
12987
}'`
 
12988
# Check for a 64-bit object if we didn't find anything.
 
12989
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; }
 
12990
}'`; fi
 
12991
else
 
12992
  echo "$as_me: failed program was:" >&5
 
12993
sed 's/^/| /' conftest.$ac_ext >&5
 
12994
 
 
12995
fi
 
12996
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
12997
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12998
 
 
12999
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13000
        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"
 
13001
       else
 
13002
        if test "$host_cpu" = ia64; then
 
13003
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13004
          allow_undefined_flag_F77="-z nodefs"
 
13005
          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"
 
13006
        else
 
13007
         # Determine the default libpath from the value encoded in an empty executable.
 
13008
         cat >conftest.$ac_ext <<_ACEOF
 
13009
      program main
 
13010
 
 
13011
      end
 
13012
_ACEOF
 
13013
rm -f conftest.$ac_objext conftest$ac_exeext
 
13014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13015
  (eval $ac_link) 2>&5
 
13016
  ac_status=$?
 
13017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13018
  (exit $ac_status); } &&
 
13019
         { ac_try='test -s conftest$ac_exeext'
 
13020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13021
  (eval $ac_try) 2>&5
 
13022
  ac_status=$?
 
13023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13024
  (exit $ac_status); }; }; then
 
13025
 
 
13026
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13027
}'`
 
13028
# Check for a 64-bit object if we didn't find anything.
 
13029
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; }
 
13030
}'`; fi
 
13031
else
 
13032
  echo "$as_me: failed program was:" >&5
 
13033
sed 's/^/| /' conftest.$ac_ext >&5
 
13034
 
 
13035
fi
 
13036
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13037
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13038
 
 
13039
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13040
          # Warning - without using the other run time loading flags,
 
13041
          # -berok will link without error, but may produce a broken library.
 
13042
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13043
          allow_undefined_flag_F77=' ${wl}-berok'
 
13044
          # -bexpall does not export symbols beginning with underscore (_)
 
13045
          always_export_symbols_F77=yes
 
13046
          # Exported symbols can be pulled into shared objects from archives
 
13047
          whole_archive_flag_spec_F77=' '
 
13048
          archive_cmds_need_lc_F77=yes
 
13049
          # This is similar to how AIX traditionally builds it's shared libraries.
 
13050
          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'
 
13051
        fi
 
13052
      fi
 
13053
      ;;
 
13054
 
 
13055
    amigaos*)
 
13056
      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)'
 
13057
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13058
      hardcode_minus_L_F77=yes
 
13059
      # see comment about different semantics on the GNU ld section
 
13060
      ld_shlibs_F77=no
 
13061
      ;;
 
13062
 
 
13063
    bsdi4*)
 
13064
      export_dynamic_flag_spec_F77=-rdynamic
 
13065
      ;;
 
13066
 
 
13067
    cygwin* | mingw* | pw32*)
 
13068
      # When not using gcc, we currently assume that we are using
 
13069
      # Microsoft Visual C++.
 
13070
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13071
      # no search path for DLLs.
 
13072
      hardcode_libdir_flag_spec_F77=' '
 
13073
      allow_undefined_flag_F77=unsupported
 
13074
      # Tell ltmain to make .lib files, not .a files.
 
13075
      libext=lib
 
13076
      # Tell ltmain to make .dll files, not .so files.
 
13077
      shrext=".dll"
 
13078
      # FIXME: Setting linknames here is a bad hack.
 
13079
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13080
      # The linker will automatically build a .lib file if we build a DLL.
 
13081
      old_archive_From_new_cmds_F77='true'
 
13082
      # FIXME: Should let the user specify the lib program.
 
13083
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13084
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13085
      enable_shared_with_static_runtimes_F77=yes
 
13086
      ;;
 
13087
 
 
13088
    darwin* | rhapsody*)
 
13089
    if test "$GXX" = yes ; then
 
13090
      archive_cmds_need_lc_F77=no
 
13091
      case "$host_os" in
 
13092
      rhapsody* | darwin1.[012])
 
13093
        allow_undefined_flag_F77='-undefined suppress'
 
13094
        ;;
 
13095
      *) # Darwin 1.3 on
 
13096
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13097
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13098
      else
 
13099
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
13100
          10.[012])
 
13101
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13102
            ;;
 
13103
          10.*)
 
13104
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
13105
            ;;
 
13106
        esac
 
13107
      fi
 
13108
        ;;
 
13109
      esac
 
13110
        lt_int_apple_cc_single_mod=no
 
13111
        output_verbose_link_cmd='echo'
 
13112
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
13113
          lt_int_apple_cc_single_mod=yes
 
13114
        fi
 
13115
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13116
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13117
        else
 
13118
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13119
      fi
 
13120
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13121
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
13122
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13123
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13124
        else
 
13125
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13126
        fi
 
13127
          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}'
 
13128
      hardcode_direct_F77=no
 
13129
      hardcode_automatic_F77=yes
 
13130
      hardcode_shlibpath_var_F77=unsupported
 
13131
      whole_archive_flag_spec_F77='-all_load $convenience'
 
13132
      link_all_deplibs_F77=yes
 
13133
    else
 
13134
      ld_shlibs_F77=no
 
13135
    fi
 
13136
      ;;
 
13137
 
 
13138
    dgux*)
 
13139
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13140
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13141
      hardcode_shlibpath_var_F77=no
 
13142
      ;;
 
13143
 
 
13144
    freebsd1*)
 
13145
      ld_shlibs_F77=no
 
13146
      ;;
 
13147
 
 
13148
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
13149
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
13150
    # does not break anything, and helps significantly (at the cost of a little
 
13151
    # extra space).
 
13152
    freebsd2.2*)
 
13153
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
13154
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13155
      hardcode_direct_F77=yes
 
13156
      hardcode_shlibpath_var_F77=no
 
13157
      ;;
 
13158
 
 
13159
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
13160
    freebsd2*)
 
13161
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13162
      hardcode_direct_F77=yes
 
13163
      hardcode_minus_L_F77=yes
 
13164
      hardcode_shlibpath_var_F77=no
 
13165
      ;;
 
13166
 
 
13167
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
13168
    freebsd* | kfreebsd*-gnu)
 
13169
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
13170
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13171
      hardcode_direct_F77=yes
 
13172
      hardcode_shlibpath_var_F77=no
 
13173
      ;;
 
13174
 
 
13175
    hpux9*)
 
13176
      if test "$GCC" = yes; then
 
13177
        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'
 
13178
      else
 
13179
        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'
 
13180
      fi
 
13181
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13182
      hardcode_libdir_separator_F77=:
 
13183
      hardcode_direct_F77=yes
 
13184
 
 
13185
      # hardcode_minus_L: Not really in the search PATH,
 
13186
      # but as the default location of the library.
 
13187
      hardcode_minus_L_F77=yes
 
13188
      export_dynamic_flag_spec_F77='${wl}-E'
 
13189
      ;;
 
13190
 
 
13191
    hpux10* | hpux11*)
 
13192
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
13193
        case "$host_cpu" in
 
13194
        hppa*64*|ia64*)
 
13195
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13196
          ;;
 
13197
        *)
 
13198
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
13199
          ;;
 
13200
        esac
 
13201
      else
 
13202
        case "$host_cpu" in
 
13203
        hppa*64*|ia64*)
 
13204
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13205
          ;;
 
13206
        *)
 
13207
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
13208
          ;;
 
13209
        esac
 
13210
      fi
 
13211
      if test "$with_gnu_ld" = no; then
 
13212
        case "$host_cpu" in
 
13213
        hppa*64*)
 
13214
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13215
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
13216
          hardcode_libdir_separator_F77=:
 
13217
          hardcode_direct_F77=no
 
13218
          hardcode_shlibpath_var_F77=no
 
13219
          ;;
 
13220
        ia64*)
 
13221
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13222
          hardcode_direct_F77=no
 
13223
          hardcode_shlibpath_var_F77=no
 
13224
 
 
13225
          # hardcode_minus_L: Not really in the search PATH,
 
13226
          # but as the default location of the library.
 
13227
          hardcode_minus_L_F77=yes
 
13228
          ;;
 
13229
        *)
 
13230
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13231
          hardcode_libdir_separator_F77=:
 
13232
          hardcode_direct_F77=yes
 
13233
          export_dynamic_flag_spec_F77='${wl}-E'
 
13234
 
 
13235
          # hardcode_minus_L: Not really in the search PATH,
 
13236
          # but as the default location of the library.
 
13237
          hardcode_minus_L_F77=yes
 
13238
          ;;
 
13239
        esac
 
13240
      fi
 
13241
      ;;
 
13242
 
 
13243
    irix5* | irix6* | nonstopux*)
 
13244
      if test "$GCC" = yes; then
 
13245
        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'
 
13246
      else
 
13247
        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'
 
13248
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
13249
      fi
 
13250
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13251
      hardcode_libdir_separator_F77=:
 
13252
      link_all_deplibs_F77=yes
 
13253
      ;;
 
13254
 
 
13255
    netbsd*)
 
13256
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13257
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
13258
      else
 
13259
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
13260
      fi
 
13261
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13262
      hardcode_direct_F77=yes
 
13263
      hardcode_shlibpath_var_F77=no
 
13264
      ;;
 
13265
 
 
13266
    newsos6)
 
13267
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13268
      hardcode_direct_F77=yes
 
13269
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13270
      hardcode_libdir_separator_F77=:
 
13271
      hardcode_shlibpath_var_F77=no
 
13272
      ;;
 
13273
 
 
13274
    openbsd*)
 
13275
      hardcode_direct_F77=yes
 
13276
      hardcode_shlibpath_var_F77=no
 
13277
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13278
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
13279
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13280
        export_dynamic_flag_spec_F77='${wl}-E'
 
13281
      else
 
13282
       case $host_os in
 
13283
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
13284
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13285
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
13286
           ;;
 
13287
         *)
 
13288
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
13289
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13290
           ;;
 
13291
       esac
 
13292
      fi
 
13293
      ;;
 
13294
 
 
13295
    os2*)
 
13296
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13297
      hardcode_minus_L_F77=yes
 
13298
      allow_undefined_flag_F77=unsupported
 
13299
      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'
 
13300
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
13301
      ;;
 
13302
 
 
13303
    osf3*)
 
13304
      if test "$GCC" = yes; then
 
13305
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
13306
        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'
 
13307
      else
 
13308
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
13309
        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'
 
13310
      fi
 
13311
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13312
      hardcode_libdir_separator_F77=:
 
13313
      ;;
 
13314
 
 
13315
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
13316
      if test "$GCC" = yes; then
 
13317
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
13318
        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'
 
13319
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13320
      else
 
13321
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
13322
        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'
 
13323
        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~
 
13324
        $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'
 
13325
 
 
13326
        # Both c and cxx compiler support -rpath directly
 
13327
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
13328
      fi
 
13329
      hardcode_libdir_separator_F77=:
 
13330
      ;;
 
13331
 
 
13332
    sco3.2v5*)
 
13333
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13334
      hardcode_shlibpath_var_F77=no
 
13335
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
13336
      runpath_var=LD_RUN_PATH
 
13337
      hardcode_runpath_var=yes
 
13338
      ;;
 
13339
 
 
13340
    solaris*)
 
13341
      no_undefined_flag_F77=' -z text'
 
13342
      if test "$GCC" = yes; then
 
13343
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13344
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13345
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
13346
      else
 
13347
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13348
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13349
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
13350
      fi
 
13351
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13352
      hardcode_shlibpath_var_F77=no
 
13353
      case $host_os in
 
13354
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13355
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13356
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
13357
      esac
 
13358
      link_all_deplibs_F77=yes
 
13359
      ;;
 
13360
 
 
13361
    sunos4*)
 
13362
      if test "x$host_vendor" = xsequent; then
 
13363
        # Use $CC to link under sequent, because it throws in some extra .o
 
13364
        # files that make .init and .fini sections work.
 
13365
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
13366
      else
 
13367
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
13368
      fi
 
13369
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13370
      hardcode_direct_F77=yes
 
13371
      hardcode_minus_L_F77=yes
 
13372
      hardcode_shlibpath_var_F77=no
 
13373
      ;;
 
13374
 
 
13375
    sysv4)
 
13376
      case $host_vendor in
 
13377
        sni)
 
13378
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13379
          hardcode_direct_F77=yes # is this really true???
 
13380
        ;;
 
13381
        siemens)
 
13382
          ## LD is ld it makes a PLAMLIB
 
13383
          ## CC just makes a GrossModule.
 
13384
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
13385
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
13386
          hardcode_direct_F77=no
 
13387
        ;;
 
13388
        motorola)
 
13389
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13390
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
13391
        ;;
 
13392
      esac
 
13393
      runpath_var='LD_RUN_PATH'
 
13394
      hardcode_shlibpath_var_F77=no
 
13395
      ;;
 
13396
 
 
13397
    sysv4.3*)
 
13398
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13399
      hardcode_shlibpath_var_F77=no
 
13400
      export_dynamic_flag_spec_F77='-Bexport'
 
13401
      ;;
 
13402
 
 
13403
    sysv4*MP*)
 
13404
      if test -d /usr/nec; then
 
13405
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13406
        hardcode_shlibpath_var_F77=no
 
13407
        runpath_var=LD_RUN_PATH
 
13408
        hardcode_runpath_var=yes
 
13409
        ld_shlibs_F77=yes
 
13410
      fi
 
13411
      ;;
 
13412
 
 
13413
    sysv4.2uw2*)
 
13414
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
13415
      hardcode_direct_F77=yes
 
13416
      hardcode_minus_L_F77=no
 
13417
      hardcode_shlibpath_var_F77=no
 
13418
      hardcode_runpath_var=yes
 
13419
      runpath_var=LD_RUN_PATH
 
13420
      ;;
 
13421
 
 
13422
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
13423
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
13424
      if test "$GCC" = yes; then
 
13425
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13426
      else
 
13427
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13428
      fi
 
13429
      runpath_var='LD_RUN_PATH'
 
13430
      hardcode_shlibpath_var_F77=no
 
13431
      ;;
 
13432
 
 
13433
    sysv5*)
 
13434
      no_undefined_flag_F77=' -z text'
 
13435
      # $CC -shared without GNU ld will not create a library from C++
 
13436
      # object files and a static libstdc++, better avoid it by now
 
13437
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13438
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13439
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
13440
      hardcode_libdir_flag_spec_F77=
 
13441
      hardcode_shlibpath_var_F77=no
 
13442
      runpath_var='LD_RUN_PATH'
 
13443
      ;;
 
13444
 
 
13445
    uts4*)
 
13446
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13447
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13448
      hardcode_shlibpath_var_F77=no
 
13449
      ;;
 
13450
 
 
13451
    *)
 
13452
      ld_shlibs_F77=no
 
13453
      ;;
 
13454
    esac
 
13455
  fi
 
13456
 
 
13457
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
13458
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
13459
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13460
 
 
13461
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13462
if test "$GCC" = yes; then
 
13463
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13464
fi
 
13465
 
 
13466
#
 
13467
# Do we need to explicitly link libc?
 
13468
#
 
13469
case "x$archive_cmds_need_lc_F77" in
 
13470
x|xyes)
 
13471
  # Assume -lc should be added
 
13472
  archive_cmds_need_lc_F77=yes
 
13473
 
 
13474
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13475
    case $archive_cmds_F77 in
 
13476
    *'~'*)
 
13477
      # FIXME: we may have to deal with multi-command sequences.
 
13478
      ;;
 
13479
    '$CC '*)
 
13480
      # Test whether the compiler implicitly links with -lc since on some
 
13481
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13482
      # to ld, don't add -lc before -lgcc.
 
13483
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13484
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13485
      $rm conftest*
 
13486
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13487
 
 
13488
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13489
  (eval $ac_compile) 2>&5
 
13490
  ac_status=$?
 
13491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13492
  (exit $ac_status); } 2>conftest.err; then
 
13493
        soname=conftest
 
13494
        lib=conftest
 
13495
        libobjs=conftest.$ac_objext
 
13496
        deplibs=
 
13497
        wl=$lt_prog_compiler_wl_F77
 
13498
        compiler_flags=-v
 
13499
        linker_flags=-v
 
13500
        verstring=
 
13501
        output_objdir=.
 
13502
        libname=conftest
 
13503
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
13504
        allow_undefined_flag_F77=
 
13505
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13506
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13507
  ac_status=$?
 
13508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13509
  (exit $ac_status); }
 
13510
        then
 
13511
          archive_cmds_need_lc_F77=no
 
13512
        else
 
13513
          archive_cmds_need_lc_F77=yes
 
13514
        fi
 
13515
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
13516
      else
 
13517
        cat conftest.err 1>&5
 
13518
      fi
 
13519
      $rm conftest*
 
13520
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
13521
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
13522
      ;;
 
13523
    esac
 
13524
  fi
 
13525
  ;;
 
13526
esac
 
13527
 
 
13528
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13529
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13530
library_names_spec=
 
13531
libname_spec='lib$name'
 
13532
soname_spec=
 
13533
shrext=".so"
 
13534
postinstall_cmds=
 
13535
postuninstall_cmds=
 
13536
finish_cmds=
 
13537
finish_eval=
 
13538
shlibpath_var=
 
13539
shlibpath_overrides_runpath=unknown
 
13540
version_type=none
 
13541
dynamic_linker="$host_os ld.so"
 
13542
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13543
if test "$GCC" = yes; then
 
13544
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13545
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
13546
    # if the path contains ";" then we assume it to be the separator
 
13547
    # otherwise default to the standard path separator (i.e. ":") - it is
 
13548
    # assumed that no part of a normal pathname contains ";" but that should
 
13549
    # okay in the real world where ";" in dirpaths is itself problematic.
 
13550
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13551
  else
 
13552
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13553
  fi
 
13554
else
 
13555
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13556
fi
 
13557
need_lib_prefix=unknown
 
13558
hardcode_into_libs=no
 
13559
 
 
13560
# when you set need_version to no, make sure it does not cause -set_version
 
13561
# flags to be left without arguments
 
13562
need_version=unknown
 
13563
 
 
13564
case $host_os in
 
13565
aix3*)
 
13566
  version_type=linux
 
13567
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13568
  shlibpath_var=LIBPATH
 
13569
 
 
13570
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13571
  soname_spec='${libname}${release}${shared_ext}$major'
 
13572
  ;;
 
13573
 
 
13574
aix4* | aix5*)
 
13575
  version_type=linux
 
13576
  need_lib_prefix=no
 
13577
  need_version=no
 
13578
  hardcode_into_libs=yes
 
13579
  if test "$host_cpu" = ia64; then
 
13580
    # AIX 5 supports IA64
 
13581
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13582
    shlibpath_var=LD_LIBRARY_PATH
 
13583
  else
 
13584
    # With GCC up to 2.95.x, collect2 would create an import file
 
13585
    # for dependence libraries.  The import file would start with
 
13586
    # the line `#! .'.  This would cause the generated library to
 
13587
    # depend on `.', always an invalid library.  This was fixed in
 
13588
    # development snapshots of GCC prior to 3.0.
 
13589
    case $host_os in
 
13590
      aix4 | aix4.[01] | aix4.[01].*)
 
13591
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13592
           echo ' yes '
 
13593
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13594
        :
 
13595
      else
 
13596
        can_build_shared=no
 
13597
      fi
 
13598
      ;;
 
13599
    esac
 
13600
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13601
    # soname into executable. Probably we can add versioning support to
 
13602
    # collect2, so additional links can be useful in future.
 
13603
    if test "$aix_use_runtimelinking" = yes; then
 
13604
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13605
      # instead of lib<name>.a to let people know that these are not
 
13606
      # typical AIX shared libraries.
 
13607
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13608
    else
 
13609
      # We preserve .a as extension for shared libraries through AIX4.2
 
13610
      # and later when we are not doing run time linking.
 
13611
      library_names_spec='${libname}${release}.a $libname.a'
 
13612
      soname_spec='${libname}${release}${shared_ext}$major'
 
13613
    fi
 
13614
    shlibpath_var=LIBPATH
 
13615
  fi
 
13616
  ;;
 
13617
 
 
13618
amigaos*)
 
13619
  library_names_spec='$libname.ixlibrary $libname.a'
 
13620
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13621
  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'
 
13622
  ;;
 
13623
 
 
13624
beos*)
 
13625
  library_names_spec='${libname}${shared_ext}'
 
13626
  dynamic_linker="$host_os ld.so"
 
13627
  shlibpath_var=LIBRARY_PATH
 
13628
  ;;
 
13629
 
 
13630
bsdi4*)
 
13631
  version_type=linux
 
13632
  need_version=no
 
13633
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13634
  soname_spec='${libname}${release}${shared_ext}$major'
 
13635
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13636
  shlibpath_var=LD_LIBRARY_PATH
 
13637
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13638
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13639
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13640
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13641
  # libtool to hard-code these into programs
 
13642
  ;;
 
13643
 
 
13644
cygwin* | mingw* | pw32*)
 
13645
  version_type=windows
 
13646
  shrext=".dll"
 
13647
  need_version=no
 
13648
  need_lib_prefix=no
 
13649
 
 
13650
  case $GCC,$host_os in
 
13651
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13652
    library_names_spec='$libname.dll.a'
 
13653
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13654
    postinstall_cmds='base_file=`basename \${file}`~
 
13655
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13656
      dldir=$destdir/`dirname \$dlpath`~
 
13657
      test -d \$dldir || mkdir -p \$dldir~
 
13658
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13659
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13660
      dlpath=$dir/\$dldll~
 
13661
       $rm \$dlpath'
 
13662
    shlibpath_overrides_runpath=yes
 
13663
 
 
13664
    case $host_os in
 
13665
    cygwin*)
 
13666
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13667
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13668
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13669
      ;;
 
13670
    mingw*)
 
13671
      # MinGW DLLs use traditional 'lib' prefix
 
13672
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13673
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13674
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13675
        # It is most probably a Windows format PATH printed by
 
13676
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13677
        # path with ; separators, and with drive letters. We can handle the
 
13678
        # drive letters (cygwin fileutils understands them), so leave them,
 
13679
        # especially as we might pass files found there to a mingw objdump,
 
13680
        # which wouldn't understand a cygwinified path. Ahh.
 
13681
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13682
      else
 
13683
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13684
      fi
 
13685
      ;;
 
13686
    pw32*)
 
13687
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13688
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13689
      ;;
 
13690
    esac
 
13691
    ;;
 
13692
 
 
13693
  *)
 
13694
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13695
    ;;
 
13696
  esac
 
13697
  dynamic_linker='Win32 ld.exe'
 
13698
  # FIXME: first we should search . and the directory the executable is in
 
13699
  shlibpath_var=PATH
 
13700
  ;;
 
13701
 
 
13702
darwin* | rhapsody*)
 
13703
  dynamic_linker="$host_os dyld"
 
13704
  version_type=darwin
 
13705
  need_lib_prefix=no
 
13706
  need_version=no
 
13707
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13708
  soname_spec='${libname}${release}${major}$shared_ext'
 
13709
  shlibpath_overrides_runpath=yes
 
13710
  shlibpath_var=DYLD_LIBRARY_PATH
 
13711
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
13712
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
13713
  if test "$GCC" = yes; then
 
13714
    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"`
 
13715
  else
 
13716
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
13717
  fi
 
13718
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13719
  ;;
 
13720
 
 
13721
dgux*)
 
13722
  version_type=linux
 
13723
  need_lib_prefix=no
 
13724
  need_version=no
 
13725
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13726
  soname_spec='${libname}${release}${shared_ext}$major'
 
13727
  shlibpath_var=LD_LIBRARY_PATH
 
13728
  ;;
 
13729
 
 
13730
freebsd1*)
 
13731
  dynamic_linker=no
 
13732
  ;;
 
13733
 
 
13734
kfreebsd*-gnu)
 
13735
  version_type=linux
 
13736
  need_lib_prefix=no
 
13737
  need_version=no
 
13738
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13739
  soname_spec='${libname}${release}${shared_ext}$major'
 
13740
  shlibpath_var=LD_LIBRARY_PATH
 
13741
  shlibpath_overrides_runpath=no
 
13742
  hardcode_into_libs=yes
 
13743
  dynamic_linker='GNU ld.so'
 
13744
  ;;
 
13745
 
 
13746
freebsd*)
 
13747
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
13748
  version_type=freebsd-$objformat
 
13749
  case $version_type in
 
13750
    freebsd-elf*)
 
13751
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13752
      need_version=no
 
13753
      need_lib_prefix=no
 
13754
      ;;
 
13755
    freebsd-*)
 
13756
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13757
      need_version=yes
 
13758
      ;;
 
13759
  esac
 
13760
  shlibpath_var=LD_LIBRARY_PATH
 
13761
  case $host_os in
 
13762
  freebsd2*)
 
13763
    shlibpath_overrides_runpath=yes
 
13764
    ;;
 
13765
  freebsd3.01* | freebsdelf3.01*)
 
13766
    shlibpath_overrides_runpath=yes
 
13767
    hardcode_into_libs=yes
 
13768
    ;;
 
13769
  *) # from 3.2 on
 
13770
    shlibpath_overrides_runpath=no
 
13771
    hardcode_into_libs=yes
 
13772
    ;;
 
13773
  esac
 
13774
  ;;
 
13775
 
 
13776
gnu*)
 
13777
  version_type=linux
 
13778
  need_lib_prefix=no
 
13779
  need_version=no
 
13780
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13781
  soname_spec='${libname}${release}${shared_ext}$major'
 
13782
  shlibpath_var=LD_LIBRARY_PATH
 
13783
  hardcode_into_libs=yes
 
13784
  ;;
 
13785
 
 
13786
hpux9* | hpux10* | hpux11*)
 
13787
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13788
  # link against other versions.
 
13789
  version_type=sunos
 
13790
  need_lib_prefix=no
 
13791
  need_version=no
 
13792
  case "$host_cpu" in
 
13793
  ia64*)
 
13794
    shrext='.so'
 
13795
    hardcode_into_libs=yes
 
13796
    dynamic_linker="$host_os dld.so"
 
13797
    shlibpath_var=LD_LIBRARY_PATH
 
13798
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13799
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13800
    soname_spec='${libname}${release}${shared_ext}$major'
 
13801
    if test "X$HPUX_IA64_MODE" = X32; then
 
13802
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13803
    else
 
13804
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13805
    fi
 
13806
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13807
    ;;
 
13808
   hppa*64*)
 
13809
     shrext='.sl'
 
13810
     hardcode_into_libs=yes
 
13811
     dynamic_linker="$host_os dld.sl"
 
13812
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13813
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13814
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13815
     soname_spec='${libname}${release}${shared_ext}$major'
 
13816
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13817
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13818
     ;;
 
13819
   *)
 
13820
    shrext='.sl'
 
13821
    dynamic_linker="$host_os dld.sl"
 
13822
    shlibpath_var=SHLIB_PATH
 
13823
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13824
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13825
    soname_spec='${libname}${release}${shared_ext}$major'
 
13826
    ;;
 
13827
  esac
 
13828
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13829
  postinstall_cmds='chmod 555 $lib'
 
13830
  ;;
 
13831
 
 
13832
irix5* | irix6* | nonstopux*)
 
13833
  case $host_os in
 
13834
    nonstopux*) version_type=nonstopux ;;
 
13835
    *)
 
13836
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13837
                version_type=linux
 
13838
        else
 
13839
                version_type=irix
 
13840
        fi ;;
 
13841
  esac
 
13842
  need_lib_prefix=no
 
13843
  need_version=no
 
13844
  soname_spec='${libname}${release}${shared_ext}$major'
 
13845
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13846
  case $host_os in
 
13847
  irix5* | nonstopux*)
 
13848
    libsuff= shlibsuff=
 
13849
    ;;
 
13850
  *)
 
13851
    case $LD in # libtool.m4 will add one of these switches to LD
 
13852
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13853
      libsuff= shlibsuff= libmagic=32-bit;;
 
13854
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13855
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13856
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13857
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13858
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13859
    esac
 
13860
    ;;
 
13861
  esac
 
13862
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13863
  shlibpath_overrides_runpath=no
 
13864
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13865
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13866
  hardcode_into_libs=yes
 
13867
  ;;
 
13868
 
 
13869
# No shared lib support for Linux oldld, aout, or coff.
 
13870
linux*oldld* | linux*aout* | linux*coff*)
 
13871
  dynamic_linker=no
 
13872
  ;;
 
13873
 
 
13874
# This must be Linux ELF.
 
13875
linux*)
 
13876
  version_type=linux
 
13877
  need_lib_prefix=no
 
13878
  need_version=no
 
13879
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13880
  soname_spec='${libname}${release}${shared_ext}$major'
 
13881
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13882
  shlibpath_var=LD_LIBRARY_PATH
 
13883
  shlibpath_overrides_runpath=no
 
13884
  # This implies no fast_install, which is unacceptable.
 
13885
  # Some rework will be needed to allow for fast_install
 
13886
  # before this can be enabled.
 
13887
  hardcode_into_libs=yes
 
13888
 
 
13889
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13890
  # powerpc, because MkLinux only supported shared libraries with the
 
13891
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13892
  # most powerpc-linux boxes support dynamic linking these days and
 
13893
  # people can always --disable-shared, the test was removed, and we
 
13894
  # assume the GNU/Linux dynamic linker is in use.
 
13895
  dynamic_linker='GNU/Linux ld.so'
 
13896
  ;;
 
13897
 
 
13898
netbsd*)
 
13899
  version_type=sunos
 
13900
  need_lib_prefix=no
 
13901
  need_version=no
 
13902
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13903
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13904
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13905
    dynamic_linker='NetBSD (a.out) ld.so'
 
13906
  else
 
13907
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
13908
    soname_spec='${libname}${release}${shared_ext}$major'
 
13909
    dynamic_linker='NetBSD ld.elf_so'
 
13910
  fi
 
13911
  shlibpath_var=LD_LIBRARY_PATH
 
13912
  shlibpath_overrides_runpath=yes
 
13913
  hardcode_into_libs=yes
 
13914
  ;;
 
13915
 
 
13916
newsos6)
 
13917
  version_type=linux
 
13918
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13919
  shlibpath_var=LD_LIBRARY_PATH
 
13920
  shlibpath_overrides_runpath=yes
 
13921
  ;;
 
13922
 
 
13923
nto-qnx*)
 
13924
  version_type=linux
 
13925
  need_lib_prefix=no
 
13926
  need_version=no
 
13927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13928
  soname_spec='${libname}${release}${shared_ext}$major'
 
13929
  shlibpath_var=LD_LIBRARY_PATH
 
13930
  shlibpath_overrides_runpath=yes
 
13931
  ;;
 
13932
 
 
13933
openbsd*)
 
13934
  version_type=sunos
 
13935
  need_lib_prefix=no
 
13936
  need_version=no
 
13937
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13938
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13939
  shlibpath_var=LD_LIBRARY_PATH
 
13940
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13941
    case $host_os in
 
13942
      openbsd2.[89] | openbsd2.[89].*)
 
13943
        shlibpath_overrides_runpath=no
 
13944
        ;;
 
13945
      *)
 
13946
        shlibpath_overrides_runpath=yes
 
13947
        ;;
 
13948
      esac
 
13949
  else
 
13950
    shlibpath_overrides_runpath=yes
 
13951
  fi
 
13952
  ;;
 
13953
 
 
13954
os2*)
 
13955
  libname_spec='$name'
 
13956
  shrext=".dll"
 
13957
  need_lib_prefix=no
 
13958
  library_names_spec='$libname${shared_ext} $libname.a'
 
13959
  dynamic_linker='OS/2 ld.exe'
 
13960
  shlibpath_var=LIBPATH
 
13961
  ;;
 
13962
 
 
13963
osf3* | osf4* | osf5*)
 
13964
  version_type=osf
 
13965
  need_lib_prefix=no
 
13966
  need_version=no
 
13967
  soname_spec='${libname}${release}${shared_ext}$major'
 
13968
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13969
  shlibpath_var=LD_LIBRARY_PATH
 
13970
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13971
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13972
  ;;
 
13973
 
 
13974
sco3.2v5*)
 
13975
  version_type=osf
 
13976
  soname_spec='${libname}${release}${shared_ext}$major'
 
13977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13978
  shlibpath_var=LD_LIBRARY_PATH
 
13979
  ;;
 
13980
 
 
13981
solaris*)
 
13982
  version_type=linux
 
13983
  need_lib_prefix=no
 
13984
  need_version=no
 
13985
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13986
  soname_spec='${libname}${release}${shared_ext}$major'
 
13987
  shlibpath_var=LD_LIBRARY_PATH
 
13988
  shlibpath_overrides_runpath=yes
 
13989
  hardcode_into_libs=yes
 
13990
  # ldd complains unless libraries are executable
 
13991
  postinstall_cmds='chmod +x $lib'
 
13992
  ;;
 
13993
 
 
13994
sunos4*)
 
13995
  version_type=sunos
 
13996
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13997
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13998
  shlibpath_var=LD_LIBRARY_PATH
 
13999
  shlibpath_overrides_runpath=yes
 
14000
  if test "$with_gnu_ld" = yes; then
 
14001
    need_lib_prefix=no
 
14002
  fi
 
14003
  need_version=yes
 
14004
  ;;
 
14005
 
 
14006
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14007
  version_type=linux
 
14008
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14009
  soname_spec='${libname}${release}${shared_ext}$major'
 
14010
  shlibpath_var=LD_LIBRARY_PATH
 
14011
  case $host_vendor in
 
14012
    sni)
 
14013
      shlibpath_overrides_runpath=no
 
14014
      need_lib_prefix=no
 
14015
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14016
      runpath_var=LD_RUN_PATH
 
14017
      ;;
 
14018
    siemens)
 
14019
      need_lib_prefix=no
 
14020
      ;;
 
14021
    motorola)
 
14022
      need_lib_prefix=no
 
14023
      need_version=no
 
14024
      shlibpath_overrides_runpath=no
 
14025
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14026
      ;;
 
14027
  esac
 
14028
  ;;
 
14029
 
 
14030
sysv4*MP*)
 
14031
  if test -d /usr/nec ;then
 
14032
    version_type=linux
 
14033
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14034
    soname_spec='$libname${shared_ext}.$major'
 
14035
    shlibpath_var=LD_LIBRARY_PATH
 
14036
  fi
 
14037
  ;;
 
14038
 
 
14039
uts4*)
 
14040
  version_type=linux
 
14041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14042
  soname_spec='${libname}${release}${shared_ext}$major'
 
14043
  shlibpath_var=LD_LIBRARY_PATH
 
14044
  ;;
 
14045
 
 
14046
*)
 
14047
  dynamic_linker=no
 
14048
  ;;
 
14049
esac
 
14050
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14051
echo "${ECHO_T}$dynamic_linker" >&6
 
14052
test "$dynamic_linker" = no && can_build_shared=no
 
14053
 
 
14054
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14055
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14056
hardcode_action_F77=
 
14057
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14058
   test -n "$runpath_var F77" || \
 
14059
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
14060
 
 
14061
  # We can hardcode non-existant directories.
 
14062
  if test "$hardcode_direct_F77" != no &&
 
14063
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14064
     # have to relink, otherwise we might link with an installed library
 
14065
     # when we should be linking with a yet-to-be-installed one
 
14066
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
14067
     test "$hardcode_minus_L_F77" != no; then
 
14068
    # Linking always hardcodes the temporary library directory.
 
14069
    hardcode_action_F77=relink
 
14070
  else
 
14071
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14072
    hardcode_action_F77=immediate
 
14073
  fi
 
14074
else
 
14075
  # We cannot hardcode anything, or else we can only hardcode existing
 
14076
  # directories.
 
14077
  hardcode_action_F77=unsupported
 
14078
fi
 
14079
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
14080
echo "${ECHO_T}$hardcode_action_F77" >&6
 
14081
 
 
14082
if test "$hardcode_action_F77" = relink; then
 
14083
  # Fast installation is not supported
 
14084
  enable_fast_install=no
 
14085
elif test "$shlibpath_overrides_runpath" = yes ||
 
14086
     test "$enable_shared" = no; then
 
14087
  # Fast installation is not necessary
 
14088
  enable_fast_install=needless
 
14089
fi
 
14090
 
 
14091
striplib=
 
14092
old_striplib=
 
14093
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14094
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14095
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14096
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14097
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14098
  echo "$as_me:$LINENO: result: yes" >&5
 
14099
echo "${ECHO_T}yes" >&6
 
14100
else
 
14101
# FIXME - insert some real tests, host_os isn't really good enough
 
14102
  case $host_os in
 
14103
   darwin*)
 
14104
       if test -n "$STRIP" ; then
 
14105
         striplib="$STRIP -x"
 
14106
         echo "$as_me:$LINENO: result: yes" >&5
 
14107
echo "${ECHO_T}yes" >&6
 
14108
       else
 
14109
  echo "$as_me:$LINENO: result: no" >&5
 
14110
echo "${ECHO_T}no" >&6
 
14111
fi
 
14112
       ;;
 
14113
   *)
 
14114
  echo "$as_me:$LINENO: result: no" >&5
 
14115
echo "${ECHO_T}no" >&6
 
14116
    ;;
 
14117
  esac
 
14118
fi
 
14119
 
 
14120
 
 
14121
 
 
14122
# The else clause should only fire when bootstrapping the
 
14123
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14124
# with your package, and you will get complaints that there are
 
14125
# no rules to generate ltmain.sh.
 
14126
if test -f "$ltmain"; then
 
14127
  # See if we are running on zsh, and set the options which allow our commands through
 
14128
  # without removal of \ escapes.
 
14129
  if test -n "${ZSH_VERSION+set}" ; then
 
14130
    setopt NO_GLOB_SUBST
 
14131
  fi
 
14132
  # Now quote all the things that may contain metacharacters while being
 
14133
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14134
  # variables and quote the copies for generation of the libtool script.
 
14135
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
14136
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14137
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14138
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14139
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14140
    lt_cv_sys_global_symbol_to_c_name_address \
 
14141
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14142
    old_postinstall_cmds old_postuninstall_cmds \
 
14143
    compiler_F77 \
 
14144
    CC_F77 \
 
14145
    LD_F77 \
 
14146
    lt_prog_compiler_wl_F77 \
 
14147
    lt_prog_compiler_pic_F77 \
 
14148
    lt_prog_compiler_static_F77 \
 
14149
    lt_prog_compiler_no_builtin_flag_F77 \
 
14150
    export_dynamic_flag_spec_F77 \
 
14151
    thread_safe_flag_spec_F77 \
 
14152
    whole_archive_flag_spec_F77 \
 
14153
    enable_shared_with_static_runtimes_F77 \
 
14154
    old_archive_cmds_F77 \
 
14155
    old_archive_from_new_cmds_F77 \
 
14156
    predep_objects_F77 \
 
14157
    postdep_objects_F77 \
 
14158
    predeps_F77 \
 
14159
    postdeps_F77 \
 
14160
    compiler_lib_search_path_F77 \
 
14161
    archive_cmds_F77 \
 
14162
    archive_expsym_cmds_F77 \
 
14163
    postinstall_cmds_F77 \
 
14164
    postuninstall_cmds_F77 \
 
14165
    old_archive_from_expsyms_cmds_F77 \
 
14166
    allow_undefined_flag_F77 \
 
14167
    no_undefined_flag_F77 \
 
14168
    export_symbols_cmds_F77 \
 
14169
    hardcode_libdir_flag_spec_F77 \
 
14170
    hardcode_libdir_flag_spec_ld_F77 \
 
14171
    hardcode_libdir_separator_F77 \
 
14172
    hardcode_automatic_F77 \
 
14173
    module_cmds_F77 \
 
14174
    module_expsym_cmds_F77 \
 
14175
    lt_cv_prog_compiler_c_o_F77 \
 
14176
    exclude_expsyms_F77 \
 
14177
    include_expsyms_F77; do
 
14178
 
 
14179
    case $var in
 
14180
    old_archive_cmds_F77 | \
 
14181
    old_archive_from_new_cmds_F77 | \
 
14182
    archive_cmds_F77 | \
 
14183
    archive_expsym_cmds_F77 | \
 
14184
    module_cmds_F77 | \
 
14185
    module_expsym_cmds_F77 | \
 
14186
    old_archive_from_expsyms_cmds_F77 | \
 
14187
    export_symbols_cmds_F77 | \
 
14188
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14189
    postinstall_cmds | postuninstall_cmds | \
 
14190
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14191
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14192
      # Double-quote double-evaled strings.
 
14193
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14194
      ;;
 
14195
    *)
 
14196
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14197
      ;;
 
14198
    esac
 
14199
  done
 
14200
 
 
14201
  case $lt_echo in
 
14202
  *'\$0 --fallback-echo"')
 
14203
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14204
    ;;
 
14205
  esac
 
14206
 
 
14207
cfgfile="$ofile"
 
14208
 
 
14209
  cat <<__EOF__ >> "$cfgfile"
 
14210
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14211
 
 
14212
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14213
 
 
14214
# Shell to use when invoking shell scripts.
 
14215
SHELL=$lt_SHELL
 
14216
 
 
14217
# Whether or not to build shared libraries.
 
14218
build_libtool_libs=$enable_shared
 
14219
 
 
14220
# Whether or not to build static libraries.
 
14221
build_old_libs=$enable_static
 
14222
 
 
14223
# Whether or not to add -lc for building shared libraries.
 
14224
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
14225
 
 
14226
# Whether or not to disallow shared libs when runtime libs are static
 
14227
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
14228
 
 
14229
# Whether or not to optimize for fast installation.
 
14230
fast_install=$enable_fast_install
 
14231
 
 
14232
# The host system.
 
14233
host_alias=$host_alias
 
14234
host=$host
 
14235
 
 
14236
# An echo program that does not interpret backslashes.
 
14237
echo=$lt_echo
 
14238
 
 
14239
# The archiver.
 
14240
AR=$lt_AR
 
14241
AR_FLAGS=$lt_AR_FLAGS
 
14242
 
 
14243
# A C compiler.
 
14244
LTCC=$lt_LTCC
 
14245
 
 
14246
# A language-specific compiler.
 
14247
CC=$lt_compiler_F77
 
14248
 
 
14249
# Is the compiler the GNU C compiler?
 
14250
with_gcc=$GCC_F77
 
14251
 
 
14252
# An ERE matcher.
 
14253
EGREP=$lt_EGREP
 
14254
 
 
14255
# The linker used to build libraries.
 
14256
LD=$lt_LD_F77
 
14257
 
 
14258
# Whether we need hard or soft links.
 
14259
LN_S=$lt_LN_S
 
14260
 
 
14261
# A BSD-compatible nm program.
 
14262
NM=$lt_NM
 
14263
 
 
14264
# A symbol stripping program
 
14265
STRIP="$STRIP"
 
14266
 
 
14267
# Used to examine libraries when file_magic_cmd begins "file"
 
14268
MAGIC_CMD=$MAGIC_CMD
 
14269
 
 
14270
# Used on cygwin: DLL creation program.
 
14271
DLLTOOL="$DLLTOOL"
 
14272
 
 
14273
# Used on cygwin: object dumper.
 
14274
OBJDUMP="$OBJDUMP"
 
14275
 
 
14276
# Used on cygwin: assembler.
 
14277
AS="$AS"
 
14278
 
 
14279
# The name of the directory that contains temporary libtool files.
 
14280
objdir=$objdir
 
14281
 
 
14282
# How to create reloadable object files.
 
14283
reload_flag=$lt_reload_flag
 
14284
reload_cmds=$lt_reload_cmds
 
14285
 
 
14286
# How to pass a linker flag through the compiler.
 
14287
wl=$lt_lt_prog_compiler_wl_F77
 
14288
 
 
14289
# Object file suffix (normally "o").
 
14290
objext="$ac_objext"
 
14291
 
 
14292
# Old archive suffix (normally "a").
 
14293
libext="$libext"
 
14294
 
 
14295
# Shared library suffix (normally ".so").
 
14296
shrext='$shrext'
 
14297
 
 
14298
# Executable file suffix (normally "").
 
14299
exeext="$exeext"
 
14300
 
 
14301
# Additional compiler flags for building library objects.
 
14302
pic_flag=$lt_lt_prog_compiler_pic_F77
 
14303
pic_mode=$pic_mode
 
14304
 
 
14305
# What is the maximum length of a command?
 
14306
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14307
 
 
14308
# Does compiler simultaneously support -c and -o options?
 
14309
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
14310
 
 
14311
# Must we lock files when doing compilation ?
 
14312
need_locks=$lt_need_locks
 
14313
 
 
14314
# Do we need the lib prefix for modules?
 
14315
need_lib_prefix=$need_lib_prefix
 
14316
 
 
14317
# Do we need a version for libraries?
 
14318
need_version=$need_version
 
14319
 
 
14320
# Whether dlopen is supported.
 
14321
dlopen_support=$enable_dlopen
 
14322
 
 
14323
# Whether dlopen of programs is supported.
 
14324
dlopen_self=$enable_dlopen_self
 
14325
 
 
14326
# Whether dlopen of statically linked programs is supported.
 
14327
dlopen_self_static=$enable_dlopen_self_static
 
14328
 
 
14329
# Compiler flag to prevent dynamic linking.
 
14330
link_static_flag=$lt_lt_prog_compiler_static_F77
 
14331
 
 
14332
# Compiler flag to turn off builtin functions.
 
14333
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
14334
 
 
14335
# Compiler flag to allow reflexive dlopens.
 
14336
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
14337
 
 
14338
# Compiler flag to generate shared objects directly from archives.
 
14339
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
14340
 
 
14341
# Compiler flag to generate thread-safe objects.
 
14342
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
14343
 
 
14344
# Library versioning type.
 
14345
version_type=$version_type
 
14346
 
 
14347
# Format of library name prefix.
 
14348
libname_spec=$lt_libname_spec
 
14349
 
 
14350
# List of archive names.  First name is the real one, the rest are links.
 
14351
# The last name is the one that the linker finds with -lNAME.
 
14352
library_names_spec=$lt_library_names_spec
 
14353
 
 
14354
# The coded name of the library, if different from the real name.
 
14355
soname_spec=$lt_soname_spec
 
14356
 
 
14357
# Commands used to build and install an old-style archive.
 
14358
RANLIB=$lt_RANLIB
 
14359
old_archive_cmds=$lt_old_archive_cmds_F77
 
14360
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14361
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14362
 
 
14363
# Create an old-style archive from a shared archive.
 
14364
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
14365
 
 
14366
# Create a temporary old-style archive to link instead of a shared archive.
 
14367
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
14368
 
 
14369
# Commands used to build and install a shared archive.
 
14370
archive_cmds=$lt_archive_cmds_F77
 
14371
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
14372
postinstall_cmds=$lt_postinstall_cmds
 
14373
postuninstall_cmds=$lt_postuninstall_cmds
 
14374
 
 
14375
# Commands used to build a loadable module (assumed same as above if empty)
 
14376
module_cmds=$lt_module_cmds_F77
 
14377
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
14378
 
 
14379
# Commands to strip libraries.
 
14380
old_striplib=$lt_old_striplib
 
14381
striplib=$lt_striplib
 
14382
 
 
14383
# Dependencies to place before the objects being linked to create a
 
14384
# shared library.
 
14385
predep_objects=$lt_predep_objects_F77
 
14386
 
 
14387
# Dependencies to place after the objects being linked to create a
 
14388
# shared library.
 
14389
postdep_objects=$lt_postdep_objects_F77
 
14390
 
 
14391
# Dependencies to place before the objects being linked to create a
 
14392
# shared library.
 
14393
predeps=$lt_predeps_F77
 
14394
 
 
14395
# Dependencies to place after the objects being linked to create a
 
14396
# shared library.
 
14397
postdeps=$lt_postdeps_F77
 
14398
 
 
14399
# The library search path used internally by the compiler when linking
 
14400
# a shared library.
 
14401
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
14402
 
 
14403
# Method to check whether dependent libraries are shared objects.
 
14404
deplibs_check_method=$lt_deplibs_check_method
 
14405
 
 
14406
# Command to use when deplibs_check_method == file_magic.
 
14407
file_magic_cmd=$lt_file_magic_cmd
 
14408
 
 
14409
# Flag that allows shared libraries with undefined symbols to be built.
 
14410
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
14411
 
 
14412
# Flag that forces no undefined symbols.
 
14413
no_undefined_flag=$lt_no_undefined_flag_F77
 
14414
 
 
14415
# Commands used to finish a libtool library installation in a directory.
 
14416
finish_cmds=$lt_finish_cmds
 
14417
 
 
14418
# Same as above, but a single script fragment to be evaled but not shown.
 
14419
finish_eval=$lt_finish_eval
 
14420
 
 
14421
# Take the output of nm and produce a listing of raw symbols and C names.
 
14422
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14423
 
 
14424
# Transform the output of nm in a proper C declaration
 
14425
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14426
 
 
14427
# Transform the output of nm in a C name address pair
 
14428
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14429
 
 
14430
# This is the shared library runtime path variable.
 
14431
runpath_var=$runpath_var
 
14432
 
 
14433
# This is the shared library path variable.
 
14434
shlibpath_var=$shlibpath_var
 
14435
 
 
14436
# Is shlibpath searched before the hard-coded library search path?
 
14437
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14438
 
 
14439
# How to hardcode a shared library path into an executable.
 
14440
hardcode_action=$hardcode_action_F77
 
14441
 
 
14442
# Whether we should hardcode library paths into libraries.
 
14443
hardcode_into_libs=$hardcode_into_libs
 
14444
 
 
14445
# Flag to hardcode \$libdir into a binary during linking.
 
14446
# This must work even if \$libdir does not exist.
 
14447
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
14448
 
 
14449
# If ld is used when linking, flag to hardcode \$libdir into
 
14450
# a binary during linking. This must work even if \$libdir does
 
14451
# not exist.
 
14452
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
14453
 
 
14454
# Whether we need a single -rpath flag with a separated argument.
 
14455
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
14456
 
 
14457
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14458
# resulting binary.
 
14459
hardcode_direct=$hardcode_direct_F77
 
14460
 
 
14461
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14462
# resulting binary.
 
14463
hardcode_minus_L=$hardcode_minus_L_F77
 
14464
 
 
14465
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14466
# the resulting binary.
 
14467
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
14468
 
 
14469
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14470
# and all subsequent libraries and executables linked against it.
 
14471
hardcode_automatic=$hardcode_automatic_F77
 
14472
 
 
14473
# Variables whose values should be saved in libtool wrapper scripts and
 
14474
# restored at relink time.
 
14475
variables_saved_for_relink="$variables_saved_for_relink"
 
14476
 
 
14477
# Whether libtool must link a program against all its dependency libraries.
 
14478
link_all_deplibs=$link_all_deplibs_F77
 
14479
 
 
14480
# Compile-time system search path for libraries
 
14481
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14482
 
 
14483
# Run-time system search path for libraries
 
14484
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14485
 
 
14486
# Fix the shell variable \$srcfile for the compiler.
 
14487
fix_srcfile_path="$fix_srcfile_path_F77"
 
14488
 
 
14489
# Set to yes if exported symbols are required.
 
14490
always_export_symbols=$always_export_symbols_F77
 
14491
 
 
14492
# The commands to list exported symbols.
 
14493
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
14494
 
 
14495
# The commands to extract the exported symbol list from a shared archive.
 
14496
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14497
 
 
14498
# Symbols that should not be listed in the preloaded symbols.
 
14499
exclude_expsyms=$lt_exclude_expsyms_F77
 
14500
 
 
14501
# Symbols that must always be exported.
 
14502
include_expsyms=$lt_include_expsyms_F77
 
14503
 
 
14504
# ### END LIBTOOL TAG CONFIG: $tagname
 
14505
 
 
14506
__EOF__
 
14507
 
 
14508
 
 
14509
else
 
14510
  # If there is no Makefile yet, we rely on a make rule to execute
 
14511
  # `config.status --recheck' to rerun these tests and create the
 
14512
  # libtool script then.
 
14513
  test -f Makefile && make "$ltmain"
 
14514
fi
 
14515
 
 
14516
 
 
14517
ac_ext=c
 
14518
ac_cpp='$CPP $CPPFLAGS'
 
14519
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14520
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14521
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14522
 
 
14523
CC="$lt_save_CC"
 
14524
 
 
14525
        else
 
14526
          tagname=""
 
14527
        fi
 
14528
        ;;
 
14529
 
 
14530
      GCJ)
 
14531
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
14532
 
 
14533
 
 
14534
 
 
14535
# Source file extension for Java test sources.
 
14536
ac_ext=java
 
14537
 
 
14538
# Object file extension for compiled Java test sources.
 
14539
objext=o
 
14540
objext_GCJ=$objext
 
14541
 
 
14542
# Code to be used in simple compile tests
 
14543
lt_simple_compile_test_code="class foo {}\n"
 
14544
 
 
14545
# Code to be used in simple link tests
 
14546
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
14547
 
 
14548
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14549
 
 
14550
# If no C compiler was specified, use CC.
 
14551
LTCC=${LTCC-"$CC"}
 
14552
 
 
14553
# Allow CC to be a program name with arguments.
 
14554
compiler=$CC
 
14555
 
 
14556
 
 
14557
# Allow CC to be a program name with arguments.
 
14558
lt_save_CC="$CC"
 
14559
CC=${GCJ-"gcj"}
 
14560
compiler=$CC
 
14561
compiler_GCJ=$CC
 
14562
 
 
14563
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
14564
archive_cmds_need_lc_GCJ=no
 
14565
 
 
14566
 
 
14567
lt_prog_compiler_no_builtin_flag_GCJ=
 
14568
 
 
14569
if test "$GCC" = yes; then
 
14570
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
14571
 
 
14572
 
 
14573
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
14574
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
14575
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
14576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14577
else
 
14578
  lt_cv_prog_compiler_rtti_exceptions=no
 
14579
  ac_outfile=conftest.$ac_objext
 
14580
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14581
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
14582
   # Insert the option either (1) after the last *FLAGS variable, or
 
14583
   # (2) before a word containing "conftest.", or (3) at the end.
 
14584
   # Note that $ac_compile itself does not contain backslashes and begins
 
14585
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14586
   # The option is referenced via a variable to avoid confusing sed.
 
14587
   lt_compile=`echo "$ac_compile" | $SED \
 
14588
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14589
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14590
   -e 's:$: $lt_compiler_flag:'`
 
14591
   (eval echo "\"\$as_me:14591: $lt_compile\"" >&5)
 
14592
   (eval "$lt_compile" 2>conftest.err)
 
14593
   ac_status=$?
 
14594
   cat conftest.err >&5
 
14595
   echo "$as_me:14595: \$? = $ac_status" >&5
 
14596
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14597
     # The compiler can only warn and ignore the option if not recognized
 
14598
     # So say no if there are warnings
 
14599
     if test ! -s conftest.err; then
 
14600
       lt_cv_prog_compiler_rtti_exceptions=yes
 
14601
     fi
 
14602
   fi
 
14603
   $rm conftest*
 
14604
 
 
14605
fi
 
14606
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
14607
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
14608
 
 
14609
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
14610
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
14611
else
 
14612
    :
 
14613
fi
 
14614
 
 
14615
fi
 
14616
 
 
14617
lt_prog_compiler_wl_GCJ=
 
14618
lt_prog_compiler_pic_GCJ=
 
14619
lt_prog_compiler_static_GCJ=
 
14620
 
 
14621
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14622
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14623
 
 
14624
  if test "$GCC" = yes; then
 
14625
    lt_prog_compiler_wl_GCJ='-Wl,'
 
14626
    lt_prog_compiler_static_GCJ='-static'
 
14627
 
 
14628
    case $host_os in
 
14629
      aix*)
 
14630
      # All AIX code is PIC.
 
14631
      if test "$host_cpu" = ia64; then
 
14632
        # AIX 5 now supports IA64 processor
 
14633
        lt_prog_compiler_static_GCJ='-Bstatic'
 
14634
      fi
 
14635
      ;;
 
14636
 
 
14637
    amigaos*)
 
14638
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14639
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14640
      # like `-m68040'.
 
14641
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
14642
      ;;
 
14643
 
 
14644
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14645
      # PIC is the default for these OSes.
 
14646
      ;;
 
14647
 
 
14648
    mingw* | pw32* | os2*)
 
14649
      # This hack is so that the source file can tell whether it is being
 
14650
      # built for inclusion in a dll (and should export symbols for example).
 
14651
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
14652
      ;;
 
14653
 
 
14654
    darwin* | rhapsody*)
 
14655
      # PIC is the default on this platform
 
14656
      # Common symbols not allowed in MH_DYLIB files
 
14657
      lt_prog_compiler_pic_GCJ='-fno-common'
 
14658
      ;;
 
14659
 
 
14660
    msdosdjgpp*)
 
14661
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14662
      # on systems that don't support them.
 
14663
      lt_prog_compiler_can_build_shared_GCJ=no
 
14664
      enable_shared=no
 
14665
      ;;
 
14666
 
 
14667
    sysv4*MP*)
 
14668
      if test -d /usr/nec; then
 
14669
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
14670
      fi
 
14671
      ;;
 
14672
 
 
14673
    hpux*)
 
14674
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14675
      # not for PA HP-UX.
 
14676
      case "$host_cpu" in
 
14677
      hppa*64*|ia64*)
 
14678
        # +Z the default
 
14679
        ;;
 
14680
      *)
 
14681
        lt_prog_compiler_pic_GCJ='-fPIC'
 
14682
        ;;
 
14683
      esac
 
14684
      ;;
 
14685
 
 
14686
    *)
 
14687
      lt_prog_compiler_pic_GCJ='-fPIC'
 
14688
      ;;
 
14689
    esac
 
14690
  else
 
14691
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14692
    case $host_os in
 
14693
    aix*)
 
14694
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14695
      if test "$host_cpu" = ia64; then
 
14696
        # AIX 5 now supports IA64 processor
 
14697
        lt_prog_compiler_static_GCJ='-Bstatic'
 
14698
      else
 
14699
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
14700
      fi
 
14701
      ;;
 
14702
 
 
14703
    mingw* | pw32* | os2*)
 
14704
      # This hack is so that the source file can tell whether it is being
 
14705
      # built for inclusion in a dll (and should export symbols for example).
 
14706
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
14707
      ;;
 
14708
 
 
14709
    hpux9* | hpux10* | hpux11*)
 
14710
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14711
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14712
      # not for PA HP-UX.
 
14713
      case "$host_cpu" in
 
14714
      hppa*64*|ia64*)
 
14715
        # +Z the default
 
14716
        ;;
 
14717
      *)
 
14718
        lt_prog_compiler_pic_GCJ='+Z'
 
14719
        ;;
 
14720
      esac
 
14721
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14722
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
14723
      ;;
 
14724
 
 
14725
    irix5* | irix6* | nonstopux*)
 
14726
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14727
      # PIC (with -KPIC) is the default.
 
14728
      lt_prog_compiler_static_GCJ='-non_shared'
 
14729
      ;;
 
14730
 
 
14731
    newsos6)
 
14732
      lt_prog_compiler_pic_GCJ='-KPIC'
 
14733
      lt_prog_compiler_static_GCJ='-Bstatic'
 
14734
      ;;
 
14735
 
 
14736
    linux*)
 
14737
      case $CC in
 
14738
      icc* | ecc*)
 
14739
        lt_prog_compiler_wl_GCJ='-Wl,'
 
14740
        lt_prog_compiler_pic_GCJ='-KPIC'
 
14741
        lt_prog_compiler_static_GCJ='-static'
 
14742
        ;;
 
14743
      ccc*)
 
14744
        lt_prog_compiler_wl_GCJ='-Wl,'
 
14745
        # All Alpha code is PIC.
 
14746
        lt_prog_compiler_static_GCJ='-non_shared'
 
14747
        ;;
 
14748
      esac
 
14749
      ;;
 
14750
 
 
14751
    osf3* | osf4* | osf5*)
 
14752
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14753
      # All OSF/1 code is PIC.
 
14754
      lt_prog_compiler_static_GCJ='-non_shared'
 
14755
      ;;
 
14756
 
 
14757
    sco3.2v5*)
 
14758
      lt_prog_compiler_pic_GCJ='-Kpic'
 
14759
      lt_prog_compiler_static_GCJ='-dn'
 
14760
      ;;
 
14761
 
 
14762
    solaris*)
 
14763
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14764
      lt_prog_compiler_pic_GCJ='-KPIC'
 
14765
      lt_prog_compiler_static_GCJ='-Bstatic'
 
14766
      ;;
 
14767
 
 
14768
    sunos4*)
 
14769
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
14770
      lt_prog_compiler_pic_GCJ='-PIC'
 
14771
      lt_prog_compiler_static_GCJ='-Bstatic'
 
14772
      ;;
 
14773
 
 
14774
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14775
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14776
      lt_prog_compiler_pic_GCJ='-KPIC'
 
14777
      lt_prog_compiler_static_GCJ='-Bstatic'
 
14778
      ;;
 
14779
 
 
14780
    sysv4*MP*)
 
14781
      if test -d /usr/nec ;then
 
14782
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
14783
        lt_prog_compiler_static_GCJ='-Bstatic'
 
14784
      fi
 
14785
      ;;
 
14786
 
 
14787
    uts4*)
 
14788
      lt_prog_compiler_pic_GCJ='-pic'
 
14789
      lt_prog_compiler_static_GCJ='-Bstatic'
 
14790
      ;;
 
14791
 
 
14792
    *)
 
14793
      lt_prog_compiler_can_build_shared_GCJ=no
 
14794
      ;;
 
14795
    esac
 
14796
  fi
 
14797
 
 
14798
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
14799
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
14800
 
 
14801
#
 
14802
# Check to make sure the PIC flag actually works.
 
14803
#
 
14804
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
14805
 
 
14806
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
14807
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
14808
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
14809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14810
else
 
14811
  lt_prog_compiler_pic_works_GCJ=no
 
14812
  ac_outfile=conftest.$ac_objext
 
14813
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14814
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
14815
   # Insert the option either (1) after the last *FLAGS variable, or
 
14816
   # (2) before a word containing "conftest.", or (3) at the end.
 
14817
   # Note that $ac_compile itself does not contain backslashes and begins
 
14818
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14819
   # The option is referenced via a variable to avoid confusing sed.
 
14820
   lt_compile=`echo "$ac_compile" | $SED \
 
14821
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14822
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14823
   -e 's:$: $lt_compiler_flag:'`
 
14824
   (eval echo "\"\$as_me:14824: $lt_compile\"" >&5)
 
14825
   (eval "$lt_compile" 2>conftest.err)
 
14826
   ac_status=$?
 
14827
   cat conftest.err >&5
 
14828
   echo "$as_me:14828: \$? = $ac_status" >&5
 
14829
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14830
     # The compiler can only warn and ignore the option if not recognized
 
14831
     # So say no if there are warnings
 
14832
     if test ! -s conftest.err; then
 
14833
       lt_prog_compiler_pic_works_GCJ=yes
 
14834
     fi
 
14835
   fi
 
14836
   $rm conftest*
 
14837
 
 
14838
fi
 
14839
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
14840
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
14841
 
 
14842
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
14843
    case $lt_prog_compiler_pic_GCJ in
 
14844
     "" | " "*) ;;
 
14845
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
14846
     esac
 
14847
else
 
14848
    lt_prog_compiler_pic_GCJ=
 
14849
     lt_prog_compiler_can_build_shared_GCJ=no
 
14850
fi
 
14851
 
 
14852
fi
 
14853
case "$host_os" in
 
14854
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14855
  *djgpp*)
 
14856
    lt_prog_compiler_pic_GCJ=
 
14857
    ;;
 
14858
  *)
 
14859
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
14860
    ;;
 
14861
esac
 
14862
 
 
14863
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14864
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14865
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
14866
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14867
else
 
14868
  lt_cv_prog_compiler_c_o_GCJ=no
 
14869
   $rm -r conftest 2>/dev/null
 
14870
   mkdir conftest
 
14871
   cd conftest
 
14872
   mkdir out
 
14873
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14874
 
 
14875
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
14876
   # that will create temporary files in the current directory regardless of
 
14877
   # the output directory.  Thus, making CWD read-only will cause this test
 
14878
   # to fail, enabling locking or at least warning the user not to do parallel
 
14879
   # builds.
 
14880
   chmod -w .
 
14881
 
 
14882
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14883
   # Insert the option either (1) after the last *FLAGS variable, or
 
14884
   # (2) before a word containing "conftest.", or (3) at the end.
 
14885
   # Note that $ac_compile itself does not contain backslashes and begins
 
14886
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14887
   lt_compile=`echo "$ac_compile" | $SED \
 
14888
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14889
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14890
   -e 's:$: $lt_compiler_flag:'`
 
14891
   (eval echo "\"\$as_me:14891: $lt_compile\"" >&5)
 
14892
   (eval "$lt_compile" 2>out/conftest.err)
 
14893
   ac_status=$?
 
14894
   cat out/conftest.err >&5
 
14895
   echo "$as_me:14895: \$? = $ac_status" >&5
 
14896
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14897
   then
 
14898
     # The compiler can only warn and ignore the option if not recognized
 
14899
     # So say no if there are warnings
 
14900
     if test ! -s out/conftest.err; then
 
14901
       lt_cv_prog_compiler_c_o_GCJ=yes
 
14902
     fi
 
14903
   fi
 
14904
   chmod u+w .
 
14905
   $rm conftest*
 
14906
   # SGI C++ compiler will create directory out/ii_files/ for
 
14907
   # template instantiation
 
14908
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14909
   $rm out/* && rmdir out
 
14910
   cd ..
 
14911
   rmdir conftest
 
14912
   $rm conftest*
 
14913
 
 
14914
fi
 
14915
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
14916
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
14917
 
 
14918
 
 
14919
hard_links="nottested"
 
14920
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
14921
  # do not overwrite the value of need_locks provided by the user
 
14922
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14923
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14924
  hard_links=yes
 
14925
  $rm conftest*
 
14926
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14927
  touch conftest.a
 
14928
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14929
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14930
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
14931
echo "${ECHO_T}$hard_links" >&6
 
14932
  if test "$hard_links" = no; then
 
14933
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14934
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14935
    need_locks=warn
 
14936
  fi
 
14937
else
 
14938
  need_locks=no
 
14939
fi
 
14940
 
 
14941
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14942
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14943
 
 
14944
  runpath_var=
 
14945
  allow_undefined_flag_GCJ=
 
14946
  enable_shared_with_static_runtimes_GCJ=no
 
14947
  archive_cmds_GCJ=
 
14948
  archive_expsym_cmds_GCJ=
 
14949
  old_archive_From_new_cmds_GCJ=
 
14950
  old_archive_from_expsyms_cmds_GCJ=
 
14951
  export_dynamic_flag_spec_GCJ=
 
14952
  whole_archive_flag_spec_GCJ=
 
14953
  thread_safe_flag_spec_GCJ=
 
14954
  hardcode_libdir_flag_spec_GCJ=
 
14955
  hardcode_libdir_flag_spec_ld_GCJ=
 
14956
  hardcode_libdir_separator_GCJ=
 
14957
  hardcode_direct_GCJ=no
 
14958
  hardcode_minus_L_GCJ=no
 
14959
  hardcode_shlibpath_var_GCJ=unsupported
 
14960
  link_all_deplibs_GCJ=unknown
 
14961
  hardcode_automatic_GCJ=no
 
14962
  module_cmds_GCJ=
 
14963
  module_expsym_cmds_GCJ=
 
14964
  always_export_symbols_GCJ=no
 
14965
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14966
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14967
  # included in the symbol list
 
14968
  include_expsyms_GCJ=
 
14969
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14970
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14971
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14972
  # as well as any symbol that contains `d'.
 
14973
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
14974
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14975
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14976
  # the symbol is explicitly referenced.  Since portable code cannot
 
14977
  # rely on this symbol name, it's probably fine to never include it in
 
14978
  # preloaded symbol tables.
 
14979
  extract_expsyms_cmds=
 
14980
 
 
14981
  case $host_os in
 
14982
  cygwin* | mingw* | pw32*)
 
14983
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14984
    # When not using gcc, we currently assume that we are using
 
14985
    # Microsoft Visual C++.
 
14986
    if test "$GCC" != yes; then
 
14987
      with_gnu_ld=no
 
14988
    fi
 
14989
    ;;
 
14990
  openbsd*)
 
14991
    with_gnu_ld=no
 
14992
    ;;
 
14993
  esac
 
14994
 
 
14995
  ld_shlibs_GCJ=yes
 
14996
  if test "$with_gnu_ld" = yes; then
 
14997
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14998
    wlarc='${wl}'
 
14999
 
 
15000
    # See if GNU ld supports shared libraries.
 
15001
    case $host_os in
 
15002
    aix3* | aix4* | aix5*)
 
15003
      # On AIX/PPC, the GNU linker is very broken
 
15004
      if test "$host_cpu" != ia64; then
 
15005
        ld_shlibs_GCJ=no
 
15006
        cat <<EOF 1>&2
 
15007
 
 
15008
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15009
*** to be unable to reliably create shared libraries on AIX.
 
15010
*** Therefore, libtool is disabling shared libraries support.  If you
 
15011
*** really care for shared libraries, you may want to modify your PATH
 
15012
*** so that a non-GNU linker is found, and then restart.
 
15013
 
 
15014
EOF
 
15015
      fi
 
15016
      ;;
 
15017
 
 
15018
    amigaos*)
 
15019
      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)'
 
15020
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15021
      hardcode_minus_L_GCJ=yes
 
15022
 
 
15023
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15024
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15025
      # to version 4, is to share data among multiple programs linked
 
15026
      # with the same dynamic library.  Since this doesn't match the
 
15027
      # behavior of shared libraries on other platforms, we can't use
 
15028
      # them.
 
15029
      ld_shlibs_GCJ=no
 
15030
      ;;
 
15031
 
 
15032
    beos*)
 
15033
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15034
        allow_undefined_flag_GCJ=unsupported
 
15035
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15036
        # support --undefined.  This deserves some investigation.  FIXME
 
15037
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15038
      else
 
15039
        ld_shlibs_GCJ=no
 
15040
      fi
 
15041
      ;;
 
15042
 
 
15043
    cygwin* | mingw* | pw32*)
 
15044
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
15045
      # as there is no search path for DLLs.
 
15046
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15047
      allow_undefined_flag_GCJ=unsupported
 
15048
      always_export_symbols_GCJ=no
 
15049
      enable_shared_with_static_runtimes_GCJ=yes
 
15050
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15051
 
 
15052
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15053
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15054
        # If the export-symbols file already is a .def file (1st line
 
15055
        # is EXPORTS), use it as is; otherwise, prepend...
 
15056
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15057
          cp $export_symbols $output_objdir/$soname.def;
 
15058
        else
 
15059
          echo EXPORTS > $output_objdir/$soname.def;
 
15060
          cat $export_symbols >> $output_objdir/$soname.def;
 
15061
        fi~
 
15062
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15063
      else
 
15064
        ld_shlibs=no
 
15065
      fi
 
15066
      ;;
 
15067
 
 
15068
    netbsd*)
 
15069
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15070
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15071
        wlarc=
 
15072
      else
 
15073
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15074
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15075
      fi
 
15076
      ;;
 
15077
 
 
15078
    solaris* | sysv5*)
 
15079
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15080
        ld_shlibs_GCJ=no
 
15081
        cat <<EOF 1>&2
 
15082
 
 
15083
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15084
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15085
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15086
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15087
*** your PATH or compiler configuration so that the native linker is
 
15088
*** used, and then restart.
 
15089
 
 
15090
EOF
 
15091
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15092
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15093
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15094
      else
 
15095
        ld_shlibs_GCJ=no
 
15096
      fi
 
15097
      ;;
 
15098
 
 
15099
    sunos4*)
 
15100
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15101
      wlarc=
 
15102
      hardcode_direct_GCJ=yes
 
15103
      hardcode_shlibpath_var_GCJ=no
 
15104
      ;;
 
15105
 
 
15106
  linux*)
 
15107
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
15108
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15109
        archive_cmds_GCJ="$tmp_archive_cmds"
 
15110
      supports_anon_versioning=no
 
15111
      case `$LD -v 2>/dev/null` in
 
15112
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15113
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15114
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15115
        *\ 2.11.*) ;; # other 2.11 versions
 
15116
        *) supports_anon_versioning=yes ;;
 
15117
      esac
 
15118
      if test $supports_anon_versioning = yes; then
 
15119
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
15120
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15121
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
15122
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15123
      else
 
15124
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
15125
      fi
 
15126
    else
 
15127
      ld_shlibs_GCJ=no
 
15128
    fi
 
15129
    ;;
 
15130
 
 
15131
    *)
 
15132
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15133
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15134
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15135
      else
 
15136
        ld_shlibs_GCJ=no
 
15137
      fi
 
15138
      ;;
 
15139
    esac
 
15140
 
 
15141
    if test "$ld_shlibs_GCJ" = yes; then
 
15142
      runpath_var=LD_RUN_PATH
 
15143
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
15144
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
15145
      # ancient GNU ld didn't support --whole-archive et. al.
 
15146
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15147
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15148
      else
 
15149
        whole_archive_flag_spec_GCJ=
 
15150
      fi
 
15151
    fi
 
15152
  else
 
15153
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15154
    case $host_os in
 
15155
    aix3*)
 
15156
      allow_undefined_flag_GCJ=unsupported
 
15157
      always_export_symbols_GCJ=yes
 
15158
      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'
 
15159
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15160
      # are no directories specified by -L.
 
15161
      hardcode_minus_L_GCJ=yes
 
15162
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15163
        # Neither direct hardcoding nor static linking is supported with a
 
15164
        # broken collect2.
 
15165
        hardcode_direct_GCJ=unsupported
 
15166
      fi
 
15167
      ;;
 
15168
 
 
15169
    aix4* | aix5*)
 
15170
      if test "$host_cpu" = ia64; then
 
15171
        # On IA64, the linker does run time linking by default, so we don't
 
15172
        # have to do anything special.
 
15173
        aix_use_runtimelinking=no
 
15174
        exp_sym_flag='-Bexport'
 
15175
        no_entry_flag=""
 
15176
      else
 
15177
        # If we're using GNU nm, then we don't want the "-C" option.
 
15178
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15179
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15180
          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'
 
15181
        else
 
15182
          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'
 
15183
        fi
 
15184
        aix_use_runtimelinking=no
 
15185
 
 
15186
        # Test if we are trying to use run time linking or normal
 
15187
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15188
        # need to do runtime linking.
 
15189
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15190
          for ld_flag in $LDFLAGS; do
 
15191
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15192
            aix_use_runtimelinking=yes
 
15193
            break
 
15194
          fi
 
15195
          done
 
15196
        esac
 
15197
 
 
15198
        exp_sym_flag='-bexport'
 
15199
        no_entry_flag='-bnoentry'
 
15200
      fi
 
15201
 
 
15202
      # When large executables or shared objects are built, AIX ld can
 
15203
      # have problems creating the table of contents.  If linking a library
 
15204
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15205
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15206
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15207
 
 
15208
      archive_cmds_GCJ=''
 
15209
      hardcode_direct_GCJ=yes
 
15210
      hardcode_libdir_separator_GCJ=':'
 
15211
      link_all_deplibs_GCJ=yes
 
15212
 
 
15213
      if test "$GCC" = yes; then
 
15214
        case $host_os in aix4.012|aix4.012.*)
 
15215
        # We only want to do this on AIX 4.2 and lower, the check
 
15216
        # below for broken collect2 doesn't work under 4.3+
 
15217
          collect2name=`${CC} -print-prog-name=collect2`
 
15218
          if test -f "$collect2name" && \
 
15219
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15220
          then
 
15221
          # We have reworked collect2
 
15222
          hardcode_direct_GCJ=yes
 
15223
          else
 
15224
          # We have old collect2
 
15225
          hardcode_direct_GCJ=unsupported
 
15226
          # It fails to find uninstalled libraries when the uninstalled
 
15227
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15228
          # to unsupported forces relinking
 
15229
          hardcode_minus_L_GCJ=yes
 
15230
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15231
          hardcode_libdir_separator_GCJ=
 
15232
          fi
 
15233
        esac
 
15234
        shared_flag='-shared'
 
15235
      else
 
15236
        # not using gcc
 
15237
        if test "$host_cpu" = ia64; then
 
15238
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15239
        # chokes on -Wl,-G. The following line is correct:
 
15240
          shared_flag='-G'
 
15241
        else
 
15242
        if test "$aix_use_runtimelinking" = yes; then
 
15243
            shared_flag='${wl}-G'
 
15244
          else
 
15245
            shared_flag='${wl}-bM:SRE'
 
15246
        fi
 
15247
        fi
 
15248
      fi
 
15249
 
 
15250
      # It seems that -bexpall does not export symbols beginning with
 
15251
      # underscore (_), so it is better to generate a list of symbols to export.
 
15252
      always_export_symbols_GCJ=yes
 
15253
      if test "$aix_use_runtimelinking" = yes; then
 
15254
        # Warning - without using the other runtime loading flags (-brtl),
 
15255
        # -berok will link without error, but may produce a broken library.
 
15256
        allow_undefined_flag_GCJ='-berok'
 
15257
       # Determine the default libpath from the value encoded in an empty executable.
 
15258
       cat >conftest.$ac_ext <<_ACEOF
 
15259
#line $LINENO "configure"
 
15260
/* confdefs.h.  */
 
15261
_ACEOF
 
15262
cat confdefs.h >>conftest.$ac_ext
 
15263
cat >>conftest.$ac_ext <<_ACEOF
 
15264
/* end confdefs.h.  */
 
15265
 
 
15266
int
 
15267
main ()
 
15268
{
 
15269
 
 
15270
  ;
 
15271
  return 0;
 
15272
}
 
15273
_ACEOF
 
15274
rm -f conftest.$ac_objext conftest$ac_exeext
 
15275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15276
  (eval $ac_link) 2>&5
 
15277
  ac_status=$?
 
15278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15279
  (exit $ac_status); } &&
 
15280
         { ac_try='test -s conftest$ac_exeext'
 
15281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15282
  (eval $ac_try) 2>&5
 
15283
  ac_status=$?
 
15284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15285
  (exit $ac_status); }; }; then
 
15286
 
 
15287
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15288
}'`
 
15289
# Check for a 64-bit object if we didn't find anything.
 
15290
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; }
 
15291
}'`; fi
 
15292
else
 
15293
  echo "$as_me: failed program was:" >&5
 
15294
sed 's/^/| /' conftest.$ac_ext >&5
 
15295
 
 
15296
fi
 
15297
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
15298
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15299
 
 
15300
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15301
        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"
 
15302
       else
 
15303
        if test "$host_cpu" = ia64; then
 
15304
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
15305
          allow_undefined_flag_GCJ="-z nodefs"
 
15306
          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"
 
15307
        else
 
15308
         # Determine the default libpath from the value encoded in an empty executable.
 
15309
         cat >conftest.$ac_ext <<_ACEOF
 
15310
#line $LINENO "configure"
 
15311
/* confdefs.h.  */
 
15312
_ACEOF
 
15313
cat confdefs.h >>conftest.$ac_ext
 
15314
cat >>conftest.$ac_ext <<_ACEOF
 
15315
/* end confdefs.h.  */
 
15316
 
 
15317
int
 
15318
main ()
 
15319
{
 
15320
 
 
15321
  ;
 
15322
  return 0;
 
15323
}
 
15324
_ACEOF
 
15325
rm -f conftest.$ac_objext conftest$ac_exeext
 
15326
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15327
  (eval $ac_link) 2>&5
 
15328
  ac_status=$?
 
15329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15330
  (exit $ac_status); } &&
 
15331
         { ac_try='test -s conftest$ac_exeext'
 
15332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15333
  (eval $ac_try) 2>&5
 
15334
  ac_status=$?
 
15335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15336
  (exit $ac_status); }; }; then
 
15337
 
 
15338
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15339
}'`
 
15340
# Check for a 64-bit object if we didn't find anything.
 
15341
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; }
 
15342
}'`; fi
 
15343
else
 
15344
  echo "$as_me: failed program was:" >&5
 
15345
sed 's/^/| /' conftest.$ac_ext >&5
 
15346
 
 
15347
fi
 
15348
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
15349
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15350
 
 
15351
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15352
          # Warning - without using the other run time loading flags,
 
15353
          # -berok will link without error, but may produce a broken library.
 
15354
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
15355
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
15356
          # -bexpall does not export symbols beginning with underscore (_)
 
15357
          always_export_symbols_GCJ=yes
 
15358
          # Exported symbols can be pulled into shared objects from archives
 
15359
          whole_archive_flag_spec_GCJ=' '
 
15360
          archive_cmds_need_lc_GCJ=yes
 
15361
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15362
          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'
 
15363
        fi
 
15364
      fi
 
15365
      ;;
 
15366
 
 
15367
    amigaos*)
 
15368
      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)'
 
15369
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15370
      hardcode_minus_L_GCJ=yes
 
15371
      # see comment about different semantics on the GNU ld section
 
15372
      ld_shlibs_GCJ=no
 
15373
      ;;
 
15374
 
 
15375
    bsdi4*)
 
15376
      export_dynamic_flag_spec_GCJ=-rdynamic
 
15377
      ;;
 
15378
 
 
15379
    cygwin* | mingw* | pw32*)
 
15380
      # When not using gcc, we currently assume that we are using
 
15381
      # Microsoft Visual C++.
 
15382
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15383
      # no search path for DLLs.
 
15384
      hardcode_libdir_flag_spec_GCJ=' '
 
15385
      allow_undefined_flag_GCJ=unsupported
 
15386
      # Tell ltmain to make .lib files, not .a files.
 
15387
      libext=lib
 
15388
      # Tell ltmain to make .dll files, not .so files.
 
15389
      shrext=".dll"
 
15390
      # FIXME: Setting linknames here is a bad hack.
 
15391
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15392
      # The linker will automatically build a .lib file if we build a DLL.
 
15393
      old_archive_From_new_cmds_GCJ='true'
 
15394
      # FIXME: Should let the user specify the lib program.
 
15395
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15396
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15397
      enable_shared_with_static_runtimes_GCJ=yes
 
15398
      ;;
 
15399
 
 
15400
    darwin* | rhapsody*)
 
15401
    if test "$GXX" = yes ; then
 
15402
      archive_cmds_need_lc_GCJ=no
 
15403
      case "$host_os" in
 
15404
      rhapsody* | darwin1.[012])
 
15405
        allow_undefined_flag_GCJ='-undefined suppress'
 
15406
        ;;
 
15407
      *) # Darwin 1.3 on
 
15408
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15409
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
15410
      else
 
15411
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
15412
          10.[012])
 
15413
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
15414
            ;;
 
15415
          10.*)
 
15416
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
15417
            ;;
 
15418
        esac
 
15419
      fi
 
15420
        ;;
 
15421
      esac
 
15422
        lt_int_apple_cc_single_mod=no
 
15423
        output_verbose_link_cmd='echo'
 
15424
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
15425
          lt_int_apple_cc_single_mod=yes
 
15426
        fi
 
15427
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15428
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15429
        else
 
15430
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15431
      fi
 
15432
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15433
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15434
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15435
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15436
        else
 
15437
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15438
        fi
 
15439
          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}'
 
15440
      hardcode_direct_GCJ=no
 
15441
      hardcode_automatic_GCJ=yes
 
15442
      hardcode_shlibpath_var_GCJ=unsupported
 
15443
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
15444
      link_all_deplibs_GCJ=yes
 
15445
    else
 
15446
      ld_shlibs_GCJ=no
 
15447
    fi
 
15448
      ;;
 
15449
 
 
15450
    dgux*)
 
15451
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15452
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15453
      hardcode_shlibpath_var_GCJ=no
 
15454
      ;;
 
15455
 
 
15456
    freebsd1*)
 
15457
      ld_shlibs_GCJ=no
 
15458
      ;;
 
15459
 
 
15460
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15461
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15462
    # does not break anything, and helps significantly (at the cost of a little
 
15463
    # extra space).
 
15464
    freebsd2.2*)
 
15465
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15466
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15467
      hardcode_direct_GCJ=yes
 
15468
      hardcode_shlibpath_var_GCJ=no
 
15469
      ;;
 
15470
 
 
15471
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15472
    freebsd2*)
 
15473
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15474
      hardcode_direct_GCJ=yes
 
15475
      hardcode_minus_L_GCJ=yes
 
15476
      hardcode_shlibpath_var_GCJ=no
 
15477
      ;;
 
15478
 
 
15479
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15480
    freebsd* | kfreebsd*-gnu)
 
15481
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15482
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15483
      hardcode_direct_GCJ=yes
 
15484
      hardcode_shlibpath_var_GCJ=no
 
15485
      ;;
 
15486
 
 
15487
    hpux9*)
 
15488
      if test "$GCC" = yes; then
 
15489
        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'
 
15490
      else
 
15491
        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'
 
15492
      fi
 
15493
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
15494
      hardcode_libdir_separator_GCJ=:
 
15495
      hardcode_direct_GCJ=yes
 
15496
 
 
15497
      # hardcode_minus_L: Not really in the search PATH,
 
15498
      # but as the default location of the library.
 
15499
      hardcode_minus_L_GCJ=yes
 
15500
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
15501
      ;;
 
15502
 
 
15503
    hpux10* | hpux11*)
 
15504
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15505
        case "$host_cpu" in
 
15506
        hppa*64*|ia64*)
 
15507
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15508
          ;;
 
15509
        *)
 
15510
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15511
          ;;
 
15512
        esac
 
15513
      else
 
15514
        case "$host_cpu" in
 
15515
        hppa*64*|ia64*)
 
15516
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15517
          ;;
 
15518
        *)
 
15519
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15520
          ;;
 
15521
        esac
 
15522
      fi
 
15523
      if test "$with_gnu_ld" = no; then
 
15524
        case "$host_cpu" in
 
15525
        hppa*64*)
 
15526
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
15527
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
15528
          hardcode_libdir_separator_GCJ=:
 
15529
          hardcode_direct_GCJ=no
 
15530
          hardcode_shlibpath_var_GCJ=no
 
15531
          ;;
 
15532
        ia64*)
 
15533
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15534
          hardcode_direct_GCJ=no
 
15535
          hardcode_shlibpath_var_GCJ=no
 
15536
 
 
15537
          # hardcode_minus_L: Not really in the search PATH,
 
15538
          # but as the default location of the library.
 
15539
          hardcode_minus_L_GCJ=yes
 
15540
          ;;
 
15541
        *)
 
15542
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
15543
          hardcode_libdir_separator_GCJ=:
 
15544
          hardcode_direct_GCJ=yes
 
15545
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
15546
 
 
15547
          # hardcode_minus_L: Not really in the search PATH,
 
15548
          # but as the default location of the library.
 
15549
          hardcode_minus_L_GCJ=yes
 
15550
          ;;
 
15551
        esac
 
15552
      fi
 
15553
      ;;
 
15554
 
 
15555
    irix5* | irix6* | nonstopux*)
 
15556
      if test "$GCC" = yes; then
 
15557
        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'
 
15558
      else
 
15559
        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'
 
15560
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
15561
      fi
 
15562
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
15563
      hardcode_libdir_separator_GCJ=:
 
15564
      link_all_deplibs_GCJ=yes
 
15565
      ;;
 
15566
 
 
15567
    netbsd*)
 
15568
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15569
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15570
      else
 
15571
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15572
      fi
 
15573
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15574
      hardcode_direct_GCJ=yes
 
15575
      hardcode_shlibpath_var_GCJ=no
 
15576
      ;;
 
15577
 
 
15578
    newsos6)
 
15579
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15580
      hardcode_direct_GCJ=yes
 
15581
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
15582
      hardcode_libdir_separator_GCJ=:
 
15583
      hardcode_shlibpath_var_GCJ=no
 
15584
      ;;
 
15585
 
 
15586
    openbsd*)
 
15587
      hardcode_direct_GCJ=yes
 
15588
      hardcode_shlibpath_var_GCJ=no
 
15589
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15590
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15591
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
15592
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
15593
      else
 
15594
       case $host_os in
 
15595
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15596
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15597
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15598
           ;;
 
15599
         *)
 
15600
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15601
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
15602
           ;;
 
15603
       esac
 
15604
      fi
 
15605
      ;;
 
15606
 
 
15607
    os2*)
 
15608
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15609
      hardcode_minus_L_GCJ=yes
 
15610
      allow_undefined_flag_GCJ=unsupported
 
15611
      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'
 
15612
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15613
      ;;
 
15614
 
 
15615
    osf3*)
 
15616
      if test "$GCC" = yes; then
 
15617
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
15618
        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'
 
15619
      else
 
15620
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
15621
        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'
 
15622
      fi
 
15623
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
15624
      hardcode_libdir_separator_GCJ=:
 
15625
      ;;
 
15626
 
 
15627
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15628
      if test "$GCC" = yes; then
 
15629
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
15630
        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'
 
15631
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
15632
      else
 
15633
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
15634
        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'
 
15635
        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~
 
15636
        $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'
 
15637
 
 
15638
        # Both c and cxx compiler support -rpath directly
 
15639
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
15640
      fi
 
15641
      hardcode_libdir_separator_GCJ=:
 
15642
      ;;
 
15643
 
 
15644
    sco3.2v5*)
 
15645
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15646
      hardcode_shlibpath_var_GCJ=no
 
15647
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
15648
      runpath_var=LD_RUN_PATH
 
15649
      hardcode_runpath_var=yes
 
15650
      ;;
 
15651
 
 
15652
    solaris*)
 
15653
      no_undefined_flag_GCJ=' -z text'
 
15654
      if test "$GCC" = yes; then
 
15655
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15656
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15657
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15658
      else
 
15659
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15660
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15661
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15662
      fi
 
15663
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15664
      hardcode_shlibpath_var_GCJ=no
 
15665
      case $host_os in
 
15666
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15667
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15668
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
15669
      esac
 
15670
      link_all_deplibs_GCJ=yes
 
15671
      ;;
 
15672
 
 
15673
    sunos4*)
 
15674
      if test "x$host_vendor" = xsequent; then
 
15675
        # Use $CC to link under sequent, because it throws in some extra .o
 
15676
        # files that make .init and .fini sections work.
 
15677
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15678
      else
 
15679
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15680
      fi
 
15681
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15682
      hardcode_direct_GCJ=yes
 
15683
      hardcode_minus_L_GCJ=yes
 
15684
      hardcode_shlibpath_var_GCJ=no
 
15685
      ;;
 
15686
 
 
15687
    sysv4)
 
15688
      case $host_vendor in
 
15689
        sni)
 
15690
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15691
          hardcode_direct_GCJ=yes # is this really true???
 
15692
        ;;
 
15693
        siemens)
 
15694
          ## LD is ld it makes a PLAMLIB
 
15695
          ## CC just makes a GrossModule.
 
15696
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15697
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
15698
          hardcode_direct_GCJ=no
 
15699
        ;;
 
15700
        motorola)
 
15701
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15702
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
15703
        ;;
 
15704
      esac
 
15705
      runpath_var='LD_RUN_PATH'
 
15706
      hardcode_shlibpath_var_GCJ=no
 
15707
      ;;
 
15708
 
 
15709
    sysv4.3*)
 
15710
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15711
      hardcode_shlibpath_var_GCJ=no
 
15712
      export_dynamic_flag_spec_GCJ='-Bexport'
 
15713
      ;;
 
15714
 
 
15715
    sysv4*MP*)
 
15716
      if test -d /usr/nec; then
 
15717
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15718
        hardcode_shlibpath_var_GCJ=no
 
15719
        runpath_var=LD_RUN_PATH
 
15720
        hardcode_runpath_var=yes
 
15721
        ld_shlibs_GCJ=yes
 
15722
      fi
 
15723
      ;;
 
15724
 
 
15725
    sysv4.2uw2*)
 
15726
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15727
      hardcode_direct_GCJ=yes
 
15728
      hardcode_minus_L_GCJ=no
 
15729
      hardcode_shlibpath_var_GCJ=no
 
15730
      hardcode_runpath_var=yes
 
15731
      runpath_var=LD_RUN_PATH
 
15732
      ;;
 
15733
 
 
15734
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
15735
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
15736
      if test "$GCC" = yes; then
 
15737
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15738
      else
 
15739
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15740
      fi
 
15741
      runpath_var='LD_RUN_PATH'
 
15742
      hardcode_shlibpath_var_GCJ=no
 
15743
      ;;
 
15744
 
 
15745
    sysv5*)
 
15746
      no_undefined_flag_GCJ=' -z text'
 
15747
      # $CC -shared without GNU ld will not create a library from C++
 
15748
      # object files and a static libstdc++, better avoid it by now
 
15749
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15750
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15751
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15752
      hardcode_libdir_flag_spec_GCJ=
 
15753
      hardcode_shlibpath_var_GCJ=no
 
15754
      runpath_var='LD_RUN_PATH'
 
15755
      ;;
 
15756
 
 
15757
    uts4*)
 
15758
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15759
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15760
      hardcode_shlibpath_var_GCJ=no
 
15761
      ;;
 
15762
 
 
15763
    *)
 
15764
      ld_shlibs_GCJ=no
 
15765
      ;;
 
15766
    esac
 
15767
  fi
 
15768
 
 
15769
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
15770
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
15771
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
15772
 
 
15773
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15774
if test "$GCC" = yes; then
 
15775
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15776
fi
 
15777
 
 
15778
#
 
15779
# Do we need to explicitly link libc?
 
15780
#
 
15781
case "x$archive_cmds_need_lc_GCJ" in
 
15782
x|xyes)
 
15783
  # Assume -lc should be added
 
15784
  archive_cmds_need_lc_GCJ=yes
 
15785
 
 
15786
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15787
    case $archive_cmds_GCJ in
 
15788
    *'~'*)
 
15789
      # FIXME: we may have to deal with multi-command sequences.
 
15790
      ;;
 
15791
    '$CC '*)
 
15792
      # Test whether the compiler implicitly links with -lc since on some
 
15793
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15794
      # to ld, don't add -lc before -lgcc.
 
15795
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15796
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15797
      $rm conftest*
 
15798
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15799
 
 
15800
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15801
  (eval $ac_compile) 2>&5
 
15802
  ac_status=$?
 
15803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15804
  (exit $ac_status); } 2>conftest.err; then
 
15805
        soname=conftest
 
15806
        lib=conftest
 
15807
        libobjs=conftest.$ac_objext
 
15808
        deplibs=
 
15809
        wl=$lt_prog_compiler_wl_GCJ
 
15810
        compiler_flags=-v
 
15811
        linker_flags=-v
 
15812
        verstring=
 
15813
        output_objdir=.
 
15814
        libname=conftest
 
15815
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
15816
        allow_undefined_flag_GCJ=
 
15817
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15818
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15819
  ac_status=$?
 
15820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15821
  (exit $ac_status); }
 
15822
        then
 
15823
          archive_cmds_need_lc_GCJ=no
 
15824
        else
 
15825
          archive_cmds_need_lc_GCJ=yes
 
15826
        fi
 
15827
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
15828
      else
 
15829
        cat conftest.err 1>&5
 
15830
      fi
 
15831
      $rm conftest*
 
15832
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
15833
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
15834
      ;;
 
15835
    esac
 
15836
  fi
 
15837
  ;;
 
15838
esac
 
15839
 
 
15840
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15841
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15842
library_names_spec=
 
15843
libname_spec='lib$name'
 
15844
soname_spec=
 
15845
shrext=".so"
 
15846
postinstall_cmds=
 
15847
postuninstall_cmds=
 
15848
finish_cmds=
 
15849
finish_eval=
 
15850
shlibpath_var=
 
15851
shlibpath_overrides_runpath=unknown
 
15852
version_type=none
 
15853
dynamic_linker="$host_os ld.so"
 
15854
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15855
if test "$GCC" = yes; then
 
15856
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15857
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15858
    # if the path contains ";" then we assume it to be the separator
 
15859
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15860
    # assumed that no part of a normal pathname contains ";" but that should
 
15861
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15862
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15863
  else
 
15864
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15865
  fi
 
15866
else
 
15867
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15868
fi
 
15869
need_lib_prefix=unknown
 
15870
hardcode_into_libs=no
 
15871
 
 
15872
# when you set need_version to no, make sure it does not cause -set_version
 
15873
# flags to be left without arguments
 
15874
need_version=unknown
 
15875
 
 
15876
case $host_os in
 
15877
aix3*)
 
15878
  version_type=linux
 
15879
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15880
  shlibpath_var=LIBPATH
 
15881
 
 
15882
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15883
  soname_spec='${libname}${release}${shared_ext}$major'
 
15884
  ;;
 
15885
 
 
15886
aix4* | aix5*)
 
15887
  version_type=linux
 
15888
  need_lib_prefix=no
 
15889
  need_version=no
 
15890
  hardcode_into_libs=yes
 
15891
  if test "$host_cpu" = ia64; then
 
15892
    # AIX 5 supports IA64
 
15893
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15894
    shlibpath_var=LD_LIBRARY_PATH
 
15895
  else
 
15896
    # With GCC up to 2.95.x, collect2 would create an import file
 
15897
    # for dependence libraries.  The import file would start with
 
15898
    # the line `#! .'.  This would cause the generated library to
 
15899
    # depend on `.', always an invalid library.  This was fixed in
 
15900
    # development snapshots of GCC prior to 3.0.
 
15901
    case $host_os in
 
15902
      aix4 | aix4.[01] | aix4.[01].*)
 
15903
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15904
           echo ' yes '
 
15905
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15906
        :
 
15907
      else
 
15908
        can_build_shared=no
 
15909
      fi
 
15910
      ;;
 
15911
    esac
 
15912
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15913
    # soname into executable. Probably we can add versioning support to
 
15914
    # collect2, so additional links can be useful in future.
 
15915
    if test "$aix_use_runtimelinking" = yes; then
 
15916
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15917
      # instead of lib<name>.a to let people know that these are not
 
15918
      # typical AIX shared libraries.
 
15919
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15920
    else
 
15921
      # We preserve .a as extension for shared libraries through AIX4.2
 
15922
      # and later when we are not doing run time linking.
 
15923
      library_names_spec='${libname}${release}.a $libname.a'
 
15924
      soname_spec='${libname}${release}${shared_ext}$major'
 
15925
    fi
 
15926
    shlibpath_var=LIBPATH
 
15927
  fi
 
15928
  ;;
 
15929
 
 
15930
amigaos*)
 
15931
  library_names_spec='$libname.ixlibrary $libname.a'
 
15932
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15933
  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'
 
15934
  ;;
 
15935
 
 
15936
beos*)
 
15937
  library_names_spec='${libname}${shared_ext}'
 
15938
  dynamic_linker="$host_os ld.so"
 
15939
  shlibpath_var=LIBRARY_PATH
 
15940
  ;;
 
15941
 
 
15942
bsdi4*)
 
15943
  version_type=linux
 
15944
  need_version=no
 
15945
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15946
  soname_spec='${libname}${release}${shared_ext}$major'
 
15947
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15948
  shlibpath_var=LD_LIBRARY_PATH
 
15949
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15950
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15951
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15952
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15953
  # libtool to hard-code these into programs
 
15954
  ;;
 
15955
 
 
15956
cygwin* | mingw* | pw32*)
 
15957
  version_type=windows
 
15958
  shrext=".dll"
 
15959
  need_version=no
 
15960
  need_lib_prefix=no
 
15961
 
 
15962
  case $GCC,$host_os in
 
15963
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15964
    library_names_spec='$libname.dll.a'
 
15965
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15966
    postinstall_cmds='base_file=`basename \${file}`~
 
15967
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15968
      dldir=$destdir/`dirname \$dlpath`~
 
15969
      test -d \$dldir || mkdir -p \$dldir~
 
15970
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15971
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15972
      dlpath=$dir/\$dldll~
 
15973
       $rm \$dlpath'
 
15974
    shlibpath_overrides_runpath=yes
 
15975
 
 
15976
    case $host_os in
 
15977
    cygwin*)
 
15978
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15979
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15980
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15981
      ;;
 
15982
    mingw*)
 
15983
      # MinGW DLLs use traditional 'lib' prefix
 
15984
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15985
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15986
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15987
        # It is most probably a Windows format PATH printed by
 
15988
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15989
        # path with ; separators, and with drive letters. We can handle the
 
15990
        # drive letters (cygwin fileutils understands them), so leave them,
 
15991
        # especially as we might pass files found there to a mingw objdump,
 
15992
        # which wouldn't understand a cygwinified path. Ahh.
 
15993
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15994
      else
 
15995
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15996
      fi
 
15997
      ;;
 
15998
    pw32*)
 
15999
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16000
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16001
      ;;
 
16002
    esac
 
16003
    ;;
 
16004
 
 
16005
  *)
 
16006
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16007
    ;;
 
16008
  esac
 
16009
  dynamic_linker='Win32 ld.exe'
 
16010
  # FIXME: first we should search . and the directory the executable is in
 
16011
  shlibpath_var=PATH
 
16012
  ;;
 
16013
 
 
16014
darwin* | rhapsody*)
 
16015
  dynamic_linker="$host_os dyld"
 
16016
  version_type=darwin
 
16017
  need_lib_prefix=no
 
16018
  need_version=no
 
16019
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16020
  soname_spec='${libname}${release}${major}$shared_ext'
 
16021
  shlibpath_overrides_runpath=yes
 
16022
  shlibpath_var=DYLD_LIBRARY_PATH
 
16023
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
16024
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16025
  if test "$GCC" = yes; then
 
16026
    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"`
 
16027
  else
 
16028
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16029
  fi
 
16030
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16031
  ;;
 
16032
 
 
16033
dgux*)
 
16034
  version_type=linux
 
16035
  need_lib_prefix=no
 
16036
  need_version=no
 
16037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16038
  soname_spec='${libname}${release}${shared_ext}$major'
 
16039
  shlibpath_var=LD_LIBRARY_PATH
 
16040
  ;;
 
16041
 
 
16042
freebsd1*)
 
16043
  dynamic_linker=no
 
16044
  ;;
 
16045
 
 
16046
kfreebsd*-gnu)
 
16047
  version_type=linux
 
16048
  need_lib_prefix=no
 
16049
  need_version=no
 
16050
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16051
  soname_spec='${libname}${release}${shared_ext}$major'
 
16052
  shlibpath_var=LD_LIBRARY_PATH
 
16053
  shlibpath_overrides_runpath=no
 
16054
  hardcode_into_libs=yes
 
16055
  dynamic_linker='GNU ld.so'
 
16056
  ;;
 
16057
 
 
16058
freebsd*)
 
16059
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16060
  version_type=freebsd-$objformat
 
16061
  case $version_type in
 
16062
    freebsd-elf*)
 
16063
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16064
      need_version=no
 
16065
      need_lib_prefix=no
 
16066
      ;;
 
16067
    freebsd-*)
 
16068
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16069
      need_version=yes
 
16070
      ;;
 
16071
  esac
 
16072
  shlibpath_var=LD_LIBRARY_PATH
 
16073
  case $host_os in
 
16074
  freebsd2*)
 
16075
    shlibpath_overrides_runpath=yes
 
16076
    ;;
 
16077
  freebsd3.01* | freebsdelf3.01*)
 
16078
    shlibpath_overrides_runpath=yes
 
16079
    hardcode_into_libs=yes
 
16080
    ;;
 
16081
  *) # from 3.2 on
 
16082
    shlibpath_overrides_runpath=no
 
16083
    hardcode_into_libs=yes
 
16084
    ;;
 
16085
  esac
 
16086
  ;;
 
16087
 
 
16088
gnu*)
 
16089
  version_type=linux
 
16090
  need_lib_prefix=no
 
16091
  need_version=no
 
16092
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16093
  soname_spec='${libname}${release}${shared_ext}$major'
 
16094
  shlibpath_var=LD_LIBRARY_PATH
 
16095
  hardcode_into_libs=yes
 
16096
  ;;
 
16097
 
 
16098
hpux9* | hpux10* | hpux11*)
 
16099
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16100
  # link against other versions.
 
16101
  version_type=sunos
 
16102
  need_lib_prefix=no
 
16103
  need_version=no
 
16104
  case "$host_cpu" in
 
16105
  ia64*)
 
16106
    shrext='.so'
 
16107
    hardcode_into_libs=yes
 
16108
    dynamic_linker="$host_os dld.so"
 
16109
    shlibpath_var=LD_LIBRARY_PATH
 
16110
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16111
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16112
    soname_spec='${libname}${release}${shared_ext}$major'
 
16113
    if test "X$HPUX_IA64_MODE" = X32; then
 
16114
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16115
    else
 
16116
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16117
    fi
 
16118
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16119
    ;;
 
16120
   hppa*64*)
 
16121
     shrext='.sl'
 
16122
     hardcode_into_libs=yes
 
16123
     dynamic_linker="$host_os dld.sl"
 
16124
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16125
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16126
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16127
     soname_spec='${libname}${release}${shared_ext}$major'
 
16128
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16129
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16130
     ;;
 
16131
   *)
 
16132
    shrext='.sl'
 
16133
    dynamic_linker="$host_os dld.sl"
 
16134
    shlibpath_var=SHLIB_PATH
 
16135
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16136
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16137
    soname_spec='${libname}${release}${shared_ext}$major'
 
16138
    ;;
 
16139
  esac
 
16140
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16141
  postinstall_cmds='chmod 555 $lib'
 
16142
  ;;
 
16143
 
 
16144
irix5* | irix6* | nonstopux*)
 
16145
  case $host_os in
 
16146
    nonstopux*) version_type=nonstopux ;;
 
16147
    *)
 
16148
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16149
                version_type=linux
 
16150
        else
 
16151
                version_type=irix
 
16152
        fi ;;
 
16153
  esac
 
16154
  need_lib_prefix=no
 
16155
  need_version=no
 
16156
  soname_spec='${libname}${release}${shared_ext}$major'
 
16157
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16158
  case $host_os in
 
16159
  irix5* | nonstopux*)
 
16160
    libsuff= shlibsuff=
 
16161
    ;;
 
16162
  *)
 
16163
    case $LD in # libtool.m4 will add one of these switches to LD
 
16164
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16165
      libsuff= shlibsuff= libmagic=32-bit;;
 
16166
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16167
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16168
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16169
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16170
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16171
    esac
 
16172
    ;;
 
16173
  esac
 
16174
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16175
  shlibpath_overrides_runpath=no
 
16176
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16177
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16178
  hardcode_into_libs=yes
 
16179
  ;;
 
16180
 
 
16181
# No shared lib support for Linux oldld, aout, or coff.
 
16182
linux*oldld* | linux*aout* | linux*coff*)
 
16183
  dynamic_linker=no
 
16184
  ;;
 
16185
 
 
16186
# This must be Linux ELF.
 
16187
linux*)
 
16188
  version_type=linux
 
16189
  need_lib_prefix=no
 
16190
  need_version=no
 
16191
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16192
  soname_spec='${libname}${release}${shared_ext}$major'
 
16193
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16194
  shlibpath_var=LD_LIBRARY_PATH
 
16195
  shlibpath_overrides_runpath=no
 
16196
  # This implies no fast_install, which is unacceptable.
 
16197
  # Some rework will be needed to allow for fast_install
 
16198
  # before this can be enabled.
 
16199
  hardcode_into_libs=yes
 
16200
 
 
16201
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16202
  # powerpc, because MkLinux only supported shared libraries with the
 
16203
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16204
  # most powerpc-linux boxes support dynamic linking these days and
 
16205
  # people can always --disable-shared, the test was removed, and we
 
16206
  # assume the GNU/Linux dynamic linker is in use.
 
16207
  dynamic_linker='GNU/Linux ld.so'
 
16208
  ;;
 
16209
 
 
16210
netbsd*)
 
16211
  version_type=sunos
 
16212
  need_lib_prefix=no
 
16213
  need_version=no
 
16214
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16215
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16216
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16217
    dynamic_linker='NetBSD (a.out) ld.so'
 
16218
  else
 
16219
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
16220
    soname_spec='${libname}${release}${shared_ext}$major'
 
16221
    dynamic_linker='NetBSD ld.elf_so'
 
16222
  fi
 
16223
  shlibpath_var=LD_LIBRARY_PATH
 
16224
  shlibpath_overrides_runpath=yes
 
16225
  hardcode_into_libs=yes
 
16226
  ;;
 
16227
 
 
16228
newsos6)
 
16229
  version_type=linux
 
16230
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16231
  shlibpath_var=LD_LIBRARY_PATH
 
16232
  shlibpath_overrides_runpath=yes
 
16233
  ;;
 
16234
 
 
16235
nto-qnx*)
 
16236
  version_type=linux
 
16237
  need_lib_prefix=no
 
16238
  need_version=no
 
16239
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16240
  soname_spec='${libname}${release}${shared_ext}$major'
 
16241
  shlibpath_var=LD_LIBRARY_PATH
 
16242
  shlibpath_overrides_runpath=yes
 
16243
  ;;
 
16244
 
 
16245
openbsd*)
 
16246
  version_type=sunos
 
16247
  need_lib_prefix=no
 
16248
  need_version=no
 
16249
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16250
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16251
  shlibpath_var=LD_LIBRARY_PATH
 
16252
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16253
    case $host_os in
 
16254
      openbsd2.[89] | openbsd2.[89].*)
 
16255
        shlibpath_overrides_runpath=no
 
16256
        ;;
 
16257
      *)
 
16258
        shlibpath_overrides_runpath=yes
 
16259
        ;;
 
16260
      esac
 
16261
  else
 
16262
    shlibpath_overrides_runpath=yes
 
16263
  fi
 
16264
  ;;
 
16265
 
 
16266
os2*)
 
16267
  libname_spec='$name'
 
16268
  shrext=".dll"
 
16269
  need_lib_prefix=no
 
16270
  library_names_spec='$libname${shared_ext} $libname.a'
 
16271
  dynamic_linker='OS/2 ld.exe'
 
16272
  shlibpath_var=LIBPATH
 
16273
  ;;
 
16274
 
 
16275
osf3* | osf4* | osf5*)
 
16276
  version_type=osf
 
16277
  need_lib_prefix=no
 
16278
  need_version=no
 
16279
  soname_spec='${libname}${release}${shared_ext}$major'
 
16280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16281
  shlibpath_var=LD_LIBRARY_PATH
 
16282
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16283
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16284
  ;;
 
16285
 
 
16286
sco3.2v5*)
 
16287
  version_type=osf
 
16288
  soname_spec='${libname}${release}${shared_ext}$major'
 
16289
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16290
  shlibpath_var=LD_LIBRARY_PATH
 
16291
  ;;
 
16292
 
 
16293
solaris*)
 
16294
  version_type=linux
 
16295
  need_lib_prefix=no
 
16296
  need_version=no
 
16297
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16298
  soname_spec='${libname}${release}${shared_ext}$major'
 
16299
  shlibpath_var=LD_LIBRARY_PATH
 
16300
  shlibpath_overrides_runpath=yes
 
16301
  hardcode_into_libs=yes
 
16302
  # ldd complains unless libraries are executable
 
16303
  postinstall_cmds='chmod +x $lib'
 
16304
  ;;
 
16305
 
 
16306
sunos4*)
 
16307
  version_type=sunos
 
16308
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16309
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16310
  shlibpath_var=LD_LIBRARY_PATH
 
16311
  shlibpath_overrides_runpath=yes
 
16312
  if test "$with_gnu_ld" = yes; then
 
16313
    need_lib_prefix=no
 
16314
  fi
 
16315
  need_version=yes
 
16316
  ;;
 
16317
 
 
16318
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16319
  version_type=linux
 
16320
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16321
  soname_spec='${libname}${release}${shared_ext}$major'
 
16322
  shlibpath_var=LD_LIBRARY_PATH
 
16323
  case $host_vendor in
 
16324
    sni)
 
16325
      shlibpath_overrides_runpath=no
 
16326
      need_lib_prefix=no
 
16327
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16328
      runpath_var=LD_RUN_PATH
 
16329
      ;;
 
16330
    siemens)
 
16331
      need_lib_prefix=no
 
16332
      ;;
 
16333
    motorola)
 
16334
      need_lib_prefix=no
 
16335
      need_version=no
 
16336
      shlibpath_overrides_runpath=no
 
16337
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16338
      ;;
 
16339
  esac
 
16340
  ;;
 
16341
 
 
16342
sysv4*MP*)
 
16343
  if test -d /usr/nec ;then
 
16344
    version_type=linux
 
16345
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16346
    soname_spec='$libname${shared_ext}.$major'
 
16347
    shlibpath_var=LD_LIBRARY_PATH
 
16348
  fi
 
16349
  ;;
 
16350
 
 
16351
uts4*)
 
16352
  version_type=linux
 
16353
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16354
  soname_spec='${libname}${release}${shared_ext}$major'
 
16355
  shlibpath_var=LD_LIBRARY_PATH
 
16356
  ;;
 
16357
 
 
16358
*)
 
16359
  dynamic_linker=no
 
16360
  ;;
 
16361
esac
 
16362
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16363
echo "${ECHO_T}$dynamic_linker" >&6
 
16364
test "$dynamic_linker" = no && can_build_shared=no
 
16365
 
 
16366
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16367
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16368
hardcode_action_GCJ=
 
16369
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
16370
   test -n "$runpath_var GCJ" || \
 
16371
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
16372
 
 
16373
  # We can hardcode non-existant directories.
 
16374
  if test "$hardcode_direct_GCJ" != no &&
 
16375
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16376
     # have to relink, otherwise we might link with an installed library
 
16377
     # when we should be linking with a yet-to-be-installed one
 
16378
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
16379
     test "$hardcode_minus_L_GCJ" != no; then
 
16380
    # Linking always hardcodes the temporary library directory.
 
16381
    hardcode_action_GCJ=relink
 
16382
  else
 
16383
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16384
    hardcode_action_GCJ=immediate
 
16385
  fi
 
16386
else
 
16387
  # We cannot hardcode anything, or else we can only hardcode existing
 
16388
  # directories.
 
16389
  hardcode_action_GCJ=unsupported
 
16390
fi
 
16391
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
16392
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
16393
 
 
16394
if test "$hardcode_action_GCJ" = relink; then
 
16395
  # Fast installation is not supported
 
16396
  enable_fast_install=no
 
16397
elif test "$shlibpath_overrides_runpath" = yes ||
 
16398
     test "$enable_shared" = no; then
 
16399
  # Fast installation is not necessary
 
16400
  enable_fast_install=needless
 
16401
fi
 
16402
 
 
16403
striplib=
 
16404
old_striplib=
 
16405
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16406
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16407
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16408
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16409
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16410
  echo "$as_me:$LINENO: result: yes" >&5
 
16411
echo "${ECHO_T}yes" >&6
 
16412
else
 
16413
# FIXME - insert some real tests, host_os isn't really good enough
 
16414
  case $host_os in
 
16415
   darwin*)
 
16416
       if test -n "$STRIP" ; then
 
16417
         striplib="$STRIP -x"
 
16418
         echo "$as_me:$LINENO: result: yes" >&5
 
16419
echo "${ECHO_T}yes" >&6
 
16420
       else
 
16421
  echo "$as_me:$LINENO: result: no" >&5
 
16422
echo "${ECHO_T}no" >&6
 
16423
fi
 
16424
       ;;
 
16425
   *)
 
16426
  echo "$as_me:$LINENO: result: no" >&5
 
16427
echo "${ECHO_T}no" >&6
 
16428
    ;;
 
16429
  esac
 
16430
fi
 
16431
 
 
16432
if test "x$enable_dlopen" != xyes; then
 
16433
  enable_dlopen=unknown
 
16434
  enable_dlopen_self=unknown
 
16435
  enable_dlopen_self_static=unknown
 
16436
else
 
16437
  lt_cv_dlopen=no
 
16438
  lt_cv_dlopen_libs=
 
16439
 
 
16440
  case $host_os in
 
16441
  beos*)
 
16442
    lt_cv_dlopen="load_add_on"
 
16443
    lt_cv_dlopen_libs=
 
16444
    lt_cv_dlopen_self=yes
 
16445
    ;;
 
16446
 
 
16447
  mingw* | pw32*)
 
16448
    lt_cv_dlopen="LoadLibrary"
 
16449
    lt_cv_dlopen_libs=
 
16450
   ;;
 
16451
 
 
16452
  cygwin*)
 
16453
    lt_cv_dlopen="dlopen"
 
16454
    lt_cv_dlopen_libs=
 
16455
   ;;
 
16456
 
 
16457
  darwin*)
 
16458
  # if libdl is installed we need to link against it
 
16459
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
16460
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
16461
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
16462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16463
else
 
16464
  ac_check_lib_save_LIBS=$LIBS
 
16465
LIBS="-ldl  $LIBS"
 
16466
cat >conftest.$ac_ext <<_ACEOF
 
16467
#line $LINENO "configure"
 
16468
/* confdefs.h.  */
 
16469
_ACEOF
 
16470
cat confdefs.h >>conftest.$ac_ext
 
16471
cat >>conftest.$ac_ext <<_ACEOF
 
16472
/* end confdefs.h.  */
 
16473
 
 
16474
/* Override any gcc2 internal prototype to avoid an error.  */
 
16475
#ifdef __cplusplus
 
16476
extern "C"
 
16477
#endif
 
16478
/* We use char because int might match the return type of a gcc2
 
16479
   builtin and then its argument prototype would still apply.  */
 
16480
char dlopen ();
 
16481
int
 
16482
main ()
 
16483
{
 
16484
dlopen ();
 
16485
  ;
 
16486
  return 0;
 
16487
}
 
16488
_ACEOF
 
16489
rm -f conftest.$ac_objext conftest$ac_exeext
 
16490
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16491
  (eval $ac_link) 2>&5
 
16492
  ac_status=$?
 
16493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16494
  (exit $ac_status); } &&
 
16495
         { ac_try='test -s conftest$ac_exeext'
 
16496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16497
  (eval $ac_try) 2>&5
 
16498
  ac_status=$?
 
16499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16500
  (exit $ac_status); }; }; then
 
16501
  ac_cv_lib_dl_dlopen=yes
 
16502
else
 
16503
  echo "$as_me: failed program was:" >&5
 
16504
sed 's/^/| /' conftest.$ac_ext >&5
 
16505
 
 
16506
ac_cv_lib_dl_dlopen=no
 
16507
fi
 
16508
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16509
LIBS=$ac_check_lib_save_LIBS
 
16510
fi
 
16511
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
16512
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
16513
if test $ac_cv_lib_dl_dlopen = yes; then
 
16514
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
16515
else
 
16516
 
 
16517
    lt_cv_dlopen="dyld"
 
16518
    lt_cv_dlopen_libs=
 
16519
    lt_cv_dlopen_self=yes
 
16520
 
 
16521
fi
 
16522
 
 
16523
   ;;
 
16524
 
 
16525
  *)
 
16526
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
16527
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
16528
if test "${ac_cv_func_shl_load+set}" = set; then
 
16529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16530
else
 
16531
  cat >conftest.$ac_ext <<_ACEOF
 
16532
#line $LINENO "configure"
 
16533
/* confdefs.h.  */
 
16534
_ACEOF
 
16535
cat confdefs.h >>conftest.$ac_ext
 
16536
cat >>conftest.$ac_ext <<_ACEOF
 
16537
/* end confdefs.h.  */
 
16538
/* System header to define __stub macros and hopefully few prototypes,
 
16539
    which can conflict with char shl_load (); below.
 
16540
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16541
    <limits.h> exists even on freestanding compilers.  */
 
16542
#ifdef __STDC__
 
16543
# include <limits.h>
 
16544
#else
 
16545
# include <assert.h>
 
16546
#endif
 
16547
/* Override any gcc2 internal prototype to avoid an error.  */
 
16548
#ifdef __cplusplus
 
16549
extern "C"
 
16550
{
 
16551
#endif
 
16552
/* We use char because int might match the return type of a gcc2
 
16553
   builtin and then its argument prototype would still apply.  */
 
16554
char shl_load ();
 
16555
/* The GNU C library defines this for functions which it implements
 
16556
    to always fail with ENOSYS.  Some functions are actually named
 
16557
    something starting with __ and the normal name is an alias.  */
 
16558
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
16559
choke me
 
16560
#else
 
16561
char (*f) () = shl_load;
 
16562
#endif
 
16563
#ifdef __cplusplus
 
16564
}
 
16565
#endif
 
16566
 
 
16567
int
 
16568
main ()
 
16569
{
 
16570
return f != shl_load;
 
16571
  ;
 
16572
  return 0;
 
16573
}
 
16574
_ACEOF
 
16575
rm -f conftest.$ac_objext conftest$ac_exeext
 
16576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16577
  (eval $ac_link) 2>&5
 
16578
  ac_status=$?
 
16579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16580
  (exit $ac_status); } &&
 
16581
         { ac_try='test -s conftest$ac_exeext'
 
16582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16583
  (eval $ac_try) 2>&5
 
16584
  ac_status=$?
 
16585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16586
  (exit $ac_status); }; }; then
 
16587
  ac_cv_func_shl_load=yes
 
16588
else
 
16589
  echo "$as_me: failed program was:" >&5
 
16590
sed 's/^/| /' conftest.$ac_ext >&5
 
16591
 
 
16592
ac_cv_func_shl_load=no
 
16593
fi
 
16594
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16595
fi
 
16596
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
16597
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
16598
if test $ac_cv_func_shl_load = yes; then
 
16599
  lt_cv_dlopen="shl_load"
 
16600
else
 
16601
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
16602
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
16603
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
16604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16605
else
 
16606
  ac_check_lib_save_LIBS=$LIBS
 
16607
LIBS="-ldld  $LIBS"
 
16608
cat >conftest.$ac_ext <<_ACEOF
 
16609
#line $LINENO "configure"
 
16610
/* confdefs.h.  */
 
16611
_ACEOF
 
16612
cat confdefs.h >>conftest.$ac_ext
 
16613
cat >>conftest.$ac_ext <<_ACEOF
 
16614
/* end confdefs.h.  */
 
16615
 
 
16616
/* Override any gcc2 internal prototype to avoid an error.  */
 
16617
#ifdef __cplusplus
 
16618
extern "C"
 
16619
#endif
 
16620
/* We use char because int might match the return type of a gcc2
 
16621
   builtin and then its argument prototype would still apply.  */
 
16622
char shl_load ();
 
16623
int
 
16624
main ()
 
16625
{
 
16626
shl_load ();
 
16627
  ;
 
16628
  return 0;
 
16629
}
 
16630
_ACEOF
 
16631
rm -f conftest.$ac_objext conftest$ac_exeext
 
16632
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16633
  (eval $ac_link) 2>&5
 
16634
  ac_status=$?
 
16635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16636
  (exit $ac_status); } &&
 
16637
         { ac_try='test -s conftest$ac_exeext'
 
16638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16639
  (eval $ac_try) 2>&5
 
16640
  ac_status=$?
 
16641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16642
  (exit $ac_status); }; }; then
 
16643
  ac_cv_lib_dld_shl_load=yes
 
16644
else
 
16645
  echo "$as_me: failed program was:" >&5
 
16646
sed 's/^/| /' conftest.$ac_ext >&5
 
16647
 
 
16648
ac_cv_lib_dld_shl_load=no
 
16649
fi
 
16650
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16651
LIBS=$ac_check_lib_save_LIBS
 
16652
fi
 
16653
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
16654
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
16655
if test $ac_cv_lib_dld_shl_load = yes; then
 
16656
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
16657
else
 
16658
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
16659
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
16660
if test "${ac_cv_func_dlopen+set}" = set; then
 
16661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16662
else
 
16663
  cat >conftest.$ac_ext <<_ACEOF
 
16664
#line $LINENO "configure"
 
16665
/* confdefs.h.  */
 
16666
_ACEOF
 
16667
cat confdefs.h >>conftest.$ac_ext
 
16668
cat >>conftest.$ac_ext <<_ACEOF
 
16669
/* end confdefs.h.  */
 
16670
/* System header to define __stub macros and hopefully few prototypes,
 
16671
    which can conflict with char dlopen (); below.
 
16672
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16673
    <limits.h> exists even on freestanding compilers.  */
 
16674
#ifdef __STDC__
 
16675
# include <limits.h>
 
16676
#else
 
16677
# include <assert.h>
 
16678
#endif
 
16679
/* Override any gcc2 internal prototype to avoid an error.  */
 
16680
#ifdef __cplusplus
 
16681
extern "C"
 
16682
{
 
16683
#endif
 
16684
/* We use char because int might match the return type of a gcc2
 
16685
   builtin and then its argument prototype would still apply.  */
 
16686
char dlopen ();
 
16687
/* The GNU C library defines this for functions which it implements
 
16688
    to always fail with ENOSYS.  Some functions are actually named
 
16689
    something starting with __ and the normal name is an alias.  */
 
16690
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
16691
choke me
 
16692
#else
 
16693
char (*f) () = dlopen;
 
16694
#endif
 
16695
#ifdef __cplusplus
 
16696
}
 
16697
#endif
 
16698
 
 
16699
int
 
16700
main ()
 
16701
{
 
16702
return f != dlopen;
 
16703
  ;
 
16704
  return 0;
 
16705
}
 
16706
_ACEOF
 
16707
rm -f conftest.$ac_objext conftest$ac_exeext
 
16708
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16709
  (eval $ac_link) 2>&5
 
16710
  ac_status=$?
 
16711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16712
  (exit $ac_status); } &&
 
16713
         { ac_try='test -s conftest$ac_exeext'
 
16714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16715
  (eval $ac_try) 2>&5
 
16716
  ac_status=$?
 
16717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16718
  (exit $ac_status); }; }; then
 
16719
  ac_cv_func_dlopen=yes
 
16720
else
 
16721
  echo "$as_me: failed program was:" >&5
 
16722
sed 's/^/| /' conftest.$ac_ext >&5
 
16723
 
 
16724
ac_cv_func_dlopen=no
 
16725
fi
 
16726
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16727
fi
 
16728
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
16729
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
16730
if test $ac_cv_func_dlopen = yes; then
 
16731
  lt_cv_dlopen="dlopen"
 
16732
else
 
16733
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
16734
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
16735
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
16736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16737
else
 
16738
  ac_check_lib_save_LIBS=$LIBS
 
16739
LIBS="-ldl  $LIBS"
 
16740
cat >conftest.$ac_ext <<_ACEOF
 
16741
#line $LINENO "configure"
 
16742
/* confdefs.h.  */
 
16743
_ACEOF
 
16744
cat confdefs.h >>conftest.$ac_ext
 
16745
cat >>conftest.$ac_ext <<_ACEOF
 
16746
/* end confdefs.h.  */
 
16747
 
 
16748
/* Override any gcc2 internal prototype to avoid an error.  */
 
16749
#ifdef __cplusplus
 
16750
extern "C"
 
16751
#endif
 
16752
/* We use char because int might match the return type of a gcc2
 
16753
   builtin and then its argument prototype would still apply.  */
 
16754
char dlopen ();
 
16755
int
 
16756
main ()
 
16757
{
 
16758
dlopen ();
 
16759
  ;
 
16760
  return 0;
 
16761
}
 
16762
_ACEOF
 
16763
rm -f conftest.$ac_objext conftest$ac_exeext
 
16764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16765
  (eval $ac_link) 2>&5
 
16766
  ac_status=$?
 
16767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16768
  (exit $ac_status); } &&
 
16769
         { ac_try='test -s conftest$ac_exeext'
 
16770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16771
  (eval $ac_try) 2>&5
 
16772
  ac_status=$?
 
16773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16774
  (exit $ac_status); }; }; then
 
16775
  ac_cv_lib_dl_dlopen=yes
 
16776
else
 
16777
  echo "$as_me: failed program was:" >&5
 
16778
sed 's/^/| /' conftest.$ac_ext >&5
 
16779
 
 
16780
ac_cv_lib_dl_dlopen=no
 
16781
fi
 
16782
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16783
LIBS=$ac_check_lib_save_LIBS
 
16784
fi
 
16785
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
16786
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
16787
if test $ac_cv_lib_dl_dlopen = yes; then
 
16788
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
16789
else
 
16790
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
16791
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
16792
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
16793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16794
else
 
16795
  ac_check_lib_save_LIBS=$LIBS
 
16796
LIBS="-lsvld  $LIBS"
 
16797
cat >conftest.$ac_ext <<_ACEOF
 
16798
#line $LINENO "configure"
 
16799
/* confdefs.h.  */
 
16800
_ACEOF
 
16801
cat confdefs.h >>conftest.$ac_ext
 
16802
cat >>conftest.$ac_ext <<_ACEOF
 
16803
/* end confdefs.h.  */
 
16804
 
 
16805
/* Override any gcc2 internal prototype to avoid an error.  */
 
16806
#ifdef __cplusplus
 
16807
extern "C"
 
16808
#endif
 
16809
/* We use char because int might match the return type of a gcc2
 
16810
   builtin and then its argument prototype would still apply.  */
 
16811
char dlopen ();
 
16812
int
 
16813
main ()
 
16814
{
 
16815
dlopen ();
 
16816
  ;
 
16817
  return 0;
 
16818
}
 
16819
_ACEOF
 
16820
rm -f conftest.$ac_objext conftest$ac_exeext
 
16821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16822
  (eval $ac_link) 2>&5
 
16823
  ac_status=$?
 
16824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16825
  (exit $ac_status); } &&
 
16826
         { ac_try='test -s conftest$ac_exeext'
 
16827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16828
  (eval $ac_try) 2>&5
 
16829
  ac_status=$?
 
16830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16831
  (exit $ac_status); }; }; then
 
16832
  ac_cv_lib_svld_dlopen=yes
 
16833
else
 
16834
  echo "$as_me: failed program was:" >&5
 
16835
sed 's/^/| /' conftest.$ac_ext >&5
 
16836
 
 
16837
ac_cv_lib_svld_dlopen=no
 
16838
fi
 
16839
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16840
LIBS=$ac_check_lib_save_LIBS
 
16841
fi
 
16842
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
16843
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
16844
if test $ac_cv_lib_svld_dlopen = yes; then
 
16845
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
16846
else
 
16847
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
16848
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
16849
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
16850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16851
else
 
16852
  ac_check_lib_save_LIBS=$LIBS
 
16853
LIBS="-ldld  $LIBS"
 
16854
cat >conftest.$ac_ext <<_ACEOF
 
16855
#line $LINENO "configure"
 
16856
/* confdefs.h.  */
 
16857
_ACEOF
 
16858
cat confdefs.h >>conftest.$ac_ext
 
16859
cat >>conftest.$ac_ext <<_ACEOF
 
16860
/* end confdefs.h.  */
 
16861
 
 
16862
/* Override any gcc2 internal prototype to avoid an error.  */
 
16863
#ifdef __cplusplus
 
16864
extern "C"
 
16865
#endif
 
16866
/* We use char because int might match the return type of a gcc2
 
16867
   builtin and then its argument prototype would still apply.  */
 
16868
char dld_link ();
 
16869
int
 
16870
main ()
 
16871
{
 
16872
dld_link ();
 
16873
  ;
 
16874
  return 0;
 
16875
}
 
16876
_ACEOF
 
16877
rm -f conftest.$ac_objext conftest$ac_exeext
 
16878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16879
  (eval $ac_link) 2>&5
 
16880
  ac_status=$?
 
16881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16882
  (exit $ac_status); } &&
 
16883
         { ac_try='test -s conftest$ac_exeext'
 
16884
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16885
  (eval $ac_try) 2>&5
 
16886
  ac_status=$?
 
16887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16888
  (exit $ac_status); }; }; then
 
16889
  ac_cv_lib_dld_dld_link=yes
 
16890
else
 
16891
  echo "$as_me: failed program was:" >&5
 
16892
sed 's/^/| /' conftest.$ac_ext >&5
 
16893
 
 
16894
ac_cv_lib_dld_dld_link=no
 
16895
fi
 
16896
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16897
LIBS=$ac_check_lib_save_LIBS
 
16898
fi
 
16899
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
16900
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
16901
if test $ac_cv_lib_dld_dld_link = yes; then
 
16902
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
16903
fi
 
16904
 
 
16905
 
 
16906
fi
 
16907
 
 
16908
 
 
16909
fi
 
16910
 
 
16911
 
 
16912
fi
 
16913
 
 
16914
 
 
16915
fi
 
16916
 
 
16917
 
 
16918
fi
 
16919
 
 
16920
    ;;
 
16921
  esac
 
16922
 
 
16923
  if test "x$lt_cv_dlopen" != xno; then
 
16924
    enable_dlopen=yes
 
16925
  else
 
16926
    enable_dlopen=no
 
16927
  fi
 
16928
 
 
16929
  case $lt_cv_dlopen in
 
16930
  dlopen)
 
16931
    save_CPPFLAGS="$CPPFLAGS"
 
16932
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
16933
 
 
16934
    save_LDFLAGS="$LDFLAGS"
 
16935
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
16936
 
 
16937
    save_LIBS="$LIBS"
 
16938
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
16939
 
 
16940
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
16941
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
16942
if test "${lt_cv_dlopen_self+set}" = set; then
 
16943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16944
else
 
16945
          if test "$cross_compiling" = yes; then :
 
16946
  lt_cv_dlopen_self=cross
 
16947
else
 
16948
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
16949
  lt_status=$lt_dlunknown
 
16950
  cat > conftest.$ac_ext <<EOF
 
16951
#line 16951 "configure"
 
16952
#include "confdefs.h"
 
16953
 
 
16954
#if HAVE_DLFCN_H
 
16955
#include <dlfcn.h>
 
16956
#endif
 
16957
 
 
16958
#include <stdio.h>
 
16959
 
 
16960
#ifdef RTLD_GLOBAL
 
16961
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
16962
#else
 
16963
#  ifdef DL_GLOBAL
 
16964
#    define LT_DLGLOBAL         DL_GLOBAL
 
16965
#  else
 
16966
#    define LT_DLGLOBAL         0
 
16967
#  endif
 
16968
#endif
 
16969
 
 
16970
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
16971
   find out it does not work in some platform. */
 
16972
#ifndef LT_DLLAZY_OR_NOW
 
16973
#  ifdef RTLD_LAZY
 
16974
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
16975
#  else
 
16976
#    ifdef DL_LAZY
 
16977
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
16978
#    else
 
16979
#      ifdef RTLD_NOW
 
16980
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
16981
#      else
 
16982
#        ifdef DL_NOW
 
16983
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
16984
#        else
 
16985
#          define LT_DLLAZY_OR_NOW      0
 
16986
#        endif
 
16987
#      endif
 
16988
#    endif
 
16989
#  endif
 
16990
#endif
 
16991
 
 
16992
#ifdef __cplusplus
 
16993
extern "C" void exit (int);
 
16994
#endif
 
16995
 
 
16996
void fnord() { int i=42;}
 
16997
int main ()
 
16998
{
 
16999
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17000
  int status = $lt_dlunknown;
 
17001
 
 
17002
  if (self)
 
17003
    {
 
17004
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17005
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17006
      /* dlclose (self); */
 
17007
    }
 
17008
 
 
17009
    exit (status);
 
17010
}
 
17011
EOF
 
17012
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17013
  (eval $ac_link) 2>&5
 
17014
  ac_status=$?
 
17015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17016
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17017
    (./conftest; exit; ) 2>/dev/null
 
17018
    lt_status=$?
 
17019
    case x$lt_status in
 
17020
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
17021
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
17022
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
17023
    esac
 
17024
  else :
 
17025
    # compilation failed
 
17026
    lt_cv_dlopen_self=no
 
17027
  fi
 
17028
fi
 
17029
rm -fr conftest*
 
17030
 
 
17031
 
 
17032
fi
 
17033
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
17034
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
17035
 
 
17036
    if test "x$lt_cv_dlopen_self" = xyes; then
 
17037
      LDFLAGS="$LDFLAGS $link_static_flag"
 
17038
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
17039
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
17040
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
17041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17042
else
 
17043
          if test "$cross_compiling" = yes; then :
 
17044
  lt_cv_dlopen_self_static=cross
 
17045
else
 
17046
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17047
  lt_status=$lt_dlunknown
 
17048
  cat > conftest.$ac_ext <<EOF
 
17049
#line 17049 "configure"
 
17050
#include "confdefs.h"
 
17051
 
 
17052
#if HAVE_DLFCN_H
 
17053
#include <dlfcn.h>
 
17054
#endif
 
17055
 
 
17056
#include <stdio.h>
 
17057
 
 
17058
#ifdef RTLD_GLOBAL
 
17059
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17060
#else
 
17061
#  ifdef DL_GLOBAL
 
17062
#    define LT_DLGLOBAL         DL_GLOBAL
 
17063
#  else
 
17064
#    define LT_DLGLOBAL         0
 
17065
#  endif
 
17066
#endif
 
17067
 
 
17068
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17069
   find out it does not work in some platform. */
 
17070
#ifndef LT_DLLAZY_OR_NOW
 
17071
#  ifdef RTLD_LAZY
 
17072
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17073
#  else
 
17074
#    ifdef DL_LAZY
 
17075
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17076
#    else
 
17077
#      ifdef RTLD_NOW
 
17078
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17079
#      else
 
17080
#        ifdef DL_NOW
 
17081
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17082
#        else
 
17083
#          define LT_DLLAZY_OR_NOW      0
 
17084
#        endif
 
17085
#      endif
 
17086
#    endif
 
17087
#  endif
 
17088
#endif
 
17089
 
 
17090
#ifdef __cplusplus
 
17091
extern "C" void exit (int);
 
17092
#endif
 
17093
 
 
17094
void fnord() { int i=42;}
 
17095
int main ()
 
17096
{
 
17097
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17098
  int status = $lt_dlunknown;
 
17099
 
 
17100
  if (self)
 
17101
    {
 
17102
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17103
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17104
      /* dlclose (self); */
 
17105
    }
 
17106
 
 
17107
    exit (status);
 
17108
}
 
17109
EOF
 
17110
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17111
  (eval $ac_link) 2>&5
 
17112
  ac_status=$?
 
17113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17114
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17115
    (./conftest; exit; ) 2>/dev/null
 
17116
    lt_status=$?
 
17117
    case x$lt_status in
 
17118
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
17119
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
17120
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
17121
    esac
 
17122
  else :
 
17123
    # compilation failed
 
17124
    lt_cv_dlopen_self_static=no
 
17125
  fi
 
17126
fi
 
17127
rm -fr conftest*
 
17128
 
 
17129
 
 
17130
fi
 
17131
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
17132
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
17133
    fi
 
17134
 
 
17135
    CPPFLAGS="$save_CPPFLAGS"
 
17136
    LDFLAGS="$save_LDFLAGS"
 
17137
    LIBS="$save_LIBS"
 
17138
    ;;
 
17139
  esac
 
17140
 
 
17141
  case $lt_cv_dlopen_self in
 
17142
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
17143
  *) enable_dlopen_self=unknown ;;
 
17144
  esac
 
17145
 
 
17146
  case $lt_cv_dlopen_self_static in
 
17147
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
17148
  *) enable_dlopen_self_static=unknown ;;
 
17149
  esac
 
17150
fi
 
17151
 
 
17152
 
 
17153
# The else clause should only fire when bootstrapping the
 
17154
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17155
# with your package, and you will get complaints that there are
 
17156
# no rules to generate ltmain.sh.
 
17157
if test -f "$ltmain"; then
 
17158
  # See if we are running on zsh, and set the options which allow our commands through
 
17159
  # without removal of \ escapes.
 
17160
  if test -n "${ZSH_VERSION+set}" ; then
 
17161
    setopt NO_GLOB_SUBST
 
17162
  fi
 
17163
  # Now quote all the things that may contain metacharacters while being
 
17164
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17165
  # variables and quote the copies for generation of the libtool script.
 
17166
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
17167
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17168
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17169
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17170
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17171
    lt_cv_sys_global_symbol_to_c_name_address \
 
17172
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17173
    old_postinstall_cmds old_postuninstall_cmds \
 
17174
    compiler_GCJ \
 
17175
    CC_GCJ \
 
17176
    LD_GCJ \
 
17177
    lt_prog_compiler_wl_GCJ \
 
17178
    lt_prog_compiler_pic_GCJ \
 
17179
    lt_prog_compiler_static_GCJ \
 
17180
    lt_prog_compiler_no_builtin_flag_GCJ \
 
17181
    export_dynamic_flag_spec_GCJ \
 
17182
    thread_safe_flag_spec_GCJ \
 
17183
    whole_archive_flag_spec_GCJ \
 
17184
    enable_shared_with_static_runtimes_GCJ \
 
17185
    old_archive_cmds_GCJ \
 
17186
    old_archive_from_new_cmds_GCJ \
 
17187
    predep_objects_GCJ \
 
17188
    postdep_objects_GCJ \
 
17189
    predeps_GCJ \
 
17190
    postdeps_GCJ \
 
17191
    compiler_lib_search_path_GCJ \
 
17192
    archive_cmds_GCJ \
 
17193
    archive_expsym_cmds_GCJ \
 
17194
    postinstall_cmds_GCJ \
 
17195
    postuninstall_cmds_GCJ \
 
17196
    old_archive_from_expsyms_cmds_GCJ \
 
17197
    allow_undefined_flag_GCJ \
 
17198
    no_undefined_flag_GCJ \
 
17199
    export_symbols_cmds_GCJ \
 
17200
    hardcode_libdir_flag_spec_GCJ \
 
17201
    hardcode_libdir_flag_spec_ld_GCJ \
 
17202
    hardcode_libdir_separator_GCJ \
 
17203
    hardcode_automatic_GCJ \
 
17204
    module_cmds_GCJ \
 
17205
    module_expsym_cmds_GCJ \
 
17206
    lt_cv_prog_compiler_c_o_GCJ \
 
17207
    exclude_expsyms_GCJ \
 
17208
    include_expsyms_GCJ; do
 
17209
 
 
17210
    case $var in
 
17211
    old_archive_cmds_GCJ | \
 
17212
    old_archive_from_new_cmds_GCJ | \
 
17213
    archive_cmds_GCJ | \
 
17214
    archive_expsym_cmds_GCJ | \
 
17215
    module_cmds_GCJ | \
 
17216
    module_expsym_cmds_GCJ | \
 
17217
    old_archive_from_expsyms_cmds_GCJ | \
 
17218
    export_symbols_cmds_GCJ | \
 
17219
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17220
    postinstall_cmds | postuninstall_cmds | \
 
17221
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17222
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17223
      # Double-quote double-evaled strings.
 
17224
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17225
      ;;
 
17226
    *)
 
17227
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17228
      ;;
 
17229
    esac
 
17230
  done
 
17231
 
 
17232
  case $lt_echo in
 
17233
  *'\$0 --fallback-echo"')
 
17234
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17235
    ;;
 
17236
  esac
 
17237
 
 
17238
cfgfile="$ofile"
 
17239
 
 
17240
  cat <<__EOF__ >> "$cfgfile"
 
17241
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17242
 
 
17243
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17244
 
 
17245
# Shell to use when invoking shell scripts.
 
17246
SHELL=$lt_SHELL
 
17247
 
 
17248
# Whether or not to build shared libraries.
 
17249
build_libtool_libs=$enable_shared
 
17250
 
 
17251
# Whether or not to build static libraries.
 
17252
build_old_libs=$enable_static
 
17253
 
 
17254
# Whether or not to add -lc for building shared libraries.
 
17255
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
17256
 
 
17257
# Whether or not to disallow shared libs when runtime libs are static
 
17258
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
17259
 
 
17260
# Whether or not to optimize for fast installation.
 
17261
fast_install=$enable_fast_install
 
17262
 
 
17263
# The host system.
 
17264
host_alias=$host_alias
 
17265
host=$host
 
17266
 
 
17267
# An echo program that does not interpret backslashes.
 
17268
echo=$lt_echo
 
17269
 
 
17270
# The archiver.
 
17271
AR=$lt_AR
 
17272
AR_FLAGS=$lt_AR_FLAGS
 
17273
 
 
17274
# A C compiler.
 
17275
LTCC=$lt_LTCC
 
17276
 
 
17277
# A language-specific compiler.
 
17278
CC=$lt_compiler_GCJ
 
17279
 
 
17280
# Is the compiler the GNU C compiler?
 
17281
with_gcc=$GCC_GCJ
 
17282
 
 
17283
# An ERE matcher.
 
17284
EGREP=$lt_EGREP
 
17285
 
 
17286
# The linker used to build libraries.
 
17287
LD=$lt_LD_GCJ
 
17288
 
 
17289
# Whether we need hard or soft links.
 
17290
LN_S=$lt_LN_S
 
17291
 
 
17292
# A BSD-compatible nm program.
 
17293
NM=$lt_NM
 
17294
 
 
17295
# A symbol stripping program
 
17296
STRIP="$STRIP"
 
17297
 
 
17298
# Used to examine libraries when file_magic_cmd begins "file"
 
17299
MAGIC_CMD=$MAGIC_CMD
 
17300
 
 
17301
# Used on cygwin: DLL creation program.
 
17302
DLLTOOL="$DLLTOOL"
 
17303
 
 
17304
# Used on cygwin: object dumper.
 
17305
OBJDUMP="$OBJDUMP"
 
17306
 
 
17307
# Used on cygwin: assembler.
 
17308
AS="$AS"
 
17309
 
 
17310
# The name of the directory that contains temporary libtool files.
 
17311
objdir=$objdir
 
17312
 
 
17313
# How to create reloadable object files.
 
17314
reload_flag=$lt_reload_flag
 
17315
reload_cmds=$lt_reload_cmds
 
17316
 
 
17317
# How to pass a linker flag through the compiler.
 
17318
wl=$lt_lt_prog_compiler_wl_GCJ
 
17319
 
 
17320
# Object file suffix (normally "o").
 
17321
objext="$ac_objext"
 
17322
 
 
17323
# Old archive suffix (normally "a").
 
17324
libext="$libext"
 
17325
 
 
17326
# Shared library suffix (normally ".so").
 
17327
shrext='$shrext'
 
17328
 
 
17329
# Executable file suffix (normally "").
 
17330
exeext="$exeext"
 
17331
 
 
17332
# Additional compiler flags for building library objects.
 
17333
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
17334
pic_mode=$pic_mode
 
17335
 
 
17336
# What is the maximum length of a command?
 
17337
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17338
 
 
17339
# Does compiler simultaneously support -c and -o options?
 
17340
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
17341
 
 
17342
# Must we lock files when doing compilation ?
 
17343
need_locks=$lt_need_locks
 
17344
 
 
17345
# Do we need the lib prefix for modules?
 
17346
need_lib_prefix=$need_lib_prefix
 
17347
 
 
17348
# Do we need a version for libraries?
 
17349
need_version=$need_version
 
17350
 
 
17351
# Whether dlopen is supported.
 
17352
dlopen_support=$enable_dlopen
 
17353
 
 
17354
# Whether dlopen of programs is supported.
 
17355
dlopen_self=$enable_dlopen_self
 
17356
 
 
17357
# Whether dlopen of statically linked programs is supported.
 
17358
dlopen_self_static=$enable_dlopen_self_static
 
17359
 
 
17360
# Compiler flag to prevent dynamic linking.
 
17361
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
17362
 
 
17363
# Compiler flag to turn off builtin functions.
 
17364
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
17365
 
 
17366
# Compiler flag to allow reflexive dlopens.
 
17367
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
17368
 
 
17369
# Compiler flag to generate shared objects directly from archives.
 
17370
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
17371
 
 
17372
# Compiler flag to generate thread-safe objects.
 
17373
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
17374
 
 
17375
# Library versioning type.
 
17376
version_type=$version_type
 
17377
 
 
17378
# Format of library name prefix.
 
17379
libname_spec=$lt_libname_spec
 
17380
 
 
17381
# List of archive names.  First name is the real one, the rest are links.
 
17382
# The last name is the one that the linker finds with -lNAME.
 
17383
library_names_spec=$lt_library_names_spec
 
17384
 
 
17385
# The coded name of the library, if different from the real name.
 
17386
soname_spec=$lt_soname_spec
 
17387
 
 
17388
# Commands used to build and install an old-style archive.
 
17389
RANLIB=$lt_RANLIB
 
17390
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
17391
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17392
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17393
 
 
17394
# Create an old-style archive from a shared archive.
 
17395
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
17396
 
 
17397
# Create a temporary old-style archive to link instead of a shared archive.
 
17398
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
17399
 
 
17400
# Commands used to build and install a shared archive.
 
17401
archive_cmds=$lt_archive_cmds_GCJ
 
17402
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
17403
postinstall_cmds=$lt_postinstall_cmds
 
17404
postuninstall_cmds=$lt_postuninstall_cmds
 
17405
 
 
17406
# Commands used to build a loadable module (assumed same as above if empty)
 
17407
module_cmds=$lt_module_cmds_GCJ
 
17408
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
17409
 
 
17410
# Commands to strip libraries.
 
17411
old_striplib=$lt_old_striplib
 
17412
striplib=$lt_striplib
 
17413
 
 
17414
# Dependencies to place before the objects being linked to create a
 
17415
# shared library.
 
17416
predep_objects=$lt_predep_objects_GCJ
 
17417
 
 
17418
# Dependencies to place after the objects being linked to create a
 
17419
# shared library.
 
17420
postdep_objects=$lt_postdep_objects_GCJ
 
17421
 
 
17422
# Dependencies to place before the objects being linked to create a
 
17423
# shared library.
 
17424
predeps=$lt_predeps_GCJ
 
17425
 
 
17426
# Dependencies to place after the objects being linked to create a
 
17427
# shared library.
 
17428
postdeps=$lt_postdeps_GCJ
 
17429
 
 
17430
# The library search path used internally by the compiler when linking
 
17431
# a shared library.
 
17432
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
17433
 
 
17434
# Method to check whether dependent libraries are shared objects.
 
17435
deplibs_check_method=$lt_deplibs_check_method
 
17436
 
 
17437
# Command to use when deplibs_check_method == file_magic.
 
17438
file_magic_cmd=$lt_file_magic_cmd
 
17439
 
 
17440
# Flag that allows shared libraries with undefined symbols to be built.
 
17441
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
17442
 
 
17443
# Flag that forces no undefined symbols.
 
17444
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
17445
 
 
17446
# Commands used to finish a libtool library installation in a directory.
 
17447
finish_cmds=$lt_finish_cmds
 
17448
 
 
17449
# Same as above, but a single script fragment to be evaled but not shown.
 
17450
finish_eval=$lt_finish_eval
 
17451
 
 
17452
# Take the output of nm and produce a listing of raw symbols and C names.
 
17453
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17454
 
 
17455
# Transform the output of nm in a proper C declaration
 
17456
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17457
 
 
17458
# Transform the output of nm in a C name address pair
 
17459
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17460
 
 
17461
# This is the shared library runtime path variable.
 
17462
runpath_var=$runpath_var
 
17463
 
 
17464
# This is the shared library path variable.
 
17465
shlibpath_var=$shlibpath_var
 
17466
 
 
17467
# Is shlibpath searched before the hard-coded library search path?
 
17468
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17469
 
 
17470
# How to hardcode a shared library path into an executable.
 
17471
hardcode_action=$hardcode_action_GCJ
 
17472
 
 
17473
# Whether we should hardcode library paths into libraries.
 
17474
hardcode_into_libs=$hardcode_into_libs
 
17475
 
 
17476
# Flag to hardcode \$libdir into a binary during linking.
 
17477
# This must work even if \$libdir does not exist.
 
17478
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
17479
 
 
17480
# If ld is used when linking, flag to hardcode \$libdir into
 
17481
# a binary during linking. This must work even if \$libdir does
 
17482
# not exist.
 
17483
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
17484
 
 
17485
# Whether we need a single -rpath flag with a separated argument.
 
17486
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
17487
 
 
17488
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17489
# resulting binary.
 
17490
hardcode_direct=$hardcode_direct_GCJ
 
17491
 
 
17492
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17493
# resulting binary.
 
17494
hardcode_minus_L=$hardcode_minus_L_GCJ
 
17495
 
 
17496
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17497
# the resulting binary.
 
17498
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
17499
 
 
17500
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17501
# and all subsequent libraries and executables linked against it.
 
17502
hardcode_automatic=$hardcode_automatic_GCJ
 
17503
 
 
17504
# Variables whose values should be saved in libtool wrapper scripts and
 
17505
# restored at relink time.
 
17506
variables_saved_for_relink="$variables_saved_for_relink"
 
17507
 
 
17508
# Whether libtool must link a program against all its dependency libraries.
 
17509
link_all_deplibs=$link_all_deplibs_GCJ
 
17510
 
 
17511
# Compile-time system search path for libraries
 
17512
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17513
 
 
17514
# Run-time system search path for libraries
 
17515
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17516
 
 
17517
# Fix the shell variable \$srcfile for the compiler.
 
17518
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
17519
 
 
17520
# Set to yes if exported symbols are required.
 
17521
always_export_symbols=$always_export_symbols_GCJ
 
17522
 
 
17523
# The commands to list exported symbols.
 
17524
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
17525
 
 
17526
# The commands to extract the exported symbol list from a shared archive.
 
17527
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17528
 
 
17529
# Symbols that should not be listed in the preloaded symbols.
 
17530
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
17531
 
 
17532
# Symbols that must always be exported.
 
17533
include_expsyms=$lt_include_expsyms_GCJ
 
17534
 
 
17535
# ### END LIBTOOL TAG CONFIG: $tagname
 
17536
 
 
17537
__EOF__
 
17538
 
 
17539
 
 
17540
else
 
17541
  # If there is no Makefile yet, we rely on a make rule to execute
 
17542
  # `config.status --recheck' to rerun these tests and create the
 
17543
  # libtool script then.
 
17544
  test -f Makefile && make "$ltmain"
 
17545
fi
 
17546
 
 
17547
 
 
17548
ac_ext=c
 
17549
ac_cpp='$CPP $CPPFLAGS'
 
17550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17553
 
 
17554
CC="$lt_save_CC"
 
17555
 
 
17556
        else
 
17557
          tagname=""
 
17558
        fi
 
17559
        ;;
 
17560
 
 
17561
      RC)
 
17562
 
 
17563
 
 
17564
 
 
17565
# Source file extension for RC test sources.
 
17566
ac_ext=rc
 
17567
 
 
17568
# Object file extension for compiled RC test sources.
 
17569
objext=o
 
17570
objext_RC=$objext
 
17571
 
 
17572
# Code to be used in simple compile tests
 
17573
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
17574
 
 
17575
# Code to be used in simple link tests
 
17576
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
17577
 
 
17578
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17579
 
 
17580
# If no C compiler was specified, use CC.
 
17581
LTCC=${LTCC-"$CC"}
 
17582
 
 
17583
# Allow CC to be a program name with arguments.
 
17584
compiler=$CC
 
17585
 
 
17586
 
 
17587
# Allow CC to be a program name with arguments.
 
17588
lt_save_CC="$CC"
 
17589
CC=${RC-"windres"}
 
17590
compiler=$CC
 
17591
compiler_RC=$CC
 
17592
lt_cv_prog_compiler_c_o_RC=yes
 
17593
 
 
17594
# The else clause should only fire when bootstrapping the
 
17595
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17596
# with your package, and you will get complaints that there are
 
17597
# no rules to generate ltmain.sh.
 
17598
if test -f "$ltmain"; then
 
17599
  # See if we are running on zsh, and set the options which allow our commands through
 
17600
  # without removal of \ escapes.
 
17601
  if test -n "${ZSH_VERSION+set}" ; then
 
17602
    setopt NO_GLOB_SUBST
 
17603
  fi
 
17604
  # Now quote all the things that may contain metacharacters while being
 
17605
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17606
  # variables and quote the copies for generation of the libtool script.
 
17607
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
17608
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17609
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17610
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17611
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17612
    lt_cv_sys_global_symbol_to_c_name_address \
 
17613
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17614
    old_postinstall_cmds old_postuninstall_cmds \
 
17615
    compiler_RC \
 
17616
    CC_RC \
 
17617
    LD_RC \
 
17618
    lt_prog_compiler_wl_RC \
 
17619
    lt_prog_compiler_pic_RC \
 
17620
    lt_prog_compiler_static_RC \
 
17621
    lt_prog_compiler_no_builtin_flag_RC \
 
17622
    export_dynamic_flag_spec_RC \
 
17623
    thread_safe_flag_spec_RC \
 
17624
    whole_archive_flag_spec_RC \
 
17625
    enable_shared_with_static_runtimes_RC \
 
17626
    old_archive_cmds_RC \
 
17627
    old_archive_from_new_cmds_RC \
 
17628
    predep_objects_RC \
 
17629
    postdep_objects_RC \
 
17630
    predeps_RC \
 
17631
    postdeps_RC \
 
17632
    compiler_lib_search_path_RC \
 
17633
    archive_cmds_RC \
 
17634
    archive_expsym_cmds_RC \
 
17635
    postinstall_cmds_RC \
 
17636
    postuninstall_cmds_RC \
 
17637
    old_archive_from_expsyms_cmds_RC \
 
17638
    allow_undefined_flag_RC \
 
17639
    no_undefined_flag_RC \
 
17640
    export_symbols_cmds_RC \
 
17641
    hardcode_libdir_flag_spec_RC \
 
17642
    hardcode_libdir_flag_spec_ld_RC \
 
17643
    hardcode_libdir_separator_RC \
 
17644
    hardcode_automatic_RC \
 
17645
    module_cmds_RC \
 
17646
    module_expsym_cmds_RC \
 
17647
    lt_cv_prog_compiler_c_o_RC \
 
17648
    exclude_expsyms_RC \
 
17649
    include_expsyms_RC; do
 
17650
 
 
17651
    case $var in
 
17652
    old_archive_cmds_RC | \
 
17653
    old_archive_from_new_cmds_RC | \
 
17654
    archive_cmds_RC | \
 
17655
    archive_expsym_cmds_RC | \
 
17656
    module_cmds_RC | \
 
17657
    module_expsym_cmds_RC | \
 
17658
    old_archive_from_expsyms_cmds_RC | \
 
17659
    export_symbols_cmds_RC | \
 
17660
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17661
    postinstall_cmds | postuninstall_cmds | \
 
17662
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17663
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17664
      # Double-quote double-evaled strings.
 
17665
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17666
      ;;
 
17667
    *)
 
17668
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17669
      ;;
 
17670
    esac
 
17671
  done
 
17672
 
 
17673
  case $lt_echo in
 
17674
  *'\$0 --fallback-echo"')
 
17675
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17676
    ;;
 
17677
  esac
 
17678
 
 
17679
cfgfile="$ofile"
 
17680
 
 
17681
  cat <<__EOF__ >> "$cfgfile"
 
17682
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17683
 
 
17684
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17685
 
 
17686
# Shell to use when invoking shell scripts.
 
17687
SHELL=$lt_SHELL
 
17688
 
 
17689
# Whether or not to build shared libraries.
 
17690
build_libtool_libs=$enable_shared
 
17691
 
 
17692
# Whether or not to build static libraries.
 
17693
build_old_libs=$enable_static
 
17694
 
 
17695
# Whether or not to add -lc for building shared libraries.
 
17696
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
17697
 
 
17698
# Whether or not to disallow shared libs when runtime libs are static
 
17699
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
17700
 
 
17701
# Whether or not to optimize for fast installation.
 
17702
fast_install=$enable_fast_install
 
17703
 
 
17704
# The host system.
 
17705
host_alias=$host_alias
 
17706
host=$host
 
17707
 
 
17708
# An echo program that does not interpret backslashes.
 
17709
echo=$lt_echo
 
17710
 
 
17711
# The archiver.
 
17712
AR=$lt_AR
 
17713
AR_FLAGS=$lt_AR_FLAGS
 
17714
 
 
17715
# A C compiler.
 
17716
LTCC=$lt_LTCC
 
17717
 
 
17718
# A language-specific compiler.
 
17719
CC=$lt_compiler_RC
 
17720
 
 
17721
# Is the compiler the GNU C compiler?
 
17722
with_gcc=$GCC_RC
 
17723
 
 
17724
# An ERE matcher.
 
17725
EGREP=$lt_EGREP
 
17726
 
 
17727
# The linker used to build libraries.
 
17728
LD=$lt_LD_RC
 
17729
 
 
17730
# Whether we need hard or soft links.
 
17731
LN_S=$lt_LN_S
 
17732
 
 
17733
# A BSD-compatible nm program.
 
17734
NM=$lt_NM
 
17735
 
 
17736
# A symbol stripping program
 
17737
STRIP="$STRIP"
 
17738
 
 
17739
# Used to examine libraries when file_magic_cmd begins "file"
 
17740
MAGIC_CMD=$MAGIC_CMD
 
17741
 
 
17742
# Used on cygwin: DLL creation program.
 
17743
DLLTOOL="$DLLTOOL"
 
17744
 
 
17745
# Used on cygwin: object dumper.
 
17746
OBJDUMP="$OBJDUMP"
 
17747
 
 
17748
# Used on cygwin: assembler.
 
17749
AS="$AS"
 
17750
 
 
17751
# The name of the directory that contains temporary libtool files.
 
17752
objdir=$objdir
 
17753
 
 
17754
# How to create reloadable object files.
 
17755
reload_flag=$lt_reload_flag
 
17756
reload_cmds=$lt_reload_cmds
 
17757
 
 
17758
# How to pass a linker flag through the compiler.
 
17759
wl=$lt_lt_prog_compiler_wl_RC
 
17760
 
 
17761
# Object file suffix (normally "o").
 
17762
objext="$ac_objext"
 
17763
 
 
17764
# Old archive suffix (normally "a").
 
17765
libext="$libext"
 
17766
 
 
17767
# Shared library suffix (normally ".so").
 
17768
shrext='$shrext'
 
17769
 
 
17770
# Executable file suffix (normally "").
 
17771
exeext="$exeext"
 
17772
 
 
17773
# Additional compiler flags for building library objects.
 
17774
pic_flag=$lt_lt_prog_compiler_pic_RC
 
17775
pic_mode=$pic_mode
 
17776
 
 
17777
# What is the maximum length of a command?
 
17778
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17779
 
 
17780
# Does compiler simultaneously support -c and -o options?
 
17781
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
17782
 
 
17783
# Must we lock files when doing compilation ?
 
17784
need_locks=$lt_need_locks
 
17785
 
 
17786
# Do we need the lib prefix for modules?
 
17787
need_lib_prefix=$need_lib_prefix
 
17788
 
 
17789
# Do we need a version for libraries?
 
17790
need_version=$need_version
 
17791
 
 
17792
# Whether dlopen is supported.
 
17793
dlopen_support=$enable_dlopen
 
17794
 
 
17795
# Whether dlopen of programs is supported.
 
17796
dlopen_self=$enable_dlopen_self
 
17797
 
 
17798
# Whether dlopen of statically linked programs is supported.
 
17799
dlopen_self_static=$enable_dlopen_self_static
 
17800
 
 
17801
# Compiler flag to prevent dynamic linking.
 
17802
link_static_flag=$lt_lt_prog_compiler_static_RC
 
17803
 
 
17804
# Compiler flag to turn off builtin functions.
 
17805
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
17806
 
 
17807
# Compiler flag to allow reflexive dlopens.
 
17808
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
17809
 
 
17810
# Compiler flag to generate shared objects directly from archives.
 
17811
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
17812
 
 
17813
# Compiler flag to generate thread-safe objects.
 
17814
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
17815
 
 
17816
# Library versioning type.
 
17817
version_type=$version_type
 
17818
 
 
17819
# Format of library name prefix.
 
17820
libname_spec=$lt_libname_spec
 
17821
 
 
17822
# List of archive names.  First name is the real one, the rest are links.
 
17823
# The last name is the one that the linker finds with -lNAME.
 
17824
library_names_spec=$lt_library_names_spec
 
17825
 
 
17826
# The coded name of the library, if different from the real name.
 
17827
soname_spec=$lt_soname_spec
 
17828
 
 
17829
# Commands used to build and install an old-style archive.
 
17830
RANLIB=$lt_RANLIB
 
17831
old_archive_cmds=$lt_old_archive_cmds_RC
 
17832
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17833
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17834
 
 
17835
# Create an old-style archive from a shared archive.
 
17836
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
17837
 
 
17838
# Create a temporary old-style archive to link instead of a shared archive.
 
17839
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
17840
 
 
17841
# Commands used to build and install a shared archive.
 
17842
archive_cmds=$lt_archive_cmds_RC
 
17843
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
17844
postinstall_cmds=$lt_postinstall_cmds
 
17845
postuninstall_cmds=$lt_postuninstall_cmds
 
17846
 
 
17847
# Commands used to build a loadable module (assumed same as above if empty)
 
17848
module_cmds=$lt_module_cmds_RC
 
17849
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
17850
 
 
17851
# Commands to strip libraries.
 
17852
old_striplib=$lt_old_striplib
 
17853
striplib=$lt_striplib
 
17854
 
 
17855
# Dependencies to place before the objects being linked to create a
 
17856
# shared library.
 
17857
predep_objects=$lt_predep_objects_RC
 
17858
 
 
17859
# Dependencies to place after the objects being linked to create a
 
17860
# shared library.
 
17861
postdep_objects=$lt_postdep_objects_RC
 
17862
 
 
17863
# Dependencies to place before the objects being linked to create a
 
17864
# shared library.
 
17865
predeps=$lt_predeps_RC
 
17866
 
 
17867
# Dependencies to place after the objects being linked to create a
 
17868
# shared library.
 
17869
postdeps=$lt_postdeps_RC
 
17870
 
 
17871
# The library search path used internally by the compiler when linking
 
17872
# a shared library.
 
17873
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
17874
 
 
17875
# Method to check whether dependent libraries are shared objects.
 
17876
deplibs_check_method=$lt_deplibs_check_method
 
17877
 
 
17878
# Command to use when deplibs_check_method == file_magic.
 
17879
file_magic_cmd=$lt_file_magic_cmd
 
17880
 
 
17881
# Flag that allows shared libraries with undefined symbols to be built.
 
17882
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
17883
 
 
17884
# Flag that forces no undefined symbols.
 
17885
no_undefined_flag=$lt_no_undefined_flag_RC
 
17886
 
 
17887
# Commands used to finish a libtool library installation in a directory.
 
17888
finish_cmds=$lt_finish_cmds
 
17889
 
 
17890
# Same as above, but a single script fragment to be evaled but not shown.
 
17891
finish_eval=$lt_finish_eval
 
17892
 
 
17893
# Take the output of nm and produce a listing of raw symbols and C names.
 
17894
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17895
 
 
17896
# Transform the output of nm in a proper C declaration
 
17897
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17898
 
 
17899
# Transform the output of nm in a C name address pair
 
17900
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17901
 
 
17902
# This is the shared library runtime path variable.
 
17903
runpath_var=$runpath_var
 
17904
 
 
17905
# This is the shared library path variable.
 
17906
shlibpath_var=$shlibpath_var
 
17907
 
 
17908
# Is shlibpath searched before the hard-coded library search path?
 
17909
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17910
 
 
17911
# How to hardcode a shared library path into an executable.
 
17912
hardcode_action=$hardcode_action_RC
 
17913
 
 
17914
# Whether we should hardcode library paths into libraries.
 
17915
hardcode_into_libs=$hardcode_into_libs
 
17916
 
 
17917
# Flag to hardcode \$libdir into a binary during linking.
 
17918
# This must work even if \$libdir does not exist.
 
17919
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
17920
 
 
17921
# If ld is used when linking, flag to hardcode \$libdir into
 
17922
# a binary during linking. This must work even if \$libdir does
 
17923
# not exist.
 
17924
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
17925
 
 
17926
# Whether we need a single -rpath flag with a separated argument.
 
17927
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
17928
 
 
17929
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17930
# resulting binary.
 
17931
hardcode_direct=$hardcode_direct_RC
 
17932
 
 
17933
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17934
# resulting binary.
 
17935
hardcode_minus_L=$hardcode_minus_L_RC
 
17936
 
 
17937
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17938
# the resulting binary.
 
17939
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
17940
 
 
17941
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17942
# and all subsequent libraries and executables linked against it.
 
17943
hardcode_automatic=$hardcode_automatic_RC
 
17944
 
 
17945
# Variables whose values should be saved in libtool wrapper scripts and
 
17946
# restored at relink time.
 
17947
variables_saved_for_relink="$variables_saved_for_relink"
 
17948
 
 
17949
# Whether libtool must link a program against all its dependency libraries.
 
17950
link_all_deplibs=$link_all_deplibs_RC
 
17951
 
 
17952
# Compile-time system search path for libraries
 
17953
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17954
 
 
17955
# Run-time system search path for libraries
 
17956
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17957
 
 
17958
# Fix the shell variable \$srcfile for the compiler.
 
17959
fix_srcfile_path="$fix_srcfile_path_RC"
 
17960
 
 
17961
# Set to yes if exported symbols are required.
 
17962
always_export_symbols=$always_export_symbols_RC
 
17963
 
 
17964
# The commands to list exported symbols.
 
17965
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
17966
 
 
17967
# The commands to extract the exported symbol list from a shared archive.
 
17968
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17969
 
 
17970
# Symbols that should not be listed in the preloaded symbols.
 
17971
exclude_expsyms=$lt_exclude_expsyms_RC
 
17972
 
 
17973
# Symbols that must always be exported.
 
17974
include_expsyms=$lt_include_expsyms_RC
 
17975
 
 
17976
# ### END LIBTOOL TAG CONFIG: $tagname
 
17977
 
 
17978
__EOF__
 
17979
 
 
17980
 
 
17981
else
 
17982
  # If there is no Makefile yet, we rely on a make rule to execute
 
17983
  # `config.status --recheck' to rerun these tests and create the
 
17984
  # libtool script then.
 
17985
  test -f Makefile && make "$ltmain"
 
17986
fi
 
17987
 
 
17988
 
 
17989
ac_ext=c
 
17990
ac_cpp='$CPP $CPPFLAGS'
 
17991
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17992
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17993
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17994
 
 
17995
CC="$lt_save_CC"
 
17996
 
 
17997
        ;;
 
17998
 
 
17999
      *)
 
18000
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
18001
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
18002
   { (exit 1); exit 1; }; }
 
18003
        ;;
 
18004
      esac
 
18005
 
 
18006
      # Append the new tag name to the list of available tags.
 
18007
      if test -n "$tagname" ; then
 
18008
      available_tags="$available_tags $tagname"
 
18009
    fi
 
18010
    fi
 
18011
  done
 
18012
  IFS="$lt_save_ifs"
 
18013
 
 
18014
  # Now substitute the updated list of available tags.
 
18015
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
18016
    mv "${ofile}T" "$ofile"
 
18017
    chmod +x "$ofile"
 
18018
  else
 
18019
    rm -f "${ofile}T"
 
18020
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
18021
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
18022
   { (exit 1); exit 1; }; }
 
18023
  fi
 
18024
fi
5211
18025
 
5212
18026
 
5213
18027
 
5221
18035
 
5222
18036
 
5223
18037
 
 
18038
 
 
18039
 
 
18040
 
 
18041
 
 
18042
 
 
18043
 
 
18044
 
 
18045
 
 
18046
 
 
18047
 
 
18048
 
 
18049
 
 
18050
 
 
18051
 
 
18052
 
 
18053
 
 
18054
 
 
18055
 
5224
18056
if test "${enable_shared}" != "yes"; then
5225
 
  { echo "configure: error: Need shared libraries enabled" 1>&2; exit 1; }
 
18057
  { { echo "$as_me:$LINENO: error: Need shared libraries enabled" >&5
 
18058
echo "$as_me: error: Need shared libraries enabled" >&2;}
 
18059
   { (exit 1); exit 1; }; }
5226
18060
fi
5227
18061
 
5228
 
echo $ac_n "checking for gethostent""... $ac_c" 1>&6
5229
 
echo "configure:5230: checking for gethostent" >&5
5230
 
if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
5231
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18062
echo "$as_me:$LINENO: checking for gethostent" >&5
 
18063
echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
 
18064
if test "${ac_cv_func_gethostent+set}" = set; then
 
18065
  echo $ECHO_N "(cached) $ECHO_C" >&6
5232
18066
else
5233
 
  cat > conftest.$ac_ext <<EOF
5234
 
#line 5235 "configure"
5235
 
#include "confdefs.h"
 
18067
  cat >conftest.$ac_ext <<_ACEOF
 
18068
#line $LINENO "configure"
 
18069
/* confdefs.h.  */
 
18070
_ACEOF
 
18071
cat confdefs.h >>conftest.$ac_ext
 
18072
cat >>conftest.$ac_ext <<_ACEOF
 
18073
/* end confdefs.h.  */
5236
18074
/* System header to define __stub macros and hopefully few prototypes,
5237
 
    which can conflict with char gethostent(); below.  */
5238
 
#include <assert.h>
 
18075
    which can conflict with char gethostent (); below.
 
18076
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18077
    <limits.h> exists even on freestanding compilers.  */
 
18078
#ifdef __STDC__
 
18079
# include <limits.h>
 
18080
#else
 
18081
# include <assert.h>
 
18082
#endif
5239
18083
/* Override any gcc2 internal prototype to avoid an error.  */
 
18084
#ifdef __cplusplus
 
18085
extern "C"
 
18086
{
 
18087
#endif
5240
18088
/* We use char because int might match the return type of a gcc2
5241
 
    builtin and then its argument prototype would still apply.  */
5242
 
char gethostent();
5243
 
 
5244
 
int main() {
5245
 
 
 
18089
   builtin and then its argument prototype would still apply.  */
 
18090
char gethostent ();
5246
18091
/* The GNU C library defines this for functions which it implements
5247
18092
    to always fail with ENOSYS.  Some functions are actually named
5248
18093
    something starting with __ and the normal name is an alias.  */
5249
18094
#if defined (__stub_gethostent) || defined (__stub___gethostent)
5250
18095
choke me
5251
18096
#else
5252
 
gethostent();
 
18097
char (*f) () = gethostent;
 
18098
#endif
 
18099
#ifdef __cplusplus
 
18100
}
5253
18101
#endif
5254
18102
 
5255
 
; return 0; }
5256
 
EOF
5257
 
if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5258
 
  rm -rf conftest*
5259
 
  eval "ac_cv_func_gethostent=yes"
 
18103
int
 
18104
main ()
 
18105
{
 
18106
return f != gethostent;
 
18107
  ;
 
18108
  return 0;
 
18109
}
 
18110
_ACEOF
 
18111
rm -f conftest.$ac_objext conftest$ac_exeext
 
18112
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18113
  (eval $ac_link) 2>&5
 
18114
  ac_status=$?
 
18115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18116
  (exit $ac_status); } &&
 
18117
         { ac_try='test -s conftest$ac_exeext'
 
18118
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18119
  (eval $ac_try) 2>&5
 
18120
  ac_status=$?
 
18121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18122
  (exit $ac_status); }; }; then
 
18123
  ac_cv_func_gethostent=yes
5260
18124
else
5261
 
  echo "configure: failed program was:" >&5
5262
 
  cat conftest.$ac_ext >&5
5263
 
  rm -rf conftest*
5264
 
  eval "ac_cv_func_gethostent=no"
5265
 
fi
5266
 
rm -f conftest*
5267
 
fi
 
18125
  echo "$as_me: failed program was:" >&5
 
18126
sed 's/^/| /' conftest.$ac_ext >&5
5268
18127
 
5269
 
if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
5270
 
  echo "$ac_t""yes" 1>&6
 
18128
ac_cv_func_gethostent=no
 
18129
fi
 
18130
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18131
fi
 
18132
echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
 
18133
echo "${ECHO_T}$ac_cv_func_gethostent" >&6
 
18134
if test $ac_cv_func_gethostent = yes; then
5271
18135
  :
5272
18136
else
5273
 
  echo "$ac_t""no" 1>&6
5274
 
echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
5275
 
echo "configure:5276: checking for gethostent in -lnsl" >&5
5276
 
ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
5277
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5278
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18137
 
 
18138
echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
 
18139
echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
 
18140
if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
 
18141
  echo $ECHO_N "(cached) $ECHO_C" >&6
5279
18142
else
5280
 
  ac_save_LIBS="$LIBS"
 
18143
  ac_check_lib_save_LIBS=$LIBS
5281
18144
LIBS="-lnsl  $LIBS"
5282
 
cat > conftest.$ac_ext <<EOF
5283
 
#line 5284 "configure"
5284
 
#include "confdefs.h"
 
18145
cat >conftest.$ac_ext <<_ACEOF
 
18146
#line $LINENO "configure"
 
18147
/* confdefs.h.  */
 
18148
_ACEOF
 
18149
cat confdefs.h >>conftest.$ac_ext
 
18150
cat >>conftest.$ac_ext <<_ACEOF
 
18151
/* end confdefs.h.  */
 
18152
 
5285
18153
/* Override any gcc2 internal prototype to avoid an error.  */
 
18154
#ifdef __cplusplus
 
18155
extern "C"
 
18156
#endif
5286
18157
/* We use char because int might match the return type of a gcc2
5287
 
    builtin and then its argument prototype would still apply.  */
5288
 
char gethostent();
5289
 
 
5290
 
int main() {
5291
 
gethostent()
5292
 
; return 0; }
5293
 
EOF
5294
 
if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5295
 
  rm -rf conftest*
5296
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
18158
   builtin and then its argument prototype would still apply.  */
 
18159
char gethostent ();
 
18160
int
 
18161
main ()
 
18162
{
 
18163
gethostent ();
 
18164
  ;
 
18165
  return 0;
 
18166
}
 
18167
_ACEOF
 
18168
rm -f conftest.$ac_objext conftest$ac_exeext
 
18169
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18170
  (eval $ac_link) 2>&5
 
18171
  ac_status=$?
 
18172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18173
  (exit $ac_status); } &&
 
18174
         { ac_try='test -s conftest$ac_exeext'
 
18175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18176
  (eval $ac_try) 2>&5
 
18177
  ac_status=$?
 
18178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18179
  (exit $ac_status); }; }; then
 
18180
  ac_cv_lib_nsl_gethostent=yes
5297
18181
else
5298
 
  echo "configure: failed program was:" >&5
5299
 
  cat conftest.$ac_ext >&5
5300
 
  rm -rf conftest*
5301
 
  eval "ac_cv_lib_$ac_lib_var=no"
5302
 
fi
5303
 
rm -f conftest*
5304
 
LIBS="$ac_save_LIBS"
 
18182
  echo "$as_me: failed program was:" >&5
 
18183
sed 's/^/| /' conftest.$ac_ext >&5
5305
18184
 
5306
 
fi
5307
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5308
 
  echo "$ac_t""yes" 1>&6
5309
 
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
5310
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5311
 
  cat >> confdefs.h <<EOF
5312
 
#define $ac_tr_lib 1
5313
 
EOF
 
18185
ac_cv_lib_nsl_gethostent=no
 
18186
fi
 
18187
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18188
LIBS=$ac_check_lib_save_LIBS
 
18189
fi
 
18190
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
 
18191
echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
 
18192
if test $ac_cv_lib_nsl_gethostent = yes; then
 
18193
  cat >>confdefs.h <<_ACEOF
 
18194
#define HAVE_LIBNSL 1
 
18195
_ACEOF
5314
18196
 
5315
18197
  LIBS="-lnsl $LIBS"
5316
18198
 
5317
 
else
5318
 
  echo "$ac_t""no" 1>&6
5319
 
fi
5320
 
 
5321
 
fi
5322
 
 
5323
 
echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
5324
 
echo "configure:5325: checking for setsockopt" >&5
5325
 
if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
5326
 
  echo $ac_n "(cached) $ac_c" 1>&6
5327
 
else
5328
 
  cat > conftest.$ac_ext <<EOF
5329
 
#line 5330 "configure"
5330
 
#include "confdefs.h"
 
18199
fi
 
18200
 
 
18201
fi
 
18202
 
 
18203
echo "$as_me:$LINENO: checking for setsockopt" >&5
 
18204
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
 
18205
if test "${ac_cv_func_setsockopt+set}" = set; then
 
18206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18207
else
 
18208
  cat >conftest.$ac_ext <<_ACEOF
 
18209
#line $LINENO "configure"
 
18210
/* confdefs.h.  */
 
18211
_ACEOF
 
18212
cat confdefs.h >>conftest.$ac_ext
 
18213
cat >>conftest.$ac_ext <<_ACEOF
 
18214
/* end confdefs.h.  */
5331
18215
/* System header to define __stub macros and hopefully few prototypes,
5332
 
    which can conflict with char setsockopt(); below.  */
5333
 
#include <assert.h>
 
18216
    which can conflict with char setsockopt (); below.
 
18217
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18218
    <limits.h> exists even on freestanding compilers.  */
 
18219
#ifdef __STDC__
 
18220
# include <limits.h>
 
18221
#else
 
18222
# include <assert.h>
 
18223
#endif
5334
18224
/* Override any gcc2 internal prototype to avoid an error.  */
 
18225
#ifdef __cplusplus
 
18226
extern "C"
 
18227
{
 
18228
#endif
5335
18229
/* We use char because int might match the return type of a gcc2
5336
 
    builtin and then its argument prototype would still apply.  */
5337
 
char setsockopt();
5338
 
 
5339
 
int main() {
5340
 
 
 
18230
   builtin and then its argument prototype would still apply.  */
 
18231
char setsockopt ();
5341
18232
/* The GNU C library defines this for functions which it implements
5342
18233
    to always fail with ENOSYS.  Some functions are actually named
5343
18234
    something starting with __ and the normal name is an alias.  */
5344
18235
#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
5345
18236
choke me
5346
18237
#else
5347
 
setsockopt();
 
18238
char (*f) () = setsockopt;
 
18239
#endif
 
18240
#ifdef __cplusplus
 
18241
}
5348
18242
#endif
5349
18243
 
5350
 
; return 0; }
5351
 
EOF
5352
 
if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5353
 
  rm -rf conftest*
5354
 
  eval "ac_cv_func_setsockopt=yes"
 
18244
int
 
18245
main ()
 
18246
{
 
18247
return f != setsockopt;
 
18248
  ;
 
18249
  return 0;
 
18250
}
 
18251
_ACEOF
 
18252
rm -f conftest.$ac_objext conftest$ac_exeext
 
18253
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18254
  (eval $ac_link) 2>&5
 
18255
  ac_status=$?
 
18256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18257
  (exit $ac_status); } &&
 
18258
         { ac_try='test -s conftest$ac_exeext'
 
18259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18260
  (eval $ac_try) 2>&5
 
18261
  ac_status=$?
 
18262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18263
  (exit $ac_status); }; }; then
 
18264
  ac_cv_func_setsockopt=yes
5355
18265
else
5356
 
  echo "configure: failed program was:" >&5
5357
 
  cat conftest.$ac_ext >&5
5358
 
  rm -rf conftest*
5359
 
  eval "ac_cv_func_setsockopt=no"
5360
 
fi
5361
 
rm -f conftest*
5362
 
fi
 
18266
  echo "$as_me: failed program was:" >&5
 
18267
sed 's/^/| /' conftest.$ac_ext >&5
5363
18268
 
5364
 
if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
5365
 
  echo "$ac_t""yes" 1>&6
 
18269
ac_cv_func_setsockopt=no
 
18270
fi
 
18271
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18272
fi
 
18273
echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
 
18274
echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
 
18275
if test $ac_cv_func_setsockopt = yes; then
5366
18276
  :
5367
18277
else
5368
 
  echo "$ac_t""no" 1>&6
5369
 
echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
5370
 
echo "configure:5371: checking for setsockopt in -lsocket" >&5
5371
 
ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
5372
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5373
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18278
 
 
18279
echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
 
18280
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
 
18281
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
 
18282
  echo $ECHO_N "(cached) $ECHO_C" >&6
5374
18283
else
5375
 
  ac_save_LIBS="$LIBS"
 
18284
  ac_check_lib_save_LIBS=$LIBS
5376
18285
LIBS="-lsocket  $LIBS"
5377
 
cat > conftest.$ac_ext <<EOF
5378
 
#line 5379 "configure"
5379
 
#include "confdefs.h"
 
18286
cat >conftest.$ac_ext <<_ACEOF
 
18287
#line $LINENO "configure"
 
18288
/* confdefs.h.  */
 
18289
_ACEOF
 
18290
cat confdefs.h >>conftest.$ac_ext
 
18291
cat >>conftest.$ac_ext <<_ACEOF
 
18292
/* end confdefs.h.  */
 
18293
 
5380
18294
/* Override any gcc2 internal prototype to avoid an error.  */
 
18295
#ifdef __cplusplus
 
18296
extern "C"
 
18297
#endif
5381
18298
/* We use char because int might match the return type of a gcc2
5382
 
    builtin and then its argument prototype would still apply.  */
5383
 
char setsockopt();
5384
 
 
5385
 
int main() {
5386
 
setsockopt()
5387
 
; return 0; }
5388
 
EOF
5389
 
if { (eval echo configure:5390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5390
 
  rm -rf conftest*
5391
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
18299
   builtin and then its argument prototype would still apply.  */
 
18300
char setsockopt ();
 
18301
int
 
18302
main ()
 
18303
{
 
18304
setsockopt ();
 
18305
  ;
 
18306
  return 0;
 
18307
}
 
18308
_ACEOF
 
18309
rm -f conftest.$ac_objext conftest$ac_exeext
 
18310
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18311
  (eval $ac_link) 2>&5
 
18312
  ac_status=$?
 
18313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18314
  (exit $ac_status); } &&
 
18315
         { ac_try='test -s conftest$ac_exeext'
 
18316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18317
  (eval $ac_try) 2>&5
 
18318
  ac_status=$?
 
18319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18320
  (exit $ac_status); }; }; then
 
18321
  ac_cv_lib_socket_setsockopt=yes
5392
18322
else
5393
 
  echo "configure: failed program was:" >&5
5394
 
  cat conftest.$ac_ext >&5
5395
 
  rm -rf conftest*
5396
 
  eval "ac_cv_lib_$ac_lib_var=no"
5397
 
fi
5398
 
rm -f conftest*
5399
 
LIBS="$ac_save_LIBS"
 
18323
  echo "$as_me: failed program was:" >&5
 
18324
sed 's/^/| /' conftest.$ac_ext >&5
5400
18325
 
5401
 
fi
5402
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5403
 
  echo "$ac_t""yes" 1>&6
5404
 
    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
5405
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5406
 
  cat >> confdefs.h <<EOF
5407
 
#define $ac_tr_lib 1
5408
 
EOF
 
18326
ac_cv_lib_socket_setsockopt=no
 
18327
fi
 
18328
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18329
LIBS=$ac_check_lib_save_LIBS
 
18330
fi
 
18331
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
 
18332
echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
 
18333
if test $ac_cv_lib_socket_setsockopt = yes; then
 
18334
  cat >>confdefs.h <<_ACEOF
 
18335
#define HAVE_LIBSOCKET 1
 
18336
_ACEOF
5409
18337
 
5410
18338
  LIBS="-lsocket $LIBS"
5411
18339
 
5412
 
else
5413
 
  echo "$ac_t""no" 1>&6
5414
 
fi
5415
 
 
5416
 
fi
5417
 
 
5418
 
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
5419
 
echo "configure:5420: checking for dlopen" >&5
5420
 
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
5421
 
  echo $ac_n "(cached) $ac_c" 1>&6
5422
 
else
5423
 
  cat > conftest.$ac_ext <<EOF
5424
 
#line 5425 "configure"
5425
 
#include "confdefs.h"
 
18340
fi
 
18341
 
 
18342
fi
 
18343
 
 
18344
echo "$as_me:$LINENO: checking for dlopen" >&5
 
18345
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18346
if test "${ac_cv_func_dlopen+set}" = set; then
 
18347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18348
else
 
18349
  cat >conftest.$ac_ext <<_ACEOF
 
18350
#line $LINENO "configure"
 
18351
/* confdefs.h.  */
 
18352
_ACEOF
 
18353
cat confdefs.h >>conftest.$ac_ext
 
18354
cat >>conftest.$ac_ext <<_ACEOF
 
18355
/* end confdefs.h.  */
5426
18356
/* System header to define __stub macros and hopefully few prototypes,
5427
 
    which can conflict with char dlopen(); below.  */
5428
 
#include <assert.h>
 
18357
    which can conflict with char dlopen (); below.
 
18358
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18359
    <limits.h> exists even on freestanding compilers.  */
 
18360
#ifdef __STDC__
 
18361
# include <limits.h>
 
18362
#else
 
18363
# include <assert.h>
 
18364
#endif
5429
18365
/* Override any gcc2 internal prototype to avoid an error.  */
 
18366
#ifdef __cplusplus
 
18367
extern "C"
 
18368
{
 
18369
#endif
5430
18370
/* We use char because int might match the return type of a gcc2
5431
 
    builtin and then its argument prototype would still apply.  */
5432
 
char dlopen();
5433
 
 
5434
 
int main() {
5435
 
 
 
18371
   builtin and then its argument prototype would still apply.  */
 
18372
char dlopen ();
5436
18373
/* The GNU C library defines this for functions which it implements
5437
18374
    to always fail with ENOSYS.  Some functions are actually named
5438
18375
    something starting with __ and the normal name is an alias.  */
5439
18376
#if defined (__stub_dlopen) || defined (__stub___dlopen)
5440
18377
choke me
5441
18378
#else
5442
 
dlopen();
 
18379
char (*f) () = dlopen;
 
18380
#endif
 
18381
#ifdef __cplusplus
 
18382
}
5443
18383
#endif
5444
18384
 
5445
 
; return 0; }
5446
 
EOF
5447
 
if { (eval echo configure:5448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5448
 
  rm -rf conftest*
5449
 
  eval "ac_cv_func_dlopen=yes"
 
18385
int
 
18386
main ()
 
18387
{
 
18388
return f != dlopen;
 
18389
  ;
 
18390
  return 0;
 
18391
}
 
18392
_ACEOF
 
18393
rm -f conftest.$ac_objext conftest$ac_exeext
 
18394
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18395
  (eval $ac_link) 2>&5
 
18396
  ac_status=$?
 
18397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18398
  (exit $ac_status); } &&
 
18399
         { ac_try='test -s conftest$ac_exeext'
 
18400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18401
  (eval $ac_try) 2>&5
 
18402
  ac_status=$?
 
18403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18404
  (exit $ac_status); }; }; then
 
18405
  ac_cv_func_dlopen=yes
5450
18406
else
5451
 
  echo "configure: failed program was:" >&5
5452
 
  cat conftest.$ac_ext >&5
5453
 
  rm -rf conftest*
5454
 
  eval "ac_cv_func_dlopen=no"
5455
 
fi
5456
 
rm -f conftest*
5457
 
fi
 
18407
  echo "$as_me: failed program was:" >&5
 
18408
sed 's/^/| /' conftest.$ac_ext >&5
5458
18409
 
5459
 
if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5460
 
  echo "$ac_t""yes" 1>&6
 
18410
ac_cv_func_dlopen=no
 
18411
fi
 
18412
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18413
fi
 
18414
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18415
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18416
if test $ac_cv_func_dlopen = yes; then
5461
18417
  :
5462
18418
else
5463
 
  echo "$ac_t""no" 1>&6
5464
 
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5465
 
echo "configure:5466: checking for dlopen in -ldl" >&5
5466
 
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5467
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5468
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18419
 
 
18420
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18421
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18422
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18423
  echo $ECHO_N "(cached) $ECHO_C" >&6
5469
18424
else
5470
 
  ac_save_LIBS="$LIBS"
 
18425
  ac_check_lib_save_LIBS=$LIBS
5471
18426
LIBS="-ldl  $LIBS"
5472
 
cat > conftest.$ac_ext <<EOF
5473
 
#line 5474 "configure"
5474
 
#include "confdefs.h"
 
18427
cat >conftest.$ac_ext <<_ACEOF
 
18428
#line $LINENO "configure"
 
18429
/* confdefs.h.  */
 
18430
_ACEOF
 
18431
cat confdefs.h >>conftest.$ac_ext
 
18432
cat >>conftest.$ac_ext <<_ACEOF
 
18433
/* end confdefs.h.  */
 
18434
 
5475
18435
/* Override any gcc2 internal prototype to avoid an error.  */
 
18436
#ifdef __cplusplus
 
18437
extern "C"
 
18438
#endif
5476
18439
/* We use char because int might match the return type of a gcc2
5477
 
    builtin and then its argument prototype would still apply.  */
5478
 
char dlopen();
5479
 
 
5480
 
int main() {
5481
 
dlopen()
5482
 
; return 0; }
5483
 
EOF
5484
 
if { (eval echo configure:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5485
 
  rm -rf conftest*
5486
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
18440
   builtin and then its argument prototype would still apply.  */
 
18441
char dlopen ();
 
18442
int
 
18443
main ()
 
18444
{
 
18445
dlopen ();
 
18446
  ;
 
18447
  return 0;
 
18448
}
 
18449
_ACEOF
 
18450
rm -f conftest.$ac_objext conftest$ac_exeext
 
18451
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18452
  (eval $ac_link) 2>&5
 
18453
  ac_status=$?
 
18454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18455
  (exit $ac_status); } &&
 
18456
         { ac_try='test -s conftest$ac_exeext'
 
18457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18458
  (eval $ac_try) 2>&5
 
18459
  ac_status=$?
 
18460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18461
  (exit $ac_status); }; }; then
 
18462
  ac_cv_lib_dl_dlopen=yes
5487
18463
else
5488
 
  echo "configure: failed program was:" >&5
5489
 
  cat conftest.$ac_ext >&5
5490
 
  rm -rf conftest*
5491
 
  eval "ac_cv_lib_$ac_lib_var=no"
5492
 
fi
5493
 
rm -f conftest*
5494
 
LIBS="$ac_save_LIBS"
 
18464
  echo "$as_me: failed program was:" >&5
 
18465
sed 's/^/| /' conftest.$ac_ext >&5
5495
18466
 
5496
 
fi
5497
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5498
 
  echo "$ac_t""yes" 1>&6
5499
 
    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/^a-zA-Z0-9_/_/g' \
5500
 
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5501
 
  cat >> confdefs.h <<EOF
5502
 
#define $ac_tr_lib 1
5503
 
EOF
 
18467
ac_cv_lib_dl_dlopen=no
 
18468
fi
 
18469
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18470
LIBS=$ac_check_lib_save_LIBS
 
18471
fi
 
18472
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18473
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18474
if test $ac_cv_lib_dl_dlopen = yes; then
 
18475
  cat >>confdefs.h <<_ACEOF
 
18476
#define HAVE_LIBDL 1
 
18477
_ACEOF
5504
18478
 
5505
18479
  LIBS="-ldl $LIBS"
5506
18480
 
5507
 
else
5508
 
  echo "$ac_t""no" 1>&6
5509
 
fi
5510
 
 
5511
 
fi
 
18481
fi
 
18482
 
 
18483
fi
 
18484
 
 
18485
 
 
18486
 
 
18487
 
 
18488
 
5512
18489
 
5513
18490
 
5514
18491
ac_header_dirent=no
5515
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5516
 
do
5517
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5518
 
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5519
 
echo "configure:5520: checking for $ac_hdr that defines DIR" >&5
5520
 
if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5521
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18492
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
18493
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
18494
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
18495
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
 
18496
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
18497
  echo $ECHO_N "(cached) $ECHO_C" >&6
5522
18498
else
5523
 
  cat > conftest.$ac_ext <<EOF
5524
 
#line 5525 "configure"
5525
 
#include "confdefs.h"
 
18499
  cat >conftest.$ac_ext <<_ACEOF
 
18500
#line $LINENO "configure"
 
18501
/* confdefs.h.  */
 
18502
_ACEOF
 
18503
cat confdefs.h >>conftest.$ac_ext
 
18504
cat >>conftest.$ac_ext <<_ACEOF
 
18505
/* end confdefs.h.  */
5526
18506
#include <sys/types.h>
5527
18507
#include <$ac_hdr>
5528
 
int main() {
5529
 
DIR *dirp = 0;
5530
 
; return 0; }
5531
 
EOF
5532
 
if { (eval echo configure:5533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5533
 
  rm -rf conftest*
5534
 
  eval "ac_cv_header_dirent_$ac_safe=yes"
5535
 
else
5536
 
  echo "configure: failed program was:" >&5
5537
 
  cat conftest.$ac_ext >&5
5538
 
  rm -rf conftest*
5539
 
  eval "ac_cv_header_dirent_$ac_safe=no"
5540
 
fi
5541
 
rm -f conftest*
5542
 
fi
5543
 
if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5544
 
  echo "$ac_t""yes" 1>&6
5545
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5546
 
  cat >> confdefs.h <<EOF
5547
 
#define $ac_tr_hdr 1
5548
 
EOF
5549
 
 ac_header_dirent=$ac_hdr; break
5550
 
else
5551
 
  echo "$ac_t""no" 1>&6
5552
 
fi
 
18508
 
 
18509
int
 
18510
main ()
 
18511
{
 
18512
if ((DIR *) 0)
 
18513
return 0;
 
18514
  ;
 
18515
  return 0;
 
18516
}
 
18517
_ACEOF
 
18518
rm -f conftest.$ac_objext
 
18519
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18520
  (eval $ac_compile) 2>&5
 
18521
  ac_status=$?
 
18522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18523
  (exit $ac_status); } &&
 
18524
         { ac_try='test -s conftest.$ac_objext'
 
18525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18526
  (eval $ac_try) 2>&5
 
18527
  ac_status=$?
 
18528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18529
  (exit $ac_status); }; }; then
 
18530
  eval "$as_ac_Header=yes"
 
18531
else
 
18532
  echo "$as_me: failed program was:" >&5
 
18533
sed 's/^/| /' conftest.$ac_ext >&5
 
18534
 
 
18535
eval "$as_ac_Header=no"
 
18536
fi
 
18537
rm -f conftest.$ac_objext conftest.$ac_ext
 
18538
fi
 
18539
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
18540
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
18541
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
18542
  cat >>confdefs.h <<_ACEOF
 
18543
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
18544
_ACEOF
 
18545
 
 
18546
ac_header_dirent=$ac_hdr; break
 
18547
fi
 
18548
 
5553
18549
done
5554
18550
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5555
18551
if test $ac_header_dirent = dirent.h; then
5556
 
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5557
 
echo "configure:5558: checking for opendir in -ldir" >&5
5558
 
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5559
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5560
 
  echo $ac_n "(cached) $ac_c" 1>&6
5561
 
else
5562
 
  ac_save_LIBS="$LIBS"
5563
 
LIBS="-ldir  $LIBS"
5564
 
cat > conftest.$ac_ext <<EOF
5565
 
#line 5566 "configure"
5566
 
#include "confdefs.h"
5567
 
/* Override any gcc2 internal prototype to avoid an error.  */
5568
 
/* We use char because int might match the return type of a gcc2
5569
 
    builtin and then its argument prototype would still apply.  */
5570
 
char opendir();
5571
 
 
5572
 
int main() {
5573
 
opendir()
5574
 
; return 0; }
5575
 
EOF
5576
 
if { (eval echo configure:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5577
 
  rm -rf conftest*
5578
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5579
 
else
5580
 
  echo "configure: failed program was:" >&5
5581
 
  cat conftest.$ac_ext >&5
5582
 
  rm -rf conftest*
5583
 
  eval "ac_cv_lib_$ac_lib_var=no"
5584
 
fi
5585
 
rm -f conftest*
5586
 
LIBS="$ac_save_LIBS"
5587
 
 
5588
 
fi
5589
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5590
 
  echo "$ac_t""yes" 1>&6
5591
 
  LIBS="$LIBS -ldir"
5592
 
else
5593
 
  echo "$ac_t""no" 1>&6
5594
 
fi
5595
 
 
5596
 
else
5597
 
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5598
 
echo "configure:5599: checking for opendir in -lx" >&5
5599
 
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5600
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5601
 
  echo $ac_n "(cached) $ac_c" 1>&6
5602
 
else
5603
 
  ac_save_LIBS="$LIBS"
5604
 
LIBS="-lx  $LIBS"
5605
 
cat > conftest.$ac_ext <<EOF
5606
 
#line 5607 "configure"
5607
 
#include "confdefs.h"
5608
 
/* Override any gcc2 internal prototype to avoid an error.  */
5609
 
/* We use char because int might match the return type of a gcc2
5610
 
    builtin and then its argument prototype would still apply.  */
5611
 
char opendir();
5612
 
 
5613
 
int main() {
5614
 
opendir()
5615
 
; return 0; }
5616
 
EOF
5617
 
if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5618
 
  rm -rf conftest*
5619
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5620
 
else
5621
 
  echo "configure: failed program was:" >&5
5622
 
  cat conftest.$ac_ext >&5
5623
 
  rm -rf conftest*
5624
 
  eval "ac_cv_lib_$ac_lib_var=no"
5625
 
fi
5626
 
rm -f conftest*
5627
 
LIBS="$ac_save_LIBS"
5628
 
 
5629
 
fi
5630
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5631
 
  echo "$ac_t""yes" 1>&6
5632
 
  LIBS="$LIBS -lx"
5633
 
else
5634
 
  echo "$ac_t""no" 1>&6
5635
 
fi
5636
 
 
5637
 
fi
5638
 
 
5639
 
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5640
 
echo "configure:5641: checking for ANSI C header files" >&5
5641
 
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5642
 
  echo $ac_n "(cached) $ac_c" 1>&6
5643
 
else
5644
 
  cat > conftest.$ac_ext <<EOF
5645
 
#line 5646 "configure"
5646
 
#include "confdefs.h"
 
18552
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
18553
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
18554
if test "${ac_cv_search_opendir+set}" = set; then
 
18555
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18556
else
 
18557
  ac_func_search_save_LIBS=$LIBS
 
18558
ac_cv_search_opendir=no
 
18559
cat >conftest.$ac_ext <<_ACEOF
 
18560
#line $LINENO "configure"
 
18561
/* confdefs.h.  */
 
18562
_ACEOF
 
18563
cat confdefs.h >>conftest.$ac_ext
 
18564
cat >>conftest.$ac_ext <<_ACEOF
 
18565
/* end confdefs.h.  */
 
18566
 
 
18567
/* Override any gcc2 internal prototype to avoid an error.  */
 
18568
#ifdef __cplusplus
 
18569
extern "C"
 
18570
#endif
 
18571
/* We use char because int might match the return type of a gcc2
 
18572
   builtin and then its argument prototype would still apply.  */
 
18573
char opendir ();
 
18574
int
 
18575
main ()
 
18576
{
 
18577
opendir ();
 
18578
  ;
 
18579
  return 0;
 
18580
}
 
18581
_ACEOF
 
18582
rm -f conftest.$ac_objext conftest$ac_exeext
 
18583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18584
  (eval $ac_link) 2>&5
 
18585
  ac_status=$?
 
18586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18587
  (exit $ac_status); } &&
 
18588
         { ac_try='test -s conftest$ac_exeext'
 
18589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18590
  (eval $ac_try) 2>&5
 
18591
  ac_status=$?
 
18592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18593
  (exit $ac_status); }; }; then
 
18594
  ac_cv_search_opendir="none required"
 
18595
else
 
18596
  echo "$as_me: failed program was:" >&5
 
18597
sed 's/^/| /' conftest.$ac_ext >&5
 
18598
 
 
18599
fi
 
18600
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18601
if test "$ac_cv_search_opendir" = no; then
 
18602
  for ac_lib in dir; do
 
18603
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
18604
    cat >conftest.$ac_ext <<_ACEOF
 
18605
#line $LINENO "configure"
 
18606
/* confdefs.h.  */
 
18607
_ACEOF
 
18608
cat confdefs.h >>conftest.$ac_ext
 
18609
cat >>conftest.$ac_ext <<_ACEOF
 
18610
/* end confdefs.h.  */
 
18611
 
 
18612
/* Override any gcc2 internal prototype to avoid an error.  */
 
18613
#ifdef __cplusplus
 
18614
extern "C"
 
18615
#endif
 
18616
/* We use char because int might match the return type of a gcc2
 
18617
   builtin and then its argument prototype would still apply.  */
 
18618
char opendir ();
 
18619
int
 
18620
main ()
 
18621
{
 
18622
opendir ();
 
18623
  ;
 
18624
  return 0;
 
18625
}
 
18626
_ACEOF
 
18627
rm -f conftest.$ac_objext conftest$ac_exeext
 
18628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18629
  (eval $ac_link) 2>&5
 
18630
  ac_status=$?
 
18631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18632
  (exit $ac_status); } &&
 
18633
         { ac_try='test -s conftest$ac_exeext'
 
18634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18635
  (eval $ac_try) 2>&5
 
18636
  ac_status=$?
 
18637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18638
  (exit $ac_status); }; }; then
 
18639
  ac_cv_search_opendir="-l$ac_lib"
 
18640
break
 
18641
else
 
18642
  echo "$as_me: failed program was:" >&5
 
18643
sed 's/^/| /' conftest.$ac_ext >&5
 
18644
 
 
18645
fi
 
18646
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18647
  done
 
18648
fi
 
18649
LIBS=$ac_func_search_save_LIBS
 
18650
fi
 
18651
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
18652
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
18653
if test "$ac_cv_search_opendir" != no; then
 
18654
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
18655
 
 
18656
fi
 
18657
 
 
18658
else
 
18659
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
18660
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
18661
if test "${ac_cv_search_opendir+set}" = set; then
 
18662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18663
else
 
18664
  ac_func_search_save_LIBS=$LIBS
 
18665
ac_cv_search_opendir=no
 
18666
cat >conftest.$ac_ext <<_ACEOF
 
18667
#line $LINENO "configure"
 
18668
/* confdefs.h.  */
 
18669
_ACEOF
 
18670
cat confdefs.h >>conftest.$ac_ext
 
18671
cat >>conftest.$ac_ext <<_ACEOF
 
18672
/* end confdefs.h.  */
 
18673
 
 
18674
/* Override any gcc2 internal prototype to avoid an error.  */
 
18675
#ifdef __cplusplus
 
18676
extern "C"
 
18677
#endif
 
18678
/* We use char because int might match the return type of a gcc2
 
18679
   builtin and then its argument prototype would still apply.  */
 
18680
char opendir ();
 
18681
int
 
18682
main ()
 
18683
{
 
18684
opendir ();
 
18685
  ;
 
18686
  return 0;
 
18687
}
 
18688
_ACEOF
 
18689
rm -f conftest.$ac_objext conftest$ac_exeext
 
18690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18691
  (eval $ac_link) 2>&5
 
18692
  ac_status=$?
 
18693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18694
  (exit $ac_status); } &&
 
18695
         { ac_try='test -s conftest$ac_exeext'
 
18696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18697
  (eval $ac_try) 2>&5
 
18698
  ac_status=$?
 
18699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18700
  (exit $ac_status); }; }; then
 
18701
  ac_cv_search_opendir="none required"
 
18702
else
 
18703
  echo "$as_me: failed program was:" >&5
 
18704
sed 's/^/| /' conftest.$ac_ext >&5
 
18705
 
 
18706
fi
 
18707
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18708
if test "$ac_cv_search_opendir" = no; then
 
18709
  for ac_lib in x; do
 
18710
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
18711
    cat >conftest.$ac_ext <<_ACEOF
 
18712
#line $LINENO "configure"
 
18713
/* confdefs.h.  */
 
18714
_ACEOF
 
18715
cat confdefs.h >>conftest.$ac_ext
 
18716
cat >>conftest.$ac_ext <<_ACEOF
 
18717
/* end confdefs.h.  */
 
18718
 
 
18719
/* Override any gcc2 internal prototype to avoid an error.  */
 
18720
#ifdef __cplusplus
 
18721
extern "C"
 
18722
#endif
 
18723
/* We use char because int might match the return type of a gcc2
 
18724
   builtin and then its argument prototype would still apply.  */
 
18725
char opendir ();
 
18726
int
 
18727
main ()
 
18728
{
 
18729
opendir ();
 
18730
  ;
 
18731
  return 0;
 
18732
}
 
18733
_ACEOF
 
18734
rm -f conftest.$ac_objext conftest$ac_exeext
 
18735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18736
  (eval $ac_link) 2>&5
 
18737
  ac_status=$?
 
18738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18739
  (exit $ac_status); } &&
 
18740
         { ac_try='test -s conftest$ac_exeext'
 
18741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18742
  (eval $ac_try) 2>&5
 
18743
  ac_status=$?
 
18744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18745
  (exit $ac_status); }; }; then
 
18746
  ac_cv_search_opendir="-l$ac_lib"
 
18747
break
 
18748
else
 
18749
  echo "$as_me: failed program was:" >&5
 
18750
sed 's/^/| /' conftest.$ac_ext >&5
 
18751
 
 
18752
fi
 
18753
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
18754
  done
 
18755
fi
 
18756
LIBS=$ac_func_search_save_LIBS
 
18757
fi
 
18758
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
18759
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
18760
if test "$ac_cv_search_opendir" != no; then
 
18761
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
18762
 
 
18763
fi
 
18764
 
 
18765
fi
 
18766
 
 
18767
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
18768
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
18769
if test "${ac_cv_header_stdc+set}" = set; then
 
18770
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18771
else
 
18772
  cat >conftest.$ac_ext <<_ACEOF
 
18773
#line $LINENO "configure"
 
18774
/* confdefs.h.  */
 
18775
_ACEOF
 
18776
cat confdefs.h >>conftest.$ac_ext
 
18777
cat >>conftest.$ac_ext <<_ACEOF
 
18778
/* end confdefs.h.  */
5647
18779
#include <stdlib.h>
5648
18780
#include <stdarg.h>
5649
18781
#include <string.h>
5650
18782
#include <float.h>
5651
 
EOF
5652
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5653
 
{ (eval echo configure:5654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5654
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5655
 
if test -z "$ac_err"; then
5656
 
  rm -rf conftest*
 
18783
 
 
18784
int
 
18785
main ()
 
18786
{
 
18787
 
 
18788
  ;
 
18789
  return 0;
 
18790
}
 
18791
_ACEOF
 
18792
rm -f conftest.$ac_objext
 
18793
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18794
  (eval $ac_compile) 2>&5
 
18795
  ac_status=$?
 
18796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18797
  (exit $ac_status); } &&
 
18798
         { ac_try='test -s conftest.$ac_objext'
 
18799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18800
  (eval $ac_try) 2>&5
 
18801
  ac_status=$?
 
18802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18803
  (exit $ac_status); }; }; then
5657
18804
  ac_cv_header_stdc=yes
5658
18805
else
5659
 
  echo "$ac_err" >&5
5660
 
  echo "configure: failed program was:" >&5
5661
 
  cat conftest.$ac_ext >&5
5662
 
  rm -rf conftest*
5663
 
  ac_cv_header_stdc=no
 
18806
  echo "$as_me: failed program was:" >&5
 
18807
sed 's/^/| /' conftest.$ac_ext >&5
 
18808
 
 
18809
ac_cv_header_stdc=no
5664
18810
fi
5665
 
rm -f conftest*
 
18811
rm -f conftest.$ac_objext conftest.$ac_ext
5666
18812
 
5667
18813
if test $ac_cv_header_stdc = yes; then
5668
18814
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5669
 
cat > conftest.$ac_ext <<EOF
5670
 
#line 5671 "configure"
5671
 
#include "confdefs.h"
 
18815
  cat >conftest.$ac_ext <<_ACEOF
 
18816
#line $LINENO "configure"
 
18817
/* confdefs.h.  */
 
18818
_ACEOF
 
18819
cat confdefs.h >>conftest.$ac_ext
 
18820
cat >>conftest.$ac_ext <<_ACEOF
 
18821
/* end confdefs.h.  */
5672
18822
#include <string.h>
5673
 
EOF
 
18823
 
 
18824
_ACEOF
5674
18825
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675
 
  egrep "memchr" >/dev/null 2>&1; then
 
18826
  $EGREP "memchr" >/dev/null 2>&1; then
5676
18827
  :
5677
18828
else
5678
 
  rm -rf conftest*
5679
18829
  ac_cv_header_stdc=no
5680
18830
fi
5681
18831
rm -f conftest*
5684
18834
 
5685
18835
if test $ac_cv_header_stdc = yes; then
5686
18836
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5687
 
cat > conftest.$ac_ext <<EOF
5688
 
#line 5689 "configure"
5689
 
#include "confdefs.h"
 
18837
  cat >conftest.$ac_ext <<_ACEOF
 
18838
#line $LINENO "configure"
 
18839
/* confdefs.h.  */
 
18840
_ACEOF
 
18841
cat confdefs.h >>conftest.$ac_ext
 
18842
cat >>conftest.$ac_ext <<_ACEOF
 
18843
/* end confdefs.h.  */
5690
18844
#include <stdlib.h>
5691
 
EOF
 
18845
 
 
18846
_ACEOF
5692
18847
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693
 
  egrep "free" >/dev/null 2>&1; then
 
18848
  $EGREP "free" >/dev/null 2>&1; then
5694
18849
  :
5695
18850
else
5696
 
  rm -rf conftest*
5697
18851
  ac_cv_header_stdc=no
5698
18852
fi
5699
18853
rm -f conftest*
5702
18856
 
5703
18857
if test $ac_cv_header_stdc = yes; then
5704
18858
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5705
 
if test "$cross_compiling" = yes; then
 
18859
  if test "$cross_compiling" = yes; then
5706
18860
  :
5707
18861
else
5708
 
  cat > conftest.$ac_ext <<EOF
5709
 
#line 5710 "configure"
5710
 
#include "confdefs.h"
 
18862
  cat >conftest.$ac_ext <<_ACEOF
 
18863
#line $LINENO "configure"
 
18864
/* confdefs.h.  */
 
18865
_ACEOF
 
18866
cat confdefs.h >>conftest.$ac_ext
 
18867
cat >>conftest.$ac_ext <<_ACEOF
 
18868
/* end confdefs.h.  */
5711
18869
#include <ctype.h>
5712
 
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5713
 
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
18870
#if ((' ' & 0x0FF) == 0x020)
 
18871
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
18872
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
18873
#else
 
18874
# define ISLOWER(c) \
 
18875
                   (('a' <= (c) && (c) <= 'i') \
 
18876
                     || ('j' <= (c) && (c) <= 'r') \
 
18877
                     || ('s' <= (c) && (c) <= 'z'))
 
18878
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
18879
#endif
 
18880
 
5714
18881
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5715
 
int main () { int i; for (i = 0; i < 256; i++)
5716
 
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5717
 
exit (0); }
5718
 
 
5719
 
EOF
5720
 
if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5721
 
then
 
18882
int
 
18883
main ()
 
18884
{
 
18885
  int i;
 
18886
  for (i = 0; i < 256; i++)
 
18887
    if (XOR (islower (i), ISLOWER (i))
 
18888
        || toupper (i) != TOUPPER (i))
 
18889
      exit(2);
 
18890
  exit (0);
 
18891
}
 
18892
_ACEOF
 
18893
rm -f conftest$ac_exeext
 
18894
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18895
  (eval $ac_link) 2>&5
 
18896
  ac_status=$?
 
18897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18898
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
18899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18900
  (eval $ac_try) 2>&5
 
18901
  ac_status=$?
 
18902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18903
  (exit $ac_status); }; }; then
5722
18904
  :
5723
18905
else
5724
 
  echo "configure: failed program was:" >&5
5725
 
  cat conftest.$ac_ext >&5
5726
 
  rm -fr conftest*
5727
 
  ac_cv_header_stdc=no
5728
 
fi
5729
 
rm -fr conftest*
5730
 
fi
5731
 
 
5732
 
fi
5733
 
fi
5734
 
 
5735
 
echo "$ac_t""$ac_cv_header_stdc" 1>&6
 
18906
  echo "$as_me: program exited with status $ac_status" >&5
 
18907
echo "$as_me: failed program was:" >&5
 
18908
sed 's/^/| /' conftest.$ac_ext >&5
 
18909
 
 
18910
( exit $ac_status )
 
18911
ac_cv_header_stdc=no
 
18912
fi
 
18913
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
18914
fi
 
18915
fi
 
18916
fi
 
18917
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
18918
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5736
18919
if test $ac_cv_header_stdc = yes; then
5737
 
  cat >> confdefs.h <<\EOF
 
18920
 
 
18921
cat >>confdefs.h <<\_ACEOF
5738
18922
#define STDC_HEADERS 1
5739
 
EOF
 
18923
_ACEOF
5740
18924
 
5741
18925
fi
5742
18926
 
5743
 
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5744
 
echo "configure:5745: checking for sys/wait.h that is POSIX.1 compatible" >&5
5745
 
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5746
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18927
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
18928
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
 
18929
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
18930
  echo $ECHO_N "(cached) $ECHO_C" >&6
5747
18931
else
5748
 
  cat > conftest.$ac_ext <<EOF
5749
 
#line 5750 "configure"
5750
 
#include "confdefs.h"
 
18932
  cat >conftest.$ac_ext <<_ACEOF
 
18933
#line $LINENO "configure"
 
18934
/* confdefs.h.  */
 
18935
_ACEOF
 
18936
cat confdefs.h >>conftest.$ac_ext
 
18937
cat >>conftest.$ac_ext <<_ACEOF
 
18938
/* end confdefs.h.  */
5751
18939
#include <sys/types.h>
5752
18940
#include <sys/wait.h>
5753
18941
#ifndef WEXITSTATUS
5754
 
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
18942
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5755
18943
#endif
5756
18944
#ifndef WIFEXITED
5757
 
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
18945
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5758
18946
#endif
5759
 
int main() {
5760
 
int s;
5761
 
wait (&s);
5762
 
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5763
 
; return 0; }
5764
 
EOF
5765
 
if { (eval echo configure:5766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5766
 
  rm -rf conftest*
 
18947
 
 
18948
int
 
18949
main ()
 
18950
{
 
18951
  int s;
 
18952
  wait (&s);
 
18953
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
18954
  ;
 
18955
  return 0;
 
18956
}
 
18957
_ACEOF
 
18958
rm -f conftest.$ac_objext
 
18959
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18960
  (eval $ac_compile) 2>&5
 
18961
  ac_status=$?
 
18962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18963
  (exit $ac_status); } &&
 
18964
         { ac_try='test -s conftest.$ac_objext'
 
18965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18966
  (eval $ac_try) 2>&5
 
18967
  ac_status=$?
 
18968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18969
  (exit $ac_status); }; }; then
5767
18970
  ac_cv_header_sys_wait_h=yes
5768
18971
else
5769
 
  echo "configure: failed program was:" >&5
5770
 
  cat conftest.$ac_ext >&5
5771
 
  rm -rf conftest*
5772
 
  ac_cv_header_sys_wait_h=no
5773
 
fi
5774
 
rm -f conftest*
5775
 
fi
 
18972
  echo "$as_me: failed program was:" >&5
 
18973
sed 's/^/| /' conftest.$ac_ext >&5
5776
18974
 
5777
 
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
 
18975
ac_cv_header_sys_wait_h=no
 
18976
fi
 
18977
rm -f conftest.$ac_objext conftest.$ac_ext
 
18978
fi
 
18979
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
18980
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5778
18981
if test $ac_cv_header_sys_wait_h = yes; then
5779
 
  cat >> confdefs.h <<\EOF
 
18982
 
 
18983
cat >>confdefs.h <<\_ACEOF
5780
18984
#define HAVE_SYS_WAIT_H 1
5781
 
EOF
 
18985
_ACEOF
5782
18986
 
5783
18987
fi
5784
18988
 
5785
 
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5786
 
echo "configure:5787: checking whether time.h and sys/time.h may both be included" >&5
5787
 
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5788
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
18989
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
18990
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
18991
if test "${ac_cv_header_time+set}" = set; then
 
18992
  echo $ECHO_N "(cached) $ECHO_C" >&6
5789
18993
else
5790
 
  cat > conftest.$ac_ext <<EOF
5791
 
#line 5792 "configure"
5792
 
#include "confdefs.h"
 
18994
  cat >conftest.$ac_ext <<_ACEOF
 
18995
#line $LINENO "configure"
 
18996
/* confdefs.h.  */
 
18997
_ACEOF
 
18998
cat confdefs.h >>conftest.$ac_ext
 
18999
cat >>conftest.$ac_ext <<_ACEOF
 
19000
/* end confdefs.h.  */
5793
19001
#include <sys/types.h>
5794
19002
#include <sys/time.h>
5795
19003
#include <time.h>
5796
 
int main() {
5797
 
struct tm *tp;
5798
 
; return 0; }
5799
 
EOF
5800
 
if { (eval echo configure:5801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5801
 
  rm -rf conftest*
 
19004
 
 
19005
int
 
19006
main ()
 
19007
{
 
19008
if ((struct tm *) 0)
 
19009
return 0;
 
19010
  ;
 
19011
  return 0;
 
19012
}
 
19013
_ACEOF
 
19014
rm -f conftest.$ac_objext
 
19015
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19016
  (eval $ac_compile) 2>&5
 
19017
  ac_status=$?
 
19018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19019
  (exit $ac_status); } &&
 
19020
         { ac_try='test -s conftest.$ac_objext'
 
19021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19022
  (eval $ac_try) 2>&5
 
19023
  ac_status=$?
 
19024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19025
  (exit $ac_status); }; }; then
5802
19026
  ac_cv_header_time=yes
5803
19027
else
5804
 
  echo "configure: failed program was:" >&5
5805
 
  cat conftest.$ac_ext >&5
5806
 
  rm -rf conftest*
5807
 
  ac_cv_header_time=no
5808
 
fi
5809
 
rm -f conftest*
5810
 
fi
 
19028
  echo "$as_me: failed program was:" >&5
 
19029
sed 's/^/| /' conftest.$ac_ext >&5
5811
19030
 
5812
 
echo "$ac_t""$ac_cv_header_time" 1>&6
 
19031
ac_cv_header_time=no
 
19032
fi
 
19033
rm -f conftest.$ac_objext conftest.$ac_ext
 
19034
fi
 
19035
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
19036
echo "${ECHO_T}$ac_cv_header_time" >&6
5813
19037
if test $ac_cv_header_time = yes; then
5814
 
  cat >> confdefs.h <<\EOF
 
19038
 
 
19039
cat >>confdefs.h <<\_ACEOF
5815
19040
#define TIME_WITH_SYS_TIME 1
5816
 
EOF
 
19041
_ACEOF
5817
19042
 
5818
19043
fi
5819
19044
 
5820
 
for ac_hdr in fcntl.h sys/ioctl.h sys/time.h sys/utsname.h unistd.h siginfo.h memory.h stropts.h termios.h string.h limits.h argz.h locale.h nl_types.h malloc.h sys/param.h
 
19045
 
 
19046
 
 
19047
 
 
19048
 
 
19049
 
 
19050
 
 
19051
 
 
19052
 
 
19053
 
 
19054
 
 
19055
 
 
19056
 
 
19057
 
 
19058
 
 
19059
 
 
19060
 
 
19061
for ac_header in fcntl.h sys/ioctl.h sys/time.h sys/utsname.h unistd.h siginfo.h memory.h stropts.h termios.h string.h limits.h argz.h locale.h nl_types.h malloc.h sys/param.h
5821
19062
do
5822
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5823
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5824
 
echo "configure:5825: checking for $ac_hdr" >&5
5825
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5826
 
  echo $ac_n "(cached) $ac_c" 1>&6
5827
 
else
5828
 
  cat > conftest.$ac_ext <<EOF
5829
 
#line 5830 "configure"
5830
 
#include "confdefs.h"
5831
 
#include <$ac_hdr>
5832
 
EOF
5833
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5834
 
{ (eval echo configure:5835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5835
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5836
 
if test -z "$ac_err"; then
5837
 
  rm -rf conftest*
5838
 
  eval "ac_cv_header_$ac_safe=yes"
5839
 
else
5840
 
  echo "$ac_err" >&5
5841
 
  echo "configure: failed program was:" >&5
5842
 
  cat conftest.$ac_ext >&5
5843
 
  rm -rf conftest*
5844
 
  eval "ac_cv_header_$ac_safe=no"
5845
 
fi
5846
 
rm -f conftest*
5847
 
fi
5848
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5849
 
  echo "$ac_t""yes" 1>&6
5850
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5851
 
  cat >> confdefs.h <<EOF
5852
 
#define $ac_tr_hdr 1
5853
 
EOF
5854
 
 
5855
 
else
5856
 
  echo "$ac_t""no" 1>&6
5857
 
fi
 
19063
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19064
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19065
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19066
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19067
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19069
fi
 
19070
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19071
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19072
else
 
19073
  # Is the header compilable?
 
19074
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19075
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
19076
cat >conftest.$ac_ext <<_ACEOF
 
19077
#line $LINENO "configure"
 
19078
/* confdefs.h.  */
 
19079
_ACEOF
 
19080
cat confdefs.h >>conftest.$ac_ext
 
19081
cat >>conftest.$ac_ext <<_ACEOF
 
19082
/* end confdefs.h.  */
 
19083
$ac_includes_default
 
19084
#include <$ac_header>
 
19085
_ACEOF
 
19086
rm -f conftest.$ac_objext
 
19087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19088
  (eval $ac_compile) 2>&5
 
19089
  ac_status=$?
 
19090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19091
  (exit $ac_status); } &&
 
19092
         { ac_try='test -s conftest.$ac_objext'
 
19093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19094
  (eval $ac_try) 2>&5
 
19095
  ac_status=$?
 
19096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19097
  (exit $ac_status); }; }; then
 
19098
  ac_header_compiler=yes
 
19099
else
 
19100
  echo "$as_me: failed program was:" >&5
 
19101
sed 's/^/| /' conftest.$ac_ext >&5
 
19102
 
 
19103
ac_header_compiler=no
 
19104
fi
 
19105
rm -f conftest.$ac_objext conftest.$ac_ext
 
19106
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19107
echo "${ECHO_T}$ac_header_compiler" >&6
 
19108
 
 
19109
# Is the header present?
 
19110
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19111
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
19112
cat >conftest.$ac_ext <<_ACEOF
 
19113
#line $LINENO "configure"
 
19114
/* confdefs.h.  */
 
19115
_ACEOF
 
19116
cat confdefs.h >>conftest.$ac_ext
 
19117
cat >>conftest.$ac_ext <<_ACEOF
 
19118
/* end confdefs.h.  */
 
19119
#include <$ac_header>
 
19120
_ACEOF
 
19121
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19122
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19123
  ac_status=$?
 
19124
  grep -v '^ *+' conftest.er1 >conftest.err
 
19125
  rm -f conftest.er1
 
19126
  cat conftest.err >&5
 
19127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19128
  (exit $ac_status); } >/dev/null; then
 
19129
  if test -s conftest.err; then
 
19130
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19131
  else
 
19132
    ac_cpp_err=
 
19133
  fi
 
19134
else
 
19135
  ac_cpp_err=yes
 
19136
fi
 
19137
if test -z "$ac_cpp_err"; then
 
19138
  ac_header_preproc=yes
 
19139
else
 
19140
  echo "$as_me: failed program was:" >&5
 
19141
sed 's/^/| /' conftest.$ac_ext >&5
 
19142
 
 
19143
  ac_header_preproc=no
 
19144
fi
 
19145
rm -f conftest.err conftest.$ac_ext
 
19146
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19147
echo "${ECHO_T}$ac_header_preproc" >&6
 
19148
 
 
19149
# So?  What about this header?
 
19150
case $ac_header_compiler:$ac_header_preproc in
 
19151
  yes:no )
 
19152
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19153
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19154
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19155
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19156
    (
 
19157
      cat <<\_ASBOX
 
19158
## ------------------------------------ ##
 
19159
## Report this to bug-autoconf@gnu.org. ##
 
19160
## ------------------------------------ ##
 
19161
_ASBOX
 
19162
    ) |
 
19163
      sed "s/^/$as_me: WARNING:     /" >&2
 
19164
    ;;
 
19165
  no:yes )
 
19166
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19167
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19168
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
19169
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
19170
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19171
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19172
    (
 
19173
      cat <<\_ASBOX
 
19174
## ------------------------------------ ##
 
19175
## Report this to bug-autoconf@gnu.org. ##
 
19176
## ------------------------------------ ##
 
19177
_ASBOX
 
19178
    ) |
 
19179
      sed "s/^/$as_me: WARNING:     /" >&2
 
19180
    ;;
 
19181
esac
 
19182
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19183
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19184
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19186
else
 
19187
  eval "$as_ac_Header=$ac_header_preproc"
 
19188
fi
 
19189
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19190
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19191
 
 
19192
fi
 
19193
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19194
  cat >>confdefs.h <<_ACEOF
 
19195
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19196
_ACEOF
 
19197
 
 
19198
fi
 
19199
 
5858
19200
done
5859
19201
 
5860
19202
 
 
19203
 
5861
19204
# Check whether --with-gmp or --without-gmp was given.
5862
19205
if test "${with_gmp+set}" = set; then
5863
19206
  withval="$with_gmp"
5864
 
  :
 
19207
 
5865
19208
else
5866
19209
  with_gmp=maybe
5867
 
fi
5868
 
 
 
19210
fi;
5869
19211
 
5870
19212
GMP_LIBS="-lm"
5871
19213
if test "$with_gmp" != "no"; then
5872
 
  # Check whether --with-gmp-prefix or --without-gmp-prefix was given.
 
19214
 
 
19215
# Check whether --with-gmp-prefix or --without-gmp-prefix was given.
5873
19216
if test "${with_gmp_prefix+set}" = set; then
5874
19217
  withval="$with_gmp_prefix"
5875
19218
  if test "$withval" != "no"; then
5880
19223
     if test -d /usr/include/gmp2; then
5881
19224
      CPPFLAGS="${CPPFLAGS} -I/usr/include/gmp2"
5882
19225
    fi
5883
 
fi
5884
 
 
 
19226
fi;
5885
19227
 
5886
19228
  found_gmp=no
5887
 
  ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
5888
 
echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
5889
 
echo "configure:5890: checking for gmp.h" >&5
5890
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5891
 
  echo $ac_n "(cached) $ac_c" 1>&6
5892
 
else
5893
 
  cat > conftest.$ac_ext <<EOF
5894
 
#line 5895 "configure"
5895
 
#include "confdefs.h"
5896
 
#include <gmp.h>
5897
 
EOF
5898
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5899
 
{ (eval echo configure:5900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5900
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5901
 
if test -z "$ac_err"; then
5902
 
  rm -rf conftest*
5903
 
  eval "ac_cv_header_$ac_safe=yes"
5904
 
else
5905
 
  echo "$ac_err" >&5
5906
 
  echo "configure: failed program was:" >&5
5907
 
  cat conftest.$ac_ext >&5
5908
 
  rm -rf conftest*
5909
 
  eval "ac_cv_header_$ac_safe=no"
5910
 
fi
5911
 
rm -f conftest*
5912
 
fi
5913
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5914
 
  echo "$ac_t""yes" 1>&6
5915
 
  echo $ac_n "checking for mpz_init in -lgmp""... $ac_c" 1>&6
5916
 
echo "configure:5917: checking for mpz_init in -lgmp" >&5
5917
 
ac_lib_var=`echo gmp'_'mpz_init | sed 'y%./+-%__p_%'`
5918
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5919
 
  echo $ac_n "(cached) $ac_c" 1>&6
5920
 
else
5921
 
  ac_save_LIBS="$LIBS"
5922
 
LIBS="-lgmp  $LIBS"
5923
 
cat > conftest.$ac_ext <<EOF
5924
 
#line 5925 "configure"
5925
 
#include "confdefs.h"
5926
 
/* Override any gcc2 internal prototype to avoid an error.  */
5927
 
/* We use char because int might match the return type of a gcc2
5928
 
    builtin and then its argument prototype would still apply.  */
5929
 
char mpz_init();
5930
 
 
5931
 
int main() {
5932
 
mpz_init()
5933
 
; return 0; }
5934
 
EOF
5935
 
if { (eval echo configure:5936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5936
 
  rm -rf conftest*
5937
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5938
 
else
5939
 
  echo "configure: failed program was:" >&5
5940
 
  cat conftest.$ac_ext >&5
5941
 
  rm -rf conftest*
5942
 
  eval "ac_cv_lib_$ac_lib_var=no"
5943
 
fi
5944
 
rm -f conftest*
5945
 
LIBS="$ac_save_LIBS"
5946
 
 
5947
 
fi
5948
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5949
 
  echo "$ac_t""yes" 1>&6
5950
 
  GMP_LIBS="-lgmp -lm"; found_gmp=yes
5951
 
else
5952
 
  echo "$ac_t""no" 1>&6
5953
 
echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
5954
 
echo "configure:5955: checking for __gmpz_init in -lgmp" >&5
5955
 
ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
5956
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5957
 
  echo $ac_n "(cached) $ac_c" 1>&6
5958
 
else
5959
 
  ac_save_LIBS="$LIBS"
5960
 
LIBS="-lgmp  $LIBS"
5961
 
cat > conftest.$ac_ext <<EOF
5962
 
#line 5963 "configure"
5963
 
#include "confdefs.h"
5964
 
/* Override any gcc2 internal prototype to avoid an error.  */
5965
 
/* We use char because int might match the return type of a gcc2
5966
 
    builtin and then its argument prototype would still apply.  */
5967
 
char __gmpz_init();
5968
 
 
5969
 
int main() {
5970
 
__gmpz_init()
5971
 
; return 0; }
5972
 
EOF
5973
 
if { (eval echo configure:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5974
 
  rm -rf conftest*
5975
 
  eval "ac_cv_lib_$ac_lib_var=yes"
5976
 
else
5977
 
  echo "configure: failed program was:" >&5
5978
 
  cat conftest.$ac_ext >&5
5979
 
  rm -rf conftest*
5980
 
  eval "ac_cv_lib_$ac_lib_var=no"
5981
 
fi
5982
 
rm -f conftest*
5983
 
LIBS="$ac_save_LIBS"
5984
 
 
5985
 
fi
5986
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5987
 
  echo "$ac_t""yes" 1>&6
5988
 
  GMP_LIBS="-lgmp -lm"; found_gmp=yes
5989
 
else
5990
 
  echo "$ac_t""no" 1>&6
5991
 
fi
5992
 
 
5993
 
fi
5994
 
 
5995
 
else
5996
 
  echo "$ac_t""no" 1>&6
5997
 
fi
 
19229
  if test "${ac_cv_header_gmp_h+set}" = set; then
 
19230
  echo "$as_me:$LINENO: checking for gmp.h" >&5
 
19231
echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
 
19232
if test "${ac_cv_header_gmp_h+set}" = set; then
 
19233
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19234
fi
 
19235
echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
 
19236
echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
 
19237
else
 
19238
  # Is the header compilable?
 
19239
echo "$as_me:$LINENO: checking gmp.h usability" >&5
 
19240
echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6
 
19241
cat >conftest.$ac_ext <<_ACEOF
 
19242
#line $LINENO "configure"
 
19243
/* confdefs.h.  */
 
19244
_ACEOF
 
19245
cat confdefs.h >>conftest.$ac_ext
 
19246
cat >>conftest.$ac_ext <<_ACEOF
 
19247
/* end confdefs.h.  */
 
19248
$ac_includes_default
 
19249
#include <gmp.h>
 
19250
_ACEOF
 
19251
rm -f conftest.$ac_objext
 
19252
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19253
  (eval $ac_compile) 2>&5
 
19254
  ac_status=$?
 
19255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19256
  (exit $ac_status); } &&
 
19257
         { ac_try='test -s conftest.$ac_objext'
 
19258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19259
  (eval $ac_try) 2>&5
 
19260
  ac_status=$?
 
19261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19262
  (exit $ac_status); }; }; then
 
19263
  ac_header_compiler=yes
 
19264
else
 
19265
  echo "$as_me: failed program was:" >&5
 
19266
sed 's/^/| /' conftest.$ac_ext >&5
 
19267
 
 
19268
ac_header_compiler=no
 
19269
fi
 
19270
rm -f conftest.$ac_objext conftest.$ac_ext
 
19271
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19272
echo "${ECHO_T}$ac_header_compiler" >&6
 
19273
 
 
19274
# Is the header present?
 
19275
echo "$as_me:$LINENO: checking gmp.h presence" >&5
 
19276
echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6
 
19277
cat >conftest.$ac_ext <<_ACEOF
 
19278
#line $LINENO "configure"
 
19279
/* confdefs.h.  */
 
19280
_ACEOF
 
19281
cat confdefs.h >>conftest.$ac_ext
 
19282
cat >>conftest.$ac_ext <<_ACEOF
 
19283
/* end confdefs.h.  */
 
19284
#include <gmp.h>
 
19285
_ACEOF
 
19286
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19287
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19288
  ac_status=$?
 
19289
  grep -v '^ *+' conftest.er1 >conftest.err
 
19290
  rm -f conftest.er1
 
19291
  cat conftest.err >&5
 
19292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19293
  (exit $ac_status); } >/dev/null; then
 
19294
  if test -s conftest.err; then
 
19295
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19296
  else
 
19297
    ac_cpp_err=
 
19298
  fi
 
19299
else
 
19300
  ac_cpp_err=yes
 
19301
fi
 
19302
if test -z "$ac_cpp_err"; then
 
19303
  ac_header_preproc=yes
 
19304
else
 
19305
  echo "$as_me: failed program was:" >&5
 
19306
sed 's/^/| /' conftest.$ac_ext >&5
 
19307
 
 
19308
  ac_header_preproc=no
 
19309
fi
 
19310
rm -f conftest.err conftest.$ac_ext
 
19311
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19312
echo "${ECHO_T}$ac_header_preproc" >&6
 
19313
 
 
19314
# So?  What about this header?
 
19315
case $ac_header_compiler:$ac_header_preproc in
 
19316
  yes:no )
 
19317
    { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
19318
echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19319
    { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
 
19320
echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
 
19321
    (
 
19322
      cat <<\_ASBOX
 
19323
## ------------------------------------ ##
 
19324
## Report this to bug-autoconf@gnu.org. ##
 
19325
## ------------------------------------ ##
 
19326
_ASBOX
 
19327
    ) |
 
19328
      sed "s/^/$as_me: WARNING:     /" >&2
 
19329
    ;;
 
19330
  no:yes )
 
19331
    { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
 
19332
echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
 
19333
    { echo "$as_me:$LINENO: WARNING: gmp.h: check for missing prerequisite headers?" >&5
 
19334
echo "$as_me: WARNING: gmp.h: check for missing prerequisite headers?" >&2;}
 
19335
    { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
 
19336
echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
 
19337
    (
 
19338
      cat <<\_ASBOX
 
19339
## ------------------------------------ ##
 
19340
## Report this to bug-autoconf@gnu.org. ##
 
19341
## ------------------------------------ ##
 
19342
_ASBOX
 
19343
    ) |
 
19344
      sed "s/^/$as_me: WARNING:     /" >&2
 
19345
    ;;
 
19346
esac
 
19347
echo "$as_me:$LINENO: checking for gmp.h" >&5
 
19348
echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6
 
19349
if test "${ac_cv_header_gmp_h+set}" = set; then
 
19350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19351
else
 
19352
  ac_cv_header_gmp_h=$ac_header_preproc
 
19353
fi
 
19354
echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
 
19355
echo "${ECHO_T}$ac_cv_header_gmp_h" >&6
 
19356
 
 
19357
fi
 
19358
if test $ac_cv_header_gmp_h = yes; then
 
19359
  echo "$as_me:$LINENO: checking for mpz_init in -lgmp" >&5
 
19360
echo $ECHO_N "checking for mpz_init in -lgmp... $ECHO_C" >&6
 
19361
if test "${ac_cv_lib_gmp_mpz_init+set}" = set; then
 
19362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19363
else
 
19364
  ac_check_lib_save_LIBS=$LIBS
 
19365
LIBS="-lgmp  $LIBS"
 
19366
cat >conftest.$ac_ext <<_ACEOF
 
19367
#line $LINENO "configure"
 
19368
/* confdefs.h.  */
 
19369
_ACEOF
 
19370
cat confdefs.h >>conftest.$ac_ext
 
19371
cat >>conftest.$ac_ext <<_ACEOF
 
19372
/* end confdefs.h.  */
 
19373
 
 
19374
/* Override any gcc2 internal prototype to avoid an error.  */
 
19375
#ifdef __cplusplus
 
19376
extern "C"
 
19377
#endif
 
19378
/* We use char because int might match the return type of a gcc2
 
19379
   builtin and then its argument prototype would still apply.  */
 
19380
char mpz_init ();
 
19381
int
 
19382
main ()
 
19383
{
 
19384
mpz_init ();
 
19385
  ;
 
19386
  return 0;
 
19387
}
 
19388
_ACEOF
 
19389
rm -f conftest.$ac_objext conftest$ac_exeext
 
19390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19391
  (eval $ac_link) 2>&5
 
19392
  ac_status=$?
 
19393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19394
  (exit $ac_status); } &&
 
19395
         { ac_try='test -s conftest$ac_exeext'
 
19396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19397
  (eval $ac_try) 2>&5
 
19398
  ac_status=$?
 
19399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19400
  (exit $ac_status); }; }; then
 
19401
  ac_cv_lib_gmp_mpz_init=yes
 
19402
else
 
19403
  echo "$as_me: failed program was:" >&5
 
19404
sed 's/^/| /' conftest.$ac_ext >&5
 
19405
 
 
19406
ac_cv_lib_gmp_mpz_init=no
 
19407
fi
 
19408
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19409
LIBS=$ac_check_lib_save_LIBS
 
19410
fi
 
19411
echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_mpz_init" >&5
 
19412
echo "${ECHO_T}$ac_cv_lib_gmp_mpz_init" >&6
 
19413
if test $ac_cv_lib_gmp_mpz_init = yes; then
 
19414
  GMP_LIBS="-lgmp -lm"; found_gmp=yes
 
19415
else
 
19416
  echo "$as_me:$LINENO: checking for __gmpz_init in -lgmp" >&5
 
19417
echo $ECHO_N "checking for __gmpz_init in -lgmp... $ECHO_C" >&6
 
19418
if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then
 
19419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19420
else
 
19421
  ac_check_lib_save_LIBS=$LIBS
 
19422
LIBS="-lgmp  $LIBS"
 
19423
cat >conftest.$ac_ext <<_ACEOF
 
19424
#line $LINENO "configure"
 
19425
/* confdefs.h.  */
 
19426
_ACEOF
 
19427
cat confdefs.h >>conftest.$ac_ext
 
19428
cat >>conftest.$ac_ext <<_ACEOF
 
19429
/* end confdefs.h.  */
 
19430
 
 
19431
/* Override any gcc2 internal prototype to avoid an error.  */
 
19432
#ifdef __cplusplus
 
19433
extern "C"
 
19434
#endif
 
19435
/* We use char because int might match the return type of a gcc2
 
19436
   builtin and then its argument prototype would still apply.  */
 
19437
char __gmpz_init ();
 
19438
int
 
19439
main ()
 
19440
{
 
19441
__gmpz_init ();
 
19442
  ;
 
19443
  return 0;
 
19444
}
 
19445
_ACEOF
 
19446
rm -f conftest.$ac_objext conftest$ac_exeext
 
19447
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19448
  (eval $ac_link) 2>&5
 
19449
  ac_status=$?
 
19450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19451
  (exit $ac_status); } &&
 
19452
         { ac_try='test -s conftest$ac_exeext'
 
19453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19454
  (eval $ac_try) 2>&5
 
19455
  ac_status=$?
 
19456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19457
  (exit $ac_status); }; }; then
 
19458
  ac_cv_lib_gmp___gmpz_init=yes
 
19459
else
 
19460
  echo "$as_me: failed program was:" >&5
 
19461
sed 's/^/| /' conftest.$ac_ext >&5
 
19462
 
 
19463
ac_cv_lib_gmp___gmpz_init=no
 
19464
fi
 
19465
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19466
LIBS=$ac_check_lib_save_LIBS
 
19467
fi
 
19468
echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_init" >&5
 
19469
echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_init" >&6
 
19470
if test $ac_cv_lib_gmp___gmpz_init = yes; then
 
19471
  GMP_LIBS="-lgmp -lm"; found_gmp=yes
 
19472
fi
 
19473
 
 
19474
fi
 
19475
 
 
19476
fi
 
19477
 
5998
19478
 
5999
19479
 
6000
19480
  if test "$found_gmp" = "yes"; then
6001
 
    cat >> confdefs.h <<\EOF
 
19481
    cat >>confdefs.h <<\_ACEOF
6002
19482
#define HAVE_GMP 1
6003
 
EOF
 
19483
_ACEOF
6004
19484
 
6005
19485
    _libs="$LIBS"
6006
19486
    LIBS="$LIBS $GMP_LIBS"
6007
 
    echo $ac_n "checking for __gmp_randinit""... $ac_c" 1>&6
6008
 
echo "configure:6009: checking for __gmp_randinit" >&5
6009
 
if eval "test \"`echo '$''{'ac_cv_func___gmp_randinit'+set}'`\" = set"; then
6010
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
19487
    echo "$as_me:$LINENO: checking for __gmp_randinit" >&5
 
19488
echo $ECHO_N "checking for __gmp_randinit... $ECHO_C" >&6
 
19489
if test "${ac_cv_func___gmp_randinit+set}" = set; then
 
19490
  echo $ECHO_N "(cached) $ECHO_C" >&6
6011
19491
else
6012
 
  cat > conftest.$ac_ext <<EOF
6013
 
#line 6014 "configure"
6014
 
#include "confdefs.h"
 
19492
  cat >conftest.$ac_ext <<_ACEOF
 
19493
#line $LINENO "configure"
 
19494
/* confdefs.h.  */
 
19495
_ACEOF
 
19496
cat confdefs.h >>conftest.$ac_ext
 
19497
cat >>conftest.$ac_ext <<_ACEOF
 
19498
/* end confdefs.h.  */
6015
19499
/* System header to define __stub macros and hopefully few prototypes,
6016
 
    which can conflict with char __gmp_randinit(); below.  */
6017
 
#include <assert.h>
 
19500
    which can conflict with char __gmp_randinit (); below.
 
19501
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19502
    <limits.h> exists even on freestanding compilers.  */
 
19503
#ifdef __STDC__
 
19504
# include <limits.h>
 
19505
#else
 
19506
# include <assert.h>
 
19507
#endif
6018
19508
/* Override any gcc2 internal prototype to avoid an error.  */
 
19509
#ifdef __cplusplus
 
19510
extern "C"
 
19511
{
 
19512
#endif
6019
19513
/* We use char because int might match the return type of a gcc2
6020
 
    builtin and then its argument prototype would still apply.  */
6021
 
char __gmp_randinit();
6022
 
 
6023
 
int main() {
6024
 
 
 
19514
   builtin and then its argument prototype would still apply.  */
 
19515
char __gmp_randinit ();
6025
19516
/* The GNU C library defines this for functions which it implements
6026
19517
    to always fail with ENOSYS.  Some functions are actually named
6027
19518
    something starting with __ and the normal name is an alias.  */
6028
19519
#if defined (__stub___gmp_randinit) || defined (__stub_____gmp_randinit)
6029
19520
choke me
6030
19521
#else
6031
 
__gmp_randinit();
 
19522
char (*f) () = __gmp_randinit;
 
19523
#endif
 
19524
#ifdef __cplusplus
 
19525
}
6032
19526
#endif
6033
19527
 
6034
 
; return 0; }
6035
 
EOF
6036
 
if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6037
 
  rm -rf conftest*
6038
 
  eval "ac_cv_func___gmp_randinit=yes"
 
19528
int
 
19529
main ()
 
19530
{
 
19531
return f != __gmp_randinit;
 
19532
  ;
 
19533
  return 0;
 
19534
}
 
19535
_ACEOF
 
19536
rm -f conftest.$ac_objext conftest$ac_exeext
 
19537
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19538
  (eval $ac_link) 2>&5
 
19539
  ac_status=$?
 
19540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19541
  (exit $ac_status); } &&
 
19542
         { ac_try='test -s conftest$ac_exeext'
 
19543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19544
  (eval $ac_try) 2>&5
 
19545
  ac_status=$?
 
19546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19547
  (exit $ac_status); }; }; then
 
19548
  ac_cv_func___gmp_randinit=yes
6039
19549
else
6040
 
  echo "configure: failed program was:" >&5
6041
 
  cat conftest.$ac_ext >&5
6042
 
  rm -rf conftest*
6043
 
  eval "ac_cv_func___gmp_randinit=no"
6044
 
fi
6045
 
rm -f conftest*
6046
 
fi
 
19550
  echo "$as_me: failed program was:" >&5
 
19551
sed 's/^/| /' conftest.$ac_ext >&5
6047
19552
 
6048
 
if eval "test \"`echo '$ac_cv_func_'__gmp_randinit`\" = yes"; then
6049
 
  echo "$ac_t""yes" 1>&6
6050
 
  cat >> confdefs.h <<\EOF
 
19553
ac_cv_func___gmp_randinit=no
 
19554
fi
 
19555
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19556
fi
 
19557
echo "$as_me:$LINENO: result: $ac_cv_func___gmp_randinit" >&5
 
19558
echo "${ECHO_T}$ac_cv_func___gmp_randinit" >&6
 
19559
if test $ac_cv_func___gmp_randinit = yes; then
 
19560
  cat >>confdefs.h <<\_ACEOF
6051
19561
#define HAVE_GMP_RANDINIT 1
6052
 
EOF
 
19562
_ACEOF
6053
19563
 
6054
 
else
6055
 
  echo "$ac_t""no" 1>&6
6056
19564
fi
6057
19565
 
6058
19566
    LIBS="$_libs"
6059
19567
  elif test "$with_gmp" != "no"; then
6060
 
    { echo "configure: error: Can't find GMP (--without-gmp for cut-down non-GMP build)" 1>&2; exit 1; }
 
19568
    { { echo "$as_me:$LINENO: error: Can't find GMP (--without-gmp for cut-down non-GMP build)" >&5
 
19569
echo "$as_me: error: Can't find GMP (--without-gmp for cut-down non-GMP build)" >&2;}
 
19570
   { (exit 1); exit 1; }; }
6061
19571
  fi
6062
19572
fi
6063
19573
 
6064
19574
 
 
19575
 
6065
19576
# Check whether --with-gdbm-prefix or --without-gdbm-prefix was given.
6066
19577
if test "${with_gdbm_prefix+set}" = set; then
6067
19578
  withval="$with_gdbm_prefix"
6068
 
  
 
19579
 
6069
19580
  if test "$withval" != "no"; then
6070
19581
    CPPFLAGS="${CPPFLAGS} -I$withval/include"
6071
19582
    LDFLAGS="${LDFLAGS} -L$withval/lib"
6072
19583
  fi
6073
19584
 
6074
 
fi
6075
 
 
6076
 
ac_safe=`echo "gdbm.h" | sed 'y%./+-%__p_%'`
6077
 
echo $ac_n "checking for gdbm.h""... $ac_c" 1>&6
6078
 
echo "configure:6079: checking for gdbm.h" >&5
6079
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6080
 
  echo $ac_n "(cached) $ac_c" 1>&6
6081
 
else
6082
 
  cat > conftest.$ac_ext <<EOF
6083
 
#line 6084 "configure"
6084
 
#include "confdefs.h"
6085
 
#include <gdbm.h>
6086
 
EOF
6087
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6088
 
{ (eval echo configure:6089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6089
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6090
 
if test -z "$ac_err"; then
6091
 
  rm -rf conftest*
6092
 
  eval "ac_cv_header_$ac_safe=yes"
6093
 
else
6094
 
  echo "$ac_err" >&5
6095
 
  echo "configure: failed program was:" >&5
6096
 
  cat conftest.$ac_ext >&5
6097
 
  rm -rf conftest*
6098
 
  eval "ac_cv_header_$ac_safe=no"
6099
 
fi
6100
 
rm -f conftest*
6101
 
fi
6102
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6103
 
  echo "$ac_t""yes" 1>&6
6104
 
  echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
6105
 
echo "configure:6106: checking for gdbm_open in -lgdbm" >&5
6106
 
ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'`
6107
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6108
 
  echo $ac_n "(cached) $ac_c" 1>&6
6109
 
else
6110
 
  ac_save_LIBS="$LIBS"
 
19585
fi;
 
19586
if test "${ac_cv_header_gdbm_h+set}" = set; then
 
19587
  echo "$as_me:$LINENO: checking for gdbm.h" >&5
 
19588
echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
 
19589
if test "${ac_cv_header_gdbm_h+set}" = set; then
 
19590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19591
fi
 
19592
echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
 
19593
echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
 
19594
else
 
19595
  # Is the header compilable?
 
19596
echo "$as_me:$LINENO: checking gdbm.h usability" >&5
 
19597
echo $ECHO_N "checking gdbm.h usability... $ECHO_C" >&6
 
19598
cat >conftest.$ac_ext <<_ACEOF
 
19599
#line $LINENO "configure"
 
19600
/* confdefs.h.  */
 
19601
_ACEOF
 
19602
cat confdefs.h >>conftest.$ac_ext
 
19603
cat >>conftest.$ac_ext <<_ACEOF
 
19604
/* end confdefs.h.  */
 
19605
$ac_includes_default
 
19606
#include <gdbm.h>
 
19607
_ACEOF
 
19608
rm -f conftest.$ac_objext
 
19609
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19610
  (eval $ac_compile) 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.$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 gdbm.h presence" >&5
 
19633
echo $ECHO_N "checking gdbm.h presence... $ECHO_C" >&6
 
19634
cat >conftest.$ac_ext <<_ACEOF
 
19635
#line $LINENO "configure"
 
19636
/* confdefs.h.  */
 
19637
_ACEOF
 
19638
cat confdefs.h >>conftest.$ac_ext
 
19639
cat >>conftest.$ac_ext <<_ACEOF
 
19640
/* end confdefs.h.  */
 
19641
#include <gdbm.h>
 
19642
_ACEOF
 
19643
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19644
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19645
  ac_status=$?
 
19646
  grep -v '^ *+' conftest.er1 >conftest.err
 
19647
  rm -f conftest.er1
 
19648
  cat conftest.err >&5
 
19649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19650
  (exit $ac_status); } >/dev/null; then
 
19651
  if test -s conftest.err; then
 
19652
    ac_cpp_err=$ac_c_preproc_warn_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 in
 
19673
  yes:no )
 
19674
    { echo "$as_me:$LINENO: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
19675
echo "$as_me: WARNING: gdbm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19676
    { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
 
19677
echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
 
19678
    (
 
19679
      cat <<\_ASBOX
 
19680
## ------------------------------------ ##
 
19681
## Report this to bug-autoconf@gnu.org. ##
 
19682
## ------------------------------------ ##
 
19683
_ASBOX
 
19684
    ) |
 
19685
      sed "s/^/$as_me: WARNING:     /" >&2
 
19686
    ;;
 
19687
  no:yes )
 
19688
    { echo "$as_me:$LINENO: WARNING: gdbm.h: present but cannot be compiled" >&5
 
19689
echo "$as_me: WARNING: gdbm.h: present but cannot be compiled" >&2;}
 
19690
    { echo "$as_me:$LINENO: WARNING: gdbm.h: check for missing prerequisite headers?" >&5
 
19691
echo "$as_me: WARNING: gdbm.h: check for missing prerequisite headers?" >&2;}
 
19692
    { echo "$as_me:$LINENO: WARNING: gdbm.h: proceeding with the preprocessor's result" >&5
 
19693
echo "$as_me: WARNING: gdbm.h: proceeding with the preprocessor's result" >&2;}
 
19694
    (
 
19695
      cat <<\_ASBOX
 
19696
## ------------------------------------ ##
 
19697
## Report this to bug-autoconf@gnu.org. ##
 
19698
## ------------------------------------ ##
 
19699
_ASBOX
 
19700
    ) |
 
19701
      sed "s/^/$as_me: WARNING:     /" >&2
 
19702
    ;;
 
19703
esac
 
19704
echo "$as_me:$LINENO: checking for gdbm.h" >&5
 
19705
echo $ECHO_N "checking for gdbm.h... $ECHO_C" >&6
 
19706
if test "${ac_cv_header_gdbm_h+set}" = set; then
 
19707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19708
else
 
19709
  ac_cv_header_gdbm_h=$ac_header_preproc
 
19710
fi
 
19711
echo "$as_me:$LINENO: result: $ac_cv_header_gdbm_h" >&5
 
19712
echo "${ECHO_T}$ac_cv_header_gdbm_h" >&6
 
19713
 
 
19714
fi
 
19715
if test $ac_cv_header_gdbm_h = yes; then
 
19716
  echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
 
19717
echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
 
19718
if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
 
19719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19720
else
 
19721
  ac_check_lib_save_LIBS=$LIBS
6111
19722
LIBS="-lgdbm  $LIBS"
6112
 
cat > conftest.$ac_ext <<EOF
6113
 
#line 6114 "configure"
6114
 
#include "confdefs.h"
 
19723
cat >conftest.$ac_ext <<_ACEOF
 
19724
#line $LINENO "configure"
 
19725
/* confdefs.h.  */
 
19726
_ACEOF
 
19727
cat confdefs.h >>conftest.$ac_ext
 
19728
cat >>conftest.$ac_ext <<_ACEOF
 
19729
/* end confdefs.h.  */
 
19730
 
6115
19731
/* Override any gcc2 internal prototype to avoid an error.  */
 
19732
#ifdef __cplusplus
 
19733
extern "C"
 
19734
#endif
6116
19735
/* We use char because int might match the return type of a gcc2
6117
 
    builtin and then its argument prototype would still apply.  */
6118
 
char gdbm_open();
6119
 
 
6120
 
int main() {
6121
 
gdbm_open()
6122
 
; return 0; }
6123
 
EOF
6124
 
if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6125
 
  rm -rf conftest*
6126
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
19736
   builtin and then its argument prototype would still apply.  */
 
19737
char gdbm_open ();
 
19738
int
 
19739
main ()
 
19740
{
 
19741
gdbm_open ();
 
19742
  ;
 
19743
  return 0;
 
19744
}
 
19745
_ACEOF
 
19746
rm -f conftest.$ac_objext conftest$ac_exeext
 
19747
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19748
  (eval $ac_link) 2>&5
 
19749
  ac_status=$?
 
19750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19751
  (exit $ac_status); } &&
 
19752
         { ac_try='test -s conftest$ac_exeext'
 
19753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19754
  (eval $ac_try) 2>&5
 
19755
  ac_status=$?
 
19756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19757
  (exit $ac_status); }; }; then
 
19758
  ac_cv_lib_gdbm_gdbm_open=yes
6127
19759
else
6128
 
  echo "configure: failed program was:" >&5
6129
 
  cat conftest.$ac_ext >&5
6130
 
  rm -rf conftest*
6131
 
  eval "ac_cv_lib_$ac_lib_var=no"
6132
 
fi
6133
 
rm -f conftest*
6134
 
LIBS="$ac_save_LIBS"
 
19760
  echo "$as_me: failed program was:" >&5
 
19761
sed 's/^/| /' conftest.$ac_ext >&5
6135
19762
 
6136
 
fi
6137
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6138
 
  echo "$ac_t""yes" 1>&6
 
19763
ac_cv_lib_gdbm_gdbm_open=no
 
19764
fi
 
19765
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19766
LIBS=$ac_check_lib_save_LIBS
 
19767
fi
 
19768
echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
 
19769
echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
 
19770
if test $ac_cv_lib_gdbm_gdbm_open = yes; then
6139
19771
  GDBM_LIBS="-lgdbm"
6140
19772
else
6141
 
  echo "$ac_t""no" 1>&6
6142
 
{ echo "configure: error: Cannot find GDBM library" 1>&2; exit 1; }
 
19773
  { { echo "$as_me:$LINENO: error: Cannot find GDBM library" >&5
 
19774
echo "$as_me: error: Cannot find GDBM library" >&2;}
 
19775
   { (exit 1); exit 1; }; }
6143
19776
fi
6144
19777
 
6145
19778
else
6146
 
  echo "$ac_t""no" 1>&6
6147
 
{ echo "configure: error: Cannot find GDBM header" 1>&2; exit 1; }
 
19779
  { { echo "$as_me:$LINENO: error: Cannot find GDBM header" >&5
 
19780
echo "$as_me: error: Cannot find GDBM header" >&2;}
 
19781
   { (exit 1); exit 1; }; }
6148
19782
fi
6149
19783
 
6150
19784
 
6151
19785
 
 
19786
 
6152
19787
doug_lea_malloc=yes
6153
 
echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
6154
 
echo "configure:6155: checking for malloc_get_state" >&5
6155
 
if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
6156
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
19788
echo "$as_me:$LINENO: checking for malloc_get_state" >&5
 
19789
echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
 
19790
if test "${ac_cv_func_malloc_get_state+set}" = set; then
 
19791
  echo $ECHO_N "(cached) $ECHO_C" >&6
6157
19792
else
6158
 
  cat > conftest.$ac_ext <<EOF
6159
 
#line 6160 "configure"
6160
 
#include "confdefs.h"
 
19793
  cat >conftest.$ac_ext <<_ACEOF
 
19794
#line $LINENO "configure"
 
19795
/* confdefs.h.  */
 
19796
_ACEOF
 
19797
cat confdefs.h >>conftest.$ac_ext
 
19798
cat >>conftest.$ac_ext <<_ACEOF
 
19799
/* end confdefs.h.  */
6161
19800
/* System header to define __stub macros and hopefully few prototypes,
6162
 
    which can conflict with char malloc_get_state(); below.  */
6163
 
#include <assert.h>
 
19801
    which can conflict with char malloc_get_state (); below.
 
19802
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19803
    <limits.h> exists even on freestanding compilers.  */
 
19804
#ifdef __STDC__
 
19805
# include <limits.h>
 
19806
#else
 
19807
# include <assert.h>
 
19808
#endif
6164
19809
/* Override any gcc2 internal prototype to avoid an error.  */
 
19810
#ifdef __cplusplus
 
19811
extern "C"
 
19812
{
 
19813
#endif
6165
19814
/* We use char because int might match the return type of a gcc2
6166
 
    builtin and then its argument prototype would still apply.  */
6167
 
char malloc_get_state();
6168
 
 
6169
 
int main() {
6170
 
 
 
19815
   builtin and then its argument prototype would still apply.  */
 
19816
char malloc_get_state ();
6171
19817
/* The GNU C library defines this for functions which it implements
6172
19818
    to always fail with ENOSYS.  Some functions are actually named
6173
19819
    something starting with __ and the normal name is an alias.  */
6174
19820
#if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6175
19821
choke me
6176
19822
#else
6177
 
malloc_get_state();
 
19823
char (*f) () = malloc_get_state;
 
19824
#endif
 
19825
#ifdef __cplusplus
 
19826
}
6178
19827
#endif
6179
19828
 
6180
 
; return 0; }
6181
 
EOF
6182
 
if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6183
 
  rm -rf conftest*
6184
 
  eval "ac_cv_func_malloc_get_state=yes"
 
19829
int
 
19830
main ()
 
19831
{
 
19832
return f != malloc_get_state;
 
19833
  ;
 
19834
  return 0;
 
19835
}
 
19836
_ACEOF
 
19837
rm -f conftest.$ac_objext conftest$ac_exeext
 
19838
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19839
  (eval $ac_link) 2>&5
 
19840
  ac_status=$?
 
19841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19842
  (exit $ac_status); } &&
 
19843
         { ac_try='test -s conftest$ac_exeext'
 
19844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19845
  (eval $ac_try) 2>&5
 
19846
  ac_status=$?
 
19847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19848
  (exit $ac_status); }; }; then
 
19849
  ac_cv_func_malloc_get_state=yes
6185
19850
else
6186
 
  echo "configure: failed program was:" >&5
6187
 
  cat conftest.$ac_ext >&5
6188
 
  rm -rf conftest*
6189
 
  eval "ac_cv_func_malloc_get_state=no"
6190
 
fi
6191
 
rm -f conftest*
6192
 
fi
 
19851
  echo "$as_me: failed program was:" >&5
 
19852
sed 's/^/| /' conftest.$ac_ext >&5
6193
19853
 
6194
 
if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
6195
 
  echo "$ac_t""yes" 1>&6
 
19854
ac_cv_func_malloc_get_state=no
 
19855
fi
 
19856
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19857
fi
 
19858
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
 
19859
echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
 
19860
if test $ac_cv_func_malloc_get_state = yes; then
6196
19861
  :
6197
19862
else
6198
 
  echo "$ac_t""no" 1>&6
6199
 
doug_lea_malloc=no
 
19863
  doug_lea_malloc=no
6200
19864
fi
6201
19865
 
6202
 
echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
6203
 
echo "configure:6204: checking for malloc_set_state" >&5
6204
 
if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
6205
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
19866
echo "$as_me:$LINENO: checking for malloc_set_state" >&5
 
19867
echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
 
19868
if test "${ac_cv_func_malloc_set_state+set}" = set; then
 
19869
  echo $ECHO_N "(cached) $ECHO_C" >&6
6206
19870
else
6207
 
  cat > conftest.$ac_ext <<EOF
6208
 
#line 6209 "configure"
6209
 
#include "confdefs.h"
 
19871
  cat >conftest.$ac_ext <<_ACEOF
 
19872
#line $LINENO "configure"
 
19873
/* confdefs.h.  */
 
19874
_ACEOF
 
19875
cat confdefs.h >>conftest.$ac_ext
 
19876
cat >>conftest.$ac_ext <<_ACEOF
 
19877
/* end confdefs.h.  */
6210
19878
/* System header to define __stub macros and hopefully few prototypes,
6211
 
    which can conflict with char malloc_set_state(); below.  */
6212
 
#include <assert.h>
 
19879
    which can conflict with char malloc_set_state (); below.
 
19880
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19881
    <limits.h> exists even on freestanding compilers.  */
 
19882
#ifdef __STDC__
 
19883
# include <limits.h>
 
19884
#else
 
19885
# include <assert.h>
 
19886
#endif
6213
19887
/* Override any gcc2 internal prototype to avoid an error.  */
 
19888
#ifdef __cplusplus
 
19889
extern "C"
 
19890
{
 
19891
#endif
6214
19892
/* We use char because int might match the return type of a gcc2
6215
 
    builtin and then its argument prototype would still apply.  */
6216
 
char malloc_set_state();
6217
 
 
6218
 
int main() {
6219
 
 
 
19893
   builtin and then its argument prototype would still apply.  */
 
19894
char malloc_set_state ();
6220
19895
/* The GNU C library defines this for functions which it implements
6221
19896
    to always fail with ENOSYS.  Some functions are actually named
6222
19897
    something starting with __ and the normal name is an alias.  */
6223
19898
#if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6224
19899
choke me
6225
19900
#else
6226
 
malloc_set_state();
 
19901
char (*f) () = malloc_set_state;
 
19902
#endif
 
19903
#ifdef __cplusplus
 
19904
}
6227
19905
#endif
6228
19906
 
6229
 
; return 0; }
6230
 
EOF
6231
 
if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232
 
  rm -rf conftest*
6233
 
  eval "ac_cv_func_malloc_set_state=yes"
 
19907
int
 
19908
main ()
 
19909
{
 
19910
return f != malloc_set_state;
 
19911
  ;
 
19912
  return 0;
 
19913
}
 
19914
_ACEOF
 
19915
rm -f conftest.$ac_objext conftest$ac_exeext
 
19916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19917
  (eval $ac_link) 2>&5
 
19918
  ac_status=$?
 
19919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19920
  (exit $ac_status); } &&
 
19921
         { ac_try='test -s conftest$ac_exeext'
 
19922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19923
  (eval $ac_try) 2>&5
 
19924
  ac_status=$?
 
19925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19926
  (exit $ac_status); }; }; then
 
19927
  ac_cv_func_malloc_set_state=yes
6234
19928
else
6235
 
  echo "configure: failed program was:" >&5
6236
 
  cat conftest.$ac_ext >&5
6237
 
  rm -rf conftest*
6238
 
  eval "ac_cv_func_malloc_set_state=no"
6239
 
fi
6240
 
rm -f conftest*
6241
 
fi
 
19929
  echo "$as_me: failed program was:" >&5
 
19930
sed 's/^/| /' conftest.$ac_ext >&5
6242
19931
 
6243
 
if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
6244
 
  echo "$ac_t""yes" 1>&6
 
19932
ac_cv_func_malloc_set_state=no
 
19933
fi
 
19934
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19935
fi
 
19936
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
 
19937
echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
 
19938
if test $ac_cv_func_malloc_set_state = yes; then
6245
19939
  :
6246
19940
else
6247
 
  echo "$ac_t""no" 1>&6
6248
 
doug_lea_malloc=no
 
19941
  doug_lea_malloc=no
6249
19942
fi
6250
19943
 
6251
19944
if test "$doug_lea_malloc" = "no"; then
6252
 
  case ${host} in
6253
 
    *-dec-osf*)
6254
 
            cat >> confdefs.h <<\EOF
 
19945
        cat >>confdefs.h <<\_ACEOF
6255
19946
#define LIBC_MALLOC 1
6256
 
EOF
6257
 
 
6258
 
      ;;
6259
 
    *)
6260
 
      EXTRA_LIBOBJS="${EXTRA_LIBOBJS} dlmalloc.o"
6261
 
      cat >> confdefs.h <<\EOF
6262
 
#define DOUG_LEA_MALLOC 1
6263
 
EOF
6264
 
 
6265
 
      ;;
6266
 
  esac
 
19947
_ACEOF
 
19948
 
6267
19949
else
6268
 
  cat >> confdefs.h <<\EOF
 
19950
  cat >>confdefs.h <<\_ACEOF
6269
19951
#define DOUG_LEA_MALLOC 1
6270
 
EOF
 
19952
_ACEOF
6271
19953
 
6272
 
  cat >> confdefs.h <<\EOF
 
19954
  cat >>confdefs.h <<\_ACEOF
6273
19955
#define LIBC_MALLOC 1
6274
 
EOF
 
19956
_ACEOF
6275
19957
 
6276
19958
fi
6277
19959
 
 
19960
 
6278
19961
# Check whether --with-readline or --without-readline was given.
6279
19962
if test "${with_readline+set}" = set; then
6280
19963
  withval="$with_readline"
6281
 
  :
 
19964
 
6282
19965
else
6283
19966
  with_readline=maybe
6284
 
fi
6285
 
 
 
19967
fi;
6286
19968
 
6287
19969
if test "$with_readline" != "no"; then
6288
 
  # Check whether --with-readline-prefix or --without-readline-prefix was given.
 
19970
    _cppflags=${CPPFLAGS}
 
19971
  _ldflags=${LDFLAGS}
 
19972
 
 
19973
 
 
19974
# Check whether --with-readline-prefix or --without-readline-prefix was given.
6289
19975
if test "${with_readline_prefix+set}" = set; then
6290
19976
  withval="$with_readline_prefix"
6291
19977
   if test "$withval" != "no" -a "$withval" != "yes"; then
6292
 
    # Save in case test with directory specified fails
6293
 
    _cppflags=${CPPFLAGS}
6294
 
    _ldflags=${LDFLAGS}
6295
 
 
6296
19978
    CPPFLAGS="${CPPFLAGS} -I$withval/include"
6297
19979
    LDFLAGS="${LDFLAGS} -L$withval/lib"
6298
 
  fi 
6299
 
fi
6300
 
 
 
19980
  fi
 
19981
fi;
6301
19982
 
6302
19983
      unset tcap
6303
19984
  for termlib in ncurses curses termcap terminfo termlib; do
6304
 
    echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
6305
 
echo "configure:6306: checking for tputs in -l${termlib}" >&5
6306
 
ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
6307
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6308
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
19985
    as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
 
19986
echo "$as_me:$LINENO: checking for tputs in -l${termlib}" >&5
 
19987
echo $ECHO_N "checking for tputs in -l${termlib}... $ECHO_C" >&6
 
19988
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
19989
  echo $ECHO_N "(cached) $ECHO_C" >&6
6309
19990
else
6310
 
  ac_save_LIBS="$LIBS"
 
19991
  ac_check_lib_save_LIBS=$LIBS
6311
19992
LIBS="-l${termlib}  $LIBS"
6312
 
cat > conftest.$ac_ext <<EOF
6313
 
#line 6314 "configure"
6314
 
#include "confdefs.h"
 
19993
cat >conftest.$ac_ext <<_ACEOF
 
19994
#line $LINENO "configure"
 
19995
/* confdefs.h.  */
 
19996
_ACEOF
 
19997
cat confdefs.h >>conftest.$ac_ext
 
19998
cat >>conftest.$ac_ext <<_ACEOF
 
19999
/* end confdefs.h.  */
 
20000
 
6315
20001
/* Override any gcc2 internal prototype to avoid an error.  */
 
20002
#ifdef __cplusplus
 
20003
extern "C"
 
20004
#endif
6316
20005
/* We use char because int might match the return type of a gcc2
6317
 
    builtin and then its argument prototype would still apply.  */
6318
 
char tputs();
6319
 
 
6320
 
int main() {
6321
 
tputs()
6322
 
; return 0; }
6323
 
EOF
6324
 
if { (eval echo configure:6325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6325
 
  rm -rf conftest*
6326
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
20006
   builtin and then its argument prototype would still apply.  */
 
20007
char tputs ();
 
20008
int
 
20009
main ()
 
20010
{
 
20011
tputs ();
 
20012
  ;
 
20013
  return 0;
 
20014
}
 
20015
_ACEOF
 
20016
rm -f conftest.$ac_objext conftest$ac_exeext
 
20017
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20018
  (eval $ac_link) 2>&5
 
20019
  ac_status=$?
 
20020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20021
  (exit $ac_status); } &&
 
20022
         { ac_try='test -s conftest$ac_exeext'
 
20023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20024
  (eval $ac_try) 2>&5
 
20025
  ac_status=$?
 
20026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20027
  (exit $ac_status); }; }; then
 
20028
  eval "$as_ac_Lib=yes"
6327
20029
else
6328
 
  echo "configure: failed program was:" >&5
6329
 
  cat conftest.$ac_ext >&5
6330
 
  rm -rf conftest*
6331
 
  eval "ac_cv_lib_$ac_lib_var=no"
6332
 
fi
6333
 
rm -f conftest*
6334
 
LIBS="$ac_save_LIBS"
 
20030
  echo "$as_me: failed program was:" >&5
 
20031
sed 's/^/| /' conftest.$ac_ext >&5
6335
20032
 
6336
 
fi
6337
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6338
 
  echo "$ac_t""yes" 1>&6
 
20033
eval "$as_ac_Lib=no"
 
20034
fi
 
20035
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20036
LIBS=$ac_check_lib_save_LIBS
 
20037
fi
 
20038
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
20039
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
20040
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6339
20041
  tcap="$tcap -l$termlib"
6340
 
else
6341
 
  echo "$ac_t""no" 1>&6
6342
20042
fi
6343
20043
 
6344
20044
    case "$tcap" in
6348
20048
    esac
6349
20049
  done
6350
20050
 
6351
 
  ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
6352
 
echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
6353
 
echo "configure:6354: checking for readline/readline.h" >&5
6354
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6355
 
  echo $ac_n "(cached) $ac_c" 1>&6
6356
 
else
6357
 
  cat > conftest.$ac_ext <<EOF
6358
 
#line 6359 "configure"
6359
 
#include "confdefs.h"
6360
 
#include <readline/readline.h>
6361
 
EOF
6362
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6363
 
{ (eval echo configure:6364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6364
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6365
 
if test -z "$ac_err"; then
6366
 
  rm -rf conftest*
6367
 
  eval "ac_cv_header_$ac_safe=yes"
6368
 
else
6369
 
  echo "$ac_err" >&5
6370
 
  echo "configure: failed program was:" >&5
6371
 
  cat conftest.$ac_ext >&5
6372
 
  rm -rf conftest*
6373
 
  eval "ac_cv_header_$ac_safe=no"
6374
 
fi
6375
 
rm -f conftest*
6376
 
fi
6377
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6378
 
  echo "$ac_t""yes" 1>&6
6379
 
  echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
6380
 
echo "configure:6381: checking for readline in -lreadline" >&5
6381
 
ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
6382
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6383
 
  echo $ac_n "(cached) $ac_c" 1>&6
6384
 
else
6385
 
  ac_save_LIBS="$LIBS"
 
20051
  if test "${ac_cv_header_readline_readline_h+set}" = set; then
 
20052
  echo "$as_me:$LINENO: checking for readline/readline.h" >&5
 
20053
echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
 
20054
if test "${ac_cv_header_readline_readline_h+set}" = set; then
 
20055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20056
fi
 
20057
echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
 
20058
echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
 
20059
else
 
20060
  # Is the header compilable?
 
20061
echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
 
20062
echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
 
20063
cat >conftest.$ac_ext <<_ACEOF
 
20064
#line $LINENO "configure"
 
20065
/* confdefs.h.  */
 
20066
_ACEOF
 
20067
cat confdefs.h >>conftest.$ac_ext
 
20068
cat >>conftest.$ac_ext <<_ACEOF
 
20069
/* end confdefs.h.  */
 
20070
$ac_includes_default
 
20071
#include <readline/readline.h>
 
20072
_ACEOF
 
20073
rm -f conftest.$ac_objext
 
20074
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20075
  (eval $ac_compile) 2>&5
 
20076
  ac_status=$?
 
20077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20078
  (exit $ac_status); } &&
 
20079
         { ac_try='test -s conftest.$ac_objext'
 
20080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20081
  (eval $ac_try) 2>&5
 
20082
  ac_status=$?
 
20083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20084
  (exit $ac_status); }; }; then
 
20085
  ac_header_compiler=yes
 
20086
else
 
20087
  echo "$as_me: failed program was:" >&5
 
20088
sed 's/^/| /' conftest.$ac_ext >&5
 
20089
 
 
20090
ac_header_compiler=no
 
20091
fi
 
20092
rm -f conftest.$ac_objext conftest.$ac_ext
 
20093
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20094
echo "${ECHO_T}$ac_header_compiler" >&6
 
20095
 
 
20096
# Is the header present?
 
20097
echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
 
20098
echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
 
20099
cat >conftest.$ac_ext <<_ACEOF
 
20100
#line $LINENO "configure"
 
20101
/* confdefs.h.  */
 
20102
_ACEOF
 
20103
cat confdefs.h >>conftest.$ac_ext
 
20104
cat >>conftest.$ac_ext <<_ACEOF
 
20105
/* end confdefs.h.  */
 
20106
#include <readline/readline.h>
 
20107
_ACEOF
 
20108
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20109
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20110
  ac_status=$?
 
20111
  grep -v '^ *+' conftest.er1 >conftest.err
 
20112
  rm -f conftest.er1
 
20113
  cat conftest.err >&5
 
20114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20115
  (exit $ac_status); } >/dev/null; then
 
20116
  if test -s conftest.err; then
 
20117
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20118
  else
 
20119
    ac_cpp_err=
 
20120
  fi
 
20121
else
 
20122
  ac_cpp_err=yes
 
20123
fi
 
20124
if test -z "$ac_cpp_err"; then
 
20125
  ac_header_preproc=yes
 
20126
else
 
20127
  echo "$as_me: failed program was:" >&5
 
20128
sed 's/^/| /' conftest.$ac_ext >&5
 
20129
 
 
20130
  ac_header_preproc=no
 
20131
fi
 
20132
rm -f conftest.err conftest.$ac_ext
 
20133
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20134
echo "${ECHO_T}$ac_header_preproc" >&6
 
20135
 
 
20136
# So?  What about this header?
 
20137
case $ac_header_compiler:$ac_header_preproc in
 
20138
  yes:no )
 
20139
    { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20140
echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20141
    { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
 
20142
echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
 
20143
    (
 
20144
      cat <<\_ASBOX
 
20145
## ------------------------------------ ##
 
20146
## Report this to bug-autoconf@gnu.org. ##
 
20147
## ------------------------------------ ##
 
20148
_ASBOX
 
20149
    ) |
 
20150
      sed "s/^/$as_me: WARNING:     /" >&2
 
20151
    ;;
 
20152
  no:yes )
 
20153
    { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
 
20154
echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
 
20155
    { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
 
20156
echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
 
20157
    { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
 
20158
echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
 
20159
    (
 
20160
      cat <<\_ASBOX
 
20161
## ------------------------------------ ##
 
20162
## Report this to bug-autoconf@gnu.org. ##
 
20163
## ------------------------------------ ##
 
20164
_ASBOX
 
20165
    ) |
 
20166
      sed "s/^/$as_me: WARNING:     /" >&2
 
20167
    ;;
 
20168
esac
 
20169
echo "$as_me:$LINENO: checking for readline/readline.h" >&5
 
20170
echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
 
20171
if test "${ac_cv_header_readline_readline_h+set}" = set; then
 
20172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20173
else
 
20174
  ac_cv_header_readline_readline_h=$ac_header_preproc
 
20175
fi
 
20176
echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
 
20177
echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
 
20178
 
 
20179
fi
 
20180
if test $ac_cv_header_readline_readline_h = yes; then
 
20181
  echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
 
20182
echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
 
20183
if test "${ac_cv_lib_readline_readline+set}" = set; then
 
20184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20185
else
 
20186
  ac_check_lib_save_LIBS=$LIBS
6386
20187
LIBS="-lreadline $tcap $LIBS"
6387
 
cat > conftest.$ac_ext <<EOF
6388
 
#line 6389 "configure"
6389
 
#include "confdefs.h"
 
20188
cat >conftest.$ac_ext <<_ACEOF
 
20189
#line $LINENO "configure"
 
20190
/* confdefs.h.  */
 
20191
_ACEOF
 
20192
cat confdefs.h >>conftest.$ac_ext
 
20193
cat >>conftest.$ac_ext <<_ACEOF
 
20194
/* end confdefs.h.  */
 
20195
 
6390
20196
/* Override any gcc2 internal prototype to avoid an error.  */
 
20197
#ifdef __cplusplus
 
20198
extern "C"
 
20199
#endif
6391
20200
/* We use char because int might match the return type of a gcc2
6392
 
    builtin and then its argument prototype would still apply.  */
6393
 
char readline();
6394
 
 
6395
 
int main() {
6396
 
readline()
6397
 
; return 0; }
6398
 
EOF
6399
 
if { (eval echo configure:6400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6400
 
  rm -rf conftest*
6401
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
20201
   builtin and then its argument prototype would still apply.  */
 
20202
char readline ();
 
20203
int
 
20204
main ()
 
20205
{
 
20206
readline ();
 
20207
  ;
 
20208
  return 0;
 
20209
}
 
20210
_ACEOF
 
20211
rm -f conftest.$ac_objext conftest$ac_exeext
 
20212
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20213
  (eval $ac_link) 2>&5
 
20214
  ac_status=$?
 
20215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20216
  (exit $ac_status); } &&
 
20217
         { ac_try='test -s conftest$ac_exeext'
 
20218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20219
  (eval $ac_try) 2>&5
 
20220
  ac_status=$?
 
20221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20222
  (exit $ac_status); }; }; then
 
20223
  ac_cv_lib_readline_readline=yes
6402
20224
else
6403
 
  echo "configure: failed program was:" >&5
6404
 
  cat conftest.$ac_ext >&5
6405
 
  rm -rf conftest*
6406
 
  eval "ac_cv_lib_$ac_lib_var=no"
6407
 
fi
6408
 
rm -f conftest*
6409
 
LIBS="$ac_save_LIBS"
6410
 
 
6411
 
fi
6412
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6413
 
  echo "$ac_t""yes" 1>&6
6414
 
  
 
20225
  echo "$as_me: failed program was:" >&5
 
20226
sed 's/^/| /' conftest.$ac_ext >&5
 
20227
 
 
20228
ac_cv_lib_readline_readline=no
 
20229
fi
 
20230
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20231
LIBS=$ac_check_lib_save_LIBS
 
20232
fi
 
20233
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
 
20234
echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
 
20235
if test $ac_cv_lib_readline_readline = yes; then
 
20236
 
6415
20237
      READLINE_LIBS="-lreadline $tcap"
6416
 
      cat >> confdefs.h <<\EOF
 
20238
      cat >>confdefs.h <<\_ACEOF
6417
20239
#define HAVE_LIBREADLINE 1
6418
 
EOF
6419
 
 
6420
 
else
6421
 
  echo "$ac_t""no" 1>&6
6422
 
fi
6423
 
 
6424
 
else
6425
 
  echo "$ac_t""no" 1>&6
6426
 
fi
 
20240
_ACEOF
 
20241
 
 
20242
fi
 
20243
 
 
20244
fi
 
20245
 
6427
20246
 
6428
20247
 
6429
20248
  if test -z "$READLINE_LIBS"; then
6430
20249
    if test "$with_readline_prefix" = "yes"; then
6431
 
      { echo "configure: error: Can't find readline libraries" 1>&2; exit 1; }
6432
 
    else
6433
 
      CPPFLAGS=${_cppflags}
6434
 
      LDFLAGS=${_ldflags}
6435
 
    fi
6436
 
  fi
6437
 
fi
6438
 
 
6439
 
 
6440
 
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
6441
 
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
6442
 
echo "configure:6443: checking for dlfcn.h" >&5
6443
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6444
 
  echo $ac_n "(cached) $ac_c" 1>&6
6445
 
else
6446
 
  cat > conftest.$ac_ext <<EOF
6447
 
#line 6448 "configure"
6448
 
#include "confdefs.h"
6449
 
#include <dlfcn.h>
6450
 
EOF
6451
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6452
 
{ (eval echo configure:6453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6453
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6454
 
if test -z "$ac_err"; then
6455
 
  rm -rf conftest*
6456
 
  eval "ac_cv_header_$ac_safe=yes"
6457
 
else
6458
 
  echo "$ac_err" >&5
6459
 
  echo "configure: failed program was:" >&5
6460
 
  cat conftest.$ac_ext >&5
6461
 
  rm -rf conftest*
6462
 
  eval "ac_cv_header_$ac_safe=no"
6463
 
fi
6464
 
rm -f conftest*
6465
 
fi
6466
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6467
 
  echo "$ac_t""yes" 1>&6
6468
 
  cat >> confdefs.h <<\EOF
 
20250
      { { echo "$as_me:$LINENO: error: Can't find readline libraries" >&5
 
20251
echo "$as_me: error: Can't find readline libraries" >&2;}
 
20252
   { (exit 1); exit 1; }; }
 
20253
    else
 
20254
      CPPFLAGS=${_cppflags}
 
20255
      LDFLAGS=${_ldflags}
 
20256
    fi
 
20257
  fi
 
20258
fi
 
20259
 
 
20260
 
 
20261
 
 
20262
# Check whether --with-ffi or --without-ffi was given.
 
20263
if test "${with_ffi+set}" = set; then
 
20264
  withval="$with_ffi"
 
20265
 
 
20266
else
 
20267
  with_ffi=maybe
 
20268
fi;
 
20269
 
 
20270
if test "$with_ffi" != "no"; then
 
20271
    _cppflags=${CPPFLAGS}
 
20272
  _ldflags=${LDFLAGS}
 
20273
 
 
20274
# Check whether --with-ffi-prefix or --without-ffi-prefix was given.
 
20275
if test "${with_ffi_prefix+set}" = set; then
 
20276
  withval="$with_ffi_prefix"
 
20277
   if test "$withval" != "no" -a "$withval" != "yes"; then
 
20278
    CPPFLAGS="${CPPFLAGS} -I$withval/include"
 
20279
    LDFLAGS="${LDFLAGS} -L$withval/lib"
 
20280
  fi
 
20281
fi;
 
20282
 
 
20283
  if test "${ac_cv_header_ffi_h+set}" = set; then
 
20284
  echo "$as_me:$LINENO: checking for ffi.h" >&5
 
20285
echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
 
20286
if test "${ac_cv_header_ffi_h+set}" = set; then
 
20287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20288
fi
 
20289
echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
 
20290
echo "${ECHO_T}$ac_cv_header_ffi_h" >&6
 
20291
else
 
20292
  # Is the header compilable?
 
20293
echo "$as_me:$LINENO: checking ffi.h usability" >&5
 
20294
echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6
 
20295
cat >conftest.$ac_ext <<_ACEOF
 
20296
#line $LINENO "configure"
 
20297
/* confdefs.h.  */
 
20298
_ACEOF
 
20299
cat confdefs.h >>conftest.$ac_ext
 
20300
cat >>conftest.$ac_ext <<_ACEOF
 
20301
/* end confdefs.h.  */
 
20302
$ac_includes_default
 
20303
#include <ffi.h>
 
20304
_ACEOF
 
20305
rm -f conftest.$ac_objext
 
20306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20307
  (eval $ac_compile) 2>&5
 
20308
  ac_status=$?
 
20309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20310
  (exit $ac_status); } &&
 
20311
         { ac_try='test -s conftest.$ac_objext'
 
20312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20313
  (eval $ac_try) 2>&5
 
20314
  ac_status=$?
 
20315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20316
  (exit $ac_status); }; }; then
 
20317
  ac_header_compiler=yes
 
20318
else
 
20319
  echo "$as_me: failed program was:" >&5
 
20320
sed 's/^/| /' conftest.$ac_ext >&5
 
20321
 
 
20322
ac_header_compiler=no
 
20323
fi
 
20324
rm -f conftest.$ac_objext conftest.$ac_ext
 
20325
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20326
echo "${ECHO_T}$ac_header_compiler" >&6
 
20327
 
 
20328
# Is the header present?
 
20329
echo "$as_me:$LINENO: checking ffi.h presence" >&5
 
20330
echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6
 
20331
cat >conftest.$ac_ext <<_ACEOF
 
20332
#line $LINENO "configure"
 
20333
/* confdefs.h.  */
 
20334
_ACEOF
 
20335
cat confdefs.h >>conftest.$ac_ext
 
20336
cat >>conftest.$ac_ext <<_ACEOF
 
20337
/* end confdefs.h.  */
 
20338
#include <ffi.h>
 
20339
_ACEOF
 
20340
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20341
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20342
  ac_status=$?
 
20343
  grep -v '^ *+' conftest.er1 >conftest.err
 
20344
  rm -f conftest.er1
 
20345
  cat conftest.err >&5
 
20346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20347
  (exit $ac_status); } >/dev/null; then
 
20348
  if test -s conftest.err; then
 
20349
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20350
  else
 
20351
    ac_cpp_err=
 
20352
  fi
 
20353
else
 
20354
  ac_cpp_err=yes
 
20355
fi
 
20356
if test -z "$ac_cpp_err"; then
 
20357
  ac_header_preproc=yes
 
20358
else
 
20359
  echo "$as_me: failed program was:" >&5
 
20360
sed 's/^/| /' conftest.$ac_ext >&5
 
20361
 
 
20362
  ac_header_preproc=no
 
20363
fi
 
20364
rm -f conftest.err conftest.$ac_ext
 
20365
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20366
echo "${ECHO_T}$ac_header_preproc" >&6
 
20367
 
 
20368
# So?  What about this header?
 
20369
case $ac_header_compiler:$ac_header_preproc in
 
20370
  yes:no )
 
20371
    { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20372
echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20373
    { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
 
20374
echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
 
20375
    (
 
20376
      cat <<\_ASBOX
 
20377
## ------------------------------------ ##
 
20378
## Report this to bug-autoconf@gnu.org. ##
 
20379
## ------------------------------------ ##
 
20380
_ASBOX
 
20381
    ) |
 
20382
      sed "s/^/$as_me: WARNING:     /" >&2
 
20383
    ;;
 
20384
  no:yes )
 
20385
    { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
 
20386
echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
 
20387
    { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
 
20388
echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
 
20389
    { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
 
20390
echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
 
20391
    (
 
20392
      cat <<\_ASBOX
 
20393
## ------------------------------------ ##
 
20394
## Report this to bug-autoconf@gnu.org. ##
 
20395
## ------------------------------------ ##
 
20396
_ASBOX
 
20397
    ) |
 
20398
      sed "s/^/$as_me: WARNING:     /" >&2
 
20399
    ;;
 
20400
esac
 
20401
echo "$as_me:$LINENO: checking for ffi.h" >&5
 
20402
echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6
 
20403
if test "${ac_cv_header_ffi_h+set}" = set; then
 
20404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20405
else
 
20406
  ac_cv_header_ffi_h=$ac_header_preproc
 
20407
fi
 
20408
echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
 
20409
echo "${ECHO_T}$ac_cv_header_ffi_h" >&6
 
20410
 
 
20411
fi
 
20412
if test $ac_cv_header_ffi_h = yes; then
 
20413
  cat >>confdefs.h <<\_ACEOF
 
20414
#define HAVE_FFI_H 1
 
20415
_ACEOF
 
20416
 
 
20417
    echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
 
20418
echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6
 
20419
if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
 
20420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20421
else
 
20422
  ac_check_lib_save_LIBS=$LIBS
 
20423
LIBS="-lffi  $LIBS"
 
20424
cat >conftest.$ac_ext <<_ACEOF
 
20425
#line $LINENO "configure"
 
20426
/* confdefs.h.  */
 
20427
_ACEOF
 
20428
cat confdefs.h >>conftest.$ac_ext
 
20429
cat >>conftest.$ac_ext <<_ACEOF
 
20430
/* end confdefs.h.  */
 
20431
 
 
20432
/* Override any gcc2 internal prototype to avoid an error.  */
 
20433
#ifdef __cplusplus
 
20434
extern "C"
 
20435
#endif
 
20436
/* We use char because int might match the return type of a gcc2
 
20437
   builtin and then its argument prototype would still apply.  */
 
20438
char ffi_call ();
 
20439
int
 
20440
main ()
 
20441
{
 
20442
ffi_call ();
 
20443
  ;
 
20444
  return 0;
 
20445
}
 
20446
_ACEOF
 
20447
rm -f conftest.$ac_objext conftest$ac_exeext
 
20448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20449
  (eval $ac_link) 2>&5
 
20450
  ac_status=$?
 
20451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20452
  (exit $ac_status); } &&
 
20453
         { ac_try='test -s conftest$ac_exeext'
 
20454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20455
  (eval $ac_try) 2>&5
 
20456
  ac_status=$?
 
20457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20458
  (exit $ac_status); }; }; then
 
20459
  ac_cv_lib_ffi_ffi_call=yes
 
20460
else
 
20461
  echo "$as_me: failed program was:" >&5
 
20462
sed 's/^/| /' conftest.$ac_ext >&5
 
20463
 
 
20464
ac_cv_lib_ffi_ffi_call=no
 
20465
fi
 
20466
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20467
LIBS=$ac_check_lib_save_LIBS
 
20468
fi
 
20469
echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
 
20470
echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6
 
20471
if test $ac_cv_lib_ffi_ffi_call = yes; then
 
20472
 
 
20473
      FFI_LIBS="-lffi"
 
20474
      cat >>confdefs.h <<\_ACEOF
 
20475
#define HAVE_LIBFFI 1
 
20476
_ACEOF
 
20477
 
 
20478
fi
 
20479
 
 
20480
fi
 
20481
 
 
20482
 
 
20483
 
 
20484
  if test -z "$FFI_LIBS"; then
 
20485
    if test "$with_ffi_prefix" = "yes"; then
 
20486
      { { echo "$as_me:$LINENO: error: Can't find libffi" >&5
 
20487
echo "$as_me: error: Can't find libffi" >&2;}
 
20488
   { (exit 1); exit 1; }; }
 
20489
    else
 
20490
      CPPFLAGS=${_cppflags}
 
20491
      LDFLAGS=${_ldflags}
 
20492
    fi
 
20493
  fi
 
20494
fi
 
20495
 
 
20496
 
 
20497
if test "${ac_cv_header_dlfcn_h+set}" = set; then
 
20498
  echo "$as_me:$LINENO: checking for dlfcn.h" >&5
 
20499
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
 
20500
if test "${ac_cv_header_dlfcn_h+set}" = set; then
 
20501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20502
fi
 
20503
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
 
20504
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
 
20505
else
 
20506
  # Is the header compilable?
 
20507
echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
 
20508
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
 
20509
cat >conftest.$ac_ext <<_ACEOF
 
20510
#line $LINENO "configure"
 
20511
/* confdefs.h.  */
 
20512
_ACEOF
 
20513
cat confdefs.h >>conftest.$ac_ext
 
20514
cat >>conftest.$ac_ext <<_ACEOF
 
20515
/* end confdefs.h.  */
 
20516
$ac_includes_default
 
20517
#include <dlfcn.h>
 
20518
_ACEOF
 
20519
rm -f conftest.$ac_objext
 
20520
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20521
  (eval $ac_compile) 2>&5
 
20522
  ac_status=$?
 
20523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20524
  (exit $ac_status); } &&
 
20525
         { ac_try='test -s conftest.$ac_objext'
 
20526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20527
  (eval $ac_try) 2>&5
 
20528
  ac_status=$?
 
20529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20530
  (exit $ac_status); }; }; then
 
20531
  ac_header_compiler=yes
 
20532
else
 
20533
  echo "$as_me: failed program was:" >&5
 
20534
sed 's/^/| /' conftest.$ac_ext >&5
 
20535
 
 
20536
ac_header_compiler=no
 
20537
fi
 
20538
rm -f conftest.$ac_objext conftest.$ac_ext
 
20539
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20540
echo "${ECHO_T}$ac_header_compiler" >&6
 
20541
 
 
20542
# Is the header present?
 
20543
echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
 
20544
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
 
20545
cat >conftest.$ac_ext <<_ACEOF
 
20546
#line $LINENO "configure"
 
20547
/* confdefs.h.  */
 
20548
_ACEOF
 
20549
cat confdefs.h >>conftest.$ac_ext
 
20550
cat >>conftest.$ac_ext <<_ACEOF
 
20551
/* end confdefs.h.  */
 
20552
#include <dlfcn.h>
 
20553
_ACEOF
 
20554
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20555
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20556
  ac_status=$?
 
20557
  grep -v '^ *+' conftest.er1 >conftest.err
 
20558
  rm -f conftest.er1
 
20559
  cat conftest.err >&5
 
20560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20561
  (exit $ac_status); } >/dev/null; then
 
20562
  if test -s conftest.err; then
 
20563
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20564
  else
 
20565
    ac_cpp_err=
 
20566
  fi
 
20567
else
 
20568
  ac_cpp_err=yes
 
20569
fi
 
20570
if test -z "$ac_cpp_err"; then
 
20571
  ac_header_preproc=yes
 
20572
else
 
20573
  echo "$as_me: failed program was:" >&5
 
20574
sed 's/^/| /' conftest.$ac_ext >&5
 
20575
 
 
20576
  ac_header_preproc=no
 
20577
fi
 
20578
rm -f conftest.err conftest.$ac_ext
 
20579
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20580
echo "${ECHO_T}$ac_header_preproc" >&6
 
20581
 
 
20582
# So?  What about this header?
 
20583
case $ac_header_compiler:$ac_header_preproc in
 
20584
  yes:no )
 
20585
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20586
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20587
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
 
20588
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
 
20589
    (
 
20590
      cat <<\_ASBOX
 
20591
## ------------------------------------ ##
 
20592
## Report this to bug-autoconf@gnu.org. ##
 
20593
## ------------------------------------ ##
 
20594
_ASBOX
 
20595
    ) |
 
20596
      sed "s/^/$as_me: WARNING:     /" >&2
 
20597
    ;;
 
20598
  no:yes )
 
20599
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
 
20600
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
 
20601
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
 
20602
echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
 
20603
    { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
 
20604
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
 
20605
    (
 
20606
      cat <<\_ASBOX
 
20607
## ------------------------------------ ##
 
20608
## Report this to bug-autoconf@gnu.org. ##
 
20609
## ------------------------------------ ##
 
20610
_ASBOX
 
20611
    ) |
 
20612
      sed "s/^/$as_me: WARNING:     /" >&2
 
20613
    ;;
 
20614
esac
 
20615
echo "$as_me:$LINENO: checking for dlfcn.h" >&5
 
20616
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
 
20617
if test "${ac_cv_header_dlfcn_h+set}" = set; then
 
20618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20619
else
 
20620
  ac_cv_header_dlfcn_h=$ac_header_preproc
 
20621
fi
 
20622
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
 
20623
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
 
20624
 
 
20625
fi
 
20626
if test $ac_cv_header_dlfcn_h = yes; then
 
20627
  cat >>confdefs.h <<\_ACEOF
6469
20628
#define HAVE_DLFCN_H 1
6470
 
EOF
6471
 
 
6472
 
else
6473
 
  echo "$ac_t""no" 1>&6
6474
 
fi
6475
 
 
6476
 
ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
6477
 
echo $ac_n "checking for dl.h""... $ac_c" 1>&6
6478
 
echo "configure:6479: checking for dl.h" >&5
6479
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6480
 
  echo $ac_n "(cached) $ac_c" 1>&6
6481
 
else
6482
 
  cat > conftest.$ac_ext <<EOF
6483
 
#line 6484 "configure"
6484
 
#include "confdefs.h"
6485
 
#include <dl.h>
6486
 
EOF
6487
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6488
 
{ (eval echo configure:6489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6489
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6490
 
if test -z "$ac_err"; then
6491
 
  rm -rf conftest*
6492
 
  eval "ac_cv_header_$ac_safe=yes"
6493
 
else
6494
 
  echo "$ac_err" >&5
6495
 
  echo "configure: failed program was:" >&5
6496
 
  cat conftest.$ac_ext >&5
6497
 
  rm -rf conftest*
6498
 
  eval "ac_cv_header_$ac_safe=no"
6499
 
fi
6500
 
rm -f conftest*
6501
 
fi
6502
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6503
 
  echo "$ac_t""yes" 1>&6
6504
 
  cat >> confdefs.h <<\EOF
 
20629
_ACEOF
 
20630
 
 
20631
fi
 
20632
 
 
20633
 
 
20634
if test "${ac_cv_header_dl_h+set}" = set; then
 
20635
  echo "$as_me:$LINENO: checking for dl.h" >&5
 
20636
echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
 
20637
if test "${ac_cv_header_dl_h+set}" = set; then
 
20638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20639
fi
 
20640
echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
 
20641
echo "${ECHO_T}$ac_cv_header_dl_h" >&6
 
20642
else
 
20643
  # Is the header compilable?
 
20644
echo "$as_me:$LINENO: checking dl.h usability" >&5
 
20645
echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
 
20646
cat >conftest.$ac_ext <<_ACEOF
 
20647
#line $LINENO "configure"
 
20648
/* confdefs.h.  */
 
20649
_ACEOF
 
20650
cat confdefs.h >>conftest.$ac_ext
 
20651
cat >>conftest.$ac_ext <<_ACEOF
 
20652
/* end confdefs.h.  */
 
20653
$ac_includes_default
 
20654
#include <dl.h>
 
20655
_ACEOF
 
20656
rm -f conftest.$ac_objext
 
20657
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20658
  (eval $ac_compile) 2>&5
 
20659
  ac_status=$?
 
20660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20661
  (exit $ac_status); } &&
 
20662
         { ac_try='test -s conftest.$ac_objext'
 
20663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20664
  (eval $ac_try) 2>&5
 
20665
  ac_status=$?
 
20666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20667
  (exit $ac_status); }; }; then
 
20668
  ac_header_compiler=yes
 
20669
else
 
20670
  echo "$as_me: failed program was:" >&5
 
20671
sed 's/^/| /' conftest.$ac_ext >&5
 
20672
 
 
20673
ac_header_compiler=no
 
20674
fi
 
20675
rm -f conftest.$ac_objext conftest.$ac_ext
 
20676
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20677
echo "${ECHO_T}$ac_header_compiler" >&6
 
20678
 
 
20679
# Is the header present?
 
20680
echo "$as_me:$LINENO: checking dl.h presence" >&5
 
20681
echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
 
20682
cat >conftest.$ac_ext <<_ACEOF
 
20683
#line $LINENO "configure"
 
20684
/* confdefs.h.  */
 
20685
_ACEOF
 
20686
cat confdefs.h >>conftest.$ac_ext
 
20687
cat >>conftest.$ac_ext <<_ACEOF
 
20688
/* end confdefs.h.  */
 
20689
#include <dl.h>
 
20690
_ACEOF
 
20691
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20692
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20693
  ac_status=$?
 
20694
  grep -v '^ *+' conftest.er1 >conftest.err
 
20695
  rm -f conftest.er1
 
20696
  cat conftest.err >&5
 
20697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20698
  (exit $ac_status); } >/dev/null; then
 
20699
  if test -s conftest.err; then
 
20700
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20701
  else
 
20702
    ac_cpp_err=
 
20703
  fi
 
20704
else
 
20705
  ac_cpp_err=yes
 
20706
fi
 
20707
if test -z "$ac_cpp_err"; then
 
20708
  ac_header_preproc=yes
 
20709
else
 
20710
  echo "$as_me: failed program was:" >&5
 
20711
sed 's/^/| /' conftest.$ac_ext >&5
 
20712
 
 
20713
  ac_header_preproc=no
 
20714
fi
 
20715
rm -f conftest.err conftest.$ac_ext
 
20716
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20717
echo "${ECHO_T}$ac_header_preproc" >&6
 
20718
 
 
20719
# So?  What about this header?
 
20720
case $ac_header_compiler:$ac_header_preproc in
 
20721
  yes:no )
 
20722
    { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20723
echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20724
    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
 
20725
echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
 
20726
    (
 
20727
      cat <<\_ASBOX
 
20728
## ------------------------------------ ##
 
20729
## Report this to bug-autoconf@gnu.org. ##
 
20730
## ------------------------------------ ##
 
20731
_ASBOX
 
20732
    ) |
 
20733
      sed "s/^/$as_me: WARNING:     /" >&2
 
20734
    ;;
 
20735
  no:yes )
 
20736
    { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
 
20737
echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
 
20738
    { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
 
20739
echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
 
20740
    { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
 
20741
echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
 
20742
    (
 
20743
      cat <<\_ASBOX
 
20744
## ------------------------------------ ##
 
20745
## Report this to bug-autoconf@gnu.org. ##
 
20746
## ------------------------------------ ##
 
20747
_ASBOX
 
20748
    ) |
 
20749
      sed "s/^/$as_me: WARNING:     /" >&2
 
20750
    ;;
 
20751
esac
 
20752
echo "$as_me:$LINENO: checking for dl.h" >&5
 
20753
echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
 
20754
if test "${ac_cv_header_dl_h+set}" = set; then
 
20755
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20756
else
 
20757
  ac_cv_header_dl_h=$ac_header_preproc
 
20758
fi
 
20759
echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
 
20760
echo "${ECHO_T}$ac_cv_header_dl_h" >&6
 
20761
 
 
20762
fi
 
20763
if test $ac_cv_header_dl_h = yes; then
 
20764
  cat >>confdefs.h <<\_ACEOF
6505
20765
#define HAVE_DL_H 1
6506
 
EOF
6507
 
 
6508
 
else
6509
 
  echo "$ac_t""no" 1>&6
6510
 
fi
6511
 
 
6512
 
ac_safe=`echo "sys/dl.h" | sed 'y%./+-%__p_%'`
6513
 
echo $ac_n "checking for sys/dl.h""... $ac_c" 1>&6
6514
 
echo "configure:6515: checking for sys/dl.h" >&5
6515
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6516
 
  echo $ac_n "(cached) $ac_c" 1>&6
6517
 
else
6518
 
  cat > conftest.$ac_ext <<EOF
6519
 
#line 6520 "configure"
6520
 
#include "confdefs.h"
6521
 
#include <sys/dl.h>
6522
 
EOF
6523
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6524
 
{ (eval echo configure:6525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6525
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6526
 
if test -z "$ac_err"; then
6527
 
  rm -rf conftest*
6528
 
  eval "ac_cv_header_$ac_safe=yes"
6529
 
else
6530
 
  echo "$ac_err" >&5
6531
 
  echo "configure: failed program was:" >&5
6532
 
  cat conftest.$ac_ext >&5
6533
 
  rm -rf conftest*
6534
 
  eval "ac_cv_header_$ac_safe=no"
6535
 
fi
6536
 
rm -f conftest*
6537
 
fi
6538
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6539
 
  echo "$ac_t""yes" 1>&6
6540
 
  cat >> confdefs.h <<\EOF
 
20766
_ACEOF
 
20767
 
 
20768
fi
 
20769
 
 
20770
 
 
20771
if test "${ac_cv_header_sys_dl_h+set}" = set; then
 
20772
  echo "$as_me:$LINENO: checking for sys/dl.h" >&5
 
20773
echo $ECHO_N "checking for sys/dl.h... $ECHO_C" >&6
 
20774
if test "${ac_cv_header_sys_dl_h+set}" = set; then
 
20775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20776
fi
 
20777
echo "$as_me:$LINENO: result: $ac_cv_header_sys_dl_h" >&5
 
20778
echo "${ECHO_T}$ac_cv_header_sys_dl_h" >&6
 
20779
else
 
20780
  # Is the header compilable?
 
20781
echo "$as_me:$LINENO: checking sys/dl.h usability" >&5
 
20782
echo $ECHO_N "checking sys/dl.h usability... $ECHO_C" >&6
 
20783
cat >conftest.$ac_ext <<_ACEOF
 
20784
#line $LINENO "configure"
 
20785
/* confdefs.h.  */
 
20786
_ACEOF
 
20787
cat confdefs.h >>conftest.$ac_ext
 
20788
cat >>conftest.$ac_ext <<_ACEOF
 
20789
/* end confdefs.h.  */
 
20790
$ac_includes_default
 
20791
#include <sys/dl.h>
 
20792
_ACEOF
 
20793
rm -f conftest.$ac_objext
 
20794
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20795
  (eval $ac_compile) 2>&5
 
20796
  ac_status=$?
 
20797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20798
  (exit $ac_status); } &&
 
20799
         { ac_try='test -s conftest.$ac_objext'
 
20800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20801
  (eval $ac_try) 2>&5
 
20802
  ac_status=$?
 
20803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20804
  (exit $ac_status); }; }; then
 
20805
  ac_header_compiler=yes
 
20806
else
 
20807
  echo "$as_me: failed program was:" >&5
 
20808
sed 's/^/| /' conftest.$ac_ext >&5
 
20809
 
 
20810
ac_header_compiler=no
 
20811
fi
 
20812
rm -f conftest.$ac_objext conftest.$ac_ext
 
20813
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20814
echo "${ECHO_T}$ac_header_compiler" >&6
 
20815
 
 
20816
# Is the header present?
 
20817
echo "$as_me:$LINENO: checking sys/dl.h presence" >&5
 
20818
echo $ECHO_N "checking sys/dl.h presence... $ECHO_C" >&6
 
20819
cat >conftest.$ac_ext <<_ACEOF
 
20820
#line $LINENO "configure"
 
20821
/* confdefs.h.  */
 
20822
_ACEOF
 
20823
cat confdefs.h >>conftest.$ac_ext
 
20824
cat >>conftest.$ac_ext <<_ACEOF
 
20825
/* end confdefs.h.  */
 
20826
#include <sys/dl.h>
 
20827
_ACEOF
 
20828
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20829
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20830
  ac_status=$?
 
20831
  grep -v '^ *+' conftest.er1 >conftest.err
 
20832
  rm -f conftest.er1
 
20833
  cat conftest.err >&5
 
20834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20835
  (exit $ac_status); } >/dev/null; then
 
20836
  if test -s conftest.err; then
 
20837
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20838
  else
 
20839
    ac_cpp_err=
 
20840
  fi
 
20841
else
 
20842
  ac_cpp_err=yes
 
20843
fi
 
20844
if test -z "$ac_cpp_err"; then
 
20845
  ac_header_preproc=yes
 
20846
else
 
20847
  echo "$as_me: failed program was:" >&5
 
20848
sed 's/^/| /' conftest.$ac_ext >&5
 
20849
 
 
20850
  ac_header_preproc=no
 
20851
fi
 
20852
rm -f conftest.err conftest.$ac_ext
 
20853
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20854
echo "${ECHO_T}$ac_header_preproc" >&6
 
20855
 
 
20856
# So?  What about this header?
 
20857
case $ac_header_compiler:$ac_header_preproc in
 
20858
  yes:no )
 
20859
    { echo "$as_me:$LINENO: WARNING: sys/dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20860
echo "$as_me: WARNING: sys/dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20861
    { echo "$as_me:$LINENO: WARNING: sys/dl.h: proceeding with the preprocessor's result" >&5
 
20862
echo "$as_me: WARNING: sys/dl.h: proceeding with the preprocessor's result" >&2;}
 
20863
    (
 
20864
      cat <<\_ASBOX
 
20865
## ------------------------------------ ##
 
20866
## Report this to bug-autoconf@gnu.org. ##
 
20867
## ------------------------------------ ##
 
20868
_ASBOX
 
20869
    ) |
 
20870
      sed "s/^/$as_me: WARNING:     /" >&2
 
20871
    ;;
 
20872
  no:yes )
 
20873
    { echo "$as_me:$LINENO: WARNING: sys/dl.h: present but cannot be compiled" >&5
 
20874
echo "$as_me: WARNING: sys/dl.h: present but cannot be compiled" >&2;}
 
20875
    { echo "$as_me:$LINENO: WARNING: sys/dl.h: check for missing prerequisite headers?" >&5
 
20876
echo "$as_me: WARNING: sys/dl.h: check for missing prerequisite headers?" >&2;}
 
20877
    { echo "$as_me:$LINENO: WARNING: sys/dl.h: proceeding with the preprocessor's result" >&5
 
20878
echo "$as_me: WARNING: sys/dl.h: proceeding with the preprocessor's result" >&2;}
 
20879
    (
 
20880
      cat <<\_ASBOX
 
20881
## ------------------------------------ ##
 
20882
## Report this to bug-autoconf@gnu.org. ##
 
20883
## ------------------------------------ ##
 
20884
_ASBOX
 
20885
    ) |
 
20886
      sed "s/^/$as_me: WARNING:     /" >&2
 
20887
    ;;
 
20888
esac
 
20889
echo "$as_me:$LINENO: checking for sys/dl.h" >&5
 
20890
echo $ECHO_N "checking for sys/dl.h... $ECHO_C" >&6
 
20891
if test "${ac_cv_header_sys_dl_h+set}" = set; then
 
20892
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20893
else
 
20894
  ac_cv_header_sys_dl_h=$ac_header_preproc
 
20895
fi
 
20896
echo "$as_me:$LINENO: result: $ac_cv_header_sys_dl_h" >&5
 
20897
echo "${ECHO_T}$ac_cv_header_sys_dl_h" >&6
 
20898
 
 
20899
fi
 
20900
if test $ac_cv_header_sys_dl_h = yes; then
 
20901
  cat >>confdefs.h <<\_ACEOF
6541
20902
#define HAVE_SYS_DL_H 1
6542
 
EOF
 
20903
_ACEOF
6543
20904
 
6544
 
else
6545
 
  echo "$ac_t""no" 1>&6
6546
20905
fi
6547
20906
 
 
20907
 
6548
20908
dl_ok=no
6549
 
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6550
 
echo "configure:6551: checking for dlopen" >&5
6551
 
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
6552
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
20909
echo "$as_me:$LINENO: checking for dlopen" >&5
 
20910
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
20911
if test "${ac_cv_func_dlopen+set}" = set; then
 
20912
  echo $ECHO_N "(cached) $ECHO_C" >&6
6553
20913
else
6554
 
  cat > conftest.$ac_ext <<EOF
6555
 
#line 6556 "configure"
6556
 
#include "confdefs.h"
 
20914
  cat >conftest.$ac_ext <<_ACEOF
 
20915
#line $LINENO "configure"
 
20916
/* confdefs.h.  */
 
20917
_ACEOF
 
20918
cat confdefs.h >>conftest.$ac_ext
 
20919
cat >>conftest.$ac_ext <<_ACEOF
 
20920
/* end confdefs.h.  */
6557
20921
/* System header to define __stub macros and hopefully few prototypes,
6558
 
    which can conflict with char dlopen(); below.  */
6559
 
#include <assert.h>
 
20922
    which can conflict with char dlopen (); below.
 
20923
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20924
    <limits.h> exists even on freestanding compilers.  */
 
20925
#ifdef __STDC__
 
20926
# include <limits.h>
 
20927
#else
 
20928
# include <assert.h>
 
20929
#endif
6560
20930
/* Override any gcc2 internal prototype to avoid an error.  */
 
20931
#ifdef __cplusplus
 
20932
extern "C"
 
20933
{
 
20934
#endif
6561
20935
/* We use char because int might match the return type of a gcc2
6562
 
    builtin and then its argument prototype would still apply.  */
6563
 
char dlopen();
6564
 
 
6565
 
int main() {
6566
 
 
 
20936
   builtin and then its argument prototype would still apply.  */
 
20937
char dlopen ();
6567
20938
/* The GNU C library defines this for functions which it implements
6568
20939
    to always fail with ENOSYS.  Some functions are actually named
6569
20940
    something starting with __ and the normal name is an alias.  */
6570
20941
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6571
20942
choke me
6572
20943
#else
6573
 
dlopen();
 
20944
char (*f) () = dlopen;
 
20945
#endif
 
20946
#ifdef __cplusplus
 
20947
}
6574
20948
#endif
6575
20949
 
6576
 
; return 0; }
6577
 
EOF
6578
 
if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6579
 
  rm -rf conftest*
6580
 
  eval "ac_cv_func_dlopen=yes"
 
20950
int
 
20951
main ()
 
20952
{
 
20953
return f != dlopen;
 
20954
  ;
 
20955
  return 0;
 
20956
}
 
20957
_ACEOF
 
20958
rm -f conftest.$ac_objext conftest$ac_exeext
 
20959
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20960
  (eval $ac_link) 2>&5
 
20961
  ac_status=$?
 
20962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20963
  (exit $ac_status); } &&
 
20964
         { ac_try='test -s conftest$ac_exeext'
 
20965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20966
  (eval $ac_try) 2>&5
 
20967
  ac_status=$?
 
20968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20969
  (exit $ac_status); }; }; then
 
20970
  ac_cv_func_dlopen=yes
6581
20971
else
6582
 
  echo "configure: failed program was:" >&5
6583
 
  cat conftest.$ac_ext >&5
6584
 
  rm -rf conftest*
6585
 
  eval "ac_cv_func_dlopen=no"
6586
 
fi
6587
 
rm -f conftest*
6588
 
fi
 
20972
  echo "$as_me: failed program was:" >&5
 
20973
sed 's/^/| /' conftest.$ac_ext >&5
6589
20974
 
6590
 
if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6591
 
  echo "$ac_t""yes" 1>&6
6592
 
  cat >> confdefs.h <<\EOF
 
20975
ac_cv_func_dlopen=no
 
20976
fi
 
20977
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20978
fi
 
20979
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
20980
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
20981
if test $ac_cv_func_dlopen = yes; then
 
20982
  cat >>confdefs.h <<\_ACEOF
6593
20983
#define HAVE_DLOPEN 1
6594
 
EOF
 
20984
_ACEOF
6595
20985
 dl_ok=dl
6596
20986
else
6597
 
  echo "$ac_t""no" 1>&6
6598
 
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6599
 
echo "configure:6600: checking for dlopen in -ldl" >&5
6600
 
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6601
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6602
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
20987
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20988
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
20989
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20990
  echo $ECHO_N "(cached) $ECHO_C" >&6
6603
20991
else
6604
 
  ac_save_LIBS="$LIBS"
 
20992
  ac_check_lib_save_LIBS=$LIBS
6605
20993
LIBS="-ldl  $LIBS"
6606
 
cat > conftest.$ac_ext <<EOF
6607
 
#line 6608 "configure"
6608
 
#include "confdefs.h"
 
20994
cat >conftest.$ac_ext <<_ACEOF
 
20995
#line $LINENO "configure"
 
20996
/* confdefs.h.  */
 
20997
_ACEOF
 
20998
cat confdefs.h >>conftest.$ac_ext
 
20999
cat >>conftest.$ac_ext <<_ACEOF
 
21000
/* end confdefs.h.  */
 
21001
 
6609
21002
/* Override any gcc2 internal prototype to avoid an error.  */
 
21003
#ifdef __cplusplus
 
21004
extern "C"
 
21005
#endif
6610
21006
/* We use char because int might match the return type of a gcc2
6611
 
    builtin and then its argument prototype would still apply.  */
6612
 
char dlopen();
6613
 
 
6614
 
int main() {
6615
 
dlopen()
6616
 
; return 0; }
6617
 
EOF
6618
 
if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6619
 
  rm -rf conftest*
6620
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
21007
   builtin and then its argument prototype would still apply.  */
 
21008
char dlopen ();
 
21009
int
 
21010
main ()
 
21011
{
 
21012
dlopen ();
 
21013
  ;
 
21014
  return 0;
 
21015
}
 
21016
_ACEOF
 
21017
rm -f conftest.$ac_objext conftest$ac_exeext
 
21018
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21019
  (eval $ac_link) 2>&5
 
21020
  ac_status=$?
 
21021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21022
  (exit $ac_status); } &&
 
21023
         { ac_try='test -s conftest$ac_exeext'
 
21024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21025
  (eval $ac_try) 2>&5
 
21026
  ac_status=$?
 
21027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21028
  (exit $ac_status); }; }; then
 
21029
  ac_cv_lib_dl_dlopen=yes
6621
21030
else
6622
 
  echo "configure: failed program was:" >&5
6623
 
  cat conftest.$ac_ext >&5
6624
 
  rm -rf conftest*
6625
 
  eval "ac_cv_lib_$ac_lib_var=no"
6626
 
fi
6627
 
rm -f conftest*
6628
 
LIBS="$ac_save_LIBS"
 
21031
  echo "$as_me: failed program was:" >&5
 
21032
sed 's/^/| /' conftest.$ac_ext >&5
6629
21033
 
6630
 
fi
6631
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6632
 
  echo "$ac_t""yes" 1>&6
6633
 
  cat >> confdefs.h <<\EOF
 
21034
ac_cv_lib_dl_dlopen=no
 
21035
fi
 
21036
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21037
LIBS=$ac_check_lib_save_LIBS
 
21038
fi
 
21039
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
21040
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
21041
if test $ac_cv_lib_dl_dlopen = yes; then
 
21042
  cat >>confdefs.h <<\_ACEOF
6634
21043
#define HAVE_DLOPEN 1
6635
 
EOF
 
21044
_ACEOF
6636
21045
 dl_ok=dl
6637
 
else
6638
 
  echo "$ac_t""no" 1>&6
6639
 
fi
6640
 
 
6641
 
fi
6642
 
 
6643
 
echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6644
 
echo "configure:6645: checking for shl_load" >&5
6645
 
if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
6646
 
  echo $ac_n "(cached) $ac_c" 1>&6
6647
 
else
6648
 
  cat > conftest.$ac_ext <<EOF
6649
 
#line 6650 "configure"
6650
 
#include "confdefs.h"
 
21046
fi
 
21047
 
 
21048
fi
 
21049
 
 
21050
echo "$as_me:$LINENO: checking for shl_load" >&5
 
21051
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
21052
if test "${ac_cv_func_shl_load+set}" = set; then
 
21053
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21054
else
 
21055
  cat >conftest.$ac_ext <<_ACEOF
 
21056
#line $LINENO "configure"
 
21057
/* confdefs.h.  */
 
21058
_ACEOF
 
21059
cat confdefs.h >>conftest.$ac_ext
 
21060
cat >>conftest.$ac_ext <<_ACEOF
 
21061
/* end confdefs.h.  */
6651
21062
/* System header to define __stub macros and hopefully few prototypes,
6652
 
    which can conflict with char shl_load(); below.  */
6653
 
#include <assert.h>
 
21063
    which can conflict with char shl_load (); below.
 
21064
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21065
    <limits.h> exists even on freestanding compilers.  */
 
21066
#ifdef __STDC__
 
21067
# include <limits.h>
 
21068
#else
 
21069
# include <assert.h>
 
21070
#endif
6654
21071
/* Override any gcc2 internal prototype to avoid an error.  */
 
21072
#ifdef __cplusplus
 
21073
extern "C"
 
21074
{
 
21075
#endif
6655
21076
/* We use char because int might match the return type of a gcc2
6656
 
    builtin and then its argument prototype would still apply.  */
6657
 
char shl_load();
6658
 
 
6659
 
int main() {
6660
 
 
 
21077
   builtin and then its argument prototype would still apply.  */
 
21078
char shl_load ();
6661
21079
/* The GNU C library defines this for functions which it implements
6662
21080
    to always fail with ENOSYS.  Some functions are actually named
6663
21081
    something starting with __ and the normal name is an alias.  */
6664
21082
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6665
21083
choke me
6666
21084
#else
6667
 
shl_load();
 
21085
char (*f) () = shl_load;
 
21086
#endif
 
21087
#ifdef __cplusplus
 
21088
}
6668
21089
#endif
6669
21090
 
6670
 
; return 0; }
6671
 
EOF
6672
 
if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6673
 
  rm -rf conftest*
6674
 
  eval "ac_cv_func_shl_load=yes"
 
21091
int
 
21092
main ()
 
21093
{
 
21094
return f != shl_load;
 
21095
  ;
 
21096
  return 0;
 
21097
}
 
21098
_ACEOF
 
21099
rm -f conftest.$ac_objext conftest$ac_exeext
 
21100
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21101
  (eval $ac_link) 2>&5
 
21102
  ac_status=$?
 
21103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21104
  (exit $ac_status); } &&
 
21105
         { ac_try='test -s conftest$ac_exeext'
 
21106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21107
  (eval $ac_try) 2>&5
 
21108
  ac_status=$?
 
21109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21110
  (exit $ac_status); }; }; then
 
21111
  ac_cv_func_shl_load=yes
6675
21112
else
6676
 
  echo "configure: failed program was:" >&5
6677
 
  cat conftest.$ac_ext >&5
6678
 
  rm -rf conftest*
6679
 
  eval "ac_cv_func_shl_load=no"
6680
 
fi
6681
 
rm -f conftest*
6682
 
fi
 
21113
  echo "$as_me: failed program was:" >&5
 
21114
sed 's/^/| /' conftest.$ac_ext >&5
6683
21115
 
6684
 
if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6685
 
  echo "$ac_t""yes" 1>&6
6686
 
  cat >> confdefs.h <<\EOF
 
21116
ac_cv_func_shl_load=no
 
21117
fi
 
21118
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21119
fi
 
21120
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
21121
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
21122
if test $ac_cv_func_shl_load = yes; then
 
21123
  cat >>confdefs.h <<\_ACEOF
6687
21124
#define HAVE_SHL_LOAD 1
6688
 
EOF
 
21125
_ACEOF
6689
21126
 dl_ok=shl
6690
21127
else
6691
 
  echo "$ac_t""no" 1>&6
6692
 
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6693
 
echo "configure:6694: checking for shl_load in -ldld" >&5
6694
 
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
6695
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6696
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21128
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
21129
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
21130
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
21131
  echo $ECHO_N "(cached) $ECHO_C" >&6
6697
21132
else
6698
 
  ac_save_LIBS="$LIBS"
 
21133
  ac_check_lib_save_LIBS=$LIBS
6699
21134
LIBS="-ldld  $LIBS"
6700
 
cat > conftest.$ac_ext <<EOF
6701
 
#line 6702 "configure"
6702
 
#include "confdefs.h"
 
21135
cat >conftest.$ac_ext <<_ACEOF
 
21136
#line $LINENO "configure"
 
21137
/* confdefs.h.  */
 
21138
_ACEOF
 
21139
cat confdefs.h >>conftest.$ac_ext
 
21140
cat >>conftest.$ac_ext <<_ACEOF
 
21141
/* end confdefs.h.  */
 
21142
 
6703
21143
/* Override any gcc2 internal prototype to avoid an error.  */
 
21144
#ifdef __cplusplus
 
21145
extern "C"
 
21146
#endif
6704
21147
/* We use char because int might match the return type of a gcc2
6705
 
    builtin and then its argument prototype would still apply.  */
6706
 
char shl_load();
6707
 
 
6708
 
int main() {
6709
 
shl_load()
6710
 
; return 0; }
6711
 
EOF
6712
 
if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6713
 
  rm -rf conftest*
6714
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
21148
   builtin and then its argument prototype would still apply.  */
 
21149
char shl_load ();
 
21150
int
 
21151
main ()
 
21152
{
 
21153
shl_load ();
 
21154
  ;
 
21155
  return 0;
 
21156
}
 
21157
_ACEOF
 
21158
rm -f conftest.$ac_objext conftest$ac_exeext
 
21159
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21160
  (eval $ac_link) 2>&5
 
21161
  ac_status=$?
 
21162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21163
  (exit $ac_status); } &&
 
21164
         { ac_try='test -s conftest$ac_exeext'
 
21165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21166
  (eval $ac_try) 2>&5
 
21167
  ac_status=$?
 
21168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21169
  (exit $ac_status); }; }; then
 
21170
  ac_cv_lib_dld_shl_load=yes
6715
21171
else
6716
 
  echo "configure: failed program was:" >&5
6717
 
  cat conftest.$ac_ext >&5
6718
 
  rm -rf conftest*
6719
 
  eval "ac_cv_lib_$ac_lib_var=no"
6720
 
fi
6721
 
rm -f conftest*
6722
 
LIBS="$ac_save_LIBS"
 
21172
  echo "$as_me: failed program was:" >&5
 
21173
sed 's/^/| /' conftest.$ac_ext >&5
6723
21174
 
6724
 
fi
6725
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6726
 
  echo "$ac_t""yes" 1>&6
6727
 
  cat >> confdefs.h <<\EOF
 
21175
ac_cv_lib_dld_shl_load=no
 
21176
fi
 
21177
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21178
LIBS=$ac_check_lib_save_LIBS
 
21179
fi
 
21180
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
21181
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
21182
if test $ac_cv_lib_dld_shl_load = yes; then
 
21183
  cat >>confdefs.h <<\_ACEOF
6728
21184
#define HAVE_DLOPEN 1
6729
 
EOF
 
21185
_ACEOF
6730
21186
 dl_ok=shl
6731
 
else
6732
 
  echo "$ac_t""no" 1>&6
6733
21187
fi
6734
21188
 
6735
21189
fi
6736
21190
 
6737
21191
 
6738
21192
if test $dl_ok = dl; then
6739
 
  echo $ac_n "checking for preceding underscore in symbols""... $ac_c" 1>&6
6740
 
echo "configure:6741: checking for preceding underscore in symbols" >&5
 
21193
  echo "$as_me:$LINENO: checking for preceding underscore in symbols" >&5
 
21194
echo $ECHO_N "checking for preceding underscore in symbols... $ECHO_C" >&6
6741
21195
    if test "$cross_compiling" = yes; then
6742
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
 
21196
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21197
See \`config.log' for more details." >&5
 
21198
echo "$as_me: error: cannot run test program while cross compiling
 
21199
See \`config.log' for more details." >&2;}
 
21200
   { (exit 1); exit 1; }; }
6743
21201
else
6744
 
  cat > conftest.$ac_ext <<EOF
6745
 
#line 6746 "configure"
6746
 
#include "confdefs.h"
 
21202
  cat >conftest.$ac_ext <<_ACEOF
 
21203
#line $LINENO "configure"
 
21204
/* confdefs.h.  */
 
21205
_ACEOF
 
21206
cat confdefs.h >>conftest.$ac_ext
 
21207
cat >>conftest.$ac_ext <<_ACEOF
 
21208
/* end confdefs.h.  */
6747
21209
#ifdef HAVE_DLFCN_H
6748
21210
              # include <dlfcn.h>
6749
21211
              #endif
6756
21218
                  f2 = dlsym (handle, "_glib_underscore_test");
6757
21219
                } return (!f2 || f1);
6758
21220
              }
6759
 
EOF
6760
 
if { (eval echo configure:6761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6761
 
then
6762
 
  cat >> confdefs.h <<\EOF
 
21221
_ACEOF
 
21222
rm -f conftest$ac_exeext
 
21223
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21224
  (eval $ac_link) 2>&5
 
21225
  ac_status=$?
 
21226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21227
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21229
  (eval $ac_try) 2>&5
 
21230
  ac_status=$?
 
21231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21232
  (exit $ac_status); }; }; then
 
21233
  cat >>confdefs.h <<\_ACEOF
6763
21234
#define DLSYM_NEED_USCORE 1
6764
 
EOF
 
21235
_ACEOF
6765
21236
 
6766
 
               echo "$ac_t""yes" 1>&6
 
21237
               echo "$as_me:$LINENO: result: yes" >&5
 
21238
echo "${ECHO_T}yes" >&6
6767
21239
else
6768
 
  echo "configure: failed program was:" >&5
6769
 
  cat conftest.$ac_ext >&5
6770
 
  rm -fr conftest*
6771
 
  echo "$ac_t""no" 1>&6
6772
 
fi
6773
 
rm -fr conftest*
6774
 
fi
 
21240
  echo "$as_me: program exited with status $ac_status" >&5
 
21241
echo "$as_me: failed program was:" >&5
 
21242
sed 's/^/| /' conftest.$ac_ext >&5
6775
21243
 
 
21244
( exit $ac_status )
 
21245
echo "$as_me:$LINENO: result: no" >&5
 
21246
echo "${ECHO_T}no" >&6
 
21247
fi
 
21248
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21249
fi
6776
21250
 
6777
21251
              case ${host} in
6778
21252
    *-dec-osf5*)
6779
 
      echo $ac_n "checking for broken RTLD_GLOBAL on Tru64""... $ac_c" 1>&6
6780
 
echo "configure:6781: checking for broken RTLD_GLOBAL on Tru64" >&5
 
21253
      echo "$as_me:$LINENO: checking for broken RTLD_GLOBAL on Tru64" >&5
 
21254
echo $ECHO_N "checking for broken RTLD_GLOBAL on Tru64... $ECHO_C" >&6
6781
21255
      if /usr/sbin/sizer -v | grep -E -q -e 'UNIX [TVX]5\.0A?(-[[:digit:]]+)? '; then
6782
 
          cat >> confdefs.h <<\EOF
 
21256
          cat >>confdefs.h <<\_ACEOF
6783
21257
#define BROKEN_RTLD_GLOBAL 1
6784
 
EOF
 
21258
_ACEOF
6785
21259
 
6786
 
          echo "$ac_t""yes" 1>&6
 
21260
          echo "$as_me:$LINENO: result: yes" >&5
 
21261
echo "${ECHO_T}yes" >&6
6787
21262
      else
6788
 
          echo "$ac_t""no" 1>&6
 
21263
          echo "$as_me:$LINENO: result: no" >&5
 
21264
echo "${ECHO_T}no" >&6
6789
21265
      fi
6790
21266
      ;;
6791
21267
  esac
6792
21268
fi
6793
21269
 
6794
21270
if test $dl_ok != no; then
6795
 
  cat >> confdefs.h <<\EOF
 
21271
  cat >>confdefs.h <<\_ACEOF
6796
21272
#define HAVE_DYNAMIC_LOADING 1
6797
 
EOF
 
21273
_ACEOF
6798
21274
 
6799
21275
else
6800
 
  { echo "configure: error: can't figure out how to do dynamic loading" 1>&2; exit 1; }
 
21276
  { { echo "$as_me:$LINENO: error: can't figure out how to do dynamic loading" >&5
 
21277
echo "$as_me: error: can't figure out how to do dynamic loading" >&2;}
 
21278
   { (exit 1); exit 1; }; }
6801
21279
fi
6802
21280
 
6803
 
echo $ac_n "checking for working const""... $ac_c" 1>&6
6804
 
echo "configure:6805: checking for working const" >&5
6805
 
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6806
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21281
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
21282
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
21283
if test "${ac_cv_c_const+set}" = set; then
 
21284
  echo $ECHO_N "(cached) $ECHO_C" >&6
6807
21285
else
6808
 
  cat > conftest.$ac_ext <<EOF
6809
 
#line 6810 "configure"
6810
 
#include "confdefs.h"
6811
 
 
6812
 
int main() {
6813
 
 
6814
 
/* Ultrix mips cc rejects this.  */
6815
 
typedef int charset[2]; const charset x;
6816
 
/* SunOS 4.1.1 cc rejects this.  */
6817
 
char const *const *ccp;
6818
 
char **p;
6819
 
/* NEC SVR4.0.2 mips cc rejects this.  */
6820
 
struct point {int x, y;};
6821
 
static struct point const zero = {0,0};
6822
 
/* AIX XL C 1.02.0.0 rejects this.
6823
 
   It does not let you subtract one const X* pointer from another in an arm
6824
 
   of an if-expression whose if-part is not a constant expression */
6825
 
const char *g = "string";
6826
 
ccp = &g + (g ? g-g : 0);
6827
 
/* HPUX 7.0 cc rejects these. */
6828
 
++ccp;
6829
 
p = (char**) ccp;
6830
 
ccp = (char const *const *) p;
6831
 
{ /* SCO 3.2v4 cc rejects this.  */
6832
 
  char *t;
6833
 
  char const *s = 0 ? (char *) 0 : (char const *) 0;
6834
 
 
6835
 
  *t++ = 0;
6836
 
}
6837
 
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6838
 
  int x[] = {25, 17};
6839
 
  const int *foo = &x[0];
6840
 
  ++foo;
6841
 
}
6842
 
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6843
 
  typedef const int *iptr;
6844
 
  iptr p = 0;
6845
 
  ++p;
6846
 
}
6847
 
{ /* AIX XL C 1.02.0.0 rejects this saying
6848
 
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6849
 
  struct s { int j; const int *ap[3]; };
6850
 
  struct s *b; b->j = 5;
6851
 
}
6852
 
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6853
 
  const int foo = 10;
6854
 
}
6855
 
 
6856
 
; return 0; }
6857
 
EOF
6858
 
if { (eval echo configure:6859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6859
 
  rm -rf conftest*
 
21286
  cat >conftest.$ac_ext <<_ACEOF
 
21287
#line $LINENO "configure"
 
21288
/* confdefs.h.  */
 
21289
_ACEOF
 
21290
cat confdefs.h >>conftest.$ac_ext
 
21291
cat >>conftest.$ac_ext <<_ACEOF
 
21292
/* end confdefs.h.  */
 
21293
 
 
21294
int
 
21295
main ()
 
21296
{
 
21297
/* FIXME: Include the comments suggested by Paul. */
 
21298
#ifndef __cplusplus
 
21299
  /* Ultrix mips cc rejects this.  */
 
21300
  typedef int charset[2];
 
21301
  const charset x;
 
21302
  /* SunOS 4.1.1 cc rejects this.  */
 
21303
  char const *const *ccp;
 
21304
  char **p;
 
21305
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
21306
  struct point {int x, y;};
 
21307
  static struct point const zero = {0,0};
 
21308
  /* AIX XL C 1.02.0.0 rejects this.
 
21309
     It does not let you subtract one const X* pointer from another in
 
21310
     an arm of an if-expression whose if-part is not a constant
 
21311
     expression */
 
21312
  const char *g = "string";
 
21313
  ccp = &g + (g ? g-g : 0);
 
21314
  /* HPUX 7.0 cc rejects these. */
 
21315
  ++ccp;
 
21316
  p = (char**) ccp;
 
21317
  ccp = (char const *const *) p;
 
21318
  { /* SCO 3.2v4 cc rejects this.  */
 
21319
    char *t;
 
21320
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
21321
 
 
21322
    *t++ = 0;
 
21323
  }
 
21324
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
21325
    int x[] = {25, 17};
 
21326
    const int *foo = &x[0];
 
21327
    ++foo;
 
21328
  }
 
21329
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
21330
    typedef const int *iptr;
 
21331
    iptr p = 0;
 
21332
    ++p;
 
21333
  }
 
21334
  { /* AIX XL C 1.02.0.0 rejects this saying
 
21335
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
21336
    struct s { int j; const int *ap[3]; };
 
21337
    struct s *b; b->j = 5;
 
21338
  }
 
21339
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
21340
    const int foo = 10;
 
21341
  }
 
21342
#endif
 
21343
 
 
21344
  ;
 
21345
  return 0;
 
21346
}
 
21347
_ACEOF
 
21348
rm -f conftest.$ac_objext
 
21349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21350
  (eval $ac_compile) 2>&5
 
21351
  ac_status=$?
 
21352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21353
  (exit $ac_status); } &&
 
21354
         { ac_try='test -s conftest.$ac_objext'
 
21355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21356
  (eval $ac_try) 2>&5
 
21357
  ac_status=$?
 
21358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21359
  (exit $ac_status); }; }; then
6860
21360
  ac_cv_c_const=yes
6861
21361
else
6862
 
  echo "configure: failed program was:" >&5
6863
 
  cat conftest.$ac_ext >&5
6864
 
  rm -rf conftest*
6865
 
  ac_cv_c_const=no
6866
 
fi
6867
 
rm -f conftest*
6868
 
fi
 
21362
  echo "$as_me: failed program was:" >&5
 
21363
sed 's/^/| /' conftest.$ac_ext >&5
6869
21364
 
6870
 
echo "$ac_t""$ac_cv_c_const" 1>&6
 
21365
ac_cv_c_const=no
 
21366
fi
 
21367
rm -f conftest.$ac_objext conftest.$ac_ext
 
21368
fi
 
21369
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
21370
echo "${ECHO_T}$ac_cv_c_const" >&6
6871
21371
if test $ac_cv_c_const = no; then
6872
 
  cat >> confdefs.h <<\EOF
6873
 
#define const 
6874
 
EOF
 
21372
 
 
21373
cat >>confdefs.h <<\_ACEOF
 
21374
#define const
 
21375
_ACEOF
6875
21376
 
6876
21377
fi
6877
21378
 
6878
 
echo $ac_n "checking for inline""... $ac_c" 1>&6
6879
 
echo "configure:6880: checking for inline" >&5
6880
 
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6881
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21379
echo "$as_me:$LINENO: checking for inline" >&5
 
21380
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
21381
if test "${ac_cv_c_inline+set}" = set; then
 
21382
  echo $ECHO_N "(cached) $ECHO_C" >&6
6882
21383
else
6883
21384
  ac_cv_c_inline=no
6884
21385
for ac_kw in inline __inline__ __inline; do
6885
 
  cat > conftest.$ac_ext <<EOF
6886
 
#line 6887 "configure"
6887
 
#include "confdefs.h"
 
21386
  cat >conftest.$ac_ext <<_ACEOF
 
21387
#line $LINENO "configure"
 
21388
/* confdefs.h.  */
 
21389
_ACEOF
 
21390
cat confdefs.h >>conftest.$ac_ext
 
21391
cat >>conftest.$ac_ext <<_ACEOF
 
21392
/* end confdefs.h.  */
 
21393
#ifndef __cplusplus
 
21394
typedef int foo_t;
 
21395
static $ac_kw foo_t static_foo () {return 0; }
 
21396
$ac_kw foo_t foo () {return 0; }
 
21397
#endif
6888
21398
 
6889
 
int main() {
6890
 
} $ac_kw foo() {
6891
 
; return 0; }
6892
 
EOF
6893
 
if { (eval echo configure:6894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6894
 
  rm -rf conftest*
 
21399
_ACEOF
 
21400
rm -f conftest.$ac_objext
 
21401
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21402
  (eval $ac_compile) 2>&5
 
21403
  ac_status=$?
 
21404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21405
  (exit $ac_status); } &&
 
21406
         { ac_try='test -s conftest.$ac_objext'
 
21407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21408
  (eval $ac_try) 2>&5
 
21409
  ac_status=$?
 
21410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21411
  (exit $ac_status); }; }; then
6895
21412
  ac_cv_c_inline=$ac_kw; break
6896
21413
else
6897
 
  echo "configure: failed program was:" >&5
6898
 
  cat conftest.$ac_ext >&5
 
21414
  echo "$as_me: failed program was:" >&5
 
21415
sed 's/^/| /' conftest.$ac_ext >&5
 
21416
 
6899
21417
fi
6900
 
rm -f conftest*
 
21418
rm -f conftest.$ac_objext conftest.$ac_ext
6901
21419
done
6902
21420
 
6903
21421
fi
6904
 
 
6905
 
echo "$ac_t""$ac_cv_c_inline" 1>&6
6906
 
case "$ac_cv_c_inline" in
 
21422
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
21423
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
21424
case $ac_cv_c_inline in
6907
21425
  inline | yes) ;;
6908
 
  no) cat >> confdefs.h <<\EOF
6909
 
#define inline 
6910
 
EOF
 
21426
  no)
 
21427
cat >>confdefs.h <<\_ACEOF
 
21428
#define inline
 
21429
_ACEOF
6911
21430
 ;;
6912
 
  *)  cat >> confdefs.h <<EOF
 
21431
  *)  cat >>confdefs.h <<_ACEOF
6913
21432
#define inline $ac_cv_c_inline
6914
 
EOF
 
21433
_ACEOF
6915
21434
 ;;
6916
21435
esac
6917
21436
 
6918
 
echo $ac_n "checking for off_t""... $ac_c" 1>&6
6919
 
echo "configure:6920: checking for off_t" >&5
6920
 
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6921
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21437
echo "$as_me:$LINENO: checking for off_t" >&5
 
21438
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
21439
if test "${ac_cv_type_off_t+set}" = set; then
 
21440
  echo $ECHO_N "(cached) $ECHO_C" >&6
6922
21441
else
6923
 
  cat > conftest.$ac_ext <<EOF
6924
 
#line 6925 "configure"
6925
 
#include "confdefs.h"
6926
 
#include <sys/types.h>
6927
 
#if STDC_HEADERS
6928
 
#include <stdlib.h>
6929
 
#include <stddef.h>
6930
 
#endif
6931
 
EOF
6932
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6933
 
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6934
 
  rm -rf conftest*
 
21442
  cat >conftest.$ac_ext <<_ACEOF
 
21443
#line $LINENO "configure"
 
21444
/* confdefs.h.  */
 
21445
_ACEOF
 
21446
cat confdefs.h >>conftest.$ac_ext
 
21447
cat >>conftest.$ac_ext <<_ACEOF
 
21448
/* end confdefs.h.  */
 
21449
$ac_includes_default
 
21450
int
 
21451
main ()
 
21452
{
 
21453
if ((off_t *) 0)
 
21454
  return 0;
 
21455
if (sizeof (off_t))
 
21456
  return 0;
 
21457
  ;
 
21458
  return 0;
 
21459
}
 
21460
_ACEOF
 
21461
rm -f conftest.$ac_objext
 
21462
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21463
  (eval $ac_compile) 2>&5
 
21464
  ac_status=$?
 
21465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21466
  (exit $ac_status); } &&
 
21467
         { ac_try='test -s conftest.$ac_objext'
 
21468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21469
  (eval $ac_try) 2>&5
 
21470
  ac_status=$?
 
21471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21472
  (exit $ac_status); }; }; then
6935
21473
  ac_cv_type_off_t=yes
6936
21474
else
6937
 
  rm -rf conftest*
6938
 
  ac_cv_type_off_t=no
6939
 
fi
6940
 
rm -f conftest*
6941
 
 
6942
 
fi
6943
 
echo "$ac_t""$ac_cv_type_off_t" 1>&6
6944
 
if test $ac_cv_type_off_t = no; then
6945
 
  cat >> confdefs.h <<\EOF
 
21475
  echo "$as_me: failed program was:" >&5
 
21476
sed 's/^/| /' conftest.$ac_ext >&5
 
21477
 
 
21478
ac_cv_type_off_t=no
 
21479
fi
 
21480
rm -f conftest.$ac_objext conftest.$ac_ext
 
21481
fi
 
21482
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
21483
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
21484
if test $ac_cv_type_off_t = yes; then
 
21485
  :
 
21486
else
 
21487
 
 
21488
cat >>confdefs.h <<_ACEOF
6946
21489
#define off_t long
6947
 
EOF
 
21490
_ACEOF
6948
21491
 
6949
21492
fi
6950
21493
 
6951
 
echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6952
 
echo "configure:6953: checking for pid_t" >&5
6953
 
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6954
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21494
echo "$as_me:$LINENO: checking for pid_t" >&5
 
21495
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
21496
if test "${ac_cv_type_pid_t+set}" = set; then
 
21497
  echo $ECHO_N "(cached) $ECHO_C" >&6
6955
21498
else
6956
 
  cat > conftest.$ac_ext <<EOF
6957
 
#line 6958 "configure"
6958
 
#include "confdefs.h"
6959
 
#include <sys/types.h>
6960
 
#if STDC_HEADERS
6961
 
#include <stdlib.h>
6962
 
#include <stddef.h>
6963
 
#endif
6964
 
EOF
6965
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6966
 
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6967
 
  rm -rf conftest*
 
21499
  cat >conftest.$ac_ext <<_ACEOF
 
21500
#line $LINENO "configure"
 
21501
/* confdefs.h.  */
 
21502
_ACEOF
 
21503
cat confdefs.h >>conftest.$ac_ext
 
21504
cat >>conftest.$ac_ext <<_ACEOF
 
21505
/* end confdefs.h.  */
 
21506
$ac_includes_default
 
21507
int
 
21508
main ()
 
21509
{
 
21510
if ((pid_t *) 0)
 
21511
  return 0;
 
21512
if (sizeof (pid_t))
 
21513
  return 0;
 
21514
  ;
 
21515
  return 0;
 
21516
}
 
21517
_ACEOF
 
21518
rm -f conftest.$ac_objext
 
21519
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21520
  (eval $ac_compile) 2>&5
 
21521
  ac_status=$?
 
21522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21523
  (exit $ac_status); } &&
 
21524
         { ac_try='test -s conftest.$ac_objext'
 
21525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21526
  (eval $ac_try) 2>&5
 
21527
  ac_status=$?
 
21528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21529
  (exit $ac_status); }; }; then
6968
21530
  ac_cv_type_pid_t=yes
6969
21531
else
6970
 
  rm -rf conftest*
6971
 
  ac_cv_type_pid_t=no
6972
 
fi
6973
 
rm -f conftest*
6974
 
 
6975
 
fi
6976
 
echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6977
 
if test $ac_cv_type_pid_t = no; then
6978
 
  cat >> confdefs.h <<\EOF
 
21532
  echo "$as_me: failed program was:" >&5
 
21533
sed 's/^/| /' conftest.$ac_ext >&5
 
21534
 
 
21535
ac_cv_type_pid_t=no
 
21536
fi
 
21537
rm -f conftest.$ac_objext conftest.$ac_ext
 
21538
fi
 
21539
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
21540
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
21541
if test $ac_cv_type_pid_t = yes; then
 
21542
  :
 
21543
else
 
21544
 
 
21545
cat >>confdefs.h <<_ACEOF
6979
21546
#define pid_t int
6980
 
EOF
 
21547
_ACEOF
6981
21548
 
6982
21549
fi
6983
21550
 
6984
 
echo $ac_n "checking for size_t""... $ac_c" 1>&6
6985
 
echo "configure:6986: checking for size_t" >&5
6986
 
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6987
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21551
echo "$as_me:$LINENO: checking for size_t" >&5
 
21552
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
21553
if test "${ac_cv_type_size_t+set}" = set; then
 
21554
  echo $ECHO_N "(cached) $ECHO_C" >&6
6988
21555
else
6989
 
  cat > conftest.$ac_ext <<EOF
6990
 
#line 6991 "configure"
6991
 
#include "confdefs.h"
6992
 
#include <sys/types.h>
6993
 
#if STDC_HEADERS
6994
 
#include <stdlib.h>
6995
 
#include <stddef.h>
6996
 
#endif
6997
 
EOF
6998
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6999
 
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7000
 
  rm -rf conftest*
 
21556
  cat >conftest.$ac_ext <<_ACEOF
 
21557
#line $LINENO "configure"
 
21558
/* confdefs.h.  */
 
21559
_ACEOF
 
21560
cat confdefs.h >>conftest.$ac_ext
 
21561
cat >>conftest.$ac_ext <<_ACEOF
 
21562
/* end confdefs.h.  */
 
21563
$ac_includes_default
 
21564
int
 
21565
main ()
 
21566
{
 
21567
if ((size_t *) 0)
 
21568
  return 0;
 
21569
if (sizeof (size_t))
 
21570
  return 0;
 
21571
  ;
 
21572
  return 0;
 
21573
}
 
21574
_ACEOF
 
21575
rm -f conftest.$ac_objext
 
21576
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21577
  (eval $ac_compile) 2>&5
 
21578
  ac_status=$?
 
21579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21580
  (exit $ac_status); } &&
 
21581
         { ac_try='test -s conftest.$ac_objext'
 
21582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21583
  (eval $ac_try) 2>&5
 
21584
  ac_status=$?
 
21585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21586
  (exit $ac_status); }; }; then
7001
21587
  ac_cv_type_size_t=yes
7002
21588
else
7003
 
  rm -rf conftest*
7004
 
  ac_cv_type_size_t=no
7005
 
fi
7006
 
rm -f conftest*
7007
 
 
7008
 
fi
7009
 
echo "$ac_t""$ac_cv_type_size_t" 1>&6
7010
 
if test $ac_cv_type_size_t = no; then
7011
 
  cat >> confdefs.h <<\EOF
 
21589
  echo "$as_me: failed program was:" >&5
 
21590
sed 's/^/| /' conftest.$ac_ext >&5
 
21591
 
 
21592
ac_cv_type_size_t=no
 
21593
fi
 
21594
rm -f conftest.$ac_objext conftest.$ac_ext
 
21595
fi
 
21596
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
21597
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
21598
if test $ac_cv_type_size_t = yes; then
 
21599
  :
 
21600
else
 
21601
 
 
21602
cat >>confdefs.h <<_ACEOF
7012
21603
#define size_t unsigned
7013
 
EOF
 
21604
_ACEOF
7014
21605
 
7015
21606
fi
7016
21607
 
7017
 
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
7018
 
echo "configure:7019: checking return type of signal handlers" >&5
7019
 
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
7020
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21608
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
21609
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
21610
if test "${ac_cv_type_signal+set}" = set; then
 
21611
  echo $ECHO_N "(cached) $ECHO_C" >&6
7021
21612
else
7022
 
  cat > conftest.$ac_ext <<EOF
7023
 
#line 7024 "configure"
7024
 
#include "confdefs.h"
 
21613
  cat >conftest.$ac_ext <<_ACEOF
 
21614
#line $LINENO "configure"
 
21615
/* confdefs.h.  */
 
21616
_ACEOF
 
21617
cat confdefs.h >>conftest.$ac_ext
 
21618
cat >>conftest.$ac_ext <<_ACEOF
 
21619
/* end confdefs.h.  */
7025
21620
#include <sys/types.h>
7026
21621
#include <signal.h>
7027
21622
#ifdef signal
7028
 
#undef signal
 
21623
# undef signal
7029
21624
#endif
7030
21625
#ifdef __cplusplus
7031
21626
extern "C" void (*signal (int, void (*)(int)))(int);
7033
21628
void (*signal ()) ();
7034
21629
#endif
7035
21630
 
7036
 
int main() {
 
21631
int
 
21632
main ()
 
21633
{
7037
21634
int i;
7038
 
; return 0; }
7039
 
EOF
7040
 
if { (eval echo configure:7041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7041
 
  rm -rf conftest*
 
21635
  ;
 
21636
  return 0;
 
21637
}
 
21638
_ACEOF
 
21639
rm -f conftest.$ac_objext
 
21640
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21641
  (eval $ac_compile) 2>&5
 
21642
  ac_status=$?
 
21643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21644
  (exit $ac_status); } &&
 
21645
         { ac_try='test -s conftest.$ac_objext'
 
21646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21647
  (eval $ac_try) 2>&5
 
21648
  ac_status=$?
 
21649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21650
  (exit $ac_status); }; }; then
7042
21651
  ac_cv_type_signal=void
7043
21652
else
7044
 
  echo "configure: failed program was:" >&5
7045
 
  cat conftest.$ac_ext >&5
7046
 
  rm -rf conftest*
7047
 
  ac_cv_type_signal=int
7048
 
fi
7049
 
rm -f conftest*
7050
 
fi
7051
 
 
7052
 
echo "$ac_t""$ac_cv_type_signal" 1>&6
7053
 
cat >> confdefs.h <<EOF
 
21653
  echo "$as_me: failed program was:" >&5
 
21654
sed 's/^/| /' conftest.$ac_ext >&5
 
21655
 
 
21656
ac_cv_type_signal=int
 
21657
fi
 
21658
rm -f conftest.$ac_objext conftest.$ac_ext
 
21659
fi
 
21660
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
21661
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
21662
 
 
21663
cat >>confdefs.h <<_ACEOF
7054
21664
#define RETSIGTYPE $ac_cv_type_signal
7055
 
EOF
 
21665
_ACEOF
7056
21666
 
7057
21667
 
7058
21668
 
7059
21669
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7060
21670
# for constant arguments.  Useless!
7061
 
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7062
 
echo "configure:7063: checking for working alloca.h" >&5
7063
 
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7064
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21671
echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
21672
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
21673
if test "${ac_cv_working_alloca_h+set}" = set; then
 
21674
  echo $ECHO_N "(cached) $ECHO_C" >&6
7065
21675
else
7066
 
  cat > conftest.$ac_ext <<EOF
7067
 
#line 7068 "configure"
7068
 
#include "confdefs.h"
 
21676
  cat >conftest.$ac_ext <<_ACEOF
 
21677
#line $LINENO "configure"
 
21678
/* confdefs.h.  */
 
21679
_ACEOF
 
21680
cat confdefs.h >>conftest.$ac_ext
 
21681
cat >>conftest.$ac_ext <<_ACEOF
 
21682
/* end confdefs.h.  */
7069
21683
#include <alloca.h>
7070
 
int main() {
7071
 
char *p = alloca(2 * sizeof(int));
7072
 
; return 0; }
7073
 
EOF
7074
 
if { (eval echo configure:7075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7075
 
  rm -rf conftest*
7076
 
  ac_cv_header_alloca_h=yes
 
21684
int
 
21685
main ()
 
21686
{
 
21687
char *p = (char *) alloca (2 * sizeof (int));
 
21688
  ;
 
21689
  return 0;
 
21690
}
 
21691
_ACEOF
 
21692
rm -f conftest.$ac_objext conftest$ac_exeext
 
21693
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21694
  (eval $ac_link) 2>&5
 
21695
  ac_status=$?
 
21696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21697
  (exit $ac_status); } &&
 
21698
         { ac_try='test -s conftest$ac_exeext'
 
21699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21700
  (eval $ac_try) 2>&5
 
21701
  ac_status=$?
 
21702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21703
  (exit $ac_status); }; }; then
 
21704
  ac_cv_working_alloca_h=yes
7077
21705
else
7078
 
  echo "configure: failed program was:" >&5
7079
 
  cat conftest.$ac_ext >&5
7080
 
  rm -rf conftest*
7081
 
  ac_cv_header_alloca_h=no
7082
 
fi
7083
 
rm -f conftest*
7084
 
fi
7085
 
 
7086
 
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7087
 
if test $ac_cv_header_alloca_h = yes; then
7088
 
  cat >> confdefs.h <<\EOF
 
21706
  echo "$as_me: failed program was:" >&5
 
21707
sed 's/^/| /' conftest.$ac_ext >&5
 
21708
 
 
21709
ac_cv_working_alloca_h=no
 
21710
fi
 
21711
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21712
fi
 
21713
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
21714
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
21715
if test $ac_cv_working_alloca_h = yes; then
 
21716
 
 
21717
cat >>confdefs.h <<\_ACEOF
7089
21718
#define HAVE_ALLOCA_H 1
7090
 
EOF
 
21719
_ACEOF
7091
21720
 
7092
21721
fi
7093
21722
 
7094
 
echo $ac_n "checking for alloca""... $ac_c" 1>&6
7095
 
echo "configure:7096: checking for alloca" >&5
7096
 
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7097
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21723
echo "$as_me:$LINENO: checking for alloca" >&5
 
21724
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
21725
if test "${ac_cv_func_alloca_works+set}" = set; then
 
21726
  echo $ECHO_N "(cached) $ECHO_C" >&6
7098
21727
else
7099
 
  cat > conftest.$ac_ext <<EOF
7100
 
#line 7101 "configure"
7101
 
#include "confdefs.h"
7102
 
 
 
21728
  cat >conftest.$ac_ext <<_ACEOF
 
21729
#line $LINENO "configure"
 
21730
/* confdefs.h.  */
 
21731
_ACEOF
 
21732
cat confdefs.h >>conftest.$ac_ext
 
21733
cat >>conftest.$ac_ext <<_ACEOF
 
21734
/* end confdefs.h.  */
7103
21735
#ifdef __GNUC__
7104
21736
# define alloca __builtin_alloca
7105
21737
#else
7121
21753
# endif
7122
21754
#endif
7123
21755
 
7124
 
int main() {
7125
 
char *p = (char *) alloca(1);
7126
 
; return 0; }
7127
 
EOF
7128
 
if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7129
 
  rm -rf conftest*
 
21756
int
 
21757
main ()
 
21758
{
 
21759
char *p = (char *) alloca (1);
 
21760
  ;
 
21761
  return 0;
 
21762
}
 
21763
_ACEOF
 
21764
rm -f conftest.$ac_objext conftest$ac_exeext
 
21765
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21766
  (eval $ac_link) 2>&5
 
21767
  ac_status=$?
 
21768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21769
  (exit $ac_status); } &&
 
21770
         { ac_try='test -s conftest$ac_exeext'
 
21771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21772
  (eval $ac_try) 2>&5
 
21773
  ac_status=$?
 
21774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21775
  (exit $ac_status); }; }; then
7130
21776
  ac_cv_func_alloca_works=yes
7131
21777
else
7132
 
  echo "configure: failed program was:" >&5
7133
 
  cat conftest.$ac_ext >&5
7134
 
  rm -rf conftest*
7135
 
  ac_cv_func_alloca_works=no
7136
 
fi
7137
 
rm -f conftest*
7138
 
fi
7139
 
 
7140
 
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
 
21778
  echo "$as_me: failed program was:" >&5
 
21779
sed 's/^/| /' conftest.$ac_ext >&5
 
21780
 
 
21781
ac_cv_func_alloca_works=no
 
21782
fi
 
21783
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21784
fi
 
21785
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
21786
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
21787
 
7141
21788
if test $ac_cv_func_alloca_works = yes; then
7142
 
  cat >> confdefs.h <<\EOF
 
21789
 
 
21790
cat >>confdefs.h <<\_ACEOF
7143
21791
#define HAVE_ALLOCA 1
7144
 
EOF
7145
 
 
7146
 
fi
7147
 
 
7148
 
if test $ac_cv_func_alloca_works = no; then
 
21792
_ACEOF
 
21793
 
 
21794
else
7149
21795
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7150
 
  # that cause trouble.  Some versions do not even contain alloca or
7151
 
  # contain a buggy version.  If you still want to use their alloca,
7152
 
  # use ar to extract alloca.o from them instead of compiling alloca.c.
7153
 
  ALLOCA=alloca.${ac_objext}
7154
 
  cat >> confdefs.h <<\EOF
 
21796
# that cause trouble.  Some versions do not even contain alloca or
 
21797
# contain a buggy version.  If you still want to use their alloca,
 
21798
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
21799
 
 
21800
ALLOCA=alloca.$ac_objext
 
21801
 
 
21802
cat >>confdefs.h <<\_ACEOF
7155
21803
#define C_ALLOCA 1
7156
 
EOF
7157
 
 
7158
 
 
7159
 
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7160
 
echo "configure:7161: checking whether alloca needs Cray hooks" >&5
7161
 
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7162
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21804
_ACEOF
 
21805
 
 
21806
 
 
21807
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
21808
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
21809
if test "${ac_cv_os_cray+set}" = set; then
 
21810
  echo $ECHO_N "(cached) $ECHO_C" >&6
7163
21811
else
7164
 
  cat > conftest.$ac_ext <<EOF
7165
 
#line 7166 "configure"
7166
 
#include "confdefs.h"
 
21812
  cat >conftest.$ac_ext <<_ACEOF
 
21813
#line $LINENO "configure"
 
21814
/* confdefs.h.  */
 
21815
_ACEOF
 
21816
cat confdefs.h >>conftest.$ac_ext
 
21817
cat >>conftest.$ac_ext <<_ACEOF
 
21818
/* end confdefs.h.  */
7167
21819
#if defined(CRAY) && ! defined(CRAY2)
7168
21820
webecray
7169
21821
#else
7170
21822
wenotbecray
7171
21823
#endif
7172
21824
 
7173
 
EOF
 
21825
_ACEOF
7174
21826
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7175
 
  egrep "webecray" >/dev/null 2>&1; then
7176
 
  rm -rf conftest*
 
21827
  $EGREP "webecray" >/dev/null 2>&1; then
7177
21828
  ac_cv_os_cray=yes
7178
21829
else
7179
 
  rm -rf conftest*
7180
21830
  ac_cv_os_cray=no
7181
21831
fi
7182
21832
rm -f conftest*
7183
21833
 
7184
21834
fi
7185
 
 
7186
 
echo "$ac_t""$ac_cv_os_cray" 1>&6
 
21835
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
21836
echo "${ECHO_T}$ac_cv_os_cray" >&6
7187
21837
if test $ac_cv_os_cray = yes; then
7188
 
for ac_func in _getb67 GETB67 getb67; do
7189
 
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7190
 
echo "configure:7191: checking for $ac_func" >&5
7191
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7192
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21838
  for ac_func in _getb67 GETB67 getb67; do
 
21839
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21840
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21841
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21842
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21843
  echo $ECHO_N "(cached) $ECHO_C" >&6
7193
21844
else
7194
 
  cat > conftest.$ac_ext <<EOF
7195
 
#line 7196 "configure"
7196
 
#include "confdefs.h"
 
21845
  cat >conftest.$ac_ext <<_ACEOF
 
21846
#line $LINENO "configure"
 
21847
/* confdefs.h.  */
 
21848
_ACEOF
 
21849
cat confdefs.h >>conftest.$ac_ext
 
21850
cat >>conftest.$ac_ext <<_ACEOF
 
21851
/* end confdefs.h.  */
7197
21852
/* System header to define __stub macros and hopefully few prototypes,
7198
 
    which can conflict with char $ac_func(); below.  */
7199
 
#include <assert.h>
 
21853
    which can conflict with char $ac_func (); below.
 
21854
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21855
    <limits.h> exists even on freestanding compilers.  */
 
21856
#ifdef __STDC__
 
21857
# include <limits.h>
 
21858
#else
 
21859
# include <assert.h>
 
21860
#endif
7200
21861
/* Override any gcc2 internal prototype to avoid an error.  */
 
21862
#ifdef __cplusplus
 
21863
extern "C"
 
21864
{
 
21865
#endif
7201
21866
/* We use char because int might match the return type of a gcc2
7202
 
    builtin and then its argument prototype would still apply.  */
7203
 
char $ac_func();
7204
 
 
7205
 
int main() {
7206
 
 
 
21867
   builtin and then its argument prototype would still apply.  */
 
21868
char $ac_func ();
7207
21869
/* The GNU C library defines this for functions which it implements
7208
21870
    to always fail with ENOSYS.  Some functions are actually named
7209
21871
    something starting with __ and the normal name is an alias.  */
7210
21872
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7211
21873
choke me
7212
21874
#else
7213
 
$ac_func();
 
21875
char (*f) () = $ac_func;
 
21876
#endif
 
21877
#ifdef __cplusplus
 
21878
}
7214
21879
#endif
7215
21880
 
7216
 
; return 0; }
7217
 
EOF
7218
 
if { (eval echo configure:7219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7219
 
  rm -rf conftest*
7220
 
  eval "ac_cv_func_$ac_func=yes"
 
21881
int
 
21882
main ()
 
21883
{
 
21884
return f != $ac_func;
 
21885
  ;
 
21886
  return 0;
 
21887
}
 
21888
_ACEOF
 
21889
rm -f conftest.$ac_objext conftest$ac_exeext
 
21890
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21891
  (eval $ac_link) 2>&5
 
21892
  ac_status=$?
 
21893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21894
  (exit $ac_status); } &&
 
21895
         { ac_try='test -s conftest$ac_exeext'
 
21896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21897
  (eval $ac_try) 2>&5
 
21898
  ac_status=$?
 
21899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21900
  (exit $ac_status); }; }; then
 
21901
  eval "$as_ac_var=yes"
7221
21902
else
7222
 
  echo "configure: failed program was:" >&5
7223
 
  cat conftest.$ac_ext >&5
7224
 
  rm -rf conftest*
7225
 
  eval "ac_cv_func_$ac_func=no"
7226
 
fi
7227
 
rm -f conftest*
7228
 
fi
7229
 
 
7230
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7231
 
  echo "$ac_t""yes" 1>&6
7232
 
  cat >> confdefs.h <<EOF
 
21903
  echo "$as_me: failed program was:" >&5
 
21904
sed 's/^/| /' conftest.$ac_ext >&5
 
21905
 
 
21906
eval "$as_ac_var=no"
 
21907
fi
 
21908
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21909
fi
 
21910
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21911
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21912
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21913
 
 
21914
cat >>confdefs.h <<_ACEOF
7233
21915
#define CRAY_STACKSEG_END $ac_func
7234
 
EOF
7235
 
 
7236
 
  break
7237
 
else
7238
 
  echo "$ac_t""no" 1>&6
7239
 
fi
7240
 
 
7241
 
done
7242
 
fi
7243
 
 
7244
 
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7245
 
echo "configure:7246: checking stack direction for C alloca" >&5
7246
 
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7247
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
21916
_ACEOF
 
21917
 
 
21918
    break
 
21919
fi
 
21920
 
 
21921
  done
 
21922
fi
 
21923
 
 
21924
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
21925
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
21926
if test "${ac_cv_c_stack_direction+set}" = set; then
 
21927
  echo $ECHO_N "(cached) $ECHO_C" >&6
7248
21928
else
7249
21929
  if test "$cross_compiling" = yes; then
7250
21930
  ac_cv_c_stack_direction=0
7251
21931
else
7252
 
  cat > conftest.$ac_ext <<EOF
7253
 
#line 7254 "configure"
7254
 
#include "confdefs.h"
 
21932
  cat >conftest.$ac_ext <<_ACEOF
 
21933
#line $LINENO "configure"
 
21934
/* confdefs.h.  */
 
21935
_ACEOF
 
21936
cat confdefs.h >>conftest.$ac_ext
 
21937
cat >>conftest.$ac_ext <<_ACEOF
 
21938
/* end confdefs.h.  */
 
21939
int
7255
21940
find_stack_direction ()
7256
21941
{
7257
21942
  static char *addr = 0;
7264
21949
  else
7265
21950
    return (&dummy > addr) ? 1 : -1;
7266
21951
}
 
21952
 
 
21953
int
7267
21954
main ()
7268
21955
{
7269
 
  exit (find_stack_direction() < 0);
 
21956
  exit (find_stack_direction () < 0);
7270
21957
}
7271
 
EOF
7272
 
if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7273
 
then
 
21958
_ACEOF
 
21959
rm -f conftest$ac_exeext
 
21960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21961
  (eval $ac_link) 2>&5
 
21962
  ac_status=$?
 
21963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21964
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21966
  (eval $ac_try) 2>&5
 
21967
  ac_status=$?
 
21968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21969
  (exit $ac_status); }; }; then
7274
21970
  ac_cv_c_stack_direction=1
7275
21971
else
7276
 
  echo "configure: failed program was:" >&5
7277
 
  cat conftest.$ac_ext >&5
7278
 
  rm -fr conftest*
7279
 
  ac_cv_c_stack_direction=-1
7280
 
fi
7281
 
rm -fr conftest*
7282
 
fi
7283
 
 
7284
 
fi
7285
 
 
7286
 
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7287
 
cat >> confdefs.h <<EOF
 
21972
  echo "$as_me: program exited with status $ac_status" >&5
 
21973
echo "$as_me: failed program was:" >&5
 
21974
sed 's/^/| /' conftest.$ac_ext >&5
 
21975
 
 
21976
( exit $ac_status )
 
21977
ac_cv_c_stack_direction=-1
 
21978
fi
 
21979
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21980
fi
 
21981
fi
 
21982
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
21983
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
21984
 
 
21985
cat >>confdefs.h <<_ACEOF
7288
21986
#define STACK_DIRECTION $ac_cv_c_stack_direction
7289
 
EOF
 
21987
_ACEOF
 
21988
 
7290
21989
 
7291
21990
fi
7292
21991
 
7293
 
for ac_hdr in unistd.h
 
21992
 
 
21993
 
 
21994
for ac_header in stdlib.h unistd.h
7294
21995
do
7295
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7296
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7297
 
echo "configure:7298: checking for $ac_hdr" >&5
7298
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7299
 
  echo $ac_n "(cached) $ac_c" 1>&6
7300
 
else
7301
 
  cat > conftest.$ac_ext <<EOF
7302
 
#line 7303 "configure"
7303
 
#include "confdefs.h"
7304
 
#include <$ac_hdr>
7305
 
EOF
7306
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7307
 
{ (eval echo configure:7308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7308
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7309
 
if test -z "$ac_err"; then
7310
 
  rm -rf conftest*
7311
 
  eval "ac_cv_header_$ac_safe=yes"
7312
 
else
7313
 
  echo "$ac_err" >&5
7314
 
  echo "configure: failed program was:" >&5
7315
 
  cat conftest.$ac_ext >&5
7316
 
  rm -rf conftest*
7317
 
  eval "ac_cv_header_$ac_safe=no"
7318
 
fi
7319
 
rm -f conftest*
7320
 
fi
7321
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7322
 
  echo "$ac_t""yes" 1>&6
7323
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7324
 
  cat >> confdefs.h <<EOF
7325
 
#define $ac_tr_hdr 1
7326
 
EOF
7327
 
 
7328
 
else
7329
 
  echo "$ac_t""no" 1>&6
7330
 
fi
 
21996
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21997
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21998
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21999
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22000
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22001
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22002
fi
 
22003
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22004
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22005
else
 
22006
  # Is the header compilable?
 
22007
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22008
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22009
cat >conftest.$ac_ext <<_ACEOF
 
22010
#line $LINENO "configure"
 
22011
/* confdefs.h.  */
 
22012
_ACEOF
 
22013
cat confdefs.h >>conftest.$ac_ext
 
22014
cat >>conftest.$ac_ext <<_ACEOF
 
22015
/* end confdefs.h.  */
 
22016
$ac_includes_default
 
22017
#include <$ac_header>
 
22018
_ACEOF
 
22019
rm -f conftest.$ac_objext
 
22020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22021
  (eval $ac_compile) 2>&5
 
22022
  ac_status=$?
 
22023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22024
  (exit $ac_status); } &&
 
22025
         { ac_try='test -s conftest.$ac_objext'
 
22026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22027
  (eval $ac_try) 2>&5
 
22028
  ac_status=$?
 
22029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22030
  (exit $ac_status); }; }; then
 
22031
  ac_header_compiler=yes
 
22032
else
 
22033
  echo "$as_me: failed program was:" >&5
 
22034
sed 's/^/| /' conftest.$ac_ext >&5
 
22035
 
 
22036
ac_header_compiler=no
 
22037
fi
 
22038
rm -f conftest.$ac_objext conftest.$ac_ext
 
22039
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22040
echo "${ECHO_T}$ac_header_compiler" >&6
 
22041
 
 
22042
# Is the header present?
 
22043
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22044
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22045
cat >conftest.$ac_ext <<_ACEOF
 
22046
#line $LINENO "configure"
 
22047
/* confdefs.h.  */
 
22048
_ACEOF
 
22049
cat confdefs.h >>conftest.$ac_ext
 
22050
cat >>conftest.$ac_ext <<_ACEOF
 
22051
/* end confdefs.h.  */
 
22052
#include <$ac_header>
 
22053
_ACEOF
 
22054
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22055
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22056
  ac_status=$?
 
22057
  grep -v '^ *+' conftest.er1 >conftest.err
 
22058
  rm -f conftest.er1
 
22059
  cat conftest.err >&5
 
22060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22061
  (exit $ac_status); } >/dev/null; then
 
22062
  if test -s conftest.err; then
 
22063
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22064
  else
 
22065
    ac_cpp_err=
 
22066
  fi
 
22067
else
 
22068
  ac_cpp_err=yes
 
22069
fi
 
22070
if test -z "$ac_cpp_err"; then
 
22071
  ac_header_preproc=yes
 
22072
else
 
22073
  echo "$as_me: failed program was:" >&5
 
22074
sed 's/^/| /' conftest.$ac_ext >&5
 
22075
 
 
22076
  ac_header_preproc=no
 
22077
fi
 
22078
rm -f conftest.err conftest.$ac_ext
 
22079
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22080
echo "${ECHO_T}$ac_header_preproc" >&6
 
22081
 
 
22082
# So?  What about this header?
 
22083
case $ac_header_compiler:$ac_header_preproc in
 
22084
  yes:no )
 
22085
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22086
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22087
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22088
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22089
    (
 
22090
      cat <<\_ASBOX
 
22091
## ------------------------------------ ##
 
22092
## Report this to bug-autoconf@gnu.org. ##
 
22093
## ------------------------------------ ##
 
22094
_ASBOX
 
22095
    ) |
 
22096
      sed "s/^/$as_me: WARNING:     /" >&2
 
22097
    ;;
 
22098
  no:yes )
 
22099
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22100
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22101
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
22102
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
22103
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22104
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22105
    (
 
22106
      cat <<\_ASBOX
 
22107
## ------------------------------------ ##
 
22108
## Report this to bug-autoconf@gnu.org. ##
 
22109
## ------------------------------------ ##
 
22110
_ASBOX
 
22111
    ) |
 
22112
      sed "s/^/$as_me: WARNING:     /" >&2
 
22113
    ;;
 
22114
esac
 
22115
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22116
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22117
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22119
else
 
22120
  eval "$as_ac_Header=$ac_header_preproc"
 
22121
fi
 
22122
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22123
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22124
 
 
22125
fi
 
22126
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22127
  cat >>confdefs.h <<_ACEOF
 
22128
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22129
_ACEOF
 
22130
 
 
22131
fi
 
22132
 
7331
22133
done
7332
22134
 
 
22135
 
7333
22136
for ac_func in getpagesize
7334
22137
do
7335
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7336
 
echo "configure:7337: checking for $ac_func" >&5
7337
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7338
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
22138
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22139
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22140
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22141
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22142
  echo $ECHO_N "(cached) $ECHO_C" >&6
7339
22143
else
7340
 
  cat > conftest.$ac_ext <<EOF
7341
 
#line 7342 "configure"
7342
 
#include "confdefs.h"
 
22144
  cat >conftest.$ac_ext <<_ACEOF
 
22145
#line $LINENO "configure"
 
22146
/* confdefs.h.  */
 
22147
_ACEOF
 
22148
cat confdefs.h >>conftest.$ac_ext
 
22149
cat >>conftest.$ac_ext <<_ACEOF
 
22150
/* end confdefs.h.  */
7343
22151
/* System header to define __stub macros and hopefully few prototypes,
7344
 
    which can conflict with char $ac_func(); below.  */
7345
 
#include <assert.h>
 
22152
    which can conflict with char $ac_func (); below.
 
22153
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22154
    <limits.h> exists even on freestanding compilers.  */
 
22155
#ifdef __STDC__
 
22156
# include <limits.h>
 
22157
#else
 
22158
# include <assert.h>
 
22159
#endif
7346
22160
/* Override any gcc2 internal prototype to avoid an error.  */
 
22161
#ifdef __cplusplus
 
22162
extern "C"
 
22163
{
 
22164
#endif
7347
22165
/* We use char because int might match the return type of a gcc2
7348
 
    builtin and then its argument prototype would still apply.  */
7349
 
char $ac_func();
7350
 
 
7351
 
int main() {
7352
 
 
 
22166
   builtin and then its argument prototype would still apply.  */
 
22167
char $ac_func ();
7353
22168
/* The GNU C library defines this for functions which it implements
7354
22169
    to always fail with ENOSYS.  Some functions are actually named
7355
22170
    something starting with __ and the normal name is an alias.  */
7356
22171
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7357
22172
choke me
7358
22173
#else
7359
 
$ac_func();
7360
 
#endif
7361
 
 
7362
 
; return 0; }
7363
 
EOF
7364
 
if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365
 
  rm -rf conftest*
7366
 
  eval "ac_cv_func_$ac_func=yes"
7367
 
else
7368
 
  echo "configure: failed program was:" >&5
7369
 
  cat conftest.$ac_ext >&5
7370
 
  rm -rf conftest*
7371
 
  eval "ac_cv_func_$ac_func=no"
7372
 
fi
7373
 
rm -f conftest*
7374
 
fi
7375
 
 
7376
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7377
 
  echo "$ac_t""yes" 1>&6
7378
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7379
 
  cat >> confdefs.h <<EOF
7380
 
#define $ac_tr_func 1
7381
 
EOF
7382
 
 
7383
 
else
7384
 
  echo "$ac_t""no" 1>&6
 
22174
char (*f) () = $ac_func;
 
22175
#endif
 
22176
#ifdef __cplusplus
 
22177
}
 
22178
#endif
 
22179
 
 
22180
int
 
22181
main ()
 
22182
{
 
22183
return f != $ac_func;
 
22184
  ;
 
22185
  return 0;
 
22186
}
 
22187
_ACEOF
 
22188
rm -f conftest.$ac_objext conftest$ac_exeext
 
22189
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22190
  (eval $ac_link) 2>&5
 
22191
  ac_status=$?
 
22192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22193
  (exit $ac_status); } &&
 
22194
         { ac_try='test -s conftest$ac_exeext'
 
22195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22196
  (eval $ac_try) 2>&5
 
22197
  ac_status=$?
 
22198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22199
  (exit $ac_status); }; }; then
 
22200
  eval "$as_ac_var=yes"
 
22201
else
 
22202
  echo "$as_me: failed program was:" >&5
 
22203
sed 's/^/| /' conftest.$ac_ext >&5
 
22204
 
 
22205
eval "$as_ac_var=no"
 
22206
fi
 
22207
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22208
fi
 
22209
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22210
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22211
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22212
  cat >>confdefs.h <<_ACEOF
 
22213
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22214
_ACEOF
 
22215
 
7385
22216
fi
7386
22217
done
7387
22218
 
7388
 
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
7389
 
echo "configure:7390: checking for working mmap" >&5
7390
 
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
7391
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
22219
echo "$as_me:$LINENO: checking for working mmap" >&5
 
22220
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
22221
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
22222
  echo $ECHO_N "(cached) $ECHO_C" >&6
7392
22223
else
7393
22224
  if test "$cross_compiling" = yes; then
7394
22225
  ac_cv_func_mmap_fixed_mapped=no
7395
22226
else
7396
 
  cat > conftest.$ac_ext <<EOF
7397
 
#line 7398 "configure"
7398
 
#include "confdefs.h"
 
22227
  cat >conftest.$ac_ext <<_ACEOF
 
22228
#line $LINENO "configure"
 
22229
/* confdefs.h.  */
 
22230
_ACEOF
 
22231
cat confdefs.h >>conftest.$ac_ext
 
22232
cat >>conftest.$ac_ext <<_ACEOF
 
22233
/* end confdefs.h.  */
 
22234
$ac_includes_default
 
22235
/* malloc might have been renamed as rpl_malloc. */
 
22236
#undef malloc
7399
22237
 
7400
22238
/* Thanks to Mike Haertel and Jim Avera for this test.
7401
22239
   Here is a matrix of mmap possibilities:
7409
22247
   back from the file, nor mmap's back from the file at a different
7410
22248
   address.  (There have been systems where private was not correctly
7411
22249
   implemented like the infamous i386 svr4.0, and systems where the
7412
 
   VM page cache was not coherent with the filesystem buffer cache
 
22250
   VM page cache was not coherent with the file system buffer cache
7413
22251
   like early versions of FreeBSD and possibly contemporary NetBSD.)
7414
22252
   For shared mappings, we should conversely verify that changes get
7415
 
   propogated back to all the places they're supposed to be.
 
22253
   propagated back to all the places they're supposed to be.
7416
22254
 
7417
22255
   Grep wants private fixed already mapped.
7418
22256
   The main things grep needs to know about mmap are:
7419
22257
   * does it exist and is it safe to write into the mmap'd area
7420
22258
   * how to use it (BSD variants)  */
7421
 
#include <sys/types.h>
 
22259
 
7422
22260
#include <fcntl.h>
7423
22261
#include <sys/mman.h>
7424
22262
 
 
22263
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
22264
char *malloc ();
 
22265
#endif
 
22266
 
7425
22267
/* This mess was copied from the GNU getpagesize.h.  */
7426
 
#ifndef HAVE_GETPAGESIZE
7427
 
# ifdef HAVE_UNISTD_H
7428
 
#  include <unistd.h>
7429
 
# endif
7430
 
 
 
22268
#if !HAVE_GETPAGESIZE
7431
22269
/* Assume that all systems that can run configure have sys/param.h.  */
7432
 
# ifndef HAVE_SYS_PARAM_H
 
22270
# if !HAVE_SYS_PARAM_H
7433
22271
#  define HAVE_SYS_PARAM_H 1
7434
22272
# endif
7435
22273
 
7436
22274
# ifdef _SC_PAGESIZE
7437
22275
#  define getpagesize() sysconf(_SC_PAGESIZE)
7438
22276
# else /* no _SC_PAGESIZE */
7439
 
#  ifdef HAVE_SYS_PARAM_H
 
22277
#  if HAVE_SYS_PARAM_H
7440
22278
#   include <sys/param.h>
7441
22279
#   ifdef EXEC_PAGESIZE
7442
22280
#    define getpagesize() EXEC_PAGESIZE
7463
22301
 
7464
22302
#endif /* no HAVE_GETPAGESIZE */
7465
22303
 
7466
 
#ifdef __cplusplus
7467
 
extern "C" { void *malloc(unsigned); }
7468
 
#else
7469
 
char *malloc();
7470
 
#endif
7471
 
 
7472
22304
int
7473
 
main()
 
22305
main ()
7474
22306
{
7475
 
        char *data, *data2, *data3;
7476
 
        int i, pagesize;
7477
 
        int fd;
7478
 
 
7479
 
        pagesize = getpagesize();
7480
 
 
7481
 
        /*
7482
 
         * First, make a file with some known garbage in it.
7483
 
         */
7484
 
        data = malloc(pagesize);
7485
 
        if (!data)
7486
 
                exit(1);
7487
 
        for (i = 0; i < pagesize; ++i)
7488
 
                *(data + i) = rand();
7489
 
        umask(0);
7490
 
        fd = creat("conftestmmap", 0600);
7491
 
        if (fd < 0)
7492
 
                exit(1);
7493
 
        if (write(fd, data, pagesize) != pagesize)
7494
 
                exit(1);
7495
 
        close(fd);
7496
 
 
7497
 
        /*
7498
 
         * Next, try to mmap the file at a fixed address which
7499
 
         * already has something else allocated at it.  If we can,
7500
 
         * also make sure that we see the same garbage.
7501
 
         */
7502
 
        fd = open("conftestmmap", O_RDWR);
7503
 
        if (fd < 0)
7504
 
                exit(1);
7505
 
        data2 = malloc(2 * pagesize);
7506
 
        if (!data2)
7507
 
                exit(1);
7508
 
        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7509
 
        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
7510
 
            MAP_PRIVATE | MAP_FIXED, fd, 0L))
7511
 
                exit(1);
7512
 
        for (i = 0; i < pagesize; ++i)
7513
 
                if (*(data + i) != *(data2 + i))
7514
 
                        exit(1);
7515
 
 
7516
 
        /*
7517
 
         * Finally, make sure that changes to the mapped area
7518
 
         * do not percolate back to the file as seen by read().
7519
 
         * (This is a bug on some variants of i386 svr4.0.)
7520
 
         */
7521
 
        for (i = 0; i < pagesize; ++i)
7522
 
                *(data2 + i) = *(data2 + i) + 1;
7523
 
        data3 = malloc(pagesize);
7524
 
        if (!data3)
7525
 
                exit(1);
7526
 
        if (read(fd, data3, pagesize) != pagesize)
7527
 
                exit(1);
7528
 
        for (i = 0; i < pagesize; ++i)
7529
 
                if (*(data + i) != *(data3 + i))
7530
 
                        exit(1);
7531
 
        close(fd);
7532
 
        unlink("conftestmmap");
7533
 
        exit(0);
 
22307
  char *data, *data2, *data3;
 
22308
  int i, pagesize;
 
22309
  int fd;
 
22310
 
 
22311
  pagesize = getpagesize ();
 
22312
 
 
22313
  /* First, make a file with some known garbage in it. */
 
22314
  data = (char *) malloc (pagesize);
 
22315
  if (!data)
 
22316
    exit (1);
 
22317
  for (i = 0; i < pagesize; ++i)
 
22318
    *(data + i) = rand ();
 
22319
  umask (0);
 
22320
  fd = creat ("conftest.mmap", 0600);
 
22321
  if (fd < 0)
 
22322
    exit (1);
 
22323
  if (write (fd, data, pagesize) != pagesize)
 
22324
    exit (1);
 
22325
  close (fd);
 
22326
 
 
22327
  /* Next, try to mmap the file at a fixed address which already has
 
22328
     something else allocated at it.  If we can, also make sure that
 
22329
     we see the same garbage.  */
 
22330
  fd = open ("conftest.mmap", O_RDWR);
 
22331
  if (fd < 0)
 
22332
    exit (1);
 
22333
  data2 = (char *) malloc (2 * pagesize);
 
22334
  if (!data2)
 
22335
    exit (1);
 
22336
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
 
22337
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
22338
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
22339
    exit (1);
 
22340
  for (i = 0; i < pagesize; ++i)
 
22341
    if (*(data + i) != *(data2 + i))
 
22342
      exit (1);
 
22343
 
 
22344
  /* Finally, make sure that changes to the mapped area do not
 
22345
     percolate back to the file as seen by read().  (This is a bug on
 
22346
     some variants of i386 svr4.0.)  */
 
22347
  for (i = 0; i < pagesize; ++i)
 
22348
    *(data2 + i) = *(data2 + i) + 1;
 
22349
  data3 = (char *) malloc (pagesize);
 
22350
  if (!data3)
 
22351
    exit (1);
 
22352
  if (read (fd, data3, pagesize) != pagesize)
 
22353
    exit (1);
 
22354
  for (i = 0; i < pagesize; ++i)
 
22355
    if (*(data + i) != *(data3 + i))
 
22356
      exit (1);
 
22357
  close (fd);
 
22358
  exit (0);
7534
22359
}
7535
 
 
7536
 
EOF
7537
 
if { (eval echo configure:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7538
 
then
 
22360
_ACEOF
 
22361
rm -f conftest$ac_exeext
 
22362
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22363
  (eval $ac_link) 2>&5
 
22364
  ac_status=$?
 
22365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22366
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22368
  (eval $ac_try) 2>&5
 
22369
  ac_status=$?
 
22370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22371
  (exit $ac_status); }; }; then
7539
22372
  ac_cv_func_mmap_fixed_mapped=yes
7540
22373
else
7541
 
  echo "configure: failed program was:" >&5
7542
 
  cat conftest.$ac_ext >&5
7543
 
  rm -fr conftest*
7544
 
  ac_cv_func_mmap_fixed_mapped=no
7545
 
fi
7546
 
rm -fr conftest*
7547
 
fi
7548
 
 
7549
 
fi
7550
 
 
7551
 
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
 
22374
  echo "$as_me: program exited with status $ac_status" >&5
 
22375
echo "$as_me: failed program was:" >&5
 
22376
sed 's/^/| /' conftest.$ac_ext >&5
 
22377
 
 
22378
( exit $ac_status )
 
22379
ac_cv_func_mmap_fixed_mapped=no
 
22380
fi
 
22381
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22382
fi
 
22383
fi
 
22384
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
22385
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7552
22386
if test $ac_cv_func_mmap_fixed_mapped = yes; then
7553
 
  cat >> confdefs.h <<\EOF
 
22387
 
 
22388
cat >>confdefs.h <<\_ACEOF
7554
22389
#define HAVE_MMAP 1
7555
 
EOF
 
22390
_ACEOF
7556
22391
 
7557
22392
fi
 
22393
rm -f conftest.mmap
7558
22394
 
7559
 
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
7560
 
echo "configure:7561: checking for 8-bit clean memcmp" >&5
7561
 
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
7562
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
22395
echo "$as_me:$LINENO: checking for working memcmp" >&5
 
22396
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
 
22397
if test "${ac_cv_func_memcmp_working+set}" = set; then
 
22398
  echo $ECHO_N "(cached) $ECHO_C" >&6
7563
22399
else
7564
22400
  if test "$cross_compiling" = yes; then
7565
 
  ac_cv_func_memcmp_clean=no
 
22401
  ac_cv_func_memcmp_working=no
7566
22402
else
7567
 
  cat > conftest.$ac_ext <<EOF
7568
 
#line 7569 "configure"
7569
 
#include "confdefs.h"
 
22403
  cat >conftest.$ac_ext <<_ACEOF
 
22404
#line $LINENO "configure"
 
22405
/* confdefs.h.  */
 
22406
_ACEOF
 
22407
cat confdefs.h >>conftest.$ac_ext
 
22408
cat >>conftest.$ac_ext <<_ACEOF
 
22409
/* end confdefs.h.  */
7570
22410
 
7571
 
main()
 
22411
int
 
22412
main ()
7572
22413
{
 
22414
 
 
22415
  /* Some versions of memcmp are not 8-bit clean.  */
7573
22416
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
7574
 
  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
 
22417
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
 
22418
    exit (1);
 
22419
 
 
22420
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
 
22421
     or more and with at least one buffer not starting on a 4-byte boundary.
 
22422
     William Lewis provided this test program.   */
 
22423
  {
 
22424
    char foo[21];
 
22425
    char bar[21];
 
22426
    int i;
 
22427
    for (i = 0; i < 4; i++)
 
22428
      {
 
22429
        char *a = foo + i;
 
22430
        char *b = bar + i;
 
22431
        strcpy (a, "--------01111111");
 
22432
        strcpy (b, "--------10000000");
 
22433
        if (memcmp (a, b, 16) >= 0)
 
22434
          exit (1);
 
22435
      }
 
22436
    exit (0);
 
22437
  }
 
22438
 
 
22439
  ;
 
22440
  return 0;
7575
22441
}
7576
 
 
7577
 
EOF
7578
 
if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7579
 
then
7580
 
  ac_cv_func_memcmp_clean=yes
7581
 
else
7582
 
  echo "configure: failed program was:" >&5
7583
 
  cat conftest.$ac_ext >&5
7584
 
  rm -fr conftest*
7585
 
  ac_cv_func_memcmp_clean=no
7586
 
fi
7587
 
rm -fr conftest*
7588
 
fi
7589
 
 
7590
 
fi
7591
 
 
7592
 
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
7593
 
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
7594
 
 
7595
 
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
7596
 
echo "configure:7597: checking for vprintf" >&5
7597
 
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
7598
 
  echo $ac_n "(cached) $ac_c" 1>&6
7599
 
else
7600
 
  cat > conftest.$ac_ext <<EOF
7601
 
#line 7602 "configure"
7602
 
#include "confdefs.h"
 
22442
_ACEOF
 
22443
rm -f conftest$ac_exeext
 
22444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22445
  (eval $ac_link) 2>&5
 
22446
  ac_status=$?
 
22447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22448
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22450
  (eval $ac_try) 2>&5
 
22451
  ac_status=$?
 
22452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22453
  (exit $ac_status); }; }; then
 
22454
  ac_cv_func_memcmp_working=yes
 
22455
else
 
22456
  echo "$as_me: program exited with status $ac_status" >&5
 
22457
echo "$as_me: failed program was:" >&5
 
22458
sed 's/^/| /' conftest.$ac_ext >&5
 
22459
 
 
22460
( exit $ac_status )
 
22461
ac_cv_func_memcmp_working=no
 
22462
fi
 
22463
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22464
fi
 
22465
fi
 
22466
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
 
22467
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
 
22468
test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
 
22469
 
 
22470
 
 
22471
for ac_func in vprintf
 
22472
do
 
22473
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22474
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22475
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22476
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22478
else
 
22479
  cat >conftest.$ac_ext <<_ACEOF
 
22480
#line $LINENO "configure"
 
22481
/* confdefs.h.  */
 
22482
_ACEOF
 
22483
cat confdefs.h >>conftest.$ac_ext
 
22484
cat >>conftest.$ac_ext <<_ACEOF
 
22485
/* end confdefs.h.  */
7603
22486
/* System header to define __stub macros and hopefully few prototypes,
7604
 
    which can conflict with char vprintf(); below.  */
7605
 
#include <assert.h>
 
22487
    which can conflict with char $ac_func (); below.
 
22488
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22489
    <limits.h> exists even on freestanding compilers.  */
 
22490
#ifdef __STDC__
 
22491
# include <limits.h>
 
22492
#else
 
22493
# include <assert.h>
 
22494
#endif
7606
22495
/* Override any gcc2 internal prototype to avoid an error.  */
 
22496
#ifdef __cplusplus
 
22497
extern "C"
 
22498
{
 
22499
#endif
7607
22500
/* We use char because int might match the return type of a gcc2
7608
 
    builtin and then its argument prototype would still apply.  */
7609
 
char vprintf();
7610
 
 
7611
 
int main() {
7612
 
 
 
22501
   builtin and then its argument prototype would still apply.  */
 
22502
char $ac_func ();
7613
22503
/* The GNU C library defines this for functions which it implements
7614
22504
    to always fail with ENOSYS.  Some functions are actually named
7615
22505
    something starting with __ and the normal name is an alias.  */
7616
 
#if defined (__stub_vprintf) || defined (__stub___vprintf)
 
22506
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7617
22507
choke me
7618
22508
#else
7619
 
vprintf();
7620
 
#endif
7621
 
 
7622
 
; return 0; }
7623
 
EOF
7624
 
if { (eval echo configure:7625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7625
 
  rm -rf conftest*
7626
 
  eval "ac_cv_func_vprintf=yes"
7627
 
else
7628
 
  echo "configure: failed program was:" >&5
7629
 
  cat conftest.$ac_ext >&5
7630
 
  rm -rf conftest*
7631
 
  eval "ac_cv_func_vprintf=no"
7632
 
fi
7633
 
rm -f conftest*
7634
 
fi
7635
 
 
7636
 
if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
7637
 
  echo "$ac_t""yes" 1>&6
7638
 
  cat >> confdefs.h <<\EOF
7639
 
#define HAVE_VPRINTF 1
7640
 
EOF
7641
 
 
7642
 
else
7643
 
  echo "$ac_t""no" 1>&6
7644
 
fi
7645
 
 
7646
 
if test "$ac_cv_func_vprintf" != yes; then
7647
 
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
7648
 
echo "configure:7649: checking for _doprnt" >&5
7649
 
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
7650
 
  echo $ac_n "(cached) $ac_c" 1>&6
7651
 
else
7652
 
  cat > conftest.$ac_ext <<EOF
7653
 
#line 7654 "configure"
7654
 
#include "confdefs.h"
 
22509
char (*f) () = $ac_func;
 
22510
#endif
 
22511
#ifdef __cplusplus
 
22512
}
 
22513
#endif
 
22514
 
 
22515
int
 
22516
main ()
 
22517
{
 
22518
return f != $ac_func;
 
22519
  ;
 
22520
  return 0;
 
22521
}
 
22522
_ACEOF
 
22523
rm -f conftest.$ac_objext conftest$ac_exeext
 
22524
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22525
  (eval $ac_link) 2>&5
 
22526
  ac_status=$?
 
22527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22528
  (exit $ac_status); } &&
 
22529
         { ac_try='test -s conftest$ac_exeext'
 
22530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22531
  (eval $ac_try) 2>&5
 
22532
  ac_status=$?
 
22533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22534
  (exit $ac_status); }; }; then
 
22535
  eval "$as_ac_var=yes"
 
22536
else
 
22537
  echo "$as_me: failed program was:" >&5
 
22538
sed 's/^/| /' conftest.$ac_ext >&5
 
22539
 
 
22540
eval "$as_ac_var=no"
 
22541
fi
 
22542
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22543
fi
 
22544
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22545
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22546
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22547
  cat >>confdefs.h <<_ACEOF
 
22548
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22549
_ACEOF
 
22550
 
 
22551
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
22552
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
22553
if test "${ac_cv_func__doprnt+set}" = set; then
 
22554
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22555
else
 
22556
  cat >conftest.$ac_ext <<_ACEOF
 
22557
#line $LINENO "configure"
 
22558
/* confdefs.h.  */
 
22559
_ACEOF
 
22560
cat confdefs.h >>conftest.$ac_ext
 
22561
cat >>conftest.$ac_ext <<_ACEOF
 
22562
/* end confdefs.h.  */
7655
22563
/* System header to define __stub macros and hopefully few prototypes,
7656
 
    which can conflict with char _doprnt(); below.  */
7657
 
#include <assert.h>
 
22564
    which can conflict with char _doprnt (); below.
 
22565
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22566
    <limits.h> exists even on freestanding compilers.  */
 
22567
#ifdef __STDC__
 
22568
# include <limits.h>
 
22569
#else
 
22570
# include <assert.h>
 
22571
#endif
7658
22572
/* Override any gcc2 internal prototype to avoid an error.  */
 
22573
#ifdef __cplusplus
 
22574
extern "C"
 
22575
{
 
22576
#endif
7659
22577
/* We use char because int might match the return type of a gcc2
7660
 
    builtin and then its argument prototype would still apply.  */
7661
 
char _doprnt();
7662
 
 
7663
 
int main() {
7664
 
 
 
22578
   builtin and then its argument prototype would still apply.  */
 
22579
char _doprnt ();
7665
22580
/* The GNU C library defines this for functions which it implements
7666
22581
    to always fail with ENOSYS.  Some functions are actually named
7667
22582
    something starting with __ and the normal name is an alias.  */
7668
22583
#if defined (__stub__doprnt) || defined (__stub____doprnt)
7669
22584
choke me
7670
22585
#else
7671
 
_doprnt();
 
22586
char (*f) () = _doprnt;
 
22587
#endif
 
22588
#ifdef __cplusplus
 
22589
}
7672
22590
#endif
7673
22591
 
7674
 
; return 0; }
7675
 
EOF
7676
 
if { (eval echo configure:7677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7677
 
  rm -rf conftest*
7678
 
  eval "ac_cv_func__doprnt=yes"
 
22592
int
 
22593
main ()
 
22594
{
 
22595
return f != _doprnt;
 
22596
  ;
 
22597
  return 0;
 
22598
}
 
22599
_ACEOF
 
22600
rm -f conftest.$ac_objext conftest$ac_exeext
 
22601
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22602
  (eval $ac_link) 2>&5
 
22603
  ac_status=$?
 
22604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22605
  (exit $ac_status); } &&
 
22606
         { ac_try='test -s conftest$ac_exeext'
 
22607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22608
  (eval $ac_try) 2>&5
 
22609
  ac_status=$?
 
22610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22611
  (exit $ac_status); }; }; then
 
22612
  ac_cv_func__doprnt=yes
7679
22613
else
7680
 
  echo "configure: failed program was:" >&5
7681
 
  cat conftest.$ac_ext >&5
7682
 
  rm -rf conftest*
7683
 
  eval "ac_cv_func__doprnt=no"
7684
 
fi
7685
 
rm -f conftest*
7686
 
fi
7687
 
 
7688
 
if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
7689
 
  echo "$ac_t""yes" 1>&6
7690
 
  cat >> confdefs.h <<\EOF
 
22614
  echo "$as_me: failed program was:" >&5
 
22615
sed 's/^/| /' conftest.$ac_ext >&5
 
22616
 
 
22617
ac_cv_func__doprnt=no
 
22618
fi
 
22619
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22620
fi
 
22621
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
22622
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
22623
if test $ac_cv_func__doprnt = yes; then
 
22624
 
 
22625
cat >>confdefs.h <<\_ACEOF
7691
22626
#define HAVE_DOPRNT 1
7692
 
EOF
7693
 
 
7694
 
else
7695
 
  echo "$ac_t""no" 1>&6
7696
 
fi
7697
 
 
7698
 
fi
 
22627
_ACEOF
 
22628
 
 
22629
fi
 
22630
 
 
22631
fi
 
22632
done
 
22633
 
 
22634
 
 
22635
 
 
22636
 
 
22637
 
 
22638
 
 
22639
 
 
22640
 
 
22641
 
 
22642
 
 
22643
 
 
22644
 
 
22645
 
 
22646
 
 
22647
 
 
22648
 
 
22649
 
 
22650
 
 
22651
 
 
22652
 
 
22653
 
 
22654
 
 
22655
 
 
22656
 
 
22657
 
 
22658
 
 
22659
 
 
22660
 
 
22661
 
 
22662
 
 
22663
 
 
22664
 
 
22665
 
 
22666
 
7699
22667
 
7700
22668
for ac_func in getcwd gethostname select socket strcspn strerror strstr stpcpy strtol psignal strsignal snprintf grantpt lrand48 getpagesize setitimer dladdr dlerror munmap putenv setenv setlocale strchr strcasecmp strncasecmp strdup __argz_count __argz_stringify __argz_next siginterrupt gettimeofday strtoll strtoq
7701
22669
do
7702
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7703
 
echo "configure:7704: checking for $ac_func" >&5
7704
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7705
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
22670
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22671
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22672
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22673
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22674
  echo $ECHO_N "(cached) $ECHO_C" >&6
7706
22675
else
7707
 
  cat > conftest.$ac_ext <<EOF
7708
 
#line 7709 "configure"
7709
 
#include "confdefs.h"
 
22676
  cat >conftest.$ac_ext <<_ACEOF
 
22677
#line $LINENO "configure"
 
22678
/* confdefs.h.  */
 
22679
_ACEOF
 
22680
cat confdefs.h >>conftest.$ac_ext
 
22681
cat >>conftest.$ac_ext <<_ACEOF
 
22682
/* end confdefs.h.  */
7710
22683
/* System header to define __stub macros and hopefully few prototypes,
7711
 
    which can conflict with char $ac_func(); below.  */
7712
 
#include <assert.h>
 
22684
    which can conflict with char $ac_func (); below.
 
22685
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22686
    <limits.h> exists even on freestanding compilers.  */
 
22687
#ifdef __STDC__
 
22688
# include <limits.h>
 
22689
#else
 
22690
# include <assert.h>
 
22691
#endif
7713
22692
/* Override any gcc2 internal prototype to avoid an error.  */
 
22693
#ifdef __cplusplus
 
22694
extern "C"
 
22695
{
 
22696
#endif
7714
22697
/* We use char because int might match the return type of a gcc2
7715
 
    builtin and then its argument prototype would still apply.  */
7716
 
char $ac_func();
7717
 
 
7718
 
int main() {
7719
 
 
 
22698
   builtin and then its argument prototype would still apply.  */
 
22699
char $ac_func ();
7720
22700
/* The GNU C library defines this for functions which it implements
7721
22701
    to always fail with ENOSYS.  Some functions are actually named
7722
22702
    something starting with __ and the normal name is an alias.  */
7723
22703
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7724
22704
choke me
7725
22705
#else
7726
 
$ac_func();
7727
 
#endif
7728
 
 
7729
 
; return 0; }
7730
 
EOF
7731
 
if { (eval echo configure:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7732
 
  rm -rf conftest*
7733
 
  eval "ac_cv_func_$ac_func=yes"
7734
 
else
7735
 
  echo "configure: failed program was:" >&5
7736
 
  cat conftest.$ac_ext >&5
7737
 
  rm -rf conftest*
7738
 
  eval "ac_cv_func_$ac_func=no"
7739
 
fi
7740
 
rm -f conftest*
7741
 
fi
7742
 
 
7743
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7744
 
  echo "$ac_t""yes" 1>&6
7745
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7746
 
  cat >> confdefs.h <<EOF
7747
 
#define $ac_tr_func 1
7748
 
EOF
7749
 
 
7750
 
else
7751
 
  echo "$ac_t""no" 1>&6
 
22706
char (*f) () = $ac_func;
 
22707
#endif
 
22708
#ifdef __cplusplus
 
22709
}
 
22710
#endif
 
22711
 
 
22712
int
 
22713
main ()
 
22714
{
 
22715
return f != $ac_func;
 
22716
  ;
 
22717
  return 0;
 
22718
}
 
22719
_ACEOF
 
22720
rm -f conftest.$ac_objext conftest$ac_exeext
 
22721
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22722
  (eval $ac_link) 2>&5
 
22723
  ac_status=$?
 
22724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22725
  (exit $ac_status); } &&
 
22726
         { ac_try='test -s conftest$ac_exeext'
 
22727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22728
  (eval $ac_try) 2>&5
 
22729
  ac_status=$?
 
22730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22731
  (exit $ac_status); }; }; then
 
22732
  eval "$as_ac_var=yes"
 
22733
else
 
22734
  echo "$as_me: failed program was:" >&5
 
22735
sed 's/^/| /' conftest.$ac_ext >&5
 
22736
 
 
22737
eval "$as_ac_var=no"
 
22738
fi
 
22739
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22740
fi
 
22741
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22742
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22743
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22744
  cat >>confdefs.h <<_ACEOF
 
22745
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22746
_ACEOF
 
22747
 
7752
22748
fi
7753
22749
done
7754
22750
 
 
22751
 
7755
22752
for ac_func in realpath
7756
22753
do
7757
 
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7758
 
echo "configure:7759: checking for $ac_func" >&5
7759
 
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7760
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
22754
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22755
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22756
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22757
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22758
  echo $ECHO_N "(cached) $ECHO_C" >&6
7761
22759
else
7762
 
  cat > conftest.$ac_ext <<EOF
7763
 
#line 7764 "configure"
7764
 
#include "confdefs.h"
 
22760
  cat >conftest.$ac_ext <<_ACEOF
 
22761
#line $LINENO "configure"
 
22762
/* confdefs.h.  */
 
22763
_ACEOF
 
22764
cat confdefs.h >>conftest.$ac_ext
 
22765
cat >>conftest.$ac_ext <<_ACEOF
 
22766
/* end confdefs.h.  */
7765
22767
/* System header to define __stub macros and hopefully few prototypes,
7766
 
    which can conflict with char $ac_func(); below.  */
7767
 
#include <assert.h>
 
22768
    which can conflict with char $ac_func (); below.
 
22769
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22770
    <limits.h> exists even on freestanding compilers.  */
 
22771
#ifdef __STDC__
 
22772
# include <limits.h>
 
22773
#else
 
22774
# include <assert.h>
 
22775
#endif
7768
22776
/* Override any gcc2 internal prototype to avoid an error.  */
 
22777
#ifdef __cplusplus
 
22778
extern "C"
 
22779
{
 
22780
#endif
7769
22781
/* We use char because int might match the return type of a gcc2
7770
 
    builtin and then its argument prototype would still apply.  */
7771
 
char $ac_func();
7772
 
 
7773
 
int main() {
7774
 
 
 
22782
   builtin and then its argument prototype would still apply.  */
 
22783
char $ac_func ();
7775
22784
/* The GNU C library defines this for functions which it implements
7776
22785
    to always fail with ENOSYS.  Some functions are actually named
7777
22786
    something starting with __ and the normal name is an alias.  */
7778
22787
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7779
22788
choke me
7780
22789
#else
7781
 
$ac_func();
7782
 
#endif
7783
 
 
7784
 
; return 0; }
7785
 
EOF
7786
 
if { (eval echo configure:7787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7787
 
  rm -rf conftest*
7788
 
  eval "ac_cv_func_$ac_func=yes"
7789
 
else
7790
 
  echo "configure: failed program was:" >&5
7791
 
  cat conftest.$ac_ext >&5
7792
 
  rm -rf conftest*
7793
 
  eval "ac_cv_func_$ac_func=no"
7794
 
fi
7795
 
rm -f conftest*
7796
 
fi
7797
 
 
7798
 
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7799
 
  echo "$ac_t""yes" 1>&6
7800
 
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7801
 
  cat >> confdefs.h <<EOF
7802
 
#define $ac_tr_func 1
7803
 
EOF
7804
 
 
7805
 
else
7806
 
  echo "$ac_t""no" 1>&6
7807
 
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
 
22790
char (*f) () = $ac_func;
 
22791
#endif
 
22792
#ifdef __cplusplus
 
22793
}
 
22794
#endif
 
22795
 
 
22796
int
 
22797
main ()
 
22798
{
 
22799
return f != $ac_func;
 
22800
  ;
 
22801
  return 0;
 
22802
}
 
22803
_ACEOF
 
22804
rm -f conftest.$ac_objext conftest$ac_exeext
 
22805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22806
  (eval $ac_link) 2>&5
 
22807
  ac_status=$?
 
22808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22809
  (exit $ac_status); } &&
 
22810
         { ac_try='test -s conftest$ac_exeext'
 
22811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22812
  (eval $ac_try) 2>&5
 
22813
  ac_status=$?
 
22814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22815
  (exit $ac_status); }; }; then
 
22816
  eval "$as_ac_var=yes"
 
22817
else
 
22818
  echo "$as_me: failed program was:" >&5
 
22819
sed 's/^/| /' conftest.$ac_ext >&5
 
22820
 
 
22821
eval "$as_ac_var=no"
 
22822
fi
 
22823
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22824
fi
 
22825
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22826
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22827
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22828
  cat >>confdefs.h <<_ACEOF
 
22829
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22830
_ACEOF
 
22831
 
 
22832
else
 
22833
  LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
7808
22834
fi
7809
22835
done
7810
22836
 
7811
22837
 
7812
22838
 
7813
 
echo $ac_n "checking for crypt""... $ac_c" 1>&6
7814
 
echo "configure:7815: checking for crypt" >&5
7815
 
if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
7816
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
22839
echo "$as_me:$LINENO: checking for crypt" >&5
 
22840
echo $ECHO_N "checking for crypt... $ECHO_C" >&6
 
22841
if test "${ac_cv_func_crypt+set}" = set; then
 
22842
  echo $ECHO_N "(cached) $ECHO_C" >&6
7817
22843
else
7818
 
  cat > conftest.$ac_ext <<EOF
7819
 
#line 7820 "configure"
7820
 
#include "confdefs.h"
 
22844
  cat >conftest.$ac_ext <<_ACEOF
 
22845
#line $LINENO "configure"
 
22846
/* confdefs.h.  */
 
22847
_ACEOF
 
22848
cat confdefs.h >>conftest.$ac_ext
 
22849
cat >>conftest.$ac_ext <<_ACEOF
 
22850
/* end confdefs.h.  */
7821
22851
/* System header to define __stub macros and hopefully few prototypes,
7822
 
    which can conflict with char crypt(); below.  */
7823
 
#include <assert.h>
 
22852
    which can conflict with char crypt (); below.
 
22853
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22854
    <limits.h> exists even on freestanding compilers.  */
 
22855
#ifdef __STDC__
 
22856
# include <limits.h>
 
22857
#else
 
22858
# include <assert.h>
 
22859
#endif
7824
22860
/* Override any gcc2 internal prototype to avoid an error.  */
 
22861
#ifdef __cplusplus
 
22862
extern "C"
 
22863
{
 
22864
#endif
7825
22865
/* We use char because int might match the return type of a gcc2
7826
 
    builtin and then its argument prototype would still apply.  */
7827
 
char crypt();
7828
 
 
7829
 
int main() {
7830
 
 
 
22866
   builtin and then its argument prototype would still apply.  */
 
22867
char crypt ();
7831
22868
/* The GNU C library defines this for functions which it implements
7832
22869
    to always fail with ENOSYS.  Some functions are actually named
7833
22870
    something starting with __ and the normal name is an alias.  */
7834
22871
#if defined (__stub_crypt) || defined (__stub___crypt)
7835
22872
choke me
7836
22873
#else
7837
 
crypt();
 
22874
char (*f) () = crypt;
 
22875
#endif
 
22876
#ifdef __cplusplus
 
22877
}
7838
22878
#endif
7839
22879
 
7840
 
; return 0; }
7841
 
EOF
7842
 
if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7843
 
  rm -rf conftest*
7844
 
  eval "ac_cv_func_crypt=yes"
 
22880
int
 
22881
main ()
 
22882
{
 
22883
return f != crypt;
 
22884
  ;
 
22885
  return 0;
 
22886
}
 
22887
_ACEOF
 
22888
rm -f conftest.$ac_objext conftest$ac_exeext
 
22889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22890
  (eval $ac_link) 2>&5
 
22891
  ac_status=$?
 
22892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22893
  (exit $ac_status); } &&
 
22894
         { ac_try='test -s conftest$ac_exeext'
 
22895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22896
  (eval $ac_try) 2>&5
 
22897
  ac_status=$?
 
22898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22899
  (exit $ac_status); }; }; then
 
22900
  ac_cv_func_crypt=yes
7845
22901
else
7846
 
  echo "configure: failed program was:" >&5
7847
 
  cat conftest.$ac_ext >&5
7848
 
  rm -rf conftest*
7849
 
  eval "ac_cv_func_crypt=no"
7850
 
fi
7851
 
rm -f conftest*
7852
 
fi
 
22902
  echo "$as_me: failed program was:" >&5
 
22903
sed 's/^/| /' conftest.$ac_ext >&5
7853
22904
 
7854
 
if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
7855
 
  echo "$ac_t""yes" 1>&6
7856
 
  cat >> confdefs.h <<\EOF
 
22905
ac_cv_func_crypt=no
 
22906
fi
 
22907
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22908
fi
 
22909
echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
 
22910
echo "${ECHO_T}$ac_cv_func_crypt" >&6
 
22911
if test $ac_cv_func_crypt = yes; then
 
22912
  cat >>confdefs.h <<\_ACEOF
7857
22913
#define HAVE_CRYPT 1
7858
 
EOF
 
22914
_ACEOF
7859
22915
 
7860
22916
else
7861
 
  echo "$ac_t""no" 1>&6
7862
 
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7863
 
echo "configure:7864: checking for crypt in -lcrypt" >&5
7864
 
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7865
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7866
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
22917
  echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
 
22918
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
 
22919
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
 
22920
  echo $ECHO_N "(cached) $ECHO_C" >&6
7867
22921
else
7868
 
  ac_save_LIBS="$LIBS"
 
22922
  ac_check_lib_save_LIBS=$LIBS
7869
22923
LIBS="-lcrypt  $LIBS"
7870
 
cat > conftest.$ac_ext <<EOF
7871
 
#line 7872 "configure"
7872
 
#include "confdefs.h"
 
22924
cat >conftest.$ac_ext <<_ACEOF
 
22925
#line $LINENO "configure"
 
22926
/* confdefs.h.  */
 
22927
_ACEOF
 
22928
cat confdefs.h >>conftest.$ac_ext
 
22929
cat >>conftest.$ac_ext <<_ACEOF
 
22930
/* end confdefs.h.  */
 
22931
 
7873
22932
/* Override any gcc2 internal prototype to avoid an error.  */
 
22933
#ifdef __cplusplus
 
22934
extern "C"
 
22935
#endif
7874
22936
/* We use char because int might match the return type of a gcc2
7875
 
    builtin and then its argument prototype would still apply.  */
7876
 
char crypt();
7877
 
 
7878
 
int main() {
7879
 
crypt()
7880
 
; return 0; }
7881
 
EOF
7882
 
if { (eval echo configure:7883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7883
 
  rm -rf conftest*
7884
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
22937
   builtin and then its argument prototype would still apply.  */
 
22938
char crypt ();
 
22939
int
 
22940
main ()
 
22941
{
 
22942
crypt ();
 
22943
  ;
 
22944
  return 0;
 
22945
}
 
22946
_ACEOF
 
22947
rm -f conftest.$ac_objext conftest$ac_exeext
 
22948
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22949
  (eval $ac_link) 2>&5
 
22950
  ac_status=$?
 
22951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22952
  (exit $ac_status); } &&
 
22953
         { ac_try='test -s conftest$ac_exeext'
 
22954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22955
  (eval $ac_try) 2>&5
 
22956
  ac_status=$?
 
22957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22958
  (exit $ac_status); }; }; then
 
22959
  ac_cv_lib_crypt_crypt=yes
7885
22960
else
7886
 
  echo "configure: failed program was:" >&5
7887
 
  cat conftest.$ac_ext >&5
7888
 
  rm -rf conftest*
7889
 
  eval "ac_cv_lib_$ac_lib_var=no"
7890
 
fi
7891
 
rm -f conftest*
7892
 
LIBS="$ac_save_LIBS"
 
22961
  echo "$as_me: failed program was:" >&5
 
22962
sed 's/^/| /' conftest.$ac_ext >&5
7893
22963
 
7894
 
fi
7895
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7896
 
  echo "$ac_t""yes" 1>&6
7897
 
  cat >> confdefs.h <<\EOF
 
22964
ac_cv_lib_crypt_crypt=no
 
22965
fi
 
22966
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22967
LIBS=$ac_check_lib_save_LIBS
 
22968
fi
 
22969
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
 
22970
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
 
22971
if test $ac_cv_lib_crypt_crypt = yes; then
 
22972
  cat >>confdefs.h <<\_ACEOF
7898
22973
#define HAVE_CRYPT 1
7899
 
EOF
 
22974
_ACEOF
7900
22975
 
7901
22976
                                LIBS="$LIBS -lcrypt"
7902
 
else
7903
 
  echo "$ac_t""no" 1>&6
7904
22977
fi
7905
22978
 
7906
22979
fi
7930
23003
    *-sun-solaris*)
7931
23004
                  CFLAGS="${CFLAGS} -Wno-implicit-int"
7932
23005
      ;;
 
23006
    *-apple-darwin)
 
23007
            CFLAGS="${CFLAGS} -no-cpp-precomp"
 
23008
      ;;
7933
23009
  esac
7934
23010
fi
7935
23011
 
 
23012
 
7936
23013
# Check whether --with-extra-cflags or --without-extra-cflags was given.
7937
23014
if test "${with_extra_cflags+set}" = set; then
7938
23015
  withval="$with_extra_cflags"
7939
23016
  CFLAGS="${CFLAGS} $with_extra_cflags"
7940
 
fi
7941
 
 
7942
 
 
7943
 
echo $ac_n "checking whether unistd.h declares environ""... $ac_c" 1>&6
7944
 
echo "configure:7945: checking whether unistd.h declares environ" >&5
7945
 
if eval "test \"`echo '$''{'jade_cv_decl_environ'+set}'`\" = set"; then
7946
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
23017
fi;
 
23018
 
 
23019
echo "$as_me:$LINENO: checking whether unistd.h declares environ" >&5
 
23020
echo $ECHO_N "checking whether unistd.h declares environ... $ECHO_C" >&6
 
23021
if test "${jade_cv_decl_environ+set}" = set; then
 
23022
  echo $ECHO_N "(cached) $ECHO_C" >&6
7947
23023
else
7948
 
  cat > conftest.$ac_ext <<EOF
7949
 
#line 7950 "configure"
7950
 
#include "confdefs.h"
 
23024
  cat >conftest.$ac_ext <<_ACEOF
 
23025
#line $LINENO "configure"
 
23026
/* confdefs.h.  */
 
23027
_ACEOF
 
23028
cat confdefs.h >>conftest.$ac_ext
 
23029
cat >>conftest.$ac_ext <<_ACEOF
 
23030
/* end confdefs.h.  */
7951
23031
#include <unistd.h>
7952
 
int main() {
 
23032
int
 
23033
main ()
 
23034
{
7953
23035
char **foo = environ;
7954
 
; return 0; }
7955
 
EOF
7956
 
if { (eval echo configure:7957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7957
 
  rm -rf conftest*
 
23036
  ;
 
23037
  return 0;
 
23038
}
 
23039
_ACEOF
 
23040
rm -f conftest.$ac_objext
 
23041
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23042
  (eval $ac_compile) 2>&5
 
23043
  ac_status=$?
 
23044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23045
  (exit $ac_status); } &&
 
23046
         { ac_try='test -s conftest.$ac_objext'
 
23047
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23048
  (eval $ac_try) 2>&5
 
23049
  ac_status=$?
 
23050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23051
  (exit $ac_status); }; }; then
7958
23052
  jade_cv_decl_environ=yes
7959
23053
else
7960
 
  echo "configure: failed program was:" >&5
7961
 
  cat conftest.$ac_ext >&5
7962
 
  rm -rf conftest*
7963
 
  jade_cv_decl_environ=no
7964
 
fi
7965
 
rm -f conftest*
7966
 
fi
 
23054
  echo "$as_me: failed program was:" >&5
 
23055
sed 's/^/| /' conftest.$ac_ext >&5
7967
23056
 
7968
 
echo "$ac_t""$jade_cv_decl_environ" 1>&6
 
23057
jade_cv_decl_environ=no
 
23058
fi
 
23059
rm -f conftest.$ac_objext conftest.$ac_ext
 
23060
fi
 
23061
echo "$as_me:$LINENO: result: $jade_cv_decl_environ" >&5
 
23062
echo "${ECHO_T}$jade_cv_decl_environ" >&6
7969
23063
if test ${jade_cv_decl_environ} = no; then
7970
 
  cat >> confdefs.h <<\EOF
 
23064
  cat >>confdefs.h <<\_ACEOF
7971
23065
#define ENVIRON_UNDECLARED 1
7972
 
EOF
 
23066
_ACEOF
7973
23067
 
7974
23068
fi
7975
23069
 
7976
 
echo $ac_n "checking whether /dev/ptmx exists""... $ac_c" 1>&6
7977
 
echo "configure:7978: checking whether /dev/ptmx exists" >&5
 
23070
echo "$as_me:$LINENO: checking whether /dev/ptmx exists" >&5
 
23071
echo $ECHO_N "checking whether /dev/ptmx exists... $ECHO_C" >&6
7978
23072
if test -r /dev/ptmx; then
7979
 
  echo "$ac_t""yes" 1>&6
7980
 
  cat >> confdefs.h <<\EOF
 
23073
  echo "$as_me:$LINENO: result: yes" >&5
 
23074
echo "${ECHO_T}yes" >&6
 
23075
  cat >>confdefs.h <<\_ACEOF
7981
23076
#define HAVE_PTYS 1
7982
 
EOF
 
23077
_ACEOF
7983
23078
 
7984
 
  cat >> confdefs.h <<\EOF
 
23079
  cat >>confdefs.h <<\_ACEOF
7985
23080
#define HAVE_DEV_PTMX 1
7986
 
EOF
 
23081
_ACEOF
7987
23082
 
7988
23083
else
7989
 
  echo "$ac_t""no" 1>&6
 
23084
  echo "$as_me:$LINENO: result: no" >&5
 
23085
echo "${ECHO_T}no" >&6
7990
23086
fi
7991
23087
 
7992
 
echo $ac_n "checking whether /dev/ptyXN devices exist""... $ac_c" 1>&6
7993
 
echo "configure:7994: checking whether /dev/ptyXN devices exist" >&5
7994
 
if eval "test \"`echo '$''{'jade_cv_sys_dev_pty'+set}'`\" = set"; then
7995
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
23088
echo "$as_me:$LINENO: checking whether /dev/ptyXN devices exist" >&5
 
23089
echo $ECHO_N "checking whether /dev/ptyXN devices exist... $ECHO_C" >&6
 
23090
if test "${jade_cv_sys_dev_pty+set}" = set; then
 
23091
  echo $ECHO_N "(cached) $ECHO_C" >&6
7996
23092
else
7997
23093
  jade_cv_sys_dev_pty=no
7998
23094
 for c in p q r s t u v w x y z a b c d e f g h i j k l m n o; do
8002
23098
   fi
8003
23099
 done
8004
23100
fi
8005
 
 
8006
 
echo "$ac_t""$jade_cv_sys_dev_pty" 1>&6
 
23101
echo "$as_me:$LINENO: result: $jade_cv_sys_dev_pty" >&5
 
23102
echo "${ECHO_T}$jade_cv_sys_dev_pty" >&6
8007
23103
if test ${jade_cv_sys_dev_pty} != no; then
8008
 
  cat >> confdefs.h <<\EOF
 
23104
  cat >>confdefs.h <<\_ACEOF
8009
23105
#define HAVE_PTYS 1
8010
 
EOF
 
23106
_ACEOF
8011
23107
 
8012
 
  cat >> confdefs.h <<EOF
 
23108
  cat >>confdefs.h <<_ACEOF
8013
23109
#define FIRST_PTY_LETTER '${jade_cv_sys_dev_pty}'
8014
 
EOF
 
23110
_ACEOF
8015
23111
 
8016
23112
fi
8017
23113
 
8018
23114
aclocaldir=none
 
23115
 
8019
23116
# Check whether --with-aclocaldir or --without-aclocaldir was given.
8020
23117
if test "${with_aclocaldir+set}" = set; then
8021
23118
  withval="$with_aclocaldir"
8022
23119
  aclocaldir=$withval
8023
 
fi
8024
 
 
8025
 
echo $ac_n "checking for aclocal directory""... $ac_c" 1>&6
8026
 
echo "configure:8027: checking for aclocal directory" >&5
 
23120
fi;
 
23121
echo "$as_me:$LINENO: checking for aclocal directory" >&5
 
23122
echo $ECHO_N "checking for aclocal directory... $ECHO_C" >&6
8027
23123
if test "$aclocaldir" = none; then
8028
23124
  aclocaldir="`aclocal --print-ac-dir 2>/dev/null`"
8029
23125
  if test "x${aclocaldir}" = "x"; then
8030
23126
    aclocaldir='${datadir}/aclocal'
8031
23127
  fi
8032
23128
fi
8033
 
echo "$ac_t""${aclocaldir}" 1>&6
 
23129
echo "$as_me:$LINENO: result: ${aclocaldir}" >&5
 
23130
echo "${ECHO_T}${aclocaldir}" >&6
8034
23131
 
8035
23132
 
8036
23133
# Check whether --enable-continuations or --disable-continuations was given.
8037
23134
if test "${enable_continuations+set}" = set; then
8038
23135
  enableval="$enable_continuations"
8039
 
  if test "$enableval" != "no"; then cat >> confdefs.h <<\EOF
 
23136
  if test "$enableval" != "no"; then cat >>confdefs.h <<\_ACEOF
8040
23137
#define WITH_CONTINUATIONS 1
8041
 
EOF
 
23138
_ACEOF
8042
23139
 fi
8043
23140
else
8044
 
  cat >> confdefs.h <<\EOF
 
23141
  cat >>confdefs.h <<\_ACEOF
8045
23142
#define WITH_CONTINUATIONS 1
8046
 
EOF
8047
 
 
8048
 
fi
8049
 
 
 
23143
_ACEOF
 
23144
 
 
23145
fi;
8050
23146
 
8051
23147
# Check whether --enable-dballoc or --disable-dballoc was given.
8052
23148
if test "${enable_dballoc+set}" = set; then
8053
23149
  enableval="$enable_dballoc"
8054
 
  if test "$enableval" != "no"; then cat >> confdefs.h <<\EOF
 
23150
  if test "$enableval" != "no"; then cat >>confdefs.h <<\_ACEOF
8055
23151
#define DEBUG_SYS_ALLOC 1
8056
 
EOF
 
23152
_ACEOF
8057
23153
 fi
8058
 
fi
8059
 
 
 
23154
fi;
8060
23155
 
8061
23156
# Check whether --enable-dbsyms or --disable-dbsyms was given.
8062
23157
if test "${enable_dbsyms+set}" = set; then
8063
23158
  enableval="$enable_dbsyms"
8064
 
  if test "$enableval" != "no"; then cat >> confdefs.h <<\EOF
 
23159
  if test "$enableval" != "no"; then cat >>confdefs.h <<\_ACEOF
8065
23160
#define DB_RESOLVE_SYMBOLS 1
8066
 
EOF
 
23161
_ACEOF
8067
23162
 fi
8068
23163
else
8069
 
  cat >> confdefs.h <<\EOF
 
23164
  cat >>confdefs.h <<\_ACEOF
8070
23165
#define DB_RESOLVE_SYMBOLS 1
8071
 
EOF
8072
 
 
8073
 
fi
8074
 
 
 
23166
_ACEOF
 
23167
 
 
23168
fi;
8075
23169
 
8076
23170
# Check whether --enable-gprof or --disable-gprof was given.
8077
23171
if test "${enable_gprof+set}" = set; then
8078
23172
  enableval="$enable_gprof"
8079
23173
  CFLAGS="${CFLAGS} -pg"; LDFLAGS="${LDFLAGS} -pg"
8080
 
fi
8081
 
 
 
23174
fi;
8082
23175
 
8083
23176
# Check whether --enable-full-name-terminator or --disable-full-name-terminator was given.
8084
23177
if test "${enable_full_name_terminator+set}" = set; then
8085
23178
  enableval="$enable_full_name_terminator"
8086
23179
  if test "$enableval" != "no"; then
8087
23180
   enableval="'$enableval'"
8088
 
   cat >> confdefs.h <<EOF
 
23181
   cat >>confdefs.h <<_ACEOF
8089
23182
#define FULL_NAME_TERMINATOR $enableval
8090
 
EOF
 
23183
_ACEOF
8091
23184
 
8092
23185
  fi
8093
 
fi
8094
 
 
 
23186
fi;
8095
23187
 
8096
23188
HAVE_UNIX=1
8097
 
cat >> confdefs.h <<\EOF
 
23189
cat >>confdefs.h <<\_ACEOF
8098
23190
#define rep_HAVE_UNIX 1
8099
 
EOF
8100
 
 
8101
 
 
8102
 
echo $ac_n "checking for data type to store Lisp values""... $ac_c" 1>&6
8103
 
echo "configure:8104: checking for data type to store Lisp values" >&5
 
23191
_ACEOF
 
23192
 
 
23193
 
 
23194
echo "$as_me:$LINENO: checking for data type to store Lisp values" >&5
 
23195
echo $ECHO_N "checking for data type to store Lisp values... $ECHO_C" >&6
 
23196
 
8104
23197
# Check whether --with-value-type or --without-value-type was given.
8105
23198
if test "${with_value_type+set}" = set; then
8106
23199
  withval="$with_value_type"
8107
 
  :
 
23200
 
8108
23201
else
8109
23202
  with_value_type="undef"
8110
 
fi
8111
 
 
 
23203
fi;
8112
23204
if test "${with_value_type}" = "undef"; then
8113
23205
  if test "$cross_compiling" = yes; then
8114
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
 
23206
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
23207
See \`config.log' for more details." >&5
 
23208
echo "$as_me: error: cannot run test program while cross compiling
 
23209
See \`config.log' for more details." >&2;}
 
23210
   { (exit 1); exit 1; }; }
8115
23211
else
8116
 
  cat > conftest.$ac_ext <<EOF
8117
 
#line 8118 "configure"
8118
 
#include "confdefs.h"
 
23212
  cat >conftest.$ac_ext <<_ACEOF
 
23213
#line $LINENO "configure"
 
23214
/* confdefs.h.  */
 
23215
_ACEOF
 
23216
cat confdefs.h >>conftest.$ac_ext
 
23217
cat >>conftest.$ac_ext <<_ACEOF
 
23218
/* end confdefs.h.  */
8119
23219
main () { exit (!(sizeof (int) >= sizeof (void *)));}
8120
 
EOF
8121
 
if { (eval echo configure:8122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8122
 
then
 
23220
_ACEOF
 
23221
rm -f conftest$ac_exeext
 
23222
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23223
  (eval $ac_link) 2>&5
 
23224
  ac_status=$?
 
23225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23226
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23228
  (eval $ac_try) 2>&5
 
23229
  ac_status=$?
 
23230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23231
  (exit $ac_status); }; }; then
8123
23232
  with_value_type=int
8124
23233
else
8125
 
  echo "configure: failed program was:" >&5
8126
 
  cat conftest.$ac_ext >&5
8127
 
fi
8128
 
rm -fr conftest*
8129
 
fi
 
23234
  echo "$as_me: program exited with status $ac_status" >&5
 
23235
echo "$as_me: failed program was:" >&5
 
23236
sed 's/^/| /' conftest.$ac_ext >&5
8130
23237
 
8131
23238
fi
 
23239
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23240
fi
 
23241
fi
8132
23242
if test "${with_value_type}" = "undef"; then
8133
23243
  if test "$cross_compiling" = yes; then
8134
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
 
23244
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
23245
See \`config.log' for more details." >&5
 
23246
echo "$as_me: error: cannot run test program while cross compiling
 
23247
See \`config.log' for more details." >&2;}
 
23248
   { (exit 1); exit 1; }; }
8135
23249
else
8136
 
  cat > conftest.$ac_ext <<EOF
8137
 
#line 8138 "configure"
8138
 
#include "confdefs.h"
 
23250
  cat >conftest.$ac_ext <<_ACEOF
 
23251
#line $LINENO "configure"
 
23252
/* confdefs.h.  */
 
23253
_ACEOF
 
23254
cat confdefs.h >>conftest.$ac_ext
 
23255
cat >>conftest.$ac_ext <<_ACEOF
 
23256
/* end confdefs.h.  */
8139
23257
main () { exit (!(sizeof (long int) >= sizeof (void *)));}
8140
 
EOF
8141
 
if { (eval echo configure:8142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8142
 
then
 
23258
_ACEOF
 
23259
rm -f conftest$ac_exeext
 
23260
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23261
  (eval $ac_link) 2>&5
 
23262
  ac_status=$?
 
23263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23264
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23266
  (eval $ac_try) 2>&5
 
23267
  ac_status=$?
 
23268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23269
  (exit $ac_status); }; }; then
8143
23270
  with_value_type="long int"
8144
23271
else
8145
 
  echo "configure: failed program was:" >&5
8146
 
  cat conftest.$ac_ext >&5
8147
 
fi
8148
 
rm -fr conftest*
8149
 
fi
 
23272
  echo "$as_me: program exited with status $ac_status" >&5
 
23273
echo "$as_me: failed program was:" >&5
 
23274
sed 's/^/| /' conftest.$ac_ext >&5
8150
23275
 
8151
23276
fi
 
23277
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23278
fi
 
23279
fi
8152
23280
if test "${with_value_type}" = "undef"; then
8153
23281
  if test "$cross_compiling" = yes; then
8154
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
 
23282
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
23283
See \`config.log' for more details." >&5
 
23284
echo "$as_me: error: cannot run test program while cross compiling
 
23285
See \`config.log' for more details." >&2;}
 
23286
   { (exit 1); exit 1; }; }
8155
23287
else
8156
 
  cat > conftest.$ac_ext <<EOF
8157
 
#line 8158 "configure"
8158
 
#include "confdefs.h"
 
23288
  cat >conftest.$ac_ext <<_ACEOF
 
23289
#line $LINENO "configure"
 
23290
/* confdefs.h.  */
 
23291
_ACEOF
 
23292
cat confdefs.h >>conftest.$ac_ext
 
23293
cat >>conftest.$ac_ext <<_ACEOF
 
23294
/* end confdefs.h.  */
8159
23295
main () { exit (!(sizeof (long long int) >= sizeof (void *)));}
8160
 
EOF
8161
 
if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8162
 
then
 
23296
_ACEOF
 
23297
rm -f conftest$ac_exeext
 
23298
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23299
  (eval $ac_link) 2>&5
 
23300
  ac_status=$?
 
23301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23302
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23304
  (eval $ac_try) 2>&5
 
23305
  ac_status=$?
 
23306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23307
  (exit $ac_status); }; }; then
8163
23308
  with_value_type="long long int"
8164
23309
else
8165
 
  echo "configure: failed program was:" >&5
8166
 
  cat conftest.$ac_ext >&5
8167
 
fi
8168
 
rm -fr conftest*
8169
 
fi
 
23310
  echo "$as_me: program exited with status $ac_status" >&5
 
23311
echo "$as_me: failed program was:" >&5
 
23312
sed 's/^/| /' conftest.$ac_ext >&5
8170
23313
 
8171
23314
fi
 
23315
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23316
fi
 
23317
fi
8172
23318
if test "${with_value_type}" = "undef"; then
8173
 
  { echo "configure: error: can't find Lisp value type; set --with-value-type (see README)" 1>&2; exit 1; }
 
23319
  { { echo "$as_me:$LINENO: error: can't find Lisp value type; set --with-value-type (see README)" >&5
 
23320
echo "$as_me: error: can't find Lisp value type; set --with-value-type (see README)" >&2;}
 
23321
   { (exit 1); exit 1; }; }
8174
23322
fi
8175
 
echo "$ac_t""${with_value_type}" 1>&6
8176
 
cat >> confdefs.h <<EOF
 
23323
echo "$as_me:$LINENO: result: ${with_value_type}" >&5
 
23324
echo "${ECHO_T}${with_value_type}" >&6
 
23325
cat >>confdefs.h <<_ACEOF
8177
23326
#define rep_PTR_SIZED_INT ${with_value_type}
8178
 
EOF
8179
 
 
8180
 
 
8181
 
echo $ac_n "checking for size of Lisp value type""... $ac_c" 1>&6
8182
 
echo "configure:8183: checking for size of Lisp value type" >&5
 
23327
_ACEOF
 
23328
 
 
23329
 
 
23330
echo "$as_me:$LINENO: checking for size of Lisp value type" >&5
 
23331
echo $ECHO_N "checking for size of Lisp value type... $ECHO_C" >&6
 
23332
 
8183
23333
# Check whether --with-value-sizeof or --without-value-sizeof was given.
8184
23334
if test "${with_value_sizeof+set}" = set; then
8185
23335
  withval="$with_value_sizeof"
8186
 
  :
 
23336
 
8187
23337
else
8188
23338
  with_value_sizeof="undef"
8189
 
fi
8190
 
 
 
23339
fi;
8191
23340
if test "${with_value_sizeof}" = "undef"; then
8192
23341
    if test "$cross_compiling" = yes; then
8193
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
 
23342
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
23343
See \`config.log' for more details." >&5
 
23344
echo "$as_me: error: cannot run test program while cross compiling
 
23345
See \`config.log' for more details." >&2;}
 
23346
   { (exit 1); exit 1; }; }
8194
23347
else
8195
 
  cat > conftest.$ac_ext <<EOF
8196
 
#line 8197 "configure"
8197
 
#include "confdefs.h"
 
23348
  cat >conftest.$ac_ext <<_ACEOF
 
23349
#line $LINENO "configure"
 
23350
/* confdefs.h.  */
 
23351
_ACEOF
 
23352
cat confdefs.h >>conftest.$ac_ext
 
23353
cat >>conftest.$ac_ext <<_ACEOF
 
23354
/* end confdefs.h.  */
8198
23355
#include <stdio.h>
8199
23356
              main () {
8200
23357
                FILE *f = fopen ("conftestval", "w");
8202
23359
                fprintf (f, "%d\n", sizeof (${with_value_type}));
8203
23360
                exit (0);
8204
23361
              }
8205
 
EOF
8206
 
if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8207
 
then
 
23362
_ACEOF
 
23363
rm -f conftest$ac_exeext
 
23364
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23365
  (eval $ac_link) 2>&5
 
23366
  ac_status=$?
 
23367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23368
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23370
  (eval $ac_try) 2>&5
 
23371
  ac_status=$?
 
23372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23373
  (exit $ac_status); }; }; then
8208
23374
   with_value_sizeof=`cat conftestval`; rm -f conftestval
8209
23375
else
8210
 
  echo "configure: failed program was:" >&5
8211
 
  cat conftest.$ac_ext >&5
8212
 
fi
8213
 
rm -fr conftest*
8214
 
fi
 
23376
  echo "$as_me: program exited with status $ac_status" >&5
 
23377
echo "$as_me: failed program was:" >&5
 
23378
sed 's/^/| /' conftest.$ac_ext >&5
8215
23379
 
8216
23380
fi
8217
 
echo "$ac_t""${with_value_sizeof} bytes" 1>&6
8218
 
cat >> confdefs.h <<EOF
 
23381
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23382
fi
 
23383
fi
 
23384
echo "$as_me:$LINENO: result: ${with_value_sizeof} bytes" >&5
 
23385
echo "${ECHO_T}${with_value_sizeof} bytes" >&6
 
23386
cat >>confdefs.h <<_ACEOF
8219
23387
#define rep_PTR_SIZED_INT_SIZEOF ${with_value_sizeof}
8220
 
EOF
8221
 
 
8222
 
 
8223
 
echo $ac_n "checking for value type constant suffix""... $ac_c" 1>&6
8224
 
echo "configure:8225: checking for value type constant suffix" >&5
 
23388
_ACEOF
 
23389
 
 
23390
 
 
23391
echo "$as_me:$LINENO: checking for value type constant suffix" >&5
 
23392
echo $ECHO_N "checking for value type constant suffix... $ECHO_C" >&6
8225
23393
case "${with_value_type}" in
8226
23394
  "long long int"|"long long")
8227
23395
    rep_value_suffix=LL
8230
23398
        rep_value_suffix=L
8231
23399
    ;;
8232
23400
esac
8233
 
echo "$ac_t""${rep_value_suffix}" 1>&6
8234
 
cat >> confdefs.h <<EOF
 
23401
echo "$as_me:$LINENO: result: ${rep_value_suffix}" >&5
 
23402
echo "${ECHO_T}${rep_value_suffix}" >&6
 
23403
cat >>confdefs.h <<_ACEOF
8235
23404
#define rep_PTR_SIZED_INT_SUFFIX ${rep_value_suffix}
8236
 
EOF
8237
 
 
8238
 
 
8239
 
echo $ac_n "checking for value type printf conversion""... $ac_c" 1>&6
8240
 
echo "configure:8241: checking for value type printf conversion" >&5
 
23405
_ACEOF
 
23406
 
 
23407
 
 
23408
echo "$as_me:$LINENO: checking for value type printf conversion" >&5
 
23409
echo $ECHO_N "checking for value type printf conversion... $ECHO_C" >&6
8241
23410
case "${with_value_type}" in
8242
23411
  "long long int"|"long long")
8243
23412
        rep_value_conv=ll
8249
23418
    rep_value_conv=
8250
23419
    ;;
8251
23420
esac
8252
 
echo "$ac_t""${rep_value_conv}" 1>&6
8253
 
cat >> confdefs.h <<EOF
 
23421
echo "$as_me:$LINENO: result: ${rep_value_conv}" >&5
 
23422
echo "${ECHO_T}${rep_value_conv}" >&6
 
23423
cat >>confdefs.h <<_ACEOF
8254
23424
#define rep_PTR_SIZED_INT_CONV "${rep_value_conv}"
8255
 
EOF
8256
 
 
8257
 
 
8258
 
echo $ac_n "checking size of long""... $ac_c" 1>&6
8259
 
echo "configure:8260: checking size of long" >&5
8260
 
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
8261
 
  echo $ac_n "(cached) $ac_c" 1>&6
8262
 
else
8263
 
  if test "$cross_compiling" = yes; then
8264
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8265
 
else
8266
 
  cat > conftest.$ac_ext <<EOF
8267
 
#line 8268 "configure"
8268
 
#include "confdefs.h"
 
23425
_ACEOF
 
23426
 
 
23427
 
 
23428
echo "$as_me:$LINENO: checking for long" >&5
 
23429
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
23430
if test "${ac_cv_type_long+set}" = set; then
 
23431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23432
else
 
23433
  cat >conftest.$ac_ext <<_ACEOF
 
23434
#line $LINENO "configure"
 
23435
/* confdefs.h.  */
 
23436
_ACEOF
 
23437
cat confdefs.h >>conftest.$ac_ext
 
23438
cat >>conftest.$ac_ext <<_ACEOF
 
23439
/* end confdefs.h.  */
 
23440
$ac_includes_default
 
23441
int
 
23442
main ()
 
23443
{
 
23444
if ((long *) 0)
 
23445
  return 0;
 
23446
if (sizeof (long))
 
23447
  return 0;
 
23448
  ;
 
23449
  return 0;
 
23450
}
 
23451
_ACEOF
 
23452
rm -f conftest.$ac_objext
 
23453
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23454
  (eval $ac_compile) 2>&5
 
23455
  ac_status=$?
 
23456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23457
  (exit $ac_status); } &&
 
23458
         { ac_try='test -s conftest.$ac_objext'
 
23459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23460
  (eval $ac_try) 2>&5
 
23461
  ac_status=$?
 
23462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23463
  (exit $ac_status); }; }; then
 
23464
  ac_cv_type_long=yes
 
23465
else
 
23466
  echo "$as_me: failed program was:" >&5
 
23467
sed 's/^/| /' conftest.$ac_ext >&5
 
23468
 
 
23469
ac_cv_type_long=no
 
23470
fi
 
23471
rm -f conftest.$ac_objext conftest.$ac_ext
 
23472
fi
 
23473
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
23474
echo "${ECHO_T}$ac_cv_type_long" >&6
 
23475
 
 
23476
echo "$as_me:$LINENO: checking size of long" >&5
 
23477
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
23478
if test "${ac_cv_sizeof_long+set}" = set; then
 
23479
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23480
else
 
23481
  if test "$ac_cv_type_long" = yes; then
 
23482
  # The cast to unsigned long works around a bug in the HP C Compiler
 
23483
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
23484
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
23485
  # This bug is HP SR number 8606223364.
 
23486
  if test "$cross_compiling" = yes; then
 
23487
  # Depending upon the size, compute the lo and hi bounds.
 
23488
cat >conftest.$ac_ext <<_ACEOF
 
23489
#line $LINENO "configure"
 
23490
/* confdefs.h.  */
 
23491
_ACEOF
 
23492
cat confdefs.h >>conftest.$ac_ext
 
23493
cat >>conftest.$ac_ext <<_ACEOF
 
23494
/* end confdefs.h.  */
 
23495
$ac_includes_default
 
23496
int
 
23497
main ()
 
23498
{
 
23499
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
23500
test_array [0] = 0
 
23501
 
 
23502
  ;
 
23503
  return 0;
 
23504
}
 
23505
_ACEOF
 
23506
rm -f conftest.$ac_objext
 
23507
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23508
  (eval $ac_compile) 2>&5
 
23509
  ac_status=$?
 
23510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23511
  (exit $ac_status); } &&
 
23512
         { ac_try='test -s conftest.$ac_objext'
 
23513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23514
  (eval $ac_try) 2>&5
 
23515
  ac_status=$?
 
23516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23517
  (exit $ac_status); }; }; then
 
23518
  ac_lo=0 ac_mid=0
 
23519
  while :; do
 
23520
    cat >conftest.$ac_ext <<_ACEOF
 
23521
#line $LINENO "configure"
 
23522
/* confdefs.h.  */
 
23523
_ACEOF
 
23524
cat confdefs.h >>conftest.$ac_ext
 
23525
cat >>conftest.$ac_ext <<_ACEOF
 
23526
/* end confdefs.h.  */
 
23527
$ac_includes_default
 
23528
int
 
23529
main ()
 
23530
{
 
23531
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
23532
test_array [0] = 0
 
23533
 
 
23534
  ;
 
23535
  return 0;
 
23536
}
 
23537
_ACEOF
 
23538
rm -f conftest.$ac_objext
 
23539
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23540
  (eval $ac_compile) 2>&5
 
23541
  ac_status=$?
 
23542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23543
  (exit $ac_status); } &&
 
23544
         { ac_try='test -s conftest.$ac_objext'
 
23545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23546
  (eval $ac_try) 2>&5
 
23547
  ac_status=$?
 
23548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23549
  (exit $ac_status); }; }; then
 
23550
  ac_hi=$ac_mid; break
 
23551
else
 
23552
  echo "$as_me: failed program was:" >&5
 
23553
sed 's/^/| /' conftest.$ac_ext >&5
 
23554
 
 
23555
ac_lo=`expr $ac_mid + 1`
 
23556
                    if test $ac_lo -le $ac_mid; then
 
23557
                      ac_lo= ac_hi=
 
23558
                      break
 
23559
                    fi
 
23560
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
23561
fi
 
23562
rm -f conftest.$ac_objext conftest.$ac_ext
 
23563
  done
 
23564
else
 
23565
  echo "$as_me: failed program was:" >&5
 
23566
sed 's/^/| /' conftest.$ac_ext >&5
 
23567
 
 
23568
cat >conftest.$ac_ext <<_ACEOF
 
23569
#line $LINENO "configure"
 
23570
/* confdefs.h.  */
 
23571
_ACEOF
 
23572
cat confdefs.h >>conftest.$ac_ext
 
23573
cat >>conftest.$ac_ext <<_ACEOF
 
23574
/* end confdefs.h.  */
 
23575
$ac_includes_default
 
23576
int
 
23577
main ()
 
23578
{
 
23579
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
23580
test_array [0] = 0
 
23581
 
 
23582
  ;
 
23583
  return 0;
 
23584
}
 
23585
_ACEOF
 
23586
rm -f conftest.$ac_objext
 
23587
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23588
  (eval $ac_compile) 2>&5
 
23589
  ac_status=$?
 
23590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23591
  (exit $ac_status); } &&
 
23592
         { ac_try='test -s conftest.$ac_objext'
 
23593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23594
  (eval $ac_try) 2>&5
 
23595
  ac_status=$?
 
23596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23597
  (exit $ac_status); }; }; then
 
23598
  ac_hi=-1 ac_mid=-1
 
23599
  while :; do
 
23600
    cat >conftest.$ac_ext <<_ACEOF
 
23601
#line $LINENO "configure"
 
23602
/* confdefs.h.  */
 
23603
_ACEOF
 
23604
cat confdefs.h >>conftest.$ac_ext
 
23605
cat >>conftest.$ac_ext <<_ACEOF
 
23606
/* end confdefs.h.  */
 
23607
$ac_includes_default
 
23608
int
 
23609
main ()
 
23610
{
 
23611
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
23612
test_array [0] = 0
 
23613
 
 
23614
  ;
 
23615
  return 0;
 
23616
}
 
23617
_ACEOF
 
23618
rm -f conftest.$ac_objext
 
23619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23620
  (eval $ac_compile) 2>&5
 
23621
  ac_status=$?
 
23622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23623
  (exit $ac_status); } &&
 
23624
         { ac_try='test -s conftest.$ac_objext'
 
23625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23626
  (eval $ac_try) 2>&5
 
23627
  ac_status=$?
 
23628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23629
  (exit $ac_status); }; }; then
 
23630
  ac_lo=$ac_mid; break
 
23631
else
 
23632
  echo "$as_me: failed program was:" >&5
 
23633
sed 's/^/| /' conftest.$ac_ext >&5
 
23634
 
 
23635
ac_hi=`expr '(' $ac_mid ')' - 1`
 
23636
                       if test $ac_mid -le $ac_hi; then
 
23637
                         ac_lo= ac_hi=
 
23638
                         break
 
23639
                       fi
 
23640
                       ac_mid=`expr 2 '*' $ac_mid`
 
23641
fi
 
23642
rm -f conftest.$ac_objext conftest.$ac_ext
 
23643
  done
 
23644
else
 
23645
  echo "$as_me: failed program was:" >&5
 
23646
sed 's/^/| /' conftest.$ac_ext >&5
 
23647
 
 
23648
ac_lo= ac_hi=
 
23649
fi
 
23650
rm -f conftest.$ac_objext conftest.$ac_ext
 
23651
fi
 
23652
rm -f conftest.$ac_objext conftest.$ac_ext
 
23653
# Binary search between lo and hi bounds.
 
23654
while test "x$ac_lo" != "x$ac_hi"; do
 
23655
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
23656
  cat >conftest.$ac_ext <<_ACEOF
 
23657
#line $LINENO "configure"
 
23658
/* confdefs.h.  */
 
23659
_ACEOF
 
23660
cat confdefs.h >>conftest.$ac_ext
 
23661
cat >>conftest.$ac_ext <<_ACEOF
 
23662
/* end confdefs.h.  */
 
23663
$ac_includes_default
 
23664
int
 
23665
main ()
 
23666
{
 
23667
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
23668
test_array [0] = 0
 
23669
 
 
23670
  ;
 
23671
  return 0;
 
23672
}
 
23673
_ACEOF
 
23674
rm -f conftest.$ac_objext
 
23675
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23676
  (eval $ac_compile) 2>&5
 
23677
  ac_status=$?
 
23678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23679
  (exit $ac_status); } &&
 
23680
         { ac_try='test -s conftest.$ac_objext'
 
23681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23682
  (eval $ac_try) 2>&5
 
23683
  ac_status=$?
 
23684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23685
  (exit $ac_status); }; }; then
 
23686
  ac_hi=$ac_mid
 
23687
else
 
23688
  echo "$as_me: failed program was:" >&5
 
23689
sed 's/^/| /' conftest.$ac_ext >&5
 
23690
 
 
23691
ac_lo=`expr '(' $ac_mid ')' + 1`
 
23692
fi
 
23693
rm -f conftest.$ac_objext conftest.$ac_ext
 
23694
done
 
23695
case $ac_lo in
 
23696
?*) ac_cv_sizeof_long=$ac_lo;;
 
23697
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
23698
See \`config.log' for more details." >&5
 
23699
echo "$as_me: error: cannot compute sizeof (long), 77
 
23700
See \`config.log' for more details." >&2;}
 
23701
   { (exit 1); exit 1; }; } ;;
 
23702
esac
 
23703
else
 
23704
  if test "$cross_compiling" = yes; then
 
23705
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
23706
See \`config.log' for more details." >&5
 
23707
echo "$as_me: error: cannot run test program while cross compiling
 
23708
See \`config.log' for more details." >&2;}
 
23709
   { (exit 1); exit 1; }; }
 
23710
else
 
23711
  cat >conftest.$ac_ext <<_ACEOF
 
23712
#line $LINENO "configure"
 
23713
/* confdefs.h.  */
 
23714
_ACEOF
 
23715
cat confdefs.h >>conftest.$ac_ext
 
23716
cat >>conftest.$ac_ext <<_ACEOF
 
23717
/* end confdefs.h.  */
 
23718
$ac_includes_default
 
23719
long longval () { return (long) (sizeof (long)); }
 
23720
unsigned long ulongval () { return (long) (sizeof (long)); }
8269
23721
#include <stdio.h>
8270
 
main()
 
23722
#include <stdlib.h>
 
23723
int
 
23724
main ()
8271
23725
{
8272
 
  FILE *f=fopen("conftestval", "w");
8273
 
  if (!f) exit(1);
8274
 
  fprintf(f, "%d\n", sizeof(long));
8275
 
  exit(0);
 
23726
 
 
23727
  FILE *f = fopen ("conftest.val", "w");
 
23728
  if (! f)
 
23729
    exit (1);
 
23730
  if (((long) (sizeof (long))) < 0)
 
23731
    {
 
23732
      long i = longval ();
 
23733
      if (i != ((long) (sizeof (long))))
 
23734
        exit (1);
 
23735
      fprintf (f, "%ld\n", i);
 
23736
    }
 
23737
  else
 
23738
    {
 
23739
      unsigned long i = ulongval ();
 
23740
      if (i != ((long) (sizeof (long))))
 
23741
        exit (1);
 
23742
      fprintf (f, "%lu\n", i);
 
23743
    }
 
23744
  exit (ferror (f) || fclose (f) != 0);
 
23745
 
 
23746
  ;
 
23747
  return 0;
8276
23748
}
8277
 
EOF
8278
 
if { (eval echo configure:8279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8279
 
then
8280
 
  ac_cv_sizeof_long=`cat conftestval`
8281
 
else
8282
 
  echo "configure: failed program was:" >&5
8283
 
  cat conftest.$ac_ext >&5
8284
 
  rm -fr conftest*
 
23749
_ACEOF
 
23750
rm -f conftest$ac_exeext
 
23751
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23752
  (eval $ac_link) 2>&5
 
23753
  ac_status=$?
 
23754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23755
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23757
  (eval $ac_try) 2>&5
 
23758
  ac_status=$?
 
23759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23760
  (exit $ac_status); }; }; then
 
23761
  ac_cv_sizeof_long=`cat conftest.val`
 
23762
else
 
23763
  echo "$as_me: program exited with status $ac_status" >&5
 
23764
echo "$as_me: failed program was:" >&5
 
23765
sed 's/^/| /' conftest.$ac_ext >&5
 
23766
 
 
23767
( exit $ac_status )
 
23768
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
23769
See \`config.log' for more details." >&5
 
23770
echo "$as_me: error: cannot compute sizeof (long), 77
 
23771
See \`config.log' for more details." >&2;}
 
23772
   { (exit 1); exit 1; }; }
 
23773
fi
 
23774
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23775
fi
 
23776
fi
 
23777
rm -f conftest.val
 
23778
else
8285
23779
  ac_cv_sizeof_long=0
8286
23780
fi
8287
 
rm -fr conftest*
8288
 
fi
8289
 
 
8290
 
fi
8291
 
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
8292
 
cat >> confdefs.h <<EOF
 
23781
fi
 
23782
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
23783
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
23784
cat >>confdefs.h <<_ACEOF
8293
23785
#define SIZEOF_LONG $ac_cv_sizeof_long
8294
 
EOF
8295
 
 
8296
 
 
8297
 
 
8298
 
echo $ac_n "checking for long long int""... $ac_c" 1>&6
8299
 
echo "configure:8300: checking for long long int" >&5
8300
 
cat > conftest.$ac_ext <<EOF
8301
 
#line 8302 "configure"
8302
 
#include "confdefs.h"
8303
 
 
8304
 
int main() {
8305
 
long long int foo = 42;
8306
 
; return 0; }
8307
 
EOF
8308
 
if { (eval echo configure:8309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8309
 
  rm -rf conftest*
8310
 
  echo "$ac_t""yes" 1>&6
8311
 
                cat >> confdefs.h <<\EOF
8312
 
#define rep_HAVE_LONG_LONG 1
8313
 
EOF
8314
 
 
8315
 
                echo $ac_n "checking size of long long""... $ac_c" 1>&6
8316
 
echo "configure:8317: checking size of long long" >&5
8317
 
if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
8318
 
  echo $ac_n "(cached) $ac_c" 1>&6
8319
 
else
8320
 
  if test "$cross_compiling" = yes; then
8321
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
8322
 
else
8323
 
  cat > conftest.$ac_ext <<EOF
8324
 
#line 8325 "configure"
8325
 
#include "confdefs.h"
 
23786
_ACEOF
 
23787
 
 
23788
 
 
23789
echo "$as_me:$LINENO: checking for long long" >&5
 
23790
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
23791
if test "${ac_cv_type_long_long+set}" = set; then
 
23792
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23793
else
 
23794
  cat >conftest.$ac_ext <<_ACEOF
 
23795
#line $LINENO "configure"
 
23796
/* confdefs.h.  */
 
23797
_ACEOF
 
23798
cat confdefs.h >>conftest.$ac_ext
 
23799
cat >>conftest.$ac_ext <<_ACEOF
 
23800
/* end confdefs.h.  */
 
23801
$ac_includes_default
 
23802
int
 
23803
main ()
 
23804
{
 
23805
if ((long long *) 0)
 
23806
  return 0;
 
23807
if (sizeof (long long))
 
23808
  return 0;
 
23809
  ;
 
23810
  return 0;
 
23811
}
 
23812
_ACEOF
 
23813
rm -f conftest.$ac_objext
 
23814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23815
  (eval $ac_compile) 2>&5
 
23816
  ac_status=$?
 
23817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23818
  (exit $ac_status); } &&
 
23819
         { ac_try='test -s conftest.$ac_objext'
 
23820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23821
  (eval $ac_try) 2>&5
 
23822
  ac_status=$?
 
23823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23824
  (exit $ac_status); }; }; then
 
23825
  ac_cv_type_long_long=yes
 
23826
else
 
23827
  echo "$as_me: failed program was:" >&5
 
23828
sed 's/^/| /' conftest.$ac_ext >&5
 
23829
 
 
23830
ac_cv_type_long_long=no
 
23831
fi
 
23832
rm -f conftest.$ac_objext conftest.$ac_ext
 
23833
fi
 
23834
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
23835
echo "${ECHO_T}$ac_cv_type_long_long" >&6
 
23836
 
 
23837
echo "$as_me:$LINENO: checking size of long long" >&5
 
23838
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
 
23839
if test "${ac_cv_sizeof_long_long+set}" = set; then
 
23840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23841
else
 
23842
  if test "$ac_cv_type_long_long" = yes; then
 
23843
  # The cast to unsigned long works around a bug in the HP C Compiler
 
23844
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
23845
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
23846
  # This bug is HP SR number 8606223364.
 
23847
  if test "$cross_compiling" = yes; then
 
23848
  # Depending upon the size, compute the lo and hi bounds.
 
23849
cat >conftest.$ac_ext <<_ACEOF
 
23850
#line $LINENO "configure"
 
23851
/* confdefs.h.  */
 
23852
_ACEOF
 
23853
cat confdefs.h >>conftest.$ac_ext
 
23854
cat >>conftest.$ac_ext <<_ACEOF
 
23855
/* end confdefs.h.  */
 
23856
$ac_includes_default
 
23857
int
 
23858
main ()
 
23859
{
 
23860
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
 
23861
test_array [0] = 0
 
23862
 
 
23863
  ;
 
23864
  return 0;
 
23865
}
 
23866
_ACEOF
 
23867
rm -f conftest.$ac_objext
 
23868
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23869
  (eval $ac_compile) 2>&5
 
23870
  ac_status=$?
 
23871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23872
  (exit $ac_status); } &&
 
23873
         { ac_try='test -s conftest.$ac_objext'
 
23874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23875
  (eval $ac_try) 2>&5
 
23876
  ac_status=$?
 
23877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23878
  (exit $ac_status); }; }; then
 
23879
  ac_lo=0 ac_mid=0
 
23880
  while :; do
 
23881
    cat >conftest.$ac_ext <<_ACEOF
 
23882
#line $LINENO "configure"
 
23883
/* confdefs.h.  */
 
23884
_ACEOF
 
23885
cat confdefs.h >>conftest.$ac_ext
 
23886
cat >>conftest.$ac_ext <<_ACEOF
 
23887
/* end confdefs.h.  */
 
23888
$ac_includes_default
 
23889
int
 
23890
main ()
 
23891
{
 
23892
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
23893
test_array [0] = 0
 
23894
 
 
23895
  ;
 
23896
  return 0;
 
23897
}
 
23898
_ACEOF
 
23899
rm -f conftest.$ac_objext
 
23900
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23901
  (eval $ac_compile) 2>&5
 
23902
  ac_status=$?
 
23903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23904
  (exit $ac_status); } &&
 
23905
         { ac_try='test -s conftest.$ac_objext'
 
23906
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23907
  (eval $ac_try) 2>&5
 
23908
  ac_status=$?
 
23909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23910
  (exit $ac_status); }; }; then
 
23911
  ac_hi=$ac_mid; break
 
23912
else
 
23913
  echo "$as_me: failed program was:" >&5
 
23914
sed 's/^/| /' conftest.$ac_ext >&5
 
23915
 
 
23916
ac_lo=`expr $ac_mid + 1`
 
23917
                    if test $ac_lo -le $ac_mid; then
 
23918
                      ac_lo= ac_hi=
 
23919
                      break
 
23920
                    fi
 
23921
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
23922
fi
 
23923
rm -f conftest.$ac_objext conftest.$ac_ext
 
23924
  done
 
23925
else
 
23926
  echo "$as_me: failed program was:" >&5
 
23927
sed 's/^/| /' conftest.$ac_ext >&5
 
23928
 
 
23929
cat >conftest.$ac_ext <<_ACEOF
 
23930
#line $LINENO "configure"
 
23931
/* confdefs.h.  */
 
23932
_ACEOF
 
23933
cat confdefs.h >>conftest.$ac_ext
 
23934
cat >>conftest.$ac_ext <<_ACEOF
 
23935
/* end confdefs.h.  */
 
23936
$ac_includes_default
 
23937
int
 
23938
main ()
 
23939
{
 
23940
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
 
23941
test_array [0] = 0
 
23942
 
 
23943
  ;
 
23944
  return 0;
 
23945
}
 
23946
_ACEOF
 
23947
rm -f conftest.$ac_objext
 
23948
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23949
  (eval $ac_compile) 2>&5
 
23950
  ac_status=$?
 
23951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23952
  (exit $ac_status); } &&
 
23953
         { ac_try='test -s conftest.$ac_objext'
 
23954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23955
  (eval $ac_try) 2>&5
 
23956
  ac_status=$?
 
23957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23958
  (exit $ac_status); }; }; then
 
23959
  ac_hi=-1 ac_mid=-1
 
23960
  while :; do
 
23961
    cat >conftest.$ac_ext <<_ACEOF
 
23962
#line $LINENO "configure"
 
23963
/* confdefs.h.  */
 
23964
_ACEOF
 
23965
cat confdefs.h >>conftest.$ac_ext
 
23966
cat >>conftest.$ac_ext <<_ACEOF
 
23967
/* end confdefs.h.  */
 
23968
$ac_includes_default
 
23969
int
 
23970
main ()
 
23971
{
 
23972
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
 
23973
test_array [0] = 0
 
23974
 
 
23975
  ;
 
23976
  return 0;
 
23977
}
 
23978
_ACEOF
 
23979
rm -f conftest.$ac_objext
 
23980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23981
  (eval $ac_compile) 2>&5
 
23982
  ac_status=$?
 
23983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23984
  (exit $ac_status); } &&
 
23985
         { ac_try='test -s conftest.$ac_objext'
 
23986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23987
  (eval $ac_try) 2>&5
 
23988
  ac_status=$?
 
23989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23990
  (exit $ac_status); }; }; then
 
23991
  ac_lo=$ac_mid; break
 
23992
else
 
23993
  echo "$as_me: failed program was:" >&5
 
23994
sed 's/^/| /' conftest.$ac_ext >&5
 
23995
 
 
23996
ac_hi=`expr '(' $ac_mid ')' - 1`
 
23997
                       if test $ac_mid -le $ac_hi; then
 
23998
                         ac_lo= ac_hi=
 
23999
                         break
 
24000
                       fi
 
24001
                       ac_mid=`expr 2 '*' $ac_mid`
 
24002
fi
 
24003
rm -f conftest.$ac_objext conftest.$ac_ext
 
24004
  done
 
24005
else
 
24006
  echo "$as_me: failed program was:" >&5
 
24007
sed 's/^/| /' conftest.$ac_ext >&5
 
24008
 
 
24009
ac_lo= ac_hi=
 
24010
fi
 
24011
rm -f conftest.$ac_objext conftest.$ac_ext
 
24012
fi
 
24013
rm -f conftest.$ac_objext conftest.$ac_ext
 
24014
# Binary search between lo and hi bounds.
 
24015
while test "x$ac_lo" != "x$ac_hi"; do
 
24016
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24017
  cat >conftest.$ac_ext <<_ACEOF
 
24018
#line $LINENO "configure"
 
24019
/* confdefs.h.  */
 
24020
_ACEOF
 
24021
cat confdefs.h >>conftest.$ac_ext
 
24022
cat >>conftest.$ac_ext <<_ACEOF
 
24023
/* end confdefs.h.  */
 
24024
$ac_includes_default
 
24025
int
 
24026
main ()
 
24027
{
 
24028
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
24029
test_array [0] = 0
 
24030
 
 
24031
  ;
 
24032
  return 0;
 
24033
}
 
24034
_ACEOF
 
24035
rm -f conftest.$ac_objext
 
24036
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24037
  (eval $ac_compile) 2>&5
 
24038
  ac_status=$?
 
24039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24040
  (exit $ac_status); } &&
 
24041
         { ac_try='test -s conftest.$ac_objext'
 
24042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24043
  (eval $ac_try) 2>&5
 
24044
  ac_status=$?
 
24045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24046
  (exit $ac_status); }; }; then
 
24047
  ac_hi=$ac_mid
 
24048
else
 
24049
  echo "$as_me: failed program was:" >&5
 
24050
sed 's/^/| /' conftest.$ac_ext >&5
 
24051
 
 
24052
ac_lo=`expr '(' $ac_mid ')' + 1`
 
24053
fi
 
24054
rm -f conftest.$ac_objext conftest.$ac_ext
 
24055
done
 
24056
case $ac_lo in
 
24057
?*) ac_cv_sizeof_long_long=$ac_lo;;
 
24058
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
24059
See \`config.log' for more details." >&5
 
24060
echo "$as_me: error: cannot compute sizeof (long long), 77
 
24061
See \`config.log' for more details." >&2;}
 
24062
   { (exit 1); exit 1; }; } ;;
 
24063
esac
 
24064
else
 
24065
  if test "$cross_compiling" = yes; then
 
24066
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24067
See \`config.log' for more details." >&5
 
24068
echo "$as_me: error: cannot run test program while cross compiling
 
24069
See \`config.log' for more details." >&2;}
 
24070
   { (exit 1); exit 1; }; }
 
24071
else
 
24072
  cat >conftest.$ac_ext <<_ACEOF
 
24073
#line $LINENO "configure"
 
24074
/* confdefs.h.  */
 
24075
_ACEOF
 
24076
cat confdefs.h >>conftest.$ac_ext
 
24077
cat >>conftest.$ac_ext <<_ACEOF
 
24078
/* end confdefs.h.  */
 
24079
$ac_includes_default
 
24080
long longval () { return (long) (sizeof (long long)); }
 
24081
unsigned long ulongval () { return (long) (sizeof (long long)); }
8326
24082
#include <stdio.h>
8327
 
main()
 
24083
#include <stdlib.h>
 
24084
int
 
24085
main ()
8328
24086
{
8329
 
  FILE *f=fopen("conftestval", "w");
8330
 
  if (!f) exit(1);
8331
 
  fprintf(f, "%d\n", sizeof(long long));
8332
 
  exit(0);
 
24087
 
 
24088
  FILE *f = fopen ("conftest.val", "w");
 
24089
  if (! f)
 
24090
    exit (1);
 
24091
  if (((long) (sizeof (long long))) < 0)
 
24092
    {
 
24093
      long i = longval ();
 
24094
      if (i != ((long) (sizeof (long long))))
 
24095
        exit (1);
 
24096
      fprintf (f, "%ld\n", i);
 
24097
    }
 
24098
  else
 
24099
    {
 
24100
      unsigned long i = ulongval ();
 
24101
      if (i != ((long) (sizeof (long long))))
 
24102
        exit (1);
 
24103
      fprintf (f, "%lu\n", i);
 
24104
    }
 
24105
  exit (ferror (f) || fclose (f) != 0);
 
24106
 
 
24107
  ;
 
24108
  return 0;
8333
24109
}
8334
 
EOF
8335
 
if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8336
 
then
8337
 
  ac_cv_sizeof_long_long=`cat conftestval`
8338
 
else
8339
 
  echo "configure: failed program was:" >&5
8340
 
  cat conftest.$ac_ext >&5
8341
 
  rm -fr conftest*
 
24110
_ACEOF
 
24111
rm -f conftest$ac_exeext
 
24112
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24113
  (eval $ac_link) 2>&5
 
24114
  ac_status=$?
 
24115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24116
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24118
  (eval $ac_try) 2>&5
 
24119
  ac_status=$?
 
24120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24121
  (exit $ac_status); }; }; then
 
24122
  ac_cv_sizeof_long_long=`cat conftest.val`
 
24123
else
 
24124
  echo "$as_me: program exited with status $ac_status" >&5
 
24125
echo "$as_me: failed program was:" >&5
 
24126
sed 's/^/| /' conftest.$ac_ext >&5
 
24127
 
 
24128
( exit $ac_status )
 
24129
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
24130
See \`config.log' for more details." >&5
 
24131
echo "$as_me: error: cannot compute sizeof (long long), 77
 
24132
See \`config.log' for more details." >&2;}
 
24133
   { (exit 1); exit 1; }; }
 
24134
fi
 
24135
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24136
fi
 
24137
fi
 
24138
rm -f conftest.val
 
24139
else
8342
24140
  ac_cv_sizeof_long_long=0
8343
24141
fi
8344
 
rm -fr conftest*
8345
 
fi
8346
 
 
8347
 
fi
8348
 
echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
8349
 
cat >> confdefs.h <<EOF
 
24142
fi
 
24143
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
24144
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
 
24145
cat >>confdefs.h <<_ACEOF
8350
24146
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8351
 
EOF
8352
 
 
8353
 
 
8354
 
else
8355
 
  echo "configure: failed program was:" >&5
8356
 
  cat conftest.$ac_ext >&5
8357
 
  rm -rf conftest*
8358
 
  echo "$ac_t""no" 1>&6
8359
 
                cat >> confdefs.h <<\EOF
8360
 
#define SIZEOF_LONG_LONG SIZEOF_LONG
8361
 
EOF
8362
 
 
8363
 
fi
8364
 
rm -f conftest*
 
24147
_ACEOF
 
24148
 
 
24149
 
 
24150
echo "$as_me:$LINENO: checking for void *" >&5
 
24151
echo $ECHO_N "checking for void *... $ECHO_C" >&6
 
24152
if test "${ac_cv_type_void_p+set}" = set; then
 
24153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24154
else
 
24155
  cat >conftest.$ac_ext <<_ACEOF
 
24156
#line $LINENO "configure"
 
24157
/* confdefs.h.  */
 
24158
_ACEOF
 
24159
cat confdefs.h >>conftest.$ac_ext
 
24160
cat >>conftest.$ac_ext <<_ACEOF
 
24161
/* end confdefs.h.  */
 
24162
$ac_includes_default
 
24163
int
 
24164
main ()
 
24165
{
 
24166
if ((void * *) 0)
 
24167
  return 0;
 
24168
if (sizeof (void *))
 
24169
  return 0;
 
24170
  ;
 
24171
  return 0;
 
24172
}
 
24173
_ACEOF
 
24174
rm -f conftest.$ac_objext
 
24175
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24176
  (eval $ac_compile) 2>&5
 
24177
  ac_status=$?
 
24178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24179
  (exit $ac_status); } &&
 
24180
         { ac_try='test -s conftest.$ac_objext'
 
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
  ac_cv_type_void_p=yes
 
24187
else
 
24188
  echo "$as_me: failed program was:" >&5
 
24189
sed 's/^/| /' conftest.$ac_ext >&5
 
24190
 
 
24191
ac_cv_type_void_p=no
 
24192
fi
 
24193
rm -f conftest.$ac_objext conftest.$ac_ext
 
24194
fi
 
24195
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
 
24196
echo "${ECHO_T}$ac_cv_type_void_p" >&6
 
24197
 
 
24198
echo "$as_me:$LINENO: checking size of void *" >&5
 
24199
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
 
24200
if test "${ac_cv_sizeof_void_p+set}" = set; then
 
24201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24202
else
 
24203
  if test "$ac_cv_type_void_p" = yes; then
 
24204
  # The cast to unsigned long works around a bug in the HP C Compiler
 
24205
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
24206
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
24207
  # This bug is HP SR number 8606223364.
 
24208
  if test "$cross_compiling" = yes; then
 
24209
  # Depending upon the size, compute the lo and hi bounds.
 
24210
cat >conftest.$ac_ext <<_ACEOF
 
24211
#line $LINENO "configure"
 
24212
/* confdefs.h.  */
 
24213
_ACEOF
 
24214
cat confdefs.h >>conftest.$ac_ext
 
24215
cat >>conftest.$ac_ext <<_ACEOF
 
24216
/* end confdefs.h.  */
 
24217
$ac_includes_default
 
24218
int
 
24219
main ()
 
24220
{
 
24221
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
 
24222
test_array [0] = 0
 
24223
 
 
24224
  ;
 
24225
  return 0;
 
24226
}
 
24227
_ACEOF
 
24228
rm -f conftest.$ac_objext
 
24229
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24230
  (eval $ac_compile) 2>&5
 
24231
  ac_status=$?
 
24232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24233
  (exit $ac_status); } &&
 
24234
         { ac_try='test -s conftest.$ac_objext'
 
24235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24236
  (eval $ac_try) 2>&5
 
24237
  ac_status=$?
 
24238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24239
  (exit $ac_status); }; }; then
 
24240
  ac_lo=0 ac_mid=0
 
24241
  while :; do
 
24242
    cat >conftest.$ac_ext <<_ACEOF
 
24243
#line $LINENO "configure"
 
24244
/* confdefs.h.  */
 
24245
_ACEOF
 
24246
cat confdefs.h >>conftest.$ac_ext
 
24247
cat >>conftest.$ac_ext <<_ACEOF
 
24248
/* end confdefs.h.  */
 
24249
$ac_includes_default
 
24250
int
 
24251
main ()
 
24252
{
 
24253
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
 
24254
test_array [0] = 0
 
24255
 
 
24256
  ;
 
24257
  return 0;
 
24258
}
 
24259
_ACEOF
 
24260
rm -f conftest.$ac_objext
 
24261
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24262
  (eval $ac_compile) 2>&5
 
24263
  ac_status=$?
 
24264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24265
  (exit $ac_status); } &&
 
24266
         { ac_try='test -s conftest.$ac_objext'
 
24267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24268
  (eval $ac_try) 2>&5
 
24269
  ac_status=$?
 
24270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24271
  (exit $ac_status); }; }; then
 
24272
  ac_hi=$ac_mid; break
 
24273
else
 
24274
  echo "$as_me: failed program was:" >&5
 
24275
sed 's/^/| /' conftest.$ac_ext >&5
 
24276
 
 
24277
ac_lo=`expr $ac_mid + 1`
 
24278
                    if test $ac_lo -le $ac_mid; then
 
24279
                      ac_lo= ac_hi=
 
24280
                      break
 
24281
                    fi
 
24282
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
24283
fi
 
24284
rm -f conftest.$ac_objext conftest.$ac_ext
 
24285
  done
 
24286
else
 
24287
  echo "$as_me: failed program was:" >&5
 
24288
sed 's/^/| /' conftest.$ac_ext >&5
 
24289
 
 
24290
cat >conftest.$ac_ext <<_ACEOF
 
24291
#line $LINENO "configure"
 
24292
/* confdefs.h.  */
 
24293
_ACEOF
 
24294
cat confdefs.h >>conftest.$ac_ext
 
24295
cat >>conftest.$ac_ext <<_ACEOF
 
24296
/* end confdefs.h.  */
 
24297
$ac_includes_default
 
24298
int
 
24299
main ()
 
24300
{
 
24301
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
 
24302
test_array [0] = 0
 
24303
 
 
24304
  ;
 
24305
  return 0;
 
24306
}
 
24307
_ACEOF
 
24308
rm -f conftest.$ac_objext
 
24309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24310
  (eval $ac_compile) 2>&5
 
24311
  ac_status=$?
 
24312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24313
  (exit $ac_status); } &&
 
24314
         { ac_try='test -s conftest.$ac_objext'
 
24315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24316
  (eval $ac_try) 2>&5
 
24317
  ac_status=$?
 
24318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24319
  (exit $ac_status); }; }; then
 
24320
  ac_hi=-1 ac_mid=-1
 
24321
  while :; do
 
24322
    cat >conftest.$ac_ext <<_ACEOF
 
24323
#line $LINENO "configure"
 
24324
/* confdefs.h.  */
 
24325
_ACEOF
 
24326
cat confdefs.h >>conftest.$ac_ext
 
24327
cat >>conftest.$ac_ext <<_ACEOF
 
24328
/* end confdefs.h.  */
 
24329
$ac_includes_default
 
24330
int
 
24331
main ()
 
24332
{
 
24333
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
 
24334
test_array [0] = 0
 
24335
 
 
24336
  ;
 
24337
  return 0;
 
24338
}
 
24339
_ACEOF
 
24340
rm -f conftest.$ac_objext
 
24341
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24342
  (eval $ac_compile) 2>&5
 
24343
  ac_status=$?
 
24344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24345
  (exit $ac_status); } &&
 
24346
         { ac_try='test -s conftest.$ac_objext'
 
24347
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24348
  (eval $ac_try) 2>&5
 
24349
  ac_status=$?
 
24350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24351
  (exit $ac_status); }; }; then
 
24352
  ac_lo=$ac_mid; break
 
24353
else
 
24354
  echo "$as_me: failed program was:" >&5
 
24355
sed 's/^/| /' conftest.$ac_ext >&5
 
24356
 
 
24357
ac_hi=`expr '(' $ac_mid ')' - 1`
 
24358
                       if test $ac_mid -le $ac_hi; then
 
24359
                         ac_lo= ac_hi=
 
24360
                         break
 
24361
                       fi
 
24362
                       ac_mid=`expr 2 '*' $ac_mid`
 
24363
fi
 
24364
rm -f conftest.$ac_objext conftest.$ac_ext
 
24365
  done
 
24366
else
 
24367
  echo "$as_me: failed program was:" >&5
 
24368
sed 's/^/| /' conftest.$ac_ext >&5
 
24369
 
 
24370
ac_lo= ac_hi=
 
24371
fi
 
24372
rm -f conftest.$ac_objext conftest.$ac_ext
 
24373
fi
 
24374
rm -f conftest.$ac_objext conftest.$ac_ext
 
24375
# Binary search between lo and hi bounds.
 
24376
while test "x$ac_lo" != "x$ac_hi"; do
 
24377
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
24378
  cat >conftest.$ac_ext <<_ACEOF
 
24379
#line $LINENO "configure"
 
24380
/* confdefs.h.  */
 
24381
_ACEOF
 
24382
cat confdefs.h >>conftest.$ac_ext
 
24383
cat >>conftest.$ac_ext <<_ACEOF
 
24384
/* end confdefs.h.  */
 
24385
$ac_includes_default
 
24386
int
 
24387
main ()
 
24388
{
 
24389
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
 
24390
test_array [0] = 0
 
24391
 
 
24392
  ;
 
24393
  return 0;
 
24394
}
 
24395
_ACEOF
 
24396
rm -f conftest.$ac_objext
 
24397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24398
  (eval $ac_compile) 2>&5
 
24399
  ac_status=$?
 
24400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24401
  (exit $ac_status); } &&
 
24402
         { ac_try='test -s conftest.$ac_objext'
 
24403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24404
  (eval $ac_try) 2>&5
 
24405
  ac_status=$?
 
24406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24407
  (exit $ac_status); }; }; then
 
24408
  ac_hi=$ac_mid
 
24409
else
 
24410
  echo "$as_me: failed program was:" >&5
 
24411
sed 's/^/| /' conftest.$ac_ext >&5
 
24412
 
 
24413
ac_lo=`expr '(' $ac_mid ')' + 1`
 
24414
fi
 
24415
rm -f conftest.$ac_objext conftest.$ac_ext
 
24416
done
 
24417
case $ac_lo in
 
24418
?*) ac_cv_sizeof_void_p=$ac_lo;;
 
24419
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
 
24420
See \`config.log' for more details." >&5
 
24421
echo "$as_me: error: cannot compute sizeof (void *), 77
 
24422
See \`config.log' for more details." >&2;}
 
24423
   { (exit 1); exit 1; }; } ;;
 
24424
esac
 
24425
else
 
24426
  if test "$cross_compiling" = yes; then
 
24427
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24428
See \`config.log' for more details." >&5
 
24429
echo "$as_me: error: cannot run test program while cross compiling
 
24430
See \`config.log' for more details." >&2;}
 
24431
   { (exit 1); exit 1; }; }
 
24432
else
 
24433
  cat >conftest.$ac_ext <<_ACEOF
 
24434
#line $LINENO "configure"
 
24435
/* confdefs.h.  */
 
24436
_ACEOF
 
24437
cat confdefs.h >>conftest.$ac_ext
 
24438
cat >>conftest.$ac_ext <<_ACEOF
 
24439
/* end confdefs.h.  */
 
24440
$ac_includes_default
 
24441
long longval () { return (long) (sizeof (void *)); }
 
24442
unsigned long ulongval () { return (long) (sizeof (void *)); }
 
24443
#include <stdio.h>
 
24444
#include <stdlib.h>
 
24445
int
 
24446
main ()
 
24447
{
 
24448
 
 
24449
  FILE *f = fopen ("conftest.val", "w");
 
24450
  if (! f)
 
24451
    exit (1);
 
24452
  if (((long) (sizeof (void *))) < 0)
 
24453
    {
 
24454
      long i = longval ();
 
24455
      if (i != ((long) (sizeof (void *))))
 
24456
        exit (1);
 
24457
      fprintf (f, "%ld\n", i);
 
24458
    }
 
24459
  else
 
24460
    {
 
24461
      unsigned long i = ulongval ();
 
24462
      if (i != ((long) (sizeof (void *))))
 
24463
        exit (1);
 
24464
      fprintf (f, "%lu\n", i);
 
24465
    }
 
24466
  exit (ferror (f) || fclose (f) != 0);
 
24467
 
 
24468
  ;
 
24469
  return 0;
 
24470
}
 
24471
_ACEOF
 
24472
rm -f conftest$ac_exeext
 
24473
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24474
  (eval $ac_link) 2>&5
 
24475
  ac_status=$?
 
24476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24477
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24479
  (eval $ac_try) 2>&5
 
24480
  ac_status=$?
 
24481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24482
  (exit $ac_status); }; }; then
 
24483
  ac_cv_sizeof_void_p=`cat conftest.val`
 
24484
else
 
24485
  echo "$as_me: program exited with status $ac_status" >&5
 
24486
echo "$as_me: failed program was:" >&5
 
24487
sed 's/^/| /' conftest.$ac_ext >&5
 
24488
 
 
24489
( exit $ac_status )
 
24490
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
 
24491
See \`config.log' for more details." >&5
 
24492
echo "$as_me: error: cannot compute sizeof (void *), 77
 
24493
See \`config.log' for more details." >&2;}
 
24494
   { (exit 1); exit 1; }; }
 
24495
fi
 
24496
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
24497
fi
 
24498
fi
 
24499
rm -f conftest.val
 
24500
else
 
24501
  ac_cv_sizeof_void_p=0
 
24502
fi
 
24503
fi
 
24504
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
 
24505
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
 
24506
cat >>confdefs.h <<_ACEOF
 
24507
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
 
24508
_ACEOF
 
24509
 
 
24510
 
 
24511
 
 
24512
if test "x$ac_cv_sizeof_long_long" != "x0"; then
 
24513
  cat >>confdefs.h <<\_ACEOF
 
24514
#define rep_HAVE_LONG_LONG 1
 
24515
_ACEOF
 
24516
 
 
24517
fi
8365
24518
 
8366
24519
 
8367
24520
# Check whether --with-malloc-alignment or --without-malloc-alignment was given.
8368
24521
if test "${with_malloc_alignment+set}" = set; then
8369
24522
  withval="$with_malloc_alignment"
8370
 
  :
 
24523
 
8371
24524
else
8372
24525
  with_malloc_alignment=${with_value_sizeof}
8373
 
fi
8374
 
 
8375
 
cat >> confdefs.h <<EOF
 
24526
fi;
 
24527
cat >>confdefs.h <<_ACEOF
8376
24528
#define rep_MALLOC_ALIGNMENT ${with_malloc_alignment}
8377
 
EOF
 
24529
_ACEOF
8378
24530
 
8379
24531
 
8380
24532
if test "x${GCC}" = "xyes"; then
8381
 
  echo $ac_n "checking for broken alpha gcc""... $ac_c" 1>&6
8382
 
echo "configure:8383: checking for broken alpha gcc" >&5
8383
 
  cat > conftest.$ac_ext <<EOF
8384
 
#line 8385 "configure"
8385
 
#include "confdefs.h"
 
24533
  echo "$as_me:$LINENO: checking for broken alpha gcc" >&5
 
24534
echo $ECHO_N "checking for broken alpha gcc... $ECHO_C" >&6
 
24535
  cat >conftest.$ac_ext <<_ACEOF
 
24536
#line $LINENO "configure"
 
24537
/* confdefs.h.  */
 
24538
_ACEOF
 
24539
cat confdefs.h >>conftest.$ac_ext
 
24540
cat >>conftest.$ac_ext <<_ACEOF
 
24541
/* end confdefs.h.  */
8386
24542
 
8387
 
int main() {
 
24543
int
 
24544
main ()
 
24545
{
8388
24546
__builtin_return_address(1);
8389
 
; return 0; }
8390
 
EOF
8391
 
if { (eval echo configure:8392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8392
 
  rm -rf conftest*
8393
 
  echo "$ac_t""no" 1>&6
 
24547
  ;
 
24548
  return 0;
 
24549
}
 
24550
_ACEOF
 
24551
rm -f conftest.$ac_objext
 
24552
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24553
  (eval $ac_compile) 2>&5
 
24554
  ac_status=$?
 
24555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24556
  (exit $ac_status); } &&
 
24557
         { ac_try='test -s conftest.$ac_objext'
 
24558
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24559
  (eval $ac_try) 2>&5
 
24560
  ac_status=$?
 
24561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24562
  (exit $ac_status); }; }; then
 
24563
  echo "$as_me:$LINENO: result: no" >&5
 
24564
echo "${ECHO_T}no" >&6
8394
24565
else
8395
 
  echo "configure: failed program was:" >&5
8396
 
  cat conftest.$ac_ext >&5
8397
 
  rm -rf conftest*
8398
 
  cat >> confdefs.h <<\EOF
 
24566
  echo "$as_me: failed program was:" >&5
 
24567
sed 's/^/| /' conftest.$ac_ext >&5
 
24568
 
 
24569
cat >>confdefs.h <<\_ACEOF
8399
24570
#define BROKEN_ALPHA_GCC 1
8400
 
EOF
8401
 
 
8402
 
                  echo "$ac_t""yes" 1>&6
8403
 
                  echo "configure: warning: Backtrace support will not be compiled" 1>&2
8404
 
fi
8405
 
rm -f conftest*
8406
 
fi
8407
 
 
8408
 
echo $ac_n "checking for stack growth direction""... $ac_c" 1>&6
8409
 
echo "configure:8410: checking for stack growth direction" >&5
 
24571
_ACEOF
 
24572
 
 
24573
                  echo "$as_me:$LINENO: result: yes" >&5
 
24574
echo "${ECHO_T}yes" >&6
 
24575
                  { echo "$as_me:$LINENO: WARNING: Backtrace support will not be compiled" >&5
 
24576
echo "$as_me: WARNING: Backtrace support will not be compiled" >&2;}
 
24577
fi
 
24578
rm -f conftest.$ac_objext conftest.$ac_ext
 
24579
fi
 
24580
 
 
24581
echo "$as_me:$LINENO: checking for stack growth direction" >&5
 
24582
echo $ECHO_N "checking for stack growth direction... $ECHO_C" >&6
 
24583
 
8410
24584
# Check whether --with-stack-direction or --without-stack-direction was given.
8411
24585
if test "${with_stack_direction+set}" = set; then
8412
24586
  withval="$with_stack_direction"
8413
 
  echo "$ac_t""${with_stack_direction}" 1>&6
 
24587
  echo "$as_me:$LINENO: result: ${with_stack_direction}" >&5
 
24588
echo "${ECHO_T}${with_stack_direction}" >&6
8414
24589
else
8415
24590
  with_stack_direction=unknown
8416
 
fi
8417
 
 
 
24591
fi;
8418
24592
if test "${with_stack_direction}" = unknown; then
8419
24593
  case ${host_cpu} in
8420
24594
    sparc|i?86)
8421
 
      echo "$ac_t""assuming downwards" 1>&6
 
24595
      echo "$as_me:$LINENO: result: assuming downwards" >&5
 
24596
echo "${ECHO_T}assuming downwards" >&6
8422
24597
      with_stack_direction="-1"
8423
24598
      ;;
8424
24599
      esac
8425
24600
fi
8426
24601
if test "${with_stack_direction}" = unknown; then
8427
24602
  if test "$cross_compiling" = yes; then
8428
 
    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
 
24603
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
24604
See \`config.log' for more details." >&5
 
24605
echo "$as_me: error: cannot run test program while cross compiling
 
24606
See \`config.log' for more details." >&2;}
 
24607
   { (exit 1); exit 1; }; }
8429
24608
else
8430
 
  cat > conftest.$ac_ext <<EOF
8431
 
#line 8432 "configure"
8432
 
#include "confdefs.h"
 
24609
  cat >conftest.$ac_ext <<_ACEOF
 
24610
#line $LINENO "configure"
 
24611
/* confdefs.h.  */
 
24612
_ACEOF
 
24613
cat confdefs.h >>conftest.$ac_ext
 
24614
cat >>conftest.$ac_ext <<_ACEOF
 
24615
/* end confdefs.h.  */
8433
24616
 void inner (char *foo) { char bar; exit (!(foo >= &bar)); }
8434
 
               void main () { char foo; inner (&foo); } 
8435
 
EOF
8436
 
if { (eval echo configure:8437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8437
 
then
8438
 
  echo "$ac_t""downwards" 1>&6
 
24617
               void main () { char foo; inner (&foo); }
 
24618
_ACEOF
 
24619
rm -f conftest$ac_exeext
 
24620
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24621
  (eval $ac_link) 2>&5
 
24622
  ac_status=$?
 
24623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24624
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
24625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24626
  (eval $ac_try) 2>&5
 
24627
  ac_status=$?
 
24628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24629
  (exit $ac_status); }; }; then
 
24630
  echo "$as_me:$LINENO: result: downwards" >&5
 
24631
echo "${ECHO_T}downwards" >&6
8439
24632
    with_stack_direction=-1
8440
24633
else
8441
 
  echo "configure: failed program was:" >&5
8442
 
  cat conftest.$ac_ext >&5
8443
 
  rm -fr conftest*
8444
 
  echo "$ac_t""upwards" 1>&6
 
24634
  echo "$as_me: program exited with status $ac_status" >&5
 
24635
echo "$as_me: failed program was:" >&5
 
24636
sed 's/^/| /' conftest.$ac_ext >&5
 
24637
 
 
24638
( exit $ac_status )
 
24639
echo "$as_me:$LINENO: result: upwards" >&5
 
24640
echo "${ECHO_T}upwards" >&6
8445
24641
    with_stack_direction=+1
8446
24642
fi
8447
 
rm -fr conftest*
 
24643
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8448
24644
fi
8449
 
 
8450
24645
fi
8451
24646
if test "${with_stack_direction}" != unknown; then
8452
 
  cat >> confdefs.h <<EOF
 
24647
  cat >>confdefs.h <<_ACEOF
8453
24648
#define STACK_DIRECTION ${with_stack_direction}
8454
 
EOF
 
24649
_ACEOF
8455
24650
 
8456
24651
fi
8457
24652
 
8466
24661
 
8467
24662
 
8468
24663
 
8469
 
 
8470
 
cat >> confdefs.h <<EOF
 
24664
cat >>confdefs.h <<_ACEOF
8471
24665
#define rep_VERSION "${version}"
8472
 
EOF
 
24666
_ACEOF
8473
24667
 
8474
 
cat >> confdefs.h <<EOF
 
24668
cat >>confdefs.h <<_ACEOF
8475
24669
#define rep_INTERFACE ${libcurrent}
8476
 
EOF
8477
 
 
8478
 
 
8479
 
if test $ac_cv_header_locale_h = yes; then
8480
 
    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
8481
 
echo "configure:8482: checking for LC_MESSAGES" >&5
8482
 
if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
8483
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
24670
_ACEOF
 
24671
 
 
24672
 
 
24673
 
 
24674
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
24675
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
 
24676
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
24677
  echo $ECHO_N "(cached) $ECHO_C" >&6
8484
24678
else
8485
 
  cat > conftest.$ac_ext <<EOF
8486
 
#line 8487 "configure"
8487
 
#include "confdefs.h"
 
24679
  cat >conftest.$ac_ext <<_ACEOF
 
24680
#line $LINENO "configure"
 
24681
/* confdefs.h.  */
 
24682
_ACEOF
 
24683
cat confdefs.h >>conftest.$ac_ext
 
24684
cat >>conftest.$ac_ext <<_ACEOF
 
24685
/* end confdefs.h.  */
8488
24686
#include <locale.h>
8489
 
int main() {
 
24687
int
 
24688
main ()
 
24689
{
8490
24690
return LC_MESSAGES
8491
 
; return 0; }
8492
 
EOF
8493
 
if { (eval echo configure:8494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8494
 
  rm -rf conftest*
 
24691
  ;
 
24692
  return 0;
 
24693
}
 
24694
_ACEOF
 
24695
rm -f conftest.$ac_objext conftest$ac_exeext
 
24696
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24697
  (eval $ac_link) 2>&5
 
24698
  ac_status=$?
 
24699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24700
  (exit $ac_status); } &&
 
24701
         { ac_try='test -s conftest$ac_exeext'
 
24702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24703
  (eval $ac_try) 2>&5
 
24704
  ac_status=$?
 
24705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24706
  (exit $ac_status); }; }; then
8495
24707
  am_cv_val_LC_MESSAGES=yes
8496
24708
else
8497
 
  echo "configure: failed program was:" >&5
8498
 
  cat conftest.$ac_ext >&5
8499
 
  rm -rf conftest*
8500
 
  am_cv_val_LC_MESSAGES=no
8501
 
fi
8502
 
rm -f conftest*
8503
 
fi
8504
 
 
8505
 
echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
8506
 
    if test $am_cv_val_LC_MESSAGES = yes; then
8507
 
      cat >> confdefs.h <<\EOF
 
24709
  echo "$as_me: failed program was:" >&5
 
24710
sed 's/^/| /' conftest.$ac_ext >&5
 
24711
 
 
24712
am_cv_val_LC_MESSAGES=no
 
24713
fi
 
24714
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
24715
fi
 
24716
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 
24717
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
 
24718
  if test $am_cv_val_LC_MESSAGES = yes; then
 
24719
 
 
24720
cat >>confdefs.h <<\_ACEOF
8508
24721
#define HAVE_LC_MESSAGES 1
8509
 
EOF
 
24722
_ACEOF
8510
24723
 
8511
 
    fi
8512
24724
  fi
 
24725
 
8513
24726
VERSION="$version"
8514
24727
PACKAGE="librep"
8515
24728
DATADIRNAME="share"
8529
24742
 
8530
24743
USE_INCLUDED_LIBINTL=yes
8531
24744
 
8532
 
echo $ac_n "checking for _nl_msg_cat_cntr""... $ac_c" 1>&6
8533
 
echo "configure:8534: checking for _nl_msg_cat_cntr" >&5
8534
 
if eval "test \"`echo '$''{'ac_cv_func__nl_msg_cat_cntr'+set}'`\" = set"; then
8535
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
24745
echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
 
24746
echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
 
24747
if test "${ac_cv_func__nl_msg_cat_cntr+set}" = set; then
 
24748
  echo $ECHO_N "(cached) $ECHO_C" >&6
8536
24749
else
8537
 
  cat > conftest.$ac_ext <<EOF
8538
 
#line 8539 "configure"
8539
 
#include "confdefs.h"
 
24750
  cat >conftest.$ac_ext <<_ACEOF
 
24751
#line $LINENO "configure"
 
24752
/* confdefs.h.  */
 
24753
_ACEOF
 
24754
cat confdefs.h >>conftest.$ac_ext
 
24755
cat >>conftest.$ac_ext <<_ACEOF
 
24756
/* end confdefs.h.  */
8540
24757
/* System header to define __stub macros and hopefully few prototypes,
8541
 
    which can conflict with char _nl_msg_cat_cntr(); below.  */
8542
 
#include <assert.h>
 
24758
    which can conflict with char _nl_msg_cat_cntr (); below.
 
24759
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24760
    <limits.h> exists even on freestanding compilers.  */
 
24761
#ifdef __STDC__
 
24762
# include <limits.h>
 
24763
#else
 
24764
# include <assert.h>
 
24765
#endif
8543
24766
/* Override any gcc2 internal prototype to avoid an error.  */
 
24767
#ifdef __cplusplus
 
24768
extern "C"
 
24769
{
 
24770
#endif
8544
24771
/* We use char because int might match the return type of a gcc2
8545
 
    builtin and then its argument prototype would still apply.  */
8546
 
char _nl_msg_cat_cntr();
8547
 
 
8548
 
int main() {
8549
 
 
 
24772
   builtin and then its argument prototype would still apply.  */
 
24773
char _nl_msg_cat_cntr ();
8550
24774
/* The GNU C library defines this for functions which it implements
8551
24775
    to always fail with ENOSYS.  Some functions are actually named
8552
24776
    something starting with __ and the normal name is an alias.  */
8553
24777
#if defined (__stub__nl_msg_cat_cntr) || defined (__stub____nl_msg_cat_cntr)
8554
24778
choke me
8555
24779
#else
8556
 
_nl_msg_cat_cntr();
 
24780
char (*f) () = _nl_msg_cat_cntr;
 
24781
#endif
 
24782
#ifdef __cplusplus
 
24783
}
8557
24784
#endif
8558
24785
 
8559
 
; return 0; }
8560
 
EOF
8561
 
if { (eval echo configure:8562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8562
 
  rm -rf conftest*
8563
 
  eval "ac_cv_func__nl_msg_cat_cntr=yes"
 
24786
int
 
24787
main ()
 
24788
{
 
24789
return f != _nl_msg_cat_cntr;
 
24790
  ;
 
24791
  return 0;
 
24792
}
 
24793
_ACEOF
 
24794
rm -f conftest.$ac_objext conftest$ac_exeext
 
24795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24796
  (eval $ac_link) 2>&5
 
24797
  ac_status=$?
 
24798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24799
  (exit $ac_status); } &&
 
24800
         { ac_try='test -s conftest$ac_exeext'
 
24801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24802
  (eval $ac_try) 2>&5
 
24803
  ac_status=$?
 
24804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24805
  (exit $ac_status); }; }; then
 
24806
  ac_cv_func__nl_msg_cat_cntr=yes
8564
24807
else
8565
 
  echo "configure: failed program was:" >&5
8566
 
  cat conftest.$ac_ext >&5
8567
 
  rm -rf conftest*
8568
 
  eval "ac_cv_func__nl_msg_cat_cntr=no"
8569
 
fi
8570
 
rm -f conftest*
8571
 
fi
 
24808
  echo "$as_me: failed program was:" >&5
 
24809
sed 's/^/| /' conftest.$ac_ext >&5
8572
24810
 
8573
 
if eval "test \"`echo '$ac_cv_func_'_nl_msg_cat_cntr`\" = yes"; then
8574
 
  echo "$ac_t""yes" 1>&6
8575
 
  cat >> confdefs.h <<\EOF
 
24811
ac_cv_func__nl_msg_cat_cntr=no
 
24812
fi
 
24813
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
24814
fi
 
24815
echo "$as_me:$LINENO: result: $ac_cv_func__nl_msg_cat_cntr" >&5
 
24816
echo "${ECHO_T}$ac_cv_func__nl_msg_cat_cntr" >&6
 
24817
if test $ac_cv_func__nl_msg_cat_cntr = yes; then
 
24818
  cat >>confdefs.h <<\_ACEOF
8576
24819
#define LIBC_GETTEXT 1
8577
 
EOF
8578
 
 
8579
 
  for ac_hdr in libintl.h
 
24820
_ACEOF
 
24821
 
 
24822
 
 
24823
for ac_header in libintl.h
8580
24824
do
8581
 
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8582
 
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8583
 
echo "configure:8584: checking for $ac_hdr" >&5
8584
 
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8585
 
  echo $ac_n "(cached) $ac_c" 1>&6
8586
 
else
8587
 
  cat > conftest.$ac_ext <<EOF
8588
 
#line 8589 "configure"
8589
 
#include "confdefs.h"
8590
 
#include <$ac_hdr>
8591
 
EOF
8592
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8593
 
{ (eval echo configure:8594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8594
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8595
 
if test -z "$ac_err"; then
8596
 
  rm -rf conftest*
8597
 
  eval "ac_cv_header_$ac_safe=yes"
8598
 
else
8599
 
  echo "$ac_err" >&5
8600
 
  echo "configure: failed program was:" >&5
8601
 
  cat conftest.$ac_ext >&5
8602
 
  rm -rf conftest*
8603
 
  eval "ac_cv_header_$ac_safe=no"
8604
 
fi
8605
 
rm -f conftest*
8606
 
fi
8607
 
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8608
 
  echo "$ac_t""yes" 1>&6
8609
 
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8610
 
  cat >> confdefs.h <<EOF
8611
 
#define $ac_tr_hdr 1
8612
 
EOF
8613
 
 
8614
 
else
8615
 
  echo "$ac_t""no" 1>&6
8616
 
fi
 
24825
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
24826
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
24827
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24828
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
24829
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
24830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24831
fi
 
24832
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
24833
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
24834
else
 
24835
  # Is the header compilable?
 
24836
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
24837
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
24838
cat >conftest.$ac_ext <<_ACEOF
 
24839
#line $LINENO "configure"
 
24840
/* confdefs.h.  */
 
24841
_ACEOF
 
24842
cat confdefs.h >>conftest.$ac_ext
 
24843
cat >>conftest.$ac_ext <<_ACEOF
 
24844
/* end confdefs.h.  */
 
24845
$ac_includes_default
 
24846
#include <$ac_header>
 
24847
_ACEOF
 
24848
rm -f conftest.$ac_objext
 
24849
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24850
  (eval $ac_compile) 2>&5
 
24851
  ac_status=$?
 
24852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24853
  (exit $ac_status); } &&
 
24854
         { ac_try='test -s conftest.$ac_objext'
 
24855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24856
  (eval $ac_try) 2>&5
 
24857
  ac_status=$?
 
24858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24859
  (exit $ac_status); }; }; then
 
24860
  ac_header_compiler=yes
 
24861
else
 
24862
  echo "$as_me: failed program was:" >&5
 
24863
sed 's/^/| /' conftest.$ac_ext >&5
 
24864
 
 
24865
ac_header_compiler=no
 
24866
fi
 
24867
rm -f conftest.$ac_objext conftest.$ac_ext
 
24868
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24869
echo "${ECHO_T}$ac_header_compiler" >&6
 
24870
 
 
24871
# Is the header present?
 
24872
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
24873
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
24874
cat >conftest.$ac_ext <<_ACEOF
 
24875
#line $LINENO "configure"
 
24876
/* confdefs.h.  */
 
24877
_ACEOF
 
24878
cat confdefs.h >>conftest.$ac_ext
 
24879
cat >>conftest.$ac_ext <<_ACEOF
 
24880
/* end confdefs.h.  */
 
24881
#include <$ac_header>
 
24882
_ACEOF
 
24883
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24884
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24885
  ac_status=$?
 
24886
  grep -v '^ *+' conftest.er1 >conftest.err
 
24887
  rm -f conftest.er1
 
24888
  cat conftest.err >&5
 
24889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24890
  (exit $ac_status); } >/dev/null; then
 
24891
  if test -s conftest.err; then
 
24892
    ac_cpp_err=$ac_c_preproc_warn_flag
 
24893
  else
 
24894
    ac_cpp_err=
 
24895
  fi
 
24896
else
 
24897
  ac_cpp_err=yes
 
24898
fi
 
24899
if test -z "$ac_cpp_err"; then
 
24900
  ac_header_preproc=yes
 
24901
else
 
24902
  echo "$as_me: failed program was:" >&5
 
24903
sed 's/^/| /' conftest.$ac_ext >&5
 
24904
 
 
24905
  ac_header_preproc=no
 
24906
fi
 
24907
rm -f conftest.err conftest.$ac_ext
 
24908
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24909
echo "${ECHO_T}$ac_header_preproc" >&6
 
24910
 
 
24911
# So?  What about this header?
 
24912
case $ac_header_compiler:$ac_header_preproc in
 
24913
  yes:no )
 
24914
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
24915
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24916
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24917
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24918
    (
 
24919
      cat <<\_ASBOX
 
24920
## ------------------------------------ ##
 
24921
## Report this to bug-autoconf@gnu.org. ##
 
24922
## ------------------------------------ ##
 
24923
_ASBOX
 
24924
    ) |
 
24925
      sed "s/^/$as_me: WARNING:     /" >&2
 
24926
    ;;
 
24927
  no:yes )
 
24928
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
24929
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
24930
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
24931
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
24932
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
24933
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
24934
    (
 
24935
      cat <<\_ASBOX
 
24936
## ------------------------------------ ##
 
24937
## Report this to bug-autoconf@gnu.org. ##
 
24938
## ------------------------------------ ##
 
24939
_ASBOX
 
24940
    ) |
 
24941
      sed "s/^/$as_me: WARNING:     /" >&2
 
24942
    ;;
 
24943
esac
 
24944
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
24945
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
24946
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
24947
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24948
else
 
24949
  eval "$as_ac_Header=$ac_header_preproc"
 
24950
fi
 
24951
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
24952
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
24953
 
 
24954
fi
 
24955
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
24956
  cat >>confdefs.h <<_ACEOF
 
24957
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
24958
_ACEOF
 
24959
 
 
24960
fi
 
24961
 
8617
24962
done
8618
24963
 
8619
24964
  USE_INCLUDED_LIBINTL=no
8620
 
else
8621
 
  echo "$ac_t""no" 1>&6
8622
24965
fi
8623
24966
 
8624
24967
 
8625
 
trap '' 1 2 15
8626
 
cat > confcache <<\EOF
 
24968
          ac_config_files="$ac_config_files ${output_files}"
 
24969
          ac_config_commands="$ac_config_commands default"
 
24970
cat >confcache <<\_ACEOF
8627
24971
# This file is a shell script that caches the results of configure
8628
24972
# tests run on this system so they can be shared between configure
8629
 
# scripts and configure runs.  It is not useful on other systems.
8630
 
# If it contains results you don't want to keep, you may remove or edit it.
8631
 
#
8632
 
# By default, configure uses ./config.cache as the cache file,
8633
 
# creating it if it does not exist already.  You can give configure
8634
 
# the --cache-file=FILE option to use a different cache file; that is
8635
 
# what configure does when it calls configure scripts in
8636
 
# subdirectories, so they share the cache.
8637
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
8638
 
# config.status only pays attention to the cache file if you give it the
8639
 
# --recheck option to rerun configure.
8640
 
#
8641
 
EOF
 
24973
# scripts and configure runs, see configure's option --config-cache.
 
24974
# It is not useful on other systems.  If it contains results you don't
 
24975
# want to keep, you may remove or edit it.
 
24976
#
 
24977
# config.status only pays attention to the cache file if you give it
 
24978
# the --recheck option to rerun configure.
 
24979
#
 
24980
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
24981
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
24982
# following values.
 
24983
 
 
24984
_ACEOF
 
24985
 
8642
24986
# The following way of writing the cache mishandles newlines in values,
8643
24987
# but we know of no workaround that is simple, portable, and efficient.
8644
24988
# So, don't put newlines in cache variables' values.
8645
24989
# Ultrix sh set writes to stderr and can't be redirected directly,
8646
24990
# and sets the high bit in the cache file unless we assign to the vars.
8647
 
(set) 2>&1 |
8648
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
8649
 
  *ac_space=\ *)
8650
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
8651
 
    # turns \\\\ into \\, and sed turns \\ into \).
8652
 
    sed -n \
8653
 
      -e "s/'/'\\\\''/g" \
8654
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8655
 
    ;;
8656
 
  *)
8657
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
8658
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8659
 
    ;;
8660
 
  esac >> confcache
8661
 
if cmp -s $cache_file confcache; then
8662
 
  :
8663
 
else
 
24991
{
 
24992
  (set) 2>&1 |
 
24993
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
24994
    *ac_space=\ *)
 
24995
      # `set' does not quote correctly, so add quotes (double-quote
 
24996
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
24997
      sed -n \
 
24998
        "s/'/'\\\\''/g;
 
24999
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
25000
      ;;
 
25001
    *)
 
25002
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
25003
      sed -n \
 
25004
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
25005
      ;;
 
25006
    esac;
 
25007
} |
 
25008
  sed '
 
25009
     t clear
 
25010
     : clear
 
25011
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
25012
     t end
 
25013
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
25014
     : end' >>confcache
 
25015
if diff $cache_file confcache >/dev/null 2>&1; then :; else
8664
25016
  if test -w $cache_file; then
8665
 
    echo "updating cache $cache_file"
8666
 
    cat confcache > $cache_file
 
25017
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
25018
    cat confcache >$cache_file
8667
25019
  else
8668
25020
    echo "not updating unwritable cache $cache_file"
8669
25021
  fi
8670
25022
fi
8671
25023
rm -f confcache
8672
25024
 
8673
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8674
 
 
8675
25025
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8676
25026
# Let make expand exec_prefix.
8677
25027
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8678
25028
 
8679
 
# Any assignment to VPATH causes Sun make to only execute
8680
 
# the first set of double-colon rules, so remove it if not needed.
8681
 
# If there is a colon in the path, we need to keep it.
 
25029
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
25030
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
25031
# trailing colons and then remove the whole line if VPATH becomes empty
 
25032
# (actually we leave an empty line to preserve line numbers).
8682
25033
if test "x$srcdir" = x.; then
8683
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
25034
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
25035
s/:*\$(srcdir):*/:/;
 
25036
s/:*\${srcdir}:*/:/;
 
25037
s/:*@srcdir@:*/:/;
 
25038
s/^\([^=]*=[    ]*\):*/\1/;
 
25039
s/:*$//;
 
25040
s/^[^=]*=[      ]*$//;
 
25041
}'
8684
25042
fi
8685
25043
 
8686
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8687
 
 
8688
25044
DEFS=-DHAVE_CONFIG_H
8689
25045
 
8690
 
# Without the "./", some shells look in PATH for config.status.
 
25046
ac_libobjs=
 
25047
ac_ltlibobjs=
 
25048
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
25049
  # 1. Remove the extension, and $U if already installed.
 
25050
  ac_i=`echo "$ac_i" |
 
25051
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
25052
  # 2. Add them.
 
25053
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
25054
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
25055
done
 
25056
LIBOBJS=$ac_libobjs
 
25057
 
 
25058
LTLIBOBJS=$ac_ltlibobjs
 
25059
 
 
25060
 
 
25061
 
8691
25062
: ${CONFIG_STATUS=./config.status}
8692
 
 
8693
 
echo creating $CONFIG_STATUS
8694
 
rm -f $CONFIG_STATUS
8695
 
cat > $CONFIG_STATUS <<EOF
8696
 
#! /bin/sh
8697
 
# Generated automatically by configure.
 
25063
ac_clean_files_save=$ac_clean_files
 
25064
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
25065
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
25066
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
25067
cat >$CONFIG_STATUS <<_ACEOF
 
25068
#! $SHELL
 
25069
# Generated by $as_me.
8698
25070
# Run this file to recreate the current configuration.
8699
 
# This directory was configured as follows,
8700
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8701
 
#
8702
 
# $0 $ac_configure_args
8703
 
#
8704
25071
# Compiler output produced by configure, useful for debugging
8705
 
# configure, is in ./config.log if it exists.
8706
 
 
8707
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8708
 
for ac_option
8709
 
do
8710
 
  case "\$ac_option" in
 
25072
# configure, is in config.log if it exists.
 
25073
 
 
25074
debug=false
 
25075
ac_cs_recheck=false
 
25076
ac_cs_silent=false
 
25077
SHELL=\${CONFIG_SHELL-$SHELL}
 
25078
_ACEOF
 
25079
 
 
25080
cat >>$CONFIG_STATUS <<\_ACEOF
 
25081
## --------------------- ##
 
25082
## M4sh Initialization.  ##
 
25083
## --------------------- ##
 
25084
 
 
25085
# Be Bourne compatible
 
25086
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
25087
  emulate sh
 
25088
  NULLCMD=:
 
25089
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
25090
  # is contrary to our usage.  Disable this feature.
 
25091
  alias -g '${1+"$@"}'='"$@"'
 
25092
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
25093
  set -o posix
 
25094
fi
 
25095
 
 
25096
# Support unset when possible.
 
25097
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
25098
  as_unset=unset
 
25099
else
 
25100
  as_unset=false
 
25101
fi
 
25102
 
 
25103
 
 
25104
# Work around bugs in pre-3.0 UWIN ksh.
 
25105
$as_unset ENV MAIL MAILPATH
 
25106
PS1='$ '
 
25107
PS2='> '
 
25108
PS4='+ '
 
25109
 
 
25110
# NLS nuisances.
 
25111
for as_var in \
 
25112
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
25113
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
25114
  LC_TELEPHONE LC_TIME
 
25115
do
 
25116
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
25117
    eval $as_var=C; export $as_var
 
25118
  else
 
25119
    $as_unset $as_var
 
25120
  fi
 
25121
done
 
25122
 
 
25123
# Required to use basename.
 
25124
if expr a : '\(a\)' >/dev/null 2>&1; then
 
25125
  as_expr=expr
 
25126
else
 
25127
  as_expr=false
 
25128
fi
 
25129
 
 
25130
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
25131
  as_basename=basename
 
25132
else
 
25133
  as_basename=false
 
25134
fi
 
25135
 
 
25136
 
 
25137
# Name of the executable.
 
25138
as_me=`$as_basename "$0" ||
 
25139
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
25140
         X"$0" : 'X\(//\)$' \| \
 
25141
         X"$0" : 'X\(/\)$' \| \
 
25142
         .     : '\(.\)' 2>/dev/null ||
 
25143
echo X/"$0" |
 
25144
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
25145
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
25146
          /^X\/\(\/\).*/{ s//\1/; q; }
 
25147
          s/.*/./; q'`
 
25148
 
 
25149
 
 
25150
# PATH needs CR, and LINENO needs CR and PATH.
 
25151
# Avoid depending upon Character Ranges.
 
25152
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
25153
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
25154
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
25155
as_cr_digits='0123456789'
 
25156
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
25157
 
 
25158
# The user is always right.
 
25159
if test "${PATH_SEPARATOR+set}" != set; then
 
25160
  echo "#! /bin/sh" >conf$$.sh
 
25161
  echo  "exit 0"   >>conf$$.sh
 
25162
  chmod +x conf$$.sh
 
25163
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
25164
    PATH_SEPARATOR=';'
 
25165
  else
 
25166
    PATH_SEPARATOR=:
 
25167
  fi
 
25168
  rm -f conf$$.sh
 
25169
fi
 
25170
 
 
25171
 
 
25172
  as_lineno_1=$LINENO
 
25173
  as_lineno_2=$LINENO
 
25174
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
25175
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
25176
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
25177
  # Find who we are.  Look in the path if we contain no path at all
 
25178
  # relative or not.
 
25179
  case $0 in
 
25180
    *[\\/]* ) as_myself=$0 ;;
 
25181
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25182
for as_dir in $PATH
 
25183
do
 
25184
  IFS=$as_save_IFS
 
25185
  test -z "$as_dir" && as_dir=.
 
25186
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
25187
done
 
25188
 
 
25189
       ;;
 
25190
  esac
 
25191
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
25192
  # in which case we are not to be found in the path.
 
25193
  if test "x$as_myself" = x; then
 
25194
    as_myself=$0
 
25195
  fi
 
25196
  if test ! -f "$as_myself"; then
 
25197
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
25198
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
25199
   { (exit 1); exit 1; }; }
 
25200
  fi
 
25201
  case $CONFIG_SHELL in
 
25202
  '')
 
25203
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
25204
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
25205
do
 
25206
  IFS=$as_save_IFS
 
25207
  test -z "$as_dir" && as_dir=.
 
25208
  for as_base in sh bash ksh sh5; do
 
25209
         case $as_dir in
 
25210
         /*)
 
25211
           if ("$as_dir/$as_base" -c '
 
25212
  as_lineno_1=$LINENO
 
25213
  as_lineno_2=$LINENO
 
25214
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
25215
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
25216
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
25217
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
25218
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
25219
             CONFIG_SHELL=$as_dir/$as_base
 
25220
             export CONFIG_SHELL
 
25221
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
25222
           fi;;
 
25223
         esac
 
25224
       done
 
25225
done
 
25226
;;
 
25227
  esac
 
25228
 
 
25229
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
25230
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
25231
  # line-number line before each line; the second 'sed' does the real
 
25232
  # work.  The second script uses 'N' to pair each line-number line
 
25233
  # with the numbered line, and appends trailing '-' during
 
25234
  # substitution so that $LINENO is not a special case at line end.
 
25235
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
25236
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
25237
  sed '=' <$as_myself |
 
25238
    sed '
 
25239
      N
 
25240
      s,$,-,
 
25241
      : loop
 
25242
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
25243
      t loop
 
25244
      s,-$,,
 
25245
      s,^['$as_cr_digits']*\n,,
 
25246
    ' >$as_me.lineno &&
 
25247
  chmod +x $as_me.lineno ||
 
25248
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
25249
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
25250
   { (exit 1); exit 1; }; }
 
25251
 
 
25252
  # Don't try to exec as it changes $[0], causing all sort of problems
 
25253
  # (the dirname of $[0] is not the place where we might find the
 
25254
  # original and so on.  Autoconf is especially sensible to this).
 
25255
  . ./$as_me.lineno
 
25256
  # Exit status is that of the last command.
 
25257
  exit
 
25258
}
 
25259
 
 
25260
 
 
25261
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
25262
  *c*,-n*) ECHO_N= ECHO_C='
 
25263
' ECHO_T='      ' ;;
 
25264
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
25265
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
25266
esac
 
25267
 
 
25268
if expr a : '\(a\)' >/dev/null 2>&1; then
 
25269
  as_expr=expr
 
25270
else
 
25271
  as_expr=false
 
25272
fi
 
25273
 
 
25274
rm -f conf$$ conf$$.exe conf$$.file
 
25275
echo >conf$$.file
 
25276
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
25277
  # We could just check for DJGPP; but this test a) works b) is more generic
 
25278
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
25279
  if test -f conf$$.exe; then
 
25280
    # Don't use ln at all; we don't have any links
 
25281
    as_ln_s='cp -p'
 
25282
  else
 
25283
    as_ln_s='ln -s'
 
25284
  fi
 
25285
elif ln conf$$.file conf$$ 2>/dev/null; then
 
25286
  as_ln_s=ln
 
25287
else
 
25288
  as_ln_s='cp -p'
 
25289
fi
 
25290
rm -f conf$$ conf$$.exe conf$$.file
 
25291
 
 
25292
if mkdir -p . 2>/dev/null; then
 
25293
  as_mkdir_p=:
 
25294
else
 
25295
  as_mkdir_p=false
 
25296
fi
 
25297
 
 
25298
as_executable_p="test -f"
 
25299
 
 
25300
# Sed expression to map a string onto a valid CPP name.
 
25301
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
25302
 
 
25303
# Sed expression to map a string onto a valid variable name.
 
25304
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
25305
 
 
25306
 
 
25307
# IFS
 
25308
# We need space, tab and new line, in precisely that order.
 
25309
as_nl='
 
25310
'
 
25311
IFS="   $as_nl"
 
25312
 
 
25313
# CDPATH.
 
25314
$as_unset CDPATH
 
25315
 
 
25316
exec 6>&1
 
25317
 
 
25318
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
25319
# report actual input values of CONFIG_FILES etc. instead of their
 
25320
# values after options handling.  Logging --version etc. is OK.
 
25321
exec 5>>config.log
 
25322
{
 
25323
  echo
 
25324
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
25325
## Running $as_me. ##
 
25326
_ASBOX
 
25327
} >&5
 
25328
cat >&5 <<_CSEOF
 
25329
 
 
25330
This file was extended by $as_me, which was
 
25331
generated by GNU Autoconf 2.57.  Invocation command line was
 
25332
 
 
25333
  CONFIG_FILES    = $CONFIG_FILES
 
25334
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
25335
  CONFIG_LINKS    = $CONFIG_LINKS
 
25336
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
25337
  $ $0 $@
 
25338
 
 
25339
_CSEOF
 
25340
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
25341
echo >&5
 
25342
_ACEOF
 
25343
 
 
25344
# Files that config.status was made for.
 
25345
if test -n "$ac_config_files"; then
 
25346
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
25347
fi
 
25348
 
 
25349
if test -n "$ac_config_headers"; then
 
25350
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
25351
fi
 
25352
 
 
25353
if test -n "$ac_config_links"; then
 
25354
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
25355
fi
 
25356
 
 
25357
if test -n "$ac_config_commands"; then
 
25358
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
25359
fi
 
25360
 
 
25361
cat >>$CONFIG_STATUS <<\_ACEOF
 
25362
 
 
25363
ac_cs_usage="\
 
25364
\`$as_me' instantiates files from templates according to the
 
25365
current configuration.
 
25366
 
 
25367
Usage: $0 [OPTIONS] [FILE]...
 
25368
 
 
25369
  -h, --help       print this help, then exit
 
25370
  -V, --version    print version number, then exit
 
25371
  -q, --quiet      do not print progress messages
 
25372
  -d, --debug      don't remove temporary files
 
25373
      --recheck    update $as_me by reconfiguring in the same conditions
 
25374
  --file=FILE[:TEMPLATE]
 
25375
                   instantiate the configuration file FILE
 
25376
  --header=FILE[:TEMPLATE]
 
25377
                   instantiate the configuration header FILE
 
25378
 
 
25379
Configuration files:
 
25380
$config_files
 
25381
 
 
25382
Configuration headers:
 
25383
$config_headers
 
25384
 
 
25385
Configuration commands:
 
25386
$config_commands
 
25387
 
 
25388
Report bugs to <bug-autoconf@gnu.org>."
 
25389
_ACEOF
 
25390
 
 
25391
cat >>$CONFIG_STATUS <<_ACEOF
 
25392
ac_cs_version="\\
 
25393
config.status
 
25394
configured by $0, generated by GNU Autoconf 2.57,
 
25395
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
25396
 
 
25397
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
25398
Free Software Foundation, Inc.
 
25399
This config.status script is free software; the Free Software Foundation
 
25400
gives unlimited permission to copy, distribute and modify it."
 
25401
srcdir=$srcdir
 
25402
INSTALL="$INSTALL"
 
25403
_ACEOF
 
25404
 
 
25405
cat >>$CONFIG_STATUS <<\_ACEOF
 
25406
# If no file are specified by the user, then we need to provide default
 
25407
# value.  By we need to know if files were specified by the user.
 
25408
ac_need_defaults=:
 
25409
while test $# != 0
 
25410
do
 
25411
  case $1 in
 
25412
  --*=*)
 
25413
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
25414
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
25415
    ac_shift=:
 
25416
    ;;
 
25417
  -*)
 
25418
    ac_option=$1
 
25419
    ac_optarg=$2
 
25420
    ac_shift=shift
 
25421
    ;;
 
25422
  *) # This is not an option, so the user has probably given explicit
 
25423
     # arguments.
 
25424
     ac_option=$1
 
25425
     ac_need_defaults=false;;
 
25426
  esac
 
25427
 
 
25428
  case $ac_option in
 
25429
  # Handling of the options.
 
25430
_ACEOF
 
25431
cat >>$CONFIG_STATUS <<\_ACEOF
8711
25432
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8712
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8713
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8714
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8715
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
8716
 
    exit 0 ;;
8717
 
  -help | --help | --hel | --he | --h)
8718
 
    echo "\$ac_cs_usage"; exit 0 ;;
8719
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
8720
 
  esac
8721
 
done
8722
 
 
8723
 
ac_given_srcdir=$srcdir
8724
 
ac_given_INSTALL="$INSTALL"
8725
 
 
8726
 
trap 'rm -fr `echo "${output_files} config.h src/rep_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8727
 
EOF
8728
 
cat >> $CONFIG_STATUS <<EOF
8729
 
 
8730
 
# Protect against being on the right side of a sed subst in config.status.
8731
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8732
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8733
 
$ac_vpsub
 
25433
    ac_cs_recheck=: ;;
 
25434
  --version | --vers* | -V )
 
25435
    echo "$ac_cs_version"; exit 0 ;;
 
25436
  --he | --h)
 
25437
    # Conflict between --help and --header
 
25438
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
25439
Try \`$0 --help' for more information." >&5
 
25440
echo "$as_me: error: ambiguous option: $1
 
25441
Try \`$0 --help' for more information." >&2;}
 
25442
   { (exit 1); exit 1; }; };;
 
25443
  --help | --hel | -h )
 
25444
    echo "$ac_cs_usage"; exit 0 ;;
 
25445
  --debug | --d* | -d )
 
25446
    debug=: ;;
 
25447
  --file | --fil | --fi | --f )
 
25448
    $ac_shift
 
25449
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
25450
    ac_need_defaults=false;;
 
25451
  --header | --heade | --head | --hea )
 
25452
    $ac_shift
 
25453
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
25454
    ac_need_defaults=false;;
 
25455
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
25456
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
25457
    ac_cs_silent=: ;;
 
25458
 
 
25459
  # This is an error.
 
25460
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
25461
Try \`$0 --help' for more information." >&5
 
25462
echo "$as_me: error: unrecognized option: $1
 
25463
Try \`$0 --help' for more information." >&2;}
 
25464
   { (exit 1); exit 1; }; } ;;
 
25465
 
 
25466
  *) ac_config_targets="$ac_config_targets $1" ;;
 
25467
 
 
25468
  esac
 
25469
  shift
 
25470
done
 
25471
 
 
25472
ac_configure_extra_args=
 
25473
 
 
25474
if $ac_cs_silent; then
 
25475
  exec 6>/dev/null
 
25476
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
25477
fi
 
25478
 
 
25479
_ACEOF
 
25480
cat >>$CONFIG_STATUS <<_ACEOF
 
25481
if \$ac_cs_recheck; then
 
25482
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
25483
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
25484
fi
 
25485
 
 
25486
_ACEOF
 
25487
 
 
25488
 
 
25489
 
 
25490
 
 
25491
 
 
25492
cat >>$CONFIG_STATUS <<\_ACEOF
 
25493
for ac_config_target in $ac_config_targets
 
25494
do
 
25495
  case "$ac_config_target" in
 
25496
  # Handling of arguments.
 
25497
  "${output_files}" ) CONFIG_FILES="$CONFIG_FILES ${output_files}" ;;
 
25498
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
25499
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
25500
  "src/rep_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/rep_config.h" ;;
 
25501
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
25502
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
25503
   { (exit 1); exit 1; }; };;
 
25504
  esac
 
25505
done
 
25506
 
 
25507
# If the user did not use the arguments to specify the items to instantiate,
 
25508
# then the envvar interface is used.  Set only those that are not.
 
25509
# We use the long form for the default assignment because of an extremely
 
25510
# bizarre bug on SunOS 4.1.3.
 
25511
if $ac_need_defaults; then
 
25512
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
25513
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
25514
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
25515
fi
 
25516
 
 
25517
# Have a temporary directory for convenience.  Make it in the build tree
 
25518
# simply because there is no reason to put it here, and in addition,
 
25519
# creating and moving files from /tmp can sometimes cause problems.
 
25520
# Create a temporary directory, and hook for its removal unless debugging.
 
25521
$debug ||
 
25522
{
 
25523
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
25524
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
25525
}
 
25526
 
 
25527
# Create a (secure) tmp directory for tmp files.
 
25528
 
 
25529
{
 
25530
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
25531
  test -n "$tmp" && test -d "$tmp"
 
25532
}  ||
 
25533
{
 
25534
  tmp=./confstat$$-$RANDOM
 
25535
  (umask 077 && mkdir $tmp)
 
25536
} ||
 
25537
{
 
25538
   echo "$me: cannot create a temporary directory in ." >&2
 
25539
   { (exit 1); exit 1; }
 
25540
}
 
25541
 
 
25542
_ACEOF
 
25543
 
 
25544
cat >>$CONFIG_STATUS <<_ACEOF
 
25545
 
 
25546
#
 
25547
# CONFIG_FILES section.
 
25548
#
 
25549
 
 
25550
# No need to generate the scripts if there are no CONFIG_FILES.
 
25551
# This happens for instance when ./config.status config.h
 
25552
if test -n "\$CONFIG_FILES"; then
 
25553
  # Protect against being on the right side of a sed subst in config.status.
 
25554
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
25555
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
25556
s,@SHELL@,$SHELL,;t t
 
25557
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
25558
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
25559
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
25560
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
25561
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
25562
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
25563
s,@exec_prefix@,$exec_prefix,;t t
 
25564
s,@prefix@,$prefix,;t t
 
25565
s,@program_transform_name@,$program_transform_name,;t t
 
25566
s,@bindir@,$bindir,;t t
 
25567
s,@sbindir@,$sbindir,;t t
 
25568
s,@libexecdir@,$libexecdir,;t t
 
25569
s,@datadir@,$datadir,;t t
 
25570
s,@sysconfdir@,$sysconfdir,;t t
 
25571
s,@sharedstatedir@,$sharedstatedir,;t t
 
25572
s,@localstatedir@,$localstatedir,;t t
 
25573
s,@libdir@,$libdir,;t t
 
25574
s,@includedir@,$includedir,;t t
 
25575
s,@oldincludedir@,$oldincludedir,;t t
 
25576
s,@infodir@,$infodir,;t t
 
25577
s,@mandir@,$mandir,;t t
 
25578
s,@build_alias@,$build_alias,;t t
 
25579
s,@host_alias@,$host_alias,;t t
 
25580
s,@target_alias@,$target_alias,;t t
 
25581
s,@DEFS@,$DEFS,;t t
 
25582
s,@ECHO_C@,$ECHO_C,;t t
 
25583
s,@ECHO_N@,$ECHO_N,;t t
 
25584
s,@ECHO_T@,$ECHO_T,;t t
 
25585
s,@LIBS@,$LIBS,;t t
 
25586
s,@build@,$build,;t t
 
25587
s,@build_cpu@,$build_cpu,;t t
 
25588
s,@build_vendor@,$build_vendor,;t t
 
25589
s,@build_os@,$build_os,;t t
 
25590
s,@host@,$host,;t t
 
25591
s,@host_cpu@,$host_cpu,;t t
 
25592
s,@host_vendor@,$host_vendor,;t t
 
25593
s,@host_os@,$host_os,;t t
 
25594
s,@EXTRA_LIBOBJS@,$EXTRA_LIBOBJS,;t t
 
25595
s,@LDFLAGS@,$LDFLAGS,;t t
 
25596
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
25597
s,@CFLAGS@,$CFLAGS,;t t
 
25598
s,@CC@,$CC,;t t
 
25599
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
25600
s,@EXEEXT@,$EXEEXT,;t t
 
25601
s,@OBJEXT@,$OBJEXT,;t t
 
25602
s,@CPP@,$CPP,;t t
 
25603
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
25604
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
25605
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
25606
s,@LN_S@,$LN_S,;t t
 
25607
s,@SET_MAKE@,$SET_MAKE,;t t
 
25608
s,@EGREP@,$EGREP,;t t
 
25609
s,@ECHO@,$ECHO,;t t
 
25610
s,@AR@,$AR,;t t
 
25611
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
25612
s,@RANLIB@,$RANLIB,;t t
 
25613
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
25614
s,@STRIP@,$STRIP,;t t
 
25615
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
25616
s,@CXX@,$CXX,;t t
 
25617
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
25618
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
25619
s,@CXXCPP@,$CXXCPP,;t t
 
25620
s,@F77@,$F77,;t t
 
25621
s,@FFLAGS@,$FFLAGS,;t t
 
25622
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
25623
s,@LIBTOOL@,$LIBTOOL,;t t
 
25624
s,@GMP_LIBS@,$GMP_LIBS,;t t
 
25625
s,@GDBM_LIBS@,$GDBM_LIBS,;t t
 
25626
s,@READLINE_LIBS@,$READLINE_LIBS,;t t
 
25627
s,@FFI_LIBS@,$FFI_LIBS,;t t
 
25628
s,@ALLOCA@,$ALLOCA,;t t
 
25629
s,@LIBOBJS@,$LIBOBJS,;t t
 
25630
s,@MAKEDEP@,$MAKEDEP,;t t
 
25631
s,@aclocaldir@,$aclocaldir,;t t
 
25632
s,@version@,$version,;t t
 
25633
s,@libversion@,$libversion,;t t
 
25634
s,@repdir@,$repdir,;t t
 
25635
s,@repexecdir@,$repexecdir,;t t
 
25636
s,@repcommonexecdir@,$repcommonexecdir,;t t
 
25637
s,@replispdir@,$replispdir,;t t
 
25638
s,@repdocfile@,$repdocfile,;t t
 
25639
s,@emacssitelispdir@,$emacssitelispdir,;t t
 
25640
s,@HAVE_UNIX@,$HAVE_UNIX,;t t
 
25641
s,@HAVE_X11@,$HAVE_X11,;t t
 
25642
s,@VERSION@,$VERSION,;t t
 
25643
s,@PACKAGE@,$PACKAGE,;t t
 
25644
s,@DATADIRNAME@,$DATADIRNAME,;t t
 
25645
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
25646
s,@INTLOBJS@,$INTLOBJS,;t t
 
25647
s,@GT_YES@,$GT_YES,;t t
 
25648
s,@GT_NO@,$GT_NO,;t t
 
25649
s,@l@,$l,;t t
 
25650
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
 
25651
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
25652
CEOF
 
25653
 
 
25654
_ACEOF
 
25655
 
 
25656
  cat >>$CONFIG_STATUS <<\_ACEOF
 
25657
  # Split the substitutions into bite-sized pieces for seds with
 
25658
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
25659
  ac_max_sed_lines=48
 
25660
  ac_sed_frag=1 # Number of current file.
 
25661
  ac_beg=1 # First line for current file.
 
25662
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
25663
  ac_more_lines=:
 
25664
  ac_sed_cmds=
 
25665
  while $ac_more_lines; do
 
25666
    if test $ac_beg -gt 1; then
 
25667
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
25668
    else
 
25669
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
25670
    fi
 
25671
    if test ! -s $tmp/subs.frag; then
 
25672
      ac_more_lines=false
 
25673
    else
 
25674
      # The purpose of the label and of the branching condition is to
 
25675
      # speed up the sed processing (if there are no `@' at all, there
 
25676
      # is no need to browse any of the substitutions).
 
25677
      # These are the two extra sed commands mentioned above.
 
25678
      (echo ':t
 
25679
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
25680
      if test -z "$ac_sed_cmds"; then
 
25681
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
25682
      else
 
25683
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
25684
      fi
 
25685
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
25686
      ac_beg=$ac_end
 
25687
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
25688
    fi
 
25689
  done
 
25690
  if test -z "$ac_sed_cmds"; then
 
25691
    ac_sed_cmds=cat
 
25692
  fi
 
25693
fi # test -n "$CONFIG_FILES"
 
25694
 
 
25695
_ACEOF
 
25696
cat >>$CONFIG_STATUS <<\_ACEOF
 
25697
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
25698
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
25699
  case $ac_file in
 
25700
  - | *:- | *:-:* ) # input from stdin
 
25701
        cat >$tmp/stdin
 
25702
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25703
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25704
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25705
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25706
  * )   ac_file_in=$ac_file.in ;;
 
25707
  esac
 
25708
 
 
25709
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
25710
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
25711
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25712
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25713
         X"$ac_file" : 'X\(//\)$' \| \
 
25714
         X"$ac_file" : 'X\(/\)' \| \
 
25715
         .     : '\(.\)' 2>/dev/null ||
 
25716
echo X"$ac_file" |
 
25717
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25718
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25719
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25720
          /^X\(\/\).*/{ s//\1/; q; }
 
25721
          s/.*/./; q'`
 
25722
  { if $as_mkdir_p; then
 
25723
    mkdir -p "$ac_dir"
 
25724
  else
 
25725
    as_dir="$ac_dir"
 
25726
    as_dirs=
 
25727
    while test ! -d "$as_dir"; do
 
25728
      as_dirs="$as_dir $as_dirs"
 
25729
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25730
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25731
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25732
         X"$as_dir" : 'X\(//\)$' \| \
 
25733
         X"$as_dir" : 'X\(/\)' \| \
 
25734
         .     : '\(.\)' 2>/dev/null ||
 
25735
echo X"$as_dir" |
 
25736
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25737
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25738
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25739
          /^X\(\/\).*/{ s//\1/; q; }
 
25740
          s/.*/./; q'`
 
25741
    done
 
25742
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25743
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25744
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25745
   { (exit 1); exit 1; }; }; }
 
25746
 
 
25747
  ac_builddir=.
 
25748
 
 
25749
if test "$ac_dir" != .; then
 
25750
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25751
  # A "../" for each directory in $ac_dir_suffix.
 
25752
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
25753
else
 
25754
  ac_dir_suffix= ac_top_builddir=
 
25755
fi
 
25756
 
 
25757
case $srcdir in
 
25758
  .)  # No --srcdir option.  We are building in place.
 
25759
    ac_srcdir=.
 
25760
    if test -z "$ac_top_builddir"; then
 
25761
       ac_top_srcdir=.
 
25762
    else
 
25763
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
25764
    fi ;;
 
25765
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
25766
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25767
    ac_top_srcdir=$srcdir ;;
 
25768
  *) # Relative path.
 
25769
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
25770
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
25771
esac
 
25772
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
25773
# absolute.
 
25774
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
25775
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
25776
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
25777
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
25778
 
 
25779
 
 
25780
  case $INSTALL in
 
25781
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25782
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
25783
  esac
 
25784
 
 
25785
  if test x"$ac_file" != x-; then
 
25786
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25787
echo "$as_me: creating $ac_file" >&6;}
 
25788
    rm -f "$ac_file"
 
25789
  fi
 
25790
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25791
  # use $as_me), people would be surprised to read:
 
25792
  #    /* config.h.  Generated by config.status.  */
 
25793
  if test x"$ac_file" = x-; then
 
25794
    configure_input=
 
25795
  else
 
25796
    configure_input="$ac_file.  "
 
25797
  fi
 
25798
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
25799
                                     sed 's,.*/,,'` by configure."
 
25800
 
 
25801
  # First look for the input files in the build tree, otherwise in the
 
25802
  # src tree.
 
25803
  ac_file_inputs=`IFS=:
 
25804
    for f in $ac_file_in; do
 
25805
      case $f in
 
25806
      -) echo $tmp/stdin ;;
 
25807
      [\\/$]*)
 
25808
         # Absolute (can't be DOS-style, as IFS=:)
 
25809
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25810
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25811
   { (exit 1); exit 1; }; }
 
25812
         echo $f;;
 
25813
      *) # Relative
 
25814
         if test -f "$f"; then
 
25815
           # Build tree
 
25816
           echo $f
 
25817
         elif test -f "$srcdir/$f"; then
 
25818
           # Source tree
 
25819
           echo $srcdir/$f
 
25820
         else
 
25821
           # /dev/null tree
 
25822
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25823
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25824
   { (exit 1); exit 1; }; }
 
25825
         fi;;
 
25826
      esac
 
25827
    done` || { (exit 1); exit 1; }
 
25828
_ACEOF
 
25829
cat >>$CONFIG_STATUS <<_ACEOF
 
25830
  sed "$ac_vpsub
8734
25831
$extrasub
8735
 
s%@SHELL@%$SHELL%g
8736
 
s%@CFLAGS@%$CFLAGS%g
8737
 
s%@CPPFLAGS@%$CPPFLAGS%g
8738
 
s%@CXXFLAGS@%$CXXFLAGS%g
8739
 
s%@FFLAGS@%$FFLAGS%g
8740
 
s%@DEFS@%$DEFS%g
8741
 
s%@LDFLAGS@%$LDFLAGS%g
8742
 
s%@LIBS@%$LIBS%g
8743
 
s%@exec_prefix@%$exec_prefix%g
8744
 
s%@prefix@%$prefix%g
8745
 
s%@program_transform_name@%$program_transform_name%g
8746
 
s%@bindir@%$bindir%g
8747
 
s%@sbindir@%$sbindir%g
8748
 
s%@libexecdir@%$libexecdir%g
8749
 
s%@datadir@%$datadir%g
8750
 
s%@sysconfdir@%$sysconfdir%g
8751
 
s%@sharedstatedir@%$sharedstatedir%g
8752
 
s%@localstatedir@%$localstatedir%g
8753
 
s%@libdir@%$libdir%g
8754
 
s%@includedir@%$includedir%g
8755
 
s%@oldincludedir@%$oldincludedir%g
8756
 
s%@infodir@%$infodir%g
8757
 
s%@mandir@%$mandir%g
8758
 
s%@host@%$host%g
8759
 
s%@host_alias@%$host_alias%g
8760
 
s%@host_cpu@%$host_cpu%g
8761
 
s%@host_vendor@%$host_vendor%g
8762
 
s%@host_os@%$host_os%g
8763
 
s%@EXTRA_LIBOBJS@%$EXTRA_LIBOBJS%g
8764
 
s%@CC@%$CC%g
8765
 
s%@CPP@%$CPP%g
8766
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8767
 
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8768
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
8769
 
s%@LN_S@%$LN_S%g
8770
 
s%@SET_MAKE@%$SET_MAKE%g
8771
 
s%@build@%$build%g
8772
 
s%@build_alias@%$build_alias%g
8773
 
s%@build_cpu@%$build_cpu%g
8774
 
s%@build_vendor@%$build_vendor%g
8775
 
s%@build_os@%$build_os%g
8776
 
s%@OBJEXT@%$OBJEXT%g
8777
 
s%@EXEEXT@%$EXEEXT%g
8778
 
s%@ECHO@%$ECHO%g
8779
 
s%@RANLIB@%$RANLIB%g
8780
 
s%@STRIP@%$STRIP%g
8781
 
s%@LIBTOOL@%$LIBTOOL%g
8782
 
s%@GMP_LIBS@%$GMP_LIBS%g
8783
 
s%@GDBM_LIBS@%$GDBM_LIBS%g
8784
 
s%@READLINE_LIBS@%$READLINE_LIBS%g
8785
 
s%@ALLOCA@%$ALLOCA%g
8786
 
s%@LIBOBJS@%$LIBOBJS%g
8787
 
s%@MAKEDEP@%$MAKEDEP%g
8788
 
s%@aclocaldir@%$aclocaldir%g
8789
 
s%@version@%$version%g
8790
 
s%@libversion@%$libversion%g
8791
 
s%@repdir@%$repdir%g
8792
 
s%@repexecdir@%$repexecdir%g
8793
 
s%@repcommonexecdir@%$repcommonexecdir%g
8794
 
s%@replispdir@%$replispdir%g
8795
 
s%@repdocfile@%$repdocfile%g
8796
 
s%@emacssitelispdir@%$emacssitelispdir%g
8797
 
s%@HAVE_UNIX@%$HAVE_UNIX%g
8798
 
s%@HAVE_X11@%$HAVE_X11%g
8799
 
s%@VERSION@%$VERSION%g
8800
 
s%@PACKAGE@%$PACKAGE%g
8801
 
s%@DATADIRNAME@%$DATADIRNAME%g
8802
 
s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8803
 
s%@INTLOBJS@%$INTLOBJS%g
8804
 
s%@GT_YES@%$GT_YES%g
8805
 
s%@GT_NO@%$GT_NO%g
8806
 
s%@l@%$l%g
8807
 
s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8808
 
 
8809
 
CEOF
8810
 
EOF
8811
 
 
8812
 
cat >> $CONFIG_STATUS <<\EOF
8813
 
 
8814
 
# Split the substitutions into bite-sized pieces for seds with
8815
 
# small command number limits, like on Digital OSF/1 and HP-UX.
8816
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8817
 
ac_file=1 # Number of current file.
8818
 
ac_beg=1 # First line for current file.
8819
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
8820
 
ac_more_lines=:
8821
 
ac_sed_cmds=""
8822
 
while $ac_more_lines; do
8823
 
  if test $ac_beg -gt 1; then
8824
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8825
 
  else
8826
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8827
 
  fi
8828
 
  if test ! -s conftest.s$ac_file; then
8829
 
    ac_more_lines=false
8830
 
    rm -f conftest.s$ac_file
8831
 
  else
8832
 
    if test -z "$ac_sed_cmds"; then
8833
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
8834
 
    else
8835
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8836
 
    fi
8837
 
    ac_file=`expr $ac_file + 1`
8838
 
    ac_beg=$ac_end
8839
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
8840
 
  fi
 
25832
_ACEOF
 
25833
cat >>$CONFIG_STATUS <<\_ACEOF
 
25834
:t
 
25835
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25836
s,@configure_input@,$configure_input,;t t
 
25837
s,@srcdir@,$ac_srcdir,;t t
 
25838
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
25839
s,@top_srcdir@,$ac_top_srcdir,;t t
 
25840
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
25841
s,@builddir@,$ac_builddir,;t t
 
25842
s,@abs_builddir@,$ac_abs_builddir,;t t
 
25843
s,@top_builddir@,$ac_top_builddir,;t t
 
25844
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
25845
s,@INSTALL@,$ac_INSTALL,;t t
 
25846
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
25847
  rm -f $tmp/stdin
 
25848
  if test x"$ac_file" != x-; then
 
25849
    mv $tmp/out $ac_file
 
25850
  else
 
25851
    cat $tmp/out
 
25852
    rm -f $tmp/out
 
25853
  fi
 
25854
 
8841
25855
done
8842
 
if test -z "$ac_sed_cmds"; then
8843
 
  ac_sed_cmds=cat
8844
 
fi
8845
 
EOF
8846
 
 
8847
 
cat >> $CONFIG_STATUS <<EOF
8848
 
 
8849
 
CONFIG_FILES=\${CONFIG_FILES-"${output_files}"}
8850
 
EOF
8851
 
cat >> $CONFIG_STATUS <<\EOF
8852
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8853
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8854
 
  case "$ac_file" in
8855
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8856
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8857
 
  *) ac_file_in="${ac_file}.in" ;;
8858
 
  esac
8859
 
 
8860
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8861
 
 
8862
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
8863
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8864
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8865
 
    # The file is in a subdirectory.
8866
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
8867
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8868
 
    # A "../" for each directory in $ac_dir_suffix.
8869
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8870
 
  else
8871
 
    ac_dir_suffix= ac_dots=
8872
 
  fi
8873
 
 
8874
 
  case "$ac_given_srcdir" in
8875
 
  .)  srcdir=.
8876
 
      if test -z "$ac_dots"; then top_srcdir=.
8877
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8878
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8879
 
  *) # Relative path.
8880
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8881
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
8882
 
  esac
8883
 
 
8884
 
  case "$ac_given_INSTALL" in
8885
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
8886
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8887
 
  esac
8888
 
 
8889
 
  echo creating "$ac_file"
8890
 
  rm -f "$ac_file"
8891
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8892
 
  case "$ac_file" in
8893
 
  *Makefile*) ac_comsub="1i\\
8894
 
# $configure_input" ;;
8895
 
  *) ac_comsub= ;;
8896
 
  esac
8897
 
 
8898
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8899
 
  sed -e "$ac_comsub
8900
 
s%@configure_input@%$configure_input%g
8901
 
s%@srcdir@%$srcdir%g
8902
 
s%@top_srcdir@%$top_srcdir%g
8903
 
s%@INSTALL@%$INSTALL%g
8904
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8905
 
fi; done
8906
 
rm -f conftest.s*
 
25856
_ACEOF
 
25857
cat >>$CONFIG_STATUS <<\_ACEOF
 
25858
 
 
25859
#
 
25860
# CONFIG_HEADER section.
 
25861
#
8907
25862
 
8908
25863
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8909
25864
# NAME is the cpp macro being defined and VALUE is the value it is being given.
8910
25865
#
8911
25866
# ac_d sets the value in "#define NAME VALUE" lines.
8912
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8913
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
8914
 
ac_dC='\3'
8915
 
ac_dD='%g'
8916
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8917
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8918
 
ac_uB='\([      ]\)%\1#\2define\3'
 
25867
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
25868
ac_dB='[        ].*$,\1#\2'
 
25869
ac_dC=' '
 
25870
ac_dD=',;t'
 
25871
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
25872
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
25873
ac_uB='$,\1#\2define\3'
8919
25874
ac_uC=' '
8920
 
ac_uD='\4%g'
8921
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8922
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8923
 
ac_eB='$%\1#\2define\3'
8924
 
ac_eC=' '
8925
 
ac_eD='%g'
 
25875
ac_uD=',;t'
8926
25876
 
8927
 
if test "${CONFIG_HEADERS+set}" != set; then
8928
 
EOF
8929
 
cat >> $CONFIG_STATUS <<EOF
8930
 
  CONFIG_HEADERS="config.h src/rep_config.h"
8931
 
EOF
8932
 
cat >> $CONFIG_STATUS <<\EOF
8933
 
fi
8934
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
25877
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8935
25878
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8936
 
  case "$ac_file" in
8937
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8938
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8939
 
  *) ac_file_in="${ac_file}.in" ;;
 
25879
  case $ac_file in
 
25880
  - | *:- | *:-:* ) # input from stdin
 
25881
        cat >$tmp/stdin
 
25882
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25883
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25884
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25885
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25886
  * )   ac_file_in=$ac_file.in ;;
8940
25887
  esac
8941
25888
 
8942
 
  echo creating $ac_file
8943
 
 
8944
 
  rm -f conftest.frag conftest.in conftest.out
8945
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8946
 
  cat $ac_file_inputs > conftest.in
8947
 
 
8948
 
EOF
8949
 
 
8950
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
8951
 
# the proper values into config.h.in to produce config.h.  And first:
8952
 
# Protect against being on the right side of a sed subst in config.status.
8953
 
# Protect against being in an unquoted here document in config.status.
8954
 
rm -f conftest.vals
8955
 
cat > conftest.hdr <<\EOF
8956
 
s/[\\&%]/\\&/g
8957
 
s%[\\$`]%\\&%g
8958
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8959
 
s%ac_d%ac_u%gp
8960
 
s%ac_u%ac_e%gp
8961
 
EOF
8962
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
8963
 
rm -f conftest.hdr
 
25889
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25890
echo "$as_me: creating $ac_file" >&6;}
 
25891
 
 
25892
  # First look for the input files in the build tree, otherwise in the
 
25893
  # src tree.
 
25894
  ac_file_inputs=`IFS=:
 
25895
    for f in $ac_file_in; do
 
25896
      case $f in
 
25897
      -) echo $tmp/stdin ;;
 
25898
      [\\/$]*)
 
25899
         # Absolute (can't be DOS-style, as IFS=:)
 
25900
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25901
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25902
   { (exit 1); exit 1; }; }
 
25903
         echo $f;;
 
25904
      *) # Relative
 
25905
         if test -f "$f"; then
 
25906
           # Build tree
 
25907
           echo $f
 
25908
         elif test -f "$srcdir/$f"; then
 
25909
           # Source tree
 
25910
           echo $srcdir/$f
 
25911
         else
 
25912
           # /dev/null tree
 
25913
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25914
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25915
   { (exit 1); exit 1; }; }
 
25916
         fi;;
 
25917
      esac
 
25918
    done` || { (exit 1); exit 1; }
 
25919
  # Remove the trailing spaces.
 
25920
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
25921
 
 
25922
_ACEOF
 
25923
 
 
25924
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
25925
# `conftest.undefs', that substitutes the proper values into
 
25926
# config.h.in to produce config.h.  The first handles `#define'
 
25927
# templates, and the second `#undef' templates.
 
25928
# And first: Protect against being on the right side of a sed subst in
 
25929
# config.status.  Protect against being in an unquoted here document
 
25930
# in config.status.
 
25931
rm -f conftest.defines conftest.undefs
 
25932
# Using a here document instead of a string reduces the quoting nightmare.
 
25933
# Putting comments in sed scripts is not portable.
 
25934
#
 
25935
# `end' is used to avoid that the second main sed command (meant for
 
25936
# 0-ary CPP macros) applies to n-ary macro definitions.
 
25937
# See the Autoconf documentation for `clear'.
 
25938
cat >confdef2sed.sed <<\_ACEOF
 
25939
s/[\\&,]/\\&/g
 
25940
s,[\\$`],\\&,g
 
25941
t clear
 
25942
: clear
 
25943
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
25944
t end
 
25945
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
25946
: end
 
25947
_ACEOF
 
25948
# If some macros were called several times there might be several times
 
25949
# the same #defines, which is useless.  Nevertheless, we may not want to
 
25950
# sort them, since we want the *last* AC-DEFINE to be honored.
 
25951
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
25952
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
25953
rm -f confdef2sed.sed
8964
25954
 
8965
25955
# This sed command replaces #undef with comments.  This is necessary, for
8966
25956
# example, in the case of _POSIX_SOURCE, which is predefined and required
8967
25957
# on some systems where configure will not decide to define it.
8968
 
cat >> conftest.vals <<\EOF
8969
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8970
 
EOF
8971
 
 
8972
 
# Break up conftest.vals because some shells have a limit on
8973
 
# the size of here documents, and old seds have small limits too.
8974
 
 
8975
 
rm -f conftest.tail
8976
 
while :
8977
 
do
8978
 
  ac_lines=`grep -c . conftest.vals`
8979
 
  # grep -c gives empty output for an empty file on some AIX systems.
8980
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8981
 
  # Write a limited-size here document to conftest.frag.
8982
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8983
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8984
 
  echo 'CEOF
8985
 
  sed -f conftest.frag conftest.in > conftest.out
8986
 
  rm -f conftest.in
8987
 
  mv conftest.out conftest.in
8988
 
' >> $CONFIG_STATUS
8989
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8990
 
  rm -f conftest.vals
8991
 
  mv conftest.tail conftest.vals
8992
 
done
8993
 
rm -f conftest.vals
8994
 
 
8995
 
cat >> $CONFIG_STATUS <<\EOF
8996
 
  rm -f conftest.frag conftest.h
8997
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
8998
 
  cat conftest.in >> conftest.h
8999
 
  rm -f conftest.in
9000
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
9001
 
    echo "$ac_file is unchanged"
9002
 
    rm -f conftest.h
9003
 
  else
9004
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
9005
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9006
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9007
 
      # The file is in a subdirectory.
9008
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
25958
cat >>conftest.undefs <<\_ACEOF
 
25959
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
25960
_ACEOF
 
25961
 
 
25962
# Break up conftest.defines because some shells have a limit on the size
 
25963
# of here documents, and old seds have small limits too (100 cmds).
 
25964
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
25965
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
25966
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
25967
echo '  :' >>$CONFIG_STATUS
 
25968
rm -f conftest.tail
 
25969
while grep . conftest.defines >/dev/null
 
25970
do
 
25971
  # Write a limited-size here document to $tmp/defines.sed.
 
25972
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
25973
  # Speed up: don't consider the non `#define' lines.
 
25974
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
25975
  # Work around the forget-to-reset-the-flag bug.
 
25976
  echo 't clr' >>$CONFIG_STATUS
 
25977
  echo ': clr' >>$CONFIG_STATUS
 
25978
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
25979
  echo 'CEOF
 
25980
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
25981
  rm -f $tmp/in
 
25982
  mv $tmp/out $tmp/in
 
25983
' >>$CONFIG_STATUS
 
25984
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
25985
  rm -f conftest.defines
 
25986
  mv conftest.tail conftest.defines
 
25987
done
 
25988
rm -f conftest.defines
 
25989
echo '  fi # grep' >>$CONFIG_STATUS
 
25990
echo >>$CONFIG_STATUS
 
25991
 
 
25992
# Break up conftest.undefs because some shells have a limit on the size
 
25993
# of here documents, and old seds have small limits too (100 cmds).
 
25994
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
25995
rm -f conftest.tail
 
25996
while grep . conftest.undefs >/dev/null
 
25997
do
 
25998
  # Write a limited-size here document to $tmp/undefs.sed.
 
25999
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
26000
  # Speed up: don't consider the non `#undef'
 
26001
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
26002
  # Work around the forget-to-reset-the-flag bug.
 
26003
  echo 't clr' >>$CONFIG_STATUS
 
26004
  echo ': clr' >>$CONFIG_STATUS
 
26005
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
26006
  echo 'CEOF
 
26007
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
26008
  rm -f $tmp/in
 
26009
  mv $tmp/out $tmp/in
 
26010
' >>$CONFIG_STATUS
 
26011
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
26012
  rm -f conftest.undefs
 
26013
  mv conftest.tail conftest.undefs
 
26014
done
 
26015
rm -f conftest.undefs
 
26016
 
 
26017
cat >>$CONFIG_STATUS <<\_ACEOF
 
26018
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
26019
  # use $as_me), people would be surprised to read:
 
26020
  #    /* config.h.  Generated by config.status.  */
 
26021
  if test x"$ac_file" = x-; then
 
26022
    echo "/* Generated by configure.  */" >$tmp/config.h
 
26023
  else
 
26024
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
26025
  fi
 
26026
  cat $tmp/in >>$tmp/config.h
 
26027
  rm -f $tmp/in
 
26028
  if test x"$ac_file" != x-; then
 
26029
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
26030
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
26031
echo "$as_me: $ac_file is unchanged" >&6;}
 
26032
    else
 
26033
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
26034
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26035
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
26036
         X"$ac_file" : 'X\(//\)$' \| \
 
26037
         X"$ac_file" : 'X\(/\)' \| \
 
26038
         .     : '\(.\)' 2>/dev/null ||
 
26039
echo X"$ac_file" |
 
26040
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26041
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26042
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26043
          /^X\(\/\).*/{ s//\1/; q; }
 
26044
          s/.*/./; q'`
 
26045
      { if $as_mkdir_p; then
 
26046
    mkdir -p "$ac_dir"
 
26047
  else
 
26048
    as_dir="$ac_dir"
 
26049
    as_dirs=
 
26050
    while test ! -d "$as_dir"; do
 
26051
      as_dirs="$as_dir $as_dirs"
 
26052
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
26053
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26054
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
26055
         X"$as_dir" : 'X\(//\)$' \| \
 
26056
         X"$as_dir" : 'X\(/\)' \| \
 
26057
         .     : '\(.\)' 2>/dev/null ||
 
26058
echo X"$as_dir" |
 
26059
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26060
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26061
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26062
          /^X\(\/\).*/{ s//\1/; q; }
 
26063
          s/.*/./; q'`
 
26064
    done
 
26065
    test ! -n "$as_dirs" || mkdir $as_dirs
 
26066
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
26067
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
26068
   { (exit 1); exit 1; }; }; }
 
26069
 
 
26070
      rm -f $ac_file
 
26071
      mv $tmp/config.h $ac_file
9009
26072
    fi
9010
 
    rm -f $ac_file
9011
 
    mv conftest.h $ac_file
 
26073
  else
 
26074
    cat $tmp/config.h
 
26075
    rm -f $tmp/config.h
9012
26076
  fi
9013
 
fi; done
9014
 
 
9015
 
EOF
9016
 
cat >> $CONFIG_STATUS <<EOF
9017
 
 
9018
 
EOF
9019
 
cat >> $CONFIG_STATUS <<\EOF
9020
 
rm -f rules.mk
9021
 
exit 0
9022
 
EOF
 
26077
done
 
26078
_ACEOF
 
26079
cat >>$CONFIG_STATUS <<\_ACEOF
 
26080
 
 
26081
#
 
26082
# CONFIG_COMMANDS section.
 
26083
#
 
26084
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
26085
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
26086
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
26087
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
26088
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26089
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
26090
         X"$ac_dest" : 'X\(//\)$' \| \
 
26091
         X"$ac_dest" : 'X\(/\)' \| \
 
26092
         .     : '\(.\)' 2>/dev/null ||
 
26093
echo X"$ac_dest" |
 
26094
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26095
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26096
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26097
          /^X\(\/\).*/{ s//\1/; q; }
 
26098
          s/.*/./; q'`
 
26099
  ac_builddir=.
 
26100
 
 
26101
if test "$ac_dir" != .; then
 
26102
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
26103
  # A "../" for each directory in $ac_dir_suffix.
 
26104
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
26105
else
 
26106
  ac_dir_suffix= ac_top_builddir=
 
26107
fi
 
26108
 
 
26109
case $srcdir in
 
26110
  .)  # No --srcdir option.  We are building in place.
 
26111
    ac_srcdir=.
 
26112
    if test -z "$ac_top_builddir"; then
 
26113
       ac_top_srcdir=.
 
26114
    else
 
26115
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
26116
    fi ;;
 
26117
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
26118
    ac_srcdir=$srcdir$ac_dir_suffix;
 
26119
    ac_top_srcdir=$srcdir ;;
 
26120
  *) # Relative path.
 
26121
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
26122
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
26123
esac
 
26124
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
26125
# absolute.
 
26126
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
26127
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
26128
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
26129
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
26130
 
 
26131
 
 
26132
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
26133
echo "$as_me: executing $ac_dest commands" >&6;}
 
26134
  case $ac_dest in
 
26135
    default ) rm -f rules.mk ;;
 
26136
  esac
 
26137
done
 
26138
_ACEOF
 
26139
 
 
26140
cat >>$CONFIG_STATUS <<\_ACEOF
 
26141
 
 
26142
{ (exit 0); exit 0; }
 
26143
_ACEOF
9023
26144
chmod +x $CONFIG_STATUS
9024
 
rm -fr confdefs* $ac_clean_files
9025
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
26145
ac_clean_files=$ac_clean_files_save
 
26146
 
 
26147
 
 
26148
# configure is writing to config.log, and then calls config.status.
 
26149
# config.status does its own redirection, appending to config.log.
 
26150
# Unfortunately, on DOS this fails, as config.log is still kept open
 
26151
# by configure, so config.status won't be able to write to it; its
 
26152
# output is simply discarded.  So we exec the FD to /dev/null,
 
26153
# effectively closing config.log, so it can be properly (re)opened and
 
26154
# appended to by config.status.  When coming back to configure, we
 
26155
# need to make the FD available again.
 
26156
if test "$no_create" != yes; then
 
26157
  ac_cs_success=:
 
26158
  ac_config_status_args=
 
26159
  test "$silent" = yes &&
 
26160
    ac_config_status_args="$ac_config_status_args --quiet"
 
26161
  exec 5>/dev/null
 
26162
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
26163
  exec 5>>config.log
 
26164
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
26165
  # would make configure fail if this is the last instruction.
 
26166
  $ac_cs_success || { (exit 1); exit 1; }
 
26167
fi
9026
26168
 
9027
26169
 
9028
26170
tem=`make --version -f /dev/null 2>&1 | grep GNU`
9029
26171
if test "x$tem" = "x"; then
9030
 
  echo "configure: warning: You need to use GNU Make when compiling" 1>&2
 
26172
  { echo "$as_me:$LINENO: WARNING: You need to use GNU Make when compiling" >&5
 
26173
echo "$as_me: WARNING: You need to use GNU Make when compiling" >&2;}
9031
26174
fi
9032
26175