~ubuntu-branches/ubuntu/lucid/gauche-c-wrapper/lucid

« back to all changes in this revision

Viewing changes to libffi/configure

  • Committer: Bazaar Package Importer
  • Author(s): NIIBE Yutaka
  • Date: 2008-04-07 09:15:03 UTC
  • Revision ID: james.westby@ubuntu.com-20080407091503-wu0h414koe95kj4i
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for libffi 2.1.
 
4
#
 
5
# Report bugs to <http://gcc.gnu.org/bugs.html>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
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
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
 
 
247
# Check that we are running under the correct shell.
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
 
 
250
case X$ECHO in
 
251
X*--fallback-echo)
 
252
  # Remove one level of quotation (which was required for Make).
 
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
254
  ;;
 
255
esac
 
256
 
 
257
echo=${ECHO-echo}
 
258
if test "X$1" = X--no-reexec; then
 
259
  # Discard the --no-reexec flag, and continue.
 
260
  shift
 
261
elif test "X$1" = X--fallback-echo; then
 
262
  # Avoid inline document here, it may be left over
 
263
  :
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $echo works!
 
266
  :
 
267
else
 
268
  # Restart under the correct shell.
 
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
270
fi
 
271
 
 
272
if test "X$1" = X--fallback-echo; then
 
273
  # used as fallback echo
 
274
  shift
 
275
  cat <<EOF
 
276
$*
 
277
EOF
 
278
  exit 0
 
279
fi
 
280
 
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
282
# if CDPATH is set.
 
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
284
 
 
285
if test -z "$ECHO"; then
 
286
if test "X${echo_test_string+set}" != Xset; then
 
287
# find a string as large as possible, as long as the shell can cope with it
 
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
290
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
291
       echo_test_string=`eval $cmd` &&
 
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
293
    then
 
294
      break
 
295
    fi
 
296
  done
 
297
fi
 
298
 
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
302
  :
 
303
else
 
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
305
  # backslashes.  This makes it impossible to quote backslashes using
 
306
  #   echo "$something" | sed 's/\\/\\\\/g'
 
307
  #
 
308
  # So, first we look for a working echo in the user's PATH.
 
309
 
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
 
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
317
      echo="$dir/echo"
 
318
      break
 
319
    fi
 
320
  done
 
321
  IFS="$lt_save_ifs"
 
322
 
 
323
  if test "X$echo" = Xecho; then
 
324
    # We didn't find a better echo, so look for alternatives.
 
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      # This shell has a builtin print -r that does the trick.
 
329
      echo='print -r'
 
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
332
      # If we have ksh, try running configure again with it.
 
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
334
      export ORIGINAL_CONFIG_SHELL
 
335
      CONFIG_SHELL=/bin/ksh
 
336
      export CONFIG_SHELL
 
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
338
    else
 
339
      # Try using printf.
 
340
      echo='printf %s\n'
 
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
344
        # Cool, printf works
 
345
        :
 
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = 'X\t' &&
 
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
351
        export CONFIG_SHELL
 
352
        SHELL="$CONFIG_SHELL"
 
353
        export SHELL
 
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
360
      else
 
361
        # maybe with a smaller string...
 
362
        prev=:
 
363
 
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
366
          then
 
367
            break
 
368
          fi
 
369
          prev="$cmd"
 
370
        done
 
371
 
 
372
        if test "$prev" != 'sed 50q "$0"'; then
 
373
          echo_test_string=`eval $prev`
 
374
          export echo_test_string
 
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
376
        else
 
377
          # Oops.  We lost completely, so just stick with echo.
 
378
          echo=echo
 
379
        fi
 
380
      fi
 
381
    fi
 
382
  fi
 
383
fi
 
384
fi
 
385
 
 
386
# Copy echo and quote the copy suitably for passing to libtool from
 
387
# the Makefile, instead of quoting the original, which is used later.
 
388
ECHO=$echo
 
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
391
fi
 
392
 
 
393
 
 
394
 
 
395
 
 
396
tagnames=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
 
400
# Name of the host.
 
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
402
# so uname gets run too.
 
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
404
 
 
405
exec 6>&1
 
406
 
 
407
#
 
408
# Initializations.
 
409
#
 
410
ac_default_prefix=/usr/local
 
411
ac_config_libobj_dir=.
 
412
cross_compiling=no
 
413
subdirs=
 
414
MFLAGS=
 
415
MAKEFLAGS=
 
416
SHELL=${CONFIG_SHELL-/bin/sh}
 
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
 
423
# Identity of this package.
 
424
PACKAGE_NAME='libffi'
 
425
PACKAGE_TARNAME='libffi'
 
426
PACKAGE_VERSION='2.1'
 
427
PACKAGE_STRING='libffi 2.1'
 
428
PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
 
429
 
 
430
# Factoring default headers for most tests.
 
431
ac_includes_default="\
 
432
#include <stdio.h>
 
433
#if HAVE_SYS_TYPES_H
 
434
# include <sys/types.h>
 
435
#endif
 
436
#if HAVE_SYS_STAT_H
 
437
# include <sys/stat.h>
 
438
#endif
 
439
#if STDC_HEADERS
 
440
# include <stdlib.h>
 
441
# include <stddef.h>
 
442
#else
 
443
# if HAVE_STDLIB_H
 
444
#  include <stdlib.h>
 
445
# endif
 
446
#endif
 
447
#if HAVE_STRING_H
 
448
# if !STDC_HEADERS && HAVE_MEMORY_H
 
449
#  include <memory.h>
 
450
# endif
 
451
# include <string.h>
 
452
#endif
 
453
#if HAVE_STRINGS_H
 
454
# include <strings.h>
 
455
#endif
 
456
#if HAVE_INTTYPES_H
 
457
# include <inttypes.h>
 
458
#else
 
459
# if HAVE_STDINT_H
 
460
#  include <stdint.h>
 
461
# endif
 
462
#endif
 
463
#if HAVE_UNISTD_H
 
464
# include <unistd.h>
 
465
#endif"
 
466
 
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MIPS_IRIX_TRUE MIPS_IRIX_FALSE MIPS_LINUX_TRUE MIPS_LINUX_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_WIN32_TRUE X86_WIN32_FALSE X86_DARWIN_TRUE X86_DARWIN_FALSE X86_FREEBSD_TRUE X86_FREEBSD_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M32R_TRUE M32R_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE POWERPC_FREEBSD_TRUE POWERPC_FREEBSD_FALSE ARM_TRUE ARM_FALSE LIBFFI_CRIS_TRUE LIBFFI_CRIS_FALSE FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_TRUE PA_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR LIBOBJS LTLIBOBJS'
 
468
ac_subst_files=''
 
469
 
 
470
# Initialize some variables set by options.
 
471
ac_init_help=
 
472
ac_init_version=false
 
473
# The variables have the same names as the options, with
 
474
# dashes changed to underlines.
 
475
cache_file=/dev/null
 
476
exec_prefix=NONE
 
477
no_create=
 
478
no_recursion=
 
479
prefix=NONE
 
480
program_prefix=NONE
 
481
program_suffix=NONE
 
482
program_transform_name=s,x,x,
 
483
silent=
 
484
site=
 
485
srcdir=
 
486
verbose=
 
487
x_includes=NONE
 
488
x_libraries=NONE
 
489
 
 
490
# Installation directory options.
 
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
492
# and all the variables that are supposed to be based on exec_prefix
 
493
# by default will actually change.
 
494
# Use braces instead of parens because sh, perl, etc. also accept them.
 
495
bindir='${exec_prefix}/bin'
 
496
sbindir='${exec_prefix}/sbin'
 
497
libexecdir='${exec_prefix}/libexec'
 
498
datadir='${prefix}/share'
 
499
sysconfdir='${prefix}/etc'
 
500
sharedstatedir='${prefix}/com'
 
501
localstatedir='${prefix}/var'
 
502
libdir='${exec_prefix}/lib'
 
503
includedir='${prefix}/include'
 
504
oldincludedir='/usr/include'
 
505
infodir='${prefix}/info'
 
506
mandir='${prefix}/man'
 
507
 
 
508
ac_prev=
 
509
for ac_option
 
510
do
 
511
  # If the previous option needs an argument, assign it.
 
512
  if test -n "$ac_prev"; then
 
513
    eval "$ac_prev=\$ac_option"
 
514
    ac_prev=
 
515
    continue
 
516
  fi
 
517
 
 
518
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
519
 
 
520
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
521
 
 
522
  case $ac_option in
 
523
 
 
524
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
525
    ac_prev=bindir ;;
 
526
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
527
    bindir=$ac_optarg ;;
 
528
 
 
529
  -build | --build | --buil | --bui | --bu)
 
530
    ac_prev=build_alias ;;
 
531
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
532
    build_alias=$ac_optarg ;;
 
533
 
 
534
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
535
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
536
    ac_prev=cache_file ;;
 
537
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
538
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
539
    cache_file=$ac_optarg ;;
 
540
 
 
541
  --config-cache | -C)
 
542
    cache_file=config.cache ;;
 
543
 
 
544
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
545
    ac_prev=datadir ;;
 
546
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
547
  | --da=*)
 
548
    datadir=$ac_optarg ;;
 
549
 
 
550
  -disable-* | --disable-*)
 
551
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
557
    eval "enable_$ac_feature=no" ;;
 
558
 
 
559
  -enable-* | --enable-*)
 
560
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
561
    # Reject names that are not valid shell variable names.
 
562
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
563
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
564
   { (exit 1); exit 1; }; }
 
565
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
566
    case $ac_option in
 
567
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
568
      *) ac_optarg=yes ;;
 
569
    esac
 
570
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
571
 
 
572
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
573
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
574
  | --exec | --exe | --ex)
 
575
    ac_prev=exec_prefix ;;
 
576
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
577
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
578
  | --exec=* | --exe=* | --ex=*)
 
579
    exec_prefix=$ac_optarg ;;
 
580
 
 
581
  -gas | --gas | --ga | --g)
 
582
    # Obsolete; use --with-gas.
 
583
    with_gas=yes ;;
 
584
 
 
585
  -help | --help | --hel | --he | -h)
 
586
    ac_init_help=long ;;
 
587
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
588
    ac_init_help=recursive ;;
 
589
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
590
    ac_init_help=short ;;
 
591
 
 
592
  -host | --host | --hos | --ho)
 
593
    ac_prev=host_alias ;;
 
594
  -host=* | --host=* | --hos=* | --ho=*)
 
595
    host_alias=$ac_optarg ;;
 
596
 
 
597
  -includedir | --includedir | --includedi | --included | --include \
 
598
  | --includ | --inclu | --incl | --inc)
 
599
    ac_prev=includedir ;;
 
600
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
601
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
602
    includedir=$ac_optarg ;;
 
603
 
 
604
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
605
    ac_prev=infodir ;;
 
606
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
607
    infodir=$ac_optarg ;;
 
608
 
 
609
  -libdir | --libdir | --libdi | --libd)
 
610
    ac_prev=libdir ;;
 
611
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
612
    libdir=$ac_optarg ;;
 
613
 
 
614
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
615
  | --libexe | --libex | --libe)
 
616
    ac_prev=libexecdir ;;
 
617
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
618
  | --libexe=* | --libex=* | --libe=*)
 
619
    libexecdir=$ac_optarg ;;
 
620
 
 
621
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
622
  | --localstate | --localstat | --localsta | --localst \
 
623
  | --locals | --local | --loca | --loc | --lo)
 
624
    ac_prev=localstatedir ;;
 
625
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
626
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
627
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
628
    localstatedir=$ac_optarg ;;
 
629
 
 
630
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
631
    ac_prev=mandir ;;
 
632
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
633
    mandir=$ac_optarg ;;
 
634
 
 
635
  -nfp | --nfp | --nf)
 
636
    # Obsolete; use --without-fp.
 
637
    with_fp=no ;;
 
638
 
 
639
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
640
  | --no-cr | --no-c | -n)
 
641
    no_create=yes ;;
 
642
 
 
643
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
644
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
645
    no_recursion=yes ;;
 
646
 
 
647
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
648
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
649
  | --oldin | --oldi | --old | --ol | --o)
 
650
    ac_prev=oldincludedir ;;
 
651
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
652
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
653
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
654
    oldincludedir=$ac_optarg ;;
 
655
 
 
656
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
657
    ac_prev=prefix ;;
 
658
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
659
    prefix=$ac_optarg ;;
 
660
 
 
661
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
662
  | --program-pre | --program-pr | --program-p)
 
663
    ac_prev=program_prefix ;;
 
664
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
665
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
666
    program_prefix=$ac_optarg ;;
 
667
 
 
668
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
669
  | --program-suf | --program-su | --program-s)
 
670
    ac_prev=program_suffix ;;
 
671
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
672
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
673
    program_suffix=$ac_optarg ;;
 
674
 
 
675
  -program-transform-name | --program-transform-name \
 
676
  | --program-transform-nam | --program-transform-na \
 
677
  | --program-transform-n | --program-transform- \
 
678
  | --program-transform | --program-transfor \
 
679
  | --program-transfo | --program-transf \
 
680
  | --program-trans | --program-tran \
 
681
  | --progr-tra | --program-tr | --program-t)
 
682
    ac_prev=program_transform_name ;;
 
683
  -program-transform-name=* | --program-transform-name=* \
 
684
  | --program-transform-nam=* | --program-transform-na=* \
 
685
  | --program-transform-n=* | --program-transform-=* \
 
686
  | --program-transform=* | --program-transfor=* \
 
687
  | --program-transfo=* | --program-transf=* \
 
688
  | --program-trans=* | --program-tran=* \
 
689
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
690
    program_transform_name=$ac_optarg ;;
 
691
 
 
692
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
693
  | -silent | --silent | --silen | --sile | --sil)
 
694
    silent=yes ;;
 
695
 
 
696
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
697
    ac_prev=sbindir ;;
 
698
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
699
  | --sbi=* | --sb=*)
 
700
    sbindir=$ac_optarg ;;
 
701
 
 
702
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
703
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
704
  | --sharedst | --shareds | --shared | --share | --shar \
 
705
  | --sha | --sh)
 
706
    ac_prev=sharedstatedir ;;
 
707
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
708
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
709
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
710
  | --sha=* | --sh=*)
 
711
    sharedstatedir=$ac_optarg ;;
 
712
 
 
713
  -site | --site | --sit)
 
714
    ac_prev=site ;;
 
715
  -site=* | --site=* | --sit=*)
 
716
    site=$ac_optarg ;;
 
717
 
 
718
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
719
    ac_prev=srcdir ;;
 
720
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
721
    srcdir=$ac_optarg ;;
 
722
 
 
723
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
724
  | --syscon | --sysco | --sysc | --sys | --sy)
 
725
    ac_prev=sysconfdir ;;
 
726
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
727
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
728
    sysconfdir=$ac_optarg ;;
 
729
 
 
730
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
731
    ac_prev=target_alias ;;
 
732
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
733
    target_alias=$ac_optarg ;;
 
734
 
 
735
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
736
    verbose=yes ;;
 
737
 
 
738
  -version | --version | --versio | --versi | --vers | -V)
 
739
    ac_init_version=: ;;
 
740
 
 
741
  -with-* | --with-*)
 
742
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
743
    # Reject names that are not valid shell variable names.
 
744
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
745
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
746
   { (exit 1); exit 1; }; }
 
747
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
748
    case $ac_option in
 
749
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
750
      *) ac_optarg=yes ;;
 
751
    esac
 
752
    eval "with_$ac_package='$ac_optarg'" ;;
 
753
 
 
754
  -without-* | --without-*)
 
755
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
756
    # Reject names that are not valid shell variable names.
 
757
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
758
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
759
   { (exit 1); exit 1; }; }
 
760
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
761
    eval "with_$ac_package=no" ;;
 
762
 
 
763
  --x)
 
764
    # Obsolete; use --with-x.
 
765
    with_x=yes ;;
 
766
 
 
767
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
768
  | --x-incl | --x-inc | --x-in | --x-i)
 
769
    ac_prev=x_includes ;;
 
770
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
771
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
772
    x_includes=$ac_optarg ;;
 
773
 
 
774
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
775
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
776
    ac_prev=x_libraries ;;
 
777
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
778
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
779
    x_libraries=$ac_optarg ;;
 
780
 
 
781
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
782
Try \`$0 --help' for more information." >&2
 
783
   { (exit 1); exit 1; }; }
 
784
    ;;
 
785
 
 
786
  *=*)
 
787
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
788
    # Reject names that are not valid shell variable names.
 
789
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
790
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
791
   { (exit 1); exit 1; }; }
 
792
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
793
    eval "$ac_envvar='$ac_optarg'"
 
794
    export $ac_envvar ;;
 
795
 
 
796
  *)
 
797
    # FIXME: should be removed in autoconf 3.0.
 
798
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
799
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
800
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
801
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
802
    ;;
 
803
 
 
804
  esac
 
805
done
 
806
 
 
807
if test -n "$ac_prev"; then
 
808
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
809
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
810
   { (exit 1); exit 1; }; }
 
811
fi
 
812
 
 
813
# Be sure to have absolute paths.
 
814
for ac_var in exec_prefix prefix
 
815
do
 
816
  eval ac_val=$`echo $ac_var`
 
817
  case $ac_val in
 
818
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
819
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
820
   { (exit 1); exit 1; }; };;
 
821
  esac
 
822
done
 
823
 
 
824
# Be sure to have absolute paths.
 
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
 
827
do
 
828
  eval ac_val=$`echo $ac_var`
 
829
  case $ac_val in
 
830
    [\\/$]* | ?:[\\/]* ) ;;
 
831
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
832
   { (exit 1); exit 1; }; };;
 
833
  esac
 
834
done
 
835
 
 
836
# There might be people who depend on the old broken behavior: `$host'
 
837
# used to hold the argument of --host etc.
 
838
# FIXME: To remove some day.
 
839
build=$build_alias
 
840
host=$host_alias
 
841
target=$target_alias
 
842
 
 
843
# FIXME: To remove some day.
 
844
if test "x$host_alias" != x; then
 
845
  if test "x$build_alias" = x; then
 
846
    cross_compiling=maybe
 
847
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
848
    If a cross compiler is detected then cross compile mode will be used." >&2
 
849
  elif test "x$build_alias" != "x$host_alias"; then
 
850
    cross_compiling=yes
 
851
  fi
 
852
fi
 
853
 
 
854
ac_tool_prefix=
 
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
856
 
 
857
test "$silent" = yes && exec 6>/dev/null
 
858
 
 
859
 
 
860
# Find the source files, if location was not specified.
 
861
if test -z "$srcdir"; then
 
862
  ac_srcdir_defaulted=yes
 
863
  # Try the directory containing this script, then its parent.
 
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
 
870
echo X"$0" |
 
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
874
          /^X\(\/\).*/{ s//\1/; q; }
 
875
          s/.*/./; q'`
 
876
  srcdir=$ac_confdir
 
877
  if test ! -r $srcdir/$ac_unique_file; then
 
878
    srcdir=..
 
879
  fi
 
880
else
 
881
  ac_srcdir_defaulted=no
 
882
fi
 
883
if test ! -r $srcdir/$ac_unique_file; then
 
884
  if test "$ac_srcdir_defaulted" = yes; then
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
886
   { (exit 1); exit 1; }; }
 
887
  else
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
889
   { (exit 1); exit 1; }; }
 
890
  fi
 
891
fi
 
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
893
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
896
ac_env_build_alias_set=${build_alias+set}
 
897
ac_env_build_alias_value=$build_alias
 
898
ac_cv_env_build_alias_set=${build_alias+set}
 
899
ac_cv_env_build_alias_value=$build_alias
 
900
ac_env_host_alias_set=${host_alias+set}
 
901
ac_env_host_alias_value=$host_alias
 
902
ac_cv_env_host_alias_set=${host_alias+set}
 
903
ac_cv_env_host_alias_value=$host_alias
 
904
ac_env_target_alias_set=${target_alias+set}
 
905
ac_env_target_alias_value=$target_alias
 
906
ac_cv_env_target_alias_set=${target_alias+set}
 
907
ac_cv_env_target_alias_value=$target_alias
 
908
ac_env_CC_set=${CC+set}
 
909
ac_env_CC_value=$CC
 
910
ac_cv_env_CC_set=${CC+set}
 
911
ac_cv_env_CC_value=$CC
 
912
ac_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_env_CFLAGS_value=$CFLAGS
 
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
915
ac_cv_env_CFLAGS_value=$CFLAGS
 
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_env_LDFLAGS_value=$LDFLAGS
 
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
924
ac_env_CCAS_set=${CCAS+set}
 
925
ac_env_CCAS_value=$CCAS
 
926
ac_cv_env_CCAS_set=${CCAS+set}
 
927
ac_cv_env_CCAS_value=$CCAS
 
928
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
 
929
ac_env_CCASFLAGS_value=$CCASFLAGS
 
930
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
 
931
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
 
932
ac_env_CPP_set=${CPP+set}
 
933
ac_env_CPP_value=$CPP
 
934
ac_cv_env_CPP_set=${CPP+set}
 
935
ac_cv_env_CPP_value=$CPP
 
936
ac_env_CXX_set=${CXX+set}
 
937
ac_env_CXX_value=$CXX
 
938
ac_cv_env_CXX_set=${CXX+set}
 
939
ac_cv_env_CXX_value=$CXX
 
940
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
941
ac_env_CXXFLAGS_value=$CXXFLAGS
 
942
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
943
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
944
ac_env_CXXCPP_set=${CXXCPP+set}
 
945
ac_env_CXXCPP_value=$CXXCPP
 
946
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
947
ac_cv_env_CXXCPP_value=$CXXCPP
 
948
ac_env_F77_set=${F77+set}
 
949
ac_env_F77_value=$F77
 
950
ac_cv_env_F77_set=${F77+set}
 
951
ac_cv_env_F77_value=$F77
 
952
ac_env_FFLAGS_set=${FFLAGS+set}
 
953
ac_env_FFLAGS_value=$FFLAGS
 
954
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
955
ac_cv_env_FFLAGS_value=$FFLAGS
 
956
 
 
957
#
 
958
# Report the --help message.
 
959
#
 
960
if test "$ac_init_help" = "long"; then
 
961
  # Omit some internal or obsolete options to make the list less imposing.
 
962
  # This message is too long to be a string in the A/UX 3.1 sh.
 
963
  cat <<_ACEOF
 
964
\`configure' configures libffi 2.1 to adapt to many kinds of systems.
 
965
 
 
966
Usage: $0 [OPTION]... [VAR=VALUE]...
 
967
 
 
968
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
969
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
970
 
 
971
Defaults for the options are specified in brackets.
 
972
 
 
973
Configuration:
 
974
  -h, --help              display this help and exit
 
975
      --help=short        display options specific to this package
 
976
      --help=recursive    display the short help of all the included packages
 
977
  -V, --version           display version information and exit
 
978
  -q, --quiet, --silent   do not print \`checking...' messages
 
979
      --cache-file=FILE   cache test results in FILE [disabled]
 
980
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
981
  -n, --no-create         do not create output files
 
982
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
983
 
 
984
_ACEOF
 
985
 
 
986
  cat <<_ACEOF
 
987
Installation directories:
 
988
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
989
                          [$ac_default_prefix]
 
990
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
991
                          [PREFIX]
 
992
 
 
993
By default, \`make install' will install all the files in
 
994
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
995
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
996
for instance \`--prefix=\$HOME'.
 
997
 
 
998
For better control, use the options below.
 
999
 
 
1000
Fine tuning of the installation directories:
 
1001
  --bindir=DIR           user executables [EPREFIX/bin]
 
1002
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1003
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1004
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
1005
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1006
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1007
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1008
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1009
  --includedir=DIR       C header files [PREFIX/include]
 
1010
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1011
  --infodir=DIR          info documentation [PREFIX/info]
 
1012
  --mandir=DIR           man documentation [PREFIX/man]
 
1013
_ACEOF
 
1014
 
 
1015
  cat <<\_ACEOF
 
1016
 
 
1017
Program names:
 
1018
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1019
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1020
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1021
 
 
1022
System types:
 
1023
  --build=BUILD     configure for building on BUILD [guessed]
 
1024
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1025
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1026
_ACEOF
 
1027
fi
 
1028
 
 
1029
if test -n "$ac_init_help"; then
 
1030
  case $ac_init_help in
 
1031
     short | recursive ) echo "Configuration of libffi 2.1:";;
 
1032
   esac
 
1033
  cat <<\_ACEOF
 
1034
 
 
1035
Optional Features:
 
1036
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1037
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1038
  --disable-dependency-tracking  speeds up one-time build
 
1039
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1040
  --enable-shared[=PKGS]
 
1041
                          build shared libraries [default=yes]
 
1042
  --enable-static[=PKGS]
 
1043
                          build static libraries [default=yes]
 
1044
  --enable-fast-install[=PKGS]
 
1045
                          optimize for fast installation [default=yes]
 
1046
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1047
  --enable-debug          debugging mode
 
1048
  --disable-structs       omit code for struct support
 
1049
  --disable-raw-api       make the raw api unavailable
 
1050
  --enable-purify-safety  purify-safe mode
 
1051
 
 
1052
Optional Packages:
 
1053
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1054
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1055
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1056
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1057
                          both]
 
1058
  --with-tags[=TAGS]
 
1059
                          include additional configurations [automatic]
 
1060
 
 
1061
Some influential environment variables:
 
1062
  CC          C compiler command
 
1063
  CFLAGS      C compiler flags
 
1064
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1065
              nonstandard directory <lib dir>
 
1066
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1067
              headers in a nonstandard directory <include dir>
 
1068
  CCAS        assembler compiler command (defaults to CC)
 
1069
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
 
1070
  CPP         C preprocessor
 
1071
  CXX         C++ compiler command
 
1072
  CXXFLAGS    C++ compiler flags
 
1073
  CXXCPP      C++ preprocessor
 
1074
  F77         Fortran 77 compiler command
 
1075
  FFLAGS      Fortran 77 compiler flags
 
1076
 
 
1077
Use these variables to override the choices made by `configure' or to help
 
1078
it to find libraries and programs with nonstandard names/locations.
 
1079
 
 
1080
Report bugs to <http://gcc.gnu.org/bugs.html>.
 
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
 
 
1115
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1116
# the directories may not exist.
 
1117
case `pwd` in
 
1118
.) ac_abs_builddir="$ac_dir";;
 
1119
*)
 
1120
  case "$ac_dir" in
 
1121
  .) ac_abs_builddir=`pwd`;;
 
1122
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1123
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1124
  esac;;
 
1125
esac
 
1126
case $ac_abs_builddir in
 
1127
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1128
*)
 
1129
  case ${ac_top_builddir}. in
 
1130
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1131
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1132
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1133
  esac;;
 
1134
esac
 
1135
case $ac_abs_builddir in
 
1136
.) ac_abs_srcdir=$ac_srcdir;;
 
1137
*)
 
1138
  case $ac_srcdir in
 
1139
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1140
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1141
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1142
  esac;;
 
1143
esac
 
1144
case $ac_abs_builddir in
 
1145
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1146
*)
 
1147
  case $ac_top_srcdir in
 
1148
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1149
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1150
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1151
  esac;;
 
1152
esac
 
1153
 
 
1154
    cd $ac_dir
 
1155
    # Check for guested configure; otherwise get Cygnus style configure.
 
1156
    if test -f $ac_srcdir/configure.gnu; then
 
1157
      echo
 
1158
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1159
    elif test -f $ac_srcdir/configure; then
 
1160
      echo
 
1161
      $SHELL $ac_srcdir/configure  --help=recursive
 
1162
    elif test -f $ac_srcdir/configure.ac ||
 
1163
           test -f $ac_srcdir/configure.in; then
 
1164
      echo
 
1165
      $ac_configure --help
 
1166
    else
 
1167
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1168
    fi
 
1169
    cd $ac_popdir
 
1170
  done
 
1171
fi
 
1172
 
 
1173
test -n "$ac_init_help" && exit 0
 
1174
if $ac_init_version; then
 
1175
  cat <<\_ACEOF
 
1176
libffi configure 2.1
 
1177
generated by GNU Autoconf 2.59
 
1178
 
 
1179
Copyright (C) 2003 Free Software Foundation, Inc.
 
1180
This configure script is free software; the Free Software Foundation
 
1181
gives unlimited permission to copy, distribute and modify it.
 
1182
_ACEOF
 
1183
  exit 0
 
1184
fi
 
1185
exec 5>config.log
 
1186
cat >&5 <<_ACEOF
 
1187
This file contains any messages produced by compilers while
 
1188
running configure, to aid debugging if configure makes a mistake.
 
1189
 
 
1190
It was created by libffi $as_me 2.1, which was
 
1191
generated by GNU Autoconf 2.59.  Invocation command line was
 
1192
 
 
1193
  $ $0 $@
 
1194
 
 
1195
_ACEOF
 
1196
{
 
1197
cat <<_ASUNAME
 
1198
## --------- ##
 
1199
## Platform. ##
 
1200
## --------- ##
 
1201
 
 
1202
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1203
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1204
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1205
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1206
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1207
 
 
1208
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1209
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1210
 
 
1211
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1212
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1213
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1214
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1215
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1216
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1217
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1218
 
 
1219
_ASUNAME
 
1220
 
 
1221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1222
for as_dir in $PATH
 
1223
do
 
1224
  IFS=$as_save_IFS
 
1225
  test -z "$as_dir" && as_dir=.
 
1226
  echo "PATH: $as_dir"
 
1227
done
 
1228
 
 
1229
} >&5
 
1230
 
 
1231
cat >&5 <<_ACEOF
 
1232
 
 
1233
 
 
1234
## ----------- ##
 
1235
## Core tests. ##
 
1236
## ----------- ##
 
1237
 
 
1238
_ACEOF
 
1239
 
 
1240
 
 
1241
# Keep a trace of the command line.
 
1242
# Strip out --no-create and --no-recursion so they do not pile up.
 
1243
# Strip out --silent because we don't want to record it for future runs.
 
1244
# Also quote any args containing shell meta-characters.
 
1245
# Make two passes to allow for proper duplicate-argument suppression.
 
1246
ac_configure_args=
 
1247
ac_configure_args0=
 
1248
ac_configure_args1=
 
1249
ac_sep=
 
1250
ac_must_keep_next=false
 
1251
for ac_pass in 1 2
 
1252
do
 
1253
  for ac_arg
 
1254
  do
 
1255
    case $ac_arg in
 
1256
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1257
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1258
    | -silent | --silent | --silen | --sile | --sil)
 
1259
      continue ;;
 
1260
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1261
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1262
    esac
 
1263
    case $ac_pass in
 
1264
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1265
    2)
 
1266
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1267
      if test $ac_must_keep_next = true; then
 
1268
        ac_must_keep_next=false # Got value, back to normal.
 
1269
      else
 
1270
        case $ac_arg in
 
1271
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1272
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1273
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1274
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1275
            case "$ac_configure_args0 " in
 
1276
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1277
            esac
 
1278
            ;;
 
1279
          -* ) ac_must_keep_next=true ;;
 
1280
        esac
 
1281
      fi
 
1282
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1283
      # Get rid of the leading space.
 
1284
      ac_sep=" "
 
1285
      ;;
 
1286
    esac
 
1287
  done
 
1288
done
 
1289
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1290
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1291
 
 
1292
# When interrupted or exit'd, cleanup temporary files, and complete
 
1293
# config.log.  We remove comments because anyway the quotes in there
 
1294
# would cause problems or look ugly.
 
1295
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1296
# such as our DU 5.0 friend, will then `close' the trap.
 
1297
trap 'exit_status=$?
 
1298
  # Save into config.log some information that might help in debugging.
 
1299
  {
 
1300
    echo
 
1301
 
 
1302
    cat <<\_ASBOX
 
1303
## ---------------- ##
 
1304
## Cache variables. ##
 
1305
## ---------------- ##
 
1306
_ASBOX
 
1307
    echo
 
1308
    # The following way of writing the cache mishandles newlines in values,
 
1309
{
 
1310
  (set) 2>&1 |
 
1311
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1312
    *ac_space=\ *)
 
1313
      sed -n \
 
1314
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1315
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1316
      ;;
 
1317
    *)
 
1318
      sed -n \
 
1319
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1320
      ;;
 
1321
    esac;
 
1322
}
 
1323
    echo
 
1324
 
 
1325
    cat <<\_ASBOX
 
1326
## ----------------- ##
 
1327
## Output variables. ##
 
1328
## ----------------- ##
 
1329
_ASBOX
 
1330
    echo
 
1331
    for ac_var in $ac_subst_vars
 
1332
    do
 
1333
      eval ac_val=$`echo $ac_var`
 
1334
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1335
    done | sort
 
1336
    echo
 
1337
 
 
1338
    if test -n "$ac_subst_files"; then
 
1339
      cat <<\_ASBOX
 
1340
## ------------- ##
 
1341
## Output files. ##
 
1342
## ------------- ##
 
1343
_ASBOX
 
1344
      echo
 
1345
      for ac_var in $ac_subst_files
 
1346
      do
 
1347
        eval ac_val=$`echo $ac_var`
 
1348
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1349
      done | sort
 
1350
      echo
 
1351
    fi
 
1352
 
 
1353
    if test -s confdefs.h; then
 
1354
      cat <<\_ASBOX
 
1355
## ----------- ##
 
1356
## confdefs.h. ##
 
1357
## ----------- ##
 
1358
_ASBOX
 
1359
      echo
 
1360
      sed "/^$/d" confdefs.h | sort
 
1361
      echo
 
1362
    fi
 
1363
    test "$ac_signal" != 0 &&
 
1364
      echo "$as_me: caught signal $ac_signal"
 
1365
    echo "$as_me: exit $exit_status"
 
1366
  } >&5
 
1367
  rm -f core *.core &&
 
1368
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1369
    exit $exit_status
 
1370
     ' 0
 
1371
for ac_signal in 1 2 13 15; do
 
1372
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1373
done
 
1374
ac_signal=0
 
1375
 
 
1376
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1377
rm -rf conftest* confdefs.h
 
1378
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1379
echo >confdefs.h
 
1380
 
 
1381
# Predefined preprocessor variables.
 
1382
 
 
1383
cat >>confdefs.h <<_ACEOF
 
1384
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1385
_ACEOF
 
1386
 
 
1387
 
 
1388
cat >>confdefs.h <<_ACEOF
 
1389
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1390
_ACEOF
 
1391
 
 
1392
 
 
1393
cat >>confdefs.h <<_ACEOF
 
1394
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1395
_ACEOF
 
1396
 
 
1397
 
 
1398
cat >>confdefs.h <<_ACEOF
 
1399
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1400
_ACEOF
 
1401
 
 
1402
 
 
1403
cat >>confdefs.h <<_ACEOF
 
1404
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1405
_ACEOF
 
1406
 
 
1407
 
 
1408
# Let the site file select an alternate cache file if it wants to.
 
1409
# Prefer explicitly selected file to automatically selected ones.
 
1410
if test -z "$CONFIG_SITE"; then
 
1411
  if test "x$prefix" != xNONE; then
 
1412
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1413
  else
 
1414
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1415
  fi
 
1416
fi
 
1417
for ac_site_file in $CONFIG_SITE; do
 
1418
  if test -r "$ac_site_file"; then
 
1419
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1420
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1421
    sed 's/^/| /' "$ac_site_file" >&5
 
1422
    . "$ac_site_file"
 
1423
  fi
 
1424
done
 
1425
 
 
1426
if test -r "$cache_file"; then
 
1427
  # Some versions of bash will fail to source /dev/null (special
 
1428
  # files actually), so we avoid doing that.
 
1429
  if test -f "$cache_file"; then
 
1430
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1431
echo "$as_me: loading cache $cache_file" >&6;}
 
1432
    case $cache_file in
 
1433
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1434
      *)                      . ./$cache_file;;
 
1435
    esac
 
1436
  fi
 
1437
else
 
1438
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1439
echo "$as_me: creating cache $cache_file" >&6;}
 
1440
  >$cache_file
 
1441
fi
 
1442
 
 
1443
# Check that the precious variables saved in the cache have kept the same
 
1444
# value.
 
1445
ac_cache_corrupted=false
 
1446
for ac_var in `(set) 2>&1 |
 
1447
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1448
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1449
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1450
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1451
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1452
  case $ac_old_set,$ac_new_set in
 
1453
    set,)
 
1454
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1455
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1456
      ac_cache_corrupted=: ;;
 
1457
    ,set)
 
1458
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1459
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1460
      ac_cache_corrupted=: ;;
 
1461
    ,);;
 
1462
    *)
 
1463
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1464
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1465
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1466
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1467
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1468
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1469
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1470
        ac_cache_corrupted=:
 
1471
      fi;;
 
1472
  esac
 
1473
  # Pass precious variables to config.status.
 
1474
  if test "$ac_new_set" = set; then
 
1475
    case $ac_new_val in
 
1476
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1477
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1478
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1479
    esac
 
1480
    case " $ac_configure_args " in
 
1481
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1482
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1483
    esac
 
1484
  fi
 
1485
done
 
1486
if $ac_cache_corrupted; then
 
1487
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1488
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1489
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1490
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1491
   { (exit 1); exit 1; }; }
 
1492
fi
 
1493
 
 
1494
ac_ext=c
 
1495
ac_cpp='$CPP $CPPFLAGS'
 
1496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
          ac_config_headers="$ac_config_headers fficonfig.h"
 
1527
 
 
1528
 
 
1529
ac_aux_dir=
 
1530
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1531
  if test -f $ac_dir/install-sh; then
 
1532
    ac_aux_dir=$ac_dir
 
1533
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1534
    break
 
1535
  elif test -f $ac_dir/install.sh; then
 
1536
    ac_aux_dir=$ac_dir
 
1537
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1538
    break
 
1539
  elif test -f $ac_dir/shtool; then
 
1540
    ac_aux_dir=$ac_dir
 
1541
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1542
    break
 
1543
  fi
 
1544
done
 
1545
if test -z "$ac_aux_dir"; then
 
1546
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1547
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1548
   { (exit 1); exit 1; }; }
 
1549
fi
 
1550
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1551
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1552
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1553
 
 
1554
# Make sure we can run config.sub.
 
1555
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1556
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1557
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1558
   { (exit 1); exit 1; }; }
 
1559
 
 
1560
echo "$as_me:$LINENO: checking build system type" >&5
 
1561
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1562
if test "${ac_cv_build+set}" = set; then
 
1563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1564
else
 
1565
  ac_cv_build_alias=$build_alias
 
1566
test -z "$ac_cv_build_alias" &&
 
1567
  ac_cv_build_alias=`$ac_config_guess`
 
1568
test -z "$ac_cv_build_alias" &&
 
1569
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1570
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1571
   { (exit 1); exit 1; }; }
 
1572
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1573
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1574
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1575
   { (exit 1); exit 1; }; }
 
1576
 
 
1577
fi
 
1578
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1579
echo "${ECHO_T}$ac_cv_build" >&6
 
1580
build=$ac_cv_build
 
1581
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1582
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1583
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1584
 
 
1585
 
 
1586
echo "$as_me:$LINENO: checking host system type" >&5
 
1587
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1588
if test "${ac_cv_host+set}" = set; then
 
1589
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1590
else
 
1591
  ac_cv_host_alias=$host_alias
 
1592
test -z "$ac_cv_host_alias" &&
 
1593
  ac_cv_host_alias=$ac_cv_build_alias
 
1594
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1595
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1596
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1597
   { (exit 1); exit 1; }; }
 
1598
 
 
1599
fi
 
1600
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1601
echo "${ECHO_T}$ac_cv_host" >&6
 
1602
host=$ac_cv_host
 
1603
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1604
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1605
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1606
 
 
1607
 
 
1608
echo "$as_me:$LINENO: checking target system type" >&5
 
1609
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1610
if test "${ac_cv_target+set}" = set; then
 
1611
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1612
else
 
1613
  ac_cv_target_alias=$target_alias
 
1614
test "x$ac_cv_target_alias" = "x" &&
 
1615
  ac_cv_target_alias=$ac_cv_host_alias
 
1616
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1617
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1618
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1619
   { (exit 1); exit 1; }; }
 
1620
 
 
1621
fi
 
1622
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1623
echo "${ECHO_T}$ac_cv_target" >&6
 
1624
target=$ac_cv_target
 
1625
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1626
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1627
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1628
 
 
1629
 
 
1630
# The aliases save the names the user supplied, while $host etc.
 
1631
# will get canonicalized.
 
1632
test -n "$target_alias" &&
 
1633
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1634
    NONENONEs,x,x, &&
 
1635
  program_prefix=${target_alias}-
 
1636
 
 
1637
. ${srcdir}/configure.host
 
1638
 
 
1639
am__api_version="1.9"
 
1640
# Find a good install program.  We prefer a C program (faster),
 
1641
# so one script is as good as another.  But avoid the broken or
 
1642
# incompatible versions:
 
1643
# SysV /etc/install, /usr/sbin/install
 
1644
# SunOS /usr/etc/install
 
1645
# IRIX /sbin/install
 
1646
# AIX /bin/install
 
1647
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1648
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1649
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1650
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1651
# OS/2's system install, which has a completely different semantic
 
1652
# ./install, which can be erroneously created by make from ./install.sh.
 
1653
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1654
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1655
if test -z "$INSTALL"; then
 
1656
if test "${ac_cv_path_install+set}" = set; then
 
1657
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1658
else
 
1659
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1660
for as_dir in $PATH
 
1661
do
 
1662
  IFS=$as_save_IFS
 
1663
  test -z "$as_dir" && as_dir=.
 
1664
  # Account for people who put trailing slashes in PATH elements.
 
1665
case $as_dir/ in
 
1666
  ./ | .// | /cC/* | \
 
1667
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1668
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1669
  /usr/ucb/* ) ;;
 
1670
  *)
 
1671
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1672
    # Don't use installbsd from OSF since it installs stuff as root
 
1673
    # by default.
 
1674
    for ac_prog in ginstall scoinst install; do
 
1675
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1676
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1677
          if test $ac_prog = install &&
 
1678
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1679
            # AIX install.  It has an incompatible calling convention.
 
1680
            :
 
1681
          elif test $ac_prog = install &&
 
1682
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1683
            # program-specific install script used by HP pwplus--don't use.
 
1684
            :
 
1685
          else
 
1686
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1687
            break 3
 
1688
          fi
 
1689
        fi
 
1690
      done
 
1691
    done
 
1692
    ;;
 
1693
esac
 
1694
done
 
1695
 
 
1696
 
 
1697
fi
 
1698
  if test "${ac_cv_path_install+set}" = set; then
 
1699
    INSTALL=$ac_cv_path_install
 
1700
  else
 
1701
    # As a last resort, use the slow shell script.  We don't cache a
 
1702
    # path for INSTALL within a source directory, because that will
 
1703
    # break other packages using the cache if that directory is
 
1704
    # removed, or if the path is relative.
 
1705
    INSTALL=$ac_install_sh
 
1706
  fi
 
1707
fi
 
1708
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1709
echo "${ECHO_T}$INSTALL" >&6
 
1710
 
 
1711
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1712
# It thinks the first close brace ends the variable substitution.
 
1713
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1714
 
 
1715
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1716
 
 
1717
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1718
 
 
1719
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1720
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1721
# Just in case
 
1722
sleep 1
 
1723
echo timestamp > conftest.file
 
1724
# Do `set' in a subshell so we don't clobber the current shell's
 
1725
# arguments.  Must try -L first in case configure is actually a
 
1726
# symlink; some systems play weird games with the mod time of symlinks
 
1727
# (eg FreeBSD returns the mod time of the symlink's containing
 
1728
# directory).
 
1729
if (
 
1730
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1731
   if test "$*" = "X"; then
 
1732
      # -L didn't work.
 
1733
      set X `ls -t $srcdir/configure conftest.file`
 
1734
   fi
 
1735
   rm -f conftest.file
 
1736
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1737
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1738
 
 
1739
      # If neither matched, then we have a broken ls.  This can happen
 
1740
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1741
      # broken ls alias from the environment.  This has actually
 
1742
      # happened.  Such a system could not be considered "sane".
 
1743
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1744
alias in your environment" >&5
 
1745
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1746
alias in your environment" >&2;}
 
1747
   { (exit 1); exit 1; }; }
 
1748
   fi
 
1749
 
 
1750
   test "$2" = conftest.file
 
1751
   )
 
1752
then
 
1753
   # Ok.
 
1754
   :
 
1755
else
 
1756
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1757
Check your system clock" >&5
 
1758
echo "$as_me: error: newly created file is older than distributed files!
 
1759
Check your system clock" >&2;}
 
1760
   { (exit 1); exit 1; }; }
 
1761
fi
 
1762
echo "$as_me:$LINENO: result: yes" >&5
 
1763
echo "${ECHO_T}yes" >&6
 
1764
test "$program_prefix" != NONE &&
 
1765
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1766
# Use a double $ so make ignores it.
 
1767
test "$program_suffix" != NONE &&
 
1768
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1769
# Double any \ or $.  echo might interpret backslashes.
 
1770
# By default was `s,x,x', remove it if useless.
 
1771
cat <<\_ACEOF >conftest.sed
 
1772
s/[\\$]/&&/g;s/;s,x,x,$//
 
1773
_ACEOF
 
1774
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1775
rm conftest.sed
 
1776
 
 
1777
# expand $ac_aux_dir to an absolute path
 
1778
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1779
 
 
1780
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1781
# Use eval to expand $SHELL
 
1782
if eval "$MISSING --run true"; then
 
1783
  am_missing_run="$MISSING --run "
 
1784
else
 
1785
  am_missing_run=
 
1786
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1787
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1788
fi
 
1789
 
 
1790
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1791
  # We used to keeping the `.' as first argument, in order to
 
1792
  # allow $(mkdir_p) to be used without argument.  As in
 
1793
  #   $(mkdir_p) $(somedir)
 
1794
  # where $(somedir) is conditionally defined.  However this is wrong
 
1795
  # for two reasons:
 
1796
  #  1. if the package is installed by a user who cannot write `.'
 
1797
  #     make install will fail,
 
1798
  #  2. the above comment should most certainly read
 
1799
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1800
  #     so it does not work when $(somedir) is undefined and
 
1801
  #     $(DESTDIR) is not.
 
1802
  #  To support the latter case, we have to write
 
1803
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1804
  #  so the `.' trick is pointless.
 
1805
  mkdir_p='mkdir -p --'
 
1806
else
 
1807
  # On NextStep and OpenStep, the `mkdir' command does not
 
1808
  # recognize any option.  It will interpret all options as
 
1809
  # directories to create, and then abort because `.' already
 
1810
  # exists.
 
1811
  for d in ./-p ./--version;
 
1812
  do
 
1813
    test -d $d && rmdir $d
 
1814
  done
 
1815
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1816
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1817
    mkdir_p='$(mkinstalldirs)'
 
1818
  else
 
1819
    mkdir_p='$(install_sh) -d'
 
1820
  fi
 
1821
fi
 
1822
 
 
1823
for ac_prog in gawk mawk nawk awk
 
1824
do
 
1825
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1826
set dummy $ac_prog; ac_word=$2
 
1827
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1829
if test "${ac_cv_prog_AWK+set}" = set; then
 
1830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1831
else
 
1832
  if test -n "$AWK"; then
 
1833
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1834
else
 
1835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1836
for as_dir in $PATH
 
1837
do
 
1838
  IFS=$as_save_IFS
 
1839
  test -z "$as_dir" && as_dir=.
 
1840
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1841
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1842
    ac_cv_prog_AWK="$ac_prog"
 
1843
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1844
    break 2
 
1845
  fi
 
1846
done
 
1847
done
 
1848
 
 
1849
fi
 
1850
fi
 
1851
AWK=$ac_cv_prog_AWK
 
1852
if test -n "$AWK"; then
 
1853
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1854
echo "${ECHO_T}$AWK" >&6
 
1855
else
 
1856
  echo "$as_me:$LINENO: result: no" >&5
 
1857
echo "${ECHO_T}no" >&6
 
1858
fi
 
1859
 
 
1860
  test -n "$AWK" && break
 
1861
done
 
1862
 
 
1863
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1864
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1865
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1866
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1868
else
 
1869
  cat >conftest.make <<\_ACEOF
 
1870
all:
 
1871
        @echo 'ac_maketemp="$(MAKE)"'
 
1872
_ACEOF
 
1873
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1874
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1875
if test -n "$ac_maketemp"; then
 
1876
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1877
else
 
1878
  eval ac_cv_prog_make_${ac_make}_set=no
 
1879
fi
 
1880
rm -f conftest.make
 
1881
fi
 
1882
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1883
  echo "$as_me:$LINENO: result: yes" >&5
 
1884
echo "${ECHO_T}yes" >&6
 
1885
  SET_MAKE=
 
1886
else
 
1887
  echo "$as_me:$LINENO: result: no" >&5
 
1888
echo "${ECHO_T}no" >&6
 
1889
  SET_MAKE="MAKE=${MAKE-make}"
 
1890
fi
 
1891
 
 
1892
rm -rf .tst 2>/dev/null
 
1893
mkdir .tst 2>/dev/null
 
1894
if test -d .tst; then
 
1895
  am__leading_dot=.
 
1896
else
 
1897
  am__leading_dot=_
 
1898
fi
 
1899
rmdir .tst 2>/dev/null
 
1900
 
 
1901
# test to see if srcdir already configured
 
1902
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1903
   test -f $srcdir/config.status; then
 
1904
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1905
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1906
   { (exit 1); exit 1; }; }
 
1907
fi
 
1908
 
 
1909
# test whether we have cygpath
 
1910
if test -z "$CYGPATH_W"; then
 
1911
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1912
    CYGPATH_W='cygpath -w'
 
1913
  else
 
1914
    CYGPATH_W=echo
 
1915
  fi
 
1916
fi
 
1917
 
 
1918
 
 
1919
# Define the identity of the package.
 
1920
 PACKAGE='libffi'
 
1921
 VERSION='2.1'
 
1922
 
 
1923
 
 
1924
cat >>confdefs.h <<_ACEOF
 
1925
#define PACKAGE "$PACKAGE"
 
1926
_ACEOF
 
1927
 
 
1928
 
 
1929
cat >>confdefs.h <<_ACEOF
 
1930
#define VERSION "$VERSION"
 
1931
_ACEOF
 
1932
 
 
1933
# Some tools Automake needs.
 
1934
 
 
1935
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1936
 
 
1937
 
 
1938
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1939
 
 
1940
 
 
1941
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1942
 
 
1943
 
 
1944
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1945
 
 
1946
 
 
1947
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1948
 
 
1949
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1950
 
 
1951
# Installed binaries are usually stripped using `strip' when the user
 
1952
# run `make install-strip'.  However `strip' might not be the right
 
1953
# tool to use in cross-compilation environments, therefore Automake
 
1954
# will honor the `STRIP' environment variable to overrule this program.
 
1955
if test "$cross_compiling" != no; then
 
1956
  if test -n "$ac_tool_prefix"; then
 
1957
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1958
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1959
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1960
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1961
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1962
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1963
else
 
1964
  if test -n "$STRIP"; then
 
1965
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1966
else
 
1967
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1968
for as_dir in $PATH
 
1969
do
 
1970
  IFS=$as_save_IFS
 
1971
  test -z "$as_dir" && as_dir=.
 
1972
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1973
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1974
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1975
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1976
    break 2
 
1977
  fi
 
1978
done
 
1979
done
 
1980
 
 
1981
fi
 
1982
fi
 
1983
STRIP=$ac_cv_prog_STRIP
 
1984
if test -n "$STRIP"; then
 
1985
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1986
echo "${ECHO_T}$STRIP" >&6
 
1987
else
 
1988
  echo "$as_me:$LINENO: result: no" >&5
 
1989
echo "${ECHO_T}no" >&6
 
1990
fi
 
1991
 
 
1992
fi
 
1993
if test -z "$ac_cv_prog_STRIP"; then
 
1994
  ac_ct_STRIP=$STRIP
 
1995
  # Extract the first word of "strip", so it can be a program name with args.
 
1996
set dummy strip; ac_word=$2
 
1997
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1998
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1999
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2001
else
 
2002
  if test -n "$ac_ct_STRIP"; then
 
2003
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2004
else
 
2005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2006
for as_dir in $PATH
 
2007
do
 
2008
  IFS=$as_save_IFS
 
2009
  test -z "$as_dir" && as_dir=.
 
2010
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2011
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2012
    ac_cv_prog_ac_ct_STRIP="strip"
 
2013
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2014
    break 2
 
2015
  fi
 
2016
done
 
2017
done
 
2018
 
 
2019
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
2020
fi
 
2021
fi
 
2022
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2023
if test -n "$ac_ct_STRIP"; then
 
2024
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2025
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2026
else
 
2027
  echo "$as_me:$LINENO: result: no" >&5
 
2028
echo "${ECHO_T}no" >&6
 
2029
fi
 
2030
 
 
2031
  STRIP=$ac_ct_STRIP
 
2032
else
 
2033
  STRIP="$ac_cv_prog_STRIP"
 
2034
fi
 
2035
 
 
2036
fi
 
2037
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2038
 
 
2039
# We need awk for the "check" target.  The system "awk" is bad on
 
2040
# some platforms.
 
2041
# Always define AMTAR for backward compatibility.
 
2042
 
 
2043
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2044
 
 
2045
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2046
 
 
2047
 
 
2048
 
 
2049
 
 
2050
 
 
2051
 
 
2052
ac_ext=c
 
2053
ac_cpp='$CPP $CPPFLAGS'
 
2054
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2055
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2057
if test -n "$ac_tool_prefix"; then
 
2058
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2059
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2060
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2062
if test "${ac_cv_prog_CC+set}" = set; then
 
2063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2064
else
 
2065
  if test -n "$CC"; then
 
2066
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2067
else
 
2068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2069
for as_dir in $PATH
 
2070
do
 
2071
  IFS=$as_save_IFS
 
2072
  test -z "$as_dir" && as_dir=.
 
2073
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2074
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2075
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2076
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2077
    break 2
 
2078
  fi
 
2079
done
 
2080
done
 
2081
 
 
2082
fi
 
2083
fi
 
2084
CC=$ac_cv_prog_CC
 
2085
if test -n "$CC"; then
 
2086
  echo "$as_me:$LINENO: result: $CC" >&5
 
2087
echo "${ECHO_T}$CC" >&6
 
2088
else
 
2089
  echo "$as_me:$LINENO: result: no" >&5
 
2090
echo "${ECHO_T}no" >&6
 
2091
fi
 
2092
 
 
2093
fi
 
2094
if test -z "$ac_cv_prog_CC"; then
 
2095
  ac_ct_CC=$CC
 
2096
  # Extract the first word of "gcc", so it can be a program name with args.
 
2097
set dummy gcc; ac_word=$2
 
2098
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2100
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2102
else
 
2103
  if test -n "$ac_ct_CC"; then
 
2104
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2105
else
 
2106
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2107
for as_dir in $PATH
 
2108
do
 
2109
  IFS=$as_save_IFS
 
2110
  test -z "$as_dir" && as_dir=.
 
2111
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2112
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2113
    ac_cv_prog_ac_ct_CC="gcc"
 
2114
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2115
    break 2
 
2116
  fi
 
2117
done
 
2118
done
 
2119
 
 
2120
fi
 
2121
fi
 
2122
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2123
if test -n "$ac_ct_CC"; then
 
2124
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2125
echo "${ECHO_T}$ac_ct_CC" >&6
 
2126
else
 
2127
  echo "$as_me:$LINENO: result: no" >&5
 
2128
echo "${ECHO_T}no" >&6
 
2129
fi
 
2130
 
 
2131
  CC=$ac_ct_CC
 
2132
else
 
2133
  CC="$ac_cv_prog_CC"
 
2134
fi
 
2135
 
 
2136
if test -z "$CC"; then
 
2137
  if test -n "$ac_tool_prefix"; then
 
2138
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2139
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2140
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2142
if test "${ac_cv_prog_CC+set}" = set; then
 
2143
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2144
else
 
2145
  if test -n "$CC"; then
 
2146
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2147
else
 
2148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2149
for as_dir in $PATH
 
2150
do
 
2151
  IFS=$as_save_IFS
 
2152
  test -z "$as_dir" && as_dir=.
 
2153
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2154
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2155
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2156
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2157
    break 2
 
2158
  fi
 
2159
done
 
2160
done
 
2161
 
 
2162
fi
 
2163
fi
 
2164
CC=$ac_cv_prog_CC
 
2165
if test -n "$CC"; then
 
2166
  echo "$as_me:$LINENO: result: $CC" >&5
 
2167
echo "${ECHO_T}$CC" >&6
 
2168
else
 
2169
  echo "$as_me:$LINENO: result: no" >&5
 
2170
echo "${ECHO_T}no" >&6
 
2171
fi
 
2172
 
 
2173
fi
 
2174
if test -z "$ac_cv_prog_CC"; then
 
2175
  ac_ct_CC=$CC
 
2176
  # Extract the first word of "cc", so it can be a program name with args.
 
2177
set dummy cc; ac_word=$2
 
2178
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2179
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2180
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2181
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2182
else
 
2183
  if test -n "$ac_ct_CC"; then
 
2184
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2185
else
 
2186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2187
for as_dir in $PATH
 
2188
do
 
2189
  IFS=$as_save_IFS
 
2190
  test -z "$as_dir" && as_dir=.
 
2191
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2192
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2193
    ac_cv_prog_ac_ct_CC="cc"
 
2194
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2195
    break 2
 
2196
  fi
 
2197
done
 
2198
done
 
2199
 
 
2200
fi
 
2201
fi
 
2202
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2203
if test -n "$ac_ct_CC"; then
 
2204
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2205
echo "${ECHO_T}$ac_ct_CC" >&6
 
2206
else
 
2207
  echo "$as_me:$LINENO: result: no" >&5
 
2208
echo "${ECHO_T}no" >&6
 
2209
fi
 
2210
 
 
2211
  CC=$ac_ct_CC
 
2212
else
 
2213
  CC="$ac_cv_prog_CC"
 
2214
fi
 
2215
 
 
2216
fi
 
2217
if test -z "$CC"; then
 
2218
  # Extract the first word of "cc", so it can be a program name with args.
 
2219
set dummy cc; ac_word=$2
 
2220
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2222
if test "${ac_cv_prog_CC+set}" = set; then
 
2223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2224
else
 
2225
  if test -n "$CC"; then
 
2226
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2227
else
 
2228
  ac_prog_rejected=no
 
2229
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2230
for as_dir in $PATH
 
2231
do
 
2232
  IFS=$as_save_IFS
 
2233
  test -z "$as_dir" && as_dir=.
 
2234
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2235
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2236
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2237
       ac_prog_rejected=yes
 
2238
       continue
 
2239
     fi
 
2240
    ac_cv_prog_CC="cc"
 
2241
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2242
    break 2
 
2243
  fi
 
2244
done
 
2245
done
 
2246
 
 
2247
if test $ac_prog_rejected = yes; then
 
2248
  # We found a bogon in the path, so make sure we never use it.
 
2249
  set dummy $ac_cv_prog_CC
 
2250
  shift
 
2251
  if test $# != 0; then
 
2252
    # We chose a different compiler from the bogus one.
 
2253
    # However, it has the same basename, so the bogon will be chosen
 
2254
    # first if we set CC to just the basename; use the full file name.
 
2255
    shift
 
2256
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2257
  fi
 
2258
fi
 
2259
fi
 
2260
fi
 
2261
CC=$ac_cv_prog_CC
 
2262
if test -n "$CC"; then
 
2263
  echo "$as_me:$LINENO: result: $CC" >&5
 
2264
echo "${ECHO_T}$CC" >&6
 
2265
else
 
2266
  echo "$as_me:$LINENO: result: no" >&5
 
2267
echo "${ECHO_T}no" >&6
 
2268
fi
 
2269
 
 
2270
fi
 
2271
if test -z "$CC"; then
 
2272
  if test -n "$ac_tool_prefix"; then
 
2273
  for ac_prog in cl
 
2274
  do
 
2275
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2276
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2277
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2278
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2279
if test "${ac_cv_prog_CC+set}" = set; then
 
2280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2281
else
 
2282
  if test -n "$CC"; then
 
2283
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2284
else
 
2285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2286
for as_dir in $PATH
 
2287
do
 
2288
  IFS=$as_save_IFS
 
2289
  test -z "$as_dir" && as_dir=.
 
2290
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2291
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2292
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2293
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2294
    break 2
 
2295
  fi
 
2296
done
 
2297
done
 
2298
 
 
2299
fi
 
2300
fi
 
2301
CC=$ac_cv_prog_CC
 
2302
if test -n "$CC"; then
 
2303
  echo "$as_me:$LINENO: result: $CC" >&5
 
2304
echo "${ECHO_T}$CC" >&6
 
2305
else
 
2306
  echo "$as_me:$LINENO: result: no" >&5
 
2307
echo "${ECHO_T}no" >&6
 
2308
fi
 
2309
 
 
2310
    test -n "$CC" && break
 
2311
  done
 
2312
fi
 
2313
if test -z "$CC"; then
 
2314
  ac_ct_CC=$CC
 
2315
  for ac_prog in cl
 
2316
do
 
2317
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2318
set dummy $ac_prog; ac_word=$2
 
2319
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2320
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2321
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2323
else
 
2324
  if test -n "$ac_ct_CC"; then
 
2325
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2326
else
 
2327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2328
for as_dir in $PATH
 
2329
do
 
2330
  IFS=$as_save_IFS
 
2331
  test -z "$as_dir" && as_dir=.
 
2332
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2333
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2334
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2335
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2336
    break 2
 
2337
  fi
 
2338
done
 
2339
done
 
2340
 
 
2341
fi
 
2342
fi
 
2343
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2344
if test -n "$ac_ct_CC"; then
 
2345
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2346
echo "${ECHO_T}$ac_ct_CC" >&6
 
2347
else
 
2348
  echo "$as_me:$LINENO: result: no" >&5
 
2349
echo "${ECHO_T}no" >&6
 
2350
fi
 
2351
 
 
2352
  test -n "$ac_ct_CC" && break
 
2353
done
 
2354
 
 
2355
  CC=$ac_ct_CC
 
2356
fi
 
2357
 
 
2358
fi
 
2359
 
 
2360
 
 
2361
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2362
See \`config.log' for more details." >&5
 
2363
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2364
See \`config.log' for more details." >&2;}
 
2365
   { (exit 1); exit 1; }; }
 
2366
 
 
2367
# Provide some information about the compiler.
 
2368
echo "$as_me:$LINENO:" \
 
2369
     "checking for C compiler version" >&5
 
2370
ac_compiler=`set X $ac_compile; echo $2`
 
2371
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2372
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2373
  ac_status=$?
 
2374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2375
  (exit $ac_status); }
 
2376
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2377
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2378
  ac_status=$?
 
2379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2380
  (exit $ac_status); }
 
2381
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2382
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2383
  ac_status=$?
 
2384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2385
  (exit $ac_status); }
 
2386
 
 
2387
cat >conftest.$ac_ext <<_ACEOF
 
2388
/* confdefs.h.  */
 
2389
_ACEOF
 
2390
cat confdefs.h >>conftest.$ac_ext
 
2391
cat >>conftest.$ac_ext <<_ACEOF
 
2392
/* end confdefs.h.  */
 
2393
 
 
2394
int
 
2395
main ()
 
2396
{
 
2397
 
 
2398
  ;
 
2399
  return 0;
 
2400
}
 
2401
_ACEOF
 
2402
ac_clean_files_save=$ac_clean_files
 
2403
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2404
# Try to create an executable without -o first, disregard a.out.
 
2405
# It will help us diagnose broken compilers, and finding out an intuition
 
2406
# of exeext.
 
2407
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2408
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2409
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2410
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2411
  (eval $ac_link_default) 2>&5
 
2412
  ac_status=$?
 
2413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2414
  (exit $ac_status); }; then
 
2415
  # Find the output, starting from the most likely.  This scheme is
 
2416
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2417
# resort.
 
2418
 
 
2419
# Be careful to initialize this variable, since it used to be cached.
 
2420
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2421
ac_cv_exeext=
 
2422
# b.out is created by i960 compilers.
 
2423
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2424
do
 
2425
  test -f "$ac_file" || continue
 
2426
  case $ac_file in
 
2427
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2428
        ;;
 
2429
    conftest.$ac_ext )
 
2430
        # This is the source file.
 
2431
        ;;
 
2432
    [ab].out )
 
2433
        # We found the default executable, but exeext='' is most
 
2434
        # certainly right.
 
2435
        break;;
 
2436
    *.* )
 
2437
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2438
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2439
        # but it would be cool to find out if it's true.  Does anybody
 
2440
        # maintain Libtool? --akim.
 
2441
        export ac_cv_exeext
 
2442
        break;;
 
2443
    * )
 
2444
        break;;
 
2445
  esac
 
2446
done
 
2447
else
 
2448
  echo "$as_me: failed program was:" >&5
 
2449
sed 's/^/| /' conftest.$ac_ext >&5
 
2450
 
 
2451
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2452
See \`config.log' for more details." >&5
 
2453
echo "$as_me: error: C compiler cannot create executables
 
2454
See \`config.log' for more details." >&2;}
 
2455
   { (exit 77); exit 77; }; }
 
2456
fi
 
2457
 
 
2458
ac_exeext=$ac_cv_exeext
 
2459
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2460
echo "${ECHO_T}$ac_file" >&6
 
2461
 
 
2462
# Check the compiler produces executables we can run.  If not, either
 
2463
# the compiler is broken, or we cross compile.
 
2464
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2465
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2466
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2467
# If not cross compiling, check that we can run a simple program.
 
2468
if test "$cross_compiling" != yes; then
 
2469
  if { ac_try='./$ac_file'
 
2470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2471
  (eval $ac_try) 2>&5
 
2472
  ac_status=$?
 
2473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2474
  (exit $ac_status); }; }; then
 
2475
    cross_compiling=no
 
2476
  else
 
2477
    if test "$cross_compiling" = maybe; then
 
2478
        cross_compiling=yes
 
2479
    else
 
2480
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2481
If you meant to cross compile, use \`--host'.
 
2482
See \`config.log' for more details." >&5
 
2483
echo "$as_me: error: cannot run C compiled programs.
 
2484
If you meant to cross compile, use \`--host'.
 
2485
See \`config.log' for more details." >&2;}
 
2486
   { (exit 1); exit 1; }; }
 
2487
    fi
 
2488
  fi
 
2489
fi
 
2490
echo "$as_me:$LINENO: result: yes" >&5
 
2491
echo "${ECHO_T}yes" >&6
 
2492
 
 
2493
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2494
ac_clean_files=$ac_clean_files_save
 
2495
# Check the compiler produces executables we can run.  If not, either
 
2496
# the compiler is broken, or we cross compile.
 
2497
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2498
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2499
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2500
echo "${ECHO_T}$cross_compiling" >&6
 
2501
 
 
2502
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2503
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2504
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2505
  (eval $ac_link) 2>&5
 
2506
  ac_status=$?
 
2507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2508
  (exit $ac_status); }; then
 
2509
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2510
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2511
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2512
# `rm'.
 
2513
for ac_file in conftest.exe conftest conftest.*; do
 
2514
  test -f "$ac_file" || continue
 
2515
  case $ac_file in
 
2516
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2517
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2518
          export ac_cv_exeext
 
2519
          break;;
 
2520
    * ) break;;
 
2521
  esac
 
2522
done
 
2523
else
 
2524
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2525
See \`config.log' for more details." >&5
 
2526
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2527
See \`config.log' for more details." >&2;}
 
2528
   { (exit 1); exit 1; }; }
 
2529
fi
 
2530
 
 
2531
rm -f conftest$ac_cv_exeext
 
2532
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2533
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2534
 
 
2535
rm -f conftest.$ac_ext
 
2536
EXEEXT=$ac_cv_exeext
 
2537
ac_exeext=$EXEEXT
 
2538
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2539
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2540
if test "${ac_cv_objext+set}" = set; then
 
2541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2542
else
 
2543
  cat >conftest.$ac_ext <<_ACEOF
 
2544
/* confdefs.h.  */
 
2545
_ACEOF
 
2546
cat confdefs.h >>conftest.$ac_ext
 
2547
cat >>conftest.$ac_ext <<_ACEOF
 
2548
/* end confdefs.h.  */
 
2549
 
 
2550
int
 
2551
main ()
 
2552
{
 
2553
 
 
2554
  ;
 
2555
  return 0;
 
2556
}
 
2557
_ACEOF
 
2558
rm -f conftest.o conftest.obj
 
2559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2560
  (eval $ac_compile) 2>&5
 
2561
  ac_status=$?
 
2562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2563
  (exit $ac_status); }; then
 
2564
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2565
  case $ac_file in
 
2566
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2567
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2568
       break;;
 
2569
  esac
 
2570
done
 
2571
else
 
2572
  echo "$as_me: failed program was:" >&5
 
2573
sed 's/^/| /' conftest.$ac_ext >&5
 
2574
 
 
2575
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2576
See \`config.log' for more details." >&5
 
2577
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2578
See \`config.log' for more details." >&2;}
 
2579
   { (exit 1); exit 1; }; }
 
2580
fi
 
2581
 
 
2582
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2583
fi
 
2584
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2585
echo "${ECHO_T}$ac_cv_objext" >&6
 
2586
OBJEXT=$ac_cv_objext
 
2587
ac_objext=$OBJEXT
 
2588
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2589
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2590
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2592
else
 
2593
  cat >conftest.$ac_ext <<_ACEOF
 
2594
/* confdefs.h.  */
 
2595
_ACEOF
 
2596
cat confdefs.h >>conftest.$ac_ext
 
2597
cat >>conftest.$ac_ext <<_ACEOF
 
2598
/* end confdefs.h.  */
 
2599
 
 
2600
int
 
2601
main ()
 
2602
{
 
2603
#ifndef __GNUC__
 
2604
       choke me
 
2605
#endif
 
2606
 
 
2607
  ;
 
2608
  return 0;
 
2609
}
 
2610
_ACEOF
 
2611
rm -f conftest.$ac_objext
 
2612
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2613
  (eval $ac_compile) 2>conftest.er1
 
2614
  ac_status=$?
 
2615
  grep -v '^ *+' conftest.er1 >conftest.err
 
2616
  rm -f conftest.er1
 
2617
  cat conftest.err >&5
 
2618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2619
  (exit $ac_status); } &&
 
2620
         { ac_try='test -z "$ac_c_werror_flag"
 
2621
                         || test ! -s conftest.err'
 
2622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2623
  (eval $ac_try) 2>&5
 
2624
  ac_status=$?
 
2625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2626
  (exit $ac_status); }; } &&
 
2627
         { ac_try='test -s conftest.$ac_objext'
 
2628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2629
  (eval $ac_try) 2>&5
 
2630
  ac_status=$?
 
2631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2632
  (exit $ac_status); }; }; then
 
2633
  ac_compiler_gnu=yes
 
2634
else
 
2635
  echo "$as_me: failed program was:" >&5
 
2636
sed 's/^/| /' conftest.$ac_ext >&5
 
2637
 
 
2638
ac_compiler_gnu=no
 
2639
fi
 
2640
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2641
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2642
 
 
2643
fi
 
2644
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2645
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2646
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2647
ac_test_CFLAGS=${CFLAGS+set}
 
2648
ac_save_CFLAGS=$CFLAGS
 
2649
CFLAGS="-g"
 
2650
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2651
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2652
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2654
else
 
2655
  cat >conftest.$ac_ext <<_ACEOF
 
2656
/* confdefs.h.  */
 
2657
_ACEOF
 
2658
cat confdefs.h >>conftest.$ac_ext
 
2659
cat >>conftest.$ac_ext <<_ACEOF
 
2660
/* end confdefs.h.  */
 
2661
 
 
2662
int
 
2663
main ()
 
2664
{
 
2665
 
 
2666
  ;
 
2667
  return 0;
 
2668
}
 
2669
_ACEOF
 
2670
rm -f conftest.$ac_objext
 
2671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2672
  (eval $ac_compile) 2>conftest.er1
 
2673
  ac_status=$?
 
2674
  grep -v '^ *+' conftest.er1 >conftest.err
 
2675
  rm -f conftest.er1
 
2676
  cat conftest.err >&5
 
2677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2678
  (exit $ac_status); } &&
 
2679
         { ac_try='test -z "$ac_c_werror_flag"
 
2680
                         || test ! -s conftest.err'
 
2681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2682
  (eval $ac_try) 2>&5
 
2683
  ac_status=$?
 
2684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2685
  (exit $ac_status); }; } &&
 
2686
         { ac_try='test -s conftest.$ac_objext'
 
2687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2688
  (eval $ac_try) 2>&5
 
2689
  ac_status=$?
 
2690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2691
  (exit $ac_status); }; }; then
 
2692
  ac_cv_prog_cc_g=yes
 
2693
else
 
2694
  echo "$as_me: failed program was:" >&5
 
2695
sed 's/^/| /' conftest.$ac_ext >&5
 
2696
 
 
2697
ac_cv_prog_cc_g=no
 
2698
fi
 
2699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2700
fi
 
2701
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2702
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2703
if test "$ac_test_CFLAGS" = set; then
 
2704
  CFLAGS=$ac_save_CFLAGS
 
2705
elif test $ac_cv_prog_cc_g = yes; then
 
2706
  if test "$GCC" = yes; then
 
2707
    CFLAGS="-g -O2"
 
2708
  else
 
2709
    CFLAGS="-g"
 
2710
  fi
 
2711
else
 
2712
  if test "$GCC" = yes; then
 
2713
    CFLAGS="-O2"
 
2714
  else
 
2715
    CFLAGS=
 
2716
  fi
 
2717
fi
 
2718
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2719
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2720
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2722
else
 
2723
  ac_cv_prog_cc_stdc=no
 
2724
ac_save_CC=$CC
 
2725
cat >conftest.$ac_ext <<_ACEOF
 
2726
/* confdefs.h.  */
 
2727
_ACEOF
 
2728
cat confdefs.h >>conftest.$ac_ext
 
2729
cat >>conftest.$ac_ext <<_ACEOF
 
2730
/* end confdefs.h.  */
 
2731
#include <stdarg.h>
 
2732
#include <stdio.h>
 
2733
#include <sys/types.h>
 
2734
#include <sys/stat.h>
 
2735
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2736
struct buf { int x; };
 
2737
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2738
static char *e (p, i)
 
2739
     char **p;
 
2740
     int i;
 
2741
{
 
2742
  return p[i];
 
2743
}
 
2744
static char *f (char * (*g) (char **, int), char **p, ...)
 
2745
{
 
2746
  char *s;
 
2747
  va_list v;
 
2748
  va_start (v,p);
 
2749
  s = g (p, va_arg (v,int));
 
2750
  va_end (v);
 
2751
  return s;
 
2752
}
 
2753
 
 
2754
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2755
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2756
   These don't provoke an error unfortunately, instead are silently treated
 
2757
   as 'x'.  The following induces an error, until -std1 is added to get
 
2758
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2759
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2760
   that's true only with -std1.  */
 
2761
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2762
 
 
2763
int test (int i, double x);
 
2764
struct s1 {int (*f) (int a);};
 
2765
struct s2 {int (*f) (double a);};
 
2766
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2767
int argc;
 
2768
char **argv;
 
2769
int
 
2770
main ()
 
2771
{
 
2772
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2773
  ;
 
2774
  return 0;
 
2775
}
 
2776
_ACEOF
 
2777
# Don't try gcc -ansi; that turns off useful extensions and
 
2778
# breaks some systems' header files.
 
2779
# AIX                   -qlanglvl=ansi
 
2780
# Ultrix and OSF/1      -std1
 
2781
# HP-UX 10.20 and later -Ae
 
2782
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2783
# SVR4                  -Xc -D__EXTENSIONS__
 
2784
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2785
do
 
2786
  CC="$ac_save_CC $ac_arg"
 
2787
  rm -f conftest.$ac_objext
 
2788
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2789
  (eval $ac_compile) 2>conftest.er1
 
2790
  ac_status=$?
 
2791
  grep -v '^ *+' conftest.er1 >conftest.err
 
2792
  rm -f conftest.er1
 
2793
  cat conftest.err >&5
 
2794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2795
  (exit $ac_status); } &&
 
2796
         { ac_try='test -z "$ac_c_werror_flag"
 
2797
                         || test ! -s conftest.err'
 
2798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2799
  (eval $ac_try) 2>&5
 
2800
  ac_status=$?
 
2801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2802
  (exit $ac_status); }; } &&
 
2803
         { ac_try='test -s conftest.$ac_objext'
 
2804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2805
  (eval $ac_try) 2>&5
 
2806
  ac_status=$?
 
2807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2808
  (exit $ac_status); }; }; then
 
2809
  ac_cv_prog_cc_stdc=$ac_arg
 
2810
break
 
2811
else
 
2812
  echo "$as_me: failed program was:" >&5
 
2813
sed 's/^/| /' conftest.$ac_ext >&5
 
2814
 
 
2815
fi
 
2816
rm -f conftest.err conftest.$ac_objext
 
2817
done
 
2818
rm -f conftest.$ac_ext conftest.$ac_objext
 
2819
CC=$ac_save_CC
 
2820
 
 
2821
fi
 
2822
 
 
2823
case "x$ac_cv_prog_cc_stdc" in
 
2824
  x|xno)
 
2825
    echo "$as_me:$LINENO: result: none needed" >&5
 
2826
echo "${ECHO_T}none needed" >&6 ;;
 
2827
  *)
 
2828
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2829
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2830
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2831
esac
 
2832
 
 
2833
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2834
# in C++ we need to declare it.  In case someone uses the same compiler
 
2835
# for both compiling C and C++ we need to have the C++ compiler decide
 
2836
# the declaration of exit, since it's the most demanding environment.
 
2837
cat >conftest.$ac_ext <<_ACEOF
 
2838
#ifndef __cplusplus
 
2839
  choke me
 
2840
#endif
 
2841
_ACEOF
 
2842
rm -f conftest.$ac_objext
 
2843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2844
  (eval $ac_compile) 2>conftest.er1
 
2845
  ac_status=$?
 
2846
  grep -v '^ *+' conftest.er1 >conftest.err
 
2847
  rm -f conftest.er1
 
2848
  cat conftest.err >&5
 
2849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2850
  (exit $ac_status); } &&
 
2851
         { ac_try='test -z "$ac_c_werror_flag"
 
2852
                         || test ! -s conftest.err'
 
2853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2854
  (eval $ac_try) 2>&5
 
2855
  ac_status=$?
 
2856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2857
  (exit $ac_status); }; } &&
 
2858
         { ac_try='test -s conftest.$ac_objext'
 
2859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2860
  (eval $ac_try) 2>&5
 
2861
  ac_status=$?
 
2862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2863
  (exit $ac_status); }; }; then
 
2864
  for ac_declaration in \
 
2865
   '' \
 
2866
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2867
   'extern "C" void std::exit (int); using std::exit;' \
 
2868
   'extern "C" void exit (int) throw ();' \
 
2869
   'extern "C" void exit (int);' \
 
2870
   'void exit (int);'
 
2871
do
 
2872
  cat >conftest.$ac_ext <<_ACEOF
 
2873
/* confdefs.h.  */
 
2874
_ACEOF
 
2875
cat confdefs.h >>conftest.$ac_ext
 
2876
cat >>conftest.$ac_ext <<_ACEOF
 
2877
/* end confdefs.h.  */
 
2878
$ac_declaration
 
2879
#include <stdlib.h>
 
2880
int
 
2881
main ()
 
2882
{
 
2883
exit (42);
 
2884
  ;
 
2885
  return 0;
 
2886
}
 
2887
_ACEOF
 
2888
rm -f conftest.$ac_objext
 
2889
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2890
  (eval $ac_compile) 2>conftest.er1
 
2891
  ac_status=$?
 
2892
  grep -v '^ *+' conftest.er1 >conftest.err
 
2893
  rm -f conftest.er1
 
2894
  cat conftest.err >&5
 
2895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2896
  (exit $ac_status); } &&
 
2897
         { ac_try='test -z "$ac_c_werror_flag"
 
2898
                         || test ! -s conftest.err'
 
2899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2900
  (eval $ac_try) 2>&5
 
2901
  ac_status=$?
 
2902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2903
  (exit $ac_status); }; } &&
 
2904
         { ac_try='test -s conftest.$ac_objext'
 
2905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2906
  (eval $ac_try) 2>&5
 
2907
  ac_status=$?
 
2908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2909
  (exit $ac_status); }; }; then
 
2910
  :
 
2911
else
 
2912
  echo "$as_me: failed program was:" >&5
 
2913
sed 's/^/| /' conftest.$ac_ext >&5
 
2914
 
 
2915
continue
 
2916
fi
 
2917
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2918
  cat >conftest.$ac_ext <<_ACEOF
 
2919
/* confdefs.h.  */
 
2920
_ACEOF
 
2921
cat confdefs.h >>conftest.$ac_ext
 
2922
cat >>conftest.$ac_ext <<_ACEOF
 
2923
/* end confdefs.h.  */
 
2924
$ac_declaration
 
2925
int
 
2926
main ()
 
2927
{
 
2928
exit (42);
 
2929
  ;
 
2930
  return 0;
 
2931
}
 
2932
_ACEOF
 
2933
rm -f conftest.$ac_objext
 
2934
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2935
  (eval $ac_compile) 2>conftest.er1
 
2936
  ac_status=$?
 
2937
  grep -v '^ *+' conftest.er1 >conftest.err
 
2938
  rm -f conftest.er1
 
2939
  cat conftest.err >&5
 
2940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2941
  (exit $ac_status); } &&
 
2942
         { ac_try='test -z "$ac_c_werror_flag"
 
2943
                         || test ! -s conftest.err'
 
2944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2945
  (eval $ac_try) 2>&5
 
2946
  ac_status=$?
 
2947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2948
  (exit $ac_status); }; } &&
 
2949
         { ac_try='test -s conftest.$ac_objext'
 
2950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2951
  (eval $ac_try) 2>&5
 
2952
  ac_status=$?
 
2953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2954
  (exit $ac_status); }; }; then
 
2955
  break
 
2956
else
 
2957
  echo "$as_me: failed program was:" >&5
 
2958
sed 's/^/| /' conftest.$ac_ext >&5
 
2959
 
 
2960
fi
 
2961
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2962
done
 
2963
rm -f conftest*
 
2964
if test -n "$ac_declaration"; then
 
2965
  echo '#ifdef __cplusplus' >>confdefs.h
 
2966
  echo $ac_declaration      >>confdefs.h
 
2967
  echo '#endif'             >>confdefs.h
 
2968
fi
 
2969
 
 
2970
else
 
2971
  echo "$as_me: failed program was:" >&5
 
2972
sed 's/^/| /' conftest.$ac_ext >&5
 
2973
 
 
2974
fi
 
2975
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2976
ac_ext=c
 
2977
ac_cpp='$CPP $CPPFLAGS'
 
2978
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2979
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2980
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2981
DEPDIR="${am__leading_dot}deps"
 
2982
 
 
2983
          ac_config_commands="$ac_config_commands depfiles"
 
2984
 
 
2985
 
 
2986
am_make=${MAKE-make}
 
2987
cat > confinc << 'END'
 
2988
am__doit:
 
2989
        @echo done
 
2990
.PHONY: am__doit
 
2991
END
 
2992
# If we don't find an include directive, just comment out the code.
 
2993
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2994
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2995
am__include="#"
 
2996
am__quote=
 
2997
_am_result=none
 
2998
# First try GNU make style include.
 
2999
echo "include confinc" > confmf
 
3000
# We grep out `Entering directory' and `Leaving directory'
 
3001
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3002
# In particular we don't look at `^make:' because GNU make might
 
3003
# be invoked under some other name (usually "gmake"), in which
 
3004
# case it prints its new name instead of `make'.
 
3005
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3006
   am__include=include
 
3007
   am__quote=
 
3008
   _am_result=GNU
 
3009
fi
 
3010
# Now try BSD make style include.
 
3011
if test "$am__include" = "#"; then
 
3012
   echo '.include "confinc"' > confmf
 
3013
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3014
      am__include=.include
 
3015
      am__quote="\""
 
3016
      _am_result=BSD
 
3017
   fi
 
3018
fi
 
3019
 
 
3020
 
 
3021
echo "$as_me:$LINENO: result: $_am_result" >&5
 
3022
echo "${ECHO_T}$_am_result" >&6
 
3023
rm -f confinc confmf
 
3024
 
 
3025
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3026
if test "${enable_dependency_tracking+set}" = set; then
 
3027
  enableval="$enable_dependency_tracking"
 
3028
 
 
3029
fi;
 
3030
if test "x$enable_dependency_tracking" != xno; then
 
3031
  am_depcomp="$ac_aux_dir/depcomp"
 
3032
  AMDEPBACKSLASH='\'
 
3033
fi
 
3034
 
 
3035
 
 
3036
if test "x$enable_dependency_tracking" != xno; then
 
3037
  AMDEP_TRUE=
 
3038
  AMDEP_FALSE='#'
 
3039
else
 
3040
  AMDEP_TRUE='#'
 
3041
  AMDEP_FALSE=
 
3042
fi
 
3043
 
 
3044
 
 
3045
 
 
3046
 
 
3047
depcc="$CC"   am_compiler_list=
 
3048
 
 
3049
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3050
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3051
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3052
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3053
else
 
3054
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3055
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3056
  # making bogus files that we don't know about and never remove.  For
 
3057
  # instance it was reported that on HP-UX the gcc test will end up
 
3058
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3059
  # in D'.
 
3060
  mkdir conftest.dir
 
3061
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3062
  # using a relative directory.
 
3063
  cp "$am_depcomp" conftest.dir
 
3064
  cd conftest.dir
 
3065
  # We will build objects and dependencies in a subdirectory because
 
3066
  # it helps to detect inapplicable dependency modes.  For instance
 
3067
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3068
  # side effect of compilation, but ICC will put the dependencies in
 
3069
  # the current directory while Tru64 will put them in the object
 
3070
  # directory.
 
3071
  mkdir sub
 
3072
 
 
3073
  am_cv_CC_dependencies_compiler_type=none
 
3074
  if test "$am_compiler_list" = ""; then
 
3075
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3076
  fi
 
3077
  for depmode in $am_compiler_list; do
 
3078
    # Setup a source with many dependencies, because some compilers
 
3079
    # like to wrap large dependency lists on column 80 (with \), and
 
3080
    # we should not choose a depcomp mode which is confused by this.
 
3081
    #
 
3082
    # We need to recreate these files for each test, as the compiler may
 
3083
    # overwrite some of them when testing with obscure command lines.
 
3084
    # This happens at least with the AIX C compiler.
 
3085
    : > sub/conftest.c
 
3086
    for i in 1 2 3 4 5 6; do
 
3087
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3088
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3089
      # Solaris 8's {/usr,}/bin/sh.
 
3090
      touch sub/conftst$i.h
 
3091
    done
 
3092
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3093
 
 
3094
    case $depmode in
 
3095
    nosideeffect)
 
3096
      # after this tag, mechanisms are not by side-effect, so they'll
 
3097
      # only be used when explicitly requested
 
3098
      if test "x$enable_dependency_tracking" = xyes; then
 
3099
        continue
 
3100
      else
 
3101
        break
 
3102
      fi
 
3103
      ;;
 
3104
    none) break ;;
 
3105
    esac
 
3106
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3107
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3108
    # handle `-M -o', and we need to detect this.
 
3109
    if depmode=$depmode \
 
3110
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3111
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3112
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3113
         >/dev/null 2>conftest.err &&
 
3114
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3115
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3116
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3117
      # icc doesn't choke on unknown options, it will just issue warnings
 
3118
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3119
      # that says an option was ignored or not supported.
 
3120
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3121
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3122
      # The diagnosis changed in icc 8.0:
 
3123
      #   icc: Command line remark: option '-MP' not supported
 
3124
      if (grep 'ignoring option' conftest.err ||
 
3125
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3126
        am_cv_CC_dependencies_compiler_type=$depmode
 
3127
        break
 
3128
      fi
 
3129
    fi
 
3130
  done
 
3131
 
 
3132
  cd ..
 
3133
  rm -rf conftest.dir
 
3134
else
 
3135
  am_cv_CC_dependencies_compiler_type=none
 
3136
fi
 
3137
 
 
3138
fi
 
3139
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3140
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3141
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3142
 
 
3143
 
 
3144
 
 
3145
if
 
3146
  test "x$enable_dependency_tracking" != xno \
 
3147
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3148
  am__fastdepCC_TRUE=
 
3149
  am__fastdepCC_FALSE='#'
 
3150
else
 
3151
  am__fastdepCC_TRUE='#'
 
3152
  am__fastdepCC_FALSE=
 
3153
fi
 
3154
 
 
3155
 
 
3156
 
 
3157
# By default we simply use the C compiler to build assembly code.
 
3158
 
 
3159
test "${CCAS+set}" = set || CCAS=$CC
 
3160
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
3161
 
 
3162
 
 
3163
 
 
3164
if test "x$CC" != xcc; then
 
3165
  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
3166
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
 
3167
else
 
3168
  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
3169
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
 
3170
fi
 
3171
set dummy $CC; ac_cc=`echo $2 |
 
3172
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3173
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
 
3174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3175
else
 
3176
  cat >conftest.$ac_ext <<_ACEOF
 
3177
/* confdefs.h.  */
 
3178
_ACEOF
 
3179
cat confdefs.h >>conftest.$ac_ext
 
3180
cat >>conftest.$ac_ext <<_ACEOF
 
3181
/* end confdefs.h.  */
 
3182
 
 
3183
int
 
3184
main ()
 
3185
{
 
3186
 
 
3187
  ;
 
3188
  return 0;
 
3189
}
 
3190
_ACEOF
 
3191
# Make sure it works both with $CC and with simple cc.
 
3192
# We do the test twice because some compilers refuse to overwrite an
 
3193
# existing .o file with -o, though they will create one.
 
3194
ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
 
3195
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3196
  (eval $ac_try) 2>&5
 
3197
  ac_status=$?
 
3198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3199
  (exit $ac_status); } &&
 
3200
   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3201
  (eval $ac_try) 2>&5
 
3202
  ac_status=$?
 
3203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3204
  (exit $ac_status); };
 
3205
then
 
3206
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
3207
  if test "x$CC" != xcc; then
 
3208
    # Test first that cc exists at all.
 
3209
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
3210
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3211
  (eval $ac_try) 2>&5
 
3212
  ac_status=$?
 
3213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3214
  (exit $ac_status); }; }; then
 
3215
      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
 
3216
      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3217
  (eval $ac_try) 2>&5
 
3218
  ac_status=$?
 
3219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3220
  (exit $ac_status); } &&
 
3221
         test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3222
  (eval $ac_try) 2>&5
 
3223
  ac_status=$?
 
3224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3225
  (exit $ac_status); };
 
3226
      then
 
3227
        # cc works too.
 
3228
        :
 
3229
      else
 
3230
        # cc exists but doesn't like -o.
 
3231
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3232
      fi
 
3233
    fi
 
3234
  fi
 
3235
else
 
3236
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3237
fi
 
3238
rm -f conftest*
 
3239
 
 
3240
fi
 
3241
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
 
3242
  echo "$as_me:$LINENO: result: yes" >&5
 
3243
echo "${ECHO_T}yes" >&6
 
3244
else
 
3245
  echo "$as_me:$LINENO: result: no" >&5
 
3246
echo "${ECHO_T}no" >&6
 
3247
 
 
3248
cat >>confdefs.h <<\_ACEOF
 
3249
#define NO_MINUS_C_MINUS_O 1
 
3250
_ACEOF
 
3251
 
 
3252
fi
 
3253
 
 
3254
# FIXME: we rely on the cache variable name because
 
3255
# there is no other way.
 
3256
set dummy $CC
 
3257
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3258
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
3259
   # Losing compiler, so override with the script.
 
3260
   # FIXME: It is wrong to rewrite CC.
 
3261
   # But if we don't then we get into trouble of one sort or another.
 
3262
   # A longer-term fix would be to have automake use am__CC in this case,
 
3263
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3264
   CC="$am_aux_dir/compile $CC"
 
3265
fi
 
3266
 
 
3267
# Check whether --enable-shared or --disable-shared was given.
 
3268
if test "${enable_shared+set}" = set; then
 
3269
  enableval="$enable_shared"
 
3270
  p=${PACKAGE-default}
 
3271
    case $enableval in
 
3272
    yes) enable_shared=yes ;;
 
3273
    no) enable_shared=no ;;
 
3274
    *)
 
3275
      enable_shared=no
 
3276
      # Look at the argument we got.  We use all the common list separators.
 
3277
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3278
      for pkg in $enableval; do
 
3279
        IFS="$lt_save_ifs"
 
3280
        if test "X$pkg" = "X$p"; then
 
3281
          enable_shared=yes
 
3282
        fi
 
3283
      done
 
3284
      IFS="$lt_save_ifs"
 
3285
      ;;
 
3286
    esac
 
3287
else
 
3288
  enable_shared=yes
 
3289
fi;
 
3290
 
 
3291
# Check whether --enable-static or --disable-static was given.
 
3292
if test "${enable_static+set}" = set; then
 
3293
  enableval="$enable_static"
 
3294
  p=${PACKAGE-default}
 
3295
    case $enableval in
 
3296
    yes) enable_static=yes ;;
 
3297
    no) enable_static=no ;;
 
3298
    *)
 
3299
     enable_static=no
 
3300
      # Look at the argument we got.  We use all the common list separators.
 
3301
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3302
      for pkg in $enableval; do
 
3303
        IFS="$lt_save_ifs"
 
3304
        if test "X$pkg" = "X$p"; then
 
3305
          enable_static=yes
 
3306
        fi
 
3307
      done
 
3308
      IFS="$lt_save_ifs"
 
3309
      ;;
 
3310
    esac
 
3311
else
 
3312
  enable_static=yes
 
3313
fi;
 
3314
 
 
3315
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3316
if test "${enable_fast_install+set}" = set; then
 
3317
  enableval="$enable_fast_install"
 
3318
  p=${PACKAGE-default}
 
3319
    case $enableval in
 
3320
    yes) enable_fast_install=yes ;;
 
3321
    no) enable_fast_install=no ;;
 
3322
    *)
 
3323
      enable_fast_install=no
 
3324
      # Look at the argument we got.  We use all the common list separators.
 
3325
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3326
      for pkg in $enableval; do
 
3327
        IFS="$lt_save_ifs"
 
3328
        if test "X$pkg" = "X$p"; then
 
3329
          enable_fast_install=yes
 
3330
        fi
 
3331
      done
 
3332
      IFS="$lt_save_ifs"
 
3333
      ;;
 
3334
    esac
 
3335
else
 
3336
  enable_fast_install=yes
 
3337
fi;
 
3338
 
 
3339
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3340
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3341
if test "${lt_cv_path_SED+set}" = set; then
 
3342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3343
else
 
3344
  # Loop through the user's path and test for sed and gsed.
 
3345
# Then use that list of sed's as ones to test for truncation.
 
3346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3347
for as_dir in $PATH
 
3348
do
 
3349
  IFS=$as_save_IFS
 
3350
  test -z "$as_dir" && as_dir=.
 
3351
  for lt_ac_prog in sed gsed; do
 
3352
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3353
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3354
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3355
      fi
 
3356
    done
 
3357
  done
 
3358
done
 
3359
lt_ac_max=0
 
3360
lt_ac_count=0
 
3361
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3362
# along with /bin/sed that truncates output.
 
3363
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3364
  test ! -f $lt_ac_sed && continue
 
3365
  cat /dev/null > conftest.in
 
3366
  lt_ac_count=0
 
3367
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3368
  # Check for GNU sed and select it if it is found.
 
3369
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3370
    lt_cv_path_SED=$lt_ac_sed
 
3371
    break
 
3372
  fi
 
3373
  while true; do
 
3374
    cat conftest.in conftest.in >conftest.tmp
 
3375
    mv conftest.tmp conftest.in
 
3376
    cp conftest.in conftest.nl
 
3377
    echo >>conftest.nl
 
3378
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3379
    cmp -s conftest.out conftest.nl || break
 
3380
    # 10000 chars as input seems more than enough
 
3381
    test $lt_ac_count -gt 10 && break
 
3382
    lt_ac_count=`expr $lt_ac_count + 1`
 
3383
    if test $lt_ac_count -gt $lt_ac_max; then
 
3384
      lt_ac_max=$lt_ac_count
 
3385
      lt_cv_path_SED=$lt_ac_sed
 
3386
    fi
 
3387
  done
 
3388
done
 
3389
 
 
3390
fi
 
3391
 
 
3392
SED=$lt_cv_path_SED
 
3393
echo "$as_me:$LINENO: result: $SED" >&5
 
3394
echo "${ECHO_T}$SED" >&6
 
3395
 
 
3396
echo "$as_me:$LINENO: checking for egrep" >&5
 
3397
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3398
if test "${ac_cv_prog_egrep+set}" = set; then
 
3399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3400
else
 
3401
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3402
    then ac_cv_prog_egrep='grep -E'
 
3403
    else ac_cv_prog_egrep='egrep'
 
3404
    fi
 
3405
fi
 
3406
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3407
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3408
 EGREP=$ac_cv_prog_egrep
 
3409
 
 
3410
 
 
3411
 
 
3412
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3413
if test "${with_gnu_ld+set}" = set; then
 
3414
  withval="$with_gnu_ld"
 
3415
  test "$withval" = no || with_gnu_ld=yes
 
3416
else
 
3417
  with_gnu_ld=no
 
3418
fi;
 
3419
ac_prog=ld
 
3420
if test "$GCC" = yes; then
 
3421
  # Check if gcc -print-prog-name=ld gives a path.
 
3422
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3423
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3424
  case $host in
 
3425
  *-*-mingw*)
 
3426
    # gcc leaves a trailing carriage return which upsets mingw
 
3427
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3428
  *)
 
3429
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3430
  esac
 
3431
  case $ac_prog in
 
3432
    # Accept absolute paths.
 
3433
    [\\/]* | ?:[\\/]*)
 
3434
      re_direlt='/[^/][^/]*/\.\./'
 
3435
      # Canonicalize the pathname of ld
 
3436
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3437
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3438
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3439
      done
 
3440
      test -z "$LD" && LD="$ac_prog"
 
3441
      ;;
 
3442
  "")
 
3443
    # If it fails, then pretend we aren't using GCC.
 
3444
    ac_prog=ld
 
3445
    ;;
 
3446
  *)
 
3447
    # If it is relative, then search for the first ld in PATH.
 
3448
    with_gnu_ld=unknown
 
3449
    ;;
 
3450
  esac
 
3451
elif test "$with_gnu_ld" = yes; then
 
3452
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3453
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3454
else
 
3455
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3456
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3457
fi
 
3458
if test "${lt_cv_path_LD+set}" = set; then
 
3459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3460
else
 
3461
  if test -z "$LD"; then
 
3462
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3463
  for ac_dir in $PATH; do
 
3464
    IFS="$lt_save_ifs"
 
3465
    test -z "$ac_dir" && ac_dir=.
 
3466
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3467
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3468
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3469
      # but apparently some variants of GNU ld only accept -v.
 
3470
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3471
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3472
      *GNU* | *'with BFD'*)
 
3473
        test "$with_gnu_ld" != no && break
 
3474
        ;;
 
3475
      *)
 
3476
        test "$with_gnu_ld" != yes && break
 
3477
        ;;
 
3478
      esac
 
3479
    fi
 
3480
  done
 
3481
  IFS="$lt_save_ifs"
 
3482
else
 
3483
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3484
fi
 
3485
fi
 
3486
 
 
3487
LD="$lt_cv_path_LD"
 
3488
if test -n "$LD"; then
 
3489
  echo "$as_me:$LINENO: result: $LD" >&5
 
3490
echo "${ECHO_T}$LD" >&6
 
3491
else
 
3492
  echo "$as_me:$LINENO: result: no" >&5
 
3493
echo "${ECHO_T}no" >&6
 
3494
fi
 
3495
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3496
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3497
   { (exit 1); exit 1; }; }
 
3498
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3499
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3500
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3502
else
 
3503
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3504
case `$LD -v 2>&1 </dev/null` in
 
3505
*GNU* | *'with BFD'*)
 
3506
  lt_cv_prog_gnu_ld=yes
 
3507
  ;;
 
3508
*)
 
3509
  lt_cv_prog_gnu_ld=no
 
3510
  ;;
 
3511
esac
 
3512
fi
 
3513
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3514
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3515
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3516
 
 
3517
 
 
3518
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3519
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3520
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3522
else
 
3523
  lt_cv_ld_reload_flag='-r'
 
3524
fi
 
3525
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3526
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3527
reload_flag=$lt_cv_ld_reload_flag
 
3528
case $reload_flag in
 
3529
"" | " "*) ;;
 
3530
*) reload_flag=" $reload_flag" ;;
 
3531
esac
 
3532
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3533
case $host_os in
 
3534
  darwin*)
 
3535
    if test "$GCC" = yes; then
 
3536
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
3537
    else
 
3538
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3539
    fi
 
3540
    ;;
 
3541
esac
 
3542
 
 
3543
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3544
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3545
if test "${lt_cv_path_NM+set}" = set; then
 
3546
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3547
else
 
3548
  if test -n "$NM"; then
 
3549
  # Let the user override the test.
 
3550
  lt_cv_path_NM="$NM"
 
3551
else
 
3552
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3553
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3554
    IFS="$lt_save_ifs"
 
3555
    test -z "$ac_dir" && ac_dir=.
 
3556
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3557
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3558
      # Check to see if the nm accepts a BSD-compat flag.
 
3559
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3560
      #   nm: unknown option "B" ignored
 
3561
      # Tru64's nm complains that /dev/null is an invalid object file
 
3562
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3563
      */dev/null* | *'Invalid file or object type'*)
 
3564
        lt_cv_path_NM="$tmp_nm -B"
 
3565
        break
 
3566
        ;;
 
3567
      *)
 
3568
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3569
        */dev/null*)
 
3570
          lt_cv_path_NM="$tmp_nm -p"
 
3571
          break
 
3572
          ;;
 
3573
        *)
 
3574
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3575
          continue # so that we can try to find one that supports BSD flags
 
3576
          ;;
 
3577
        esac
 
3578
      esac
 
3579
    fi
 
3580
  done
 
3581
  IFS="$lt_save_ifs"
 
3582
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3583
fi
 
3584
fi
 
3585
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3586
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3587
NM="$lt_cv_path_NM"
 
3588
 
 
3589
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3590
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3591
LN_S=$as_ln_s
 
3592
if test "$LN_S" = "ln -s"; then
 
3593
  echo "$as_me:$LINENO: result: yes" >&5
 
3594
echo "${ECHO_T}yes" >&6
 
3595
else
 
3596
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3597
echo "${ECHO_T}no, using $LN_S" >&6
 
3598
fi
 
3599
 
 
3600
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3601
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3602
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3604
else
 
3605
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3606
lt_cv_file_magic_test_file=
 
3607
lt_cv_deplibs_check_method='unknown'
 
3608
# Need to set the preceding variable on all platforms that support
 
3609
# interlibrary dependencies.
 
3610
# 'none' -- dependencies not supported.
 
3611
# `unknown' -- same as none, but documents that we really don't know.
 
3612
# 'pass_all' -- all dependencies passed with no checks.
 
3613
# 'test_compile' -- check by making test program.
 
3614
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3615
# which responds to the $file_magic_cmd with a given extended regex.
 
3616
# If you have `file' or equivalent on your system and you're not sure
 
3617
# whether `pass_all' will *always* work, you probably want this one.
 
3618
 
 
3619
case $host_os in
 
3620
aix4* | aix5*)
 
3621
  lt_cv_deplibs_check_method=pass_all
 
3622
  ;;
 
3623
 
 
3624
beos*)
 
3625
  lt_cv_deplibs_check_method=pass_all
 
3626
  ;;
 
3627
 
 
3628
bsdi[45]*)
 
3629
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3630
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3631
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3632
  ;;
 
3633
 
 
3634
cygwin*)
 
3635
  # func_win32_libid is a shell function defined in ltmain.sh
 
3636
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3637
  lt_cv_file_magic_cmd='func_win32_libid'
 
3638
  ;;
 
3639
 
 
3640
mingw* | pw32*)
 
3641
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3642
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3643
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3644
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3645
  ;;
 
3646
 
 
3647
darwin* | rhapsody*)
 
3648
  lt_cv_deplibs_check_method=pass_all
 
3649
  ;;
 
3650
 
 
3651
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3652
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3653
    case $host_cpu in
 
3654
    i*86 )
 
3655
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3656
      # Let's accept both of them until this is cleared up.
 
3657
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
3658
      lt_cv_file_magic_cmd=/usr/bin/file
 
3659
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3660
      ;;
 
3661
    esac
 
3662
  else
 
3663
    lt_cv_deplibs_check_method=pass_all
 
3664
  fi
 
3665
  ;;
 
3666
 
 
3667
gnu*)
 
3668
  lt_cv_deplibs_check_method=pass_all
 
3669
  ;;
 
3670
 
 
3671
hpux10.20* | hpux11*)
 
3672
  lt_cv_file_magic_cmd=/usr/bin/file
 
3673
  case $host_cpu in
 
3674
  ia64*)
 
3675
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3676
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3677
    ;;
 
3678
  hppa*64*)
 
3679
    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]'
 
3680
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3681
    ;;
 
3682
  *)
 
3683
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3684
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3685
    ;;
 
3686
  esac
 
3687
  ;;
 
3688
 
 
3689
irix5* | irix6* | nonstopux*)
 
3690
  case $LD in
 
3691
  *-32|*"-32 ") libmagic=32-bit;;
 
3692
  *-n32|*"-n32 ") libmagic=N32;;
 
3693
  *-64|*"-64 ") libmagic=64-bit;;
 
3694
  *) libmagic=never-match;;
 
3695
  esac
 
3696
  lt_cv_deplibs_check_method=pass_all
 
3697
  ;;
 
3698
 
 
3699
# This must be Linux ELF.
 
3700
linux*)
 
3701
  lt_cv_deplibs_check_method=pass_all
 
3702
  ;;
 
3703
 
 
3704
netbsd*)
 
3705
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3706
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3707
  else
 
3708
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3709
  fi
 
3710
  ;;
 
3711
 
 
3712
newos6*)
 
3713
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3714
  lt_cv_file_magic_cmd=/usr/bin/file
 
3715
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3716
  ;;
 
3717
 
 
3718
nto-qnx*)
 
3719
  lt_cv_deplibs_check_method=unknown
 
3720
  ;;
 
3721
 
 
3722
openbsd*)
 
3723
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3724
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
3725
  else
 
3726
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3727
  fi
 
3728
  ;;
 
3729
 
 
3730
osf3* | osf4* | osf5*)
 
3731
  lt_cv_deplibs_check_method=pass_all
 
3732
  ;;
 
3733
 
 
3734
sco3.2v5*)
 
3735
  lt_cv_deplibs_check_method=pass_all
 
3736
  ;;
 
3737
 
 
3738
solaris*)
 
3739
  lt_cv_deplibs_check_method=pass_all
 
3740
  ;;
 
3741
 
 
3742
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3743
  case $host_vendor in
 
3744
  motorola)
 
3745
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
3746
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3747
    ;;
 
3748
  ncr)
 
3749
    lt_cv_deplibs_check_method=pass_all
 
3750
    ;;
 
3751
  sequent)
 
3752
    lt_cv_file_magic_cmd='/bin/file'
 
3753
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3754
    ;;
 
3755
  sni)
 
3756
    lt_cv_file_magic_cmd='/bin/file'
 
3757
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3758
    lt_cv_file_magic_test_file=/lib/libc.so
 
3759
    ;;
 
3760
  siemens)
 
3761
    lt_cv_deplibs_check_method=pass_all
 
3762
    ;;
 
3763
  esac
 
3764
  ;;
 
3765
 
 
3766
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3767
  lt_cv_deplibs_check_method=pass_all
 
3768
  ;;
 
3769
esac
 
3770
 
 
3771
fi
 
3772
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3773
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3774
file_magic_cmd=$lt_cv_file_magic_cmd
 
3775
deplibs_check_method=$lt_cv_deplibs_check_method
 
3776
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3777
 
 
3778
 
 
3779
 
 
3780
 
 
3781
# If no C compiler was specified, use CC.
 
3782
LTCC=${LTCC-"$CC"}
 
3783
 
 
3784
# Allow CC to be a program name with arguments.
 
3785
compiler=$CC
 
3786
 
 
3787
 
 
3788
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3789
if test "${enable_libtool_lock+set}" = set; then
 
3790
  enableval="$enable_libtool_lock"
 
3791
 
 
3792
fi;
 
3793
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3794
 
 
3795
# Some flags need to be propagated to the compiler or linker for good
 
3796
# libtool support.
 
3797
case $host in
 
3798
ia64-*-hpux*)
 
3799
  # Find out which ABI we are using.
 
3800
  echo 'int i;' > conftest.$ac_ext
 
3801
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3802
  (eval $ac_compile) 2>&5
 
3803
  ac_status=$?
 
3804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3805
  (exit $ac_status); }; then
 
3806
    case `/usr/bin/file conftest.$ac_objext` in
 
3807
    *ELF-32*)
 
3808
      HPUX_IA64_MODE="32"
 
3809
      ;;
 
3810
    *ELF-64*)
 
3811
      HPUX_IA64_MODE="64"
 
3812
      ;;
 
3813
    esac
 
3814
  fi
 
3815
  rm -rf conftest*
 
3816
  ;;
 
3817
*-*-irix6*)
 
3818
  # Find out which ABI we are using.
 
3819
  echo '#line 3819 "configure"' > conftest.$ac_ext
 
3820
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3821
  (eval $ac_compile) 2>&5
 
3822
  ac_status=$?
 
3823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3824
  (exit $ac_status); }; then
 
3825
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3826
    case `/usr/bin/file conftest.$ac_objext` in
 
3827
    *32-bit*)
 
3828
      LD="${LD-ld} -melf32bsmip"
 
3829
      ;;
 
3830
    *N32*)
 
3831
      LD="${LD-ld} -melf32bmipn32"
 
3832
      ;;
 
3833
    *64-bit*)
 
3834
      LD="${LD-ld} -melf64bmip"
 
3835
      ;;
 
3836
    esac
 
3837
   else
 
3838
    case `/usr/bin/file conftest.$ac_objext` in
 
3839
    *32-bit*)
 
3840
      LD="${LD-ld} -32"
 
3841
      ;;
 
3842
    *N32*)
 
3843
      LD="${LD-ld} -n32"
 
3844
      ;;
 
3845
    *64-bit*)
 
3846
      LD="${LD-ld} -64"
 
3847
      ;;
 
3848
    esac
 
3849
   fi
 
3850
  fi
 
3851
  rm -rf conftest*
 
3852
  ;;
 
3853
 
 
3854
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3855
  # Find out which ABI we are using.
 
3856
  echo 'int i;' > conftest.$ac_ext
 
3857
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3858
  (eval $ac_compile) 2>&5
 
3859
  ac_status=$?
 
3860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3861
  (exit $ac_status); }; then
 
3862
    case `/usr/bin/file conftest.o` in
 
3863
    *32-bit*)
 
3864
      case $host in
 
3865
        x86_64-*linux*)
 
3866
          LD="${LD-ld} -m elf_i386"
 
3867
          ;;
 
3868
        ppc64-*linux*|powerpc64-*linux*)
 
3869
          LD="${LD-ld} -m elf32ppclinux"
 
3870
          ;;
 
3871
        s390x-*linux*)
 
3872
          LD="${LD-ld} -m elf_s390"
 
3873
          ;;
 
3874
        sparc64-*linux*)
 
3875
          LD="${LD-ld} -m elf32_sparc"
 
3876
          ;;
 
3877
      esac
 
3878
      ;;
 
3879
    *64-bit*)
 
3880
      case $host in
 
3881
        x86_64-*linux*)
 
3882
          LD="${LD-ld} -m elf_x86_64"
 
3883
          ;;
 
3884
        ppc*-*linux*|powerpc*-*linux*)
 
3885
          LD="${LD-ld} -m elf64ppc"
 
3886
          ;;
 
3887
        s390*-*linux*)
 
3888
          LD="${LD-ld} -m elf64_s390"
 
3889
          ;;
 
3890
        sparc*-*linux*)
 
3891
          LD="${LD-ld} -m elf64_sparc"
 
3892
          ;;
 
3893
      esac
 
3894
      ;;
 
3895
    esac
 
3896
  fi
 
3897
  rm -rf conftest*
 
3898
  ;;
 
3899
 
 
3900
*-*-sco3.2v5*)
 
3901
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3902
  SAVE_CFLAGS="$CFLAGS"
 
3903
  CFLAGS="$CFLAGS -belf"
 
3904
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3905
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3906
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3908
else
 
3909
  ac_ext=c
 
3910
ac_cpp='$CPP $CPPFLAGS'
 
3911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3914
 
 
3915
     cat >conftest.$ac_ext <<_ACEOF
 
3916
/* confdefs.h.  */
 
3917
_ACEOF
 
3918
cat confdefs.h >>conftest.$ac_ext
 
3919
cat >>conftest.$ac_ext <<_ACEOF
 
3920
/* end confdefs.h.  */
 
3921
 
 
3922
int
 
3923
main ()
 
3924
{
 
3925
 
 
3926
  ;
 
3927
  return 0;
 
3928
}
 
3929
_ACEOF
 
3930
rm -f conftest.$ac_objext conftest$ac_exeext
 
3931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3932
  (eval $ac_link) 2>conftest.er1
 
3933
  ac_status=$?
 
3934
  grep -v '^ *+' conftest.er1 >conftest.err
 
3935
  rm -f conftest.er1
 
3936
  cat conftest.err >&5
 
3937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3938
  (exit $ac_status); } &&
 
3939
         { ac_try='test -z "$ac_c_werror_flag"
 
3940
                         || test ! -s conftest.err'
 
3941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3942
  (eval $ac_try) 2>&5
 
3943
  ac_status=$?
 
3944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3945
  (exit $ac_status); }; } &&
 
3946
         { ac_try='test -s conftest$ac_exeext'
 
3947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3948
  (eval $ac_try) 2>&5
 
3949
  ac_status=$?
 
3950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3951
  (exit $ac_status); }; }; then
 
3952
  lt_cv_cc_needs_belf=yes
 
3953
else
 
3954
  echo "$as_me: failed program was:" >&5
 
3955
sed 's/^/| /' conftest.$ac_ext >&5
 
3956
 
 
3957
lt_cv_cc_needs_belf=no
 
3958
fi
 
3959
rm -f conftest.err conftest.$ac_objext \
 
3960
      conftest$ac_exeext conftest.$ac_ext
 
3961
     ac_ext=c
 
3962
ac_cpp='$CPP $CPPFLAGS'
 
3963
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3964
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3965
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3966
 
 
3967
fi
 
3968
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3969
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3970
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3971
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3972
    CFLAGS="$SAVE_CFLAGS"
 
3973
  fi
 
3974
  ;;
 
3975
 
 
3976
esac
 
3977
 
 
3978
need_locks="$enable_libtool_lock"
 
3979
 
 
3980
 
 
3981
ac_ext=c
 
3982
ac_cpp='$CPP $CPPFLAGS'
 
3983
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3984
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3985
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3986
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3987
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3988
# On Suns, sometimes $CPP names a directory.
 
3989
if test -n "$CPP" && test -d "$CPP"; then
 
3990
  CPP=
 
3991
fi
 
3992
if test -z "$CPP"; then
 
3993
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3995
else
 
3996
      # Double quotes because CPP needs to be expanded
 
3997
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3998
    do
 
3999
      ac_preproc_ok=false
 
4000
for ac_c_preproc_warn_flag in '' yes
 
4001
do
 
4002
  # Use a header file that comes with gcc, so configuring glibc
 
4003
  # with a fresh cross-compiler works.
 
4004
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4005
  # <limits.h> exists even on freestanding compilers.
 
4006
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4007
  # not just through cpp. "Syntax error" is here to catch this case.
 
4008
  cat >conftest.$ac_ext <<_ACEOF
 
4009
/* confdefs.h.  */
 
4010
_ACEOF
 
4011
cat confdefs.h >>conftest.$ac_ext
 
4012
cat >>conftest.$ac_ext <<_ACEOF
 
4013
/* end confdefs.h.  */
 
4014
#ifdef __STDC__
 
4015
# include <limits.h>
 
4016
#else
 
4017
# include <assert.h>
 
4018
#endif
 
4019
                     Syntax error
 
4020
_ACEOF
 
4021
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4022
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4023
  ac_status=$?
 
4024
  grep -v '^ *+' conftest.er1 >conftest.err
 
4025
  rm -f conftest.er1
 
4026
  cat conftest.err >&5
 
4027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4028
  (exit $ac_status); } >/dev/null; then
 
4029
  if test -s conftest.err; then
 
4030
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4031
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4032
  else
 
4033
    ac_cpp_err=
 
4034
  fi
 
4035
else
 
4036
  ac_cpp_err=yes
 
4037
fi
 
4038
if test -z "$ac_cpp_err"; then
 
4039
  :
 
4040
else
 
4041
  echo "$as_me: failed program was:" >&5
 
4042
sed 's/^/| /' conftest.$ac_ext >&5
 
4043
 
 
4044
  # Broken: fails on valid input.
 
4045
continue
 
4046
fi
 
4047
rm -f conftest.err conftest.$ac_ext
 
4048
 
 
4049
  # OK, works on sane cases.  Now check whether non-existent headers
 
4050
  # can be detected and how.
 
4051
  cat >conftest.$ac_ext <<_ACEOF
 
4052
/* confdefs.h.  */
 
4053
_ACEOF
 
4054
cat confdefs.h >>conftest.$ac_ext
 
4055
cat >>conftest.$ac_ext <<_ACEOF
 
4056
/* end confdefs.h.  */
 
4057
#include <ac_nonexistent.h>
 
4058
_ACEOF
 
4059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4060
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4061
  ac_status=$?
 
4062
  grep -v '^ *+' conftest.er1 >conftest.err
 
4063
  rm -f conftest.er1
 
4064
  cat conftest.err >&5
 
4065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4066
  (exit $ac_status); } >/dev/null; then
 
4067
  if test -s conftest.err; then
 
4068
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4069
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4070
  else
 
4071
    ac_cpp_err=
 
4072
  fi
 
4073
else
 
4074
  ac_cpp_err=yes
 
4075
fi
 
4076
if test -z "$ac_cpp_err"; then
 
4077
  # Broken: success on invalid input.
 
4078
continue
 
4079
else
 
4080
  echo "$as_me: failed program was:" >&5
 
4081
sed 's/^/| /' conftest.$ac_ext >&5
 
4082
 
 
4083
  # Passes both tests.
 
4084
ac_preproc_ok=:
 
4085
break
 
4086
fi
 
4087
rm -f conftest.err conftest.$ac_ext
 
4088
 
 
4089
done
 
4090
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4091
rm -f conftest.err conftest.$ac_ext
 
4092
if $ac_preproc_ok; then
 
4093
  break
 
4094
fi
 
4095
 
 
4096
    done
 
4097
    ac_cv_prog_CPP=$CPP
 
4098
 
 
4099
fi
 
4100
  CPP=$ac_cv_prog_CPP
 
4101
else
 
4102
  ac_cv_prog_CPP=$CPP
 
4103
fi
 
4104
echo "$as_me:$LINENO: result: $CPP" >&5
 
4105
echo "${ECHO_T}$CPP" >&6
 
4106
ac_preproc_ok=false
 
4107
for ac_c_preproc_warn_flag in '' yes
 
4108
do
 
4109
  # Use a header file that comes with gcc, so configuring glibc
 
4110
  # with a fresh cross-compiler works.
 
4111
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4112
  # <limits.h> exists even on freestanding compilers.
 
4113
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4114
  # not just through cpp. "Syntax error" is here to catch this case.
 
4115
  cat >conftest.$ac_ext <<_ACEOF
 
4116
/* confdefs.h.  */
 
4117
_ACEOF
 
4118
cat confdefs.h >>conftest.$ac_ext
 
4119
cat >>conftest.$ac_ext <<_ACEOF
 
4120
/* end confdefs.h.  */
 
4121
#ifdef __STDC__
 
4122
# include <limits.h>
 
4123
#else
 
4124
# include <assert.h>
 
4125
#endif
 
4126
                     Syntax error
 
4127
_ACEOF
 
4128
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4129
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4130
  ac_status=$?
 
4131
  grep -v '^ *+' conftest.er1 >conftest.err
 
4132
  rm -f conftest.er1
 
4133
  cat conftest.err >&5
 
4134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4135
  (exit $ac_status); } >/dev/null; then
 
4136
  if test -s conftest.err; then
 
4137
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4138
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4139
  else
 
4140
    ac_cpp_err=
 
4141
  fi
 
4142
else
 
4143
  ac_cpp_err=yes
 
4144
fi
 
4145
if test -z "$ac_cpp_err"; then
 
4146
  :
 
4147
else
 
4148
  echo "$as_me: failed program was:" >&5
 
4149
sed 's/^/| /' conftest.$ac_ext >&5
 
4150
 
 
4151
  # Broken: fails on valid input.
 
4152
continue
 
4153
fi
 
4154
rm -f conftest.err conftest.$ac_ext
 
4155
 
 
4156
  # OK, works on sane cases.  Now check whether non-existent headers
 
4157
  # can be detected and how.
 
4158
  cat >conftest.$ac_ext <<_ACEOF
 
4159
/* confdefs.h.  */
 
4160
_ACEOF
 
4161
cat confdefs.h >>conftest.$ac_ext
 
4162
cat >>conftest.$ac_ext <<_ACEOF
 
4163
/* end confdefs.h.  */
 
4164
#include <ac_nonexistent.h>
 
4165
_ACEOF
 
4166
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4167
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4168
  ac_status=$?
 
4169
  grep -v '^ *+' conftest.er1 >conftest.err
 
4170
  rm -f conftest.er1
 
4171
  cat conftest.err >&5
 
4172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4173
  (exit $ac_status); } >/dev/null; then
 
4174
  if test -s conftest.err; then
 
4175
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4176
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4177
  else
 
4178
    ac_cpp_err=
 
4179
  fi
 
4180
else
 
4181
  ac_cpp_err=yes
 
4182
fi
 
4183
if test -z "$ac_cpp_err"; then
 
4184
  # Broken: success on invalid input.
 
4185
continue
 
4186
else
 
4187
  echo "$as_me: failed program was:" >&5
 
4188
sed 's/^/| /' conftest.$ac_ext >&5
 
4189
 
 
4190
  # Passes both tests.
 
4191
ac_preproc_ok=:
 
4192
break
 
4193
fi
 
4194
rm -f conftest.err conftest.$ac_ext
 
4195
 
 
4196
done
 
4197
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4198
rm -f conftest.err conftest.$ac_ext
 
4199
if $ac_preproc_ok; then
 
4200
  :
 
4201
else
 
4202
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4203
See \`config.log' for more details." >&5
 
4204
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4205
See \`config.log' for more details." >&2;}
 
4206
   { (exit 1); exit 1; }; }
 
4207
fi
 
4208
 
 
4209
ac_ext=c
 
4210
ac_cpp='$CPP $CPPFLAGS'
 
4211
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4212
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4213
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4214
 
 
4215
 
 
4216
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4217
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4218
if test "${ac_cv_header_stdc+set}" = set; then
 
4219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4220
else
 
4221
  cat >conftest.$ac_ext <<_ACEOF
 
4222
/* confdefs.h.  */
 
4223
_ACEOF
 
4224
cat confdefs.h >>conftest.$ac_ext
 
4225
cat >>conftest.$ac_ext <<_ACEOF
 
4226
/* end confdefs.h.  */
 
4227
#include <stdlib.h>
 
4228
#include <stdarg.h>
 
4229
#include <string.h>
 
4230
#include <float.h>
 
4231
 
 
4232
int
 
4233
main ()
 
4234
{
 
4235
 
 
4236
  ;
 
4237
  return 0;
 
4238
}
 
4239
_ACEOF
 
4240
rm -f conftest.$ac_objext
 
4241
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4242
  (eval $ac_compile) 2>conftest.er1
 
4243
  ac_status=$?
 
4244
  grep -v '^ *+' conftest.er1 >conftest.err
 
4245
  rm -f conftest.er1
 
4246
  cat conftest.err >&5
 
4247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4248
  (exit $ac_status); } &&
 
4249
         { ac_try='test -z "$ac_c_werror_flag"
 
4250
                         || test ! -s conftest.err'
 
4251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4252
  (eval $ac_try) 2>&5
 
4253
  ac_status=$?
 
4254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4255
  (exit $ac_status); }; } &&
 
4256
         { ac_try='test -s conftest.$ac_objext'
 
4257
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4258
  (eval $ac_try) 2>&5
 
4259
  ac_status=$?
 
4260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4261
  (exit $ac_status); }; }; then
 
4262
  ac_cv_header_stdc=yes
 
4263
else
 
4264
  echo "$as_me: failed program was:" >&5
 
4265
sed 's/^/| /' conftest.$ac_ext >&5
 
4266
 
 
4267
ac_cv_header_stdc=no
 
4268
fi
 
4269
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4270
 
 
4271
if test $ac_cv_header_stdc = yes; then
 
4272
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4273
  cat >conftest.$ac_ext <<_ACEOF
 
4274
/* confdefs.h.  */
 
4275
_ACEOF
 
4276
cat confdefs.h >>conftest.$ac_ext
 
4277
cat >>conftest.$ac_ext <<_ACEOF
 
4278
/* end confdefs.h.  */
 
4279
#include <string.h>
 
4280
 
 
4281
_ACEOF
 
4282
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4283
  $EGREP "memchr" >/dev/null 2>&1; then
 
4284
  :
 
4285
else
 
4286
  ac_cv_header_stdc=no
 
4287
fi
 
4288
rm -f conftest*
 
4289
 
 
4290
fi
 
4291
 
 
4292
if test $ac_cv_header_stdc = yes; then
 
4293
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4294
  cat >conftest.$ac_ext <<_ACEOF
 
4295
/* confdefs.h.  */
 
4296
_ACEOF
 
4297
cat confdefs.h >>conftest.$ac_ext
 
4298
cat >>conftest.$ac_ext <<_ACEOF
 
4299
/* end confdefs.h.  */
 
4300
#include <stdlib.h>
 
4301
 
 
4302
_ACEOF
 
4303
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4304
  $EGREP "free" >/dev/null 2>&1; then
 
4305
  :
 
4306
else
 
4307
  ac_cv_header_stdc=no
 
4308
fi
 
4309
rm -f conftest*
 
4310
 
 
4311
fi
 
4312
 
 
4313
if test $ac_cv_header_stdc = yes; then
 
4314
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4315
  if test "$cross_compiling" = yes; then
 
4316
  :
 
4317
else
 
4318
  cat >conftest.$ac_ext <<_ACEOF
 
4319
/* confdefs.h.  */
 
4320
_ACEOF
 
4321
cat confdefs.h >>conftest.$ac_ext
 
4322
cat >>conftest.$ac_ext <<_ACEOF
 
4323
/* end confdefs.h.  */
 
4324
#include <ctype.h>
 
4325
#if ((' ' & 0x0FF) == 0x020)
 
4326
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4327
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4328
#else
 
4329
# define ISLOWER(c) \
 
4330
                   (('a' <= (c) && (c) <= 'i') \
 
4331
                     || ('j' <= (c) && (c) <= 'r') \
 
4332
                     || ('s' <= (c) && (c) <= 'z'))
 
4333
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4334
#endif
 
4335
 
 
4336
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4337
int
 
4338
main ()
 
4339
{
 
4340
  int i;
 
4341
  for (i = 0; i < 256; i++)
 
4342
    if (XOR (islower (i), ISLOWER (i))
 
4343
        || toupper (i) != TOUPPER (i))
 
4344
      exit(2);
 
4345
  exit (0);
 
4346
}
 
4347
_ACEOF
 
4348
rm -f conftest$ac_exeext
 
4349
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4350
  (eval $ac_link) 2>&5
 
4351
  ac_status=$?
 
4352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4353
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4355
  (eval $ac_try) 2>&5
 
4356
  ac_status=$?
 
4357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4358
  (exit $ac_status); }; }; then
 
4359
  :
 
4360
else
 
4361
  echo "$as_me: program exited with status $ac_status" >&5
 
4362
echo "$as_me: failed program was:" >&5
 
4363
sed 's/^/| /' conftest.$ac_ext >&5
 
4364
 
 
4365
( exit $ac_status )
 
4366
ac_cv_header_stdc=no
 
4367
fi
 
4368
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4369
fi
 
4370
fi
 
4371
fi
 
4372
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4373
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4374
if test $ac_cv_header_stdc = yes; then
 
4375
 
 
4376
cat >>confdefs.h <<\_ACEOF
 
4377
#define STDC_HEADERS 1
 
4378
_ACEOF
 
4379
 
 
4380
fi
 
4381
 
 
4382
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4383
 
 
4384
 
 
4385
 
 
4386
 
 
4387
 
 
4388
 
 
4389
 
 
4390
 
 
4391
 
 
4392
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4393
                  inttypes.h stdint.h unistd.h
 
4394
do
 
4395
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4396
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4397
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4398
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4400
else
 
4401
  cat >conftest.$ac_ext <<_ACEOF
 
4402
/* confdefs.h.  */
 
4403
_ACEOF
 
4404
cat confdefs.h >>conftest.$ac_ext
 
4405
cat >>conftest.$ac_ext <<_ACEOF
 
4406
/* end confdefs.h.  */
 
4407
$ac_includes_default
 
4408
 
 
4409
#include <$ac_header>
 
4410
_ACEOF
 
4411
rm -f conftest.$ac_objext
 
4412
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4413
  (eval $ac_compile) 2>conftest.er1
 
4414
  ac_status=$?
 
4415
  grep -v '^ *+' conftest.er1 >conftest.err
 
4416
  rm -f conftest.er1
 
4417
  cat conftest.err >&5
 
4418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4419
  (exit $ac_status); } &&
 
4420
         { ac_try='test -z "$ac_c_werror_flag"
 
4421
                         || test ! -s conftest.err'
 
4422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4423
  (eval $ac_try) 2>&5
 
4424
  ac_status=$?
 
4425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4426
  (exit $ac_status); }; } &&
 
4427
         { ac_try='test -s conftest.$ac_objext'
 
4428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4429
  (eval $ac_try) 2>&5
 
4430
  ac_status=$?
 
4431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4432
  (exit $ac_status); }; }; then
 
4433
  eval "$as_ac_Header=yes"
 
4434
else
 
4435
  echo "$as_me: failed program was:" >&5
 
4436
sed 's/^/| /' conftest.$ac_ext >&5
 
4437
 
 
4438
eval "$as_ac_Header=no"
 
4439
fi
 
4440
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4441
fi
 
4442
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4443
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4444
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4445
  cat >>confdefs.h <<_ACEOF
 
4446
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4447
_ACEOF
 
4448
 
 
4449
fi
 
4450
 
 
4451
done
 
4452
 
 
4453
 
 
4454
 
 
4455
for ac_header in dlfcn.h
 
4456
do
 
4457
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4458
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4459
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4460
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4461
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4463
fi
 
4464
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4465
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4466
else
 
4467
  # Is the header compilable?
 
4468
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4469
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4470
cat >conftest.$ac_ext <<_ACEOF
 
4471
/* confdefs.h.  */
 
4472
_ACEOF
 
4473
cat confdefs.h >>conftest.$ac_ext
 
4474
cat >>conftest.$ac_ext <<_ACEOF
 
4475
/* end confdefs.h.  */
 
4476
$ac_includes_default
 
4477
#include <$ac_header>
 
4478
_ACEOF
 
4479
rm -f conftest.$ac_objext
 
4480
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4481
  (eval $ac_compile) 2>conftest.er1
 
4482
  ac_status=$?
 
4483
  grep -v '^ *+' conftest.er1 >conftest.err
 
4484
  rm -f conftest.er1
 
4485
  cat conftest.err >&5
 
4486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4487
  (exit $ac_status); } &&
 
4488
         { ac_try='test -z "$ac_c_werror_flag"
 
4489
                         || test ! -s conftest.err'
 
4490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4491
  (eval $ac_try) 2>&5
 
4492
  ac_status=$?
 
4493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4494
  (exit $ac_status); }; } &&
 
4495
         { ac_try='test -s conftest.$ac_objext'
 
4496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4497
  (eval $ac_try) 2>&5
 
4498
  ac_status=$?
 
4499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4500
  (exit $ac_status); }; }; then
 
4501
  ac_header_compiler=yes
 
4502
else
 
4503
  echo "$as_me: failed program was:" >&5
 
4504
sed 's/^/| /' conftest.$ac_ext >&5
 
4505
 
 
4506
ac_header_compiler=no
 
4507
fi
 
4508
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4509
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4510
echo "${ECHO_T}$ac_header_compiler" >&6
 
4511
 
 
4512
# Is the header present?
 
4513
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4514
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4515
cat >conftest.$ac_ext <<_ACEOF
 
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_header>
 
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_c_preproc_warn_flag
 
4533
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4534
  else
 
4535
    ac_cpp_err=
 
4536
  fi
 
4537
else
 
4538
  ac_cpp_err=yes
 
4539
fi
 
4540
if test -z "$ac_cpp_err"; then
 
4541
  ac_header_preproc=yes
 
4542
else
 
4543
  echo "$as_me: failed program was:" >&5
 
4544
sed 's/^/| /' conftest.$ac_ext >&5
 
4545
 
 
4546
  ac_header_preproc=no
 
4547
fi
 
4548
rm -f conftest.err conftest.$ac_ext
 
4549
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4550
echo "${ECHO_T}$ac_header_preproc" >&6
 
4551
 
 
4552
# So?  What about this header?
 
4553
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4554
  yes:no: )
 
4555
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4556
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4557
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4558
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4559
    ac_header_preproc=yes
 
4560
    ;;
 
4561
  no:yes:* )
 
4562
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4563
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4564
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4565
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4566
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4567
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4568
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4569
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4570
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4571
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4572
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4573
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4574
    (
 
4575
      cat <<\_ASBOX
 
4576
## ------------------------------------------- ##
 
4577
## Report this to http://gcc.gnu.org/bugs.html ##
 
4578
## ------------------------------------------- ##
 
4579
_ASBOX
 
4580
    ) |
 
4581
      sed "s/^/$as_me: WARNING:     /" >&2
 
4582
    ;;
 
4583
esac
 
4584
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4585
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4586
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4588
else
 
4589
  eval "$as_ac_Header=\$ac_header_preproc"
 
4590
fi
 
4591
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4592
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4593
 
 
4594
fi
 
4595
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4596
  cat >>confdefs.h <<_ACEOF
 
4597
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4598
_ACEOF
 
4599
 
 
4600
fi
 
4601
 
 
4602
done
 
4603
 
 
4604
ac_ext=cc
 
4605
ac_cpp='$CXXCPP $CPPFLAGS'
 
4606
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4607
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4608
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4609
if test -n "$ac_tool_prefix"; then
 
4610
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4611
  do
 
4612
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4613
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4614
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4615
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4616
if test "${ac_cv_prog_CXX+set}" = set; then
 
4617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4618
else
 
4619
  if test -n "$CXX"; then
 
4620
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4621
else
 
4622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4623
for as_dir in $PATH
 
4624
do
 
4625
  IFS=$as_save_IFS
 
4626
  test -z "$as_dir" && as_dir=.
 
4627
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4628
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4629
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4630
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4631
    break 2
 
4632
  fi
 
4633
done
 
4634
done
 
4635
 
 
4636
fi
 
4637
fi
 
4638
CXX=$ac_cv_prog_CXX
 
4639
if test -n "$CXX"; then
 
4640
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4641
echo "${ECHO_T}$CXX" >&6
 
4642
else
 
4643
  echo "$as_me:$LINENO: result: no" >&5
 
4644
echo "${ECHO_T}no" >&6
 
4645
fi
 
4646
 
 
4647
    test -n "$CXX" && break
 
4648
  done
 
4649
fi
 
4650
if test -z "$CXX"; then
 
4651
  ac_ct_CXX=$CXX
 
4652
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4653
do
 
4654
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4655
set dummy $ac_prog; ac_word=$2
 
4656
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4657
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4658
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4660
else
 
4661
  if test -n "$ac_ct_CXX"; then
 
4662
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4663
else
 
4664
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4665
for as_dir in $PATH
 
4666
do
 
4667
  IFS=$as_save_IFS
 
4668
  test -z "$as_dir" && as_dir=.
 
4669
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4670
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4671
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4672
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4673
    break 2
 
4674
  fi
 
4675
done
 
4676
done
 
4677
 
 
4678
fi
 
4679
fi
 
4680
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4681
if test -n "$ac_ct_CXX"; then
 
4682
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4683
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4684
else
 
4685
  echo "$as_me:$LINENO: result: no" >&5
 
4686
echo "${ECHO_T}no" >&6
 
4687
fi
 
4688
 
 
4689
  test -n "$ac_ct_CXX" && break
 
4690
done
 
4691
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4692
 
 
4693
  CXX=$ac_ct_CXX
 
4694
fi
 
4695
 
 
4696
 
 
4697
# Provide some information about the compiler.
 
4698
echo "$as_me:$LINENO:" \
 
4699
     "checking for C++ compiler version" >&5
 
4700
ac_compiler=`set X $ac_compile; echo $2`
 
4701
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4702
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4703
  ac_status=$?
 
4704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4705
  (exit $ac_status); }
 
4706
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4707
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4708
  ac_status=$?
 
4709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4710
  (exit $ac_status); }
 
4711
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4712
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4713
  ac_status=$?
 
4714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4715
  (exit $ac_status); }
 
4716
 
 
4717
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4718
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4719
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4721
else
 
4722
  cat >conftest.$ac_ext <<_ACEOF
 
4723
/* confdefs.h.  */
 
4724
_ACEOF
 
4725
cat confdefs.h >>conftest.$ac_ext
 
4726
cat >>conftest.$ac_ext <<_ACEOF
 
4727
/* end confdefs.h.  */
 
4728
 
 
4729
int
 
4730
main ()
 
4731
{
 
4732
#ifndef __GNUC__
 
4733
       choke me
 
4734
#endif
 
4735
 
 
4736
  ;
 
4737
  return 0;
 
4738
}
 
4739
_ACEOF
 
4740
rm -f conftest.$ac_objext
 
4741
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4742
  (eval $ac_compile) 2>conftest.er1
 
4743
  ac_status=$?
 
4744
  grep -v '^ *+' conftest.er1 >conftest.err
 
4745
  rm -f conftest.er1
 
4746
  cat conftest.err >&5
 
4747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4748
  (exit $ac_status); } &&
 
4749
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4750
                         || test ! -s conftest.err'
 
4751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4752
  (eval $ac_try) 2>&5
 
4753
  ac_status=$?
 
4754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4755
  (exit $ac_status); }; } &&
 
4756
         { ac_try='test -s conftest.$ac_objext'
 
4757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4758
  (eval $ac_try) 2>&5
 
4759
  ac_status=$?
 
4760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4761
  (exit $ac_status); }; }; then
 
4762
  ac_compiler_gnu=yes
 
4763
else
 
4764
  echo "$as_me: failed program was:" >&5
 
4765
sed 's/^/| /' conftest.$ac_ext >&5
 
4766
 
 
4767
ac_compiler_gnu=no
 
4768
fi
 
4769
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4770
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4771
 
 
4772
fi
 
4773
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4774
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4775
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4776
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4777
ac_save_CXXFLAGS=$CXXFLAGS
 
4778
CXXFLAGS="-g"
 
4779
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4780
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4781
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4782
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4783
else
 
4784
  cat >conftest.$ac_ext <<_ACEOF
 
4785
/* confdefs.h.  */
 
4786
_ACEOF
 
4787
cat confdefs.h >>conftest.$ac_ext
 
4788
cat >>conftest.$ac_ext <<_ACEOF
 
4789
/* end confdefs.h.  */
 
4790
 
 
4791
int
 
4792
main ()
 
4793
{
 
4794
 
 
4795
  ;
 
4796
  return 0;
 
4797
}
 
4798
_ACEOF
 
4799
rm -f conftest.$ac_objext
 
4800
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4801
  (eval $ac_compile) 2>conftest.er1
 
4802
  ac_status=$?
 
4803
  grep -v '^ *+' conftest.er1 >conftest.err
 
4804
  rm -f conftest.er1
 
4805
  cat conftest.err >&5
 
4806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4807
  (exit $ac_status); } &&
 
4808
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4809
                         || test ! -s conftest.err'
 
4810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4811
  (eval $ac_try) 2>&5
 
4812
  ac_status=$?
 
4813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4814
  (exit $ac_status); }; } &&
 
4815
         { ac_try='test -s conftest.$ac_objext'
 
4816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4817
  (eval $ac_try) 2>&5
 
4818
  ac_status=$?
 
4819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4820
  (exit $ac_status); }; }; then
 
4821
  ac_cv_prog_cxx_g=yes
 
4822
else
 
4823
  echo "$as_me: failed program was:" >&5
 
4824
sed 's/^/| /' conftest.$ac_ext >&5
 
4825
 
 
4826
ac_cv_prog_cxx_g=no
 
4827
fi
 
4828
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4829
fi
 
4830
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4831
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4832
if test "$ac_test_CXXFLAGS" = set; then
 
4833
  CXXFLAGS=$ac_save_CXXFLAGS
 
4834
elif test $ac_cv_prog_cxx_g = yes; then
 
4835
  if test "$GXX" = yes; then
 
4836
    CXXFLAGS="-g -O2"
 
4837
  else
 
4838
    CXXFLAGS="-g"
 
4839
  fi
 
4840
else
 
4841
  if test "$GXX" = yes; then
 
4842
    CXXFLAGS="-O2"
 
4843
  else
 
4844
    CXXFLAGS=
 
4845
  fi
 
4846
fi
 
4847
for ac_declaration in \
 
4848
   '' \
 
4849
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4850
   'extern "C" void std::exit (int); using std::exit;' \
 
4851
   'extern "C" void exit (int) throw ();' \
 
4852
   'extern "C" void exit (int);' \
 
4853
   'void exit (int);'
 
4854
do
 
4855
  cat >conftest.$ac_ext <<_ACEOF
 
4856
/* confdefs.h.  */
 
4857
_ACEOF
 
4858
cat confdefs.h >>conftest.$ac_ext
 
4859
cat >>conftest.$ac_ext <<_ACEOF
 
4860
/* end confdefs.h.  */
 
4861
$ac_declaration
 
4862
#include <stdlib.h>
 
4863
int
 
4864
main ()
 
4865
{
 
4866
exit (42);
 
4867
  ;
 
4868
  return 0;
 
4869
}
 
4870
_ACEOF
 
4871
rm -f conftest.$ac_objext
 
4872
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4873
  (eval $ac_compile) 2>conftest.er1
 
4874
  ac_status=$?
 
4875
  grep -v '^ *+' conftest.er1 >conftest.err
 
4876
  rm -f conftest.er1
 
4877
  cat conftest.err >&5
 
4878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4879
  (exit $ac_status); } &&
 
4880
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4881
                         || test ! -s conftest.err'
 
4882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4883
  (eval $ac_try) 2>&5
 
4884
  ac_status=$?
 
4885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4886
  (exit $ac_status); }; } &&
 
4887
         { ac_try='test -s conftest.$ac_objext'
 
4888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4889
  (eval $ac_try) 2>&5
 
4890
  ac_status=$?
 
4891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4892
  (exit $ac_status); }; }; then
 
4893
  :
 
4894
else
 
4895
  echo "$as_me: failed program was:" >&5
 
4896
sed 's/^/| /' conftest.$ac_ext >&5
 
4897
 
 
4898
continue
 
4899
fi
 
4900
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4901
  cat >conftest.$ac_ext <<_ACEOF
 
4902
/* confdefs.h.  */
 
4903
_ACEOF
 
4904
cat confdefs.h >>conftest.$ac_ext
 
4905
cat >>conftest.$ac_ext <<_ACEOF
 
4906
/* end confdefs.h.  */
 
4907
$ac_declaration
 
4908
int
 
4909
main ()
 
4910
{
 
4911
exit (42);
 
4912
  ;
 
4913
  return 0;
 
4914
}
 
4915
_ACEOF
 
4916
rm -f conftest.$ac_objext
 
4917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4918
  (eval $ac_compile) 2>conftest.er1
 
4919
  ac_status=$?
 
4920
  grep -v '^ *+' conftest.er1 >conftest.err
 
4921
  rm -f conftest.er1
 
4922
  cat conftest.err >&5
 
4923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4924
  (exit $ac_status); } &&
 
4925
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4926
                         || test ! -s conftest.err'
 
4927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4928
  (eval $ac_try) 2>&5
 
4929
  ac_status=$?
 
4930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4931
  (exit $ac_status); }; } &&
 
4932
         { ac_try='test -s conftest.$ac_objext'
 
4933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4934
  (eval $ac_try) 2>&5
 
4935
  ac_status=$?
 
4936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4937
  (exit $ac_status); }; }; then
 
4938
  break
 
4939
else
 
4940
  echo "$as_me: failed program was:" >&5
 
4941
sed 's/^/| /' conftest.$ac_ext >&5
 
4942
 
 
4943
fi
 
4944
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4945
done
 
4946
rm -f conftest*
 
4947
if test -n "$ac_declaration"; then
 
4948
  echo '#ifdef __cplusplus' >>confdefs.h
 
4949
  echo $ac_declaration      >>confdefs.h
 
4950
  echo '#endif'             >>confdefs.h
 
4951
fi
 
4952
 
 
4953
ac_ext=cc
 
4954
ac_cpp='$CXXCPP $CPPFLAGS'
 
4955
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4956
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4957
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4958
 
 
4959
depcc="$CXX"  am_compiler_list=
 
4960
 
 
4961
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4962
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4963
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4964
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4965
else
 
4966
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4967
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4968
  # making bogus files that we don't know about and never remove.  For
 
4969
  # instance it was reported that on HP-UX the gcc test will end up
 
4970
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4971
  # in D'.
 
4972
  mkdir conftest.dir
 
4973
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4974
  # using a relative directory.
 
4975
  cp "$am_depcomp" conftest.dir
 
4976
  cd conftest.dir
 
4977
  # We will build objects and dependencies in a subdirectory because
 
4978
  # it helps to detect inapplicable dependency modes.  For instance
 
4979
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4980
  # side effect of compilation, but ICC will put the dependencies in
 
4981
  # the current directory while Tru64 will put them in the object
 
4982
  # directory.
 
4983
  mkdir sub
 
4984
 
 
4985
  am_cv_CXX_dependencies_compiler_type=none
 
4986
  if test "$am_compiler_list" = ""; then
 
4987
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4988
  fi
 
4989
  for depmode in $am_compiler_list; do
 
4990
    # Setup a source with many dependencies, because some compilers
 
4991
    # like to wrap large dependency lists on column 80 (with \), and
 
4992
    # we should not choose a depcomp mode which is confused by this.
 
4993
    #
 
4994
    # We need to recreate these files for each test, as the compiler may
 
4995
    # overwrite some of them when testing with obscure command lines.
 
4996
    # This happens at least with the AIX C compiler.
 
4997
    : > sub/conftest.c
 
4998
    for i in 1 2 3 4 5 6; do
 
4999
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5000
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5001
      # Solaris 8's {/usr,}/bin/sh.
 
5002
      touch sub/conftst$i.h
 
5003
    done
 
5004
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5005
 
 
5006
    case $depmode in
 
5007
    nosideeffect)
 
5008
      # after this tag, mechanisms are not by side-effect, so they'll
 
5009
      # only be used when explicitly requested
 
5010
      if test "x$enable_dependency_tracking" = xyes; then
 
5011
        continue
 
5012
      else
 
5013
        break
 
5014
      fi
 
5015
      ;;
 
5016
    none) break ;;
 
5017
    esac
 
5018
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5019
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5020
    # handle `-M -o', and we need to detect this.
 
5021
    if depmode=$depmode \
 
5022
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5023
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5024
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5025
         >/dev/null 2>conftest.err &&
 
5026
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5027
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5028
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5029
      # icc doesn't choke on unknown options, it will just issue warnings
 
5030
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5031
      # that says an option was ignored or not supported.
 
5032
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5033
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5034
      # The diagnosis changed in icc 8.0:
 
5035
      #   icc: Command line remark: option '-MP' not supported
 
5036
      if (grep 'ignoring option' conftest.err ||
 
5037
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5038
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5039
        break
 
5040
      fi
 
5041
    fi
 
5042
  done
 
5043
 
 
5044
  cd ..
 
5045
  rm -rf conftest.dir
 
5046
else
 
5047
  am_cv_CXX_dependencies_compiler_type=none
 
5048
fi
 
5049
 
 
5050
fi
 
5051
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5052
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
5053
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5054
 
 
5055
 
 
5056
 
 
5057
if
 
5058
  test "x$enable_dependency_tracking" != xno \
 
5059
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5060
  am__fastdepCXX_TRUE=
 
5061
  am__fastdepCXX_FALSE='#'
 
5062
else
 
5063
  am__fastdepCXX_TRUE='#'
 
5064
  am__fastdepCXX_FALSE=
 
5065
fi
 
5066
 
 
5067
 
 
5068
 
 
5069
 
 
5070
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5071
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5072
    (test "X$CXX" != "Xg++"))) ; then
 
5073
  ac_ext=cc
 
5074
ac_cpp='$CXXCPP $CPPFLAGS'
 
5075
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5076
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5077
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5078
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5079
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5080
if test -z "$CXXCPP"; then
 
5081
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5082
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5083
else
 
5084
      # Double quotes because CXXCPP needs to be expanded
 
5085
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5086
    do
 
5087
      ac_preproc_ok=false
 
5088
for ac_cxx_preproc_warn_flag in '' yes
 
5089
do
 
5090
  # Use a header file that comes with gcc, so configuring glibc
 
5091
  # with a fresh cross-compiler works.
 
5092
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5093
  # <limits.h> exists even on freestanding compilers.
 
5094
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5095
  # not just through cpp. "Syntax error" is here to catch this case.
 
5096
  cat >conftest.$ac_ext <<_ACEOF
 
5097
/* confdefs.h.  */
 
5098
_ACEOF
 
5099
cat confdefs.h >>conftest.$ac_ext
 
5100
cat >>conftest.$ac_ext <<_ACEOF
 
5101
/* end confdefs.h.  */
 
5102
#ifdef __STDC__
 
5103
# include <limits.h>
 
5104
#else
 
5105
# include <assert.h>
 
5106
#endif
 
5107
                     Syntax error
 
5108
_ACEOF
 
5109
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5110
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5111
  ac_status=$?
 
5112
  grep -v '^ *+' conftest.er1 >conftest.err
 
5113
  rm -f conftest.er1
 
5114
  cat conftest.err >&5
 
5115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5116
  (exit $ac_status); } >/dev/null; then
 
5117
  if test -s conftest.err; then
 
5118
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5119
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5120
  else
 
5121
    ac_cpp_err=
 
5122
  fi
 
5123
else
 
5124
  ac_cpp_err=yes
 
5125
fi
 
5126
if test -z "$ac_cpp_err"; then
 
5127
  :
 
5128
else
 
5129
  echo "$as_me: failed program was:" >&5
 
5130
sed 's/^/| /' conftest.$ac_ext >&5
 
5131
 
 
5132
  # Broken: fails on valid input.
 
5133
continue
 
5134
fi
 
5135
rm -f conftest.err conftest.$ac_ext
 
5136
 
 
5137
  # OK, works on sane cases.  Now check whether non-existent headers
 
5138
  # can be detected and how.
 
5139
  cat >conftest.$ac_ext <<_ACEOF
 
5140
/* confdefs.h.  */
 
5141
_ACEOF
 
5142
cat confdefs.h >>conftest.$ac_ext
 
5143
cat >>conftest.$ac_ext <<_ACEOF
 
5144
/* end confdefs.h.  */
 
5145
#include <ac_nonexistent.h>
 
5146
_ACEOF
 
5147
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5148
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5149
  ac_status=$?
 
5150
  grep -v '^ *+' conftest.er1 >conftest.err
 
5151
  rm -f conftest.er1
 
5152
  cat conftest.err >&5
 
5153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5154
  (exit $ac_status); } >/dev/null; then
 
5155
  if test -s conftest.err; then
 
5156
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5157
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5158
  else
 
5159
    ac_cpp_err=
 
5160
  fi
 
5161
else
 
5162
  ac_cpp_err=yes
 
5163
fi
 
5164
if test -z "$ac_cpp_err"; then
 
5165
  # Broken: success on invalid input.
 
5166
continue
 
5167
else
 
5168
  echo "$as_me: failed program was:" >&5
 
5169
sed 's/^/| /' conftest.$ac_ext >&5
 
5170
 
 
5171
  # Passes both tests.
 
5172
ac_preproc_ok=:
 
5173
break
 
5174
fi
 
5175
rm -f conftest.err conftest.$ac_ext
 
5176
 
 
5177
done
 
5178
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5179
rm -f conftest.err conftest.$ac_ext
 
5180
if $ac_preproc_ok; then
 
5181
  break
 
5182
fi
 
5183
 
 
5184
    done
 
5185
    ac_cv_prog_CXXCPP=$CXXCPP
 
5186
 
 
5187
fi
 
5188
  CXXCPP=$ac_cv_prog_CXXCPP
 
5189
else
 
5190
  ac_cv_prog_CXXCPP=$CXXCPP
 
5191
fi
 
5192
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5193
echo "${ECHO_T}$CXXCPP" >&6
 
5194
ac_preproc_ok=false
 
5195
for ac_cxx_preproc_warn_flag in '' yes
 
5196
do
 
5197
  # Use a header file that comes with gcc, so configuring glibc
 
5198
  # with a fresh cross-compiler works.
 
5199
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5200
  # <limits.h> exists even on freestanding compilers.
 
5201
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5202
  # not just through cpp. "Syntax error" is here to catch this case.
 
5203
  cat >conftest.$ac_ext <<_ACEOF
 
5204
/* confdefs.h.  */
 
5205
_ACEOF
 
5206
cat confdefs.h >>conftest.$ac_ext
 
5207
cat >>conftest.$ac_ext <<_ACEOF
 
5208
/* end confdefs.h.  */
 
5209
#ifdef __STDC__
 
5210
# include <limits.h>
 
5211
#else
 
5212
# include <assert.h>
 
5213
#endif
 
5214
                     Syntax error
 
5215
_ACEOF
 
5216
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5217
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5218
  ac_status=$?
 
5219
  grep -v '^ *+' conftest.er1 >conftest.err
 
5220
  rm -f conftest.er1
 
5221
  cat conftest.err >&5
 
5222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5223
  (exit $ac_status); } >/dev/null; then
 
5224
  if test -s conftest.err; then
 
5225
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5226
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5227
  else
 
5228
    ac_cpp_err=
 
5229
  fi
 
5230
else
 
5231
  ac_cpp_err=yes
 
5232
fi
 
5233
if test -z "$ac_cpp_err"; then
 
5234
  :
 
5235
else
 
5236
  echo "$as_me: failed program was:" >&5
 
5237
sed 's/^/| /' conftest.$ac_ext >&5
 
5238
 
 
5239
  # Broken: fails on valid input.
 
5240
continue
 
5241
fi
 
5242
rm -f conftest.err conftest.$ac_ext
 
5243
 
 
5244
  # OK, works on sane cases.  Now check whether non-existent headers
 
5245
  # can be detected and how.
 
5246
  cat >conftest.$ac_ext <<_ACEOF
 
5247
/* confdefs.h.  */
 
5248
_ACEOF
 
5249
cat confdefs.h >>conftest.$ac_ext
 
5250
cat >>conftest.$ac_ext <<_ACEOF
 
5251
/* end confdefs.h.  */
 
5252
#include <ac_nonexistent.h>
 
5253
_ACEOF
 
5254
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5255
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5256
  ac_status=$?
 
5257
  grep -v '^ *+' conftest.er1 >conftest.err
 
5258
  rm -f conftest.er1
 
5259
  cat conftest.err >&5
 
5260
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5261
  (exit $ac_status); } >/dev/null; then
 
5262
  if test -s conftest.err; then
 
5263
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5264
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5265
  else
 
5266
    ac_cpp_err=
 
5267
  fi
 
5268
else
 
5269
  ac_cpp_err=yes
 
5270
fi
 
5271
if test -z "$ac_cpp_err"; then
 
5272
  # Broken: success on invalid input.
 
5273
continue
 
5274
else
 
5275
  echo "$as_me: failed program was:" >&5
 
5276
sed 's/^/| /' conftest.$ac_ext >&5
 
5277
 
 
5278
  # Passes both tests.
 
5279
ac_preproc_ok=:
 
5280
break
 
5281
fi
 
5282
rm -f conftest.err conftest.$ac_ext
 
5283
 
 
5284
done
 
5285
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5286
rm -f conftest.err conftest.$ac_ext
 
5287
if $ac_preproc_ok; then
 
5288
  :
 
5289
else
 
5290
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5291
See \`config.log' for more details." >&5
 
5292
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5293
See \`config.log' for more details." >&2;}
 
5294
   { (exit 1); exit 1; }; }
 
5295
fi
 
5296
 
 
5297
ac_ext=cc
 
5298
ac_cpp='$CXXCPP $CPPFLAGS'
 
5299
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5300
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5301
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5302
 
 
5303
fi
 
5304
 
 
5305
 
 
5306
ac_ext=f
 
5307
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5308
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5309
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5310
if test -n "$ac_tool_prefix"; then
 
5311
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5312
  do
 
5313
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5314
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5315
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5317
if test "${ac_cv_prog_F77+set}" = set; then
 
5318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5319
else
 
5320
  if test -n "$F77"; then
 
5321
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5322
else
 
5323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5324
for as_dir in $PATH
 
5325
do
 
5326
  IFS=$as_save_IFS
 
5327
  test -z "$as_dir" && as_dir=.
 
5328
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5329
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5330
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5331
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5332
    break 2
 
5333
  fi
 
5334
done
 
5335
done
 
5336
 
 
5337
fi
 
5338
fi
 
5339
F77=$ac_cv_prog_F77
 
5340
if test -n "$F77"; then
 
5341
  echo "$as_me:$LINENO: result: $F77" >&5
 
5342
echo "${ECHO_T}$F77" >&6
 
5343
else
 
5344
  echo "$as_me:$LINENO: result: no" >&5
 
5345
echo "${ECHO_T}no" >&6
 
5346
fi
 
5347
 
 
5348
    test -n "$F77" && break
 
5349
  done
 
5350
fi
 
5351
if test -z "$F77"; then
 
5352
  ac_ct_F77=$F77
 
5353
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5354
do
 
5355
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5356
set dummy $ac_prog; ac_word=$2
 
5357
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5358
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5359
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5360
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5361
else
 
5362
  if test -n "$ac_ct_F77"; then
 
5363
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5364
else
 
5365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5366
for as_dir in $PATH
 
5367
do
 
5368
  IFS=$as_save_IFS
 
5369
  test -z "$as_dir" && as_dir=.
 
5370
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5371
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5372
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5373
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5374
    break 2
 
5375
  fi
 
5376
done
 
5377
done
 
5378
 
 
5379
fi
 
5380
fi
 
5381
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5382
if test -n "$ac_ct_F77"; then
 
5383
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5384
echo "${ECHO_T}$ac_ct_F77" >&6
 
5385
else
 
5386
  echo "$as_me:$LINENO: result: no" >&5
 
5387
echo "${ECHO_T}no" >&6
 
5388
fi
 
5389
 
 
5390
  test -n "$ac_ct_F77" && break
 
5391
done
 
5392
 
 
5393
  F77=$ac_ct_F77
 
5394
fi
 
5395
 
 
5396
 
 
5397
# Provide some information about the compiler.
 
5398
echo "$as_me:5398:" \
 
5399
     "checking for Fortran 77 compiler version" >&5
 
5400
ac_compiler=`set X $ac_compile; echo $2`
 
5401
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5402
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5403
  ac_status=$?
 
5404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5405
  (exit $ac_status); }
 
5406
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5407
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5408
  ac_status=$?
 
5409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5410
  (exit $ac_status); }
 
5411
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5412
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5413
  ac_status=$?
 
5414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5415
  (exit $ac_status); }
 
5416
rm -f a.out
 
5417
 
 
5418
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5419
# input file.  (Note that this only needs to work for GNU compilers.)
 
5420
ac_save_ext=$ac_ext
 
5421
ac_ext=F
 
5422
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5423
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5424
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5426
else
 
5427
  cat >conftest.$ac_ext <<_ACEOF
 
5428
      program main
 
5429
#ifndef __GNUC__
 
5430
       choke me
 
5431
#endif
 
5432
 
 
5433
      end
 
5434
_ACEOF
 
5435
rm -f conftest.$ac_objext
 
5436
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5437
  (eval $ac_compile) 2>conftest.er1
 
5438
  ac_status=$?
 
5439
  grep -v '^ *+' conftest.er1 >conftest.err
 
5440
  rm -f conftest.er1
 
5441
  cat conftest.err >&5
 
5442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5443
  (exit $ac_status); } &&
 
5444
         { ac_try='test -z "$ac_f77_werror_flag"
 
5445
                         || test ! -s conftest.err'
 
5446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5447
  (eval $ac_try) 2>&5
 
5448
  ac_status=$?
 
5449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5450
  (exit $ac_status); }; } &&
 
5451
         { ac_try='test -s conftest.$ac_objext'
 
5452
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5453
  (eval $ac_try) 2>&5
 
5454
  ac_status=$?
 
5455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5456
  (exit $ac_status); }; }; then
 
5457
  ac_compiler_gnu=yes
 
5458
else
 
5459
  echo "$as_me: failed program was:" >&5
 
5460
sed 's/^/| /' conftest.$ac_ext >&5
 
5461
 
 
5462
ac_compiler_gnu=no
 
5463
fi
 
5464
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5465
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5466
 
 
5467
fi
 
5468
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5469
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5470
ac_ext=$ac_save_ext
 
5471
ac_test_FFLAGS=${FFLAGS+set}
 
5472
ac_save_FFLAGS=$FFLAGS
 
5473
FFLAGS=
 
5474
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5475
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5476
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5478
else
 
5479
  FFLAGS=-g
 
5480
cat >conftest.$ac_ext <<_ACEOF
 
5481
      program main
 
5482
 
 
5483
      end
 
5484
_ACEOF
 
5485
rm -f conftest.$ac_objext
 
5486
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5487
  (eval $ac_compile) 2>conftest.er1
 
5488
  ac_status=$?
 
5489
  grep -v '^ *+' conftest.er1 >conftest.err
 
5490
  rm -f conftest.er1
 
5491
  cat conftest.err >&5
 
5492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5493
  (exit $ac_status); } &&
 
5494
         { ac_try='test -z "$ac_f77_werror_flag"
 
5495
                         || test ! -s conftest.err'
 
5496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5497
  (eval $ac_try) 2>&5
 
5498
  ac_status=$?
 
5499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5500
  (exit $ac_status); }; } &&
 
5501
         { ac_try='test -s conftest.$ac_objext'
 
5502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5503
  (eval $ac_try) 2>&5
 
5504
  ac_status=$?
 
5505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5506
  (exit $ac_status); }; }; then
 
5507
  ac_cv_prog_f77_g=yes
 
5508
else
 
5509
  echo "$as_me: failed program was:" >&5
 
5510
sed 's/^/| /' conftest.$ac_ext >&5
 
5511
 
 
5512
ac_cv_prog_f77_g=no
 
5513
fi
 
5514
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5515
 
 
5516
fi
 
5517
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5518
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5519
if test "$ac_test_FFLAGS" = set; then
 
5520
  FFLAGS=$ac_save_FFLAGS
 
5521
elif test $ac_cv_prog_f77_g = yes; then
 
5522
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5523
    FFLAGS="-g -O2"
 
5524
  else
 
5525
    FFLAGS="-g"
 
5526
  fi
 
5527
else
 
5528
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5529
    FFLAGS="-O2"
 
5530
  else
 
5531
    FFLAGS=
 
5532
  fi
 
5533
fi
 
5534
 
 
5535
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5536
ac_ext=c
 
5537
ac_cpp='$CPP $CPPFLAGS'
 
5538
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5539
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5540
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5541
 
 
5542
 
 
5543
 
 
5544
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5545
 
 
5546
# find the maximum length of command line arguments
 
5547
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5548
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5549
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5551
else
 
5552
    i=0
 
5553
  teststring="ABCD"
 
5554
 
 
5555
  case $build_os in
 
5556
  msdosdjgpp*)
 
5557
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5558
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5559
    # during glob expansion).  Even if it were fixed, the result of this
 
5560
    # check would be larger than it should be.
 
5561
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5562
    ;;
 
5563
 
 
5564
  gnu*)
 
5565
    # Under GNU Hurd, this test is not required because there is
 
5566
    # no limit to the length of command line arguments.
 
5567
    # Libtool will interpret -1 as no limit whatsoever
 
5568
    lt_cv_sys_max_cmd_len=-1;
 
5569
    ;;
 
5570
 
 
5571
  cygwin* | mingw*)
 
5572
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5573
    # about 5 minutes as the teststring grows exponentially.
 
5574
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5575
    # you end up with a "frozen" computer, even though with patience
 
5576
    # the test eventually succeeds (with a max line length of 256k).
 
5577
    # Instead, let's just punt: use the minimum linelength reported by
 
5578
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5579
    lt_cv_sys_max_cmd_len=8192;
 
5580
    ;;
 
5581
 
 
5582
  amigaos*)
 
5583
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5584
    # So we just punt and use a minimum line length of 8192.
 
5585
    lt_cv_sys_max_cmd_len=8192;
 
5586
    ;;
 
5587
 
 
5588
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5589
    # This has been around since 386BSD, at least.  Likely further.
 
5590
    if test -x /sbin/sysctl; then
 
5591
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5592
    elif test -x /usr/sbin/sysctl; then
 
5593
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5594
    else
 
5595
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5596
    fi
 
5597
    # And add a safety zone
 
5598
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5599
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5600
    ;;
 
5601
  osf*)
 
5602
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5603
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5604
    # nice to cause kernel panics so lets avoid the loop below.
 
5605
    # First set a reasonable default.
 
5606
    lt_cv_sys_max_cmd_len=16384
 
5607
    #
 
5608
    if test -x /sbin/sysconfig; then
 
5609
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5610
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5611
      esac
 
5612
    fi
 
5613
    ;;
 
5614
  *)
 
5615
    # If test is not a shell built-in, we'll probably end up computing a
 
5616
    # maximum length that is only half of the actual maximum length, but
 
5617
    # we can't tell.
 
5618
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5619
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5620
               = "XX$teststring") >/dev/null 2>&1 &&
 
5621
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5622
            lt_cv_sys_max_cmd_len=$new_result &&
 
5623
            test $i != 17 # 1/2 MB should be enough
 
5624
    do
 
5625
      i=`expr $i + 1`
 
5626
      teststring=$teststring$teststring
 
5627
    done
 
5628
    teststring=
 
5629
    # Add a significant safety factor because C++ compilers can tack on massive
 
5630
    # amounts of additional arguments before passing them to the linker.
 
5631
    # It appears as though 1/2 is a usable value.
 
5632
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5633
    ;;
 
5634
  esac
 
5635
 
 
5636
fi
 
5637
 
 
5638
if test -n $lt_cv_sys_max_cmd_len ; then
 
5639
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5640
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5641
else
 
5642
  echo "$as_me:$LINENO: result: none" >&5
 
5643
echo "${ECHO_T}none" >&6
 
5644
fi
 
5645
 
 
5646
 
 
5647
 
 
5648
 
 
5649
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5650
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5651
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5652
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5654
else
 
5655
 
 
5656
# These are sane defaults that work on at least a few old systems.
 
5657
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5658
 
 
5659
# Character class describing NM global symbol codes.
 
5660
symcode='[BCDEGRST]'
 
5661
 
 
5662
# Regexp to match symbols that can be accessed directly from C.
 
5663
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5664
 
 
5665
# Transform an extracted symbol line into a proper C declaration
 
5666
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5667
 
 
5668
# Transform an extracted symbol line into symbol name and symbol address
 
5669
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'"
 
5670
 
 
5671
# Define system-specific variables.
 
5672
case $host_os in
 
5673
aix*)
 
5674
  symcode='[BCDT]'
 
5675
  ;;
 
5676
cygwin* | mingw* | pw32*)
 
5677
  symcode='[ABCDGISTW]'
 
5678
  ;;
 
5679
hpux*) # Its linker distinguishes data from code symbols
 
5680
  if test "$host_cpu" = ia64; then
 
5681
    symcode='[ABCDEGRST]'
 
5682
  fi
 
5683
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5684
  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'"
 
5685
  ;;
 
5686
linux*)
 
5687
  if test "$host_cpu" = ia64; then
 
5688
    symcode='[ABCDGIRSTW]'
 
5689
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5690
    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'"
 
5691
  fi
 
5692
  ;;
 
5693
irix* | nonstopux*)
 
5694
  symcode='[BCDEGRST]'
 
5695
  ;;
 
5696
osf*)
 
5697
  symcode='[BCDEGQRST]'
 
5698
  ;;
 
5699
solaris* | sysv5*)
 
5700
  symcode='[BDRT]'
 
5701
  ;;
 
5702
sysv4)
 
5703
  symcode='[DFNSTU]'
 
5704
  ;;
 
5705
esac
 
5706
 
 
5707
# Handle CRLF in mingw tool chain
 
5708
opt_cr=
 
5709
case $build_os in
 
5710
mingw*)
 
5711
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5712
  ;;
 
5713
esac
 
5714
 
 
5715
# If we're using GNU nm, then use its standard symbol codes.
 
5716
case `$NM -V 2>&1` in
 
5717
*GNU* | *'with BFD'*)
 
5718
  symcode='[ABCDGIRSTW]' ;;
 
5719
esac
 
5720
 
 
5721
# Try without a prefix undercore, then with it.
 
5722
for ac_symprfx in "" "_"; do
 
5723
 
 
5724
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5725
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5726
 
 
5727
  # Write the raw and C identifiers.
 
5728
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5729
 
 
5730
  # Check to see that the pipe works correctly.
 
5731
  pipe_works=no
 
5732
 
 
5733
  rm -f conftest*
 
5734
  cat > conftest.$ac_ext <<EOF
 
5735
#ifdef __cplusplus
 
5736
extern "C" {
 
5737
#endif
 
5738
char nm_test_var;
 
5739
void nm_test_func(){}
 
5740
#ifdef __cplusplus
 
5741
}
 
5742
#endif
 
5743
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5744
EOF
 
5745
 
 
5746
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5747
  (eval $ac_compile) 2>&5
 
5748
  ac_status=$?
 
5749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5750
  (exit $ac_status); }; then
 
5751
    # Now try to grab the symbols.
 
5752
    nlist=conftest.nm
 
5753
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5754
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5755
  ac_status=$?
 
5756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5757
  (exit $ac_status); } && test -s "$nlist"; then
 
5758
      # Try sorting and uniquifying the output.
 
5759
      if sort "$nlist" | uniq > "$nlist"T; then
 
5760
        mv -f "$nlist"T "$nlist"
 
5761
      else
 
5762
        rm -f "$nlist"T
 
5763
      fi
 
5764
 
 
5765
      # Make sure that we snagged all the symbols we need.
 
5766
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5767
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5768
          cat <<EOF > conftest.$ac_ext
 
5769
#ifdef __cplusplus
 
5770
extern "C" {
 
5771
#endif
 
5772
 
 
5773
EOF
 
5774
          # Now generate the symbol file.
 
5775
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5776
 
 
5777
          cat <<EOF >> conftest.$ac_ext
 
5778
#if defined (__STDC__) && __STDC__
 
5779
# define lt_ptr_t void *
 
5780
#else
 
5781
# define lt_ptr_t char *
 
5782
# define const
 
5783
#endif
 
5784
 
 
5785
/* The mapping between symbol names and symbols. */
 
5786
const struct {
 
5787
  const char *name;
 
5788
  lt_ptr_t address;
 
5789
}
 
5790
lt_preloaded_symbols[] =
 
5791
{
 
5792
EOF
 
5793
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5794
          cat <<\EOF >> conftest.$ac_ext
 
5795
  {0, (lt_ptr_t) 0}
 
5796
};
 
5797
 
 
5798
#ifdef __cplusplus
 
5799
}
 
5800
#endif
 
5801
EOF
 
5802
          # Now try linking the two files.
 
5803
          mv conftest.$ac_objext conftstm.$ac_objext
 
5804
          lt_save_LIBS="$LIBS"
 
5805
          lt_save_CFLAGS="$CFLAGS"
 
5806
          LIBS="conftstm.$ac_objext"
 
5807
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5808
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5809
  (eval $ac_link) 2>&5
 
5810
  ac_status=$?
 
5811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5812
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5813
            pipe_works=yes
 
5814
          fi
 
5815
          LIBS="$lt_save_LIBS"
 
5816
          CFLAGS="$lt_save_CFLAGS"
 
5817
        else
 
5818
          echo "cannot find nm_test_func in $nlist" >&5
 
5819
        fi
 
5820
      else
 
5821
        echo "cannot find nm_test_var in $nlist" >&5
 
5822
      fi
 
5823
    else
 
5824
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5825
    fi
 
5826
  else
 
5827
    echo "$progname: failed program was:" >&5
 
5828
    cat conftest.$ac_ext >&5
 
5829
  fi
 
5830
  rm -f conftest* conftst*
 
5831
 
 
5832
  # Do not use the global_symbol_pipe unless it works.
 
5833
  if test "$pipe_works" = yes; then
 
5834
    break
 
5835
  else
 
5836
    lt_cv_sys_global_symbol_pipe=
 
5837
  fi
 
5838
done
 
5839
 
 
5840
fi
 
5841
 
 
5842
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5843
  lt_cv_sys_global_symbol_to_cdecl=
 
5844
fi
 
5845
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5846
  echo "$as_me:$LINENO: result: failed" >&5
 
5847
echo "${ECHO_T}failed" >&6
 
5848
else
 
5849
  echo "$as_me:$LINENO: result: ok" >&5
 
5850
echo "${ECHO_T}ok" >&6
 
5851
fi
 
5852
 
 
5853
echo "$as_me:$LINENO: checking for objdir" >&5
 
5854
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5855
if test "${lt_cv_objdir+set}" = set; then
 
5856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5857
else
 
5858
  rm -f .libs 2>/dev/null
 
5859
mkdir .libs 2>/dev/null
 
5860
if test -d .libs; then
 
5861
  lt_cv_objdir=.libs
 
5862
else
 
5863
  # MS-DOS does not allow filenames that begin with a dot.
 
5864
  lt_cv_objdir=_libs
 
5865
fi
 
5866
rmdir .libs 2>/dev/null
 
5867
fi
 
5868
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5869
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5870
objdir=$lt_cv_objdir
 
5871
 
 
5872
 
 
5873
 
 
5874
 
 
5875
 
 
5876
case $host_os in
 
5877
aix3*)
 
5878
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5879
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5880
  # vanish in a puff of smoke.
 
5881
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5882
    COLLECT_NAMES=
 
5883
    export COLLECT_NAMES
 
5884
  fi
 
5885
  ;;
 
5886
esac
 
5887
 
 
5888
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5889
# metacharacters that are still active within double-quoted strings.
 
5890
Xsed='sed -e 1s/^X//'
 
5891
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5892
 
 
5893
# Same as above, but do not quote variable references.
 
5894
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5895
 
 
5896
# Sed substitution to delay expansion of an escaped shell variable in a
 
5897
# double_quote_subst'ed string.
 
5898
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5899
 
 
5900
# Sed substitution to avoid accidental globbing in evaled expressions
 
5901
no_glob_subst='s/\*/\\\*/g'
 
5902
 
 
5903
# Constants:
 
5904
rm="rm -f"
 
5905
 
 
5906
# Global variables:
 
5907
default_ofile=libtool
 
5908
can_build_shared=yes
 
5909
 
 
5910
# All known linkers require a `.a' archive for static linking (except MSVC,
 
5911
# which needs '.lib').
 
5912
libext=a
 
5913
ltmain="$ac_aux_dir/ltmain.sh"
 
5914
ofile="$default_ofile"
 
5915
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5916
 
 
5917
if test -n "$ac_tool_prefix"; then
 
5918
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5919
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5920
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5921
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5922
if test "${ac_cv_prog_AR+set}" = set; then
 
5923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5924
else
 
5925
  if test -n "$AR"; then
 
5926
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5927
else
 
5928
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5929
for as_dir in $PATH
 
5930
do
 
5931
  IFS=$as_save_IFS
 
5932
  test -z "$as_dir" && as_dir=.
 
5933
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5934
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5935
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5936
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5937
    break 2
 
5938
  fi
 
5939
done
 
5940
done
 
5941
 
 
5942
fi
 
5943
fi
 
5944
AR=$ac_cv_prog_AR
 
5945
if test -n "$AR"; then
 
5946
  echo "$as_me:$LINENO: result: $AR" >&5
 
5947
echo "${ECHO_T}$AR" >&6
 
5948
else
 
5949
  echo "$as_me:$LINENO: result: no" >&5
 
5950
echo "${ECHO_T}no" >&6
 
5951
fi
 
5952
 
 
5953
fi
 
5954
if test -z "$ac_cv_prog_AR"; then
 
5955
  ac_ct_AR=$AR
 
5956
  # Extract the first word of "ar", so it can be a program name with args.
 
5957
set dummy ar; ac_word=$2
 
5958
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5959
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5960
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5962
else
 
5963
  if test -n "$ac_ct_AR"; then
 
5964
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5965
else
 
5966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5967
for as_dir in $PATH
 
5968
do
 
5969
  IFS=$as_save_IFS
 
5970
  test -z "$as_dir" && as_dir=.
 
5971
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5972
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5973
    ac_cv_prog_ac_ct_AR="ar"
 
5974
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5975
    break 2
 
5976
  fi
 
5977
done
 
5978
done
 
5979
 
 
5980
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5981
fi
 
5982
fi
 
5983
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5984
if test -n "$ac_ct_AR"; then
 
5985
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5986
echo "${ECHO_T}$ac_ct_AR" >&6
 
5987
else
 
5988
  echo "$as_me:$LINENO: result: no" >&5
 
5989
echo "${ECHO_T}no" >&6
 
5990
fi
 
5991
 
 
5992
  AR=$ac_ct_AR
 
5993
else
 
5994
  AR="$ac_cv_prog_AR"
 
5995
fi
 
5996
 
 
5997
if test -n "$ac_tool_prefix"; then
 
5998
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5999
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6000
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6002
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6003
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6004
else
 
6005
  if test -n "$RANLIB"; then
 
6006
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6007
else
 
6008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6009
for as_dir in $PATH
 
6010
do
 
6011
  IFS=$as_save_IFS
 
6012
  test -z "$as_dir" && as_dir=.
 
6013
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6014
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6015
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6016
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6017
    break 2
 
6018
  fi
 
6019
done
 
6020
done
 
6021
 
 
6022
fi
 
6023
fi
 
6024
RANLIB=$ac_cv_prog_RANLIB
 
6025
if test -n "$RANLIB"; then
 
6026
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6027
echo "${ECHO_T}$RANLIB" >&6
 
6028
else
 
6029
  echo "$as_me:$LINENO: result: no" >&5
 
6030
echo "${ECHO_T}no" >&6
 
6031
fi
 
6032
 
 
6033
fi
 
6034
if test -z "$ac_cv_prog_RANLIB"; then
 
6035
  ac_ct_RANLIB=$RANLIB
 
6036
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6037
set dummy ranlib; ac_word=$2
 
6038
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6039
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6040
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6041
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6042
else
 
6043
  if test -n "$ac_ct_RANLIB"; then
 
6044
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6045
else
 
6046
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6047
for as_dir in $PATH
 
6048
do
 
6049
  IFS=$as_save_IFS
 
6050
  test -z "$as_dir" && as_dir=.
 
6051
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6052
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6053
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6054
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6055
    break 2
 
6056
  fi
 
6057
done
 
6058
done
 
6059
 
 
6060
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6061
fi
 
6062
fi
 
6063
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6064
if test -n "$ac_ct_RANLIB"; then
 
6065
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6066
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6067
else
 
6068
  echo "$as_me:$LINENO: result: no" >&5
 
6069
echo "${ECHO_T}no" >&6
 
6070
fi
 
6071
 
 
6072
  RANLIB=$ac_ct_RANLIB
 
6073
else
 
6074
  RANLIB="$ac_cv_prog_RANLIB"
 
6075
fi
 
6076
 
 
6077
if test -n "$ac_tool_prefix"; then
 
6078
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6079
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6080
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6081
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6082
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6084
else
 
6085
  if test -n "$STRIP"; then
 
6086
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6087
else
 
6088
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6089
for as_dir in $PATH
 
6090
do
 
6091
  IFS=$as_save_IFS
 
6092
  test -z "$as_dir" && as_dir=.
 
6093
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6094
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6095
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6096
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6097
    break 2
 
6098
  fi
 
6099
done
 
6100
done
 
6101
 
 
6102
fi
 
6103
fi
 
6104
STRIP=$ac_cv_prog_STRIP
 
6105
if test -n "$STRIP"; then
 
6106
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6107
echo "${ECHO_T}$STRIP" >&6
 
6108
else
 
6109
  echo "$as_me:$LINENO: result: no" >&5
 
6110
echo "${ECHO_T}no" >&6
 
6111
fi
 
6112
 
 
6113
fi
 
6114
if test -z "$ac_cv_prog_STRIP"; then
 
6115
  ac_ct_STRIP=$STRIP
 
6116
  # Extract the first word of "strip", so it can be a program name with args.
 
6117
set dummy strip; ac_word=$2
 
6118
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6119
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6120
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6121
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6122
else
 
6123
  if test -n "$ac_ct_STRIP"; then
 
6124
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6125
else
 
6126
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6127
for as_dir in $PATH
 
6128
do
 
6129
  IFS=$as_save_IFS
 
6130
  test -z "$as_dir" && as_dir=.
 
6131
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6132
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6133
    ac_cv_prog_ac_ct_STRIP="strip"
 
6134
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6135
    break 2
 
6136
  fi
 
6137
done
 
6138
done
 
6139
 
 
6140
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6141
fi
 
6142
fi
 
6143
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6144
if test -n "$ac_ct_STRIP"; then
 
6145
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6146
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6147
else
 
6148
  echo "$as_me:$LINENO: result: no" >&5
 
6149
echo "${ECHO_T}no" >&6
 
6150
fi
 
6151
 
 
6152
  STRIP=$ac_ct_STRIP
 
6153
else
 
6154
  STRIP="$ac_cv_prog_STRIP"
 
6155
fi
 
6156
 
 
6157
 
 
6158
old_CC="$CC"
 
6159
old_CFLAGS="$CFLAGS"
 
6160
 
 
6161
# Set sane defaults for various variables
 
6162
test -z "$AR" && AR=ar
 
6163
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6164
test -z "$AS" && AS=as
 
6165
test -z "$CC" && CC=cc
 
6166
test -z "$LTCC" && LTCC=$CC
 
6167
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6168
test -z "$LD" && LD=ld
 
6169
test -z "$LN_S" && LN_S="ln -s"
 
6170
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6171
test -z "$NM" && NM=nm
 
6172
test -z "$SED" && SED=sed
 
6173
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6174
test -z "$RANLIB" && RANLIB=:
 
6175
test -z "$STRIP" && STRIP=:
 
6176
test -z "$ac_objext" && ac_objext=o
 
6177
 
 
6178
# Determine commands to create old-style static archives.
 
6179
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6180
old_postinstall_cmds='chmod 644 $oldlib'
 
6181
old_postuninstall_cmds=
 
6182
 
 
6183
if test -n "$RANLIB"; then
 
6184
  case $host_os in
 
6185
  openbsd*)
 
6186
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6187
    ;;
 
6188
  *)
 
6189
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6190
    ;;
 
6191
  esac
 
6192
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6193
fi
 
6194
 
 
6195
for cc_temp in $compiler""; do
 
6196
  case $cc_temp in
 
6197
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6198
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6199
    \-*) ;;
 
6200
    *) break;;
 
6201
  esac
 
6202
done
 
6203
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6204
 
 
6205
 
 
6206
# Only perform the check for file, if the check method requires it
 
6207
case $deplibs_check_method in
 
6208
file_magic*)
 
6209
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6210
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6211
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6212
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6214
else
 
6215
  case $MAGIC_CMD in
 
6216
[\\/*] |  ?:[\\/]*)
 
6217
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6218
  ;;
 
6219
*)
 
6220
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6221
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6222
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6223
  for ac_dir in $ac_dummy; do
 
6224
    IFS="$lt_save_ifs"
 
6225
    test -z "$ac_dir" && ac_dir=.
 
6226
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6227
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6228
      if test -n "$file_magic_test_file"; then
 
6229
        case $deplibs_check_method in
 
6230
        "file_magic "*)
 
6231
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6232
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6233
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6234
            $EGREP "$file_magic_regex" > /dev/null; then
 
6235
            :
 
6236
          else
 
6237
            cat <<EOF 1>&2
 
6238
 
 
6239
*** Warning: the command libtool uses to detect shared libraries,
 
6240
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6241
*** The result is that libtool may fail to recognize shared libraries
 
6242
*** as such.  This will affect the creation of libtool libraries that
 
6243
*** depend on shared libraries, but programs linked with such libtool
 
6244
*** libraries will work regardless of this problem.  Nevertheless, you
 
6245
*** may want to report the problem to your system manager and/or to
 
6246
*** bug-libtool@gnu.org
 
6247
 
 
6248
EOF
 
6249
          fi ;;
 
6250
        esac
 
6251
      fi
 
6252
      break
 
6253
    fi
 
6254
  done
 
6255
  IFS="$lt_save_ifs"
 
6256
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6257
  ;;
 
6258
esac
 
6259
fi
 
6260
 
 
6261
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6262
if test -n "$MAGIC_CMD"; then
 
6263
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6264
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6265
else
 
6266
  echo "$as_me:$LINENO: result: no" >&5
 
6267
echo "${ECHO_T}no" >&6
 
6268
fi
 
6269
 
 
6270
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6271
  if test -n "$ac_tool_prefix"; then
 
6272
    echo "$as_me:$LINENO: checking for file" >&5
 
6273
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6274
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6275
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6276
else
 
6277
  case $MAGIC_CMD in
 
6278
[\\/*] |  ?:[\\/]*)
 
6279
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6280
  ;;
 
6281
*)
 
6282
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6283
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6284
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6285
  for ac_dir in $ac_dummy; do
 
6286
    IFS="$lt_save_ifs"
 
6287
    test -z "$ac_dir" && ac_dir=.
 
6288
    if test -f $ac_dir/file; then
 
6289
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6290
      if test -n "$file_magic_test_file"; then
 
6291
        case $deplibs_check_method in
 
6292
        "file_magic "*)
 
6293
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6294
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6295
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6296
            $EGREP "$file_magic_regex" > /dev/null; then
 
6297
            :
 
6298
          else
 
6299
            cat <<EOF 1>&2
 
6300
 
 
6301
*** Warning: the command libtool uses to detect shared libraries,
 
6302
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6303
*** The result is that libtool may fail to recognize shared libraries
 
6304
*** as such.  This will affect the creation of libtool libraries that
 
6305
*** depend on shared libraries, but programs linked with such libtool
 
6306
*** libraries will work regardless of this problem.  Nevertheless, you
 
6307
*** may want to report the problem to your system manager and/or to
 
6308
*** bug-libtool@gnu.org
 
6309
 
 
6310
EOF
 
6311
          fi ;;
 
6312
        esac
 
6313
      fi
 
6314
      break
 
6315
    fi
 
6316
  done
 
6317
  IFS="$lt_save_ifs"
 
6318
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6319
  ;;
 
6320
esac
 
6321
fi
 
6322
 
 
6323
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6324
if test -n "$MAGIC_CMD"; then
 
6325
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6326
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6327
else
 
6328
  echo "$as_me:$LINENO: result: no" >&5
 
6329
echo "${ECHO_T}no" >&6
 
6330
fi
 
6331
 
 
6332
  else
 
6333
    MAGIC_CMD=:
 
6334
  fi
 
6335
fi
 
6336
 
 
6337
  fi
 
6338
  ;;
 
6339
esac
 
6340
 
 
6341
enable_dlopen=no
 
6342
enable_win32_dll=no
 
6343
 
 
6344
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6345
if test "${enable_libtool_lock+set}" = set; then
 
6346
  enableval="$enable_libtool_lock"
 
6347
 
 
6348
fi;
 
6349
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6350
 
 
6351
 
 
6352
# Check whether --with-pic or --without-pic was given.
 
6353
if test "${with_pic+set}" = set; then
 
6354
  withval="$with_pic"
 
6355
  pic_mode="$withval"
 
6356
else
 
6357
  pic_mode=default
 
6358
fi;
 
6359
test -z "$pic_mode" && pic_mode=default
 
6360
 
 
6361
# Use C for the default configuration in the libtool script
 
6362
tagname=
 
6363
lt_save_CC="$CC"
 
6364
ac_ext=c
 
6365
ac_cpp='$CPP $CPPFLAGS'
 
6366
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6367
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6368
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6369
 
 
6370
 
 
6371
# Source file extension for C test sources.
 
6372
ac_ext=c
 
6373
 
 
6374
# Object file extension for compiled C test sources.
 
6375
objext=o
 
6376
objext=$objext
 
6377
 
 
6378
# Code to be used in simple compile tests
 
6379
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6380
 
 
6381
# Code to be used in simple link tests
 
6382
lt_simple_link_test_code='int main(){return(0);}\n'
 
6383
 
 
6384
 
 
6385
# If no C compiler was specified, use CC.
 
6386
LTCC=${LTCC-"$CC"}
 
6387
 
 
6388
# Allow CC to be a program name with arguments.
 
6389
compiler=$CC
 
6390
 
 
6391
 
 
6392
# save warnings/boilerplate of simple test code
 
6393
ac_outfile=conftest.$ac_objext
 
6394
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6395
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
6396
_lt_compiler_boilerplate=`cat conftest.err`
 
6397
$rm conftest*
 
6398
 
 
6399
ac_outfile=conftest.$ac_objext
 
6400
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6401
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
6402
_lt_linker_boilerplate=`cat conftest.err`
 
6403
$rm conftest*
 
6404
 
 
6405
 
 
6406
#
 
6407
# Check for any special shared library compilation flags.
 
6408
#
 
6409
lt_prog_cc_shlib=
 
6410
if test "$GCC" = no; then
 
6411
  case $host_os in
 
6412
  sco3.2v5*)
 
6413
    lt_prog_cc_shlib='-belf'
 
6414
    ;;
 
6415
  esac
 
6416
fi
 
6417
if test -n "$lt_prog_cc_shlib"; then
 
6418
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6419
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6420
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
6421
  else
 
6422
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6423
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6424
    lt_cv_prog_cc_can_build_shared=no
 
6425
  fi
 
6426
fi
 
6427
 
 
6428
 
 
6429
#
 
6430
# Check to make sure the static flag actually works.
 
6431
#
 
6432
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6433
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6434
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6436
else
 
6437
  lt_prog_compiler_static_works=no
 
6438
   save_LDFLAGS="$LDFLAGS"
 
6439
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6440
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6441
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6442
     # The linker can only warn and ignore the option if not recognized
 
6443
     # So say no if there are warnings
 
6444
     if test -s conftest.err; then
 
6445
       # Append any errors to the config.log.
 
6446
       cat conftest.err 1>&5
 
6447
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
6448
       $SED '/^$/d' conftest.err >conftest.er2
 
6449
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6450
         lt_prog_compiler_static_works=yes
 
6451
       fi
 
6452
     else
 
6453
       lt_prog_compiler_static_works=yes
 
6454
     fi
 
6455
   fi
 
6456
   $rm conftest*
 
6457
   LDFLAGS="$save_LDFLAGS"
 
6458
 
 
6459
fi
 
6460
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6461
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6462
 
 
6463
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6464
    :
 
6465
else
 
6466
    lt_prog_compiler_static=
 
6467
fi
 
6468
 
 
6469
 
 
6470
 
 
6471
 
 
6472
lt_prog_compiler_no_builtin_flag=
 
6473
 
 
6474
if test "$GCC" = yes; then
 
6475
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6476
 
 
6477
 
 
6478
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6479
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6480
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6481
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6482
else
 
6483
  lt_cv_prog_compiler_rtti_exceptions=no
 
6484
  ac_outfile=conftest.$ac_objext
 
6485
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6486
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6487
   # Insert the option either (1) after the last *FLAGS variable, or
 
6488
   # (2) before a word containing "conftest.", or (3) at the end.
 
6489
   # Note that $ac_compile itself does not contain backslashes and begins
 
6490
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6491
   # The option is referenced via a variable to avoid confusing sed.
 
6492
   lt_compile=`echo "$ac_compile" | $SED \
 
6493
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6494
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6495
   -e 's:$: $lt_compiler_flag:'`
 
6496
   (eval echo "\"\$as_me:6496: $lt_compile\"" >&5)
 
6497
   (eval "$lt_compile" 2>conftest.err)
 
6498
   ac_status=$?
 
6499
   cat conftest.err >&5
 
6500
   echo "$as_me:6500: \$? = $ac_status" >&5
 
6501
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6502
     # The compiler can only warn and ignore the option if not recognized
 
6503
     # So say no if there are warnings other than the usual output.
 
6504
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6505
     $SED '/^$/d' conftest.err >conftest.er2
 
6506
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6507
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6508
     fi
 
6509
   fi
 
6510
   $rm conftest*
 
6511
 
 
6512
fi
 
6513
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6514
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6515
 
 
6516
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6517
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6518
else
 
6519
    :
 
6520
fi
 
6521
 
 
6522
fi
 
6523
 
 
6524
lt_prog_compiler_wl=
 
6525
lt_prog_compiler_pic=
 
6526
lt_prog_compiler_static=
 
6527
 
 
6528
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6529
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6530
 
 
6531
  if test "$GCC" = yes; then
 
6532
    lt_prog_compiler_wl='-Wl,'
 
6533
    lt_prog_compiler_static='-static'
 
6534
 
 
6535
    case $host_os in
 
6536
      aix*)
 
6537
      # All AIX code is PIC.
 
6538
      if test "$host_cpu" = ia64; then
 
6539
        # AIX 5 now supports IA64 processor
 
6540
        lt_prog_compiler_static='-Bstatic'
 
6541
      fi
 
6542
      ;;
 
6543
 
 
6544
    amigaos*)
 
6545
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6546
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6547
      # like `-m68040'.
 
6548
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6549
      ;;
 
6550
 
 
6551
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6552
      # PIC is the default for these OSes.
 
6553
      ;;
 
6554
 
 
6555
    mingw* | pw32* | os2*)
 
6556
      # This hack is so that the source file can tell whether it is being
 
6557
      # built for inclusion in a dll (and should export symbols for example).
 
6558
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6559
      ;;
 
6560
 
 
6561
    darwin* | rhapsody*)
 
6562
      # PIC is the default on this platform
 
6563
      # Common symbols not allowed in MH_DYLIB files
 
6564
      lt_prog_compiler_pic='-fno-common'
 
6565
      ;;
 
6566
 
 
6567
    msdosdjgpp*)
 
6568
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6569
      # on systems that don't support them.
 
6570
      lt_prog_compiler_can_build_shared=no
 
6571
      enable_shared=no
 
6572
      ;;
 
6573
 
 
6574
    sysv4*MP*)
 
6575
      if test -d /usr/nec; then
 
6576
        lt_prog_compiler_pic=-Kconform_pic
 
6577
      fi
 
6578
      ;;
 
6579
 
 
6580
    hpux*)
 
6581
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6582
      # not for PA HP-UX.
 
6583
      case $host_cpu in
 
6584
      hppa*64*|ia64*)
 
6585
        # +Z the default
 
6586
        ;;
 
6587
      *)
 
6588
        lt_prog_compiler_pic='-fPIC'
 
6589
        ;;
 
6590
      esac
 
6591
      ;;
 
6592
 
 
6593
    *)
 
6594
      lt_prog_compiler_pic='-fPIC'
 
6595
      ;;
 
6596
    esac
 
6597
  else
 
6598
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6599
    case $host_os in
 
6600
    aix*)
 
6601
      lt_prog_compiler_wl='-Wl,'
 
6602
      if test "$host_cpu" = ia64; then
 
6603
        # AIX 5 now supports IA64 processor
 
6604
        lt_prog_compiler_static='-Bstatic'
 
6605
      else
 
6606
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6607
      fi
 
6608
      ;;
 
6609
      darwin*)
 
6610
        # PIC is the default on this platform
 
6611
        # Common symbols not allowed in MH_DYLIB files
 
6612
       case $cc_basename in
 
6613
         xlc*)
 
6614
         lt_prog_compiler_pic='-qnocommon'
 
6615
         lt_prog_compiler_wl='-Wl,'
 
6616
         ;;
 
6617
       esac
 
6618
       ;;
 
6619
 
 
6620
    mingw* | pw32* | os2*)
 
6621
      # This hack is so that the source file can tell whether it is being
 
6622
      # built for inclusion in a dll (and should export symbols for example).
 
6623
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6624
      ;;
 
6625
 
 
6626
    hpux9* | hpux10* | hpux11*)
 
6627
      lt_prog_compiler_wl='-Wl,'
 
6628
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6629
      # not for PA HP-UX.
 
6630
      case $host_cpu in
 
6631
      hppa*64*|ia64*)
 
6632
        # +Z the default
 
6633
        ;;
 
6634
      *)
 
6635
        lt_prog_compiler_pic='+Z'
 
6636
        ;;
 
6637
      esac
 
6638
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6639
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6640
      ;;
 
6641
 
 
6642
    irix5* | irix6* | nonstopux*)
 
6643
      lt_prog_compiler_wl='-Wl,'
 
6644
      # PIC (with -KPIC) is the default.
 
6645
      lt_prog_compiler_static='-non_shared'
 
6646
      ;;
 
6647
 
 
6648
    newsos6)
 
6649
      lt_prog_compiler_pic='-KPIC'
 
6650
      lt_prog_compiler_static='-Bstatic'
 
6651
      ;;
 
6652
 
 
6653
    linux*)
 
6654
      case $cc_basename in
 
6655
      icc* | ecc*)
 
6656
        lt_prog_compiler_wl='-Wl,'
 
6657
        lt_prog_compiler_pic='-KPIC'
 
6658
        lt_prog_compiler_static='-static'
 
6659
        ;;
 
6660
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6661
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6662
        # which looks to be a dead project)
 
6663
        lt_prog_compiler_wl='-Wl,'
 
6664
        lt_prog_compiler_pic='-fpic'
 
6665
        lt_prog_compiler_static='-Bstatic'
 
6666
        ;;
 
6667
      ccc*)
 
6668
        lt_prog_compiler_wl='-Wl,'
 
6669
        # All Alpha code is PIC.
 
6670
        lt_prog_compiler_static='-non_shared'
 
6671
        ;;
 
6672
      esac
 
6673
      ;;
 
6674
 
 
6675
    osf3* | osf4* | osf5*)
 
6676
      lt_prog_compiler_wl='-Wl,'
 
6677
      # All OSF/1 code is PIC.
 
6678
      lt_prog_compiler_static='-non_shared'
 
6679
      ;;
 
6680
 
 
6681
    sco3.2v5*)
 
6682
      lt_prog_compiler_pic='-Kpic'
 
6683
      lt_prog_compiler_static='-dn'
 
6684
      ;;
 
6685
 
 
6686
    solaris*)
 
6687
      lt_prog_compiler_pic='-KPIC'
 
6688
      lt_prog_compiler_static='-Bstatic'
 
6689
      case $cc_basename in
 
6690
      f77* | f90* | f95*)
 
6691
        lt_prog_compiler_wl='-Qoption ld ';;
 
6692
      *)
 
6693
        lt_prog_compiler_wl='-Wl,';;
 
6694
      esac
 
6695
      ;;
 
6696
 
 
6697
    sunos4*)
 
6698
      lt_prog_compiler_wl='-Qoption ld '
 
6699
      lt_prog_compiler_pic='-PIC'
 
6700
      lt_prog_compiler_static='-Bstatic'
 
6701
      ;;
 
6702
 
 
6703
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6704
      lt_prog_compiler_wl='-Wl,'
 
6705
      lt_prog_compiler_pic='-KPIC'
 
6706
      lt_prog_compiler_static='-Bstatic'
 
6707
      ;;
 
6708
 
 
6709
    sysv4*MP*)
 
6710
      if test -d /usr/nec ;then
 
6711
        lt_prog_compiler_pic='-Kconform_pic'
 
6712
        lt_prog_compiler_static='-Bstatic'
 
6713
      fi
 
6714
      ;;
 
6715
 
 
6716
    unicos*)
 
6717
      lt_prog_compiler_wl='-Wl,'
 
6718
      lt_prog_compiler_can_build_shared=no
 
6719
      ;;
 
6720
 
 
6721
    uts4*)
 
6722
      lt_prog_compiler_pic='-pic'
 
6723
      lt_prog_compiler_static='-Bstatic'
 
6724
      ;;
 
6725
 
 
6726
    *)
 
6727
      lt_prog_compiler_can_build_shared=no
 
6728
      ;;
 
6729
    esac
 
6730
  fi
 
6731
 
 
6732
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6733
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6734
 
 
6735
#
 
6736
# Check to make sure the PIC flag actually works.
 
6737
#
 
6738
if test -n "$lt_prog_compiler_pic"; then
 
6739
 
 
6740
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6741
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6742
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6743
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6744
else
 
6745
  lt_prog_compiler_pic_works=no
 
6746
  ac_outfile=conftest.$ac_objext
 
6747
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6748
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6749
   # Insert the option either (1) after the last *FLAGS variable, or
 
6750
   # (2) before a word containing "conftest.", or (3) at the end.
 
6751
   # Note that $ac_compile itself does not contain backslashes and begins
 
6752
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6753
   # The option is referenced via a variable to avoid confusing sed.
 
6754
   lt_compile=`echo "$ac_compile" | $SED \
 
6755
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6756
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6757
   -e 's:$: $lt_compiler_flag:'`
 
6758
   (eval echo "\"\$as_me:6758: $lt_compile\"" >&5)
 
6759
   (eval "$lt_compile" 2>conftest.err)
 
6760
   ac_status=$?
 
6761
   cat conftest.err >&5
 
6762
   echo "$as_me:6762: \$? = $ac_status" >&5
 
6763
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6764
     # The compiler can only warn and ignore the option if not recognized
 
6765
     # So say no if there are warnings other than the usual output.
 
6766
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6767
     $SED '/^$/d' conftest.err >conftest.er2
 
6768
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6769
       lt_prog_compiler_pic_works=yes
 
6770
     fi
 
6771
   fi
 
6772
   $rm conftest*
 
6773
 
 
6774
fi
 
6775
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6776
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6777
 
 
6778
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6779
    case $lt_prog_compiler_pic in
 
6780
     "" | " "*) ;;
 
6781
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6782
     esac
 
6783
else
 
6784
    lt_prog_compiler_pic=
 
6785
     lt_prog_compiler_can_build_shared=no
 
6786
fi
 
6787
 
 
6788
fi
 
6789
case $host_os in
 
6790
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6791
  *djgpp*)
 
6792
    lt_prog_compiler_pic=
 
6793
    ;;
 
6794
  *)
 
6795
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6796
    ;;
 
6797
esac
 
6798
 
 
6799
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6800
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6801
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6803
else
 
6804
  lt_cv_prog_compiler_c_o=no
 
6805
   $rm -r conftest 2>/dev/null
 
6806
   mkdir conftest
 
6807
   cd conftest
 
6808
   mkdir out
 
6809
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6810
 
 
6811
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6812
   # Insert the option either (1) after the last *FLAGS variable, or
 
6813
   # (2) before a word containing "conftest.", or (3) at the end.
 
6814
   # Note that $ac_compile itself does not contain backslashes and begins
 
6815
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6816
   lt_compile=`echo "$ac_compile" | $SED \
 
6817
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6818
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6819
   -e 's:$: $lt_compiler_flag:'`
 
6820
   (eval echo "\"\$as_me:6820: $lt_compile\"" >&5)
 
6821
   (eval "$lt_compile" 2>out/conftest.err)
 
6822
   ac_status=$?
 
6823
   cat out/conftest.err >&5
 
6824
   echo "$as_me:6824: \$? = $ac_status" >&5
 
6825
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6826
   then
 
6827
     # The compiler can only warn and ignore the option if not recognized
 
6828
     # So say no if there are warnings
 
6829
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
6830
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
6831
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6832
       lt_cv_prog_compiler_c_o=yes
 
6833
     fi
 
6834
   fi
 
6835
   chmod u+w . 2>&5
 
6836
   $rm conftest*
 
6837
   # SGI C++ compiler will create directory out/ii_files/ for
 
6838
   # template instantiation
 
6839
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6840
   $rm out/* && rmdir out
 
6841
   cd ..
 
6842
   rmdir conftest
 
6843
   $rm conftest*
 
6844
 
 
6845
fi
 
6846
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6847
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6848
 
 
6849
 
 
6850
hard_links="nottested"
 
6851
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6852
  # do not overwrite the value of need_locks provided by the user
 
6853
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6854
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6855
  hard_links=yes
 
6856
  $rm conftest*
 
6857
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6858
  touch conftest.a
 
6859
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6860
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6861
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6862
echo "${ECHO_T}$hard_links" >&6
 
6863
  if test "$hard_links" = no; then
 
6864
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6865
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6866
    need_locks=warn
 
6867
  fi
 
6868
else
 
6869
  need_locks=no
 
6870
fi
 
6871
 
 
6872
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6873
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6874
 
 
6875
  runpath_var=
 
6876
  allow_undefined_flag=
 
6877
  enable_shared_with_static_runtimes=no
 
6878
  archive_cmds=
 
6879
  archive_expsym_cmds=
 
6880
  old_archive_From_new_cmds=
 
6881
  old_archive_from_expsyms_cmds=
 
6882
  export_dynamic_flag_spec=
 
6883
  whole_archive_flag_spec=
 
6884
  thread_safe_flag_spec=
 
6885
  hardcode_libdir_flag_spec=
 
6886
  hardcode_libdir_flag_spec_ld=
 
6887
  hardcode_libdir_separator=
 
6888
  hardcode_direct=no
 
6889
  hardcode_minus_L=no
 
6890
  hardcode_shlibpath_var=unsupported
 
6891
  link_all_deplibs=unknown
 
6892
  hardcode_automatic=no
 
6893
  module_cmds=
 
6894
  module_expsym_cmds=
 
6895
  always_export_symbols=no
 
6896
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6897
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6898
  # included in the symbol list
 
6899
  include_expsyms=
 
6900
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6901
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6902
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6903
  # as well as any symbol that contains `d'.
 
6904
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6905
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6906
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6907
  # the symbol is explicitly referenced.  Since portable code cannot
 
6908
  # rely on this symbol name, it's probably fine to never include it in
 
6909
  # preloaded symbol tables.
 
6910
  extract_expsyms_cmds=
 
6911
  # Just being paranoid about ensuring that cc_basename is set.
 
6912
  for cc_temp in $compiler""; do
 
6913
  case $cc_temp in
 
6914
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6915
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6916
    \-*) ;;
 
6917
    *) break;;
 
6918
  esac
 
6919
done
 
6920
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6921
 
 
6922
  case $host_os in
 
6923
  cygwin* | mingw* | pw32*)
 
6924
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6925
    # When not using gcc, we currently assume that we are using
 
6926
    # Microsoft Visual C++.
 
6927
    if test "$GCC" != yes; then
 
6928
      with_gnu_ld=no
 
6929
    fi
 
6930
    ;;
 
6931
  openbsd*)
 
6932
    with_gnu_ld=no
 
6933
    ;;
 
6934
  esac
 
6935
 
 
6936
  ld_shlibs=yes
 
6937
  if test "$with_gnu_ld" = yes; then
 
6938
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6939
    wlarc='${wl}'
 
6940
 
 
6941
    # Set some defaults for GNU ld with shared library support. These
 
6942
    # are reset later if shared libraries are not supported. Putting them
 
6943
    # here allows them to be overridden if necessary.
 
6944
    runpath_var=LD_RUN_PATH
 
6945
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6946
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6947
    # ancient GNU ld didn't support --whole-archive et. al.
 
6948
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6949
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6950
      else
 
6951
        whole_archive_flag_spec=
 
6952
    fi
 
6953
    supports_anon_versioning=no
 
6954
    case `$LD -v 2>/dev/null` in
 
6955
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6956
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6957
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6958
      *\ 2.11.*) ;; # other 2.11 versions
 
6959
      *) supports_anon_versioning=yes ;;
 
6960
    esac
 
6961
 
 
6962
    # See if GNU ld supports shared libraries.
 
6963
    case $host_os in
 
6964
    aix3* | aix4* | aix5*)
 
6965
      # On AIX/PPC, the GNU linker is very broken
 
6966
      if test "$host_cpu" != ia64; then
 
6967
        ld_shlibs=no
 
6968
        cat <<EOF 1>&2
 
6969
 
 
6970
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6971
*** to be unable to reliably create shared libraries on AIX.
 
6972
*** Therefore, libtool is disabling shared libraries support.  If you
 
6973
*** really care for shared libraries, you may want to modify your PATH
 
6974
*** so that a non-GNU linker is found, and then restart.
 
6975
 
 
6976
EOF
 
6977
      fi
 
6978
      ;;
 
6979
 
 
6980
    amigaos*)
 
6981
      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)'
 
6982
      hardcode_libdir_flag_spec='-L$libdir'
 
6983
      hardcode_minus_L=yes
 
6984
 
 
6985
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6986
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6987
      # to version 4, is to share data among multiple programs linked
 
6988
      # with the same dynamic library.  Since this doesn't match the
 
6989
      # behavior of shared libraries on other platforms, we can't use
 
6990
      # them.
 
6991
      ld_shlibs=no
 
6992
      ;;
 
6993
 
 
6994
    beos*)
 
6995
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6996
        allow_undefined_flag=unsupported
 
6997
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6998
        # support --undefined.  This deserves some investigation.  FIXME
 
6999
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7000
      else
 
7001
        ld_shlibs=no
 
7002
      fi
 
7003
      ;;
 
7004
 
 
7005
    cygwin* | mingw* | pw32*)
 
7006
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7007
      # as there is no search path for DLLs.
 
7008
      hardcode_libdir_flag_spec='-L$libdir'
 
7009
      allow_undefined_flag=unsupported
 
7010
      always_export_symbols=no
 
7011
      enable_shared_with_static_runtimes=yes
 
7012
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7013
 
 
7014
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7015
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7016
        # If the export-symbols file already is a .def file (1st line
 
7017
        # is EXPORTS), use it as is; otherwise, prepend...
 
7018
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7019
          cp $export_symbols $output_objdir/$soname.def;
 
7020
        else
 
7021
          echo EXPORTS > $output_objdir/$soname.def;
 
7022
          cat $export_symbols >> $output_objdir/$soname.def;
 
7023
        fi~
 
7024
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7025
      else
 
7026
        ld_shlibs=no
 
7027
      fi
 
7028
      ;;
 
7029
 
 
7030
    linux*)
 
7031
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7032
        tmp_addflag=
 
7033
        case $cc_basename,$host_cpu in
 
7034
        pgcc*)                          # Portland Group C compiler
 
7035
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7036
          tmp_addflag=' $pic_flag'
 
7037
          ;;
 
7038
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7039
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7040
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7041
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7042
          tmp_addflag=' -i_dynamic' ;;
 
7043
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7044
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7045
        ifc* | ifort*)                  # Intel Fortran compiler
 
7046
          tmp_addflag=' -nofor_main' ;;
 
7047
        esac
 
7048
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7049
 
 
7050
        if test $supports_anon_versioning = yes; then
 
7051
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7052
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7053
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7054
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7055
        fi
 
7056
      else
 
7057
        ld_shlibs=no
 
7058
      fi
 
7059
      ;;
 
7060
 
 
7061
    netbsd*)
 
7062
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7063
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7064
        wlarc=
 
7065
      else
 
7066
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7067
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7068
      fi
 
7069
      ;;
 
7070
 
 
7071
    solaris* | sysv5*)
 
7072
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7073
        ld_shlibs=no
 
7074
        cat <<EOF 1>&2
 
7075
 
 
7076
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7077
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7078
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7079
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7080
*** your PATH or compiler configuration so that the native linker is
 
7081
*** used, and then restart.
 
7082
 
 
7083
EOF
 
7084
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7085
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7086
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7087
      else
 
7088
        ld_shlibs=no
 
7089
      fi
 
7090
      ;;
 
7091
 
 
7092
    sunos4*)
 
7093
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7094
      wlarc=
 
7095
      hardcode_direct=yes
 
7096
      hardcode_shlibpath_var=no
 
7097
      ;;
 
7098
 
 
7099
    *)
 
7100
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7101
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7102
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7103
      else
 
7104
        ld_shlibs=no
 
7105
      fi
 
7106
      ;;
 
7107
    esac
 
7108
 
 
7109
    if test "$ld_shlibs" = no; then
 
7110
      runpath_var=
 
7111
      hardcode_libdir_flag_spec=
 
7112
      export_dynamic_flag_spec=
 
7113
      whole_archive_flag_spec=
 
7114
    fi
 
7115
  else
 
7116
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7117
    case $host_os in
 
7118
    aix3*)
 
7119
      allow_undefined_flag=unsupported
 
7120
      always_export_symbols=yes
 
7121
      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'
 
7122
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7123
      # are no directories specified by -L.
 
7124
      hardcode_minus_L=yes
 
7125
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7126
        # Neither direct hardcoding nor static linking is supported with a
 
7127
        # broken collect2.
 
7128
        hardcode_direct=unsupported
 
7129
      fi
 
7130
      ;;
 
7131
 
 
7132
    aix4* | aix5*)
 
7133
      if test "$host_cpu" = ia64; then
 
7134
        # On IA64, the linker does run time linking by default, so we don't
 
7135
        # have to do anything special.
 
7136
        aix_use_runtimelinking=no
 
7137
        exp_sym_flag='-Bexport'
 
7138
        no_entry_flag=""
 
7139
      else
 
7140
        # If we're using GNU nm, then we don't want the "-C" option.
 
7141
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7142
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7143
          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'
 
7144
        else
 
7145
          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'
 
7146
        fi
 
7147
        aix_use_runtimelinking=no
 
7148
 
 
7149
        # Test if we are trying to use run time linking or normal
 
7150
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7151
        # need to do runtime linking.
 
7152
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7153
          for ld_flag in $LDFLAGS; do
 
7154
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7155
            aix_use_runtimelinking=yes
 
7156
            break
 
7157
          fi
 
7158
          done
 
7159
        esac
 
7160
 
 
7161
        exp_sym_flag='-bexport'
 
7162
        no_entry_flag='-bnoentry'
 
7163
      fi
 
7164
 
 
7165
      # When large executables or shared objects are built, AIX ld can
 
7166
      # have problems creating the table of contents.  If linking a library
 
7167
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7168
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7169
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7170
 
 
7171
      archive_cmds=''
 
7172
      hardcode_direct=yes
 
7173
      hardcode_libdir_separator=':'
 
7174
      link_all_deplibs=yes
 
7175
 
 
7176
      if test "$GCC" = yes; then
 
7177
        case $host_os in aix4.[012]|aix4.[012].*)
 
7178
        # We only want to do this on AIX 4.2 and lower, the check
 
7179
        # below for broken collect2 doesn't work under 4.3+
 
7180
          collect2name=`${CC} -print-prog-name=collect2`
 
7181
          if test -f "$collect2name" && \
 
7182
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7183
          then
 
7184
          # We have reworked collect2
 
7185
          hardcode_direct=yes
 
7186
          else
 
7187
          # We have old collect2
 
7188
          hardcode_direct=unsupported
 
7189
          # It fails to find uninstalled libraries when the uninstalled
 
7190
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7191
          # to unsupported forces relinking
 
7192
          hardcode_minus_L=yes
 
7193
          hardcode_libdir_flag_spec='-L$libdir'
 
7194
          hardcode_libdir_separator=
 
7195
          fi
 
7196
        esac
 
7197
        shared_flag='-shared'
 
7198
        if test "$aix_use_runtimelinking" = yes; then
 
7199
          shared_flag="$shared_flag "'${wl}-G'
 
7200
        fi
 
7201
      else
 
7202
        # not using gcc
 
7203
        if test "$host_cpu" = ia64; then
 
7204
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7205
        # chokes on -Wl,-G. The following line is correct:
 
7206
          shared_flag='-G'
 
7207
        else
 
7208
        if test "$aix_use_runtimelinking" = yes; then
 
7209
            shared_flag='${wl}-G'
 
7210
          else
 
7211
            shared_flag='${wl}-bM:SRE'
 
7212
        fi
 
7213
        fi
 
7214
      fi
 
7215
 
 
7216
      # It seems that -bexpall does not export symbols beginning with
 
7217
      # underscore (_), so it is better to generate a list of symbols to export.
 
7218
      always_export_symbols=yes
 
7219
      if test "$aix_use_runtimelinking" = yes; then
 
7220
        # Warning - without using the other runtime loading flags (-brtl),
 
7221
        # -berok will link without error, but may produce a broken library.
 
7222
        allow_undefined_flag='-berok'
 
7223
       # Determine the default libpath from the value encoded in an empty executable.
 
7224
       cat >conftest.$ac_ext <<_ACEOF
 
7225
/* confdefs.h.  */
 
7226
_ACEOF
 
7227
cat confdefs.h >>conftest.$ac_ext
 
7228
cat >>conftest.$ac_ext <<_ACEOF
 
7229
/* end confdefs.h.  */
 
7230
 
 
7231
int
 
7232
main ()
 
7233
{
 
7234
 
 
7235
  ;
 
7236
  return 0;
 
7237
}
 
7238
_ACEOF
 
7239
rm -f conftest.$ac_objext conftest$ac_exeext
 
7240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7241
  (eval $ac_link) 2>conftest.er1
 
7242
  ac_status=$?
 
7243
  grep -v '^ *+' conftest.er1 >conftest.err
 
7244
  rm -f conftest.er1
 
7245
  cat conftest.err >&5
 
7246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7247
  (exit $ac_status); } &&
 
7248
         { ac_try='test -z "$ac_c_werror_flag"
 
7249
                         || test ! -s conftest.err'
 
7250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7251
  (eval $ac_try) 2>&5
 
7252
  ac_status=$?
 
7253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7254
  (exit $ac_status); }; } &&
 
7255
         { ac_try='test -s conftest$ac_exeext'
 
7256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7257
  (eval $ac_try) 2>&5
 
7258
  ac_status=$?
 
7259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7260
  (exit $ac_status); }; }; then
 
7261
 
 
7262
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7263
}'`
 
7264
# Check for a 64-bit object if we didn't find anything.
 
7265
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; }
 
7266
}'`; fi
 
7267
else
 
7268
  echo "$as_me: failed program was:" >&5
 
7269
sed 's/^/| /' conftest.$ac_ext >&5
 
7270
 
 
7271
fi
 
7272
rm -f conftest.err conftest.$ac_objext \
 
7273
      conftest$ac_exeext conftest.$ac_ext
 
7274
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7275
 
 
7276
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7277
        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"
 
7278
       else
 
7279
        if test "$host_cpu" = ia64; then
 
7280
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7281
          allow_undefined_flag="-z nodefs"
 
7282
          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"
 
7283
        else
 
7284
         # Determine the default libpath from the value encoded in an empty executable.
 
7285
         cat >conftest.$ac_ext <<_ACEOF
 
7286
/* confdefs.h.  */
 
7287
_ACEOF
 
7288
cat confdefs.h >>conftest.$ac_ext
 
7289
cat >>conftest.$ac_ext <<_ACEOF
 
7290
/* end confdefs.h.  */
 
7291
 
 
7292
int
 
7293
main ()
 
7294
{
 
7295
 
 
7296
  ;
 
7297
  return 0;
 
7298
}
 
7299
_ACEOF
 
7300
rm -f conftest.$ac_objext conftest$ac_exeext
 
7301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7302
  (eval $ac_link) 2>conftest.er1
 
7303
  ac_status=$?
 
7304
  grep -v '^ *+' conftest.er1 >conftest.err
 
7305
  rm -f conftest.er1
 
7306
  cat conftest.err >&5
 
7307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7308
  (exit $ac_status); } &&
 
7309
         { ac_try='test -z "$ac_c_werror_flag"
 
7310
                         || test ! -s conftest.err'
 
7311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7312
  (eval $ac_try) 2>&5
 
7313
  ac_status=$?
 
7314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7315
  (exit $ac_status); }; } &&
 
7316
         { ac_try='test -s conftest$ac_exeext'
 
7317
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7318
  (eval $ac_try) 2>&5
 
7319
  ac_status=$?
 
7320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7321
  (exit $ac_status); }; }; then
 
7322
 
 
7323
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7324
}'`
 
7325
# Check for a 64-bit object if we didn't find anything.
 
7326
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; }
 
7327
}'`; fi
 
7328
else
 
7329
  echo "$as_me: failed program was:" >&5
 
7330
sed 's/^/| /' conftest.$ac_ext >&5
 
7331
 
 
7332
fi
 
7333
rm -f conftest.err conftest.$ac_objext \
 
7334
      conftest$ac_exeext conftest.$ac_ext
 
7335
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7336
 
 
7337
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7338
          # Warning - without using the other run time loading flags,
 
7339
          # -berok will link without error, but may produce a broken library.
 
7340
          no_undefined_flag=' ${wl}-bernotok'
 
7341
          allow_undefined_flag=' ${wl}-berok'
 
7342
          # -bexpall does not export symbols beginning with underscore (_)
 
7343
          always_export_symbols=yes
 
7344
          # Exported symbols can be pulled into shared objects from archives
 
7345
          whole_archive_flag_spec=' '
 
7346
          archive_cmds_need_lc=yes
 
7347
          # This is similar to how AIX traditionally builds its shared libraries.
 
7348
          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'
 
7349
        fi
 
7350
      fi
 
7351
      ;;
 
7352
 
 
7353
    amigaos*)
 
7354
      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)'
 
7355
      hardcode_libdir_flag_spec='-L$libdir'
 
7356
      hardcode_minus_L=yes
 
7357
      # see comment about different semantics on the GNU ld section
 
7358
      ld_shlibs=no
 
7359
      ;;
 
7360
 
 
7361
    bsdi[45]*)
 
7362
      export_dynamic_flag_spec=-rdynamic
 
7363
      ;;
 
7364
 
 
7365
    cygwin* | mingw* | pw32*)
 
7366
      # When not using gcc, we currently assume that we are using
 
7367
      # Microsoft Visual C++.
 
7368
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7369
      # no search path for DLLs.
 
7370
      hardcode_libdir_flag_spec=' '
 
7371
      allow_undefined_flag=unsupported
 
7372
      # Tell ltmain to make .lib files, not .a files.
 
7373
      libext=lib
 
7374
      # Tell ltmain to make .dll files, not .so files.
 
7375
      shrext_cmds=".dll"
 
7376
      # FIXME: Setting linknames here is a bad hack.
 
7377
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7378
      # The linker will automatically build a .lib file if we build a DLL.
 
7379
      old_archive_From_new_cmds='true'
 
7380
      # FIXME: Should let the user specify the lib program.
 
7381
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7382
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7383
      enable_shared_with_static_runtimes=yes
 
7384
      ;;
 
7385
 
 
7386
    darwin* | rhapsody*)
 
7387
      case $host_os in
 
7388
        rhapsody* | darwin1.[012])
 
7389
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7390
         ;;
 
7391
       *) # Darwin 1.3 on
 
7392
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7393
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7394
         else
 
7395
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7396
             10.[012])
 
7397
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7398
               ;;
 
7399
             10.*)
 
7400
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7401
               ;;
 
7402
           esac
 
7403
         fi
 
7404
         ;;
 
7405
      esac
 
7406
      archive_cmds_need_lc=no
 
7407
      hardcode_direct=no
 
7408
      hardcode_automatic=yes
 
7409
      hardcode_shlibpath_var=unsupported
 
7410
      whole_archive_flag_spec=''
 
7411
      link_all_deplibs=yes
 
7412
    if test "$GCC" = yes ; then
 
7413
        output_verbose_link_cmd='echo'
 
7414
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7415
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7416
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7417
      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}'
 
7418
      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}'
 
7419
    else
 
7420
      case $cc_basename in
 
7421
        xlc*)
 
7422
         output_verbose_link_cmd='echo'
 
7423
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7424
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7425
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7426
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7427
          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}'
 
7428
          ;;
 
7429
       *)
 
7430
         ld_shlibs=no
 
7431
          ;;
 
7432
      esac
 
7433
    fi
 
7434
      ;;
 
7435
 
 
7436
    dgux*)
 
7437
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7438
      hardcode_libdir_flag_spec='-L$libdir'
 
7439
      hardcode_shlibpath_var=no
 
7440
      ;;
 
7441
 
 
7442
    freebsd1*)
 
7443
      ld_shlibs=no
 
7444
      ;;
 
7445
 
 
7446
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7447
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7448
    # does not break anything, and helps significantly (at the cost of a little
 
7449
    # extra space).
 
7450
    freebsd2.2*)
 
7451
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7452
      hardcode_libdir_flag_spec='-R$libdir'
 
7453
      hardcode_direct=yes
 
7454
      hardcode_shlibpath_var=no
 
7455
      ;;
 
7456
 
 
7457
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7458
    freebsd2*)
 
7459
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7460
      hardcode_direct=yes
 
7461
      hardcode_minus_L=yes
 
7462
      hardcode_shlibpath_var=no
 
7463
      ;;
 
7464
 
 
7465
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7466
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
7467
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7468
      hardcode_libdir_flag_spec='-R$libdir'
 
7469
      hardcode_direct=yes
 
7470
      hardcode_shlibpath_var=no
 
7471
      ;;
 
7472
 
 
7473
    hpux9*)
 
7474
      if test "$GCC" = yes; then
 
7475
        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'
 
7476
      else
 
7477
        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'
 
7478
      fi
 
7479
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7480
      hardcode_libdir_separator=:
 
7481
      hardcode_direct=yes
 
7482
 
 
7483
      # hardcode_minus_L: Not really in the search PATH,
 
7484
      # but as the default location of the library.
 
7485
      hardcode_minus_L=yes
 
7486
      export_dynamic_flag_spec='${wl}-E'
 
7487
      ;;
 
7488
 
 
7489
    hpux10* | hpux11*)
 
7490
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7491
        case $host_cpu in
 
7492
        hppa*64*|ia64*)
 
7493
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7494
          ;;
 
7495
        *)
 
7496
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7497
          ;;
 
7498
        esac
 
7499
      else
 
7500
        case $host_cpu in
 
7501
        hppa*64*|ia64*)
 
7502
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7503
          ;;
 
7504
        *)
 
7505
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7506
          ;;
 
7507
        esac
 
7508
      fi
 
7509
      if test "$with_gnu_ld" = no; then
 
7510
        case $host_cpu in
 
7511
        hppa*64*)
 
7512
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7513
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7514
          hardcode_libdir_separator=:
 
7515
          hardcode_direct=no
 
7516
          hardcode_shlibpath_var=no
 
7517
          ;;
 
7518
        ia64*)
 
7519
          hardcode_libdir_flag_spec='-L$libdir'
 
7520
          hardcode_direct=no
 
7521
          hardcode_shlibpath_var=no
 
7522
 
 
7523
          # hardcode_minus_L: Not really in the search PATH,
 
7524
          # but as the default location of the library.
 
7525
          hardcode_minus_L=yes
 
7526
          ;;
 
7527
        *)
 
7528
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7529
          hardcode_libdir_separator=:
 
7530
          hardcode_direct=yes
 
7531
          export_dynamic_flag_spec='${wl}-E'
 
7532
 
 
7533
          # hardcode_minus_L: Not really in the search PATH,
 
7534
          # but as the default location of the library.
 
7535
          hardcode_minus_L=yes
 
7536
          ;;
 
7537
        esac
 
7538
      fi
 
7539
      ;;
 
7540
 
 
7541
    irix5* | irix6* | nonstopux*)
 
7542
      if test "$GCC" = yes; then
 
7543
        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'
 
7544
      else
 
7545
        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'
 
7546
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7547
      fi
 
7548
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7549
      hardcode_libdir_separator=:
 
7550
      link_all_deplibs=yes
 
7551
      ;;
 
7552
 
 
7553
    netbsd*)
 
7554
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7555
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7556
      else
 
7557
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7558
      fi
 
7559
      hardcode_libdir_flag_spec='-R$libdir'
 
7560
      hardcode_direct=yes
 
7561
      hardcode_shlibpath_var=no
 
7562
      ;;
 
7563
 
 
7564
    newsos6)
 
7565
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7566
      hardcode_direct=yes
 
7567
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7568
      hardcode_libdir_separator=:
 
7569
      hardcode_shlibpath_var=no
 
7570
      ;;
 
7571
 
 
7572
    openbsd*)
 
7573
      hardcode_direct=yes
 
7574
      hardcode_shlibpath_var=no
 
7575
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7576
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7577
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7578
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7579
        export_dynamic_flag_spec='${wl}-E'
 
7580
      else
 
7581
       case $host_os in
 
7582
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7583
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7584
           hardcode_libdir_flag_spec='-R$libdir'
 
7585
           ;;
 
7586
         *)
 
7587
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7588
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7589
           ;;
 
7590
       esac
 
7591
      fi
 
7592
      ;;
 
7593
 
 
7594
    os2*)
 
7595
      hardcode_libdir_flag_spec='-L$libdir'
 
7596
      hardcode_minus_L=yes
 
7597
      allow_undefined_flag=unsupported
 
7598
      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'
 
7599
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7600
      ;;
 
7601
 
 
7602
    osf3*)
 
7603
      if test "$GCC" = yes; then
 
7604
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7605
        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'
 
7606
      else
 
7607
        allow_undefined_flag=' -expect_unresolved \*'
 
7608
        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'
 
7609
      fi
 
7610
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7611
      hardcode_libdir_separator=:
 
7612
      ;;
 
7613
 
 
7614
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7615
      if test "$GCC" = yes; then
 
7616
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7617
        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'
 
7618
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7619
      else
 
7620
        allow_undefined_flag=' -expect_unresolved \*'
 
7621
        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'
 
7622
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7623
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
7624
 
 
7625
        # Both c and cxx compiler support -rpath directly
 
7626
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7627
      fi
 
7628
      hardcode_libdir_separator=:
 
7629
      ;;
 
7630
 
 
7631
    sco3.2v5*)
 
7632
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7633
      hardcode_shlibpath_var=no
 
7634
      export_dynamic_flag_spec='${wl}-Bexport'
 
7635
      runpath_var=LD_RUN_PATH
 
7636
      hardcode_runpath_var=yes
 
7637
      ;;
 
7638
 
 
7639
    solaris*)
 
7640
      no_undefined_flag=' -z text'
 
7641
      if test "$GCC" = yes; then
 
7642
        wlarc='${wl}'
 
7643
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7644
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7645
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7646
      else
 
7647
        wlarc=''
 
7648
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7649
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7650
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7651
      fi
 
7652
      hardcode_libdir_flag_spec='-R$libdir'
 
7653
      hardcode_shlibpath_var=no
 
7654
      case $host_os in
 
7655
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7656
      *)
 
7657
        # The compiler driver will combine linker options so we
 
7658
        # cannot just pass the convience library names through
 
7659
        # without $wl, iff we do not link with $LD.
 
7660
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7661
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7662
        case $wlarc in
 
7663
        '')
 
7664
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7665
        *)
 
7666
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7667
        esac ;;
 
7668
      esac
 
7669
      link_all_deplibs=yes
 
7670
      ;;
 
7671
 
 
7672
    sunos4*)
 
7673
      if test "x$host_vendor" = xsequent; then
 
7674
        # Use $CC to link under sequent, because it throws in some extra .o
 
7675
        # files that make .init and .fini sections work.
 
7676
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7677
      else
 
7678
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7679
      fi
 
7680
      hardcode_libdir_flag_spec='-L$libdir'
 
7681
      hardcode_direct=yes
 
7682
      hardcode_minus_L=yes
 
7683
      hardcode_shlibpath_var=no
 
7684
      ;;
 
7685
 
 
7686
    sysv4)
 
7687
      case $host_vendor in
 
7688
        sni)
 
7689
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7690
          hardcode_direct=yes # is this really true???
 
7691
        ;;
 
7692
        siemens)
 
7693
          ## LD is ld it makes a PLAMLIB
 
7694
          ## CC just makes a GrossModule.
 
7695
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7696
          reload_cmds='$CC -r -o $output$reload_objs'
 
7697
          hardcode_direct=no
 
7698
        ;;
 
7699
        motorola)
 
7700
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7701
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7702
        ;;
 
7703
      esac
 
7704
      runpath_var='LD_RUN_PATH'
 
7705
      hardcode_shlibpath_var=no
 
7706
      ;;
 
7707
 
 
7708
    sysv4.3*)
 
7709
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7710
      hardcode_shlibpath_var=no
 
7711
      export_dynamic_flag_spec='-Bexport'
 
7712
      ;;
 
7713
 
 
7714
    sysv4*MP*)
 
7715
      if test -d /usr/nec; then
 
7716
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7717
        hardcode_shlibpath_var=no
 
7718
        runpath_var=LD_RUN_PATH
 
7719
        hardcode_runpath_var=yes
 
7720
        ld_shlibs=yes
 
7721
      fi
 
7722
      ;;
 
7723
 
 
7724
    sysv4.2uw2*)
 
7725
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7726
      hardcode_direct=yes
 
7727
      hardcode_minus_L=no
 
7728
      hardcode_shlibpath_var=no
 
7729
      hardcode_runpath_var=yes
 
7730
      runpath_var=LD_RUN_PATH
 
7731
      ;;
 
7732
 
 
7733
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7734
      no_undefined_flag='${wl}-z ${wl}text'
 
7735
      if test "$GCC" = yes; then
 
7736
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7737
      else
 
7738
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7739
      fi
 
7740
      runpath_var='LD_RUN_PATH'
 
7741
      hardcode_shlibpath_var=no
 
7742
      ;;
 
7743
 
 
7744
    sysv5*)
 
7745
      no_undefined_flag=' -z text'
 
7746
      # $CC -shared without GNU ld will not create a library from C++
 
7747
      # object files and a static libstdc++, better avoid it by now
 
7748
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7749
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7750
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7751
      hardcode_libdir_flag_spec=
 
7752
      hardcode_shlibpath_var=no
 
7753
      runpath_var='LD_RUN_PATH'
 
7754
      ;;
 
7755
 
 
7756
    uts4*)
 
7757
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7758
      hardcode_libdir_flag_spec='-L$libdir'
 
7759
      hardcode_shlibpath_var=no
 
7760
      ;;
 
7761
 
 
7762
    *)
 
7763
      ld_shlibs=no
 
7764
      ;;
 
7765
    esac
 
7766
  fi
 
7767
 
 
7768
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7769
echo "${ECHO_T}$ld_shlibs" >&6
 
7770
test "$ld_shlibs" = no && can_build_shared=no
 
7771
 
 
7772
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7773
if test "$GCC" = yes; then
 
7774
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7775
fi
 
7776
 
 
7777
#
 
7778
# Do we need to explicitly link libc?
 
7779
#
 
7780
case "x$archive_cmds_need_lc" in
 
7781
x|xyes)
 
7782
  # Assume -lc should be added
 
7783
  archive_cmds_need_lc=yes
 
7784
 
 
7785
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7786
    case $archive_cmds in
 
7787
    *'~'*)
 
7788
      # FIXME: we may have to deal with multi-command sequences.
 
7789
      ;;
 
7790
    '$CC '*)
 
7791
      # Test whether the compiler implicitly links with -lc since on some
 
7792
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7793
      # to ld, don't add -lc before -lgcc.
 
7794
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7795
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7796
      $rm conftest*
 
7797
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7798
 
 
7799
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7800
  (eval $ac_compile) 2>&5
 
7801
  ac_status=$?
 
7802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7803
  (exit $ac_status); } 2>conftest.err; then
 
7804
        soname=conftest
 
7805
        lib=conftest
 
7806
        libobjs=conftest.$ac_objext
 
7807
        deplibs=
 
7808
        wl=$lt_prog_compiler_wl
 
7809
        compiler_flags=-v
 
7810
        linker_flags=-v
 
7811
        verstring=
 
7812
        output_objdir=.
 
7813
        libname=conftest
 
7814
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7815
        allow_undefined_flag=
 
7816
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7817
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7818
  ac_status=$?
 
7819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7820
  (exit $ac_status); }
 
7821
        then
 
7822
          archive_cmds_need_lc=no
 
7823
        else
 
7824
          archive_cmds_need_lc=yes
 
7825
        fi
 
7826
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7827
      else
 
7828
        cat conftest.err 1>&5
 
7829
      fi
 
7830
      $rm conftest*
 
7831
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7832
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7833
      ;;
 
7834
    esac
 
7835
  fi
 
7836
  ;;
 
7837
esac
 
7838
 
 
7839
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7840
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7841
library_names_spec=
 
7842
libname_spec='lib$name'
 
7843
soname_spec=
 
7844
shrext_cmds=".so"
 
7845
postinstall_cmds=
 
7846
postuninstall_cmds=
 
7847
finish_cmds=
 
7848
finish_eval=
 
7849
shlibpath_var=
 
7850
shlibpath_overrides_runpath=unknown
 
7851
version_type=none
 
7852
dynamic_linker="$host_os ld.so"
 
7853
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7854
if test "$GCC" = yes; then
 
7855
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7856
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7857
    # if the path contains ";" then we assume it to be the separator
 
7858
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7859
    # assumed that no part of a normal pathname contains ";" but that should
 
7860
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7861
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7862
  else
 
7863
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7864
  fi
 
7865
else
 
7866
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7867
fi
 
7868
need_lib_prefix=unknown
 
7869
hardcode_into_libs=no
 
7870
 
 
7871
# when you set need_version to no, make sure it does not cause -set_version
 
7872
# flags to be left without arguments
 
7873
need_version=unknown
 
7874
 
 
7875
case $host_os in
 
7876
aix3*)
 
7877
  version_type=linux
 
7878
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7879
  shlibpath_var=LIBPATH
 
7880
 
 
7881
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7882
  soname_spec='${libname}${release}${shared_ext}$major'
 
7883
  ;;
 
7884
 
 
7885
aix4* | aix5*)
 
7886
  version_type=linux
 
7887
  need_lib_prefix=no
 
7888
  need_version=no
 
7889
  hardcode_into_libs=yes
 
7890
  if test "$host_cpu" = ia64; then
 
7891
    # AIX 5 supports IA64
 
7892
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7893
    shlibpath_var=LD_LIBRARY_PATH
 
7894
  else
 
7895
    # With GCC up to 2.95.x, collect2 would create an import file
 
7896
    # for dependence libraries.  The import file would start with
 
7897
    # the line `#! .'.  This would cause the generated library to
 
7898
    # depend on `.', always an invalid library.  This was fixed in
 
7899
    # development snapshots of GCC prior to 3.0.
 
7900
    case $host_os in
 
7901
      aix4 | aix4.[01] | aix4.[01].*)
 
7902
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7903
           echo ' yes '
 
7904
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7905
        :
 
7906
      else
 
7907
        can_build_shared=no
 
7908
      fi
 
7909
      ;;
 
7910
    esac
 
7911
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7912
    # soname into executable. Probably we can add versioning support to
 
7913
    # collect2, so additional links can be useful in future.
 
7914
    if test "$aix_use_runtimelinking" = yes; then
 
7915
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7916
      # instead of lib<name>.a to let people know that these are not
 
7917
      # typical AIX shared libraries.
 
7918
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7919
    else
 
7920
      # We preserve .a as extension for shared libraries through AIX4.2
 
7921
      # and later when we are not doing run time linking.
 
7922
      library_names_spec='${libname}${release}.a $libname.a'
 
7923
      soname_spec='${libname}${release}${shared_ext}$major'
 
7924
    fi
 
7925
    shlibpath_var=LIBPATH
 
7926
  fi
 
7927
  ;;
 
7928
 
 
7929
amigaos*)
 
7930
  library_names_spec='$libname.ixlibrary $libname.a'
 
7931
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7932
  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'
 
7933
  ;;
 
7934
 
 
7935
beos*)
 
7936
  library_names_spec='${libname}${shared_ext}'
 
7937
  dynamic_linker="$host_os ld.so"
 
7938
  shlibpath_var=LIBRARY_PATH
 
7939
  ;;
 
7940
 
 
7941
bsdi[45]*)
 
7942
  version_type=linux
 
7943
  need_version=no
 
7944
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7945
  soname_spec='${libname}${release}${shared_ext}$major'
 
7946
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7947
  shlibpath_var=LD_LIBRARY_PATH
 
7948
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7949
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7950
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7951
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7952
  # libtool to hard-code these into programs
 
7953
  ;;
 
7954
 
 
7955
cygwin* | mingw* | pw32*)
 
7956
  version_type=windows
 
7957
  shrext_cmds=".dll"
 
7958
  need_version=no
 
7959
  need_lib_prefix=no
 
7960
 
 
7961
  case $GCC,$host_os in
 
7962
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7963
    library_names_spec='$libname.dll.a'
 
7964
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7965
    postinstall_cmds='base_file=`basename \${file}`~
 
7966
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7967
      dldir=$destdir/`dirname \$dlpath`~
 
7968
      test -d \$dldir || mkdir -p \$dldir~
 
7969
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7970
      chmod a+x \$dldir/$dlname'
 
7971
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7972
      dlpath=$dir/\$dldll~
 
7973
       $rm \$dlpath'
 
7974
    shlibpath_overrides_runpath=yes
 
7975
 
 
7976
    case $host_os in
 
7977
    cygwin*)
 
7978
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7979
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7980
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7981
      ;;
 
7982
    mingw*)
 
7983
      # MinGW DLLs use traditional 'lib' prefix
 
7984
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7985
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7986
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7987
        # It is most probably a Windows format PATH printed by
 
7988
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7989
        # path with ; separators, and with drive letters. We can handle the
 
7990
        # drive letters (cygwin fileutils understands them), so leave them,
 
7991
        # especially as we might pass files found there to a mingw objdump,
 
7992
        # which wouldn't understand a cygwinified path. Ahh.
 
7993
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7994
      else
 
7995
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7996
      fi
 
7997
      ;;
 
7998
    pw32*)
 
7999
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8000
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8001
      ;;
 
8002
    esac
 
8003
    ;;
 
8004
 
 
8005
  *)
 
8006
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8007
    ;;
 
8008
  esac
 
8009
  dynamic_linker='Win32 ld.exe'
 
8010
  # FIXME: first we should search . and the directory the executable is in
 
8011
  shlibpath_var=PATH
 
8012
  ;;
 
8013
 
 
8014
darwin* | rhapsody*)
 
8015
  dynamic_linker="$host_os dyld"
 
8016
  version_type=darwin
 
8017
  need_lib_prefix=no
 
8018
  need_version=no
 
8019
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8020
  soname_spec='${libname}${release}${major}$shared_ext'
 
8021
  shlibpath_overrides_runpath=yes
 
8022
  shlibpath_var=DYLD_LIBRARY_PATH
 
8023
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
8024
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8025
  if test "$GCC" = yes; then
 
8026
    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"`
 
8027
  else
 
8028
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8029
  fi
 
8030
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8031
  ;;
 
8032
 
 
8033
dgux*)
 
8034
  version_type=linux
 
8035
  need_lib_prefix=no
 
8036
  need_version=no
 
8037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8038
  soname_spec='${libname}${release}${shared_ext}$major'
 
8039
  shlibpath_var=LD_LIBRARY_PATH
 
8040
  ;;
 
8041
 
 
8042
freebsd1*)
 
8043
  dynamic_linker=no
 
8044
  ;;
 
8045
 
 
8046
kfreebsd*-gnu)
 
8047
  version_type=linux
 
8048
  need_lib_prefix=no
 
8049
  need_version=no
 
8050
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8051
  soname_spec='${libname}${release}${shared_ext}$major'
 
8052
  shlibpath_var=LD_LIBRARY_PATH
 
8053
  shlibpath_overrides_runpath=no
 
8054
  hardcode_into_libs=yes
 
8055
  dynamic_linker='GNU ld.so'
 
8056
  ;;
 
8057
 
 
8058
freebsd* | dragonfly*)
 
8059
  # DragonFly does not have aout.  When/if they implement a new
 
8060
  # versioning mechanism, adjust this.
 
8061
  if test -x /usr/bin/objformat; then
 
8062
    objformat=`/usr/bin/objformat`
 
8063
  else
 
8064
    case $host_os in
 
8065
    freebsd[123]*) objformat=aout ;;
 
8066
    *) objformat=elf ;;
 
8067
    esac
 
8068
  fi
 
8069
  version_type=freebsd-$objformat
 
8070
  case $version_type in
 
8071
    freebsd-elf*)
 
8072
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8073
      need_version=no
 
8074
      need_lib_prefix=no
 
8075
      ;;
 
8076
    freebsd-*)
 
8077
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8078
      need_version=yes
 
8079
      ;;
 
8080
  esac
 
8081
  shlibpath_var=LD_LIBRARY_PATH
 
8082
  case $host_os in
 
8083
  freebsd2*)
 
8084
    shlibpath_overrides_runpath=yes
 
8085
    ;;
 
8086
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8087
    shlibpath_overrides_runpath=yes
 
8088
    hardcode_into_libs=yes
 
8089
    ;;
 
8090
  *) # from 3.2 on
 
8091
    shlibpath_overrides_runpath=no
 
8092
    hardcode_into_libs=yes
 
8093
    ;;
 
8094
  esac
 
8095
  ;;
 
8096
 
 
8097
gnu*)
 
8098
  version_type=linux
 
8099
  need_lib_prefix=no
 
8100
  need_version=no
 
8101
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8102
  soname_spec='${libname}${release}${shared_ext}$major'
 
8103
  shlibpath_var=LD_LIBRARY_PATH
 
8104
  hardcode_into_libs=yes
 
8105
  ;;
 
8106
 
 
8107
hpux9* | hpux10* | hpux11*)
 
8108
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8109
  # link against other versions.
 
8110
  version_type=sunos
 
8111
  need_lib_prefix=no
 
8112
  need_version=no
 
8113
  case $host_cpu in
 
8114
  ia64*)
 
8115
    shrext_cmds='.so'
 
8116
    hardcode_into_libs=yes
 
8117
    dynamic_linker="$host_os dld.so"
 
8118
    shlibpath_var=LD_LIBRARY_PATH
 
8119
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8120
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8121
    soname_spec='${libname}${release}${shared_ext}$major'
 
8122
    if test "X$HPUX_IA64_MODE" = X32; then
 
8123
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8124
    else
 
8125
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8126
    fi
 
8127
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8128
    ;;
 
8129
   hppa*64*)
 
8130
     shrext_cmds='.sl'
 
8131
     hardcode_into_libs=yes
 
8132
     dynamic_linker="$host_os dld.sl"
 
8133
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8134
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8135
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8136
     soname_spec='${libname}${release}${shared_ext}$major'
 
8137
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8138
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8139
     ;;
 
8140
   *)
 
8141
    shrext_cmds='.sl'
 
8142
    dynamic_linker="$host_os dld.sl"
 
8143
    shlibpath_var=SHLIB_PATH
 
8144
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8145
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8146
    soname_spec='${libname}${release}${shared_ext}$major'
 
8147
    ;;
 
8148
  esac
 
8149
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8150
  postinstall_cmds='chmod 555 $lib'
 
8151
  ;;
 
8152
 
 
8153
irix5* | irix6* | nonstopux*)
 
8154
  case $host_os in
 
8155
    nonstopux*) version_type=nonstopux ;;
 
8156
    *)
 
8157
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8158
                version_type=linux
 
8159
        else
 
8160
                version_type=irix
 
8161
        fi ;;
 
8162
  esac
 
8163
  need_lib_prefix=no
 
8164
  need_version=no
 
8165
  soname_spec='${libname}${release}${shared_ext}$major'
 
8166
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8167
  case $host_os in
 
8168
  irix5* | nonstopux*)
 
8169
    libsuff= shlibsuff=
 
8170
    ;;
 
8171
  *)
 
8172
    case $LD in # libtool.m4 will add one of these switches to LD
 
8173
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8174
      libsuff= shlibsuff= libmagic=32-bit;;
 
8175
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8176
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8177
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8178
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8179
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8180
    esac
 
8181
    ;;
 
8182
  esac
 
8183
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8184
  shlibpath_overrides_runpath=no
 
8185
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8186
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8187
  hardcode_into_libs=yes
 
8188
  ;;
 
8189
 
 
8190
# No shared lib support for Linux oldld, aout, or coff.
 
8191
linux*oldld* | linux*aout* | linux*coff*)
 
8192
  dynamic_linker=no
 
8193
  ;;
 
8194
 
 
8195
# This must be Linux ELF.
 
8196
linux*)
 
8197
  version_type=linux
 
8198
  need_lib_prefix=no
 
8199
  need_version=no
 
8200
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8201
  soname_spec='${libname}${release}${shared_ext}$major'
 
8202
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8203
  shlibpath_var=LD_LIBRARY_PATH
 
8204
  shlibpath_overrides_runpath=no
 
8205
  # This implies no fast_install, which is unacceptable.
 
8206
  # Some rework will be needed to allow for fast_install
 
8207
  # before this can be enabled.
 
8208
  hardcode_into_libs=yes
 
8209
 
 
8210
  # Append ld.so.conf contents to the search path
 
8211
  if test -f /etc/ld.so.conf; then
 
8212
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8213
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8214
  fi
 
8215
 
 
8216
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8217
  # powerpc, because MkLinux only supported shared libraries with the
 
8218
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8219
  # most powerpc-linux boxes support dynamic linking these days and
 
8220
  # people can always --disable-shared, the test was removed, and we
 
8221
  # assume the GNU/Linux dynamic linker is in use.
 
8222
  dynamic_linker='GNU/Linux ld.so'
 
8223
  ;;
 
8224
 
 
8225
knetbsd*-gnu)
 
8226
  version_type=linux
 
8227
  need_lib_prefix=no
 
8228
  need_version=no
 
8229
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8230
  soname_spec='${libname}${release}${shared_ext}$major'
 
8231
  shlibpath_var=LD_LIBRARY_PATH
 
8232
  shlibpath_overrides_runpath=no
 
8233
  hardcode_into_libs=yes
 
8234
  dynamic_linker='GNU ld.so'
 
8235
  ;;
 
8236
 
 
8237
netbsd*)
 
8238
  version_type=sunos
 
8239
  need_lib_prefix=no
 
8240
  need_version=no
 
8241
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8242
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8243
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8244
    dynamic_linker='NetBSD (a.out) ld.so'
 
8245
  else
 
8246
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8247
    soname_spec='${libname}${release}${shared_ext}$major'
 
8248
    dynamic_linker='NetBSD ld.elf_so'
 
8249
  fi
 
8250
  shlibpath_var=LD_LIBRARY_PATH
 
8251
  shlibpath_overrides_runpath=yes
 
8252
  hardcode_into_libs=yes
 
8253
  ;;
 
8254
 
 
8255
newsos6)
 
8256
  version_type=linux
 
8257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8258
  shlibpath_var=LD_LIBRARY_PATH
 
8259
  shlibpath_overrides_runpath=yes
 
8260
  ;;
 
8261
 
 
8262
nto-qnx*)
 
8263
  version_type=linux
 
8264
  need_lib_prefix=no
 
8265
  need_version=no
 
8266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8267
  soname_spec='${libname}${release}${shared_ext}$major'
 
8268
  shlibpath_var=LD_LIBRARY_PATH
 
8269
  shlibpath_overrides_runpath=yes
 
8270
  ;;
 
8271
 
 
8272
openbsd*)
 
8273
  version_type=sunos
 
8274
  need_lib_prefix=no
 
8275
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8276
  case $host_os in
 
8277
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8278
    *)                         need_version=no  ;;
 
8279
  esac
 
8280
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8281
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8282
  shlibpath_var=LD_LIBRARY_PATH
 
8283
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8284
    case $host_os in
 
8285
      openbsd2.[89] | openbsd2.[89].*)
 
8286
        shlibpath_overrides_runpath=no
 
8287
        ;;
 
8288
      *)
 
8289
        shlibpath_overrides_runpath=yes
 
8290
        ;;
 
8291
      esac
 
8292
  else
 
8293
    shlibpath_overrides_runpath=yes
 
8294
  fi
 
8295
  ;;
 
8296
 
 
8297
os2*)
 
8298
  libname_spec='$name'
 
8299
  shrext_cmds=".dll"
 
8300
  need_lib_prefix=no
 
8301
  library_names_spec='$libname${shared_ext} $libname.a'
 
8302
  dynamic_linker='OS/2 ld.exe'
 
8303
  shlibpath_var=LIBPATH
 
8304
  ;;
 
8305
 
 
8306
osf3* | osf4* | osf5*)
 
8307
  version_type=osf
 
8308
  need_lib_prefix=no
 
8309
  need_version=no
 
8310
  soname_spec='${libname}${release}${shared_ext}$major'
 
8311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8312
  shlibpath_var=LD_LIBRARY_PATH
 
8313
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8314
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8315
  ;;
 
8316
 
 
8317
sco3.2v5*)
 
8318
  version_type=osf
 
8319
  soname_spec='${libname}${release}${shared_ext}$major'
 
8320
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8321
  shlibpath_var=LD_LIBRARY_PATH
 
8322
  ;;
 
8323
 
 
8324
solaris*)
 
8325
  version_type=linux
 
8326
  need_lib_prefix=no
 
8327
  need_version=no
 
8328
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8329
  soname_spec='${libname}${release}${shared_ext}$major'
 
8330
  shlibpath_var=LD_LIBRARY_PATH
 
8331
  shlibpath_overrides_runpath=yes
 
8332
  hardcode_into_libs=yes
 
8333
  # ldd complains unless libraries are executable
 
8334
  postinstall_cmds='chmod +x $lib'
 
8335
  ;;
 
8336
 
 
8337
sunos4*)
 
8338
  version_type=sunos
 
8339
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8340
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8341
  shlibpath_var=LD_LIBRARY_PATH
 
8342
  shlibpath_overrides_runpath=yes
 
8343
  if test "$with_gnu_ld" = yes; then
 
8344
    need_lib_prefix=no
 
8345
  fi
 
8346
  need_version=yes
 
8347
  ;;
 
8348
 
 
8349
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8350
  version_type=linux
 
8351
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8352
  soname_spec='${libname}${release}${shared_ext}$major'
 
8353
  shlibpath_var=LD_LIBRARY_PATH
 
8354
  case $host_vendor in
 
8355
    sni)
 
8356
      shlibpath_overrides_runpath=no
 
8357
      need_lib_prefix=no
 
8358
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8359
      runpath_var=LD_RUN_PATH
 
8360
      ;;
 
8361
    siemens)
 
8362
      need_lib_prefix=no
 
8363
      ;;
 
8364
    motorola)
 
8365
      need_lib_prefix=no
 
8366
      need_version=no
 
8367
      shlibpath_overrides_runpath=no
 
8368
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8369
      ;;
 
8370
  esac
 
8371
  ;;
 
8372
 
 
8373
sysv4*MP*)
 
8374
  if test -d /usr/nec ;then
 
8375
    version_type=linux
 
8376
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8377
    soname_spec='$libname${shared_ext}.$major'
 
8378
    shlibpath_var=LD_LIBRARY_PATH
 
8379
  fi
 
8380
  ;;
 
8381
 
 
8382
uts4*)
 
8383
  version_type=linux
 
8384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8385
  soname_spec='${libname}${release}${shared_ext}$major'
 
8386
  shlibpath_var=LD_LIBRARY_PATH
 
8387
  ;;
 
8388
 
 
8389
*)
 
8390
  dynamic_linker=no
 
8391
  ;;
 
8392
esac
 
8393
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8394
echo "${ECHO_T}$dynamic_linker" >&6
 
8395
test "$dynamic_linker" = no && can_build_shared=no
 
8396
 
 
8397
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8398
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8399
hardcode_action=
 
8400
if test -n "$hardcode_libdir_flag_spec" || \
 
8401
   test -n "$runpath_var" || \
 
8402
   test "X$hardcode_automatic" = "Xyes" ; then
 
8403
 
 
8404
  # We can hardcode non-existant directories.
 
8405
  if test "$hardcode_direct" != no &&
 
8406
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8407
     # have to relink, otherwise we might link with an installed library
 
8408
     # when we should be linking with a yet-to-be-installed one
 
8409
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8410
     test "$hardcode_minus_L" != no; then
 
8411
    # Linking always hardcodes the temporary library directory.
 
8412
    hardcode_action=relink
 
8413
  else
 
8414
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8415
    hardcode_action=immediate
 
8416
  fi
 
8417
else
 
8418
  # We cannot hardcode anything, or else we can only hardcode existing
 
8419
  # directories.
 
8420
  hardcode_action=unsupported
 
8421
fi
 
8422
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8423
echo "${ECHO_T}$hardcode_action" >&6
 
8424
 
 
8425
if test "$hardcode_action" = relink; then
 
8426
  # Fast installation is not supported
 
8427
  enable_fast_install=no
 
8428
elif test "$shlibpath_overrides_runpath" = yes ||
 
8429
     test "$enable_shared" = no; then
 
8430
  # Fast installation is not necessary
 
8431
  enable_fast_install=needless
 
8432
fi
 
8433
 
 
8434
striplib=
 
8435
old_striplib=
 
8436
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8437
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8438
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8439
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8440
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8441
  echo "$as_me:$LINENO: result: yes" >&5
 
8442
echo "${ECHO_T}yes" >&6
 
8443
else
 
8444
# FIXME - insert some real tests, host_os isn't really good enough
 
8445
  case $host_os in
 
8446
   darwin*)
 
8447
       if test -n "$STRIP" ; then
 
8448
         striplib="$STRIP -x"
 
8449
         echo "$as_me:$LINENO: result: yes" >&5
 
8450
echo "${ECHO_T}yes" >&6
 
8451
       else
 
8452
  echo "$as_me:$LINENO: result: no" >&5
 
8453
echo "${ECHO_T}no" >&6
 
8454
fi
 
8455
       ;;
 
8456
   *)
 
8457
  echo "$as_me:$LINENO: result: no" >&5
 
8458
echo "${ECHO_T}no" >&6
 
8459
    ;;
 
8460
  esac
 
8461
fi
 
8462
 
 
8463
if test "x$enable_dlopen" != xyes; then
 
8464
  enable_dlopen=unknown
 
8465
  enable_dlopen_self=unknown
 
8466
  enable_dlopen_self_static=unknown
 
8467
else
 
8468
  lt_cv_dlopen=no
 
8469
  lt_cv_dlopen_libs=
 
8470
 
 
8471
  case $host_os in
 
8472
  beos*)
 
8473
    lt_cv_dlopen="load_add_on"
 
8474
    lt_cv_dlopen_libs=
 
8475
    lt_cv_dlopen_self=yes
 
8476
    ;;
 
8477
 
 
8478
  mingw* | pw32*)
 
8479
    lt_cv_dlopen="LoadLibrary"
 
8480
    lt_cv_dlopen_libs=
 
8481
   ;;
 
8482
 
 
8483
  cygwin*)
 
8484
    lt_cv_dlopen="dlopen"
 
8485
    lt_cv_dlopen_libs=
 
8486
   ;;
 
8487
 
 
8488
  darwin*)
 
8489
  # if libdl is installed we need to link against it
 
8490
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8491
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8492
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8493
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8494
else
 
8495
  ac_check_lib_save_LIBS=$LIBS
 
8496
LIBS="-ldl  $LIBS"
 
8497
cat >conftest.$ac_ext <<_ACEOF
 
8498
/* confdefs.h.  */
 
8499
_ACEOF
 
8500
cat confdefs.h >>conftest.$ac_ext
 
8501
cat >>conftest.$ac_ext <<_ACEOF
 
8502
/* end confdefs.h.  */
 
8503
 
 
8504
/* Override any gcc2 internal prototype to avoid an error.  */
 
8505
#ifdef __cplusplus
 
8506
extern "C"
 
8507
#endif
 
8508
/* We use char because int might match the return type of a gcc2
 
8509
   builtin and then its argument prototype would still apply.  */
 
8510
char dlopen ();
 
8511
int
 
8512
main ()
 
8513
{
 
8514
dlopen ();
 
8515
  ;
 
8516
  return 0;
 
8517
}
 
8518
_ACEOF
 
8519
rm -f conftest.$ac_objext conftest$ac_exeext
 
8520
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8521
  (eval $ac_link) 2>conftest.er1
 
8522
  ac_status=$?
 
8523
  grep -v '^ *+' conftest.er1 >conftest.err
 
8524
  rm -f conftest.er1
 
8525
  cat conftest.err >&5
 
8526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8527
  (exit $ac_status); } &&
 
8528
         { ac_try='test -z "$ac_c_werror_flag"
 
8529
                         || test ! -s conftest.err'
 
8530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8531
  (eval $ac_try) 2>&5
 
8532
  ac_status=$?
 
8533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8534
  (exit $ac_status); }; } &&
 
8535
         { ac_try='test -s conftest$ac_exeext'
 
8536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8537
  (eval $ac_try) 2>&5
 
8538
  ac_status=$?
 
8539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8540
  (exit $ac_status); }; }; then
 
8541
  ac_cv_lib_dl_dlopen=yes
 
8542
else
 
8543
  echo "$as_me: failed program was:" >&5
 
8544
sed 's/^/| /' conftest.$ac_ext >&5
 
8545
 
 
8546
ac_cv_lib_dl_dlopen=no
 
8547
fi
 
8548
rm -f conftest.err conftest.$ac_objext \
 
8549
      conftest$ac_exeext conftest.$ac_ext
 
8550
LIBS=$ac_check_lib_save_LIBS
 
8551
fi
 
8552
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8553
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8554
if test $ac_cv_lib_dl_dlopen = yes; then
 
8555
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8556
else
 
8557
 
 
8558
    lt_cv_dlopen="dyld"
 
8559
    lt_cv_dlopen_libs=
 
8560
    lt_cv_dlopen_self=yes
 
8561
 
 
8562
fi
 
8563
 
 
8564
   ;;
 
8565
 
 
8566
  *)
 
8567
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8568
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8569
if test "${ac_cv_func_shl_load+set}" = set; then
 
8570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8571
else
 
8572
  cat >conftest.$ac_ext <<_ACEOF
 
8573
/* confdefs.h.  */
 
8574
_ACEOF
 
8575
cat confdefs.h >>conftest.$ac_ext
 
8576
cat >>conftest.$ac_ext <<_ACEOF
 
8577
/* end confdefs.h.  */
 
8578
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8579
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8580
#define shl_load innocuous_shl_load
 
8581
 
 
8582
/* System header to define __stub macros and hopefully few prototypes,
 
8583
    which can conflict with char shl_load (); below.
 
8584
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8585
    <limits.h> exists even on freestanding compilers.  */
 
8586
 
 
8587
#ifdef __STDC__
 
8588
# include <limits.h>
 
8589
#else
 
8590
# include <assert.h>
 
8591
#endif
 
8592
 
 
8593
#undef shl_load
 
8594
 
 
8595
/* Override any gcc2 internal prototype to avoid an error.  */
 
8596
#ifdef __cplusplus
 
8597
extern "C"
 
8598
{
 
8599
#endif
 
8600
/* We use char because int might match the return type of a gcc2
 
8601
   builtin and then its argument prototype would still apply.  */
 
8602
char shl_load ();
 
8603
/* The GNU C library defines this for functions which it implements
 
8604
    to always fail with ENOSYS.  Some functions are actually named
 
8605
    something starting with __ and the normal name is an alias.  */
 
8606
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8607
choke me
 
8608
#else
 
8609
char (*f) () = shl_load;
 
8610
#endif
 
8611
#ifdef __cplusplus
 
8612
}
 
8613
#endif
 
8614
 
 
8615
int
 
8616
main ()
 
8617
{
 
8618
return f != shl_load;
 
8619
  ;
 
8620
  return 0;
 
8621
}
 
8622
_ACEOF
 
8623
rm -f conftest.$ac_objext conftest$ac_exeext
 
8624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8625
  (eval $ac_link) 2>conftest.er1
 
8626
  ac_status=$?
 
8627
  grep -v '^ *+' conftest.er1 >conftest.err
 
8628
  rm -f conftest.er1
 
8629
  cat conftest.err >&5
 
8630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8631
  (exit $ac_status); } &&
 
8632
         { ac_try='test -z "$ac_c_werror_flag"
 
8633
                         || test ! -s conftest.err'
 
8634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8635
  (eval $ac_try) 2>&5
 
8636
  ac_status=$?
 
8637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8638
  (exit $ac_status); }; } &&
 
8639
         { ac_try='test -s conftest$ac_exeext'
 
8640
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8641
  (eval $ac_try) 2>&5
 
8642
  ac_status=$?
 
8643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8644
  (exit $ac_status); }; }; then
 
8645
  ac_cv_func_shl_load=yes
 
8646
else
 
8647
  echo "$as_me: failed program was:" >&5
 
8648
sed 's/^/| /' conftest.$ac_ext >&5
 
8649
 
 
8650
ac_cv_func_shl_load=no
 
8651
fi
 
8652
rm -f conftest.err conftest.$ac_objext \
 
8653
      conftest$ac_exeext conftest.$ac_ext
 
8654
fi
 
8655
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8656
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8657
if test $ac_cv_func_shl_load = yes; then
 
8658
  lt_cv_dlopen="shl_load"
 
8659
else
 
8660
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8661
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8662
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8664
else
 
8665
  ac_check_lib_save_LIBS=$LIBS
 
8666
LIBS="-ldld  $LIBS"
 
8667
cat >conftest.$ac_ext <<_ACEOF
 
8668
/* confdefs.h.  */
 
8669
_ACEOF
 
8670
cat confdefs.h >>conftest.$ac_ext
 
8671
cat >>conftest.$ac_ext <<_ACEOF
 
8672
/* end confdefs.h.  */
 
8673
 
 
8674
/* Override any gcc2 internal prototype to avoid an error.  */
 
8675
#ifdef __cplusplus
 
8676
extern "C"
 
8677
#endif
 
8678
/* We use char because int might match the return type of a gcc2
 
8679
   builtin and then its argument prototype would still apply.  */
 
8680
char shl_load ();
 
8681
int
 
8682
main ()
 
8683
{
 
8684
shl_load ();
 
8685
  ;
 
8686
  return 0;
 
8687
}
 
8688
_ACEOF
 
8689
rm -f conftest.$ac_objext conftest$ac_exeext
 
8690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8691
  (eval $ac_link) 2>conftest.er1
 
8692
  ac_status=$?
 
8693
  grep -v '^ *+' conftest.er1 >conftest.err
 
8694
  rm -f conftest.er1
 
8695
  cat conftest.err >&5
 
8696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8697
  (exit $ac_status); } &&
 
8698
         { ac_try='test -z "$ac_c_werror_flag"
 
8699
                         || test ! -s conftest.err'
 
8700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8701
  (eval $ac_try) 2>&5
 
8702
  ac_status=$?
 
8703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8704
  (exit $ac_status); }; } &&
 
8705
         { ac_try='test -s conftest$ac_exeext'
 
8706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8707
  (eval $ac_try) 2>&5
 
8708
  ac_status=$?
 
8709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8710
  (exit $ac_status); }; }; then
 
8711
  ac_cv_lib_dld_shl_load=yes
 
8712
else
 
8713
  echo "$as_me: failed program was:" >&5
 
8714
sed 's/^/| /' conftest.$ac_ext >&5
 
8715
 
 
8716
ac_cv_lib_dld_shl_load=no
 
8717
fi
 
8718
rm -f conftest.err conftest.$ac_objext \
 
8719
      conftest$ac_exeext conftest.$ac_ext
 
8720
LIBS=$ac_check_lib_save_LIBS
 
8721
fi
 
8722
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8723
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8724
if test $ac_cv_lib_dld_shl_load = yes; then
 
8725
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8726
else
 
8727
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8728
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8729
if test "${ac_cv_func_dlopen+set}" = set; then
 
8730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8731
else
 
8732
  cat >conftest.$ac_ext <<_ACEOF
 
8733
/* confdefs.h.  */
 
8734
_ACEOF
 
8735
cat confdefs.h >>conftest.$ac_ext
 
8736
cat >>conftest.$ac_ext <<_ACEOF
 
8737
/* end confdefs.h.  */
 
8738
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8739
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8740
#define dlopen innocuous_dlopen
 
8741
 
 
8742
/* System header to define __stub macros and hopefully few prototypes,
 
8743
    which can conflict with char dlopen (); below.
 
8744
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8745
    <limits.h> exists even on freestanding compilers.  */
 
8746
 
 
8747
#ifdef __STDC__
 
8748
# include <limits.h>
 
8749
#else
 
8750
# include <assert.h>
 
8751
#endif
 
8752
 
 
8753
#undef dlopen
 
8754
 
 
8755
/* Override any gcc2 internal prototype to avoid an error.  */
 
8756
#ifdef __cplusplus
 
8757
extern "C"
 
8758
{
 
8759
#endif
 
8760
/* We use char because int might match the return type of a gcc2
 
8761
   builtin and then its argument prototype would still apply.  */
 
8762
char dlopen ();
 
8763
/* The GNU C library defines this for functions which it implements
 
8764
    to always fail with ENOSYS.  Some functions are actually named
 
8765
    something starting with __ and the normal name is an alias.  */
 
8766
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8767
choke me
 
8768
#else
 
8769
char (*f) () = dlopen;
 
8770
#endif
 
8771
#ifdef __cplusplus
 
8772
}
 
8773
#endif
 
8774
 
 
8775
int
 
8776
main ()
 
8777
{
 
8778
return f != dlopen;
 
8779
  ;
 
8780
  return 0;
 
8781
}
 
8782
_ACEOF
 
8783
rm -f conftest.$ac_objext conftest$ac_exeext
 
8784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8785
  (eval $ac_link) 2>conftest.er1
 
8786
  ac_status=$?
 
8787
  grep -v '^ *+' conftest.er1 >conftest.err
 
8788
  rm -f conftest.er1
 
8789
  cat conftest.err >&5
 
8790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8791
  (exit $ac_status); } &&
 
8792
         { ac_try='test -z "$ac_c_werror_flag"
 
8793
                         || test ! -s conftest.err'
 
8794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8795
  (eval $ac_try) 2>&5
 
8796
  ac_status=$?
 
8797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8798
  (exit $ac_status); }; } &&
 
8799
         { ac_try='test -s conftest$ac_exeext'
 
8800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8801
  (eval $ac_try) 2>&5
 
8802
  ac_status=$?
 
8803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8804
  (exit $ac_status); }; }; then
 
8805
  ac_cv_func_dlopen=yes
 
8806
else
 
8807
  echo "$as_me: failed program was:" >&5
 
8808
sed 's/^/| /' conftest.$ac_ext >&5
 
8809
 
 
8810
ac_cv_func_dlopen=no
 
8811
fi
 
8812
rm -f conftest.err conftest.$ac_objext \
 
8813
      conftest$ac_exeext conftest.$ac_ext
 
8814
fi
 
8815
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8816
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8817
if test $ac_cv_func_dlopen = yes; then
 
8818
  lt_cv_dlopen="dlopen"
 
8819
else
 
8820
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8821
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8822
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8824
else
 
8825
  ac_check_lib_save_LIBS=$LIBS
 
8826
LIBS="-ldl  $LIBS"
 
8827
cat >conftest.$ac_ext <<_ACEOF
 
8828
/* confdefs.h.  */
 
8829
_ACEOF
 
8830
cat confdefs.h >>conftest.$ac_ext
 
8831
cat >>conftest.$ac_ext <<_ACEOF
 
8832
/* end confdefs.h.  */
 
8833
 
 
8834
/* Override any gcc2 internal prototype to avoid an error.  */
 
8835
#ifdef __cplusplus
 
8836
extern "C"
 
8837
#endif
 
8838
/* We use char because int might match the return type of a gcc2
 
8839
   builtin and then its argument prototype would still apply.  */
 
8840
char dlopen ();
 
8841
int
 
8842
main ()
 
8843
{
 
8844
dlopen ();
 
8845
  ;
 
8846
  return 0;
 
8847
}
 
8848
_ACEOF
 
8849
rm -f conftest.$ac_objext conftest$ac_exeext
 
8850
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8851
  (eval $ac_link) 2>conftest.er1
 
8852
  ac_status=$?
 
8853
  grep -v '^ *+' conftest.er1 >conftest.err
 
8854
  rm -f conftest.er1
 
8855
  cat conftest.err >&5
 
8856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8857
  (exit $ac_status); } &&
 
8858
         { ac_try='test -z "$ac_c_werror_flag"
 
8859
                         || test ! -s conftest.err'
 
8860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8861
  (eval $ac_try) 2>&5
 
8862
  ac_status=$?
 
8863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8864
  (exit $ac_status); }; } &&
 
8865
         { ac_try='test -s conftest$ac_exeext'
 
8866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8867
  (eval $ac_try) 2>&5
 
8868
  ac_status=$?
 
8869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8870
  (exit $ac_status); }; }; then
 
8871
  ac_cv_lib_dl_dlopen=yes
 
8872
else
 
8873
  echo "$as_me: failed program was:" >&5
 
8874
sed 's/^/| /' conftest.$ac_ext >&5
 
8875
 
 
8876
ac_cv_lib_dl_dlopen=no
 
8877
fi
 
8878
rm -f conftest.err conftest.$ac_objext \
 
8879
      conftest$ac_exeext conftest.$ac_ext
 
8880
LIBS=$ac_check_lib_save_LIBS
 
8881
fi
 
8882
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8883
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8884
if test $ac_cv_lib_dl_dlopen = yes; then
 
8885
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8886
else
 
8887
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8888
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8889
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8891
else
 
8892
  ac_check_lib_save_LIBS=$LIBS
 
8893
LIBS="-lsvld  $LIBS"
 
8894
cat >conftest.$ac_ext <<_ACEOF
 
8895
/* confdefs.h.  */
 
8896
_ACEOF
 
8897
cat confdefs.h >>conftest.$ac_ext
 
8898
cat >>conftest.$ac_ext <<_ACEOF
 
8899
/* end confdefs.h.  */
 
8900
 
 
8901
/* Override any gcc2 internal prototype to avoid an error.  */
 
8902
#ifdef __cplusplus
 
8903
extern "C"
 
8904
#endif
 
8905
/* We use char because int might match the return type of a gcc2
 
8906
   builtin and then its argument prototype would still apply.  */
 
8907
char dlopen ();
 
8908
int
 
8909
main ()
 
8910
{
 
8911
dlopen ();
 
8912
  ;
 
8913
  return 0;
 
8914
}
 
8915
_ACEOF
 
8916
rm -f conftest.$ac_objext conftest$ac_exeext
 
8917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8918
  (eval $ac_link) 2>conftest.er1
 
8919
  ac_status=$?
 
8920
  grep -v '^ *+' conftest.er1 >conftest.err
 
8921
  rm -f conftest.er1
 
8922
  cat conftest.err >&5
 
8923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8924
  (exit $ac_status); } &&
 
8925
         { ac_try='test -z "$ac_c_werror_flag"
 
8926
                         || test ! -s conftest.err'
 
8927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8928
  (eval $ac_try) 2>&5
 
8929
  ac_status=$?
 
8930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8931
  (exit $ac_status); }; } &&
 
8932
         { ac_try='test -s conftest$ac_exeext'
 
8933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8934
  (eval $ac_try) 2>&5
 
8935
  ac_status=$?
 
8936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8937
  (exit $ac_status); }; }; then
 
8938
  ac_cv_lib_svld_dlopen=yes
 
8939
else
 
8940
  echo "$as_me: failed program was:" >&5
 
8941
sed 's/^/| /' conftest.$ac_ext >&5
 
8942
 
 
8943
ac_cv_lib_svld_dlopen=no
 
8944
fi
 
8945
rm -f conftest.err conftest.$ac_objext \
 
8946
      conftest$ac_exeext conftest.$ac_ext
 
8947
LIBS=$ac_check_lib_save_LIBS
 
8948
fi
 
8949
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8950
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8951
if test $ac_cv_lib_svld_dlopen = yes; then
 
8952
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8953
else
 
8954
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8955
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8956
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8958
else
 
8959
  ac_check_lib_save_LIBS=$LIBS
 
8960
LIBS="-ldld  $LIBS"
 
8961
cat >conftest.$ac_ext <<_ACEOF
 
8962
/* confdefs.h.  */
 
8963
_ACEOF
 
8964
cat confdefs.h >>conftest.$ac_ext
 
8965
cat >>conftest.$ac_ext <<_ACEOF
 
8966
/* end confdefs.h.  */
 
8967
 
 
8968
/* Override any gcc2 internal prototype to avoid an error.  */
 
8969
#ifdef __cplusplus
 
8970
extern "C"
 
8971
#endif
 
8972
/* We use char because int might match the return type of a gcc2
 
8973
   builtin and then its argument prototype would still apply.  */
 
8974
char dld_link ();
 
8975
int
 
8976
main ()
 
8977
{
 
8978
dld_link ();
 
8979
  ;
 
8980
  return 0;
 
8981
}
 
8982
_ACEOF
 
8983
rm -f conftest.$ac_objext conftest$ac_exeext
 
8984
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8985
  (eval $ac_link) 2>conftest.er1
 
8986
  ac_status=$?
 
8987
  grep -v '^ *+' conftest.er1 >conftest.err
 
8988
  rm -f conftest.er1
 
8989
  cat conftest.err >&5
 
8990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8991
  (exit $ac_status); } &&
 
8992
         { ac_try='test -z "$ac_c_werror_flag"
 
8993
                         || test ! -s conftest.err'
 
8994
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8995
  (eval $ac_try) 2>&5
 
8996
  ac_status=$?
 
8997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8998
  (exit $ac_status); }; } &&
 
8999
         { ac_try='test -s conftest$ac_exeext'
 
9000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9001
  (eval $ac_try) 2>&5
 
9002
  ac_status=$?
 
9003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9004
  (exit $ac_status); }; }; then
 
9005
  ac_cv_lib_dld_dld_link=yes
 
9006
else
 
9007
  echo "$as_me: failed program was:" >&5
 
9008
sed 's/^/| /' conftest.$ac_ext >&5
 
9009
 
 
9010
ac_cv_lib_dld_dld_link=no
 
9011
fi
 
9012
rm -f conftest.err conftest.$ac_objext \
 
9013
      conftest$ac_exeext conftest.$ac_ext
 
9014
LIBS=$ac_check_lib_save_LIBS
 
9015
fi
 
9016
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9017
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9018
if test $ac_cv_lib_dld_dld_link = yes; then
 
9019
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9020
fi
 
9021
 
 
9022
 
 
9023
fi
 
9024
 
 
9025
 
 
9026
fi
 
9027
 
 
9028
 
 
9029
fi
 
9030
 
 
9031
 
 
9032
fi
 
9033
 
 
9034
 
 
9035
fi
 
9036
 
 
9037
    ;;
 
9038
  esac
 
9039
 
 
9040
  if test "x$lt_cv_dlopen" != xno; then
 
9041
    enable_dlopen=yes
 
9042
  else
 
9043
    enable_dlopen=no
 
9044
  fi
 
9045
 
 
9046
  case $lt_cv_dlopen in
 
9047
  dlopen)
 
9048
    save_CPPFLAGS="$CPPFLAGS"
 
9049
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9050
 
 
9051
    save_LDFLAGS="$LDFLAGS"
 
9052
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9053
 
 
9054
    save_LIBS="$LIBS"
 
9055
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9056
 
 
9057
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9058
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9059
if test "${lt_cv_dlopen_self+set}" = set; then
 
9060
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9061
else
 
9062
          if test "$cross_compiling" = yes; then :
 
9063
  lt_cv_dlopen_self=cross
 
9064
else
 
9065
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9066
  lt_status=$lt_dlunknown
 
9067
  cat > conftest.$ac_ext <<EOF
 
9068
#line 9068 "configure"
 
9069
#include "confdefs.h"
 
9070
 
 
9071
#if HAVE_DLFCN_H
 
9072
#include <dlfcn.h>
 
9073
#endif
 
9074
 
 
9075
#include <stdio.h>
 
9076
 
 
9077
#ifdef RTLD_GLOBAL
 
9078
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9079
#else
 
9080
#  ifdef DL_GLOBAL
 
9081
#    define LT_DLGLOBAL         DL_GLOBAL
 
9082
#  else
 
9083
#    define LT_DLGLOBAL         0
 
9084
#  endif
 
9085
#endif
 
9086
 
 
9087
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9088
   find out it does not work in some platform. */
 
9089
#ifndef LT_DLLAZY_OR_NOW
 
9090
#  ifdef RTLD_LAZY
 
9091
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9092
#  else
 
9093
#    ifdef DL_LAZY
 
9094
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9095
#    else
 
9096
#      ifdef RTLD_NOW
 
9097
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9098
#      else
 
9099
#        ifdef DL_NOW
 
9100
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9101
#        else
 
9102
#          define LT_DLLAZY_OR_NOW      0
 
9103
#        endif
 
9104
#      endif
 
9105
#    endif
 
9106
#  endif
 
9107
#endif
 
9108
 
 
9109
#ifdef __cplusplus
 
9110
extern "C" void exit (int);
 
9111
#endif
 
9112
 
 
9113
void fnord() { int i=42;}
 
9114
int main ()
 
9115
{
 
9116
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9117
  int status = $lt_dlunknown;
 
9118
 
 
9119
  if (self)
 
9120
    {
 
9121
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9122
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9123
      /* dlclose (self); */
 
9124
    }
 
9125
 
 
9126
    exit (status);
 
9127
}
 
9128
EOF
 
9129
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9130
  (eval $ac_link) 2>&5
 
9131
  ac_status=$?
 
9132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9133
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9134
    (./conftest; exit; ) >&5 2>/dev/null
 
9135
    lt_status=$?
 
9136
    case x$lt_status in
 
9137
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9138
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9139
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9140
    esac
 
9141
  else :
 
9142
    # compilation failed
 
9143
    lt_cv_dlopen_self=no
 
9144
  fi
 
9145
fi
 
9146
rm -fr conftest*
 
9147
 
 
9148
 
 
9149
fi
 
9150
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9151
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9152
 
 
9153
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9154
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9155
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9156
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9157
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9159
else
 
9160
          if test "$cross_compiling" = yes; then :
 
9161
  lt_cv_dlopen_self_static=cross
 
9162
else
 
9163
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9164
  lt_status=$lt_dlunknown
 
9165
  cat > conftest.$ac_ext <<EOF
 
9166
#line 9166 "configure"
 
9167
#include "confdefs.h"
 
9168
 
 
9169
#if HAVE_DLFCN_H
 
9170
#include <dlfcn.h>
 
9171
#endif
 
9172
 
 
9173
#include <stdio.h>
 
9174
 
 
9175
#ifdef RTLD_GLOBAL
 
9176
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9177
#else
 
9178
#  ifdef DL_GLOBAL
 
9179
#    define LT_DLGLOBAL         DL_GLOBAL
 
9180
#  else
 
9181
#    define LT_DLGLOBAL         0
 
9182
#  endif
 
9183
#endif
 
9184
 
 
9185
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9186
   find out it does not work in some platform. */
 
9187
#ifndef LT_DLLAZY_OR_NOW
 
9188
#  ifdef RTLD_LAZY
 
9189
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9190
#  else
 
9191
#    ifdef DL_LAZY
 
9192
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9193
#    else
 
9194
#      ifdef RTLD_NOW
 
9195
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9196
#      else
 
9197
#        ifdef DL_NOW
 
9198
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9199
#        else
 
9200
#          define LT_DLLAZY_OR_NOW      0
 
9201
#        endif
 
9202
#      endif
 
9203
#    endif
 
9204
#  endif
 
9205
#endif
 
9206
 
 
9207
#ifdef __cplusplus
 
9208
extern "C" void exit (int);
 
9209
#endif
 
9210
 
 
9211
void fnord() { int i=42;}
 
9212
int main ()
 
9213
{
 
9214
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9215
  int status = $lt_dlunknown;
 
9216
 
 
9217
  if (self)
 
9218
    {
 
9219
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9220
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9221
      /* dlclose (self); */
 
9222
    }
 
9223
 
 
9224
    exit (status);
 
9225
}
 
9226
EOF
 
9227
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9228
  (eval $ac_link) 2>&5
 
9229
  ac_status=$?
 
9230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9231
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9232
    (./conftest; exit; ) >&5 2>/dev/null
 
9233
    lt_status=$?
 
9234
    case x$lt_status in
 
9235
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9236
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9237
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9238
    esac
 
9239
  else :
 
9240
    # compilation failed
 
9241
    lt_cv_dlopen_self_static=no
 
9242
  fi
 
9243
fi
 
9244
rm -fr conftest*
 
9245
 
 
9246
 
 
9247
fi
 
9248
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9249
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9250
    fi
 
9251
 
 
9252
    CPPFLAGS="$save_CPPFLAGS"
 
9253
    LDFLAGS="$save_LDFLAGS"
 
9254
    LIBS="$save_LIBS"
 
9255
    ;;
 
9256
  esac
 
9257
 
 
9258
  case $lt_cv_dlopen_self in
 
9259
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9260
  *) enable_dlopen_self=unknown ;;
 
9261
  esac
 
9262
 
 
9263
  case $lt_cv_dlopen_self_static in
 
9264
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9265
  *) enable_dlopen_self_static=unknown ;;
 
9266
  esac
 
9267
fi
 
9268
 
 
9269
 
 
9270
# Report which librarie types wil actually be built
 
9271
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9272
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9273
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9274
echo "${ECHO_T}$can_build_shared" >&6
 
9275
 
 
9276
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9277
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9278
test "$can_build_shared" = "no" && enable_shared=no
 
9279
 
 
9280
# On AIX, shared libraries and static libraries use the same namespace, and
 
9281
# are all built from PIC.
 
9282
case $host_os in
 
9283
aix3*)
 
9284
  test "$enable_shared" = yes && enable_static=no
 
9285
  if test -n "$RANLIB"; then
 
9286
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9287
    postinstall_cmds='$RANLIB $lib'
 
9288
  fi
 
9289
  ;;
 
9290
 
 
9291
aix4* | aix5*)
 
9292
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9293
    test "$enable_shared" = yes && enable_static=no
 
9294
  fi
 
9295
    ;;
 
9296
esac
 
9297
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9298
echo "${ECHO_T}$enable_shared" >&6
 
9299
 
 
9300
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9301
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9302
# Make sure either enable_shared or enable_static is yes.
 
9303
test "$enable_shared" = yes || enable_static=yes
 
9304
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9305
echo "${ECHO_T}$enable_static" >&6
 
9306
 
 
9307
# The else clause should only fire when bootstrapping the
 
9308
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9309
# with your package, and you will get complaints that there are
 
9310
# no rules to generate ltmain.sh.
 
9311
if test -f "$ltmain"; then
 
9312
  # See if we are running on zsh, and set the options which allow our commands through
 
9313
  # without removal of \ escapes.
 
9314
  if test -n "${ZSH_VERSION+set}" ; then
 
9315
    setopt NO_GLOB_SUBST
 
9316
  fi
 
9317
  # Now quote all the things that may contain metacharacters while being
 
9318
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9319
  # variables and quote the copies for generation of the libtool script.
 
9320
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9321
    SED SHELL STRIP \
 
9322
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9323
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9324
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9325
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9326
    lt_cv_sys_global_symbol_to_c_name_address \
 
9327
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9328
    old_postinstall_cmds old_postuninstall_cmds \
 
9329
    compiler \
 
9330
    CC \
 
9331
    LD \
 
9332
    lt_prog_compiler_wl \
 
9333
    lt_prog_compiler_pic \
 
9334
    lt_prog_compiler_static \
 
9335
    lt_prog_compiler_no_builtin_flag \
 
9336
    export_dynamic_flag_spec \
 
9337
    thread_safe_flag_spec \
 
9338
    whole_archive_flag_spec \
 
9339
    enable_shared_with_static_runtimes \
 
9340
    old_archive_cmds \
 
9341
    old_archive_from_new_cmds \
 
9342
    predep_objects \
 
9343
    postdep_objects \
 
9344
    predeps \
 
9345
    postdeps \
 
9346
    compiler_lib_search_path \
 
9347
    archive_cmds \
 
9348
    archive_expsym_cmds \
 
9349
    postinstall_cmds \
 
9350
    postuninstall_cmds \
 
9351
    old_archive_from_expsyms_cmds \
 
9352
    allow_undefined_flag \
 
9353
    no_undefined_flag \
 
9354
    export_symbols_cmds \
 
9355
    hardcode_libdir_flag_spec \
 
9356
    hardcode_libdir_flag_spec_ld \
 
9357
    hardcode_libdir_separator \
 
9358
    hardcode_automatic \
 
9359
    module_cmds \
 
9360
    module_expsym_cmds \
 
9361
    lt_cv_prog_compiler_c_o \
 
9362
    exclude_expsyms \
 
9363
    include_expsyms; do
 
9364
 
 
9365
    case $var in
 
9366
    old_archive_cmds | \
 
9367
    old_archive_from_new_cmds | \
 
9368
    archive_cmds | \
 
9369
    archive_expsym_cmds | \
 
9370
    module_cmds | \
 
9371
    module_expsym_cmds | \
 
9372
    old_archive_from_expsyms_cmds | \
 
9373
    export_symbols_cmds | \
 
9374
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9375
    postinstall_cmds | postuninstall_cmds | \
 
9376
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9377
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9378
      # Double-quote double-evaled strings.
 
9379
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9380
      ;;
 
9381
    *)
 
9382
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9383
      ;;
 
9384
    esac
 
9385
  done
 
9386
 
 
9387
  case $lt_echo in
 
9388
  *'\$0 --fallback-echo"')
 
9389
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9390
    ;;
 
9391
  esac
 
9392
 
 
9393
cfgfile="${ofile}T"
 
9394
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9395
  $rm -f "$cfgfile"
 
9396
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9397
echo "$as_me: creating $ofile" >&6;}
 
9398
 
 
9399
  cat <<__EOF__ >> "$cfgfile"
 
9400
#! $SHELL
 
9401
 
 
9402
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9403
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9404
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9405
#
 
9406
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9407
# Free Software Foundation, Inc.
 
9408
#
 
9409
# This file is part of GNU Libtool:
 
9410
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9411
#
 
9412
# This program is free software; you can redistribute it and/or modify
 
9413
# it under the terms of the GNU General Public License as published by
 
9414
# the Free Software Foundation; either version 2 of the License, or
 
9415
# (at your option) any later version.
 
9416
#
 
9417
# This program is distributed in the hope that it will be useful, but
 
9418
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9419
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9420
# General Public License for more details.
 
9421
#
 
9422
# You should have received a copy of the GNU General Public License
 
9423
# along with this program; if not, write to the Free Software
 
9424
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
9425
#
 
9426
# As a special exception to the GNU General Public License, if you
 
9427
# distribute this file as part of a program that contains a
 
9428
# configuration script generated by Autoconf, you may include it under
 
9429
# the same distribution terms that you use for the rest of that program.
 
9430
 
 
9431
# A sed program that does not truncate output.
 
9432
SED=$lt_SED
 
9433
 
 
9434
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9435
Xsed="$SED -e 1s/^X//"
 
9436
 
 
9437
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9438
# if CDPATH is set.
 
9439
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9440
 
 
9441
# The names of the tagged configurations supported by this script.
 
9442
available_tags=
 
9443
 
 
9444
# ### BEGIN LIBTOOL CONFIG
 
9445
 
 
9446
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9447
 
 
9448
# Shell to use when invoking shell scripts.
 
9449
SHELL=$lt_SHELL
 
9450
 
 
9451
# Whether or not to build shared libraries.
 
9452
build_libtool_libs=$enable_shared
 
9453
 
 
9454
# Whether or not to build static libraries.
 
9455
build_old_libs=$enable_static
 
9456
 
 
9457
# Whether or not to add -lc for building shared libraries.
 
9458
build_libtool_need_lc=$archive_cmds_need_lc
 
9459
 
 
9460
# Whether or not to disallow shared libs when runtime libs are static
 
9461
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9462
 
 
9463
# Whether or not to optimize for fast installation.
 
9464
fast_install=$enable_fast_install
 
9465
 
 
9466
# The host system.
 
9467
host_alias=$host_alias
 
9468
host=$host
 
9469
host_os=$host_os
 
9470
 
 
9471
# The build system.
 
9472
build_alias=$build_alias
 
9473
build=$build
 
9474
build_os=$build_os
 
9475
 
 
9476
# An echo program that does not interpret backslashes.
 
9477
echo=$lt_echo
 
9478
 
 
9479
# The archiver.
 
9480
AR=$lt_AR
 
9481
AR_FLAGS=$lt_AR_FLAGS
 
9482
 
 
9483
# A C compiler.
 
9484
LTCC=$lt_LTCC
 
9485
 
 
9486
# A language-specific compiler.
 
9487
CC=$lt_compiler
 
9488
 
 
9489
# Is the compiler the GNU C compiler?
 
9490
with_gcc=$GCC
 
9491
 
 
9492
# An ERE matcher.
 
9493
EGREP=$lt_EGREP
 
9494
 
 
9495
# The linker used to build libraries.
 
9496
LD=$lt_LD
 
9497
 
 
9498
# Whether we need hard or soft links.
 
9499
LN_S=$lt_LN_S
 
9500
 
 
9501
# A BSD-compatible nm program.
 
9502
NM=$lt_NM
 
9503
 
 
9504
# A symbol stripping program
 
9505
STRIP=$lt_STRIP
 
9506
 
 
9507
# Used to examine libraries when file_magic_cmd begins "file"
 
9508
MAGIC_CMD=$MAGIC_CMD
 
9509
 
 
9510
# Used on cygwin: DLL creation program.
 
9511
DLLTOOL="$DLLTOOL"
 
9512
 
 
9513
# Used on cygwin: object dumper.
 
9514
OBJDUMP="$OBJDUMP"
 
9515
 
 
9516
# Used on cygwin: assembler.
 
9517
AS="$AS"
 
9518
 
 
9519
# The name of the directory that contains temporary libtool files.
 
9520
objdir=$objdir
 
9521
 
 
9522
# How to create reloadable object files.
 
9523
reload_flag=$lt_reload_flag
 
9524
reload_cmds=$lt_reload_cmds
 
9525
 
 
9526
# How to pass a linker flag through the compiler.
 
9527
wl=$lt_lt_prog_compiler_wl
 
9528
 
 
9529
# Object file suffix (normally "o").
 
9530
objext="$ac_objext"
 
9531
 
 
9532
# Old archive suffix (normally "a").
 
9533
libext="$libext"
 
9534
 
 
9535
# Shared library suffix (normally ".so").
 
9536
shrext_cmds='$shrext_cmds'
 
9537
 
 
9538
# Executable file suffix (normally "").
 
9539
exeext="$exeext"
 
9540
 
 
9541
# Additional compiler flags for building library objects.
 
9542
pic_flag=$lt_lt_prog_compiler_pic
 
9543
pic_mode=$pic_mode
 
9544
 
 
9545
# What is the maximum length of a command?
 
9546
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9547
 
 
9548
# Does compiler simultaneously support -c and -o options?
 
9549
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9550
 
 
9551
# Must we lock files when doing compilation?
 
9552
need_locks=$lt_need_locks
 
9553
 
 
9554
# Do we need the lib prefix for modules?
 
9555
need_lib_prefix=$need_lib_prefix
 
9556
 
 
9557
# Do we need a version for libraries?
 
9558
need_version=$need_version
 
9559
 
 
9560
# Whether dlopen is supported.
 
9561
dlopen_support=$enable_dlopen
 
9562
 
 
9563
# Whether dlopen of programs is supported.
 
9564
dlopen_self=$enable_dlopen_self
 
9565
 
 
9566
# Whether dlopen of statically linked programs is supported.
 
9567
dlopen_self_static=$enable_dlopen_self_static
 
9568
 
 
9569
# Compiler flag to prevent dynamic linking.
 
9570
link_static_flag=$lt_lt_prog_compiler_static
 
9571
 
 
9572
# Compiler flag to turn off builtin functions.
 
9573
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9574
 
 
9575
# Compiler flag to allow reflexive dlopens.
 
9576
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9577
 
 
9578
# Compiler flag to generate shared objects directly from archives.
 
9579
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9580
 
 
9581
# Compiler flag to generate thread-safe objects.
 
9582
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9583
 
 
9584
# Library versioning type.
 
9585
version_type=$version_type
 
9586
 
 
9587
# Format of library name prefix.
 
9588
libname_spec=$lt_libname_spec
 
9589
 
 
9590
# List of archive names.  First name is the real one, the rest are links.
 
9591
# The last name is the one that the linker finds with -lNAME.
 
9592
library_names_spec=$lt_library_names_spec
 
9593
 
 
9594
# The coded name of the library, if different from the real name.
 
9595
soname_spec=$lt_soname_spec
 
9596
 
 
9597
# Commands used to build and install an old-style archive.
 
9598
RANLIB=$lt_RANLIB
 
9599
old_archive_cmds=$lt_old_archive_cmds
 
9600
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9601
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9602
 
 
9603
# Create an old-style archive from a shared archive.
 
9604
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9605
 
 
9606
# Create a temporary old-style archive to link instead of a shared archive.
 
9607
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9608
 
 
9609
# Commands used to build and install a shared archive.
 
9610
archive_cmds=$lt_archive_cmds
 
9611
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9612
postinstall_cmds=$lt_postinstall_cmds
 
9613
postuninstall_cmds=$lt_postuninstall_cmds
 
9614
 
 
9615
# Commands used to build a loadable module (assumed same as above if empty)
 
9616
module_cmds=$lt_module_cmds
 
9617
module_expsym_cmds=$lt_module_expsym_cmds
 
9618
 
 
9619
# Commands to strip libraries.
 
9620
old_striplib=$lt_old_striplib
 
9621
striplib=$lt_striplib
 
9622
 
 
9623
# Dependencies to place before the objects being linked to create a
 
9624
# shared library.
 
9625
predep_objects=$lt_predep_objects
 
9626
 
 
9627
# Dependencies to place after the objects being linked to create a
 
9628
# shared library.
 
9629
postdep_objects=$lt_postdep_objects
 
9630
 
 
9631
# Dependencies to place before the objects being linked to create a
 
9632
# shared library.
 
9633
predeps=$lt_predeps
 
9634
 
 
9635
# Dependencies to place after the objects being linked to create a
 
9636
# shared library.
 
9637
postdeps=$lt_postdeps
 
9638
 
 
9639
# The library search path used internally by the compiler when linking
 
9640
# a shared library.
 
9641
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9642
 
 
9643
# Method to check whether dependent libraries are shared objects.
 
9644
deplibs_check_method=$lt_deplibs_check_method
 
9645
 
 
9646
# Command to use when deplibs_check_method == file_magic.
 
9647
file_magic_cmd=$lt_file_magic_cmd
 
9648
 
 
9649
# Flag that allows shared libraries with undefined symbols to be built.
 
9650
allow_undefined_flag=$lt_allow_undefined_flag
 
9651
 
 
9652
# Flag that forces no undefined symbols.
 
9653
no_undefined_flag=$lt_no_undefined_flag
 
9654
 
 
9655
# Commands used to finish a libtool library installation in a directory.
 
9656
finish_cmds=$lt_finish_cmds
 
9657
 
 
9658
# Same as above, but a single script fragment to be evaled but not shown.
 
9659
finish_eval=$lt_finish_eval
 
9660
 
 
9661
# Take the output of nm and produce a listing of raw symbols and C names.
 
9662
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9663
 
 
9664
# Transform the output of nm in a proper C declaration
 
9665
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9666
 
 
9667
# Transform the output of nm in a C name address pair
 
9668
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9669
 
 
9670
# This is the shared library runtime path variable.
 
9671
runpath_var=$runpath_var
 
9672
 
 
9673
# This is the shared library path variable.
 
9674
shlibpath_var=$shlibpath_var
 
9675
 
 
9676
# Is shlibpath searched before the hard-coded library search path?
 
9677
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9678
 
 
9679
# How to hardcode a shared library path into an executable.
 
9680
hardcode_action=$hardcode_action
 
9681
 
 
9682
# Whether we should hardcode library paths into libraries.
 
9683
hardcode_into_libs=$hardcode_into_libs
 
9684
 
 
9685
# Flag to hardcode \$libdir into a binary during linking.
 
9686
# This must work even if \$libdir does not exist.
 
9687
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9688
 
 
9689
# If ld is used when linking, flag to hardcode \$libdir into
 
9690
# a binary during linking. This must work even if \$libdir does
 
9691
# not exist.
 
9692
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9693
 
 
9694
# Whether we need a single -rpath flag with a separated argument.
 
9695
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9696
 
 
9697
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9698
# resulting binary.
 
9699
hardcode_direct=$hardcode_direct
 
9700
 
 
9701
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9702
# resulting binary.
 
9703
hardcode_minus_L=$hardcode_minus_L
 
9704
 
 
9705
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9706
# the resulting binary.
 
9707
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9708
 
 
9709
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9710
# and all subsequent libraries and executables linked against it.
 
9711
hardcode_automatic=$hardcode_automatic
 
9712
 
 
9713
# Variables whose values should be saved in libtool wrapper scripts and
 
9714
# restored at relink time.
 
9715
variables_saved_for_relink="$variables_saved_for_relink"
 
9716
 
 
9717
# Whether libtool must link a program against all its dependency libraries.
 
9718
link_all_deplibs=$link_all_deplibs
 
9719
 
 
9720
# Compile-time system search path for libraries
 
9721
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9722
 
 
9723
# Run-time system search path for libraries
 
9724
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9725
 
 
9726
# Fix the shell variable \$srcfile for the compiler.
 
9727
fix_srcfile_path="$fix_srcfile_path"
 
9728
 
 
9729
# Set to yes if exported symbols are required.
 
9730
always_export_symbols=$always_export_symbols
 
9731
 
 
9732
# The commands to list exported symbols.
 
9733
export_symbols_cmds=$lt_export_symbols_cmds
 
9734
 
 
9735
# The commands to extract the exported symbol list from a shared archive.
 
9736
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9737
 
 
9738
# Symbols that should not be listed in the preloaded symbols.
 
9739
exclude_expsyms=$lt_exclude_expsyms
 
9740
 
 
9741
# Symbols that must always be exported.
 
9742
include_expsyms=$lt_include_expsyms
 
9743
 
 
9744
# ### END LIBTOOL CONFIG
 
9745
 
 
9746
__EOF__
 
9747
 
 
9748
 
 
9749
  case $host_os in
 
9750
  aix3*)
 
9751
    cat <<\EOF >> "$cfgfile"
 
9752
 
 
9753
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9754
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9755
# vanish in a puff of smoke.
 
9756
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9757
  COLLECT_NAMES=
 
9758
  export COLLECT_NAMES
 
9759
fi
 
9760
EOF
 
9761
    ;;
 
9762
  esac
 
9763
 
 
9764
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9765
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9766
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9767
  # is reportedly fixed, but why not run on old versions too?
 
9768
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9769
 
 
9770
  mv -f "$cfgfile" "$ofile" || \
 
9771
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9772
  chmod +x "$ofile"
 
9773
 
 
9774
else
 
9775
  # If there is no Makefile yet, we rely on a make rule to execute
 
9776
  # `config.status --recheck' to rerun these tests and create the
 
9777
  # libtool script then.
 
9778
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9779
  if test -f "$ltmain_in"; then
 
9780
    test -f Makefile && make "$ltmain"
 
9781
  fi
 
9782
fi
 
9783
 
 
9784
 
 
9785
ac_ext=c
 
9786
ac_cpp='$CPP $CPPFLAGS'
 
9787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9790
 
 
9791
CC="$lt_save_CC"
 
9792
 
 
9793
 
 
9794
# Check whether --with-tags or --without-tags was given.
 
9795
if test "${with_tags+set}" = set; then
 
9796
  withval="$with_tags"
 
9797
  tagnames="$withval"
 
9798
fi;
 
9799
 
 
9800
if test -f "$ltmain" && test -n "$tagnames"; then
 
9801
  if test ! -f "${ofile}"; then
 
9802
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9803
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9804
  fi
 
9805
 
 
9806
  if test -z "$LTCC"; then
 
9807
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9808
    if test -z "$LTCC"; then
 
9809
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9810
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9811
    else
 
9812
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9813
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9814
    fi
 
9815
  fi
 
9816
 
 
9817
  # Extract list of available tagged configurations in $ofile.
 
9818
  # Note that this assumes the entire list is on one line.
 
9819
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9820
 
 
9821
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9822
  for tagname in $tagnames; do
 
9823
    IFS="$lt_save_ifs"
 
9824
    # Check whether tagname contains only valid characters
 
9825
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9826
    "") ;;
 
9827
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9828
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9829
   { (exit 1); exit 1; }; }
 
9830
        ;;
 
9831
    esac
 
9832
 
 
9833
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9834
    then
 
9835
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9836
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9837
   { (exit 1); exit 1; }; }
 
9838
    fi
 
9839
 
 
9840
    # Update the list of available tags.
 
9841
    if test -n "$tagname"; then
 
9842
      echo appending configuration tag \"$tagname\" to $ofile
 
9843
 
 
9844
      case $tagname in
 
9845
      CXX)
 
9846
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9847
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9848
            (test "X$CXX" != "Xg++"))) ; then
 
9849
          ac_ext=cc
 
9850
ac_cpp='$CXXCPP $CPPFLAGS'
 
9851
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9852
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9853
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9854
 
 
9855
 
 
9856
 
 
9857
 
 
9858
archive_cmds_need_lc_CXX=no
 
9859
allow_undefined_flag_CXX=
 
9860
always_export_symbols_CXX=no
 
9861
archive_expsym_cmds_CXX=
 
9862
export_dynamic_flag_spec_CXX=
 
9863
hardcode_direct_CXX=no
 
9864
hardcode_libdir_flag_spec_CXX=
 
9865
hardcode_libdir_flag_spec_ld_CXX=
 
9866
hardcode_libdir_separator_CXX=
 
9867
hardcode_minus_L_CXX=no
 
9868
hardcode_automatic_CXX=no
 
9869
module_cmds_CXX=
 
9870
module_expsym_cmds_CXX=
 
9871
link_all_deplibs_CXX=unknown
 
9872
old_archive_cmds_CXX=$old_archive_cmds
 
9873
no_undefined_flag_CXX=
 
9874
whole_archive_flag_spec_CXX=
 
9875
enable_shared_with_static_runtimes_CXX=no
 
9876
 
 
9877
# Dependencies to place before and after the object being linked:
 
9878
predep_objects_CXX=
 
9879
postdep_objects_CXX=
 
9880
predeps_CXX=
 
9881
postdeps_CXX=
 
9882
compiler_lib_search_path_CXX=
 
9883
 
 
9884
# Source file extension for C++ test sources.
 
9885
ac_ext=cpp
 
9886
 
 
9887
# Object file extension for compiled C++ test sources.
 
9888
objext=o
 
9889
objext_CXX=$objext
 
9890
 
 
9891
# Code to be used in simple compile tests
 
9892
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9893
 
 
9894
# Code to be used in simple link tests
 
9895
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9896
 
 
9897
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9898
 
 
9899
# If no C compiler was specified, use CC.
 
9900
LTCC=${LTCC-"$CC"}
 
9901
 
 
9902
# Allow CC to be a program name with arguments.
 
9903
compiler=$CC
 
9904
 
 
9905
 
 
9906
# save warnings/boilerplate of simple test code
 
9907
ac_outfile=conftest.$ac_objext
 
9908
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9909
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9910
_lt_compiler_boilerplate=`cat conftest.err`
 
9911
$rm conftest*
 
9912
 
 
9913
ac_outfile=conftest.$ac_objext
 
9914
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9915
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9916
_lt_linker_boilerplate=`cat conftest.err`
 
9917
$rm conftest*
 
9918
 
 
9919
 
 
9920
# Allow CC to be a program name with arguments.
 
9921
lt_save_CC=$CC
 
9922
lt_save_LD=$LD
 
9923
lt_save_GCC=$GCC
 
9924
GCC=$GXX
 
9925
lt_save_with_gnu_ld=$with_gnu_ld
 
9926
lt_save_path_LD=$lt_cv_path_LD
 
9927
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9928
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9929
else
 
9930
  unset lt_cv_prog_gnu_ld
 
9931
fi
 
9932
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9933
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9934
else
 
9935
  unset lt_cv_path_LD
 
9936
fi
 
9937
test -z "${LDCXX+set}" || LD=$LDCXX
 
9938
CC=${CXX-"c++"}
 
9939
compiler=$CC
 
9940
compiler_CXX=$CC
 
9941
for cc_temp in $compiler""; do
 
9942
  case $cc_temp in
 
9943
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9944
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9945
    \-*) ;;
 
9946
    *) break;;
 
9947
  esac
 
9948
done
 
9949
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9950
 
 
9951
 
 
9952
# We don't want -fno-exception wen compiling C++ code, so set the
 
9953
# no_builtin_flag separately
 
9954
if test "$GXX" = yes; then
 
9955
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9956
else
 
9957
  lt_prog_compiler_no_builtin_flag_CXX=
 
9958
fi
 
9959
 
 
9960
if test "$GXX" = yes; then
 
9961
  # Set up default GNU C++ configuration
 
9962
 
 
9963
 
 
9964
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9965
if test "${with_gnu_ld+set}" = set; then
 
9966
  withval="$with_gnu_ld"
 
9967
  test "$withval" = no || with_gnu_ld=yes
 
9968
else
 
9969
  with_gnu_ld=no
 
9970
fi;
 
9971
ac_prog=ld
 
9972
if test "$GCC" = yes; then
 
9973
  # Check if gcc -print-prog-name=ld gives a path.
 
9974
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9975
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9976
  case $host in
 
9977
  *-*-mingw*)
 
9978
    # gcc leaves a trailing carriage return which upsets mingw
 
9979
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9980
  *)
 
9981
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9982
  esac
 
9983
  case $ac_prog in
 
9984
    # Accept absolute paths.
 
9985
    [\\/]* | ?:[\\/]*)
 
9986
      re_direlt='/[^/][^/]*/\.\./'
 
9987
      # Canonicalize the pathname of ld
 
9988
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9989
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9990
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9991
      done
 
9992
      test -z "$LD" && LD="$ac_prog"
 
9993
      ;;
 
9994
  "")
 
9995
    # If it fails, then pretend we aren't using GCC.
 
9996
    ac_prog=ld
 
9997
    ;;
 
9998
  *)
 
9999
    # If it is relative, then search for the first ld in PATH.
 
10000
    with_gnu_ld=unknown
 
10001
    ;;
 
10002
  esac
 
10003
elif test "$with_gnu_ld" = yes; then
 
10004
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10005
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10006
else
 
10007
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10008
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10009
fi
 
10010
if test "${lt_cv_path_LD+set}" = set; then
 
10011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10012
else
 
10013
  if test -z "$LD"; then
 
10014
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10015
  for ac_dir in $PATH; do
 
10016
    IFS="$lt_save_ifs"
 
10017
    test -z "$ac_dir" && ac_dir=.
 
10018
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10019
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10020
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10021
      # but apparently some variants of GNU ld only accept -v.
 
10022
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10023
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10024
      *GNU* | *'with BFD'*)
 
10025
        test "$with_gnu_ld" != no && break
 
10026
        ;;
 
10027
      *)
 
10028
        test "$with_gnu_ld" != yes && break
 
10029
        ;;
 
10030
      esac
 
10031
    fi
 
10032
  done
 
10033
  IFS="$lt_save_ifs"
 
10034
else
 
10035
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10036
fi
 
10037
fi
 
10038
 
 
10039
LD="$lt_cv_path_LD"
 
10040
if test -n "$LD"; then
 
10041
  echo "$as_me:$LINENO: result: $LD" >&5
 
10042
echo "${ECHO_T}$LD" >&6
 
10043
else
 
10044
  echo "$as_me:$LINENO: result: no" >&5
 
10045
echo "${ECHO_T}no" >&6
 
10046
fi
 
10047
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10048
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10049
   { (exit 1); exit 1; }; }
 
10050
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10051
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10052
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10053
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10054
else
 
10055
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10056
case `$LD -v 2>&1 </dev/null` in
 
10057
*GNU* | *'with BFD'*)
 
10058
  lt_cv_prog_gnu_ld=yes
 
10059
  ;;
 
10060
*)
 
10061
  lt_cv_prog_gnu_ld=no
 
10062
  ;;
 
10063
esac
 
10064
fi
 
10065
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10066
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10067
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10068
 
 
10069
 
 
10070
 
 
10071
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10072
  # archiving commands below assume that GNU ld is being used.
 
10073
  if test "$with_gnu_ld" = yes; then
 
10074
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10075
    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'
 
10076
 
 
10077
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10078
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10079
 
 
10080
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10081
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10082
    #     investigate it a little bit more. (MM)
 
10083
    wlarc='${wl}'
 
10084
 
 
10085
    # ancient GNU ld didn't support --whole-archive et. al.
 
10086
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10087
        grep 'no-whole-archive' > /dev/null; then
 
10088
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10089
    else
 
10090
      whole_archive_flag_spec_CXX=
 
10091
    fi
 
10092
  else
 
10093
    with_gnu_ld=no
 
10094
    wlarc=
 
10095
 
 
10096
    # A generic and very simple default shared library creation
 
10097
    # command for GNU C++ for the case where it uses the native
 
10098
    # linker, instead of GNU ld.  If possible, this setting should
 
10099
    # overridden to take advantage of the native linker features on
 
10100
    # the platform it is being used on.
 
10101
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10102
  fi
 
10103
 
 
10104
  # Commands to make compiler produce verbose output that lists
 
10105
  # what "hidden" libraries, object files and flags are used when
 
10106
  # linking a shared library.
 
10107
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10108
 
 
10109
else
 
10110
  GXX=no
 
10111
  with_gnu_ld=no
 
10112
  wlarc=
 
10113
fi
 
10114
 
 
10115
# PORTME: fill in a description of your system's C++ link characteristics
 
10116
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10117
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10118
ld_shlibs_CXX=yes
 
10119
case $host_os in
 
10120
  aix3*)
 
10121
    # FIXME: insert proper C++ library support
 
10122
    ld_shlibs_CXX=no
 
10123
    ;;
 
10124
  aix4* | aix5*)
 
10125
    if test "$host_cpu" = ia64; then
 
10126
      # On IA64, the linker does run time linking by default, so we don't
 
10127
      # have to do anything special.
 
10128
      aix_use_runtimelinking=no
 
10129
      exp_sym_flag='-Bexport'
 
10130
      no_entry_flag=""
 
10131
    else
 
10132
      aix_use_runtimelinking=no
 
10133
 
 
10134
      # Test if we are trying to use run time linking or normal
 
10135
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10136
      # need to do runtime linking.
 
10137
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10138
        for ld_flag in $LDFLAGS; do
 
10139
          case $ld_flag in
 
10140
          *-brtl*)
 
10141
            aix_use_runtimelinking=yes
 
10142
            break
 
10143
            ;;
 
10144
          esac
 
10145
        done
 
10146
      esac
 
10147
 
 
10148
      exp_sym_flag='-bexport'
 
10149
      no_entry_flag='-bnoentry'
 
10150
    fi
 
10151
 
 
10152
    # When large executables or shared objects are built, AIX ld can
 
10153
    # have problems creating the table of contents.  If linking a library
 
10154
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10155
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10156
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10157
 
 
10158
    archive_cmds_CXX=''
 
10159
    hardcode_direct_CXX=yes
 
10160
    hardcode_libdir_separator_CXX=':'
 
10161
    link_all_deplibs_CXX=yes
 
10162
 
 
10163
    if test "$GXX" = yes; then
 
10164
      case $host_os in aix4.[012]|aix4.[012].*)
 
10165
      # We only want to do this on AIX 4.2 and lower, the check
 
10166
      # below for broken collect2 doesn't work under 4.3+
 
10167
        collect2name=`${CC} -print-prog-name=collect2`
 
10168
        if test -f "$collect2name" && \
 
10169
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10170
        then
 
10171
          # We have reworked collect2
 
10172
          hardcode_direct_CXX=yes
 
10173
        else
 
10174
          # We have old collect2
 
10175
          hardcode_direct_CXX=unsupported
 
10176
          # It fails to find uninstalled libraries when the uninstalled
 
10177
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10178
          # to unsupported forces relinking
 
10179
          hardcode_minus_L_CXX=yes
 
10180
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10181
          hardcode_libdir_separator_CXX=
 
10182
        fi
 
10183
      esac
 
10184
      shared_flag='-shared'
 
10185
      if test "$aix_use_runtimelinking" = yes; then
 
10186
        shared_flag="$shared_flag "'${wl}-G'
 
10187
      fi
 
10188
    else
 
10189
      # not using gcc
 
10190
      if test "$host_cpu" = ia64; then
 
10191
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10192
        # chokes on -Wl,-G. The following line is correct:
 
10193
        shared_flag='-G'
 
10194
      else
 
10195
        if test "$aix_use_runtimelinking" = yes; then
 
10196
          shared_flag='${wl}-G'
 
10197
        else
 
10198
          shared_flag='${wl}-bM:SRE'
 
10199
        fi
 
10200
      fi
 
10201
    fi
 
10202
 
 
10203
    # It seems that -bexpall does not export symbols beginning with
 
10204
    # underscore (_), so it is better to generate a list of symbols to export.
 
10205
    always_export_symbols_CXX=yes
 
10206
    if test "$aix_use_runtimelinking" = yes; then
 
10207
      # Warning - without using the other runtime loading flags (-brtl),
 
10208
      # -berok will link without error, but may produce a broken library.
 
10209
      allow_undefined_flag_CXX='-berok'
 
10210
      # Determine the default libpath from the value encoded in an empty executable.
 
10211
      cat >conftest.$ac_ext <<_ACEOF
 
10212
/* confdefs.h.  */
 
10213
_ACEOF
 
10214
cat confdefs.h >>conftest.$ac_ext
 
10215
cat >>conftest.$ac_ext <<_ACEOF
 
10216
/* end confdefs.h.  */
 
10217
 
 
10218
int
 
10219
main ()
 
10220
{
 
10221
 
 
10222
  ;
 
10223
  return 0;
 
10224
}
 
10225
_ACEOF
 
10226
rm -f conftest.$ac_objext conftest$ac_exeext
 
10227
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10228
  (eval $ac_link) 2>conftest.er1
 
10229
  ac_status=$?
 
10230
  grep -v '^ *+' conftest.er1 >conftest.err
 
10231
  rm -f conftest.er1
 
10232
  cat conftest.err >&5
 
10233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10234
  (exit $ac_status); } &&
 
10235
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10236
                         || test ! -s conftest.err'
 
10237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10238
  (eval $ac_try) 2>&5
 
10239
  ac_status=$?
 
10240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10241
  (exit $ac_status); }; } &&
 
10242
         { ac_try='test -s conftest$ac_exeext'
 
10243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10244
  (eval $ac_try) 2>&5
 
10245
  ac_status=$?
 
10246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10247
  (exit $ac_status); }; }; then
 
10248
 
 
10249
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10250
}'`
 
10251
# Check for a 64-bit object if we didn't find anything.
 
10252
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; }
 
10253
}'`; fi
 
10254
else
 
10255
  echo "$as_me: failed program was:" >&5
 
10256
sed 's/^/| /' conftest.$ac_ext >&5
 
10257
 
 
10258
fi
 
10259
rm -f conftest.err conftest.$ac_objext \
 
10260
      conftest$ac_exeext conftest.$ac_ext
 
10261
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10262
 
 
10263
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10264
 
 
10265
      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"
 
10266
     else
 
10267
      if test "$host_cpu" = ia64; then
 
10268
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10269
        allow_undefined_flag_CXX="-z nodefs"
 
10270
        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"
 
10271
      else
 
10272
        # Determine the default libpath from the value encoded in an empty executable.
 
10273
        cat >conftest.$ac_ext <<_ACEOF
 
10274
/* confdefs.h.  */
 
10275
_ACEOF
 
10276
cat confdefs.h >>conftest.$ac_ext
 
10277
cat >>conftest.$ac_ext <<_ACEOF
 
10278
/* end confdefs.h.  */
 
10279
 
 
10280
int
 
10281
main ()
 
10282
{
 
10283
 
 
10284
  ;
 
10285
  return 0;
 
10286
}
 
10287
_ACEOF
 
10288
rm -f conftest.$ac_objext conftest$ac_exeext
 
10289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10290
  (eval $ac_link) 2>conftest.er1
 
10291
  ac_status=$?
 
10292
  grep -v '^ *+' conftest.er1 >conftest.err
 
10293
  rm -f conftest.er1
 
10294
  cat conftest.err >&5
 
10295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10296
  (exit $ac_status); } &&
 
10297
         { ac_try='test -z "$ac_cxx_werror_flag"
 
10298
                         || test ! -s conftest.err'
 
10299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10300
  (eval $ac_try) 2>&5
 
10301
  ac_status=$?
 
10302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10303
  (exit $ac_status); }; } &&
 
10304
         { ac_try='test -s conftest$ac_exeext'
 
10305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10306
  (eval $ac_try) 2>&5
 
10307
  ac_status=$?
 
10308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10309
  (exit $ac_status); }; }; then
 
10310
 
 
10311
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10312
}'`
 
10313
# Check for a 64-bit object if we didn't find anything.
 
10314
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; }
 
10315
}'`; fi
 
10316
else
 
10317
  echo "$as_me: failed program was:" >&5
 
10318
sed 's/^/| /' conftest.$ac_ext >&5
 
10319
 
 
10320
fi
 
10321
rm -f conftest.err conftest.$ac_objext \
 
10322
      conftest$ac_exeext conftest.$ac_ext
 
10323
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10324
 
 
10325
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10326
        # Warning - without using the other run time loading flags,
 
10327
        # -berok will link without error, but may produce a broken library.
 
10328
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10329
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10330
        # -bexpall does not export symbols beginning with underscore (_)
 
10331
        always_export_symbols_CXX=yes
 
10332
        # Exported symbols can be pulled into shared objects from archives
 
10333
        whole_archive_flag_spec_CXX=' '
 
10334
        archive_cmds_need_lc_CXX=yes
 
10335
        # This is similar to how AIX traditionally builds its shared libraries.
 
10336
        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'
 
10337
      fi
 
10338
    fi
 
10339
    ;;
 
10340
  chorus*)
 
10341
    case $cc_basename in
 
10342
      *)
 
10343
        # FIXME: insert proper C++ library support
 
10344
        ld_shlibs_CXX=no
 
10345
        ;;
 
10346
    esac
 
10347
    ;;
 
10348
 
 
10349
 
 
10350
  cygwin* | mingw* | pw32*)
 
10351
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10352
    # as there is no search path for DLLs.
 
10353
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10354
    allow_undefined_flag_CXX=unsupported
 
10355
    always_export_symbols_CXX=no
 
10356
    enable_shared_with_static_runtimes_CXX=yes
 
10357
 
 
10358
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10359
      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'
 
10360
      # If the export-symbols file already is a .def file (1st line
 
10361
      # is EXPORTS), use it as is; otherwise, prepend...
 
10362
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10363
        cp $export_symbols $output_objdir/$soname.def;
 
10364
      else
 
10365
        echo EXPORTS > $output_objdir/$soname.def;
 
10366
        cat $export_symbols >> $output_objdir/$soname.def;
 
10367
      fi~
 
10368
      $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'
 
10369
    else
 
10370
      ld_shlibs_CXX=no
 
10371
    fi
 
10372
  ;;
 
10373
      darwin* | rhapsody*)
 
10374
        case $host_os in
 
10375
        rhapsody* | darwin1.[012])
 
10376
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10377
         ;;
 
10378
       *) # Darwin 1.3 on
 
10379
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10380
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10381
         else
 
10382
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10383
             10.[012])
 
10384
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10385
               ;;
 
10386
             10.*)
 
10387
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10388
               ;;
 
10389
           esac
 
10390
         fi
 
10391
         ;;
 
10392
        esac
 
10393
      archive_cmds_need_lc_CXX=no
 
10394
      hardcode_direct_CXX=no
 
10395
      hardcode_automatic_CXX=yes
 
10396
      hardcode_shlibpath_var_CXX=unsupported
 
10397
      whole_archive_flag_spec_CXX=''
 
10398
      link_all_deplibs_CXX=yes
 
10399
 
 
10400
    if test "$GXX" = yes ; then
 
10401
      lt_int_apple_cc_single_mod=no
 
10402
      output_verbose_link_cmd='echo'
 
10403
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10404
       lt_int_apple_cc_single_mod=yes
 
10405
      fi
 
10406
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10407
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10408
      else
 
10409
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10410
        fi
 
10411
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10412
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10413
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10414
            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}'
 
10415
          else
 
10416
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10417
          fi
 
10418
            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}'
 
10419
      else
 
10420
      case $cc_basename in
 
10421
        xlc*)
 
10422
         output_verbose_link_cmd='echo'
 
10423
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
10424
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10425
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10426
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10427
          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}'
 
10428
          ;;
 
10429
       *)
 
10430
         ld_shlibs_CXX=no
 
10431
          ;;
 
10432
      esac
 
10433
      fi
 
10434
        ;;
 
10435
 
 
10436
  dgux*)
 
10437
    case $cc_basename in
 
10438
      ec++*)
 
10439
        # FIXME: insert proper C++ library support
 
10440
        ld_shlibs_CXX=no
 
10441
        ;;
 
10442
      ghcx*)
 
10443
        # Green Hills C++ Compiler
 
10444
        # FIXME: insert proper C++ library support
 
10445
        ld_shlibs_CXX=no
 
10446
        ;;
 
10447
      *)
 
10448
        # FIXME: insert proper C++ library support
 
10449
        ld_shlibs_CXX=no
 
10450
        ;;
 
10451
    esac
 
10452
    ;;
 
10453
  freebsd[12]*)
 
10454
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10455
    ld_shlibs_CXX=no
 
10456
    ;;
 
10457
  freebsd-elf*)
 
10458
    archive_cmds_need_lc_CXX=no
 
10459
    ;;
 
10460
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
10461
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10462
    # conventions
 
10463
    ld_shlibs_CXX=yes
 
10464
    ;;
 
10465
  gnu*)
 
10466
    ;;
 
10467
  hpux9*)
 
10468
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10469
    hardcode_libdir_separator_CXX=:
 
10470
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10471
    hardcode_direct_CXX=yes
 
10472
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10473
                                # but as the default
 
10474
                                # location of the library.
 
10475
 
 
10476
    case $cc_basename in
 
10477
    CC*)
 
10478
      # FIXME: insert proper C++ library support
 
10479
      ld_shlibs_CXX=no
 
10480
      ;;
 
10481
    aCC*)
 
10482
      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'
 
10483
      # Commands to make compiler produce verbose output that lists
 
10484
      # what "hidden" libraries, object files and flags are used when
 
10485
      # linking a shared library.
 
10486
      #
 
10487
      # There doesn't appear to be a way to prevent this compiler from
 
10488
      # explicitly linking system object files so we need to strip them
 
10489
      # from the output so that they don't get included in the library
 
10490
      # dependencies.
 
10491
      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'
 
10492
      ;;
 
10493
    *)
 
10494
      if test "$GXX" = yes; then
 
10495
        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'
 
10496
      else
 
10497
        # FIXME: insert proper C++ library support
 
10498
        ld_shlibs_CXX=no
 
10499
      fi
 
10500
      ;;
 
10501
    esac
 
10502
    ;;
 
10503
  hpux10*|hpux11*)
 
10504
    if test $with_gnu_ld = no; then
 
10505
      case $host_cpu in
 
10506
      hppa*64*)
 
10507
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10508
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10509
        hardcode_libdir_separator_CXX=:
 
10510
        ;;
 
10511
      ia64*)
 
10512
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10513
        ;;
 
10514
      *)
 
10515
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10516
        hardcode_libdir_separator_CXX=:
 
10517
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10518
        ;;
 
10519
      esac
 
10520
    fi
 
10521
    case $host_cpu in
 
10522
    hppa*64*)
 
10523
      hardcode_direct_CXX=no
 
10524
      hardcode_shlibpath_var_CXX=no
 
10525
      ;;
 
10526
    ia64*)
 
10527
      hardcode_direct_CXX=no
 
10528
      hardcode_shlibpath_var_CXX=no
 
10529
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10530
                                              # but as the default
 
10531
                                              # location of the library.
 
10532
      ;;
 
10533
    *)
 
10534
      hardcode_direct_CXX=yes
 
10535
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10536
                                              # but as the default
 
10537
                                              # location of the library.
 
10538
      ;;
 
10539
    esac
 
10540
 
 
10541
    case $cc_basename in
 
10542
      CC*)
 
10543
        # FIXME: insert proper C++ library support
 
10544
        ld_shlibs_CXX=no
 
10545
        ;;
 
10546
      aCC*)
 
10547
        case $host_cpu in
 
10548
        hppa*64*|ia64*)
 
10549
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10550
          ;;
 
10551
        *)
 
10552
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10553
          ;;
 
10554
        esac
 
10555
        # Commands to make compiler produce verbose output that lists
 
10556
        # what "hidden" libraries, object files and flags are used when
 
10557
        # linking a shared library.
 
10558
        #
 
10559
        # There doesn't appear to be a way to prevent this compiler from
 
10560
        # explicitly linking system object files so we need to strip them
 
10561
        # from the output so that they don't get included in the library
 
10562
        # dependencies.
 
10563
        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'
 
10564
        ;;
 
10565
      *)
 
10566
        if test "$GXX" = yes; then
 
10567
          if test $with_gnu_ld = no; then
 
10568
            case $host_cpu in
 
10569
            ia64*|hppa*64*)
 
10570
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10571
              ;;
 
10572
            *)
 
10573
              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'
 
10574
              ;;
 
10575
            esac
 
10576
          fi
 
10577
        else
 
10578
          # FIXME: insert proper C++ library support
 
10579
          ld_shlibs_CXX=no
 
10580
        fi
 
10581
        ;;
 
10582
    esac
 
10583
    ;;
 
10584
  irix5* | irix6*)
 
10585
    case $cc_basename in
 
10586
      CC*)
 
10587
        # SGI C++
 
10588
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10589
 
 
10590
        # Archives containing C++ object files must be created using
 
10591
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10592
        # necessary to make sure instantiated templates are included
 
10593
        # in the archive.
 
10594
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10595
        ;;
 
10596
      *)
 
10597
        if test "$GXX" = yes; then
 
10598
          if test "$with_gnu_ld" = no; then
 
10599
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10600
          else
 
10601
            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'
 
10602
          fi
 
10603
        fi
 
10604
        link_all_deplibs_CXX=yes
 
10605
        ;;
 
10606
    esac
 
10607
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10608
    hardcode_libdir_separator_CXX=:
 
10609
    ;;
 
10610
  linux*)
 
10611
    case $cc_basename in
 
10612
      KCC*)
 
10613
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10614
 
 
10615
        # KCC will only create a shared library if the output file
 
10616
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10617
        # to its proper name (with version) after linking.
 
10618
        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'
 
10619
        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'
 
10620
        # Commands to make compiler produce verbose output that lists
 
10621
        # what "hidden" libraries, object files and flags are used when
 
10622
        # linking a shared library.
 
10623
        #
 
10624
        # There doesn't appear to be a way to prevent this compiler from
 
10625
        # explicitly linking system object files so we need to strip them
 
10626
        # from the output so that they don't get included in the library
 
10627
        # dependencies.
 
10628
        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'
 
10629
 
 
10630
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10631
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10632
 
 
10633
        # Archives containing C++ object files must be created using
 
10634
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10635
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10636
        ;;
 
10637
      icpc*)
 
10638
        # Intel C++
 
10639
        with_gnu_ld=yes
 
10640
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10641
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10642
        # earlier do not add the objects themselves.
 
10643
        case `$CC -V 2>&1` in
 
10644
        *"Version 7."*)
 
10645
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10646
          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'
 
10647
          ;;
 
10648
        *)  # Version 8.0 or newer
 
10649
          tmp_idyn=
 
10650
          case $host_cpu in
 
10651
            ia64*) tmp_idyn=' -i_dynamic';;
 
10652
          esac
 
10653
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10654
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10655
          ;;
 
10656
        esac
 
10657
        archive_cmds_need_lc_CXX=no
 
10658
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10659
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10660
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10661
        ;;
 
10662
      pgCC*)
 
10663
        # Portland Group C++ compiler
 
10664
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10665
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
10666
 
 
10667
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10668
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10669
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
10670
        ;;
 
10671
      cxx*)
 
10672
        # Compaq C++
 
10673
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10674
        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'
 
10675
 
 
10676
        runpath_var=LD_RUN_PATH
 
10677
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10678
        hardcode_libdir_separator_CXX=:
 
10679
 
 
10680
        # Commands to make compiler produce verbose output that lists
 
10681
        # what "hidden" libraries, object files and flags are used when
 
10682
        # linking a shared library.
 
10683
        #
 
10684
        # There doesn't appear to be a way to prevent this compiler from
 
10685
        # explicitly linking system object files so we need to strip them
 
10686
        # from the output so that they don't get included in the library
 
10687
        # dependencies.
 
10688
        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'
 
10689
        ;;
 
10690
    esac
 
10691
    ;;
 
10692
  lynxos*)
 
10693
    # FIXME: insert proper C++ library support
 
10694
    ld_shlibs_CXX=no
 
10695
    ;;
 
10696
  m88k*)
 
10697
    # FIXME: insert proper C++ library support
 
10698
    ld_shlibs_CXX=no
 
10699
    ;;
 
10700
  mvs*)
 
10701
    case $cc_basename in
 
10702
      cxx*)
 
10703
        # FIXME: insert proper C++ library support
 
10704
        ld_shlibs_CXX=no
 
10705
        ;;
 
10706
      *)
 
10707
        # FIXME: insert proper C++ library support
 
10708
        ld_shlibs_CXX=no
 
10709
        ;;
 
10710
    esac
 
10711
    ;;
 
10712
  netbsd*)
 
10713
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10714
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10715
      wlarc=
 
10716
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10717
      hardcode_direct_CXX=yes
 
10718
      hardcode_shlibpath_var_CXX=no
 
10719
    fi
 
10720
    # Workaround some broken pre-1.5 toolchains
 
10721
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10722
    ;;
 
10723
  openbsd2*)
 
10724
    # C++ shared libraries are fairly broken
 
10725
    ld_shlibs_CXX=no
 
10726
    ;;
 
10727
  openbsd*)
 
10728
    hardcode_direct_CXX=yes
 
10729
    hardcode_shlibpath_var_CXX=no
 
10730
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10731
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10732
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10733
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10734
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10735
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10736
    fi
 
10737
    output_verbose_link_cmd='echo'
 
10738
    ;;
 
10739
  osf3*)
 
10740
    case $cc_basename in
 
10741
      KCC*)
 
10742
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10743
 
 
10744
        # KCC will only create a shared library if the output file
 
10745
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10746
        # to its proper name (with version) after linking.
 
10747
        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'
 
10748
 
 
10749
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10750
        hardcode_libdir_separator_CXX=:
 
10751
 
 
10752
        # Archives containing C++ object files must be created using
 
10753
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10754
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10755
 
 
10756
        ;;
 
10757
      RCC*)
 
10758
        # Rational C++ 2.4.1
 
10759
        # FIXME: insert proper C++ library support
 
10760
        ld_shlibs_CXX=no
 
10761
        ;;
 
10762
      cxx*)
 
10763
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10764
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10765
 
 
10766
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10767
        hardcode_libdir_separator_CXX=:
 
10768
 
 
10769
        # Commands to make compiler produce verbose output that lists
 
10770
        # what "hidden" libraries, object files and flags are used when
 
10771
        # linking a shared library.
 
10772
        #
 
10773
        # There doesn't appear to be a way to prevent this compiler from
 
10774
        # explicitly linking system object files so we need to strip them
 
10775
        # from the output so that they don't get included in the library
 
10776
        # dependencies.
 
10777
        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'
 
10778
        ;;
 
10779
      *)
 
10780
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10781
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10782
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10783
 
 
10784
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10785
          hardcode_libdir_separator_CXX=:
 
10786
 
 
10787
          # Commands to make compiler produce verbose output that lists
 
10788
          # what "hidden" libraries, object files and flags are used when
 
10789
          # linking a shared library.
 
10790
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10791
 
 
10792
        else
 
10793
          # FIXME: insert proper C++ library support
 
10794
          ld_shlibs_CXX=no
 
10795
        fi
 
10796
        ;;
 
10797
    esac
 
10798
    ;;
 
10799
  osf4* | osf5*)
 
10800
    case $cc_basename in
 
10801
      KCC*)
 
10802
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10803
 
 
10804
        # KCC will only create a shared library if the output file
 
10805
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10806
        # to its proper name (with version) after linking.
 
10807
        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'
 
10808
 
 
10809
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10810
        hardcode_libdir_separator_CXX=:
 
10811
 
 
10812
        # Archives containing C++ object files must be created using
 
10813
        # the KAI C++ compiler.
 
10814
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10815
        ;;
 
10816
      RCC*)
 
10817
        # Rational C++ 2.4.1
 
10818
        # FIXME: insert proper C++ library support
 
10819
        ld_shlibs_CXX=no
 
10820
        ;;
 
10821
      cxx*)
 
10822
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10823
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10824
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10825
          echo "-hidden">> $lib.exp~
 
10826
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
10827
          $rm $lib.exp'
 
10828
 
 
10829
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10830
        hardcode_libdir_separator_CXX=:
 
10831
 
 
10832
        # Commands to make compiler produce verbose output that lists
 
10833
        # what "hidden" libraries, object files and flags are used when
 
10834
        # linking a shared library.
 
10835
        #
 
10836
        # There doesn't appear to be a way to prevent this compiler from
 
10837
        # explicitly linking system object files so we need to strip them
 
10838
        # from the output so that they don't get included in the library
 
10839
        # dependencies.
 
10840
        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'
 
10841
        ;;
 
10842
      *)
 
10843
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10844
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10845
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10846
 
 
10847
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10848
          hardcode_libdir_separator_CXX=:
 
10849
 
 
10850
          # Commands to make compiler produce verbose output that lists
 
10851
          # what "hidden" libraries, object files and flags are used when
 
10852
          # linking a shared library.
 
10853
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10854
 
 
10855
        else
 
10856
          # FIXME: insert proper C++ library support
 
10857
          ld_shlibs_CXX=no
 
10858
        fi
 
10859
        ;;
 
10860
    esac
 
10861
    ;;
 
10862
  psos*)
 
10863
    # FIXME: insert proper C++ library support
 
10864
    ld_shlibs_CXX=no
 
10865
    ;;
 
10866
  sco*)
 
10867
    archive_cmds_need_lc_CXX=no
 
10868
    case $cc_basename in
 
10869
      CC*)
 
10870
        # FIXME: insert proper C++ library support
 
10871
        ld_shlibs_CXX=no
 
10872
        ;;
 
10873
      *)
 
10874
        # FIXME: insert proper C++ library support
 
10875
        ld_shlibs_CXX=no
 
10876
        ;;
 
10877
    esac
 
10878
    ;;
 
10879
  sunos4*)
 
10880
    case $cc_basename in
 
10881
      CC*)
 
10882
        # Sun C++ 4.x
 
10883
        # FIXME: insert proper C++ library support
 
10884
        ld_shlibs_CXX=no
 
10885
        ;;
 
10886
      lcc*)
 
10887
        # Lucid
 
10888
        # FIXME: insert proper C++ library support
 
10889
        ld_shlibs_CXX=no
 
10890
        ;;
 
10891
      *)
 
10892
        # FIXME: insert proper C++ library support
 
10893
        ld_shlibs_CXX=no
 
10894
        ;;
 
10895
    esac
 
10896
    ;;
 
10897
  solaris*)
 
10898
    case $cc_basename in
 
10899
      CC*)
 
10900
        # Sun C++ 4.2, 5.x and Centerline C++
 
10901
        archive_cmds_need_lc_CXX=yes
 
10902
        no_undefined_flag_CXX=' -zdefs'
 
10903
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10904
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10905
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10906
 
 
10907
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10908
        hardcode_shlibpath_var_CXX=no
 
10909
        case $host_os in
 
10910
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10911
          *)
 
10912
            # The C++ compiler is used as linker so we must use $wl
 
10913
            # flag to pass the commands to the underlying system
 
10914
            # linker. We must also pass each convience library through
 
10915
            # to the system linker between allextract/defaultextract.
 
10916
            # The C++ compiler will combine linker options so we
 
10917
            # cannot just pass the convience library names through
 
10918
            # without $wl.
 
10919
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10920
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
10921
            ;;
 
10922
        esac
 
10923
        link_all_deplibs_CXX=yes
 
10924
 
 
10925
        output_verbose_link_cmd='echo'
 
10926
 
 
10927
        # Archives containing C++ object files must be created using
 
10928
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10929
        # necessary to make sure instantiated templates are included
 
10930
        # in the archive.
 
10931
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10932
        ;;
 
10933
      gcx*)
 
10934
        # Green Hills C++ Compiler
 
10935
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10936
 
 
10937
        # The C++ compiler must be used to create the archive.
 
10938
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10939
        ;;
 
10940
      *)
 
10941
        # GNU C++ compiler with Solaris linker
 
10942
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10943
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10944
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10945
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10946
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10947
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10948
 
 
10949
            # Commands to make compiler produce verbose output that lists
 
10950
            # what "hidden" libraries, object files and flags are used when
 
10951
            # linking a shared library.
 
10952
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10953
          else
 
10954
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10955
            # platform.
 
10956
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10957
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10958
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10959
 
 
10960
            # Commands to make compiler produce verbose output that lists
 
10961
            # what "hidden" libraries, object files and flags are used when
 
10962
            # linking a shared library.
 
10963
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10964
          fi
 
10965
 
 
10966
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10967
        fi
 
10968
        ;;
 
10969
    esac
 
10970
    ;;
 
10971
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10972
    archive_cmds_need_lc_CXX=no
 
10973
    ;;
 
10974
  tandem*)
 
10975
    case $cc_basename in
 
10976
      NCC*)
 
10977
        # NonStop-UX NCC 3.20
 
10978
        # FIXME: insert proper C++ library support
 
10979
        ld_shlibs_CXX=no
 
10980
        ;;
 
10981
      *)
 
10982
        # FIXME: insert proper C++ library support
 
10983
        ld_shlibs_CXX=no
 
10984
        ;;
 
10985
    esac
 
10986
    ;;
 
10987
  vxworks*)
 
10988
    # FIXME: insert proper C++ library support
 
10989
    ld_shlibs_CXX=no
 
10990
    ;;
 
10991
  *)
 
10992
    # FIXME: insert proper C++ library support
 
10993
    ld_shlibs_CXX=no
 
10994
    ;;
 
10995
esac
 
10996
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10997
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10998
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10999
 
 
11000
GCC_CXX="$GXX"
 
11001
LD_CXX="$LD"
 
11002
 
 
11003
 
 
11004
cat > conftest.$ac_ext <<EOF
 
11005
class Foo
 
11006
{
 
11007
public:
 
11008
  Foo (void) { a = 0; }
 
11009
private:
 
11010
  int a;
 
11011
};
 
11012
EOF
 
11013
 
 
11014
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11015
  (eval $ac_compile) 2>&5
 
11016
  ac_status=$?
 
11017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11018
  (exit $ac_status); }; then
 
11019
  # Parse the compiler output and extract the necessary
 
11020
  # objects, libraries and library flags.
 
11021
 
 
11022
  # Sentinel used to keep track of whether or not we are before
 
11023
  # the conftest object file.
 
11024
  pre_test_object_deps_done=no
 
11025
 
 
11026
  # The `*' in the case matches for architectures that use `case' in
 
11027
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11028
  # eval without this substitution.
 
11029
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11030
 
 
11031
  for p in `eval $output_verbose_link_cmd`; do
 
11032
    case $p in
 
11033
 
 
11034
    -L* | -R* | -l*)
 
11035
       # Some compilers place space between "-{L,R}" and the path.
 
11036
       # Remove the space.
 
11037
       if test $p = "-L" \
 
11038
          || test $p = "-R"; then
 
11039
         prev=$p
 
11040
         continue
 
11041
       else
 
11042
         prev=
 
11043
       fi
 
11044
 
 
11045
       if test "$pre_test_object_deps_done" = no; then
 
11046
         case $p in
 
11047
         -L* | -R*)
 
11048
           # Internal compiler library paths should come after those
 
11049
           # provided the user.  The postdeps already come after the
 
11050
           # user supplied libs so there is no need to process them.
 
11051
           if test -z "$compiler_lib_search_path_CXX"; then
 
11052
             compiler_lib_search_path_CXX="${prev}${p}"
 
11053
           else
 
11054
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11055
           fi
 
11056
           ;;
 
11057
         # The "-l" case would never come before the object being
 
11058
         # linked, so don't bother handling this case.
 
11059
         esac
 
11060
       else
 
11061
         if test -z "$postdeps_CXX"; then
 
11062
           postdeps_CXX="${prev}${p}"
 
11063
         else
 
11064
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11065
         fi
 
11066
       fi
 
11067
       ;;
 
11068
 
 
11069
    *.$objext)
 
11070
       # This assumes that the test object file only shows up
 
11071
       # once in the compiler output.
 
11072
       if test "$p" = "conftest.$objext"; then
 
11073
         pre_test_object_deps_done=yes
 
11074
         continue
 
11075
       fi
 
11076
 
 
11077
       if test "$pre_test_object_deps_done" = no; then
 
11078
         if test -z "$predep_objects_CXX"; then
 
11079
           predep_objects_CXX="$p"
 
11080
         else
 
11081
           predep_objects_CXX="$predep_objects_CXX $p"
 
11082
         fi
 
11083
       else
 
11084
         if test -z "$postdep_objects_CXX"; then
 
11085
           postdep_objects_CXX="$p"
 
11086
         else
 
11087
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11088
         fi
 
11089
       fi
 
11090
       ;;
 
11091
 
 
11092
    *) ;; # Ignore the rest.
 
11093
 
 
11094
    esac
 
11095
  done
 
11096
 
 
11097
  # Clean up.
 
11098
  rm -f a.out a.exe
 
11099
else
 
11100
  echo "libtool.m4: error: problem compiling CXX test program"
 
11101
fi
 
11102
 
 
11103
$rm -f confest.$objext
 
11104
 
 
11105
# PORTME: override above test on systems where it is broken
 
11106
case $host_os in
 
11107
solaris*)
 
11108
  case $cc_basename in
 
11109
  CC*)
 
11110
    # Adding this requires a known-good setup of shared libraries for
 
11111
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11112
    # archive will be linked into the output, leading to subtle bugs.
 
11113
    postdeps_CXX='-lCstd -lCrun'
 
11114
    ;;
 
11115
  esac
 
11116
esac
 
11117
 
 
11118
 
 
11119
case " $postdeps_CXX " in
 
11120
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11121
esac
 
11122
 
 
11123
lt_prog_compiler_wl_CXX=
 
11124
lt_prog_compiler_pic_CXX=
 
11125
lt_prog_compiler_static_CXX=
 
11126
 
 
11127
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11128
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11129
 
 
11130
  # C++ specific cases for pic, static, wl, etc.
 
11131
  if test "$GXX" = yes; then
 
11132
    lt_prog_compiler_wl_CXX='-Wl,'
 
11133
    lt_prog_compiler_static_CXX='-static'
 
11134
 
 
11135
    case $host_os in
 
11136
    aix*)
 
11137
      # All AIX code is PIC.
 
11138
      if test "$host_cpu" = ia64; then
 
11139
        # AIX 5 now supports IA64 processor
 
11140
        lt_prog_compiler_static_CXX='-Bstatic'
 
11141
      fi
 
11142
      ;;
 
11143
    amigaos*)
 
11144
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11145
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11146
      # like `-m68040'.
 
11147
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11148
      ;;
 
11149
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11150
      # PIC is the default for these OSes.
 
11151
      ;;
 
11152
    mingw* | os2* | pw32*)
 
11153
      # This hack is so that the source file can tell whether it is being
 
11154
      # built for inclusion in a dll (and should export symbols for example).
 
11155
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11156
      ;;
 
11157
    darwin* | rhapsody*)
 
11158
      # PIC is the default on this platform
 
11159
      # Common symbols not allowed in MH_DYLIB files
 
11160
      lt_prog_compiler_pic_CXX='-fno-common'
 
11161
      ;;
 
11162
    *djgpp*)
 
11163
      # DJGPP does not support shared libraries at all
 
11164
      lt_prog_compiler_pic_CXX=
 
11165
      ;;
 
11166
    sysv4*MP*)
 
11167
      if test -d /usr/nec; then
 
11168
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11169
      fi
 
11170
      ;;
 
11171
    hpux*)
 
11172
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11173
      # not for PA HP-UX.
 
11174
      case $host_cpu in
 
11175
      hppa*64*|ia64*)
 
11176
        ;;
 
11177
      *)
 
11178
        lt_prog_compiler_pic_CXX='-fPIC'
 
11179
        ;;
 
11180
      esac
 
11181
      ;;
 
11182
    *)
 
11183
      lt_prog_compiler_pic_CXX='-fPIC'
 
11184
      ;;
 
11185
    esac
 
11186
  else
 
11187
    case $host_os in
 
11188
      aix4* | aix5*)
 
11189
        # All AIX code is PIC.
 
11190
        if test "$host_cpu" = ia64; then
 
11191
          # AIX 5 now supports IA64 processor
 
11192
          lt_prog_compiler_static_CXX='-Bstatic'
 
11193
        else
 
11194
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11195
        fi
 
11196
        ;;
 
11197
      chorus*)
 
11198
        case $cc_basename in
 
11199
        cxch68*)
 
11200
          # Green Hills C++ Compiler
 
11201
          # _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"
 
11202
          ;;
 
11203
        esac
 
11204
        ;;
 
11205
       darwin*)
 
11206
         # PIC is the default on this platform
 
11207
         # Common symbols not allowed in MH_DYLIB files
 
11208
         case $cc_basename in
 
11209
           xlc*)
 
11210
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11211
           lt_prog_compiler_wl_CXX='-Wl,'
 
11212
           ;;
 
11213
         esac
 
11214
       ;;
 
11215
      dgux*)
 
11216
        case $cc_basename in
 
11217
          ec++*)
 
11218
            lt_prog_compiler_pic_CXX='-KPIC'
 
11219
            ;;
 
11220
          ghcx*)
 
11221
            # Green Hills C++ Compiler
 
11222
            lt_prog_compiler_pic_CXX='-pic'
 
11223
            ;;
 
11224
          *)
 
11225
            ;;
 
11226
        esac
 
11227
        ;;
 
11228
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
11229
        # FreeBSD uses GNU C++
 
11230
        ;;
 
11231
      hpux9* | hpux10* | hpux11*)
 
11232
        case $cc_basename in
 
11233
          CC*)
 
11234
            lt_prog_compiler_wl_CXX='-Wl,'
 
11235
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11236
            if test "$host_cpu" != ia64; then
 
11237
              lt_prog_compiler_pic_CXX='+Z'
 
11238
            fi
 
11239
            ;;
 
11240
          aCC*)
 
11241
            lt_prog_compiler_wl_CXX='-Wl,'
 
11242
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11243
            case $host_cpu in
 
11244
            hppa*64*|ia64*)
 
11245
              # +Z the default
 
11246
              ;;
 
11247
            *)
 
11248
              lt_prog_compiler_pic_CXX='+Z'
 
11249
              ;;
 
11250
            esac
 
11251
            ;;
 
11252
          *)
 
11253
            ;;
 
11254
        esac
 
11255
        ;;
 
11256
      irix5* | irix6* | nonstopux*)
 
11257
        case $cc_basename in
 
11258
          CC*)
 
11259
            lt_prog_compiler_wl_CXX='-Wl,'
 
11260
            lt_prog_compiler_static_CXX='-non_shared'
 
11261
            # CC pic flag -KPIC is the default.
 
11262
            ;;
 
11263
          *)
 
11264
            ;;
 
11265
        esac
 
11266
        ;;
 
11267
      linux*)
 
11268
        case $cc_basename in
 
11269
          KCC*)
 
11270
            # KAI C++ Compiler
 
11271
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11272
            lt_prog_compiler_pic_CXX='-fPIC'
 
11273
            ;;
 
11274
          icpc* | ecpc*)
 
11275
            # Intel C++
 
11276
            lt_prog_compiler_wl_CXX='-Wl,'
 
11277
            lt_prog_compiler_pic_CXX='-KPIC'
 
11278
            lt_prog_compiler_static_CXX='-static'
 
11279
            ;;
 
11280
          pgCC*)
 
11281
            # Portland Group C++ compiler.
 
11282
            lt_prog_compiler_wl_CXX='-Wl,'
 
11283
            lt_prog_compiler_pic_CXX='-fpic'
 
11284
            lt_prog_compiler_static_CXX='-Bstatic'
 
11285
            ;;
 
11286
          cxx*)
 
11287
            # Compaq C++
 
11288
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11289
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11290
            lt_prog_compiler_pic_CXX=
 
11291
            lt_prog_compiler_static_CXX='-non_shared'
 
11292
            ;;
 
11293
          *)
 
11294
            ;;
 
11295
        esac
 
11296
        ;;
 
11297
      lynxos*)
 
11298
        ;;
 
11299
      m88k*)
 
11300
        ;;
 
11301
      mvs*)
 
11302
        case $cc_basename in
 
11303
          cxx*)
 
11304
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11305
            ;;
 
11306
          *)
 
11307
            ;;
 
11308
        esac
 
11309
        ;;
 
11310
      netbsd*)
 
11311
        ;;
 
11312
      osf3* | osf4* | osf5*)
 
11313
        case $cc_basename in
 
11314
          KCC*)
 
11315
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11316
            ;;
 
11317
          RCC*)
 
11318
            # Rational C++ 2.4.1
 
11319
            lt_prog_compiler_pic_CXX='-pic'
 
11320
            ;;
 
11321
          cxx*)
 
11322
            # Digital/Compaq C++
 
11323
            lt_prog_compiler_wl_CXX='-Wl,'
 
11324
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11325
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11326
            lt_prog_compiler_pic_CXX=
 
11327
            lt_prog_compiler_static_CXX='-non_shared'
 
11328
            ;;
 
11329
          *)
 
11330
            ;;
 
11331
        esac
 
11332
        ;;
 
11333
      psos*)
 
11334
        ;;
 
11335
      sco*)
 
11336
        case $cc_basename in
 
11337
          CC*)
 
11338
            lt_prog_compiler_pic_CXX='-fPIC'
 
11339
            ;;
 
11340
          *)
 
11341
            ;;
 
11342
        esac
 
11343
        ;;
 
11344
      solaris*)
 
11345
        case $cc_basename in
 
11346
          CC*)
 
11347
            # Sun C++ 4.2, 5.x and Centerline C++
 
11348
            lt_prog_compiler_pic_CXX='-KPIC'
 
11349
            lt_prog_compiler_static_CXX='-Bstatic'
 
11350
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11351
            ;;
 
11352
          gcx*)
 
11353
            # Green Hills C++ Compiler
 
11354
            lt_prog_compiler_pic_CXX='-PIC'
 
11355
            ;;
 
11356
          *)
 
11357
            ;;
 
11358
        esac
 
11359
        ;;
 
11360
      sunos4*)
 
11361
        case $cc_basename in
 
11362
          CC*)
 
11363
            # Sun C++ 4.x
 
11364
            lt_prog_compiler_pic_CXX='-pic'
 
11365
            lt_prog_compiler_static_CXX='-Bstatic'
 
11366
            ;;
 
11367
          lcc*)
 
11368
            # Lucid
 
11369
            lt_prog_compiler_pic_CXX='-pic'
 
11370
            ;;
 
11371
          *)
 
11372
            ;;
 
11373
        esac
 
11374
        ;;
 
11375
      tandem*)
 
11376
        case $cc_basename in
 
11377
          NCC*)
 
11378
            # NonStop-UX NCC 3.20
 
11379
            lt_prog_compiler_pic_CXX='-KPIC'
 
11380
            ;;
 
11381
          *)
 
11382
            ;;
 
11383
        esac
 
11384
        ;;
 
11385
      unixware*)
 
11386
        ;;
 
11387
      vxworks*)
 
11388
        ;;
 
11389
      *)
 
11390
        lt_prog_compiler_can_build_shared_CXX=no
 
11391
        ;;
 
11392
    esac
 
11393
  fi
 
11394
 
 
11395
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11396
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11397
 
 
11398
#
 
11399
# Check to make sure the PIC flag actually works.
 
11400
#
 
11401
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11402
 
 
11403
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11404
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11405
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11407
else
 
11408
  lt_prog_compiler_pic_works_CXX=no
 
11409
  ac_outfile=conftest.$ac_objext
 
11410
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11411
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11412
   # Insert the option either (1) after the last *FLAGS variable, or
 
11413
   # (2) before a word containing "conftest.", or (3) at the end.
 
11414
   # Note that $ac_compile itself does not contain backslashes and begins
 
11415
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11416
   # The option is referenced via a variable to avoid confusing sed.
 
11417
   lt_compile=`echo "$ac_compile" | $SED \
 
11418
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11419
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11420
   -e 's:$: $lt_compiler_flag:'`
 
11421
   (eval echo "\"\$as_me:11421: $lt_compile\"" >&5)
 
11422
   (eval "$lt_compile" 2>conftest.err)
 
11423
   ac_status=$?
 
11424
   cat conftest.err >&5
 
11425
   echo "$as_me:11425: \$? = $ac_status" >&5
 
11426
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11427
     # The compiler can only warn and ignore the option if not recognized
 
11428
     # So say no if there are warnings other than the usual output.
 
11429
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
11430
     $SED '/^$/d' conftest.err >conftest.er2
 
11431
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
11432
       lt_prog_compiler_pic_works_CXX=yes
 
11433
     fi
 
11434
   fi
 
11435
   $rm conftest*
 
11436
 
 
11437
fi
 
11438
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11439
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11440
 
 
11441
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11442
    case $lt_prog_compiler_pic_CXX in
 
11443
     "" | " "*) ;;
 
11444
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11445
     esac
 
11446
else
 
11447
    lt_prog_compiler_pic_CXX=
 
11448
     lt_prog_compiler_can_build_shared_CXX=no
 
11449
fi
 
11450
 
 
11451
fi
 
11452
case $host_os in
 
11453
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11454
  *djgpp*)
 
11455
    lt_prog_compiler_pic_CXX=
 
11456
    ;;
 
11457
  *)
 
11458
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11459
    ;;
 
11460
esac
 
11461
 
 
11462
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11463
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11464
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11466
else
 
11467
  lt_cv_prog_compiler_c_o_CXX=no
 
11468
   $rm -r conftest 2>/dev/null
 
11469
   mkdir conftest
 
11470
   cd conftest
 
11471
   mkdir out
 
11472
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11473
 
 
11474
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11475
   # Insert the option either (1) after the last *FLAGS variable, or
 
11476
   # (2) before a word containing "conftest.", or (3) at the end.
 
11477
   # Note that $ac_compile itself does not contain backslashes and begins
 
11478
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11479
   lt_compile=`echo "$ac_compile" | $SED \
 
11480
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11481
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11482
   -e 's:$: $lt_compiler_flag:'`
 
11483
   (eval echo "\"\$as_me:11483: $lt_compile\"" >&5)
 
11484
   (eval "$lt_compile" 2>out/conftest.err)
 
11485
   ac_status=$?
 
11486
   cat out/conftest.err >&5
 
11487
   echo "$as_me:11487: \$? = $ac_status" >&5
 
11488
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11489
   then
 
11490
     # The compiler can only warn and ignore the option if not recognized
 
11491
     # So say no if there are warnings
 
11492
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
11493
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
11494
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11495
       lt_cv_prog_compiler_c_o_CXX=yes
 
11496
     fi
 
11497
   fi
 
11498
   chmod u+w . 2>&5
 
11499
   $rm conftest*
 
11500
   # SGI C++ compiler will create directory out/ii_files/ for
 
11501
   # template instantiation
 
11502
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11503
   $rm out/* && rmdir out
 
11504
   cd ..
 
11505
   rmdir conftest
 
11506
   $rm conftest*
 
11507
 
 
11508
fi
 
11509
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11510
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11511
 
 
11512
 
 
11513
hard_links="nottested"
 
11514
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11515
  # do not overwrite the value of need_locks provided by the user
 
11516
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11517
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11518
  hard_links=yes
 
11519
  $rm conftest*
 
11520
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11521
  touch conftest.a
 
11522
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11523
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11524
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11525
echo "${ECHO_T}$hard_links" >&6
 
11526
  if test "$hard_links" = no; then
 
11527
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11528
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11529
    need_locks=warn
 
11530
  fi
 
11531
else
 
11532
  need_locks=no
 
11533
fi
 
11534
 
 
11535
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11536
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11537
 
 
11538
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11539
  case $host_os in
 
11540
  aix4* | aix5*)
 
11541
    # If we're using GNU nm, then we don't want the "-C" option.
 
11542
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11543
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11544
      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'
 
11545
    else
 
11546
      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'
 
11547
    fi
 
11548
    ;;
 
11549
  pw32*)
 
11550
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11551
  ;;
 
11552
  cygwin* | mingw*)
 
11553
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11554
  ;;
 
11555
  *)
 
11556
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11557
  ;;
 
11558
  esac
 
11559
 
 
11560
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11561
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11562
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11563
 
 
11564
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11565
if test "$GCC" = yes; then
 
11566
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11567
fi
 
11568
 
 
11569
#
 
11570
# Do we need to explicitly link libc?
 
11571
#
 
11572
case "x$archive_cmds_need_lc_CXX" in
 
11573
x|xyes)
 
11574
  # Assume -lc should be added
 
11575
  archive_cmds_need_lc_CXX=yes
 
11576
 
 
11577
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11578
    case $archive_cmds_CXX in
 
11579
    *'~'*)
 
11580
      # FIXME: we may have to deal with multi-command sequences.
 
11581
      ;;
 
11582
    '$CC '*)
 
11583
      # Test whether the compiler implicitly links with -lc since on some
 
11584
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11585
      # to ld, don't add -lc before -lgcc.
 
11586
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11587
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11588
      $rm conftest*
 
11589
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11590
 
 
11591
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11592
  (eval $ac_compile) 2>&5
 
11593
  ac_status=$?
 
11594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11595
  (exit $ac_status); } 2>conftest.err; then
 
11596
        soname=conftest
 
11597
        lib=conftest
 
11598
        libobjs=conftest.$ac_objext
 
11599
        deplibs=
 
11600
        wl=$lt_prog_compiler_wl_CXX
 
11601
        compiler_flags=-v
 
11602
        linker_flags=-v
 
11603
        verstring=
 
11604
        output_objdir=.
 
11605
        libname=conftest
 
11606
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11607
        allow_undefined_flag_CXX=
 
11608
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11609
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11610
  ac_status=$?
 
11611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11612
  (exit $ac_status); }
 
11613
        then
 
11614
          archive_cmds_need_lc_CXX=no
 
11615
        else
 
11616
          archive_cmds_need_lc_CXX=yes
 
11617
        fi
 
11618
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11619
      else
 
11620
        cat conftest.err 1>&5
 
11621
      fi
 
11622
      $rm conftest*
 
11623
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11624
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11625
      ;;
 
11626
    esac
 
11627
  fi
 
11628
  ;;
 
11629
esac
 
11630
 
 
11631
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11632
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11633
library_names_spec=
 
11634
libname_spec='lib$name'
 
11635
soname_spec=
 
11636
shrext_cmds=".so"
 
11637
postinstall_cmds=
 
11638
postuninstall_cmds=
 
11639
finish_cmds=
 
11640
finish_eval=
 
11641
shlibpath_var=
 
11642
shlibpath_overrides_runpath=unknown
 
11643
version_type=none
 
11644
dynamic_linker="$host_os ld.so"
 
11645
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11646
if test "$GCC" = yes; then
 
11647
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11648
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11649
    # if the path contains ";" then we assume it to be the separator
 
11650
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11651
    # assumed that no part of a normal pathname contains ";" but that should
 
11652
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11653
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11654
  else
 
11655
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11656
  fi
 
11657
else
 
11658
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11659
fi
 
11660
need_lib_prefix=unknown
 
11661
hardcode_into_libs=no
 
11662
 
 
11663
# when you set need_version to no, make sure it does not cause -set_version
 
11664
# flags to be left without arguments
 
11665
need_version=unknown
 
11666
 
 
11667
case $host_os in
 
11668
aix3*)
 
11669
  version_type=linux
 
11670
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11671
  shlibpath_var=LIBPATH
 
11672
 
 
11673
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11674
  soname_spec='${libname}${release}${shared_ext}$major'
 
11675
  ;;
 
11676
 
 
11677
aix4* | aix5*)
 
11678
  version_type=linux
 
11679
  need_lib_prefix=no
 
11680
  need_version=no
 
11681
  hardcode_into_libs=yes
 
11682
  if test "$host_cpu" = ia64; then
 
11683
    # AIX 5 supports IA64
 
11684
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11685
    shlibpath_var=LD_LIBRARY_PATH
 
11686
  else
 
11687
    # With GCC up to 2.95.x, collect2 would create an import file
 
11688
    # for dependence libraries.  The import file would start with
 
11689
    # the line `#! .'.  This would cause the generated library to
 
11690
    # depend on `.', always an invalid library.  This was fixed in
 
11691
    # development snapshots of GCC prior to 3.0.
 
11692
    case $host_os in
 
11693
      aix4 | aix4.[01] | aix4.[01].*)
 
11694
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11695
           echo ' yes '
 
11696
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11697
        :
 
11698
      else
 
11699
        can_build_shared=no
 
11700
      fi
 
11701
      ;;
 
11702
    esac
 
11703
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11704
    # soname into executable. Probably we can add versioning support to
 
11705
    # collect2, so additional links can be useful in future.
 
11706
    if test "$aix_use_runtimelinking" = yes; then
 
11707
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11708
      # instead of lib<name>.a to let people know that these are not
 
11709
      # typical AIX shared libraries.
 
11710
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11711
    else
 
11712
      # We preserve .a as extension for shared libraries through AIX4.2
 
11713
      # and later when we are not doing run time linking.
 
11714
      library_names_spec='${libname}${release}.a $libname.a'
 
11715
      soname_spec='${libname}${release}${shared_ext}$major'
 
11716
    fi
 
11717
    shlibpath_var=LIBPATH
 
11718
  fi
 
11719
  ;;
 
11720
 
 
11721
amigaos*)
 
11722
  library_names_spec='$libname.ixlibrary $libname.a'
 
11723
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11724
  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'
 
11725
  ;;
 
11726
 
 
11727
beos*)
 
11728
  library_names_spec='${libname}${shared_ext}'
 
11729
  dynamic_linker="$host_os ld.so"
 
11730
  shlibpath_var=LIBRARY_PATH
 
11731
  ;;
 
11732
 
 
11733
bsdi[45]*)
 
11734
  version_type=linux
 
11735
  need_version=no
 
11736
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11737
  soname_spec='${libname}${release}${shared_ext}$major'
 
11738
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11739
  shlibpath_var=LD_LIBRARY_PATH
 
11740
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11741
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11742
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11743
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11744
  # libtool to hard-code these into programs
 
11745
  ;;
 
11746
 
 
11747
cygwin* | mingw* | pw32*)
 
11748
  version_type=windows
 
11749
  shrext_cmds=".dll"
 
11750
  need_version=no
 
11751
  need_lib_prefix=no
 
11752
 
 
11753
  case $GCC,$host_os in
 
11754
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11755
    library_names_spec='$libname.dll.a'
 
11756
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11757
    postinstall_cmds='base_file=`basename \${file}`~
 
11758
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11759
      dldir=$destdir/`dirname \$dlpath`~
 
11760
      test -d \$dldir || mkdir -p \$dldir~
 
11761
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11762
      chmod a+x \$dldir/$dlname'
 
11763
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11764
      dlpath=$dir/\$dldll~
 
11765
       $rm \$dlpath'
 
11766
    shlibpath_overrides_runpath=yes
 
11767
 
 
11768
    case $host_os in
 
11769
    cygwin*)
 
11770
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11771
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11772
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11773
      ;;
 
11774
    mingw*)
 
11775
      # MinGW DLLs use traditional 'lib' prefix
 
11776
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11777
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11778
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11779
        # It is most probably a Windows format PATH printed by
 
11780
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11781
        # path with ; separators, and with drive letters. We can handle the
 
11782
        # drive letters (cygwin fileutils understands them), so leave them,
 
11783
        # especially as we might pass files found there to a mingw objdump,
 
11784
        # which wouldn't understand a cygwinified path. Ahh.
 
11785
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11786
      else
 
11787
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11788
      fi
 
11789
      ;;
 
11790
    pw32*)
 
11791
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11792
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11793
      ;;
 
11794
    esac
 
11795
    ;;
 
11796
 
 
11797
  *)
 
11798
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11799
    ;;
 
11800
  esac
 
11801
  dynamic_linker='Win32 ld.exe'
 
11802
  # FIXME: first we should search . and the directory the executable is in
 
11803
  shlibpath_var=PATH
 
11804
  ;;
 
11805
 
 
11806
darwin* | rhapsody*)
 
11807
  dynamic_linker="$host_os dyld"
 
11808
  version_type=darwin
 
11809
  need_lib_prefix=no
 
11810
  need_version=no
 
11811
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11812
  soname_spec='${libname}${release}${major}$shared_ext'
 
11813
  shlibpath_overrides_runpath=yes
 
11814
  shlibpath_var=DYLD_LIBRARY_PATH
 
11815
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11816
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11817
  if test "$GCC" = yes; then
 
11818
    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"`
 
11819
  else
 
11820
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11821
  fi
 
11822
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11823
  ;;
 
11824
 
 
11825
dgux*)
 
11826
  version_type=linux
 
11827
  need_lib_prefix=no
 
11828
  need_version=no
 
11829
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11830
  soname_spec='${libname}${release}${shared_ext}$major'
 
11831
  shlibpath_var=LD_LIBRARY_PATH
 
11832
  ;;
 
11833
 
 
11834
freebsd1*)
 
11835
  dynamic_linker=no
 
11836
  ;;
 
11837
 
 
11838
kfreebsd*-gnu)
 
11839
  version_type=linux
 
11840
  need_lib_prefix=no
 
11841
  need_version=no
 
11842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11843
  soname_spec='${libname}${release}${shared_ext}$major'
 
11844
  shlibpath_var=LD_LIBRARY_PATH
 
11845
  shlibpath_overrides_runpath=no
 
11846
  hardcode_into_libs=yes
 
11847
  dynamic_linker='GNU ld.so'
 
11848
  ;;
 
11849
 
 
11850
freebsd* | dragonfly*)
 
11851
  # DragonFly does not have aout.  When/if they implement a new
 
11852
  # versioning mechanism, adjust this.
 
11853
  if test -x /usr/bin/objformat; then
 
11854
    objformat=`/usr/bin/objformat`
 
11855
  else
 
11856
    case $host_os in
 
11857
    freebsd[123]*) objformat=aout ;;
 
11858
    *) objformat=elf ;;
 
11859
    esac
 
11860
  fi
 
11861
  version_type=freebsd-$objformat
 
11862
  case $version_type in
 
11863
    freebsd-elf*)
 
11864
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11865
      need_version=no
 
11866
      need_lib_prefix=no
 
11867
      ;;
 
11868
    freebsd-*)
 
11869
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11870
      need_version=yes
 
11871
      ;;
 
11872
  esac
 
11873
  shlibpath_var=LD_LIBRARY_PATH
 
11874
  case $host_os in
 
11875
  freebsd2*)
 
11876
    shlibpath_overrides_runpath=yes
 
11877
    ;;
 
11878
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11879
    shlibpath_overrides_runpath=yes
 
11880
    hardcode_into_libs=yes
 
11881
    ;;
 
11882
  *) # from 3.2 on
 
11883
    shlibpath_overrides_runpath=no
 
11884
    hardcode_into_libs=yes
 
11885
    ;;
 
11886
  esac
 
11887
  ;;
 
11888
 
 
11889
gnu*)
 
11890
  version_type=linux
 
11891
  need_lib_prefix=no
 
11892
  need_version=no
 
11893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11894
  soname_spec='${libname}${release}${shared_ext}$major'
 
11895
  shlibpath_var=LD_LIBRARY_PATH
 
11896
  hardcode_into_libs=yes
 
11897
  ;;
 
11898
 
 
11899
hpux9* | hpux10* | hpux11*)
 
11900
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11901
  # link against other versions.
 
11902
  version_type=sunos
 
11903
  need_lib_prefix=no
 
11904
  need_version=no
 
11905
  case $host_cpu in
 
11906
  ia64*)
 
11907
    shrext_cmds='.so'
 
11908
    hardcode_into_libs=yes
 
11909
    dynamic_linker="$host_os dld.so"
 
11910
    shlibpath_var=LD_LIBRARY_PATH
 
11911
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11912
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11913
    soname_spec='${libname}${release}${shared_ext}$major'
 
11914
    if test "X$HPUX_IA64_MODE" = X32; then
 
11915
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11916
    else
 
11917
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11918
    fi
 
11919
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11920
    ;;
 
11921
   hppa*64*)
 
11922
     shrext_cmds='.sl'
 
11923
     hardcode_into_libs=yes
 
11924
     dynamic_linker="$host_os dld.sl"
 
11925
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11926
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11927
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11928
     soname_spec='${libname}${release}${shared_ext}$major'
 
11929
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11930
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11931
     ;;
 
11932
   *)
 
11933
    shrext_cmds='.sl'
 
11934
    dynamic_linker="$host_os dld.sl"
 
11935
    shlibpath_var=SHLIB_PATH
 
11936
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11937
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11938
    soname_spec='${libname}${release}${shared_ext}$major'
 
11939
    ;;
 
11940
  esac
 
11941
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11942
  postinstall_cmds='chmod 555 $lib'
 
11943
  ;;
 
11944
 
 
11945
irix5* | irix6* | nonstopux*)
 
11946
  case $host_os in
 
11947
    nonstopux*) version_type=nonstopux ;;
 
11948
    *)
 
11949
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11950
                version_type=linux
 
11951
        else
 
11952
                version_type=irix
 
11953
        fi ;;
 
11954
  esac
 
11955
  need_lib_prefix=no
 
11956
  need_version=no
 
11957
  soname_spec='${libname}${release}${shared_ext}$major'
 
11958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11959
  case $host_os in
 
11960
  irix5* | nonstopux*)
 
11961
    libsuff= shlibsuff=
 
11962
    ;;
 
11963
  *)
 
11964
    case $LD in # libtool.m4 will add one of these switches to LD
 
11965
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11966
      libsuff= shlibsuff= libmagic=32-bit;;
 
11967
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11968
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11969
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11970
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11971
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11972
    esac
 
11973
    ;;
 
11974
  esac
 
11975
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11976
  shlibpath_overrides_runpath=no
 
11977
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11978
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11979
  hardcode_into_libs=yes
 
11980
  ;;
 
11981
 
 
11982
# No shared lib support for Linux oldld, aout, or coff.
 
11983
linux*oldld* | linux*aout* | linux*coff*)
 
11984
  dynamic_linker=no
 
11985
  ;;
 
11986
 
 
11987
# This must be Linux ELF.
 
11988
linux*)
 
11989
  version_type=linux
 
11990
  need_lib_prefix=no
 
11991
  need_version=no
 
11992
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11993
  soname_spec='${libname}${release}${shared_ext}$major'
 
11994
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11995
  shlibpath_var=LD_LIBRARY_PATH
 
11996
  shlibpath_overrides_runpath=no
 
11997
  # This implies no fast_install, which is unacceptable.
 
11998
  # Some rework will be needed to allow for fast_install
 
11999
  # before this can be enabled.
 
12000
  hardcode_into_libs=yes
 
12001
 
 
12002
  # Append ld.so.conf contents to the search path
 
12003
  if test -f /etc/ld.so.conf; then
 
12004
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12005
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12006
  fi
 
12007
 
 
12008
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12009
  # powerpc, because MkLinux only supported shared libraries with the
 
12010
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12011
  # most powerpc-linux boxes support dynamic linking these days and
 
12012
  # people can always --disable-shared, the test was removed, and we
 
12013
  # assume the GNU/Linux dynamic linker is in use.
 
12014
  dynamic_linker='GNU/Linux ld.so'
 
12015
  ;;
 
12016
 
 
12017
knetbsd*-gnu)
 
12018
  version_type=linux
 
12019
  need_lib_prefix=no
 
12020
  need_version=no
 
12021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12022
  soname_spec='${libname}${release}${shared_ext}$major'
 
12023
  shlibpath_var=LD_LIBRARY_PATH
 
12024
  shlibpath_overrides_runpath=no
 
12025
  hardcode_into_libs=yes
 
12026
  dynamic_linker='GNU ld.so'
 
12027
  ;;
 
12028
 
 
12029
netbsd*)
 
12030
  version_type=sunos
 
12031
  need_lib_prefix=no
 
12032
  need_version=no
 
12033
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12034
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12035
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12036
    dynamic_linker='NetBSD (a.out) ld.so'
 
12037
  else
 
12038
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12039
    soname_spec='${libname}${release}${shared_ext}$major'
 
12040
    dynamic_linker='NetBSD ld.elf_so'
 
12041
  fi
 
12042
  shlibpath_var=LD_LIBRARY_PATH
 
12043
  shlibpath_overrides_runpath=yes
 
12044
  hardcode_into_libs=yes
 
12045
  ;;
 
12046
 
 
12047
newsos6)
 
12048
  version_type=linux
 
12049
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12050
  shlibpath_var=LD_LIBRARY_PATH
 
12051
  shlibpath_overrides_runpath=yes
 
12052
  ;;
 
12053
 
 
12054
nto-qnx*)
 
12055
  version_type=linux
 
12056
  need_lib_prefix=no
 
12057
  need_version=no
 
12058
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12059
  soname_spec='${libname}${release}${shared_ext}$major'
 
12060
  shlibpath_var=LD_LIBRARY_PATH
 
12061
  shlibpath_overrides_runpath=yes
 
12062
  ;;
 
12063
 
 
12064
openbsd*)
 
12065
  version_type=sunos
 
12066
  need_lib_prefix=no
 
12067
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12068
  case $host_os in
 
12069
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12070
    *)                         need_version=no  ;;
 
12071
  esac
 
12072
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12073
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12074
  shlibpath_var=LD_LIBRARY_PATH
 
12075
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12076
    case $host_os in
 
12077
      openbsd2.[89] | openbsd2.[89].*)
 
12078
        shlibpath_overrides_runpath=no
 
12079
        ;;
 
12080
      *)
 
12081
        shlibpath_overrides_runpath=yes
 
12082
        ;;
 
12083
      esac
 
12084
  else
 
12085
    shlibpath_overrides_runpath=yes
 
12086
  fi
 
12087
  ;;
 
12088
 
 
12089
os2*)
 
12090
  libname_spec='$name'
 
12091
  shrext_cmds=".dll"
 
12092
  need_lib_prefix=no
 
12093
  library_names_spec='$libname${shared_ext} $libname.a'
 
12094
  dynamic_linker='OS/2 ld.exe'
 
12095
  shlibpath_var=LIBPATH
 
12096
  ;;
 
12097
 
 
12098
osf3* | osf4* | osf5*)
 
12099
  version_type=osf
 
12100
  need_lib_prefix=no
 
12101
  need_version=no
 
12102
  soname_spec='${libname}${release}${shared_ext}$major'
 
12103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12104
  shlibpath_var=LD_LIBRARY_PATH
 
12105
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12106
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12107
  ;;
 
12108
 
 
12109
sco3.2v5*)
 
12110
  version_type=osf
 
12111
  soname_spec='${libname}${release}${shared_ext}$major'
 
12112
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12113
  shlibpath_var=LD_LIBRARY_PATH
 
12114
  ;;
 
12115
 
 
12116
solaris*)
 
12117
  version_type=linux
 
12118
  need_lib_prefix=no
 
12119
  need_version=no
 
12120
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12121
  soname_spec='${libname}${release}${shared_ext}$major'
 
12122
  shlibpath_var=LD_LIBRARY_PATH
 
12123
  shlibpath_overrides_runpath=yes
 
12124
  hardcode_into_libs=yes
 
12125
  # ldd complains unless libraries are executable
 
12126
  postinstall_cmds='chmod +x $lib'
 
12127
  ;;
 
12128
 
 
12129
sunos4*)
 
12130
  version_type=sunos
 
12131
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12132
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12133
  shlibpath_var=LD_LIBRARY_PATH
 
12134
  shlibpath_overrides_runpath=yes
 
12135
  if test "$with_gnu_ld" = yes; then
 
12136
    need_lib_prefix=no
 
12137
  fi
 
12138
  need_version=yes
 
12139
  ;;
 
12140
 
 
12141
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12142
  version_type=linux
 
12143
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12144
  soname_spec='${libname}${release}${shared_ext}$major'
 
12145
  shlibpath_var=LD_LIBRARY_PATH
 
12146
  case $host_vendor in
 
12147
    sni)
 
12148
      shlibpath_overrides_runpath=no
 
12149
      need_lib_prefix=no
 
12150
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12151
      runpath_var=LD_RUN_PATH
 
12152
      ;;
 
12153
    siemens)
 
12154
      need_lib_prefix=no
 
12155
      ;;
 
12156
    motorola)
 
12157
      need_lib_prefix=no
 
12158
      need_version=no
 
12159
      shlibpath_overrides_runpath=no
 
12160
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12161
      ;;
 
12162
  esac
 
12163
  ;;
 
12164
 
 
12165
sysv4*MP*)
 
12166
  if test -d /usr/nec ;then
 
12167
    version_type=linux
 
12168
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12169
    soname_spec='$libname${shared_ext}.$major'
 
12170
    shlibpath_var=LD_LIBRARY_PATH
 
12171
  fi
 
12172
  ;;
 
12173
 
 
12174
uts4*)
 
12175
  version_type=linux
 
12176
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12177
  soname_spec='${libname}${release}${shared_ext}$major'
 
12178
  shlibpath_var=LD_LIBRARY_PATH
 
12179
  ;;
 
12180
 
 
12181
*)
 
12182
  dynamic_linker=no
 
12183
  ;;
 
12184
esac
 
12185
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12186
echo "${ECHO_T}$dynamic_linker" >&6
 
12187
test "$dynamic_linker" = no && can_build_shared=no
 
12188
 
 
12189
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12190
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12191
hardcode_action_CXX=
 
12192
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12193
   test -n "$runpath_var_CXX" || \
 
12194
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
12195
 
 
12196
  # We can hardcode non-existant directories.
 
12197
  if test "$hardcode_direct_CXX" != no &&
 
12198
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12199
     # have to relink, otherwise we might link with an installed library
 
12200
     # when we should be linking with a yet-to-be-installed one
 
12201
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12202
     test "$hardcode_minus_L_CXX" != no; then
 
12203
    # Linking always hardcodes the temporary library directory.
 
12204
    hardcode_action_CXX=relink
 
12205
  else
 
12206
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12207
    hardcode_action_CXX=immediate
 
12208
  fi
 
12209
else
 
12210
  # We cannot hardcode anything, or else we can only hardcode existing
 
12211
  # directories.
 
12212
  hardcode_action_CXX=unsupported
 
12213
fi
 
12214
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12215
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12216
 
 
12217
if test "$hardcode_action_CXX" = relink; then
 
12218
  # Fast installation is not supported
 
12219
  enable_fast_install=no
 
12220
elif test "$shlibpath_overrides_runpath" = yes ||
 
12221
     test "$enable_shared" = no; then
 
12222
  # Fast installation is not necessary
 
12223
  enable_fast_install=needless
 
12224
fi
 
12225
 
 
12226
striplib=
 
12227
old_striplib=
 
12228
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12229
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12230
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12231
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12232
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12233
  echo "$as_me:$LINENO: result: yes" >&5
 
12234
echo "${ECHO_T}yes" >&6
 
12235
else
 
12236
# FIXME - insert some real tests, host_os isn't really good enough
 
12237
  case $host_os in
 
12238
   darwin*)
 
12239
       if test -n "$STRIP" ; then
 
12240
         striplib="$STRIP -x"
 
12241
         echo "$as_me:$LINENO: result: yes" >&5
 
12242
echo "${ECHO_T}yes" >&6
 
12243
       else
 
12244
  echo "$as_me:$LINENO: result: no" >&5
 
12245
echo "${ECHO_T}no" >&6
 
12246
fi
 
12247
       ;;
 
12248
   *)
 
12249
  echo "$as_me:$LINENO: result: no" >&5
 
12250
echo "${ECHO_T}no" >&6
 
12251
    ;;
 
12252
  esac
 
12253
fi
 
12254
 
 
12255
if test "x$enable_dlopen" != xyes; then
 
12256
  enable_dlopen=unknown
 
12257
  enable_dlopen_self=unknown
 
12258
  enable_dlopen_self_static=unknown
 
12259
else
 
12260
  lt_cv_dlopen=no
 
12261
  lt_cv_dlopen_libs=
 
12262
 
 
12263
  case $host_os in
 
12264
  beos*)
 
12265
    lt_cv_dlopen="load_add_on"
 
12266
    lt_cv_dlopen_libs=
 
12267
    lt_cv_dlopen_self=yes
 
12268
    ;;
 
12269
 
 
12270
  mingw* | pw32*)
 
12271
    lt_cv_dlopen="LoadLibrary"
 
12272
    lt_cv_dlopen_libs=
 
12273
   ;;
 
12274
 
 
12275
  cygwin*)
 
12276
    lt_cv_dlopen="dlopen"
 
12277
    lt_cv_dlopen_libs=
 
12278
   ;;
 
12279
 
 
12280
  darwin*)
 
12281
  # if libdl is installed we need to link against it
 
12282
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12283
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12284
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12286
else
 
12287
  ac_check_lib_save_LIBS=$LIBS
 
12288
LIBS="-ldl  $LIBS"
 
12289
cat >conftest.$ac_ext <<_ACEOF
 
12290
/* confdefs.h.  */
 
12291
_ACEOF
 
12292
cat confdefs.h >>conftest.$ac_ext
 
12293
cat >>conftest.$ac_ext <<_ACEOF
 
12294
/* end confdefs.h.  */
 
12295
 
 
12296
/* Override any gcc2 internal prototype to avoid an error.  */
 
12297
#ifdef __cplusplus
 
12298
extern "C"
 
12299
#endif
 
12300
/* We use char because int might match the return type of a gcc2
 
12301
   builtin and then its argument prototype would still apply.  */
 
12302
char dlopen ();
 
12303
int
 
12304
main ()
 
12305
{
 
12306
dlopen ();
 
12307
  ;
 
12308
  return 0;
 
12309
}
 
12310
_ACEOF
 
12311
rm -f conftest.$ac_objext conftest$ac_exeext
 
12312
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12313
  (eval $ac_link) 2>conftest.er1
 
12314
  ac_status=$?
 
12315
  grep -v '^ *+' conftest.er1 >conftest.err
 
12316
  rm -f conftest.er1
 
12317
  cat conftest.err >&5
 
12318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12319
  (exit $ac_status); } &&
 
12320
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12321
                         || test ! -s conftest.err'
 
12322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12323
  (eval $ac_try) 2>&5
 
12324
  ac_status=$?
 
12325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12326
  (exit $ac_status); }; } &&
 
12327
         { ac_try='test -s conftest$ac_exeext'
 
12328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12329
  (eval $ac_try) 2>&5
 
12330
  ac_status=$?
 
12331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12332
  (exit $ac_status); }; }; then
 
12333
  ac_cv_lib_dl_dlopen=yes
 
12334
else
 
12335
  echo "$as_me: failed program was:" >&5
 
12336
sed 's/^/| /' conftest.$ac_ext >&5
 
12337
 
 
12338
ac_cv_lib_dl_dlopen=no
 
12339
fi
 
12340
rm -f conftest.err conftest.$ac_objext \
 
12341
      conftest$ac_exeext conftest.$ac_ext
 
12342
LIBS=$ac_check_lib_save_LIBS
 
12343
fi
 
12344
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12345
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12346
if test $ac_cv_lib_dl_dlopen = yes; then
 
12347
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12348
else
 
12349
 
 
12350
    lt_cv_dlopen="dyld"
 
12351
    lt_cv_dlopen_libs=
 
12352
    lt_cv_dlopen_self=yes
 
12353
 
 
12354
fi
 
12355
 
 
12356
   ;;
 
12357
 
 
12358
  *)
 
12359
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12360
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12361
if test "${ac_cv_func_shl_load+set}" = set; then
 
12362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12363
else
 
12364
  cat >conftest.$ac_ext <<_ACEOF
 
12365
/* confdefs.h.  */
 
12366
_ACEOF
 
12367
cat confdefs.h >>conftest.$ac_ext
 
12368
cat >>conftest.$ac_ext <<_ACEOF
 
12369
/* end confdefs.h.  */
 
12370
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12371
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12372
#define shl_load innocuous_shl_load
 
12373
 
 
12374
/* System header to define __stub macros and hopefully few prototypes,
 
12375
    which can conflict with char shl_load (); below.
 
12376
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12377
    <limits.h> exists even on freestanding compilers.  */
 
12378
 
 
12379
#ifdef __STDC__
 
12380
# include <limits.h>
 
12381
#else
 
12382
# include <assert.h>
 
12383
#endif
 
12384
 
 
12385
#undef shl_load
 
12386
 
 
12387
/* Override any gcc2 internal prototype to avoid an error.  */
 
12388
#ifdef __cplusplus
 
12389
extern "C"
 
12390
{
 
12391
#endif
 
12392
/* We use char because int might match the return type of a gcc2
 
12393
   builtin and then its argument prototype would still apply.  */
 
12394
char shl_load ();
 
12395
/* The GNU C library defines this for functions which it implements
 
12396
    to always fail with ENOSYS.  Some functions are actually named
 
12397
    something starting with __ and the normal name is an alias.  */
 
12398
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12399
choke me
 
12400
#else
 
12401
char (*f) () = shl_load;
 
12402
#endif
 
12403
#ifdef __cplusplus
 
12404
}
 
12405
#endif
 
12406
 
 
12407
int
 
12408
main ()
 
12409
{
 
12410
return f != shl_load;
 
12411
  ;
 
12412
  return 0;
 
12413
}
 
12414
_ACEOF
 
12415
rm -f conftest.$ac_objext conftest$ac_exeext
 
12416
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12417
  (eval $ac_link) 2>conftest.er1
 
12418
  ac_status=$?
 
12419
  grep -v '^ *+' conftest.er1 >conftest.err
 
12420
  rm -f conftest.er1
 
12421
  cat conftest.err >&5
 
12422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12423
  (exit $ac_status); } &&
 
12424
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12425
                         || test ! -s conftest.err'
 
12426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12427
  (eval $ac_try) 2>&5
 
12428
  ac_status=$?
 
12429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12430
  (exit $ac_status); }; } &&
 
12431
         { ac_try='test -s conftest$ac_exeext'
 
12432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12433
  (eval $ac_try) 2>&5
 
12434
  ac_status=$?
 
12435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12436
  (exit $ac_status); }; }; then
 
12437
  ac_cv_func_shl_load=yes
 
12438
else
 
12439
  echo "$as_me: failed program was:" >&5
 
12440
sed 's/^/| /' conftest.$ac_ext >&5
 
12441
 
 
12442
ac_cv_func_shl_load=no
 
12443
fi
 
12444
rm -f conftest.err conftest.$ac_objext \
 
12445
      conftest$ac_exeext conftest.$ac_ext
 
12446
fi
 
12447
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12448
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12449
if test $ac_cv_func_shl_load = yes; then
 
12450
  lt_cv_dlopen="shl_load"
 
12451
else
 
12452
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12453
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12454
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12456
else
 
12457
  ac_check_lib_save_LIBS=$LIBS
 
12458
LIBS="-ldld  $LIBS"
 
12459
cat >conftest.$ac_ext <<_ACEOF
 
12460
/* confdefs.h.  */
 
12461
_ACEOF
 
12462
cat confdefs.h >>conftest.$ac_ext
 
12463
cat >>conftest.$ac_ext <<_ACEOF
 
12464
/* end confdefs.h.  */
 
12465
 
 
12466
/* Override any gcc2 internal prototype to avoid an error.  */
 
12467
#ifdef __cplusplus
 
12468
extern "C"
 
12469
#endif
 
12470
/* We use char because int might match the return type of a gcc2
 
12471
   builtin and then its argument prototype would still apply.  */
 
12472
char shl_load ();
 
12473
int
 
12474
main ()
 
12475
{
 
12476
shl_load ();
 
12477
  ;
 
12478
  return 0;
 
12479
}
 
12480
_ACEOF
 
12481
rm -f conftest.$ac_objext conftest$ac_exeext
 
12482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12483
  (eval $ac_link) 2>conftest.er1
 
12484
  ac_status=$?
 
12485
  grep -v '^ *+' conftest.er1 >conftest.err
 
12486
  rm -f conftest.er1
 
12487
  cat conftest.err >&5
 
12488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12489
  (exit $ac_status); } &&
 
12490
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12491
                         || test ! -s conftest.err'
 
12492
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12493
  (eval $ac_try) 2>&5
 
12494
  ac_status=$?
 
12495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12496
  (exit $ac_status); }; } &&
 
12497
         { ac_try='test -s conftest$ac_exeext'
 
12498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12499
  (eval $ac_try) 2>&5
 
12500
  ac_status=$?
 
12501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12502
  (exit $ac_status); }; }; then
 
12503
  ac_cv_lib_dld_shl_load=yes
 
12504
else
 
12505
  echo "$as_me: failed program was:" >&5
 
12506
sed 's/^/| /' conftest.$ac_ext >&5
 
12507
 
 
12508
ac_cv_lib_dld_shl_load=no
 
12509
fi
 
12510
rm -f conftest.err conftest.$ac_objext \
 
12511
      conftest$ac_exeext conftest.$ac_ext
 
12512
LIBS=$ac_check_lib_save_LIBS
 
12513
fi
 
12514
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12515
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12516
if test $ac_cv_lib_dld_shl_load = yes; then
 
12517
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12518
else
 
12519
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12520
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12521
if test "${ac_cv_func_dlopen+set}" = set; then
 
12522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12523
else
 
12524
  cat >conftest.$ac_ext <<_ACEOF
 
12525
/* confdefs.h.  */
 
12526
_ACEOF
 
12527
cat confdefs.h >>conftest.$ac_ext
 
12528
cat >>conftest.$ac_ext <<_ACEOF
 
12529
/* end confdefs.h.  */
 
12530
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12531
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12532
#define dlopen innocuous_dlopen
 
12533
 
 
12534
/* System header to define __stub macros and hopefully few prototypes,
 
12535
    which can conflict with char dlopen (); below.
 
12536
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12537
    <limits.h> exists even on freestanding compilers.  */
 
12538
 
 
12539
#ifdef __STDC__
 
12540
# include <limits.h>
 
12541
#else
 
12542
# include <assert.h>
 
12543
#endif
 
12544
 
 
12545
#undef dlopen
 
12546
 
 
12547
/* Override any gcc2 internal prototype to avoid an error.  */
 
12548
#ifdef __cplusplus
 
12549
extern "C"
 
12550
{
 
12551
#endif
 
12552
/* We use char because int might match the return type of a gcc2
 
12553
   builtin and then its argument prototype would still apply.  */
 
12554
char dlopen ();
 
12555
/* The GNU C library defines this for functions which it implements
 
12556
    to always fail with ENOSYS.  Some functions are actually named
 
12557
    something starting with __ and the normal name is an alias.  */
 
12558
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12559
choke me
 
12560
#else
 
12561
char (*f) () = dlopen;
 
12562
#endif
 
12563
#ifdef __cplusplus
 
12564
}
 
12565
#endif
 
12566
 
 
12567
int
 
12568
main ()
 
12569
{
 
12570
return f != dlopen;
 
12571
  ;
 
12572
  return 0;
 
12573
}
 
12574
_ACEOF
 
12575
rm -f conftest.$ac_objext conftest$ac_exeext
 
12576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12577
  (eval $ac_link) 2>conftest.er1
 
12578
  ac_status=$?
 
12579
  grep -v '^ *+' conftest.er1 >conftest.err
 
12580
  rm -f conftest.er1
 
12581
  cat conftest.err >&5
 
12582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12583
  (exit $ac_status); } &&
 
12584
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12585
                         || test ! -s conftest.err'
 
12586
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12587
  (eval $ac_try) 2>&5
 
12588
  ac_status=$?
 
12589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12590
  (exit $ac_status); }; } &&
 
12591
         { ac_try='test -s conftest$ac_exeext'
 
12592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12593
  (eval $ac_try) 2>&5
 
12594
  ac_status=$?
 
12595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12596
  (exit $ac_status); }; }; then
 
12597
  ac_cv_func_dlopen=yes
 
12598
else
 
12599
  echo "$as_me: failed program was:" >&5
 
12600
sed 's/^/| /' conftest.$ac_ext >&5
 
12601
 
 
12602
ac_cv_func_dlopen=no
 
12603
fi
 
12604
rm -f conftest.err conftest.$ac_objext \
 
12605
      conftest$ac_exeext conftest.$ac_ext
 
12606
fi
 
12607
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12608
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12609
if test $ac_cv_func_dlopen = yes; then
 
12610
  lt_cv_dlopen="dlopen"
 
12611
else
 
12612
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12613
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12614
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12616
else
 
12617
  ac_check_lib_save_LIBS=$LIBS
 
12618
LIBS="-ldl  $LIBS"
 
12619
cat >conftest.$ac_ext <<_ACEOF
 
12620
/* confdefs.h.  */
 
12621
_ACEOF
 
12622
cat confdefs.h >>conftest.$ac_ext
 
12623
cat >>conftest.$ac_ext <<_ACEOF
 
12624
/* end confdefs.h.  */
 
12625
 
 
12626
/* Override any gcc2 internal prototype to avoid an error.  */
 
12627
#ifdef __cplusplus
 
12628
extern "C"
 
12629
#endif
 
12630
/* We use char because int might match the return type of a gcc2
 
12631
   builtin and then its argument prototype would still apply.  */
 
12632
char dlopen ();
 
12633
int
 
12634
main ()
 
12635
{
 
12636
dlopen ();
 
12637
  ;
 
12638
  return 0;
 
12639
}
 
12640
_ACEOF
 
12641
rm -f conftest.$ac_objext conftest$ac_exeext
 
12642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12643
  (eval $ac_link) 2>conftest.er1
 
12644
  ac_status=$?
 
12645
  grep -v '^ *+' conftest.er1 >conftest.err
 
12646
  rm -f conftest.er1
 
12647
  cat conftest.err >&5
 
12648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12649
  (exit $ac_status); } &&
 
12650
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12651
                         || test ! -s conftest.err'
 
12652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12653
  (eval $ac_try) 2>&5
 
12654
  ac_status=$?
 
12655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12656
  (exit $ac_status); }; } &&
 
12657
         { ac_try='test -s conftest$ac_exeext'
 
12658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12659
  (eval $ac_try) 2>&5
 
12660
  ac_status=$?
 
12661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12662
  (exit $ac_status); }; }; then
 
12663
  ac_cv_lib_dl_dlopen=yes
 
12664
else
 
12665
  echo "$as_me: failed program was:" >&5
 
12666
sed 's/^/| /' conftest.$ac_ext >&5
 
12667
 
 
12668
ac_cv_lib_dl_dlopen=no
 
12669
fi
 
12670
rm -f conftest.err conftest.$ac_objext \
 
12671
      conftest$ac_exeext conftest.$ac_ext
 
12672
LIBS=$ac_check_lib_save_LIBS
 
12673
fi
 
12674
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12675
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12676
if test $ac_cv_lib_dl_dlopen = yes; then
 
12677
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12678
else
 
12679
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12680
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12681
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12682
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12683
else
 
12684
  ac_check_lib_save_LIBS=$LIBS
 
12685
LIBS="-lsvld  $LIBS"
 
12686
cat >conftest.$ac_ext <<_ACEOF
 
12687
/* confdefs.h.  */
 
12688
_ACEOF
 
12689
cat confdefs.h >>conftest.$ac_ext
 
12690
cat >>conftest.$ac_ext <<_ACEOF
 
12691
/* end confdefs.h.  */
 
12692
 
 
12693
/* Override any gcc2 internal prototype to avoid an error.  */
 
12694
#ifdef __cplusplus
 
12695
extern "C"
 
12696
#endif
 
12697
/* We use char because int might match the return type of a gcc2
 
12698
   builtin and then its argument prototype would still apply.  */
 
12699
char dlopen ();
 
12700
int
 
12701
main ()
 
12702
{
 
12703
dlopen ();
 
12704
  ;
 
12705
  return 0;
 
12706
}
 
12707
_ACEOF
 
12708
rm -f conftest.$ac_objext conftest$ac_exeext
 
12709
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12710
  (eval $ac_link) 2>conftest.er1
 
12711
  ac_status=$?
 
12712
  grep -v '^ *+' conftest.er1 >conftest.err
 
12713
  rm -f conftest.er1
 
12714
  cat conftest.err >&5
 
12715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12716
  (exit $ac_status); } &&
 
12717
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12718
                         || test ! -s conftest.err'
 
12719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12720
  (eval $ac_try) 2>&5
 
12721
  ac_status=$?
 
12722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12723
  (exit $ac_status); }; } &&
 
12724
         { ac_try='test -s conftest$ac_exeext'
 
12725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12726
  (eval $ac_try) 2>&5
 
12727
  ac_status=$?
 
12728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12729
  (exit $ac_status); }; }; then
 
12730
  ac_cv_lib_svld_dlopen=yes
 
12731
else
 
12732
  echo "$as_me: failed program was:" >&5
 
12733
sed 's/^/| /' conftest.$ac_ext >&5
 
12734
 
 
12735
ac_cv_lib_svld_dlopen=no
 
12736
fi
 
12737
rm -f conftest.err conftest.$ac_objext \
 
12738
      conftest$ac_exeext conftest.$ac_ext
 
12739
LIBS=$ac_check_lib_save_LIBS
 
12740
fi
 
12741
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12742
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12743
if test $ac_cv_lib_svld_dlopen = yes; then
 
12744
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12745
else
 
12746
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12747
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12748
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12750
else
 
12751
  ac_check_lib_save_LIBS=$LIBS
 
12752
LIBS="-ldld  $LIBS"
 
12753
cat >conftest.$ac_ext <<_ACEOF
 
12754
/* confdefs.h.  */
 
12755
_ACEOF
 
12756
cat confdefs.h >>conftest.$ac_ext
 
12757
cat >>conftest.$ac_ext <<_ACEOF
 
12758
/* end confdefs.h.  */
 
12759
 
 
12760
/* Override any gcc2 internal prototype to avoid an error.  */
 
12761
#ifdef __cplusplus
 
12762
extern "C"
 
12763
#endif
 
12764
/* We use char because int might match the return type of a gcc2
 
12765
   builtin and then its argument prototype would still apply.  */
 
12766
char dld_link ();
 
12767
int
 
12768
main ()
 
12769
{
 
12770
dld_link ();
 
12771
  ;
 
12772
  return 0;
 
12773
}
 
12774
_ACEOF
 
12775
rm -f conftest.$ac_objext conftest$ac_exeext
 
12776
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12777
  (eval $ac_link) 2>conftest.er1
 
12778
  ac_status=$?
 
12779
  grep -v '^ *+' conftest.er1 >conftest.err
 
12780
  rm -f conftest.er1
 
12781
  cat conftest.err >&5
 
12782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12783
  (exit $ac_status); } &&
 
12784
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12785
                         || test ! -s conftest.err'
 
12786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12787
  (eval $ac_try) 2>&5
 
12788
  ac_status=$?
 
12789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12790
  (exit $ac_status); }; } &&
 
12791
         { ac_try='test -s conftest$ac_exeext'
 
12792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12793
  (eval $ac_try) 2>&5
 
12794
  ac_status=$?
 
12795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12796
  (exit $ac_status); }; }; then
 
12797
  ac_cv_lib_dld_dld_link=yes
 
12798
else
 
12799
  echo "$as_me: failed program was:" >&5
 
12800
sed 's/^/| /' conftest.$ac_ext >&5
 
12801
 
 
12802
ac_cv_lib_dld_dld_link=no
 
12803
fi
 
12804
rm -f conftest.err conftest.$ac_objext \
 
12805
      conftest$ac_exeext conftest.$ac_ext
 
12806
LIBS=$ac_check_lib_save_LIBS
 
12807
fi
 
12808
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12809
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12810
if test $ac_cv_lib_dld_dld_link = yes; then
 
12811
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12812
fi
 
12813
 
 
12814
 
 
12815
fi
 
12816
 
 
12817
 
 
12818
fi
 
12819
 
 
12820
 
 
12821
fi
 
12822
 
 
12823
 
 
12824
fi
 
12825
 
 
12826
 
 
12827
fi
 
12828
 
 
12829
    ;;
 
12830
  esac
 
12831
 
 
12832
  if test "x$lt_cv_dlopen" != xno; then
 
12833
    enable_dlopen=yes
 
12834
  else
 
12835
    enable_dlopen=no
 
12836
  fi
 
12837
 
 
12838
  case $lt_cv_dlopen in
 
12839
  dlopen)
 
12840
    save_CPPFLAGS="$CPPFLAGS"
 
12841
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12842
 
 
12843
    save_LDFLAGS="$LDFLAGS"
 
12844
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12845
 
 
12846
    save_LIBS="$LIBS"
 
12847
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12848
 
 
12849
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12850
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12851
if test "${lt_cv_dlopen_self+set}" = set; then
 
12852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12853
else
 
12854
          if test "$cross_compiling" = yes; then :
 
12855
  lt_cv_dlopen_self=cross
 
12856
else
 
12857
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12858
  lt_status=$lt_dlunknown
 
12859
  cat > conftest.$ac_ext <<EOF
 
12860
#line 12860 "configure"
 
12861
#include "confdefs.h"
 
12862
 
 
12863
#if HAVE_DLFCN_H
 
12864
#include <dlfcn.h>
 
12865
#endif
 
12866
 
 
12867
#include <stdio.h>
 
12868
 
 
12869
#ifdef RTLD_GLOBAL
 
12870
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12871
#else
 
12872
#  ifdef DL_GLOBAL
 
12873
#    define LT_DLGLOBAL         DL_GLOBAL
 
12874
#  else
 
12875
#    define LT_DLGLOBAL         0
 
12876
#  endif
 
12877
#endif
 
12878
 
 
12879
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12880
   find out it does not work in some platform. */
 
12881
#ifndef LT_DLLAZY_OR_NOW
 
12882
#  ifdef RTLD_LAZY
 
12883
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12884
#  else
 
12885
#    ifdef DL_LAZY
 
12886
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12887
#    else
 
12888
#      ifdef RTLD_NOW
 
12889
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12890
#      else
 
12891
#        ifdef DL_NOW
 
12892
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12893
#        else
 
12894
#          define LT_DLLAZY_OR_NOW      0
 
12895
#        endif
 
12896
#      endif
 
12897
#    endif
 
12898
#  endif
 
12899
#endif
 
12900
 
 
12901
#ifdef __cplusplus
 
12902
extern "C" void exit (int);
 
12903
#endif
 
12904
 
 
12905
void fnord() { int i=42;}
 
12906
int main ()
 
12907
{
 
12908
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12909
  int status = $lt_dlunknown;
 
12910
 
 
12911
  if (self)
 
12912
    {
 
12913
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12914
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12915
      /* dlclose (self); */
 
12916
    }
 
12917
 
 
12918
    exit (status);
 
12919
}
 
12920
EOF
 
12921
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12922
  (eval $ac_link) 2>&5
 
12923
  ac_status=$?
 
12924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12925
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12926
    (./conftest; exit; ) >&5 2>/dev/null
 
12927
    lt_status=$?
 
12928
    case x$lt_status in
 
12929
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12930
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12931
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12932
    esac
 
12933
  else :
 
12934
    # compilation failed
 
12935
    lt_cv_dlopen_self=no
 
12936
  fi
 
12937
fi
 
12938
rm -fr conftest*
 
12939
 
 
12940
 
 
12941
fi
 
12942
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12943
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12944
 
 
12945
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12946
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12947
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12948
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12949
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12951
else
 
12952
          if test "$cross_compiling" = yes; then :
 
12953
  lt_cv_dlopen_self_static=cross
 
12954
else
 
12955
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12956
  lt_status=$lt_dlunknown
 
12957
  cat > conftest.$ac_ext <<EOF
 
12958
#line 12958 "configure"
 
12959
#include "confdefs.h"
 
12960
 
 
12961
#if HAVE_DLFCN_H
 
12962
#include <dlfcn.h>
 
12963
#endif
 
12964
 
 
12965
#include <stdio.h>
 
12966
 
 
12967
#ifdef RTLD_GLOBAL
 
12968
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12969
#else
 
12970
#  ifdef DL_GLOBAL
 
12971
#    define LT_DLGLOBAL         DL_GLOBAL
 
12972
#  else
 
12973
#    define LT_DLGLOBAL         0
 
12974
#  endif
 
12975
#endif
 
12976
 
 
12977
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12978
   find out it does not work in some platform. */
 
12979
#ifndef LT_DLLAZY_OR_NOW
 
12980
#  ifdef RTLD_LAZY
 
12981
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12982
#  else
 
12983
#    ifdef DL_LAZY
 
12984
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12985
#    else
 
12986
#      ifdef RTLD_NOW
 
12987
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12988
#      else
 
12989
#        ifdef DL_NOW
 
12990
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12991
#        else
 
12992
#          define LT_DLLAZY_OR_NOW      0
 
12993
#        endif
 
12994
#      endif
 
12995
#    endif
 
12996
#  endif
 
12997
#endif
 
12998
 
 
12999
#ifdef __cplusplus
 
13000
extern "C" void exit (int);
 
13001
#endif
 
13002
 
 
13003
void fnord() { int i=42;}
 
13004
int main ()
 
13005
{
 
13006
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13007
  int status = $lt_dlunknown;
 
13008
 
 
13009
  if (self)
 
13010
    {
 
13011
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13012
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13013
      /* dlclose (self); */
 
13014
    }
 
13015
 
 
13016
    exit (status);
 
13017
}
 
13018
EOF
 
13019
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13020
  (eval $ac_link) 2>&5
 
13021
  ac_status=$?
 
13022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13023
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13024
    (./conftest; exit; ) >&5 2>/dev/null
 
13025
    lt_status=$?
 
13026
    case x$lt_status in
 
13027
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13028
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13029
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13030
    esac
 
13031
  else :
 
13032
    # compilation failed
 
13033
    lt_cv_dlopen_self_static=no
 
13034
  fi
 
13035
fi
 
13036
rm -fr conftest*
 
13037
 
 
13038
 
 
13039
fi
 
13040
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13041
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13042
    fi
 
13043
 
 
13044
    CPPFLAGS="$save_CPPFLAGS"
 
13045
    LDFLAGS="$save_LDFLAGS"
 
13046
    LIBS="$save_LIBS"
 
13047
    ;;
 
13048
  esac
 
13049
 
 
13050
  case $lt_cv_dlopen_self in
 
13051
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13052
  *) enable_dlopen_self=unknown ;;
 
13053
  esac
 
13054
 
 
13055
  case $lt_cv_dlopen_self_static in
 
13056
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13057
  *) enable_dlopen_self_static=unknown ;;
 
13058
  esac
 
13059
fi
 
13060
 
 
13061
 
 
13062
# The else clause should only fire when bootstrapping the
 
13063
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13064
# with your package, and you will get complaints that there are
 
13065
# no rules to generate ltmain.sh.
 
13066
if test -f "$ltmain"; then
 
13067
  # See if we are running on zsh, and set the options which allow our commands through
 
13068
  # without removal of \ escapes.
 
13069
  if test -n "${ZSH_VERSION+set}" ; then
 
13070
    setopt NO_GLOB_SUBST
 
13071
  fi
 
13072
  # Now quote all the things that may contain metacharacters while being
 
13073
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13074
  # variables and quote the copies for generation of the libtool script.
 
13075
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13076
    SED SHELL STRIP \
 
13077
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13078
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13079
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13080
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13081
    lt_cv_sys_global_symbol_to_c_name_address \
 
13082
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13083
    old_postinstall_cmds old_postuninstall_cmds \
 
13084
    compiler_CXX \
 
13085
    CC_CXX \
 
13086
    LD_CXX \
 
13087
    lt_prog_compiler_wl_CXX \
 
13088
    lt_prog_compiler_pic_CXX \
 
13089
    lt_prog_compiler_static_CXX \
 
13090
    lt_prog_compiler_no_builtin_flag_CXX \
 
13091
    export_dynamic_flag_spec_CXX \
 
13092
    thread_safe_flag_spec_CXX \
 
13093
    whole_archive_flag_spec_CXX \
 
13094
    enable_shared_with_static_runtimes_CXX \
 
13095
    old_archive_cmds_CXX \
 
13096
    old_archive_from_new_cmds_CXX \
 
13097
    predep_objects_CXX \
 
13098
    postdep_objects_CXX \
 
13099
    predeps_CXX \
 
13100
    postdeps_CXX \
 
13101
    compiler_lib_search_path_CXX \
 
13102
    archive_cmds_CXX \
 
13103
    archive_expsym_cmds_CXX \
 
13104
    postinstall_cmds_CXX \
 
13105
    postuninstall_cmds_CXX \
 
13106
    old_archive_from_expsyms_cmds_CXX \
 
13107
    allow_undefined_flag_CXX \
 
13108
    no_undefined_flag_CXX \
 
13109
    export_symbols_cmds_CXX \
 
13110
    hardcode_libdir_flag_spec_CXX \
 
13111
    hardcode_libdir_flag_spec_ld_CXX \
 
13112
    hardcode_libdir_separator_CXX \
 
13113
    hardcode_automatic_CXX \
 
13114
    module_cmds_CXX \
 
13115
    module_expsym_cmds_CXX \
 
13116
    lt_cv_prog_compiler_c_o_CXX \
 
13117
    exclude_expsyms_CXX \
 
13118
    include_expsyms_CXX; do
 
13119
 
 
13120
    case $var in
 
13121
    old_archive_cmds_CXX | \
 
13122
    old_archive_from_new_cmds_CXX | \
 
13123
    archive_cmds_CXX | \
 
13124
    archive_expsym_cmds_CXX | \
 
13125
    module_cmds_CXX | \
 
13126
    module_expsym_cmds_CXX | \
 
13127
    old_archive_from_expsyms_cmds_CXX | \
 
13128
    export_symbols_cmds_CXX | \
 
13129
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13130
    postinstall_cmds | postuninstall_cmds | \
 
13131
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13132
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13133
      # Double-quote double-evaled strings.
 
13134
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13135
      ;;
 
13136
    *)
 
13137
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13138
      ;;
 
13139
    esac
 
13140
  done
 
13141
 
 
13142
  case $lt_echo in
 
13143
  *'\$0 --fallback-echo"')
 
13144
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13145
    ;;
 
13146
  esac
 
13147
 
 
13148
cfgfile="$ofile"
 
13149
 
 
13150
  cat <<__EOF__ >> "$cfgfile"
 
13151
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13152
 
 
13153
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13154
 
 
13155
# Shell to use when invoking shell scripts.
 
13156
SHELL=$lt_SHELL
 
13157
 
 
13158
# Whether or not to build shared libraries.
 
13159
build_libtool_libs=$enable_shared
 
13160
 
 
13161
# Whether or not to build static libraries.
 
13162
build_old_libs=$enable_static
 
13163
 
 
13164
# Whether or not to add -lc for building shared libraries.
 
13165
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13166
 
 
13167
# Whether or not to disallow shared libs when runtime libs are static
 
13168
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13169
 
 
13170
# Whether or not to optimize for fast installation.
 
13171
fast_install=$enable_fast_install
 
13172
 
 
13173
# The host system.
 
13174
host_alias=$host_alias
 
13175
host=$host
 
13176
host_os=$host_os
 
13177
 
 
13178
# The build system.
 
13179
build_alias=$build_alias
 
13180
build=$build
 
13181
build_os=$build_os
 
13182
 
 
13183
# An echo program that does not interpret backslashes.
 
13184
echo=$lt_echo
 
13185
 
 
13186
# The archiver.
 
13187
AR=$lt_AR
 
13188
AR_FLAGS=$lt_AR_FLAGS
 
13189
 
 
13190
# A C compiler.
 
13191
LTCC=$lt_LTCC
 
13192
 
 
13193
# A language-specific compiler.
 
13194
CC=$lt_compiler_CXX
 
13195
 
 
13196
# Is the compiler the GNU C compiler?
 
13197
with_gcc=$GCC_CXX
 
13198
 
 
13199
# An ERE matcher.
 
13200
EGREP=$lt_EGREP
 
13201
 
 
13202
# The linker used to build libraries.
 
13203
LD=$lt_LD_CXX
 
13204
 
 
13205
# Whether we need hard or soft links.
 
13206
LN_S=$lt_LN_S
 
13207
 
 
13208
# A BSD-compatible nm program.
 
13209
NM=$lt_NM
 
13210
 
 
13211
# A symbol stripping program
 
13212
STRIP=$lt_STRIP
 
13213
 
 
13214
# Used to examine libraries when file_magic_cmd begins "file"
 
13215
MAGIC_CMD=$MAGIC_CMD
 
13216
 
 
13217
# Used on cygwin: DLL creation program.
 
13218
DLLTOOL="$DLLTOOL"
 
13219
 
 
13220
# Used on cygwin: object dumper.
 
13221
OBJDUMP="$OBJDUMP"
 
13222
 
 
13223
# Used on cygwin: assembler.
 
13224
AS="$AS"
 
13225
 
 
13226
# The name of the directory that contains temporary libtool files.
 
13227
objdir=$objdir
 
13228
 
 
13229
# How to create reloadable object files.
 
13230
reload_flag=$lt_reload_flag
 
13231
reload_cmds=$lt_reload_cmds
 
13232
 
 
13233
# How to pass a linker flag through the compiler.
 
13234
wl=$lt_lt_prog_compiler_wl_CXX
 
13235
 
 
13236
# Object file suffix (normally "o").
 
13237
objext="$ac_objext"
 
13238
 
 
13239
# Old archive suffix (normally "a").
 
13240
libext="$libext"
 
13241
 
 
13242
# Shared library suffix (normally ".so").
 
13243
shrext_cmds='$shrext_cmds'
 
13244
 
 
13245
# Executable file suffix (normally "").
 
13246
exeext="$exeext"
 
13247
 
 
13248
# Additional compiler flags for building library objects.
 
13249
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13250
pic_mode=$pic_mode
 
13251
 
 
13252
# What is the maximum length of a command?
 
13253
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13254
 
 
13255
# Does compiler simultaneously support -c and -o options?
 
13256
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13257
 
 
13258
# Must we lock files when doing compilation?
 
13259
need_locks=$lt_need_locks
 
13260
 
 
13261
# Do we need the lib prefix for modules?
 
13262
need_lib_prefix=$need_lib_prefix
 
13263
 
 
13264
# Do we need a version for libraries?
 
13265
need_version=$need_version
 
13266
 
 
13267
# Whether dlopen is supported.
 
13268
dlopen_support=$enable_dlopen
 
13269
 
 
13270
# Whether dlopen of programs is supported.
 
13271
dlopen_self=$enable_dlopen_self
 
13272
 
 
13273
# Whether dlopen of statically linked programs is supported.
 
13274
dlopen_self_static=$enable_dlopen_self_static
 
13275
 
 
13276
# Compiler flag to prevent dynamic linking.
 
13277
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13278
 
 
13279
# Compiler flag to turn off builtin functions.
 
13280
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13281
 
 
13282
# Compiler flag to allow reflexive dlopens.
 
13283
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13284
 
 
13285
# Compiler flag to generate shared objects directly from archives.
 
13286
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13287
 
 
13288
# Compiler flag to generate thread-safe objects.
 
13289
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13290
 
 
13291
# Library versioning type.
 
13292
version_type=$version_type
 
13293
 
 
13294
# Format of library name prefix.
 
13295
libname_spec=$lt_libname_spec
 
13296
 
 
13297
# List of archive names.  First name is the real one, the rest are links.
 
13298
# The last name is the one that the linker finds with -lNAME.
 
13299
library_names_spec=$lt_library_names_spec
 
13300
 
 
13301
# The coded name of the library, if different from the real name.
 
13302
soname_spec=$lt_soname_spec
 
13303
 
 
13304
# Commands used to build and install an old-style archive.
 
13305
RANLIB=$lt_RANLIB
 
13306
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13307
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13308
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13309
 
 
13310
# Create an old-style archive from a shared archive.
 
13311
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13312
 
 
13313
# Create a temporary old-style archive to link instead of a shared archive.
 
13314
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13315
 
 
13316
# Commands used to build and install a shared archive.
 
13317
archive_cmds=$lt_archive_cmds_CXX
 
13318
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13319
postinstall_cmds=$lt_postinstall_cmds
 
13320
postuninstall_cmds=$lt_postuninstall_cmds
 
13321
 
 
13322
# Commands used to build a loadable module (assumed same as above if empty)
 
13323
module_cmds=$lt_module_cmds_CXX
 
13324
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13325
 
 
13326
# Commands to strip libraries.
 
13327
old_striplib=$lt_old_striplib
 
13328
striplib=$lt_striplib
 
13329
 
 
13330
# Dependencies to place before the objects being linked to create a
 
13331
# shared library.
 
13332
predep_objects=$lt_predep_objects_CXX
 
13333
 
 
13334
# Dependencies to place after the objects being linked to create a
 
13335
# shared library.
 
13336
postdep_objects=$lt_postdep_objects_CXX
 
13337
 
 
13338
# Dependencies to place before the objects being linked to create a
 
13339
# shared library.
 
13340
predeps=$lt_predeps_CXX
 
13341
 
 
13342
# Dependencies to place after the objects being linked to create a
 
13343
# shared library.
 
13344
postdeps=$lt_postdeps_CXX
 
13345
 
 
13346
# The library search path used internally by the compiler when linking
 
13347
# a shared library.
 
13348
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13349
 
 
13350
# Method to check whether dependent libraries are shared objects.
 
13351
deplibs_check_method=$lt_deplibs_check_method
 
13352
 
 
13353
# Command to use when deplibs_check_method == file_magic.
 
13354
file_magic_cmd=$lt_file_magic_cmd
 
13355
 
 
13356
# Flag that allows shared libraries with undefined symbols to be built.
 
13357
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13358
 
 
13359
# Flag that forces no undefined symbols.
 
13360
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13361
 
 
13362
# Commands used to finish a libtool library installation in a directory.
 
13363
finish_cmds=$lt_finish_cmds
 
13364
 
 
13365
# Same as above, but a single script fragment to be evaled but not shown.
 
13366
finish_eval=$lt_finish_eval
 
13367
 
 
13368
# Take the output of nm and produce a listing of raw symbols and C names.
 
13369
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13370
 
 
13371
# Transform the output of nm in a proper C declaration
 
13372
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13373
 
 
13374
# Transform the output of nm in a C name address pair
 
13375
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13376
 
 
13377
# This is the shared library runtime path variable.
 
13378
runpath_var=$runpath_var
 
13379
 
 
13380
# This is the shared library path variable.
 
13381
shlibpath_var=$shlibpath_var
 
13382
 
 
13383
# Is shlibpath searched before the hard-coded library search path?
 
13384
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13385
 
 
13386
# How to hardcode a shared library path into an executable.
 
13387
hardcode_action=$hardcode_action_CXX
 
13388
 
 
13389
# Whether we should hardcode library paths into libraries.
 
13390
hardcode_into_libs=$hardcode_into_libs
 
13391
 
 
13392
# Flag to hardcode \$libdir into a binary during linking.
 
13393
# This must work even if \$libdir does not exist.
 
13394
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13395
 
 
13396
# If ld is used when linking, flag to hardcode \$libdir into
 
13397
# a binary during linking. This must work even if \$libdir does
 
13398
# not exist.
 
13399
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13400
 
 
13401
# Whether we need a single -rpath flag with a separated argument.
 
13402
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13403
 
 
13404
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13405
# resulting binary.
 
13406
hardcode_direct=$hardcode_direct_CXX
 
13407
 
 
13408
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13409
# resulting binary.
 
13410
hardcode_minus_L=$hardcode_minus_L_CXX
 
13411
 
 
13412
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13413
# the resulting binary.
 
13414
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13415
 
 
13416
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13417
# and all subsequent libraries and executables linked against it.
 
13418
hardcode_automatic=$hardcode_automatic_CXX
 
13419
 
 
13420
# Variables whose values should be saved in libtool wrapper scripts and
 
13421
# restored at relink time.
 
13422
variables_saved_for_relink="$variables_saved_for_relink"
 
13423
 
 
13424
# Whether libtool must link a program against all its dependency libraries.
 
13425
link_all_deplibs=$link_all_deplibs_CXX
 
13426
 
 
13427
# Compile-time system search path for libraries
 
13428
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13429
 
 
13430
# Run-time system search path for libraries
 
13431
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13432
 
 
13433
# Fix the shell variable \$srcfile for the compiler.
 
13434
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13435
 
 
13436
# Set to yes if exported symbols are required.
 
13437
always_export_symbols=$always_export_symbols_CXX
 
13438
 
 
13439
# The commands to list exported symbols.
 
13440
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13441
 
 
13442
# The commands to extract the exported symbol list from a shared archive.
 
13443
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13444
 
 
13445
# Symbols that should not be listed in the preloaded symbols.
 
13446
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13447
 
 
13448
# Symbols that must always be exported.
 
13449
include_expsyms=$lt_include_expsyms_CXX
 
13450
 
 
13451
# ### END LIBTOOL TAG CONFIG: $tagname
 
13452
 
 
13453
__EOF__
 
13454
 
 
13455
 
 
13456
else
 
13457
  # If there is no Makefile yet, we rely on a make rule to execute
 
13458
  # `config.status --recheck' to rerun these tests and create the
 
13459
  # libtool script then.
 
13460
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13461
  if test -f "$ltmain_in"; then
 
13462
    test -f Makefile && make "$ltmain"
 
13463
  fi
 
13464
fi
 
13465
 
 
13466
 
 
13467
ac_ext=c
 
13468
ac_cpp='$CPP $CPPFLAGS'
 
13469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13472
 
 
13473
CC=$lt_save_CC
 
13474
LDCXX=$LD
 
13475
LD=$lt_save_LD
 
13476
GCC=$lt_save_GCC
 
13477
with_gnu_ldcxx=$with_gnu_ld
 
13478
with_gnu_ld=$lt_save_with_gnu_ld
 
13479
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13480
lt_cv_path_LD=$lt_save_path_LD
 
13481
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13482
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13483
 
 
13484
        else
 
13485
          tagname=""
 
13486
        fi
 
13487
        ;;
 
13488
 
 
13489
      F77)
 
13490
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13491
 
 
13492
ac_ext=f
 
13493
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13494
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13495
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13496
 
 
13497
 
 
13498
archive_cmds_need_lc_F77=no
 
13499
allow_undefined_flag_F77=
 
13500
always_export_symbols_F77=no
 
13501
archive_expsym_cmds_F77=
 
13502
export_dynamic_flag_spec_F77=
 
13503
hardcode_direct_F77=no
 
13504
hardcode_libdir_flag_spec_F77=
 
13505
hardcode_libdir_flag_spec_ld_F77=
 
13506
hardcode_libdir_separator_F77=
 
13507
hardcode_minus_L_F77=no
 
13508
hardcode_automatic_F77=no
 
13509
module_cmds_F77=
 
13510
module_expsym_cmds_F77=
 
13511
link_all_deplibs_F77=unknown
 
13512
old_archive_cmds_F77=$old_archive_cmds
 
13513
no_undefined_flag_F77=
 
13514
whole_archive_flag_spec_F77=
 
13515
enable_shared_with_static_runtimes_F77=no
 
13516
 
 
13517
# Source file extension for f77 test sources.
 
13518
ac_ext=f
 
13519
 
 
13520
# Object file extension for compiled f77 test sources.
 
13521
objext=o
 
13522
objext_F77=$objext
 
13523
 
 
13524
# Code to be used in simple compile tests
 
13525
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13526
 
 
13527
# Code to be used in simple link tests
 
13528
lt_simple_link_test_code="      program t\n      end\n"
 
13529
 
 
13530
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13531
 
 
13532
# If no C compiler was specified, use CC.
 
13533
LTCC=${LTCC-"$CC"}
 
13534
 
 
13535
# Allow CC to be a program name with arguments.
 
13536
compiler=$CC
 
13537
 
 
13538
 
 
13539
# save warnings/boilerplate of simple test code
 
13540
ac_outfile=conftest.$ac_objext
 
13541
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13542
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13543
_lt_compiler_boilerplate=`cat conftest.err`
 
13544
$rm conftest*
 
13545
 
 
13546
ac_outfile=conftest.$ac_objext
 
13547
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13548
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13549
_lt_linker_boilerplate=`cat conftest.err`
 
13550
$rm conftest*
 
13551
 
 
13552
 
 
13553
# Allow CC to be a program name with arguments.
 
13554
lt_save_CC="$CC"
 
13555
CC=${F77-"f77"}
 
13556
compiler=$CC
 
13557
compiler_F77=$CC
 
13558
for cc_temp in $compiler""; do
 
13559
  case $cc_temp in
 
13560
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13561
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13562
    \-*) ;;
 
13563
    *) break;;
 
13564
  esac
 
13565
done
 
13566
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13567
 
 
13568
 
 
13569
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13570
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13571
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13572
echo "${ECHO_T}$can_build_shared" >&6
 
13573
 
 
13574
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13575
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13576
test "$can_build_shared" = "no" && enable_shared=no
 
13577
 
 
13578
# On AIX, shared libraries and static libraries use the same namespace, and
 
13579
# are all built from PIC.
 
13580
case $host_os in
 
13581
aix3*)
 
13582
  test "$enable_shared" = yes && enable_static=no
 
13583
  if test -n "$RANLIB"; then
 
13584
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13585
    postinstall_cmds='$RANLIB $lib'
 
13586
  fi
 
13587
  ;;
 
13588
aix4* | aix5*)
 
13589
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13590
    test "$enable_shared" = yes && enable_static=no
 
13591
  fi
 
13592
  ;;
 
13593
esac
 
13594
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13595
echo "${ECHO_T}$enable_shared" >&6
 
13596
 
 
13597
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13598
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13599
# Make sure either enable_shared or enable_static is yes.
 
13600
test "$enable_shared" = yes || enable_static=yes
 
13601
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13602
echo "${ECHO_T}$enable_static" >&6
 
13603
 
 
13604
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13605
 
 
13606
GCC_F77="$G77"
 
13607
LD_F77="$LD"
 
13608
 
 
13609
lt_prog_compiler_wl_F77=
 
13610
lt_prog_compiler_pic_F77=
 
13611
lt_prog_compiler_static_F77=
 
13612
 
 
13613
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13614
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13615
 
 
13616
  if test "$GCC" = yes; then
 
13617
    lt_prog_compiler_wl_F77='-Wl,'
 
13618
    lt_prog_compiler_static_F77='-static'
 
13619
 
 
13620
    case $host_os in
 
13621
      aix*)
 
13622
      # All AIX code is PIC.
 
13623
      if test "$host_cpu" = ia64; then
 
13624
        # AIX 5 now supports IA64 processor
 
13625
        lt_prog_compiler_static_F77='-Bstatic'
 
13626
      fi
 
13627
      ;;
 
13628
 
 
13629
    amigaos*)
 
13630
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13631
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13632
      # like `-m68040'.
 
13633
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13634
      ;;
 
13635
 
 
13636
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13637
      # PIC is the default for these OSes.
 
13638
      ;;
 
13639
 
 
13640
    mingw* | pw32* | os2*)
 
13641
      # This hack is so that the source file can tell whether it is being
 
13642
      # built for inclusion in a dll (and should export symbols for example).
 
13643
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13644
      ;;
 
13645
 
 
13646
    darwin* | rhapsody*)
 
13647
      # PIC is the default on this platform
 
13648
      # Common symbols not allowed in MH_DYLIB files
 
13649
      lt_prog_compiler_pic_F77='-fno-common'
 
13650
      ;;
 
13651
 
 
13652
    msdosdjgpp*)
 
13653
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13654
      # on systems that don't support them.
 
13655
      lt_prog_compiler_can_build_shared_F77=no
 
13656
      enable_shared=no
 
13657
      ;;
 
13658
 
 
13659
    sysv4*MP*)
 
13660
      if test -d /usr/nec; then
 
13661
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13662
      fi
 
13663
      ;;
 
13664
 
 
13665
    hpux*)
 
13666
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13667
      # not for PA HP-UX.
 
13668
      case $host_cpu in
 
13669
      hppa*64*|ia64*)
 
13670
        # +Z the default
 
13671
        ;;
 
13672
      *)
 
13673
        lt_prog_compiler_pic_F77='-fPIC'
 
13674
        ;;
 
13675
      esac
 
13676
      ;;
 
13677
 
 
13678
    *)
 
13679
      lt_prog_compiler_pic_F77='-fPIC'
 
13680
      ;;
 
13681
    esac
 
13682
  else
 
13683
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13684
    case $host_os in
 
13685
    aix*)
 
13686
      lt_prog_compiler_wl_F77='-Wl,'
 
13687
      if test "$host_cpu" = ia64; then
 
13688
        # AIX 5 now supports IA64 processor
 
13689
        lt_prog_compiler_static_F77='-Bstatic'
 
13690
      else
 
13691
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13692
      fi
 
13693
      ;;
 
13694
      darwin*)
 
13695
        # PIC is the default on this platform
 
13696
        # Common symbols not allowed in MH_DYLIB files
 
13697
       case $cc_basename in
 
13698
         xlc*)
 
13699
         lt_prog_compiler_pic_F77='-qnocommon'
 
13700
         lt_prog_compiler_wl_F77='-Wl,'
 
13701
         ;;
 
13702
       esac
 
13703
       ;;
 
13704
 
 
13705
    mingw* | pw32* | os2*)
 
13706
      # This hack is so that the source file can tell whether it is being
 
13707
      # built for inclusion in a dll (and should export symbols for example).
 
13708
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13709
      ;;
 
13710
 
 
13711
    hpux9* | hpux10* | hpux11*)
 
13712
      lt_prog_compiler_wl_F77='-Wl,'
 
13713
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13714
      # not for PA HP-UX.
 
13715
      case $host_cpu in
 
13716
      hppa*64*|ia64*)
 
13717
        # +Z the default
 
13718
        ;;
 
13719
      *)
 
13720
        lt_prog_compiler_pic_F77='+Z'
 
13721
        ;;
 
13722
      esac
 
13723
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13724
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13725
      ;;
 
13726
 
 
13727
    irix5* | irix6* | nonstopux*)
 
13728
      lt_prog_compiler_wl_F77='-Wl,'
 
13729
      # PIC (with -KPIC) is the default.
 
13730
      lt_prog_compiler_static_F77='-non_shared'
 
13731
      ;;
 
13732
 
 
13733
    newsos6)
 
13734
      lt_prog_compiler_pic_F77='-KPIC'
 
13735
      lt_prog_compiler_static_F77='-Bstatic'
 
13736
      ;;
 
13737
 
 
13738
    linux*)
 
13739
      case $cc_basename in
 
13740
      icc* | ecc*)
 
13741
        lt_prog_compiler_wl_F77='-Wl,'
 
13742
        lt_prog_compiler_pic_F77='-KPIC'
 
13743
        lt_prog_compiler_static_F77='-static'
 
13744
        ;;
 
13745
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13746
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13747
        # which looks to be a dead project)
 
13748
        lt_prog_compiler_wl_F77='-Wl,'
 
13749
        lt_prog_compiler_pic_F77='-fpic'
 
13750
        lt_prog_compiler_static_F77='-Bstatic'
 
13751
        ;;
 
13752
      ccc*)
 
13753
        lt_prog_compiler_wl_F77='-Wl,'
 
13754
        # All Alpha code is PIC.
 
13755
        lt_prog_compiler_static_F77='-non_shared'
 
13756
        ;;
 
13757
      esac
 
13758
      ;;
 
13759
 
 
13760
    osf3* | osf4* | osf5*)
 
13761
      lt_prog_compiler_wl_F77='-Wl,'
 
13762
      # All OSF/1 code is PIC.
 
13763
      lt_prog_compiler_static_F77='-non_shared'
 
13764
      ;;
 
13765
 
 
13766
    sco3.2v5*)
 
13767
      lt_prog_compiler_pic_F77='-Kpic'
 
13768
      lt_prog_compiler_static_F77='-dn'
 
13769
      ;;
 
13770
 
 
13771
    solaris*)
 
13772
      lt_prog_compiler_pic_F77='-KPIC'
 
13773
      lt_prog_compiler_static_F77='-Bstatic'
 
13774
      case $cc_basename in
 
13775
      f77* | f90* | f95*)
 
13776
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13777
      *)
 
13778
        lt_prog_compiler_wl_F77='-Wl,';;
 
13779
      esac
 
13780
      ;;
 
13781
 
 
13782
    sunos4*)
 
13783
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13784
      lt_prog_compiler_pic_F77='-PIC'
 
13785
      lt_prog_compiler_static_F77='-Bstatic'
 
13786
      ;;
 
13787
 
 
13788
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13789
      lt_prog_compiler_wl_F77='-Wl,'
 
13790
      lt_prog_compiler_pic_F77='-KPIC'
 
13791
      lt_prog_compiler_static_F77='-Bstatic'
 
13792
      ;;
 
13793
 
 
13794
    sysv4*MP*)
 
13795
      if test -d /usr/nec ;then
 
13796
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13797
        lt_prog_compiler_static_F77='-Bstatic'
 
13798
      fi
 
13799
      ;;
 
13800
 
 
13801
    unicos*)
 
13802
      lt_prog_compiler_wl_F77='-Wl,'
 
13803
      lt_prog_compiler_can_build_shared_F77=no
 
13804
      ;;
 
13805
 
 
13806
    uts4*)
 
13807
      lt_prog_compiler_pic_F77='-pic'
 
13808
      lt_prog_compiler_static_F77='-Bstatic'
 
13809
      ;;
 
13810
 
 
13811
    *)
 
13812
      lt_prog_compiler_can_build_shared_F77=no
 
13813
      ;;
 
13814
    esac
 
13815
  fi
 
13816
 
 
13817
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13818
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13819
 
 
13820
#
 
13821
# Check to make sure the PIC flag actually works.
 
13822
#
 
13823
if test -n "$lt_prog_compiler_pic_F77"; then
 
13824
 
 
13825
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13826
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13827
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13828
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13829
else
 
13830
  lt_prog_compiler_pic_works_F77=no
 
13831
  ac_outfile=conftest.$ac_objext
 
13832
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13833
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13834
   # Insert the option either (1) after the last *FLAGS variable, or
 
13835
   # (2) before a word containing "conftest.", or (3) at the end.
 
13836
   # Note that $ac_compile itself does not contain backslashes and begins
 
13837
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13838
   # The option is referenced via a variable to avoid confusing sed.
 
13839
   lt_compile=`echo "$ac_compile" | $SED \
 
13840
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13841
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13842
   -e 's:$: $lt_compiler_flag:'`
 
13843
   (eval echo "\"\$as_me:13843: $lt_compile\"" >&5)
 
13844
   (eval "$lt_compile" 2>conftest.err)
 
13845
   ac_status=$?
 
13846
   cat conftest.err >&5
 
13847
   echo "$as_me:13847: \$? = $ac_status" >&5
 
13848
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13849
     # The compiler can only warn and ignore the option if not recognized
 
13850
     # So say no if there are warnings other than the usual output.
 
13851
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
13852
     $SED '/^$/d' conftest.err >conftest.er2
 
13853
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
13854
       lt_prog_compiler_pic_works_F77=yes
 
13855
     fi
 
13856
   fi
 
13857
   $rm conftest*
 
13858
 
 
13859
fi
 
13860
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13861
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13862
 
 
13863
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13864
    case $lt_prog_compiler_pic_F77 in
 
13865
     "" | " "*) ;;
 
13866
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13867
     esac
 
13868
else
 
13869
    lt_prog_compiler_pic_F77=
 
13870
     lt_prog_compiler_can_build_shared_F77=no
 
13871
fi
 
13872
 
 
13873
fi
 
13874
case $host_os in
 
13875
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13876
  *djgpp*)
 
13877
    lt_prog_compiler_pic_F77=
 
13878
    ;;
 
13879
  *)
 
13880
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13881
    ;;
 
13882
esac
 
13883
 
 
13884
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13885
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13886
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13888
else
 
13889
  lt_cv_prog_compiler_c_o_F77=no
 
13890
   $rm -r conftest 2>/dev/null
 
13891
   mkdir conftest
 
13892
   cd conftest
 
13893
   mkdir out
 
13894
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13895
 
 
13896
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13897
   # Insert the option either (1) after the last *FLAGS variable, or
 
13898
   # (2) before a word containing "conftest.", or (3) at the end.
 
13899
   # Note that $ac_compile itself does not contain backslashes and begins
 
13900
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13901
   lt_compile=`echo "$ac_compile" | $SED \
 
13902
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13903
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13904
   -e 's:$: $lt_compiler_flag:'`
 
13905
   (eval echo "\"\$as_me:13905: $lt_compile\"" >&5)
 
13906
   (eval "$lt_compile" 2>out/conftest.err)
 
13907
   ac_status=$?
 
13908
   cat out/conftest.err >&5
 
13909
   echo "$as_me:13909: \$? = $ac_status" >&5
 
13910
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13911
   then
 
13912
     # The compiler can only warn and ignore the option if not recognized
 
13913
     # So say no if there are warnings
 
13914
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
13915
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
13916
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13917
       lt_cv_prog_compiler_c_o_F77=yes
 
13918
     fi
 
13919
   fi
 
13920
   chmod u+w . 2>&5
 
13921
   $rm conftest*
 
13922
   # SGI C++ compiler will create directory out/ii_files/ for
 
13923
   # template instantiation
 
13924
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13925
   $rm out/* && rmdir out
 
13926
   cd ..
 
13927
   rmdir conftest
 
13928
   $rm conftest*
 
13929
 
 
13930
fi
 
13931
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13932
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13933
 
 
13934
 
 
13935
hard_links="nottested"
 
13936
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13937
  # do not overwrite the value of need_locks provided by the user
 
13938
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13939
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13940
  hard_links=yes
 
13941
  $rm conftest*
 
13942
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13943
  touch conftest.a
 
13944
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13945
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13946
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13947
echo "${ECHO_T}$hard_links" >&6
 
13948
  if test "$hard_links" = no; then
 
13949
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13950
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13951
    need_locks=warn
 
13952
  fi
 
13953
else
 
13954
  need_locks=no
 
13955
fi
 
13956
 
 
13957
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13958
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13959
 
 
13960
  runpath_var=
 
13961
  allow_undefined_flag_F77=
 
13962
  enable_shared_with_static_runtimes_F77=no
 
13963
  archive_cmds_F77=
 
13964
  archive_expsym_cmds_F77=
 
13965
  old_archive_From_new_cmds_F77=
 
13966
  old_archive_from_expsyms_cmds_F77=
 
13967
  export_dynamic_flag_spec_F77=
 
13968
  whole_archive_flag_spec_F77=
 
13969
  thread_safe_flag_spec_F77=
 
13970
  hardcode_libdir_flag_spec_F77=
 
13971
  hardcode_libdir_flag_spec_ld_F77=
 
13972
  hardcode_libdir_separator_F77=
 
13973
  hardcode_direct_F77=no
 
13974
  hardcode_minus_L_F77=no
 
13975
  hardcode_shlibpath_var_F77=unsupported
 
13976
  link_all_deplibs_F77=unknown
 
13977
  hardcode_automatic_F77=no
 
13978
  module_cmds_F77=
 
13979
  module_expsym_cmds_F77=
 
13980
  always_export_symbols_F77=no
 
13981
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13982
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13983
  # included in the symbol list
 
13984
  include_expsyms_F77=
 
13985
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13986
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13987
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13988
  # as well as any symbol that contains `d'.
 
13989
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13990
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13991
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13992
  # the symbol is explicitly referenced.  Since portable code cannot
 
13993
  # rely on this symbol name, it's probably fine to never include it in
 
13994
  # preloaded symbol tables.
 
13995
  extract_expsyms_cmds=
 
13996
  # Just being paranoid about ensuring that cc_basename is set.
 
13997
  for cc_temp in $compiler""; do
 
13998
  case $cc_temp in
 
13999
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14000
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14001
    \-*) ;;
 
14002
    *) break;;
 
14003
  esac
 
14004
done
 
14005
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14006
 
 
14007
  case $host_os in
 
14008
  cygwin* | mingw* | pw32*)
 
14009
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14010
    # When not using gcc, we currently assume that we are using
 
14011
    # Microsoft Visual C++.
 
14012
    if test "$GCC" != yes; then
 
14013
      with_gnu_ld=no
 
14014
    fi
 
14015
    ;;
 
14016
  openbsd*)
 
14017
    with_gnu_ld=no
 
14018
    ;;
 
14019
  esac
 
14020
 
 
14021
  ld_shlibs_F77=yes
 
14022
  if test "$with_gnu_ld" = yes; then
 
14023
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14024
    wlarc='${wl}'
 
14025
 
 
14026
    # Set some defaults for GNU ld with shared library support. These
 
14027
    # are reset later if shared libraries are not supported. Putting them
 
14028
    # here allows them to be overridden if necessary.
 
14029
    runpath_var=LD_RUN_PATH
 
14030
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14031
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14032
    # ancient GNU ld didn't support --whole-archive et. al.
 
14033
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14034
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14035
      else
 
14036
        whole_archive_flag_spec_F77=
 
14037
    fi
 
14038
    supports_anon_versioning=no
 
14039
    case `$LD -v 2>/dev/null` in
 
14040
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14041
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14042
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14043
      *\ 2.11.*) ;; # other 2.11 versions
 
14044
      *) supports_anon_versioning=yes ;;
 
14045
    esac
 
14046
 
 
14047
    # See if GNU ld supports shared libraries.
 
14048
    case $host_os in
 
14049
    aix3* | aix4* | aix5*)
 
14050
      # On AIX/PPC, the GNU linker is very broken
 
14051
      if test "$host_cpu" != ia64; then
 
14052
        ld_shlibs_F77=no
 
14053
        cat <<EOF 1>&2
 
14054
 
 
14055
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14056
*** to be unable to reliably create shared libraries on AIX.
 
14057
*** Therefore, libtool is disabling shared libraries support.  If you
 
14058
*** really care for shared libraries, you may want to modify your PATH
 
14059
*** so that a non-GNU linker is found, and then restart.
 
14060
 
 
14061
EOF
 
14062
      fi
 
14063
      ;;
 
14064
 
 
14065
    amigaos*)
 
14066
      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)'
 
14067
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14068
      hardcode_minus_L_F77=yes
 
14069
 
 
14070
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14071
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14072
      # to version 4, is to share data among multiple programs linked
 
14073
      # with the same dynamic library.  Since this doesn't match the
 
14074
      # behavior of shared libraries on other platforms, we can't use
 
14075
      # them.
 
14076
      ld_shlibs_F77=no
 
14077
      ;;
 
14078
 
 
14079
    beos*)
 
14080
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14081
        allow_undefined_flag_F77=unsupported
 
14082
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14083
        # support --undefined.  This deserves some investigation.  FIXME
 
14084
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14085
      else
 
14086
        ld_shlibs_F77=no
 
14087
      fi
 
14088
      ;;
 
14089
 
 
14090
    cygwin* | mingw* | pw32*)
 
14091
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14092
      # as there is no search path for DLLs.
 
14093
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14094
      allow_undefined_flag_F77=unsupported
 
14095
      always_export_symbols_F77=no
 
14096
      enable_shared_with_static_runtimes_F77=yes
 
14097
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14098
 
 
14099
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14100
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14101
        # If the export-symbols file already is a .def file (1st line
 
14102
        # is EXPORTS), use it as is; otherwise, prepend...
 
14103
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14104
          cp $export_symbols $output_objdir/$soname.def;
 
14105
        else
 
14106
          echo EXPORTS > $output_objdir/$soname.def;
 
14107
          cat $export_symbols >> $output_objdir/$soname.def;
 
14108
        fi~
 
14109
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14110
      else
 
14111
        ld_shlibs_F77=no
 
14112
      fi
 
14113
      ;;
 
14114
 
 
14115
    linux*)
 
14116
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14117
        tmp_addflag=
 
14118
        case $cc_basename,$host_cpu in
 
14119
        pgcc*)                          # Portland Group C compiler
 
14120
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14121
          tmp_addflag=' $pic_flag'
 
14122
          ;;
 
14123
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14124
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14125
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14126
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14127
          tmp_addflag=' -i_dynamic' ;;
 
14128
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14129
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14130
        ifc* | ifort*)                  # Intel Fortran compiler
 
14131
          tmp_addflag=' -nofor_main' ;;
 
14132
        esac
 
14133
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14134
 
 
14135
        if test $supports_anon_versioning = yes; then
 
14136
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14137
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14138
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14139
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14140
        fi
 
14141
      else
 
14142
        ld_shlibs_F77=no
 
14143
      fi
 
14144
      ;;
 
14145
 
 
14146
    netbsd*)
 
14147
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14148
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14149
        wlarc=
 
14150
      else
 
14151
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14152
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14153
      fi
 
14154
      ;;
 
14155
 
 
14156
    solaris* | sysv5*)
 
14157
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14158
        ld_shlibs_F77=no
 
14159
        cat <<EOF 1>&2
 
14160
 
 
14161
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14162
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14163
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14164
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14165
*** your PATH or compiler configuration so that the native linker is
 
14166
*** used, and then restart.
 
14167
 
 
14168
EOF
 
14169
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14170
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14171
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14172
      else
 
14173
        ld_shlibs_F77=no
 
14174
      fi
 
14175
      ;;
 
14176
 
 
14177
    sunos4*)
 
14178
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14179
      wlarc=
 
14180
      hardcode_direct_F77=yes
 
14181
      hardcode_shlibpath_var_F77=no
 
14182
      ;;
 
14183
 
 
14184
    *)
 
14185
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14186
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14187
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14188
      else
 
14189
        ld_shlibs_F77=no
 
14190
      fi
 
14191
      ;;
 
14192
    esac
 
14193
 
 
14194
    if test "$ld_shlibs_F77" = no; then
 
14195
      runpath_var=
 
14196
      hardcode_libdir_flag_spec_F77=
 
14197
      export_dynamic_flag_spec_F77=
 
14198
      whole_archive_flag_spec_F77=
 
14199
    fi
 
14200
  else
 
14201
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14202
    case $host_os in
 
14203
    aix3*)
 
14204
      allow_undefined_flag_F77=unsupported
 
14205
      always_export_symbols_F77=yes
 
14206
      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'
 
14207
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14208
      # are no directories specified by -L.
 
14209
      hardcode_minus_L_F77=yes
 
14210
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14211
        # Neither direct hardcoding nor static linking is supported with a
 
14212
        # broken collect2.
 
14213
        hardcode_direct_F77=unsupported
 
14214
      fi
 
14215
      ;;
 
14216
 
 
14217
    aix4* | aix5*)
 
14218
      if test "$host_cpu" = ia64; then
 
14219
        # On IA64, the linker does run time linking by default, so we don't
 
14220
        # have to do anything special.
 
14221
        aix_use_runtimelinking=no
 
14222
        exp_sym_flag='-Bexport'
 
14223
        no_entry_flag=""
 
14224
      else
 
14225
        # If we're using GNU nm, then we don't want the "-C" option.
 
14226
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14227
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14228
          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'
 
14229
        else
 
14230
          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'
 
14231
        fi
 
14232
        aix_use_runtimelinking=no
 
14233
 
 
14234
        # Test if we are trying to use run time linking or normal
 
14235
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14236
        # need to do runtime linking.
 
14237
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14238
          for ld_flag in $LDFLAGS; do
 
14239
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14240
            aix_use_runtimelinking=yes
 
14241
            break
 
14242
          fi
 
14243
          done
 
14244
        esac
 
14245
 
 
14246
        exp_sym_flag='-bexport'
 
14247
        no_entry_flag='-bnoentry'
 
14248
      fi
 
14249
 
 
14250
      # When large executables or shared objects are built, AIX ld can
 
14251
      # have problems creating the table of contents.  If linking a library
 
14252
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14253
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14254
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14255
 
 
14256
      archive_cmds_F77=''
 
14257
      hardcode_direct_F77=yes
 
14258
      hardcode_libdir_separator_F77=':'
 
14259
      link_all_deplibs_F77=yes
 
14260
 
 
14261
      if test "$GCC" = yes; then
 
14262
        case $host_os in aix4.[012]|aix4.[012].*)
 
14263
        # We only want to do this on AIX 4.2 and lower, the check
 
14264
        # below for broken collect2 doesn't work under 4.3+
 
14265
          collect2name=`${CC} -print-prog-name=collect2`
 
14266
          if test -f "$collect2name" && \
 
14267
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14268
          then
 
14269
          # We have reworked collect2
 
14270
          hardcode_direct_F77=yes
 
14271
          else
 
14272
          # We have old collect2
 
14273
          hardcode_direct_F77=unsupported
 
14274
          # It fails to find uninstalled libraries when the uninstalled
 
14275
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14276
          # to unsupported forces relinking
 
14277
          hardcode_minus_L_F77=yes
 
14278
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14279
          hardcode_libdir_separator_F77=
 
14280
          fi
 
14281
        esac
 
14282
        shared_flag='-shared'
 
14283
        if test "$aix_use_runtimelinking" = yes; then
 
14284
          shared_flag="$shared_flag "'${wl}-G'
 
14285
        fi
 
14286
      else
 
14287
        # not using gcc
 
14288
        if test "$host_cpu" = ia64; then
 
14289
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14290
        # chokes on -Wl,-G. The following line is correct:
 
14291
          shared_flag='-G'
 
14292
        else
 
14293
        if test "$aix_use_runtimelinking" = yes; then
 
14294
            shared_flag='${wl}-G'
 
14295
          else
 
14296
            shared_flag='${wl}-bM:SRE'
 
14297
        fi
 
14298
        fi
 
14299
      fi
 
14300
 
 
14301
      # It seems that -bexpall does not export symbols beginning with
 
14302
      # underscore (_), so it is better to generate a list of symbols to export.
 
14303
      always_export_symbols_F77=yes
 
14304
      if test "$aix_use_runtimelinking" = yes; then
 
14305
        # Warning - without using the other runtime loading flags (-brtl),
 
14306
        # -berok will link without error, but may produce a broken library.
 
14307
        allow_undefined_flag_F77='-berok'
 
14308
       # Determine the default libpath from the value encoded in an empty executable.
 
14309
       cat >conftest.$ac_ext <<_ACEOF
 
14310
      program main
 
14311
 
 
14312
      end
 
14313
_ACEOF
 
14314
rm -f conftest.$ac_objext conftest$ac_exeext
 
14315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14316
  (eval $ac_link) 2>conftest.er1
 
14317
  ac_status=$?
 
14318
  grep -v '^ *+' conftest.er1 >conftest.err
 
14319
  rm -f conftest.er1
 
14320
  cat conftest.err >&5
 
14321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14322
  (exit $ac_status); } &&
 
14323
         { ac_try='test -z "$ac_f77_werror_flag"
 
14324
                         || test ! -s conftest.err'
 
14325
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14326
  (eval $ac_try) 2>&5
 
14327
  ac_status=$?
 
14328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14329
  (exit $ac_status); }; } &&
 
14330
         { ac_try='test -s conftest$ac_exeext'
 
14331
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14332
  (eval $ac_try) 2>&5
 
14333
  ac_status=$?
 
14334
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14335
  (exit $ac_status); }; }; then
 
14336
 
 
14337
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14338
}'`
 
14339
# Check for a 64-bit object if we didn't find anything.
 
14340
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; }
 
14341
}'`; fi
 
14342
else
 
14343
  echo "$as_me: failed program was:" >&5
 
14344
sed 's/^/| /' conftest.$ac_ext >&5
 
14345
 
 
14346
fi
 
14347
rm -f conftest.err conftest.$ac_objext \
 
14348
      conftest$ac_exeext conftest.$ac_ext
 
14349
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14350
 
 
14351
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14352
        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"
 
14353
       else
 
14354
        if test "$host_cpu" = ia64; then
 
14355
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14356
          allow_undefined_flag_F77="-z nodefs"
 
14357
          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"
 
14358
        else
 
14359
         # Determine the default libpath from the value encoded in an empty executable.
 
14360
         cat >conftest.$ac_ext <<_ACEOF
 
14361
      program main
 
14362
 
 
14363
      end
 
14364
_ACEOF
 
14365
rm -f conftest.$ac_objext conftest$ac_exeext
 
14366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14367
  (eval $ac_link) 2>conftest.er1
 
14368
  ac_status=$?
 
14369
  grep -v '^ *+' conftest.er1 >conftest.err
 
14370
  rm -f conftest.er1
 
14371
  cat conftest.err >&5
 
14372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14373
  (exit $ac_status); } &&
 
14374
         { ac_try='test -z "$ac_f77_werror_flag"
 
14375
                         || test ! -s conftest.err'
 
14376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14377
  (eval $ac_try) 2>&5
 
14378
  ac_status=$?
 
14379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14380
  (exit $ac_status); }; } &&
 
14381
         { ac_try='test -s conftest$ac_exeext'
 
14382
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14383
  (eval $ac_try) 2>&5
 
14384
  ac_status=$?
 
14385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14386
  (exit $ac_status); }; }; then
 
14387
 
 
14388
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14389
}'`
 
14390
# Check for a 64-bit object if we didn't find anything.
 
14391
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; }
 
14392
}'`; fi
 
14393
else
 
14394
  echo "$as_me: failed program was:" >&5
 
14395
sed 's/^/| /' conftest.$ac_ext >&5
 
14396
 
 
14397
fi
 
14398
rm -f conftest.err conftest.$ac_objext \
 
14399
      conftest$ac_exeext conftest.$ac_ext
 
14400
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14401
 
 
14402
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14403
          # Warning - without using the other run time loading flags,
 
14404
          # -berok will link without error, but may produce a broken library.
 
14405
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14406
          allow_undefined_flag_F77=' ${wl}-berok'
 
14407
          # -bexpall does not export symbols beginning with underscore (_)
 
14408
          always_export_symbols_F77=yes
 
14409
          # Exported symbols can be pulled into shared objects from archives
 
14410
          whole_archive_flag_spec_F77=' '
 
14411
          archive_cmds_need_lc_F77=yes
 
14412
          # This is similar to how AIX traditionally builds its shared libraries.
 
14413
          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'
 
14414
        fi
 
14415
      fi
 
14416
      ;;
 
14417
 
 
14418
    amigaos*)
 
14419
      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)'
 
14420
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14421
      hardcode_minus_L_F77=yes
 
14422
      # see comment about different semantics on the GNU ld section
 
14423
      ld_shlibs_F77=no
 
14424
      ;;
 
14425
 
 
14426
    bsdi[45]*)
 
14427
      export_dynamic_flag_spec_F77=-rdynamic
 
14428
      ;;
 
14429
 
 
14430
    cygwin* | mingw* | pw32*)
 
14431
      # When not using gcc, we currently assume that we are using
 
14432
      # Microsoft Visual C++.
 
14433
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14434
      # no search path for DLLs.
 
14435
      hardcode_libdir_flag_spec_F77=' '
 
14436
      allow_undefined_flag_F77=unsupported
 
14437
      # Tell ltmain to make .lib files, not .a files.
 
14438
      libext=lib
 
14439
      # Tell ltmain to make .dll files, not .so files.
 
14440
      shrext_cmds=".dll"
 
14441
      # FIXME: Setting linknames here is a bad hack.
 
14442
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14443
      # The linker will automatically build a .lib file if we build a DLL.
 
14444
      old_archive_From_new_cmds_F77='true'
 
14445
      # FIXME: Should let the user specify the lib program.
 
14446
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14447
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14448
      enable_shared_with_static_runtimes_F77=yes
 
14449
      ;;
 
14450
 
 
14451
    darwin* | rhapsody*)
 
14452
      case $host_os in
 
14453
        rhapsody* | darwin1.[012])
 
14454
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14455
         ;;
 
14456
       *) # Darwin 1.3 on
 
14457
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14458
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14459
         else
 
14460
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14461
             10.[012])
 
14462
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14463
               ;;
 
14464
             10.*)
 
14465
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14466
               ;;
 
14467
           esac
 
14468
         fi
 
14469
         ;;
 
14470
      esac
 
14471
      archive_cmds_need_lc_F77=no
 
14472
      hardcode_direct_F77=no
 
14473
      hardcode_automatic_F77=yes
 
14474
      hardcode_shlibpath_var_F77=unsupported
 
14475
      whole_archive_flag_spec_F77=''
 
14476
      link_all_deplibs_F77=yes
 
14477
    if test "$GCC" = yes ; then
 
14478
        output_verbose_link_cmd='echo'
 
14479
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14480
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14481
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14482
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14483
      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}'
 
14484
    else
 
14485
      case $cc_basename in
 
14486
        xlc*)
 
14487
         output_verbose_link_cmd='echo'
 
14488
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14489
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14490
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14491
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14492
          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}'
 
14493
          ;;
 
14494
       *)
 
14495
         ld_shlibs_F77=no
 
14496
          ;;
 
14497
      esac
 
14498
    fi
 
14499
      ;;
 
14500
 
 
14501
    dgux*)
 
14502
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14503
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14504
      hardcode_shlibpath_var_F77=no
 
14505
      ;;
 
14506
 
 
14507
    freebsd1*)
 
14508
      ld_shlibs_F77=no
 
14509
      ;;
 
14510
 
 
14511
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14512
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14513
    # does not break anything, and helps significantly (at the cost of a little
 
14514
    # extra space).
 
14515
    freebsd2.2*)
 
14516
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14517
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14518
      hardcode_direct_F77=yes
 
14519
      hardcode_shlibpath_var_F77=no
 
14520
      ;;
 
14521
 
 
14522
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14523
    freebsd2*)
 
14524
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14525
      hardcode_direct_F77=yes
 
14526
      hardcode_minus_L_F77=yes
 
14527
      hardcode_shlibpath_var_F77=no
 
14528
      ;;
 
14529
 
 
14530
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14531
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
14532
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14533
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14534
      hardcode_direct_F77=yes
 
14535
      hardcode_shlibpath_var_F77=no
 
14536
      ;;
 
14537
 
 
14538
    hpux9*)
 
14539
      if test "$GCC" = yes; then
 
14540
        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'
 
14541
      else
 
14542
        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'
 
14543
      fi
 
14544
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14545
      hardcode_libdir_separator_F77=:
 
14546
      hardcode_direct_F77=yes
 
14547
 
 
14548
      # hardcode_minus_L: Not really in the search PATH,
 
14549
      # but as the default location of the library.
 
14550
      hardcode_minus_L_F77=yes
 
14551
      export_dynamic_flag_spec_F77='${wl}-E'
 
14552
      ;;
 
14553
 
 
14554
    hpux10* | hpux11*)
 
14555
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14556
        case $host_cpu in
 
14557
        hppa*64*|ia64*)
 
14558
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14559
          ;;
 
14560
        *)
 
14561
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14562
          ;;
 
14563
        esac
 
14564
      else
 
14565
        case $host_cpu in
 
14566
        hppa*64*|ia64*)
 
14567
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14568
          ;;
 
14569
        *)
 
14570
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14571
          ;;
 
14572
        esac
 
14573
      fi
 
14574
      if test "$with_gnu_ld" = no; then
 
14575
        case $host_cpu in
 
14576
        hppa*64*)
 
14577
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14578
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14579
          hardcode_libdir_separator_F77=:
 
14580
          hardcode_direct_F77=no
 
14581
          hardcode_shlibpath_var_F77=no
 
14582
          ;;
 
14583
        ia64*)
 
14584
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14585
          hardcode_direct_F77=no
 
14586
          hardcode_shlibpath_var_F77=no
 
14587
 
 
14588
          # hardcode_minus_L: Not really in the search PATH,
 
14589
          # but as the default location of the library.
 
14590
          hardcode_minus_L_F77=yes
 
14591
          ;;
 
14592
        *)
 
14593
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14594
          hardcode_libdir_separator_F77=:
 
14595
          hardcode_direct_F77=yes
 
14596
          export_dynamic_flag_spec_F77='${wl}-E'
 
14597
 
 
14598
          # hardcode_minus_L: Not really in the search PATH,
 
14599
          # but as the default location of the library.
 
14600
          hardcode_minus_L_F77=yes
 
14601
          ;;
 
14602
        esac
 
14603
      fi
 
14604
      ;;
 
14605
 
 
14606
    irix5* | irix6* | nonstopux*)
 
14607
      if test "$GCC" = yes; then
 
14608
        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'
 
14609
      else
 
14610
        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'
 
14611
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14612
      fi
 
14613
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14614
      hardcode_libdir_separator_F77=:
 
14615
      link_all_deplibs_F77=yes
 
14616
      ;;
 
14617
 
 
14618
    netbsd*)
 
14619
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14620
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14621
      else
 
14622
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14623
      fi
 
14624
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14625
      hardcode_direct_F77=yes
 
14626
      hardcode_shlibpath_var_F77=no
 
14627
      ;;
 
14628
 
 
14629
    newsos6)
 
14630
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14631
      hardcode_direct_F77=yes
 
14632
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14633
      hardcode_libdir_separator_F77=:
 
14634
      hardcode_shlibpath_var_F77=no
 
14635
      ;;
 
14636
 
 
14637
    openbsd*)
 
14638
      hardcode_direct_F77=yes
 
14639
      hardcode_shlibpath_var_F77=no
 
14640
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14641
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14642
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14643
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14644
        export_dynamic_flag_spec_F77='${wl}-E'
 
14645
      else
 
14646
       case $host_os in
 
14647
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14648
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14649
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14650
           ;;
 
14651
         *)
 
14652
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14653
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14654
           ;;
 
14655
       esac
 
14656
      fi
 
14657
      ;;
 
14658
 
 
14659
    os2*)
 
14660
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14661
      hardcode_minus_L_F77=yes
 
14662
      allow_undefined_flag_F77=unsupported
 
14663
      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'
 
14664
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14665
      ;;
 
14666
 
 
14667
    osf3*)
 
14668
      if test "$GCC" = yes; then
 
14669
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14670
        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'
 
14671
      else
 
14672
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14673
        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'
 
14674
      fi
 
14675
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14676
      hardcode_libdir_separator_F77=:
 
14677
      ;;
 
14678
 
 
14679
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14680
      if test "$GCC" = yes; then
 
14681
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14682
        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'
 
14683
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14684
      else
 
14685
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14686
        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'
 
14687
        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~
 
14688
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
14689
 
 
14690
        # Both c and cxx compiler support -rpath directly
 
14691
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14692
      fi
 
14693
      hardcode_libdir_separator_F77=:
 
14694
      ;;
 
14695
 
 
14696
    sco3.2v5*)
 
14697
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14698
      hardcode_shlibpath_var_F77=no
 
14699
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14700
      runpath_var=LD_RUN_PATH
 
14701
      hardcode_runpath_var=yes
 
14702
      ;;
 
14703
 
 
14704
    solaris*)
 
14705
      no_undefined_flag_F77=' -z text'
 
14706
      if test "$GCC" = yes; then
 
14707
        wlarc='${wl}'
 
14708
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14709
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14710
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14711
      else
 
14712
        wlarc=''
 
14713
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14714
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14715
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14716
      fi
 
14717
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14718
      hardcode_shlibpath_var_F77=no
 
14719
      case $host_os in
 
14720
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14721
      *)
 
14722
        # The compiler driver will combine linker options so we
 
14723
        # cannot just pass the convience library names through
 
14724
        # without $wl, iff we do not link with $LD.
 
14725
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14726
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14727
        case $wlarc in
 
14728
        '')
 
14729
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14730
        *)
 
14731
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14732
        esac ;;
 
14733
      esac
 
14734
      link_all_deplibs_F77=yes
 
14735
      ;;
 
14736
 
 
14737
    sunos4*)
 
14738
      if test "x$host_vendor" = xsequent; then
 
14739
        # Use $CC to link under sequent, because it throws in some extra .o
 
14740
        # files that make .init and .fini sections work.
 
14741
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14742
      else
 
14743
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14744
      fi
 
14745
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14746
      hardcode_direct_F77=yes
 
14747
      hardcode_minus_L_F77=yes
 
14748
      hardcode_shlibpath_var_F77=no
 
14749
      ;;
 
14750
 
 
14751
    sysv4)
 
14752
      case $host_vendor in
 
14753
        sni)
 
14754
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14755
          hardcode_direct_F77=yes # is this really true???
 
14756
        ;;
 
14757
        siemens)
 
14758
          ## LD is ld it makes a PLAMLIB
 
14759
          ## CC just makes a GrossModule.
 
14760
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14761
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14762
          hardcode_direct_F77=no
 
14763
        ;;
 
14764
        motorola)
 
14765
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14766
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14767
        ;;
 
14768
      esac
 
14769
      runpath_var='LD_RUN_PATH'
 
14770
      hardcode_shlibpath_var_F77=no
 
14771
      ;;
 
14772
 
 
14773
    sysv4.3*)
 
14774
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14775
      hardcode_shlibpath_var_F77=no
 
14776
      export_dynamic_flag_spec_F77='-Bexport'
 
14777
      ;;
 
14778
 
 
14779
    sysv4*MP*)
 
14780
      if test -d /usr/nec; then
 
14781
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14782
        hardcode_shlibpath_var_F77=no
 
14783
        runpath_var=LD_RUN_PATH
 
14784
        hardcode_runpath_var=yes
 
14785
        ld_shlibs_F77=yes
 
14786
      fi
 
14787
      ;;
 
14788
 
 
14789
    sysv4.2uw2*)
 
14790
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14791
      hardcode_direct_F77=yes
 
14792
      hardcode_minus_L_F77=no
 
14793
      hardcode_shlibpath_var_F77=no
 
14794
      hardcode_runpath_var=yes
 
14795
      runpath_var=LD_RUN_PATH
 
14796
      ;;
 
14797
 
 
14798
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14799
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14800
      if test "$GCC" = yes; then
 
14801
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14802
      else
 
14803
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14804
      fi
 
14805
      runpath_var='LD_RUN_PATH'
 
14806
      hardcode_shlibpath_var_F77=no
 
14807
      ;;
 
14808
 
 
14809
    sysv5*)
 
14810
      no_undefined_flag_F77=' -z text'
 
14811
      # $CC -shared without GNU ld will not create a library from C++
 
14812
      # object files and a static libstdc++, better avoid it by now
 
14813
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14814
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14815
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14816
      hardcode_libdir_flag_spec_F77=
 
14817
      hardcode_shlibpath_var_F77=no
 
14818
      runpath_var='LD_RUN_PATH'
 
14819
      ;;
 
14820
 
 
14821
    uts4*)
 
14822
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14823
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14824
      hardcode_shlibpath_var_F77=no
 
14825
      ;;
 
14826
 
 
14827
    *)
 
14828
      ld_shlibs_F77=no
 
14829
      ;;
 
14830
    esac
 
14831
  fi
 
14832
 
 
14833
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14834
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14835
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14836
 
 
14837
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14838
if test "$GCC" = yes; then
 
14839
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14840
fi
 
14841
 
 
14842
#
 
14843
# Do we need to explicitly link libc?
 
14844
#
 
14845
case "x$archive_cmds_need_lc_F77" in
 
14846
x|xyes)
 
14847
  # Assume -lc should be added
 
14848
  archive_cmds_need_lc_F77=yes
 
14849
 
 
14850
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14851
    case $archive_cmds_F77 in
 
14852
    *'~'*)
 
14853
      # FIXME: we may have to deal with multi-command sequences.
 
14854
      ;;
 
14855
    '$CC '*)
 
14856
      # Test whether the compiler implicitly links with -lc since on some
 
14857
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14858
      # to ld, don't add -lc before -lgcc.
 
14859
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14860
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14861
      $rm conftest*
 
14862
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14863
 
 
14864
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14865
  (eval $ac_compile) 2>&5
 
14866
  ac_status=$?
 
14867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14868
  (exit $ac_status); } 2>conftest.err; then
 
14869
        soname=conftest
 
14870
        lib=conftest
 
14871
        libobjs=conftest.$ac_objext
 
14872
        deplibs=
 
14873
        wl=$lt_prog_compiler_wl_F77
 
14874
        compiler_flags=-v
 
14875
        linker_flags=-v
 
14876
        verstring=
 
14877
        output_objdir=.
 
14878
        libname=conftest
 
14879
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14880
        allow_undefined_flag_F77=
 
14881
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14882
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14883
  ac_status=$?
 
14884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14885
  (exit $ac_status); }
 
14886
        then
 
14887
          archive_cmds_need_lc_F77=no
 
14888
        else
 
14889
          archive_cmds_need_lc_F77=yes
 
14890
        fi
 
14891
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14892
      else
 
14893
        cat conftest.err 1>&5
 
14894
      fi
 
14895
      $rm conftest*
 
14896
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14897
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14898
      ;;
 
14899
    esac
 
14900
  fi
 
14901
  ;;
 
14902
esac
 
14903
 
 
14904
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14905
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14906
library_names_spec=
 
14907
libname_spec='lib$name'
 
14908
soname_spec=
 
14909
shrext_cmds=".so"
 
14910
postinstall_cmds=
 
14911
postuninstall_cmds=
 
14912
finish_cmds=
 
14913
finish_eval=
 
14914
shlibpath_var=
 
14915
shlibpath_overrides_runpath=unknown
 
14916
version_type=none
 
14917
dynamic_linker="$host_os ld.so"
 
14918
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14919
if test "$GCC" = yes; then
 
14920
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14921
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14922
    # if the path contains ";" then we assume it to be the separator
 
14923
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14924
    # assumed that no part of a normal pathname contains ";" but that should
 
14925
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14926
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14927
  else
 
14928
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14929
  fi
 
14930
else
 
14931
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14932
fi
 
14933
need_lib_prefix=unknown
 
14934
hardcode_into_libs=no
 
14935
 
 
14936
# when you set need_version to no, make sure it does not cause -set_version
 
14937
# flags to be left without arguments
 
14938
need_version=unknown
 
14939
 
 
14940
case $host_os in
 
14941
aix3*)
 
14942
  version_type=linux
 
14943
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14944
  shlibpath_var=LIBPATH
 
14945
 
 
14946
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14947
  soname_spec='${libname}${release}${shared_ext}$major'
 
14948
  ;;
 
14949
 
 
14950
aix4* | aix5*)
 
14951
  version_type=linux
 
14952
  need_lib_prefix=no
 
14953
  need_version=no
 
14954
  hardcode_into_libs=yes
 
14955
  if test "$host_cpu" = ia64; then
 
14956
    # AIX 5 supports IA64
 
14957
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14958
    shlibpath_var=LD_LIBRARY_PATH
 
14959
  else
 
14960
    # With GCC up to 2.95.x, collect2 would create an import file
 
14961
    # for dependence libraries.  The import file would start with
 
14962
    # the line `#! .'.  This would cause the generated library to
 
14963
    # depend on `.', always an invalid library.  This was fixed in
 
14964
    # development snapshots of GCC prior to 3.0.
 
14965
    case $host_os in
 
14966
      aix4 | aix4.[01] | aix4.[01].*)
 
14967
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14968
           echo ' yes '
 
14969
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14970
        :
 
14971
      else
 
14972
        can_build_shared=no
 
14973
      fi
 
14974
      ;;
 
14975
    esac
 
14976
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14977
    # soname into executable. Probably we can add versioning support to
 
14978
    # collect2, so additional links can be useful in future.
 
14979
    if test "$aix_use_runtimelinking" = yes; then
 
14980
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14981
      # instead of lib<name>.a to let people know that these are not
 
14982
      # typical AIX shared libraries.
 
14983
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14984
    else
 
14985
      # We preserve .a as extension for shared libraries through AIX4.2
 
14986
      # and later when we are not doing run time linking.
 
14987
      library_names_spec='${libname}${release}.a $libname.a'
 
14988
      soname_spec='${libname}${release}${shared_ext}$major'
 
14989
    fi
 
14990
    shlibpath_var=LIBPATH
 
14991
  fi
 
14992
  ;;
 
14993
 
 
14994
amigaos*)
 
14995
  library_names_spec='$libname.ixlibrary $libname.a'
 
14996
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14997
  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'
 
14998
  ;;
 
14999
 
 
15000
beos*)
 
15001
  library_names_spec='${libname}${shared_ext}'
 
15002
  dynamic_linker="$host_os ld.so"
 
15003
  shlibpath_var=LIBRARY_PATH
 
15004
  ;;
 
15005
 
 
15006
bsdi[45]*)
 
15007
  version_type=linux
 
15008
  need_version=no
 
15009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15010
  soname_spec='${libname}${release}${shared_ext}$major'
 
15011
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15012
  shlibpath_var=LD_LIBRARY_PATH
 
15013
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15014
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15015
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15016
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15017
  # libtool to hard-code these into programs
 
15018
  ;;
 
15019
 
 
15020
cygwin* | mingw* | pw32*)
 
15021
  version_type=windows
 
15022
  shrext_cmds=".dll"
 
15023
  need_version=no
 
15024
  need_lib_prefix=no
 
15025
 
 
15026
  case $GCC,$host_os in
 
15027
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15028
    library_names_spec='$libname.dll.a'
 
15029
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15030
    postinstall_cmds='base_file=`basename \${file}`~
 
15031
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15032
      dldir=$destdir/`dirname \$dlpath`~
 
15033
      test -d \$dldir || mkdir -p \$dldir~
 
15034
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15035
      chmod a+x \$dldir/$dlname'
 
15036
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15037
      dlpath=$dir/\$dldll~
 
15038
       $rm \$dlpath'
 
15039
    shlibpath_overrides_runpath=yes
 
15040
 
 
15041
    case $host_os in
 
15042
    cygwin*)
 
15043
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15044
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15045
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15046
      ;;
 
15047
    mingw*)
 
15048
      # MinGW DLLs use traditional 'lib' prefix
 
15049
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15050
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15051
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15052
        # It is most probably a Windows format PATH printed by
 
15053
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15054
        # path with ; separators, and with drive letters. We can handle the
 
15055
        # drive letters (cygwin fileutils understands them), so leave them,
 
15056
        # especially as we might pass files found there to a mingw objdump,
 
15057
        # which wouldn't understand a cygwinified path. Ahh.
 
15058
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15059
      else
 
15060
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15061
      fi
 
15062
      ;;
 
15063
    pw32*)
 
15064
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15065
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15066
      ;;
 
15067
    esac
 
15068
    ;;
 
15069
 
 
15070
  *)
 
15071
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15072
    ;;
 
15073
  esac
 
15074
  dynamic_linker='Win32 ld.exe'
 
15075
  # FIXME: first we should search . and the directory the executable is in
 
15076
  shlibpath_var=PATH
 
15077
  ;;
 
15078
 
 
15079
darwin* | rhapsody*)
 
15080
  dynamic_linker="$host_os dyld"
 
15081
  version_type=darwin
 
15082
  need_lib_prefix=no
 
15083
  need_version=no
 
15084
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15085
  soname_spec='${libname}${release}${major}$shared_ext'
 
15086
  shlibpath_overrides_runpath=yes
 
15087
  shlibpath_var=DYLD_LIBRARY_PATH
 
15088
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15089
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15090
  if test "$GCC" = yes; then
 
15091
    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"`
 
15092
  else
 
15093
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15094
  fi
 
15095
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15096
  ;;
 
15097
 
 
15098
dgux*)
 
15099
  version_type=linux
 
15100
  need_lib_prefix=no
 
15101
  need_version=no
 
15102
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15103
  soname_spec='${libname}${release}${shared_ext}$major'
 
15104
  shlibpath_var=LD_LIBRARY_PATH
 
15105
  ;;
 
15106
 
 
15107
freebsd1*)
 
15108
  dynamic_linker=no
 
15109
  ;;
 
15110
 
 
15111
kfreebsd*-gnu)
 
15112
  version_type=linux
 
15113
  need_lib_prefix=no
 
15114
  need_version=no
 
15115
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15116
  soname_spec='${libname}${release}${shared_ext}$major'
 
15117
  shlibpath_var=LD_LIBRARY_PATH
 
15118
  shlibpath_overrides_runpath=no
 
15119
  hardcode_into_libs=yes
 
15120
  dynamic_linker='GNU ld.so'
 
15121
  ;;
 
15122
 
 
15123
freebsd* | dragonfly*)
 
15124
  # DragonFly does not have aout.  When/if they implement a new
 
15125
  # versioning mechanism, adjust this.
 
15126
  if test -x /usr/bin/objformat; then
 
15127
    objformat=`/usr/bin/objformat`
 
15128
  else
 
15129
    case $host_os in
 
15130
    freebsd[123]*) objformat=aout ;;
 
15131
    *) objformat=elf ;;
 
15132
    esac
 
15133
  fi
 
15134
  version_type=freebsd-$objformat
 
15135
  case $version_type in
 
15136
    freebsd-elf*)
 
15137
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15138
      need_version=no
 
15139
      need_lib_prefix=no
 
15140
      ;;
 
15141
    freebsd-*)
 
15142
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15143
      need_version=yes
 
15144
      ;;
 
15145
  esac
 
15146
  shlibpath_var=LD_LIBRARY_PATH
 
15147
  case $host_os in
 
15148
  freebsd2*)
 
15149
    shlibpath_overrides_runpath=yes
 
15150
    ;;
 
15151
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15152
    shlibpath_overrides_runpath=yes
 
15153
    hardcode_into_libs=yes
 
15154
    ;;
 
15155
  *) # from 3.2 on
 
15156
    shlibpath_overrides_runpath=no
 
15157
    hardcode_into_libs=yes
 
15158
    ;;
 
15159
  esac
 
15160
  ;;
 
15161
 
 
15162
gnu*)
 
15163
  version_type=linux
 
15164
  need_lib_prefix=no
 
15165
  need_version=no
 
15166
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15167
  soname_spec='${libname}${release}${shared_ext}$major'
 
15168
  shlibpath_var=LD_LIBRARY_PATH
 
15169
  hardcode_into_libs=yes
 
15170
  ;;
 
15171
 
 
15172
hpux9* | hpux10* | hpux11*)
 
15173
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15174
  # link against other versions.
 
15175
  version_type=sunos
 
15176
  need_lib_prefix=no
 
15177
  need_version=no
 
15178
  case $host_cpu in
 
15179
  ia64*)
 
15180
    shrext_cmds='.so'
 
15181
    hardcode_into_libs=yes
 
15182
    dynamic_linker="$host_os dld.so"
 
15183
    shlibpath_var=LD_LIBRARY_PATH
 
15184
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15185
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15186
    soname_spec='${libname}${release}${shared_ext}$major'
 
15187
    if test "X$HPUX_IA64_MODE" = X32; then
 
15188
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15189
    else
 
15190
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15191
    fi
 
15192
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15193
    ;;
 
15194
   hppa*64*)
 
15195
     shrext_cmds='.sl'
 
15196
     hardcode_into_libs=yes
 
15197
     dynamic_linker="$host_os dld.sl"
 
15198
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15199
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15200
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15201
     soname_spec='${libname}${release}${shared_ext}$major'
 
15202
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15203
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15204
     ;;
 
15205
   *)
 
15206
    shrext_cmds='.sl'
 
15207
    dynamic_linker="$host_os dld.sl"
 
15208
    shlibpath_var=SHLIB_PATH
 
15209
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15210
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15211
    soname_spec='${libname}${release}${shared_ext}$major'
 
15212
    ;;
 
15213
  esac
 
15214
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15215
  postinstall_cmds='chmod 555 $lib'
 
15216
  ;;
 
15217
 
 
15218
irix5* | irix6* | nonstopux*)
 
15219
  case $host_os in
 
15220
    nonstopux*) version_type=nonstopux ;;
 
15221
    *)
 
15222
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15223
                version_type=linux
 
15224
        else
 
15225
                version_type=irix
 
15226
        fi ;;
 
15227
  esac
 
15228
  need_lib_prefix=no
 
15229
  need_version=no
 
15230
  soname_spec='${libname}${release}${shared_ext}$major'
 
15231
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15232
  case $host_os in
 
15233
  irix5* | nonstopux*)
 
15234
    libsuff= shlibsuff=
 
15235
    ;;
 
15236
  *)
 
15237
    case $LD in # libtool.m4 will add one of these switches to LD
 
15238
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15239
      libsuff= shlibsuff= libmagic=32-bit;;
 
15240
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15241
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15242
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15243
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15244
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15245
    esac
 
15246
    ;;
 
15247
  esac
 
15248
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15249
  shlibpath_overrides_runpath=no
 
15250
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15251
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15252
  hardcode_into_libs=yes
 
15253
  ;;
 
15254
 
 
15255
# No shared lib support for Linux oldld, aout, or coff.
 
15256
linux*oldld* | linux*aout* | linux*coff*)
 
15257
  dynamic_linker=no
 
15258
  ;;
 
15259
 
 
15260
# This must be Linux ELF.
 
15261
linux*)
 
15262
  version_type=linux
 
15263
  need_lib_prefix=no
 
15264
  need_version=no
 
15265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15266
  soname_spec='${libname}${release}${shared_ext}$major'
 
15267
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15268
  shlibpath_var=LD_LIBRARY_PATH
 
15269
  shlibpath_overrides_runpath=no
 
15270
  # This implies no fast_install, which is unacceptable.
 
15271
  # Some rework will be needed to allow for fast_install
 
15272
  # before this can be enabled.
 
15273
  hardcode_into_libs=yes
 
15274
 
 
15275
  # Append ld.so.conf contents to the search path
 
15276
  if test -f /etc/ld.so.conf; then
 
15277
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15278
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15279
  fi
 
15280
 
 
15281
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15282
  # powerpc, because MkLinux only supported shared libraries with the
 
15283
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15284
  # most powerpc-linux boxes support dynamic linking these days and
 
15285
  # people can always --disable-shared, the test was removed, and we
 
15286
  # assume the GNU/Linux dynamic linker is in use.
 
15287
  dynamic_linker='GNU/Linux ld.so'
 
15288
  ;;
 
15289
 
 
15290
knetbsd*-gnu)
 
15291
  version_type=linux
 
15292
  need_lib_prefix=no
 
15293
  need_version=no
 
15294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15295
  soname_spec='${libname}${release}${shared_ext}$major'
 
15296
  shlibpath_var=LD_LIBRARY_PATH
 
15297
  shlibpath_overrides_runpath=no
 
15298
  hardcode_into_libs=yes
 
15299
  dynamic_linker='GNU ld.so'
 
15300
  ;;
 
15301
 
 
15302
netbsd*)
 
15303
  version_type=sunos
 
15304
  need_lib_prefix=no
 
15305
  need_version=no
 
15306
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15307
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15308
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15309
    dynamic_linker='NetBSD (a.out) ld.so'
 
15310
  else
 
15311
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15312
    soname_spec='${libname}${release}${shared_ext}$major'
 
15313
    dynamic_linker='NetBSD ld.elf_so'
 
15314
  fi
 
15315
  shlibpath_var=LD_LIBRARY_PATH
 
15316
  shlibpath_overrides_runpath=yes
 
15317
  hardcode_into_libs=yes
 
15318
  ;;
 
15319
 
 
15320
newsos6)
 
15321
  version_type=linux
 
15322
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15323
  shlibpath_var=LD_LIBRARY_PATH
 
15324
  shlibpath_overrides_runpath=yes
 
15325
  ;;
 
15326
 
 
15327
nto-qnx*)
 
15328
  version_type=linux
 
15329
  need_lib_prefix=no
 
15330
  need_version=no
 
15331
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15332
  soname_spec='${libname}${release}${shared_ext}$major'
 
15333
  shlibpath_var=LD_LIBRARY_PATH
 
15334
  shlibpath_overrides_runpath=yes
 
15335
  ;;
 
15336
 
 
15337
openbsd*)
 
15338
  version_type=sunos
 
15339
  need_lib_prefix=no
 
15340
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15341
  case $host_os in
 
15342
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15343
    *)                         need_version=no  ;;
 
15344
  esac
 
15345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15346
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15347
  shlibpath_var=LD_LIBRARY_PATH
 
15348
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15349
    case $host_os in
 
15350
      openbsd2.[89] | openbsd2.[89].*)
 
15351
        shlibpath_overrides_runpath=no
 
15352
        ;;
 
15353
      *)
 
15354
        shlibpath_overrides_runpath=yes
 
15355
        ;;
 
15356
      esac
 
15357
  else
 
15358
    shlibpath_overrides_runpath=yes
 
15359
  fi
 
15360
  ;;
 
15361
 
 
15362
os2*)
 
15363
  libname_spec='$name'
 
15364
  shrext_cmds=".dll"
 
15365
  need_lib_prefix=no
 
15366
  library_names_spec='$libname${shared_ext} $libname.a'
 
15367
  dynamic_linker='OS/2 ld.exe'
 
15368
  shlibpath_var=LIBPATH
 
15369
  ;;
 
15370
 
 
15371
osf3* | osf4* | osf5*)
 
15372
  version_type=osf
 
15373
  need_lib_prefix=no
 
15374
  need_version=no
 
15375
  soname_spec='${libname}${release}${shared_ext}$major'
 
15376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15377
  shlibpath_var=LD_LIBRARY_PATH
 
15378
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15379
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15380
  ;;
 
15381
 
 
15382
sco3.2v5*)
 
15383
  version_type=osf
 
15384
  soname_spec='${libname}${release}${shared_ext}$major'
 
15385
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15386
  shlibpath_var=LD_LIBRARY_PATH
 
15387
  ;;
 
15388
 
 
15389
solaris*)
 
15390
  version_type=linux
 
15391
  need_lib_prefix=no
 
15392
  need_version=no
 
15393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15394
  soname_spec='${libname}${release}${shared_ext}$major'
 
15395
  shlibpath_var=LD_LIBRARY_PATH
 
15396
  shlibpath_overrides_runpath=yes
 
15397
  hardcode_into_libs=yes
 
15398
  # ldd complains unless libraries are executable
 
15399
  postinstall_cmds='chmod +x $lib'
 
15400
  ;;
 
15401
 
 
15402
sunos4*)
 
15403
  version_type=sunos
 
15404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15405
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15406
  shlibpath_var=LD_LIBRARY_PATH
 
15407
  shlibpath_overrides_runpath=yes
 
15408
  if test "$with_gnu_ld" = yes; then
 
15409
    need_lib_prefix=no
 
15410
  fi
 
15411
  need_version=yes
 
15412
  ;;
 
15413
 
 
15414
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15415
  version_type=linux
 
15416
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15417
  soname_spec='${libname}${release}${shared_ext}$major'
 
15418
  shlibpath_var=LD_LIBRARY_PATH
 
15419
  case $host_vendor in
 
15420
    sni)
 
15421
      shlibpath_overrides_runpath=no
 
15422
      need_lib_prefix=no
 
15423
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15424
      runpath_var=LD_RUN_PATH
 
15425
      ;;
 
15426
    siemens)
 
15427
      need_lib_prefix=no
 
15428
      ;;
 
15429
    motorola)
 
15430
      need_lib_prefix=no
 
15431
      need_version=no
 
15432
      shlibpath_overrides_runpath=no
 
15433
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15434
      ;;
 
15435
  esac
 
15436
  ;;
 
15437
 
 
15438
sysv4*MP*)
 
15439
  if test -d /usr/nec ;then
 
15440
    version_type=linux
 
15441
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15442
    soname_spec='$libname${shared_ext}.$major'
 
15443
    shlibpath_var=LD_LIBRARY_PATH
 
15444
  fi
 
15445
  ;;
 
15446
 
 
15447
uts4*)
 
15448
  version_type=linux
 
15449
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15450
  soname_spec='${libname}${release}${shared_ext}$major'
 
15451
  shlibpath_var=LD_LIBRARY_PATH
 
15452
  ;;
 
15453
 
 
15454
*)
 
15455
  dynamic_linker=no
 
15456
  ;;
 
15457
esac
 
15458
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15459
echo "${ECHO_T}$dynamic_linker" >&6
 
15460
test "$dynamic_linker" = no && can_build_shared=no
 
15461
 
 
15462
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15463
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15464
hardcode_action_F77=
 
15465
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15466
   test -n "$runpath_var_F77" || \
 
15467
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15468
 
 
15469
  # We can hardcode non-existant directories.
 
15470
  if test "$hardcode_direct_F77" != no &&
 
15471
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15472
     # have to relink, otherwise we might link with an installed library
 
15473
     # when we should be linking with a yet-to-be-installed one
 
15474
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15475
     test "$hardcode_minus_L_F77" != no; then
 
15476
    # Linking always hardcodes the temporary library directory.
 
15477
    hardcode_action_F77=relink
 
15478
  else
 
15479
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15480
    hardcode_action_F77=immediate
 
15481
  fi
 
15482
else
 
15483
  # We cannot hardcode anything, or else we can only hardcode existing
 
15484
  # directories.
 
15485
  hardcode_action_F77=unsupported
 
15486
fi
 
15487
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15488
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15489
 
 
15490
if test "$hardcode_action_F77" = relink; then
 
15491
  # Fast installation is not supported
 
15492
  enable_fast_install=no
 
15493
elif test "$shlibpath_overrides_runpath" = yes ||
 
15494
     test "$enable_shared" = no; then
 
15495
  # Fast installation is not necessary
 
15496
  enable_fast_install=needless
 
15497
fi
 
15498
 
 
15499
striplib=
 
15500
old_striplib=
 
15501
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15502
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15503
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15504
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15505
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15506
  echo "$as_me:$LINENO: result: yes" >&5
 
15507
echo "${ECHO_T}yes" >&6
 
15508
else
 
15509
# FIXME - insert some real tests, host_os isn't really good enough
 
15510
  case $host_os in
 
15511
   darwin*)
 
15512
       if test -n "$STRIP" ; then
 
15513
         striplib="$STRIP -x"
 
15514
         echo "$as_me:$LINENO: result: yes" >&5
 
15515
echo "${ECHO_T}yes" >&6
 
15516
       else
 
15517
  echo "$as_me:$LINENO: result: no" >&5
 
15518
echo "${ECHO_T}no" >&6
 
15519
fi
 
15520
       ;;
 
15521
   *)
 
15522
  echo "$as_me:$LINENO: result: no" >&5
 
15523
echo "${ECHO_T}no" >&6
 
15524
    ;;
 
15525
  esac
 
15526
fi
 
15527
 
 
15528
 
 
15529
 
 
15530
# The else clause should only fire when bootstrapping the
 
15531
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15532
# with your package, and you will get complaints that there are
 
15533
# no rules to generate ltmain.sh.
 
15534
if test -f "$ltmain"; then
 
15535
  # See if we are running on zsh, and set the options which allow our commands through
 
15536
  # without removal of \ escapes.
 
15537
  if test -n "${ZSH_VERSION+set}" ; then
 
15538
    setopt NO_GLOB_SUBST
 
15539
  fi
 
15540
  # Now quote all the things that may contain metacharacters while being
 
15541
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15542
  # variables and quote the copies for generation of the libtool script.
 
15543
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15544
    SED SHELL STRIP \
 
15545
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15546
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15547
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15548
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15549
    lt_cv_sys_global_symbol_to_c_name_address \
 
15550
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15551
    old_postinstall_cmds old_postuninstall_cmds \
 
15552
    compiler_F77 \
 
15553
    CC_F77 \
 
15554
    LD_F77 \
 
15555
    lt_prog_compiler_wl_F77 \
 
15556
    lt_prog_compiler_pic_F77 \
 
15557
    lt_prog_compiler_static_F77 \
 
15558
    lt_prog_compiler_no_builtin_flag_F77 \
 
15559
    export_dynamic_flag_spec_F77 \
 
15560
    thread_safe_flag_spec_F77 \
 
15561
    whole_archive_flag_spec_F77 \
 
15562
    enable_shared_with_static_runtimes_F77 \
 
15563
    old_archive_cmds_F77 \
 
15564
    old_archive_from_new_cmds_F77 \
 
15565
    predep_objects_F77 \
 
15566
    postdep_objects_F77 \
 
15567
    predeps_F77 \
 
15568
    postdeps_F77 \
 
15569
    compiler_lib_search_path_F77 \
 
15570
    archive_cmds_F77 \
 
15571
    archive_expsym_cmds_F77 \
 
15572
    postinstall_cmds_F77 \
 
15573
    postuninstall_cmds_F77 \
 
15574
    old_archive_from_expsyms_cmds_F77 \
 
15575
    allow_undefined_flag_F77 \
 
15576
    no_undefined_flag_F77 \
 
15577
    export_symbols_cmds_F77 \
 
15578
    hardcode_libdir_flag_spec_F77 \
 
15579
    hardcode_libdir_flag_spec_ld_F77 \
 
15580
    hardcode_libdir_separator_F77 \
 
15581
    hardcode_automatic_F77 \
 
15582
    module_cmds_F77 \
 
15583
    module_expsym_cmds_F77 \
 
15584
    lt_cv_prog_compiler_c_o_F77 \
 
15585
    exclude_expsyms_F77 \
 
15586
    include_expsyms_F77; do
 
15587
 
 
15588
    case $var in
 
15589
    old_archive_cmds_F77 | \
 
15590
    old_archive_from_new_cmds_F77 | \
 
15591
    archive_cmds_F77 | \
 
15592
    archive_expsym_cmds_F77 | \
 
15593
    module_cmds_F77 | \
 
15594
    module_expsym_cmds_F77 | \
 
15595
    old_archive_from_expsyms_cmds_F77 | \
 
15596
    export_symbols_cmds_F77 | \
 
15597
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15598
    postinstall_cmds | postuninstall_cmds | \
 
15599
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15600
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15601
      # Double-quote double-evaled strings.
 
15602
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15603
      ;;
 
15604
    *)
 
15605
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15606
      ;;
 
15607
    esac
 
15608
  done
 
15609
 
 
15610
  case $lt_echo in
 
15611
  *'\$0 --fallback-echo"')
 
15612
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15613
    ;;
 
15614
  esac
 
15615
 
 
15616
cfgfile="$ofile"
 
15617
 
 
15618
  cat <<__EOF__ >> "$cfgfile"
 
15619
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15620
 
 
15621
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15622
 
 
15623
# Shell to use when invoking shell scripts.
 
15624
SHELL=$lt_SHELL
 
15625
 
 
15626
# Whether or not to build shared libraries.
 
15627
build_libtool_libs=$enable_shared
 
15628
 
 
15629
# Whether or not to build static libraries.
 
15630
build_old_libs=$enable_static
 
15631
 
 
15632
# Whether or not to add -lc for building shared libraries.
 
15633
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15634
 
 
15635
# Whether or not to disallow shared libs when runtime libs are static
 
15636
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15637
 
 
15638
# Whether or not to optimize for fast installation.
 
15639
fast_install=$enable_fast_install
 
15640
 
 
15641
# The host system.
 
15642
host_alias=$host_alias
 
15643
host=$host
 
15644
host_os=$host_os
 
15645
 
 
15646
# The build system.
 
15647
build_alias=$build_alias
 
15648
build=$build
 
15649
build_os=$build_os
 
15650
 
 
15651
# An echo program that does not interpret backslashes.
 
15652
echo=$lt_echo
 
15653
 
 
15654
# The archiver.
 
15655
AR=$lt_AR
 
15656
AR_FLAGS=$lt_AR_FLAGS
 
15657
 
 
15658
# A C compiler.
 
15659
LTCC=$lt_LTCC
 
15660
 
 
15661
# A language-specific compiler.
 
15662
CC=$lt_compiler_F77
 
15663
 
 
15664
# Is the compiler the GNU C compiler?
 
15665
with_gcc=$GCC_F77
 
15666
 
 
15667
# An ERE matcher.
 
15668
EGREP=$lt_EGREP
 
15669
 
 
15670
# The linker used to build libraries.
 
15671
LD=$lt_LD_F77
 
15672
 
 
15673
# Whether we need hard or soft links.
 
15674
LN_S=$lt_LN_S
 
15675
 
 
15676
# A BSD-compatible nm program.
 
15677
NM=$lt_NM
 
15678
 
 
15679
# A symbol stripping program
 
15680
STRIP=$lt_STRIP
 
15681
 
 
15682
# Used to examine libraries when file_magic_cmd begins "file"
 
15683
MAGIC_CMD=$MAGIC_CMD
 
15684
 
 
15685
# Used on cygwin: DLL creation program.
 
15686
DLLTOOL="$DLLTOOL"
 
15687
 
 
15688
# Used on cygwin: object dumper.
 
15689
OBJDUMP="$OBJDUMP"
 
15690
 
 
15691
# Used on cygwin: assembler.
 
15692
AS="$AS"
 
15693
 
 
15694
# The name of the directory that contains temporary libtool files.
 
15695
objdir=$objdir
 
15696
 
 
15697
# How to create reloadable object files.
 
15698
reload_flag=$lt_reload_flag
 
15699
reload_cmds=$lt_reload_cmds
 
15700
 
 
15701
# How to pass a linker flag through the compiler.
 
15702
wl=$lt_lt_prog_compiler_wl_F77
 
15703
 
 
15704
# Object file suffix (normally "o").
 
15705
objext="$ac_objext"
 
15706
 
 
15707
# Old archive suffix (normally "a").
 
15708
libext="$libext"
 
15709
 
 
15710
# Shared library suffix (normally ".so").
 
15711
shrext_cmds='$shrext_cmds'
 
15712
 
 
15713
# Executable file suffix (normally "").
 
15714
exeext="$exeext"
 
15715
 
 
15716
# Additional compiler flags for building library objects.
 
15717
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15718
pic_mode=$pic_mode
 
15719
 
 
15720
# What is the maximum length of a command?
 
15721
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15722
 
 
15723
# Does compiler simultaneously support -c and -o options?
 
15724
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15725
 
 
15726
# Must we lock files when doing compilation?
 
15727
need_locks=$lt_need_locks
 
15728
 
 
15729
# Do we need the lib prefix for modules?
 
15730
need_lib_prefix=$need_lib_prefix
 
15731
 
 
15732
# Do we need a version for libraries?
 
15733
need_version=$need_version
 
15734
 
 
15735
# Whether dlopen is supported.
 
15736
dlopen_support=$enable_dlopen
 
15737
 
 
15738
# Whether dlopen of programs is supported.
 
15739
dlopen_self=$enable_dlopen_self
 
15740
 
 
15741
# Whether dlopen of statically linked programs is supported.
 
15742
dlopen_self_static=$enable_dlopen_self_static
 
15743
 
 
15744
# Compiler flag to prevent dynamic linking.
 
15745
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15746
 
 
15747
# Compiler flag to turn off builtin functions.
 
15748
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15749
 
 
15750
# Compiler flag to allow reflexive dlopens.
 
15751
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15752
 
 
15753
# Compiler flag to generate shared objects directly from archives.
 
15754
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15755
 
 
15756
# Compiler flag to generate thread-safe objects.
 
15757
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15758
 
 
15759
# Library versioning type.
 
15760
version_type=$version_type
 
15761
 
 
15762
# Format of library name prefix.
 
15763
libname_spec=$lt_libname_spec
 
15764
 
 
15765
# List of archive names.  First name is the real one, the rest are links.
 
15766
# The last name is the one that the linker finds with -lNAME.
 
15767
library_names_spec=$lt_library_names_spec
 
15768
 
 
15769
# The coded name of the library, if different from the real name.
 
15770
soname_spec=$lt_soname_spec
 
15771
 
 
15772
# Commands used to build and install an old-style archive.
 
15773
RANLIB=$lt_RANLIB
 
15774
old_archive_cmds=$lt_old_archive_cmds_F77
 
15775
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15776
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15777
 
 
15778
# Create an old-style archive from a shared archive.
 
15779
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15780
 
 
15781
# Create a temporary old-style archive to link instead of a shared archive.
 
15782
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15783
 
 
15784
# Commands used to build and install a shared archive.
 
15785
archive_cmds=$lt_archive_cmds_F77
 
15786
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15787
postinstall_cmds=$lt_postinstall_cmds
 
15788
postuninstall_cmds=$lt_postuninstall_cmds
 
15789
 
 
15790
# Commands used to build a loadable module (assumed same as above if empty)
 
15791
module_cmds=$lt_module_cmds_F77
 
15792
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15793
 
 
15794
# Commands to strip libraries.
 
15795
old_striplib=$lt_old_striplib
 
15796
striplib=$lt_striplib
 
15797
 
 
15798
# Dependencies to place before the objects being linked to create a
 
15799
# shared library.
 
15800
predep_objects=$lt_predep_objects_F77
 
15801
 
 
15802
# Dependencies to place after the objects being linked to create a
 
15803
# shared library.
 
15804
postdep_objects=$lt_postdep_objects_F77
 
15805
 
 
15806
# Dependencies to place before the objects being linked to create a
 
15807
# shared library.
 
15808
predeps=$lt_predeps_F77
 
15809
 
 
15810
# Dependencies to place after the objects being linked to create a
 
15811
# shared library.
 
15812
postdeps=$lt_postdeps_F77
 
15813
 
 
15814
# The library search path used internally by the compiler when linking
 
15815
# a shared library.
 
15816
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15817
 
 
15818
# Method to check whether dependent libraries are shared objects.
 
15819
deplibs_check_method=$lt_deplibs_check_method
 
15820
 
 
15821
# Command to use when deplibs_check_method == file_magic.
 
15822
file_magic_cmd=$lt_file_magic_cmd
 
15823
 
 
15824
# Flag that allows shared libraries with undefined symbols to be built.
 
15825
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15826
 
 
15827
# Flag that forces no undefined symbols.
 
15828
no_undefined_flag=$lt_no_undefined_flag_F77
 
15829
 
 
15830
# Commands used to finish a libtool library installation in a directory.
 
15831
finish_cmds=$lt_finish_cmds
 
15832
 
 
15833
# Same as above, but a single script fragment to be evaled but not shown.
 
15834
finish_eval=$lt_finish_eval
 
15835
 
 
15836
# Take the output of nm and produce a listing of raw symbols and C names.
 
15837
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15838
 
 
15839
# Transform the output of nm in a proper C declaration
 
15840
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15841
 
 
15842
# Transform the output of nm in a C name address pair
 
15843
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15844
 
 
15845
# This is the shared library runtime path variable.
 
15846
runpath_var=$runpath_var
 
15847
 
 
15848
# This is the shared library path variable.
 
15849
shlibpath_var=$shlibpath_var
 
15850
 
 
15851
# Is shlibpath searched before the hard-coded library search path?
 
15852
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15853
 
 
15854
# How to hardcode a shared library path into an executable.
 
15855
hardcode_action=$hardcode_action_F77
 
15856
 
 
15857
# Whether we should hardcode library paths into libraries.
 
15858
hardcode_into_libs=$hardcode_into_libs
 
15859
 
 
15860
# Flag to hardcode \$libdir into a binary during linking.
 
15861
# This must work even if \$libdir does not exist.
 
15862
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15863
 
 
15864
# If ld is used when linking, flag to hardcode \$libdir into
 
15865
# a binary during linking. This must work even if \$libdir does
 
15866
# not exist.
 
15867
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15868
 
 
15869
# Whether we need a single -rpath flag with a separated argument.
 
15870
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15871
 
 
15872
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15873
# resulting binary.
 
15874
hardcode_direct=$hardcode_direct_F77
 
15875
 
 
15876
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15877
# resulting binary.
 
15878
hardcode_minus_L=$hardcode_minus_L_F77
 
15879
 
 
15880
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15881
# the resulting binary.
 
15882
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15883
 
 
15884
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15885
# and all subsequent libraries and executables linked against it.
 
15886
hardcode_automatic=$hardcode_automatic_F77
 
15887
 
 
15888
# Variables whose values should be saved in libtool wrapper scripts and
 
15889
# restored at relink time.
 
15890
variables_saved_for_relink="$variables_saved_for_relink"
 
15891
 
 
15892
# Whether libtool must link a program against all its dependency libraries.
 
15893
link_all_deplibs=$link_all_deplibs_F77
 
15894
 
 
15895
# Compile-time system search path for libraries
 
15896
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15897
 
 
15898
# Run-time system search path for libraries
 
15899
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15900
 
 
15901
# Fix the shell variable \$srcfile for the compiler.
 
15902
fix_srcfile_path="$fix_srcfile_path_F77"
 
15903
 
 
15904
# Set to yes if exported symbols are required.
 
15905
always_export_symbols=$always_export_symbols_F77
 
15906
 
 
15907
# The commands to list exported symbols.
 
15908
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15909
 
 
15910
# The commands to extract the exported symbol list from a shared archive.
 
15911
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15912
 
 
15913
# Symbols that should not be listed in the preloaded symbols.
 
15914
exclude_expsyms=$lt_exclude_expsyms_F77
 
15915
 
 
15916
# Symbols that must always be exported.
 
15917
include_expsyms=$lt_include_expsyms_F77
 
15918
 
 
15919
# ### END LIBTOOL TAG CONFIG: $tagname
 
15920
 
 
15921
__EOF__
 
15922
 
 
15923
 
 
15924
else
 
15925
  # If there is no Makefile yet, we rely on a make rule to execute
 
15926
  # `config.status --recheck' to rerun these tests and create the
 
15927
  # libtool script then.
 
15928
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15929
  if test -f "$ltmain_in"; then
 
15930
    test -f Makefile && make "$ltmain"
 
15931
  fi
 
15932
fi
 
15933
 
 
15934
 
 
15935
ac_ext=c
 
15936
ac_cpp='$CPP $CPPFLAGS'
 
15937
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15938
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15939
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15940
 
 
15941
CC="$lt_save_CC"
 
15942
 
 
15943
        else
 
15944
          tagname=""
 
15945
        fi
 
15946
        ;;
 
15947
 
 
15948
      GCJ)
 
15949
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15950
 
 
15951
 
 
15952
 
 
15953
# Source file extension for Java test sources.
 
15954
ac_ext=java
 
15955
 
 
15956
# Object file extension for compiled Java test sources.
 
15957
objext=o
 
15958
objext_GCJ=$objext
 
15959
 
 
15960
# Code to be used in simple compile tests
 
15961
lt_simple_compile_test_code="class foo {}\n"
 
15962
 
 
15963
# Code to be used in simple link tests
 
15964
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15965
 
 
15966
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15967
 
 
15968
# If no C compiler was specified, use CC.
 
15969
LTCC=${LTCC-"$CC"}
 
15970
 
 
15971
# Allow CC to be a program name with arguments.
 
15972
compiler=$CC
 
15973
 
 
15974
 
 
15975
# save warnings/boilerplate of simple test code
 
15976
ac_outfile=conftest.$ac_objext
 
15977
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15978
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15979
_lt_compiler_boilerplate=`cat conftest.err`
 
15980
$rm conftest*
 
15981
 
 
15982
ac_outfile=conftest.$ac_objext
 
15983
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15984
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15985
_lt_linker_boilerplate=`cat conftest.err`
 
15986
$rm conftest*
 
15987
 
 
15988
 
 
15989
# Allow CC to be a program name with arguments.
 
15990
lt_save_CC="$CC"
 
15991
CC=${GCJ-"gcj"}
 
15992
compiler=$CC
 
15993
compiler_GCJ=$CC
 
15994
for cc_temp in $compiler""; do
 
15995
  case $cc_temp in
 
15996
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15997
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15998
    \-*) ;;
 
15999
    *) break;;
 
16000
  esac
 
16001
done
 
16002
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16003
 
 
16004
 
 
16005
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16006
archive_cmds_need_lc_GCJ=no
 
16007
 
 
16008
old_archive_cmds_GCJ=$old_archive_cmds
 
16009
 
 
16010
 
 
16011
lt_prog_compiler_no_builtin_flag_GCJ=
 
16012
 
 
16013
if test "$GCC" = yes; then
 
16014
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16015
 
 
16016
 
 
16017
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16018
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16019
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16021
else
 
16022
  lt_cv_prog_compiler_rtti_exceptions=no
 
16023
  ac_outfile=conftest.$ac_objext
 
16024
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16025
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16026
   # Insert the option either (1) after the last *FLAGS variable, or
 
16027
   # (2) before a word containing "conftest.", or (3) at the end.
 
16028
   # Note that $ac_compile itself does not contain backslashes and begins
 
16029
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16030
   # The option is referenced via a variable to avoid confusing sed.
 
16031
   lt_compile=`echo "$ac_compile" | $SED \
 
16032
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16033
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16034
   -e 's:$: $lt_compiler_flag:'`
 
16035
   (eval echo "\"\$as_me:16035: $lt_compile\"" >&5)
 
16036
   (eval "$lt_compile" 2>conftest.err)
 
16037
   ac_status=$?
 
16038
   cat conftest.err >&5
 
16039
   echo "$as_me:16039: \$? = $ac_status" >&5
 
16040
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16041
     # The compiler can only warn and ignore the option if not recognized
 
16042
     # So say no if there are warnings other than the usual output.
 
16043
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
16044
     $SED '/^$/d' conftest.err >conftest.er2
 
16045
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
16046
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16047
     fi
 
16048
   fi
 
16049
   $rm conftest*
 
16050
 
 
16051
fi
 
16052
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16053
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16054
 
 
16055
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16056
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16057
else
 
16058
    :
 
16059
fi
 
16060
 
 
16061
fi
 
16062
 
 
16063
lt_prog_compiler_wl_GCJ=
 
16064
lt_prog_compiler_pic_GCJ=
 
16065
lt_prog_compiler_static_GCJ=
 
16066
 
 
16067
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16068
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16069
 
 
16070
  if test "$GCC" = yes; then
 
16071
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16072
    lt_prog_compiler_static_GCJ='-static'
 
16073
 
 
16074
    case $host_os in
 
16075
      aix*)
 
16076
      # All AIX code is PIC.
 
16077
      if test "$host_cpu" = ia64; then
 
16078
        # AIX 5 now supports IA64 processor
 
16079
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16080
      fi
 
16081
      ;;
 
16082
 
 
16083
    amigaos*)
 
16084
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16085
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16086
      # like `-m68040'.
 
16087
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16088
      ;;
 
16089
 
 
16090
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16091
      # PIC is the default for these OSes.
 
16092
      ;;
 
16093
 
 
16094
    mingw* | pw32* | os2*)
 
16095
      # This hack is so that the source file can tell whether it is being
 
16096
      # built for inclusion in a dll (and should export symbols for example).
 
16097
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16098
      ;;
 
16099
 
 
16100
    darwin* | rhapsody*)
 
16101
      # PIC is the default on this platform
 
16102
      # Common symbols not allowed in MH_DYLIB files
 
16103
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16104
      ;;
 
16105
 
 
16106
    msdosdjgpp*)
 
16107
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16108
      # on systems that don't support them.
 
16109
      lt_prog_compiler_can_build_shared_GCJ=no
 
16110
      enable_shared=no
 
16111
      ;;
 
16112
 
 
16113
    sysv4*MP*)
 
16114
      if test -d /usr/nec; then
 
16115
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16116
      fi
 
16117
      ;;
 
16118
 
 
16119
    hpux*)
 
16120
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16121
      # not for PA HP-UX.
 
16122
      case $host_cpu in
 
16123
      hppa*64*|ia64*)
 
16124
        # +Z the default
 
16125
        ;;
 
16126
      *)
 
16127
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16128
        ;;
 
16129
      esac
 
16130
      ;;
 
16131
 
 
16132
    *)
 
16133
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16134
      ;;
 
16135
    esac
 
16136
  else
 
16137
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16138
    case $host_os in
 
16139
    aix*)
 
16140
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16141
      if test "$host_cpu" = ia64; then
 
16142
        # AIX 5 now supports IA64 processor
 
16143
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16144
      else
 
16145
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16146
      fi
 
16147
      ;;
 
16148
      darwin*)
 
16149
        # PIC is the default on this platform
 
16150
        # Common symbols not allowed in MH_DYLIB files
 
16151
       case $cc_basename in
 
16152
         xlc*)
 
16153
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16154
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16155
         ;;
 
16156
       esac
 
16157
       ;;
 
16158
 
 
16159
    mingw* | pw32* | os2*)
 
16160
      # This hack is so that the source file can tell whether it is being
 
16161
      # built for inclusion in a dll (and should export symbols for example).
 
16162
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16163
      ;;
 
16164
 
 
16165
    hpux9* | hpux10* | hpux11*)
 
16166
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16167
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16168
      # not for PA HP-UX.
 
16169
      case $host_cpu in
 
16170
      hppa*64*|ia64*)
 
16171
        # +Z the default
 
16172
        ;;
 
16173
      *)
 
16174
        lt_prog_compiler_pic_GCJ='+Z'
 
16175
        ;;
 
16176
      esac
 
16177
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16178
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16179
      ;;
 
16180
 
 
16181
    irix5* | irix6* | nonstopux*)
 
16182
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16183
      # PIC (with -KPIC) is the default.
 
16184
      lt_prog_compiler_static_GCJ='-non_shared'
 
16185
      ;;
 
16186
 
 
16187
    newsos6)
 
16188
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16189
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16190
      ;;
 
16191
 
 
16192
    linux*)
 
16193
      case $cc_basename in
 
16194
      icc* | ecc*)
 
16195
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16196
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16197
        lt_prog_compiler_static_GCJ='-static'
 
16198
        ;;
 
16199
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16200
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16201
        # which looks to be a dead project)
 
16202
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16203
        lt_prog_compiler_pic_GCJ='-fpic'
 
16204
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16205
        ;;
 
16206
      ccc*)
 
16207
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16208
        # All Alpha code is PIC.
 
16209
        lt_prog_compiler_static_GCJ='-non_shared'
 
16210
        ;;
 
16211
      esac
 
16212
      ;;
 
16213
 
 
16214
    osf3* | osf4* | osf5*)
 
16215
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16216
      # All OSF/1 code is PIC.
 
16217
      lt_prog_compiler_static_GCJ='-non_shared'
 
16218
      ;;
 
16219
 
 
16220
    sco3.2v5*)
 
16221
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16222
      lt_prog_compiler_static_GCJ='-dn'
 
16223
      ;;
 
16224
 
 
16225
    solaris*)
 
16226
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16227
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16228
      case $cc_basename in
 
16229
      f77* | f90* | f95*)
 
16230
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16231
      *)
 
16232
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16233
      esac
 
16234
      ;;
 
16235
 
 
16236
    sunos4*)
 
16237
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16238
      lt_prog_compiler_pic_GCJ='-PIC'
 
16239
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16240
      ;;
 
16241
 
 
16242
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16243
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16244
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16245
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16246
      ;;
 
16247
 
 
16248
    sysv4*MP*)
 
16249
      if test -d /usr/nec ;then
 
16250
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16251
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16252
      fi
 
16253
      ;;
 
16254
 
 
16255
    unicos*)
 
16256
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16257
      lt_prog_compiler_can_build_shared_GCJ=no
 
16258
      ;;
 
16259
 
 
16260
    uts4*)
 
16261
      lt_prog_compiler_pic_GCJ='-pic'
 
16262
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16263
      ;;
 
16264
 
 
16265
    *)
 
16266
      lt_prog_compiler_can_build_shared_GCJ=no
 
16267
      ;;
 
16268
    esac
 
16269
  fi
 
16270
 
 
16271
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16272
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16273
 
 
16274
#
 
16275
# Check to make sure the PIC flag actually works.
 
16276
#
 
16277
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16278
 
 
16279
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16280
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16281
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16282
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16283
else
 
16284
  lt_prog_compiler_pic_works_GCJ=no
 
16285
  ac_outfile=conftest.$ac_objext
 
16286
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16287
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16288
   # Insert the option either (1) after the last *FLAGS variable, or
 
16289
   # (2) before a word containing "conftest.", or (3) at the end.
 
16290
   # Note that $ac_compile itself does not contain backslashes and begins
 
16291
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16292
   # The option is referenced via a variable to avoid confusing sed.
 
16293
   lt_compile=`echo "$ac_compile" | $SED \
 
16294
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16295
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16296
   -e 's:$: $lt_compiler_flag:'`
 
16297
   (eval echo "\"\$as_me:16297: $lt_compile\"" >&5)
 
16298
   (eval "$lt_compile" 2>conftest.err)
 
16299
   ac_status=$?
 
16300
   cat conftest.err >&5
 
16301
   echo "$as_me:16301: \$? = $ac_status" >&5
 
16302
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16303
     # The compiler can only warn and ignore the option if not recognized
 
16304
     # So say no if there are warnings other than the usual output.
 
16305
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
16306
     $SED '/^$/d' conftest.err >conftest.er2
 
16307
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
16308
       lt_prog_compiler_pic_works_GCJ=yes
 
16309
     fi
 
16310
   fi
 
16311
   $rm conftest*
 
16312
 
 
16313
fi
 
16314
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16315
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16316
 
 
16317
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16318
    case $lt_prog_compiler_pic_GCJ in
 
16319
     "" | " "*) ;;
 
16320
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16321
     esac
 
16322
else
 
16323
    lt_prog_compiler_pic_GCJ=
 
16324
     lt_prog_compiler_can_build_shared_GCJ=no
 
16325
fi
 
16326
 
 
16327
fi
 
16328
case $host_os in
 
16329
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16330
  *djgpp*)
 
16331
    lt_prog_compiler_pic_GCJ=
 
16332
    ;;
 
16333
  *)
 
16334
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16335
    ;;
 
16336
esac
 
16337
 
 
16338
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16339
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16340
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16342
else
 
16343
  lt_cv_prog_compiler_c_o_GCJ=no
 
16344
   $rm -r conftest 2>/dev/null
 
16345
   mkdir conftest
 
16346
   cd conftest
 
16347
   mkdir out
 
16348
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16349
 
 
16350
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16351
   # Insert the option either (1) after the last *FLAGS variable, or
 
16352
   # (2) before a word containing "conftest.", or (3) at the end.
 
16353
   # Note that $ac_compile itself does not contain backslashes and begins
 
16354
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16355
   lt_compile=`echo "$ac_compile" | $SED \
 
16356
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16357
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16358
   -e 's:$: $lt_compiler_flag:'`
 
16359
   (eval echo "\"\$as_me:16359: $lt_compile\"" >&5)
 
16360
   (eval "$lt_compile" 2>out/conftest.err)
 
16361
   ac_status=$?
 
16362
   cat out/conftest.err >&5
 
16363
   echo "$as_me:16363: \$? = $ac_status" >&5
 
16364
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16365
   then
 
16366
     # The compiler can only warn and ignore the option if not recognized
 
16367
     # So say no if there are warnings
 
16368
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
16369
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
16370
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16371
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16372
     fi
 
16373
   fi
 
16374
   chmod u+w . 2>&5
 
16375
   $rm conftest*
 
16376
   # SGI C++ compiler will create directory out/ii_files/ for
 
16377
   # template instantiation
 
16378
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16379
   $rm out/* && rmdir out
 
16380
   cd ..
 
16381
   rmdir conftest
 
16382
   $rm conftest*
 
16383
 
 
16384
fi
 
16385
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16386
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16387
 
 
16388
 
 
16389
hard_links="nottested"
 
16390
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16391
  # do not overwrite the value of need_locks provided by the user
 
16392
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16393
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16394
  hard_links=yes
 
16395
  $rm conftest*
 
16396
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16397
  touch conftest.a
 
16398
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16399
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16400
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16401
echo "${ECHO_T}$hard_links" >&6
 
16402
  if test "$hard_links" = no; then
 
16403
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16404
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16405
    need_locks=warn
 
16406
  fi
 
16407
else
 
16408
  need_locks=no
 
16409
fi
 
16410
 
 
16411
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16412
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16413
 
 
16414
  runpath_var=
 
16415
  allow_undefined_flag_GCJ=
 
16416
  enable_shared_with_static_runtimes_GCJ=no
 
16417
  archive_cmds_GCJ=
 
16418
  archive_expsym_cmds_GCJ=
 
16419
  old_archive_From_new_cmds_GCJ=
 
16420
  old_archive_from_expsyms_cmds_GCJ=
 
16421
  export_dynamic_flag_spec_GCJ=
 
16422
  whole_archive_flag_spec_GCJ=
 
16423
  thread_safe_flag_spec_GCJ=
 
16424
  hardcode_libdir_flag_spec_GCJ=
 
16425
  hardcode_libdir_flag_spec_ld_GCJ=
 
16426
  hardcode_libdir_separator_GCJ=
 
16427
  hardcode_direct_GCJ=no
 
16428
  hardcode_minus_L_GCJ=no
 
16429
  hardcode_shlibpath_var_GCJ=unsupported
 
16430
  link_all_deplibs_GCJ=unknown
 
16431
  hardcode_automatic_GCJ=no
 
16432
  module_cmds_GCJ=
 
16433
  module_expsym_cmds_GCJ=
 
16434
  always_export_symbols_GCJ=no
 
16435
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16436
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16437
  # included in the symbol list
 
16438
  include_expsyms_GCJ=
 
16439
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16440
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16441
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16442
  # as well as any symbol that contains `d'.
 
16443
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16444
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16445
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16446
  # the symbol is explicitly referenced.  Since portable code cannot
 
16447
  # rely on this symbol name, it's probably fine to never include it in
 
16448
  # preloaded symbol tables.
 
16449
  extract_expsyms_cmds=
 
16450
  # Just being paranoid about ensuring that cc_basename is set.
 
16451
  for cc_temp in $compiler""; do
 
16452
  case $cc_temp in
 
16453
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16454
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16455
    \-*) ;;
 
16456
    *) break;;
 
16457
  esac
 
16458
done
 
16459
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16460
 
 
16461
  case $host_os in
 
16462
  cygwin* | mingw* | pw32*)
 
16463
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16464
    # When not using gcc, we currently assume that we are using
 
16465
    # Microsoft Visual C++.
 
16466
    if test "$GCC" != yes; then
 
16467
      with_gnu_ld=no
 
16468
    fi
 
16469
    ;;
 
16470
  openbsd*)
 
16471
    with_gnu_ld=no
 
16472
    ;;
 
16473
  esac
 
16474
 
 
16475
  ld_shlibs_GCJ=yes
 
16476
  if test "$with_gnu_ld" = yes; then
 
16477
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16478
    wlarc='${wl}'
 
16479
 
 
16480
    # Set some defaults for GNU ld with shared library support. These
 
16481
    # are reset later if shared libraries are not supported. Putting them
 
16482
    # here allows them to be overridden if necessary.
 
16483
    runpath_var=LD_RUN_PATH
 
16484
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16485
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16486
    # ancient GNU ld didn't support --whole-archive et. al.
 
16487
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16488
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16489
      else
 
16490
        whole_archive_flag_spec_GCJ=
 
16491
    fi
 
16492
    supports_anon_versioning=no
 
16493
    case `$LD -v 2>/dev/null` in
 
16494
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16495
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16496
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16497
      *\ 2.11.*) ;; # other 2.11 versions
 
16498
      *) supports_anon_versioning=yes ;;
 
16499
    esac
 
16500
 
 
16501
    # See if GNU ld supports shared libraries.
 
16502
    case $host_os in
 
16503
    aix3* | aix4* | aix5*)
 
16504
      # On AIX/PPC, the GNU linker is very broken
 
16505
      if test "$host_cpu" != ia64; then
 
16506
        ld_shlibs_GCJ=no
 
16507
        cat <<EOF 1>&2
 
16508
 
 
16509
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16510
*** to be unable to reliably create shared libraries on AIX.
 
16511
*** Therefore, libtool is disabling shared libraries support.  If you
 
16512
*** really care for shared libraries, you may want to modify your PATH
 
16513
*** so that a non-GNU linker is found, and then restart.
 
16514
 
 
16515
EOF
 
16516
      fi
 
16517
      ;;
 
16518
 
 
16519
    amigaos*)
 
16520
      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)'
 
16521
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16522
      hardcode_minus_L_GCJ=yes
 
16523
 
 
16524
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16525
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16526
      # to version 4, is to share data among multiple programs linked
 
16527
      # with the same dynamic library.  Since this doesn't match the
 
16528
      # behavior of shared libraries on other platforms, we can't use
 
16529
      # them.
 
16530
      ld_shlibs_GCJ=no
 
16531
      ;;
 
16532
 
 
16533
    beos*)
 
16534
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16535
        allow_undefined_flag_GCJ=unsupported
 
16536
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16537
        # support --undefined.  This deserves some investigation.  FIXME
 
16538
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16539
      else
 
16540
        ld_shlibs_GCJ=no
 
16541
      fi
 
16542
      ;;
 
16543
 
 
16544
    cygwin* | mingw* | pw32*)
 
16545
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16546
      # as there is no search path for DLLs.
 
16547
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16548
      allow_undefined_flag_GCJ=unsupported
 
16549
      always_export_symbols_GCJ=no
 
16550
      enable_shared_with_static_runtimes_GCJ=yes
 
16551
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16552
 
 
16553
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16554
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16555
        # If the export-symbols file already is a .def file (1st line
 
16556
        # is EXPORTS), use it as is; otherwise, prepend...
 
16557
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16558
          cp $export_symbols $output_objdir/$soname.def;
 
16559
        else
 
16560
          echo EXPORTS > $output_objdir/$soname.def;
 
16561
          cat $export_symbols >> $output_objdir/$soname.def;
 
16562
        fi~
 
16563
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16564
      else
 
16565
        ld_shlibs_GCJ=no
 
16566
      fi
 
16567
      ;;
 
16568
 
 
16569
    linux*)
 
16570
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16571
        tmp_addflag=
 
16572
        case $cc_basename,$host_cpu in
 
16573
        pgcc*)                          # Portland Group C compiler
 
16574
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16575
          tmp_addflag=' $pic_flag'
 
16576
          ;;
 
16577
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16578
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16579
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16580
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16581
          tmp_addflag=' -i_dynamic' ;;
 
16582
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16583
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16584
        ifc* | ifort*)                  # Intel Fortran compiler
 
16585
          tmp_addflag=' -nofor_main' ;;
 
16586
        esac
 
16587
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16588
 
 
16589
        if test $supports_anon_versioning = yes; then
 
16590
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16591
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16592
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16593
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16594
        fi
 
16595
      else
 
16596
        ld_shlibs_GCJ=no
 
16597
      fi
 
16598
      ;;
 
16599
 
 
16600
    netbsd*)
 
16601
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16602
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16603
        wlarc=
 
16604
      else
 
16605
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16606
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16607
      fi
 
16608
      ;;
 
16609
 
 
16610
    solaris* | sysv5*)
 
16611
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16612
        ld_shlibs_GCJ=no
 
16613
        cat <<EOF 1>&2
 
16614
 
 
16615
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16616
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16617
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16618
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16619
*** your PATH or compiler configuration so that the native linker is
 
16620
*** used, and then restart.
 
16621
 
 
16622
EOF
 
16623
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16624
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16625
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16626
      else
 
16627
        ld_shlibs_GCJ=no
 
16628
      fi
 
16629
      ;;
 
16630
 
 
16631
    sunos4*)
 
16632
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16633
      wlarc=
 
16634
      hardcode_direct_GCJ=yes
 
16635
      hardcode_shlibpath_var_GCJ=no
 
16636
      ;;
 
16637
 
 
16638
    *)
 
16639
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16640
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16641
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16642
      else
 
16643
        ld_shlibs_GCJ=no
 
16644
      fi
 
16645
      ;;
 
16646
    esac
 
16647
 
 
16648
    if test "$ld_shlibs_GCJ" = no; then
 
16649
      runpath_var=
 
16650
      hardcode_libdir_flag_spec_GCJ=
 
16651
      export_dynamic_flag_spec_GCJ=
 
16652
      whole_archive_flag_spec_GCJ=
 
16653
    fi
 
16654
  else
 
16655
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16656
    case $host_os in
 
16657
    aix3*)
 
16658
      allow_undefined_flag_GCJ=unsupported
 
16659
      always_export_symbols_GCJ=yes
 
16660
      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'
 
16661
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16662
      # are no directories specified by -L.
 
16663
      hardcode_minus_L_GCJ=yes
 
16664
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16665
        # Neither direct hardcoding nor static linking is supported with a
 
16666
        # broken collect2.
 
16667
        hardcode_direct_GCJ=unsupported
 
16668
      fi
 
16669
      ;;
 
16670
 
 
16671
    aix4* | aix5*)
 
16672
      if test "$host_cpu" = ia64; then
 
16673
        # On IA64, the linker does run time linking by default, so we don't
 
16674
        # have to do anything special.
 
16675
        aix_use_runtimelinking=no
 
16676
        exp_sym_flag='-Bexport'
 
16677
        no_entry_flag=""
 
16678
      else
 
16679
        # If we're using GNU nm, then we don't want the "-C" option.
 
16680
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16681
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16682
          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'
 
16683
        else
 
16684
          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'
 
16685
        fi
 
16686
        aix_use_runtimelinking=no
 
16687
 
 
16688
        # Test if we are trying to use run time linking or normal
 
16689
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16690
        # need to do runtime linking.
 
16691
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16692
          for ld_flag in $LDFLAGS; do
 
16693
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16694
            aix_use_runtimelinking=yes
 
16695
            break
 
16696
          fi
 
16697
          done
 
16698
        esac
 
16699
 
 
16700
        exp_sym_flag='-bexport'
 
16701
        no_entry_flag='-bnoentry'
 
16702
      fi
 
16703
 
 
16704
      # When large executables or shared objects are built, AIX ld can
 
16705
      # have problems creating the table of contents.  If linking a library
 
16706
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16707
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16708
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16709
 
 
16710
      archive_cmds_GCJ=''
 
16711
      hardcode_direct_GCJ=yes
 
16712
      hardcode_libdir_separator_GCJ=':'
 
16713
      link_all_deplibs_GCJ=yes
 
16714
 
 
16715
      if test "$GCC" = yes; then
 
16716
        case $host_os in aix4.[012]|aix4.[012].*)
 
16717
        # We only want to do this on AIX 4.2 and lower, the check
 
16718
        # below for broken collect2 doesn't work under 4.3+
 
16719
          collect2name=`${CC} -print-prog-name=collect2`
 
16720
          if test -f "$collect2name" && \
 
16721
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16722
          then
 
16723
          # We have reworked collect2
 
16724
          hardcode_direct_GCJ=yes
 
16725
          else
 
16726
          # We have old collect2
 
16727
          hardcode_direct_GCJ=unsupported
 
16728
          # It fails to find uninstalled libraries when the uninstalled
 
16729
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16730
          # to unsupported forces relinking
 
16731
          hardcode_minus_L_GCJ=yes
 
16732
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16733
          hardcode_libdir_separator_GCJ=
 
16734
          fi
 
16735
        esac
 
16736
        shared_flag='-shared'
 
16737
        if test "$aix_use_runtimelinking" = yes; then
 
16738
          shared_flag="$shared_flag "'${wl}-G'
 
16739
        fi
 
16740
      else
 
16741
        # not using gcc
 
16742
        if test "$host_cpu" = ia64; then
 
16743
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16744
        # chokes on -Wl,-G. The following line is correct:
 
16745
          shared_flag='-G'
 
16746
        else
 
16747
        if test "$aix_use_runtimelinking" = yes; then
 
16748
            shared_flag='${wl}-G'
 
16749
          else
 
16750
            shared_flag='${wl}-bM:SRE'
 
16751
        fi
 
16752
        fi
 
16753
      fi
 
16754
 
 
16755
      # It seems that -bexpall does not export symbols beginning with
 
16756
      # underscore (_), so it is better to generate a list of symbols to export.
 
16757
      always_export_symbols_GCJ=yes
 
16758
      if test "$aix_use_runtimelinking" = yes; then
 
16759
        # Warning - without using the other runtime loading flags (-brtl),
 
16760
        # -berok will link without error, but may produce a broken library.
 
16761
        allow_undefined_flag_GCJ='-berok'
 
16762
       # Determine the default libpath from the value encoded in an empty executable.
 
16763
       cat >conftest.$ac_ext <<_ACEOF
 
16764
/* confdefs.h.  */
 
16765
_ACEOF
 
16766
cat confdefs.h >>conftest.$ac_ext
 
16767
cat >>conftest.$ac_ext <<_ACEOF
 
16768
/* end confdefs.h.  */
 
16769
 
 
16770
int
 
16771
main ()
 
16772
{
 
16773
 
 
16774
  ;
 
16775
  return 0;
 
16776
}
 
16777
_ACEOF
 
16778
rm -f conftest.$ac_objext conftest$ac_exeext
 
16779
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16780
  (eval $ac_link) 2>conftest.er1
 
16781
  ac_status=$?
 
16782
  grep -v '^ *+' conftest.er1 >conftest.err
 
16783
  rm -f conftest.er1
 
16784
  cat conftest.err >&5
 
16785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16786
  (exit $ac_status); } &&
 
16787
         { ac_try='test -z "$ac_c_werror_flag"
 
16788
                         || test ! -s conftest.err'
 
16789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16790
  (eval $ac_try) 2>&5
 
16791
  ac_status=$?
 
16792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16793
  (exit $ac_status); }; } &&
 
16794
         { ac_try='test -s conftest$ac_exeext'
 
16795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16796
  (eval $ac_try) 2>&5
 
16797
  ac_status=$?
 
16798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16799
  (exit $ac_status); }; }; then
 
16800
 
 
16801
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16802
}'`
 
16803
# Check for a 64-bit object if we didn't find anything.
 
16804
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; }
 
16805
}'`; fi
 
16806
else
 
16807
  echo "$as_me: failed program was:" >&5
 
16808
sed 's/^/| /' conftest.$ac_ext >&5
 
16809
 
 
16810
fi
 
16811
rm -f conftest.err conftest.$ac_objext \
 
16812
      conftest$ac_exeext conftest.$ac_ext
 
16813
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16814
 
 
16815
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16816
        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"
 
16817
       else
 
16818
        if test "$host_cpu" = ia64; then
 
16819
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16820
          allow_undefined_flag_GCJ="-z nodefs"
 
16821
          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"
 
16822
        else
 
16823
         # Determine the default libpath from the value encoded in an empty executable.
 
16824
         cat >conftest.$ac_ext <<_ACEOF
 
16825
/* confdefs.h.  */
 
16826
_ACEOF
 
16827
cat confdefs.h >>conftest.$ac_ext
 
16828
cat >>conftest.$ac_ext <<_ACEOF
 
16829
/* end confdefs.h.  */
 
16830
 
 
16831
int
 
16832
main ()
 
16833
{
 
16834
 
 
16835
  ;
 
16836
  return 0;
 
16837
}
 
16838
_ACEOF
 
16839
rm -f conftest.$ac_objext conftest$ac_exeext
 
16840
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16841
  (eval $ac_link) 2>conftest.er1
 
16842
  ac_status=$?
 
16843
  grep -v '^ *+' conftest.er1 >conftest.err
 
16844
  rm -f conftest.er1
 
16845
  cat conftest.err >&5
 
16846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16847
  (exit $ac_status); } &&
 
16848
         { ac_try='test -z "$ac_c_werror_flag"
 
16849
                         || test ! -s conftest.err'
 
16850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16851
  (eval $ac_try) 2>&5
 
16852
  ac_status=$?
 
16853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16854
  (exit $ac_status); }; } &&
 
16855
         { ac_try='test -s conftest$ac_exeext'
 
16856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16857
  (eval $ac_try) 2>&5
 
16858
  ac_status=$?
 
16859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16860
  (exit $ac_status); }; }; then
 
16861
 
 
16862
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16863
}'`
 
16864
# Check for a 64-bit object if we didn't find anything.
 
16865
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; }
 
16866
}'`; fi
 
16867
else
 
16868
  echo "$as_me: failed program was:" >&5
 
16869
sed 's/^/| /' conftest.$ac_ext >&5
 
16870
 
 
16871
fi
 
16872
rm -f conftest.err conftest.$ac_objext \
 
16873
      conftest$ac_exeext conftest.$ac_ext
 
16874
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16875
 
 
16876
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16877
          # Warning - without using the other run time loading flags,
 
16878
          # -berok will link without error, but may produce a broken library.
 
16879
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16880
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16881
          # -bexpall does not export symbols beginning with underscore (_)
 
16882
          always_export_symbols_GCJ=yes
 
16883
          # Exported symbols can be pulled into shared objects from archives
 
16884
          whole_archive_flag_spec_GCJ=' '
 
16885
          archive_cmds_need_lc_GCJ=yes
 
16886
          # This is similar to how AIX traditionally builds its shared libraries.
 
16887
          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'
 
16888
        fi
 
16889
      fi
 
16890
      ;;
 
16891
 
 
16892
    amigaos*)
 
16893
      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)'
 
16894
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16895
      hardcode_minus_L_GCJ=yes
 
16896
      # see comment about different semantics on the GNU ld section
 
16897
      ld_shlibs_GCJ=no
 
16898
      ;;
 
16899
 
 
16900
    bsdi[45]*)
 
16901
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16902
      ;;
 
16903
 
 
16904
    cygwin* | mingw* | pw32*)
 
16905
      # When not using gcc, we currently assume that we are using
 
16906
      # Microsoft Visual C++.
 
16907
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16908
      # no search path for DLLs.
 
16909
      hardcode_libdir_flag_spec_GCJ=' '
 
16910
      allow_undefined_flag_GCJ=unsupported
 
16911
      # Tell ltmain to make .lib files, not .a files.
 
16912
      libext=lib
 
16913
      # Tell ltmain to make .dll files, not .so files.
 
16914
      shrext_cmds=".dll"
 
16915
      # FIXME: Setting linknames here is a bad hack.
 
16916
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16917
      # The linker will automatically build a .lib file if we build a DLL.
 
16918
      old_archive_From_new_cmds_GCJ='true'
 
16919
      # FIXME: Should let the user specify the lib program.
 
16920
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16921
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16922
      enable_shared_with_static_runtimes_GCJ=yes
 
16923
      ;;
 
16924
 
 
16925
    darwin* | rhapsody*)
 
16926
      case $host_os in
 
16927
        rhapsody* | darwin1.[012])
 
16928
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16929
         ;;
 
16930
       *) # Darwin 1.3 on
 
16931
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16932
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16933
         else
 
16934
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16935
             10.[012])
 
16936
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16937
               ;;
 
16938
             10.*)
 
16939
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16940
               ;;
 
16941
           esac
 
16942
         fi
 
16943
         ;;
 
16944
      esac
 
16945
      archive_cmds_need_lc_GCJ=no
 
16946
      hardcode_direct_GCJ=no
 
16947
      hardcode_automatic_GCJ=yes
 
16948
      hardcode_shlibpath_var_GCJ=unsupported
 
16949
      whole_archive_flag_spec_GCJ=''
 
16950
      link_all_deplibs_GCJ=yes
 
16951
    if test "$GCC" = yes ; then
 
16952
        output_verbose_link_cmd='echo'
 
16953
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16954
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16955
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16956
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16957
      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}'
 
16958
    else
 
16959
      case $cc_basename in
 
16960
        xlc*)
 
16961
         output_verbose_link_cmd='echo'
 
16962
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16963
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16964
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16965
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16966
          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}'
 
16967
          ;;
 
16968
       *)
 
16969
         ld_shlibs_GCJ=no
 
16970
          ;;
 
16971
      esac
 
16972
    fi
 
16973
      ;;
 
16974
 
 
16975
    dgux*)
 
16976
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16977
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16978
      hardcode_shlibpath_var_GCJ=no
 
16979
      ;;
 
16980
 
 
16981
    freebsd1*)
 
16982
      ld_shlibs_GCJ=no
 
16983
      ;;
 
16984
 
 
16985
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16986
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16987
    # does not break anything, and helps significantly (at the cost of a little
 
16988
    # extra space).
 
16989
    freebsd2.2*)
 
16990
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16991
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16992
      hardcode_direct_GCJ=yes
 
16993
      hardcode_shlibpath_var_GCJ=no
 
16994
      ;;
 
16995
 
 
16996
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16997
    freebsd2*)
 
16998
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16999
      hardcode_direct_GCJ=yes
 
17000
      hardcode_minus_L_GCJ=yes
 
17001
      hardcode_shlibpath_var_GCJ=no
 
17002
      ;;
 
17003
 
 
17004
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17005
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
17006
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17007
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17008
      hardcode_direct_GCJ=yes
 
17009
      hardcode_shlibpath_var_GCJ=no
 
17010
      ;;
 
17011
 
 
17012
    hpux9*)
 
17013
      if test "$GCC" = yes; then
 
17014
        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'
 
17015
      else
 
17016
        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'
 
17017
      fi
 
17018
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17019
      hardcode_libdir_separator_GCJ=:
 
17020
      hardcode_direct_GCJ=yes
 
17021
 
 
17022
      # hardcode_minus_L: Not really in the search PATH,
 
17023
      # but as the default location of the library.
 
17024
      hardcode_minus_L_GCJ=yes
 
17025
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17026
      ;;
 
17027
 
 
17028
    hpux10* | hpux11*)
 
17029
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17030
        case $host_cpu in
 
17031
        hppa*64*|ia64*)
 
17032
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17033
          ;;
 
17034
        *)
 
17035
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17036
          ;;
 
17037
        esac
 
17038
      else
 
17039
        case $host_cpu in
 
17040
        hppa*64*|ia64*)
 
17041
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17042
          ;;
 
17043
        *)
 
17044
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17045
          ;;
 
17046
        esac
 
17047
      fi
 
17048
      if test "$with_gnu_ld" = no; then
 
17049
        case $host_cpu in
 
17050
        hppa*64*)
 
17051
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17052
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17053
          hardcode_libdir_separator_GCJ=:
 
17054
          hardcode_direct_GCJ=no
 
17055
          hardcode_shlibpath_var_GCJ=no
 
17056
          ;;
 
17057
        ia64*)
 
17058
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17059
          hardcode_direct_GCJ=no
 
17060
          hardcode_shlibpath_var_GCJ=no
 
17061
 
 
17062
          # hardcode_minus_L: Not really in the search PATH,
 
17063
          # but as the default location of the library.
 
17064
          hardcode_minus_L_GCJ=yes
 
17065
          ;;
 
17066
        *)
 
17067
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17068
          hardcode_libdir_separator_GCJ=:
 
17069
          hardcode_direct_GCJ=yes
 
17070
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17071
 
 
17072
          # hardcode_minus_L: Not really in the search PATH,
 
17073
          # but as the default location of the library.
 
17074
          hardcode_minus_L_GCJ=yes
 
17075
          ;;
 
17076
        esac
 
17077
      fi
 
17078
      ;;
 
17079
 
 
17080
    irix5* | irix6* | nonstopux*)
 
17081
      if test "$GCC" = yes; then
 
17082
        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'
 
17083
      else
 
17084
        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'
 
17085
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17086
      fi
 
17087
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17088
      hardcode_libdir_separator_GCJ=:
 
17089
      link_all_deplibs_GCJ=yes
 
17090
      ;;
 
17091
 
 
17092
    netbsd*)
 
17093
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17094
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17095
      else
 
17096
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17097
      fi
 
17098
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17099
      hardcode_direct_GCJ=yes
 
17100
      hardcode_shlibpath_var_GCJ=no
 
17101
      ;;
 
17102
 
 
17103
    newsos6)
 
17104
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17105
      hardcode_direct_GCJ=yes
 
17106
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17107
      hardcode_libdir_separator_GCJ=:
 
17108
      hardcode_shlibpath_var_GCJ=no
 
17109
      ;;
 
17110
 
 
17111
    openbsd*)
 
17112
      hardcode_direct_GCJ=yes
 
17113
      hardcode_shlibpath_var_GCJ=no
 
17114
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17115
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17116
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17117
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17118
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17119
      else
 
17120
       case $host_os in
 
17121
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17122
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17123
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17124
           ;;
 
17125
         *)
 
17126
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17127
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17128
           ;;
 
17129
       esac
 
17130
      fi
 
17131
      ;;
 
17132
 
 
17133
    os2*)
 
17134
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17135
      hardcode_minus_L_GCJ=yes
 
17136
      allow_undefined_flag_GCJ=unsupported
 
17137
      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'
 
17138
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17139
      ;;
 
17140
 
 
17141
    osf3*)
 
17142
      if test "$GCC" = yes; then
 
17143
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17144
        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'
 
17145
      else
 
17146
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17147
        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'
 
17148
      fi
 
17149
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17150
      hardcode_libdir_separator_GCJ=:
 
17151
      ;;
 
17152
 
 
17153
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17154
      if test "$GCC" = yes; then
 
17155
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17156
        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'
 
17157
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17158
      else
 
17159
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17160
        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'
 
17161
        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~
 
17162
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
17163
 
 
17164
        # Both c and cxx compiler support -rpath directly
 
17165
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17166
      fi
 
17167
      hardcode_libdir_separator_GCJ=:
 
17168
      ;;
 
17169
 
 
17170
    sco3.2v5*)
 
17171
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17172
      hardcode_shlibpath_var_GCJ=no
 
17173
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17174
      runpath_var=LD_RUN_PATH
 
17175
      hardcode_runpath_var=yes
 
17176
      ;;
 
17177
 
 
17178
    solaris*)
 
17179
      no_undefined_flag_GCJ=' -z text'
 
17180
      if test "$GCC" = yes; then
 
17181
        wlarc='${wl}'
 
17182
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17183
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17184
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17185
      else
 
17186
        wlarc=''
 
17187
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17188
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17189
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17190
      fi
 
17191
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17192
      hardcode_shlibpath_var_GCJ=no
 
17193
      case $host_os in
 
17194
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17195
      *)
 
17196
        # The compiler driver will combine linker options so we
 
17197
        # cannot just pass the convience library names through
 
17198
        # without $wl, iff we do not link with $LD.
 
17199
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17200
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17201
        case $wlarc in
 
17202
        '')
 
17203
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17204
        *)
 
17205
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17206
        esac ;;
 
17207
      esac
 
17208
      link_all_deplibs_GCJ=yes
 
17209
      ;;
 
17210
 
 
17211
    sunos4*)
 
17212
      if test "x$host_vendor" = xsequent; then
 
17213
        # Use $CC to link under sequent, because it throws in some extra .o
 
17214
        # files that make .init and .fini sections work.
 
17215
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17216
      else
 
17217
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17218
      fi
 
17219
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17220
      hardcode_direct_GCJ=yes
 
17221
      hardcode_minus_L_GCJ=yes
 
17222
      hardcode_shlibpath_var_GCJ=no
 
17223
      ;;
 
17224
 
 
17225
    sysv4)
 
17226
      case $host_vendor in
 
17227
        sni)
 
17228
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17229
          hardcode_direct_GCJ=yes # is this really true???
 
17230
        ;;
 
17231
        siemens)
 
17232
          ## LD is ld it makes a PLAMLIB
 
17233
          ## CC just makes a GrossModule.
 
17234
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17235
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17236
          hardcode_direct_GCJ=no
 
17237
        ;;
 
17238
        motorola)
 
17239
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17240
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17241
        ;;
 
17242
      esac
 
17243
      runpath_var='LD_RUN_PATH'
 
17244
      hardcode_shlibpath_var_GCJ=no
 
17245
      ;;
 
17246
 
 
17247
    sysv4.3*)
 
17248
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17249
      hardcode_shlibpath_var_GCJ=no
 
17250
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17251
      ;;
 
17252
 
 
17253
    sysv4*MP*)
 
17254
      if test -d /usr/nec; then
 
17255
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17256
        hardcode_shlibpath_var_GCJ=no
 
17257
        runpath_var=LD_RUN_PATH
 
17258
        hardcode_runpath_var=yes
 
17259
        ld_shlibs_GCJ=yes
 
17260
      fi
 
17261
      ;;
 
17262
 
 
17263
    sysv4.2uw2*)
 
17264
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17265
      hardcode_direct_GCJ=yes
 
17266
      hardcode_minus_L_GCJ=no
 
17267
      hardcode_shlibpath_var_GCJ=no
 
17268
      hardcode_runpath_var=yes
 
17269
      runpath_var=LD_RUN_PATH
 
17270
      ;;
 
17271
 
 
17272
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17273
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17274
      if test "$GCC" = yes; then
 
17275
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17276
      else
 
17277
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17278
      fi
 
17279
      runpath_var='LD_RUN_PATH'
 
17280
      hardcode_shlibpath_var_GCJ=no
 
17281
      ;;
 
17282
 
 
17283
    sysv5*)
 
17284
      no_undefined_flag_GCJ=' -z text'
 
17285
      # $CC -shared without GNU ld will not create a library from C++
 
17286
      # object files and a static libstdc++, better avoid it by now
 
17287
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17288
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17289
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17290
      hardcode_libdir_flag_spec_GCJ=
 
17291
      hardcode_shlibpath_var_GCJ=no
 
17292
      runpath_var='LD_RUN_PATH'
 
17293
      ;;
 
17294
 
 
17295
    uts4*)
 
17296
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17297
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17298
      hardcode_shlibpath_var_GCJ=no
 
17299
      ;;
 
17300
 
 
17301
    *)
 
17302
      ld_shlibs_GCJ=no
 
17303
      ;;
 
17304
    esac
 
17305
  fi
 
17306
 
 
17307
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17308
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17309
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17310
 
 
17311
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17312
if test "$GCC" = yes; then
 
17313
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17314
fi
 
17315
 
 
17316
#
 
17317
# Do we need to explicitly link libc?
 
17318
#
 
17319
case "x$archive_cmds_need_lc_GCJ" in
 
17320
x|xyes)
 
17321
  # Assume -lc should be added
 
17322
  archive_cmds_need_lc_GCJ=yes
 
17323
 
 
17324
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17325
    case $archive_cmds_GCJ in
 
17326
    *'~'*)
 
17327
      # FIXME: we may have to deal with multi-command sequences.
 
17328
      ;;
 
17329
    '$CC '*)
 
17330
      # Test whether the compiler implicitly links with -lc since on some
 
17331
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17332
      # to ld, don't add -lc before -lgcc.
 
17333
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17334
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17335
      $rm conftest*
 
17336
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17337
 
 
17338
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17339
  (eval $ac_compile) 2>&5
 
17340
  ac_status=$?
 
17341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17342
  (exit $ac_status); } 2>conftest.err; then
 
17343
        soname=conftest
 
17344
        lib=conftest
 
17345
        libobjs=conftest.$ac_objext
 
17346
        deplibs=
 
17347
        wl=$lt_prog_compiler_wl_GCJ
 
17348
        compiler_flags=-v
 
17349
        linker_flags=-v
 
17350
        verstring=
 
17351
        output_objdir=.
 
17352
        libname=conftest
 
17353
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17354
        allow_undefined_flag_GCJ=
 
17355
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17356
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17357
  ac_status=$?
 
17358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17359
  (exit $ac_status); }
 
17360
        then
 
17361
          archive_cmds_need_lc_GCJ=no
 
17362
        else
 
17363
          archive_cmds_need_lc_GCJ=yes
 
17364
        fi
 
17365
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17366
      else
 
17367
        cat conftest.err 1>&5
 
17368
      fi
 
17369
      $rm conftest*
 
17370
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17371
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17372
      ;;
 
17373
    esac
 
17374
  fi
 
17375
  ;;
 
17376
esac
 
17377
 
 
17378
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17379
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17380
library_names_spec=
 
17381
libname_spec='lib$name'
 
17382
soname_spec=
 
17383
shrext_cmds=".so"
 
17384
postinstall_cmds=
 
17385
postuninstall_cmds=
 
17386
finish_cmds=
 
17387
finish_eval=
 
17388
shlibpath_var=
 
17389
shlibpath_overrides_runpath=unknown
 
17390
version_type=none
 
17391
dynamic_linker="$host_os ld.so"
 
17392
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17393
if test "$GCC" = yes; then
 
17394
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17395
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17396
    # if the path contains ";" then we assume it to be the separator
 
17397
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17398
    # assumed that no part of a normal pathname contains ";" but that should
 
17399
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17400
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17401
  else
 
17402
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17403
  fi
 
17404
else
 
17405
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17406
fi
 
17407
need_lib_prefix=unknown
 
17408
hardcode_into_libs=no
 
17409
 
 
17410
# when you set need_version to no, make sure it does not cause -set_version
 
17411
# flags to be left without arguments
 
17412
need_version=unknown
 
17413
 
 
17414
case $host_os in
 
17415
aix3*)
 
17416
  version_type=linux
 
17417
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17418
  shlibpath_var=LIBPATH
 
17419
 
 
17420
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17421
  soname_spec='${libname}${release}${shared_ext}$major'
 
17422
  ;;
 
17423
 
 
17424
aix4* | aix5*)
 
17425
  version_type=linux
 
17426
  need_lib_prefix=no
 
17427
  need_version=no
 
17428
  hardcode_into_libs=yes
 
17429
  if test "$host_cpu" = ia64; then
 
17430
    # AIX 5 supports IA64
 
17431
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17432
    shlibpath_var=LD_LIBRARY_PATH
 
17433
  else
 
17434
    # With GCC up to 2.95.x, collect2 would create an import file
 
17435
    # for dependence libraries.  The import file would start with
 
17436
    # the line `#! .'.  This would cause the generated library to
 
17437
    # depend on `.', always an invalid library.  This was fixed in
 
17438
    # development snapshots of GCC prior to 3.0.
 
17439
    case $host_os in
 
17440
      aix4 | aix4.[01] | aix4.[01].*)
 
17441
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17442
           echo ' yes '
 
17443
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17444
        :
 
17445
      else
 
17446
        can_build_shared=no
 
17447
      fi
 
17448
      ;;
 
17449
    esac
 
17450
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17451
    # soname into executable. Probably we can add versioning support to
 
17452
    # collect2, so additional links can be useful in future.
 
17453
    if test "$aix_use_runtimelinking" = yes; then
 
17454
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17455
      # instead of lib<name>.a to let people know that these are not
 
17456
      # typical AIX shared libraries.
 
17457
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17458
    else
 
17459
      # We preserve .a as extension for shared libraries through AIX4.2
 
17460
      # and later when we are not doing run time linking.
 
17461
      library_names_spec='${libname}${release}.a $libname.a'
 
17462
      soname_spec='${libname}${release}${shared_ext}$major'
 
17463
    fi
 
17464
    shlibpath_var=LIBPATH
 
17465
  fi
 
17466
  ;;
 
17467
 
 
17468
amigaos*)
 
17469
  library_names_spec='$libname.ixlibrary $libname.a'
 
17470
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17471
  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'
 
17472
  ;;
 
17473
 
 
17474
beos*)
 
17475
  library_names_spec='${libname}${shared_ext}'
 
17476
  dynamic_linker="$host_os ld.so"
 
17477
  shlibpath_var=LIBRARY_PATH
 
17478
  ;;
 
17479
 
 
17480
bsdi[45]*)
 
17481
  version_type=linux
 
17482
  need_version=no
 
17483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17484
  soname_spec='${libname}${release}${shared_ext}$major'
 
17485
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17486
  shlibpath_var=LD_LIBRARY_PATH
 
17487
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17488
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17489
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17490
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17491
  # libtool to hard-code these into programs
 
17492
  ;;
 
17493
 
 
17494
cygwin* | mingw* | pw32*)
 
17495
  version_type=windows
 
17496
  shrext_cmds=".dll"
 
17497
  need_version=no
 
17498
  need_lib_prefix=no
 
17499
 
 
17500
  case $GCC,$host_os in
 
17501
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17502
    library_names_spec='$libname.dll.a'
 
17503
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17504
    postinstall_cmds='base_file=`basename \${file}`~
 
17505
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17506
      dldir=$destdir/`dirname \$dlpath`~
 
17507
      test -d \$dldir || mkdir -p \$dldir~
 
17508
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17509
      chmod a+x \$dldir/$dlname'
 
17510
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17511
      dlpath=$dir/\$dldll~
 
17512
       $rm \$dlpath'
 
17513
    shlibpath_overrides_runpath=yes
 
17514
 
 
17515
    case $host_os in
 
17516
    cygwin*)
 
17517
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17518
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17519
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17520
      ;;
 
17521
    mingw*)
 
17522
      # MinGW DLLs use traditional 'lib' prefix
 
17523
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17524
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17525
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17526
        # It is most probably a Windows format PATH printed by
 
17527
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17528
        # path with ; separators, and with drive letters. We can handle the
 
17529
        # drive letters (cygwin fileutils understands them), so leave them,
 
17530
        # especially as we might pass files found there to a mingw objdump,
 
17531
        # which wouldn't understand a cygwinified path. Ahh.
 
17532
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17533
      else
 
17534
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17535
      fi
 
17536
      ;;
 
17537
    pw32*)
 
17538
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17539
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17540
      ;;
 
17541
    esac
 
17542
    ;;
 
17543
 
 
17544
  *)
 
17545
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17546
    ;;
 
17547
  esac
 
17548
  dynamic_linker='Win32 ld.exe'
 
17549
  # FIXME: first we should search . and the directory the executable is in
 
17550
  shlibpath_var=PATH
 
17551
  ;;
 
17552
 
 
17553
darwin* | rhapsody*)
 
17554
  dynamic_linker="$host_os dyld"
 
17555
  version_type=darwin
 
17556
  need_lib_prefix=no
 
17557
  need_version=no
 
17558
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17559
  soname_spec='${libname}${release}${major}$shared_ext'
 
17560
  shlibpath_overrides_runpath=yes
 
17561
  shlibpath_var=DYLD_LIBRARY_PATH
 
17562
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17563
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17564
  if test "$GCC" = yes; then
 
17565
    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"`
 
17566
  else
 
17567
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17568
  fi
 
17569
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17570
  ;;
 
17571
 
 
17572
dgux*)
 
17573
  version_type=linux
 
17574
  need_lib_prefix=no
 
17575
  need_version=no
 
17576
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17577
  soname_spec='${libname}${release}${shared_ext}$major'
 
17578
  shlibpath_var=LD_LIBRARY_PATH
 
17579
  ;;
 
17580
 
 
17581
freebsd1*)
 
17582
  dynamic_linker=no
 
17583
  ;;
 
17584
 
 
17585
kfreebsd*-gnu)
 
17586
  version_type=linux
 
17587
  need_lib_prefix=no
 
17588
  need_version=no
 
17589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17590
  soname_spec='${libname}${release}${shared_ext}$major'
 
17591
  shlibpath_var=LD_LIBRARY_PATH
 
17592
  shlibpath_overrides_runpath=no
 
17593
  hardcode_into_libs=yes
 
17594
  dynamic_linker='GNU ld.so'
 
17595
  ;;
 
17596
 
 
17597
freebsd* | dragonfly*)
 
17598
  # DragonFly does not have aout.  When/if they implement a new
 
17599
  # versioning mechanism, adjust this.
 
17600
  if test -x /usr/bin/objformat; then
 
17601
    objformat=`/usr/bin/objformat`
 
17602
  else
 
17603
    case $host_os in
 
17604
    freebsd[123]*) objformat=aout ;;
 
17605
    *) objformat=elf ;;
 
17606
    esac
 
17607
  fi
 
17608
  version_type=freebsd-$objformat
 
17609
  case $version_type in
 
17610
    freebsd-elf*)
 
17611
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17612
      need_version=no
 
17613
      need_lib_prefix=no
 
17614
      ;;
 
17615
    freebsd-*)
 
17616
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17617
      need_version=yes
 
17618
      ;;
 
17619
  esac
 
17620
  shlibpath_var=LD_LIBRARY_PATH
 
17621
  case $host_os in
 
17622
  freebsd2*)
 
17623
    shlibpath_overrides_runpath=yes
 
17624
    ;;
 
17625
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17626
    shlibpath_overrides_runpath=yes
 
17627
    hardcode_into_libs=yes
 
17628
    ;;
 
17629
  *) # from 3.2 on
 
17630
    shlibpath_overrides_runpath=no
 
17631
    hardcode_into_libs=yes
 
17632
    ;;
 
17633
  esac
 
17634
  ;;
 
17635
 
 
17636
gnu*)
 
17637
  version_type=linux
 
17638
  need_lib_prefix=no
 
17639
  need_version=no
 
17640
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17641
  soname_spec='${libname}${release}${shared_ext}$major'
 
17642
  shlibpath_var=LD_LIBRARY_PATH
 
17643
  hardcode_into_libs=yes
 
17644
  ;;
 
17645
 
 
17646
hpux9* | hpux10* | hpux11*)
 
17647
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17648
  # link against other versions.
 
17649
  version_type=sunos
 
17650
  need_lib_prefix=no
 
17651
  need_version=no
 
17652
  case $host_cpu in
 
17653
  ia64*)
 
17654
    shrext_cmds='.so'
 
17655
    hardcode_into_libs=yes
 
17656
    dynamic_linker="$host_os dld.so"
 
17657
    shlibpath_var=LD_LIBRARY_PATH
 
17658
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17659
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17660
    soname_spec='${libname}${release}${shared_ext}$major'
 
17661
    if test "X$HPUX_IA64_MODE" = X32; then
 
17662
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17663
    else
 
17664
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17665
    fi
 
17666
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17667
    ;;
 
17668
   hppa*64*)
 
17669
     shrext_cmds='.sl'
 
17670
     hardcode_into_libs=yes
 
17671
     dynamic_linker="$host_os dld.sl"
 
17672
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17673
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17674
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17675
     soname_spec='${libname}${release}${shared_ext}$major'
 
17676
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17677
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17678
     ;;
 
17679
   *)
 
17680
    shrext_cmds='.sl'
 
17681
    dynamic_linker="$host_os dld.sl"
 
17682
    shlibpath_var=SHLIB_PATH
 
17683
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17684
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17685
    soname_spec='${libname}${release}${shared_ext}$major'
 
17686
    ;;
 
17687
  esac
 
17688
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17689
  postinstall_cmds='chmod 555 $lib'
 
17690
  ;;
 
17691
 
 
17692
irix5* | irix6* | nonstopux*)
 
17693
  case $host_os in
 
17694
    nonstopux*) version_type=nonstopux ;;
 
17695
    *)
 
17696
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17697
                version_type=linux
 
17698
        else
 
17699
                version_type=irix
 
17700
        fi ;;
 
17701
  esac
 
17702
  need_lib_prefix=no
 
17703
  need_version=no
 
17704
  soname_spec='${libname}${release}${shared_ext}$major'
 
17705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17706
  case $host_os in
 
17707
  irix5* | nonstopux*)
 
17708
    libsuff= shlibsuff=
 
17709
    ;;
 
17710
  *)
 
17711
    case $LD in # libtool.m4 will add one of these switches to LD
 
17712
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17713
      libsuff= shlibsuff= libmagic=32-bit;;
 
17714
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17715
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17716
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17717
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17718
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17719
    esac
 
17720
    ;;
 
17721
  esac
 
17722
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17723
  shlibpath_overrides_runpath=no
 
17724
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17725
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17726
  hardcode_into_libs=yes
 
17727
  ;;
 
17728
 
 
17729
# No shared lib support for Linux oldld, aout, or coff.
 
17730
linux*oldld* | linux*aout* | linux*coff*)
 
17731
  dynamic_linker=no
 
17732
  ;;
 
17733
 
 
17734
# This must be Linux ELF.
 
17735
linux*)
 
17736
  version_type=linux
 
17737
  need_lib_prefix=no
 
17738
  need_version=no
 
17739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17740
  soname_spec='${libname}${release}${shared_ext}$major'
 
17741
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17742
  shlibpath_var=LD_LIBRARY_PATH
 
17743
  shlibpath_overrides_runpath=no
 
17744
  # This implies no fast_install, which is unacceptable.
 
17745
  # Some rework will be needed to allow for fast_install
 
17746
  # before this can be enabled.
 
17747
  hardcode_into_libs=yes
 
17748
 
 
17749
  # Append ld.so.conf contents to the search path
 
17750
  if test -f /etc/ld.so.conf; then
 
17751
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17752
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17753
  fi
 
17754
 
 
17755
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17756
  # powerpc, because MkLinux only supported shared libraries with the
 
17757
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17758
  # most powerpc-linux boxes support dynamic linking these days and
 
17759
  # people can always --disable-shared, the test was removed, and we
 
17760
  # assume the GNU/Linux dynamic linker is in use.
 
17761
  dynamic_linker='GNU/Linux ld.so'
 
17762
  ;;
 
17763
 
 
17764
knetbsd*-gnu)
 
17765
  version_type=linux
 
17766
  need_lib_prefix=no
 
17767
  need_version=no
 
17768
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17769
  soname_spec='${libname}${release}${shared_ext}$major'
 
17770
  shlibpath_var=LD_LIBRARY_PATH
 
17771
  shlibpath_overrides_runpath=no
 
17772
  hardcode_into_libs=yes
 
17773
  dynamic_linker='GNU ld.so'
 
17774
  ;;
 
17775
 
 
17776
netbsd*)
 
17777
  version_type=sunos
 
17778
  need_lib_prefix=no
 
17779
  need_version=no
 
17780
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17781
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17782
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17783
    dynamic_linker='NetBSD (a.out) ld.so'
 
17784
  else
 
17785
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17786
    soname_spec='${libname}${release}${shared_ext}$major'
 
17787
    dynamic_linker='NetBSD ld.elf_so'
 
17788
  fi
 
17789
  shlibpath_var=LD_LIBRARY_PATH
 
17790
  shlibpath_overrides_runpath=yes
 
17791
  hardcode_into_libs=yes
 
17792
  ;;
 
17793
 
 
17794
newsos6)
 
17795
  version_type=linux
 
17796
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17797
  shlibpath_var=LD_LIBRARY_PATH
 
17798
  shlibpath_overrides_runpath=yes
 
17799
  ;;
 
17800
 
 
17801
nto-qnx*)
 
17802
  version_type=linux
 
17803
  need_lib_prefix=no
 
17804
  need_version=no
 
17805
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17806
  soname_spec='${libname}${release}${shared_ext}$major'
 
17807
  shlibpath_var=LD_LIBRARY_PATH
 
17808
  shlibpath_overrides_runpath=yes
 
17809
  ;;
 
17810
 
 
17811
openbsd*)
 
17812
  version_type=sunos
 
17813
  need_lib_prefix=no
 
17814
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17815
  case $host_os in
 
17816
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17817
    *)                         need_version=no  ;;
 
17818
  esac
 
17819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17820
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17821
  shlibpath_var=LD_LIBRARY_PATH
 
17822
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17823
    case $host_os in
 
17824
      openbsd2.[89] | openbsd2.[89].*)
 
17825
        shlibpath_overrides_runpath=no
 
17826
        ;;
 
17827
      *)
 
17828
        shlibpath_overrides_runpath=yes
 
17829
        ;;
 
17830
      esac
 
17831
  else
 
17832
    shlibpath_overrides_runpath=yes
 
17833
  fi
 
17834
  ;;
 
17835
 
 
17836
os2*)
 
17837
  libname_spec='$name'
 
17838
  shrext_cmds=".dll"
 
17839
  need_lib_prefix=no
 
17840
  library_names_spec='$libname${shared_ext} $libname.a'
 
17841
  dynamic_linker='OS/2 ld.exe'
 
17842
  shlibpath_var=LIBPATH
 
17843
  ;;
 
17844
 
 
17845
osf3* | osf4* | osf5*)
 
17846
  version_type=osf
 
17847
  need_lib_prefix=no
 
17848
  need_version=no
 
17849
  soname_spec='${libname}${release}${shared_ext}$major'
 
17850
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17851
  shlibpath_var=LD_LIBRARY_PATH
 
17852
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17853
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17854
  ;;
 
17855
 
 
17856
sco3.2v5*)
 
17857
  version_type=osf
 
17858
  soname_spec='${libname}${release}${shared_ext}$major'
 
17859
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17860
  shlibpath_var=LD_LIBRARY_PATH
 
17861
  ;;
 
17862
 
 
17863
solaris*)
 
17864
  version_type=linux
 
17865
  need_lib_prefix=no
 
17866
  need_version=no
 
17867
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17868
  soname_spec='${libname}${release}${shared_ext}$major'
 
17869
  shlibpath_var=LD_LIBRARY_PATH
 
17870
  shlibpath_overrides_runpath=yes
 
17871
  hardcode_into_libs=yes
 
17872
  # ldd complains unless libraries are executable
 
17873
  postinstall_cmds='chmod +x $lib'
 
17874
  ;;
 
17875
 
 
17876
sunos4*)
 
17877
  version_type=sunos
 
17878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17879
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17880
  shlibpath_var=LD_LIBRARY_PATH
 
17881
  shlibpath_overrides_runpath=yes
 
17882
  if test "$with_gnu_ld" = yes; then
 
17883
    need_lib_prefix=no
 
17884
  fi
 
17885
  need_version=yes
 
17886
  ;;
 
17887
 
 
17888
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17889
  version_type=linux
 
17890
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17891
  soname_spec='${libname}${release}${shared_ext}$major'
 
17892
  shlibpath_var=LD_LIBRARY_PATH
 
17893
  case $host_vendor in
 
17894
    sni)
 
17895
      shlibpath_overrides_runpath=no
 
17896
      need_lib_prefix=no
 
17897
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17898
      runpath_var=LD_RUN_PATH
 
17899
      ;;
 
17900
    siemens)
 
17901
      need_lib_prefix=no
 
17902
      ;;
 
17903
    motorola)
 
17904
      need_lib_prefix=no
 
17905
      need_version=no
 
17906
      shlibpath_overrides_runpath=no
 
17907
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17908
      ;;
 
17909
  esac
 
17910
  ;;
 
17911
 
 
17912
sysv4*MP*)
 
17913
  if test -d /usr/nec ;then
 
17914
    version_type=linux
 
17915
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17916
    soname_spec='$libname${shared_ext}.$major'
 
17917
    shlibpath_var=LD_LIBRARY_PATH
 
17918
  fi
 
17919
  ;;
 
17920
 
 
17921
uts4*)
 
17922
  version_type=linux
 
17923
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17924
  soname_spec='${libname}${release}${shared_ext}$major'
 
17925
  shlibpath_var=LD_LIBRARY_PATH
 
17926
  ;;
 
17927
 
 
17928
*)
 
17929
  dynamic_linker=no
 
17930
  ;;
 
17931
esac
 
17932
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17933
echo "${ECHO_T}$dynamic_linker" >&6
 
17934
test "$dynamic_linker" = no && can_build_shared=no
 
17935
 
 
17936
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17937
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17938
hardcode_action_GCJ=
 
17939
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17940
   test -n "$runpath_var_GCJ" || \
 
17941
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17942
 
 
17943
  # We can hardcode non-existant directories.
 
17944
  if test "$hardcode_direct_GCJ" != no &&
 
17945
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17946
     # have to relink, otherwise we might link with an installed library
 
17947
     # when we should be linking with a yet-to-be-installed one
 
17948
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17949
     test "$hardcode_minus_L_GCJ" != no; then
 
17950
    # Linking always hardcodes the temporary library directory.
 
17951
    hardcode_action_GCJ=relink
 
17952
  else
 
17953
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17954
    hardcode_action_GCJ=immediate
 
17955
  fi
 
17956
else
 
17957
  # We cannot hardcode anything, or else we can only hardcode existing
 
17958
  # directories.
 
17959
  hardcode_action_GCJ=unsupported
 
17960
fi
 
17961
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17962
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17963
 
 
17964
if test "$hardcode_action_GCJ" = relink; then
 
17965
  # Fast installation is not supported
 
17966
  enable_fast_install=no
 
17967
elif test "$shlibpath_overrides_runpath" = yes ||
 
17968
     test "$enable_shared" = no; then
 
17969
  # Fast installation is not necessary
 
17970
  enable_fast_install=needless
 
17971
fi
 
17972
 
 
17973
striplib=
 
17974
old_striplib=
 
17975
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17976
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17977
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17978
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17979
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17980
  echo "$as_me:$LINENO: result: yes" >&5
 
17981
echo "${ECHO_T}yes" >&6
 
17982
else
 
17983
# FIXME - insert some real tests, host_os isn't really good enough
 
17984
  case $host_os in
 
17985
   darwin*)
 
17986
       if test -n "$STRIP" ; then
 
17987
         striplib="$STRIP -x"
 
17988
         echo "$as_me:$LINENO: result: yes" >&5
 
17989
echo "${ECHO_T}yes" >&6
 
17990
       else
 
17991
  echo "$as_me:$LINENO: result: no" >&5
 
17992
echo "${ECHO_T}no" >&6
 
17993
fi
 
17994
       ;;
 
17995
   *)
 
17996
  echo "$as_me:$LINENO: result: no" >&5
 
17997
echo "${ECHO_T}no" >&6
 
17998
    ;;
 
17999
  esac
 
18000
fi
 
18001
 
 
18002
if test "x$enable_dlopen" != xyes; then
 
18003
  enable_dlopen=unknown
 
18004
  enable_dlopen_self=unknown
 
18005
  enable_dlopen_self_static=unknown
 
18006
else
 
18007
  lt_cv_dlopen=no
 
18008
  lt_cv_dlopen_libs=
 
18009
 
 
18010
  case $host_os in
 
18011
  beos*)
 
18012
    lt_cv_dlopen="load_add_on"
 
18013
    lt_cv_dlopen_libs=
 
18014
    lt_cv_dlopen_self=yes
 
18015
    ;;
 
18016
 
 
18017
  mingw* | pw32*)
 
18018
    lt_cv_dlopen="LoadLibrary"
 
18019
    lt_cv_dlopen_libs=
 
18020
   ;;
 
18021
 
 
18022
  cygwin*)
 
18023
    lt_cv_dlopen="dlopen"
 
18024
    lt_cv_dlopen_libs=
 
18025
   ;;
 
18026
 
 
18027
  darwin*)
 
18028
  # if libdl is installed we need to link against it
 
18029
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18030
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18031
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18033
else
 
18034
  ac_check_lib_save_LIBS=$LIBS
 
18035
LIBS="-ldl  $LIBS"
 
18036
cat >conftest.$ac_ext <<_ACEOF
 
18037
/* confdefs.h.  */
 
18038
_ACEOF
 
18039
cat confdefs.h >>conftest.$ac_ext
 
18040
cat >>conftest.$ac_ext <<_ACEOF
 
18041
/* end confdefs.h.  */
 
18042
 
 
18043
/* Override any gcc2 internal prototype to avoid an error.  */
 
18044
#ifdef __cplusplus
 
18045
extern "C"
 
18046
#endif
 
18047
/* We use char because int might match the return type of a gcc2
 
18048
   builtin and then its argument prototype would still apply.  */
 
18049
char dlopen ();
 
18050
int
 
18051
main ()
 
18052
{
 
18053
dlopen ();
 
18054
  ;
 
18055
  return 0;
 
18056
}
 
18057
_ACEOF
 
18058
rm -f conftest.$ac_objext conftest$ac_exeext
 
18059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18060
  (eval $ac_link) 2>conftest.er1
 
18061
  ac_status=$?
 
18062
  grep -v '^ *+' conftest.er1 >conftest.err
 
18063
  rm -f conftest.er1
 
18064
  cat conftest.err >&5
 
18065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18066
  (exit $ac_status); } &&
 
18067
         { ac_try='test -z "$ac_c_werror_flag"
 
18068
                         || test ! -s conftest.err'
 
18069
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18070
  (eval $ac_try) 2>&5
 
18071
  ac_status=$?
 
18072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18073
  (exit $ac_status); }; } &&
 
18074
         { ac_try='test -s conftest$ac_exeext'
 
18075
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18076
  (eval $ac_try) 2>&5
 
18077
  ac_status=$?
 
18078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18079
  (exit $ac_status); }; }; then
 
18080
  ac_cv_lib_dl_dlopen=yes
 
18081
else
 
18082
  echo "$as_me: failed program was:" >&5
 
18083
sed 's/^/| /' conftest.$ac_ext >&5
 
18084
 
 
18085
ac_cv_lib_dl_dlopen=no
 
18086
fi
 
18087
rm -f conftest.err conftest.$ac_objext \
 
18088
      conftest$ac_exeext conftest.$ac_ext
 
18089
LIBS=$ac_check_lib_save_LIBS
 
18090
fi
 
18091
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18092
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18093
if test $ac_cv_lib_dl_dlopen = yes; then
 
18094
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18095
else
 
18096
 
 
18097
    lt_cv_dlopen="dyld"
 
18098
    lt_cv_dlopen_libs=
 
18099
    lt_cv_dlopen_self=yes
 
18100
 
 
18101
fi
 
18102
 
 
18103
   ;;
 
18104
 
 
18105
  *)
 
18106
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18107
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18108
if test "${ac_cv_func_shl_load+set}" = set; then
 
18109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18110
else
 
18111
  cat >conftest.$ac_ext <<_ACEOF
 
18112
/* confdefs.h.  */
 
18113
_ACEOF
 
18114
cat confdefs.h >>conftest.$ac_ext
 
18115
cat >>conftest.$ac_ext <<_ACEOF
 
18116
/* end confdefs.h.  */
 
18117
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18118
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18119
#define shl_load innocuous_shl_load
 
18120
 
 
18121
/* System header to define __stub macros and hopefully few prototypes,
 
18122
    which can conflict with char shl_load (); below.
 
18123
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18124
    <limits.h> exists even on freestanding compilers.  */
 
18125
 
 
18126
#ifdef __STDC__
 
18127
# include <limits.h>
 
18128
#else
 
18129
# include <assert.h>
 
18130
#endif
 
18131
 
 
18132
#undef shl_load
 
18133
 
 
18134
/* Override any gcc2 internal prototype to avoid an error.  */
 
18135
#ifdef __cplusplus
 
18136
extern "C"
 
18137
{
 
18138
#endif
 
18139
/* We use char because int might match the return type of a gcc2
 
18140
   builtin and then its argument prototype would still apply.  */
 
18141
char shl_load ();
 
18142
/* The GNU C library defines this for functions which it implements
 
18143
    to always fail with ENOSYS.  Some functions are actually named
 
18144
    something starting with __ and the normal name is an alias.  */
 
18145
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18146
choke me
 
18147
#else
 
18148
char (*f) () = shl_load;
 
18149
#endif
 
18150
#ifdef __cplusplus
 
18151
}
 
18152
#endif
 
18153
 
 
18154
int
 
18155
main ()
 
18156
{
 
18157
return f != shl_load;
 
18158
  ;
 
18159
  return 0;
 
18160
}
 
18161
_ACEOF
 
18162
rm -f conftest.$ac_objext conftest$ac_exeext
 
18163
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18164
  (eval $ac_link) 2>conftest.er1
 
18165
  ac_status=$?
 
18166
  grep -v '^ *+' conftest.er1 >conftest.err
 
18167
  rm -f conftest.er1
 
18168
  cat conftest.err >&5
 
18169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18170
  (exit $ac_status); } &&
 
18171
         { ac_try='test -z "$ac_c_werror_flag"
 
18172
                         || test ! -s conftest.err'
 
18173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18174
  (eval $ac_try) 2>&5
 
18175
  ac_status=$?
 
18176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18177
  (exit $ac_status); }; } &&
 
18178
         { ac_try='test -s conftest$ac_exeext'
 
18179
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18180
  (eval $ac_try) 2>&5
 
18181
  ac_status=$?
 
18182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18183
  (exit $ac_status); }; }; then
 
18184
  ac_cv_func_shl_load=yes
 
18185
else
 
18186
  echo "$as_me: failed program was:" >&5
 
18187
sed 's/^/| /' conftest.$ac_ext >&5
 
18188
 
 
18189
ac_cv_func_shl_load=no
 
18190
fi
 
18191
rm -f conftest.err conftest.$ac_objext \
 
18192
      conftest$ac_exeext conftest.$ac_ext
 
18193
fi
 
18194
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18195
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18196
if test $ac_cv_func_shl_load = yes; then
 
18197
  lt_cv_dlopen="shl_load"
 
18198
else
 
18199
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18200
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18201
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18202
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18203
else
 
18204
  ac_check_lib_save_LIBS=$LIBS
 
18205
LIBS="-ldld  $LIBS"
 
18206
cat >conftest.$ac_ext <<_ACEOF
 
18207
/* confdefs.h.  */
 
18208
_ACEOF
 
18209
cat confdefs.h >>conftest.$ac_ext
 
18210
cat >>conftest.$ac_ext <<_ACEOF
 
18211
/* end confdefs.h.  */
 
18212
 
 
18213
/* Override any gcc2 internal prototype to avoid an error.  */
 
18214
#ifdef __cplusplus
 
18215
extern "C"
 
18216
#endif
 
18217
/* We use char because int might match the return type of a gcc2
 
18218
   builtin and then its argument prototype would still apply.  */
 
18219
char shl_load ();
 
18220
int
 
18221
main ()
 
18222
{
 
18223
shl_load ();
 
18224
  ;
 
18225
  return 0;
 
18226
}
 
18227
_ACEOF
 
18228
rm -f conftest.$ac_objext conftest$ac_exeext
 
18229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18230
  (eval $ac_link) 2>conftest.er1
 
18231
  ac_status=$?
 
18232
  grep -v '^ *+' conftest.er1 >conftest.err
 
18233
  rm -f conftest.er1
 
18234
  cat conftest.err >&5
 
18235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18236
  (exit $ac_status); } &&
 
18237
         { ac_try='test -z "$ac_c_werror_flag"
 
18238
                         || test ! -s conftest.err'
 
18239
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18240
  (eval $ac_try) 2>&5
 
18241
  ac_status=$?
 
18242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18243
  (exit $ac_status); }; } &&
 
18244
         { ac_try='test -s conftest$ac_exeext'
 
18245
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18246
  (eval $ac_try) 2>&5
 
18247
  ac_status=$?
 
18248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18249
  (exit $ac_status); }; }; then
 
18250
  ac_cv_lib_dld_shl_load=yes
 
18251
else
 
18252
  echo "$as_me: failed program was:" >&5
 
18253
sed 's/^/| /' conftest.$ac_ext >&5
 
18254
 
 
18255
ac_cv_lib_dld_shl_load=no
 
18256
fi
 
18257
rm -f conftest.err conftest.$ac_objext \
 
18258
      conftest$ac_exeext conftest.$ac_ext
 
18259
LIBS=$ac_check_lib_save_LIBS
 
18260
fi
 
18261
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18262
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18263
if test $ac_cv_lib_dld_shl_load = yes; then
 
18264
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18265
else
 
18266
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18267
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18268
if test "${ac_cv_func_dlopen+set}" = set; then
 
18269
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18270
else
 
18271
  cat >conftest.$ac_ext <<_ACEOF
 
18272
/* confdefs.h.  */
 
18273
_ACEOF
 
18274
cat confdefs.h >>conftest.$ac_ext
 
18275
cat >>conftest.$ac_ext <<_ACEOF
 
18276
/* end confdefs.h.  */
 
18277
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18278
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18279
#define dlopen innocuous_dlopen
 
18280
 
 
18281
/* System header to define __stub macros and hopefully few prototypes,
 
18282
    which can conflict with char dlopen (); below.
 
18283
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18284
    <limits.h> exists even on freestanding compilers.  */
 
18285
 
 
18286
#ifdef __STDC__
 
18287
# include <limits.h>
 
18288
#else
 
18289
# include <assert.h>
 
18290
#endif
 
18291
 
 
18292
#undef dlopen
 
18293
 
 
18294
/* Override any gcc2 internal prototype to avoid an error.  */
 
18295
#ifdef __cplusplus
 
18296
extern "C"
 
18297
{
 
18298
#endif
 
18299
/* We use char because int might match the return type of a gcc2
 
18300
   builtin and then its argument prototype would still apply.  */
 
18301
char dlopen ();
 
18302
/* The GNU C library defines this for functions which it implements
 
18303
    to always fail with ENOSYS.  Some functions are actually named
 
18304
    something starting with __ and the normal name is an alias.  */
 
18305
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18306
choke me
 
18307
#else
 
18308
char (*f) () = dlopen;
 
18309
#endif
 
18310
#ifdef __cplusplus
 
18311
}
 
18312
#endif
 
18313
 
 
18314
int
 
18315
main ()
 
18316
{
 
18317
return f != dlopen;
 
18318
  ;
 
18319
  return 0;
 
18320
}
 
18321
_ACEOF
 
18322
rm -f conftest.$ac_objext conftest$ac_exeext
 
18323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18324
  (eval $ac_link) 2>conftest.er1
 
18325
  ac_status=$?
 
18326
  grep -v '^ *+' conftest.er1 >conftest.err
 
18327
  rm -f conftest.er1
 
18328
  cat conftest.err >&5
 
18329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18330
  (exit $ac_status); } &&
 
18331
         { ac_try='test -z "$ac_c_werror_flag"
 
18332
                         || test ! -s conftest.err'
 
18333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18334
  (eval $ac_try) 2>&5
 
18335
  ac_status=$?
 
18336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18337
  (exit $ac_status); }; } &&
 
18338
         { ac_try='test -s conftest$ac_exeext'
 
18339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18340
  (eval $ac_try) 2>&5
 
18341
  ac_status=$?
 
18342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18343
  (exit $ac_status); }; }; then
 
18344
  ac_cv_func_dlopen=yes
 
18345
else
 
18346
  echo "$as_me: failed program was:" >&5
 
18347
sed 's/^/| /' conftest.$ac_ext >&5
 
18348
 
 
18349
ac_cv_func_dlopen=no
 
18350
fi
 
18351
rm -f conftest.err conftest.$ac_objext \
 
18352
      conftest$ac_exeext conftest.$ac_ext
 
18353
fi
 
18354
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18355
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18356
if test $ac_cv_func_dlopen = yes; then
 
18357
  lt_cv_dlopen="dlopen"
 
18358
else
 
18359
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18360
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18361
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18363
else
 
18364
  ac_check_lib_save_LIBS=$LIBS
 
18365
LIBS="-ldl  $LIBS"
 
18366
cat >conftest.$ac_ext <<_ACEOF
 
18367
/* confdefs.h.  */
 
18368
_ACEOF
 
18369
cat confdefs.h >>conftest.$ac_ext
 
18370
cat >>conftest.$ac_ext <<_ACEOF
 
18371
/* end confdefs.h.  */
 
18372
 
 
18373
/* Override any gcc2 internal prototype to avoid an error.  */
 
18374
#ifdef __cplusplus
 
18375
extern "C"
 
18376
#endif
 
18377
/* We use char because int might match the return type of a gcc2
 
18378
   builtin and then its argument prototype would still apply.  */
 
18379
char dlopen ();
 
18380
int
 
18381
main ()
 
18382
{
 
18383
dlopen ();
 
18384
  ;
 
18385
  return 0;
 
18386
}
 
18387
_ACEOF
 
18388
rm -f conftest.$ac_objext conftest$ac_exeext
 
18389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18390
  (eval $ac_link) 2>conftest.er1
 
18391
  ac_status=$?
 
18392
  grep -v '^ *+' conftest.er1 >conftest.err
 
18393
  rm -f conftest.er1
 
18394
  cat conftest.err >&5
 
18395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18396
  (exit $ac_status); } &&
 
18397
         { ac_try='test -z "$ac_c_werror_flag"
 
18398
                         || test ! -s conftest.err'
 
18399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18400
  (eval $ac_try) 2>&5
 
18401
  ac_status=$?
 
18402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18403
  (exit $ac_status); }; } &&
 
18404
         { ac_try='test -s conftest$ac_exeext'
 
18405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18406
  (eval $ac_try) 2>&5
 
18407
  ac_status=$?
 
18408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18409
  (exit $ac_status); }; }; then
 
18410
  ac_cv_lib_dl_dlopen=yes
 
18411
else
 
18412
  echo "$as_me: failed program was:" >&5
 
18413
sed 's/^/| /' conftest.$ac_ext >&5
 
18414
 
 
18415
ac_cv_lib_dl_dlopen=no
 
18416
fi
 
18417
rm -f conftest.err conftest.$ac_objext \
 
18418
      conftest$ac_exeext conftest.$ac_ext
 
18419
LIBS=$ac_check_lib_save_LIBS
 
18420
fi
 
18421
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18422
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18423
if test $ac_cv_lib_dl_dlopen = yes; then
 
18424
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18425
else
 
18426
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18427
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18428
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18430
else
 
18431
  ac_check_lib_save_LIBS=$LIBS
 
18432
LIBS="-lsvld  $LIBS"
 
18433
cat >conftest.$ac_ext <<_ACEOF
 
18434
/* confdefs.h.  */
 
18435
_ACEOF
 
18436
cat confdefs.h >>conftest.$ac_ext
 
18437
cat >>conftest.$ac_ext <<_ACEOF
 
18438
/* end confdefs.h.  */
 
18439
 
 
18440
/* Override any gcc2 internal prototype to avoid an error.  */
 
18441
#ifdef __cplusplus
 
18442
extern "C"
 
18443
#endif
 
18444
/* We use char because int might match the return type of a gcc2
 
18445
   builtin and then its argument prototype would still apply.  */
 
18446
char dlopen ();
 
18447
int
 
18448
main ()
 
18449
{
 
18450
dlopen ();
 
18451
  ;
 
18452
  return 0;
 
18453
}
 
18454
_ACEOF
 
18455
rm -f conftest.$ac_objext conftest$ac_exeext
 
18456
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18457
  (eval $ac_link) 2>conftest.er1
 
18458
  ac_status=$?
 
18459
  grep -v '^ *+' conftest.er1 >conftest.err
 
18460
  rm -f conftest.er1
 
18461
  cat conftest.err >&5
 
18462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18463
  (exit $ac_status); } &&
 
18464
         { ac_try='test -z "$ac_c_werror_flag"
 
18465
                         || test ! -s conftest.err'
 
18466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18467
  (eval $ac_try) 2>&5
 
18468
  ac_status=$?
 
18469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18470
  (exit $ac_status); }; } &&
 
18471
         { ac_try='test -s conftest$ac_exeext'
 
18472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18473
  (eval $ac_try) 2>&5
 
18474
  ac_status=$?
 
18475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18476
  (exit $ac_status); }; }; then
 
18477
  ac_cv_lib_svld_dlopen=yes
 
18478
else
 
18479
  echo "$as_me: failed program was:" >&5
 
18480
sed 's/^/| /' conftest.$ac_ext >&5
 
18481
 
 
18482
ac_cv_lib_svld_dlopen=no
 
18483
fi
 
18484
rm -f conftest.err conftest.$ac_objext \
 
18485
      conftest$ac_exeext conftest.$ac_ext
 
18486
LIBS=$ac_check_lib_save_LIBS
 
18487
fi
 
18488
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18489
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18490
if test $ac_cv_lib_svld_dlopen = yes; then
 
18491
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18492
else
 
18493
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18494
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18495
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18497
else
 
18498
  ac_check_lib_save_LIBS=$LIBS
 
18499
LIBS="-ldld  $LIBS"
 
18500
cat >conftest.$ac_ext <<_ACEOF
 
18501
/* confdefs.h.  */
 
18502
_ACEOF
 
18503
cat confdefs.h >>conftest.$ac_ext
 
18504
cat >>conftest.$ac_ext <<_ACEOF
 
18505
/* end confdefs.h.  */
 
18506
 
 
18507
/* Override any gcc2 internal prototype to avoid an error.  */
 
18508
#ifdef __cplusplus
 
18509
extern "C"
 
18510
#endif
 
18511
/* We use char because int might match the return type of a gcc2
 
18512
   builtin and then its argument prototype would still apply.  */
 
18513
char dld_link ();
 
18514
int
 
18515
main ()
 
18516
{
 
18517
dld_link ();
 
18518
  ;
 
18519
  return 0;
 
18520
}
 
18521
_ACEOF
 
18522
rm -f conftest.$ac_objext conftest$ac_exeext
 
18523
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18524
  (eval $ac_link) 2>conftest.er1
 
18525
  ac_status=$?
 
18526
  grep -v '^ *+' conftest.er1 >conftest.err
 
18527
  rm -f conftest.er1
 
18528
  cat conftest.err >&5
 
18529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18530
  (exit $ac_status); } &&
 
18531
         { ac_try='test -z "$ac_c_werror_flag"
 
18532
                         || test ! -s conftest.err'
 
18533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18534
  (eval $ac_try) 2>&5
 
18535
  ac_status=$?
 
18536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18537
  (exit $ac_status); }; } &&
 
18538
         { ac_try='test -s conftest$ac_exeext'
 
18539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18540
  (eval $ac_try) 2>&5
 
18541
  ac_status=$?
 
18542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18543
  (exit $ac_status); }; }; then
 
18544
  ac_cv_lib_dld_dld_link=yes
 
18545
else
 
18546
  echo "$as_me: failed program was:" >&5
 
18547
sed 's/^/| /' conftest.$ac_ext >&5
 
18548
 
 
18549
ac_cv_lib_dld_dld_link=no
 
18550
fi
 
18551
rm -f conftest.err conftest.$ac_objext \
 
18552
      conftest$ac_exeext conftest.$ac_ext
 
18553
LIBS=$ac_check_lib_save_LIBS
 
18554
fi
 
18555
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18556
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18557
if test $ac_cv_lib_dld_dld_link = yes; then
 
18558
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18559
fi
 
18560
 
 
18561
 
 
18562
fi
 
18563
 
 
18564
 
 
18565
fi
 
18566
 
 
18567
 
 
18568
fi
 
18569
 
 
18570
 
 
18571
fi
 
18572
 
 
18573
 
 
18574
fi
 
18575
 
 
18576
    ;;
 
18577
  esac
 
18578
 
 
18579
  if test "x$lt_cv_dlopen" != xno; then
 
18580
    enable_dlopen=yes
 
18581
  else
 
18582
    enable_dlopen=no
 
18583
  fi
 
18584
 
 
18585
  case $lt_cv_dlopen in
 
18586
  dlopen)
 
18587
    save_CPPFLAGS="$CPPFLAGS"
 
18588
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18589
 
 
18590
    save_LDFLAGS="$LDFLAGS"
 
18591
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18592
 
 
18593
    save_LIBS="$LIBS"
 
18594
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18595
 
 
18596
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18597
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18598
if test "${lt_cv_dlopen_self+set}" = set; then
 
18599
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18600
else
 
18601
          if test "$cross_compiling" = yes; then :
 
18602
  lt_cv_dlopen_self=cross
 
18603
else
 
18604
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18605
  lt_status=$lt_dlunknown
 
18606
  cat > conftest.$ac_ext <<EOF
 
18607
#line 18607 "configure"
 
18608
#include "confdefs.h"
 
18609
 
 
18610
#if HAVE_DLFCN_H
 
18611
#include <dlfcn.h>
 
18612
#endif
 
18613
 
 
18614
#include <stdio.h>
 
18615
 
 
18616
#ifdef RTLD_GLOBAL
 
18617
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18618
#else
 
18619
#  ifdef DL_GLOBAL
 
18620
#    define LT_DLGLOBAL         DL_GLOBAL
 
18621
#  else
 
18622
#    define LT_DLGLOBAL         0
 
18623
#  endif
 
18624
#endif
 
18625
 
 
18626
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18627
   find out it does not work in some platform. */
 
18628
#ifndef LT_DLLAZY_OR_NOW
 
18629
#  ifdef RTLD_LAZY
 
18630
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18631
#  else
 
18632
#    ifdef DL_LAZY
 
18633
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18634
#    else
 
18635
#      ifdef RTLD_NOW
 
18636
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18637
#      else
 
18638
#        ifdef DL_NOW
 
18639
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18640
#        else
 
18641
#          define LT_DLLAZY_OR_NOW      0
 
18642
#        endif
 
18643
#      endif
 
18644
#    endif
 
18645
#  endif
 
18646
#endif
 
18647
 
 
18648
#ifdef __cplusplus
 
18649
extern "C" void exit (int);
 
18650
#endif
 
18651
 
 
18652
void fnord() { int i=42;}
 
18653
int main ()
 
18654
{
 
18655
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18656
  int status = $lt_dlunknown;
 
18657
 
 
18658
  if (self)
 
18659
    {
 
18660
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18661
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18662
      /* dlclose (self); */
 
18663
    }
 
18664
 
 
18665
    exit (status);
 
18666
}
 
18667
EOF
 
18668
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18669
  (eval $ac_link) 2>&5
 
18670
  ac_status=$?
 
18671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18672
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18673
    (./conftest; exit; ) >&5 2>/dev/null
 
18674
    lt_status=$?
 
18675
    case x$lt_status in
 
18676
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18677
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18678
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18679
    esac
 
18680
  else :
 
18681
    # compilation failed
 
18682
    lt_cv_dlopen_self=no
 
18683
  fi
 
18684
fi
 
18685
rm -fr conftest*
 
18686
 
 
18687
 
 
18688
fi
 
18689
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18690
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18691
 
 
18692
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18693
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18694
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18695
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18696
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18697
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18698
else
 
18699
          if test "$cross_compiling" = yes; then :
 
18700
  lt_cv_dlopen_self_static=cross
 
18701
else
 
18702
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18703
  lt_status=$lt_dlunknown
 
18704
  cat > conftest.$ac_ext <<EOF
 
18705
#line 18705 "configure"
 
18706
#include "confdefs.h"
 
18707
 
 
18708
#if HAVE_DLFCN_H
 
18709
#include <dlfcn.h>
 
18710
#endif
 
18711
 
 
18712
#include <stdio.h>
 
18713
 
 
18714
#ifdef RTLD_GLOBAL
 
18715
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18716
#else
 
18717
#  ifdef DL_GLOBAL
 
18718
#    define LT_DLGLOBAL         DL_GLOBAL
 
18719
#  else
 
18720
#    define LT_DLGLOBAL         0
 
18721
#  endif
 
18722
#endif
 
18723
 
 
18724
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18725
   find out it does not work in some platform. */
 
18726
#ifndef LT_DLLAZY_OR_NOW
 
18727
#  ifdef RTLD_LAZY
 
18728
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18729
#  else
 
18730
#    ifdef DL_LAZY
 
18731
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18732
#    else
 
18733
#      ifdef RTLD_NOW
 
18734
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18735
#      else
 
18736
#        ifdef DL_NOW
 
18737
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18738
#        else
 
18739
#          define LT_DLLAZY_OR_NOW      0
 
18740
#        endif
 
18741
#      endif
 
18742
#    endif
 
18743
#  endif
 
18744
#endif
 
18745
 
 
18746
#ifdef __cplusplus
 
18747
extern "C" void exit (int);
 
18748
#endif
 
18749
 
 
18750
void fnord() { int i=42;}
 
18751
int main ()
 
18752
{
 
18753
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18754
  int status = $lt_dlunknown;
 
18755
 
 
18756
  if (self)
 
18757
    {
 
18758
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18759
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18760
      /* dlclose (self); */
 
18761
    }
 
18762
 
 
18763
    exit (status);
 
18764
}
 
18765
EOF
 
18766
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18767
  (eval $ac_link) 2>&5
 
18768
  ac_status=$?
 
18769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18770
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18771
    (./conftest; exit; ) >&5 2>/dev/null
 
18772
    lt_status=$?
 
18773
    case x$lt_status in
 
18774
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18775
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18776
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18777
    esac
 
18778
  else :
 
18779
    # compilation failed
 
18780
    lt_cv_dlopen_self_static=no
 
18781
  fi
 
18782
fi
 
18783
rm -fr conftest*
 
18784
 
 
18785
 
 
18786
fi
 
18787
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18788
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18789
    fi
 
18790
 
 
18791
    CPPFLAGS="$save_CPPFLAGS"
 
18792
    LDFLAGS="$save_LDFLAGS"
 
18793
    LIBS="$save_LIBS"
 
18794
    ;;
 
18795
  esac
 
18796
 
 
18797
  case $lt_cv_dlopen_self in
 
18798
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18799
  *) enable_dlopen_self=unknown ;;
 
18800
  esac
 
18801
 
 
18802
  case $lt_cv_dlopen_self_static in
 
18803
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18804
  *) enable_dlopen_self_static=unknown ;;
 
18805
  esac
 
18806
fi
 
18807
 
 
18808
 
 
18809
# The else clause should only fire when bootstrapping the
 
18810
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18811
# with your package, and you will get complaints that there are
 
18812
# no rules to generate ltmain.sh.
 
18813
if test -f "$ltmain"; then
 
18814
  # See if we are running on zsh, and set the options which allow our commands through
 
18815
  # without removal of \ escapes.
 
18816
  if test -n "${ZSH_VERSION+set}" ; then
 
18817
    setopt NO_GLOB_SUBST
 
18818
  fi
 
18819
  # Now quote all the things that may contain metacharacters while being
 
18820
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18821
  # variables and quote the copies for generation of the libtool script.
 
18822
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18823
    SED SHELL STRIP \
 
18824
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18825
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18826
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18827
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18828
    lt_cv_sys_global_symbol_to_c_name_address \
 
18829
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18830
    old_postinstall_cmds old_postuninstall_cmds \
 
18831
    compiler_GCJ \
 
18832
    CC_GCJ \
 
18833
    LD_GCJ \
 
18834
    lt_prog_compiler_wl_GCJ \
 
18835
    lt_prog_compiler_pic_GCJ \
 
18836
    lt_prog_compiler_static_GCJ \
 
18837
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18838
    export_dynamic_flag_spec_GCJ \
 
18839
    thread_safe_flag_spec_GCJ \
 
18840
    whole_archive_flag_spec_GCJ \
 
18841
    enable_shared_with_static_runtimes_GCJ \
 
18842
    old_archive_cmds_GCJ \
 
18843
    old_archive_from_new_cmds_GCJ \
 
18844
    predep_objects_GCJ \
 
18845
    postdep_objects_GCJ \
 
18846
    predeps_GCJ \
 
18847
    postdeps_GCJ \
 
18848
    compiler_lib_search_path_GCJ \
 
18849
    archive_cmds_GCJ \
 
18850
    archive_expsym_cmds_GCJ \
 
18851
    postinstall_cmds_GCJ \
 
18852
    postuninstall_cmds_GCJ \
 
18853
    old_archive_from_expsyms_cmds_GCJ \
 
18854
    allow_undefined_flag_GCJ \
 
18855
    no_undefined_flag_GCJ \
 
18856
    export_symbols_cmds_GCJ \
 
18857
    hardcode_libdir_flag_spec_GCJ \
 
18858
    hardcode_libdir_flag_spec_ld_GCJ \
 
18859
    hardcode_libdir_separator_GCJ \
 
18860
    hardcode_automatic_GCJ \
 
18861
    module_cmds_GCJ \
 
18862
    module_expsym_cmds_GCJ \
 
18863
    lt_cv_prog_compiler_c_o_GCJ \
 
18864
    exclude_expsyms_GCJ \
 
18865
    include_expsyms_GCJ; do
 
18866
 
 
18867
    case $var in
 
18868
    old_archive_cmds_GCJ | \
 
18869
    old_archive_from_new_cmds_GCJ | \
 
18870
    archive_cmds_GCJ | \
 
18871
    archive_expsym_cmds_GCJ | \
 
18872
    module_cmds_GCJ | \
 
18873
    module_expsym_cmds_GCJ | \
 
18874
    old_archive_from_expsyms_cmds_GCJ | \
 
18875
    export_symbols_cmds_GCJ | \
 
18876
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18877
    postinstall_cmds | postuninstall_cmds | \
 
18878
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18879
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18880
      # Double-quote double-evaled strings.
 
18881
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18882
      ;;
 
18883
    *)
 
18884
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18885
      ;;
 
18886
    esac
 
18887
  done
 
18888
 
 
18889
  case $lt_echo in
 
18890
  *'\$0 --fallback-echo"')
 
18891
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18892
    ;;
 
18893
  esac
 
18894
 
 
18895
cfgfile="$ofile"
 
18896
 
 
18897
  cat <<__EOF__ >> "$cfgfile"
 
18898
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18899
 
 
18900
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18901
 
 
18902
# Shell to use when invoking shell scripts.
 
18903
SHELL=$lt_SHELL
 
18904
 
 
18905
# Whether or not to build shared libraries.
 
18906
build_libtool_libs=$enable_shared
 
18907
 
 
18908
# Whether or not to build static libraries.
 
18909
build_old_libs=$enable_static
 
18910
 
 
18911
# Whether or not to add -lc for building shared libraries.
 
18912
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18913
 
 
18914
# Whether or not to disallow shared libs when runtime libs are static
 
18915
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18916
 
 
18917
# Whether or not to optimize for fast installation.
 
18918
fast_install=$enable_fast_install
 
18919
 
 
18920
# The host system.
 
18921
host_alias=$host_alias
 
18922
host=$host
 
18923
host_os=$host_os
 
18924
 
 
18925
# The build system.
 
18926
build_alias=$build_alias
 
18927
build=$build
 
18928
build_os=$build_os
 
18929
 
 
18930
# An echo program that does not interpret backslashes.
 
18931
echo=$lt_echo
 
18932
 
 
18933
# The archiver.
 
18934
AR=$lt_AR
 
18935
AR_FLAGS=$lt_AR_FLAGS
 
18936
 
 
18937
# A C compiler.
 
18938
LTCC=$lt_LTCC
 
18939
 
 
18940
# A language-specific compiler.
 
18941
CC=$lt_compiler_GCJ
 
18942
 
 
18943
# Is the compiler the GNU C compiler?
 
18944
with_gcc=$GCC_GCJ
 
18945
 
 
18946
# An ERE matcher.
 
18947
EGREP=$lt_EGREP
 
18948
 
 
18949
# The linker used to build libraries.
 
18950
LD=$lt_LD_GCJ
 
18951
 
 
18952
# Whether we need hard or soft links.
 
18953
LN_S=$lt_LN_S
 
18954
 
 
18955
# A BSD-compatible nm program.
 
18956
NM=$lt_NM
 
18957
 
 
18958
# A symbol stripping program
 
18959
STRIP=$lt_STRIP
 
18960
 
 
18961
# Used to examine libraries when file_magic_cmd begins "file"
 
18962
MAGIC_CMD=$MAGIC_CMD
 
18963
 
 
18964
# Used on cygwin: DLL creation program.
 
18965
DLLTOOL="$DLLTOOL"
 
18966
 
 
18967
# Used on cygwin: object dumper.
 
18968
OBJDUMP="$OBJDUMP"
 
18969
 
 
18970
# Used on cygwin: assembler.
 
18971
AS="$AS"
 
18972
 
 
18973
# The name of the directory that contains temporary libtool files.
 
18974
objdir=$objdir
 
18975
 
 
18976
# How to create reloadable object files.
 
18977
reload_flag=$lt_reload_flag
 
18978
reload_cmds=$lt_reload_cmds
 
18979
 
 
18980
# How to pass a linker flag through the compiler.
 
18981
wl=$lt_lt_prog_compiler_wl_GCJ
 
18982
 
 
18983
# Object file suffix (normally "o").
 
18984
objext="$ac_objext"
 
18985
 
 
18986
# Old archive suffix (normally "a").
 
18987
libext="$libext"
 
18988
 
 
18989
# Shared library suffix (normally ".so").
 
18990
shrext_cmds='$shrext_cmds'
 
18991
 
 
18992
# Executable file suffix (normally "").
 
18993
exeext="$exeext"
 
18994
 
 
18995
# Additional compiler flags for building library objects.
 
18996
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18997
pic_mode=$pic_mode
 
18998
 
 
18999
# What is the maximum length of a command?
 
19000
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19001
 
 
19002
# Does compiler simultaneously support -c and -o options?
 
19003
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19004
 
 
19005
# Must we lock files when doing compilation?
 
19006
need_locks=$lt_need_locks
 
19007
 
 
19008
# Do we need the lib prefix for modules?
 
19009
need_lib_prefix=$need_lib_prefix
 
19010
 
 
19011
# Do we need a version for libraries?
 
19012
need_version=$need_version
 
19013
 
 
19014
# Whether dlopen is supported.
 
19015
dlopen_support=$enable_dlopen
 
19016
 
 
19017
# Whether dlopen of programs is supported.
 
19018
dlopen_self=$enable_dlopen_self
 
19019
 
 
19020
# Whether dlopen of statically linked programs is supported.
 
19021
dlopen_self_static=$enable_dlopen_self_static
 
19022
 
 
19023
# Compiler flag to prevent dynamic linking.
 
19024
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19025
 
 
19026
# Compiler flag to turn off builtin functions.
 
19027
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19028
 
 
19029
# Compiler flag to allow reflexive dlopens.
 
19030
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19031
 
 
19032
# Compiler flag to generate shared objects directly from archives.
 
19033
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19034
 
 
19035
# Compiler flag to generate thread-safe objects.
 
19036
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19037
 
 
19038
# Library versioning type.
 
19039
version_type=$version_type
 
19040
 
 
19041
# Format of library name prefix.
 
19042
libname_spec=$lt_libname_spec
 
19043
 
 
19044
# List of archive names.  First name is the real one, the rest are links.
 
19045
# The last name is the one that the linker finds with -lNAME.
 
19046
library_names_spec=$lt_library_names_spec
 
19047
 
 
19048
# The coded name of the library, if different from the real name.
 
19049
soname_spec=$lt_soname_spec
 
19050
 
 
19051
# Commands used to build and install an old-style archive.
 
19052
RANLIB=$lt_RANLIB
 
19053
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19054
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19055
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19056
 
 
19057
# Create an old-style archive from a shared archive.
 
19058
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19059
 
 
19060
# Create a temporary old-style archive to link instead of a shared archive.
 
19061
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19062
 
 
19063
# Commands used to build and install a shared archive.
 
19064
archive_cmds=$lt_archive_cmds_GCJ
 
19065
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19066
postinstall_cmds=$lt_postinstall_cmds
 
19067
postuninstall_cmds=$lt_postuninstall_cmds
 
19068
 
 
19069
# Commands used to build a loadable module (assumed same as above if empty)
 
19070
module_cmds=$lt_module_cmds_GCJ
 
19071
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19072
 
 
19073
# Commands to strip libraries.
 
19074
old_striplib=$lt_old_striplib
 
19075
striplib=$lt_striplib
 
19076
 
 
19077
# Dependencies to place before the objects being linked to create a
 
19078
# shared library.
 
19079
predep_objects=$lt_predep_objects_GCJ
 
19080
 
 
19081
# Dependencies to place after the objects being linked to create a
 
19082
# shared library.
 
19083
postdep_objects=$lt_postdep_objects_GCJ
 
19084
 
 
19085
# Dependencies to place before the objects being linked to create a
 
19086
# shared library.
 
19087
predeps=$lt_predeps_GCJ
 
19088
 
 
19089
# Dependencies to place after the objects being linked to create a
 
19090
# shared library.
 
19091
postdeps=$lt_postdeps_GCJ
 
19092
 
 
19093
# The library search path used internally by the compiler when linking
 
19094
# a shared library.
 
19095
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19096
 
 
19097
# Method to check whether dependent libraries are shared objects.
 
19098
deplibs_check_method=$lt_deplibs_check_method
 
19099
 
 
19100
# Command to use when deplibs_check_method == file_magic.
 
19101
file_magic_cmd=$lt_file_magic_cmd
 
19102
 
 
19103
# Flag that allows shared libraries with undefined symbols to be built.
 
19104
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19105
 
 
19106
# Flag that forces no undefined symbols.
 
19107
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19108
 
 
19109
# Commands used to finish a libtool library installation in a directory.
 
19110
finish_cmds=$lt_finish_cmds
 
19111
 
 
19112
# Same as above, but a single script fragment to be evaled but not shown.
 
19113
finish_eval=$lt_finish_eval
 
19114
 
 
19115
# Take the output of nm and produce a listing of raw symbols and C names.
 
19116
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19117
 
 
19118
# Transform the output of nm in a proper C declaration
 
19119
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19120
 
 
19121
# Transform the output of nm in a C name address pair
 
19122
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19123
 
 
19124
# This is the shared library runtime path variable.
 
19125
runpath_var=$runpath_var
 
19126
 
 
19127
# This is the shared library path variable.
 
19128
shlibpath_var=$shlibpath_var
 
19129
 
 
19130
# Is shlibpath searched before the hard-coded library search path?
 
19131
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19132
 
 
19133
# How to hardcode a shared library path into an executable.
 
19134
hardcode_action=$hardcode_action_GCJ
 
19135
 
 
19136
# Whether we should hardcode library paths into libraries.
 
19137
hardcode_into_libs=$hardcode_into_libs
 
19138
 
 
19139
# Flag to hardcode \$libdir into a binary during linking.
 
19140
# This must work even if \$libdir does not exist.
 
19141
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19142
 
 
19143
# If ld is used when linking, flag to hardcode \$libdir into
 
19144
# a binary during linking. This must work even if \$libdir does
 
19145
# not exist.
 
19146
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19147
 
 
19148
# Whether we need a single -rpath flag with a separated argument.
 
19149
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19150
 
 
19151
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19152
# resulting binary.
 
19153
hardcode_direct=$hardcode_direct_GCJ
 
19154
 
 
19155
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19156
# resulting binary.
 
19157
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19158
 
 
19159
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19160
# the resulting binary.
 
19161
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19162
 
 
19163
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19164
# and all subsequent libraries and executables linked against it.
 
19165
hardcode_automatic=$hardcode_automatic_GCJ
 
19166
 
 
19167
# Variables whose values should be saved in libtool wrapper scripts and
 
19168
# restored at relink time.
 
19169
variables_saved_for_relink="$variables_saved_for_relink"
 
19170
 
 
19171
# Whether libtool must link a program against all its dependency libraries.
 
19172
link_all_deplibs=$link_all_deplibs_GCJ
 
19173
 
 
19174
# Compile-time system search path for libraries
 
19175
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19176
 
 
19177
# Run-time system search path for libraries
 
19178
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19179
 
 
19180
# Fix the shell variable \$srcfile for the compiler.
 
19181
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19182
 
 
19183
# Set to yes if exported symbols are required.
 
19184
always_export_symbols=$always_export_symbols_GCJ
 
19185
 
 
19186
# The commands to list exported symbols.
 
19187
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19188
 
 
19189
# The commands to extract the exported symbol list from a shared archive.
 
19190
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19191
 
 
19192
# Symbols that should not be listed in the preloaded symbols.
 
19193
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19194
 
 
19195
# Symbols that must always be exported.
 
19196
include_expsyms=$lt_include_expsyms_GCJ
 
19197
 
 
19198
# ### END LIBTOOL TAG CONFIG: $tagname
 
19199
 
 
19200
__EOF__
 
19201
 
 
19202
 
 
19203
else
 
19204
  # If there is no Makefile yet, we rely on a make rule to execute
 
19205
  # `config.status --recheck' to rerun these tests and create the
 
19206
  # libtool script then.
 
19207
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19208
  if test -f "$ltmain_in"; then
 
19209
    test -f Makefile && make "$ltmain"
 
19210
  fi
 
19211
fi
 
19212
 
 
19213
 
 
19214
ac_ext=c
 
19215
ac_cpp='$CPP $CPPFLAGS'
 
19216
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19217
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19218
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19219
 
 
19220
CC="$lt_save_CC"
 
19221
 
 
19222
        else
 
19223
          tagname=""
 
19224
        fi
 
19225
        ;;
 
19226
 
 
19227
      RC)
 
19228
 
 
19229
 
 
19230
 
 
19231
# Source file extension for RC test sources.
 
19232
ac_ext=rc
 
19233
 
 
19234
# Object file extension for compiled RC test sources.
 
19235
objext=o
 
19236
objext_RC=$objext
 
19237
 
 
19238
# Code to be used in simple compile tests
 
19239
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19240
 
 
19241
# Code to be used in simple link tests
 
19242
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19243
 
 
19244
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19245
 
 
19246
# If no C compiler was specified, use CC.
 
19247
LTCC=${LTCC-"$CC"}
 
19248
 
 
19249
# Allow CC to be a program name with arguments.
 
19250
compiler=$CC
 
19251
 
 
19252
 
 
19253
# save warnings/boilerplate of simple test code
 
19254
ac_outfile=conftest.$ac_objext
 
19255
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19256
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
19257
_lt_compiler_boilerplate=`cat conftest.err`
 
19258
$rm conftest*
 
19259
 
 
19260
ac_outfile=conftest.$ac_objext
 
19261
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19262
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
19263
_lt_linker_boilerplate=`cat conftest.err`
 
19264
$rm conftest*
 
19265
 
 
19266
 
 
19267
# Allow CC to be a program name with arguments.
 
19268
lt_save_CC="$CC"
 
19269
CC=${RC-"windres"}
 
19270
compiler=$CC
 
19271
compiler_RC=$CC
 
19272
for cc_temp in $compiler""; do
 
19273
  case $cc_temp in
 
19274
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19275
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19276
    \-*) ;;
 
19277
    *) break;;
 
19278
  esac
 
19279
done
 
19280
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19281
 
 
19282
lt_cv_prog_compiler_c_o_RC=yes
 
19283
 
 
19284
# The else clause should only fire when bootstrapping the
 
19285
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19286
# with your package, and you will get complaints that there are
 
19287
# no rules to generate ltmain.sh.
 
19288
if test -f "$ltmain"; then
 
19289
  # See if we are running on zsh, and set the options which allow our commands through
 
19290
  # without removal of \ escapes.
 
19291
  if test -n "${ZSH_VERSION+set}" ; then
 
19292
    setopt NO_GLOB_SUBST
 
19293
  fi
 
19294
  # Now quote all the things that may contain metacharacters while being
 
19295
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19296
  # variables and quote the copies for generation of the libtool script.
 
19297
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19298
    SED SHELL STRIP \
 
19299
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19300
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19301
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19302
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19303
    lt_cv_sys_global_symbol_to_c_name_address \
 
19304
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19305
    old_postinstall_cmds old_postuninstall_cmds \
 
19306
    compiler_RC \
 
19307
    CC_RC \
 
19308
    LD_RC \
 
19309
    lt_prog_compiler_wl_RC \
 
19310
    lt_prog_compiler_pic_RC \
 
19311
    lt_prog_compiler_static_RC \
 
19312
    lt_prog_compiler_no_builtin_flag_RC \
 
19313
    export_dynamic_flag_spec_RC \
 
19314
    thread_safe_flag_spec_RC \
 
19315
    whole_archive_flag_spec_RC \
 
19316
    enable_shared_with_static_runtimes_RC \
 
19317
    old_archive_cmds_RC \
 
19318
    old_archive_from_new_cmds_RC \
 
19319
    predep_objects_RC \
 
19320
    postdep_objects_RC \
 
19321
    predeps_RC \
 
19322
    postdeps_RC \
 
19323
    compiler_lib_search_path_RC \
 
19324
    archive_cmds_RC \
 
19325
    archive_expsym_cmds_RC \
 
19326
    postinstall_cmds_RC \
 
19327
    postuninstall_cmds_RC \
 
19328
    old_archive_from_expsyms_cmds_RC \
 
19329
    allow_undefined_flag_RC \
 
19330
    no_undefined_flag_RC \
 
19331
    export_symbols_cmds_RC \
 
19332
    hardcode_libdir_flag_spec_RC \
 
19333
    hardcode_libdir_flag_spec_ld_RC \
 
19334
    hardcode_libdir_separator_RC \
 
19335
    hardcode_automatic_RC \
 
19336
    module_cmds_RC \
 
19337
    module_expsym_cmds_RC \
 
19338
    lt_cv_prog_compiler_c_o_RC \
 
19339
    exclude_expsyms_RC \
 
19340
    include_expsyms_RC; do
 
19341
 
 
19342
    case $var in
 
19343
    old_archive_cmds_RC | \
 
19344
    old_archive_from_new_cmds_RC | \
 
19345
    archive_cmds_RC | \
 
19346
    archive_expsym_cmds_RC | \
 
19347
    module_cmds_RC | \
 
19348
    module_expsym_cmds_RC | \
 
19349
    old_archive_from_expsyms_cmds_RC | \
 
19350
    export_symbols_cmds_RC | \
 
19351
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19352
    postinstall_cmds | postuninstall_cmds | \
 
19353
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19354
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19355
      # Double-quote double-evaled strings.
 
19356
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19357
      ;;
 
19358
    *)
 
19359
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19360
      ;;
 
19361
    esac
 
19362
  done
 
19363
 
 
19364
  case $lt_echo in
 
19365
  *'\$0 --fallback-echo"')
 
19366
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19367
    ;;
 
19368
  esac
 
19369
 
 
19370
cfgfile="$ofile"
 
19371
 
 
19372
  cat <<__EOF__ >> "$cfgfile"
 
19373
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19374
 
 
19375
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19376
 
 
19377
# Shell to use when invoking shell scripts.
 
19378
SHELL=$lt_SHELL
 
19379
 
 
19380
# Whether or not to build shared libraries.
 
19381
build_libtool_libs=$enable_shared
 
19382
 
 
19383
# Whether or not to build static libraries.
 
19384
build_old_libs=$enable_static
 
19385
 
 
19386
# Whether or not to add -lc for building shared libraries.
 
19387
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19388
 
 
19389
# Whether or not to disallow shared libs when runtime libs are static
 
19390
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19391
 
 
19392
# Whether or not to optimize for fast installation.
 
19393
fast_install=$enable_fast_install
 
19394
 
 
19395
# The host system.
 
19396
host_alias=$host_alias
 
19397
host=$host
 
19398
host_os=$host_os
 
19399
 
 
19400
# The build system.
 
19401
build_alias=$build_alias
 
19402
build=$build
 
19403
build_os=$build_os
 
19404
 
 
19405
# An echo program that does not interpret backslashes.
 
19406
echo=$lt_echo
 
19407
 
 
19408
# The archiver.
 
19409
AR=$lt_AR
 
19410
AR_FLAGS=$lt_AR_FLAGS
 
19411
 
 
19412
# A C compiler.
 
19413
LTCC=$lt_LTCC
 
19414
 
 
19415
# A language-specific compiler.
 
19416
CC=$lt_compiler_RC
 
19417
 
 
19418
# Is the compiler the GNU C compiler?
 
19419
with_gcc=$GCC_RC
 
19420
 
 
19421
# An ERE matcher.
 
19422
EGREP=$lt_EGREP
 
19423
 
 
19424
# The linker used to build libraries.
 
19425
LD=$lt_LD_RC
 
19426
 
 
19427
# Whether we need hard or soft links.
 
19428
LN_S=$lt_LN_S
 
19429
 
 
19430
# A BSD-compatible nm program.
 
19431
NM=$lt_NM
 
19432
 
 
19433
# A symbol stripping program
 
19434
STRIP=$lt_STRIP
 
19435
 
 
19436
# Used to examine libraries when file_magic_cmd begins "file"
 
19437
MAGIC_CMD=$MAGIC_CMD
 
19438
 
 
19439
# Used on cygwin: DLL creation program.
 
19440
DLLTOOL="$DLLTOOL"
 
19441
 
 
19442
# Used on cygwin: object dumper.
 
19443
OBJDUMP="$OBJDUMP"
 
19444
 
 
19445
# Used on cygwin: assembler.
 
19446
AS="$AS"
 
19447
 
 
19448
# The name of the directory that contains temporary libtool files.
 
19449
objdir=$objdir
 
19450
 
 
19451
# How to create reloadable object files.
 
19452
reload_flag=$lt_reload_flag
 
19453
reload_cmds=$lt_reload_cmds
 
19454
 
 
19455
# How to pass a linker flag through the compiler.
 
19456
wl=$lt_lt_prog_compiler_wl_RC
 
19457
 
 
19458
# Object file suffix (normally "o").
 
19459
objext="$ac_objext"
 
19460
 
 
19461
# Old archive suffix (normally "a").
 
19462
libext="$libext"
 
19463
 
 
19464
# Shared library suffix (normally ".so").
 
19465
shrext_cmds='$shrext_cmds'
 
19466
 
 
19467
# Executable file suffix (normally "").
 
19468
exeext="$exeext"
 
19469
 
 
19470
# Additional compiler flags for building library objects.
 
19471
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19472
pic_mode=$pic_mode
 
19473
 
 
19474
# What is the maximum length of a command?
 
19475
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19476
 
 
19477
# Does compiler simultaneously support -c and -o options?
 
19478
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19479
 
 
19480
# Must we lock files when doing compilation?
 
19481
need_locks=$lt_need_locks
 
19482
 
 
19483
# Do we need the lib prefix for modules?
 
19484
need_lib_prefix=$need_lib_prefix
 
19485
 
 
19486
# Do we need a version for libraries?
 
19487
need_version=$need_version
 
19488
 
 
19489
# Whether dlopen is supported.
 
19490
dlopen_support=$enable_dlopen
 
19491
 
 
19492
# Whether dlopen of programs is supported.
 
19493
dlopen_self=$enable_dlopen_self
 
19494
 
 
19495
# Whether dlopen of statically linked programs is supported.
 
19496
dlopen_self_static=$enable_dlopen_self_static
 
19497
 
 
19498
# Compiler flag to prevent dynamic linking.
 
19499
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19500
 
 
19501
# Compiler flag to turn off builtin functions.
 
19502
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19503
 
 
19504
# Compiler flag to allow reflexive dlopens.
 
19505
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19506
 
 
19507
# Compiler flag to generate shared objects directly from archives.
 
19508
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19509
 
 
19510
# Compiler flag to generate thread-safe objects.
 
19511
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19512
 
 
19513
# Library versioning type.
 
19514
version_type=$version_type
 
19515
 
 
19516
# Format of library name prefix.
 
19517
libname_spec=$lt_libname_spec
 
19518
 
 
19519
# List of archive names.  First name is the real one, the rest are links.
 
19520
# The last name is the one that the linker finds with -lNAME.
 
19521
library_names_spec=$lt_library_names_spec
 
19522
 
 
19523
# The coded name of the library, if different from the real name.
 
19524
soname_spec=$lt_soname_spec
 
19525
 
 
19526
# Commands used to build and install an old-style archive.
 
19527
RANLIB=$lt_RANLIB
 
19528
old_archive_cmds=$lt_old_archive_cmds_RC
 
19529
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19530
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19531
 
 
19532
# Create an old-style archive from a shared archive.
 
19533
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19534
 
 
19535
# Create a temporary old-style archive to link instead of a shared archive.
 
19536
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19537
 
 
19538
# Commands used to build and install a shared archive.
 
19539
archive_cmds=$lt_archive_cmds_RC
 
19540
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19541
postinstall_cmds=$lt_postinstall_cmds
 
19542
postuninstall_cmds=$lt_postuninstall_cmds
 
19543
 
 
19544
# Commands used to build a loadable module (assumed same as above if empty)
 
19545
module_cmds=$lt_module_cmds_RC
 
19546
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19547
 
 
19548
# Commands to strip libraries.
 
19549
old_striplib=$lt_old_striplib
 
19550
striplib=$lt_striplib
 
19551
 
 
19552
# Dependencies to place before the objects being linked to create a
 
19553
# shared library.
 
19554
predep_objects=$lt_predep_objects_RC
 
19555
 
 
19556
# Dependencies to place after the objects being linked to create a
 
19557
# shared library.
 
19558
postdep_objects=$lt_postdep_objects_RC
 
19559
 
 
19560
# Dependencies to place before the objects being linked to create a
 
19561
# shared library.
 
19562
predeps=$lt_predeps_RC
 
19563
 
 
19564
# Dependencies to place after the objects being linked to create a
 
19565
# shared library.
 
19566
postdeps=$lt_postdeps_RC
 
19567
 
 
19568
# The library search path used internally by the compiler when linking
 
19569
# a shared library.
 
19570
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19571
 
 
19572
# Method to check whether dependent libraries are shared objects.
 
19573
deplibs_check_method=$lt_deplibs_check_method
 
19574
 
 
19575
# Command to use when deplibs_check_method == file_magic.
 
19576
file_magic_cmd=$lt_file_magic_cmd
 
19577
 
 
19578
# Flag that allows shared libraries with undefined symbols to be built.
 
19579
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19580
 
 
19581
# Flag that forces no undefined symbols.
 
19582
no_undefined_flag=$lt_no_undefined_flag_RC
 
19583
 
 
19584
# Commands used to finish a libtool library installation in a directory.
 
19585
finish_cmds=$lt_finish_cmds
 
19586
 
 
19587
# Same as above, but a single script fragment to be evaled but not shown.
 
19588
finish_eval=$lt_finish_eval
 
19589
 
 
19590
# Take the output of nm and produce a listing of raw symbols and C names.
 
19591
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19592
 
 
19593
# Transform the output of nm in a proper C declaration
 
19594
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19595
 
 
19596
# Transform the output of nm in a C name address pair
 
19597
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19598
 
 
19599
# This is the shared library runtime path variable.
 
19600
runpath_var=$runpath_var
 
19601
 
 
19602
# This is the shared library path variable.
 
19603
shlibpath_var=$shlibpath_var
 
19604
 
 
19605
# Is shlibpath searched before the hard-coded library search path?
 
19606
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19607
 
 
19608
# How to hardcode a shared library path into an executable.
 
19609
hardcode_action=$hardcode_action_RC
 
19610
 
 
19611
# Whether we should hardcode library paths into libraries.
 
19612
hardcode_into_libs=$hardcode_into_libs
 
19613
 
 
19614
# Flag to hardcode \$libdir into a binary during linking.
 
19615
# This must work even if \$libdir does not exist.
 
19616
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19617
 
 
19618
# If ld is used when linking, flag to hardcode \$libdir into
 
19619
# a binary during linking. This must work even if \$libdir does
 
19620
# not exist.
 
19621
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19622
 
 
19623
# Whether we need a single -rpath flag with a separated argument.
 
19624
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19625
 
 
19626
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19627
# resulting binary.
 
19628
hardcode_direct=$hardcode_direct_RC
 
19629
 
 
19630
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19631
# resulting binary.
 
19632
hardcode_minus_L=$hardcode_minus_L_RC
 
19633
 
 
19634
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19635
# the resulting binary.
 
19636
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19637
 
 
19638
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19639
# and all subsequent libraries and executables linked against it.
 
19640
hardcode_automatic=$hardcode_automatic_RC
 
19641
 
 
19642
# Variables whose values should be saved in libtool wrapper scripts and
 
19643
# restored at relink time.
 
19644
variables_saved_for_relink="$variables_saved_for_relink"
 
19645
 
 
19646
# Whether libtool must link a program against all its dependency libraries.
 
19647
link_all_deplibs=$link_all_deplibs_RC
 
19648
 
 
19649
# Compile-time system search path for libraries
 
19650
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19651
 
 
19652
# Run-time system search path for libraries
 
19653
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19654
 
 
19655
# Fix the shell variable \$srcfile for the compiler.
 
19656
fix_srcfile_path="$fix_srcfile_path_RC"
 
19657
 
 
19658
# Set to yes if exported symbols are required.
 
19659
always_export_symbols=$always_export_symbols_RC
 
19660
 
 
19661
# The commands to list exported symbols.
 
19662
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19663
 
 
19664
# The commands to extract the exported symbol list from a shared archive.
 
19665
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19666
 
 
19667
# Symbols that should not be listed in the preloaded symbols.
 
19668
exclude_expsyms=$lt_exclude_expsyms_RC
 
19669
 
 
19670
# Symbols that must always be exported.
 
19671
include_expsyms=$lt_include_expsyms_RC
 
19672
 
 
19673
# ### END LIBTOOL TAG CONFIG: $tagname
 
19674
 
 
19675
__EOF__
 
19676
 
 
19677
 
 
19678
else
 
19679
  # If there is no Makefile yet, we rely on a make rule to execute
 
19680
  # `config.status --recheck' to rerun these tests and create the
 
19681
  # libtool script then.
 
19682
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19683
  if test -f "$ltmain_in"; then
 
19684
    test -f Makefile && make "$ltmain"
 
19685
  fi
 
19686
fi
 
19687
 
 
19688
 
 
19689
ac_ext=c
 
19690
ac_cpp='$CPP $CPPFLAGS'
 
19691
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19692
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19693
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19694
 
 
19695
CC="$lt_save_CC"
 
19696
 
 
19697
        ;;
 
19698
 
 
19699
      *)
 
19700
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19701
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19702
   { (exit 1); exit 1; }; }
 
19703
        ;;
 
19704
      esac
 
19705
 
 
19706
      # Append the new tag name to the list of available tags.
 
19707
      if test -n "$tagname" ; then
 
19708
      available_tags="$available_tags $tagname"
 
19709
    fi
 
19710
    fi
 
19711
  done
 
19712
  IFS="$lt_save_ifs"
 
19713
 
 
19714
  # Now substitute the updated list of available tags.
 
19715
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19716
    mv "${ofile}T" "$ofile"
 
19717
    chmod +x "$ofile"
 
19718
  else
 
19719
    rm -f "${ofile}T"
 
19720
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19721
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19722
   { (exit 1); exit 1; }; }
 
19723
  fi
 
19724
fi
 
19725
 
 
19726
 
 
19727
 
 
19728
# This can be used to rebuild libtool when needed
 
19729
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19730
 
 
19731
# Always use our own libtool.
 
19732
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19733
 
 
19734
# Prevent multiple expansion
 
19735
 
 
19736
 
 
19737
 
 
19738
 
 
19739
 
 
19740
 
 
19741
 
 
19742
 
 
19743
 
 
19744
 
 
19745
 
 
19746
 
 
19747
 
 
19748
 
 
19749
 
 
19750
 
 
19751
 
 
19752
 
 
19753
 
 
19754
 
 
19755
 
 
19756
 
 
19757
 
 
19758
for ac_header in sys/mman.h
 
19759
do
 
19760
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19761
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19762
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19763
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19764
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19765
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19766
fi
 
19767
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19768
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19769
else
 
19770
  # Is the header compilable?
 
19771
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19772
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
19773
cat >conftest.$ac_ext <<_ACEOF
 
19774
/* confdefs.h.  */
 
19775
_ACEOF
 
19776
cat confdefs.h >>conftest.$ac_ext
 
19777
cat >>conftest.$ac_ext <<_ACEOF
 
19778
/* end confdefs.h.  */
 
19779
$ac_includes_default
 
19780
#include <$ac_header>
 
19781
_ACEOF
 
19782
rm -f conftest.$ac_objext
 
19783
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19784
  (eval $ac_compile) 2>conftest.er1
 
19785
  ac_status=$?
 
19786
  grep -v '^ *+' conftest.er1 >conftest.err
 
19787
  rm -f conftest.er1
 
19788
  cat conftest.err >&5
 
19789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19790
  (exit $ac_status); } &&
 
19791
         { ac_try='test -z "$ac_c_werror_flag"
 
19792
                         || test ! -s conftest.err'
 
19793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19794
  (eval $ac_try) 2>&5
 
19795
  ac_status=$?
 
19796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19797
  (exit $ac_status); }; } &&
 
19798
         { ac_try='test -s conftest.$ac_objext'
 
19799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19800
  (eval $ac_try) 2>&5
 
19801
  ac_status=$?
 
19802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19803
  (exit $ac_status); }; }; then
 
19804
  ac_header_compiler=yes
 
19805
else
 
19806
  echo "$as_me: failed program was:" >&5
 
19807
sed 's/^/| /' conftest.$ac_ext >&5
 
19808
 
 
19809
ac_header_compiler=no
 
19810
fi
 
19811
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19812
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19813
echo "${ECHO_T}$ac_header_compiler" >&6
 
19814
 
 
19815
# Is the header present?
 
19816
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19817
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
19818
cat >conftest.$ac_ext <<_ACEOF
 
19819
/* confdefs.h.  */
 
19820
_ACEOF
 
19821
cat confdefs.h >>conftest.$ac_ext
 
19822
cat >>conftest.$ac_ext <<_ACEOF
 
19823
/* end confdefs.h.  */
 
19824
#include <$ac_header>
 
19825
_ACEOF
 
19826
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
19827
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
19828
  ac_status=$?
 
19829
  grep -v '^ *+' conftest.er1 >conftest.err
 
19830
  rm -f conftest.er1
 
19831
  cat conftest.err >&5
 
19832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19833
  (exit $ac_status); } >/dev/null; then
 
19834
  if test -s conftest.err; then
 
19835
    ac_cpp_err=$ac_c_preproc_warn_flag
 
19836
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
19837
  else
 
19838
    ac_cpp_err=
 
19839
  fi
 
19840
else
 
19841
  ac_cpp_err=yes
 
19842
fi
 
19843
if test -z "$ac_cpp_err"; then
 
19844
  ac_header_preproc=yes
 
19845
else
 
19846
  echo "$as_me: failed program was:" >&5
 
19847
sed 's/^/| /' conftest.$ac_ext >&5
 
19848
 
 
19849
  ac_header_preproc=no
 
19850
fi
 
19851
rm -f conftest.err conftest.$ac_ext
 
19852
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19853
echo "${ECHO_T}$ac_header_preproc" >&6
 
19854
 
 
19855
# So?  What about this header?
 
19856
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19857
  yes:no: )
 
19858
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19859
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19860
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19861
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19862
    ac_header_preproc=yes
 
19863
    ;;
 
19864
  no:yes:* )
 
19865
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19866
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19867
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19868
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19869
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19870
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19871
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19872
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19873
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19874
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19875
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19876
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
19877
    (
 
19878
      cat <<\_ASBOX
 
19879
## ------------------------------------------- ##
 
19880
## Report this to http://gcc.gnu.org/bugs.html ##
 
19881
## ------------------------------------------- ##
 
19882
_ASBOX
 
19883
    ) |
 
19884
      sed "s/^/$as_me: WARNING:     /" >&2
 
19885
    ;;
 
19886
esac
 
19887
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19888
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
19889
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
19890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19891
else
 
19892
  eval "$as_ac_Header=\$ac_header_preproc"
 
19893
fi
 
19894
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
19895
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
19896
 
 
19897
fi
 
19898
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19899
  cat >>confdefs.h <<_ACEOF
 
19900
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19901
_ACEOF
 
19902
 
 
19903
fi
 
19904
 
 
19905
done
 
19906
 
 
19907
 
 
19908
for ac_func in mmap
 
19909
do
 
19910
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
19911
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
19912
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
19913
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
19914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19915
else
 
19916
  cat >conftest.$ac_ext <<_ACEOF
 
19917
/* confdefs.h.  */
 
19918
_ACEOF
 
19919
cat confdefs.h >>conftest.$ac_ext
 
19920
cat >>conftest.$ac_ext <<_ACEOF
 
19921
/* end confdefs.h.  */
 
19922
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
19923
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19924
#define $ac_func innocuous_$ac_func
 
19925
 
 
19926
/* System header to define __stub macros and hopefully few prototypes,
 
19927
    which can conflict with char $ac_func (); below.
 
19928
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19929
    <limits.h> exists even on freestanding compilers.  */
 
19930
 
 
19931
#ifdef __STDC__
 
19932
# include <limits.h>
 
19933
#else
 
19934
# include <assert.h>
 
19935
#endif
 
19936
 
 
19937
#undef $ac_func
 
19938
 
 
19939
/* Override any gcc2 internal prototype to avoid an error.  */
 
19940
#ifdef __cplusplus
 
19941
extern "C"
 
19942
{
 
19943
#endif
 
19944
/* We use char because int might match the return type of a gcc2
 
19945
   builtin and then its argument prototype would still apply.  */
 
19946
char $ac_func ();
 
19947
/* The GNU C library defines this for functions which it implements
 
19948
    to always fail with ENOSYS.  Some functions are actually named
 
19949
    something starting with __ and the normal name is an alias.  */
 
19950
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
19951
choke me
 
19952
#else
 
19953
char (*f) () = $ac_func;
 
19954
#endif
 
19955
#ifdef __cplusplus
 
19956
}
 
19957
#endif
 
19958
 
 
19959
int
 
19960
main ()
 
19961
{
 
19962
return f != $ac_func;
 
19963
  ;
 
19964
  return 0;
 
19965
}
 
19966
_ACEOF
 
19967
rm -f conftest.$ac_objext conftest$ac_exeext
 
19968
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19969
  (eval $ac_link) 2>conftest.er1
 
19970
  ac_status=$?
 
19971
  grep -v '^ *+' conftest.er1 >conftest.err
 
19972
  rm -f conftest.er1
 
19973
  cat conftest.err >&5
 
19974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19975
  (exit $ac_status); } &&
 
19976
         { ac_try='test -z "$ac_c_werror_flag"
 
19977
                         || test ! -s conftest.err'
 
19978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19979
  (eval $ac_try) 2>&5
 
19980
  ac_status=$?
 
19981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19982
  (exit $ac_status); }; } &&
 
19983
         { ac_try='test -s conftest$ac_exeext'
 
19984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19985
  (eval $ac_try) 2>&5
 
19986
  ac_status=$?
 
19987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19988
  (exit $ac_status); }; }; then
 
19989
  eval "$as_ac_var=yes"
 
19990
else
 
19991
  echo "$as_me: failed program was:" >&5
 
19992
sed 's/^/| /' conftest.$ac_ext >&5
 
19993
 
 
19994
eval "$as_ac_var=no"
 
19995
fi
 
19996
rm -f conftest.err conftest.$ac_objext \
 
19997
      conftest$ac_exeext conftest.$ac_ext
 
19998
fi
 
19999
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20000
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20001
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20002
  cat >>confdefs.h <<_ACEOF
 
20003
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20004
_ACEOF
 
20005
 
 
20006
fi
 
20007
done
 
20008
 
 
20009
 
 
20010
if test "${ac_cv_header_sys_mman_h+set}" = set; then
 
20011
  echo "$as_me:$LINENO: checking for sys/mman.h" >&5
 
20012
echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
 
20013
if test "${ac_cv_header_sys_mman_h+set}" = set; then
 
20014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20015
fi
 
20016
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
 
20017
echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
 
20018
else
 
20019
  # Is the header compilable?
 
20020
echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
 
20021
echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
 
20022
cat >conftest.$ac_ext <<_ACEOF
 
20023
/* confdefs.h.  */
 
20024
_ACEOF
 
20025
cat confdefs.h >>conftest.$ac_ext
 
20026
cat >>conftest.$ac_ext <<_ACEOF
 
20027
/* end confdefs.h.  */
 
20028
$ac_includes_default
 
20029
#include <sys/mman.h>
 
20030
_ACEOF
 
20031
rm -f conftest.$ac_objext
 
20032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20033
  (eval $ac_compile) 2>conftest.er1
 
20034
  ac_status=$?
 
20035
  grep -v '^ *+' conftest.er1 >conftest.err
 
20036
  rm -f conftest.er1
 
20037
  cat conftest.err >&5
 
20038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20039
  (exit $ac_status); } &&
 
20040
         { ac_try='test -z "$ac_c_werror_flag"
 
20041
                         || test ! -s conftest.err'
 
20042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20043
  (eval $ac_try) 2>&5
 
20044
  ac_status=$?
 
20045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20046
  (exit $ac_status); }; } &&
 
20047
         { ac_try='test -s conftest.$ac_objext'
 
20048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20049
  (eval $ac_try) 2>&5
 
20050
  ac_status=$?
 
20051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20052
  (exit $ac_status); }; }; then
 
20053
  ac_header_compiler=yes
 
20054
else
 
20055
  echo "$as_me: failed program was:" >&5
 
20056
sed 's/^/| /' conftest.$ac_ext >&5
 
20057
 
 
20058
ac_header_compiler=no
 
20059
fi
 
20060
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20061
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20062
echo "${ECHO_T}$ac_header_compiler" >&6
 
20063
 
 
20064
# Is the header present?
 
20065
echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
 
20066
echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
 
20067
cat >conftest.$ac_ext <<_ACEOF
 
20068
/* confdefs.h.  */
 
20069
_ACEOF
 
20070
cat confdefs.h >>conftest.$ac_ext
 
20071
cat >>conftest.$ac_ext <<_ACEOF
 
20072
/* end confdefs.h.  */
 
20073
#include <sys/mman.h>
 
20074
_ACEOF
 
20075
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20076
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20077
  ac_status=$?
 
20078
  grep -v '^ *+' conftest.er1 >conftest.err
 
20079
  rm -f conftest.er1
 
20080
  cat conftest.err >&5
 
20081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20082
  (exit $ac_status); } >/dev/null; then
 
20083
  if test -s conftest.err; then
 
20084
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20085
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20086
  else
 
20087
    ac_cpp_err=
 
20088
  fi
 
20089
else
 
20090
  ac_cpp_err=yes
 
20091
fi
 
20092
if test -z "$ac_cpp_err"; then
 
20093
  ac_header_preproc=yes
 
20094
else
 
20095
  echo "$as_me: failed program was:" >&5
 
20096
sed 's/^/| /' conftest.$ac_ext >&5
 
20097
 
 
20098
  ac_header_preproc=no
 
20099
fi
 
20100
rm -f conftest.err conftest.$ac_ext
 
20101
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20102
echo "${ECHO_T}$ac_header_preproc" >&6
 
20103
 
 
20104
# So?  What about this header?
 
20105
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20106
  yes:no: )
 
20107
    { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20108
echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20109
    { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
 
20110
echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
 
20111
    ac_header_preproc=yes
 
20112
    ;;
 
20113
  no:yes:* )
 
20114
    { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
 
20115
echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
 
20116
    { echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
 
20117
echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
 
20118
    { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
 
20119
echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
 
20120
    { echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20121
echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20122
    { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
 
20123
echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
 
20124
    { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
 
20125
echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
 
20126
    (
 
20127
      cat <<\_ASBOX
 
20128
## ------------------------------------------- ##
 
20129
## Report this to http://gcc.gnu.org/bugs.html ##
 
20130
## ------------------------------------------- ##
 
20131
_ASBOX
 
20132
    ) |
 
20133
      sed "s/^/$as_me: WARNING:     /" >&2
 
20134
    ;;
 
20135
esac
 
20136
echo "$as_me:$LINENO: checking for sys/mman.h" >&5
 
20137
echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
 
20138
if test "${ac_cv_header_sys_mman_h+set}" = set; then
 
20139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20140
else
 
20141
  ac_cv_header_sys_mman_h=$ac_header_preproc
 
20142
fi
 
20143
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
 
20144
echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
 
20145
 
 
20146
fi
 
20147
if test $ac_cv_header_sys_mman_h = yes; then
 
20148
  libffi_header_sys_mman_h=yes
 
20149
else
 
20150
  libffi_header_sys_mman_h=no
 
20151
fi
 
20152
 
 
20153
 
 
20154
echo "$as_me:$LINENO: checking for mmap" >&5
 
20155
echo $ECHO_N "checking for mmap... $ECHO_C" >&6
 
20156
if test "${ac_cv_func_mmap+set}" = set; then
 
20157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20158
else
 
20159
  cat >conftest.$ac_ext <<_ACEOF
 
20160
/* confdefs.h.  */
 
20161
_ACEOF
 
20162
cat confdefs.h >>conftest.$ac_ext
 
20163
cat >>conftest.$ac_ext <<_ACEOF
 
20164
/* end confdefs.h.  */
 
20165
/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
 
20166
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20167
#define mmap innocuous_mmap
 
20168
 
 
20169
/* System header to define __stub macros and hopefully few prototypes,
 
20170
    which can conflict with char mmap (); below.
 
20171
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20172
    <limits.h> exists even on freestanding compilers.  */
 
20173
 
 
20174
#ifdef __STDC__
 
20175
# include <limits.h>
 
20176
#else
 
20177
# include <assert.h>
 
20178
#endif
 
20179
 
 
20180
#undef mmap
 
20181
 
 
20182
/* Override any gcc2 internal prototype to avoid an error.  */
 
20183
#ifdef __cplusplus
 
20184
extern "C"
 
20185
{
 
20186
#endif
 
20187
/* We use char because int might match the return type of a gcc2
 
20188
   builtin and then its argument prototype would still apply.  */
 
20189
char mmap ();
 
20190
/* The GNU C library defines this for functions which it implements
 
20191
    to always fail with ENOSYS.  Some functions are actually named
 
20192
    something starting with __ and the normal name is an alias.  */
 
20193
#if defined (__stub_mmap) || defined (__stub___mmap)
 
20194
choke me
 
20195
#else
 
20196
char (*f) () = mmap;
 
20197
#endif
 
20198
#ifdef __cplusplus
 
20199
}
 
20200
#endif
 
20201
 
 
20202
int
 
20203
main ()
 
20204
{
 
20205
return f != mmap;
 
20206
  ;
 
20207
  return 0;
 
20208
}
 
20209
_ACEOF
 
20210
rm -f conftest.$ac_objext conftest$ac_exeext
 
20211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20212
  (eval $ac_link) 2>conftest.er1
 
20213
  ac_status=$?
 
20214
  grep -v '^ *+' conftest.er1 >conftest.err
 
20215
  rm -f conftest.er1
 
20216
  cat conftest.err >&5
 
20217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20218
  (exit $ac_status); } &&
 
20219
         { ac_try='test -z "$ac_c_werror_flag"
 
20220
                         || test ! -s conftest.err'
 
20221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20222
  (eval $ac_try) 2>&5
 
20223
  ac_status=$?
 
20224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20225
  (exit $ac_status); }; } &&
 
20226
         { ac_try='test -s conftest$ac_exeext'
 
20227
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20228
  (eval $ac_try) 2>&5
 
20229
  ac_status=$?
 
20230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20231
  (exit $ac_status); }; }; then
 
20232
  ac_cv_func_mmap=yes
 
20233
else
 
20234
  echo "$as_me: failed program was:" >&5
 
20235
sed 's/^/| /' conftest.$ac_ext >&5
 
20236
 
 
20237
ac_cv_func_mmap=no
 
20238
fi
 
20239
rm -f conftest.err conftest.$ac_objext \
 
20240
      conftest$ac_exeext conftest.$ac_ext
 
20241
fi
 
20242
echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
 
20243
echo "${ECHO_T}$ac_cv_func_mmap" >&6
 
20244
if test $ac_cv_func_mmap = yes; then
 
20245
  libffi_func_mmap=yes
 
20246
else
 
20247
  libffi_func_mmap=no
 
20248
fi
 
20249
 
 
20250
if test "$libffi_header_sys_mman_h" != yes \
 
20251
 || test "$libffi_func_mmap" != yes; then
 
20252
   ac_cv_func_mmap_file=no
 
20253
   ac_cv_func_mmap_dev_zero=no
 
20254
   ac_cv_func_mmap_anon=no
 
20255
else
 
20256
   echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
 
20257
echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
 
20258
if test "${ac_cv_func_mmap_file+set}" = set; then
 
20259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20260
else
 
20261
  # Add a system to this blacklist if
 
20262
   # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
 
20263
   # memory area containing the same data that you'd get if you applied
 
20264
   # read() to the same fd.  The only system known to have a problem here
 
20265
   # is VMS, where text files have record structure.
 
20266
   case "$host_os" in
 
20267
     vms* | ultrix*)
 
20268
        ac_cv_func_mmap_file=no ;;
 
20269
     *)
 
20270
        ac_cv_func_mmap_file=yes;;
 
20271
   esac
 
20272
fi
 
20273
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
 
20274
echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
 
20275
   echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
 
20276
echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
 
20277
if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
 
20278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20279
else
 
20280
  # Add a system to this blacklist if it has mmap() but /dev/zero
 
20281
   # does not exist, or if mmapping /dev/zero does not give anonymous
 
20282
   # zeroed pages with both the following properties:
 
20283
   # 1. If you map N consecutive pages in with one call, and then
 
20284
   #    unmap any subset of those pages, the pages that were not
 
20285
   #    explicitly unmapped remain accessible.
 
20286
   # 2. If you map two adjacent blocks of memory and then unmap them
 
20287
   #    both at once, they must both go away.
 
20288
   # Systems known to be in this category are Windows (all variants),
 
20289
   # VMS, and Darwin.
 
20290
   case "$host_os" in
 
20291
     vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
 
20292
        ac_cv_func_mmap_dev_zero=no ;;
 
20293
     *)
 
20294
        ac_cv_func_mmap_dev_zero=yes;;
 
20295
   esac
 
20296
fi
 
20297
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
 
20298
echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
 
20299
 
 
20300
   # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
 
20301
   echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
 
20302
echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
 
20303
if test "${ac_cv_decl_map_anon+set}" = set; then
 
20304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20305
else
 
20306
  cat >conftest.$ac_ext <<_ACEOF
 
20307
/* confdefs.h.  */
 
20308
_ACEOF
 
20309
cat confdefs.h >>conftest.$ac_ext
 
20310
cat >>conftest.$ac_ext <<_ACEOF
 
20311
/* end confdefs.h.  */
 
20312
#include <sys/types.h>
 
20313
#include <sys/mman.h>
 
20314
#include <unistd.h>
 
20315
 
 
20316
#ifndef MAP_ANONYMOUS
 
20317
#define MAP_ANONYMOUS MAP_ANON
 
20318
#endif
 
20319
 
 
20320
int
 
20321
main ()
 
20322
{
 
20323
int n = MAP_ANONYMOUS;
 
20324
  ;
 
20325
  return 0;
 
20326
}
 
20327
_ACEOF
 
20328
rm -f conftest.$ac_objext
 
20329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20330
  (eval $ac_compile) 2>conftest.er1
 
20331
  ac_status=$?
 
20332
  grep -v '^ *+' conftest.er1 >conftest.err
 
20333
  rm -f conftest.er1
 
20334
  cat conftest.err >&5
 
20335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20336
  (exit $ac_status); } &&
 
20337
         { ac_try='test -z "$ac_c_werror_flag"
 
20338
                         || test ! -s conftest.err'
 
20339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20340
  (eval $ac_try) 2>&5
 
20341
  ac_status=$?
 
20342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20343
  (exit $ac_status); }; } &&
 
20344
         { ac_try='test -s conftest.$ac_objext'
 
20345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20346
  (eval $ac_try) 2>&5
 
20347
  ac_status=$?
 
20348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20349
  (exit $ac_status); }; }; then
 
20350
  ac_cv_decl_map_anon=yes
 
20351
else
 
20352
  echo "$as_me: failed program was:" >&5
 
20353
sed 's/^/| /' conftest.$ac_ext >&5
 
20354
 
 
20355
ac_cv_decl_map_anon=no
 
20356
fi
 
20357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20358
fi
 
20359
echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
 
20360
echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
 
20361
 
 
20362
   if test $ac_cv_decl_map_anon = no; then
 
20363
     ac_cv_func_mmap_anon=no
 
20364
   else
 
20365
     echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
 
20366
echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
 
20367
if test "${ac_cv_func_mmap_anon+set}" = set; then
 
20368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20369
else
 
20370
  # Add a system to this blacklist if it has mmap() and MAP_ANON or
 
20371
   # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
 
20372
   # doesn't give anonymous zeroed pages with the same properties listed
 
20373
   # above for use of /dev/zero.
 
20374
   # Systems known to be in this category are Windows, VMS, and SCO Unix.
 
20375
   case "$host_os" in
 
20376
     vms* | cygwin* | pe | mingw* | sco* | udk* )
 
20377
        ac_cv_func_mmap_anon=no ;;
 
20378
     *)
 
20379
        ac_cv_func_mmap_anon=yes;;
 
20380
   esac
 
20381
fi
 
20382
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
 
20383
echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
 
20384
   fi
 
20385
fi
 
20386
 
 
20387
if test $ac_cv_func_mmap_file = yes; then
 
20388
 
 
20389
cat >>confdefs.h <<\_ACEOF
 
20390
#define HAVE_MMAP_FILE 1
 
20391
_ACEOF
 
20392
 
 
20393
fi
 
20394
if test $ac_cv_func_mmap_dev_zero = yes; then
 
20395
 
 
20396
cat >>confdefs.h <<\_ACEOF
 
20397
#define HAVE_MMAP_DEV_ZERO 1
 
20398
_ACEOF
 
20399
 
 
20400
fi
 
20401
if test $ac_cv_func_mmap_anon = yes; then
 
20402
 
 
20403
cat >>confdefs.h <<\_ACEOF
 
20404
#define HAVE_MMAP_ANON 1
 
20405
_ACEOF
 
20406
 
 
20407
fi
 
20408
 
 
20409
 
 
20410
TARGETDIR="unknown"
 
20411
case "$host" in
 
20412
i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
 
20413
i*86-*-gnu*) TARGET=X86; TARGETDIR=x86;;
 
20414
i*86-*-solaris2.1[0-9]*) TARGET=X86_64; TARGETDIR=x86;;
 
20415
i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
 
20416
i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
 
20417
i*86-*-freebsd* | i*86-*-kfreebsd*-gnu) TARGET=X86_FREEBSD; TARGETDIR=x86;;
 
20418
i*86-*-netbsdelf* | i*86-*-knetbsd*-gnu) TARGET=X86; TARGETDIR=x86;;
 
20419
i*86-*-rtems*) TARGET=X86; TARGETDIR=x86;;
 
20420
i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
 
20421
i*86-*-darwin*) TARGET=X86_DARWIN; TARGETDIR=x86;;
 
20422
i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
 
20423
i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
 
20424
frv-*-*) TARGET=FRV; TARGETDIR=frv;;
 
20425
sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
 
20426
sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
 
20427
sparc-*-linux* | sparc-*-netbsdelf* | sparc-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
 
20428
sparc*-*-rtems*) TARGET=SPARC; TARGETDIR=sparc;;
 
20429
sparc64-*-linux* | sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu) TARGET=SPARC; TARGETDIR=sparc;;
 
20430
alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu) TARGET=ALPHA; TARGETDIR=alpha;;
 
20431
ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
 
20432
m32r*-*-linux* ) TARGET=M32R; TARGETDIR=m32r;;
 
20433
m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
 
20434
mips64*-*);;
 
20435
mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
 
20436
mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
 
20437
powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
 
20438
powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
 
20439
powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
 
20440
powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
 
20441
powerpc-*-freebsd*) TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc;;
 
20442
powerpc*-*-rtems*) TARGET=POWERPC; TARGETDIR=powerpc;;
 
20443
rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
 
20444
arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
 
20445
arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) TARGET=ARM; TARGETDIR=arm;;
 
20446
arm*-*-rtems*) TARGET=ARM; TARGETDIR=arm;;
 
20447
cris-*-*) TARGET=LIBFFI_CRIS; TARGETDIR=cris;;
 
20448
s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
 
20449
s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
 
20450
x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
 
20451
sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
 
20452
sh-*-rtems*) TARGET=SH; TARGETDIR=sh;;
 
20453
sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
 
20454
hppa-*-linux* | parisc-*-linux*) TARGET=PA; TARGETDIR=pa;;
 
20455
esac
 
20456
 
 
20457
if test $TARGETDIR = unknown; then
 
20458
  { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
 
20459
echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
 
20460
   { (exit 1); exit 1; }; }
 
20461
fi
 
20462
 
 
20463
 
 
20464
 
 
20465
if test x$TARGET = xMIPS_IRIX; then
 
20466
  MIPS_IRIX_TRUE=
 
20467
  MIPS_IRIX_FALSE='#'
 
20468
else
 
20469
  MIPS_IRIX_TRUE='#'
 
20470
  MIPS_IRIX_FALSE=
 
20471
fi
 
20472
 
 
20473
 
 
20474
 
 
20475
if test x$TARGET = xMIPS_LINUX; then
 
20476
  MIPS_LINUX_TRUE=
 
20477
  MIPS_LINUX_FALSE='#'
 
20478
else
 
20479
  MIPS_LINUX_TRUE='#'
 
20480
  MIPS_LINUX_FALSE=
 
20481
fi
 
20482
 
 
20483
 
 
20484
 
 
20485
if test x$TARGET = xSPARC; then
 
20486
  SPARC_TRUE=
 
20487
  SPARC_FALSE='#'
 
20488
else
 
20489
  SPARC_TRUE='#'
 
20490
  SPARC_FALSE=
 
20491
fi
 
20492
 
 
20493
 
 
20494
 
 
20495
if test x$TARGET = xX86; then
 
20496
  X86_TRUE=
 
20497
  X86_FALSE='#'
 
20498
else
 
20499
  X86_TRUE='#'
 
20500
  X86_FALSE=
 
20501
fi
 
20502
 
 
20503
 
 
20504
 
 
20505
if test x$TARGET = xX86_WIN32; then
 
20506
  X86_WIN32_TRUE=
 
20507
  X86_WIN32_FALSE='#'
 
20508
else
 
20509
  X86_WIN32_TRUE='#'
 
20510
  X86_WIN32_FALSE=
 
20511
fi
 
20512
 
 
20513
 
 
20514
 
 
20515
if test x$TARGET = xX86_DARWIN; then
 
20516
  X86_DARWIN_TRUE=
 
20517
  X86_DARWIN_FALSE='#'
 
20518
else
 
20519
  X86_DARWIN_TRUE='#'
 
20520
  X86_DARWIN_FALSE=
 
20521
fi
 
20522
 
 
20523
 
 
20524
 
 
20525
if test x$TARGET = xX86_FREEBSD; then
 
20526
  X86_FREEBSD_TRUE=
 
20527
  X86_FREEBSD_FALSE='#'
 
20528
else
 
20529
  X86_FREEBSD_TRUE='#'
 
20530
  X86_FREEBSD_FALSE=
 
20531
fi
 
20532
 
 
20533
 
 
20534
 
 
20535
if test x$TARGET = xALPHA; then
 
20536
  ALPHA_TRUE=
 
20537
  ALPHA_FALSE='#'
 
20538
else
 
20539
  ALPHA_TRUE='#'
 
20540
  ALPHA_FALSE=
 
20541
fi
 
20542
 
 
20543
 
 
20544
 
 
20545
if test x$TARGET = xIA64; then
 
20546
  IA64_TRUE=
 
20547
  IA64_FALSE='#'
 
20548
else
 
20549
  IA64_TRUE='#'
 
20550
  IA64_FALSE=
 
20551
fi
 
20552
 
 
20553
 
 
20554
 
 
20555
if test x$TARGET = xM32R; then
 
20556
  M32R_TRUE=
 
20557
  M32R_FALSE='#'
 
20558
else
 
20559
  M32R_TRUE='#'
 
20560
  M32R_FALSE=
 
20561
fi
 
20562
 
 
20563
 
 
20564
 
 
20565
if test x$TARGET = xM68K; then
 
20566
  M68K_TRUE=
 
20567
  M68K_FALSE='#'
 
20568
else
 
20569
  M68K_TRUE='#'
 
20570
  M68K_FALSE=
 
20571
fi
 
20572
 
 
20573
 
 
20574
 
 
20575
if test x$TARGET = xPOWERPC; then
 
20576
  POWERPC_TRUE=
 
20577
  POWERPC_FALSE='#'
 
20578
else
 
20579
  POWERPC_TRUE='#'
 
20580
  POWERPC_FALSE=
 
20581
fi
 
20582
 
 
20583
 
 
20584
 
 
20585
if test x$TARGET = xPOWERPC_AIX; then
 
20586
  POWERPC_AIX_TRUE=
 
20587
  POWERPC_AIX_FALSE='#'
 
20588
else
 
20589
  POWERPC_AIX_TRUE='#'
 
20590
  POWERPC_AIX_FALSE=
 
20591
fi
 
20592
 
 
20593
 
 
20594
 
 
20595
if test x$TARGET = xPOWERPC_DARWIN; then
 
20596
  POWERPC_DARWIN_TRUE=
 
20597
  POWERPC_DARWIN_FALSE='#'
 
20598
else
 
20599
  POWERPC_DARWIN_TRUE='#'
 
20600
  POWERPC_DARWIN_FALSE=
 
20601
fi
 
20602
 
 
20603
 
 
20604
 
 
20605
if test x$TARGET = xPOWERPC_FREEBSD; then
 
20606
  POWERPC_FREEBSD_TRUE=
 
20607
  POWERPC_FREEBSD_FALSE='#'
 
20608
else
 
20609
  POWERPC_FREEBSD_TRUE='#'
 
20610
  POWERPC_FREEBSD_FALSE=
 
20611
fi
 
20612
 
 
20613
 
 
20614
 
 
20615
if test x$TARGET = xARM; then
 
20616
  ARM_TRUE=
 
20617
  ARM_FALSE='#'
 
20618
else
 
20619
  ARM_TRUE='#'
 
20620
  ARM_FALSE=
 
20621
fi
 
20622
 
 
20623
 
 
20624
 
 
20625
if test x$TARGET = xLIBFFI_CRIS; then
 
20626
  LIBFFI_CRIS_TRUE=
 
20627
  LIBFFI_CRIS_FALSE='#'
 
20628
else
 
20629
  LIBFFI_CRIS_TRUE='#'
 
20630
  LIBFFI_CRIS_FALSE=
 
20631
fi
 
20632
 
 
20633
 
 
20634
 
 
20635
if test x$TARGET = xFRV; then
 
20636
  FRV_TRUE=
 
20637
  FRV_FALSE='#'
 
20638
else
 
20639
  FRV_TRUE='#'
 
20640
  FRV_FALSE=
 
20641
fi
 
20642
 
 
20643
 
 
20644
 
 
20645
if test x$TARGET = xS390; then
 
20646
  S390_TRUE=
 
20647
  S390_FALSE='#'
 
20648
else
 
20649
  S390_TRUE='#'
 
20650
  S390_FALSE=
 
20651
fi
 
20652
 
 
20653
 
 
20654
 
 
20655
if test x$TARGET = xX86_64; then
 
20656
  X86_64_TRUE=
 
20657
  X86_64_FALSE='#'
 
20658
else
 
20659
  X86_64_TRUE='#'
 
20660
  X86_64_FALSE=
 
20661
fi
 
20662
 
 
20663
 
 
20664
 
 
20665
if test x$TARGET = xSH; then
 
20666
  SH_TRUE=
 
20667
  SH_FALSE='#'
 
20668
else
 
20669
  SH_TRUE='#'
 
20670
  SH_FALSE=
 
20671
fi
 
20672
 
 
20673
 
 
20674
 
 
20675
if test x$TARGET = xSH64; then
 
20676
  SH64_TRUE=
 
20677
  SH64_FALSE='#'
 
20678
else
 
20679
  SH64_TRUE='#'
 
20680
  SH64_FALSE=
 
20681
fi
 
20682
 
 
20683
 
 
20684
 
 
20685
if test x$TARGET = xPA; then
 
20686
  PA_TRUE=
 
20687
  PA_FALSE='#'
 
20688
else
 
20689
  PA_TRUE='#'
 
20690
  PA_FALSE=
 
20691
fi
 
20692
 
 
20693
 
 
20694
case x$TARGET in
 
20695
  xMIPS*) TARGET=MIPS ;;
 
20696
  *) ;;
 
20697
esac
 
20698
 
 
20699
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20700
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
20701
if test "${ac_cv_header_stdc+set}" = set; then
 
20702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20703
else
 
20704
  cat >conftest.$ac_ext <<_ACEOF
 
20705
/* confdefs.h.  */
 
20706
_ACEOF
 
20707
cat confdefs.h >>conftest.$ac_ext
 
20708
cat >>conftest.$ac_ext <<_ACEOF
 
20709
/* end confdefs.h.  */
 
20710
#include <stdlib.h>
 
20711
#include <stdarg.h>
 
20712
#include <string.h>
 
20713
#include <float.h>
 
20714
 
 
20715
int
 
20716
main ()
 
20717
{
 
20718
 
 
20719
  ;
 
20720
  return 0;
 
20721
}
 
20722
_ACEOF
 
20723
rm -f conftest.$ac_objext
 
20724
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20725
  (eval $ac_compile) 2>conftest.er1
 
20726
  ac_status=$?
 
20727
  grep -v '^ *+' conftest.er1 >conftest.err
 
20728
  rm -f conftest.er1
 
20729
  cat conftest.err >&5
 
20730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20731
  (exit $ac_status); } &&
 
20732
         { ac_try='test -z "$ac_c_werror_flag"
 
20733
                         || test ! -s conftest.err'
 
20734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20735
  (eval $ac_try) 2>&5
 
20736
  ac_status=$?
 
20737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20738
  (exit $ac_status); }; } &&
 
20739
         { ac_try='test -s conftest.$ac_objext'
 
20740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20741
  (eval $ac_try) 2>&5
 
20742
  ac_status=$?
 
20743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20744
  (exit $ac_status); }; }; then
 
20745
  ac_cv_header_stdc=yes
 
20746
else
 
20747
  echo "$as_me: failed program was:" >&5
 
20748
sed 's/^/| /' conftest.$ac_ext >&5
 
20749
 
 
20750
ac_cv_header_stdc=no
 
20751
fi
 
20752
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20753
 
 
20754
if test $ac_cv_header_stdc = yes; then
 
20755
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
20756
  cat >conftest.$ac_ext <<_ACEOF
 
20757
/* confdefs.h.  */
 
20758
_ACEOF
 
20759
cat confdefs.h >>conftest.$ac_ext
 
20760
cat >>conftest.$ac_ext <<_ACEOF
 
20761
/* end confdefs.h.  */
 
20762
#include <string.h>
 
20763
 
 
20764
_ACEOF
 
20765
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20766
  $EGREP "memchr" >/dev/null 2>&1; then
 
20767
  :
 
20768
else
 
20769
  ac_cv_header_stdc=no
 
20770
fi
 
20771
rm -f conftest*
 
20772
 
 
20773
fi
 
20774
 
 
20775
if test $ac_cv_header_stdc = yes; then
 
20776
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20777
  cat >conftest.$ac_ext <<_ACEOF
 
20778
/* confdefs.h.  */
 
20779
_ACEOF
 
20780
cat confdefs.h >>conftest.$ac_ext
 
20781
cat >>conftest.$ac_ext <<_ACEOF
 
20782
/* end confdefs.h.  */
 
20783
#include <stdlib.h>
 
20784
 
 
20785
_ACEOF
 
20786
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20787
  $EGREP "free" >/dev/null 2>&1; then
 
20788
  :
 
20789
else
 
20790
  ac_cv_header_stdc=no
 
20791
fi
 
20792
rm -f conftest*
 
20793
 
 
20794
fi
 
20795
 
 
20796
if test $ac_cv_header_stdc = yes; then
 
20797
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20798
  if test "$cross_compiling" = yes; then
 
20799
  :
 
20800
else
 
20801
  cat >conftest.$ac_ext <<_ACEOF
 
20802
/* confdefs.h.  */
 
20803
_ACEOF
 
20804
cat confdefs.h >>conftest.$ac_ext
 
20805
cat >>conftest.$ac_ext <<_ACEOF
 
20806
/* end confdefs.h.  */
 
20807
#include <ctype.h>
 
20808
#if ((' ' & 0x0FF) == 0x020)
 
20809
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20810
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20811
#else
 
20812
# define ISLOWER(c) \
 
20813
                   (('a' <= (c) && (c) <= 'i') \
 
20814
                     || ('j' <= (c) && (c) <= 'r') \
 
20815
                     || ('s' <= (c) && (c) <= 'z'))
 
20816
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20817
#endif
 
20818
 
 
20819
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20820
int
 
20821
main ()
 
20822
{
 
20823
  int i;
 
20824
  for (i = 0; i < 256; i++)
 
20825
    if (XOR (islower (i), ISLOWER (i))
 
20826
        || toupper (i) != TOUPPER (i))
 
20827
      exit(2);
 
20828
  exit (0);
 
20829
}
 
20830
_ACEOF
 
20831
rm -f conftest$ac_exeext
 
20832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20833
  (eval $ac_link) 2>&5
 
20834
  ac_status=$?
 
20835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20836
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20838
  (eval $ac_try) 2>&5
 
20839
  ac_status=$?
 
20840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20841
  (exit $ac_status); }; }; then
 
20842
  :
 
20843
else
 
20844
  echo "$as_me: program exited with status $ac_status" >&5
 
20845
echo "$as_me: failed program was:" >&5
 
20846
sed 's/^/| /' conftest.$ac_ext >&5
 
20847
 
 
20848
( exit $ac_status )
 
20849
ac_cv_header_stdc=no
 
20850
fi
 
20851
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20852
fi
 
20853
fi
 
20854
fi
 
20855
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20856
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
20857
if test $ac_cv_header_stdc = yes; then
 
20858
 
 
20859
cat >>confdefs.h <<\_ACEOF
 
20860
#define STDC_HEADERS 1
 
20861
_ACEOF
 
20862
 
 
20863
fi
 
20864
 
 
20865
 
 
20866
for ac_func in memcpy
 
20867
do
 
20868
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20869
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20870
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20871
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20872
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20873
else
 
20874
  cat >conftest.$ac_ext <<_ACEOF
 
20875
/* confdefs.h.  */
 
20876
_ACEOF
 
20877
cat confdefs.h >>conftest.$ac_ext
 
20878
cat >>conftest.$ac_ext <<_ACEOF
 
20879
/* end confdefs.h.  */
 
20880
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20881
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20882
#define $ac_func innocuous_$ac_func
 
20883
 
 
20884
/* System header to define __stub macros and hopefully few prototypes,
 
20885
    which can conflict with char $ac_func (); below.
 
20886
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20887
    <limits.h> exists even on freestanding compilers.  */
 
20888
 
 
20889
#ifdef __STDC__
 
20890
# include <limits.h>
 
20891
#else
 
20892
# include <assert.h>
 
20893
#endif
 
20894
 
 
20895
#undef $ac_func
 
20896
 
 
20897
/* Override any gcc2 internal prototype to avoid an error.  */
 
20898
#ifdef __cplusplus
 
20899
extern "C"
 
20900
{
 
20901
#endif
 
20902
/* We use char because int might match the return type of a gcc2
 
20903
   builtin and then its argument prototype would still apply.  */
 
20904
char $ac_func ();
 
20905
/* The GNU C library defines this for functions which it implements
 
20906
    to always fail with ENOSYS.  Some functions are actually named
 
20907
    something starting with __ and the normal name is an alias.  */
 
20908
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20909
choke me
 
20910
#else
 
20911
char (*f) () = $ac_func;
 
20912
#endif
 
20913
#ifdef __cplusplus
 
20914
}
 
20915
#endif
 
20916
 
 
20917
int
 
20918
main ()
 
20919
{
 
20920
return f != $ac_func;
 
20921
  ;
 
20922
  return 0;
 
20923
}
 
20924
_ACEOF
 
20925
rm -f conftest.$ac_objext conftest$ac_exeext
 
20926
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20927
  (eval $ac_link) 2>conftest.er1
 
20928
  ac_status=$?
 
20929
  grep -v '^ *+' conftest.er1 >conftest.err
 
20930
  rm -f conftest.er1
 
20931
  cat conftest.err >&5
 
20932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20933
  (exit $ac_status); } &&
 
20934
         { ac_try='test -z "$ac_c_werror_flag"
 
20935
                         || test ! -s conftest.err'
 
20936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20937
  (eval $ac_try) 2>&5
 
20938
  ac_status=$?
 
20939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20940
  (exit $ac_status); }; } &&
 
20941
         { ac_try='test -s conftest$ac_exeext'
 
20942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20943
  (eval $ac_try) 2>&5
 
20944
  ac_status=$?
 
20945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20946
  (exit $ac_status); }; }; then
 
20947
  eval "$as_ac_var=yes"
 
20948
else
 
20949
  echo "$as_me: failed program was:" >&5
 
20950
sed 's/^/| /' conftest.$ac_ext >&5
 
20951
 
 
20952
eval "$as_ac_var=no"
 
20953
fi
 
20954
rm -f conftest.err conftest.$ac_objext \
 
20955
      conftest$ac_exeext conftest.$ac_ext
 
20956
fi
 
20957
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20958
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20959
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20960
  cat >>confdefs.h <<_ACEOF
 
20961
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20962
_ACEOF
 
20963
 
 
20964
fi
 
20965
done
 
20966
 
 
20967
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
20968
# for constant arguments.  Useless!
 
20969
echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
20970
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
20971
if test "${ac_cv_working_alloca_h+set}" = set; then
 
20972
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20973
else
 
20974
  cat >conftest.$ac_ext <<_ACEOF
 
20975
/* confdefs.h.  */
 
20976
_ACEOF
 
20977
cat confdefs.h >>conftest.$ac_ext
 
20978
cat >>conftest.$ac_ext <<_ACEOF
 
20979
/* end confdefs.h.  */
 
20980
#include <alloca.h>
 
20981
int
 
20982
main ()
 
20983
{
 
20984
char *p = (char *) alloca (2 * sizeof (int));
 
20985
  ;
 
20986
  return 0;
 
20987
}
 
20988
_ACEOF
 
20989
rm -f conftest.$ac_objext conftest$ac_exeext
 
20990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20991
  (eval $ac_link) 2>conftest.er1
 
20992
  ac_status=$?
 
20993
  grep -v '^ *+' conftest.er1 >conftest.err
 
20994
  rm -f conftest.er1
 
20995
  cat conftest.err >&5
 
20996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20997
  (exit $ac_status); } &&
 
20998
         { ac_try='test -z "$ac_c_werror_flag"
 
20999
                         || test ! -s conftest.err'
 
21000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21001
  (eval $ac_try) 2>&5
 
21002
  ac_status=$?
 
21003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21004
  (exit $ac_status); }; } &&
 
21005
         { ac_try='test -s conftest$ac_exeext'
 
21006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21007
  (eval $ac_try) 2>&5
 
21008
  ac_status=$?
 
21009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21010
  (exit $ac_status); }; }; then
 
21011
  ac_cv_working_alloca_h=yes
 
21012
else
 
21013
  echo "$as_me: failed program was:" >&5
 
21014
sed 's/^/| /' conftest.$ac_ext >&5
 
21015
 
 
21016
ac_cv_working_alloca_h=no
 
21017
fi
 
21018
rm -f conftest.err conftest.$ac_objext \
 
21019
      conftest$ac_exeext conftest.$ac_ext
 
21020
fi
 
21021
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
21022
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
21023
if test $ac_cv_working_alloca_h = yes; then
 
21024
 
 
21025
cat >>confdefs.h <<\_ACEOF
 
21026
#define HAVE_ALLOCA_H 1
 
21027
_ACEOF
 
21028
 
 
21029
fi
 
21030
 
 
21031
echo "$as_me:$LINENO: checking for alloca" >&5
 
21032
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
21033
if test "${ac_cv_func_alloca_works+set}" = set; then
 
21034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21035
else
 
21036
  cat >conftest.$ac_ext <<_ACEOF
 
21037
/* confdefs.h.  */
 
21038
_ACEOF
 
21039
cat confdefs.h >>conftest.$ac_ext
 
21040
cat >>conftest.$ac_ext <<_ACEOF
 
21041
/* end confdefs.h.  */
 
21042
#ifdef __GNUC__
 
21043
# define alloca __builtin_alloca
 
21044
#else
 
21045
# ifdef _MSC_VER
 
21046
#  include <malloc.h>
 
21047
#  define alloca _alloca
 
21048
# else
 
21049
#  if HAVE_ALLOCA_H
 
21050
#   include <alloca.h>
 
21051
#  else
 
21052
#   ifdef _AIX
 
21053
 #pragma alloca
 
21054
#   else
 
21055
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
21056
char *alloca ();
 
21057
#    endif
 
21058
#   endif
 
21059
#  endif
 
21060
# endif
 
21061
#endif
 
21062
 
 
21063
int
 
21064
main ()
 
21065
{
 
21066
char *p = (char *) alloca (1);
 
21067
  ;
 
21068
  return 0;
 
21069
}
 
21070
_ACEOF
 
21071
rm -f conftest.$ac_objext conftest$ac_exeext
 
21072
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21073
  (eval $ac_link) 2>conftest.er1
 
21074
  ac_status=$?
 
21075
  grep -v '^ *+' conftest.er1 >conftest.err
 
21076
  rm -f conftest.er1
 
21077
  cat conftest.err >&5
 
21078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21079
  (exit $ac_status); } &&
 
21080
         { ac_try='test -z "$ac_c_werror_flag"
 
21081
                         || test ! -s conftest.err'
 
21082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21083
  (eval $ac_try) 2>&5
 
21084
  ac_status=$?
 
21085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21086
  (exit $ac_status); }; } &&
 
21087
         { ac_try='test -s conftest$ac_exeext'
 
21088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21089
  (eval $ac_try) 2>&5
 
21090
  ac_status=$?
 
21091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21092
  (exit $ac_status); }; }; then
 
21093
  ac_cv_func_alloca_works=yes
 
21094
else
 
21095
  echo "$as_me: failed program was:" >&5
 
21096
sed 's/^/| /' conftest.$ac_ext >&5
 
21097
 
 
21098
ac_cv_func_alloca_works=no
 
21099
fi
 
21100
rm -f conftest.err conftest.$ac_objext \
 
21101
      conftest$ac_exeext conftest.$ac_ext
 
21102
fi
 
21103
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
21104
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
21105
 
 
21106
if test $ac_cv_func_alloca_works = yes; then
 
21107
 
 
21108
cat >>confdefs.h <<\_ACEOF
 
21109
#define HAVE_ALLOCA 1
 
21110
_ACEOF
 
21111
 
 
21112
else
 
21113
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
21114
# that cause trouble.  Some versions do not even contain alloca or
 
21115
# contain a buggy version.  If you still want to use their alloca,
 
21116
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
21117
 
 
21118
ALLOCA=alloca.$ac_objext
 
21119
 
 
21120
cat >>confdefs.h <<\_ACEOF
 
21121
#define C_ALLOCA 1
 
21122
_ACEOF
 
21123
 
 
21124
 
 
21125
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
21126
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
21127
if test "${ac_cv_os_cray+set}" = set; then
 
21128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21129
else
 
21130
  cat >conftest.$ac_ext <<_ACEOF
 
21131
/* confdefs.h.  */
 
21132
_ACEOF
 
21133
cat confdefs.h >>conftest.$ac_ext
 
21134
cat >>conftest.$ac_ext <<_ACEOF
 
21135
/* end confdefs.h.  */
 
21136
#if defined(CRAY) && ! defined(CRAY2)
 
21137
webecray
 
21138
#else
 
21139
wenotbecray
 
21140
#endif
 
21141
 
 
21142
_ACEOF
 
21143
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21144
  $EGREP "webecray" >/dev/null 2>&1; then
 
21145
  ac_cv_os_cray=yes
 
21146
else
 
21147
  ac_cv_os_cray=no
 
21148
fi
 
21149
rm -f conftest*
 
21150
 
 
21151
fi
 
21152
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
21153
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
21154
if test $ac_cv_os_cray = yes; then
 
21155
  for ac_func in _getb67 GETB67 getb67; do
 
21156
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21157
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21158
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21159
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21161
else
 
21162
  cat >conftest.$ac_ext <<_ACEOF
 
21163
/* confdefs.h.  */
 
21164
_ACEOF
 
21165
cat confdefs.h >>conftest.$ac_ext
 
21166
cat >>conftest.$ac_ext <<_ACEOF
 
21167
/* end confdefs.h.  */
 
21168
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21169
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21170
#define $ac_func innocuous_$ac_func
 
21171
 
 
21172
/* System header to define __stub macros and hopefully few prototypes,
 
21173
    which can conflict with char $ac_func (); below.
 
21174
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21175
    <limits.h> exists even on freestanding compilers.  */
 
21176
 
 
21177
#ifdef __STDC__
 
21178
# include <limits.h>
 
21179
#else
 
21180
# include <assert.h>
 
21181
#endif
 
21182
 
 
21183
#undef $ac_func
 
21184
 
 
21185
/* Override any gcc2 internal prototype to avoid an error.  */
 
21186
#ifdef __cplusplus
 
21187
extern "C"
 
21188
{
 
21189
#endif
 
21190
/* We use char because int might match the return type of a gcc2
 
21191
   builtin and then its argument prototype would still apply.  */
 
21192
char $ac_func ();
 
21193
/* The GNU C library defines this for functions which it implements
 
21194
    to always fail with ENOSYS.  Some functions are actually named
 
21195
    something starting with __ and the normal name is an alias.  */
 
21196
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21197
choke me
 
21198
#else
 
21199
char (*f) () = $ac_func;
 
21200
#endif
 
21201
#ifdef __cplusplus
 
21202
}
 
21203
#endif
 
21204
 
 
21205
int
 
21206
main ()
 
21207
{
 
21208
return f != $ac_func;
 
21209
  ;
 
21210
  return 0;
 
21211
}
 
21212
_ACEOF
 
21213
rm -f conftest.$ac_objext conftest$ac_exeext
 
21214
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21215
  (eval $ac_link) 2>conftest.er1
 
21216
  ac_status=$?
 
21217
  grep -v '^ *+' conftest.er1 >conftest.err
 
21218
  rm -f conftest.er1
 
21219
  cat conftest.err >&5
 
21220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21221
  (exit $ac_status); } &&
 
21222
         { ac_try='test -z "$ac_c_werror_flag"
 
21223
                         || test ! -s conftest.err'
 
21224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21225
  (eval $ac_try) 2>&5
 
21226
  ac_status=$?
 
21227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21228
  (exit $ac_status); }; } &&
 
21229
         { ac_try='test -s conftest$ac_exeext'
 
21230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21231
  (eval $ac_try) 2>&5
 
21232
  ac_status=$?
 
21233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21234
  (exit $ac_status); }; }; then
 
21235
  eval "$as_ac_var=yes"
 
21236
else
 
21237
  echo "$as_me: failed program was:" >&5
 
21238
sed 's/^/| /' conftest.$ac_ext >&5
 
21239
 
 
21240
eval "$as_ac_var=no"
 
21241
fi
 
21242
rm -f conftest.err conftest.$ac_objext \
 
21243
      conftest$ac_exeext conftest.$ac_ext
 
21244
fi
 
21245
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21246
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21247
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21248
 
 
21249
cat >>confdefs.h <<_ACEOF
 
21250
#define CRAY_STACKSEG_END $ac_func
 
21251
_ACEOF
 
21252
 
 
21253
    break
 
21254
fi
 
21255
 
 
21256
  done
 
21257
fi
 
21258
 
 
21259
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
21260
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
21261
if test "${ac_cv_c_stack_direction+set}" = set; then
 
21262
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21263
else
 
21264
  if test "$cross_compiling" = yes; then
 
21265
  ac_cv_c_stack_direction=0
 
21266
else
 
21267
  cat >conftest.$ac_ext <<_ACEOF
 
21268
/* confdefs.h.  */
 
21269
_ACEOF
 
21270
cat confdefs.h >>conftest.$ac_ext
 
21271
cat >>conftest.$ac_ext <<_ACEOF
 
21272
/* end confdefs.h.  */
 
21273
int
 
21274
find_stack_direction ()
 
21275
{
 
21276
  static char *addr = 0;
 
21277
  auto char dummy;
 
21278
  if (addr == 0)
 
21279
    {
 
21280
      addr = &dummy;
 
21281
      return find_stack_direction ();
 
21282
    }
 
21283
  else
 
21284
    return (&dummy > addr) ? 1 : -1;
 
21285
}
 
21286
 
 
21287
int
 
21288
main ()
 
21289
{
 
21290
  exit (find_stack_direction () < 0);
 
21291
}
 
21292
_ACEOF
 
21293
rm -f conftest$ac_exeext
 
21294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21295
  (eval $ac_link) 2>&5
 
21296
  ac_status=$?
 
21297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21298
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21300
  (eval $ac_try) 2>&5
 
21301
  ac_status=$?
 
21302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21303
  (exit $ac_status); }; }; then
 
21304
  ac_cv_c_stack_direction=1
 
21305
else
 
21306
  echo "$as_me: program exited with status $ac_status" >&5
 
21307
echo "$as_me: failed program was:" >&5
 
21308
sed 's/^/| /' conftest.$ac_ext >&5
 
21309
 
 
21310
( exit $ac_status )
 
21311
ac_cv_c_stack_direction=-1
 
21312
fi
 
21313
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21314
fi
 
21315
fi
 
21316
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
21317
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
21318
 
 
21319
cat >>confdefs.h <<_ACEOF
 
21320
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
21321
_ACEOF
 
21322
 
 
21323
 
 
21324
fi
 
21325
 
 
21326
 
 
21327
echo "$as_me:$LINENO: checking for double" >&5
 
21328
echo $ECHO_N "checking for double... $ECHO_C" >&6
 
21329
if test "${ac_cv_type_double+set}" = set; then
 
21330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21331
else
 
21332
  cat >conftest.$ac_ext <<_ACEOF
 
21333
/* confdefs.h.  */
 
21334
_ACEOF
 
21335
cat confdefs.h >>conftest.$ac_ext
 
21336
cat >>conftest.$ac_ext <<_ACEOF
 
21337
/* end confdefs.h.  */
 
21338
$ac_includes_default
 
21339
int
 
21340
main ()
 
21341
{
 
21342
if ((double *) 0)
 
21343
  return 0;
 
21344
if (sizeof (double))
 
21345
  return 0;
 
21346
  ;
 
21347
  return 0;
 
21348
}
 
21349
_ACEOF
 
21350
rm -f conftest.$ac_objext
 
21351
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21352
  (eval $ac_compile) 2>conftest.er1
 
21353
  ac_status=$?
 
21354
  grep -v '^ *+' conftest.er1 >conftest.err
 
21355
  rm -f conftest.er1
 
21356
  cat conftest.err >&5
 
21357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21358
  (exit $ac_status); } &&
 
21359
         { ac_try='test -z "$ac_c_werror_flag"
 
21360
                         || test ! -s conftest.err'
 
21361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21362
  (eval $ac_try) 2>&5
 
21363
  ac_status=$?
 
21364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21365
  (exit $ac_status); }; } &&
 
21366
         { ac_try='test -s conftest.$ac_objext'
 
21367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21368
  (eval $ac_try) 2>&5
 
21369
  ac_status=$?
 
21370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21371
  (exit $ac_status); }; }; then
 
21372
  ac_cv_type_double=yes
 
21373
else
 
21374
  echo "$as_me: failed program was:" >&5
 
21375
sed 's/^/| /' conftest.$ac_ext >&5
 
21376
 
 
21377
ac_cv_type_double=no
 
21378
fi
 
21379
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21380
fi
 
21381
echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
 
21382
echo "${ECHO_T}$ac_cv_type_double" >&6
 
21383
 
 
21384
echo "$as_me:$LINENO: checking size of double" >&5
 
21385
echo $ECHO_N "checking size of double... $ECHO_C" >&6
 
21386
if test "${ac_cv_sizeof_double+set}" = set; then
 
21387
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21388
else
 
21389
  if test "$ac_cv_type_double" = yes; then
 
21390
  # The cast to unsigned long works around a bug in the HP C Compiler
 
21391
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
21392
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
21393
  # This bug is HP SR number 8606223364.
 
21394
  if test "$cross_compiling" = yes; then
 
21395
  # Depending upon the size, compute the lo and hi bounds.
 
21396
cat >conftest.$ac_ext <<_ACEOF
 
21397
/* confdefs.h.  */
 
21398
_ACEOF
 
21399
cat confdefs.h >>conftest.$ac_ext
 
21400
cat >>conftest.$ac_ext <<_ACEOF
 
21401
/* end confdefs.h.  */
 
21402
$ac_includes_default
 
21403
int
 
21404
main ()
 
21405
{
 
21406
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
 
21407
test_array [0] = 0
 
21408
 
 
21409
  ;
 
21410
  return 0;
 
21411
}
 
21412
_ACEOF
 
21413
rm -f conftest.$ac_objext
 
21414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21415
  (eval $ac_compile) 2>conftest.er1
 
21416
  ac_status=$?
 
21417
  grep -v '^ *+' conftest.er1 >conftest.err
 
21418
  rm -f conftest.er1
 
21419
  cat conftest.err >&5
 
21420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21421
  (exit $ac_status); } &&
 
21422
         { ac_try='test -z "$ac_c_werror_flag"
 
21423
                         || test ! -s conftest.err'
 
21424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21425
  (eval $ac_try) 2>&5
 
21426
  ac_status=$?
 
21427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21428
  (exit $ac_status); }; } &&
 
21429
         { ac_try='test -s conftest.$ac_objext'
 
21430
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21431
  (eval $ac_try) 2>&5
 
21432
  ac_status=$?
 
21433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21434
  (exit $ac_status); }; }; then
 
21435
  ac_lo=0 ac_mid=0
 
21436
  while :; do
 
21437
    cat >conftest.$ac_ext <<_ACEOF
 
21438
/* confdefs.h.  */
 
21439
_ACEOF
 
21440
cat confdefs.h >>conftest.$ac_ext
 
21441
cat >>conftest.$ac_ext <<_ACEOF
 
21442
/* end confdefs.h.  */
 
21443
$ac_includes_default
 
21444
int
 
21445
main ()
 
21446
{
 
21447
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
 
21448
test_array [0] = 0
 
21449
 
 
21450
  ;
 
21451
  return 0;
 
21452
}
 
21453
_ACEOF
 
21454
rm -f conftest.$ac_objext
 
21455
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21456
  (eval $ac_compile) 2>conftest.er1
 
21457
  ac_status=$?
 
21458
  grep -v '^ *+' conftest.er1 >conftest.err
 
21459
  rm -f conftest.er1
 
21460
  cat conftest.err >&5
 
21461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21462
  (exit $ac_status); } &&
 
21463
         { ac_try='test -z "$ac_c_werror_flag"
 
21464
                         || test ! -s conftest.err'
 
21465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21466
  (eval $ac_try) 2>&5
 
21467
  ac_status=$?
 
21468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21469
  (exit $ac_status); }; } &&
 
21470
         { ac_try='test -s conftest.$ac_objext'
 
21471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21472
  (eval $ac_try) 2>&5
 
21473
  ac_status=$?
 
21474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21475
  (exit $ac_status); }; }; then
 
21476
  ac_hi=$ac_mid; break
 
21477
else
 
21478
  echo "$as_me: failed program was:" >&5
 
21479
sed 's/^/| /' conftest.$ac_ext >&5
 
21480
 
 
21481
ac_lo=`expr $ac_mid + 1`
 
21482
                    if test $ac_lo -le $ac_mid; then
 
21483
                      ac_lo= ac_hi=
 
21484
                      break
 
21485
                    fi
 
21486
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
21487
fi
 
21488
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21489
  done
 
21490
else
 
21491
  echo "$as_me: failed program was:" >&5
 
21492
sed 's/^/| /' conftest.$ac_ext >&5
 
21493
 
 
21494
cat >conftest.$ac_ext <<_ACEOF
 
21495
/* confdefs.h.  */
 
21496
_ACEOF
 
21497
cat confdefs.h >>conftest.$ac_ext
 
21498
cat >>conftest.$ac_ext <<_ACEOF
 
21499
/* end confdefs.h.  */
 
21500
$ac_includes_default
 
21501
int
 
21502
main ()
 
21503
{
 
21504
static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
 
21505
test_array [0] = 0
 
21506
 
 
21507
  ;
 
21508
  return 0;
 
21509
}
 
21510
_ACEOF
 
21511
rm -f conftest.$ac_objext
 
21512
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21513
  (eval $ac_compile) 2>conftest.er1
 
21514
  ac_status=$?
 
21515
  grep -v '^ *+' conftest.er1 >conftest.err
 
21516
  rm -f conftest.er1
 
21517
  cat conftest.err >&5
 
21518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21519
  (exit $ac_status); } &&
 
21520
         { ac_try='test -z "$ac_c_werror_flag"
 
21521
                         || test ! -s conftest.err'
 
21522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21523
  (eval $ac_try) 2>&5
 
21524
  ac_status=$?
 
21525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21526
  (exit $ac_status); }; } &&
 
21527
         { ac_try='test -s conftest.$ac_objext'
 
21528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21529
  (eval $ac_try) 2>&5
 
21530
  ac_status=$?
 
21531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21532
  (exit $ac_status); }; }; then
 
21533
  ac_hi=-1 ac_mid=-1
 
21534
  while :; do
 
21535
    cat >conftest.$ac_ext <<_ACEOF
 
21536
/* confdefs.h.  */
 
21537
_ACEOF
 
21538
cat confdefs.h >>conftest.$ac_ext
 
21539
cat >>conftest.$ac_ext <<_ACEOF
 
21540
/* end confdefs.h.  */
 
21541
$ac_includes_default
 
21542
int
 
21543
main ()
 
21544
{
 
21545
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
 
21546
test_array [0] = 0
 
21547
 
 
21548
  ;
 
21549
  return 0;
 
21550
}
 
21551
_ACEOF
 
21552
rm -f conftest.$ac_objext
 
21553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21554
  (eval $ac_compile) 2>conftest.er1
 
21555
  ac_status=$?
 
21556
  grep -v '^ *+' conftest.er1 >conftest.err
 
21557
  rm -f conftest.er1
 
21558
  cat conftest.err >&5
 
21559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21560
  (exit $ac_status); } &&
 
21561
         { ac_try='test -z "$ac_c_werror_flag"
 
21562
                         || test ! -s conftest.err'
 
21563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21564
  (eval $ac_try) 2>&5
 
21565
  ac_status=$?
 
21566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21567
  (exit $ac_status); }; } &&
 
21568
         { ac_try='test -s conftest.$ac_objext'
 
21569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21570
  (eval $ac_try) 2>&5
 
21571
  ac_status=$?
 
21572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21573
  (exit $ac_status); }; }; then
 
21574
  ac_lo=$ac_mid; break
 
21575
else
 
21576
  echo "$as_me: failed program was:" >&5
 
21577
sed 's/^/| /' conftest.$ac_ext >&5
 
21578
 
 
21579
ac_hi=`expr '(' $ac_mid ')' - 1`
 
21580
                       if test $ac_mid -le $ac_hi; then
 
21581
                         ac_lo= ac_hi=
 
21582
                         break
 
21583
                       fi
 
21584
                       ac_mid=`expr 2 '*' $ac_mid`
 
21585
fi
 
21586
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21587
  done
 
21588
else
 
21589
  echo "$as_me: failed program was:" >&5
 
21590
sed 's/^/| /' conftest.$ac_ext >&5
 
21591
 
 
21592
ac_lo= ac_hi=
 
21593
fi
 
21594
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21595
fi
 
21596
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21597
# Binary search between lo and hi bounds.
 
21598
while test "x$ac_lo" != "x$ac_hi"; do
 
21599
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
21600
  cat >conftest.$ac_ext <<_ACEOF
 
21601
/* confdefs.h.  */
 
21602
_ACEOF
 
21603
cat confdefs.h >>conftest.$ac_ext
 
21604
cat >>conftest.$ac_ext <<_ACEOF
 
21605
/* end confdefs.h.  */
 
21606
$ac_includes_default
 
21607
int
 
21608
main ()
 
21609
{
 
21610
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
 
21611
test_array [0] = 0
 
21612
 
 
21613
  ;
 
21614
  return 0;
 
21615
}
 
21616
_ACEOF
 
21617
rm -f conftest.$ac_objext
 
21618
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21619
  (eval $ac_compile) 2>conftest.er1
 
21620
  ac_status=$?
 
21621
  grep -v '^ *+' conftest.er1 >conftest.err
 
21622
  rm -f conftest.er1
 
21623
  cat conftest.err >&5
 
21624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21625
  (exit $ac_status); } &&
 
21626
         { ac_try='test -z "$ac_c_werror_flag"
 
21627
                         || test ! -s conftest.err'
 
21628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21629
  (eval $ac_try) 2>&5
 
21630
  ac_status=$?
 
21631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21632
  (exit $ac_status); }; } &&
 
21633
         { ac_try='test -s conftest.$ac_objext'
 
21634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21635
  (eval $ac_try) 2>&5
 
21636
  ac_status=$?
 
21637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21638
  (exit $ac_status); }; }; then
 
21639
  ac_hi=$ac_mid
 
21640
else
 
21641
  echo "$as_me: failed program was:" >&5
 
21642
sed 's/^/| /' conftest.$ac_ext >&5
 
21643
 
 
21644
ac_lo=`expr '(' $ac_mid ')' + 1`
 
21645
fi
 
21646
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21647
done
 
21648
case $ac_lo in
 
21649
?*) ac_cv_sizeof_double=$ac_lo;;
 
21650
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
 
21651
See \`config.log' for more details." >&5
 
21652
echo "$as_me: error: cannot compute sizeof (double), 77
 
21653
See \`config.log' for more details." >&2;}
 
21654
   { (exit 1); exit 1; }; } ;;
 
21655
esac
 
21656
else
 
21657
  if test "$cross_compiling" = yes; then
 
21658
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
21659
See \`config.log' for more details." >&5
 
21660
echo "$as_me: error: cannot run test program while cross compiling
 
21661
See \`config.log' for more details." >&2;}
 
21662
   { (exit 1); exit 1; }; }
 
21663
else
 
21664
  cat >conftest.$ac_ext <<_ACEOF
 
21665
/* confdefs.h.  */
 
21666
_ACEOF
 
21667
cat confdefs.h >>conftest.$ac_ext
 
21668
cat >>conftest.$ac_ext <<_ACEOF
 
21669
/* end confdefs.h.  */
 
21670
$ac_includes_default
 
21671
long longval () { return (long) (sizeof (double)); }
 
21672
unsigned long ulongval () { return (long) (sizeof (double)); }
 
21673
#include <stdio.h>
 
21674
#include <stdlib.h>
 
21675
int
 
21676
main ()
 
21677
{
 
21678
 
 
21679
  FILE *f = fopen ("conftest.val", "w");
 
21680
  if (! f)
 
21681
    exit (1);
 
21682
  if (((long) (sizeof (double))) < 0)
 
21683
    {
 
21684
      long i = longval ();
 
21685
      if (i != ((long) (sizeof (double))))
 
21686
        exit (1);
 
21687
      fprintf (f, "%ld\n", i);
 
21688
    }
 
21689
  else
 
21690
    {
 
21691
      unsigned long i = ulongval ();
 
21692
      if (i != ((long) (sizeof (double))))
 
21693
        exit (1);
 
21694
      fprintf (f, "%lu\n", i);
 
21695
    }
 
21696
  exit (ferror (f) || fclose (f) != 0);
 
21697
 
 
21698
  ;
 
21699
  return 0;
 
21700
}
 
21701
_ACEOF
 
21702
rm -f conftest$ac_exeext
 
21703
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21704
  (eval $ac_link) 2>&5
 
21705
  ac_status=$?
 
21706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21707
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21708
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21709
  (eval $ac_try) 2>&5
 
21710
  ac_status=$?
 
21711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21712
  (exit $ac_status); }; }; then
 
21713
  ac_cv_sizeof_double=`cat conftest.val`
 
21714
else
 
21715
  echo "$as_me: program exited with status $ac_status" >&5
 
21716
echo "$as_me: failed program was:" >&5
 
21717
sed 's/^/| /' conftest.$ac_ext >&5
 
21718
 
 
21719
( exit $ac_status )
 
21720
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
 
21721
See \`config.log' for more details." >&5
 
21722
echo "$as_me: error: cannot compute sizeof (double), 77
 
21723
See \`config.log' for more details." >&2;}
 
21724
   { (exit 1); exit 1; }; }
 
21725
fi
 
21726
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21727
fi
 
21728
fi
 
21729
rm -f conftest.val
 
21730
else
 
21731
  ac_cv_sizeof_double=0
 
21732
fi
 
21733
fi
 
21734
echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
 
21735
echo "${ECHO_T}$ac_cv_sizeof_double" >&6
 
21736
cat >>confdefs.h <<_ACEOF
 
21737
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
 
21738
_ACEOF
 
21739
 
 
21740
 
 
21741
echo "$as_me:$LINENO: checking for long double" >&5
 
21742
echo $ECHO_N "checking for long double... $ECHO_C" >&6
 
21743
if test "${ac_cv_type_long_double+set}" = set; then
 
21744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21745
else
 
21746
  cat >conftest.$ac_ext <<_ACEOF
 
21747
/* confdefs.h.  */
 
21748
_ACEOF
 
21749
cat confdefs.h >>conftest.$ac_ext
 
21750
cat >>conftest.$ac_ext <<_ACEOF
 
21751
/* end confdefs.h.  */
 
21752
$ac_includes_default
 
21753
int
 
21754
main ()
 
21755
{
 
21756
if ((long double *) 0)
 
21757
  return 0;
 
21758
if (sizeof (long double))
 
21759
  return 0;
 
21760
  ;
 
21761
  return 0;
 
21762
}
 
21763
_ACEOF
 
21764
rm -f conftest.$ac_objext
 
21765
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21766
  (eval $ac_compile) 2>conftest.er1
 
21767
  ac_status=$?
 
21768
  grep -v '^ *+' conftest.er1 >conftest.err
 
21769
  rm -f conftest.er1
 
21770
  cat conftest.err >&5
 
21771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21772
  (exit $ac_status); } &&
 
21773
         { ac_try='test -z "$ac_c_werror_flag"
 
21774
                         || test ! -s conftest.err'
 
21775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21776
  (eval $ac_try) 2>&5
 
21777
  ac_status=$?
 
21778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21779
  (exit $ac_status); }; } &&
 
21780
         { ac_try='test -s conftest.$ac_objext'
 
21781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21782
  (eval $ac_try) 2>&5
 
21783
  ac_status=$?
 
21784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21785
  (exit $ac_status); }; }; then
 
21786
  ac_cv_type_long_double=yes
 
21787
else
 
21788
  echo "$as_me: failed program was:" >&5
 
21789
sed 's/^/| /' conftest.$ac_ext >&5
 
21790
 
 
21791
ac_cv_type_long_double=no
 
21792
fi
 
21793
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21794
fi
 
21795
echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
 
21796
echo "${ECHO_T}$ac_cv_type_long_double" >&6
 
21797
 
 
21798
echo "$as_me:$LINENO: checking size of long double" >&5
 
21799
echo $ECHO_N "checking size of long double... $ECHO_C" >&6
 
21800
if test "${ac_cv_sizeof_long_double+set}" = set; then
 
21801
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21802
else
 
21803
  if test "$ac_cv_type_long_double" = yes; then
 
21804
  # The cast to unsigned long works around a bug in the HP C Compiler
 
21805
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
21806
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
21807
  # This bug is HP SR number 8606223364.
 
21808
  if test "$cross_compiling" = yes; then
 
21809
  # Depending upon the size, compute the lo and hi bounds.
 
21810
cat >conftest.$ac_ext <<_ACEOF
 
21811
/* confdefs.h.  */
 
21812
_ACEOF
 
21813
cat confdefs.h >>conftest.$ac_ext
 
21814
cat >>conftest.$ac_ext <<_ACEOF
 
21815
/* end confdefs.h.  */
 
21816
$ac_includes_default
 
21817
int
 
21818
main ()
 
21819
{
 
21820
static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
 
21821
test_array [0] = 0
 
21822
 
 
21823
  ;
 
21824
  return 0;
 
21825
}
 
21826
_ACEOF
 
21827
rm -f conftest.$ac_objext
 
21828
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21829
  (eval $ac_compile) 2>conftest.er1
 
21830
  ac_status=$?
 
21831
  grep -v '^ *+' conftest.er1 >conftest.err
 
21832
  rm -f conftest.er1
 
21833
  cat conftest.err >&5
 
21834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21835
  (exit $ac_status); } &&
 
21836
         { ac_try='test -z "$ac_c_werror_flag"
 
21837
                         || test ! -s conftest.err'
 
21838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21839
  (eval $ac_try) 2>&5
 
21840
  ac_status=$?
 
21841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21842
  (exit $ac_status); }; } &&
 
21843
         { ac_try='test -s conftest.$ac_objext'
 
21844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21845
  (eval $ac_try) 2>&5
 
21846
  ac_status=$?
 
21847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21848
  (exit $ac_status); }; }; then
 
21849
  ac_lo=0 ac_mid=0
 
21850
  while :; do
 
21851
    cat >conftest.$ac_ext <<_ACEOF
 
21852
/* confdefs.h.  */
 
21853
_ACEOF
 
21854
cat confdefs.h >>conftest.$ac_ext
 
21855
cat >>conftest.$ac_ext <<_ACEOF
 
21856
/* end confdefs.h.  */
 
21857
$ac_includes_default
 
21858
int
 
21859
main ()
 
21860
{
 
21861
static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
 
21862
test_array [0] = 0
 
21863
 
 
21864
  ;
 
21865
  return 0;
 
21866
}
 
21867
_ACEOF
 
21868
rm -f conftest.$ac_objext
 
21869
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21870
  (eval $ac_compile) 2>conftest.er1
 
21871
  ac_status=$?
 
21872
  grep -v '^ *+' conftest.er1 >conftest.err
 
21873
  rm -f conftest.er1
 
21874
  cat conftest.err >&5
 
21875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21876
  (exit $ac_status); } &&
 
21877
         { ac_try='test -z "$ac_c_werror_flag"
 
21878
                         || test ! -s conftest.err'
 
21879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21880
  (eval $ac_try) 2>&5
 
21881
  ac_status=$?
 
21882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21883
  (exit $ac_status); }; } &&
 
21884
         { ac_try='test -s conftest.$ac_objext'
 
21885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21886
  (eval $ac_try) 2>&5
 
21887
  ac_status=$?
 
21888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21889
  (exit $ac_status); }; }; then
 
21890
  ac_hi=$ac_mid; break
 
21891
else
 
21892
  echo "$as_me: failed program was:" >&5
 
21893
sed 's/^/| /' conftest.$ac_ext >&5
 
21894
 
 
21895
ac_lo=`expr $ac_mid + 1`
 
21896
                    if test $ac_lo -le $ac_mid; then
 
21897
                      ac_lo= ac_hi=
 
21898
                      break
 
21899
                    fi
 
21900
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
21901
fi
 
21902
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21903
  done
 
21904
else
 
21905
  echo "$as_me: failed program was:" >&5
 
21906
sed 's/^/| /' conftest.$ac_ext >&5
 
21907
 
 
21908
cat >conftest.$ac_ext <<_ACEOF
 
21909
/* confdefs.h.  */
 
21910
_ACEOF
 
21911
cat confdefs.h >>conftest.$ac_ext
 
21912
cat >>conftest.$ac_ext <<_ACEOF
 
21913
/* end confdefs.h.  */
 
21914
$ac_includes_default
 
21915
int
 
21916
main ()
 
21917
{
 
21918
static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
 
21919
test_array [0] = 0
 
21920
 
 
21921
  ;
 
21922
  return 0;
 
21923
}
 
21924
_ACEOF
 
21925
rm -f conftest.$ac_objext
 
21926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21927
  (eval $ac_compile) 2>conftest.er1
 
21928
  ac_status=$?
 
21929
  grep -v '^ *+' conftest.er1 >conftest.err
 
21930
  rm -f conftest.er1
 
21931
  cat conftest.err >&5
 
21932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21933
  (exit $ac_status); } &&
 
21934
         { ac_try='test -z "$ac_c_werror_flag"
 
21935
                         || test ! -s conftest.err'
 
21936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21937
  (eval $ac_try) 2>&5
 
21938
  ac_status=$?
 
21939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21940
  (exit $ac_status); }; } &&
 
21941
         { ac_try='test -s conftest.$ac_objext'
 
21942
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21943
  (eval $ac_try) 2>&5
 
21944
  ac_status=$?
 
21945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21946
  (exit $ac_status); }; }; then
 
21947
  ac_hi=-1 ac_mid=-1
 
21948
  while :; do
 
21949
    cat >conftest.$ac_ext <<_ACEOF
 
21950
/* confdefs.h.  */
 
21951
_ACEOF
 
21952
cat confdefs.h >>conftest.$ac_ext
 
21953
cat >>conftest.$ac_ext <<_ACEOF
 
21954
/* end confdefs.h.  */
 
21955
$ac_includes_default
 
21956
int
 
21957
main ()
 
21958
{
 
21959
static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
 
21960
test_array [0] = 0
 
21961
 
 
21962
  ;
 
21963
  return 0;
 
21964
}
 
21965
_ACEOF
 
21966
rm -f conftest.$ac_objext
 
21967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21968
  (eval $ac_compile) 2>conftest.er1
 
21969
  ac_status=$?
 
21970
  grep -v '^ *+' conftest.er1 >conftest.err
 
21971
  rm -f conftest.er1
 
21972
  cat conftest.err >&5
 
21973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21974
  (exit $ac_status); } &&
 
21975
         { ac_try='test -z "$ac_c_werror_flag"
 
21976
                         || test ! -s conftest.err'
 
21977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21978
  (eval $ac_try) 2>&5
 
21979
  ac_status=$?
 
21980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21981
  (exit $ac_status); }; } &&
 
21982
         { ac_try='test -s conftest.$ac_objext'
 
21983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21984
  (eval $ac_try) 2>&5
 
21985
  ac_status=$?
 
21986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21987
  (exit $ac_status); }; }; then
 
21988
  ac_lo=$ac_mid; break
 
21989
else
 
21990
  echo "$as_me: failed program was:" >&5
 
21991
sed 's/^/| /' conftest.$ac_ext >&5
 
21992
 
 
21993
ac_hi=`expr '(' $ac_mid ')' - 1`
 
21994
                       if test $ac_mid -le $ac_hi; then
 
21995
                         ac_lo= ac_hi=
 
21996
                         break
 
21997
                       fi
 
21998
                       ac_mid=`expr 2 '*' $ac_mid`
 
21999
fi
 
22000
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22001
  done
 
22002
else
 
22003
  echo "$as_me: failed program was:" >&5
 
22004
sed 's/^/| /' conftest.$ac_ext >&5
 
22005
 
 
22006
ac_lo= ac_hi=
 
22007
fi
 
22008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22009
fi
 
22010
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22011
# Binary search between lo and hi bounds.
 
22012
while test "x$ac_lo" != "x$ac_hi"; do
 
22013
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
22014
  cat >conftest.$ac_ext <<_ACEOF
 
22015
/* confdefs.h.  */
 
22016
_ACEOF
 
22017
cat confdefs.h >>conftest.$ac_ext
 
22018
cat >>conftest.$ac_ext <<_ACEOF
 
22019
/* end confdefs.h.  */
 
22020
$ac_includes_default
 
22021
int
 
22022
main ()
 
22023
{
 
22024
static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
 
22025
test_array [0] = 0
 
22026
 
 
22027
  ;
 
22028
  return 0;
 
22029
}
 
22030
_ACEOF
 
22031
rm -f conftest.$ac_objext
 
22032
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22033
  (eval $ac_compile) 2>conftest.er1
 
22034
  ac_status=$?
 
22035
  grep -v '^ *+' conftest.er1 >conftest.err
 
22036
  rm -f conftest.er1
 
22037
  cat conftest.err >&5
 
22038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22039
  (exit $ac_status); } &&
 
22040
         { ac_try='test -z "$ac_c_werror_flag"
 
22041
                         || test ! -s conftest.err'
 
22042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22043
  (eval $ac_try) 2>&5
 
22044
  ac_status=$?
 
22045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22046
  (exit $ac_status); }; } &&
 
22047
         { ac_try='test -s conftest.$ac_objext'
 
22048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22049
  (eval $ac_try) 2>&5
 
22050
  ac_status=$?
 
22051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22052
  (exit $ac_status); }; }; then
 
22053
  ac_hi=$ac_mid
 
22054
else
 
22055
  echo "$as_me: failed program was:" >&5
 
22056
sed 's/^/| /' conftest.$ac_ext >&5
 
22057
 
 
22058
ac_lo=`expr '(' $ac_mid ')' + 1`
 
22059
fi
 
22060
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22061
done
 
22062
case $ac_lo in
 
22063
?*) ac_cv_sizeof_long_double=$ac_lo;;
 
22064
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
 
22065
See \`config.log' for more details." >&5
 
22066
echo "$as_me: error: cannot compute sizeof (long double), 77
 
22067
See \`config.log' for more details." >&2;}
 
22068
   { (exit 1); exit 1; }; } ;;
 
22069
esac
 
22070
else
 
22071
  if test "$cross_compiling" = yes; then
 
22072
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
22073
See \`config.log' for more details." >&5
 
22074
echo "$as_me: error: cannot run test program while cross compiling
 
22075
See \`config.log' for more details." >&2;}
 
22076
   { (exit 1); exit 1; }; }
 
22077
else
 
22078
  cat >conftest.$ac_ext <<_ACEOF
 
22079
/* confdefs.h.  */
 
22080
_ACEOF
 
22081
cat confdefs.h >>conftest.$ac_ext
 
22082
cat >>conftest.$ac_ext <<_ACEOF
 
22083
/* end confdefs.h.  */
 
22084
$ac_includes_default
 
22085
long longval () { return (long) (sizeof (long double)); }
 
22086
unsigned long ulongval () { return (long) (sizeof (long double)); }
 
22087
#include <stdio.h>
 
22088
#include <stdlib.h>
 
22089
int
 
22090
main ()
 
22091
{
 
22092
 
 
22093
  FILE *f = fopen ("conftest.val", "w");
 
22094
  if (! f)
 
22095
    exit (1);
 
22096
  if (((long) (sizeof (long double))) < 0)
 
22097
    {
 
22098
      long i = longval ();
 
22099
      if (i != ((long) (sizeof (long double))))
 
22100
        exit (1);
 
22101
      fprintf (f, "%ld\n", i);
 
22102
    }
 
22103
  else
 
22104
    {
 
22105
      unsigned long i = ulongval ();
 
22106
      if (i != ((long) (sizeof (long double))))
 
22107
        exit (1);
 
22108
      fprintf (f, "%lu\n", i);
 
22109
    }
 
22110
  exit (ferror (f) || fclose (f) != 0);
 
22111
 
 
22112
  ;
 
22113
  return 0;
 
22114
}
 
22115
_ACEOF
 
22116
rm -f conftest$ac_exeext
 
22117
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22118
  (eval $ac_link) 2>&5
 
22119
  ac_status=$?
 
22120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22121
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22123
  (eval $ac_try) 2>&5
 
22124
  ac_status=$?
 
22125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22126
  (exit $ac_status); }; }; then
 
22127
  ac_cv_sizeof_long_double=`cat conftest.val`
 
22128
else
 
22129
  echo "$as_me: program exited with status $ac_status" >&5
 
22130
echo "$as_me: failed program was:" >&5
 
22131
sed 's/^/| /' conftest.$ac_ext >&5
 
22132
 
 
22133
( exit $ac_status )
 
22134
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
 
22135
See \`config.log' for more details." >&5
 
22136
echo "$as_me: error: cannot compute sizeof (long double), 77
 
22137
See \`config.log' for more details." >&2;}
 
22138
   { (exit 1); exit 1; }; }
 
22139
fi
 
22140
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22141
fi
 
22142
fi
 
22143
rm -f conftest.val
 
22144
else
 
22145
  ac_cv_sizeof_long_double=0
 
22146
fi
 
22147
fi
 
22148
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
 
22149
echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
 
22150
cat >>confdefs.h <<_ACEOF
 
22151
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
 
22152
_ACEOF
 
22153
 
 
22154
 
 
22155
 
 
22156
# Also AC_SUBST this variable for ffi.h.
 
22157
HAVE_LONG_DOUBLE=0
 
22158
if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
 
22159
  if test $ac_cv_sizeof_long_double != 0; then
 
22160
    HAVE_LONG_DOUBLE=1
 
22161
 
 
22162
cat >>confdefs.h <<\_ACEOF
 
22163
#define HAVE_LONG_DOUBLE 1
 
22164
_ACEOF
 
22165
 
 
22166
  fi
 
22167
fi
 
22168
 
 
22169
 
 
22170
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
22171
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
22172
if test "${ac_cv_c_bigendian+set}" = set; then
 
22173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22174
else
 
22175
  # See if sys/param.h defines the BYTE_ORDER macro.
 
22176
cat >conftest.$ac_ext <<_ACEOF
 
22177
/* confdefs.h.  */
 
22178
_ACEOF
 
22179
cat confdefs.h >>conftest.$ac_ext
 
22180
cat >>conftest.$ac_ext <<_ACEOF
 
22181
/* end confdefs.h.  */
 
22182
#include <sys/types.h>
 
22183
#include <sys/param.h>
 
22184
 
 
22185
int
 
22186
main ()
 
22187
{
 
22188
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
22189
 bogus endian macros
 
22190
#endif
 
22191
 
 
22192
  ;
 
22193
  return 0;
 
22194
}
 
22195
_ACEOF
 
22196
rm -f conftest.$ac_objext
 
22197
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22198
  (eval $ac_compile) 2>conftest.er1
 
22199
  ac_status=$?
 
22200
  grep -v '^ *+' conftest.er1 >conftest.err
 
22201
  rm -f conftest.er1
 
22202
  cat conftest.err >&5
 
22203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22204
  (exit $ac_status); } &&
 
22205
         { ac_try='test -z "$ac_c_werror_flag"
 
22206
                         || test ! -s conftest.err'
 
22207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22208
  (eval $ac_try) 2>&5
 
22209
  ac_status=$?
 
22210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22211
  (exit $ac_status); }; } &&
 
22212
         { ac_try='test -s conftest.$ac_objext'
 
22213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22214
  (eval $ac_try) 2>&5
 
22215
  ac_status=$?
 
22216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22217
  (exit $ac_status); }; }; then
 
22218
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
22219
cat >conftest.$ac_ext <<_ACEOF
 
22220
/* confdefs.h.  */
 
22221
_ACEOF
 
22222
cat confdefs.h >>conftest.$ac_ext
 
22223
cat >>conftest.$ac_ext <<_ACEOF
 
22224
/* end confdefs.h.  */
 
22225
#include <sys/types.h>
 
22226
#include <sys/param.h>
 
22227
 
 
22228
int
 
22229
main ()
 
22230
{
 
22231
#if BYTE_ORDER != BIG_ENDIAN
 
22232
 not big endian
 
22233
#endif
 
22234
 
 
22235
  ;
 
22236
  return 0;
 
22237
}
 
22238
_ACEOF
 
22239
rm -f conftest.$ac_objext
 
22240
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22241
  (eval $ac_compile) 2>conftest.er1
 
22242
  ac_status=$?
 
22243
  grep -v '^ *+' conftest.er1 >conftest.err
 
22244
  rm -f conftest.er1
 
22245
  cat conftest.err >&5
 
22246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22247
  (exit $ac_status); } &&
 
22248
         { ac_try='test -z "$ac_c_werror_flag"
 
22249
                         || test ! -s conftest.err'
 
22250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22251
  (eval $ac_try) 2>&5
 
22252
  ac_status=$?
 
22253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22254
  (exit $ac_status); }; } &&
 
22255
         { ac_try='test -s conftest.$ac_objext'
 
22256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22257
  (eval $ac_try) 2>&5
 
22258
  ac_status=$?
 
22259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22260
  (exit $ac_status); }; }; then
 
22261
  ac_cv_c_bigendian=yes
 
22262
else
 
22263
  echo "$as_me: failed program was:" >&5
 
22264
sed 's/^/| /' conftest.$ac_ext >&5
 
22265
 
 
22266
ac_cv_c_bigendian=no
 
22267
fi
 
22268
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22269
else
 
22270
  echo "$as_me: failed program was:" >&5
 
22271
sed 's/^/| /' conftest.$ac_ext >&5
 
22272
 
 
22273
# It does not; compile a test program.
 
22274
if test "$cross_compiling" = yes; then
 
22275
  # try to guess the endianness by grepping values into an object file
 
22276
  ac_cv_c_bigendian=unknown
 
22277
  cat >conftest.$ac_ext <<_ACEOF
 
22278
/* confdefs.h.  */
 
22279
_ACEOF
 
22280
cat confdefs.h >>conftest.$ac_ext
 
22281
cat >>conftest.$ac_ext <<_ACEOF
 
22282
/* end confdefs.h.  */
 
22283
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
22284
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
22285
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
22286
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
22287
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
22288
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
22289
int
 
22290
main ()
 
22291
{
 
22292
 _ascii (); _ebcdic ();
 
22293
  ;
 
22294
  return 0;
 
22295
}
 
22296
_ACEOF
 
22297
rm -f conftest.$ac_objext
 
22298
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22299
  (eval $ac_compile) 2>conftest.er1
 
22300
  ac_status=$?
 
22301
  grep -v '^ *+' conftest.er1 >conftest.err
 
22302
  rm -f conftest.er1
 
22303
  cat conftest.err >&5
 
22304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22305
  (exit $ac_status); } &&
 
22306
         { ac_try='test -z "$ac_c_werror_flag"
 
22307
                         || test ! -s conftest.err'
 
22308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22309
  (eval $ac_try) 2>&5
 
22310
  ac_status=$?
 
22311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22312
  (exit $ac_status); }; } &&
 
22313
         { ac_try='test -s conftest.$ac_objext'
 
22314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22315
  (eval $ac_try) 2>&5
 
22316
  ac_status=$?
 
22317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22318
  (exit $ac_status); }; }; then
 
22319
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
22320
  ac_cv_c_bigendian=yes
 
22321
fi
 
22322
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
22323
  if test "$ac_cv_c_bigendian" = unknown; then
 
22324
    ac_cv_c_bigendian=no
 
22325
  else
 
22326
    # finding both strings is unlikely to happen, but who knows?
 
22327
    ac_cv_c_bigendian=unknown
 
22328
  fi
 
22329
fi
 
22330
else
 
22331
  echo "$as_me: failed program was:" >&5
 
22332
sed 's/^/| /' conftest.$ac_ext >&5
 
22333
 
 
22334
fi
 
22335
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22336
else
 
22337
  cat >conftest.$ac_ext <<_ACEOF
 
22338
/* confdefs.h.  */
 
22339
_ACEOF
 
22340
cat confdefs.h >>conftest.$ac_ext
 
22341
cat >>conftest.$ac_ext <<_ACEOF
 
22342
/* end confdefs.h.  */
 
22343
int
 
22344
main ()
 
22345
{
 
22346
  /* Are we little or big endian?  From Harbison&Steele.  */
 
22347
  union
 
22348
  {
 
22349
    long l;
 
22350
    char c[sizeof (long)];
 
22351
  } u;
 
22352
  u.l = 1;
 
22353
  exit (u.c[sizeof (long) - 1] == 1);
 
22354
}
 
22355
_ACEOF
 
22356
rm -f conftest$ac_exeext
 
22357
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22358
  (eval $ac_link) 2>&5
 
22359
  ac_status=$?
 
22360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22361
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22362
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22363
  (eval $ac_try) 2>&5
 
22364
  ac_status=$?
 
22365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22366
  (exit $ac_status); }; }; then
 
22367
  ac_cv_c_bigendian=no
 
22368
else
 
22369
  echo "$as_me: program exited with status $ac_status" >&5
 
22370
echo "$as_me: failed program was:" >&5
 
22371
sed 's/^/| /' conftest.$ac_ext >&5
 
22372
 
 
22373
( exit $ac_status )
 
22374
ac_cv_c_bigendian=yes
 
22375
fi
 
22376
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22377
fi
 
22378
fi
 
22379
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22380
fi
 
22381
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
22382
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
22383
case $ac_cv_c_bigendian in
 
22384
  yes)
 
22385
 
 
22386
cat >>confdefs.h <<\_ACEOF
 
22387
#define WORDS_BIGENDIAN 1
 
22388
_ACEOF
 
22389
 ;;
 
22390
  no)
 
22391
     ;;
 
22392
  *)
 
22393
    { { echo "$as_me:$LINENO: error: unknown endianness
 
22394
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
22395
echo "$as_me: error: unknown endianness
 
22396
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
22397
   { (exit 1); exit 1; }; } ;;
 
22398
esac
 
22399
 
 
22400
 
 
22401
if test x$TARGET = xSPARC; then
 
22402
    echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
 
22403
echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
 
22404
if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
 
22405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22406
else
 
22407
 
 
22408
        save_CFLAGS="$CFLAGS"
 
22409
        save_LDFLAGS="$LDFLAGS"
 
22410
        CFLAGS="$CFLAGS -fpic"
 
22411
        LDFLAGS="$LDFLAGS -shared"
 
22412
        cat >conftest.$ac_ext <<_ACEOF
 
22413
/* confdefs.h.  */
 
22414
_ACEOF
 
22415
cat confdefs.h >>conftest.$ac_ext
 
22416
cat >>conftest.$ac_ext <<_ACEOF
 
22417
/* end confdefs.h.  */
 
22418
asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
 
22419
int
 
22420
main ()
 
22421
{
 
22422
 
 
22423
  ;
 
22424
  return 0;
 
22425
}
 
22426
_ACEOF
 
22427
rm -f conftest.$ac_objext conftest$ac_exeext
 
22428
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22429
  (eval $ac_link) 2>conftest.er1
 
22430
  ac_status=$?
 
22431
  grep -v '^ *+' conftest.er1 >conftest.err
 
22432
  rm -f conftest.er1
 
22433
  cat conftest.err >&5
 
22434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22435
  (exit $ac_status); } &&
 
22436
         { ac_try='test -z "$ac_c_werror_flag"
 
22437
                         || test ! -s conftest.err'
 
22438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22439
  (eval $ac_try) 2>&5
 
22440
  ac_status=$?
 
22441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22442
  (exit $ac_status); }; } &&
 
22443
         { ac_try='test -s conftest$ac_exeext'
 
22444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22445
  (eval $ac_try) 2>&5
 
22446
  ac_status=$?
 
22447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22448
  (exit $ac_status); }; }; then
 
22449
  libffi_cv_as_sparc_ua_pcrel=yes
 
22450
else
 
22451
  echo "$as_me: failed program was:" >&5
 
22452
sed 's/^/| /' conftest.$ac_ext >&5
 
22453
 
 
22454
libffi_cv_as_sparc_ua_pcrel=no
 
22455
fi
 
22456
rm -f conftest.err conftest.$ac_objext \
 
22457
      conftest$ac_exeext conftest.$ac_ext
 
22458
        CFLAGS="$save_CFLAGS"
 
22459
        LDFLAGS="$save_LDFLAGS"
 
22460
fi
 
22461
echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
 
22462
echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
 
22463
    if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
 
22464
 
 
22465
cat >>confdefs.h <<\_ACEOF
 
22466
#define HAVE_AS_SPARC_UA_PCREL 1
 
22467
_ACEOF
 
22468
 
 
22469
    fi
 
22470
 
 
22471
    echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
 
22472
echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
 
22473
if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
 
22474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22475
else
 
22476
 
 
22477
       libffi_cv_as_register_pseudo_op=unknown
 
22478
       # Check if we have .register
 
22479
       cat >conftest.$ac_ext <<_ACEOF
 
22480
/* confdefs.h.  */
 
22481
_ACEOF
 
22482
cat confdefs.h >>conftest.$ac_ext
 
22483
cat >>conftest.$ac_ext <<_ACEOF
 
22484
/* end confdefs.h.  */
 
22485
asm (".register %g2, #scratch");
 
22486
int
 
22487
main ()
 
22488
{
 
22489
 
 
22490
  ;
 
22491
  return 0;
 
22492
}
 
22493
_ACEOF
 
22494
rm -f conftest.$ac_objext
 
22495
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22496
  (eval $ac_compile) 2>conftest.er1
 
22497
  ac_status=$?
 
22498
  grep -v '^ *+' conftest.er1 >conftest.err
 
22499
  rm -f conftest.er1
 
22500
  cat conftest.err >&5
 
22501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22502
  (exit $ac_status); } &&
 
22503
         { ac_try='test -z "$ac_c_werror_flag"
 
22504
                         || test ! -s conftest.err'
 
22505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22506
  (eval $ac_try) 2>&5
 
22507
  ac_status=$?
 
22508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22509
  (exit $ac_status); }; } &&
 
22510
         { ac_try='test -s conftest.$ac_objext'
 
22511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22512
  (eval $ac_try) 2>&5
 
22513
  ac_status=$?
 
22514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22515
  (exit $ac_status); }; }; then
 
22516
  libffi_cv_as_register_pseudo_op=yes
 
22517
else
 
22518
  echo "$as_me: failed program was:" >&5
 
22519
sed 's/^/| /' conftest.$ac_ext >&5
 
22520
 
 
22521
libffi_cv_as_register_pseudo_op=no
 
22522
fi
 
22523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22524
 
 
22525
fi
 
22526
echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
 
22527
echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
 
22528
    if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
 
22529
 
 
22530
cat >>confdefs.h <<\_ACEOF
 
22531
#define HAVE_AS_REGISTER_PSEUDO_OP 1
 
22532
_ACEOF
 
22533
 
 
22534
    fi
 
22535
fi
 
22536
 
 
22537
echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
 
22538
echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
 
22539
if test "${libffi_cv_ro_eh_frame+set}" = set; then
 
22540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22541
else
 
22542
 
 
22543
        libffi_cv_ro_eh_frame=no
 
22544
        echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
 
22545
        if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
 
22546
            if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
 
22547
                libffi_cv_ro_eh_frame=yes
 
22548
            elif grep '.section.*eh_frame.*#alloc' conftest.c \
 
22549
                 | grep -v '#write' > /dev/null; then
 
22550
                libffi_cv_ro_eh_frame=yes
 
22551
            fi
 
22552
        fi
 
22553
        rm -f conftest.*
 
22554
 
 
22555
fi
 
22556
echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
 
22557
echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
 
22558
if test "x$libffi_cv_ro_eh_frame" = xyes; then
 
22559
 
 
22560
cat >>confdefs.h <<\_ACEOF
 
22561
#define HAVE_RO_EH_FRAME 1
 
22562
_ACEOF
 
22563
 
 
22564
 
 
22565
cat >>confdefs.h <<\_ACEOF
 
22566
#define EH_FRAME_FLAGS "a"
 
22567
_ACEOF
 
22568
 
 
22569
else
 
22570
 
 
22571
cat >>confdefs.h <<\_ACEOF
 
22572
#define EH_FRAME_FLAGS "aw"
 
22573
_ACEOF
 
22574
 
 
22575
fi
 
22576
 
 
22577
echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
 
22578
echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
 
22579
if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
 
22580
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22581
else
 
22582
 
 
22583
        echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
 
22584
        libffi_cv_hidden_visibility_attribute=no
 
22585
        if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
 
22586
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22587
  (eval $ac_try) 2>&5
 
22588
  ac_status=$?
 
22589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22590
  (exit $ac_status); }; }; then
 
22591
            if grep '\.hidden.*foo' conftest.s >/dev/null; then
 
22592
                libffi_cv_hidden_visibility_attribute=yes
 
22593
            fi
 
22594
        fi
 
22595
        rm -f conftest.*
 
22596
 
 
22597
fi
 
22598
echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
 
22599
echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
 
22600
if test $libffi_cv_hidden_visibility_attribute = yes; then
 
22601
 
 
22602
cat >>confdefs.h <<\_ACEOF
 
22603
#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
 
22604
_ACEOF
 
22605
 
 
22606
fi
 
22607
 
 
22608
 
 
22609
 
 
22610
 
 
22611
 
 
22612
 
 
22613
 
 
22614
 
 
22615
 
 
22616
# Check whether --enable-debug or --disable-debug was given.
 
22617
if test "${enable_debug+set}" = set; then
 
22618
  enableval="$enable_debug"
 
22619
  if test "$enable_debug" = "yes"; then
 
22620
 
 
22621
cat >>confdefs.h <<\_ACEOF
 
22622
#define FFI_DEBUG 1
 
22623
_ACEOF
 
22624
 
 
22625
  fi
 
22626
fi;
 
22627
 
 
22628
# Check whether --enable-structs or --disable-structs was given.
 
22629
if test "${enable_structs+set}" = set; then
 
22630
  enableval="$enable_structs"
 
22631
  if test "$enable_structs" = "no"; then
 
22632
 
 
22633
cat >>confdefs.h <<\_ACEOF
 
22634
#define FFI_NO_STRUCTS 1
 
22635
_ACEOF
 
22636
 
 
22637
  fi
 
22638
fi;
 
22639
 
 
22640
# Check whether --enable-raw-api or --disable-raw-api was given.
 
22641
if test "${enable_raw_api+set}" = set; then
 
22642
  enableval="$enable_raw_api"
 
22643
  if test "$enable_raw_api" = "no"; then
 
22644
 
 
22645
cat >>confdefs.h <<\_ACEOF
 
22646
#define FFI_NO_RAW_API 1
 
22647
_ACEOF
 
22648
 
 
22649
  fi
 
22650
fi;
 
22651
 
 
22652
# Check whether --enable-purify-safety or --disable-purify-safety was given.
 
22653
if test "${enable_purify_safety+set}" = set; then
 
22654
  enableval="$enable_purify_safety"
 
22655
  if test "$enable_purify_safety" = "yes"; then
 
22656
 
 
22657
cat >>confdefs.h <<\_ACEOF
 
22658
#define USING_PURIFY 1
 
22659
_ACEOF
 
22660
 
 
22661
  fi
 
22662
fi;
 
22663
 
 
22664
 
 
22665
          ac_config_commands="$ac_config_commands include"
 
22666
 
 
22667
          ac_config_commands="$ac_config_commands src"
 
22668
 
 
22669
 
 
22670
          ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
 
22671
 
 
22672
 
 
22673
                              ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile"
 
22674
 
 
22675
 
 
22676
cat >confcache <<\_ACEOF
 
22677
# This file is a shell script that caches the results of configure
 
22678
# tests run on this system so they can be shared between configure
 
22679
# scripts and configure runs, see configure's option --config-cache.
 
22680
# It is not useful on other systems.  If it contains results you don't
 
22681
# want to keep, you may remove or edit it.
 
22682
#
 
22683
# config.status only pays attention to the cache file if you give it
 
22684
# the --recheck option to rerun configure.
 
22685
#
 
22686
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22687
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22688
# following values.
 
22689
 
 
22690
_ACEOF
 
22691
 
 
22692
# The following way of writing the cache mishandles newlines in values,
 
22693
# but we know of no workaround that is simple, portable, and efficient.
 
22694
# So, don't put newlines in cache variables' values.
 
22695
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22696
# and sets the high bit in the cache file unless we assign to the vars.
 
22697
{
 
22698
  (set) 2>&1 |
 
22699
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
22700
    *ac_space=\ *)
 
22701
      # `set' does not quote correctly, so add quotes (double-quote
 
22702
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
22703
      sed -n \
 
22704
        "s/'/'\\\\''/g;
 
22705
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22706
      ;;
 
22707
    *)
 
22708
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22709
      sed -n \
 
22710
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
22711
      ;;
 
22712
    esac;
 
22713
} |
 
22714
  sed '
 
22715
     t clear
 
22716
     : clear
 
22717
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22718
     t end
 
22719
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22720
     : end' >>confcache
 
22721
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
22722
  if test -w $cache_file; then
 
22723
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
22724
    cat confcache >$cache_file
 
22725
  else
 
22726
    echo "not updating unwritable cache $cache_file"
 
22727
  fi
 
22728
fi
 
22729
rm -f confcache
 
22730
 
 
22731
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22732
# Let make expand exec_prefix.
 
22733
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22734
 
 
22735
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22736
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22737
# trailing colons and then remove the whole line if VPATH becomes empty
 
22738
# (actually we leave an empty line to preserve line numbers).
 
22739
if test "x$srcdir" = x.; then
 
22740
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22741
s/:*\$(srcdir):*/:/;
 
22742
s/:*\${srcdir}:*/:/;
 
22743
s/:*@srcdir@:*/:/;
 
22744
s/^\([^=]*=[     ]*\):*/\1/;
 
22745
s/:*$//;
 
22746
s/^[^=]*=[       ]*$//;
 
22747
}'
 
22748
fi
 
22749
 
 
22750
DEFS=-DHAVE_CONFIG_H
 
22751
 
 
22752
ac_libobjs=
 
22753
ac_ltlibobjs=
 
22754
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
22755
  # 1. Remove the extension, and $U if already installed.
 
22756
  ac_i=`echo "$ac_i" |
 
22757
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
22758
  # 2. Add them.
 
22759
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
22760
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
22761
done
 
22762
LIBOBJS=$ac_libobjs
 
22763
 
 
22764
LTLIBOBJS=$ac_ltlibobjs
 
22765
 
 
22766
 
 
22767
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22768
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22769
Usually this means the macro was only invoked conditionally." >&5
 
22770
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22771
Usually this means the macro was only invoked conditionally." >&2;}
 
22772
   { (exit 1); exit 1; }; }
 
22773
fi
 
22774
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22775
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22776
Usually this means the macro was only invoked conditionally." >&5
 
22777
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22778
Usually this means the macro was only invoked conditionally." >&2;}
 
22779
   { (exit 1); exit 1; }; }
 
22780
fi
 
22781
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22782
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22783
Usually this means the macro was only invoked conditionally." >&5
 
22784
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22785
Usually this means the macro was only invoked conditionally." >&2;}
 
22786
   { (exit 1); exit 1; }; }
 
22787
fi
 
22788
if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
 
22789
  { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
 
22790
Usually this means the macro was only invoked conditionally." >&5
 
22791
echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
 
22792
Usually this means the macro was only invoked conditionally." >&2;}
 
22793
   { (exit 1); exit 1; }; }
 
22794
fi
 
22795
if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
 
22796
  { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
 
22797
Usually this means the macro was only invoked conditionally." >&5
 
22798
echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
 
22799
Usually this means the macro was only invoked conditionally." >&2;}
 
22800
   { (exit 1); exit 1; }; }
 
22801
fi
 
22802
if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
 
22803
  { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
 
22804
Usually this means the macro was only invoked conditionally." >&5
 
22805
echo "$as_me: error: conditional \"SPARC\" was never defined.
 
22806
Usually this means the macro was only invoked conditionally." >&2;}
 
22807
   { (exit 1); exit 1; }; }
 
22808
fi
 
22809
if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
 
22810
  { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
 
22811
Usually this means the macro was only invoked conditionally." >&5
 
22812
echo "$as_me: error: conditional \"X86\" was never defined.
 
22813
Usually this means the macro was only invoked conditionally." >&2;}
 
22814
   { (exit 1); exit 1; }; }
 
22815
fi
 
22816
if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
 
22817
  { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
 
22818
Usually this means the macro was only invoked conditionally." >&5
 
22819
echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
 
22820
Usually this means the macro was only invoked conditionally." >&2;}
 
22821
   { (exit 1); exit 1; }; }
 
22822
fi
 
22823
if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
 
22824
  { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
 
22825
Usually this means the macro was only invoked conditionally." >&5
 
22826
echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
 
22827
Usually this means the macro was only invoked conditionally." >&2;}
 
22828
   { (exit 1); exit 1; }; }
 
22829
fi
 
22830
if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
 
22831
  { { echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
 
22832
Usually this means the macro was only invoked conditionally." >&5
 
22833
echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
 
22834
Usually this means the macro was only invoked conditionally." >&2;}
 
22835
   { (exit 1); exit 1; }; }
 
22836
fi
 
22837
if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
 
22838
  { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
 
22839
Usually this means the macro was only invoked conditionally." >&5
 
22840
echo "$as_me: error: conditional \"ALPHA\" was never defined.
 
22841
Usually this means the macro was only invoked conditionally." >&2;}
 
22842
   { (exit 1); exit 1; }; }
 
22843
fi
 
22844
if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
 
22845
  { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
 
22846
Usually this means the macro was only invoked conditionally." >&5
 
22847
echo "$as_me: error: conditional \"IA64\" was never defined.
 
22848
Usually this means the macro was only invoked conditionally." >&2;}
 
22849
   { (exit 1); exit 1; }; }
 
22850
fi
 
22851
if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
 
22852
  { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
 
22853
Usually this means the macro was only invoked conditionally." >&5
 
22854
echo "$as_me: error: conditional \"M32R\" was never defined.
 
22855
Usually this means the macro was only invoked conditionally." >&2;}
 
22856
   { (exit 1); exit 1; }; }
 
22857
fi
 
22858
if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
 
22859
  { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
 
22860
Usually this means the macro was only invoked conditionally." >&5
 
22861
echo "$as_me: error: conditional \"M68K\" was never defined.
 
22862
Usually this means the macro was only invoked conditionally." >&2;}
 
22863
   { (exit 1); exit 1; }; }
 
22864
fi
 
22865
if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
 
22866
  { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
 
22867
Usually this means the macro was only invoked conditionally." >&5
 
22868
echo "$as_me: error: conditional \"POWERPC\" was never defined.
 
22869
Usually this means the macro was only invoked conditionally." >&2;}
 
22870
   { (exit 1); exit 1; }; }
 
22871
fi
 
22872
if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
 
22873
  { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
 
22874
Usually this means the macro was only invoked conditionally." >&5
 
22875
echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
 
22876
Usually this means the macro was only invoked conditionally." >&2;}
 
22877
   { (exit 1); exit 1; }; }
 
22878
fi
 
22879
if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
 
22880
  { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
 
22881
Usually this means the macro was only invoked conditionally." >&5
 
22882
echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
 
22883
Usually this means the macro was only invoked conditionally." >&2;}
 
22884
   { (exit 1); exit 1; }; }
 
22885
fi
 
22886
if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
 
22887
  { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
 
22888
Usually this means the macro was only invoked conditionally." >&5
 
22889
echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
 
22890
Usually this means the macro was only invoked conditionally." >&2;}
 
22891
   { (exit 1); exit 1; }; }
 
22892
fi
 
22893
if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
 
22894
  { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
 
22895
Usually this means the macro was only invoked conditionally." >&5
 
22896
echo "$as_me: error: conditional \"ARM\" was never defined.
 
22897
Usually this means the macro was only invoked conditionally." >&2;}
 
22898
   { (exit 1); exit 1; }; }
 
22899
fi
 
22900
if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
 
22901
  { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
 
22902
Usually this means the macro was only invoked conditionally." >&5
 
22903
echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
 
22904
Usually this means the macro was only invoked conditionally." >&2;}
 
22905
   { (exit 1); exit 1; }; }
 
22906
fi
 
22907
if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
 
22908
  { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
 
22909
Usually this means the macro was only invoked conditionally." >&5
 
22910
echo "$as_me: error: conditional \"FRV\" was never defined.
 
22911
Usually this means the macro was only invoked conditionally." >&2;}
 
22912
   { (exit 1); exit 1; }; }
 
22913
fi
 
22914
if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
 
22915
  { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
 
22916
Usually this means the macro was only invoked conditionally." >&5
 
22917
echo "$as_me: error: conditional \"S390\" was never defined.
 
22918
Usually this means the macro was only invoked conditionally." >&2;}
 
22919
   { (exit 1); exit 1; }; }
 
22920
fi
 
22921
if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
 
22922
  { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
 
22923
Usually this means the macro was only invoked conditionally." >&5
 
22924
echo "$as_me: error: conditional \"X86_64\" was never defined.
 
22925
Usually this means the macro was only invoked conditionally." >&2;}
 
22926
   { (exit 1); exit 1; }; }
 
22927
fi
 
22928
if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
 
22929
  { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
 
22930
Usually this means the macro was only invoked conditionally." >&5
 
22931
echo "$as_me: error: conditional \"SH\" was never defined.
 
22932
Usually this means the macro was only invoked conditionally." >&2;}
 
22933
   { (exit 1); exit 1; }; }
 
22934
fi
 
22935
if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
 
22936
  { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
 
22937
Usually this means the macro was only invoked conditionally." >&5
 
22938
echo "$as_me: error: conditional \"SH64\" was never defined.
 
22939
Usually this means the macro was only invoked conditionally." >&2;}
 
22940
   { (exit 1); exit 1; }; }
 
22941
fi
 
22942
if test -z "${PA_TRUE}" && test -z "${PA_FALSE}"; then
 
22943
  { { echo "$as_me:$LINENO: error: conditional \"PA\" was never defined.
 
22944
Usually this means the macro was only invoked conditionally." >&5
 
22945
echo "$as_me: error: conditional \"PA\" was never defined.
 
22946
Usually this means the macro was only invoked conditionally." >&2;}
 
22947
   { (exit 1); exit 1; }; }
 
22948
fi
 
22949
 
 
22950
: ${CONFIG_STATUS=./config.status}
 
22951
ac_clean_files_save=$ac_clean_files
 
22952
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22953
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
22954
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22955
cat >$CONFIG_STATUS <<_ACEOF
 
22956
#! $SHELL
 
22957
# Generated by $as_me.
 
22958
# Run this file to recreate the current configuration.
 
22959
# Compiler output produced by configure, useful for debugging
 
22960
# configure, is in config.log if it exists.
 
22961
 
 
22962
debug=false
 
22963
ac_cs_recheck=false
 
22964
ac_cs_silent=false
 
22965
SHELL=\${CONFIG_SHELL-$SHELL}
 
22966
_ACEOF
 
22967
 
 
22968
cat >>$CONFIG_STATUS <<\_ACEOF
 
22969
## --------------------- ##
 
22970
## M4sh Initialization.  ##
 
22971
## --------------------- ##
 
22972
 
 
22973
# Be Bourne compatible
 
22974
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
22975
  emulate sh
 
22976
  NULLCMD=:
 
22977
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22978
  # is contrary to our usage.  Disable this feature.
 
22979
  alias -g '${1+"$@"}'='"$@"'
 
22980
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22981
  set -o posix
 
22982
fi
 
22983
DUALCASE=1; export DUALCASE # for MKS sh
 
22984
 
 
22985
# Support unset when possible.
 
22986
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22987
  as_unset=unset
 
22988
else
 
22989
  as_unset=false
 
22990
fi
 
22991
 
 
22992
 
 
22993
# Work around bugs in pre-3.0 UWIN ksh.
 
22994
$as_unset ENV MAIL MAILPATH
 
22995
PS1='$ '
 
22996
PS2='> '
 
22997
PS4='+ '
 
22998
 
 
22999
# NLS nuisances.
 
23000
for as_var in \
 
23001
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
23002
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
23003
  LC_TELEPHONE LC_TIME
 
23004
do
 
23005
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
23006
    eval $as_var=C; export $as_var
 
23007
  else
 
23008
    $as_unset $as_var
 
23009
  fi
 
23010
done
 
23011
 
 
23012
# Required to use basename.
 
23013
if expr a : '\(a\)' >/dev/null 2>&1; then
 
23014
  as_expr=expr
 
23015
else
 
23016
  as_expr=false
 
23017
fi
 
23018
 
 
23019
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
23020
  as_basename=basename
 
23021
else
 
23022
  as_basename=false
 
23023
fi
 
23024
 
 
23025
 
 
23026
# Name of the executable.
 
23027
as_me=`$as_basename "$0" ||
 
23028
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
23029
         X"$0" : 'X\(//\)$' \| \
 
23030
         X"$0" : 'X\(/\)$' \| \
 
23031
         .     : '\(.\)' 2>/dev/null ||
 
23032
echo X/"$0" |
 
23033
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
23034
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
23035
          /^X\/\(\/\).*/{ s//\1/; q; }
 
23036
          s/.*/./; q'`
 
23037
 
 
23038
 
 
23039
# PATH needs CR, and LINENO needs CR and PATH.
 
23040
# Avoid depending upon Character Ranges.
 
23041
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
23042
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
23043
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
23044
as_cr_digits='0123456789'
 
23045
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
23046
 
 
23047
# The user is always right.
 
23048
if test "${PATH_SEPARATOR+set}" != set; then
 
23049
  echo "#! /bin/sh" >conf$$.sh
 
23050
  echo  "exit 0"   >>conf$$.sh
 
23051
  chmod +x conf$$.sh
 
23052
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
23053
    PATH_SEPARATOR=';'
 
23054
  else
 
23055
    PATH_SEPARATOR=:
 
23056
  fi
 
23057
  rm -f conf$$.sh
 
23058
fi
 
23059
 
 
23060
 
 
23061
  as_lineno_1=$LINENO
 
23062
  as_lineno_2=$LINENO
 
23063
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
23064
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
23065
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
23066
  # Find who we are.  Look in the path if we contain no path at all
 
23067
  # relative or not.
 
23068
  case $0 in
 
23069
    *[\\/]* ) as_myself=$0 ;;
 
23070
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23071
for as_dir in $PATH
 
23072
do
 
23073
  IFS=$as_save_IFS
 
23074
  test -z "$as_dir" && as_dir=.
 
23075
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
23076
done
 
23077
 
 
23078
       ;;
 
23079
  esac
 
23080
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
23081
  # in which case we are not to be found in the path.
 
23082
  if test "x$as_myself" = x; then
 
23083
    as_myself=$0
 
23084
  fi
 
23085
  if test ! -f "$as_myself"; then
 
23086
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
23087
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
23088
   { (exit 1); exit 1; }; }
 
23089
  fi
 
23090
  case $CONFIG_SHELL in
 
23091
  '')
 
23092
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23093
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
23094
do
 
23095
  IFS=$as_save_IFS
 
23096
  test -z "$as_dir" && as_dir=.
 
23097
  for as_base in sh bash ksh sh5; do
 
23098
         case $as_dir in
 
23099
         /*)
 
23100
           if ("$as_dir/$as_base" -c '
 
23101
  as_lineno_1=$LINENO
 
23102
  as_lineno_2=$LINENO
 
23103
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
23104
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
23105
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
23106
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
23107
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
23108
             CONFIG_SHELL=$as_dir/$as_base
 
23109
             export CONFIG_SHELL
 
23110
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
23111
           fi;;
 
23112
         esac
 
23113
       done
 
23114
done
 
23115
;;
 
23116
  esac
 
23117
 
 
23118
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
23119
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
23120
  # line-number line before each line; the second 'sed' does the real
 
23121
  # work.  The second script uses 'N' to pair each line-number line
 
23122
  # with the numbered line, and appends trailing '-' during
 
23123
  # substitution so that $LINENO is not a special case at line end.
 
23124
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
23125
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
23126
  sed '=' <$as_myself |
 
23127
    sed '
 
23128
      N
 
23129
      s,$,-,
 
23130
      : loop
 
23131
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
23132
      t loop
 
23133
      s,-$,,
 
23134
      s,^['$as_cr_digits']*\n,,
 
23135
    ' >$as_me.lineno &&
 
23136
  chmod +x $as_me.lineno ||
 
23137
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
23138
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
23139
   { (exit 1); exit 1; }; }
 
23140
 
 
23141
  # Don't try to exec as it changes $[0], causing all sort of problems
 
23142
  # (the dirname of $[0] is not the place where we might find the
 
23143
  # original and so on.  Autoconf is especially sensible to this).
 
23144
  . ./$as_me.lineno
 
23145
  # Exit status is that of the last command.
 
23146
  exit
 
23147
}
 
23148
 
 
23149
 
 
23150
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
23151
  *c*,-n*) ECHO_N= ECHO_C='
 
23152
' ECHO_T='      ' ;;
 
23153
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
23154
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
23155
esac
 
23156
 
 
23157
if expr a : '\(a\)' >/dev/null 2>&1; then
 
23158
  as_expr=expr
 
23159
else
 
23160
  as_expr=false
 
23161
fi
 
23162
 
 
23163
rm -f conf$$ conf$$.exe conf$$.file
 
23164
echo >conf$$.file
 
23165
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
23166
  # We could just check for DJGPP; but this test a) works b) is more generic
 
23167
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
23168
  if test -f conf$$.exe; then
 
23169
    # Don't use ln at all; we don't have any links
 
23170
    as_ln_s='cp -p'
 
23171
  else
 
23172
    as_ln_s='ln -s'
 
23173
  fi
 
23174
elif ln conf$$.file conf$$ 2>/dev/null; then
 
23175
  as_ln_s=ln
 
23176
else
 
23177
  as_ln_s='cp -p'
 
23178
fi
 
23179
rm -f conf$$ conf$$.exe conf$$.file
 
23180
 
 
23181
if mkdir -p . 2>/dev/null; then
 
23182
  as_mkdir_p=:
 
23183
else
 
23184
  test -d ./-p && rmdir ./-p
 
23185
  as_mkdir_p=false
 
23186
fi
 
23187
 
 
23188
as_executable_p="test -f"
 
23189
 
 
23190
# Sed expression to map a string onto a valid CPP name.
 
23191
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
23192
 
 
23193
# Sed expression to map a string onto a valid variable name.
 
23194
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
23195
 
 
23196
 
 
23197
# IFS
 
23198
# We need space, tab and new line, in precisely that order.
 
23199
as_nl='
 
23200
'
 
23201
IFS="   $as_nl"
 
23202
 
 
23203
# CDPATH.
 
23204
$as_unset CDPATH
 
23205
 
 
23206
exec 6>&1
 
23207
 
 
23208
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
23209
# report actual input values of CONFIG_FILES etc. instead of their
 
23210
# values after options handling.  Logging --version etc. is OK.
 
23211
exec 5>>config.log
 
23212
{
 
23213
  echo
 
23214
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
23215
## Running $as_me. ##
 
23216
_ASBOX
 
23217
} >&5
 
23218
cat >&5 <<_CSEOF
 
23219
 
 
23220
This file was extended by libffi $as_me 2.1, which was
 
23221
generated by GNU Autoconf 2.59.  Invocation command line was
 
23222
 
 
23223
  CONFIG_FILES    = $CONFIG_FILES
 
23224
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
23225
  CONFIG_LINKS    = $CONFIG_LINKS
 
23226
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
23227
  $ $0 $@
 
23228
 
 
23229
_CSEOF
 
23230
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
23231
echo >&5
 
23232
_ACEOF
 
23233
 
 
23234
# Files that config.status was made for.
 
23235
if test -n "$ac_config_files"; then
 
23236
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
23237
fi
 
23238
 
 
23239
if test -n "$ac_config_headers"; then
 
23240
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
23241
fi
 
23242
 
 
23243
if test -n "$ac_config_links"; then
 
23244
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
23245
fi
 
23246
 
 
23247
if test -n "$ac_config_commands"; then
 
23248
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
23249
fi
 
23250
 
 
23251
cat >>$CONFIG_STATUS <<\_ACEOF
 
23252
 
 
23253
ac_cs_usage="\
 
23254
\`$as_me' instantiates files from templates according to the
 
23255
current configuration.
 
23256
 
 
23257
Usage: $0 [OPTIONS] [FILE]...
 
23258
 
 
23259
  -h, --help       print this help, then exit
 
23260
  -V, --version    print version number, then exit
 
23261
  -q, --quiet      do not print progress messages
 
23262
  -d, --debug      don't remove temporary files
 
23263
      --recheck    update $as_me by reconfiguring in the same conditions
 
23264
  --file=FILE[:TEMPLATE]
 
23265
                   instantiate the configuration file FILE
 
23266
  --header=FILE[:TEMPLATE]
 
23267
                   instantiate the configuration header FILE
 
23268
 
 
23269
Configuration files:
 
23270
$config_files
 
23271
 
 
23272
Configuration headers:
 
23273
$config_headers
 
23274
 
 
23275
Configuration links:
 
23276
$config_links
 
23277
 
 
23278
Configuration commands:
 
23279
$config_commands
 
23280
 
 
23281
Report bugs to <bug-autoconf@gnu.org>."
 
23282
_ACEOF
 
23283
 
 
23284
cat >>$CONFIG_STATUS <<_ACEOF
 
23285
ac_cs_version="\\
 
23286
libffi config.status 2.1
 
23287
configured by $0, generated by GNU Autoconf 2.59,
 
23288
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
23289
 
 
23290
Copyright (C) 2003 Free Software Foundation, Inc.
 
23291
This config.status script is free software; the Free Software Foundation
 
23292
gives unlimited permission to copy, distribute and modify it."
 
23293
srcdir=$srcdir
 
23294
INSTALL="$INSTALL"
 
23295
_ACEOF
 
23296
 
 
23297
cat >>$CONFIG_STATUS <<\_ACEOF
 
23298
# If no file are specified by the user, then we need to provide default
 
23299
# value.  By we need to know if files were specified by the user.
 
23300
ac_need_defaults=:
 
23301
while test $# != 0
 
23302
do
 
23303
  case $1 in
 
23304
  --*=*)
 
23305
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
23306
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
23307
    ac_shift=:
 
23308
    ;;
 
23309
  -*)
 
23310
    ac_option=$1
 
23311
    ac_optarg=$2
 
23312
    ac_shift=shift
 
23313
    ;;
 
23314
  *) # This is not an option, so the user has probably given explicit
 
23315
     # arguments.
 
23316
     ac_option=$1
 
23317
     ac_need_defaults=false;;
 
23318
  esac
 
23319
 
 
23320
  case $ac_option in
 
23321
  # Handling of the options.
 
23322
_ACEOF
 
23323
cat >>$CONFIG_STATUS <<\_ACEOF
 
23324
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
23325
    ac_cs_recheck=: ;;
 
23326
  --version | --vers* | -V )
 
23327
    echo "$ac_cs_version"; exit 0 ;;
 
23328
  --he | --h)
 
23329
    # Conflict between --help and --header
 
23330
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
23331
Try \`$0 --help' for more information." >&5
 
23332
echo "$as_me: error: ambiguous option: $1
 
23333
Try \`$0 --help' for more information." >&2;}
 
23334
   { (exit 1); exit 1; }; };;
 
23335
  --help | --hel | -h )
 
23336
    echo "$ac_cs_usage"; exit 0 ;;
 
23337
  --debug | --d* | -d )
 
23338
    debug=: ;;
 
23339
  --file | --fil | --fi | --f )
 
23340
    $ac_shift
 
23341
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
23342
    ac_need_defaults=false;;
 
23343
  --header | --heade | --head | --hea )
 
23344
    $ac_shift
 
23345
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
23346
    ac_need_defaults=false;;
 
23347
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
23348
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
23349
    ac_cs_silent=: ;;
 
23350
 
 
23351
  # This is an error.
 
23352
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
23353
Try \`$0 --help' for more information." >&5
 
23354
echo "$as_me: error: unrecognized option: $1
 
23355
Try \`$0 --help' for more information." >&2;}
 
23356
   { (exit 1); exit 1; }; } ;;
 
23357
 
 
23358
  *) ac_config_targets="$ac_config_targets $1" ;;
 
23359
 
 
23360
  esac
 
23361
  shift
 
23362
done
 
23363
 
 
23364
ac_configure_extra_args=
 
23365
 
 
23366
if $ac_cs_silent; then
 
23367
  exec 6>/dev/null
 
23368
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
23369
fi
 
23370
 
 
23371
_ACEOF
 
23372
cat >>$CONFIG_STATUS <<_ACEOF
 
23373
if \$ac_cs_recheck; then
 
23374
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
23375
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
23376
fi
 
23377
 
 
23378
_ACEOF
 
23379
 
 
23380
cat >>$CONFIG_STATUS <<_ACEOF
 
23381
#
 
23382
# INIT-COMMANDS section.
 
23383
#
 
23384
 
 
23385
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
23386
TARGETDIR="$TARGETDIR"
 
23387
 
 
23388
_ACEOF
 
23389
 
 
23390
 
 
23391
 
 
23392
cat >>$CONFIG_STATUS <<\_ACEOF
 
23393
for ac_config_target in $ac_config_targets
 
23394
do
 
23395
  case "$ac_config_target" in
 
23396
  # Handling of arguments.
 
23397
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
23398
  "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
 
23399
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
23400
  "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
 
23401
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
23402
  "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
 
23403
  "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
 
23404
  "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
 
23405
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
23406
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
23407
   { (exit 1); exit 1; }; };;
 
23408
  esac
 
23409
done
 
23410
 
 
23411
# If the user did not use the arguments to specify the items to instantiate,
 
23412
# then the envvar interface is used.  Set only those that are not.
 
23413
# We use the long form for the default assignment because of an extremely
 
23414
# bizarre bug on SunOS 4.1.3.
 
23415
if $ac_need_defaults; then
 
23416
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
23417
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
23418
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
 
23419
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
23420
fi
 
23421
 
 
23422
# Have a temporary directory for convenience.  Make it in the build tree
 
23423
# simply because there is no reason to put it here, and in addition,
 
23424
# creating and moving files from /tmp can sometimes cause problems.
 
23425
# Create a temporary directory, and hook for its removal unless debugging.
 
23426
$debug ||
 
23427
{
 
23428
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
23429
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
23430
}
 
23431
 
 
23432
# Create a (secure) tmp directory for tmp files.
 
23433
 
 
23434
{
 
23435
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
23436
  test -n "$tmp" && test -d "$tmp"
 
23437
}  ||
 
23438
{
 
23439
  tmp=./confstat$$-$RANDOM
 
23440
  (umask 077 && mkdir $tmp)
 
23441
} ||
 
23442
{
 
23443
   echo "$me: cannot create a temporary directory in ." >&2
 
23444
   { (exit 1); exit 1; }
 
23445
}
 
23446
 
 
23447
_ACEOF
 
23448
 
 
23449
cat >>$CONFIG_STATUS <<_ACEOF
 
23450
 
 
23451
#
 
23452
# CONFIG_FILES section.
 
23453
#
 
23454
 
 
23455
# No need to generate the scripts if there are no CONFIG_FILES.
 
23456
# This happens for instance when ./config.status config.h
 
23457
if test -n "\$CONFIG_FILES"; then
 
23458
  # Protect against being on the right side of a sed subst in config.status.
 
23459
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
23460
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
23461
s,@SHELL@,$SHELL,;t t
 
23462
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
23463
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
23464
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
23465
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
23466
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
23467
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
23468
s,@exec_prefix@,$exec_prefix,;t t
 
23469
s,@prefix@,$prefix,;t t
 
23470
s,@program_transform_name@,$program_transform_name,;t t
 
23471
s,@bindir@,$bindir,;t t
 
23472
s,@sbindir@,$sbindir,;t t
 
23473
s,@libexecdir@,$libexecdir,;t t
 
23474
s,@datadir@,$datadir,;t t
 
23475
s,@sysconfdir@,$sysconfdir,;t t
 
23476
s,@sharedstatedir@,$sharedstatedir,;t t
 
23477
s,@localstatedir@,$localstatedir,;t t
 
23478
s,@libdir@,$libdir,;t t
 
23479
s,@includedir@,$includedir,;t t
 
23480
s,@oldincludedir@,$oldincludedir,;t t
 
23481
s,@infodir@,$infodir,;t t
 
23482
s,@mandir@,$mandir,;t t
 
23483
s,@build_alias@,$build_alias,;t t
 
23484
s,@host_alias@,$host_alias,;t t
 
23485
s,@target_alias@,$target_alias,;t t
 
23486
s,@DEFS@,$DEFS,;t t
 
23487
s,@ECHO_C@,$ECHO_C,;t t
 
23488
s,@ECHO_N@,$ECHO_N,;t t
 
23489
s,@ECHO_T@,$ECHO_T,;t t
 
23490
s,@LIBS@,$LIBS,;t t
 
23491
s,@build@,$build,;t t
 
23492
s,@build_cpu@,$build_cpu,;t t
 
23493
s,@build_vendor@,$build_vendor,;t t
 
23494
s,@build_os@,$build_os,;t t
 
23495
s,@host@,$host,;t t
 
23496
s,@host_cpu@,$host_cpu,;t t
 
23497
s,@host_vendor@,$host_vendor,;t t
 
23498
s,@host_os@,$host_os,;t t
 
23499
s,@target@,$target,;t t
 
23500
s,@target_cpu@,$target_cpu,;t t
 
23501
s,@target_vendor@,$target_vendor,;t t
 
23502
s,@target_os@,$target_os,;t t
 
23503
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
23504
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
23505
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
23506
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
23507
s,@PACKAGE@,$PACKAGE,;t t
 
23508
s,@VERSION@,$VERSION,;t t
 
23509
s,@ACLOCAL@,$ACLOCAL,;t t
 
23510
s,@AUTOCONF@,$AUTOCONF,;t t
 
23511
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
23512
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
23513
s,@MAKEINFO@,$MAKEINFO,;t t
 
23514
s,@install_sh@,$install_sh,;t t
 
23515
s,@STRIP@,$STRIP,;t t
 
23516
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
23517
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
23518
s,@mkdir_p@,$mkdir_p,;t t
 
23519
s,@AWK@,$AWK,;t t
 
23520
s,@SET_MAKE@,$SET_MAKE,;t t
 
23521
s,@am__leading_dot@,$am__leading_dot,;t t
 
23522
s,@AMTAR@,$AMTAR,;t t
 
23523
s,@am__tar@,$am__tar,;t t
 
23524
s,@am__untar@,$am__untar,;t t
 
23525
s,@CC@,$CC,;t t
 
23526
s,@CFLAGS@,$CFLAGS,;t t
 
23527
s,@LDFLAGS@,$LDFLAGS,;t t
 
23528
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
23529
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
23530
s,@EXEEXT@,$EXEEXT,;t t
 
23531
s,@OBJEXT@,$OBJEXT,;t t
 
23532
s,@DEPDIR@,$DEPDIR,;t t
 
23533
s,@am__include@,$am__include,;t t
 
23534
s,@am__quote@,$am__quote,;t t
 
23535
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
23536
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
23537
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
23538
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
23539
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
23540
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
23541
s,@CCAS@,$CCAS,;t t
 
23542
s,@CCASFLAGS@,$CCASFLAGS,;t t
 
23543
s,@EGREP@,$EGREP,;t t
 
23544
s,@LN_S@,$LN_S,;t t
 
23545
s,@ECHO@,$ECHO,;t t
 
23546
s,@AR@,$AR,;t t
 
23547
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
23548
s,@RANLIB@,$RANLIB,;t t
 
23549
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
23550
s,@CPP@,$CPP,;t t
 
23551
s,@CXX@,$CXX,;t t
 
23552
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
23553
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
23554
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
23555
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
23556
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
23557
s,@CXXCPP@,$CXXCPP,;t t
 
23558
s,@F77@,$F77,;t t
 
23559
s,@FFLAGS@,$FFLAGS,;t t
 
23560
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
23561
s,@LIBTOOL@,$LIBTOOL,;t t
 
23562
s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
 
23563
s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
 
23564
s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
 
23565
s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
 
23566
s,@SPARC_TRUE@,$SPARC_TRUE,;t t
 
23567
s,@SPARC_FALSE@,$SPARC_FALSE,;t t
 
23568
s,@X86_TRUE@,$X86_TRUE,;t t
 
23569
s,@X86_FALSE@,$X86_FALSE,;t t
 
23570
s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
 
23571
s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
 
23572
s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
 
23573
s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
 
23574
s,@X86_FREEBSD_TRUE@,$X86_FREEBSD_TRUE,;t t
 
23575
s,@X86_FREEBSD_FALSE@,$X86_FREEBSD_FALSE,;t t
 
23576
s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
 
23577
s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
 
23578
s,@IA64_TRUE@,$IA64_TRUE,;t t
 
23579
s,@IA64_FALSE@,$IA64_FALSE,;t t
 
23580
s,@M32R_TRUE@,$M32R_TRUE,;t t
 
23581
s,@M32R_FALSE@,$M32R_FALSE,;t t
 
23582
s,@M68K_TRUE@,$M68K_TRUE,;t t
 
23583
s,@M68K_FALSE@,$M68K_FALSE,;t t
 
23584
s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
 
23585
s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
 
23586
s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
 
23587
s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
 
23588
s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
 
23589
s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
 
23590
s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
 
23591
s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
 
23592
s,@ARM_TRUE@,$ARM_TRUE,;t t
 
23593
s,@ARM_FALSE@,$ARM_FALSE,;t t
 
23594
s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
 
23595
s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
 
23596
s,@FRV_TRUE@,$FRV_TRUE,;t t
 
23597
s,@FRV_FALSE@,$FRV_FALSE,;t t
 
23598
s,@S390_TRUE@,$S390_TRUE,;t t
 
23599
s,@S390_FALSE@,$S390_FALSE,;t t
 
23600
s,@X86_64_TRUE@,$X86_64_TRUE,;t t
 
23601
s,@X86_64_FALSE@,$X86_64_FALSE,;t t
 
23602
s,@SH_TRUE@,$SH_TRUE,;t t
 
23603
s,@SH_FALSE@,$SH_FALSE,;t t
 
23604
s,@SH64_TRUE@,$SH64_TRUE,;t t
 
23605
s,@SH64_FALSE@,$SH64_FALSE,;t t
 
23606
s,@PA_TRUE@,$PA_TRUE,;t t
 
23607
s,@PA_FALSE@,$PA_FALSE,;t t
 
23608
s,@ALLOCA@,$ALLOCA,;t t
 
23609
s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
 
23610
s,@TARGET@,$TARGET,;t t
 
23611
s,@TARGETDIR@,$TARGETDIR,;t t
 
23612
s,@LIBOBJS@,$LIBOBJS,;t t
 
23613
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
23614
CEOF
 
23615
 
 
23616
_ACEOF
 
23617
 
 
23618
  cat >>$CONFIG_STATUS <<\_ACEOF
 
23619
  # Split the substitutions into bite-sized pieces for seds with
 
23620
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
23621
  ac_max_sed_lines=48
 
23622
  ac_sed_frag=1 # Number of current file.
 
23623
  ac_beg=1 # First line for current file.
 
23624
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
23625
  ac_more_lines=:
 
23626
  ac_sed_cmds=
 
23627
  while $ac_more_lines; do
 
23628
    if test $ac_beg -gt 1; then
 
23629
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
23630
    else
 
23631
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
23632
    fi
 
23633
    if test ! -s $tmp/subs.frag; then
 
23634
      ac_more_lines=false
 
23635
    else
 
23636
      # The purpose of the label and of the branching condition is to
 
23637
      # speed up the sed processing (if there are no `@' at all, there
 
23638
      # is no need to browse any of the substitutions).
 
23639
      # These are the two extra sed commands mentioned above.
 
23640
      (echo ':t
 
23641
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
23642
      if test -z "$ac_sed_cmds"; then
 
23643
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
23644
      else
 
23645
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
23646
      fi
 
23647
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
23648
      ac_beg=$ac_end
 
23649
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
23650
    fi
 
23651
  done
 
23652
  if test -z "$ac_sed_cmds"; then
 
23653
    ac_sed_cmds=cat
 
23654
  fi
 
23655
fi # test -n "$CONFIG_FILES"
 
23656
 
 
23657
_ACEOF
 
23658
cat >>$CONFIG_STATUS <<\_ACEOF
 
23659
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
23660
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
23661
  case $ac_file in
 
23662
  - | *:- | *:-:* ) # input from stdin
 
23663
        cat >$tmp/stdin
 
23664
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23665
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23666
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23667
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23668
  * )   ac_file_in=$ac_file.in ;;
 
23669
  esac
 
23670
 
 
23671
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
23672
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23673
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23674
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23675
         X"$ac_file" : 'X\(//\)$' \| \
 
23676
         X"$ac_file" : 'X\(/\)' \| \
 
23677
         .     : '\(.\)' 2>/dev/null ||
 
23678
echo X"$ac_file" |
 
23679
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23680
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23681
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23682
          /^X\(\/\).*/{ s//\1/; q; }
 
23683
          s/.*/./; q'`
 
23684
  { if $as_mkdir_p; then
 
23685
    mkdir -p "$ac_dir"
 
23686
  else
 
23687
    as_dir="$ac_dir"
 
23688
    as_dirs=
 
23689
    while test ! -d "$as_dir"; do
 
23690
      as_dirs="$as_dir $as_dirs"
 
23691
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23692
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23693
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23694
         X"$as_dir" : 'X\(//\)$' \| \
 
23695
         X"$as_dir" : 'X\(/\)' \| \
 
23696
         .     : '\(.\)' 2>/dev/null ||
 
23697
echo X"$as_dir" |
 
23698
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23699
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23700
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23701
          /^X\(\/\).*/{ s//\1/; q; }
 
23702
          s/.*/./; q'`
 
23703
    done
 
23704
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23705
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23706
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23707
   { (exit 1); exit 1; }; }; }
 
23708
 
 
23709
  ac_builddir=.
 
23710
 
 
23711
if test "$ac_dir" != .; then
 
23712
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23713
  # A "../" for each directory in $ac_dir_suffix.
 
23714
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23715
else
 
23716
  ac_dir_suffix= ac_top_builddir=
 
23717
fi
 
23718
 
 
23719
case $srcdir in
 
23720
  .)  # No --srcdir option.  We are building in place.
 
23721
    ac_srcdir=.
 
23722
    if test -z "$ac_top_builddir"; then
 
23723
       ac_top_srcdir=.
 
23724
    else
 
23725
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23726
    fi ;;
 
23727
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23728
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23729
    ac_top_srcdir=$srcdir ;;
 
23730
  *) # Relative path.
 
23731
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23732
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23733
esac
 
23734
 
 
23735
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23736
# the directories may not exist.
 
23737
case `pwd` in
 
23738
.) ac_abs_builddir="$ac_dir";;
 
23739
*)
 
23740
  case "$ac_dir" in
 
23741
  .) ac_abs_builddir=`pwd`;;
 
23742
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23743
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23744
  esac;;
 
23745
esac
 
23746
case $ac_abs_builddir in
 
23747
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23748
*)
 
23749
  case ${ac_top_builddir}. in
 
23750
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23751
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23752
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23753
  esac;;
 
23754
esac
 
23755
case $ac_abs_builddir in
 
23756
.) ac_abs_srcdir=$ac_srcdir;;
 
23757
*)
 
23758
  case $ac_srcdir in
 
23759
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23760
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23761
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23762
  esac;;
 
23763
esac
 
23764
case $ac_abs_builddir in
 
23765
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23766
*)
 
23767
  case $ac_top_srcdir in
 
23768
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23769
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23770
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23771
  esac;;
 
23772
esac
 
23773
 
 
23774
 
 
23775
  case $INSTALL in
 
23776
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23777
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
23778
  esac
 
23779
 
 
23780
  if test x"$ac_file" != x-; then
 
23781
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23782
echo "$as_me: creating $ac_file" >&6;}
 
23783
    rm -f "$ac_file"
 
23784
  fi
 
23785
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23786
  # use $as_me), people would be surprised to read:
 
23787
  #    /* config.h.  Generated by config.status.  */
 
23788
  if test x"$ac_file" = x-; then
 
23789
    configure_input=
 
23790
  else
 
23791
    configure_input="$ac_file.  "
 
23792
  fi
 
23793
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
23794
                                     sed 's,.*/,,'` by configure."
 
23795
 
 
23796
  # First look for the input files in the build tree, otherwise in the
 
23797
  # src tree.
 
23798
  ac_file_inputs=`IFS=:
 
23799
    for f in $ac_file_in; do
 
23800
      case $f in
 
23801
      -) echo $tmp/stdin ;;
 
23802
      [\\/$]*)
 
23803
         # Absolute (can't be DOS-style, as IFS=:)
 
23804
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23805
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23806
   { (exit 1); exit 1; }; }
 
23807
         echo "$f";;
 
23808
      *) # Relative
 
23809
         if test -f "$f"; then
 
23810
           # Build tree
 
23811
           echo "$f"
 
23812
         elif test -f "$srcdir/$f"; then
 
23813
           # Source tree
 
23814
           echo "$srcdir/$f"
 
23815
         else
 
23816
           # /dev/null tree
 
23817
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23818
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23819
   { (exit 1); exit 1; }; }
 
23820
         fi;;
 
23821
      esac
 
23822
    done` || { (exit 1); exit 1; }
 
23823
_ACEOF
 
23824
cat >>$CONFIG_STATUS <<_ACEOF
 
23825
  sed "$ac_vpsub
 
23826
$extrasub
 
23827
_ACEOF
 
23828
cat >>$CONFIG_STATUS <<\_ACEOF
 
23829
:t
 
23830
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23831
s,@configure_input@,$configure_input,;t t
 
23832
s,@srcdir@,$ac_srcdir,;t t
 
23833
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
23834
s,@top_srcdir@,$ac_top_srcdir,;t t
 
23835
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
23836
s,@builddir@,$ac_builddir,;t t
 
23837
s,@abs_builddir@,$ac_abs_builddir,;t t
 
23838
s,@top_builddir@,$ac_top_builddir,;t t
 
23839
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
23840
s,@INSTALL@,$ac_INSTALL,;t t
 
23841
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
23842
  rm -f $tmp/stdin
 
23843
  if test x"$ac_file" != x-; then
 
23844
    mv $tmp/out $ac_file
 
23845
  else
 
23846
    cat $tmp/out
 
23847
    rm -f $tmp/out
 
23848
  fi
 
23849
 
 
23850
done
 
23851
_ACEOF
 
23852
cat >>$CONFIG_STATUS <<\_ACEOF
 
23853
 
 
23854
#
 
23855
# CONFIG_HEADER section.
 
23856
#
 
23857
 
 
23858
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
23859
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
23860
#
 
23861
# ac_d sets the value in "#define NAME VALUE" lines.
 
23862
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
23863
ac_dB='[         ].*$,\1#\2'
 
23864
ac_dC=' '
 
23865
ac_dD=',;t'
 
23866
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
23867
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
23868
ac_uB='$,\1#\2define\3'
 
23869
ac_uC=' '
 
23870
ac_uD=',;t'
 
23871
 
 
23872
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
23873
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
23874
  case $ac_file in
 
23875
  - | *:- | *:-:* ) # input from stdin
 
23876
        cat >$tmp/stdin
 
23877
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23878
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23879
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23880
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23881
  * )   ac_file_in=$ac_file.in ;;
 
23882
  esac
 
23883
 
 
23884
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23885
echo "$as_me: creating $ac_file" >&6;}
 
23886
 
 
23887
  # First look for the input files in the build tree, otherwise in the
 
23888
  # src tree.
 
23889
  ac_file_inputs=`IFS=:
 
23890
    for f in $ac_file_in; do
 
23891
      case $f in
 
23892
      -) echo $tmp/stdin ;;
 
23893
      [\\/$]*)
 
23894
         # Absolute (can't be DOS-style, as IFS=:)
 
23895
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23896
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23897
   { (exit 1); exit 1; }; }
 
23898
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
23899
         echo "$f";;
 
23900
      *) # Relative
 
23901
         if test -f "$f"; then
 
23902
           # Build tree
 
23903
           echo "$f"
 
23904
         elif test -f "$srcdir/$f"; then
 
23905
           # Source tree
 
23906
           echo "$srcdir/$f"
 
23907
         else
 
23908
           # /dev/null tree
 
23909
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23910
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23911
   { (exit 1); exit 1; }; }
 
23912
         fi;;
 
23913
      esac
 
23914
    done` || { (exit 1); exit 1; }
 
23915
  # Remove the trailing spaces.
 
23916
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
23917
 
 
23918
_ACEOF
 
23919
 
 
23920
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
23921
# `conftest.undefs', that substitutes the proper values into
 
23922
# config.h.in to produce config.h.  The first handles `#define'
 
23923
# templates, and the second `#undef' templates.
 
23924
# And first: Protect against being on the right side of a sed subst in
 
23925
# config.status.  Protect against being in an unquoted here document
 
23926
# in config.status.
 
23927
rm -f conftest.defines conftest.undefs
 
23928
# Using a here document instead of a string reduces the quoting nightmare.
 
23929
# Putting comments in sed scripts is not portable.
 
23930
#
 
23931
# `end' is used to avoid that the second main sed command (meant for
 
23932
# 0-ary CPP macros) applies to n-ary macro definitions.
 
23933
# See the Autoconf documentation for `clear'.
 
23934
cat >confdef2sed.sed <<\_ACEOF
 
23935
s/[\\&,]/\\&/g
 
23936
s,[\\$`],\\&,g
 
23937
t clear
 
23938
: clear
 
23939
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
23940
t end
 
23941
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
23942
: end
 
23943
_ACEOF
 
23944
# If some macros were called several times there might be several times
 
23945
# the same #defines, which is useless.  Nevertheless, we may not want to
 
23946
# sort them, since we want the *last* AC-DEFINE to be honored.
 
23947
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
23948
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
23949
rm -f confdef2sed.sed
 
23950
 
 
23951
# This sed command replaces #undef with comments.  This is necessary, for
 
23952
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
23953
# on some systems where configure will not decide to define it.
 
23954
cat >>conftest.undefs <<\_ACEOF
 
23955
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
23956
_ACEOF
 
23957
 
 
23958
# Break up conftest.defines because some shells have a limit on the size
 
23959
# of here documents, and old seds have small limits too (100 cmds).
 
23960
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
23961
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
23962
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
23963
echo '  :' >>$CONFIG_STATUS
 
23964
rm -f conftest.tail
 
23965
while grep . conftest.defines >/dev/null
 
23966
do
 
23967
  # Write a limited-size here document to $tmp/defines.sed.
 
23968
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
23969
  # Speed up: don't consider the non `#define' lines.
 
23970
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
23971
  # Work around the forget-to-reset-the-flag bug.
 
23972
  echo 't clr' >>$CONFIG_STATUS
 
23973
  echo ': clr' >>$CONFIG_STATUS
 
23974
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
23975
  echo 'CEOF
 
23976
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
23977
  rm -f $tmp/in
 
23978
  mv $tmp/out $tmp/in
 
23979
' >>$CONFIG_STATUS
 
23980
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
23981
  rm -f conftest.defines
 
23982
  mv conftest.tail conftest.defines
 
23983
done
 
23984
rm -f conftest.defines
 
23985
echo '  fi # grep' >>$CONFIG_STATUS
 
23986
echo >>$CONFIG_STATUS
 
23987
 
 
23988
# Break up conftest.undefs because some shells have a limit on the size
 
23989
# of here documents, and old seds have small limits too (100 cmds).
 
23990
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
23991
rm -f conftest.tail
 
23992
while grep . conftest.undefs >/dev/null
 
23993
do
 
23994
  # Write a limited-size here document to $tmp/undefs.sed.
 
23995
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
23996
  # Speed up: don't consider the non `#undef'
 
23997
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
23998
  # Work around the forget-to-reset-the-flag bug.
 
23999
  echo 't clr' >>$CONFIG_STATUS
 
24000
  echo ': clr' >>$CONFIG_STATUS
 
24001
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
24002
  echo 'CEOF
 
24003
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
24004
  rm -f $tmp/in
 
24005
  mv $tmp/out $tmp/in
 
24006
' >>$CONFIG_STATUS
 
24007
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
24008
  rm -f conftest.undefs
 
24009
  mv conftest.tail conftest.undefs
 
24010
done
 
24011
rm -f conftest.undefs
 
24012
 
 
24013
cat >>$CONFIG_STATUS <<\_ACEOF
 
24014
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
24015
  # use $as_me), people would be surprised to read:
 
24016
  #    /* config.h.  Generated by config.status.  */
 
24017
  if test x"$ac_file" = x-; then
 
24018
    echo "/* Generated by configure.  */" >$tmp/config.h
 
24019
  else
 
24020
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
24021
  fi
 
24022
  cat $tmp/in >>$tmp/config.h
 
24023
  rm -f $tmp/in
 
24024
  if test x"$ac_file" != x-; then
 
24025
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
24026
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
24027
echo "$as_me: $ac_file is unchanged" >&6;}
 
24028
    else
 
24029
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
24030
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24031
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
24032
         X"$ac_file" : 'X\(//\)$' \| \
 
24033
         X"$ac_file" : 'X\(/\)' \| \
 
24034
         .     : '\(.\)' 2>/dev/null ||
 
24035
echo X"$ac_file" |
 
24036
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24037
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24038
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24039
          /^X\(\/\).*/{ s//\1/; q; }
 
24040
          s/.*/./; q'`
 
24041
      { if $as_mkdir_p; then
 
24042
    mkdir -p "$ac_dir"
 
24043
  else
 
24044
    as_dir="$ac_dir"
 
24045
    as_dirs=
 
24046
    while test ! -d "$as_dir"; do
 
24047
      as_dirs="$as_dir $as_dirs"
 
24048
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24049
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24050
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24051
         X"$as_dir" : 'X\(//\)$' \| \
 
24052
         X"$as_dir" : 'X\(/\)' \| \
 
24053
         .     : '\(.\)' 2>/dev/null ||
 
24054
echo X"$as_dir" |
 
24055
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24056
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24057
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24058
          /^X\(\/\).*/{ s//\1/; q; }
 
24059
          s/.*/./; q'`
 
24060
    done
 
24061
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24062
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
24063
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
24064
   { (exit 1); exit 1; }; }; }
 
24065
 
 
24066
      rm -f $ac_file
 
24067
      mv $tmp/config.h $ac_file
 
24068
    fi
 
24069
  else
 
24070
    cat $tmp/config.h
 
24071
    rm -f $tmp/config.h
 
24072
  fi
 
24073
# Compute $ac_file's index in $config_headers.
 
24074
_am_stamp_count=1
 
24075
for _am_header in $config_headers :; do
 
24076
  case $_am_header in
 
24077
    $ac_file | $ac_file:* )
 
24078
      break ;;
 
24079
    * )
 
24080
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
24081
  esac
 
24082
done
 
24083
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
24084
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24085
         X$ac_file : 'X\(//\)[^/]' \| \
 
24086
         X$ac_file : 'X\(//\)$' \| \
 
24087
         X$ac_file : 'X\(/\)' \| \
 
24088
         .     : '\(.\)' 2>/dev/null ||
 
24089
echo X$ac_file |
 
24090
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24091
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24092
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24093
          /^X\(\/\).*/{ s//\1/; q; }
 
24094
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
24095
done
 
24096
_ACEOF
 
24097
cat >>$CONFIG_STATUS <<\_ACEOF
 
24098
 
 
24099
#
 
24100
# CONFIG_LINKS section.
 
24101
#
 
24102
 
 
24103
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
 
24104
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
24105
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
24106
 
 
24107
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
 
24108
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
 
24109
 
 
24110
  if test ! -r $srcdir/$ac_source; then
 
24111
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
 
24112
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
 
24113
   { (exit 1); exit 1; }; }
 
24114
  fi
 
24115
  rm -f $ac_dest
 
24116
 
 
24117
  # Make relative symlinks.
 
24118
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
24119
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24120
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
24121
         X"$ac_dest" : 'X\(//\)$' \| \
 
24122
         X"$ac_dest" : 'X\(/\)' \| \
 
24123
         .     : '\(.\)' 2>/dev/null ||
 
24124
echo X"$ac_dest" |
 
24125
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24126
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24127
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24128
          /^X\(\/\).*/{ s//\1/; q; }
 
24129
          s/.*/./; q'`
 
24130
  { if $as_mkdir_p; then
 
24131
    mkdir -p "$ac_dest_dir"
 
24132
  else
 
24133
    as_dir="$ac_dest_dir"
 
24134
    as_dirs=
 
24135
    while test ! -d "$as_dir"; do
 
24136
      as_dirs="$as_dir $as_dirs"
 
24137
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24138
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24139
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24140
         X"$as_dir" : 'X\(//\)$' \| \
 
24141
         X"$as_dir" : 'X\(/\)' \| \
 
24142
         .     : '\(.\)' 2>/dev/null ||
 
24143
echo X"$as_dir" |
 
24144
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24145
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24146
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24147
          /^X\(\/\).*/{ s//\1/; q; }
 
24148
          s/.*/./; q'`
 
24149
    done
 
24150
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24151
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
 
24152
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
 
24153
   { (exit 1); exit 1; }; }; }
 
24154
 
 
24155
  ac_builddir=.
 
24156
 
 
24157
if test "$ac_dest_dir" != .; then
 
24158
  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
 
24159
  # A "../" for each directory in $ac_dir_suffix.
 
24160
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
24161
else
 
24162
  ac_dir_suffix= ac_top_builddir=
 
24163
fi
 
24164
 
 
24165
case $srcdir in
 
24166
  .)  # No --srcdir option.  We are building in place.
 
24167
    ac_srcdir=.
 
24168
    if test -z "$ac_top_builddir"; then
 
24169
       ac_top_srcdir=.
 
24170
    else
 
24171
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
24172
    fi ;;
 
24173
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
24174
    ac_srcdir=$srcdir$ac_dir_suffix;
 
24175
    ac_top_srcdir=$srcdir ;;
 
24176
  *) # Relative path.
 
24177
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
24178
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
24179
esac
 
24180
 
 
24181
# Do not use `cd foo && pwd` to compute absolute paths, because
 
24182
# the directories may not exist.
 
24183
case `pwd` in
 
24184
.) ac_abs_builddir="$ac_dest_dir";;
 
24185
*)
 
24186
  case "$ac_dest_dir" in
 
24187
  .) ac_abs_builddir=`pwd`;;
 
24188
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
 
24189
  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
 
24190
  esac;;
 
24191
esac
 
24192
case $ac_abs_builddir in
 
24193
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24194
*)
 
24195
  case ${ac_top_builddir}. in
 
24196
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
24197
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24198
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
24199
  esac;;
 
24200
esac
 
24201
case $ac_abs_builddir in
 
24202
.) ac_abs_srcdir=$ac_srcdir;;
 
24203
*)
 
24204
  case $ac_srcdir in
 
24205
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
24206
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
24207
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
24208
  esac;;
 
24209
esac
 
24210
case $ac_abs_builddir in
 
24211
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24212
*)
 
24213
  case $ac_top_srcdir in
 
24214
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
24215
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24216
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
24217
  esac;;
 
24218
esac
 
24219
 
 
24220
 
 
24221
  case $srcdir in
 
24222
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
 
24223
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
 
24224
  esac
 
24225
 
 
24226
  # Try a symlink, then a hard link, then a copy.
 
24227
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
 
24228
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
 
24229
    cp -p $srcdir/$ac_source $ac_dest ||
 
24230
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
 
24231
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
 
24232
   { (exit 1); exit 1; }; }
 
24233
done
 
24234
_ACEOF
 
24235
cat >>$CONFIG_STATUS <<\_ACEOF
 
24236
 
 
24237
#
 
24238
# CONFIG_COMMANDS section.
 
24239
#
 
24240
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
24241
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
24242
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
24243
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
24244
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24245
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
24246
         X"$ac_dest" : 'X\(//\)$' \| \
 
24247
         X"$ac_dest" : 'X\(/\)' \| \
 
24248
         .     : '\(.\)' 2>/dev/null ||
 
24249
echo X"$ac_dest" |
 
24250
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24251
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24252
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24253
          /^X\(\/\).*/{ s//\1/; q; }
 
24254
          s/.*/./; q'`
 
24255
  { if $as_mkdir_p; then
 
24256
    mkdir -p "$ac_dir"
 
24257
  else
 
24258
    as_dir="$ac_dir"
 
24259
    as_dirs=
 
24260
    while test ! -d "$as_dir"; do
 
24261
      as_dirs="$as_dir $as_dirs"
 
24262
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24263
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24264
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24265
         X"$as_dir" : 'X\(//\)$' \| \
 
24266
         X"$as_dir" : 'X\(/\)' \| \
 
24267
         .     : '\(.\)' 2>/dev/null ||
 
24268
echo X"$as_dir" |
 
24269
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24270
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24271
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24272
          /^X\(\/\).*/{ s//\1/; q; }
 
24273
          s/.*/./; q'`
 
24274
    done
 
24275
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24276
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
24277
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
24278
   { (exit 1); exit 1; }; }; }
 
24279
 
 
24280
  ac_builddir=.
 
24281
 
 
24282
if test "$ac_dir" != .; then
 
24283
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
24284
  # A "../" for each directory in $ac_dir_suffix.
 
24285
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
24286
else
 
24287
  ac_dir_suffix= ac_top_builddir=
 
24288
fi
 
24289
 
 
24290
case $srcdir in
 
24291
  .)  # No --srcdir option.  We are building in place.
 
24292
    ac_srcdir=.
 
24293
    if test -z "$ac_top_builddir"; then
 
24294
       ac_top_srcdir=.
 
24295
    else
 
24296
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
24297
    fi ;;
 
24298
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
24299
    ac_srcdir=$srcdir$ac_dir_suffix;
 
24300
    ac_top_srcdir=$srcdir ;;
 
24301
  *) # Relative path.
 
24302
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
24303
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
24304
esac
 
24305
 
 
24306
# Do not use `cd foo && pwd` to compute absolute paths, because
 
24307
# the directories may not exist.
 
24308
case `pwd` in
 
24309
.) ac_abs_builddir="$ac_dir";;
 
24310
*)
 
24311
  case "$ac_dir" in
 
24312
  .) ac_abs_builddir=`pwd`;;
 
24313
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
24314
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
24315
  esac;;
 
24316
esac
 
24317
case $ac_abs_builddir in
 
24318
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24319
*)
 
24320
  case ${ac_top_builddir}. in
 
24321
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
24322
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
24323
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
24324
  esac;;
 
24325
esac
 
24326
case $ac_abs_builddir in
 
24327
.) ac_abs_srcdir=$ac_srcdir;;
 
24328
*)
 
24329
  case $ac_srcdir in
 
24330
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
24331
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
24332
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
24333
  esac;;
 
24334
esac
 
24335
case $ac_abs_builddir in
 
24336
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24337
*)
 
24338
  case $ac_top_srcdir in
 
24339
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
24340
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
24341
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
24342
  esac;;
 
24343
esac
 
24344
 
 
24345
 
 
24346
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
24347
echo "$as_me: executing $ac_dest commands" >&6;}
 
24348
  case $ac_dest in
 
24349
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
24350
  # Strip MF so we end up with the name of the file.
 
24351
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
24352
  # Check whether this is an Automake generated Makefile or not.
 
24353
  # We used to match only the files named `Makefile.in', but
 
24354
  # some people rename them; so instead we look at the file content.
 
24355
  # Grep'ing the first line is not enough: some people post-process
 
24356
  # each Makefile.in and add a new line on top of each file to say so.
 
24357
  # So let's grep whole file.
 
24358
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
24359
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
24360
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24361
         X"$mf" : 'X\(//\)[^/]' \| \
 
24362
         X"$mf" : 'X\(//\)$' \| \
 
24363
         X"$mf" : 'X\(/\)' \| \
 
24364
         .     : '\(.\)' 2>/dev/null ||
 
24365
echo X"$mf" |
 
24366
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24367
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24368
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24369
          /^X\(\/\).*/{ s//\1/; q; }
 
24370
          s/.*/./; q'`
 
24371
  else
 
24372
    continue
 
24373
  fi
 
24374
  # Extract the definition of DEPDIR, am__include, and am__quote
 
24375
  # from the Makefile without running `make'.
 
24376
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
24377
  test -z "$DEPDIR" && continue
 
24378
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
24379
  test -z "am__include" && continue
 
24380
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
24381
  # When using ansi2knr, U may be empty or an underscore; expand it
 
24382
  U=`sed -n 's/^U = //p' < "$mf"`
 
24383
  # Find all dependency output files, they are included files with
 
24384
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
24385
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
24386
  # expansion.
 
24387
  for file in `sed -n "
 
24388
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
24389
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
24390
    # Make sure the directory exists.
 
24391
    test -f "$dirpart/$file" && continue
 
24392
    fdir=`(dirname "$file") 2>/dev/null ||
 
24393
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24394
         X"$file" : 'X\(//\)[^/]' \| \
 
24395
         X"$file" : 'X\(//\)$' \| \
 
24396
         X"$file" : 'X\(/\)' \| \
 
24397
         .     : '\(.\)' 2>/dev/null ||
 
24398
echo X"$file" |
 
24399
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24400
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24401
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24402
          /^X\(\/\).*/{ s//\1/; q; }
 
24403
          s/.*/./; q'`
 
24404
    { if $as_mkdir_p; then
 
24405
    mkdir -p $dirpart/$fdir
 
24406
  else
 
24407
    as_dir=$dirpart/$fdir
 
24408
    as_dirs=
 
24409
    while test ! -d "$as_dir"; do
 
24410
      as_dirs="$as_dir $as_dirs"
 
24411
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24412
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24413
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24414
         X"$as_dir" : 'X\(//\)$' \| \
 
24415
         X"$as_dir" : 'X\(/\)' \| \
 
24416
         .     : '\(.\)' 2>/dev/null ||
 
24417
echo X"$as_dir" |
 
24418
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24419
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24420
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24421
          /^X\(\/\).*/{ s//\1/; q; }
 
24422
          s/.*/./; q'`
 
24423
    done
 
24424
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24425
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
24426
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
24427
   { (exit 1); exit 1; }; }; }
 
24428
 
 
24429
    # echo "creating $dirpart/$file"
 
24430
    echo '# dummy' > "$dirpart/$file"
 
24431
  done
 
24432
done
 
24433
 ;;
 
24434
    include ) test -d include || mkdir include ;;
 
24435
    src )
 
24436
test -d src || mkdir src
 
24437
test -d src/$TARGETDIR || mkdir src/$TARGETDIR
 
24438
 ;;
 
24439
  esac
 
24440
done
 
24441
_ACEOF
 
24442
 
 
24443
cat >>$CONFIG_STATUS <<\_ACEOF
 
24444
 
 
24445
{ (exit 0); exit 0; }
 
24446
_ACEOF
 
24447
chmod +x $CONFIG_STATUS
 
24448
ac_clean_files=$ac_clean_files_save
 
24449
 
 
24450
 
 
24451
# configure is writing to config.log, and then calls config.status.
 
24452
# config.status does its own redirection, appending to config.log.
 
24453
# Unfortunately, on DOS this fails, as config.log is still kept open
 
24454
# by configure, so config.status won't be able to write to it; its
 
24455
# output is simply discarded.  So we exec the FD to /dev/null,
 
24456
# effectively closing config.log, so it can be properly (re)opened and
 
24457
# appended to by config.status.  When coming back to configure, we
 
24458
# need to make the FD available again.
 
24459
if test "$no_create" != yes; then
 
24460
  ac_cs_success=:
 
24461
  ac_config_status_args=
 
24462
  test "$silent" = yes &&
 
24463
    ac_config_status_args="$ac_config_status_args --quiet"
 
24464
  exec 5>/dev/null
 
24465
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
24466
  exec 5>>config.log
 
24467
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
24468
  # would make configure fail if this is the last instruction.
 
24469
  $ac_cs_success || { (exit 1); exit 1; }
 
24470
fi
 
24471