~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to autoconf-lib-link/tests/rpathx/configure

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

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.57.
 
4
#
 
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
6
# Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be Bourne compatible
 
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
15
  emulate sh
 
16
  NULLCMD=:
 
17
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18
  # is contrary to our usage.  Disable this feature.
 
19
  alias -g '${1+"$@"}'='"$@"'
 
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
21
  set -o posix
 
22
fi
 
23
 
 
24
# Support unset when possible.
 
25
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  as_mkdir_p=false
 
222
fi
 
223
 
 
224
as_executable_p="test -f"
 
225
 
 
226
# Sed expression to map a string onto a valid CPP name.
 
227
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
228
 
 
229
# Sed expression to map a string onto a valid variable name.
 
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
231
 
 
232
 
 
233
# IFS
 
234
# We need space, tab and new line, in precisely that order.
 
235
as_nl='
 
236
'
 
237
IFS="   $as_nl"
 
238
 
 
239
# CDPATH.
 
240
$as_unset CDPATH
 
241
 
 
242
 
 
243
 
 
244
# Check that we are running under the correct shell.
 
245
SHELL=${CONFIG_SHELL-/bin/sh}
 
246
 
 
247
case X$ECHO in
 
248
X*--fallback-echo)
 
249
  # Remove one level of quotation (which was required for Make).
 
250
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
251
  ;;
 
252
esac
 
253
 
 
254
echo=${ECHO-echo}
 
255
if test "X$1" = X--no-reexec; then
 
256
  # Discard the --no-reexec flag, and continue.
 
257
  shift
 
258
elif test "X$1" = X--fallback-echo; then
 
259
  # Avoid inline document here, it may be left over
 
260
  :
 
261
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
262
  # Yippee, $echo works!
 
263
  :
 
264
else
 
265
  # Restart under the correct shell.
 
266
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
267
fi
 
268
 
 
269
if test "X$1" = X--fallback-echo; then
 
270
  # used as fallback echo
 
271
  shift
 
272
  cat <<EOF
 
273
$*
 
274
EOF
 
275
  exit 0
 
276
fi
 
277
 
 
278
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
279
# if CDPATH is set.
 
280
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
281
 
 
282
if test -z "$ECHO"; then
 
283
if test "X${echo_test_string+set}" != Xset; then
 
284
# find a string as large as possible, as long as the shell can cope with it
 
285
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
286
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
287
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
288
       echo_test_string="`eval $cmd`" &&
 
289
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
290
    then
 
291
      break
 
292
    fi
 
293
  done
 
294
fi
 
295
 
 
296
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
297
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
298
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
299
  :
 
300
else
 
301
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
302
  # backslashes.  This makes it impossible to quote backslashes using
 
303
  #   echo "$something" | sed 's/\\/\\\\/g'
 
304
  #
 
305
  # So, first we look for a working echo in the user's PATH.
 
306
 
 
307
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
308
  for dir in $PATH /usr/ucb; do
 
309
    IFS="$lt_save_ifs"
 
310
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
311
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
312
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
313
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
314
      echo="$dir/echo"
 
315
      break
 
316
    fi
 
317
  done
 
318
  IFS="$lt_save_ifs"
 
319
 
 
320
  if test "X$echo" = Xecho; then
 
321
    # We didn't find a better echo, so look for alternatives.
 
322
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
323
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
324
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
325
      # This shell has a builtin print -r that does the trick.
 
326
      echo='print -r'
 
327
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
328
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
329
      # If we have ksh, try running configure again with it.
 
330
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
331
      export ORIGINAL_CONFIG_SHELL
 
332
      CONFIG_SHELL=/bin/ksh
 
333
      export CONFIG_SHELL
 
334
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
335
    else
 
336
      # Try using printf.
 
337
      echo='printf %s\n'
 
338
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
339
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
340
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
341
        # Cool, printf works
 
342
        :
 
343
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
344
           test "X$echo_testing_string" = 'X\t' &&
 
345
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
346
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
347
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
348
        export CONFIG_SHELL
 
349
        SHELL="$CONFIG_SHELL"
 
350
        export SHELL
 
351
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
352
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
353
           test "X$echo_testing_string" = 'X\t' &&
 
354
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
355
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
356
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
357
      else
 
358
        # maybe with a smaller string...
 
359
        prev=:
 
360
 
 
361
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
362
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
363
          then
 
364
            break
 
365
          fi
 
366
          prev="$cmd"
 
367
        done
 
368
 
 
369
        if test "$prev" != 'sed 50q "$0"'; then
 
370
          echo_test_string=`eval $prev`
 
371
          export echo_test_string
 
372
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
373
        else
 
374
          # Oops.  We lost completely, so just stick with echo.
 
375
          echo=echo
 
376
        fi
 
377
      fi
 
378
    fi
 
379
  fi
 
380
fi
 
381
fi
 
382
 
 
383
# Copy echo and quote the copy suitably for passing to libtool from
 
384
# the Makefile, instead of quoting the original, which is used later.
 
385
ECHO=$echo
 
386
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
387
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
388
fi
 
389
 
 
390
 
 
391
 
 
392
 
 
393
tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
 
394
 
 
395
tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
 
396
 
 
397
# Name of the host.
 
398
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
399
# so uname gets run too.
 
400
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
401
 
 
402
exec 6>&1
 
403
 
 
404
#
 
405
# Initializations.
 
406
#
 
407
ac_default_prefix=/usr/local
 
408
ac_config_libobj_dir=.
 
409
cross_compiling=no
 
410
subdirs=
 
411
MFLAGS=
 
412
MAKEFLAGS=
 
413
SHELL=${CONFIG_SHELL-/bin/sh}
 
414
 
 
415
# Maximum number of lines to put in a shell here document.
 
416
# This variable seems obsolete.  It should probably be removed, and
 
417
# only ac_max_sed_lines should be used.
 
418
: ${ac_max_here_lines=38}
 
419
 
 
420
# Identity of this package.
 
421
PACKAGE_NAME=
 
422
PACKAGE_TARNAME=
 
423
PACKAGE_VERSION=
 
424
PACKAGE_STRING=
 
425
PACKAGE_BUGREPORT=
 
426
 
 
427
ac_unique_file="configure.ac"
 
428
# Factoring default headers for most tests.
 
429
ac_includes_default="\
 
430
#include <stdio.h>
 
431
#if HAVE_SYS_TYPES_H
 
432
# include <sys/types.h>
 
433
#endif
 
434
#if HAVE_SYS_STAT_H
 
435
# include <sys/stat.h>
 
436
#endif
 
437
#if STDC_HEADERS
 
438
# include <stdlib.h>
 
439
# include <stddef.h>
 
440
#else
 
441
# if HAVE_STDLIB_H
 
442
#  include <stdlib.h>
 
443
# endif
 
444
#endif
 
445
#if HAVE_STRING_H
 
446
# if !STDC_HEADERS && HAVE_MEMORY_H
 
447
#  include <memory.h>
 
448
# endif
 
449
# include <string.h>
 
450
#endif
 
451
#if HAVE_STRINGS_H
 
452
# include <strings.h>
 
453
#endif
 
454
#if HAVE_INTTYPES_H
 
455
# include <inttypes.h>
 
456
#else
 
457
# if HAVE_STDINT_H
 
458
#  include <stdint.h>
 
459
# endif
 
460
#endif
 
461
#if HAVE_UNISTD_H
 
462
# include <unistd.h>
 
463
#endif"
 
464
 
 
465
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL global_top_auxdir LIBOBJS LTLIBOBJS'
 
466
ac_subst_files=''
 
467
 
 
468
# Initialize some variables set by options.
 
469
ac_init_help=
 
470
ac_init_version=false
 
471
# The variables have the same names as the options, with
 
472
# dashes changed to underlines.
 
473
cache_file=/dev/null
 
474
exec_prefix=NONE
 
475
no_create=
 
476
no_recursion=
 
477
prefix=NONE
 
478
program_prefix=NONE
 
479
program_suffix=NONE
 
480
program_transform_name=s,x,x,
 
481
silent=
 
482
site=
 
483
srcdir=
 
484
verbose=
 
485
x_includes=NONE
 
486
x_libraries=NONE
 
487
 
 
488
# Installation directory options.
 
489
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
490
# and all the variables that are supposed to be based on exec_prefix
 
491
# by default will actually change.
 
492
# Use braces instead of parens because sh, perl, etc. also accept them.
 
493
bindir='${exec_prefix}/bin'
 
494
sbindir='${exec_prefix}/sbin'
 
495
libexecdir='${exec_prefix}/libexec'
 
496
datadir='${prefix}/share'
 
497
sysconfdir='${prefix}/etc'
 
498
sharedstatedir='${prefix}/com'
 
499
localstatedir='${prefix}/var'
 
500
libdir='${exec_prefix}/lib'
 
501
includedir='${prefix}/include'
 
502
oldincludedir='/usr/include'
 
503
infodir='${prefix}/info'
 
504
mandir='${prefix}/man'
 
505
 
 
506
ac_prev=
 
507
for ac_option
 
508
do
 
509
  # If the previous option needs an argument, assign it.
 
510
  if test -n "$ac_prev"; then
 
511
    eval "$ac_prev=\$ac_option"
 
512
    ac_prev=
 
513
    continue
 
514
  fi
 
515
 
 
516
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
517
 
 
518
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
519
 
 
520
  case $ac_option in
 
521
 
 
522
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
523
    ac_prev=bindir ;;
 
524
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
525
    bindir=$ac_optarg ;;
 
526
 
 
527
  -build | --build | --buil | --bui | --bu)
 
528
    ac_prev=build_alias ;;
 
529
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
530
    build_alias=$ac_optarg ;;
 
531
 
 
532
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
533
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
534
    ac_prev=cache_file ;;
 
535
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
536
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
537
    cache_file=$ac_optarg ;;
 
538
 
 
539
  --config-cache | -C)
 
540
    cache_file=config.cache ;;
 
541
 
 
542
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
543
    ac_prev=datadir ;;
 
544
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
545
  | --da=*)
 
546
    datadir=$ac_optarg ;;
 
547
 
 
548
  -disable-* | --disable-*)
 
549
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
550
    # Reject names that are not valid shell variable names.
 
551
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
552
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
553
   { (exit 1); exit 1; }; }
 
554
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
555
    eval "enable_$ac_feature=no" ;;
 
556
 
 
557
  -enable-* | --enable-*)
 
558
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
559
    # Reject names that are not valid shell variable names.
 
560
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
561
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
562
   { (exit 1); exit 1; }; }
 
563
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
564
    case $ac_option in
 
565
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
566
      *) ac_optarg=yes ;;
 
567
    esac
 
568
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
569
 
 
570
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
571
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
572
  | --exec | --exe | --ex)
 
573
    ac_prev=exec_prefix ;;
 
574
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
575
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
576
  | --exec=* | --exe=* | --ex=*)
 
577
    exec_prefix=$ac_optarg ;;
 
578
 
 
579
  -gas | --gas | --ga | --g)
 
580
    # Obsolete; use --with-gas.
 
581
    with_gas=yes ;;
 
582
 
 
583
  -help | --help | --hel | --he | -h)
 
584
    ac_init_help=long ;;
 
585
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
586
    ac_init_help=recursive ;;
 
587
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
588
    ac_init_help=short ;;
 
589
 
 
590
  -host | --host | --hos | --ho)
 
591
    ac_prev=host_alias ;;
 
592
  -host=* | --host=* | --hos=* | --ho=*)
 
593
    host_alias=$ac_optarg ;;
 
594
 
 
595
  -includedir | --includedir | --includedi | --included | --include \
 
596
  | --includ | --inclu | --incl | --inc)
 
597
    ac_prev=includedir ;;
 
598
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
599
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
600
    includedir=$ac_optarg ;;
 
601
 
 
602
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
603
    ac_prev=infodir ;;
 
604
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
605
    infodir=$ac_optarg ;;
 
606
 
 
607
  -libdir | --libdir | --libdi | --libd)
 
608
    ac_prev=libdir ;;
 
609
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
610
    libdir=$ac_optarg ;;
 
611
 
 
612
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
613
  | --libexe | --libex | --libe)
 
614
    ac_prev=libexecdir ;;
 
615
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
616
  | --libexe=* | --libex=* | --libe=*)
 
617
    libexecdir=$ac_optarg ;;
 
618
 
 
619
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
620
  | --localstate | --localstat | --localsta | --localst \
 
621
  | --locals | --local | --loca | --loc | --lo)
 
622
    ac_prev=localstatedir ;;
 
623
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
624
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
625
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
626
    localstatedir=$ac_optarg ;;
 
627
 
 
628
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
629
    ac_prev=mandir ;;
 
630
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
631
    mandir=$ac_optarg ;;
 
632
 
 
633
  -nfp | --nfp | --nf)
 
634
    # Obsolete; use --without-fp.
 
635
    with_fp=no ;;
 
636
 
 
637
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
638
  | --no-cr | --no-c | -n)
 
639
    no_create=yes ;;
 
640
 
 
641
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
642
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
643
    no_recursion=yes ;;
 
644
 
 
645
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
646
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
647
  | --oldin | --oldi | --old | --ol | --o)
 
648
    ac_prev=oldincludedir ;;
 
649
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
650
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
651
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
652
    oldincludedir=$ac_optarg ;;
 
653
 
 
654
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
655
    ac_prev=prefix ;;
 
656
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
657
    prefix=$ac_optarg ;;
 
658
 
 
659
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
660
  | --program-pre | --program-pr | --program-p)
 
661
    ac_prev=program_prefix ;;
 
662
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
663
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
664
    program_prefix=$ac_optarg ;;
 
665
 
 
666
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
667
  | --program-suf | --program-su | --program-s)
 
668
    ac_prev=program_suffix ;;
 
669
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
670
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
671
    program_suffix=$ac_optarg ;;
 
672
 
 
673
  -program-transform-name | --program-transform-name \
 
674
  | --program-transform-nam | --program-transform-na \
 
675
  | --program-transform-n | --program-transform- \
 
676
  | --program-transform | --program-transfor \
 
677
  | --program-transfo | --program-transf \
 
678
  | --program-trans | --program-tran \
 
679
  | --progr-tra | --program-tr | --program-t)
 
680
    ac_prev=program_transform_name ;;
 
681
  -program-transform-name=* | --program-transform-name=* \
 
682
  | --program-transform-nam=* | --program-transform-na=* \
 
683
  | --program-transform-n=* | --program-transform-=* \
 
684
  | --program-transform=* | --program-transfor=* \
 
685
  | --program-transfo=* | --program-transf=* \
 
686
  | --program-trans=* | --program-tran=* \
 
687
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
688
    program_transform_name=$ac_optarg ;;
 
689
 
 
690
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
691
  | -silent | --silent | --silen | --sile | --sil)
 
692
    silent=yes ;;
 
693
 
 
694
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
695
    ac_prev=sbindir ;;
 
696
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
697
  | --sbi=* | --sb=*)
 
698
    sbindir=$ac_optarg ;;
 
699
 
 
700
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
701
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
702
  | --sharedst | --shareds | --shared | --share | --shar \
 
703
  | --sha | --sh)
 
704
    ac_prev=sharedstatedir ;;
 
705
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
706
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
707
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
708
  | --sha=* | --sh=*)
 
709
    sharedstatedir=$ac_optarg ;;
 
710
 
 
711
  -site | --site | --sit)
 
712
    ac_prev=site ;;
 
713
  -site=* | --site=* | --sit=*)
 
714
    site=$ac_optarg ;;
 
715
 
 
716
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
717
    ac_prev=srcdir ;;
 
718
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
719
    srcdir=$ac_optarg ;;
 
720
 
 
721
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
722
  | --syscon | --sysco | --sysc | --sys | --sy)
 
723
    ac_prev=sysconfdir ;;
 
724
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
725
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
726
    sysconfdir=$ac_optarg ;;
 
727
 
 
728
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
729
    ac_prev=target_alias ;;
 
730
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
731
    target_alias=$ac_optarg ;;
 
732
 
 
733
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
734
    verbose=yes ;;
 
735
 
 
736
  -version | --version | --versio | --versi | --vers | -V)
 
737
    ac_init_version=: ;;
 
738
 
 
739
  -with-* | --with-*)
 
740
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
741
    # Reject names that are not valid shell variable names.
 
742
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
743
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
744
   { (exit 1); exit 1; }; }
 
745
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
746
    case $ac_option in
 
747
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
748
      *) ac_optarg=yes ;;
 
749
    esac
 
750
    eval "with_$ac_package='$ac_optarg'" ;;
 
751
 
 
752
  -without-* | --without-*)
 
753
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
754
    # Reject names that are not valid shell variable names.
 
755
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
756
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
757
   { (exit 1); exit 1; }; }
 
758
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
759
    eval "with_$ac_package=no" ;;
 
760
 
 
761
  --x)
 
762
    # Obsolete; use --with-x.
 
763
    with_x=yes ;;
 
764
 
 
765
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
766
  | --x-incl | --x-inc | --x-in | --x-i)
 
767
    ac_prev=x_includes ;;
 
768
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
769
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
770
    x_includes=$ac_optarg ;;
 
771
 
 
772
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
773
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
774
    ac_prev=x_libraries ;;
 
775
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
776
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
777
    x_libraries=$ac_optarg ;;
 
778
 
 
779
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
780
Try \`$0 --help' for more information." >&2
 
781
   { (exit 1); exit 1; }; }
 
782
    ;;
 
783
 
 
784
  *=*)
 
785
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
786
    # Reject names that are not valid shell variable names.
 
787
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
788
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
789
   { (exit 1); exit 1; }; }
 
790
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
791
    eval "$ac_envvar='$ac_optarg'"
 
792
    export $ac_envvar ;;
 
793
 
 
794
  *)
 
795
    # FIXME: should be removed in autoconf 3.0.
 
796
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
797
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
798
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
799
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
800
    ;;
 
801
 
 
802
  esac
 
803
done
 
804
 
 
805
if test -n "$ac_prev"; then
 
806
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
807
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
808
   { (exit 1); exit 1; }; }
 
809
fi
 
810
 
 
811
# Be sure to have absolute paths.
 
812
for ac_var in exec_prefix prefix
 
813
do
 
814
  eval ac_val=$`echo $ac_var`
 
815
  case $ac_val in
 
816
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
817
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
818
   { (exit 1); exit 1; }; };;
 
819
  esac
 
820
done
 
821
 
 
822
# Be sure to have absolute paths.
 
823
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
824
              localstatedir libdir includedir oldincludedir infodir mandir
 
825
do
 
826
  eval ac_val=$`echo $ac_var`
 
827
  case $ac_val in
 
828
    [\\/$]* | ?:[\\/]* ) ;;
 
829
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
830
   { (exit 1); exit 1; }; };;
 
831
  esac
 
832
done
 
833
 
 
834
# There might be people who depend on the old broken behavior: `$host'
 
835
# used to hold the argument of --host etc.
 
836
# FIXME: To remove some day.
 
837
build=$build_alias
 
838
host=$host_alias
 
839
target=$target_alias
 
840
 
 
841
# FIXME: To remove some day.
 
842
if test "x$host_alias" != x; then
 
843
  if test "x$build_alias" = x; then
 
844
    cross_compiling=maybe
 
845
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
846
    If a cross compiler is detected then cross compile mode will be used." >&2
 
847
  elif test "x$build_alias" != "x$host_alias"; then
 
848
    cross_compiling=yes
 
849
  fi
 
850
fi
 
851
 
 
852
ac_tool_prefix=
 
853
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
854
 
 
855
test "$silent" = yes && exec 6>/dev/null
 
856
 
 
857
 
 
858
# Find the source files, if location was not specified.
 
859
if test -z "$srcdir"; then
 
860
  ac_srcdir_defaulted=yes
 
861
  # Try the directory containing this script, then its parent.
 
862
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
863
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
864
         X"$0" : 'X\(//\)[^/]' \| \
 
865
         X"$0" : 'X\(//\)$' \| \
 
866
         X"$0" : 'X\(/\)' \| \
 
867
         .     : '\(.\)' 2>/dev/null ||
 
868
echo X"$0" |
 
869
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
870
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
871
          /^X\(\/\/\)$/{ s//\1/; q; }
 
872
          /^X\(\/\).*/{ s//\1/; q; }
 
873
          s/.*/./; q'`
 
874
  srcdir=$ac_confdir
 
875
  if test ! -r $srcdir/$ac_unique_file; then
 
876
    srcdir=..
 
877
  fi
 
878
else
 
879
  ac_srcdir_defaulted=no
 
880
fi
 
881
if test ! -r $srcdir/$ac_unique_file; then
 
882
  if test "$ac_srcdir_defaulted" = yes; then
 
883
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
884
   { (exit 1); exit 1; }; }
 
885
  else
 
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
887
   { (exit 1); exit 1; }; }
 
888
  fi
 
889
fi
 
890
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
891
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
892
   { (exit 1); exit 1; }; }
 
893
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
894
ac_env_build_alias_set=${build_alias+set}
 
895
ac_env_build_alias_value=$build_alias
 
896
ac_cv_env_build_alias_set=${build_alias+set}
 
897
ac_cv_env_build_alias_value=$build_alias
 
898
ac_env_host_alias_set=${host_alias+set}
 
899
ac_env_host_alias_value=$host_alias
 
900
ac_cv_env_host_alias_set=${host_alias+set}
 
901
ac_cv_env_host_alias_value=$host_alias
 
902
ac_env_target_alias_set=${target_alias+set}
 
903
ac_env_target_alias_value=$target_alias
 
904
ac_cv_env_target_alias_set=${target_alias+set}
 
905
ac_cv_env_target_alias_value=$target_alias
 
906
ac_env_CC_set=${CC+set}
 
907
ac_env_CC_value=$CC
 
908
ac_cv_env_CC_set=${CC+set}
 
909
ac_cv_env_CC_value=$CC
 
910
ac_env_CFLAGS_set=${CFLAGS+set}
 
911
ac_env_CFLAGS_value=$CFLAGS
 
912
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_cv_env_CFLAGS_value=$CFLAGS
 
914
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
915
ac_env_LDFLAGS_value=$LDFLAGS
 
916
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
918
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
919
ac_env_CPPFLAGS_value=$CPPFLAGS
 
920
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_env_CPP_set=${CPP+set}
 
923
ac_env_CPP_value=$CPP
 
924
ac_cv_env_CPP_set=${CPP+set}
 
925
ac_cv_env_CPP_value=$CPP
 
926
ac_env_CXX_set=${CXX+set}
 
927
ac_env_CXX_value=$CXX
 
928
ac_cv_env_CXX_set=${CXX+set}
 
929
ac_cv_env_CXX_value=$CXX
 
930
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
931
ac_env_CXXFLAGS_value=$CXXFLAGS
 
932
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
933
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
934
ac_env_CXXCPP_set=${CXXCPP+set}
 
935
ac_env_CXXCPP_value=$CXXCPP
 
936
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
937
ac_cv_env_CXXCPP_value=$CXXCPP
 
938
ac_env_F77_set=${F77+set}
 
939
ac_env_F77_value=$F77
 
940
ac_cv_env_F77_set=${F77+set}
 
941
ac_cv_env_F77_value=$F77
 
942
ac_env_FFLAGS_set=${FFLAGS+set}
 
943
ac_env_FFLAGS_value=$FFLAGS
 
944
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_cv_env_FFLAGS_value=$FFLAGS
 
946
 
 
947
#
 
948
# Report the --help message.
 
949
#
 
950
if test "$ac_init_help" = "long"; then
 
951
  # Omit some internal or obsolete options to make the list less imposing.
 
952
  # This message is too long to be a string in the A/UX 3.1 sh.
 
953
  cat <<_ACEOF
 
954
\`configure' configures this package to adapt to many kinds of systems.
 
955
 
 
956
Usage: $0 [OPTION]... [VAR=VALUE]...
 
957
 
 
958
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
959
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
960
 
 
961
Defaults for the options are specified in brackets.
 
962
 
 
963
Configuration:
 
964
  -h, --help              display this help and exit
 
965
      --help=short        display options specific to this package
 
966
      --help=recursive    display the short help of all the included packages
 
967
  -V, --version           display version information and exit
 
968
  -q, --quiet, --silent   do not print \`checking...' messages
 
969
      --cache-file=FILE   cache test results in FILE [disabled]
 
970
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
971
  -n, --no-create         do not create output files
 
972
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
973
 
 
974
_ACEOF
 
975
 
 
976
  cat <<_ACEOF
 
977
Installation directories:
 
978
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
979
                          [$ac_default_prefix]
 
980
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
981
                          [PREFIX]
 
982
 
 
983
By default, \`make install' will install all the files in
 
984
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
985
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
986
for instance \`--prefix=\$HOME'.
 
987
 
 
988
For better control, use the options below.
 
989
 
 
990
Fine tuning of the installation directories:
 
991
  --bindir=DIR           user executables [EPREFIX/bin]
 
992
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
993
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
994
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
995
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
996
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
997
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
998
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
999
  --includedir=DIR       C header files [PREFIX/include]
 
1000
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1001
  --infodir=DIR          info documentation [PREFIX/info]
 
1002
  --mandir=DIR           man documentation [PREFIX/man]
 
1003
_ACEOF
 
1004
 
 
1005
  cat <<\_ACEOF
 
1006
 
 
1007
Program names:
 
1008
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1009
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1010
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1011
 
 
1012
System types:
 
1013
  --build=BUILD     configure for building on BUILD [guessed]
 
1014
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1015
_ACEOF
 
1016
fi
 
1017
 
 
1018
if test -n "$ac_init_help"; then
 
1019
 
 
1020
  cat <<\_ACEOF
 
1021
 
 
1022
Optional Features:
 
1023
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1024
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1025
  --disable-dependency-tracking Speeds up one-time builds
 
1026
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1027
  --enable-shared[=PKGS]
 
1028
                          build shared libraries [default=yes]
 
1029
  --enable-static[=PKGS]
 
1030
                          build static libraries [default=yes]
 
1031
  --enable-fast-install[=PKGS]
 
1032
                          optimize for fast installation [default=yes]
 
1033
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1034
 
 
1035
Optional Packages:
 
1036
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1037
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1038
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1039
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1040
                          both]
 
1041
  --with-tags[=TAGS]
 
1042
                          include additional configurations [automatic]
 
1043
 
 
1044
Some influential environment variables:
 
1045
  CC          C compiler command
 
1046
  CFLAGS      C compiler flags
 
1047
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1048
              nonstandard directory <lib dir>
 
1049
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1050
              headers in a nonstandard directory <include dir>
 
1051
  CPP         C preprocessor
 
1052
  CXX         C++ compiler command
 
1053
  CXXFLAGS    C++ compiler flags
 
1054
  CXXCPP      C++ preprocessor
 
1055
  F77         Fortran 77 compiler command
 
1056
  FFLAGS      Fortran 77 compiler flags
 
1057
 
 
1058
Use these variables to override the choices made by `configure' or to help
 
1059
it to find libraries and programs with nonstandard names/locations.
 
1060
 
 
1061
_ACEOF
 
1062
fi
 
1063
 
 
1064
if test "$ac_init_help" = "recursive"; then
 
1065
  # If there are subdirs, report their specific --help.
 
1066
  ac_popdir=`pwd`
 
1067
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1068
    test -d $ac_dir || continue
 
1069
    ac_builddir=.
 
1070
 
 
1071
if test "$ac_dir" != .; then
 
1072
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1073
  # A "../" for each directory in $ac_dir_suffix.
 
1074
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1075
else
 
1076
  ac_dir_suffix= ac_top_builddir=
 
1077
fi
 
1078
 
 
1079
case $srcdir in
 
1080
  .)  # No --srcdir option.  We are building in place.
 
1081
    ac_srcdir=.
 
1082
    if test -z "$ac_top_builddir"; then
 
1083
       ac_top_srcdir=.
 
1084
    else
 
1085
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1086
    fi ;;
 
1087
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1088
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1089
    ac_top_srcdir=$srcdir ;;
 
1090
  *) # Relative path.
 
1091
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1092
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1093
esac
 
1094
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
1095
# absolute.
 
1096
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
1097
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
1098
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
1099
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1100
 
 
1101
    cd $ac_dir
 
1102
    # Check for guested configure; otherwise get Cygnus style configure.
 
1103
    if test -f $ac_srcdir/configure.gnu; then
 
1104
      echo
 
1105
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1106
    elif test -f $ac_srcdir/configure; then
 
1107
      echo
 
1108
      $SHELL $ac_srcdir/configure  --help=recursive
 
1109
    elif test -f $ac_srcdir/configure.ac ||
 
1110
           test -f $ac_srcdir/configure.in; then
 
1111
      echo
 
1112
      $ac_configure --help
 
1113
    else
 
1114
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1115
    fi
 
1116
    cd $ac_popdir
 
1117
  done
 
1118
fi
 
1119
 
 
1120
test -n "$ac_init_help" && exit 0
 
1121
if $ac_init_version; then
 
1122
  cat <<\_ACEOF
 
1123
 
 
1124
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
1125
Free Software Foundation, Inc.
 
1126
This configure script is free software; the Free Software Foundation
 
1127
gives unlimited permission to copy, distribute and modify it.
 
1128
_ACEOF
 
1129
  exit 0
 
1130
fi
 
1131
exec 5>config.log
 
1132
cat >&5 <<_ACEOF
 
1133
This file contains any messages produced by compilers while
 
1134
running configure, to aid debugging if configure makes a mistake.
 
1135
 
 
1136
It was created by $as_me, which was
 
1137
generated by GNU Autoconf 2.57.  Invocation command line was
 
1138
 
 
1139
  $ $0 $@
 
1140
 
 
1141
_ACEOF
 
1142
{
 
1143
cat <<_ASUNAME
 
1144
## --------- ##
 
1145
## Platform. ##
 
1146
## --------- ##
 
1147
 
 
1148
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1149
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1150
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1151
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1152
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1153
 
 
1154
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1155
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1156
 
 
1157
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1158
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1159
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1160
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1161
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1162
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1163
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1164
 
 
1165
_ASUNAME
 
1166
 
 
1167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1168
for as_dir in $PATH
 
1169
do
 
1170
  IFS=$as_save_IFS
 
1171
  test -z "$as_dir" && as_dir=.
 
1172
  echo "PATH: $as_dir"
 
1173
done
 
1174
 
 
1175
} >&5
 
1176
 
 
1177
cat >&5 <<_ACEOF
 
1178
 
 
1179
 
 
1180
## ----------- ##
 
1181
## Core tests. ##
 
1182
## ----------- ##
 
1183
 
 
1184
_ACEOF
 
1185
 
 
1186
 
 
1187
# Keep a trace of the command line.
 
1188
# Strip out --no-create and --no-recursion so they do not pile up.
 
1189
# Strip out --silent because we don't want to record it for future runs.
 
1190
# Also quote any args containing shell meta-characters.
 
1191
# Make two passes to allow for proper duplicate-argument suppression.
 
1192
ac_configure_args=
 
1193
ac_configure_args0=
 
1194
ac_configure_args1=
 
1195
ac_sep=
 
1196
ac_must_keep_next=false
 
1197
for ac_pass in 1 2
 
1198
do
 
1199
  for ac_arg
 
1200
  do
 
1201
    case $ac_arg in
 
1202
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1203
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1204
    | -silent | --silent | --silen | --sile | --sil)
 
1205
      continue ;;
 
1206
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1207
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1208
    esac
 
1209
    case $ac_pass in
 
1210
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1211
    2)
 
1212
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1213
      if test $ac_must_keep_next = true; then
 
1214
        ac_must_keep_next=false # Got value, back to normal.
 
1215
      else
 
1216
        case $ac_arg in
 
1217
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1218
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1219
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1220
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1221
            case "$ac_configure_args0 " in
 
1222
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1223
            esac
 
1224
            ;;
 
1225
          -* ) ac_must_keep_next=true ;;
 
1226
        esac
 
1227
      fi
 
1228
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1229
      # Get rid of the leading space.
 
1230
      ac_sep=" "
 
1231
      ;;
 
1232
    esac
 
1233
  done
 
1234
done
 
1235
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1236
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1237
 
 
1238
# When interrupted or exit'd, cleanup temporary files, and complete
 
1239
# config.log.  We remove comments because anyway the quotes in there
 
1240
# would cause problems or look ugly.
 
1241
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1242
# such as our DU 5.0 friend, will then `close' the trap.
 
1243
trap 'exit_status=$?
 
1244
  # Save into config.log some information that might help in debugging.
 
1245
  {
 
1246
    echo
 
1247
 
 
1248
    cat <<\_ASBOX
 
1249
## ---------------- ##
 
1250
## Cache variables. ##
 
1251
## ---------------- ##
 
1252
_ASBOX
 
1253
    echo
 
1254
    # The following way of writing the cache mishandles newlines in values,
 
1255
{
 
1256
  (set) 2>&1 |
 
1257
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1258
    *ac_space=\ *)
 
1259
      sed -n \
 
1260
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1261
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1262
      ;;
 
1263
    *)
 
1264
      sed -n \
 
1265
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1266
      ;;
 
1267
    esac;
 
1268
}
 
1269
    echo
 
1270
 
 
1271
    cat <<\_ASBOX
 
1272
## ----------------- ##
 
1273
## Output variables. ##
 
1274
## ----------------- ##
 
1275
_ASBOX
 
1276
    echo
 
1277
    for ac_var in $ac_subst_vars
 
1278
    do
 
1279
      eval ac_val=$`echo $ac_var`
 
1280
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1281
    done | sort
 
1282
    echo
 
1283
 
 
1284
    if test -n "$ac_subst_files"; then
 
1285
      cat <<\_ASBOX
 
1286
## ------------- ##
 
1287
## Output files. ##
 
1288
## ------------- ##
 
1289
_ASBOX
 
1290
      echo
 
1291
      for ac_var in $ac_subst_files
 
1292
      do
 
1293
        eval ac_val=$`echo $ac_var`
 
1294
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1295
      done | sort
 
1296
      echo
 
1297
    fi
 
1298
 
 
1299
    if test -s confdefs.h; then
 
1300
      cat <<\_ASBOX
 
1301
## ----------- ##
 
1302
## confdefs.h. ##
 
1303
## ----------- ##
 
1304
_ASBOX
 
1305
      echo
 
1306
      sed "/^$/d" confdefs.h | sort
 
1307
      echo
 
1308
    fi
 
1309
    test "$ac_signal" != 0 &&
 
1310
      echo "$as_me: caught signal $ac_signal"
 
1311
    echo "$as_me: exit $exit_status"
 
1312
  } >&5
 
1313
  rm -f core core.* *.core &&
 
1314
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1315
    exit $exit_status
 
1316
     ' 0
 
1317
for ac_signal in 1 2 13 15; do
 
1318
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1319
done
 
1320
ac_signal=0
 
1321
 
 
1322
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1323
rm -rf conftest* confdefs.h
 
1324
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1325
echo >confdefs.h
 
1326
 
 
1327
# Predefined preprocessor variables.
 
1328
 
 
1329
cat >>confdefs.h <<_ACEOF
 
1330
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1331
_ACEOF
 
1332
 
 
1333
 
 
1334
cat >>confdefs.h <<_ACEOF
 
1335
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1336
_ACEOF
 
1337
 
 
1338
 
 
1339
cat >>confdefs.h <<_ACEOF
 
1340
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1341
_ACEOF
 
1342
 
 
1343
 
 
1344
cat >>confdefs.h <<_ACEOF
 
1345
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1346
_ACEOF
 
1347
 
 
1348
 
 
1349
cat >>confdefs.h <<_ACEOF
 
1350
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1351
_ACEOF
 
1352
 
 
1353
 
 
1354
# Let the site file select an alternate cache file if it wants to.
 
1355
# Prefer explicitly selected file to automatically selected ones.
 
1356
if test -z "$CONFIG_SITE"; then
 
1357
  if test "x$prefix" != xNONE; then
 
1358
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1359
  else
 
1360
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1361
  fi
 
1362
fi
 
1363
for ac_site_file in $CONFIG_SITE; do
 
1364
  if test -r "$ac_site_file"; then
 
1365
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1366
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1367
    sed 's/^/| /' "$ac_site_file" >&5
 
1368
    . "$ac_site_file"
 
1369
  fi
 
1370
done
 
1371
 
 
1372
if test -r "$cache_file"; then
 
1373
  # Some versions of bash will fail to source /dev/null (special
 
1374
  # files actually), so we avoid doing that.
 
1375
  if test -f "$cache_file"; then
 
1376
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1377
echo "$as_me: loading cache $cache_file" >&6;}
 
1378
    case $cache_file in
 
1379
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1380
      *)                      . ./$cache_file;;
 
1381
    esac
 
1382
  fi
 
1383
else
 
1384
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1385
echo "$as_me: creating cache $cache_file" >&6;}
 
1386
  >$cache_file
 
1387
fi
 
1388
 
 
1389
# Check that the precious variables saved in the cache have kept the same
 
1390
# value.
 
1391
ac_cache_corrupted=false
 
1392
for ac_var in `(set) 2>&1 |
 
1393
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1394
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1395
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1396
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1397
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1398
  case $ac_old_set,$ac_new_set in
 
1399
    set,)
 
1400
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1401
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1402
      ac_cache_corrupted=: ;;
 
1403
    ,set)
 
1404
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1405
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1406
      ac_cache_corrupted=: ;;
 
1407
    ,);;
 
1408
    *)
 
1409
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1410
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1411
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1412
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1413
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1414
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1415
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1416
        ac_cache_corrupted=:
 
1417
      fi;;
 
1418
  esac
 
1419
  # Pass precious variables to config.status.
 
1420
  if test "$ac_new_set" = set; then
 
1421
    case $ac_new_val in
 
1422
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1423
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1424
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1425
    esac
 
1426
    case " $ac_configure_args " in
 
1427
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1428
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1429
    esac
 
1430
  fi
 
1431
done
 
1432
if $ac_cache_corrupted; then
 
1433
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1434
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1435
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1436
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1437
   { (exit 1); exit 1; }; }
 
1438
fi
 
1439
 
 
1440
ac_ext=c
 
1441
ac_cpp='$CPP $CPPFLAGS'
 
1442
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1443
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1444
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1445
 
 
1446
 
 
1447
 
 
1448
 
 
1449
 
 
1450
 
 
1451
 
 
1452
 
 
1453
 
 
1454
 
 
1455
 
 
1456
 
 
1457
 
 
1458
 
 
1459
 
 
1460
 
 
1461
 
 
1462
 
 
1463
 
 
1464
ac_aux_dir=
 
1465
for ac_dir in ../../../config $srcdir/../../../config; do
 
1466
  if test -f $ac_dir/install-sh; then
 
1467
    ac_aux_dir=$ac_dir
 
1468
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1469
    break
 
1470
  elif test -f $ac_dir/install.sh; then
 
1471
    ac_aux_dir=$ac_dir
 
1472
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1473
    break
 
1474
  elif test -f $ac_dir/shtool; then
 
1475
    ac_aux_dir=$ac_dir
 
1476
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1477
    break
 
1478
  fi
 
1479
done
 
1480
if test -z "$ac_aux_dir"; then
 
1481
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&5
 
1482
echo "$as_me: error: cannot find install-sh or install.sh in ../../../config $srcdir/../../../config" >&2;}
 
1483
   { (exit 1); exit 1; }; }
 
1484
fi
 
1485
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1486
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1487
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1488
 
 
1489
am__api_version="1.7"
 
1490
# Find a good install program.  We prefer a C program (faster),
 
1491
# so one script is as good as another.  But avoid the broken or
 
1492
# incompatible versions:
 
1493
# SysV /etc/install, /usr/sbin/install
 
1494
# SunOS /usr/etc/install
 
1495
# IRIX /sbin/install
 
1496
# AIX /bin/install
 
1497
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1498
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1499
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1500
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1501
# ./install, which can be erroneously created by make from ./install.sh.
 
1502
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1503
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1504
if test -z "$INSTALL"; then
 
1505
if test "${ac_cv_path_install+set}" = set; then
 
1506
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1507
else
 
1508
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1509
for as_dir in $PATH
 
1510
do
 
1511
  IFS=$as_save_IFS
 
1512
  test -z "$as_dir" && as_dir=.
 
1513
  # Account for people who put trailing slashes in PATH elements.
 
1514
case $as_dir/ in
 
1515
  ./ | .// | /cC/* | \
 
1516
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1517
  /usr/ucb/* ) ;;
 
1518
  *)
 
1519
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1520
    # Don't use installbsd from OSF since it installs stuff as root
 
1521
    # by default.
 
1522
    for ac_prog in ginstall scoinst install; do
 
1523
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1524
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1525
          if test $ac_prog = install &&
 
1526
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1527
            # AIX install.  It has an incompatible calling convention.
 
1528
            :
 
1529
          elif test $ac_prog = install &&
 
1530
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1531
            # program-specific install script used by HP pwplus--don't use.
 
1532
            :
 
1533
          else
 
1534
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1535
            break 3
 
1536
          fi
 
1537
        fi
 
1538
      done
 
1539
    done
 
1540
    ;;
 
1541
esac
 
1542
done
 
1543
 
 
1544
 
 
1545
fi
 
1546
  if test "${ac_cv_path_install+set}" = set; then
 
1547
    INSTALL=$ac_cv_path_install
 
1548
  else
 
1549
    # As a last resort, use the slow shell script.  We don't cache a
 
1550
    # path for INSTALL within a source directory, because that will
 
1551
    # break other packages using the cache if that directory is
 
1552
    # removed, or if the path is relative.
 
1553
    INSTALL=$ac_install_sh
 
1554
  fi
 
1555
fi
 
1556
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1557
echo "${ECHO_T}$INSTALL" >&6
 
1558
 
 
1559
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1560
# It thinks the first close brace ends the variable substitution.
 
1561
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1562
 
 
1563
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1564
 
 
1565
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1566
 
 
1567
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1568
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1569
# Just in case
 
1570
sleep 1
 
1571
echo timestamp > conftest.file
 
1572
# Do `set' in a subshell so we don't clobber the current shell's
 
1573
# arguments.  Must try -L first in case configure is actually a
 
1574
# symlink; some systems play weird games with the mod time of symlinks
 
1575
# (eg FreeBSD returns the mod time of the symlink's containing
 
1576
# directory).
 
1577
if (
 
1578
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1579
   if test "$*" = "X"; then
 
1580
      # -L didn't work.
 
1581
      set X `ls -t $srcdir/configure conftest.file`
 
1582
   fi
 
1583
   rm -f conftest.file
 
1584
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1585
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1586
 
 
1587
      # If neither matched, then we have a broken ls.  This can happen
 
1588
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1589
      # broken ls alias from the environment.  This has actually
 
1590
      # happened.  Such a system could not be considered "sane".
 
1591
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1592
alias in your environment" >&5
 
1593
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1594
alias in your environment" >&2;}
 
1595
   { (exit 1); exit 1; }; }
 
1596
   fi
 
1597
 
 
1598
   test "$2" = conftest.file
 
1599
   )
 
1600
then
 
1601
   # Ok.
 
1602
   :
 
1603
else
 
1604
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1605
Check your system clock" >&5
 
1606
echo "$as_me: error: newly created file is older than distributed files!
 
1607
Check your system clock" >&2;}
 
1608
   { (exit 1); exit 1; }; }
 
1609
fi
 
1610
echo "$as_me:$LINENO: result: yes" >&5
 
1611
echo "${ECHO_T}yes" >&6
 
1612
test "$program_prefix" != NONE &&
 
1613
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1614
# Use a double $ so make ignores it.
 
1615
test "$program_suffix" != NONE &&
 
1616
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1617
# Double any \ or $.  echo might interpret backslashes.
 
1618
# By default was `s,x,x', remove it if useless.
 
1619
cat <<\_ACEOF >conftest.sed
 
1620
s/[\\$]/&&/g;s/;s,x,x,$//
 
1621
_ACEOF
 
1622
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1623
rm conftest.sed
 
1624
 
 
1625
 
 
1626
# expand $ac_aux_dir to an absolute path
 
1627
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1628
 
 
1629
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1630
# Use eval to expand $SHELL
 
1631
if eval "$MISSING --run true"; then
 
1632
  am_missing_run="$MISSING --run "
 
1633
else
 
1634
  am_missing_run=
 
1635
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1636
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1637
fi
 
1638
 
 
1639
for ac_prog in gawk mawk nawk awk
 
1640
do
 
1641
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1642
set dummy $ac_prog; ac_word=$2
 
1643
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1644
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1645
if test "${ac_cv_prog_AWK+set}" = set; then
 
1646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1647
else
 
1648
  if test -n "$AWK"; then
 
1649
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1650
else
 
1651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1652
for as_dir in $PATH
 
1653
do
 
1654
  IFS=$as_save_IFS
 
1655
  test -z "$as_dir" && as_dir=.
 
1656
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1657
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1658
    ac_cv_prog_AWK="$ac_prog"
 
1659
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1660
    break 2
 
1661
  fi
 
1662
done
 
1663
done
 
1664
 
 
1665
fi
 
1666
fi
 
1667
AWK=$ac_cv_prog_AWK
 
1668
if test -n "$AWK"; then
 
1669
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1670
echo "${ECHO_T}$AWK" >&6
 
1671
else
 
1672
  echo "$as_me:$LINENO: result: no" >&5
 
1673
echo "${ECHO_T}no" >&6
 
1674
fi
 
1675
 
 
1676
  test -n "$AWK" && break
 
1677
done
 
1678
 
 
1679
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1680
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1681
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1682
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1684
else
 
1685
  cat >conftest.make <<\_ACEOF
 
1686
all:
 
1687
        @echo 'ac_maketemp="$(MAKE)"'
 
1688
_ACEOF
 
1689
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1690
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1691
if test -n "$ac_maketemp"; then
 
1692
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1693
else
 
1694
  eval ac_cv_prog_make_${ac_make}_set=no
 
1695
fi
 
1696
rm -f conftest.make
 
1697
fi
 
1698
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1699
  echo "$as_me:$LINENO: result: yes" >&5
 
1700
echo "${ECHO_T}yes" >&6
 
1701
  SET_MAKE=
 
1702
else
 
1703
  echo "$as_me:$LINENO: result: no" >&5
 
1704
echo "${ECHO_T}no" >&6
 
1705
  SET_MAKE="MAKE=${MAKE-make}"
 
1706
fi
 
1707
 
 
1708
rm -rf .tst 2>/dev/null
 
1709
mkdir .tst 2>/dev/null
 
1710
if test -d .tst; then
 
1711
  am__leading_dot=.
 
1712
else
 
1713
  am__leading_dot=_
 
1714
fi
 
1715
rmdir .tst 2>/dev/null
 
1716
 
 
1717
 # test to see if srcdir already configured
 
1718
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1719
   test -f $srcdir/config.status; then
 
1720
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1721
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1722
   { (exit 1); exit 1; }; }
 
1723
fi
 
1724
 
 
1725
# test whether we have cygpath
 
1726
if test -z "$CYGPATH_W"; then
 
1727
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1728
    CYGPATH_W='cygpath -w'
 
1729
  else
 
1730
    CYGPATH_W=echo
 
1731
  fi
 
1732
fi
 
1733
 
 
1734
 
 
1735
# Define the identity of the package.
 
1736
 PACKAGE=gettext_rpathx
 
1737
 VERSION=0
 
1738
 
 
1739
 
 
1740
cat >>confdefs.h <<_ACEOF
 
1741
#define PACKAGE "$PACKAGE"
 
1742
_ACEOF
 
1743
 
 
1744
 
 
1745
cat >>confdefs.h <<_ACEOF
 
1746
#define VERSION "$VERSION"
 
1747
_ACEOF
 
1748
 
 
1749
# Some tools Automake needs.
 
1750
 
 
1751
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1752
 
 
1753
 
 
1754
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1755
 
 
1756
 
 
1757
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1758
 
 
1759
 
 
1760
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1761
 
 
1762
 
 
1763
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1764
 
 
1765
 
 
1766
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1767
 
 
1768
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1769
 
 
1770
# Installed binaries are usually stripped using `strip' when the user
 
1771
# run `make install-strip'.  However `strip' might not be the right
 
1772
# tool to use in cross-compilation environments, therefore Automake
 
1773
# will honor the `STRIP' environment variable to overrule this program.
 
1774
if test "$cross_compiling" != no; then
 
1775
  if test -n "$ac_tool_prefix"; then
 
1776
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1777
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1778
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1779
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1780
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1782
else
 
1783
  if test -n "$STRIP"; then
 
1784
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1785
else
 
1786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1787
for as_dir in $PATH
 
1788
do
 
1789
  IFS=$as_save_IFS
 
1790
  test -z "$as_dir" && as_dir=.
 
1791
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1792
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1793
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1794
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1795
    break 2
 
1796
  fi
 
1797
done
 
1798
done
 
1799
 
 
1800
fi
 
1801
fi
 
1802
STRIP=$ac_cv_prog_STRIP
 
1803
if test -n "$STRIP"; then
 
1804
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1805
echo "${ECHO_T}$STRIP" >&6
 
1806
else
 
1807
  echo "$as_me:$LINENO: result: no" >&5
 
1808
echo "${ECHO_T}no" >&6
 
1809
fi
 
1810
 
 
1811
fi
 
1812
if test -z "$ac_cv_prog_STRIP"; then
 
1813
  ac_ct_STRIP=$STRIP
 
1814
  # Extract the first word of "strip", so it can be a program name with args.
 
1815
set dummy strip; ac_word=$2
 
1816
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1817
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1818
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1820
else
 
1821
  if test -n "$ac_ct_STRIP"; then
 
1822
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1823
else
 
1824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1825
for as_dir in $PATH
 
1826
do
 
1827
  IFS=$as_save_IFS
 
1828
  test -z "$as_dir" && as_dir=.
 
1829
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1830
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1831
    ac_cv_prog_ac_ct_STRIP="strip"
 
1832
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1833
    break 2
 
1834
  fi
 
1835
done
 
1836
done
 
1837
 
 
1838
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1839
fi
 
1840
fi
 
1841
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1842
if test -n "$ac_ct_STRIP"; then
 
1843
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1844
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1845
else
 
1846
  echo "$as_me:$LINENO: result: no" >&5
 
1847
echo "${ECHO_T}no" >&6
 
1848
fi
 
1849
 
 
1850
  STRIP=$ac_ct_STRIP
 
1851
else
 
1852
  STRIP="$ac_cv_prog_STRIP"
 
1853
fi
 
1854
 
 
1855
fi
 
1856
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1857
 
 
1858
# We need awk for the "check" target.  The system "awk" is bad on
 
1859
# some platforms.
 
1860
 
 
1861
 
 
1862
 
 
1863
ac_ext=c
 
1864
ac_cpp='$CPP $CPPFLAGS'
 
1865
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1866
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1867
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1868
if test -n "$ac_tool_prefix"; then
 
1869
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1870
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1871
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1873
if test "${ac_cv_prog_CC+set}" = set; then
 
1874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1875
else
 
1876
  if test -n "$CC"; then
 
1877
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1878
else
 
1879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1880
for as_dir in $PATH
 
1881
do
 
1882
  IFS=$as_save_IFS
 
1883
  test -z "$as_dir" && as_dir=.
 
1884
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1885
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1886
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1887
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1888
    break 2
 
1889
  fi
 
1890
done
 
1891
done
 
1892
 
 
1893
fi
 
1894
fi
 
1895
CC=$ac_cv_prog_CC
 
1896
if test -n "$CC"; then
 
1897
  echo "$as_me:$LINENO: result: $CC" >&5
 
1898
echo "${ECHO_T}$CC" >&6
 
1899
else
 
1900
  echo "$as_me:$LINENO: result: no" >&5
 
1901
echo "${ECHO_T}no" >&6
 
1902
fi
 
1903
 
 
1904
fi
 
1905
if test -z "$ac_cv_prog_CC"; then
 
1906
  ac_ct_CC=$CC
 
1907
  # Extract the first word of "gcc", so it can be a program name with args.
 
1908
set dummy gcc; ac_word=$2
 
1909
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1910
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1911
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1913
else
 
1914
  if test -n "$ac_ct_CC"; then
 
1915
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1916
else
 
1917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1918
for as_dir in $PATH
 
1919
do
 
1920
  IFS=$as_save_IFS
 
1921
  test -z "$as_dir" && as_dir=.
 
1922
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1923
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1924
    ac_cv_prog_ac_ct_CC="gcc"
 
1925
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1926
    break 2
 
1927
  fi
 
1928
done
 
1929
done
 
1930
 
 
1931
fi
 
1932
fi
 
1933
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1934
if test -n "$ac_ct_CC"; then
 
1935
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1936
echo "${ECHO_T}$ac_ct_CC" >&6
 
1937
else
 
1938
  echo "$as_me:$LINENO: result: no" >&5
 
1939
echo "${ECHO_T}no" >&6
 
1940
fi
 
1941
 
 
1942
  CC=$ac_ct_CC
 
1943
else
 
1944
  CC="$ac_cv_prog_CC"
 
1945
fi
 
1946
 
 
1947
if test -z "$CC"; then
 
1948
  if test -n "$ac_tool_prefix"; then
 
1949
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1950
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1951
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1953
if test "${ac_cv_prog_CC+set}" = set; then
 
1954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1955
else
 
1956
  if test -n "$CC"; then
 
1957
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1958
else
 
1959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1960
for as_dir in $PATH
 
1961
do
 
1962
  IFS=$as_save_IFS
 
1963
  test -z "$as_dir" && as_dir=.
 
1964
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1965
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1966
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1967
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1968
    break 2
 
1969
  fi
 
1970
done
 
1971
done
 
1972
 
 
1973
fi
 
1974
fi
 
1975
CC=$ac_cv_prog_CC
 
1976
if test -n "$CC"; then
 
1977
  echo "$as_me:$LINENO: result: $CC" >&5
 
1978
echo "${ECHO_T}$CC" >&6
 
1979
else
 
1980
  echo "$as_me:$LINENO: result: no" >&5
 
1981
echo "${ECHO_T}no" >&6
 
1982
fi
 
1983
 
 
1984
fi
 
1985
if test -z "$ac_cv_prog_CC"; then
 
1986
  ac_ct_CC=$CC
 
1987
  # Extract the first word of "cc", so it can be a program name with args.
 
1988
set dummy cc; ac_word=$2
 
1989
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1991
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1993
else
 
1994
  if test -n "$ac_ct_CC"; then
 
1995
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1996
else
 
1997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1998
for as_dir in $PATH
 
1999
do
 
2000
  IFS=$as_save_IFS
 
2001
  test -z "$as_dir" && as_dir=.
 
2002
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2003
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2004
    ac_cv_prog_ac_ct_CC="cc"
 
2005
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2006
    break 2
 
2007
  fi
 
2008
done
 
2009
done
 
2010
 
 
2011
fi
 
2012
fi
 
2013
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2014
if test -n "$ac_ct_CC"; then
 
2015
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2016
echo "${ECHO_T}$ac_ct_CC" >&6
 
2017
else
 
2018
  echo "$as_me:$LINENO: result: no" >&5
 
2019
echo "${ECHO_T}no" >&6
 
2020
fi
 
2021
 
 
2022
  CC=$ac_ct_CC
 
2023
else
 
2024
  CC="$ac_cv_prog_CC"
 
2025
fi
 
2026
 
 
2027
fi
 
2028
if test -z "$CC"; then
 
2029
  # Extract the first word of "cc", so it can be a program name with args.
 
2030
set dummy cc; ac_word=$2
 
2031
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2033
if test "${ac_cv_prog_CC+set}" = set; then
 
2034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2035
else
 
2036
  if test -n "$CC"; then
 
2037
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2038
else
 
2039
  ac_prog_rejected=no
 
2040
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2041
for as_dir in $PATH
 
2042
do
 
2043
  IFS=$as_save_IFS
 
2044
  test -z "$as_dir" && as_dir=.
 
2045
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2046
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2047
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2048
       ac_prog_rejected=yes
 
2049
       continue
 
2050
     fi
 
2051
    ac_cv_prog_CC="cc"
 
2052
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2053
    break 2
 
2054
  fi
 
2055
done
 
2056
done
 
2057
 
 
2058
if test $ac_prog_rejected = yes; then
 
2059
  # We found a bogon in the path, so make sure we never use it.
 
2060
  set dummy $ac_cv_prog_CC
 
2061
  shift
 
2062
  if test $# != 0; then
 
2063
    # We chose a different compiler from the bogus one.
 
2064
    # However, it has the same basename, so the bogon will be chosen
 
2065
    # first if we set CC to just the basename; use the full file name.
 
2066
    shift
 
2067
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2068
  fi
 
2069
fi
 
2070
fi
 
2071
fi
 
2072
CC=$ac_cv_prog_CC
 
2073
if test -n "$CC"; then
 
2074
  echo "$as_me:$LINENO: result: $CC" >&5
 
2075
echo "${ECHO_T}$CC" >&6
 
2076
else
 
2077
  echo "$as_me:$LINENO: result: no" >&5
 
2078
echo "${ECHO_T}no" >&6
 
2079
fi
 
2080
 
 
2081
fi
 
2082
if test -z "$CC"; then
 
2083
  if test -n "$ac_tool_prefix"; then
 
2084
  for ac_prog in cl
 
2085
  do
 
2086
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2087
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2088
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2090
if test "${ac_cv_prog_CC+set}" = set; then
 
2091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2092
else
 
2093
  if test -n "$CC"; then
 
2094
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2095
else
 
2096
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2097
for as_dir in $PATH
 
2098
do
 
2099
  IFS=$as_save_IFS
 
2100
  test -z "$as_dir" && as_dir=.
 
2101
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2102
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2103
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2104
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2105
    break 2
 
2106
  fi
 
2107
done
 
2108
done
 
2109
 
 
2110
fi
 
2111
fi
 
2112
CC=$ac_cv_prog_CC
 
2113
if test -n "$CC"; then
 
2114
  echo "$as_me:$LINENO: result: $CC" >&5
 
2115
echo "${ECHO_T}$CC" >&6
 
2116
else
 
2117
  echo "$as_me:$LINENO: result: no" >&5
 
2118
echo "${ECHO_T}no" >&6
 
2119
fi
 
2120
 
 
2121
    test -n "$CC" && break
 
2122
  done
 
2123
fi
 
2124
if test -z "$CC"; then
 
2125
  ac_ct_CC=$CC
 
2126
  for ac_prog in cl
 
2127
do
 
2128
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2129
set dummy $ac_prog; ac_word=$2
 
2130
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2131
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2132
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2133
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2134
else
 
2135
  if test -n "$ac_ct_CC"; then
 
2136
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2137
else
 
2138
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2139
for as_dir in $PATH
 
2140
do
 
2141
  IFS=$as_save_IFS
 
2142
  test -z "$as_dir" && as_dir=.
 
2143
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2144
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2145
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2146
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2147
    break 2
 
2148
  fi
 
2149
done
 
2150
done
 
2151
 
 
2152
fi
 
2153
fi
 
2154
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2155
if test -n "$ac_ct_CC"; then
 
2156
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2157
echo "${ECHO_T}$ac_ct_CC" >&6
 
2158
else
 
2159
  echo "$as_me:$LINENO: result: no" >&5
 
2160
echo "${ECHO_T}no" >&6
 
2161
fi
 
2162
 
 
2163
  test -n "$ac_ct_CC" && break
 
2164
done
 
2165
 
 
2166
  CC=$ac_ct_CC
 
2167
fi
 
2168
 
 
2169
fi
 
2170
 
 
2171
 
 
2172
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2173
See \`config.log' for more details." >&5
 
2174
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2175
See \`config.log' for more details." >&2;}
 
2176
   { (exit 1); exit 1; }; }
 
2177
 
 
2178
# Provide some information about the compiler.
 
2179
echo "$as_me:$LINENO:" \
 
2180
     "checking for C compiler version" >&5
 
2181
ac_compiler=`set X $ac_compile; echo $2`
 
2182
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2183
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2184
  ac_status=$?
 
2185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2186
  (exit $ac_status); }
 
2187
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2188
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2189
  ac_status=$?
 
2190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2191
  (exit $ac_status); }
 
2192
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2193
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2194
  ac_status=$?
 
2195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2196
  (exit $ac_status); }
 
2197
 
 
2198
cat >conftest.$ac_ext <<_ACEOF
 
2199
#line $LINENO "configure"
 
2200
/* confdefs.h.  */
 
2201
_ACEOF
 
2202
cat confdefs.h >>conftest.$ac_ext
 
2203
cat >>conftest.$ac_ext <<_ACEOF
 
2204
/* end confdefs.h.  */
 
2205
 
 
2206
int
 
2207
main ()
 
2208
{
 
2209
 
 
2210
  ;
 
2211
  return 0;
 
2212
}
 
2213
_ACEOF
 
2214
ac_clean_files_save=$ac_clean_files
 
2215
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2216
# Try to create an executable without -o first, disregard a.out.
 
2217
# It will help us diagnose broken compilers, and finding out an intuition
 
2218
# of exeext.
 
2219
echo "$as_me:$LINENO: checking for C compiler default output" >&5
 
2220
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2221
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2222
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2223
  (eval $ac_link_default) 2>&5
 
2224
  ac_status=$?
 
2225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2226
  (exit $ac_status); }; then
 
2227
  # Find the output, starting from the most likely.  This scheme is
 
2228
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2229
# resort.
 
2230
 
 
2231
# Be careful to initialize this variable, since it used to be cached.
 
2232
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2233
ac_cv_exeext=
 
2234
# b.out is created by i960 compilers.
 
2235
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2236
do
 
2237
  test -f "$ac_file" || continue
 
2238
  case $ac_file in
 
2239
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2240
        ;;
 
2241
    conftest.$ac_ext )
 
2242
        # This is the source file.
 
2243
        ;;
 
2244
    [ab].out )
 
2245
        # We found the default executable, but exeext='' is most
 
2246
        # certainly right.
 
2247
        break;;
 
2248
    *.* )
 
2249
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2250
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2251
        # but it would be cool to find out if it's true.  Does anybody
 
2252
        # maintain Libtool? --akim.
 
2253
        export ac_cv_exeext
 
2254
        break;;
 
2255
    * )
 
2256
        break;;
 
2257
  esac
 
2258
done
 
2259
else
 
2260
  echo "$as_me: failed program was:" >&5
 
2261
sed 's/^/| /' conftest.$ac_ext >&5
 
2262
 
 
2263
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2264
See \`config.log' for more details." >&5
 
2265
echo "$as_me: error: C compiler cannot create executables
 
2266
See \`config.log' for more details." >&2;}
 
2267
   { (exit 77); exit 77; }; }
 
2268
fi
 
2269
 
 
2270
ac_exeext=$ac_cv_exeext
 
2271
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2272
echo "${ECHO_T}$ac_file" >&6
 
2273
 
 
2274
# Check the compiler produces executables we can run.  If not, either
 
2275
# the compiler is broken, or we cross compile.
 
2276
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2277
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2278
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2279
# If not cross compiling, check that we can run a simple program.
 
2280
if test "$cross_compiling" != yes; then
 
2281
  if { ac_try='./$ac_file'
 
2282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2283
  (eval $ac_try) 2>&5
 
2284
  ac_status=$?
 
2285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2286
  (exit $ac_status); }; }; then
 
2287
    cross_compiling=no
 
2288
  else
 
2289
    if test "$cross_compiling" = maybe; then
 
2290
        cross_compiling=yes
 
2291
    else
 
2292
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2293
If you meant to cross compile, use \`--host'.
 
2294
See \`config.log' for more details." >&5
 
2295
echo "$as_me: error: cannot run C compiled programs.
 
2296
If you meant to cross compile, use \`--host'.
 
2297
See \`config.log' for more details." >&2;}
 
2298
   { (exit 1); exit 1; }; }
 
2299
    fi
 
2300
  fi
 
2301
fi
 
2302
echo "$as_me:$LINENO: result: yes" >&5
 
2303
echo "${ECHO_T}yes" >&6
 
2304
 
 
2305
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2306
ac_clean_files=$ac_clean_files_save
 
2307
# Check the compiler produces executables we can run.  If not, either
 
2308
# the compiler is broken, or we cross compile.
 
2309
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2310
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2311
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2312
echo "${ECHO_T}$cross_compiling" >&6
 
2313
 
 
2314
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2315
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2316
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2317
  (eval $ac_link) 2>&5
 
2318
  ac_status=$?
 
2319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2320
  (exit $ac_status); }; then
 
2321
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2322
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2323
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2324
# `rm'.
 
2325
for ac_file in conftest.exe conftest conftest.*; do
 
2326
  test -f "$ac_file" || continue
 
2327
  case $ac_file in
 
2328
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2329
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2330
          export ac_cv_exeext
 
2331
          break;;
 
2332
    * ) break;;
 
2333
  esac
 
2334
done
 
2335
else
 
2336
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2337
See \`config.log' for more details." >&5
 
2338
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2339
See \`config.log' for more details." >&2;}
 
2340
   { (exit 1); exit 1; }; }
 
2341
fi
 
2342
 
 
2343
rm -f conftest$ac_cv_exeext
 
2344
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2345
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2346
 
 
2347
rm -f conftest.$ac_ext
 
2348
EXEEXT=$ac_cv_exeext
 
2349
ac_exeext=$EXEEXT
 
2350
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2351
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2352
if test "${ac_cv_objext+set}" = set; then
 
2353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2354
else
 
2355
  cat >conftest.$ac_ext <<_ACEOF
 
2356
#line $LINENO "configure"
 
2357
/* confdefs.h.  */
 
2358
_ACEOF
 
2359
cat confdefs.h >>conftest.$ac_ext
 
2360
cat >>conftest.$ac_ext <<_ACEOF
 
2361
/* end confdefs.h.  */
 
2362
 
 
2363
int
 
2364
main ()
 
2365
{
 
2366
 
 
2367
  ;
 
2368
  return 0;
 
2369
}
 
2370
_ACEOF
 
2371
rm -f conftest.o conftest.obj
 
2372
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2373
  (eval $ac_compile) 2>&5
 
2374
  ac_status=$?
 
2375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2376
  (exit $ac_status); }; then
 
2377
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2378
  case $ac_file in
 
2379
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2380
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2381
       break;;
 
2382
  esac
 
2383
done
 
2384
else
 
2385
  echo "$as_me: failed program was:" >&5
 
2386
sed 's/^/| /' conftest.$ac_ext >&5
 
2387
 
 
2388
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2389
See \`config.log' for more details." >&5
 
2390
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2391
See \`config.log' for more details." >&2;}
 
2392
   { (exit 1); exit 1; }; }
 
2393
fi
 
2394
 
 
2395
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2396
fi
 
2397
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2398
echo "${ECHO_T}$ac_cv_objext" >&6
 
2399
OBJEXT=$ac_cv_objext
 
2400
ac_objext=$OBJEXT
 
2401
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2402
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2403
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2405
else
 
2406
  cat >conftest.$ac_ext <<_ACEOF
 
2407
#line $LINENO "configure"
 
2408
/* confdefs.h.  */
 
2409
_ACEOF
 
2410
cat confdefs.h >>conftest.$ac_ext
 
2411
cat >>conftest.$ac_ext <<_ACEOF
 
2412
/* end confdefs.h.  */
 
2413
 
 
2414
int
 
2415
main ()
 
2416
{
 
2417
#ifndef __GNUC__
 
2418
       choke me
 
2419
#endif
 
2420
 
 
2421
  ;
 
2422
  return 0;
 
2423
}
 
2424
_ACEOF
 
2425
rm -f conftest.$ac_objext
 
2426
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2427
  (eval $ac_compile) 2>&5
 
2428
  ac_status=$?
 
2429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2430
  (exit $ac_status); } &&
 
2431
         { ac_try='test -s conftest.$ac_objext'
 
2432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2433
  (eval $ac_try) 2>&5
 
2434
  ac_status=$?
 
2435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2436
  (exit $ac_status); }; }; then
 
2437
  ac_compiler_gnu=yes
 
2438
else
 
2439
  echo "$as_me: failed program was:" >&5
 
2440
sed 's/^/| /' conftest.$ac_ext >&5
 
2441
 
 
2442
ac_compiler_gnu=no
 
2443
fi
 
2444
rm -f conftest.$ac_objext conftest.$ac_ext
 
2445
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2446
 
 
2447
fi
 
2448
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2449
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2450
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2451
ac_test_CFLAGS=${CFLAGS+set}
 
2452
ac_save_CFLAGS=$CFLAGS
 
2453
CFLAGS="-g"
 
2454
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2455
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2456
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2457
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2458
else
 
2459
  cat >conftest.$ac_ext <<_ACEOF
 
2460
#line $LINENO "configure"
 
2461
/* confdefs.h.  */
 
2462
_ACEOF
 
2463
cat confdefs.h >>conftest.$ac_ext
 
2464
cat >>conftest.$ac_ext <<_ACEOF
 
2465
/* end confdefs.h.  */
 
2466
 
 
2467
int
 
2468
main ()
 
2469
{
 
2470
 
 
2471
  ;
 
2472
  return 0;
 
2473
}
 
2474
_ACEOF
 
2475
rm -f conftest.$ac_objext
 
2476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2477
  (eval $ac_compile) 2>&5
 
2478
  ac_status=$?
 
2479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2480
  (exit $ac_status); } &&
 
2481
         { ac_try='test -s conftest.$ac_objext'
 
2482
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2483
  (eval $ac_try) 2>&5
 
2484
  ac_status=$?
 
2485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2486
  (exit $ac_status); }; }; then
 
2487
  ac_cv_prog_cc_g=yes
 
2488
else
 
2489
  echo "$as_me: failed program was:" >&5
 
2490
sed 's/^/| /' conftest.$ac_ext >&5
 
2491
 
 
2492
ac_cv_prog_cc_g=no
 
2493
fi
 
2494
rm -f conftest.$ac_objext conftest.$ac_ext
 
2495
fi
 
2496
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2497
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2498
if test "$ac_test_CFLAGS" = set; then
 
2499
  CFLAGS=$ac_save_CFLAGS
 
2500
elif test $ac_cv_prog_cc_g = yes; then
 
2501
  if test "$GCC" = yes; then
 
2502
    CFLAGS="-g -O2"
 
2503
  else
 
2504
    CFLAGS="-g"
 
2505
  fi
 
2506
else
 
2507
  if test "$GCC" = yes; then
 
2508
    CFLAGS="-O2"
 
2509
  else
 
2510
    CFLAGS=
 
2511
  fi
 
2512
fi
 
2513
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2514
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2515
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2517
else
 
2518
  ac_cv_prog_cc_stdc=no
 
2519
ac_save_CC=$CC
 
2520
cat >conftest.$ac_ext <<_ACEOF
 
2521
#line $LINENO "configure"
 
2522
/* confdefs.h.  */
 
2523
_ACEOF
 
2524
cat confdefs.h >>conftest.$ac_ext
 
2525
cat >>conftest.$ac_ext <<_ACEOF
 
2526
/* end confdefs.h.  */
 
2527
#include <stdarg.h>
 
2528
#include <stdio.h>
 
2529
#include <sys/types.h>
 
2530
#include <sys/stat.h>
 
2531
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2532
struct buf { int x; };
 
2533
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2534
static char *e (p, i)
 
2535
     char **p;
 
2536
     int i;
 
2537
{
 
2538
  return p[i];
 
2539
}
 
2540
static char *f (char * (*g) (char **, int), char **p, ...)
 
2541
{
 
2542
  char *s;
 
2543
  va_list v;
 
2544
  va_start (v,p);
 
2545
  s = g (p, va_arg (v,int));
 
2546
  va_end (v);
 
2547
  return s;
 
2548
}
 
2549
int test (int i, double x);
 
2550
struct s1 {int (*f) (int a);};
 
2551
struct s2 {int (*f) (double a);};
 
2552
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2553
int argc;
 
2554
char **argv;
 
2555
int
 
2556
main ()
 
2557
{
 
2558
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2559
  ;
 
2560
  return 0;
 
2561
}
 
2562
_ACEOF
 
2563
# Don't try gcc -ansi; that turns off useful extensions and
 
2564
# breaks some systems' header files.
 
2565
# AIX                   -qlanglvl=ansi
 
2566
# Ultrix and OSF/1      -std1
 
2567
# HP-UX 10.20 and later -Ae
 
2568
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2569
# SVR4                  -Xc -D__EXTENSIONS__
 
2570
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2571
do
 
2572
  CC="$ac_save_CC $ac_arg"
 
2573
  rm -f conftest.$ac_objext
 
2574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2575
  (eval $ac_compile) 2>&5
 
2576
  ac_status=$?
 
2577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2578
  (exit $ac_status); } &&
 
2579
         { ac_try='test -s conftest.$ac_objext'
 
2580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2581
  (eval $ac_try) 2>&5
 
2582
  ac_status=$?
 
2583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2584
  (exit $ac_status); }; }; then
 
2585
  ac_cv_prog_cc_stdc=$ac_arg
 
2586
break
 
2587
else
 
2588
  echo "$as_me: failed program was:" >&5
 
2589
sed 's/^/| /' conftest.$ac_ext >&5
 
2590
 
 
2591
fi
 
2592
rm -f conftest.$ac_objext
 
2593
done
 
2594
rm -f conftest.$ac_ext conftest.$ac_objext
 
2595
CC=$ac_save_CC
 
2596
 
 
2597
fi
 
2598
 
 
2599
case "x$ac_cv_prog_cc_stdc" in
 
2600
  x|xno)
 
2601
    echo "$as_me:$LINENO: result: none needed" >&5
 
2602
echo "${ECHO_T}none needed" >&6 ;;
 
2603
  *)
 
2604
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2605
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2606
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2607
esac
 
2608
 
 
2609
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2610
# in C++ we need to declare it.  In case someone uses the same compiler
 
2611
# for both compiling C and C++ we need to have the C++ compiler decide
 
2612
# the declaration of exit, since it's the most demanding environment.
 
2613
cat >conftest.$ac_ext <<_ACEOF
 
2614
#ifndef __cplusplus
 
2615
  choke me
 
2616
#endif
 
2617
_ACEOF
 
2618
rm -f conftest.$ac_objext
 
2619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2620
  (eval $ac_compile) 2>&5
 
2621
  ac_status=$?
 
2622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2623
  (exit $ac_status); } &&
 
2624
         { ac_try='test -s conftest.$ac_objext'
 
2625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2626
  (eval $ac_try) 2>&5
 
2627
  ac_status=$?
 
2628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2629
  (exit $ac_status); }; }; then
 
2630
  for ac_declaration in \
 
2631
   ''\
 
2632
   '#include <stdlib.h>' \
 
2633
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2634
   'extern "C" void std::exit (int); using std::exit;' \
 
2635
   'extern "C" void exit (int) throw ();' \
 
2636
   'extern "C" void exit (int);' \
 
2637
   'void exit (int);'
 
2638
do
 
2639
  cat >conftest.$ac_ext <<_ACEOF
 
2640
#line $LINENO "configure"
 
2641
/* confdefs.h.  */
 
2642
_ACEOF
 
2643
cat confdefs.h >>conftest.$ac_ext
 
2644
cat >>conftest.$ac_ext <<_ACEOF
 
2645
/* end confdefs.h.  */
 
2646
#include <stdlib.h>
 
2647
$ac_declaration
 
2648
int
 
2649
main ()
 
2650
{
 
2651
exit (42);
 
2652
  ;
 
2653
  return 0;
 
2654
}
 
2655
_ACEOF
 
2656
rm -f conftest.$ac_objext
 
2657
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2658
  (eval $ac_compile) 2>&5
 
2659
  ac_status=$?
 
2660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2661
  (exit $ac_status); } &&
 
2662
         { ac_try='test -s conftest.$ac_objext'
 
2663
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2664
  (eval $ac_try) 2>&5
 
2665
  ac_status=$?
 
2666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2667
  (exit $ac_status); }; }; then
 
2668
  :
 
2669
else
 
2670
  echo "$as_me: failed program was:" >&5
 
2671
sed 's/^/| /' conftest.$ac_ext >&5
 
2672
 
 
2673
continue
 
2674
fi
 
2675
rm -f conftest.$ac_objext conftest.$ac_ext
 
2676
  cat >conftest.$ac_ext <<_ACEOF
 
2677
#line $LINENO "configure"
 
2678
/* confdefs.h.  */
 
2679
_ACEOF
 
2680
cat confdefs.h >>conftest.$ac_ext
 
2681
cat >>conftest.$ac_ext <<_ACEOF
 
2682
/* end confdefs.h.  */
 
2683
$ac_declaration
 
2684
int
 
2685
main ()
 
2686
{
 
2687
exit (42);
 
2688
  ;
 
2689
  return 0;
 
2690
}
 
2691
_ACEOF
 
2692
rm -f conftest.$ac_objext
 
2693
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2694
  (eval $ac_compile) 2>&5
 
2695
  ac_status=$?
 
2696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2697
  (exit $ac_status); } &&
 
2698
         { ac_try='test -s conftest.$ac_objext'
 
2699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2700
  (eval $ac_try) 2>&5
 
2701
  ac_status=$?
 
2702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2703
  (exit $ac_status); }; }; then
 
2704
  break
 
2705
else
 
2706
  echo "$as_me: failed program was:" >&5
 
2707
sed 's/^/| /' conftest.$ac_ext >&5
 
2708
 
 
2709
fi
 
2710
rm -f conftest.$ac_objext conftest.$ac_ext
 
2711
done
 
2712
rm -f conftest*
 
2713
if test -n "$ac_declaration"; then
 
2714
  echo '#ifdef __cplusplus' >>confdefs.h
 
2715
  echo $ac_declaration      >>confdefs.h
 
2716
  echo '#endif'             >>confdefs.h
 
2717
fi
 
2718
 
 
2719
else
 
2720
  echo "$as_me: failed program was:" >&5
 
2721
sed 's/^/| /' conftest.$ac_ext >&5
 
2722
 
 
2723
fi
 
2724
rm -f conftest.$ac_objext conftest.$ac_ext
 
2725
ac_ext=c
 
2726
ac_cpp='$CPP $CPPFLAGS'
 
2727
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2728
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2729
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2730
DEPDIR="${am__leading_dot}deps"
 
2731
 
 
2732
          ac_config_commands="$ac_config_commands depfiles"
 
2733
 
 
2734
 
 
2735
am_make=${MAKE-make}
 
2736
cat > confinc << 'END'
 
2737
doit:
 
2738
        @echo done
 
2739
END
 
2740
# If we don't find an include directive, just comment out the code.
 
2741
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2742
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2743
am__include="#"
 
2744
am__quote=
 
2745
_am_result=none
 
2746
# First try GNU make style include.
 
2747
echo "include confinc" > confmf
 
2748
# We grep out `Entering directory' and `Leaving directory'
 
2749
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2750
# In particular we don't look at `^make:' because GNU make might
 
2751
# be invoked under some other name (usually "gmake"), in which
 
2752
# case it prints its new name instead of `make'.
 
2753
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2754
   am__include=include
 
2755
   am__quote=
 
2756
   _am_result=GNU
 
2757
fi
 
2758
# Now try BSD make style include.
 
2759
if test "$am__include" = "#"; then
 
2760
   echo '.include "confinc"' > confmf
 
2761
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2762
      am__include=.include
 
2763
      am__quote="\""
 
2764
      _am_result=BSD
 
2765
   fi
 
2766
fi
 
2767
 
 
2768
 
 
2769
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2770
echo "${ECHO_T}$_am_result" >&6
 
2771
rm -f confinc confmf
 
2772
 
 
2773
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2774
if test "${enable_dependency_tracking+set}" = set; then
 
2775
  enableval="$enable_dependency_tracking"
 
2776
 
 
2777
fi;
 
2778
if test "x$enable_dependency_tracking" != xno; then
 
2779
  am_depcomp="$ac_aux_dir/depcomp"
 
2780
  AMDEPBACKSLASH='\'
 
2781
fi
 
2782
 
 
2783
 
 
2784
if test "x$enable_dependency_tracking" != xno; then
 
2785
  AMDEP_TRUE=
 
2786
  AMDEP_FALSE='#'
 
2787
else
 
2788
  AMDEP_TRUE='#'
 
2789
  AMDEP_FALSE=
 
2790
fi
 
2791
 
 
2792
 
 
2793
 
 
2794
 
 
2795
depcc="$CC"   am_compiler_list=
 
2796
 
 
2797
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2798
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2799
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2801
else
 
2802
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2803
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2804
  # making bogus files that we don't know about and never remove.  For
 
2805
  # instance it was reported that on HP-UX the gcc test will end up
 
2806
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2807
  # in D'.
 
2808
  mkdir conftest.dir
 
2809
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2810
  # using a relative directory.
 
2811
  cp "$am_depcomp" conftest.dir
 
2812
  cd conftest.dir
 
2813
 
 
2814
  am_cv_CC_dependencies_compiler_type=none
 
2815
  if test "$am_compiler_list" = ""; then
 
2816
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2817
  fi
 
2818
  for depmode in $am_compiler_list; do
 
2819
    # We need to recreate these files for each test, as the compiler may
 
2820
    # overwrite some of them when testing with obscure command lines.
 
2821
    # This happens at least with the AIX C compiler.
 
2822
    echo '#include "conftest.h"' > conftest.c
 
2823
    echo 'int i;' > conftest.h
 
2824
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
2825
 
 
2826
    case $depmode in
 
2827
    nosideeffect)
 
2828
      # after this tag, mechanisms are not by side-effect, so they'll
 
2829
      # only be used when explicitly requested
 
2830
      if test "x$enable_dependency_tracking" = xyes; then
 
2831
        continue
 
2832
      else
 
2833
        break
 
2834
      fi
 
2835
      ;;
 
2836
    none) break ;;
 
2837
    esac
 
2838
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2839
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2840
    # handle `-M -o', and we need to detect this.
 
2841
    if depmode=$depmode \
 
2842
       source=conftest.c object=conftest.o \
 
2843
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
2844
       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
 
2845
         >/dev/null 2>conftest.err &&
 
2846
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
2847
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2848
      # icc doesn't choke on unknown options, it will just issue warnings
 
2849
      # (even with -Werror).  So we grep stderr for any message
 
2850
      # that says an option was ignored.
 
2851
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
2852
        am_cv_CC_dependencies_compiler_type=$depmode
 
2853
        break
 
2854
      fi
 
2855
    fi
 
2856
  done
 
2857
 
 
2858
  cd ..
 
2859
  rm -rf conftest.dir
 
2860
else
 
2861
  am_cv_CC_dependencies_compiler_type=none
 
2862
fi
 
2863
 
 
2864
fi
 
2865
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2866
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2867
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
2868
 
 
2869
 
 
2870
 
 
2871
if
 
2872
  test "x$enable_dependency_tracking" != xno \
 
2873
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
2874
  am__fastdepCC_TRUE=
 
2875
  am__fastdepCC_FALSE='#'
 
2876
else
 
2877
  am__fastdepCC_TRUE='#'
 
2878
  am__fastdepCC_FALSE=
 
2879
fi
 
2880
 
 
2881
 
 
2882
# Check whether --enable-shared or --disable-shared was given.
 
2883
if test "${enable_shared+set}" = set; then
 
2884
  enableval="$enable_shared"
 
2885
  p=${PACKAGE-default}
 
2886
    case $enableval in
 
2887
    yes) enable_shared=yes ;;
 
2888
    no) enable_shared=no ;;
 
2889
    *)
 
2890
      enable_shared=no
 
2891
      # Look at the argument we got.  We use all the common list separators.
 
2892
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2893
      for pkg in $enableval; do
 
2894
        IFS="$lt_save_ifs"
 
2895
        if test "X$pkg" = "X$p"; then
 
2896
          enable_shared=yes
 
2897
        fi
 
2898
      done
 
2899
      IFS="$lt_save_ifs"
 
2900
      ;;
 
2901
    esac
 
2902
else
 
2903
  enable_shared=yes
 
2904
fi;
 
2905
 
 
2906
# Check whether --enable-static or --disable-static was given.
 
2907
if test "${enable_static+set}" = set; then
 
2908
  enableval="$enable_static"
 
2909
  p=${PACKAGE-default}
 
2910
    case $enableval in
 
2911
    yes) enable_static=yes ;;
 
2912
    no) enable_static=no ;;
 
2913
    *)
 
2914
     enable_static=no
 
2915
      # Look at the argument we got.  We use all the common list separators.
 
2916
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2917
      for pkg in $enableval; do
 
2918
        IFS="$lt_save_ifs"
 
2919
        if test "X$pkg" = "X$p"; then
 
2920
          enable_static=yes
 
2921
        fi
 
2922
      done
 
2923
      IFS="$lt_save_ifs"
 
2924
      ;;
 
2925
    esac
 
2926
else
 
2927
  enable_static=yes
 
2928
fi;
 
2929
 
 
2930
# Check whether --enable-fast-install or --disable-fast-install was given.
 
2931
if test "${enable_fast_install+set}" = set; then
 
2932
  enableval="$enable_fast_install"
 
2933
  p=${PACKAGE-default}
 
2934
    case $enableval in
 
2935
    yes) enable_fast_install=yes ;;
 
2936
    no) enable_fast_install=no ;;
 
2937
    *)
 
2938
      enable_fast_install=no
 
2939
      # Look at the argument we got.  We use all the common list separators.
 
2940
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2941
      for pkg in $enableval; do
 
2942
        IFS="$lt_save_ifs"
 
2943
        if test "X$pkg" = "X$p"; then
 
2944
          enable_fast_install=yes
 
2945
        fi
 
2946
      done
 
2947
      IFS="$lt_save_ifs"
 
2948
      ;;
 
2949
    esac
 
2950
else
 
2951
  enable_fast_install=yes
 
2952
fi;
 
2953
 
 
2954
# Make sure we can run config.sub.
 
2955
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2956
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
2957
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2958
   { (exit 1); exit 1; }; }
 
2959
 
 
2960
echo "$as_me:$LINENO: checking build system type" >&5
 
2961
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2962
if test "${ac_cv_build+set}" = set; then
 
2963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2964
else
 
2965
  ac_cv_build_alias=$build_alias
 
2966
test -z "$ac_cv_build_alias" &&
 
2967
  ac_cv_build_alias=`$ac_config_guess`
 
2968
test -z "$ac_cv_build_alias" &&
 
2969
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2970
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2971
   { (exit 1); exit 1; }; }
 
2972
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2973
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
2974
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2975
   { (exit 1); exit 1; }; }
 
2976
 
 
2977
fi
 
2978
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2979
echo "${ECHO_T}$ac_cv_build" >&6
 
2980
build=$ac_cv_build
 
2981
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2982
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2983
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2984
 
 
2985
 
 
2986
echo "$as_me:$LINENO: checking host system type" >&5
 
2987
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2988
if test "${ac_cv_host+set}" = set; then
 
2989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2990
else
 
2991
  ac_cv_host_alias=$host_alias
 
2992
test -z "$ac_cv_host_alias" &&
 
2993
  ac_cv_host_alias=$ac_cv_build_alias
 
2994
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2995
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2996
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2997
   { (exit 1); exit 1; }; }
 
2998
 
 
2999
fi
 
3000
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3001
echo "${ECHO_T}$ac_cv_host" >&6
 
3002
host=$ac_cv_host
 
3003
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3004
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3005
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3006
 
 
3007
 
 
3008
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3009
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3010
if test "${lt_cv_path_SED+set}" = set; then
 
3011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3012
else
 
3013
  # Loop through the user's path and test for sed and gsed.
 
3014
# Then use that list of sed's as ones to test for truncation.
 
3015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3016
for as_dir in $PATH
 
3017
do
 
3018
  IFS=$as_save_IFS
 
3019
  test -z "$as_dir" && as_dir=.
 
3020
  for lt_ac_prog in sed gsed; do
 
3021
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3022
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3023
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3024
      fi
 
3025
    done
 
3026
  done
 
3027
done
 
3028
lt_ac_max=0
 
3029
lt_ac_count=0
 
3030
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3031
# along with /bin/sed that truncates output.
 
3032
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3033
  test ! -f $lt_ac_sed && break
 
3034
  cat /dev/null > conftest.in
 
3035
  lt_ac_count=0
 
3036
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3037
  # Check for GNU sed and select it if it is found.
 
3038
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3039
    lt_cv_path_SED=$lt_ac_sed
 
3040
    break
 
3041
  fi
 
3042
  while true; do
 
3043
    cat conftest.in conftest.in >conftest.tmp
 
3044
    mv conftest.tmp conftest.in
 
3045
    cp conftest.in conftest.nl
 
3046
    echo >>conftest.nl
 
3047
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3048
    cmp -s conftest.out conftest.nl || break
 
3049
    # 10000 chars as input seems more than enough
 
3050
    test $lt_ac_count -gt 10 && break
 
3051
    lt_ac_count=`expr $lt_ac_count + 1`
 
3052
    if test $lt_ac_count -gt $lt_ac_max; then
 
3053
      lt_ac_max=$lt_ac_count
 
3054
      lt_cv_path_SED=$lt_ac_sed
 
3055
    fi
 
3056
  done
 
3057
done
 
3058
SED=$lt_cv_path_SED
 
3059
 
 
3060
fi
 
3061
 
 
3062
echo "$as_me:$LINENO: result: $SED" >&5
 
3063
echo "${ECHO_T}$SED" >&6
 
3064
 
 
3065
echo "$as_me:$LINENO: checking for egrep" >&5
 
3066
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3067
if test "${ac_cv_prog_egrep+set}" = set; then
 
3068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3069
else
 
3070
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3071
    then ac_cv_prog_egrep='grep -E'
 
3072
    else ac_cv_prog_egrep='egrep'
 
3073
    fi
 
3074
fi
 
3075
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3076
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3077
 EGREP=$ac_cv_prog_egrep
 
3078
 
 
3079
 
 
3080
 
 
3081
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3082
if test "${with_gnu_ld+set}" = set; then
 
3083
  withval="$with_gnu_ld"
 
3084
  test "$withval" = no || with_gnu_ld=yes
 
3085
else
 
3086
  with_gnu_ld=no
 
3087
fi;
 
3088
ac_prog=ld
 
3089
if test "$GCC" = yes; then
 
3090
  # Check if gcc -print-prog-name=ld gives a path.
 
3091
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3092
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3093
  case $host in
 
3094
  *-*-mingw*)
 
3095
    # gcc leaves a trailing carriage return which upsets mingw
 
3096
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3097
  *)
 
3098
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3099
  esac
 
3100
  case $ac_prog in
 
3101
    # Accept absolute paths.
 
3102
    [\\/]* | ?:[\\/]*)
 
3103
      re_direlt='/[^/][^/]*/\.\./'
 
3104
      # Canonicalize the path of ld
 
3105
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3106
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3107
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3108
      done
 
3109
      test -z "$LD" && LD="$ac_prog"
 
3110
      ;;
 
3111
  "")
 
3112
    # If it fails, then pretend we aren't using GCC.
 
3113
    ac_prog=ld
 
3114
    ;;
 
3115
  *)
 
3116
    # If it is relative, then search for the first ld in PATH.
 
3117
    with_gnu_ld=unknown
 
3118
    ;;
 
3119
  esac
 
3120
elif test "$with_gnu_ld" = yes; then
 
3121
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3122
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3123
else
 
3124
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3125
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3126
fi
 
3127
if test "${lt_cv_path_LD+set}" = set; then
 
3128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3129
else
 
3130
  if test -z "$LD"; then
 
3131
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3132
  for ac_dir in $PATH; do
 
3133
    IFS="$lt_save_ifs"
 
3134
    test -z "$ac_dir" && ac_dir=.
 
3135
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3136
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3137
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3138
      # but apparently some GNU ld's only accept -v.
 
3139
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3140
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3141
      *GNU* | *'with BFD'*)
 
3142
        test "$with_gnu_ld" != no && break
 
3143
        ;;
 
3144
      *)
 
3145
        test "$with_gnu_ld" != yes && break
 
3146
        ;;
 
3147
      esac
 
3148
    fi
 
3149
  done
 
3150
  IFS="$lt_save_ifs"
 
3151
else
 
3152
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3153
fi
 
3154
fi
 
3155
 
 
3156
LD="$lt_cv_path_LD"
 
3157
if test -n "$LD"; then
 
3158
  echo "$as_me:$LINENO: result: $LD" >&5
 
3159
echo "${ECHO_T}$LD" >&6
 
3160
else
 
3161
  echo "$as_me:$LINENO: result: no" >&5
 
3162
echo "${ECHO_T}no" >&6
 
3163
fi
 
3164
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3165
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3166
   { (exit 1); exit 1; }; }
 
3167
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3168
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3169
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3170
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3171
else
 
3172
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3173
case `"$LD" -v 2>&1 </dev/null` in
 
3174
*GNU* | *'with BFD'*)
 
3175
  lt_cv_prog_gnu_ld=yes
 
3176
  ;;
 
3177
*)
 
3178
  lt_cv_prog_gnu_ld=no
 
3179
  ;;
 
3180
esac
 
3181
fi
 
3182
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3183
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3184
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3185
 
 
3186
 
 
3187
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3188
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3189
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3191
else
 
3192
  lt_cv_ld_reload_flag='-r'
 
3193
fi
 
3194
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3195
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3196
reload_flag=$lt_cv_ld_reload_flag
 
3197
case $reload_flag in
 
3198
"" | " "*) ;;
 
3199
*) reload_flag=" $reload_flag" ;;
 
3200
esac
 
3201
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3202
 
 
3203
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3204
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3205
if test "${lt_cv_path_NM+set}" = set; then
 
3206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3207
else
 
3208
  if test -n "$NM"; then
 
3209
  # Let the user override the test.
 
3210
  lt_cv_path_NM="$NM"
 
3211
else
 
3212
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3213
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3214
    IFS="$lt_save_ifs"
 
3215
    test -z "$ac_dir" && ac_dir=.
 
3216
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3217
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3218
      # Check to see if the nm accepts a BSD-compat flag.
 
3219
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3220
      #   nm: unknown option "B" ignored
 
3221
      # Tru64's nm complains that /dev/null is an invalid object file
 
3222
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3223
      */dev/null* | *'Invalid file or object type'*)
 
3224
        lt_cv_path_NM="$tmp_nm -B"
 
3225
        break
 
3226
        ;;
 
3227
      *)
 
3228
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3229
        */dev/null*)
 
3230
          lt_cv_path_NM="$tmp_nm -p"
 
3231
          break
 
3232
          ;;
 
3233
        *)
 
3234
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3235
          continue # so that we can try to find one that supports BSD flags
 
3236
          ;;
 
3237
        esac
 
3238
      esac
 
3239
    fi
 
3240
  done
 
3241
  IFS="$lt_save_ifs"
 
3242
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3243
fi
 
3244
fi
 
3245
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3246
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3247
NM="$lt_cv_path_NM"
 
3248
 
 
3249
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3250
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3251
LN_S=$as_ln_s
 
3252
if test "$LN_S" = "ln -s"; then
 
3253
  echo "$as_me:$LINENO: result: yes" >&5
 
3254
echo "${ECHO_T}yes" >&6
 
3255
else
 
3256
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3257
echo "${ECHO_T}no, using $LN_S" >&6
 
3258
fi
 
3259
 
 
3260
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3261
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3262
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3263
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3264
else
 
3265
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3266
lt_cv_file_magic_test_file=
 
3267
lt_cv_deplibs_check_method='unknown'
 
3268
# Need to set the preceding variable on all platforms that support
 
3269
# interlibrary dependencies.
 
3270
# 'none' -- dependencies not supported.
 
3271
# `unknown' -- same as none, but documents that we really don't know.
 
3272
# 'pass_all' -- all dependencies passed with no checks.
 
3273
# 'test_compile' -- check by making test program.
 
3274
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3275
# which responds to the $file_magic_cmd with a given extended regex.
 
3276
# If you have `file' or equivalent on your system and you're not sure
 
3277
# whether `pass_all' will *always* work, you probably want this one.
 
3278
 
 
3279
case $host_os in
 
3280
aix4* | aix5*)
 
3281
  lt_cv_deplibs_check_method=pass_all
 
3282
  ;;
 
3283
 
 
3284
beos*)
 
3285
  lt_cv_deplibs_check_method=pass_all
 
3286
  ;;
 
3287
 
 
3288
bsdi4*)
 
3289
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3290
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3291
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3292
  ;;
 
3293
 
 
3294
cygwin* | mingw* | pw32*)
 
3295
  # win32_libid is a shell function defined in ltmain.sh
 
3296
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3297
  lt_cv_file_magic_cmd='win32_libid'
 
3298
  ;;
 
3299
 
 
3300
darwin* | rhapsody*)
 
3301
  # this will be overwritten by pass_all, but leave it in just in case
 
3302
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
3303
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3304
  case "$host_os" in
 
3305
  rhapsody* | darwin1.[012])
 
3306
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
 
3307
    ;;
 
3308
  *) # Darwin 1.3 on
 
3309
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
3310
    ;;
 
3311
  esac
 
3312
  lt_cv_deplibs_check_method=pass_all
 
3313
  ;;
 
3314
 
 
3315
freebsd*)
 
3316
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3317
    case $host_cpu in
 
3318
    i*86 )
 
3319
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3320
      # Let's accept both of them until this is cleared up.
 
3321
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3322
      lt_cv_file_magic_cmd=/usr/bin/file
 
3323
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3324
      ;;
 
3325
    esac
 
3326
  else
 
3327
    lt_cv_deplibs_check_method=pass_all
 
3328
  fi
 
3329
  ;;
 
3330
 
 
3331
gnu*)
 
3332
  lt_cv_deplibs_check_method=pass_all
 
3333
  ;;
 
3334
 
 
3335
hpux10.20* | hpux11*)
 
3336
  lt_cv_file_magic_cmd=/usr/bin/file
 
3337
  case "$host_cpu" in
 
3338
  ia64*)
 
3339
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3340
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3341
    ;;
 
3342
  hppa*64*)
 
3343
    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]'
 
3344
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3345
    ;;
 
3346
  *)
 
3347
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3348
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3349
    ;;
 
3350
  esac
 
3351
  ;;
 
3352
 
 
3353
irix5* | irix6* | nonstopux*)
 
3354
  case $host_os in
 
3355
  irix5* | nonstopux*)
 
3356
    # this will be overridden with pass_all, but let us keep it just in case
 
3357
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
3358
    ;;
 
3359
  *)
 
3360
    case $LD in
 
3361
    *-32|*"-32 ") libmagic=32-bit;;
 
3362
    *-n32|*"-n32 ") libmagic=N32;;
 
3363
    *-64|*"-64 ") libmagic=64-bit;;
 
3364
    *) libmagic=never-match;;
 
3365
    esac
 
3366
    # this will be overridden with pass_all, but let us keep it just in case
 
3367
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
3368
    ;;
 
3369
  esac
 
3370
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
3371
  lt_cv_deplibs_check_method=pass_all
 
3372
  ;;
 
3373
 
 
3374
# This must be Linux ELF.
 
3375
linux*)
 
3376
  case $host_cpu in
 
3377
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
 
3378
    lt_cv_deplibs_check_method=pass_all ;;
 
3379
  *)
 
3380
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
3381
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
3382
  esac
 
3383
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
3384
  ;;
 
3385
 
 
3386
netbsd*)
 
3387
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3388
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3389
  else
 
3390
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3391
  fi
 
3392
  ;;
 
3393
 
 
3394
newos6*)
 
3395
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3396
  lt_cv_file_magic_cmd=/usr/bin/file
 
3397
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3398
  ;;
 
3399
 
 
3400
nto-qnx)
 
3401
  lt_cv_deplibs_check_method=unknown
 
3402
  ;;
 
3403
 
 
3404
openbsd*)
 
3405
  lt_cv_file_magic_cmd=/usr/bin/file
 
3406
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3407
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3408
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3409
  else
 
3410
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3411
  fi
 
3412
  ;;
 
3413
 
 
3414
osf3* | osf4* | osf5*)
 
3415
  # this will be overridden with pass_all, but let us keep it just in case
 
3416
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
3417
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3418
  lt_cv_deplibs_check_method=pass_all
 
3419
  ;;
 
3420
 
 
3421
sco3.2v5*)
 
3422
  lt_cv_deplibs_check_method=pass_all
 
3423
  ;;
 
3424
 
 
3425
solaris*)
 
3426
  lt_cv_deplibs_check_method=pass_all
 
3427
  lt_cv_file_magic_test_file=/lib/libc.so
 
3428
  ;;
 
3429
 
 
3430
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3431
  case $host_vendor in
 
3432
  motorola)
 
3433
    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]'
 
3434
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3435
    ;;
 
3436
  ncr)
 
3437
    lt_cv_deplibs_check_method=pass_all
 
3438
    ;;
 
3439
  sequent)
 
3440
    lt_cv_file_magic_cmd='/bin/file'
 
3441
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3442
    ;;
 
3443
  sni)
 
3444
    lt_cv_file_magic_cmd='/bin/file'
 
3445
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3446
    lt_cv_file_magic_test_file=/lib/libc.so
 
3447
    ;;
 
3448
  siemens)
 
3449
    lt_cv_deplibs_check_method=pass_all
 
3450
    ;;
 
3451
  esac
 
3452
  ;;
 
3453
 
 
3454
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3455
  lt_cv_deplibs_check_method=pass_all
 
3456
  ;;
 
3457
esac
 
3458
 
 
3459
fi
 
3460
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3461
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3462
file_magic_cmd=$lt_cv_file_magic_cmd
 
3463
deplibs_check_method=$lt_cv_deplibs_check_method
 
3464
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3465
 
 
3466
 
 
3467
 
 
3468
 
 
3469
# If no C compiler was specified, use CC.
 
3470
LTCC=${LTCC-"$CC"}
 
3471
 
 
3472
# Allow CC to be a program name with arguments.
 
3473
compiler=$CC
 
3474
 
 
3475
 
 
3476
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3477
if test "${enable_libtool_lock+set}" = set; then
 
3478
  enableval="$enable_libtool_lock"
 
3479
 
 
3480
fi;
 
3481
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3482
 
 
3483
# Some flags need to be propagated to the compiler or linker for good
 
3484
# libtool support.
 
3485
case $host in
 
3486
ia64-*-hpux*)
 
3487
  # Find out which ABI we are using.
 
3488
  echo 'int i;' > conftest.$ac_ext
 
3489
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3490
  (eval $ac_compile) 2>&5
 
3491
  ac_status=$?
 
3492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3493
  (exit $ac_status); }; then
 
3494
    case `/usr/bin/file conftest.$ac_objext` in
 
3495
    *ELF-32*)
 
3496
      HPUX_IA64_MODE="32"
 
3497
      ;;
 
3498
    *ELF-64*)
 
3499
      HPUX_IA64_MODE="64"
 
3500
      ;;
 
3501
    esac
 
3502
  fi
 
3503
  rm -rf conftest*
 
3504
  ;;
 
3505
*-*-irix6*)
 
3506
  # Find out which ABI we are using.
 
3507
  echo '#line 3507 "configure"' > conftest.$ac_ext
 
3508
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3509
  (eval $ac_compile) 2>&5
 
3510
  ac_status=$?
 
3511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3512
  (exit $ac_status); }; then
 
3513
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3514
    case `/usr/bin/file conftest.$ac_objext` in
 
3515
    *32-bit*)
 
3516
      LD="${LD-ld} -melf32bsmip"
 
3517
      ;;
 
3518
    *N32*)
 
3519
      LD="${LD-ld} -melf32bmipn32"
 
3520
      ;;
 
3521
    *64-bit*)
 
3522
      LD="${LD-ld} -melf64bmip"
 
3523
      ;;
 
3524
    esac
 
3525
   else
 
3526
    case `/usr/bin/file conftest.$ac_objext` in
 
3527
    *32-bit*)
 
3528
      LD="${LD-ld} -32"
 
3529
      ;;
 
3530
    *N32*)
 
3531
      LD="${LD-ld} -n32"
 
3532
      ;;
 
3533
    *64-bit*)
 
3534
      LD="${LD-ld} -64"
 
3535
      ;;
 
3536
    esac
 
3537
   fi
 
3538
  fi
 
3539
  rm -rf conftest*
 
3540
  ;;
 
3541
 
 
3542
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3543
  # Find out which ABI we are using.
 
3544
  echo 'int i;' > conftest.$ac_ext
 
3545
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3546
  (eval $ac_compile) 2>&5
 
3547
  ac_status=$?
 
3548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3549
  (exit $ac_status); }; then
 
3550
    case "`/usr/bin/file conftest.o`" in
 
3551
    *32-bit*)
 
3552
      case $host in
 
3553
        x86_64-*linux*)
 
3554
          LD="${LD-ld} -m elf_i386"
 
3555
          ;;
 
3556
        ppc64-*linux*)
 
3557
          LD="${LD-ld} -m elf32ppclinux"
 
3558
          ;;
 
3559
        s390x-*linux*)
 
3560
          LD="${LD-ld} -m elf_s390"
 
3561
          ;;
 
3562
        sparc64-*linux*)
 
3563
          LD="${LD-ld} -m elf32_sparc"
 
3564
          ;;
 
3565
      esac
 
3566
      ;;
 
3567
    *64-bit*)
 
3568
      case $host in
 
3569
        x86_64-*linux*)
 
3570
          LD="${LD-ld} -m elf_x86_64"
 
3571
          ;;
 
3572
        ppc*-*linux*|powerpc*-*linux*)
 
3573
          LD="${LD-ld} -m elf64ppc"
 
3574
          ;;
 
3575
        s390*-*linux*)
 
3576
          LD="${LD-ld} -m elf64_s390"
 
3577
          ;;
 
3578
        sparc*-*linux*)
 
3579
          LD="${LD-ld} -m elf64_sparc"
 
3580
          ;;
 
3581
      esac
 
3582
      ;;
 
3583
    esac
 
3584
  fi
 
3585
  rm -rf conftest*
 
3586
  ;;
 
3587
 
 
3588
*-*-sco3.2v5*)
 
3589
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3590
  SAVE_CFLAGS="$CFLAGS"
 
3591
  CFLAGS="$CFLAGS -belf"
 
3592
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3593
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3594
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3596
else
 
3597
  ac_ext=c
 
3598
ac_cpp='$CPP $CPPFLAGS'
 
3599
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3600
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3601
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3602
 
 
3603
     cat >conftest.$ac_ext <<_ACEOF
 
3604
#line $LINENO "configure"
 
3605
/* confdefs.h.  */
 
3606
_ACEOF
 
3607
cat confdefs.h >>conftest.$ac_ext
 
3608
cat >>conftest.$ac_ext <<_ACEOF
 
3609
/* end confdefs.h.  */
 
3610
 
 
3611
int
 
3612
main ()
 
3613
{
 
3614
 
 
3615
  ;
 
3616
  return 0;
 
3617
}
 
3618
_ACEOF
 
3619
rm -f conftest.$ac_objext conftest$ac_exeext
 
3620
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3621
  (eval $ac_link) 2>&5
 
3622
  ac_status=$?
 
3623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3624
  (exit $ac_status); } &&
 
3625
         { ac_try='test -s conftest$ac_exeext'
 
3626
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3627
  (eval $ac_try) 2>&5
 
3628
  ac_status=$?
 
3629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3630
  (exit $ac_status); }; }; then
 
3631
  lt_cv_cc_needs_belf=yes
 
3632
else
 
3633
  echo "$as_me: failed program was:" >&5
 
3634
sed 's/^/| /' conftest.$ac_ext >&5
 
3635
 
 
3636
lt_cv_cc_needs_belf=no
 
3637
fi
 
3638
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3639
     ac_ext=c
 
3640
ac_cpp='$CPP $CPPFLAGS'
 
3641
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3642
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3643
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3644
 
 
3645
fi
 
3646
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3647
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3648
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3649
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3650
    CFLAGS="$SAVE_CFLAGS"
 
3651
  fi
 
3652
  ;;
 
3653
 
 
3654
esac
 
3655
 
 
3656
need_locks="$enable_libtool_lock"
 
3657
 
 
3658
 
 
3659
ac_ext=c
 
3660
ac_cpp='$CPP $CPPFLAGS'
 
3661
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3662
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3663
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3664
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3665
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3666
# On Suns, sometimes $CPP names a directory.
 
3667
if test -n "$CPP" && test -d "$CPP"; then
 
3668
  CPP=
 
3669
fi
 
3670
if test -z "$CPP"; then
 
3671
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3673
else
 
3674
      # Double quotes because CPP needs to be expanded
 
3675
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3676
    do
 
3677
      ac_preproc_ok=false
 
3678
for ac_c_preproc_warn_flag in '' yes
 
3679
do
 
3680
  # Use a header file that comes with gcc, so configuring glibc
 
3681
  # with a fresh cross-compiler works.
 
3682
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3683
  # <limits.h> exists even on freestanding compilers.
 
3684
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3685
  # not just through cpp. "Syntax error" is here to catch this case.
 
3686
  cat >conftest.$ac_ext <<_ACEOF
 
3687
#line $LINENO "configure"
 
3688
/* confdefs.h.  */
 
3689
_ACEOF
 
3690
cat confdefs.h >>conftest.$ac_ext
 
3691
cat >>conftest.$ac_ext <<_ACEOF
 
3692
/* end confdefs.h.  */
 
3693
#ifdef __STDC__
 
3694
# include <limits.h>
 
3695
#else
 
3696
# include <assert.h>
 
3697
#endif
 
3698
                     Syntax error
 
3699
_ACEOF
 
3700
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3701
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3702
  ac_status=$?
 
3703
  grep -v '^ *+' conftest.er1 >conftest.err
 
3704
  rm -f conftest.er1
 
3705
  cat conftest.err >&5
 
3706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3707
  (exit $ac_status); } >/dev/null; then
 
3708
  if test -s conftest.err; then
 
3709
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3710
  else
 
3711
    ac_cpp_err=
 
3712
  fi
 
3713
else
 
3714
  ac_cpp_err=yes
 
3715
fi
 
3716
if test -z "$ac_cpp_err"; then
 
3717
  :
 
3718
else
 
3719
  echo "$as_me: failed program was:" >&5
 
3720
sed 's/^/| /' conftest.$ac_ext >&5
 
3721
 
 
3722
  # Broken: fails on valid input.
 
3723
continue
 
3724
fi
 
3725
rm -f conftest.err conftest.$ac_ext
 
3726
 
 
3727
  # OK, works on sane cases.  Now check whether non-existent headers
 
3728
  # can be detected and how.
 
3729
  cat >conftest.$ac_ext <<_ACEOF
 
3730
#line $LINENO "configure"
 
3731
/* confdefs.h.  */
 
3732
_ACEOF
 
3733
cat confdefs.h >>conftest.$ac_ext
 
3734
cat >>conftest.$ac_ext <<_ACEOF
 
3735
/* end confdefs.h.  */
 
3736
#include <ac_nonexistent.h>
 
3737
_ACEOF
 
3738
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3739
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3740
  ac_status=$?
 
3741
  grep -v '^ *+' conftest.er1 >conftest.err
 
3742
  rm -f conftest.er1
 
3743
  cat conftest.err >&5
 
3744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3745
  (exit $ac_status); } >/dev/null; then
 
3746
  if test -s conftest.err; then
 
3747
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3748
  else
 
3749
    ac_cpp_err=
 
3750
  fi
 
3751
else
 
3752
  ac_cpp_err=yes
 
3753
fi
 
3754
if test -z "$ac_cpp_err"; then
 
3755
  # Broken: success on invalid input.
 
3756
continue
 
3757
else
 
3758
  echo "$as_me: failed program was:" >&5
 
3759
sed 's/^/| /' conftest.$ac_ext >&5
 
3760
 
 
3761
  # Passes both tests.
 
3762
ac_preproc_ok=:
 
3763
break
 
3764
fi
 
3765
rm -f conftest.err conftest.$ac_ext
 
3766
 
 
3767
done
 
3768
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3769
rm -f conftest.err conftest.$ac_ext
 
3770
if $ac_preproc_ok; then
 
3771
  break
 
3772
fi
 
3773
 
 
3774
    done
 
3775
    ac_cv_prog_CPP=$CPP
 
3776
 
 
3777
fi
 
3778
  CPP=$ac_cv_prog_CPP
 
3779
else
 
3780
  ac_cv_prog_CPP=$CPP
 
3781
fi
 
3782
echo "$as_me:$LINENO: result: $CPP" >&5
 
3783
echo "${ECHO_T}$CPP" >&6
 
3784
ac_preproc_ok=false
 
3785
for ac_c_preproc_warn_flag in '' yes
 
3786
do
 
3787
  # Use a header file that comes with gcc, so configuring glibc
 
3788
  # with a fresh cross-compiler works.
 
3789
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3790
  # <limits.h> exists even on freestanding compilers.
 
3791
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3792
  # not just through cpp. "Syntax error" is here to catch this case.
 
3793
  cat >conftest.$ac_ext <<_ACEOF
 
3794
#line $LINENO "configure"
 
3795
/* confdefs.h.  */
 
3796
_ACEOF
 
3797
cat confdefs.h >>conftest.$ac_ext
 
3798
cat >>conftest.$ac_ext <<_ACEOF
 
3799
/* end confdefs.h.  */
 
3800
#ifdef __STDC__
 
3801
# include <limits.h>
 
3802
#else
 
3803
# include <assert.h>
 
3804
#endif
 
3805
                     Syntax error
 
3806
_ACEOF
 
3807
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3808
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3809
  ac_status=$?
 
3810
  grep -v '^ *+' conftest.er1 >conftest.err
 
3811
  rm -f conftest.er1
 
3812
  cat conftest.err >&5
 
3813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3814
  (exit $ac_status); } >/dev/null; then
 
3815
  if test -s conftest.err; then
 
3816
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3817
  else
 
3818
    ac_cpp_err=
 
3819
  fi
 
3820
else
 
3821
  ac_cpp_err=yes
 
3822
fi
 
3823
if test -z "$ac_cpp_err"; then
 
3824
  :
 
3825
else
 
3826
  echo "$as_me: failed program was:" >&5
 
3827
sed 's/^/| /' conftest.$ac_ext >&5
 
3828
 
 
3829
  # Broken: fails on valid input.
 
3830
continue
 
3831
fi
 
3832
rm -f conftest.err conftest.$ac_ext
 
3833
 
 
3834
  # OK, works on sane cases.  Now check whether non-existent headers
 
3835
  # can be detected and how.
 
3836
  cat >conftest.$ac_ext <<_ACEOF
 
3837
#line $LINENO "configure"
 
3838
/* confdefs.h.  */
 
3839
_ACEOF
 
3840
cat confdefs.h >>conftest.$ac_ext
 
3841
cat >>conftest.$ac_ext <<_ACEOF
 
3842
/* end confdefs.h.  */
 
3843
#include <ac_nonexistent.h>
 
3844
_ACEOF
 
3845
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3846
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3847
  ac_status=$?
 
3848
  grep -v '^ *+' conftest.er1 >conftest.err
 
3849
  rm -f conftest.er1
 
3850
  cat conftest.err >&5
 
3851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3852
  (exit $ac_status); } >/dev/null; then
 
3853
  if test -s conftest.err; then
 
3854
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3855
  else
 
3856
    ac_cpp_err=
 
3857
  fi
 
3858
else
 
3859
  ac_cpp_err=yes
 
3860
fi
 
3861
if test -z "$ac_cpp_err"; then
 
3862
  # Broken: success on invalid input.
 
3863
continue
 
3864
else
 
3865
  echo "$as_me: failed program was:" >&5
 
3866
sed 's/^/| /' conftest.$ac_ext >&5
 
3867
 
 
3868
  # Passes both tests.
 
3869
ac_preproc_ok=:
 
3870
break
 
3871
fi
 
3872
rm -f conftest.err conftest.$ac_ext
 
3873
 
 
3874
done
 
3875
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3876
rm -f conftest.err conftest.$ac_ext
 
3877
if $ac_preproc_ok; then
 
3878
  :
 
3879
else
 
3880
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3881
See \`config.log' for more details." >&5
 
3882
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3883
See \`config.log' for more details." >&2;}
 
3884
   { (exit 1); exit 1; }; }
 
3885
fi
 
3886
 
 
3887
ac_ext=c
 
3888
ac_cpp='$CPP $CPPFLAGS'
 
3889
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3890
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3891
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3892
 
 
3893
 
 
3894
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3895
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3896
if test "${ac_cv_header_stdc+set}" = set; then
 
3897
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3898
else
 
3899
  cat >conftest.$ac_ext <<_ACEOF
 
3900
#line $LINENO "configure"
 
3901
/* confdefs.h.  */
 
3902
_ACEOF
 
3903
cat confdefs.h >>conftest.$ac_ext
 
3904
cat >>conftest.$ac_ext <<_ACEOF
 
3905
/* end confdefs.h.  */
 
3906
#include <stdlib.h>
 
3907
#include <stdarg.h>
 
3908
#include <string.h>
 
3909
#include <float.h>
 
3910
 
 
3911
int
 
3912
main ()
 
3913
{
 
3914
 
 
3915
  ;
 
3916
  return 0;
 
3917
}
 
3918
_ACEOF
 
3919
rm -f conftest.$ac_objext
 
3920
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3921
  (eval $ac_compile) 2>&5
 
3922
  ac_status=$?
 
3923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3924
  (exit $ac_status); } &&
 
3925
         { ac_try='test -s conftest.$ac_objext'
 
3926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3927
  (eval $ac_try) 2>&5
 
3928
  ac_status=$?
 
3929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3930
  (exit $ac_status); }; }; then
 
3931
  ac_cv_header_stdc=yes
 
3932
else
 
3933
  echo "$as_me: failed program was:" >&5
 
3934
sed 's/^/| /' conftest.$ac_ext >&5
 
3935
 
 
3936
ac_cv_header_stdc=no
 
3937
fi
 
3938
rm -f conftest.$ac_objext conftest.$ac_ext
 
3939
 
 
3940
if test $ac_cv_header_stdc = yes; then
 
3941
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3942
  cat >conftest.$ac_ext <<_ACEOF
 
3943
#line $LINENO "configure"
 
3944
/* confdefs.h.  */
 
3945
_ACEOF
 
3946
cat confdefs.h >>conftest.$ac_ext
 
3947
cat >>conftest.$ac_ext <<_ACEOF
 
3948
/* end confdefs.h.  */
 
3949
#include <string.h>
 
3950
 
 
3951
_ACEOF
 
3952
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3953
  $EGREP "memchr" >/dev/null 2>&1; then
 
3954
  :
 
3955
else
 
3956
  ac_cv_header_stdc=no
 
3957
fi
 
3958
rm -f conftest*
 
3959
 
 
3960
fi
 
3961
 
 
3962
if test $ac_cv_header_stdc = yes; then
 
3963
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3964
  cat >conftest.$ac_ext <<_ACEOF
 
3965
#line $LINENO "configure"
 
3966
/* confdefs.h.  */
 
3967
_ACEOF
 
3968
cat confdefs.h >>conftest.$ac_ext
 
3969
cat >>conftest.$ac_ext <<_ACEOF
 
3970
/* end confdefs.h.  */
 
3971
#include <stdlib.h>
 
3972
 
 
3973
_ACEOF
 
3974
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3975
  $EGREP "free" >/dev/null 2>&1; then
 
3976
  :
 
3977
else
 
3978
  ac_cv_header_stdc=no
 
3979
fi
 
3980
rm -f conftest*
 
3981
 
 
3982
fi
 
3983
 
 
3984
if test $ac_cv_header_stdc = yes; then
 
3985
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3986
  if test "$cross_compiling" = yes; then
 
3987
  :
 
3988
else
 
3989
  cat >conftest.$ac_ext <<_ACEOF
 
3990
#line $LINENO "configure"
 
3991
/* confdefs.h.  */
 
3992
_ACEOF
 
3993
cat confdefs.h >>conftest.$ac_ext
 
3994
cat >>conftest.$ac_ext <<_ACEOF
 
3995
/* end confdefs.h.  */
 
3996
#include <ctype.h>
 
3997
#if ((' ' & 0x0FF) == 0x020)
 
3998
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3999
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4000
#else
 
4001
# define ISLOWER(c) \
 
4002
                   (('a' <= (c) && (c) <= 'i') \
 
4003
                     || ('j' <= (c) && (c) <= 'r') \
 
4004
                     || ('s' <= (c) && (c) <= 'z'))
 
4005
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4006
#endif
 
4007
 
 
4008
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4009
int
 
4010
main ()
 
4011
{
 
4012
  int i;
 
4013
  for (i = 0; i < 256; i++)
 
4014
    if (XOR (islower (i), ISLOWER (i))
 
4015
        || toupper (i) != TOUPPER (i))
 
4016
      exit(2);
 
4017
  exit (0);
 
4018
}
 
4019
_ACEOF
 
4020
rm -f conftest$ac_exeext
 
4021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4022
  (eval $ac_link) 2>&5
 
4023
  ac_status=$?
 
4024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4025
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4027
  (eval $ac_try) 2>&5
 
4028
  ac_status=$?
 
4029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4030
  (exit $ac_status); }; }; then
 
4031
  :
 
4032
else
 
4033
  echo "$as_me: program exited with status $ac_status" >&5
 
4034
echo "$as_me: failed program was:" >&5
 
4035
sed 's/^/| /' conftest.$ac_ext >&5
 
4036
 
 
4037
( exit $ac_status )
 
4038
ac_cv_header_stdc=no
 
4039
fi
 
4040
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4041
fi
 
4042
fi
 
4043
fi
 
4044
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4045
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4046
if test $ac_cv_header_stdc = yes; then
 
4047
 
 
4048
cat >>confdefs.h <<\_ACEOF
 
4049
#define STDC_HEADERS 1
 
4050
_ACEOF
 
4051
 
 
4052
fi
 
4053
 
 
4054
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4055
 
 
4056
 
 
4057
 
 
4058
 
 
4059
 
 
4060
 
 
4061
 
 
4062
 
 
4063
 
 
4064
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4065
                  inttypes.h stdint.h unistd.h
 
4066
do
 
4067
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4068
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4069
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4070
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4072
else
 
4073
  cat >conftest.$ac_ext <<_ACEOF
 
4074
#line $LINENO "configure"
 
4075
/* confdefs.h.  */
 
4076
_ACEOF
 
4077
cat confdefs.h >>conftest.$ac_ext
 
4078
cat >>conftest.$ac_ext <<_ACEOF
 
4079
/* end confdefs.h.  */
 
4080
$ac_includes_default
 
4081
 
 
4082
#include <$ac_header>
 
4083
_ACEOF
 
4084
rm -f conftest.$ac_objext
 
4085
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4086
  (eval $ac_compile) 2>&5
 
4087
  ac_status=$?
 
4088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4089
  (exit $ac_status); } &&
 
4090
         { ac_try='test -s conftest.$ac_objext'
 
4091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4092
  (eval $ac_try) 2>&5
 
4093
  ac_status=$?
 
4094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4095
  (exit $ac_status); }; }; then
 
4096
  eval "$as_ac_Header=yes"
 
4097
else
 
4098
  echo "$as_me: failed program was:" >&5
 
4099
sed 's/^/| /' conftest.$ac_ext >&5
 
4100
 
 
4101
eval "$as_ac_Header=no"
 
4102
fi
 
4103
rm -f conftest.$ac_objext conftest.$ac_ext
 
4104
fi
 
4105
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4106
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4107
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4108
  cat >>confdefs.h <<_ACEOF
 
4109
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4110
_ACEOF
 
4111
 
 
4112
fi
 
4113
 
 
4114
done
 
4115
 
 
4116
 
 
4117
 
 
4118
for ac_header in dlfcn.h
 
4119
do
 
4120
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4121
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4122
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4123
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4124
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4126
fi
 
4127
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4128
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4129
else
 
4130
  # Is the header compilable?
 
4131
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4132
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4133
cat >conftest.$ac_ext <<_ACEOF
 
4134
#line $LINENO "configure"
 
4135
/* confdefs.h.  */
 
4136
_ACEOF
 
4137
cat confdefs.h >>conftest.$ac_ext
 
4138
cat >>conftest.$ac_ext <<_ACEOF
 
4139
/* end confdefs.h.  */
 
4140
$ac_includes_default
 
4141
#include <$ac_header>
 
4142
_ACEOF
 
4143
rm -f conftest.$ac_objext
 
4144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4145
  (eval $ac_compile) 2>&5
 
4146
  ac_status=$?
 
4147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4148
  (exit $ac_status); } &&
 
4149
         { ac_try='test -s conftest.$ac_objext'
 
4150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4151
  (eval $ac_try) 2>&5
 
4152
  ac_status=$?
 
4153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4154
  (exit $ac_status); }; }; then
 
4155
  ac_header_compiler=yes
 
4156
else
 
4157
  echo "$as_me: failed program was:" >&5
 
4158
sed 's/^/| /' conftest.$ac_ext >&5
 
4159
 
 
4160
ac_header_compiler=no
 
4161
fi
 
4162
rm -f conftest.$ac_objext conftest.$ac_ext
 
4163
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4164
echo "${ECHO_T}$ac_header_compiler" >&6
 
4165
 
 
4166
# Is the header present?
 
4167
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4168
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4169
cat >conftest.$ac_ext <<_ACEOF
 
4170
#line $LINENO "configure"
 
4171
/* confdefs.h.  */
 
4172
_ACEOF
 
4173
cat confdefs.h >>conftest.$ac_ext
 
4174
cat >>conftest.$ac_ext <<_ACEOF
 
4175
/* end confdefs.h.  */
 
4176
#include <$ac_header>
 
4177
_ACEOF
 
4178
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4179
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4180
  ac_status=$?
 
4181
  grep -v '^ *+' conftest.er1 >conftest.err
 
4182
  rm -f conftest.er1
 
4183
  cat conftest.err >&5
 
4184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4185
  (exit $ac_status); } >/dev/null; then
 
4186
  if test -s conftest.err; then
 
4187
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4188
  else
 
4189
    ac_cpp_err=
 
4190
  fi
 
4191
else
 
4192
  ac_cpp_err=yes
 
4193
fi
 
4194
if test -z "$ac_cpp_err"; then
 
4195
  ac_header_preproc=yes
 
4196
else
 
4197
  echo "$as_me: failed program was:" >&5
 
4198
sed 's/^/| /' conftest.$ac_ext >&5
 
4199
 
 
4200
  ac_header_preproc=no
 
4201
fi
 
4202
rm -f conftest.err conftest.$ac_ext
 
4203
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4204
echo "${ECHO_T}$ac_header_preproc" >&6
 
4205
 
 
4206
# So?  What about this header?
 
4207
case $ac_header_compiler:$ac_header_preproc in
 
4208
  yes:no )
 
4209
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4210
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4211
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4212
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4213
    (
 
4214
      cat <<\_ASBOX
 
4215
## ------------------------------------ ##
 
4216
## Report this to bug-autoconf@gnu.org. ##
 
4217
## ------------------------------------ ##
 
4218
_ASBOX
 
4219
    ) |
 
4220
      sed "s/^/$as_me: WARNING:     /" >&2
 
4221
    ;;
 
4222
  no:yes )
 
4223
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4224
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4225
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
4226
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
4227
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4228
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4229
    (
 
4230
      cat <<\_ASBOX
 
4231
## ------------------------------------ ##
 
4232
## Report this to bug-autoconf@gnu.org. ##
 
4233
## ------------------------------------ ##
 
4234
_ASBOX
 
4235
    ) |
 
4236
      sed "s/^/$as_me: WARNING:     /" >&2
 
4237
    ;;
 
4238
esac
 
4239
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4240
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4241
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4243
else
 
4244
  eval "$as_ac_Header=$ac_header_preproc"
 
4245
fi
 
4246
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4247
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4248
 
 
4249
fi
 
4250
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4251
  cat >>confdefs.h <<_ACEOF
 
4252
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4253
_ACEOF
 
4254
 
 
4255
fi
 
4256
 
 
4257
done
 
4258
 
 
4259
ac_ext=cc
 
4260
ac_cpp='$CXXCPP $CPPFLAGS'
 
4261
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4262
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4263
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4264
if test -n "$ac_tool_prefix"; then
 
4265
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4266
  do
 
4267
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4268
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4269
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4270
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4271
if test "${ac_cv_prog_CXX+set}" = set; then
 
4272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4273
else
 
4274
  if test -n "$CXX"; then
 
4275
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4276
else
 
4277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4278
for as_dir in $PATH
 
4279
do
 
4280
  IFS=$as_save_IFS
 
4281
  test -z "$as_dir" && as_dir=.
 
4282
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4283
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4284
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4285
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4286
    break 2
 
4287
  fi
 
4288
done
 
4289
done
 
4290
 
 
4291
fi
 
4292
fi
 
4293
CXX=$ac_cv_prog_CXX
 
4294
if test -n "$CXX"; then
 
4295
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4296
echo "${ECHO_T}$CXX" >&6
 
4297
else
 
4298
  echo "$as_me:$LINENO: result: no" >&5
 
4299
echo "${ECHO_T}no" >&6
 
4300
fi
 
4301
 
 
4302
    test -n "$CXX" && break
 
4303
  done
 
4304
fi
 
4305
if test -z "$CXX"; then
 
4306
  ac_ct_CXX=$CXX
 
4307
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4308
do
 
4309
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4310
set dummy $ac_prog; ac_word=$2
 
4311
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4313
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4315
else
 
4316
  if test -n "$ac_ct_CXX"; then
 
4317
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4318
else
 
4319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4320
for as_dir in $PATH
 
4321
do
 
4322
  IFS=$as_save_IFS
 
4323
  test -z "$as_dir" && as_dir=.
 
4324
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4325
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4326
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4327
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4328
    break 2
 
4329
  fi
 
4330
done
 
4331
done
 
4332
 
 
4333
fi
 
4334
fi
 
4335
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4336
if test -n "$ac_ct_CXX"; then
 
4337
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4338
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4339
else
 
4340
  echo "$as_me:$LINENO: result: no" >&5
 
4341
echo "${ECHO_T}no" >&6
 
4342
fi
 
4343
 
 
4344
  test -n "$ac_ct_CXX" && break
 
4345
done
 
4346
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4347
 
 
4348
  CXX=$ac_ct_CXX
 
4349
fi
 
4350
 
 
4351
 
 
4352
# Provide some information about the compiler.
 
4353
echo "$as_me:$LINENO:" \
 
4354
     "checking for C++ compiler version" >&5
 
4355
ac_compiler=`set X $ac_compile; echo $2`
 
4356
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4357
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4358
  ac_status=$?
 
4359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4360
  (exit $ac_status); }
 
4361
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4362
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4363
  ac_status=$?
 
4364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4365
  (exit $ac_status); }
 
4366
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4367
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4368
  ac_status=$?
 
4369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4370
  (exit $ac_status); }
 
4371
 
 
4372
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4373
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4374
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4375
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4376
else
 
4377
  cat >conftest.$ac_ext <<_ACEOF
 
4378
#line $LINENO "configure"
 
4379
/* confdefs.h.  */
 
4380
_ACEOF
 
4381
cat confdefs.h >>conftest.$ac_ext
 
4382
cat >>conftest.$ac_ext <<_ACEOF
 
4383
/* end confdefs.h.  */
 
4384
 
 
4385
int
 
4386
main ()
 
4387
{
 
4388
#ifndef __GNUC__
 
4389
       choke me
 
4390
#endif
 
4391
 
 
4392
  ;
 
4393
  return 0;
 
4394
}
 
4395
_ACEOF
 
4396
rm -f conftest.$ac_objext
 
4397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4398
  (eval $ac_compile) 2>&5
 
4399
  ac_status=$?
 
4400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4401
  (exit $ac_status); } &&
 
4402
         { ac_try='test -s conftest.$ac_objext'
 
4403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4404
  (eval $ac_try) 2>&5
 
4405
  ac_status=$?
 
4406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4407
  (exit $ac_status); }; }; then
 
4408
  ac_compiler_gnu=yes
 
4409
else
 
4410
  echo "$as_me: failed program was:" >&5
 
4411
sed 's/^/| /' conftest.$ac_ext >&5
 
4412
 
 
4413
ac_compiler_gnu=no
 
4414
fi
 
4415
rm -f conftest.$ac_objext conftest.$ac_ext
 
4416
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4417
 
 
4418
fi
 
4419
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4420
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4421
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4422
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4423
ac_save_CXXFLAGS=$CXXFLAGS
 
4424
CXXFLAGS="-g"
 
4425
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4426
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4427
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4429
else
 
4430
  cat >conftest.$ac_ext <<_ACEOF
 
4431
#line $LINENO "configure"
 
4432
/* confdefs.h.  */
 
4433
_ACEOF
 
4434
cat confdefs.h >>conftest.$ac_ext
 
4435
cat >>conftest.$ac_ext <<_ACEOF
 
4436
/* end confdefs.h.  */
 
4437
 
 
4438
int
 
4439
main ()
 
4440
{
 
4441
 
 
4442
  ;
 
4443
  return 0;
 
4444
}
 
4445
_ACEOF
 
4446
rm -f conftest.$ac_objext
 
4447
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4448
  (eval $ac_compile) 2>&5
 
4449
  ac_status=$?
 
4450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4451
  (exit $ac_status); } &&
 
4452
         { ac_try='test -s conftest.$ac_objext'
 
4453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4454
  (eval $ac_try) 2>&5
 
4455
  ac_status=$?
 
4456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4457
  (exit $ac_status); }; }; then
 
4458
  ac_cv_prog_cxx_g=yes
 
4459
else
 
4460
  echo "$as_me: failed program was:" >&5
 
4461
sed 's/^/| /' conftest.$ac_ext >&5
 
4462
 
 
4463
ac_cv_prog_cxx_g=no
 
4464
fi
 
4465
rm -f conftest.$ac_objext conftest.$ac_ext
 
4466
fi
 
4467
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4468
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4469
if test "$ac_test_CXXFLAGS" = set; then
 
4470
  CXXFLAGS=$ac_save_CXXFLAGS
 
4471
elif test $ac_cv_prog_cxx_g = yes; then
 
4472
  if test "$GXX" = yes; then
 
4473
    CXXFLAGS="-g -O2"
 
4474
  else
 
4475
    CXXFLAGS="-g"
 
4476
  fi
 
4477
else
 
4478
  if test "$GXX" = yes; then
 
4479
    CXXFLAGS="-O2"
 
4480
  else
 
4481
    CXXFLAGS=
 
4482
  fi
 
4483
fi
 
4484
for ac_declaration in \
 
4485
   ''\
 
4486
   '#include <stdlib.h>' \
 
4487
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4488
   'extern "C" void std::exit (int); using std::exit;' \
 
4489
   'extern "C" void exit (int) throw ();' \
 
4490
   'extern "C" void exit (int);' \
 
4491
   'void exit (int);'
 
4492
do
 
4493
  cat >conftest.$ac_ext <<_ACEOF
 
4494
#line $LINENO "configure"
 
4495
/* confdefs.h.  */
 
4496
_ACEOF
 
4497
cat confdefs.h >>conftest.$ac_ext
 
4498
cat >>conftest.$ac_ext <<_ACEOF
 
4499
/* end confdefs.h.  */
 
4500
#include <stdlib.h>
 
4501
$ac_declaration
 
4502
int
 
4503
main ()
 
4504
{
 
4505
exit (42);
 
4506
  ;
 
4507
  return 0;
 
4508
}
 
4509
_ACEOF
 
4510
rm -f conftest.$ac_objext
 
4511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4512
  (eval $ac_compile) 2>&5
 
4513
  ac_status=$?
 
4514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4515
  (exit $ac_status); } &&
 
4516
         { ac_try='test -s conftest.$ac_objext'
 
4517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4518
  (eval $ac_try) 2>&5
 
4519
  ac_status=$?
 
4520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4521
  (exit $ac_status); }; }; then
 
4522
  :
 
4523
else
 
4524
  echo "$as_me: failed program was:" >&5
 
4525
sed 's/^/| /' conftest.$ac_ext >&5
 
4526
 
 
4527
continue
 
4528
fi
 
4529
rm -f conftest.$ac_objext conftest.$ac_ext
 
4530
  cat >conftest.$ac_ext <<_ACEOF
 
4531
#line $LINENO "configure"
 
4532
/* confdefs.h.  */
 
4533
_ACEOF
 
4534
cat confdefs.h >>conftest.$ac_ext
 
4535
cat >>conftest.$ac_ext <<_ACEOF
 
4536
/* end confdefs.h.  */
 
4537
$ac_declaration
 
4538
int
 
4539
main ()
 
4540
{
 
4541
exit (42);
 
4542
  ;
 
4543
  return 0;
 
4544
}
 
4545
_ACEOF
 
4546
rm -f conftest.$ac_objext
 
4547
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4548
  (eval $ac_compile) 2>&5
 
4549
  ac_status=$?
 
4550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4551
  (exit $ac_status); } &&
 
4552
         { ac_try='test -s conftest.$ac_objext'
 
4553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4554
  (eval $ac_try) 2>&5
 
4555
  ac_status=$?
 
4556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4557
  (exit $ac_status); }; }; then
 
4558
  break
 
4559
else
 
4560
  echo "$as_me: failed program was:" >&5
 
4561
sed 's/^/| /' conftest.$ac_ext >&5
 
4562
 
 
4563
fi
 
4564
rm -f conftest.$ac_objext conftest.$ac_ext
 
4565
done
 
4566
rm -f conftest*
 
4567
if test -n "$ac_declaration"; then
 
4568
  echo '#ifdef __cplusplus' >>confdefs.h
 
4569
  echo $ac_declaration      >>confdefs.h
 
4570
  echo '#endif'             >>confdefs.h
 
4571
fi
 
4572
 
 
4573
ac_ext=cc
 
4574
ac_cpp='$CXXCPP $CPPFLAGS'
 
4575
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4576
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4577
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4578
 
 
4579
depcc="$CXX"  am_compiler_list=
 
4580
 
 
4581
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4582
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4583
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4585
else
 
4586
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4587
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4588
  # making bogus files that we don't know about and never remove.  For
 
4589
  # instance it was reported that on HP-UX the gcc test will end up
 
4590
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4591
  # in D'.
 
4592
  mkdir conftest.dir
 
4593
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4594
  # using a relative directory.
 
4595
  cp "$am_depcomp" conftest.dir
 
4596
  cd conftest.dir
 
4597
 
 
4598
  am_cv_CXX_dependencies_compiler_type=none
 
4599
  if test "$am_compiler_list" = ""; then
 
4600
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4601
  fi
 
4602
  for depmode in $am_compiler_list; do
 
4603
    # We need to recreate these files for each test, as the compiler may
 
4604
    # overwrite some of them when testing with obscure command lines.
 
4605
    # This happens at least with the AIX C compiler.
 
4606
    echo '#include "conftest.h"' > conftest.c
 
4607
    echo 'int i;' > conftest.h
 
4608
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
4609
 
 
4610
    case $depmode in
 
4611
    nosideeffect)
 
4612
      # after this tag, mechanisms are not by side-effect, so they'll
 
4613
      # only be used when explicitly requested
 
4614
      if test "x$enable_dependency_tracking" = xyes; then
 
4615
        continue
 
4616
      else
 
4617
        break
 
4618
      fi
 
4619
      ;;
 
4620
    none) break ;;
 
4621
    esac
 
4622
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4623
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4624
    # handle `-M -o', and we need to detect this.
 
4625
    if depmode=$depmode \
 
4626
       source=conftest.c object=conftest.o \
 
4627
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
4628
       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
 
4629
         >/dev/null 2>conftest.err &&
 
4630
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
4631
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4632
      # icc doesn't choke on unknown options, it will just issue warnings
 
4633
      # (even with -Werror).  So we grep stderr for any message
 
4634
      # that says an option was ignored.
 
4635
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
4636
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4637
        break
 
4638
      fi
 
4639
    fi
 
4640
  done
 
4641
 
 
4642
  cd ..
 
4643
  rm -rf conftest.dir
 
4644
else
 
4645
  am_cv_CXX_dependencies_compiler_type=none
 
4646
fi
 
4647
 
 
4648
fi
 
4649
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4650
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4651
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4652
 
 
4653
 
 
4654
 
 
4655
if
 
4656
  test "x$enable_dependency_tracking" != xno \
 
4657
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4658
  am__fastdepCXX_TRUE=
 
4659
  am__fastdepCXX_FALSE='#'
 
4660
else
 
4661
  am__fastdepCXX_TRUE='#'
 
4662
  am__fastdepCXX_FALSE=
 
4663
fi
 
4664
 
 
4665
 
 
4666
ac_ext=cc
 
4667
ac_cpp='$CXXCPP $CPPFLAGS'
 
4668
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4669
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4670
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4671
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4672
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4673
if test -z "$CXXCPP"; then
 
4674
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4675
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4676
else
 
4677
      # Double quotes because CXXCPP needs to be expanded
 
4678
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4679
    do
 
4680
      ac_preproc_ok=false
 
4681
for ac_cxx_preproc_warn_flag in '' yes
 
4682
do
 
4683
  # Use a header file that comes with gcc, so configuring glibc
 
4684
  # with a fresh cross-compiler works.
 
4685
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4686
  # <limits.h> exists even on freestanding compilers.
 
4687
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4688
  # not just through cpp. "Syntax error" is here to catch this case.
 
4689
  cat >conftest.$ac_ext <<_ACEOF
 
4690
#line $LINENO "configure"
 
4691
/* confdefs.h.  */
 
4692
_ACEOF
 
4693
cat confdefs.h >>conftest.$ac_ext
 
4694
cat >>conftest.$ac_ext <<_ACEOF
 
4695
/* end confdefs.h.  */
 
4696
#ifdef __STDC__
 
4697
# include <limits.h>
 
4698
#else
 
4699
# include <assert.h>
 
4700
#endif
 
4701
                     Syntax error
 
4702
_ACEOF
 
4703
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4704
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4705
  ac_status=$?
 
4706
  grep -v '^ *+' conftest.er1 >conftest.err
 
4707
  rm -f conftest.er1
 
4708
  cat conftest.err >&5
 
4709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4710
  (exit $ac_status); } >/dev/null; then
 
4711
  if test -s conftest.err; then
 
4712
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4713
  else
 
4714
    ac_cpp_err=
 
4715
  fi
 
4716
else
 
4717
  ac_cpp_err=yes
 
4718
fi
 
4719
if test -z "$ac_cpp_err"; then
 
4720
  :
 
4721
else
 
4722
  echo "$as_me: failed program was:" >&5
 
4723
sed 's/^/| /' conftest.$ac_ext >&5
 
4724
 
 
4725
  # Broken: fails on valid input.
 
4726
continue
 
4727
fi
 
4728
rm -f conftest.err conftest.$ac_ext
 
4729
 
 
4730
  # OK, works on sane cases.  Now check whether non-existent headers
 
4731
  # can be detected and how.
 
4732
  cat >conftest.$ac_ext <<_ACEOF
 
4733
#line $LINENO "configure"
 
4734
/* confdefs.h.  */
 
4735
_ACEOF
 
4736
cat confdefs.h >>conftest.$ac_ext
 
4737
cat >>conftest.$ac_ext <<_ACEOF
 
4738
/* end confdefs.h.  */
 
4739
#include <ac_nonexistent.h>
 
4740
_ACEOF
 
4741
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4742
  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
 
4749
  if test -s conftest.err; then
 
4750
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4751
  else
 
4752
    ac_cpp_err=
 
4753
  fi
 
4754
else
 
4755
  ac_cpp_err=yes
 
4756
fi
 
4757
if test -z "$ac_cpp_err"; then
 
4758
  # Broken: success on invalid input.
 
4759
continue
 
4760
else
 
4761
  echo "$as_me: failed program was:" >&5
 
4762
sed 's/^/| /' conftest.$ac_ext >&5
 
4763
 
 
4764
  # Passes both tests.
 
4765
ac_preproc_ok=:
 
4766
break
 
4767
fi
 
4768
rm -f conftest.err conftest.$ac_ext
 
4769
 
 
4770
done
 
4771
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4772
rm -f conftest.err conftest.$ac_ext
 
4773
if $ac_preproc_ok; then
 
4774
  break
 
4775
fi
 
4776
 
 
4777
    done
 
4778
    ac_cv_prog_CXXCPP=$CXXCPP
 
4779
 
 
4780
fi
 
4781
  CXXCPP=$ac_cv_prog_CXXCPP
 
4782
else
 
4783
  ac_cv_prog_CXXCPP=$CXXCPP
 
4784
fi
 
4785
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
4786
echo "${ECHO_T}$CXXCPP" >&6
 
4787
ac_preproc_ok=false
 
4788
for ac_cxx_preproc_warn_flag in '' yes
 
4789
do
 
4790
  # Use a header file that comes with gcc, so configuring glibc
 
4791
  # with a fresh cross-compiler works.
 
4792
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4793
  # <limits.h> exists even on freestanding compilers.
 
4794
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4795
  # not just through cpp. "Syntax error" is here to catch this case.
 
4796
  cat >conftest.$ac_ext <<_ACEOF
 
4797
#line $LINENO "configure"
 
4798
/* confdefs.h.  */
 
4799
_ACEOF
 
4800
cat confdefs.h >>conftest.$ac_ext
 
4801
cat >>conftest.$ac_ext <<_ACEOF
 
4802
/* end confdefs.h.  */
 
4803
#ifdef __STDC__
 
4804
# include <limits.h>
 
4805
#else
 
4806
# include <assert.h>
 
4807
#endif
 
4808
                     Syntax error
 
4809
_ACEOF
 
4810
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4811
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4812
  ac_status=$?
 
4813
  grep -v '^ *+' conftest.er1 >conftest.err
 
4814
  rm -f conftest.er1
 
4815
  cat conftest.err >&5
 
4816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4817
  (exit $ac_status); } >/dev/null; then
 
4818
  if test -s conftest.err; then
 
4819
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4820
  else
 
4821
    ac_cpp_err=
 
4822
  fi
 
4823
else
 
4824
  ac_cpp_err=yes
 
4825
fi
 
4826
if test -z "$ac_cpp_err"; then
 
4827
  :
 
4828
else
 
4829
  echo "$as_me: failed program was:" >&5
 
4830
sed 's/^/| /' conftest.$ac_ext >&5
 
4831
 
 
4832
  # Broken: fails on valid input.
 
4833
continue
 
4834
fi
 
4835
rm -f conftest.err conftest.$ac_ext
 
4836
 
 
4837
  # OK, works on sane cases.  Now check whether non-existent headers
 
4838
  # can be detected and how.
 
4839
  cat >conftest.$ac_ext <<_ACEOF
 
4840
#line $LINENO "configure"
 
4841
/* confdefs.h.  */
 
4842
_ACEOF
 
4843
cat confdefs.h >>conftest.$ac_ext
 
4844
cat >>conftest.$ac_ext <<_ACEOF
 
4845
/* end confdefs.h.  */
 
4846
#include <ac_nonexistent.h>
 
4847
_ACEOF
 
4848
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4849
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4850
  ac_status=$?
 
4851
  grep -v '^ *+' conftest.er1 >conftest.err
 
4852
  rm -f conftest.er1
 
4853
  cat conftest.err >&5
 
4854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4855
  (exit $ac_status); } >/dev/null; then
 
4856
  if test -s conftest.err; then
 
4857
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4858
  else
 
4859
    ac_cpp_err=
 
4860
  fi
 
4861
else
 
4862
  ac_cpp_err=yes
 
4863
fi
 
4864
if test -z "$ac_cpp_err"; then
 
4865
  # Broken: success on invalid input.
 
4866
continue
 
4867
else
 
4868
  echo "$as_me: failed program was:" >&5
 
4869
sed 's/^/| /' conftest.$ac_ext >&5
 
4870
 
 
4871
  # Passes both tests.
 
4872
ac_preproc_ok=:
 
4873
break
 
4874
fi
 
4875
rm -f conftest.err conftest.$ac_ext
 
4876
 
 
4877
done
 
4878
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4879
rm -f conftest.err conftest.$ac_ext
 
4880
if $ac_preproc_ok; then
 
4881
  :
 
4882
else
 
4883
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4884
See \`config.log' for more details." >&5
 
4885
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4886
See \`config.log' for more details." >&2;}
 
4887
   { (exit 1); exit 1; }; }
 
4888
fi
 
4889
 
 
4890
ac_ext=cc
 
4891
ac_cpp='$CXXCPP $CPPFLAGS'
 
4892
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4893
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4894
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4895
 
 
4896
 
 
4897
ac_ext=f
 
4898
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
4899
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4900
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
4901
if test -n "$ac_tool_prefix"; then
 
4902
  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
 
4903
  do
 
4904
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4905
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4906
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4907
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4908
if test "${ac_cv_prog_F77+set}" = set; then
 
4909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4910
else
 
4911
  if test -n "$F77"; then
 
4912
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
4913
else
 
4914
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4915
for as_dir in $PATH
 
4916
do
 
4917
  IFS=$as_save_IFS
 
4918
  test -z "$as_dir" && as_dir=.
 
4919
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4920
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4921
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
4922
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4923
    break 2
 
4924
  fi
 
4925
done
 
4926
done
 
4927
 
 
4928
fi
 
4929
fi
 
4930
F77=$ac_cv_prog_F77
 
4931
if test -n "$F77"; then
 
4932
  echo "$as_me:$LINENO: result: $F77" >&5
 
4933
echo "${ECHO_T}$F77" >&6
 
4934
else
 
4935
  echo "$as_me:$LINENO: result: no" >&5
 
4936
echo "${ECHO_T}no" >&6
 
4937
fi
 
4938
 
 
4939
    test -n "$F77" && break
 
4940
  done
 
4941
fi
 
4942
if test -z "$F77"; then
 
4943
  ac_ct_F77=$F77
 
4944
  for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
 
4945
do
 
4946
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4947
set dummy $ac_prog; ac_word=$2
 
4948
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4949
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4950
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
4951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4952
else
 
4953
  if test -n "$ac_ct_F77"; then
 
4954
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
4955
else
 
4956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4957
for as_dir in $PATH
 
4958
do
 
4959
  IFS=$as_save_IFS
 
4960
  test -z "$as_dir" && as_dir=.
 
4961
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4962
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4963
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
4964
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4965
    break 2
 
4966
  fi
 
4967
done
 
4968
done
 
4969
 
 
4970
fi
 
4971
fi
 
4972
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
4973
if test -n "$ac_ct_F77"; then
 
4974
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
4975
echo "${ECHO_T}$ac_ct_F77" >&6
 
4976
else
 
4977
  echo "$as_me:$LINENO: result: no" >&5
 
4978
echo "${ECHO_T}no" >&6
 
4979
fi
 
4980
 
 
4981
  test -n "$ac_ct_F77" && break
 
4982
done
 
4983
 
 
4984
  F77=$ac_ct_F77
 
4985
fi
 
4986
 
 
4987
 
 
4988
# Provide some information about the compiler.
 
4989
echo "$as_me:4989:" \
 
4990
     "checking for Fortran 77 compiler version" >&5
 
4991
ac_compiler=`set X $ac_compile; echo $2`
 
4992
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4993
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4994
  ac_status=$?
 
4995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4996
  (exit $ac_status); }
 
4997
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4998
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4999
  ac_status=$?
 
5000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5001
  (exit $ac_status); }
 
5002
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5003
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5004
  ac_status=$?
 
5005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5006
  (exit $ac_status); }
 
5007
 
 
5008
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5009
# input file.
 
5010
ac_save_ext=$ac_ext
 
5011
ac_ext=F
 
5012
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5013
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5014
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5016
else
 
5017
  cat >conftest.$ac_ext <<_ACEOF
 
5018
      program main
 
5019
#ifndef __GNUC__
 
5020
       choke me
 
5021
#endif
 
5022
 
 
5023
      end
 
5024
_ACEOF
 
5025
rm -f conftest.$ac_objext
 
5026
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5027
  (eval $ac_compile) 2>&5
 
5028
  ac_status=$?
 
5029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5030
  (exit $ac_status); } &&
 
5031
         { ac_try='test -s conftest.$ac_objext'
 
5032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5033
  (eval $ac_try) 2>&5
 
5034
  ac_status=$?
 
5035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5036
  (exit $ac_status); }; }; then
 
5037
  ac_compiler_gnu=yes
 
5038
else
 
5039
  echo "$as_me: failed program was:" >&5
 
5040
sed 's/^/| /' conftest.$ac_ext >&5
 
5041
 
 
5042
ac_compiler_gnu=no
 
5043
fi
 
5044
rm -f conftest.$ac_objext conftest.$ac_ext
 
5045
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5046
 
 
5047
fi
 
5048
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5049
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5050
ac_ext=$ac_save_ext
 
5051
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5052
ac_test_FFLAGS=${FFLAGS+set}
 
5053
ac_save_FFLAGS=$FFLAGS
 
5054
FFLAGS=
 
5055
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5056
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5057
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5058
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5059
else
 
5060
  FFLAGS=-g
 
5061
cat >conftest.$ac_ext <<_ACEOF
 
5062
      program main
 
5063
 
 
5064
      end
 
5065
_ACEOF
 
5066
rm -f conftest.$ac_objext
 
5067
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5068
  (eval $ac_compile) 2>&5
 
5069
  ac_status=$?
 
5070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5071
  (exit $ac_status); } &&
 
5072
         { ac_try='test -s conftest.$ac_objext'
 
5073
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5074
  (eval $ac_try) 2>&5
 
5075
  ac_status=$?
 
5076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5077
  (exit $ac_status); }; }; then
 
5078
  ac_cv_prog_f77_g=yes
 
5079
else
 
5080
  echo "$as_me: failed program was:" >&5
 
5081
sed 's/^/| /' conftest.$ac_ext >&5
 
5082
 
 
5083
ac_cv_prog_f77_g=no
 
5084
fi
 
5085
rm -f conftest.$ac_objext conftest.$ac_ext
 
5086
 
 
5087
fi
 
5088
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5089
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5090
if test "$ac_test_FFLAGS" = set; then
 
5091
  FFLAGS=$ac_save_FFLAGS
 
5092
elif test $ac_cv_prog_f77_g = yes; then
 
5093
  if test "$G77" = yes; then
 
5094
    FFLAGS="-g -O2"
 
5095
  else
 
5096
    FFLAGS="-g"
 
5097
  fi
 
5098
else
 
5099
  if test "$G77" = yes; then
 
5100
    FFLAGS="-O2"
 
5101
  else
 
5102
    FFLAGS=
 
5103
  fi
 
5104
fi
 
5105
ac_ext=c
 
5106
ac_cpp='$CPP $CPPFLAGS'
 
5107
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5108
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5109
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5110
 
 
5111
 
 
5112
 
 
5113
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5114
 
 
5115
# find the maximum length of command line arguments
 
5116
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5117
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5118
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5120
else
 
5121
    i=0
 
5122
  testring="ABCD"
 
5123
 
 
5124
  case $build_os in
 
5125
  msdosdjgpp*)
 
5126
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5127
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5128
    # during glob expansion).  Even if it were fixed, the result of this
 
5129
    # check would be larger than it should be.
 
5130
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5131
    ;;
 
5132
 
 
5133
  gnu*)
 
5134
    # Under GNU Hurd, this test is not required because there is
 
5135
    # no limit to the length of command line arguments.
 
5136
    # Libtool will interpret -1 as no limit whatsoever
 
5137
    lt_cv_sys_max_cmd_len=-1;
 
5138
    ;;
 
5139
 
 
5140
  cygwin* | mingw*)
 
5141
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5142
    # about 5 minutes as the teststring grows exponentially.
 
5143
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5144
    # you end up with a "frozen" computer, even though with patience
 
5145
    # the test eventually succeeds (with a max line length of 256k).
 
5146
    # Instead, let's just punt: use the minimum linelength reported by
 
5147
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5148
    lt_cv_sys_max_cmd_len=8192;
 
5149
    ;;
 
5150
 
 
5151
 *)
 
5152
    # If test is not a shell built-in, we'll probably end up computing a
 
5153
    # maximum length that is only half of the actual maximum length, but
 
5154
    # we can't tell.
 
5155
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
5156
               = "XX$testring") >/dev/null 2>&1 &&
 
5157
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
5158
            lt_cv_sys_max_cmd_len=$new_result &&
 
5159
            test $i != 17 # 1/2 MB should be enough
 
5160
    do
 
5161
      i=`expr $i + 1`
 
5162
      testring=$testring$testring
 
5163
    done
 
5164
    testring=
 
5165
    # Add a significant safety factor because C++ compilers can tack on massive
 
5166
    # amounts of additional arguments before passing them to the linker.
 
5167
    # It appears as though 1/2 is a usable value.
 
5168
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5169
    ;;
 
5170
  esac
 
5171
 
 
5172
fi
 
5173
 
 
5174
if test -n $lt_cv_sys_max_cmd_len ; then
 
5175
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5176
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5177
else
 
5178
  echo "$as_me:$LINENO: result: none" >&5
 
5179
echo "${ECHO_T}none" >&6
 
5180
fi
 
5181
 
 
5182
 
 
5183
 
 
5184
 
 
5185
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5186
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5187
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5188
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5190
else
 
5191
 
 
5192
# These are sane defaults that work on at least a few old systems.
 
5193
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5194
 
 
5195
# Character class describing NM global symbol codes.
 
5196
symcode='[BCDEGRST]'
 
5197
 
 
5198
# Regexp to match symbols that can be accessed directly from C.
 
5199
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5200
 
 
5201
# Transform the above into a raw symbol and a C symbol.
 
5202
symxfrm='\1 \2\3 \3'
 
5203
 
 
5204
# Transform an extracted symbol line into a proper C declaration
 
5205
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5206
 
 
5207
# Transform an extracted symbol line into symbol name and symbol address
 
5208
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'"
 
5209
 
 
5210
# Define system-specific variables.
 
5211
case $host_os in
 
5212
aix*)
 
5213
  symcode='[BCDT]'
 
5214
  ;;
 
5215
cygwin* | mingw* | pw32*)
 
5216
  symcode='[ABCDGISTW]'
 
5217
  ;;
 
5218
hpux*) # Its linker distinguishes data from code symbols
 
5219
  if test "$host_cpu" = ia64; then
 
5220
    symcode='[ABCDEGRST]'
 
5221
  fi
 
5222
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5223
  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'"
 
5224
  ;;
 
5225
irix* | nonstopux*)
 
5226
  symcode='[BCDEGRST]'
 
5227
  ;;
 
5228
osf*)
 
5229
  symcode='[BCDEGQRST]'
 
5230
  ;;
 
5231
solaris* | sysv5*)
 
5232
  symcode='[BDT]'
 
5233
  ;;
 
5234
sysv4)
 
5235
  symcode='[DFNSTU]'
 
5236
  ;;
 
5237
esac
 
5238
 
 
5239
# Handle CRLF in mingw tool chain
 
5240
opt_cr=
 
5241
case $build_os in
 
5242
mingw*)
 
5243
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5244
  ;;
 
5245
esac
 
5246
 
 
5247
# If we're using GNU nm, then use its standard symbol codes.
 
5248
case `$NM -V 2>&1` in
 
5249
*GNU* | *'with BFD'*)
 
5250
  symcode='[ABCDGISTW]' ;;
 
5251
esac
 
5252
 
 
5253
# Try without a prefix undercore, then with it.
 
5254
for ac_symprfx in "" "_"; do
 
5255
 
 
5256
  # Write the raw and C identifiers.
 
5257
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5258
 
 
5259
  # Check to see that the pipe works correctly.
 
5260
  pipe_works=no
 
5261
 
 
5262
  rm -f conftest*
 
5263
  cat > conftest.$ac_ext <<EOF
 
5264
#ifdef __cplusplus
 
5265
extern "C" {
 
5266
#endif
 
5267
char nm_test_var;
 
5268
void nm_test_func(){}
 
5269
#ifdef __cplusplus
 
5270
}
 
5271
#endif
 
5272
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5273
EOF
 
5274
 
 
5275
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5276
  (eval $ac_compile) 2>&5
 
5277
  ac_status=$?
 
5278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5279
  (exit $ac_status); }; then
 
5280
    # Now try to grab the symbols.
 
5281
    nlist=conftest.nm
 
5282
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5283
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5284
  ac_status=$?
 
5285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5286
  (exit $ac_status); } && test -s "$nlist"; then
 
5287
      # Try sorting and uniquifying the output.
 
5288
      if sort "$nlist" | uniq > "$nlist"T; then
 
5289
        mv -f "$nlist"T "$nlist"
 
5290
      else
 
5291
        rm -f "$nlist"T
 
5292
      fi
 
5293
 
 
5294
      # Make sure that we snagged all the symbols we need.
 
5295
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5296
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5297
          cat <<EOF > conftest.$ac_ext
 
5298
#ifdef __cplusplus
 
5299
extern "C" {
 
5300
#endif
 
5301
 
 
5302
EOF
 
5303
          # Now generate the symbol file.
 
5304
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5305
 
 
5306
          cat <<EOF >> conftest.$ac_ext
 
5307
#if defined (__STDC__) && __STDC__
 
5308
# define lt_ptr_t void *
 
5309
#else
 
5310
# define lt_ptr_t char *
 
5311
# define const
 
5312
#endif
 
5313
 
 
5314
/* The mapping between symbol names and symbols. */
 
5315
const struct {
 
5316
  const char *name;
 
5317
  lt_ptr_t address;
 
5318
}
 
5319
lt_preloaded_symbols[] =
 
5320
{
 
5321
EOF
 
5322
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5323
          cat <<\EOF >> conftest.$ac_ext
 
5324
  {0, (lt_ptr_t) 0}
 
5325
};
 
5326
 
 
5327
#ifdef __cplusplus
 
5328
}
 
5329
#endif
 
5330
EOF
 
5331
          # Now try linking the two files.
 
5332
          mv conftest.$ac_objext conftstm.$ac_objext
 
5333
          lt_save_LIBS="$LIBS"
 
5334
          lt_save_CFLAGS="$CFLAGS"
 
5335
          LIBS="conftstm.$ac_objext"
 
5336
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5337
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5338
  (eval $ac_link) 2>&5
 
5339
  ac_status=$?
 
5340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5341
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5342
            pipe_works=yes
 
5343
          fi
 
5344
          LIBS="$lt_save_LIBS"
 
5345
          CFLAGS="$lt_save_CFLAGS"
 
5346
        else
 
5347
          echo "cannot find nm_test_func in $nlist" >&5
 
5348
        fi
 
5349
      else
 
5350
        echo "cannot find nm_test_var in $nlist" >&5
 
5351
      fi
 
5352
    else
 
5353
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5354
    fi
 
5355
  else
 
5356
    echo "$progname: failed program was:" >&5
 
5357
    cat conftest.$ac_ext >&5
 
5358
  fi
 
5359
  rm -f conftest* conftst*
 
5360
 
 
5361
  # Do not use the global_symbol_pipe unless it works.
 
5362
  if test "$pipe_works" = yes; then
 
5363
    break
 
5364
  else
 
5365
    lt_cv_sys_global_symbol_pipe=
 
5366
  fi
 
5367
done
 
5368
 
 
5369
fi
 
5370
 
 
5371
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5372
  lt_cv_sys_global_symbol_to_cdecl=
 
5373
fi
 
5374
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5375
  echo "$as_me:$LINENO: result: failed" >&5
 
5376
echo "${ECHO_T}failed" >&6
 
5377
else
 
5378
  echo "$as_me:$LINENO: result: ok" >&5
 
5379
echo "${ECHO_T}ok" >&6
 
5380
fi
 
5381
 
 
5382
echo "$as_me:$LINENO: checking for objdir" >&5
 
5383
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5384
if test "${lt_cv_objdir+set}" = set; then
 
5385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5386
else
 
5387
  rm -f .libs 2>/dev/null
 
5388
mkdir .libs 2>/dev/null
 
5389
if test -d .libs; then
 
5390
  lt_cv_objdir=.libs
 
5391
else
 
5392
  # MS-DOS does not allow filenames that begin with a dot.
 
5393
  lt_cv_objdir=_libs
 
5394
fi
 
5395
rmdir .libs 2>/dev/null
 
5396
fi
 
5397
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5398
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5399
objdir=$lt_cv_objdir
 
5400
 
 
5401
 
 
5402
 
 
5403
 
 
5404
 
 
5405
case $host_os in
 
5406
aix3*)
 
5407
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5408
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5409
  # vanish in a puff of smoke.
 
5410
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5411
    COLLECT_NAMES=
 
5412
    export COLLECT_NAMES
 
5413
  fi
 
5414
  ;;
 
5415
esac
 
5416
 
 
5417
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5418
# metacharacters that are still active within double-quoted strings.
 
5419
Xsed='sed -e s/^X//'
 
5420
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5421
 
 
5422
# Same as above, but do not quote variable references.
 
5423
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5424
 
 
5425
# Sed substitution to delay expansion of an escaped shell variable in a
 
5426
# double_quote_subst'ed string.
 
5427
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5428
 
 
5429
# Sed substitution to avoid accidental globbing in evaled expressions
 
5430
no_glob_subst='s/\*/\\\*/g'
 
5431
 
 
5432
# Constants:
 
5433
rm="rm -f"
 
5434
 
 
5435
# Global variables:
 
5436
default_ofile=libtool
 
5437
can_build_shared=yes
 
5438
 
 
5439
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5440
# which needs '.lib').
 
5441
libext=a
 
5442
ltmain="$ac_aux_dir/ltmain.sh"
 
5443
ofile="$default_ofile"
 
5444
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5445
 
 
5446
if test -n "$ac_tool_prefix"; then
 
5447
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5448
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5449
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5450
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5451
if test "${ac_cv_prog_AR+set}" = set; then
 
5452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5453
else
 
5454
  if test -n "$AR"; then
 
5455
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5456
else
 
5457
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5458
for as_dir in $PATH
 
5459
do
 
5460
  IFS=$as_save_IFS
 
5461
  test -z "$as_dir" && as_dir=.
 
5462
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5463
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5464
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5465
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5466
    break 2
 
5467
  fi
 
5468
done
 
5469
done
 
5470
 
 
5471
fi
 
5472
fi
 
5473
AR=$ac_cv_prog_AR
 
5474
if test -n "$AR"; then
 
5475
  echo "$as_me:$LINENO: result: $AR" >&5
 
5476
echo "${ECHO_T}$AR" >&6
 
5477
else
 
5478
  echo "$as_me:$LINENO: result: no" >&5
 
5479
echo "${ECHO_T}no" >&6
 
5480
fi
 
5481
 
 
5482
fi
 
5483
if test -z "$ac_cv_prog_AR"; then
 
5484
  ac_ct_AR=$AR
 
5485
  # Extract the first word of "ar", so it can be a program name with args.
 
5486
set dummy ar; ac_word=$2
 
5487
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5488
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5489
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5491
else
 
5492
  if test -n "$ac_ct_AR"; then
 
5493
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5494
else
 
5495
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5496
for as_dir in $PATH
 
5497
do
 
5498
  IFS=$as_save_IFS
 
5499
  test -z "$as_dir" && as_dir=.
 
5500
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5501
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5502
    ac_cv_prog_ac_ct_AR="ar"
 
5503
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5504
    break 2
 
5505
  fi
 
5506
done
 
5507
done
 
5508
 
 
5509
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5510
fi
 
5511
fi
 
5512
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5513
if test -n "$ac_ct_AR"; then
 
5514
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5515
echo "${ECHO_T}$ac_ct_AR" >&6
 
5516
else
 
5517
  echo "$as_me:$LINENO: result: no" >&5
 
5518
echo "${ECHO_T}no" >&6
 
5519
fi
 
5520
 
 
5521
  AR=$ac_ct_AR
 
5522
else
 
5523
  AR="$ac_cv_prog_AR"
 
5524
fi
 
5525
 
 
5526
if test -n "$ac_tool_prefix"; then
 
5527
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5528
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5529
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5530
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5531
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5533
else
 
5534
  if test -n "$RANLIB"; then
 
5535
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5536
else
 
5537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5538
for as_dir in $PATH
 
5539
do
 
5540
  IFS=$as_save_IFS
 
5541
  test -z "$as_dir" && as_dir=.
 
5542
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5543
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5544
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5545
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5546
    break 2
 
5547
  fi
 
5548
done
 
5549
done
 
5550
 
 
5551
fi
 
5552
fi
 
5553
RANLIB=$ac_cv_prog_RANLIB
 
5554
if test -n "$RANLIB"; then
 
5555
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5556
echo "${ECHO_T}$RANLIB" >&6
 
5557
else
 
5558
  echo "$as_me:$LINENO: result: no" >&5
 
5559
echo "${ECHO_T}no" >&6
 
5560
fi
 
5561
 
 
5562
fi
 
5563
if test -z "$ac_cv_prog_RANLIB"; then
 
5564
  ac_ct_RANLIB=$RANLIB
 
5565
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5566
set dummy ranlib; ac_word=$2
 
5567
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5568
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5569
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5571
else
 
5572
  if test -n "$ac_ct_RANLIB"; then
 
5573
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5574
else
 
5575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5576
for as_dir in $PATH
 
5577
do
 
5578
  IFS=$as_save_IFS
 
5579
  test -z "$as_dir" && as_dir=.
 
5580
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5581
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5582
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5583
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5584
    break 2
 
5585
  fi
 
5586
done
 
5587
done
 
5588
 
 
5589
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5590
fi
 
5591
fi
 
5592
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5593
if test -n "$ac_ct_RANLIB"; then
 
5594
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5595
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5596
else
 
5597
  echo "$as_me:$LINENO: result: no" >&5
 
5598
echo "${ECHO_T}no" >&6
 
5599
fi
 
5600
 
 
5601
  RANLIB=$ac_ct_RANLIB
 
5602
else
 
5603
  RANLIB="$ac_cv_prog_RANLIB"
 
5604
fi
 
5605
 
 
5606
if test -n "$ac_tool_prefix"; then
 
5607
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5608
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5609
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5610
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5611
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5613
else
 
5614
  if test -n "$STRIP"; then
 
5615
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5616
else
 
5617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5618
for as_dir in $PATH
 
5619
do
 
5620
  IFS=$as_save_IFS
 
5621
  test -z "$as_dir" && as_dir=.
 
5622
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5623
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5624
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5625
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5626
    break 2
 
5627
  fi
 
5628
done
 
5629
done
 
5630
 
 
5631
fi
 
5632
fi
 
5633
STRIP=$ac_cv_prog_STRIP
 
5634
if test -n "$STRIP"; then
 
5635
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5636
echo "${ECHO_T}$STRIP" >&6
 
5637
else
 
5638
  echo "$as_me:$LINENO: result: no" >&5
 
5639
echo "${ECHO_T}no" >&6
 
5640
fi
 
5641
 
 
5642
fi
 
5643
if test -z "$ac_cv_prog_STRIP"; then
 
5644
  ac_ct_STRIP=$STRIP
 
5645
  # Extract the first word of "strip", so it can be a program name with args.
 
5646
set dummy strip; ac_word=$2
 
5647
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5648
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5649
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5650
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5651
else
 
5652
  if test -n "$ac_ct_STRIP"; then
 
5653
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5654
else
 
5655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5656
for as_dir in $PATH
 
5657
do
 
5658
  IFS=$as_save_IFS
 
5659
  test -z "$as_dir" && as_dir=.
 
5660
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5661
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5662
    ac_cv_prog_ac_ct_STRIP="strip"
 
5663
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5664
    break 2
 
5665
  fi
 
5666
done
 
5667
done
 
5668
 
 
5669
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5670
fi
 
5671
fi
 
5672
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5673
if test -n "$ac_ct_STRIP"; then
 
5674
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5675
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5676
else
 
5677
  echo "$as_me:$LINENO: result: no" >&5
 
5678
echo "${ECHO_T}no" >&6
 
5679
fi
 
5680
 
 
5681
  STRIP=$ac_ct_STRIP
 
5682
else
 
5683
  STRIP="$ac_cv_prog_STRIP"
 
5684
fi
 
5685
 
 
5686
 
 
5687
old_CC="$CC"
 
5688
old_CFLAGS="$CFLAGS"
 
5689
 
 
5690
# Set sane defaults for various variables
 
5691
test -z "$AR" && AR=ar
 
5692
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5693
test -z "$AS" && AS=as
 
5694
test -z "$CC" && CC=cc
 
5695
test -z "$LTCC" && LTCC=$CC
 
5696
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5697
test -z "$LD" && LD=ld
 
5698
test -z "$LN_S" && LN_S="ln -s"
 
5699
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
5700
test -z "$NM" && NM=nm
 
5701
test -z "$SED" && SED=sed
 
5702
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5703
test -z "$RANLIB" && RANLIB=:
 
5704
test -z "$STRIP" && STRIP=:
 
5705
test -z "$ac_objext" && ac_objext=o
 
5706
 
 
5707
# Determine commands to create old-style static archives.
 
5708
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
5709
old_postinstall_cmds='chmod 644 $oldlib'
 
5710
old_postuninstall_cmds=
 
5711
 
 
5712
if test -n "$RANLIB"; then
 
5713
  case $host_os in
 
5714
  openbsd*)
 
5715
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
5716
    ;;
 
5717
  *)
 
5718
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
5719
    ;;
 
5720
  esac
 
5721
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5722
fi
 
5723
 
 
5724
# Only perform the check for file, if the check method requires it
 
5725
case $deplibs_check_method in
 
5726
file_magic*)
 
5727
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5728
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5729
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5730
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5732
else
 
5733
  case $MAGIC_CMD in
 
5734
[\\/*] |  ?:[\\/]*)
 
5735
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5736
  ;;
 
5737
*)
 
5738
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5739
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5740
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5741
  for ac_dir in $ac_dummy; do
 
5742
    IFS="$lt_save_ifs"
 
5743
    test -z "$ac_dir" && ac_dir=.
 
5744
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
5745
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
5746
      if test -n "$file_magic_test_file"; then
 
5747
        case $deplibs_check_method in
 
5748
        "file_magic "*)
 
5749
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5750
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5751
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5752
            $EGREP "$file_magic_regex" > /dev/null; then
 
5753
            :
 
5754
          else
 
5755
            cat <<EOF 1>&2
 
5756
 
 
5757
*** Warning: the command libtool uses to detect shared libraries,
 
5758
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5759
*** The result is that libtool may fail to recognize shared libraries
 
5760
*** as such.  This will affect the creation of libtool libraries that
 
5761
*** depend on shared libraries, but programs linked with such libtool
 
5762
*** libraries will work regardless of this problem.  Nevertheless, you
 
5763
*** may want to report the problem to your system manager and/or to
 
5764
*** bug-libtool@gnu.org
 
5765
 
 
5766
EOF
 
5767
          fi ;;
 
5768
        esac
 
5769
      fi
 
5770
      break
 
5771
    fi
 
5772
  done
 
5773
  IFS="$lt_save_ifs"
 
5774
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5775
  ;;
 
5776
esac
 
5777
fi
 
5778
 
 
5779
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5780
if test -n "$MAGIC_CMD"; then
 
5781
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5782
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5783
else
 
5784
  echo "$as_me:$LINENO: result: no" >&5
 
5785
echo "${ECHO_T}no" >&6
 
5786
fi
 
5787
 
 
5788
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
5789
  if test -n "$ac_tool_prefix"; then
 
5790
    echo "$as_me:$LINENO: checking for file" >&5
 
5791
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
5792
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5794
else
 
5795
  case $MAGIC_CMD in
 
5796
[\\/*] |  ?:[\\/]*)
 
5797
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5798
  ;;
 
5799
*)
 
5800
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5801
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5802
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5803
  for ac_dir in $ac_dummy; do
 
5804
    IFS="$lt_save_ifs"
 
5805
    test -z "$ac_dir" && ac_dir=.
 
5806
    if test -f $ac_dir/file; then
 
5807
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
5808
      if test -n "$file_magic_test_file"; then
 
5809
        case $deplibs_check_method in
 
5810
        "file_magic "*)
 
5811
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5812
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5813
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5814
            $EGREP "$file_magic_regex" > /dev/null; then
 
5815
            :
 
5816
          else
 
5817
            cat <<EOF 1>&2
 
5818
 
 
5819
*** Warning: the command libtool uses to detect shared libraries,
 
5820
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5821
*** The result is that libtool may fail to recognize shared libraries
 
5822
*** as such.  This will affect the creation of libtool libraries that
 
5823
*** depend on shared libraries, but programs linked with such libtool
 
5824
*** libraries will work regardless of this problem.  Nevertheless, you
 
5825
*** may want to report the problem to your system manager and/or to
 
5826
*** bug-libtool@gnu.org
 
5827
 
 
5828
EOF
 
5829
          fi ;;
 
5830
        esac
 
5831
      fi
 
5832
      break
 
5833
    fi
 
5834
  done
 
5835
  IFS="$lt_save_ifs"
 
5836
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5837
  ;;
 
5838
esac
 
5839
fi
 
5840
 
 
5841
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5842
if test -n "$MAGIC_CMD"; then
 
5843
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5844
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5845
else
 
5846
  echo "$as_me:$LINENO: result: no" >&5
 
5847
echo "${ECHO_T}no" >&6
 
5848
fi
 
5849
 
 
5850
  else
 
5851
    MAGIC_CMD=:
 
5852
  fi
 
5853
fi
 
5854
 
 
5855
  fi
 
5856
  ;;
 
5857
esac
 
5858
 
 
5859
enable_dlopen=no
 
5860
enable_win32_dll=no
 
5861
 
 
5862
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5863
if test "${enable_libtool_lock+set}" = set; then
 
5864
  enableval="$enable_libtool_lock"
 
5865
 
 
5866
fi;
 
5867
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5868
 
 
5869
 
 
5870
# Check whether --with-pic or --without-pic was given.
 
5871
if test "${with_pic+set}" = set; then
 
5872
  withval="$with_pic"
 
5873
  pic_mode="$withval"
 
5874
else
 
5875
  pic_mode=default
 
5876
fi;
 
5877
test -z "$pic_mode" && pic_mode=default
 
5878
 
 
5879
# Use C for the default configuration in the libtool script
 
5880
tagname=
 
5881
lt_save_CC="$CC"
 
5882
ac_ext=c
 
5883
ac_cpp='$CPP $CPPFLAGS'
 
5884
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5885
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5886
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5887
 
 
5888
 
 
5889
# Source file extension for C test sources.
 
5890
ac_ext=c
 
5891
 
 
5892
# Object file extension for compiled C test sources.
 
5893
objext=o
 
5894
objext=$objext
 
5895
 
 
5896
# Code to be used in simple compile tests
 
5897
lt_simple_compile_test_code="int some_variable = 0;\n"
 
5898
 
 
5899
# Code to be used in simple link tests
 
5900
lt_simple_link_test_code='int main(){return(0);}\n'
 
5901
 
 
5902
 
 
5903
# If no C compiler was specified, use CC.
 
5904
LTCC=${LTCC-"$CC"}
 
5905
 
 
5906
# Allow CC to be a program name with arguments.
 
5907
compiler=$CC
 
5908
 
 
5909
 
 
5910
#
 
5911
# Check for any special shared library compilation flags.
 
5912
#
 
5913
lt_prog_cc_shlib=
 
5914
if test "$GCC" = no; then
 
5915
  case $host_os in
 
5916
  sco3.2v5*)
 
5917
    lt_prog_cc_shlib='-belf'
 
5918
    ;;
 
5919
  esac
 
5920
fi
 
5921
if test -n "$lt_prog_cc_shlib"; then
 
5922
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
5923
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
5924
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
5925
  else
 
5926
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5927
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5928
    lt_cv_prog_cc_can_build_shared=no
 
5929
  fi
 
5930
fi
 
5931
 
 
5932
 
 
5933
#
 
5934
# Check to make sure the static flag actually works.
 
5935
#
 
5936
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
5937
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
5938
if test "${lt_prog_compiler_static_works+set}" = set; then
 
5939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5940
else
 
5941
  lt_prog_compiler_static_works=no
 
5942
   save_LDFLAGS="$LDFLAGS"
 
5943
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
5944
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
5945
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
5946
     # The compiler can only warn and ignore the option if not recognized
 
5947
     # So say no if there are warnings
 
5948
     if test -s conftest.err; then
 
5949
       # Append any errors to the config.log.
 
5950
       cat conftest.err 1>&5
 
5951
     else
 
5952
       lt_prog_compiler_static_works=yes
 
5953
     fi
 
5954
   fi
 
5955
   $rm conftest*
 
5956
   LDFLAGS="$save_LDFLAGS"
 
5957
 
 
5958
fi
 
5959
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
5960
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
5961
 
 
5962
if test x"$lt_prog_compiler_static_works" = xyes; then
 
5963
    :
 
5964
else
 
5965
    lt_prog_compiler_static=
 
5966
fi
 
5967
 
 
5968
 
 
5969
 
 
5970
 
 
5971
lt_prog_compiler_no_builtin_flag=
 
5972
 
 
5973
if test "$GCC" = yes; then
 
5974
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
5975
 
 
5976
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5977
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5978
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
5979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5980
else
 
5981
  lt_cv_prog_compiler_rtti_exceptions=no
 
5982
  ac_outfile=conftest.$ac_objext
 
5983
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5984
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
5985
   # Insert the option either (1) after the last *FLAGS variable, or
 
5986
   # (2) before a word containing "conftest.", or (3) at the end.
 
5987
   # Note that $ac_compile itself does not contain backslashes and begins
 
5988
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5989
   # The option is referenced via a variable to avoid confusing sed.
 
5990
   lt_compile=`echo "$ac_compile" | $SED \
 
5991
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
5992
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5993
   -e 's:$: $lt_compiler_flag:'`
 
5994
   (eval echo "\"\$as_me:5994: $lt_compile\"" >&5)
 
5995
   (eval "$lt_compile" 2>conftest.err)
 
5996
   ac_status=$?
 
5997
   cat conftest.err >&5
 
5998
   echo "$as_me:5998: \$? = $ac_status" >&5
 
5999
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6000
     # The compiler can only warn and ignore the option if not recognized
 
6001
     # So say no if there are warnings
 
6002
     if test ! -s conftest.err; then
 
6003
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6004
     fi
 
6005
   fi
 
6006
   $rm conftest*
 
6007
 
 
6008
fi
 
6009
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6010
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6011
 
 
6012
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6013
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6014
else
 
6015
    :
 
6016
fi
 
6017
 
 
6018
fi
 
6019
 
 
6020
lt_prog_compiler_wl=
 
6021
lt_prog_compiler_pic=
 
6022
lt_prog_compiler_static=
 
6023
 
 
6024
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6025
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6026
 
 
6027
  if test "$GCC" = yes; then
 
6028
    lt_prog_compiler_wl='-Wl,'
 
6029
    lt_prog_compiler_static='-static'
 
6030
 
 
6031
    case $host_os in
 
6032
      aix*)
 
6033
      # All AIX code is PIC.
 
6034
      if test "$host_cpu" = ia64; then
 
6035
        # AIX 5 now supports IA64 processor
 
6036
        lt_prog_compiler_static='-Bstatic'
 
6037
      fi
 
6038
      ;;
 
6039
 
 
6040
    amigaos*)
 
6041
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6042
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6043
      # like `-m68040'.
 
6044
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6045
      ;;
 
6046
 
 
6047
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6048
      # PIC is the default for these OSes.
 
6049
      ;;
 
6050
 
 
6051
    mingw* | pw32* | os2*)
 
6052
      # This hack is so that the source file can tell whether it is being
 
6053
      # built for inclusion in a dll (and should export symbols for example).
 
6054
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6055
      ;;
 
6056
 
 
6057
    darwin* | rhapsody*)
 
6058
      # PIC is the default on this platform
 
6059
      # Common symbols not allowed in MH_DYLIB files
 
6060
      lt_prog_compiler_pic='-fno-common'
 
6061
      ;;
 
6062
 
 
6063
    msdosdjgpp*)
 
6064
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6065
      # on systems that don't support them.
 
6066
      lt_prog_compiler_can_build_shared=no
 
6067
      enable_shared=no
 
6068
      ;;
 
6069
 
 
6070
    sysv4*MP*)
 
6071
      if test -d /usr/nec; then
 
6072
        lt_prog_compiler_pic=-Kconform_pic
 
6073
      fi
 
6074
      ;;
 
6075
 
 
6076
    hpux*)
 
6077
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6078
      # not for PA HP-UX.
 
6079
      case "$host_cpu" in
 
6080
      hppa*64*|ia64*)
 
6081
        # +Z the default
 
6082
        ;;
 
6083
      *)
 
6084
        lt_prog_compiler_pic='-fPIC'
 
6085
        ;;
 
6086
      esac
 
6087
      ;;
 
6088
 
 
6089
    *)
 
6090
      lt_prog_compiler_pic='-fPIC'
 
6091
      ;;
 
6092
    esac
 
6093
  else
 
6094
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6095
    case $host_os in
 
6096
    aix*)
 
6097
      lt_prog_compiler_wl='-Wl,'
 
6098
      if test "$host_cpu" = ia64; then
 
6099
        # AIX 5 now supports IA64 processor
 
6100
        lt_prog_compiler_static='-Bstatic'
 
6101
      else
 
6102
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6103
      fi
 
6104
      ;;
 
6105
 
 
6106
    mingw* | pw32* | os2*)
 
6107
      # This hack is so that the source file can tell whether it is being
 
6108
      # built for inclusion in a dll (and should export symbols for example).
 
6109
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6110
      ;;
 
6111
 
 
6112
    hpux9* | hpux10* | hpux11*)
 
6113
      lt_prog_compiler_wl='-Wl,'
 
6114
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6115
      # not for PA HP-UX.
 
6116
      case "$host_cpu" in
 
6117
      hppa*64*|ia64*)
 
6118
        # +Z the default
 
6119
        ;;
 
6120
      *)
 
6121
        lt_prog_compiler_pic='+Z'
 
6122
        ;;
 
6123
      esac
 
6124
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6125
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6126
      ;;
 
6127
 
 
6128
    irix5* | irix6* | nonstopux*)
 
6129
      lt_prog_compiler_wl='-Wl,'
 
6130
      # PIC (with -KPIC) is the default.
 
6131
      lt_prog_compiler_static='-non_shared'
 
6132
      ;;
 
6133
 
 
6134
    newsos6)
 
6135
      lt_prog_compiler_pic='-KPIC'
 
6136
      lt_prog_compiler_static='-Bstatic'
 
6137
      ;;
 
6138
 
 
6139
    linux*)
 
6140
      case $CC in
 
6141
      icc|ecc)
 
6142
        lt_prog_compiler_wl='-Wl,'
 
6143
        lt_prog_compiler_pic='-KPIC'
 
6144
        lt_prog_compiler_static='-static'
 
6145
        ;;
 
6146
      ccc)
 
6147
        lt_prog_compiler_wl='-Wl,'
 
6148
        # All Alpha code is PIC.
 
6149
        lt_prog_compiler_static='-non_shared'
 
6150
        ;;
 
6151
      esac
 
6152
      ;;
 
6153
 
 
6154
    osf3* | osf4* | osf5*)
 
6155
      lt_prog_compiler_wl='-Wl,'
 
6156
      # All OSF/1 code is PIC.
 
6157
      lt_prog_compiler_static='-non_shared'
 
6158
      ;;
 
6159
 
 
6160
    sco3.2v5*)
 
6161
      lt_prog_compiler_pic='-Kpic'
 
6162
      lt_prog_compiler_static='-dn'
 
6163
      ;;
 
6164
 
 
6165
    solaris*)
 
6166
      lt_prog_compiler_wl='-Wl,'
 
6167
      lt_prog_compiler_pic='-KPIC'
 
6168
      lt_prog_compiler_static='-Bstatic'
 
6169
      ;;
 
6170
 
 
6171
    sunos4*)
 
6172
      lt_prog_compiler_wl='-Qoption ld '
 
6173
      lt_prog_compiler_pic='-PIC'
 
6174
      lt_prog_compiler_static='-Bstatic'
 
6175
      ;;
 
6176
 
 
6177
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6178
      lt_prog_compiler_wl='-Wl,'
 
6179
      lt_prog_compiler_pic='-KPIC'
 
6180
      lt_prog_compiler_static='-Bstatic'
 
6181
      ;;
 
6182
 
 
6183
    sysv4*MP*)
 
6184
      if test -d /usr/nec ;then
 
6185
        lt_prog_compiler_pic='-Kconform_pic'
 
6186
        lt_prog_compiler_static='-Bstatic'
 
6187
      fi
 
6188
      ;;
 
6189
 
 
6190
    uts4*)
 
6191
      lt_prog_compiler_pic='-pic'
 
6192
      lt_prog_compiler_static='-Bstatic'
 
6193
      ;;
 
6194
 
 
6195
    *)
 
6196
      lt_prog_compiler_can_build_shared=no
 
6197
      ;;
 
6198
    esac
 
6199
  fi
 
6200
 
 
6201
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6202
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6203
 
 
6204
#
 
6205
# Check to make sure the PIC flag actually works.
 
6206
#
 
6207
if test -n "$lt_prog_compiler_pic"; then
 
6208
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6209
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6210
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6212
else
 
6213
  lt_prog_compiler_pic_works=no
 
6214
  ac_outfile=conftest.$ac_objext
 
6215
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6216
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6217
   # Insert the option either (1) after the last *FLAGS variable, or
 
6218
   # (2) before a word containing "conftest.", or (3) at the end.
 
6219
   # Note that $ac_compile itself does not contain backslashes and begins
 
6220
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6221
   # The option is referenced via a variable to avoid confusing sed.
 
6222
   lt_compile=`echo "$ac_compile" | $SED \
 
6223
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6224
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6225
   -e 's:$: $lt_compiler_flag:'`
 
6226
   (eval echo "\"\$as_me:6226: $lt_compile\"" >&5)
 
6227
   (eval "$lt_compile" 2>conftest.err)
 
6228
   ac_status=$?
 
6229
   cat conftest.err >&5
 
6230
   echo "$as_me:6230: \$? = $ac_status" >&5
 
6231
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6232
     # The compiler can only warn and ignore the option if not recognized
 
6233
     # So say no if there are warnings
 
6234
     if test ! -s conftest.err; then
 
6235
       lt_prog_compiler_pic_works=yes
 
6236
     fi
 
6237
   fi
 
6238
   $rm conftest*
 
6239
 
 
6240
fi
 
6241
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6242
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6243
 
 
6244
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6245
    case $lt_prog_compiler_pic in
 
6246
     "" | " "*) ;;
 
6247
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6248
     esac
 
6249
else
 
6250
    lt_prog_compiler_pic=
 
6251
     lt_prog_compiler_can_build_shared=no
 
6252
fi
 
6253
 
 
6254
fi
 
6255
case "$host_os" in
 
6256
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6257
  *djgpp*)
 
6258
    lt_prog_compiler_pic=
 
6259
    ;;
 
6260
  *)
 
6261
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6262
    ;;
 
6263
esac
 
6264
 
 
6265
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6266
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6267
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6269
else
 
6270
  lt_cv_prog_compiler_c_o=no
 
6271
   $rm -r conftest 2>/dev/null
 
6272
   mkdir conftest
 
6273
   cd conftest
 
6274
   mkdir out
 
6275
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6276
 
 
6277
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
6278
   # that will create temporary files in the current directory regardless of
 
6279
   # the output directory.  Thus, making CWD read-only will cause this test
 
6280
   # to fail, enabling locking or at least warning the user not to do parallel
 
6281
   # builds.
 
6282
   chmod -w .
 
6283
 
 
6284
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6285
   # Insert the option either (1) after the last *FLAGS variable, or
 
6286
   # (2) before a word containing "conftest.", or (3) at the end.
 
6287
   # Note that $ac_compile itself does not contain backslashes and begins
 
6288
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6289
   lt_compile=`echo "$ac_compile" | $SED \
 
6290
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6291
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6292
   -e 's:$: $lt_compiler_flag:'`
 
6293
   (eval echo "\"\$as_me:6293: $lt_compile\"" >&5)
 
6294
   (eval "$lt_compile" 2>out/conftest.err)
 
6295
   ac_status=$?
 
6296
   cat out/conftest.err >&5
 
6297
   echo "$as_me:6297: \$? = $ac_status" >&5
 
6298
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6299
   then
 
6300
     # The compiler can only warn and ignore the option if not recognized
 
6301
     # So say no if there are warnings
 
6302
     if test ! -s out/conftest.err; then
 
6303
       lt_cv_prog_compiler_c_o=yes
 
6304
     fi
 
6305
   fi
 
6306
   chmod u+w .
 
6307
   $rm conftest* out/*
 
6308
   rmdir out
 
6309
   cd ..
 
6310
   rmdir conftest
 
6311
   $rm conftest*
 
6312
 
 
6313
fi
 
6314
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6315
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6316
 
 
6317
 
 
6318
hard_links="nottested"
 
6319
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6320
  # do not overwrite the value of need_locks provided by the user
 
6321
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6322
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6323
  hard_links=yes
 
6324
  $rm conftest*
 
6325
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6326
  touch conftest.a
 
6327
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6328
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6329
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6330
echo "${ECHO_T}$hard_links" >&6
 
6331
  if test "$hard_links" = no; then
 
6332
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6333
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6334
    need_locks=warn
 
6335
  fi
 
6336
else
 
6337
  need_locks=no
 
6338
fi
 
6339
 
 
6340
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6341
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6342
 
 
6343
  runpath_var=
 
6344
  allow_undefined_flag=
 
6345
  enable_shared_with_static_runtimes=no
 
6346
  archive_cmds=
 
6347
  archive_expsym_cmds=
 
6348
  old_archive_From_new_cmds=
 
6349
  old_archive_from_expsyms_cmds=
 
6350
  export_dynamic_flag_spec=
 
6351
  whole_archive_flag_spec=
 
6352
  thread_safe_flag_spec=
 
6353
  hardcode_libdir_flag_spec=
 
6354
  hardcode_libdir_flag_spec_ld=
 
6355
  hardcode_libdir_separator=
 
6356
  hardcode_direct=no
 
6357
  hardcode_minus_L=no
 
6358
  hardcode_shlibpath_var=unsupported
 
6359
  link_all_deplibs=unknown
 
6360
  hardcode_automatic=no
 
6361
  module_cmds=
 
6362
  module_expsym_cmds=
 
6363
  always_export_symbols=no
 
6364
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6365
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6366
  # included in the symbol list
 
6367
  include_expsyms=
 
6368
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6369
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6370
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6371
  # as well as any symbol that contains `d'.
 
6372
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6373
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6374
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6375
  # the symbol is explicitly referenced.  Since portable code cannot
 
6376
  # rely on this symbol name, it's probably fine to never include it in
 
6377
  # preloaded symbol tables.
 
6378
  extract_expsyms_cmds=
 
6379
 
 
6380
  case $host_os in
 
6381
  cygwin* | mingw* | pw32*)
 
6382
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6383
    # When not using gcc, we currently assume that we are using
 
6384
    # Microsoft Visual C++.
 
6385
    if test "$GCC" != yes; then
 
6386
      with_gnu_ld=no
 
6387
    fi
 
6388
    ;;
 
6389
  openbsd*)
 
6390
    with_gnu_ld=no
 
6391
    ;;
 
6392
  esac
 
6393
 
 
6394
  ld_shlibs=yes
 
6395
  if test "$with_gnu_ld" = yes; then
 
6396
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6397
    wlarc='${wl}'
 
6398
 
 
6399
    # See if GNU ld supports shared libraries.
 
6400
    case $host_os in
 
6401
    aix3* | aix4* | aix5*)
 
6402
      # On AIX/PPC, the GNU linker is very broken
 
6403
      if test "$host_cpu" != ia64; then
 
6404
        ld_shlibs=no
 
6405
        cat <<EOF 1>&2
 
6406
 
 
6407
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6408
*** to be unable to reliably create shared libraries on AIX.
 
6409
*** Therefore, libtool is disabling shared libraries support.  If you
 
6410
*** really care for shared libraries, you may want to modify your PATH
 
6411
*** so that a non-GNU linker is found, and then restart.
 
6412
 
 
6413
EOF
 
6414
      fi
 
6415
      ;;
 
6416
 
 
6417
    amigaos*)
 
6418
      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)'
 
6419
      hardcode_libdir_flag_spec='-L$libdir'
 
6420
      hardcode_minus_L=yes
 
6421
 
 
6422
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6423
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6424
      # to version 4, is to share data among multiple programs linked
 
6425
      # with the same dynamic library.  Since this doesn't match the
 
6426
      # behavior of shared libraries on other platforms, we can't use
 
6427
      # them.
 
6428
      ld_shlibs=no
 
6429
      ;;
 
6430
 
 
6431
    beos*)
 
6432
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6433
        allow_undefined_flag=unsupported
 
6434
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6435
        # support --undefined.  This deserves some investigation.  FIXME
 
6436
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6437
      else
 
6438
        ld_shlibs=no
 
6439
      fi
 
6440
      ;;
 
6441
 
 
6442
    cygwin* | mingw* | pw32*)
 
6443
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6444
      # as there is no search path for DLLs.
 
6445
      hardcode_libdir_flag_spec='-L$libdir'
 
6446
      allow_undefined_flag=unsupported
 
6447
      always_export_symbols=no
 
6448
      enable_shared_with_static_runtimes=yes
 
6449
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6450
 
 
6451
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6452
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6453
        # If the export-symbols file already is a .def file (1st line
 
6454
        # is EXPORTS), use it as is; otherwise, prepend...
 
6455
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6456
          cp $export_symbols $output_objdir/$soname.def;
 
6457
        else
 
6458
          echo EXPORTS > $output_objdir/$soname.def;
 
6459
          cat $export_symbols >> $output_objdir/$soname.def;
 
6460
        fi~
 
6461
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6462
      else
 
6463
        ld_shlibs=no
 
6464
      fi
 
6465
      ;;
 
6466
 
 
6467
    netbsd*)
 
6468
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6469
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6470
        wlarc=
 
6471
      else
 
6472
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6473
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6474
      fi
 
6475
      ;;
 
6476
 
 
6477
    solaris* | sysv5*)
 
6478
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6479
        ld_shlibs=no
 
6480
        cat <<EOF 1>&2
 
6481
 
 
6482
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6483
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6484
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6485
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6486
*** your PATH or compiler configuration so that the native linker is
 
6487
*** used, and then restart.
 
6488
 
 
6489
EOF
 
6490
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6491
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6492
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6493
      else
 
6494
        ld_shlibs=no
 
6495
      fi
 
6496
      ;;
 
6497
 
 
6498
    sunos4*)
 
6499
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6500
      wlarc=
 
6501
      hardcode_direct=yes
 
6502
      hardcode_shlibpath_var=no
 
6503
      ;;
 
6504
 
 
6505
    *)
 
6506
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6507
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6508
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6509
      else
 
6510
        ld_shlibs=no
 
6511
      fi
 
6512
      ;;
 
6513
    esac
 
6514
 
 
6515
    if test "$ld_shlibs" = yes; then
 
6516
      runpath_var=LD_RUN_PATH
 
6517
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6518
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
6519
      # ancient GNU ld didn't support --whole-archive et. al.
 
6520
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6521
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6522
      else
 
6523
        whole_archive_flag_spec=
 
6524
      fi
 
6525
    fi
 
6526
  else
 
6527
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6528
    case $host_os in
 
6529
    aix3*)
 
6530
      allow_undefined_flag=unsupported
 
6531
      always_export_symbols=yes
 
6532
      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'
 
6533
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6534
      # are no directories specified by -L.
 
6535
      hardcode_minus_L=yes
 
6536
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6537
        # Neither direct hardcoding nor static linking is supported with a
 
6538
        # broken collect2.
 
6539
        hardcode_direct=unsupported
 
6540
      fi
 
6541
      ;;
 
6542
 
 
6543
    aix4* | aix5*)
 
6544
      if test "$host_cpu" = ia64; then
 
6545
        # On IA64, the linker does run time linking by default, so we don't
 
6546
        # have to do anything special.
 
6547
        aix_use_runtimelinking=no
 
6548
        exp_sym_flag='-Bexport'
 
6549
        no_entry_flag=""
 
6550
      else
 
6551
        # If we're using GNU nm, then we don't want the "-C" option.
 
6552
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6553
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6554
          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'
 
6555
        else
 
6556
          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'
 
6557
        fi
 
6558
        aix_use_runtimelinking=no
 
6559
 
 
6560
        # Test if we are trying to use run time linking or normal
 
6561
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6562
        # need to do runtime linking.
 
6563
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6564
          for ld_flag in $LDFLAGS; do
 
6565
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6566
            aix_use_runtimelinking=yes
 
6567
            break
 
6568
          fi
 
6569
          done
 
6570
        esac
 
6571
 
 
6572
        exp_sym_flag='-bexport'
 
6573
        no_entry_flag='-bnoentry'
 
6574
      fi
 
6575
 
 
6576
      # When large executables or shared objects are built, AIX ld can
 
6577
      # have problems creating the table of contents.  If linking a library
 
6578
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6579
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6580
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6581
 
 
6582
      archive_cmds=''
 
6583
      hardcode_direct=yes
 
6584
      hardcode_libdir_separator=':'
 
6585
      link_all_deplibs=yes
 
6586
 
 
6587
      if test "$GCC" = yes; then
 
6588
        case $host_os in aix4.012|aix4.012.*)
 
6589
        # We only want to do this on AIX 4.2 and lower, the check
 
6590
        # below for broken collect2 doesn't work under 4.3+
 
6591
          collect2name=`${CC} -print-prog-name=collect2`
 
6592
          if test -f "$collect2name" && \
 
6593
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6594
          then
 
6595
          # We have reworked collect2
 
6596
          hardcode_direct=yes
 
6597
          else
 
6598
          # We have old collect2
 
6599
          hardcode_direct=unsupported
 
6600
          # It fails to find uninstalled libraries when the uninstalled
 
6601
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6602
          # to unsupported forces relinking
 
6603
          hardcode_minus_L=yes
 
6604
          hardcode_libdir_flag_spec='-L$libdir'
 
6605
          hardcode_libdir_separator=
 
6606
          fi
 
6607
        esac
 
6608
        shared_flag='-shared'
 
6609
      else
 
6610
        # not using gcc
 
6611
        if test "$host_cpu" = ia64; then
 
6612
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6613
        # chokes on -Wl,-G. The following line is correct:
 
6614
          shared_flag='-G'
 
6615
        else
 
6616
        if test "$aix_use_runtimelinking" = yes; then
 
6617
            shared_flag='${wl}-G'
 
6618
          else
 
6619
            shared_flag='${wl}-bM:SRE'
 
6620
        fi
 
6621
        fi
 
6622
      fi
 
6623
 
 
6624
      # It seems that -bexpall does not export symbols beginning with
 
6625
      # underscore (_), so it is better to generate a list of symbols to export.
 
6626
      always_export_symbols=yes
 
6627
      if test "$aix_use_runtimelinking" = yes; then
 
6628
        # Warning - without using the other runtime loading flags (-brtl),
 
6629
        # -berok will link without error, but may produce a broken library.
 
6630
        allow_undefined_flag='-berok'
 
6631
       # Determine the default libpath from the value encoded in an empty executable.
 
6632
       cat >conftest.$ac_ext <<_ACEOF
 
6633
#line $LINENO "configure"
 
6634
/* confdefs.h.  */
 
6635
_ACEOF
 
6636
cat confdefs.h >>conftest.$ac_ext
 
6637
cat >>conftest.$ac_ext <<_ACEOF
 
6638
/* end confdefs.h.  */
 
6639
 
 
6640
int
 
6641
main ()
 
6642
{
 
6643
 
 
6644
  ;
 
6645
  return 0;
 
6646
}
 
6647
_ACEOF
 
6648
rm -f conftest.$ac_objext conftest$ac_exeext
 
6649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6650
  (eval $ac_link) 2>&5
 
6651
  ac_status=$?
 
6652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6653
  (exit $ac_status); } &&
 
6654
         { ac_try='test -s conftest$ac_exeext'
 
6655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6656
  (eval $ac_try) 2>&5
 
6657
  ac_status=$?
 
6658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6659
  (exit $ac_status); }; }; then
 
6660
 
 
6661
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6662
}'`
 
6663
# Check for a 64-bit object if we didn't find anything.
 
6664
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; }
 
6665
}'`; fi
 
6666
else
 
6667
  echo "$as_me: failed program was:" >&5
 
6668
sed 's/^/| /' conftest.$ac_ext >&5
 
6669
 
 
6670
fi
 
6671
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6672
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6673
 
 
6674
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6675
        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"
 
6676
       else
 
6677
        if test "$host_cpu" = ia64; then
 
6678
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6679
          allow_undefined_flag="-z nodefs"
 
6680
          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"
 
6681
        else
 
6682
         # Determine the default libpath from the value encoded in an empty executable.
 
6683
         cat >conftest.$ac_ext <<_ACEOF
 
6684
#line $LINENO "configure"
 
6685
/* confdefs.h.  */
 
6686
_ACEOF
 
6687
cat confdefs.h >>conftest.$ac_ext
 
6688
cat >>conftest.$ac_ext <<_ACEOF
 
6689
/* end confdefs.h.  */
 
6690
 
 
6691
int
 
6692
main ()
 
6693
{
 
6694
 
 
6695
  ;
 
6696
  return 0;
 
6697
}
 
6698
_ACEOF
 
6699
rm -f conftest.$ac_objext conftest$ac_exeext
 
6700
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6701
  (eval $ac_link) 2>&5
 
6702
  ac_status=$?
 
6703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6704
  (exit $ac_status); } &&
 
6705
         { ac_try='test -s conftest$ac_exeext'
 
6706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6707
  (eval $ac_try) 2>&5
 
6708
  ac_status=$?
 
6709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6710
  (exit $ac_status); }; }; then
 
6711
 
 
6712
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6713
}'`
 
6714
# Check for a 64-bit object if we didn't find anything.
 
6715
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; }
 
6716
}'`; fi
 
6717
else
 
6718
  echo "$as_me: failed program was:" >&5
 
6719
sed 's/^/| /' conftest.$ac_ext >&5
 
6720
 
 
6721
fi
 
6722
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6723
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6724
 
 
6725
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6726
          # Warning - without using the other run time loading flags,
 
6727
          # -berok will link without error, but may produce a broken library.
 
6728
          no_undefined_flag=' ${wl}-bernotok'
 
6729
          allow_undefined_flag=' ${wl}-berok'
 
6730
          # -bexpall does not export symbols beginning with underscore (_)
 
6731
          always_export_symbols=yes
 
6732
          # Exported symbols can be pulled into shared objects from archives
 
6733
          whole_archive_flag_spec=' '
 
6734
          archive_cmds_need_lc=yes
 
6735
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6736
          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'
 
6737
        fi
 
6738
      fi
 
6739
      ;;
 
6740
 
 
6741
    amigaos*)
 
6742
      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)'
 
6743
      hardcode_libdir_flag_spec='-L$libdir'
 
6744
      hardcode_minus_L=yes
 
6745
      # see comment about different semantics on the GNU ld section
 
6746
      ld_shlibs=no
 
6747
      ;;
 
6748
 
 
6749
    bsdi4*)
 
6750
      export_dynamic_flag_spec=-rdynamic
 
6751
      ;;
 
6752
 
 
6753
    cygwin* | mingw* | pw32*)
 
6754
      # When not using gcc, we currently assume that we are using
 
6755
      # Microsoft Visual C++.
 
6756
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6757
      # no search path for DLLs.
 
6758
      hardcode_libdir_flag_spec=' '
 
6759
      allow_undefined_flag=unsupported
 
6760
      # Tell ltmain to make .lib files, not .a files.
 
6761
      libext=lib
 
6762
      # Tell ltmain to make .dll files, not .so files.
 
6763
      shrext=".dll"
 
6764
      # FIXME: Setting linknames here is a bad hack.
 
6765
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6766
      # The linker will automatically build a .lib file if we build a DLL.
 
6767
      old_archive_From_new_cmds='true'
 
6768
      # FIXME: Should let the user specify the lib program.
 
6769
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6770
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6771
      enable_shared_with_static_runtimes=yes
 
6772
      ;;
 
6773
 
 
6774
    darwin* | rhapsody*)
 
6775
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
6776
      archive_cmds_need_lc=no
 
6777
      case "$host_os" in
 
6778
      rhapsody* | darwin1.[012])
 
6779
        allow_undefined_flag='-undefined suppress'
 
6780
        ;;
 
6781
      *) # Darwin 1.3 on
 
6782
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
 
6783
        ;;
 
6784
      esac
 
6785
      # FIXME: Relying on posixy $() will cause problems for
 
6786
      #        cross-compilation, but unfortunately the echo tests do not
 
6787
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
6788
      #        `"' quotes if we put them in here... so don't!
 
6789
        lt_int_apple_cc_single_mod=no
 
6790
        output_verbose_link_cmd='echo'
 
6791
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
6792
          lt_int_apple_cc_single_mod=yes
 
6793
        fi
 
6794
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
6795
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6796
        else
 
6797
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6798
      fi
 
6799
      module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
6800
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6801
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
6802
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6803
        else
 
6804
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6805
        fi
 
6806
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6807
      hardcode_direct=no
 
6808
      hardcode_automatic=yes
 
6809
      hardcode_shlibpath_var=unsupported
 
6810
      whole_archive_flag_spec='-all_load $convenience'
 
6811
      link_all_deplibs=yes
 
6812
    fi
 
6813
      ;;
 
6814
 
 
6815
    dgux*)
 
6816
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6817
      hardcode_libdir_flag_spec='-L$libdir'
 
6818
      hardcode_shlibpath_var=no
 
6819
      ;;
 
6820
 
 
6821
    freebsd1*)
 
6822
      ld_shlibs=no
 
6823
      ;;
 
6824
 
 
6825
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6826
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6827
    # does not break anything, and helps significantly (at the cost of a little
 
6828
    # extra space).
 
6829
    freebsd2.2*)
 
6830
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6831
      hardcode_libdir_flag_spec='-R$libdir'
 
6832
      hardcode_direct=yes
 
6833
      hardcode_shlibpath_var=no
 
6834
      ;;
 
6835
 
 
6836
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6837
    freebsd2*)
 
6838
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6839
      hardcode_direct=yes
 
6840
      hardcode_minus_L=yes
 
6841
      hardcode_shlibpath_var=no
 
6842
      ;;
 
6843
 
 
6844
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6845
    freebsd*)
 
6846
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6847
      hardcode_libdir_flag_spec='-R$libdir'
 
6848
      hardcode_direct=yes
 
6849
      hardcode_shlibpath_var=no
 
6850
      ;;
 
6851
 
 
6852
    hpux9*)
 
6853
      if test "$GCC" = yes; then
 
6854
        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'
 
6855
      else
 
6856
        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'
 
6857
      fi
 
6858
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6859
      hardcode_libdir_separator=:
 
6860
      hardcode_direct=yes
 
6861
 
 
6862
      # hardcode_minus_L: Not really in the search PATH,
 
6863
      # but as the default location of the library.
 
6864
      hardcode_minus_L=yes
 
6865
      export_dynamic_flag_spec='${wl}-E'
 
6866
      ;;
 
6867
 
 
6868
    hpux10* | hpux11*)
 
6869
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6870
        case "$host_cpu" in
 
6871
        hppa*64*|ia64*)
 
6872
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6873
          ;;
 
6874
        *)
 
6875
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6876
          ;;
 
6877
        esac
 
6878
      else
 
6879
        case "$host_cpu" in
 
6880
        hppa*64*|ia64*)
 
6881
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6882
          ;;
 
6883
        *)
 
6884
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6885
          ;;
 
6886
        esac
 
6887
      fi
 
6888
      if test "$with_gnu_ld" = no; then
 
6889
        case "$host_cpu" in
 
6890
        hppa*64*)
 
6891
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6892
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
6893
          hardcode_libdir_separator=:
 
6894
          hardcode_direct=no
 
6895
          hardcode_shlibpath_var=no
 
6896
          ;;
 
6897
        ia64*)
 
6898
          hardcode_libdir_flag_spec='-L$libdir'
 
6899
          hardcode_direct=no
 
6900
          hardcode_shlibpath_var=no
 
6901
 
 
6902
          # hardcode_minus_L: Not really in the search PATH,
 
6903
          # but as the default location of the library.
 
6904
          hardcode_minus_L=yes
 
6905
          ;;
 
6906
        *)
 
6907
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6908
          hardcode_libdir_separator=:
 
6909
          hardcode_direct=yes
 
6910
          export_dynamic_flag_spec='${wl}-E'
 
6911
 
 
6912
          # hardcode_minus_L: Not really in the search PATH,
 
6913
          # but as the default location of the library.
 
6914
          hardcode_minus_L=yes
 
6915
          ;;
 
6916
        esac
 
6917
      fi
 
6918
      ;;
 
6919
 
 
6920
    irix5* | irix6* | nonstopux*)
 
6921
      if test "$GCC" = yes; then
 
6922
        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'
 
6923
      else
 
6924
        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'
 
6925
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
6926
      fi
 
6927
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6928
      hardcode_libdir_separator=:
 
6929
      link_all_deplibs=yes
 
6930
      ;;
 
6931
 
 
6932
    netbsd*)
 
6933
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6934
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6935
      else
 
6936
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6937
      fi
 
6938
      hardcode_libdir_flag_spec='-R$libdir'
 
6939
      hardcode_direct=yes
 
6940
      hardcode_shlibpath_var=no
 
6941
      ;;
 
6942
 
 
6943
    newsos6)
 
6944
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6945
      hardcode_direct=yes
 
6946
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6947
      hardcode_libdir_separator=:
 
6948
      hardcode_shlibpath_var=no
 
6949
      ;;
 
6950
 
 
6951
    openbsd*)
 
6952
      hardcode_direct=yes
 
6953
      hardcode_shlibpath_var=no
 
6954
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6955
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6956
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6957
        export_dynamic_flag_spec='${wl}-E'
 
6958
      else
 
6959
       case $host_os in
 
6960
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
6961
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6962
           hardcode_libdir_flag_spec='-R$libdir'
 
6963
           ;;
 
6964
         *)
 
6965
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6966
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6967
           ;;
 
6968
       esac
 
6969
      fi
 
6970
      ;;
 
6971
 
 
6972
    os2*)
 
6973
      hardcode_libdir_flag_spec='-L$libdir'
 
6974
      hardcode_minus_L=yes
 
6975
      allow_undefined_flag=unsupported
 
6976
      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'
 
6977
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6978
      ;;
 
6979
 
 
6980
    osf3*)
 
6981
      if test "$GCC" = yes; then
 
6982
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6983
        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'
 
6984
      else
 
6985
        allow_undefined_flag=' -expect_unresolved \*'
 
6986
        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'
 
6987
      fi
 
6988
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6989
      hardcode_libdir_separator=:
 
6990
      ;;
 
6991
 
 
6992
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
6993
      if test "$GCC" = yes; then
 
6994
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6995
        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'
 
6996
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6997
      else
 
6998
        allow_undefined_flag=' -expect_unresolved \*'
 
6999
        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'
 
7000
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7001
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
7002
 
 
7003
        # Both c and cxx compiler support -rpath directly
 
7004
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7005
      fi
 
7006
      hardcode_libdir_separator=:
 
7007
      ;;
 
7008
 
 
7009
    sco3.2v5*)
 
7010
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7011
      hardcode_shlibpath_var=no
 
7012
      export_dynamic_flag_spec='${wl}-Bexport'
 
7013
      runpath_var=LD_RUN_PATH
 
7014
      hardcode_runpath_var=yes
 
7015
      ;;
 
7016
 
 
7017
    solaris*)
 
7018
      no_undefined_flag=' -z text'
 
7019
      if test "$GCC" = yes; then
 
7020
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7021
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7022
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7023
      else
 
7024
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7025
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7026
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7027
      fi
 
7028
      hardcode_libdir_flag_spec='-R$libdir'
 
7029
      hardcode_shlibpath_var=no
 
7030
      case $host_os in
 
7031
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7032
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7033
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7034
      esac
 
7035
      link_all_deplibs=yes
 
7036
      ;;
 
7037
 
 
7038
    sunos4*)
 
7039
      if test "x$host_vendor" = xsequent; then
 
7040
        # Use $CC to link under sequent, because it throws in some extra .o
 
7041
        # files that make .init and .fini sections work.
 
7042
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7043
      else
 
7044
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7045
      fi
 
7046
      hardcode_libdir_flag_spec='-L$libdir'
 
7047
      hardcode_direct=yes
 
7048
      hardcode_minus_L=yes
 
7049
      hardcode_shlibpath_var=no
 
7050
      ;;
 
7051
 
 
7052
    sysv4)
 
7053
      case $host_vendor in
 
7054
        sni)
 
7055
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7056
          hardcode_direct=yes # is this really true???
 
7057
        ;;
 
7058
        siemens)
 
7059
          ## LD is ld it makes a PLAMLIB
 
7060
          ## CC just makes a GrossModule.
 
7061
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7062
          reload_cmds='$CC -r -o $output$reload_objs'
 
7063
          hardcode_direct=no
 
7064
        ;;
 
7065
        motorola)
 
7066
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7067
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7068
        ;;
 
7069
      esac
 
7070
      runpath_var='LD_RUN_PATH'
 
7071
      hardcode_shlibpath_var=no
 
7072
      ;;
 
7073
 
 
7074
    sysv4.3*)
 
7075
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7076
      hardcode_shlibpath_var=no
 
7077
      export_dynamic_flag_spec='-Bexport'
 
7078
      ;;
 
7079
 
 
7080
    sysv4*MP*)
 
7081
      if test -d /usr/nec; then
 
7082
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7083
        hardcode_shlibpath_var=no
 
7084
        runpath_var=LD_RUN_PATH
 
7085
        hardcode_runpath_var=yes
 
7086
        ld_shlibs=yes
 
7087
      fi
 
7088
      ;;
 
7089
 
 
7090
    sysv4.2uw2*)
 
7091
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7092
      hardcode_direct=yes
 
7093
      hardcode_minus_L=no
 
7094
      hardcode_shlibpath_var=no
 
7095
      hardcode_runpath_var=yes
 
7096
      runpath_var=LD_RUN_PATH
 
7097
      ;;
 
7098
 
 
7099
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7100
      no_undefined_flag='${wl}-z ${wl}text'
 
7101
      if test "$GCC" = yes; then
 
7102
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7103
      else
 
7104
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7105
      fi
 
7106
      runpath_var='LD_RUN_PATH'
 
7107
      hardcode_shlibpath_var=no
 
7108
      ;;
 
7109
 
 
7110
    sysv5*)
 
7111
      no_undefined_flag=' -z text'
 
7112
      # $CC -shared without GNU ld will not create a library from C++
 
7113
      # object files and a static libstdc++, better avoid it by now
 
7114
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7115
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7116
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7117
      hardcode_libdir_flag_spec=
 
7118
      hardcode_shlibpath_var=no
 
7119
      runpath_var='LD_RUN_PATH'
 
7120
      ;;
 
7121
 
 
7122
    uts4*)
 
7123
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7124
      hardcode_libdir_flag_spec='-L$libdir'
 
7125
      hardcode_shlibpath_var=no
 
7126
      ;;
 
7127
 
 
7128
    *)
 
7129
      ld_shlibs=no
 
7130
      ;;
 
7131
    esac
 
7132
  fi
 
7133
 
 
7134
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7135
echo "${ECHO_T}$ld_shlibs" >&6
 
7136
test "$ld_shlibs" = no && can_build_shared=no
 
7137
 
 
7138
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7139
if test "$GCC" = yes; then
 
7140
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7141
fi
 
7142
 
 
7143
#
 
7144
# Do we need to explicitly link libc?
 
7145
#
 
7146
case "x$archive_cmds_need_lc" in
 
7147
x|xyes)
 
7148
  # Assume -lc should be added
 
7149
  archive_cmds_need_lc=yes
 
7150
 
 
7151
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7152
    case $archive_cmds in
 
7153
    *'~'*)
 
7154
      # FIXME: we may have to deal with multi-command sequences.
 
7155
      ;;
 
7156
    '$CC '*)
 
7157
      # Test whether the compiler implicitly links with -lc since on some
 
7158
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7159
      # to ld, don't add -lc before -lgcc.
 
7160
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7161
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7162
      $rm conftest*
 
7163
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7164
 
 
7165
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7166
  (eval $ac_compile) 2>&5
 
7167
  ac_status=$?
 
7168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7169
  (exit $ac_status); } 2>conftest.err; then
 
7170
        soname=conftest
 
7171
        lib=conftest
 
7172
        libobjs=conftest.$ac_objext
 
7173
        deplibs=
 
7174
        wl=$lt_prog_compiler_wl
 
7175
        compiler_flags=-v
 
7176
        linker_flags=-v
 
7177
        verstring=
 
7178
        output_objdir=.
 
7179
        libname=conftest
 
7180
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7181
        allow_undefined_flag=
 
7182
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7183
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7184
  ac_status=$?
 
7185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7186
  (exit $ac_status); }
 
7187
        then
 
7188
          archive_cmds_need_lc=no
 
7189
        else
 
7190
          archive_cmds_need_lc=yes
 
7191
        fi
 
7192
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7193
      else
 
7194
        cat conftest.err 1>&5
 
7195
      fi
 
7196
      $rm conftest*
 
7197
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7198
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7199
      ;;
 
7200
    esac
 
7201
  fi
 
7202
  ;;
 
7203
esac
 
7204
 
 
7205
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
7206
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
7207
hardcode_action=
 
7208
if test -n "$hardcode_libdir_flag_spec" || \
 
7209
   test -n "$runpath_var " || \
 
7210
   test "X$hardcode_automatic"="Xyes" ; then
 
7211
 
 
7212
  # We can hardcode non-existant directories.
 
7213
  if test "$hardcode_direct" != no &&
 
7214
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
7215
     # have to relink, otherwise we might link with an installed library
 
7216
     # when we should be linking with a yet-to-be-installed one
 
7217
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
7218
     test "$hardcode_minus_L" != no; then
 
7219
    # Linking always hardcodes the temporary library directory.
 
7220
    hardcode_action=relink
 
7221
  else
 
7222
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
7223
    hardcode_action=immediate
 
7224
  fi
 
7225
else
 
7226
  # We cannot hardcode anything, or else we can only hardcode existing
 
7227
  # directories.
 
7228
  hardcode_action=unsupported
 
7229
fi
 
7230
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
7231
echo "${ECHO_T}$hardcode_action" >&6
 
7232
 
 
7233
if test "$hardcode_action" = relink; then
 
7234
  # Fast installation is not supported
 
7235
  enable_fast_install=no
 
7236
elif test "$shlibpath_overrides_runpath" = yes ||
 
7237
     test "$enable_shared" = no; then
 
7238
  # Fast installation is not necessary
 
7239
  enable_fast_install=needless
 
7240
fi
 
7241
 
 
7242
striplib=
 
7243
old_striplib=
 
7244
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
7245
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
7246
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
7247
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
7248
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
7249
  echo "$as_me:$LINENO: result: yes" >&5
 
7250
echo "${ECHO_T}yes" >&6
 
7251
else
 
7252
# FIXME - insert some real tests, host_os isn't really good enough
 
7253
  case $host_os in
 
7254
   darwin*)
 
7255
       if test -n "$STRIP" ; then
 
7256
         striplib="$STRIP -x"
 
7257
         echo "$as_me:$LINENO: result: yes" >&5
 
7258
echo "${ECHO_T}yes" >&6
 
7259
       else
 
7260
  echo "$as_me:$LINENO: result: no" >&5
 
7261
echo "${ECHO_T}no" >&6
 
7262
fi
 
7263
       ;;
 
7264
   *)
 
7265
  echo "$as_me:$LINENO: result: no" >&5
 
7266
echo "${ECHO_T}no" >&6
 
7267
    ;;
 
7268
  esac
 
7269
fi
 
7270
 
 
7271
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7272
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7273
library_names_spec=
 
7274
libname_spec='lib$name'
 
7275
soname_spec=
 
7276
shrext=".so"
 
7277
postinstall_cmds=
 
7278
postuninstall_cmds=
 
7279
finish_cmds=
 
7280
finish_eval=
 
7281
shlibpath_var=
 
7282
shlibpath_overrides_runpath=unknown
 
7283
version_type=none
 
7284
dynamic_linker="$host_os ld.so"
 
7285
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7286
if test "$GCC" = yes; then
 
7287
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7288
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7289
    # if the path contains ";" then we assume it to be the separator
 
7290
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7291
    # assumed that no part of a normal pathname contains ";" but that should
 
7292
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7293
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7294
  else
 
7295
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7296
  fi
 
7297
else
 
7298
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7299
fi
 
7300
need_lib_prefix=unknown
 
7301
hardcode_into_libs=no
 
7302
 
 
7303
# when you set need_version to no, make sure it does not cause -set_version
 
7304
# flags to be left without arguments
 
7305
need_version=unknown
 
7306
 
 
7307
case $host_os in
 
7308
aix3*)
 
7309
  version_type=linux
 
7310
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7311
  shlibpath_var=LIBPATH
 
7312
 
 
7313
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7314
  soname_spec='${libname}${release}${shared_ext}$major'
 
7315
  ;;
 
7316
 
 
7317
aix4* | aix5*)
 
7318
  version_type=linux
 
7319
  need_lib_prefix=no
 
7320
  need_version=no
 
7321
  hardcode_into_libs=yes
 
7322
  if test "$host_cpu" = ia64; then
 
7323
    # AIX 5 supports IA64
 
7324
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7325
    shlibpath_var=LD_LIBRARY_PATH
 
7326
  else
 
7327
    # With GCC up to 2.95.x, collect2 would create an import file
 
7328
    # for dependence libraries.  The import file would start with
 
7329
    # the line `#! .'.  This would cause the generated library to
 
7330
    # depend on `.', always an invalid library.  This was fixed in
 
7331
    # development snapshots of GCC prior to 3.0.
 
7332
    case $host_os in
 
7333
      aix4 | aix4.[01] | aix4.[01].*)
 
7334
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7335
           echo ' yes '
 
7336
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7337
        :
 
7338
      else
 
7339
        can_build_shared=no
 
7340
      fi
 
7341
      ;;
 
7342
    esac
 
7343
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7344
    # soname into executable. Probably we can add versioning support to
 
7345
    # collect2, so additional links can be useful in future.
 
7346
    if test "$aix_use_runtimelinking" = yes; then
 
7347
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7348
      # instead of lib<name>.a to let people know that these are not
 
7349
      # typical AIX shared libraries.
 
7350
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7351
    else
 
7352
      # We preserve .a as extension for shared libraries through AIX4.2
 
7353
      # and later when we are not doing run time linking.
 
7354
      library_names_spec='${libname}${release}.a $libname.a'
 
7355
      soname_spec='${libname}${release}${shared_ext}$major'
 
7356
    fi
 
7357
    shlibpath_var=LIBPATH
 
7358
  fi
 
7359
  ;;
 
7360
 
 
7361
amigaos*)
 
7362
  library_names_spec='$libname.ixlibrary $libname.a'
 
7363
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7364
  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'
 
7365
  ;;
 
7366
 
 
7367
beos*)
 
7368
  library_names_spec='${libname}${shared_ext}'
 
7369
  dynamic_linker="$host_os ld.so"
 
7370
  shlibpath_var=LIBRARY_PATH
 
7371
  ;;
 
7372
 
 
7373
bsdi4*)
 
7374
  version_type=linux
 
7375
  need_version=no
 
7376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7377
  soname_spec='${libname}${release}${shared_ext}$major'
 
7378
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7379
  shlibpath_var=LD_LIBRARY_PATH
 
7380
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7381
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7382
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7383
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7384
  # libtool to hard-code these into programs
 
7385
  ;;
 
7386
 
 
7387
cygwin* | mingw* | pw32*)
 
7388
  version_type=windows
 
7389
  shrext=".dll"
 
7390
  need_version=no
 
7391
  need_lib_prefix=no
 
7392
 
 
7393
  case $GCC,$host_os in
 
7394
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7395
    library_names_spec='$libname.dll.a'
 
7396
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7397
    postinstall_cmds='base_file=`basename \${file}`~
 
7398
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7399
      dldir=$destdir/`dirname \$dlpath`~
 
7400
      test -d \$dldir || mkdir -p \$dldir~
 
7401
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7402
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7403
      dlpath=$dir/\$dldll~
 
7404
       $rm \$dlpath'
 
7405
    shlibpath_overrides_runpath=yes
 
7406
 
 
7407
    case $host_os in
 
7408
    cygwin*)
 
7409
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7410
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7411
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
 
7412
      ;;
 
7413
    mingw*)
 
7414
      # MinGW DLLs use traditional 'lib' prefix
 
7415
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7416
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7417
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7418
        # It is most probably a Windows format PATH printed by
 
7419
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7420
        # path with ; separators, and with drive letters. We can handle the
 
7421
        # drive letters (cygwin fileutils understands them), so leave them,
 
7422
        # especially as we might pass files found there to a mingw objdump,
 
7423
        # which wouldn't understand a cygwinified path. Ahh.
 
7424
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7425
      else
 
7426
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7427
      fi
 
7428
      ;;
 
7429
    pw32*)
 
7430
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7431
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7432
      ;;
 
7433
    esac
 
7434
    ;;
 
7435
 
 
7436
  *)
 
7437
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7438
    ;;
 
7439
  esac
 
7440
  dynamic_linker='Win32 ld.exe'
 
7441
  # FIXME: first we should search . and the directory the executable is in
 
7442
  shlibpath_var=PATH
 
7443
  ;;
 
7444
 
 
7445
darwin* | rhapsody*)
 
7446
  dynamic_linker="$host_os dyld"
 
7447
  version_type=darwin
 
7448
  need_lib_prefix=no
 
7449
  need_version=no
 
7450
  # FIXME: Relying on posixy $() will cause problems for
 
7451
  #        cross-compilation, but unfortunately the echo tests do not
 
7452
  #        yet detect zsh echo's removal of \ escapes.
 
7453
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7454
  soname_spec='${libname}${release}${major}$shared_ext'
 
7455
  shlibpath_overrides_runpath=yes
 
7456
  shlibpath_var=DYLD_LIBRARY_PATH
 
7457
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
7458
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7459
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
7460
  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"`
 
7461
  fi
 
7462
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7463
  ;;
 
7464
 
 
7465
dgux*)
 
7466
  version_type=linux
 
7467
  need_lib_prefix=no
 
7468
  need_version=no
 
7469
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7470
  soname_spec='${libname}${release}${shared_ext}$major'
 
7471
  shlibpath_var=LD_LIBRARY_PATH
 
7472
  ;;
 
7473
 
 
7474
freebsd1*)
 
7475
  dynamic_linker=no
 
7476
  ;;
 
7477
 
 
7478
freebsd*-gnu*)
 
7479
  version_type=linux
 
7480
  need_lib_prefix=no
 
7481
  need_version=no
 
7482
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7483
  soname_spec='${libname}${release}${shared_ext}$major'
 
7484
  shlibpath_var=LD_LIBRARY_PATH
 
7485
  shlibpath_overrides_runpath=no
 
7486
  hardcode_into_libs=yes
 
7487
  dynamic_linker='GNU ld.so'
 
7488
  ;;
 
7489
 
 
7490
freebsd*)
 
7491
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7492
  version_type=freebsd-$objformat
 
7493
  case $version_type in
 
7494
    freebsd-elf*)
 
7495
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7496
      need_version=no
 
7497
      need_lib_prefix=no
 
7498
      ;;
 
7499
    freebsd-*)
 
7500
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7501
      need_version=yes
 
7502
      ;;
 
7503
  esac
 
7504
  shlibpath_var=LD_LIBRARY_PATH
 
7505
  case $host_os in
 
7506
  freebsd2*)
 
7507
    shlibpath_overrides_runpath=yes
 
7508
    ;;
 
7509
  freebsd3.01* | freebsdelf3.01*)
 
7510
    shlibpath_overrides_runpath=yes
 
7511
    hardcode_into_libs=yes
 
7512
    ;;
 
7513
  *) # from 3.2 on
 
7514
    shlibpath_overrides_runpath=no
 
7515
    hardcode_into_libs=yes
 
7516
    ;;
 
7517
  esac
 
7518
  ;;
 
7519
 
 
7520
gnu*)
 
7521
  version_type=linux
 
7522
  need_lib_prefix=no
 
7523
  need_version=no
 
7524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7525
  soname_spec='${libname}${release}${shared_ext}$major'
 
7526
  shlibpath_var=LD_LIBRARY_PATH
 
7527
  hardcode_into_libs=yes
 
7528
  ;;
 
7529
 
 
7530
hpux9* | hpux10* | hpux11*)
 
7531
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7532
  # link against other versions.
 
7533
  version_type=sunos
 
7534
  need_lib_prefix=no
 
7535
  need_version=no
 
7536
  case "$host_cpu" in
 
7537
  ia64*)
 
7538
    shrext='.so'
 
7539
    hardcode_into_libs=yes
 
7540
    dynamic_linker="$host_os dld.so"
 
7541
    shlibpath_var=LD_LIBRARY_PATH
 
7542
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7543
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7544
    soname_spec='${libname}${release}${shared_ext}$major'
 
7545
    if test "X$HPUX_IA64_MODE" = X32; then
 
7546
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7547
    else
 
7548
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7549
    fi
 
7550
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7551
    ;;
 
7552
   hppa*64*)
 
7553
     shrext='.sl'
 
7554
     hardcode_into_libs=yes
 
7555
     dynamic_linker="$host_os dld.sl"
 
7556
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7557
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7558
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7559
     soname_spec='${libname}${release}${shared_ext}$major'
 
7560
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7561
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7562
     ;;
 
7563
   *)
 
7564
    shrext='.sl'
 
7565
    dynamic_linker="$host_os dld.sl"
 
7566
    shlibpath_var=SHLIB_PATH
 
7567
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7568
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7569
    soname_spec='${libname}${release}${shared_ext}$major'
 
7570
    ;;
 
7571
  esac
 
7572
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7573
  postinstall_cmds='chmod 555 $lib'
 
7574
  ;;
 
7575
 
 
7576
irix5* | irix6* | nonstopux*)
 
7577
  case $host_os in
 
7578
    nonstopux*) version_type=nonstopux ;;
 
7579
    *)
 
7580
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7581
                version_type=linux
 
7582
        else
 
7583
                version_type=irix
 
7584
        fi ;;
 
7585
  esac
 
7586
  need_lib_prefix=no
 
7587
  need_version=no
 
7588
  soname_spec='${libname}${release}${shared_ext}$major'
 
7589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7590
  case $host_os in
 
7591
  irix5* | nonstopux*)
 
7592
    libsuff= shlibsuff=
 
7593
    ;;
 
7594
  *)
 
7595
    case $LD in # libtool.m4 will add one of these switches to LD
 
7596
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7597
      libsuff= shlibsuff= libmagic=32-bit;;
 
7598
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7599
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7600
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7601
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7602
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7603
    esac
 
7604
    ;;
 
7605
  esac
 
7606
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7607
  shlibpath_overrides_runpath=no
 
7608
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7609
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7610
  hardcode_into_libs=yes
 
7611
  ;;
 
7612
 
 
7613
# No shared lib support for Linux oldld, aout, or coff.
 
7614
linux*oldld* | linux*aout* | linux*coff*)
 
7615
  dynamic_linker=no
 
7616
  ;;
 
7617
 
 
7618
# This must be Linux ELF.
 
7619
linux*)
 
7620
  version_type=linux
 
7621
  need_lib_prefix=no
 
7622
  need_version=no
 
7623
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7624
  soname_spec='${libname}${release}${shared_ext}$major'
 
7625
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7626
  shlibpath_var=LD_LIBRARY_PATH
 
7627
  shlibpath_overrides_runpath=no
 
7628
  # This implies no fast_install, which is unacceptable.
 
7629
  # Some rework will be needed to allow for fast_install
 
7630
  # before this can be enabled.
 
7631
  hardcode_into_libs=yes
 
7632
 
 
7633
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7634
  # powerpc, because MkLinux only supported shared libraries with the
 
7635
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7636
  # most powerpc-linux boxes support dynamic linking these days and
 
7637
  # people can always --disable-shared, the test was removed, and we
 
7638
  # assume the GNU/Linux dynamic linker is in use.
 
7639
  dynamic_linker='GNU/Linux ld.so'
 
7640
  ;;
 
7641
 
 
7642
netbsd*)
 
7643
  version_type=sunos
 
7644
  need_lib_prefix=no
 
7645
  need_version=no
 
7646
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7647
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7648
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7649
    dynamic_linker='NetBSD (a.out) ld.so'
 
7650
  else
 
7651
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
7652
    soname_spec='${libname}${release}${shared_ext}$major'
 
7653
    dynamic_linker='NetBSD ld.elf_so'
 
7654
  fi
 
7655
  shlibpath_var=LD_LIBRARY_PATH
 
7656
  shlibpath_overrides_runpath=yes
 
7657
  hardcode_into_libs=yes
 
7658
  ;;
 
7659
 
 
7660
newsos6)
 
7661
  version_type=linux
 
7662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7663
  shlibpath_var=LD_LIBRARY_PATH
 
7664
  shlibpath_overrides_runpath=yes
 
7665
  ;;
 
7666
 
 
7667
nto-qnx)
 
7668
  version_type=linux
 
7669
  need_lib_prefix=no
 
7670
  need_version=no
 
7671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7672
  soname_spec='${libname}${release}${shared_ext}$major'
 
7673
  shlibpath_var=LD_LIBRARY_PATH
 
7674
  shlibpath_overrides_runpath=yes
 
7675
  ;;
 
7676
 
 
7677
openbsd*)
 
7678
  version_type=sunos
 
7679
  need_lib_prefix=no
 
7680
  need_version=no
 
7681
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7682
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7683
  shlibpath_var=LD_LIBRARY_PATH
 
7684
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7685
    case $host_os in
 
7686
      openbsd2.[89] | openbsd2.[89].*)
 
7687
        shlibpath_overrides_runpath=no
 
7688
        ;;
 
7689
      *)
 
7690
        shlibpath_overrides_runpath=yes
 
7691
        ;;
 
7692
      esac
 
7693
  else
 
7694
    shlibpath_overrides_runpath=yes
 
7695
  fi
 
7696
  ;;
 
7697
 
 
7698
os2*)
 
7699
  libname_spec='$name'
 
7700
  shrext=".dll"
 
7701
  need_lib_prefix=no
 
7702
  library_names_spec='$libname${shared_ext} $libname.a'
 
7703
  dynamic_linker='OS/2 ld.exe'
 
7704
  shlibpath_var=LIBPATH
 
7705
  ;;
 
7706
 
 
7707
osf3* | osf4* | osf5*)
 
7708
  version_type=osf
 
7709
  need_lib_prefix=no
 
7710
  need_version=no
 
7711
  soname_spec='${libname}${release}${shared_ext}$major'
 
7712
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7713
  shlibpath_var=LD_LIBRARY_PATH
 
7714
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7715
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7716
  ;;
 
7717
 
 
7718
sco3.2v5*)
 
7719
  version_type=osf
 
7720
  soname_spec='${libname}${release}${shared_ext}$major'
 
7721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7722
  shlibpath_var=LD_LIBRARY_PATH
 
7723
  ;;
 
7724
 
 
7725
solaris*)
 
7726
  version_type=linux
 
7727
  need_lib_prefix=no
 
7728
  need_version=no
 
7729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7730
  soname_spec='${libname}${release}${shared_ext}$major'
 
7731
  shlibpath_var=LD_LIBRARY_PATH
 
7732
  shlibpath_overrides_runpath=yes
 
7733
  hardcode_into_libs=yes
 
7734
  # ldd complains unless libraries are executable
 
7735
  postinstall_cmds='chmod +x $lib'
 
7736
  ;;
 
7737
 
 
7738
sunos4*)
 
7739
  version_type=sunos
 
7740
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7741
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7742
  shlibpath_var=LD_LIBRARY_PATH
 
7743
  shlibpath_overrides_runpath=yes
 
7744
  if test "$with_gnu_ld" = yes; then
 
7745
    need_lib_prefix=no
 
7746
  fi
 
7747
  need_version=yes
 
7748
  ;;
 
7749
 
 
7750
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7751
  version_type=linux
 
7752
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7753
  soname_spec='${libname}${release}${shared_ext}$major'
 
7754
  shlibpath_var=LD_LIBRARY_PATH
 
7755
  case $host_vendor in
 
7756
    sni)
 
7757
      shlibpath_overrides_runpath=no
 
7758
      need_lib_prefix=no
 
7759
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7760
      runpath_var=LD_RUN_PATH
 
7761
      ;;
 
7762
    siemens)
 
7763
      need_lib_prefix=no
 
7764
      ;;
 
7765
    motorola)
 
7766
      need_lib_prefix=no
 
7767
      need_version=no
 
7768
      shlibpath_overrides_runpath=no
 
7769
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7770
      ;;
 
7771
  esac
 
7772
  ;;
 
7773
 
 
7774
sysv4*MP*)
 
7775
  if test -d /usr/nec ;then
 
7776
    version_type=linux
 
7777
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
7778
    soname_spec='$libname${shared_ext}.$major'
 
7779
    shlibpath_var=LD_LIBRARY_PATH
 
7780
  fi
 
7781
  ;;
 
7782
 
 
7783
uts4*)
 
7784
  version_type=linux
 
7785
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7786
  soname_spec='${libname}${release}${shared_ext}$major'
 
7787
  shlibpath_var=LD_LIBRARY_PATH
 
7788
  ;;
 
7789
 
 
7790
*)
 
7791
  dynamic_linker=no
 
7792
  ;;
 
7793
esac
 
7794
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7795
echo "${ECHO_T}$dynamic_linker" >&6
 
7796
test "$dynamic_linker" = no && can_build_shared=no
 
7797
 
 
7798
if test "x$enable_dlopen" != xyes; then
 
7799
  enable_dlopen=unknown
 
7800
  enable_dlopen_self=unknown
 
7801
  enable_dlopen_self_static=unknown
 
7802
else
 
7803
  lt_cv_dlopen=no
 
7804
  lt_cv_dlopen_libs=
 
7805
 
 
7806
  case $host_os in
 
7807
  beos*)
 
7808
    lt_cv_dlopen="load_add_on"
 
7809
    lt_cv_dlopen_libs=
 
7810
    lt_cv_dlopen_self=yes
 
7811
    ;;
 
7812
 
 
7813
  mingw* | pw32*)
 
7814
    lt_cv_dlopen="LoadLibrary"
 
7815
    lt_cv_dlopen_libs=
 
7816
   ;;
 
7817
 
 
7818
  cygwin*)
 
7819
    lt_cv_dlopen="dlopen"
 
7820
    lt_cv_dlopen_libs=
 
7821
   ;;
 
7822
 
 
7823
  darwin*)
 
7824
  # if libdl is installed we need to link against it
 
7825
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7826
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7827
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7828
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7829
else
 
7830
  ac_check_lib_save_LIBS=$LIBS
 
7831
LIBS="-ldl  $LIBS"
 
7832
cat >conftest.$ac_ext <<_ACEOF
 
7833
#line $LINENO "configure"
 
7834
/* confdefs.h.  */
 
7835
_ACEOF
 
7836
cat confdefs.h >>conftest.$ac_ext
 
7837
cat >>conftest.$ac_ext <<_ACEOF
 
7838
/* end confdefs.h.  */
 
7839
 
 
7840
/* Override any gcc2 internal prototype to avoid an error.  */
 
7841
#ifdef __cplusplus
 
7842
extern "C"
 
7843
#endif
 
7844
/* We use char because int might match the return type of a gcc2
 
7845
   builtin and then its argument prototype would still apply.  */
 
7846
char dlopen ();
 
7847
int
 
7848
main ()
 
7849
{
 
7850
dlopen ();
 
7851
  ;
 
7852
  return 0;
 
7853
}
 
7854
_ACEOF
 
7855
rm -f conftest.$ac_objext conftest$ac_exeext
 
7856
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7857
  (eval $ac_link) 2>&5
 
7858
  ac_status=$?
 
7859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7860
  (exit $ac_status); } &&
 
7861
         { ac_try='test -s conftest$ac_exeext'
 
7862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7863
  (eval $ac_try) 2>&5
 
7864
  ac_status=$?
 
7865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7866
  (exit $ac_status); }; }; then
 
7867
  ac_cv_lib_dl_dlopen=yes
 
7868
else
 
7869
  echo "$as_me: failed program was:" >&5
 
7870
sed 's/^/| /' conftest.$ac_ext >&5
 
7871
 
 
7872
ac_cv_lib_dl_dlopen=no
 
7873
fi
 
7874
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7875
LIBS=$ac_check_lib_save_LIBS
 
7876
fi
 
7877
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7878
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7879
if test $ac_cv_lib_dl_dlopen = yes; then
 
7880
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7881
else
 
7882
 
 
7883
    lt_cv_dlopen="dyld"
 
7884
    lt_cv_dlopen_libs=
 
7885
    lt_cv_dlopen_self=yes
 
7886
 
 
7887
fi
 
7888
 
 
7889
   ;;
 
7890
 
 
7891
  *)
 
7892
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
7893
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
7894
if test "${ac_cv_func_shl_load+set}" = set; then
 
7895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7896
else
 
7897
  cat >conftest.$ac_ext <<_ACEOF
 
7898
#line $LINENO "configure"
 
7899
/* confdefs.h.  */
 
7900
_ACEOF
 
7901
cat confdefs.h >>conftest.$ac_ext
 
7902
cat >>conftest.$ac_ext <<_ACEOF
 
7903
/* end confdefs.h.  */
 
7904
/* System header to define __stub macros and hopefully few prototypes,
 
7905
    which can conflict with char shl_load (); below.
 
7906
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7907
    <limits.h> exists even on freestanding compilers.  */
 
7908
#ifdef __STDC__
 
7909
# include <limits.h>
 
7910
#else
 
7911
# include <assert.h>
 
7912
#endif
 
7913
/* Override any gcc2 internal prototype to avoid an error.  */
 
7914
#ifdef __cplusplus
 
7915
extern "C"
 
7916
{
 
7917
#endif
 
7918
/* We use char because int might match the return type of a gcc2
 
7919
   builtin and then its argument prototype would still apply.  */
 
7920
char shl_load ();
 
7921
/* The GNU C library defines this for functions which it implements
 
7922
    to always fail with ENOSYS.  Some functions are actually named
 
7923
    something starting with __ and the normal name is an alias.  */
 
7924
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
7925
choke me
 
7926
#else
 
7927
char (*f) () = shl_load;
 
7928
#endif
 
7929
#ifdef __cplusplus
 
7930
}
 
7931
#endif
 
7932
 
 
7933
int
 
7934
main ()
 
7935
{
 
7936
return f != shl_load;
 
7937
  ;
 
7938
  return 0;
 
7939
}
 
7940
_ACEOF
 
7941
rm -f conftest.$ac_objext conftest$ac_exeext
 
7942
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7943
  (eval $ac_link) 2>&5
 
7944
  ac_status=$?
 
7945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7946
  (exit $ac_status); } &&
 
7947
         { ac_try='test -s conftest$ac_exeext'
 
7948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7949
  (eval $ac_try) 2>&5
 
7950
  ac_status=$?
 
7951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7952
  (exit $ac_status); }; }; then
 
7953
  ac_cv_func_shl_load=yes
 
7954
else
 
7955
  echo "$as_me: failed program was:" >&5
 
7956
sed 's/^/| /' conftest.$ac_ext >&5
 
7957
 
 
7958
ac_cv_func_shl_load=no
 
7959
fi
 
7960
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
7961
fi
 
7962
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
7963
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
7964
if test $ac_cv_func_shl_load = yes; then
 
7965
  lt_cv_dlopen="shl_load"
 
7966
else
 
7967
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
7968
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
7969
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
7970
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7971
else
 
7972
  ac_check_lib_save_LIBS=$LIBS
 
7973
LIBS="-ldld  $LIBS"
 
7974
cat >conftest.$ac_ext <<_ACEOF
 
7975
#line $LINENO "configure"
 
7976
/* confdefs.h.  */
 
7977
_ACEOF
 
7978
cat confdefs.h >>conftest.$ac_ext
 
7979
cat >>conftest.$ac_ext <<_ACEOF
 
7980
/* end confdefs.h.  */
 
7981
 
 
7982
/* Override any gcc2 internal prototype to avoid an error.  */
 
7983
#ifdef __cplusplus
 
7984
extern "C"
 
7985
#endif
 
7986
/* We use char because int might match the return type of a gcc2
 
7987
   builtin and then its argument prototype would still apply.  */
 
7988
char shl_load ();
 
7989
int
 
7990
main ()
 
7991
{
 
7992
shl_load ();
 
7993
  ;
 
7994
  return 0;
 
7995
}
 
7996
_ACEOF
 
7997
rm -f conftest.$ac_objext conftest$ac_exeext
 
7998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7999
  (eval $ac_link) 2>&5
 
8000
  ac_status=$?
 
8001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8002
  (exit $ac_status); } &&
 
8003
         { ac_try='test -s conftest$ac_exeext'
 
8004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8005
  (eval $ac_try) 2>&5
 
8006
  ac_status=$?
 
8007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8008
  (exit $ac_status); }; }; then
 
8009
  ac_cv_lib_dld_shl_load=yes
 
8010
else
 
8011
  echo "$as_me: failed program was:" >&5
 
8012
sed 's/^/| /' conftest.$ac_ext >&5
 
8013
 
 
8014
ac_cv_lib_dld_shl_load=no
 
8015
fi
 
8016
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8017
LIBS=$ac_check_lib_save_LIBS
 
8018
fi
 
8019
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8020
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8021
if test $ac_cv_lib_dld_shl_load = yes; then
 
8022
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8023
else
 
8024
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8025
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8026
if test "${ac_cv_func_dlopen+set}" = set; then
 
8027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8028
else
 
8029
  cat >conftest.$ac_ext <<_ACEOF
 
8030
#line $LINENO "configure"
 
8031
/* confdefs.h.  */
 
8032
_ACEOF
 
8033
cat confdefs.h >>conftest.$ac_ext
 
8034
cat >>conftest.$ac_ext <<_ACEOF
 
8035
/* end confdefs.h.  */
 
8036
/* System header to define __stub macros and hopefully few prototypes,
 
8037
    which can conflict with char dlopen (); below.
 
8038
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8039
    <limits.h> exists even on freestanding compilers.  */
 
8040
#ifdef __STDC__
 
8041
# include <limits.h>
 
8042
#else
 
8043
# include <assert.h>
 
8044
#endif
 
8045
/* Override any gcc2 internal prototype to avoid an error.  */
 
8046
#ifdef __cplusplus
 
8047
extern "C"
 
8048
{
 
8049
#endif
 
8050
/* We use char because int might match the return type of a gcc2
 
8051
   builtin and then its argument prototype would still apply.  */
 
8052
char dlopen ();
 
8053
/* The GNU C library defines this for functions which it implements
 
8054
    to always fail with ENOSYS.  Some functions are actually named
 
8055
    something starting with __ and the normal name is an alias.  */
 
8056
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8057
choke me
 
8058
#else
 
8059
char (*f) () = dlopen;
 
8060
#endif
 
8061
#ifdef __cplusplus
 
8062
}
 
8063
#endif
 
8064
 
 
8065
int
 
8066
main ()
 
8067
{
 
8068
return f != dlopen;
 
8069
  ;
 
8070
  return 0;
 
8071
}
 
8072
_ACEOF
 
8073
rm -f conftest.$ac_objext conftest$ac_exeext
 
8074
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8075
  (eval $ac_link) 2>&5
 
8076
  ac_status=$?
 
8077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8078
  (exit $ac_status); } &&
 
8079
         { ac_try='test -s conftest$ac_exeext'
 
8080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8081
  (eval $ac_try) 2>&5
 
8082
  ac_status=$?
 
8083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8084
  (exit $ac_status); }; }; then
 
8085
  ac_cv_func_dlopen=yes
 
8086
else
 
8087
  echo "$as_me: failed program was:" >&5
 
8088
sed 's/^/| /' conftest.$ac_ext >&5
 
8089
 
 
8090
ac_cv_func_dlopen=no
 
8091
fi
 
8092
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8093
fi
 
8094
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8095
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8096
if test $ac_cv_func_dlopen = yes; then
 
8097
  lt_cv_dlopen="dlopen"
 
8098
else
 
8099
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8100
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8101
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8103
else
 
8104
  ac_check_lib_save_LIBS=$LIBS
 
8105
LIBS="-ldl  $LIBS"
 
8106
cat >conftest.$ac_ext <<_ACEOF
 
8107
#line $LINENO "configure"
 
8108
/* confdefs.h.  */
 
8109
_ACEOF
 
8110
cat confdefs.h >>conftest.$ac_ext
 
8111
cat >>conftest.$ac_ext <<_ACEOF
 
8112
/* end confdefs.h.  */
 
8113
 
 
8114
/* Override any gcc2 internal prototype to avoid an error.  */
 
8115
#ifdef __cplusplus
 
8116
extern "C"
 
8117
#endif
 
8118
/* We use char because int might match the return type of a gcc2
 
8119
   builtin and then its argument prototype would still apply.  */
 
8120
char dlopen ();
 
8121
int
 
8122
main ()
 
8123
{
 
8124
dlopen ();
 
8125
  ;
 
8126
  return 0;
 
8127
}
 
8128
_ACEOF
 
8129
rm -f conftest.$ac_objext conftest$ac_exeext
 
8130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8131
  (eval $ac_link) 2>&5
 
8132
  ac_status=$?
 
8133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8134
  (exit $ac_status); } &&
 
8135
         { ac_try='test -s conftest$ac_exeext'
 
8136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8137
  (eval $ac_try) 2>&5
 
8138
  ac_status=$?
 
8139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8140
  (exit $ac_status); }; }; then
 
8141
  ac_cv_lib_dl_dlopen=yes
 
8142
else
 
8143
  echo "$as_me: failed program was:" >&5
 
8144
sed 's/^/| /' conftest.$ac_ext >&5
 
8145
 
 
8146
ac_cv_lib_dl_dlopen=no
 
8147
fi
 
8148
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8149
LIBS=$ac_check_lib_save_LIBS
 
8150
fi
 
8151
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8152
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8153
if test $ac_cv_lib_dl_dlopen = yes; then
 
8154
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8155
else
 
8156
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8157
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8158
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8159
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8160
else
 
8161
  ac_check_lib_save_LIBS=$LIBS
 
8162
LIBS="-lsvld  $LIBS"
 
8163
cat >conftest.$ac_ext <<_ACEOF
 
8164
#line $LINENO "configure"
 
8165
/* confdefs.h.  */
 
8166
_ACEOF
 
8167
cat confdefs.h >>conftest.$ac_ext
 
8168
cat >>conftest.$ac_ext <<_ACEOF
 
8169
/* end confdefs.h.  */
 
8170
 
 
8171
/* Override any gcc2 internal prototype to avoid an error.  */
 
8172
#ifdef __cplusplus
 
8173
extern "C"
 
8174
#endif
 
8175
/* We use char because int might match the return type of a gcc2
 
8176
   builtin and then its argument prototype would still apply.  */
 
8177
char dlopen ();
 
8178
int
 
8179
main ()
 
8180
{
 
8181
dlopen ();
 
8182
  ;
 
8183
  return 0;
 
8184
}
 
8185
_ACEOF
 
8186
rm -f conftest.$ac_objext conftest$ac_exeext
 
8187
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8188
  (eval $ac_link) 2>&5
 
8189
  ac_status=$?
 
8190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8191
  (exit $ac_status); } &&
 
8192
         { ac_try='test -s conftest$ac_exeext'
 
8193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8194
  (eval $ac_try) 2>&5
 
8195
  ac_status=$?
 
8196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8197
  (exit $ac_status); }; }; then
 
8198
  ac_cv_lib_svld_dlopen=yes
 
8199
else
 
8200
  echo "$as_me: failed program was:" >&5
 
8201
sed 's/^/| /' conftest.$ac_ext >&5
 
8202
 
 
8203
ac_cv_lib_svld_dlopen=no
 
8204
fi
 
8205
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8206
LIBS=$ac_check_lib_save_LIBS
 
8207
fi
 
8208
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8209
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8210
if test $ac_cv_lib_svld_dlopen = yes; then
 
8211
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8212
else
 
8213
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8214
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8215
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8217
else
 
8218
  ac_check_lib_save_LIBS=$LIBS
 
8219
LIBS="-ldld  $LIBS"
 
8220
cat >conftest.$ac_ext <<_ACEOF
 
8221
#line $LINENO "configure"
 
8222
/* confdefs.h.  */
 
8223
_ACEOF
 
8224
cat confdefs.h >>conftest.$ac_ext
 
8225
cat >>conftest.$ac_ext <<_ACEOF
 
8226
/* end confdefs.h.  */
 
8227
 
 
8228
/* Override any gcc2 internal prototype to avoid an error.  */
 
8229
#ifdef __cplusplus
 
8230
extern "C"
 
8231
#endif
 
8232
/* We use char because int might match the return type of a gcc2
 
8233
   builtin and then its argument prototype would still apply.  */
 
8234
char dld_link ();
 
8235
int
 
8236
main ()
 
8237
{
 
8238
dld_link ();
 
8239
  ;
 
8240
  return 0;
 
8241
}
 
8242
_ACEOF
 
8243
rm -f conftest.$ac_objext conftest$ac_exeext
 
8244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8245
  (eval $ac_link) 2>&5
 
8246
  ac_status=$?
 
8247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8248
  (exit $ac_status); } &&
 
8249
         { ac_try='test -s conftest$ac_exeext'
 
8250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8251
  (eval $ac_try) 2>&5
 
8252
  ac_status=$?
 
8253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8254
  (exit $ac_status); }; }; then
 
8255
  ac_cv_lib_dld_dld_link=yes
 
8256
else
 
8257
  echo "$as_me: failed program was:" >&5
 
8258
sed 's/^/| /' conftest.$ac_ext >&5
 
8259
 
 
8260
ac_cv_lib_dld_dld_link=no
 
8261
fi
 
8262
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8263
LIBS=$ac_check_lib_save_LIBS
 
8264
fi
 
8265
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8266
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8267
if test $ac_cv_lib_dld_dld_link = yes; then
 
8268
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8269
fi
 
8270
 
 
8271
 
 
8272
fi
 
8273
 
 
8274
 
 
8275
fi
 
8276
 
 
8277
 
 
8278
fi
 
8279
 
 
8280
 
 
8281
fi
 
8282
 
 
8283
 
 
8284
fi
 
8285
 
 
8286
    ;;
 
8287
  esac
 
8288
 
 
8289
  if test "x$lt_cv_dlopen" != xno; then
 
8290
    enable_dlopen=yes
 
8291
  else
 
8292
    enable_dlopen=no
 
8293
  fi
 
8294
 
 
8295
  case $lt_cv_dlopen in
 
8296
  dlopen)
 
8297
    save_CPPFLAGS="$CPPFLAGS"
 
8298
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8299
 
 
8300
    save_LDFLAGS="$LDFLAGS"
 
8301
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8302
 
 
8303
    save_LIBS="$LIBS"
 
8304
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8305
 
 
8306
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8307
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8308
if test "${lt_cv_dlopen_self+set}" = set; then
 
8309
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8310
else
 
8311
          if test "$cross_compiling" = yes; then :
 
8312
  lt_cv_dlopen_self=cross
 
8313
else
 
8314
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8315
  lt_status=$lt_dlunknown
 
8316
  cat > conftest.$ac_ext <<EOF
 
8317
#line 8317 "configure"
 
8318
#include "confdefs.h"
 
8319
 
 
8320
#if HAVE_DLFCN_H
 
8321
#include <dlfcn.h>
 
8322
#endif
 
8323
 
 
8324
#include <stdio.h>
 
8325
 
 
8326
#ifdef RTLD_GLOBAL
 
8327
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8328
#else
 
8329
#  ifdef DL_GLOBAL
 
8330
#    define LT_DLGLOBAL         DL_GLOBAL
 
8331
#  else
 
8332
#    define LT_DLGLOBAL         0
 
8333
#  endif
 
8334
#endif
 
8335
 
 
8336
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8337
   find out it does not work in some platform. */
 
8338
#ifndef LT_DLLAZY_OR_NOW
 
8339
#  ifdef RTLD_LAZY
 
8340
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8341
#  else
 
8342
#    ifdef DL_LAZY
 
8343
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8344
#    else
 
8345
#      ifdef RTLD_NOW
 
8346
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8347
#      else
 
8348
#        ifdef DL_NOW
 
8349
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8350
#        else
 
8351
#          define LT_DLLAZY_OR_NOW      0
 
8352
#        endif
 
8353
#      endif
 
8354
#    endif
 
8355
#  endif
 
8356
#endif
 
8357
 
 
8358
#ifdef __cplusplus
 
8359
extern "C" void exit (int);
 
8360
#endif
 
8361
 
 
8362
void fnord() { int i=42;}
 
8363
int main ()
 
8364
{
 
8365
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8366
  int status = $lt_dlunknown;
 
8367
 
 
8368
  if (self)
 
8369
    {
 
8370
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8371
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8372
      /* dlclose (self); */
 
8373
    }
 
8374
 
 
8375
    exit (status);
 
8376
}
 
8377
EOF
 
8378
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8379
  (eval $ac_link) 2>&5
 
8380
  ac_status=$?
 
8381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8382
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8383
    (./conftest; exit; ) 2>/dev/null
 
8384
    lt_status=$?
 
8385
    case x$lt_status in
 
8386
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8387
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8388
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8389
    esac
 
8390
  else :
 
8391
    # compilation failed
 
8392
    lt_cv_dlopen_self=no
 
8393
  fi
 
8394
fi
 
8395
rm -fr conftest*
 
8396
 
 
8397
 
 
8398
fi
 
8399
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8400
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8401
 
 
8402
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8403
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8404
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8405
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8406
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8408
else
 
8409
          if test "$cross_compiling" = yes; then :
 
8410
  lt_cv_dlopen_self_static=cross
 
8411
else
 
8412
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8413
  lt_status=$lt_dlunknown
 
8414
  cat > conftest.$ac_ext <<EOF
 
8415
#line 8415 "configure"
 
8416
#include "confdefs.h"
 
8417
 
 
8418
#if HAVE_DLFCN_H
 
8419
#include <dlfcn.h>
 
8420
#endif
 
8421
 
 
8422
#include <stdio.h>
 
8423
 
 
8424
#ifdef RTLD_GLOBAL
 
8425
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8426
#else
 
8427
#  ifdef DL_GLOBAL
 
8428
#    define LT_DLGLOBAL         DL_GLOBAL
 
8429
#  else
 
8430
#    define LT_DLGLOBAL         0
 
8431
#  endif
 
8432
#endif
 
8433
 
 
8434
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8435
   find out it does not work in some platform. */
 
8436
#ifndef LT_DLLAZY_OR_NOW
 
8437
#  ifdef RTLD_LAZY
 
8438
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8439
#  else
 
8440
#    ifdef DL_LAZY
 
8441
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8442
#    else
 
8443
#      ifdef RTLD_NOW
 
8444
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8445
#      else
 
8446
#        ifdef DL_NOW
 
8447
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8448
#        else
 
8449
#          define LT_DLLAZY_OR_NOW      0
 
8450
#        endif
 
8451
#      endif
 
8452
#    endif
 
8453
#  endif
 
8454
#endif
 
8455
 
 
8456
#ifdef __cplusplus
 
8457
extern "C" void exit (int);
 
8458
#endif
 
8459
 
 
8460
void fnord() { int i=42;}
 
8461
int main ()
 
8462
{
 
8463
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8464
  int status = $lt_dlunknown;
 
8465
 
 
8466
  if (self)
 
8467
    {
 
8468
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8469
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8470
      /* dlclose (self); */
 
8471
    }
 
8472
 
 
8473
    exit (status);
 
8474
}
 
8475
EOF
 
8476
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8477
  (eval $ac_link) 2>&5
 
8478
  ac_status=$?
 
8479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8480
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8481
    (./conftest; exit; ) 2>/dev/null
 
8482
    lt_status=$?
 
8483
    case x$lt_status in
 
8484
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8485
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8486
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8487
    esac
 
8488
  else :
 
8489
    # compilation failed
 
8490
    lt_cv_dlopen_self_static=no
 
8491
  fi
 
8492
fi
 
8493
rm -fr conftest*
 
8494
 
 
8495
 
 
8496
fi
 
8497
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8498
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8499
    fi
 
8500
 
 
8501
    CPPFLAGS="$save_CPPFLAGS"
 
8502
    LDFLAGS="$save_LDFLAGS"
 
8503
    LIBS="$save_LIBS"
 
8504
    ;;
 
8505
  esac
 
8506
 
 
8507
  case $lt_cv_dlopen_self in
 
8508
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8509
  *) enable_dlopen_self=unknown ;;
 
8510
  esac
 
8511
 
 
8512
  case $lt_cv_dlopen_self_static in
 
8513
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8514
  *) enable_dlopen_self_static=unknown ;;
 
8515
  esac
 
8516
fi
 
8517
 
 
8518
 
 
8519
# Report which librarie types wil actually be built
 
8520
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8521
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8522
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8523
echo "${ECHO_T}$can_build_shared" >&6
 
8524
 
 
8525
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8526
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
8527
test "$can_build_shared" = "no" && enable_shared=no
 
8528
 
 
8529
# On AIX, shared libraries and static libraries use the same namespace, and
 
8530
# are all built from PIC.
 
8531
case "$host_os" in
 
8532
aix3*)
 
8533
  test "$enable_shared" = yes && enable_static=no
 
8534
  if test -n "$RANLIB"; then
 
8535
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8536
    postinstall_cmds='$RANLIB $lib'
 
8537
  fi
 
8538
  ;;
 
8539
 
 
8540
aix4*)
 
8541
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8542
    test "$enable_shared" = yes && enable_static=no
 
8543
  fi
 
8544
  ;;
 
8545
  darwin* | rhapsody*)
 
8546
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
8547
    archive_cmds_need_lc=no
 
8548
    case "$host_os" in
 
8549
    rhapsody* | darwin1.[012])
 
8550
      allow_undefined_flag='-undefined suppress'
 
8551
      ;;
 
8552
    *) # Darwin 1.3 on
 
8553
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
 
8554
      ;;
 
8555
    esac
 
8556
    # FIXME: Relying on posixy $() will cause problems for
 
8557
    #        cross-compilation, but unfortunately the echo tests do not
 
8558
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
8559
    #          `"' quotes if we put them in here... so don't!
 
8560
                output_verbose_link_cmd='echo'
 
8561
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
8562
    module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
8563
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8564
                  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}'
 
8565
                  module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8566
    hardcode_direct=no
 
8567
    hardcode_automatic=yes
 
8568
    hardcode_shlibpath_var=unsupported
 
8569
    whole_archive_flag_spec='-all_load $convenience'
 
8570
    link_all_deplibs=yes
 
8571
    fi
 
8572
    ;;
 
8573
esac
 
8574
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
8575
echo "${ECHO_T}$enable_shared" >&6
 
8576
 
 
8577
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
8578
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
8579
# Make sure either enable_shared or enable_static is yes.
 
8580
test "$enable_shared" = yes || enable_static=yes
 
8581
echo "$as_me:$LINENO: result: $enable_static" >&5
 
8582
echo "${ECHO_T}$enable_static" >&6
 
8583
 
 
8584
# The else clause should only fire when bootstrapping the
 
8585
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
8586
# with your package, and you will get complaints that there are
 
8587
# no rules to generate ltmain.sh.
 
8588
if test -f "$ltmain"; then
 
8589
  # See if we are running on zsh, and set the options which allow our commands through
 
8590
  # without removal of \ escapes.
 
8591
  if test -n "${ZSH_VERSION+set}" ; then
 
8592
    setopt NO_GLOB_SUBST
 
8593
  fi
 
8594
  # Now quote all the things that may contain metacharacters while being
 
8595
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
8596
  # variables and quote the copies for generation of the libtool script.
 
8597
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
8598
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
8599
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
8600
    deplibs_check_method reload_flag reload_cmds need_locks \
 
8601
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
8602
    lt_cv_sys_global_symbol_to_c_name_address \
 
8603
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
8604
    old_postinstall_cmds old_postuninstall_cmds \
 
8605
    compiler \
 
8606
    CC \
 
8607
    LD \
 
8608
    lt_prog_compiler_wl \
 
8609
    lt_prog_compiler_pic \
 
8610
    lt_prog_compiler_static \
 
8611
    lt_prog_compiler_no_builtin_flag \
 
8612
    export_dynamic_flag_spec \
 
8613
    thread_safe_flag_spec \
 
8614
    whole_archive_flag_spec \
 
8615
    enable_shared_with_static_runtimes \
 
8616
    old_archive_cmds \
 
8617
    old_archive_from_new_cmds \
 
8618
    predep_objects \
 
8619
    postdep_objects \
 
8620
    predeps \
 
8621
    postdeps \
 
8622
    compiler_lib_search_path \
 
8623
    archive_cmds \
 
8624
    archive_expsym_cmds \
 
8625
    postinstall_cmds \
 
8626
    postuninstall_cmds \
 
8627
    old_archive_from_expsyms_cmds \
 
8628
    allow_undefined_flag \
 
8629
    no_undefined_flag \
 
8630
    export_symbols_cmds \
 
8631
    hardcode_libdir_flag_spec \
 
8632
    hardcode_libdir_flag_spec_ld \
 
8633
    hardcode_libdir_separator \
 
8634
    hardcode_automatic \
 
8635
    module_cmds \
 
8636
    module_expsym_cmds \
 
8637
    lt_cv_prog_compiler_c_o \
 
8638
    exclude_expsyms \
 
8639
    include_expsyms; do
 
8640
 
 
8641
    case $var in
 
8642
    old_archive_cmds | \
 
8643
    old_archive_from_new_cmds | \
 
8644
    archive_cmds | \
 
8645
    archive_expsym_cmds | \
 
8646
    module_cmds | \
 
8647
    module_expsym_cmds | \
 
8648
    old_archive_from_expsyms_cmds | \
 
8649
    export_symbols_cmds | \
 
8650
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
8651
    postinstall_cmds | postuninstall_cmds | \
 
8652
    old_postinstall_cmds | old_postuninstall_cmds | \
 
8653
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
8654
      # Double-quote double-evaled strings.
 
8655
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
8656
      ;;
 
8657
    *)
 
8658
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
8659
      ;;
 
8660
    esac
 
8661
  done
 
8662
 
 
8663
  case $lt_echo in
 
8664
  *'\$0 --fallback-echo"')
 
8665
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
8666
    ;;
 
8667
  esac
 
8668
 
 
8669
cfgfile="${ofile}T"
 
8670
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
8671
  $rm -f "$cfgfile"
 
8672
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
8673
echo "$as_me: creating $ofile" >&6;}
 
8674
 
 
8675
  cat <<__EOF__ >> "$cfgfile"
 
8676
#! $SHELL
 
8677
 
 
8678
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
8679
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
8680
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
8681
#
 
8682
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
8683
# Free Software Foundation, Inc.
 
8684
#
 
8685
# This file is part of GNU Libtool:
 
8686
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
8687
#
 
8688
# This program is free software; you can redistribute it and/or modify
 
8689
# it under the terms of the GNU General Public License as published by
 
8690
# the Free Software Foundation; either version 2 of the License, or
 
8691
# (at your option) any later version.
 
8692
#
 
8693
# This program is distributed in the hope that it will be useful, but
 
8694
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
8695
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
8696
# General Public License for more details.
 
8697
#
 
8698
# You should have received a copy of the GNU General Public License
 
8699
# along with this program; if not, write to the Free Software
 
8700
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
8701
#
 
8702
# As a special exception to the GNU General Public License, if you
 
8703
# distribute this file as part of a program that contains a
 
8704
# configuration script generated by Autoconf, you may include it under
 
8705
# the same distribution terms that you use for the rest of that program.
 
8706
 
 
8707
# A sed program that does not truncate output.
 
8708
SED=$lt_SED
 
8709
 
 
8710
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
8711
Xsed="$SED -e s/^X//"
 
8712
 
 
8713
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
8714
# if CDPATH is set.
 
8715
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
8716
 
 
8717
# The names of the tagged configurations supported by this script.
 
8718
available_tags=
 
8719
 
 
8720
# ### BEGIN LIBTOOL CONFIG
 
8721
 
 
8722
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
8723
 
 
8724
# Shell to use when invoking shell scripts.
 
8725
SHELL=$lt_SHELL
 
8726
 
 
8727
# Whether or not to build shared libraries.
 
8728
build_libtool_libs=$enable_shared
 
8729
 
 
8730
# Whether or not to build static libraries.
 
8731
build_old_libs=$enable_static
 
8732
 
 
8733
# Whether or not to add -lc for building shared libraries.
 
8734
build_libtool_need_lc=$archive_cmds_need_lc
 
8735
 
 
8736
# Whether or not to disallow shared libs when runtime libs are static
 
8737
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
8738
 
 
8739
# Whether or not to optimize for fast installation.
 
8740
fast_install=$enable_fast_install
 
8741
 
 
8742
# The host system.
 
8743
host_alias=$host_alias
 
8744
host=$host
 
8745
 
 
8746
# An echo program that does not interpret backslashes.
 
8747
echo=$lt_echo
 
8748
 
 
8749
# The archiver.
 
8750
AR=$lt_AR
 
8751
AR_FLAGS=$lt_AR_FLAGS
 
8752
 
 
8753
# A C compiler.
 
8754
LTCC=$lt_LTCC
 
8755
 
 
8756
# A language-specific compiler.
 
8757
CC=$lt_compiler
 
8758
 
 
8759
# Is the compiler the GNU C compiler?
 
8760
with_gcc=$GCC
 
8761
 
 
8762
# An ERE matcher.
 
8763
EGREP=$lt_EGREP
 
8764
 
 
8765
# The linker used to build libraries.
 
8766
LD=$lt_LD
 
8767
 
 
8768
# Whether we need hard or soft links.
 
8769
LN_S=$lt_LN_S
 
8770
 
 
8771
# A BSD-compatible nm program.
 
8772
NM=$lt_NM
 
8773
 
 
8774
# A symbol stripping program
 
8775
STRIP=$STRIP
 
8776
 
 
8777
# Used to examine libraries when file_magic_cmd begins "file"
 
8778
MAGIC_CMD=$MAGIC_CMD
 
8779
 
 
8780
# Used on cygwin: DLL creation program.
 
8781
DLLTOOL="$DLLTOOL"
 
8782
 
 
8783
# Used on cygwin: object dumper.
 
8784
OBJDUMP="$OBJDUMP"
 
8785
 
 
8786
# Used on cygwin: assembler.
 
8787
AS="$AS"
 
8788
 
 
8789
# The name of the directory that contains temporary libtool files.
 
8790
objdir=$objdir
 
8791
 
 
8792
# How to create reloadable object files.
 
8793
reload_flag=$lt_reload_flag
 
8794
reload_cmds=$lt_reload_cmds
 
8795
 
 
8796
# How to pass a linker flag through the compiler.
 
8797
wl=$lt_lt_prog_compiler_wl
 
8798
 
 
8799
# Object file suffix (normally "o").
 
8800
objext="$ac_objext"
 
8801
 
 
8802
# Old archive suffix (normally "a").
 
8803
libext="$libext"
 
8804
 
 
8805
# Shared library suffix (normally ".so").
 
8806
shrext='$shrext'
 
8807
 
 
8808
# Executable file suffix (normally "").
 
8809
exeext="$exeext"
 
8810
 
 
8811
# Additional compiler flags for building library objects.
 
8812
pic_flag=$lt_lt_prog_compiler_pic
 
8813
pic_mode=$pic_mode
 
8814
 
 
8815
# What is the maximum length of a command?
 
8816
max_cmd_len=$lt_cv_sys_max_cmd_len
 
8817
 
 
8818
# Does compiler simultaneously support -c and -o options?
 
8819
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
8820
 
 
8821
# Must we lock files when doing compilation ?
 
8822
need_locks=$lt_need_locks
 
8823
 
 
8824
# Do we need the lib prefix for modules?
 
8825
need_lib_prefix=$need_lib_prefix
 
8826
 
 
8827
# Do we need a version for libraries?
 
8828
need_version=$need_version
 
8829
 
 
8830
# Whether dlopen is supported.
 
8831
dlopen_support=$enable_dlopen
 
8832
 
 
8833
# Whether dlopen of programs is supported.
 
8834
dlopen_self=$enable_dlopen_self
 
8835
 
 
8836
# Whether dlopen of statically linked programs is supported.
 
8837
dlopen_self_static=$enable_dlopen_self_static
 
8838
 
 
8839
# Compiler flag to prevent dynamic linking.
 
8840
link_static_flag=$lt_lt_prog_compiler_static
 
8841
 
 
8842
# Compiler flag to turn off builtin functions.
 
8843
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
8844
 
 
8845
# Compiler flag to allow reflexive dlopens.
 
8846
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
8847
 
 
8848
# Compiler flag to generate shared objects directly from archives.
 
8849
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
8850
 
 
8851
# Compiler flag to generate thread-safe objects.
 
8852
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
8853
 
 
8854
# Library versioning type.
 
8855
version_type=$version_type
 
8856
 
 
8857
# Format of library name prefix.
 
8858
libname_spec=$lt_libname_spec
 
8859
 
 
8860
# List of archive names.  First name is the real one, the rest are links.
 
8861
# The last name is the one that the linker finds with -lNAME.
 
8862
library_names_spec=$lt_library_names_spec
 
8863
 
 
8864
# The coded name of the library, if different from the real name.
 
8865
soname_spec=$lt_soname_spec
 
8866
 
 
8867
# Commands used to build and install an old-style archive.
 
8868
RANLIB=$lt_RANLIB
 
8869
old_archive_cmds=$lt_old_archive_cmds
 
8870
old_postinstall_cmds=$lt_old_postinstall_cmds
 
8871
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
8872
 
 
8873
# Create an old-style archive from a shared archive.
 
8874
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
8875
 
 
8876
# Create a temporary old-style archive to link instead of a shared archive.
 
8877
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
8878
 
 
8879
# Commands used to build and install a shared archive.
 
8880
archive_cmds=$lt_archive_cmds
 
8881
archive_expsym_cmds=$lt_archive_expsym_cmds
 
8882
postinstall_cmds=$lt_postinstall_cmds
 
8883
postuninstall_cmds=$lt_postuninstall_cmds
 
8884
 
 
8885
# Commands used to build a loadable module (assumed same as above if empty)
 
8886
module_cmds=$lt_module_cmds
 
8887
module_expsym_cmds=$lt_module_expsym_cmds
 
8888
 
 
8889
# Commands to strip libraries.
 
8890
old_striplib=$lt_old_striplib
 
8891
striplib=$lt_striplib
 
8892
 
 
8893
# Dependencies to place before the objects being linked to create a
 
8894
# shared library.
 
8895
predep_objects=$lt_predep_objects
 
8896
 
 
8897
# Dependencies to place after the objects being linked to create a
 
8898
# shared library.
 
8899
postdep_objects=$lt_postdep_objects
 
8900
 
 
8901
# Dependencies to place before the objects being linked to create a
 
8902
# shared library.
 
8903
predeps=$lt_predeps
 
8904
 
 
8905
# Dependencies to place after the objects being linked to create a
 
8906
# shared library.
 
8907
postdeps=$lt_postdeps
 
8908
 
 
8909
# The library search path used internally by the compiler when linking
 
8910
# a shared library.
 
8911
compiler_lib_search_path=$lt_compiler_lib_search_path
 
8912
 
 
8913
# Method to check whether dependent libraries are shared objects.
 
8914
deplibs_check_method=$lt_deplibs_check_method
 
8915
 
 
8916
# Command to use when deplibs_check_method == file_magic.
 
8917
file_magic_cmd=$lt_file_magic_cmd
 
8918
 
 
8919
# Flag that allows shared libraries with undefined symbols to be built.
 
8920
allow_undefined_flag=$lt_allow_undefined_flag
 
8921
 
 
8922
# Flag that forces no undefined symbols.
 
8923
no_undefined_flag=$lt_no_undefined_flag
 
8924
 
 
8925
# Commands used to finish a libtool library installation in a directory.
 
8926
finish_cmds=$lt_finish_cmds
 
8927
 
 
8928
# Same as above, but a single script fragment to be evaled but not shown.
 
8929
finish_eval=$lt_finish_eval
 
8930
 
 
8931
# Take the output of nm and produce a listing of raw symbols and C names.
 
8932
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
8933
 
 
8934
# Transform the output of nm in a proper C declaration
 
8935
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
8936
 
 
8937
# Transform the output of nm in a C name address pair
 
8938
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
8939
 
 
8940
# This is the shared library runtime path variable.
 
8941
runpath_var=$runpath_var
 
8942
 
 
8943
# This is the shared library path variable.
 
8944
shlibpath_var=$shlibpath_var
 
8945
 
 
8946
# Is shlibpath searched before the hard-coded library search path?
 
8947
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
8948
 
 
8949
# How to hardcode a shared library path into an executable.
 
8950
hardcode_action=$hardcode_action
 
8951
 
 
8952
# Whether we should hardcode library paths into libraries.
 
8953
hardcode_into_libs=$hardcode_into_libs
 
8954
 
 
8955
# Flag to hardcode \$libdir into a binary during linking.
 
8956
# This must work even if \$libdir does not exist.
 
8957
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
8958
 
 
8959
# If ld is used when linking, flag to hardcode \$libdir into
 
8960
# a binary during linking. This must work even if \$libdir does
 
8961
# not exist.
 
8962
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
8963
 
 
8964
# Whether we need a single -rpath flag with a separated argument.
 
8965
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
8966
 
 
8967
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
8968
# resulting binary.
 
8969
hardcode_direct=$hardcode_direct
 
8970
 
 
8971
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
8972
# resulting binary.
 
8973
hardcode_minus_L=$hardcode_minus_L
 
8974
 
 
8975
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
8976
# the resulting binary.
 
8977
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
8978
 
 
8979
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
8980
# and all subsequent libraries and executables linked against it.
 
8981
hardcode_automatic=$hardcode_automatic
 
8982
 
 
8983
# Variables whose values should be saved in libtool wrapper scripts and
 
8984
# restored at relink time.
 
8985
variables_saved_for_relink="$variables_saved_for_relink"
 
8986
 
 
8987
# Whether libtool must link a program against all its dependency libraries.
 
8988
link_all_deplibs=$link_all_deplibs
 
8989
 
 
8990
# Compile-time system search path for libraries
 
8991
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
8992
 
 
8993
# Run-time system search path for libraries
 
8994
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
8995
 
 
8996
# Fix the shell variable \$srcfile for the compiler.
 
8997
fix_srcfile_path="$fix_srcfile_path"
 
8998
 
 
8999
# Set to yes if exported symbols are required.
 
9000
always_export_symbols=$always_export_symbols
 
9001
 
 
9002
# The commands to list exported symbols.
 
9003
export_symbols_cmds=$lt_export_symbols_cmds
 
9004
 
 
9005
# The commands to extract the exported symbol list from a shared archive.
 
9006
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9007
 
 
9008
# Symbols that should not be listed in the preloaded symbols.
 
9009
exclude_expsyms=$lt_exclude_expsyms
 
9010
 
 
9011
# Symbols that must always be exported.
 
9012
include_expsyms=$lt_include_expsyms
 
9013
 
 
9014
# ### END LIBTOOL CONFIG
 
9015
 
 
9016
__EOF__
 
9017
 
 
9018
 
 
9019
  case $host_os in
 
9020
  aix3*)
 
9021
    cat <<\EOF >> "$cfgfile"
 
9022
 
 
9023
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9024
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9025
# vanish in a puff of smoke.
 
9026
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9027
  COLLECT_NAMES=
 
9028
  export COLLECT_NAMES
 
9029
fi
 
9030
EOF
 
9031
    ;;
 
9032
  esac
 
9033
 
 
9034
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9035
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9036
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9037
  # is reportedly fixed, but why not run on old versions too?
 
9038
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9039
 
 
9040
  mv -f "$cfgfile" "$ofile" || \
 
9041
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9042
  chmod +x "$ofile"
 
9043
 
 
9044
else
 
9045
  # If there is no Makefile yet, we rely on a make rule to execute
 
9046
  # `config.status --recheck' to rerun these tests and create the
 
9047
  # libtool script then.
 
9048
  test -f Makefile && make "$ltmain"
 
9049
fi
 
9050
 
 
9051
 
 
9052
ac_ext=c
 
9053
ac_cpp='$CPP $CPPFLAGS'
 
9054
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9055
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9056
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9057
 
 
9058
CC="$lt_save_CC"
 
9059
 
 
9060
 
 
9061
# Check whether --with-tags or --without-tags was given.
 
9062
if test "${with_tags+set}" = set; then
 
9063
  withval="$with_tags"
 
9064
  tagnames="$withval"
 
9065
fi;
 
9066
 
 
9067
if test -f "$ltmain" && test -n "$tagnames"; then
 
9068
  if test ! -f "${ofile}"; then
 
9069
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9070
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9071
  fi
 
9072
 
 
9073
  if test -z "$LTCC"; then
 
9074
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9075
    if test -z "$LTCC"; then
 
9076
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9077
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9078
    else
 
9079
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9080
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9081
    fi
 
9082
  fi
 
9083
 
 
9084
  # Extract list of available tagged configurations in $ofile.
 
9085
  # Note that this assumes the entire list is on one line.
 
9086
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9087
 
 
9088
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9089
  for tagname in $tagnames; do
 
9090
    IFS="$lt_save_ifs"
 
9091
    # Check whether tagname contains only valid characters
 
9092
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9093
    "") ;;
 
9094
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9095
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9096
   { (exit 1); exit 1; }; }
 
9097
        ;;
 
9098
    esac
 
9099
 
 
9100
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9101
    then
 
9102
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9103
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9104
   { (exit 1); exit 1; }; }
 
9105
    fi
 
9106
 
 
9107
    # Update the list of available tags.
 
9108
    if test -n "$tagname"; then
 
9109
      echo appending configuration tag \"$tagname\" to $ofile
 
9110
 
 
9111
      case $tagname in
 
9112
      CXX)
 
9113
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9114
          ac_ext=cc
 
9115
ac_cpp='$CXXCPP $CPPFLAGS'
 
9116
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9117
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9118
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9119
 
 
9120
 
 
9121
 
 
9122
 
 
9123
archive_cmds_need_lc_CXX=no
 
9124
allow_undefined_flag_CXX=
 
9125
always_export_symbols_CXX=no
 
9126
archive_expsym_cmds_CXX=
 
9127
export_dynamic_flag_spec_CXX=
 
9128
hardcode_direct_CXX=no
 
9129
hardcode_libdir_flag_spec_CXX=
 
9130
hardcode_libdir_flag_spec_ld_CXX=
 
9131
hardcode_libdir_separator_CXX=
 
9132
hardcode_minus_L_CXX=no
 
9133
hardcode_automatic_CXX=no
 
9134
module_cmds_CXX=
 
9135
module_expsym_cmds_CXX=
 
9136
link_all_deplibs_CXX=unknown
 
9137
old_archive_cmds_CXX=$old_archive_cmds
 
9138
no_undefined_flag_CXX=
 
9139
whole_archive_flag_spec_CXX=
 
9140
enable_shared_with_static_runtimes_CXX=no
 
9141
 
 
9142
# Dependencies to place before and after the object being linked:
 
9143
predep_objects_CXX=
 
9144
postdep_objects_CXX=
 
9145
predeps_CXX=
 
9146
postdeps_CXX=
 
9147
compiler_lib_search_path_CXX=
 
9148
 
 
9149
# Source file extension for C++ test sources.
 
9150
ac_ext=cc
 
9151
 
 
9152
# Object file extension for compiled C++ test sources.
 
9153
objext=o
 
9154
objext_CXX=$objext
 
9155
 
 
9156
# Code to be used in simple compile tests
 
9157
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9158
 
 
9159
# Code to be used in simple link tests
 
9160
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9161
 
 
9162
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9163
 
 
9164
# If no C compiler was specified, use CC.
 
9165
LTCC=${LTCC-"$CC"}
 
9166
 
 
9167
# Allow CC to be a program name with arguments.
 
9168
compiler=$CC
 
9169
 
 
9170
 
 
9171
# Allow CC to be a program name with arguments.
 
9172
lt_save_CC=$CC
 
9173
lt_save_LD=$LD
 
9174
lt_save_GCC=$GCC
 
9175
GCC=$GXX
 
9176
lt_save_with_gnu_ld=$with_gnu_ld
 
9177
lt_save_path_LD=$lt_cv_path_LD
 
9178
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9179
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9180
else
 
9181
  unset lt_cv_prog_gnu_ld
 
9182
fi
 
9183
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9184
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9185
else
 
9186
  unset lt_cv_path_LD
 
9187
fi
 
9188
test -z "${LDCXX+set}" || LD=$LDCXX
 
9189
CC=${CXX-"c++"}
 
9190
compiler=$CC
 
9191
compiler_CXX=$CC
 
9192
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9193
 
 
9194
# We don't want -fno-exception wen compiling C++ code, so set the
 
9195
# no_builtin_flag separately
 
9196
if test "$GXX" = yes; then
 
9197
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9198
else
 
9199
  lt_prog_compiler_no_builtin_flag_CXX=
 
9200
fi
 
9201
 
 
9202
if test "$GXX" = yes; then
 
9203
  # Set up default GNU C++ configuration
 
9204
 
 
9205
 
 
9206
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9207
if test "${with_gnu_ld+set}" = set; then
 
9208
  withval="$with_gnu_ld"
 
9209
  test "$withval" = no || with_gnu_ld=yes
 
9210
else
 
9211
  with_gnu_ld=no
 
9212
fi;
 
9213
ac_prog=ld
 
9214
if test "$GCC" = yes; then
 
9215
  # Check if gcc -print-prog-name=ld gives a path.
 
9216
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9217
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9218
  case $host in
 
9219
  *-*-mingw*)
 
9220
    # gcc leaves a trailing carriage return which upsets mingw
 
9221
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9222
  *)
 
9223
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9224
  esac
 
9225
  case $ac_prog in
 
9226
    # Accept absolute paths.
 
9227
    [\\/]* | ?:[\\/]*)
 
9228
      re_direlt='/[^/][^/]*/\.\./'
 
9229
      # Canonicalize the path of ld
 
9230
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9231
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9232
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9233
      done
 
9234
      test -z "$LD" && LD="$ac_prog"
 
9235
      ;;
 
9236
  "")
 
9237
    # If it fails, then pretend we aren't using GCC.
 
9238
    ac_prog=ld
 
9239
    ;;
 
9240
  *)
 
9241
    # If it is relative, then search for the first ld in PATH.
 
9242
    with_gnu_ld=unknown
 
9243
    ;;
 
9244
  esac
 
9245
elif test "$with_gnu_ld" = yes; then
 
9246
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9247
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9248
else
 
9249
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9250
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9251
fi
 
9252
if test "${lt_cv_path_LD+set}" = set; then
 
9253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9254
else
 
9255
  if test -z "$LD"; then
 
9256
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9257
  for ac_dir in $PATH; do
 
9258
    IFS="$lt_save_ifs"
 
9259
    test -z "$ac_dir" && ac_dir=.
 
9260
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9261
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9262
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9263
      # but apparently some GNU ld's only accept -v.
 
9264
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9265
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9266
      *GNU* | *'with BFD'*)
 
9267
        test "$with_gnu_ld" != no && break
 
9268
        ;;
 
9269
      *)
 
9270
        test "$with_gnu_ld" != yes && break
 
9271
        ;;
 
9272
      esac
 
9273
    fi
 
9274
  done
 
9275
  IFS="$lt_save_ifs"
 
9276
else
 
9277
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9278
fi
 
9279
fi
 
9280
 
 
9281
LD="$lt_cv_path_LD"
 
9282
if test -n "$LD"; then
 
9283
  echo "$as_me:$LINENO: result: $LD" >&5
 
9284
echo "${ECHO_T}$LD" >&6
 
9285
else
 
9286
  echo "$as_me:$LINENO: result: no" >&5
 
9287
echo "${ECHO_T}no" >&6
 
9288
fi
 
9289
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9290
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9291
   { (exit 1); exit 1; }; }
 
9292
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9293
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9294
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9296
else
 
9297
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9298
case `"$LD" -v 2>&1 </dev/null` in
 
9299
*GNU* | *'with BFD'*)
 
9300
  lt_cv_prog_gnu_ld=yes
 
9301
  ;;
 
9302
*)
 
9303
  lt_cv_prog_gnu_ld=no
 
9304
  ;;
 
9305
esac
 
9306
fi
 
9307
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9308
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9309
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9310
 
 
9311
 
 
9312
 
 
9313
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9314
  # archiving commands below assume that GNU ld is being used.
 
9315
  if test "$with_gnu_ld" = yes; then
 
9316
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9317
    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'
 
9318
 
 
9319
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9320
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9321
 
 
9322
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9323
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9324
    #     investigate it a little bit more. (MM)
 
9325
    wlarc='${wl}'
 
9326
 
 
9327
    # ancient GNU ld didn't support --whole-archive et. al.
 
9328
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9329
        grep 'no-whole-archive' > /dev/null; then
 
9330
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9331
    else
 
9332
      whole_archive_flag_spec_CXX=
 
9333
    fi
 
9334
  else
 
9335
    with_gnu_ld=no
 
9336
    wlarc=
 
9337
 
 
9338
    # A generic and very simple default shared library creation
 
9339
    # command for GNU C++ for the case where it uses the native
 
9340
    # linker, instead of GNU ld.  If possible, this setting should
 
9341
    # overridden to take advantage of the native linker features on
 
9342
    # the platform it is being used on.
 
9343
    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9344
  fi
 
9345
 
 
9346
  # Commands to make compiler produce verbose output that lists
 
9347
  # what "hidden" libraries, object files and flags are used when
 
9348
  # linking a shared library.
 
9349
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9350
 
 
9351
else
 
9352
  GXX=no
 
9353
  with_gnu_ld=no
 
9354
  wlarc=
 
9355
fi
 
9356
 
 
9357
# PORTME: fill in a description of your system's C++ link characteristics
 
9358
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9359
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9360
ld_shlibs_CXX=yes
 
9361
case $host_os in
 
9362
  aix3*)
 
9363
    # FIXME: insert proper C++ library support
 
9364
    ld_shlibs_CXX=no
 
9365
    ;;
 
9366
  aix4* | aix5*)
 
9367
    if test "$host_cpu" = ia64; then
 
9368
      # On IA64, the linker does run time linking by default, so we don't
 
9369
      # have to do anything special.
 
9370
      aix_use_runtimelinking=no
 
9371
      exp_sym_flag='-Bexport'
 
9372
      no_entry_flag=""
 
9373
    else
 
9374
      aix_use_runtimelinking=no
 
9375
 
 
9376
      # Test if we are trying to use run time linking or normal
 
9377
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9378
      # need to do runtime linking.
 
9379
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9380
        for ld_flag in $LDFLAGS; do
 
9381
          case $ld_flag in
 
9382
          *-brtl*)
 
9383
            aix_use_runtimelinking=yes
 
9384
            break
 
9385
            ;;
 
9386
          esac
 
9387
        done
 
9388
      esac
 
9389
 
 
9390
      exp_sym_flag='-bexport'
 
9391
      no_entry_flag='-bnoentry'
 
9392
    fi
 
9393
 
 
9394
    # When large executables or shared objects are built, AIX ld can
 
9395
    # have problems creating the table of contents.  If linking a library
 
9396
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9397
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9398
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9399
 
 
9400
    archive_cmds_CXX=''
 
9401
    hardcode_direct_CXX=yes
 
9402
    hardcode_libdir_separator_CXX=':'
 
9403
    link_all_deplibs_CXX=yes
 
9404
 
 
9405
    if test "$GXX" = yes; then
 
9406
      case $host_os in aix4.012|aix4.012.*)
 
9407
      # We only want to do this on AIX 4.2 and lower, the check
 
9408
      # below for broken collect2 doesn't work under 4.3+
 
9409
        collect2name=`${CC} -print-prog-name=collect2`
 
9410
        if test -f "$collect2name" && \
 
9411
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9412
        then
 
9413
          # We have reworked collect2
 
9414
          hardcode_direct_CXX=yes
 
9415
        else
 
9416
          # We have old collect2
 
9417
          hardcode_direct_CXX=unsupported
 
9418
          # It fails to find uninstalled libraries when the uninstalled
 
9419
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9420
          # to unsupported forces relinking
 
9421
          hardcode_minus_L_CXX=yes
 
9422
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9423
          hardcode_libdir_separator_CXX=
 
9424
        fi
 
9425
      esac
 
9426
      shared_flag='-shared'
 
9427
    else
 
9428
      # not using gcc
 
9429
      if test "$host_cpu" = ia64; then
 
9430
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9431
        # chokes on -Wl,-G. The following line is correct:
 
9432
        shared_flag='-G'
 
9433
      else
 
9434
        if test "$aix_use_runtimelinking" = yes; then
 
9435
          shared_flag='${wl}-G'
 
9436
        else
 
9437
          shared_flag='${wl}-bM:SRE'
 
9438
        fi
 
9439
      fi
 
9440
    fi
 
9441
 
 
9442
    # It seems that -bexpall does not export symbols beginning with
 
9443
    # underscore (_), so it is better to generate a list of symbols to export.
 
9444
    always_export_symbols_CXX=yes
 
9445
    if test "$aix_use_runtimelinking" = yes; then
 
9446
      # Warning - without using the other runtime loading flags (-brtl),
 
9447
      # -berok will link without error, but may produce a broken library.
 
9448
      allow_undefined_flag_CXX='-berok'
 
9449
      # Determine the default libpath from the value encoded in an empty executable.
 
9450
      cat >conftest.$ac_ext <<_ACEOF
 
9451
#line $LINENO "configure"
 
9452
/* confdefs.h.  */
 
9453
_ACEOF
 
9454
cat confdefs.h >>conftest.$ac_ext
 
9455
cat >>conftest.$ac_ext <<_ACEOF
 
9456
/* end confdefs.h.  */
 
9457
 
 
9458
int
 
9459
main ()
 
9460
{
 
9461
 
 
9462
  ;
 
9463
  return 0;
 
9464
}
 
9465
_ACEOF
 
9466
rm -f conftest.$ac_objext conftest$ac_exeext
 
9467
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9468
  (eval $ac_link) 2>&5
 
9469
  ac_status=$?
 
9470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9471
  (exit $ac_status); } &&
 
9472
         { ac_try='test -s conftest$ac_exeext'
 
9473
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9474
  (eval $ac_try) 2>&5
 
9475
  ac_status=$?
 
9476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9477
  (exit $ac_status); }; }; then
 
9478
 
 
9479
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9480
}'`
 
9481
# Check for a 64-bit object if we didn't find anything.
 
9482
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; }
 
9483
}'`; fi
 
9484
else
 
9485
  echo "$as_me: failed program was:" >&5
 
9486
sed 's/^/| /' conftest.$ac_ext >&5
 
9487
 
 
9488
fi
 
9489
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9490
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9491
 
 
9492
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9493
 
 
9494
      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"
 
9495
     else
 
9496
      if test "$host_cpu" = ia64; then
 
9497
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
9498
        allow_undefined_flag_CXX="-z nodefs"
 
9499
        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"
 
9500
      else
 
9501
        # Determine the default libpath from the value encoded in an empty executable.
 
9502
        cat >conftest.$ac_ext <<_ACEOF
 
9503
#line $LINENO "configure"
 
9504
/* confdefs.h.  */
 
9505
_ACEOF
 
9506
cat confdefs.h >>conftest.$ac_ext
 
9507
cat >>conftest.$ac_ext <<_ACEOF
 
9508
/* end confdefs.h.  */
 
9509
 
 
9510
int
 
9511
main ()
 
9512
{
 
9513
 
 
9514
  ;
 
9515
  return 0;
 
9516
}
 
9517
_ACEOF
 
9518
rm -f conftest.$ac_objext conftest$ac_exeext
 
9519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9520
  (eval $ac_link) 2>&5
 
9521
  ac_status=$?
 
9522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9523
  (exit $ac_status); } &&
 
9524
         { ac_try='test -s conftest$ac_exeext'
 
9525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9526
  (eval $ac_try) 2>&5
 
9527
  ac_status=$?
 
9528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9529
  (exit $ac_status); }; }; then
 
9530
 
 
9531
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9532
}'`
 
9533
# Check for a 64-bit object if we didn't find anything.
 
9534
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; }
 
9535
}'`; fi
 
9536
else
 
9537
  echo "$as_me: failed program was:" >&5
 
9538
sed 's/^/| /' conftest.$ac_ext >&5
 
9539
 
 
9540
fi
 
9541
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9542
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9543
 
 
9544
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9545
        # Warning - without using the other run time loading flags,
 
9546
        # -berok will link without error, but may produce a broken library.
 
9547
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
9548
        allow_undefined_flag_CXX=' ${wl}-berok'
 
9549
        # -bexpall does not export symbols beginning with underscore (_)
 
9550
        always_export_symbols_CXX=yes
 
9551
        # Exported symbols can be pulled into shared objects from archives
 
9552
        whole_archive_flag_spec_CXX=' '
 
9553
        archive_cmds_need_lc_CXX=yes
 
9554
        # This is similar to how AIX traditionally builds it's shared libraries.
 
9555
        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'
 
9556
      fi
 
9557
    fi
 
9558
    ;;
 
9559
  chorus*)
 
9560
    case $cc_basename in
 
9561
      *)
 
9562
        # FIXME: insert proper C++ library support
 
9563
        ld_shlibs_CXX=no
 
9564
        ;;
 
9565
    esac
 
9566
    ;;
 
9567
 
 
9568
  cygwin* | mingw* | pw32*)
 
9569
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
9570
    # as there is no search path for DLLs.
 
9571
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9572
    allow_undefined_flag_CXX=unsupported
 
9573
    always_export_symbols_CXX=no
 
9574
    enable_shared_with_static_runtimes_CXX=yes
 
9575
 
 
9576
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9577
      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'
 
9578
      # If the export-symbols file already is a .def file (1st line
 
9579
      # is EXPORTS), use it as is; otherwise, prepend...
 
9580
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9581
        cp $export_symbols $output_objdir/$soname.def;
 
9582
      else
 
9583
        echo EXPORTS > $output_objdir/$soname.def;
 
9584
        cat $export_symbols >> $output_objdir/$soname.def;
 
9585
      fi~
 
9586
      $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'
 
9587
    else
 
9588
      ld_shlibs_CXX=no
 
9589
    fi
 
9590
  ;;
 
9591
 
 
9592
  darwin* | rhapsody*)
 
9593
   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
9594
    archive_cmds_need_lc_CXX=no
 
9595
    case "$host_os" in
 
9596
    rhapsody* | darwin1.[012])
 
9597
      allow_undefined_flag_CXX='-undefined suppress'
 
9598
      ;;
 
9599
    *) # Darwin 1.3 on
 
9600
      test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
9601
      ;;
 
9602
    esac
 
9603
        lt_int_apple_cc_single_mod=no
 
9604
        output_verbose_link_cmd='echo'
 
9605
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9606
          lt_int_apple_cc_single_mod=yes
 
9607
        fi
 
9608
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9609
          archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9610
        else
 
9611
        archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9612
      fi
 
9613
      module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
9614
 
 
9615
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9616
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9617
        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}'
 
9618
      else
 
9619
        archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9620
      fi
 
9621
        module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9622
    hardcode_direct_CXX=no
 
9623
    hardcode_automatic_CXX=yes
 
9624
    hardcode_shlibpath_var_CXX=unsupported
 
9625
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
9626
    link_all_deplibs_CXX=yes
 
9627
   fi
 
9628
    ;;
 
9629
 
 
9630
  dgux*)
 
9631
    case $cc_basename in
 
9632
      ec++)
 
9633
        # FIXME: insert proper C++ library support
 
9634
        ld_shlibs_CXX=no
 
9635
        ;;
 
9636
      ghcx)
 
9637
        # Green Hills C++ Compiler
 
9638
        # FIXME: insert proper C++ library support
 
9639
        ld_shlibs_CXX=no
 
9640
        ;;
 
9641
      *)
 
9642
        # FIXME: insert proper C++ library support
 
9643
        ld_shlibs_CXX=no
 
9644
        ;;
 
9645
    esac
 
9646
    ;;
 
9647
  freebsd12*)
 
9648
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
9649
    ld_shlibs_CXX=no
 
9650
    ;;
 
9651
  freebsd-elf*)
 
9652
    archive_cmds_need_lc_CXX=no
 
9653
    ;;
 
9654
  freebsd*)
 
9655
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
9656
    # conventions
 
9657
    ld_shlibs_CXX=yes
 
9658
    ;;
 
9659
  gnu*)
 
9660
    ;;
 
9661
  hpux9*)
 
9662
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9663
    hardcode_libdir_separator_CXX=:
 
9664
    export_dynamic_flag_spec_CXX='${wl}-E'
 
9665
    hardcode_direct_CXX=yes
 
9666
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9667
                                # but as the default
 
9668
                                # location of the library.
 
9669
 
 
9670
    case $cc_basename in
 
9671
    CC)
 
9672
      # FIXME: insert proper C++ library support
 
9673
      ld_shlibs_CXX=no
 
9674
      ;;
 
9675
    aCC)
 
9676
      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'
 
9677
      # Commands to make compiler produce verbose output that lists
 
9678
      # what "hidden" libraries, object files and flags are used when
 
9679
      # linking a shared library.
 
9680
      #
 
9681
      # There doesn't appear to be a way to prevent this compiler from
 
9682
      # explicitly linking system object files so we need to strip them
 
9683
      # from the output so that they don't get included in the library
 
9684
      # dependencies.
 
9685
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
9686
      ;;
 
9687
    *)
 
9688
      if test "$GXX" = yes; then
 
9689
        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'
 
9690
      else
 
9691
        # FIXME: insert proper C++ library support
 
9692
        ld_shlibs_CXX=no
 
9693
      fi
 
9694
      ;;
 
9695
    esac
 
9696
    ;;
 
9697
  hpux10*|hpux11*)
 
9698
    if test $with_gnu_ld = no; then
 
9699
      case "$host_cpu" in
 
9700
      hppa*64*)
 
9701
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9702
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
9703
        hardcode_libdir_separator_CXX=:
 
9704
        ;;
 
9705
      ia64*)
 
9706
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9707
        ;;
 
9708
      *)
 
9709
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9710
        hardcode_libdir_separator_CXX=:
 
9711
        export_dynamic_flag_spec_CXX='${wl}-E'
 
9712
        ;;
 
9713
      esac
 
9714
    fi
 
9715
    case "$host_cpu" in
 
9716
    hppa*64*)
 
9717
      hardcode_direct_CXX=no
 
9718
      hardcode_shlibpath_var_CXX=no
 
9719
      ;;
 
9720
    ia64*)
 
9721
      hardcode_direct_CXX=no
 
9722
      hardcode_shlibpath_var_CXX=no
 
9723
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9724
                                              # but as the default
 
9725
                                              # location of the library.
 
9726
      ;;
 
9727
    *)
 
9728
      hardcode_direct_CXX=yes
 
9729
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9730
                                              # but as the default
 
9731
                                              # location of the library.
 
9732
      ;;
 
9733
    esac
 
9734
 
 
9735
    case $cc_basename in
 
9736
      CC)
 
9737
        # FIXME: insert proper C++ library support
 
9738
        ld_shlibs_CXX=no
 
9739
        ;;
 
9740
      aCC)
 
9741
        case "$host_cpu" in
 
9742
        hppa*64*|ia64*)
 
9743
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9744
          ;;
 
9745
        *)
 
9746
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9747
          ;;
 
9748
        esac
 
9749
        # Commands to make compiler produce verbose output that lists
 
9750
        # what "hidden" libraries, object files and flags are used when
 
9751
        # linking a shared library.
 
9752
        #
 
9753
        # There doesn't appear to be a way to prevent this compiler from
 
9754
        # explicitly linking system object files so we need to strip them
 
9755
        # from the output so that they don't get included in the library
 
9756
        # dependencies.
 
9757
        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'
 
9758
        ;;
 
9759
      *)
 
9760
        if test "$GXX" = yes; then
 
9761
          if test $with_gnu_ld = no; then
 
9762
            case "$host_cpu" in
 
9763
            ia64*|hppa*64*)
 
9764
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9765
              ;;
 
9766
            *)
 
9767
              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'
 
9768
              ;;
 
9769
            esac
 
9770
          fi
 
9771
        else
 
9772
          # FIXME: insert proper C++ library support
 
9773
          ld_shlibs_CXX=no
 
9774
        fi
 
9775
        ;;
 
9776
    esac
 
9777
    ;;
 
9778
  irix5* | irix6*)
 
9779
    case $cc_basename in
 
9780
      CC)
 
9781
        # SGI C++
 
9782
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
9783
 
 
9784
        # Archives containing C++ object files must be created using
 
9785
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
9786
        # necessary to make sure instantiated templates are included
 
9787
        # in the archive.
 
9788
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
9789
        ;;
 
9790
      *)
 
9791
        if test "$GXX" = yes; then
 
9792
          if test "$with_gnu_ld" = no; then
 
9793
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
9794
          else
 
9795
            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'
 
9796
          fi
 
9797
        fi
 
9798
        link_all_deplibs_CXX=yes
 
9799
        ;;
 
9800
    esac
 
9801
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9802
    hardcode_libdir_separator_CXX=:
 
9803
    ;;
 
9804
  linux*)
 
9805
    case $cc_basename in
 
9806
      KCC)
 
9807
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9808
 
 
9809
        # KCC will only create a shared library if the output file
 
9810
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9811
        # to its proper name (with version) after linking.
 
9812
        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'
 
9813
        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'
 
9814
        # Commands to make compiler produce verbose output that lists
 
9815
        # what "hidden" libraries, object files and flags are used when
 
9816
        # linking a shared library.
 
9817
        #
 
9818
        # There doesn't appear to be a way to prevent this compiler from
 
9819
        # explicitly linking system object files so we need to strip them
 
9820
        # from the output so that they don't get included in the library
 
9821
        # dependencies.
 
9822
        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'
 
9823
 
 
9824
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
9825
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9826
 
 
9827
        # Archives containing C++ object files must be created using
 
9828
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
9829
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
9830
        ;;
 
9831
      icpc)
 
9832
        # Intel C++
 
9833
        with_gnu_ld=yes
 
9834
        archive_cmds_need_lc_CXX=no
 
9835
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9836
        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'
 
9837
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9838
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9839
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
9840
        ;;
 
9841
      cxx)
 
9842
        # Compaq C++
 
9843
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9844
        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'
 
9845
 
 
9846
        runpath_var=LD_RUN_PATH
 
9847
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
9848
        hardcode_libdir_separator_CXX=:
 
9849
 
 
9850
        # Commands to make compiler produce verbose output that lists
 
9851
        # what "hidden" libraries, object files and flags are used when
 
9852
        # linking a shared library.
 
9853
        #
 
9854
        # There doesn't appear to be a way to prevent this compiler from
 
9855
        # explicitly linking system object files so we need to strip them
 
9856
        # from the output so that they don't get included in the library
 
9857
        # dependencies.
 
9858
        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'
 
9859
        ;;
 
9860
    esac
 
9861
    ;;
 
9862
  lynxos*)
 
9863
    # FIXME: insert proper C++ library support
 
9864
    ld_shlibs_CXX=no
 
9865
    ;;
 
9866
  m88k*)
 
9867
    # FIXME: insert proper C++ library support
 
9868
    ld_shlibs_CXX=no
 
9869
    ;;
 
9870
  mvs*)
 
9871
    case $cc_basename in
 
9872
      cxx)
 
9873
        # FIXME: insert proper C++ library support
 
9874
        ld_shlibs_CXX=no
 
9875
        ;;
 
9876
      *)
 
9877
        # FIXME: insert proper C++ library support
 
9878
        ld_shlibs_CXX=no
 
9879
        ;;
 
9880
    esac
 
9881
    ;;
 
9882
  netbsd*)
 
9883
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9884
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
9885
      wlarc=
 
9886
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
9887
      hardcode_direct_CXX=yes
 
9888
      hardcode_shlibpath_var_CXX=no
 
9889
    fi
 
9890
    # Workaround some broken pre-1.5 toolchains
 
9891
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
9892
    ;;
 
9893
  osf3*)
 
9894
    case $cc_basename in
 
9895
      KCC)
 
9896
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9897
 
 
9898
        # KCC will only create a shared library if the output file
 
9899
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9900
        # to its proper name (with version) after linking.
 
9901
        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'
 
9902
 
 
9903
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9904
        hardcode_libdir_separator_CXX=:
 
9905
 
 
9906
        # Archives containing C++ object files must be created using
 
9907
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
9908
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
9909
 
 
9910
        ;;
 
9911
      RCC)
 
9912
        # Rational C++ 2.4.1
 
9913
        # FIXME: insert proper C++ library support
 
9914
        ld_shlibs_CXX=no
 
9915
        ;;
 
9916
      cxx)
 
9917
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
9918
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
9919
 
 
9920
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9921
        hardcode_libdir_separator_CXX=:
 
9922
 
 
9923
        # Commands to make compiler produce verbose output that lists
 
9924
        # what "hidden" libraries, object files and flags are used when
 
9925
        # linking a shared library.
 
9926
        #
 
9927
        # There doesn't appear to be a way to prevent this compiler from
 
9928
        # explicitly linking system object files so we need to strip them
 
9929
        # from the output so that they don't get included in the library
 
9930
        # dependencies.
 
9931
        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'
 
9932
        ;;
 
9933
      *)
 
9934
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
9935
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
9936
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
9937
 
 
9938
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
9939
          hardcode_libdir_separator_CXX=:
 
9940
 
 
9941
          # Commands to make compiler produce verbose output that lists
 
9942
          # what "hidden" libraries, object files and flags are used when
 
9943
          # linking a shared library.
 
9944
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9945
 
 
9946
        else
 
9947
          # FIXME: insert proper C++ library support
 
9948
          ld_shlibs_CXX=no
 
9949
        fi
 
9950
        ;;
 
9951
    esac
 
9952
    ;;
 
9953
  osf4* | osf5*)
 
9954
    case $cc_basename in
 
9955
      KCC)
 
9956
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
9957
 
 
9958
        # KCC will only create a shared library if the output file
 
9959
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
9960
        # to its proper name (with version) after linking.
 
9961
        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'
 
9962
 
 
9963
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
9964
        hardcode_libdir_separator_CXX=:
 
9965
 
 
9966
        # Archives containing C++ object files must be created using
 
9967
        # the KAI C++ compiler.
 
9968
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
9969
        ;;
 
9970
      RCC)
 
9971
        # Rational C++ 2.4.1
 
9972
        # FIXME: insert proper C++ library support
 
9973
        ld_shlibs_CXX=no
 
9974
        ;;
 
9975
      cxx)
 
9976
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
9977
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
9978
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
9979
          echo "-hidden">> $lib.exp~
 
9980
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
9981
          $rm $lib.exp'
 
9982
 
 
9983
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
9984
        hardcode_libdir_separator_CXX=:
 
9985
 
 
9986
        # Commands to make compiler produce verbose output that lists
 
9987
        # what "hidden" libraries, object files and flags are used when
 
9988
        # linking a shared library.
 
9989
        #
 
9990
        # There doesn't appear to be a way to prevent this compiler from
 
9991
        # explicitly linking system object files so we need to strip them
 
9992
        # from the output so that they don't get included in the library
 
9993
        # dependencies.
 
9994
        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'
 
9995
        ;;
 
9996
      *)
 
9997
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
9998
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
9999
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10000
 
 
10001
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10002
          hardcode_libdir_separator_CXX=:
 
10003
 
 
10004
          # Commands to make compiler produce verbose output that lists
 
10005
          # what "hidden" libraries, object files and flags are used when
 
10006
          # linking a shared library.
 
10007
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10008
 
 
10009
        else
 
10010
          # FIXME: insert proper C++ library support
 
10011
          ld_shlibs_CXX=no
 
10012
        fi
 
10013
        ;;
 
10014
    esac
 
10015
    ;;
 
10016
  psos*)
 
10017
    # FIXME: insert proper C++ library support
 
10018
    ld_shlibs_CXX=no
 
10019
    ;;
 
10020
  sco*)
 
10021
    archive_cmds_need_lc_CXX=no
 
10022
    case $cc_basename in
 
10023
      CC)
 
10024
        # FIXME: insert proper C++ library support
 
10025
        ld_shlibs_CXX=no
 
10026
        ;;
 
10027
      *)
 
10028
        # FIXME: insert proper C++ library support
 
10029
        ld_shlibs_CXX=no
 
10030
        ;;
 
10031
    esac
 
10032
    ;;
 
10033
  sunos4*)
 
10034
    case $cc_basename in
 
10035
      CC)
 
10036
        # Sun C++ 4.x
 
10037
        # FIXME: insert proper C++ library support
 
10038
        ld_shlibs_CXX=no
 
10039
        ;;
 
10040
      lcc)
 
10041
        # Lucid
 
10042
        # FIXME: insert proper C++ library support
 
10043
        ld_shlibs_CXX=no
 
10044
        ;;
 
10045
      *)
 
10046
        # FIXME: insert proper C++ library support
 
10047
        ld_shlibs_CXX=no
 
10048
        ;;
 
10049
    esac
 
10050
    ;;
 
10051
  solaris*)
 
10052
    case $cc_basename in
 
10053
      CC)
 
10054
        # Sun C++ 4.2, 5.x and Centerline C++
 
10055
        no_undefined_flag_CXX=' -zdefs'
 
10056
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10057
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10058
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10059
 
 
10060
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10061
        hardcode_shlibpath_var_CXX=no
 
10062
        case $host_os in
 
10063
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10064
          *)
 
10065
            # The C++ compiler is used as linker so we must use $wl
 
10066
            # flag to pass the commands to the underlying system
 
10067
            # linker.
 
10068
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10069
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10070
            ;;
 
10071
        esac
 
10072
        link_all_deplibs_CXX=yes
 
10073
 
 
10074
        # Commands to make compiler produce verbose output that lists
 
10075
        # what "hidden" libraries, object files and flags are used when
 
10076
        # linking a shared library.
 
10077
        #
 
10078
        # There doesn't appear to be a way to prevent this compiler from
 
10079
        # explicitly linking system object files so we need to strip them
 
10080
        # from the output so that they don't get included in the library
 
10081
        # dependencies.
 
10082
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10083
 
 
10084
        # Archives containing C++ object files must be created using
 
10085
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10086
        # necessary to make sure instantiated templates are included
 
10087
        # in the archive.
 
10088
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10089
        ;;
 
10090
      gcx)
 
10091
        # Green Hills C++ Compiler
 
10092
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10093
 
 
10094
        # The C++ compiler must be used to create the archive.
 
10095
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10096
        ;;
 
10097
      *)
 
10098
        # GNU C++ compiler with Solaris linker
 
10099
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10100
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10101
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10102
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10103
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10104
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10105
 
 
10106
            # Commands to make compiler produce verbose output that lists
 
10107
            # what "hidden" libraries, object files and flags are used when
 
10108
            # linking a shared library.
 
10109
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10110
          else
 
10111
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10112
            # platform.
 
10113
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10114
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10115
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10116
 
 
10117
            # Commands to make compiler produce verbose output that lists
 
10118
            # what "hidden" libraries, object files and flags are used when
 
10119
            # linking a shared library.
 
10120
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10121
          fi
 
10122
 
 
10123
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10124
        fi
 
10125
        ;;
 
10126
    esac
 
10127
    ;;
 
10128
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10129
    archive_cmds_need_lc_CXX=no
 
10130
    ;;
 
10131
  tandem*)
 
10132
    case $cc_basename in
 
10133
      NCC)
 
10134
        # NonStop-UX NCC 3.20
 
10135
        # FIXME: insert proper C++ library support
 
10136
        ld_shlibs_CXX=no
 
10137
        ;;
 
10138
      *)
 
10139
        # FIXME: insert proper C++ library support
 
10140
        ld_shlibs_CXX=no
 
10141
        ;;
 
10142
    esac
 
10143
    ;;
 
10144
  vxworks*)
 
10145
    # FIXME: insert proper C++ library support
 
10146
    ld_shlibs_CXX=no
 
10147
    ;;
 
10148
  *)
 
10149
    # FIXME: insert proper C++ library support
 
10150
    ld_shlibs_CXX=no
 
10151
    ;;
 
10152
esac
 
10153
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10154
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10155
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10156
 
 
10157
GCC_CXX="$GXX"
 
10158
LD_CXX="$LD"
 
10159
 
 
10160
 
 
10161
cat > conftest.$ac_ext <<EOF
 
10162
class Foo
 
10163
{
 
10164
public:
 
10165
  Foo (void) { a = 0; }
 
10166
private:
 
10167
  int a;
 
10168
};
 
10169
EOF
 
10170
 
 
10171
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10172
  (eval $ac_compile) 2>&5
 
10173
  ac_status=$?
 
10174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10175
  (exit $ac_status); }; then
 
10176
  # Parse the compiler output and extract the necessary
 
10177
  # objects, libraries and library flags.
 
10178
 
 
10179
  # Sentinel used to keep track of whether or not we are before
 
10180
  # the conftest object file.
 
10181
  pre_test_object_deps_done=no
 
10182
 
 
10183
  # The `*' in the case matches for architectures that use `case' in
 
10184
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10185
  # eval without this substitution.
 
10186
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10187
 
 
10188
  for p in `eval $output_verbose_link_cmd`; do
 
10189
    case $p in
 
10190
 
 
10191
    -L* | -R* | -l*)
 
10192
       # Some compilers place space between "-{L,R}" and the path.
 
10193
       # Remove the space.
 
10194
       if test $p = "-L" \
 
10195
          || test $p = "-R"; then
 
10196
         prev=$p
 
10197
         continue
 
10198
       else
 
10199
         prev=
 
10200
       fi
 
10201
 
 
10202
       if test "$pre_test_object_deps_done" = no; then
 
10203
         case $p in
 
10204
         -L* | -R*)
 
10205
           # Internal compiler library paths should come after those
 
10206
           # provided the user.  The postdeps already come after the
 
10207
           # user supplied libs so there is no need to process them.
 
10208
           if test -z "$compiler_lib_search_path_CXX"; then
 
10209
             compiler_lib_search_path_CXX="${prev}${p}"
 
10210
           else
 
10211
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
10212
           fi
 
10213
           ;;
 
10214
         # The "-l" case would never come before the object being
 
10215
         # linked, so don't bother handling this case.
 
10216
         esac
 
10217
       else
 
10218
         if test -z "$postdeps_CXX"; then
 
10219
           postdeps_CXX="${prev}${p}"
 
10220
         else
 
10221
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
10222
         fi
 
10223
       fi
 
10224
       ;;
 
10225
 
 
10226
    *.$objext)
 
10227
       # This assumes that the test object file only shows up
 
10228
       # once in the compiler output.
 
10229
       if test "$p" = "conftest.$objext"; then
 
10230
         pre_test_object_deps_done=yes
 
10231
         continue
 
10232
       fi
 
10233
 
 
10234
       if test "$pre_test_object_deps_done" = no; then
 
10235
         if test -z "$predep_objects_CXX"; then
 
10236
           predep_objects_CXX="$p"
 
10237
         else
 
10238
           predep_objects_CXX="$predep_objects_CXX $p"
 
10239
         fi
 
10240
       else
 
10241
         if test -z "$postdep_objects_CXX"; then
 
10242
           postdep_objects_CXX="$p"
 
10243
         else
 
10244
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
10245
         fi
 
10246
       fi
 
10247
       ;;
 
10248
 
 
10249
    *) ;; # Ignore the rest.
 
10250
 
 
10251
    esac
 
10252
  done
 
10253
 
 
10254
  # Clean up.
 
10255
  rm -f a.out a.exe
 
10256
else
 
10257
  echo "libtool.m4: error: problem compiling CXX test program"
 
10258
fi
 
10259
 
 
10260
$rm -f confest.$objext
 
10261
 
 
10262
case " $postdeps_CXX " in
 
10263
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10264
esac
 
10265
 
 
10266
lt_prog_compiler_wl_CXX=
 
10267
lt_prog_compiler_pic_CXX=
 
10268
lt_prog_compiler_static_CXX=
 
10269
 
 
10270
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10271
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10272
 
 
10273
  # C++ specific cases for pic, static, wl, etc.
 
10274
  if test "$GXX" = yes; then
 
10275
    lt_prog_compiler_wl_CXX='-Wl,'
 
10276
    lt_prog_compiler_static_CXX='-static'
 
10277
 
 
10278
    case $host_os in
 
10279
    aix*)
 
10280
      # All AIX code is PIC.
 
10281
      if test "$host_cpu" = ia64; then
 
10282
        # AIX 5 now supports IA64 processor
 
10283
        lt_prog_compiler_static_CXX='-Bstatic'
 
10284
      fi
 
10285
      ;;
 
10286
    amigaos*)
 
10287
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10288
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10289
      # like `-m68040'.
 
10290
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10291
      ;;
 
10292
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10293
      # PIC is the default for these OSes.
 
10294
      ;;
 
10295
    mingw* | os2* | pw32*)
 
10296
      # This hack is so that the source file can tell whether it is being
 
10297
      # built for inclusion in a dll (and should export symbols for example).
 
10298
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10299
      ;;
 
10300
    darwin* | rhapsody*)
 
10301
      # PIC is the default on this platform
 
10302
      # Common symbols not allowed in MH_DYLIB files
 
10303
      lt_prog_compiler_pic_CXX='-fno-common'
 
10304
      ;;
 
10305
    *djgpp*)
 
10306
      # DJGPP does not support shared libraries at all
 
10307
      lt_prog_compiler_pic_CXX=
 
10308
      ;;
 
10309
    sysv4*MP*)
 
10310
      if test -d /usr/nec; then
 
10311
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10312
      fi
 
10313
      ;;
 
10314
    hpux*)
 
10315
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10316
      # not for PA HP-UX.
 
10317
      case "$host_cpu" in
 
10318
      hppa*64*|ia64*)
 
10319
        ;;
 
10320
      *)
 
10321
        lt_prog_compiler_pic_CXX='-fPIC'
 
10322
        ;;
 
10323
      esac
 
10324
      ;;
 
10325
    *)
 
10326
      lt_prog_compiler_pic_CXX='-fPIC'
 
10327
      ;;
 
10328
    esac
 
10329
  else
 
10330
    case $host_os in
 
10331
      aix4* | aix5*)
 
10332
        # All AIX code is PIC.
 
10333
        if test "$host_cpu" = ia64; then
 
10334
          # AIX 5 now supports IA64 processor
 
10335
          lt_prog_compiler_static_CXX='-Bstatic'
 
10336
        else
 
10337
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10338
        fi
 
10339
        ;;
 
10340
      chorus*)
 
10341
        case $cc_basename in
 
10342
        cxch68)
 
10343
          # Green Hills C++ Compiler
 
10344
          # _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"
 
10345
          ;;
 
10346
        esac
 
10347
        ;;
 
10348
      dgux*)
 
10349
        case $cc_basename in
 
10350
          ec++)
 
10351
            lt_prog_compiler_pic_CXX='-KPIC'
 
10352
            ;;
 
10353
          ghcx)
 
10354
            # Green Hills C++ Compiler
 
10355
            lt_prog_compiler_pic_CXX='-pic'
 
10356
            ;;
 
10357
          *)
 
10358
            ;;
 
10359
        esac
 
10360
        ;;
 
10361
      freebsd*)
 
10362
        # FreeBSD uses GNU C++
 
10363
        ;;
 
10364
      hpux9* | hpux10* | hpux11*)
 
10365
        case $cc_basename in
 
10366
          CC)
 
10367
            lt_prog_compiler_wl_CXX='-Wl,'
 
10368
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10369
            if test "$host_cpu" != ia64; then
 
10370
              lt_prog_compiler_pic_CXX='+Z'
 
10371
            fi
 
10372
            ;;
 
10373
          aCC)
 
10374
            lt_prog_compiler_wl_CXX='-Wl,'
 
10375
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10376
            case "$host_cpu" in
 
10377
            hppa*64*|ia64*)
 
10378
              # +Z the default
 
10379
              ;;
 
10380
            *)
 
10381
              lt_prog_compiler_pic_CXX='+Z'
 
10382
              ;;
 
10383
            esac
 
10384
            ;;
 
10385
          *)
 
10386
            ;;
 
10387
        esac
 
10388
        ;;
 
10389
      irix5* | irix6* | nonstopux*)
 
10390
        case $cc_basename in
 
10391
          CC)
 
10392
            lt_prog_compiler_wl_CXX='-Wl,'
 
10393
            lt_prog_compiler_static_CXX='-non_shared'
 
10394
            # CC pic flag -KPIC is the default.
 
10395
            ;;
 
10396
          *)
 
10397
            ;;
 
10398
        esac
 
10399
        ;;
 
10400
      linux*)
 
10401
        case $cc_basename in
 
10402
          KCC)
 
10403
            # KAI C++ Compiler
 
10404
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10405
            lt_prog_compiler_pic_CXX='-fPIC'
 
10406
            ;;
 
10407
          icpc)
 
10408
            # Intel C++
 
10409
            lt_prog_compiler_wl_CXX='-Wl,'
 
10410
            lt_prog_compiler_pic_CXX='-KPIC'
 
10411
            lt_prog_compiler_static_CXX='-static'
 
10412
            ;;
 
10413
          cxx)
 
10414
            # Compaq C++
 
10415
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10416
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10417
            lt_prog_compiler_pic_CXX=
 
10418
            lt_prog_compiler_static_CXX='-non_shared'
 
10419
            ;;
 
10420
          *)
 
10421
            ;;
 
10422
        esac
 
10423
        ;;
 
10424
      lynxos*)
 
10425
        ;;
 
10426
      m88k*)
 
10427
        ;;
 
10428
      mvs*)
 
10429
        case $cc_basename in
 
10430
          cxx)
 
10431
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
10432
            ;;
 
10433
          *)
 
10434
            ;;
 
10435
        esac
 
10436
        ;;
 
10437
      netbsd*)
 
10438
        ;;
 
10439
      osf3* | osf4* | osf5*)
 
10440
        case $cc_basename in
 
10441
          KCC)
 
10442
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10443
            ;;
 
10444
          RCC)
 
10445
            # Rational C++ 2.4.1
 
10446
            lt_prog_compiler_pic_CXX='-pic'
 
10447
            ;;
 
10448
          cxx)
 
10449
            # Digital/Compaq C++
 
10450
            lt_prog_compiler_wl_CXX='-Wl,'
 
10451
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10452
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10453
            lt_prog_compiler_pic_CXX=
 
10454
            lt_prog_compiler_static_CXX='-non_shared'
 
10455
            ;;
 
10456
          *)
 
10457
            ;;
 
10458
        esac
 
10459
        ;;
 
10460
      psos*)
 
10461
        ;;
 
10462
      sco*)
 
10463
        case $cc_basename in
 
10464
          CC)
 
10465
            lt_prog_compiler_pic_CXX='-fPIC'
 
10466
            ;;
 
10467
          *)
 
10468
            ;;
 
10469
        esac
 
10470
        ;;
 
10471
      solaris*)
 
10472
        case $cc_basename in
 
10473
          CC)
 
10474
            # Sun C++ 4.2, 5.x and Centerline C++
 
10475
            lt_prog_compiler_pic_CXX='-KPIC'
 
10476
            lt_prog_compiler_static_CXX='-Bstatic'
 
10477
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
10478
            ;;
 
10479
          gcx)
 
10480
            # Green Hills C++ Compiler
 
10481
            lt_prog_compiler_pic_CXX='-PIC'
 
10482
            ;;
 
10483
          *)
 
10484
            ;;
 
10485
        esac
 
10486
        ;;
 
10487
      sunos4*)
 
10488
        case $cc_basename in
 
10489
          CC)
 
10490
            # Sun C++ 4.x
 
10491
            lt_prog_compiler_pic_CXX='-pic'
 
10492
            lt_prog_compiler_static_CXX='-Bstatic'
 
10493
            ;;
 
10494
          lcc)
 
10495
            # Lucid
 
10496
            lt_prog_compiler_pic_CXX='-pic'
 
10497
            ;;
 
10498
          *)
 
10499
            ;;
 
10500
        esac
 
10501
        ;;
 
10502
      tandem*)
 
10503
        case $cc_basename in
 
10504
          NCC)
 
10505
            # NonStop-UX NCC 3.20
 
10506
            lt_prog_compiler_pic_CXX='-KPIC'
 
10507
            ;;
 
10508
          *)
 
10509
            ;;
 
10510
        esac
 
10511
        ;;
 
10512
      unixware*)
 
10513
        ;;
 
10514
      vxworks*)
 
10515
        ;;
 
10516
      *)
 
10517
        lt_prog_compiler_can_build_shared_CXX=no
 
10518
        ;;
 
10519
    esac
 
10520
  fi
 
10521
 
 
10522
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
10523
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
10524
 
 
10525
#
 
10526
# Check to make sure the PIC flag actually works.
 
10527
#
 
10528
if test -n "$lt_prog_compiler_pic_CXX"; then
 
10529
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
10530
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
10531
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
10532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10533
else
 
10534
  lt_prog_compiler_pic_works_CXX=no
 
10535
  ac_outfile=conftest.$ac_objext
 
10536
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10537
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
10538
   # Insert the option either (1) after the last *FLAGS variable, or
 
10539
   # (2) before a word containing "conftest.", or (3) at the end.
 
10540
   # Note that $ac_compile itself does not contain backslashes and begins
 
10541
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10542
   # The option is referenced via a variable to avoid confusing sed.
 
10543
   lt_compile=`echo "$ac_compile" | $SED \
 
10544
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10545
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10546
   -e 's:$: $lt_compiler_flag:'`
 
10547
   (eval echo "\"\$as_me:10547: $lt_compile\"" >&5)
 
10548
   (eval "$lt_compile" 2>conftest.err)
 
10549
   ac_status=$?
 
10550
   cat conftest.err >&5
 
10551
   echo "$as_me:10551: \$? = $ac_status" >&5
 
10552
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10553
     # The compiler can only warn and ignore the option if not recognized
 
10554
     # So say no if there are warnings
 
10555
     if test ! -s conftest.err; then
 
10556
       lt_prog_compiler_pic_works_CXX=yes
 
10557
     fi
 
10558
   fi
 
10559
   $rm conftest*
 
10560
 
 
10561
fi
 
10562
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
10563
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
10564
 
 
10565
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
10566
    case $lt_prog_compiler_pic_CXX in
 
10567
     "" | " "*) ;;
 
10568
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
10569
     esac
 
10570
else
 
10571
    lt_prog_compiler_pic_CXX=
 
10572
     lt_prog_compiler_can_build_shared_CXX=no
 
10573
fi
 
10574
 
 
10575
fi
 
10576
case "$host_os" in
 
10577
  # For platforms which do not support PIC, -DPIC is meaningless:
 
10578
  *djgpp*)
 
10579
    lt_prog_compiler_pic_CXX=
 
10580
    ;;
 
10581
  *)
 
10582
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
10583
    ;;
 
10584
esac
 
10585
 
 
10586
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
10587
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
10588
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
10589
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10590
else
 
10591
  lt_cv_prog_compiler_c_o_CXX=no
 
10592
   $rm -r conftest 2>/dev/null
 
10593
   mkdir conftest
 
10594
   cd conftest
 
10595
   mkdir out
 
10596
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10597
 
 
10598
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
10599
   # that will create temporary files in the current directory regardless of
 
10600
   # the output directory.  Thus, making CWD read-only will cause this test
 
10601
   # to fail, enabling locking or at least warning the user not to do parallel
 
10602
   # builds.
 
10603
   chmod -w .
 
10604
 
 
10605
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
10606
   # Insert the option either (1) after the last *FLAGS variable, or
 
10607
   # (2) before a word containing "conftest.", or (3) at the end.
 
10608
   # Note that $ac_compile itself does not contain backslashes and begins
 
10609
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10610
   lt_compile=`echo "$ac_compile" | $SED \
 
10611
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
10612
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10613
   -e 's:$: $lt_compiler_flag:'`
 
10614
   (eval echo "\"\$as_me:10614: $lt_compile\"" >&5)
 
10615
   (eval "$lt_compile" 2>out/conftest.err)
 
10616
   ac_status=$?
 
10617
   cat out/conftest.err >&5
 
10618
   echo "$as_me:10618: \$? = $ac_status" >&5
 
10619
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
10620
   then
 
10621
     # The compiler can only warn and ignore the option if not recognized
 
10622
     # So say no if there are warnings
 
10623
     if test ! -s out/conftest.err; then
 
10624
       lt_cv_prog_compiler_c_o_CXX=yes
 
10625
     fi
 
10626
   fi
 
10627
   chmod u+w .
 
10628
   $rm conftest* out/*
 
10629
   rmdir out
 
10630
   cd ..
 
10631
   rmdir conftest
 
10632
   $rm conftest*
 
10633
 
 
10634
fi
 
10635
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
10636
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
10637
 
 
10638
 
 
10639
hard_links="nottested"
 
10640
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
10641
  # do not overwrite the value of need_locks provided by the user
 
10642
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
10643
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
10644
  hard_links=yes
 
10645
  $rm conftest*
 
10646
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10647
  touch conftest.a
 
10648
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
10649
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10650
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
10651
echo "${ECHO_T}$hard_links" >&6
 
10652
  if test "$hard_links" = no; then
 
10653
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
10654
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
10655
    need_locks=warn
 
10656
  fi
 
10657
else
 
10658
  need_locks=no
 
10659
fi
 
10660
 
 
10661
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10662
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10663
 
 
10664
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10665
  case $host_os in
 
10666
  aix4* | aix5*)
 
10667
    # If we're using GNU nm, then we don't want the "-C" option.
 
10668
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10669
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
10670
      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'
 
10671
    else
 
10672
      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'
 
10673
    fi
 
10674
    ;;
 
10675
  pw32*)
 
10676
    export_symbols_cmds_CXX="$ltdll_cmds"
 
10677
  ;;
 
10678
  cygwin* | mingw*)
 
10679
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
10680
  ;;
 
10681
  *)
 
10682
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10683
  ;;
 
10684
  esac
 
10685
 
 
10686
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10687
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10688
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10689
 
 
10690
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10691
if test "$GCC" = yes; then
 
10692
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10693
fi
 
10694
 
 
10695
#
 
10696
# Do we need to explicitly link libc?
 
10697
#
 
10698
case "x$archive_cmds_need_lc_CXX" in
 
10699
x|xyes)
 
10700
  # Assume -lc should be added
 
10701
  archive_cmds_need_lc_CXX=yes
 
10702
 
 
10703
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
10704
    case $archive_cmds_CXX in
 
10705
    *'~'*)
 
10706
      # FIXME: we may have to deal with multi-command sequences.
 
10707
      ;;
 
10708
    '$CC '*)
 
10709
      # Test whether the compiler implicitly links with -lc since on some
 
10710
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
10711
      # to ld, don't add -lc before -lgcc.
 
10712
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10713
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
10714
      $rm conftest*
 
10715
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10716
 
 
10717
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10718
  (eval $ac_compile) 2>&5
 
10719
  ac_status=$?
 
10720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10721
  (exit $ac_status); } 2>conftest.err; then
 
10722
        soname=conftest
 
10723
        lib=conftest
 
10724
        libobjs=conftest.$ac_objext
 
10725
        deplibs=
 
10726
        wl=$lt_prog_compiler_wl_CXX
 
10727
        compiler_flags=-v
 
10728
        linker_flags=-v
 
10729
        verstring=
 
10730
        output_objdir=.
 
10731
        libname=conftest
 
10732
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
10733
        allow_undefined_flag_CXX=
 
10734
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
10735
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
10736
  ac_status=$?
 
10737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10738
  (exit $ac_status); }
 
10739
        then
 
10740
          archive_cmds_need_lc_CXX=no
 
10741
        else
 
10742
          archive_cmds_need_lc_CXX=yes
 
10743
        fi
 
10744
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
10745
      else
 
10746
        cat conftest.err 1>&5
 
10747
      fi
 
10748
      $rm conftest*
 
10749
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
10750
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
10751
      ;;
 
10752
    esac
 
10753
  fi
 
10754
  ;;
 
10755
esac
 
10756
 
 
10757
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10758
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
10759
hardcode_action_CXX=
 
10760
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
10761
   test -n "$runpath_var CXX" || \
 
10762
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
10763
 
 
10764
  # We can hardcode non-existant directories.
 
10765
  if test "$hardcode_direct_CXX" != no &&
 
10766
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10767
     # have to relink, otherwise we might link with an installed library
 
10768
     # when we should be linking with a yet-to-be-installed one
 
10769
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
10770
     test "$hardcode_minus_L_CXX" != no; then
 
10771
    # Linking always hardcodes the temporary library directory.
 
10772
    hardcode_action_CXX=relink
 
10773
  else
 
10774
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10775
    hardcode_action_CXX=immediate
 
10776
  fi
 
10777
else
 
10778
  # We cannot hardcode anything, or else we can only hardcode existing
 
10779
  # directories.
 
10780
  hardcode_action_CXX=unsupported
 
10781
fi
 
10782
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
10783
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
10784
 
 
10785
if test "$hardcode_action_CXX" = relink; then
 
10786
  # Fast installation is not supported
 
10787
  enable_fast_install=no
 
10788
elif test "$shlibpath_overrides_runpath" = yes ||
 
10789
     test "$enable_shared" = no; then
 
10790
  # Fast installation is not necessary
 
10791
  enable_fast_install=needless
 
10792
fi
 
10793
 
 
10794
striplib=
 
10795
old_striplib=
 
10796
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10797
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
10798
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10799
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10800
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10801
  echo "$as_me:$LINENO: result: yes" >&5
 
10802
echo "${ECHO_T}yes" >&6
 
10803
else
 
10804
# FIXME - insert some real tests, host_os isn't really good enough
 
10805
  case $host_os in
 
10806
   darwin*)
 
10807
       if test -n "$STRIP" ; then
 
10808
         striplib="$STRIP -x"
 
10809
         echo "$as_me:$LINENO: result: yes" >&5
 
10810
echo "${ECHO_T}yes" >&6
 
10811
       else
 
10812
  echo "$as_me:$LINENO: result: no" >&5
 
10813
echo "${ECHO_T}no" >&6
 
10814
fi
 
10815
       ;;
 
10816
   *)
 
10817
  echo "$as_me:$LINENO: result: no" >&5
 
10818
echo "${ECHO_T}no" >&6
 
10819
    ;;
 
10820
  esac
 
10821
fi
 
10822
 
 
10823
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10824
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
10825
library_names_spec=
 
10826
libname_spec='lib$name'
 
10827
soname_spec=
 
10828
shrext=".so"
 
10829
postinstall_cmds=
 
10830
postuninstall_cmds=
 
10831
finish_cmds=
 
10832
finish_eval=
 
10833
shlibpath_var=
 
10834
shlibpath_overrides_runpath=unknown
 
10835
version_type=none
 
10836
dynamic_linker="$host_os ld.so"
 
10837
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
10838
if test "$GCC" = yes; then
 
10839
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10840
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
10841
    # if the path contains ";" then we assume it to be the separator
 
10842
    # otherwise default to the standard path separator (i.e. ":") - it is
 
10843
    # assumed that no part of a normal pathname contains ";" but that should
 
10844
    # okay in the real world where ";" in dirpaths is itself problematic.
 
10845
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10846
  else
 
10847
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10848
  fi
 
10849
else
 
10850
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
10851
fi
 
10852
need_lib_prefix=unknown
 
10853
hardcode_into_libs=no
 
10854
 
 
10855
# when you set need_version to no, make sure it does not cause -set_version
 
10856
# flags to be left without arguments
 
10857
need_version=unknown
 
10858
 
 
10859
case $host_os in
 
10860
aix3*)
 
10861
  version_type=linux
 
10862
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
10863
  shlibpath_var=LIBPATH
 
10864
 
 
10865
  # AIX 3 has no versioning support, so we append a major version to the name.
 
10866
  soname_spec='${libname}${release}${shared_ext}$major'
 
10867
  ;;
 
10868
 
 
10869
aix4* | aix5*)
 
10870
  version_type=linux
 
10871
  need_lib_prefix=no
 
10872
  need_version=no
 
10873
  hardcode_into_libs=yes
 
10874
  if test "$host_cpu" = ia64; then
 
10875
    # AIX 5 supports IA64
 
10876
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
10877
    shlibpath_var=LD_LIBRARY_PATH
 
10878
  else
 
10879
    # With GCC up to 2.95.x, collect2 would create an import file
 
10880
    # for dependence libraries.  The import file would start with
 
10881
    # the line `#! .'.  This would cause the generated library to
 
10882
    # depend on `.', always an invalid library.  This was fixed in
 
10883
    # development snapshots of GCC prior to 3.0.
 
10884
    case $host_os in
 
10885
      aix4 | aix4.[01] | aix4.[01].*)
 
10886
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
10887
           echo ' yes '
 
10888
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
10889
        :
 
10890
      else
 
10891
        can_build_shared=no
 
10892
      fi
 
10893
      ;;
 
10894
    esac
 
10895
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
10896
    # soname into executable. Probably we can add versioning support to
 
10897
    # collect2, so additional links can be useful in future.
 
10898
    if test "$aix_use_runtimelinking" = yes; then
 
10899
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
10900
      # instead of lib<name>.a to let people know that these are not
 
10901
      # typical AIX shared libraries.
 
10902
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10903
    else
 
10904
      # We preserve .a as extension for shared libraries through AIX4.2
 
10905
      # and later when we are not doing run time linking.
 
10906
      library_names_spec='${libname}${release}.a $libname.a'
 
10907
      soname_spec='${libname}${release}${shared_ext}$major'
 
10908
    fi
 
10909
    shlibpath_var=LIBPATH
 
10910
  fi
 
10911
  ;;
 
10912
 
 
10913
amigaos*)
 
10914
  library_names_spec='$libname.ixlibrary $libname.a'
 
10915
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
10916
  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'
 
10917
  ;;
 
10918
 
 
10919
beos*)
 
10920
  library_names_spec='${libname}${shared_ext}'
 
10921
  dynamic_linker="$host_os ld.so"
 
10922
  shlibpath_var=LIBRARY_PATH
 
10923
  ;;
 
10924
 
 
10925
bsdi4*)
 
10926
  version_type=linux
 
10927
  need_version=no
 
10928
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10929
  soname_spec='${libname}${release}${shared_ext}$major'
 
10930
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
10931
  shlibpath_var=LD_LIBRARY_PATH
 
10932
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
10933
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
10934
  # the default ld.so.conf also contains /usr/contrib/lib and
 
10935
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
10936
  # libtool to hard-code these into programs
 
10937
  ;;
 
10938
 
 
10939
cygwin* | mingw* | pw32*)
 
10940
  version_type=windows
 
10941
  shrext=".dll"
 
10942
  need_version=no
 
10943
  need_lib_prefix=no
 
10944
 
 
10945
  case $GCC,$host_os in
 
10946
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
10947
    library_names_spec='$libname.dll.a'
 
10948
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
10949
    postinstall_cmds='base_file=`basename \${file}`~
 
10950
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
10951
      dldir=$destdir/`dirname \$dlpath`~
 
10952
      test -d \$dldir || mkdir -p \$dldir~
 
10953
      $install_prog $dir/$dlname \$dldir/$dlname'
 
10954
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
10955
      dlpath=$dir/\$dldll~
 
10956
       $rm \$dlpath'
 
10957
    shlibpath_overrides_runpath=yes
 
10958
 
 
10959
    case $host_os in
 
10960
    cygwin*)
 
10961
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
10962
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10963
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
 
10964
      ;;
 
10965
    mingw*)
 
10966
      # MinGW DLLs use traditional 'lib' prefix
 
10967
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
10968
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
10969
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
10970
        # It is most probably a Windows format PATH printed by
 
10971
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
10972
        # path with ; separators, and with drive letters. We can handle the
 
10973
        # drive letters (cygwin fileutils understands them), so leave them,
 
10974
        # especially as we might pass files found there to a mingw objdump,
 
10975
        # which wouldn't understand a cygwinified path. Ahh.
 
10976
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
10977
      else
 
10978
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
10979
      fi
 
10980
      ;;
 
10981
    pw32*)
 
10982
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
10983
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
10984
      ;;
 
10985
    esac
 
10986
    ;;
 
10987
 
 
10988
  *)
 
10989
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
10990
    ;;
 
10991
  esac
 
10992
  dynamic_linker='Win32 ld.exe'
 
10993
  # FIXME: first we should search . and the directory the executable is in
 
10994
  shlibpath_var=PATH
 
10995
  ;;
 
10996
 
 
10997
darwin* | rhapsody*)
 
10998
  dynamic_linker="$host_os dyld"
 
10999
  version_type=darwin
 
11000
  need_lib_prefix=no
 
11001
  need_version=no
 
11002
  # FIXME: Relying on posixy $() will cause problems for
 
11003
  #        cross-compilation, but unfortunately the echo tests do not
 
11004
  #        yet detect zsh echo's removal of \ escapes.
 
11005
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11006
  soname_spec='${libname}${release}${major}$shared_ext'
 
11007
  shlibpath_overrides_runpath=yes
 
11008
  shlibpath_var=DYLD_LIBRARY_PATH
 
11009
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
11010
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11011
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
11012
  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"`
 
11013
  fi
 
11014
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11015
  ;;
 
11016
 
 
11017
dgux*)
 
11018
  version_type=linux
 
11019
  need_lib_prefix=no
 
11020
  need_version=no
 
11021
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11022
  soname_spec='${libname}${release}${shared_ext}$major'
 
11023
  shlibpath_var=LD_LIBRARY_PATH
 
11024
  ;;
 
11025
 
 
11026
freebsd1*)
 
11027
  dynamic_linker=no
 
11028
  ;;
 
11029
 
 
11030
freebsd*-gnu*)
 
11031
  version_type=linux
 
11032
  need_lib_prefix=no
 
11033
  need_version=no
 
11034
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11035
  soname_spec='${libname}${release}${shared_ext}$major'
 
11036
  shlibpath_var=LD_LIBRARY_PATH
 
11037
  shlibpath_overrides_runpath=no
 
11038
  hardcode_into_libs=yes
 
11039
  dynamic_linker='GNU ld.so'
 
11040
  ;;
 
11041
 
 
11042
freebsd*)
 
11043
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11044
  version_type=freebsd-$objformat
 
11045
  case $version_type in
 
11046
    freebsd-elf*)
 
11047
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11048
      need_version=no
 
11049
      need_lib_prefix=no
 
11050
      ;;
 
11051
    freebsd-*)
 
11052
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11053
      need_version=yes
 
11054
      ;;
 
11055
  esac
 
11056
  shlibpath_var=LD_LIBRARY_PATH
 
11057
  case $host_os in
 
11058
  freebsd2*)
 
11059
    shlibpath_overrides_runpath=yes
 
11060
    ;;
 
11061
  freebsd3.01* | freebsdelf3.01*)
 
11062
    shlibpath_overrides_runpath=yes
 
11063
    hardcode_into_libs=yes
 
11064
    ;;
 
11065
  *) # from 3.2 on
 
11066
    shlibpath_overrides_runpath=no
 
11067
    hardcode_into_libs=yes
 
11068
    ;;
 
11069
  esac
 
11070
  ;;
 
11071
 
 
11072
gnu*)
 
11073
  version_type=linux
 
11074
  need_lib_prefix=no
 
11075
  need_version=no
 
11076
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11077
  soname_spec='${libname}${release}${shared_ext}$major'
 
11078
  shlibpath_var=LD_LIBRARY_PATH
 
11079
  hardcode_into_libs=yes
 
11080
  ;;
 
11081
 
 
11082
hpux9* | hpux10* | hpux11*)
 
11083
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11084
  # link against other versions.
 
11085
  version_type=sunos
 
11086
  need_lib_prefix=no
 
11087
  need_version=no
 
11088
  case "$host_cpu" in
 
11089
  ia64*)
 
11090
    shrext='.so'
 
11091
    hardcode_into_libs=yes
 
11092
    dynamic_linker="$host_os dld.so"
 
11093
    shlibpath_var=LD_LIBRARY_PATH
 
11094
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11095
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11096
    soname_spec='${libname}${release}${shared_ext}$major'
 
11097
    if test "X$HPUX_IA64_MODE" = X32; then
 
11098
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11099
    else
 
11100
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11101
    fi
 
11102
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11103
    ;;
 
11104
   hppa*64*)
 
11105
     shrext='.sl'
 
11106
     hardcode_into_libs=yes
 
11107
     dynamic_linker="$host_os dld.sl"
 
11108
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11109
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11110
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11111
     soname_spec='${libname}${release}${shared_ext}$major'
 
11112
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11113
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11114
     ;;
 
11115
   *)
 
11116
    shrext='.sl'
 
11117
    dynamic_linker="$host_os dld.sl"
 
11118
    shlibpath_var=SHLIB_PATH
 
11119
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11120
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11121
    soname_spec='${libname}${release}${shared_ext}$major'
 
11122
    ;;
 
11123
  esac
 
11124
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11125
  postinstall_cmds='chmod 555 $lib'
 
11126
  ;;
 
11127
 
 
11128
irix5* | irix6* | nonstopux*)
 
11129
  case $host_os in
 
11130
    nonstopux*) version_type=nonstopux ;;
 
11131
    *)
 
11132
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11133
                version_type=linux
 
11134
        else
 
11135
                version_type=irix
 
11136
        fi ;;
 
11137
  esac
 
11138
  need_lib_prefix=no
 
11139
  need_version=no
 
11140
  soname_spec='${libname}${release}${shared_ext}$major'
 
11141
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11142
  case $host_os in
 
11143
  irix5* | nonstopux*)
 
11144
    libsuff= shlibsuff=
 
11145
    ;;
 
11146
  *)
 
11147
    case $LD in # libtool.m4 will add one of these switches to LD
 
11148
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11149
      libsuff= shlibsuff= libmagic=32-bit;;
 
11150
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11151
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11152
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11153
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11154
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11155
    esac
 
11156
    ;;
 
11157
  esac
 
11158
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11159
  shlibpath_overrides_runpath=no
 
11160
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11161
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11162
  hardcode_into_libs=yes
 
11163
  ;;
 
11164
 
 
11165
# No shared lib support for Linux oldld, aout, or coff.
 
11166
linux*oldld* | linux*aout* | linux*coff*)
 
11167
  dynamic_linker=no
 
11168
  ;;
 
11169
 
 
11170
# This must be Linux ELF.
 
11171
linux*)
 
11172
  version_type=linux
 
11173
  need_lib_prefix=no
 
11174
  need_version=no
 
11175
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11176
  soname_spec='${libname}${release}${shared_ext}$major'
 
11177
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11178
  shlibpath_var=LD_LIBRARY_PATH
 
11179
  shlibpath_overrides_runpath=no
 
11180
  # This implies no fast_install, which is unacceptable.
 
11181
  # Some rework will be needed to allow for fast_install
 
11182
  # before this can be enabled.
 
11183
  hardcode_into_libs=yes
 
11184
 
 
11185
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11186
  # powerpc, because MkLinux only supported shared libraries with the
 
11187
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11188
  # most powerpc-linux boxes support dynamic linking these days and
 
11189
  # people can always --disable-shared, the test was removed, and we
 
11190
  # assume the GNU/Linux dynamic linker is in use.
 
11191
  dynamic_linker='GNU/Linux ld.so'
 
11192
  ;;
 
11193
 
 
11194
netbsd*)
 
11195
  version_type=sunos
 
11196
  need_lib_prefix=no
 
11197
  need_version=no
 
11198
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11199
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11200
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11201
    dynamic_linker='NetBSD (a.out) ld.so'
 
11202
  else
 
11203
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
11204
    soname_spec='${libname}${release}${shared_ext}$major'
 
11205
    dynamic_linker='NetBSD ld.elf_so'
 
11206
  fi
 
11207
  shlibpath_var=LD_LIBRARY_PATH
 
11208
  shlibpath_overrides_runpath=yes
 
11209
  hardcode_into_libs=yes
 
11210
  ;;
 
11211
 
 
11212
newsos6)
 
11213
  version_type=linux
 
11214
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11215
  shlibpath_var=LD_LIBRARY_PATH
 
11216
  shlibpath_overrides_runpath=yes
 
11217
  ;;
 
11218
 
 
11219
nto-qnx)
 
11220
  version_type=linux
 
11221
  need_lib_prefix=no
 
11222
  need_version=no
 
11223
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11224
  soname_spec='${libname}${release}${shared_ext}$major'
 
11225
  shlibpath_var=LD_LIBRARY_PATH
 
11226
  shlibpath_overrides_runpath=yes
 
11227
  ;;
 
11228
 
 
11229
openbsd*)
 
11230
  version_type=sunos
 
11231
  need_lib_prefix=no
 
11232
  need_version=no
 
11233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11234
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11235
  shlibpath_var=LD_LIBRARY_PATH
 
11236
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11237
    case $host_os in
 
11238
      openbsd2.[89] | openbsd2.[89].*)
 
11239
        shlibpath_overrides_runpath=no
 
11240
        ;;
 
11241
      *)
 
11242
        shlibpath_overrides_runpath=yes
 
11243
        ;;
 
11244
      esac
 
11245
  else
 
11246
    shlibpath_overrides_runpath=yes
 
11247
  fi
 
11248
  ;;
 
11249
 
 
11250
os2*)
 
11251
  libname_spec='$name'
 
11252
  shrext=".dll"
 
11253
  need_lib_prefix=no
 
11254
  library_names_spec='$libname${shared_ext} $libname.a'
 
11255
  dynamic_linker='OS/2 ld.exe'
 
11256
  shlibpath_var=LIBPATH
 
11257
  ;;
 
11258
 
 
11259
osf3* | osf4* | osf5*)
 
11260
  version_type=osf
 
11261
  need_lib_prefix=no
 
11262
  need_version=no
 
11263
  soname_spec='${libname}${release}${shared_ext}$major'
 
11264
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11265
  shlibpath_var=LD_LIBRARY_PATH
 
11266
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11267
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11268
  ;;
 
11269
 
 
11270
sco3.2v5*)
 
11271
  version_type=osf
 
11272
  soname_spec='${libname}${release}${shared_ext}$major'
 
11273
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11274
  shlibpath_var=LD_LIBRARY_PATH
 
11275
  ;;
 
11276
 
 
11277
solaris*)
 
11278
  version_type=linux
 
11279
  need_lib_prefix=no
 
11280
  need_version=no
 
11281
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11282
  soname_spec='${libname}${release}${shared_ext}$major'
 
11283
  shlibpath_var=LD_LIBRARY_PATH
 
11284
  shlibpath_overrides_runpath=yes
 
11285
  hardcode_into_libs=yes
 
11286
  # ldd complains unless libraries are executable
 
11287
  postinstall_cmds='chmod +x $lib'
 
11288
  ;;
 
11289
 
 
11290
sunos4*)
 
11291
  version_type=sunos
 
11292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11293
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11294
  shlibpath_var=LD_LIBRARY_PATH
 
11295
  shlibpath_overrides_runpath=yes
 
11296
  if test "$with_gnu_ld" = yes; then
 
11297
    need_lib_prefix=no
 
11298
  fi
 
11299
  need_version=yes
 
11300
  ;;
 
11301
 
 
11302
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11303
  version_type=linux
 
11304
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11305
  soname_spec='${libname}${release}${shared_ext}$major'
 
11306
  shlibpath_var=LD_LIBRARY_PATH
 
11307
  case $host_vendor in
 
11308
    sni)
 
11309
      shlibpath_overrides_runpath=no
 
11310
      need_lib_prefix=no
 
11311
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11312
      runpath_var=LD_RUN_PATH
 
11313
      ;;
 
11314
    siemens)
 
11315
      need_lib_prefix=no
 
11316
      ;;
 
11317
    motorola)
 
11318
      need_lib_prefix=no
 
11319
      need_version=no
 
11320
      shlibpath_overrides_runpath=no
 
11321
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11322
      ;;
 
11323
  esac
 
11324
  ;;
 
11325
 
 
11326
sysv4*MP*)
 
11327
  if test -d /usr/nec ;then
 
11328
    version_type=linux
 
11329
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11330
    soname_spec='$libname${shared_ext}.$major'
 
11331
    shlibpath_var=LD_LIBRARY_PATH
 
11332
  fi
 
11333
  ;;
 
11334
 
 
11335
uts4*)
 
11336
  version_type=linux
 
11337
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11338
  soname_spec='${libname}${release}${shared_ext}$major'
 
11339
  shlibpath_var=LD_LIBRARY_PATH
 
11340
  ;;
 
11341
 
 
11342
*)
 
11343
  dynamic_linker=no
 
11344
  ;;
 
11345
esac
 
11346
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11347
echo "${ECHO_T}$dynamic_linker" >&6
 
11348
test "$dynamic_linker" = no && can_build_shared=no
 
11349
 
 
11350
if test "x$enable_dlopen" != xyes; then
 
11351
  enable_dlopen=unknown
 
11352
  enable_dlopen_self=unknown
 
11353
  enable_dlopen_self_static=unknown
 
11354
else
 
11355
  lt_cv_dlopen=no
 
11356
  lt_cv_dlopen_libs=
 
11357
 
 
11358
  case $host_os in
 
11359
  beos*)
 
11360
    lt_cv_dlopen="load_add_on"
 
11361
    lt_cv_dlopen_libs=
 
11362
    lt_cv_dlopen_self=yes
 
11363
    ;;
 
11364
 
 
11365
  mingw* | pw32*)
 
11366
    lt_cv_dlopen="LoadLibrary"
 
11367
    lt_cv_dlopen_libs=
 
11368
   ;;
 
11369
 
 
11370
  cygwin*)
 
11371
    lt_cv_dlopen="dlopen"
 
11372
    lt_cv_dlopen_libs=
 
11373
   ;;
 
11374
 
 
11375
  darwin*)
 
11376
  # if libdl is installed we need to link against it
 
11377
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11378
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11379
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11381
else
 
11382
  ac_check_lib_save_LIBS=$LIBS
 
11383
LIBS="-ldl  $LIBS"
 
11384
cat >conftest.$ac_ext <<_ACEOF
 
11385
#line $LINENO "configure"
 
11386
/* confdefs.h.  */
 
11387
_ACEOF
 
11388
cat confdefs.h >>conftest.$ac_ext
 
11389
cat >>conftest.$ac_ext <<_ACEOF
 
11390
/* end confdefs.h.  */
 
11391
 
 
11392
/* Override any gcc2 internal prototype to avoid an error.  */
 
11393
#ifdef __cplusplus
 
11394
extern "C"
 
11395
#endif
 
11396
/* We use char because int might match the return type of a gcc2
 
11397
   builtin and then its argument prototype would still apply.  */
 
11398
char dlopen ();
 
11399
int
 
11400
main ()
 
11401
{
 
11402
dlopen ();
 
11403
  ;
 
11404
  return 0;
 
11405
}
 
11406
_ACEOF
 
11407
rm -f conftest.$ac_objext conftest$ac_exeext
 
11408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11409
  (eval $ac_link) 2>&5
 
11410
  ac_status=$?
 
11411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11412
  (exit $ac_status); } &&
 
11413
         { ac_try='test -s conftest$ac_exeext'
 
11414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11415
  (eval $ac_try) 2>&5
 
11416
  ac_status=$?
 
11417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11418
  (exit $ac_status); }; }; then
 
11419
  ac_cv_lib_dl_dlopen=yes
 
11420
else
 
11421
  echo "$as_me: failed program was:" >&5
 
11422
sed 's/^/| /' conftest.$ac_ext >&5
 
11423
 
 
11424
ac_cv_lib_dl_dlopen=no
 
11425
fi
 
11426
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11427
LIBS=$ac_check_lib_save_LIBS
 
11428
fi
 
11429
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11430
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11431
if test $ac_cv_lib_dl_dlopen = yes; then
 
11432
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11433
else
 
11434
 
 
11435
    lt_cv_dlopen="dyld"
 
11436
    lt_cv_dlopen_libs=
 
11437
    lt_cv_dlopen_self=yes
 
11438
 
 
11439
fi
 
11440
 
 
11441
   ;;
 
11442
 
 
11443
  *)
 
11444
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11445
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11446
if test "${ac_cv_func_shl_load+set}" = set; then
 
11447
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11448
else
 
11449
  cat >conftest.$ac_ext <<_ACEOF
 
11450
#line $LINENO "configure"
 
11451
/* confdefs.h.  */
 
11452
_ACEOF
 
11453
cat confdefs.h >>conftest.$ac_ext
 
11454
cat >>conftest.$ac_ext <<_ACEOF
 
11455
/* end confdefs.h.  */
 
11456
/* System header to define __stub macros and hopefully few prototypes,
 
11457
    which can conflict with char shl_load (); below.
 
11458
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11459
    <limits.h> exists even on freestanding compilers.  */
 
11460
#ifdef __STDC__
 
11461
# include <limits.h>
 
11462
#else
 
11463
# include <assert.h>
 
11464
#endif
 
11465
/* Override any gcc2 internal prototype to avoid an error.  */
 
11466
#ifdef __cplusplus
 
11467
extern "C"
 
11468
{
 
11469
#endif
 
11470
/* We use char because int might match the return type of a gcc2
 
11471
   builtin and then its argument prototype would still apply.  */
 
11472
char shl_load ();
 
11473
/* The GNU C library defines this for functions which it implements
 
11474
    to always fail with ENOSYS.  Some functions are actually named
 
11475
    something starting with __ and the normal name is an alias.  */
 
11476
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11477
choke me
 
11478
#else
 
11479
char (*f) () = shl_load;
 
11480
#endif
 
11481
#ifdef __cplusplus
 
11482
}
 
11483
#endif
 
11484
 
 
11485
int
 
11486
main ()
 
11487
{
 
11488
return f != shl_load;
 
11489
  ;
 
11490
  return 0;
 
11491
}
 
11492
_ACEOF
 
11493
rm -f conftest.$ac_objext conftest$ac_exeext
 
11494
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11495
  (eval $ac_link) 2>&5
 
11496
  ac_status=$?
 
11497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11498
  (exit $ac_status); } &&
 
11499
         { ac_try='test -s conftest$ac_exeext'
 
11500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11501
  (eval $ac_try) 2>&5
 
11502
  ac_status=$?
 
11503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11504
  (exit $ac_status); }; }; then
 
11505
  ac_cv_func_shl_load=yes
 
11506
else
 
11507
  echo "$as_me: failed program was:" >&5
 
11508
sed 's/^/| /' conftest.$ac_ext >&5
 
11509
 
 
11510
ac_cv_func_shl_load=no
 
11511
fi
 
11512
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11513
fi
 
11514
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11515
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
11516
if test $ac_cv_func_shl_load = yes; then
 
11517
  lt_cv_dlopen="shl_load"
 
11518
else
 
11519
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11520
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
11521
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11523
else
 
11524
  ac_check_lib_save_LIBS=$LIBS
 
11525
LIBS="-ldld  $LIBS"
 
11526
cat >conftest.$ac_ext <<_ACEOF
 
11527
#line $LINENO "configure"
 
11528
/* confdefs.h.  */
 
11529
_ACEOF
 
11530
cat confdefs.h >>conftest.$ac_ext
 
11531
cat >>conftest.$ac_ext <<_ACEOF
 
11532
/* end confdefs.h.  */
 
11533
 
 
11534
/* Override any gcc2 internal prototype to avoid an error.  */
 
11535
#ifdef __cplusplus
 
11536
extern "C"
 
11537
#endif
 
11538
/* We use char because int might match the return type of a gcc2
 
11539
   builtin and then its argument prototype would still apply.  */
 
11540
char shl_load ();
 
11541
int
 
11542
main ()
 
11543
{
 
11544
shl_load ();
 
11545
  ;
 
11546
  return 0;
 
11547
}
 
11548
_ACEOF
 
11549
rm -f conftest.$ac_objext conftest$ac_exeext
 
11550
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11551
  (eval $ac_link) 2>&5
 
11552
  ac_status=$?
 
11553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11554
  (exit $ac_status); } &&
 
11555
         { ac_try='test -s conftest$ac_exeext'
 
11556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11557
  (eval $ac_try) 2>&5
 
11558
  ac_status=$?
 
11559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11560
  (exit $ac_status); }; }; then
 
11561
  ac_cv_lib_dld_shl_load=yes
 
11562
else
 
11563
  echo "$as_me: failed program was:" >&5
 
11564
sed 's/^/| /' conftest.$ac_ext >&5
 
11565
 
 
11566
ac_cv_lib_dld_shl_load=no
 
11567
fi
 
11568
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11569
LIBS=$ac_check_lib_save_LIBS
 
11570
fi
 
11571
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11572
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11573
if test $ac_cv_lib_dld_shl_load = yes; then
 
11574
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11575
else
 
11576
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11577
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11578
if test "${ac_cv_func_dlopen+set}" = set; then
 
11579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11580
else
 
11581
  cat >conftest.$ac_ext <<_ACEOF
 
11582
#line $LINENO "configure"
 
11583
/* confdefs.h.  */
 
11584
_ACEOF
 
11585
cat confdefs.h >>conftest.$ac_ext
 
11586
cat >>conftest.$ac_ext <<_ACEOF
 
11587
/* end confdefs.h.  */
 
11588
/* System header to define __stub macros and hopefully few prototypes,
 
11589
    which can conflict with char dlopen (); below.
 
11590
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11591
    <limits.h> exists even on freestanding compilers.  */
 
11592
#ifdef __STDC__
 
11593
# include <limits.h>
 
11594
#else
 
11595
# include <assert.h>
 
11596
#endif
 
11597
/* Override any gcc2 internal prototype to avoid an error.  */
 
11598
#ifdef __cplusplus
 
11599
extern "C"
 
11600
{
 
11601
#endif
 
11602
/* We use char because int might match the return type of a gcc2
 
11603
   builtin and then its argument prototype would still apply.  */
 
11604
char dlopen ();
 
11605
/* The GNU C library defines this for functions which it implements
 
11606
    to always fail with ENOSYS.  Some functions are actually named
 
11607
    something starting with __ and the normal name is an alias.  */
 
11608
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11609
choke me
 
11610
#else
 
11611
char (*f) () = dlopen;
 
11612
#endif
 
11613
#ifdef __cplusplus
 
11614
}
 
11615
#endif
 
11616
 
 
11617
int
 
11618
main ()
 
11619
{
 
11620
return f != dlopen;
 
11621
  ;
 
11622
  return 0;
 
11623
}
 
11624
_ACEOF
 
11625
rm -f conftest.$ac_objext conftest$ac_exeext
 
11626
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11627
  (eval $ac_link) 2>&5
 
11628
  ac_status=$?
 
11629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11630
  (exit $ac_status); } &&
 
11631
         { ac_try='test -s conftest$ac_exeext'
 
11632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11633
  (eval $ac_try) 2>&5
 
11634
  ac_status=$?
 
11635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11636
  (exit $ac_status); }; }; then
 
11637
  ac_cv_func_dlopen=yes
 
11638
else
 
11639
  echo "$as_me: failed program was:" >&5
 
11640
sed 's/^/| /' conftest.$ac_ext >&5
 
11641
 
 
11642
ac_cv_func_dlopen=no
 
11643
fi
 
11644
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11645
fi
 
11646
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
11647
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
11648
if test $ac_cv_func_dlopen = yes; then
 
11649
  lt_cv_dlopen="dlopen"
 
11650
else
 
11651
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11652
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11653
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11654
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11655
else
 
11656
  ac_check_lib_save_LIBS=$LIBS
 
11657
LIBS="-ldl  $LIBS"
 
11658
cat >conftest.$ac_ext <<_ACEOF
 
11659
#line $LINENO "configure"
 
11660
/* confdefs.h.  */
 
11661
_ACEOF
 
11662
cat confdefs.h >>conftest.$ac_ext
 
11663
cat >>conftest.$ac_ext <<_ACEOF
 
11664
/* end confdefs.h.  */
 
11665
 
 
11666
/* Override any gcc2 internal prototype to avoid an error.  */
 
11667
#ifdef __cplusplus
 
11668
extern "C"
 
11669
#endif
 
11670
/* We use char because int might match the return type of a gcc2
 
11671
   builtin and then its argument prototype would still apply.  */
 
11672
char dlopen ();
 
11673
int
 
11674
main ()
 
11675
{
 
11676
dlopen ();
 
11677
  ;
 
11678
  return 0;
 
11679
}
 
11680
_ACEOF
 
11681
rm -f conftest.$ac_objext conftest$ac_exeext
 
11682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11683
  (eval $ac_link) 2>&5
 
11684
  ac_status=$?
 
11685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11686
  (exit $ac_status); } &&
 
11687
         { ac_try='test -s conftest$ac_exeext'
 
11688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11689
  (eval $ac_try) 2>&5
 
11690
  ac_status=$?
 
11691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11692
  (exit $ac_status); }; }; then
 
11693
  ac_cv_lib_dl_dlopen=yes
 
11694
else
 
11695
  echo "$as_me: failed program was:" >&5
 
11696
sed 's/^/| /' conftest.$ac_ext >&5
 
11697
 
 
11698
ac_cv_lib_dl_dlopen=no
 
11699
fi
 
11700
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11701
LIBS=$ac_check_lib_save_LIBS
 
11702
fi
 
11703
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11704
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11705
if test $ac_cv_lib_dl_dlopen = yes; then
 
11706
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11707
else
 
11708
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11709
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
11710
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11712
else
 
11713
  ac_check_lib_save_LIBS=$LIBS
 
11714
LIBS="-lsvld  $LIBS"
 
11715
cat >conftest.$ac_ext <<_ACEOF
 
11716
#line $LINENO "configure"
 
11717
/* confdefs.h.  */
 
11718
_ACEOF
 
11719
cat confdefs.h >>conftest.$ac_ext
 
11720
cat >>conftest.$ac_ext <<_ACEOF
 
11721
/* end confdefs.h.  */
 
11722
 
 
11723
/* Override any gcc2 internal prototype to avoid an error.  */
 
11724
#ifdef __cplusplus
 
11725
extern "C"
 
11726
#endif
 
11727
/* We use char because int might match the return type of a gcc2
 
11728
   builtin and then its argument prototype would still apply.  */
 
11729
char dlopen ();
 
11730
int
 
11731
main ()
 
11732
{
 
11733
dlopen ();
 
11734
  ;
 
11735
  return 0;
 
11736
}
 
11737
_ACEOF
 
11738
rm -f conftest.$ac_objext conftest$ac_exeext
 
11739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11740
  (eval $ac_link) 2>&5
 
11741
  ac_status=$?
 
11742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11743
  (exit $ac_status); } &&
 
11744
         { ac_try='test -s conftest$ac_exeext'
 
11745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11746
  (eval $ac_try) 2>&5
 
11747
  ac_status=$?
 
11748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11749
  (exit $ac_status); }; }; then
 
11750
  ac_cv_lib_svld_dlopen=yes
 
11751
else
 
11752
  echo "$as_me: failed program was:" >&5
 
11753
sed 's/^/| /' conftest.$ac_ext >&5
 
11754
 
 
11755
ac_cv_lib_svld_dlopen=no
 
11756
fi
 
11757
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11758
LIBS=$ac_check_lib_save_LIBS
 
11759
fi
 
11760
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11761
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
11762
if test $ac_cv_lib_svld_dlopen = yes; then
 
11763
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11764
else
 
11765
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11766
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
11767
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11769
else
 
11770
  ac_check_lib_save_LIBS=$LIBS
 
11771
LIBS="-ldld  $LIBS"
 
11772
cat >conftest.$ac_ext <<_ACEOF
 
11773
#line $LINENO "configure"
 
11774
/* confdefs.h.  */
 
11775
_ACEOF
 
11776
cat confdefs.h >>conftest.$ac_ext
 
11777
cat >>conftest.$ac_ext <<_ACEOF
 
11778
/* end confdefs.h.  */
 
11779
 
 
11780
/* Override any gcc2 internal prototype to avoid an error.  */
 
11781
#ifdef __cplusplus
 
11782
extern "C"
 
11783
#endif
 
11784
/* We use char because int might match the return type of a gcc2
 
11785
   builtin and then its argument prototype would still apply.  */
 
11786
char dld_link ();
 
11787
int
 
11788
main ()
 
11789
{
 
11790
dld_link ();
 
11791
  ;
 
11792
  return 0;
 
11793
}
 
11794
_ACEOF
 
11795
rm -f conftest.$ac_objext conftest$ac_exeext
 
11796
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11797
  (eval $ac_link) 2>&5
 
11798
  ac_status=$?
 
11799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11800
  (exit $ac_status); } &&
 
11801
         { ac_try='test -s conftest$ac_exeext'
 
11802
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11803
  (eval $ac_try) 2>&5
 
11804
  ac_status=$?
 
11805
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11806
  (exit $ac_status); }; }; then
 
11807
  ac_cv_lib_dld_dld_link=yes
 
11808
else
 
11809
  echo "$as_me: failed program was:" >&5
 
11810
sed 's/^/| /' conftest.$ac_ext >&5
 
11811
 
 
11812
ac_cv_lib_dld_dld_link=no
 
11813
fi
 
11814
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
11815
LIBS=$ac_check_lib_save_LIBS
 
11816
fi
 
11817
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11818
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
11819
if test $ac_cv_lib_dld_dld_link = yes; then
 
11820
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11821
fi
 
11822
 
 
11823
 
 
11824
fi
 
11825
 
 
11826
 
 
11827
fi
 
11828
 
 
11829
 
 
11830
fi
 
11831
 
 
11832
 
 
11833
fi
 
11834
 
 
11835
 
 
11836
fi
 
11837
 
 
11838
    ;;
 
11839
  esac
 
11840
 
 
11841
  if test "x$lt_cv_dlopen" != xno; then
 
11842
    enable_dlopen=yes
 
11843
  else
 
11844
    enable_dlopen=no
 
11845
  fi
 
11846
 
 
11847
  case $lt_cv_dlopen in
 
11848
  dlopen)
 
11849
    save_CPPFLAGS="$CPPFLAGS"
 
11850
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11851
 
 
11852
    save_LDFLAGS="$LDFLAGS"
 
11853
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11854
 
 
11855
    save_LIBS="$LIBS"
 
11856
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11857
 
 
11858
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11859
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
11860
if test "${lt_cv_dlopen_self+set}" = set; then
 
11861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11862
else
 
11863
          if test "$cross_compiling" = yes; then :
 
11864
  lt_cv_dlopen_self=cross
 
11865
else
 
11866
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11867
  lt_status=$lt_dlunknown
 
11868
  cat > conftest.$ac_ext <<EOF
 
11869
#line 11869 "configure"
 
11870
#include "confdefs.h"
 
11871
 
 
11872
#if HAVE_DLFCN_H
 
11873
#include <dlfcn.h>
 
11874
#endif
 
11875
 
 
11876
#include <stdio.h>
 
11877
 
 
11878
#ifdef RTLD_GLOBAL
 
11879
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11880
#else
 
11881
#  ifdef DL_GLOBAL
 
11882
#    define LT_DLGLOBAL         DL_GLOBAL
 
11883
#  else
 
11884
#    define LT_DLGLOBAL         0
 
11885
#  endif
 
11886
#endif
 
11887
 
 
11888
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11889
   find out it does not work in some platform. */
 
11890
#ifndef LT_DLLAZY_OR_NOW
 
11891
#  ifdef RTLD_LAZY
 
11892
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11893
#  else
 
11894
#    ifdef DL_LAZY
 
11895
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11896
#    else
 
11897
#      ifdef RTLD_NOW
 
11898
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11899
#      else
 
11900
#        ifdef DL_NOW
 
11901
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
11902
#        else
 
11903
#          define LT_DLLAZY_OR_NOW      0
 
11904
#        endif
 
11905
#      endif
 
11906
#    endif
 
11907
#  endif
 
11908
#endif
 
11909
 
 
11910
#ifdef __cplusplus
 
11911
extern "C" void exit (int);
 
11912
#endif
 
11913
 
 
11914
void fnord() { int i=42;}
 
11915
int main ()
 
11916
{
 
11917
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
11918
  int status = $lt_dlunknown;
 
11919
 
 
11920
  if (self)
 
11921
    {
 
11922
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
11923
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
11924
      /* dlclose (self); */
 
11925
    }
 
11926
 
 
11927
    exit (status);
 
11928
}
 
11929
EOF
 
11930
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11931
  (eval $ac_link) 2>&5
 
11932
  ac_status=$?
 
11933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11934
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
11935
    (./conftest; exit; ) 2>/dev/null
 
11936
    lt_status=$?
 
11937
    case x$lt_status in
 
11938
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
11939
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
11940
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
11941
    esac
 
11942
  else :
 
11943
    # compilation failed
 
11944
    lt_cv_dlopen_self=no
 
11945
  fi
 
11946
fi
 
11947
rm -fr conftest*
 
11948
 
 
11949
 
 
11950
fi
 
11951
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
11952
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
11953
 
 
11954
    if test "x$lt_cv_dlopen_self" = xyes; then
 
11955
      LDFLAGS="$LDFLAGS $link_static_flag"
 
11956
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
11957
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
11958
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
11959
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11960
else
 
11961
          if test "$cross_compiling" = yes; then :
 
11962
  lt_cv_dlopen_self_static=cross
 
11963
else
 
11964
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11965
  lt_status=$lt_dlunknown
 
11966
  cat > conftest.$ac_ext <<EOF
 
11967
#line 11967 "configure"
 
11968
#include "confdefs.h"
 
11969
 
 
11970
#if HAVE_DLFCN_H
 
11971
#include <dlfcn.h>
 
11972
#endif
 
11973
 
 
11974
#include <stdio.h>
 
11975
 
 
11976
#ifdef RTLD_GLOBAL
 
11977
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
11978
#else
 
11979
#  ifdef DL_GLOBAL
 
11980
#    define LT_DLGLOBAL         DL_GLOBAL
 
11981
#  else
 
11982
#    define LT_DLGLOBAL         0
 
11983
#  endif
 
11984
#endif
 
11985
 
 
11986
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
11987
   find out it does not work in some platform. */
 
11988
#ifndef LT_DLLAZY_OR_NOW
 
11989
#  ifdef RTLD_LAZY
 
11990
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
11991
#  else
 
11992
#    ifdef DL_LAZY
 
11993
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
11994
#    else
 
11995
#      ifdef RTLD_NOW
 
11996
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
11997
#      else
 
11998
#        ifdef DL_NOW
 
11999
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12000
#        else
 
12001
#          define LT_DLLAZY_OR_NOW      0
 
12002
#        endif
 
12003
#      endif
 
12004
#    endif
 
12005
#  endif
 
12006
#endif
 
12007
 
 
12008
#ifdef __cplusplus
 
12009
extern "C" void exit (int);
 
12010
#endif
 
12011
 
 
12012
void fnord() { int i=42;}
 
12013
int main ()
 
12014
{
 
12015
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12016
  int status = $lt_dlunknown;
 
12017
 
 
12018
  if (self)
 
12019
    {
 
12020
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12021
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12022
      /* dlclose (self); */
 
12023
    }
 
12024
 
 
12025
    exit (status);
 
12026
}
 
12027
EOF
 
12028
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12029
  (eval $ac_link) 2>&5
 
12030
  ac_status=$?
 
12031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12032
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12033
    (./conftest; exit; ) 2>/dev/null
 
12034
    lt_status=$?
 
12035
    case x$lt_status in
 
12036
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12037
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12038
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12039
    esac
 
12040
  else :
 
12041
    # compilation failed
 
12042
    lt_cv_dlopen_self_static=no
 
12043
  fi
 
12044
fi
 
12045
rm -fr conftest*
 
12046
 
 
12047
 
 
12048
fi
 
12049
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12050
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12051
    fi
 
12052
 
 
12053
    CPPFLAGS="$save_CPPFLAGS"
 
12054
    LDFLAGS="$save_LDFLAGS"
 
12055
    LIBS="$save_LIBS"
 
12056
    ;;
 
12057
  esac
 
12058
 
 
12059
  case $lt_cv_dlopen_self in
 
12060
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12061
  *) enable_dlopen_self=unknown ;;
 
12062
  esac
 
12063
 
 
12064
  case $lt_cv_dlopen_self_static in
 
12065
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12066
  *) enable_dlopen_self_static=unknown ;;
 
12067
  esac
 
12068
fi
 
12069
 
 
12070
 
 
12071
# The else clause should only fire when bootstrapping the
 
12072
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12073
# with your package, and you will get complaints that there are
 
12074
# no rules to generate ltmain.sh.
 
12075
if test -f "$ltmain"; then
 
12076
  # See if we are running on zsh, and set the options which allow our commands through
 
12077
  # without removal of \ escapes.
 
12078
  if test -n "${ZSH_VERSION+set}" ; then
 
12079
    setopt NO_GLOB_SUBST
 
12080
  fi
 
12081
  # Now quote all the things that may contain metacharacters while being
 
12082
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12083
  # variables and quote the copies for generation of the libtool script.
 
12084
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
12085
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12086
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12087
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12088
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12089
    lt_cv_sys_global_symbol_to_c_name_address \
 
12090
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12091
    old_postinstall_cmds old_postuninstall_cmds \
 
12092
    compiler_CXX \
 
12093
    CC_CXX \
 
12094
    LD_CXX \
 
12095
    lt_prog_compiler_wl_CXX \
 
12096
    lt_prog_compiler_pic_CXX \
 
12097
    lt_prog_compiler_static_CXX \
 
12098
    lt_prog_compiler_no_builtin_flag_CXX \
 
12099
    export_dynamic_flag_spec_CXX \
 
12100
    thread_safe_flag_spec_CXX \
 
12101
    whole_archive_flag_spec_CXX \
 
12102
    enable_shared_with_static_runtimes_CXX \
 
12103
    old_archive_cmds_CXX \
 
12104
    old_archive_from_new_cmds_CXX \
 
12105
    predep_objects_CXX \
 
12106
    postdep_objects_CXX \
 
12107
    predeps_CXX \
 
12108
    postdeps_CXX \
 
12109
    compiler_lib_search_path_CXX \
 
12110
    archive_cmds_CXX \
 
12111
    archive_expsym_cmds_CXX \
 
12112
    postinstall_cmds_CXX \
 
12113
    postuninstall_cmds_CXX \
 
12114
    old_archive_from_expsyms_cmds_CXX \
 
12115
    allow_undefined_flag_CXX \
 
12116
    no_undefined_flag_CXX \
 
12117
    export_symbols_cmds_CXX \
 
12118
    hardcode_libdir_flag_spec_CXX \
 
12119
    hardcode_libdir_flag_spec_ld_CXX \
 
12120
    hardcode_libdir_separator_CXX \
 
12121
    hardcode_automatic_CXX \
 
12122
    module_cmds_CXX \
 
12123
    module_expsym_cmds_CXX \
 
12124
    lt_cv_prog_compiler_c_o_CXX \
 
12125
    exclude_expsyms_CXX \
 
12126
    include_expsyms_CXX; do
 
12127
 
 
12128
    case $var in
 
12129
    old_archive_cmds_CXX | \
 
12130
    old_archive_from_new_cmds_CXX | \
 
12131
    archive_cmds_CXX | \
 
12132
    archive_expsym_cmds_CXX | \
 
12133
    module_cmds_CXX | \
 
12134
    module_expsym_cmds_CXX | \
 
12135
    old_archive_from_expsyms_cmds_CXX | \
 
12136
    export_symbols_cmds_CXX | \
 
12137
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12138
    postinstall_cmds | postuninstall_cmds | \
 
12139
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12140
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12141
      # Double-quote double-evaled strings.
 
12142
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12143
      ;;
 
12144
    *)
 
12145
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12146
      ;;
 
12147
    esac
 
12148
  done
 
12149
 
 
12150
  case $lt_echo in
 
12151
  *'\$0 --fallback-echo"')
 
12152
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12153
    ;;
 
12154
  esac
 
12155
 
 
12156
cfgfile="$ofile"
 
12157
 
 
12158
  cat <<__EOF__ >> "$cfgfile"
 
12159
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12160
 
 
12161
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12162
 
 
12163
# Shell to use when invoking shell scripts.
 
12164
SHELL=$lt_SHELL
 
12165
 
 
12166
# Whether or not to build shared libraries.
 
12167
build_libtool_libs=$enable_shared
 
12168
 
 
12169
# Whether or not to build static libraries.
 
12170
build_old_libs=$enable_static
 
12171
 
 
12172
# Whether or not to add -lc for building shared libraries.
 
12173
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12174
 
 
12175
# Whether or not to disallow shared libs when runtime libs are static
 
12176
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12177
 
 
12178
# Whether or not to optimize for fast installation.
 
12179
fast_install=$enable_fast_install
 
12180
 
 
12181
# The host system.
 
12182
host_alias=$host_alias
 
12183
host=$host
 
12184
 
 
12185
# An echo program that does not interpret backslashes.
 
12186
echo=$lt_echo
 
12187
 
 
12188
# The archiver.
 
12189
AR=$lt_AR
 
12190
AR_FLAGS=$lt_AR_FLAGS
 
12191
 
 
12192
# A C compiler.
 
12193
LTCC=$lt_LTCC
 
12194
 
 
12195
# A language-specific compiler.
 
12196
CC=$lt_compiler_CXX
 
12197
 
 
12198
# Is the compiler the GNU C compiler?
 
12199
with_gcc=$GCC_CXX
 
12200
 
 
12201
# An ERE matcher.
 
12202
EGREP=$lt_EGREP
 
12203
 
 
12204
# The linker used to build libraries.
 
12205
LD=$lt_LD_CXX
 
12206
 
 
12207
# Whether we need hard or soft links.
 
12208
LN_S=$lt_LN_S
 
12209
 
 
12210
# A BSD-compatible nm program.
 
12211
NM=$lt_NM
 
12212
 
 
12213
# A symbol stripping program
 
12214
STRIP=$STRIP
 
12215
 
 
12216
# Used to examine libraries when file_magic_cmd begins "file"
 
12217
MAGIC_CMD=$MAGIC_CMD
 
12218
 
 
12219
# Used on cygwin: DLL creation program.
 
12220
DLLTOOL="$DLLTOOL"
 
12221
 
 
12222
# Used on cygwin: object dumper.
 
12223
OBJDUMP="$OBJDUMP"
 
12224
 
 
12225
# Used on cygwin: assembler.
 
12226
AS="$AS"
 
12227
 
 
12228
# The name of the directory that contains temporary libtool files.
 
12229
objdir=$objdir
 
12230
 
 
12231
# How to create reloadable object files.
 
12232
reload_flag=$lt_reload_flag
 
12233
reload_cmds=$lt_reload_cmds
 
12234
 
 
12235
# How to pass a linker flag through the compiler.
 
12236
wl=$lt_lt_prog_compiler_wl_CXX
 
12237
 
 
12238
# Object file suffix (normally "o").
 
12239
objext="$ac_objext"
 
12240
 
 
12241
# Old archive suffix (normally "a").
 
12242
libext="$libext"
 
12243
 
 
12244
# Shared library suffix (normally ".so").
 
12245
shrext='$shrext'
 
12246
 
 
12247
# Executable file suffix (normally "").
 
12248
exeext="$exeext"
 
12249
 
 
12250
# Additional compiler flags for building library objects.
 
12251
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12252
pic_mode=$pic_mode
 
12253
 
 
12254
# What is the maximum length of a command?
 
12255
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12256
 
 
12257
# Does compiler simultaneously support -c and -o options?
 
12258
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12259
 
 
12260
# Must we lock files when doing compilation ?
 
12261
need_locks=$lt_need_locks
 
12262
 
 
12263
# Do we need the lib prefix for modules?
 
12264
need_lib_prefix=$need_lib_prefix
 
12265
 
 
12266
# Do we need a version for libraries?
 
12267
need_version=$need_version
 
12268
 
 
12269
# Whether dlopen is supported.
 
12270
dlopen_support=$enable_dlopen
 
12271
 
 
12272
# Whether dlopen of programs is supported.
 
12273
dlopen_self=$enable_dlopen_self
 
12274
 
 
12275
# Whether dlopen of statically linked programs is supported.
 
12276
dlopen_self_static=$enable_dlopen_self_static
 
12277
 
 
12278
# Compiler flag to prevent dynamic linking.
 
12279
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12280
 
 
12281
# Compiler flag to turn off builtin functions.
 
12282
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12283
 
 
12284
# Compiler flag to allow reflexive dlopens.
 
12285
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12286
 
 
12287
# Compiler flag to generate shared objects directly from archives.
 
12288
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12289
 
 
12290
# Compiler flag to generate thread-safe objects.
 
12291
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12292
 
 
12293
# Library versioning type.
 
12294
version_type=$version_type
 
12295
 
 
12296
# Format of library name prefix.
 
12297
libname_spec=$lt_libname_spec
 
12298
 
 
12299
# List of archive names.  First name is the real one, the rest are links.
 
12300
# The last name is the one that the linker finds with -lNAME.
 
12301
library_names_spec=$lt_library_names_spec
 
12302
 
 
12303
# The coded name of the library, if different from the real name.
 
12304
soname_spec=$lt_soname_spec
 
12305
 
 
12306
# Commands used to build and install an old-style archive.
 
12307
RANLIB=$lt_RANLIB
 
12308
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12309
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12310
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12311
 
 
12312
# Create an old-style archive from a shared archive.
 
12313
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12314
 
 
12315
# Create a temporary old-style archive to link instead of a shared archive.
 
12316
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12317
 
 
12318
# Commands used to build and install a shared archive.
 
12319
archive_cmds=$lt_archive_cmds_CXX
 
12320
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12321
postinstall_cmds=$lt_postinstall_cmds
 
12322
postuninstall_cmds=$lt_postuninstall_cmds
 
12323
 
 
12324
# Commands used to build a loadable module (assumed same as above if empty)
 
12325
module_cmds=$lt_module_cmds_CXX
 
12326
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12327
 
 
12328
# Commands to strip libraries.
 
12329
old_striplib=$lt_old_striplib
 
12330
striplib=$lt_striplib
 
12331
 
 
12332
# Dependencies to place before the objects being linked to create a
 
12333
# shared library.
 
12334
predep_objects=$lt_predep_objects_CXX
 
12335
 
 
12336
# Dependencies to place after the objects being linked to create a
 
12337
# shared library.
 
12338
postdep_objects=$lt_postdep_objects_CXX
 
12339
 
 
12340
# Dependencies to place before the objects being linked to create a
 
12341
# shared library.
 
12342
predeps=$lt_predeps_CXX
 
12343
 
 
12344
# Dependencies to place after the objects being linked to create a
 
12345
# shared library.
 
12346
postdeps=$lt_postdeps_CXX
 
12347
 
 
12348
# The library search path used internally by the compiler when linking
 
12349
# a shared library.
 
12350
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12351
 
 
12352
# Method to check whether dependent libraries are shared objects.
 
12353
deplibs_check_method=$lt_deplibs_check_method
 
12354
 
 
12355
# Command to use when deplibs_check_method == file_magic.
 
12356
file_magic_cmd=$lt_file_magic_cmd
 
12357
 
 
12358
# Flag that allows shared libraries with undefined symbols to be built.
 
12359
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12360
 
 
12361
# Flag that forces no undefined symbols.
 
12362
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12363
 
 
12364
# Commands used to finish a libtool library installation in a directory.
 
12365
finish_cmds=$lt_finish_cmds
 
12366
 
 
12367
# Same as above, but a single script fragment to be evaled but not shown.
 
12368
finish_eval=$lt_finish_eval
 
12369
 
 
12370
# Take the output of nm and produce a listing of raw symbols and C names.
 
12371
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12372
 
 
12373
# Transform the output of nm in a proper C declaration
 
12374
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12375
 
 
12376
# Transform the output of nm in a C name address pair
 
12377
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12378
 
 
12379
# This is the shared library runtime path variable.
 
12380
runpath_var=$runpath_var
 
12381
 
 
12382
# This is the shared library path variable.
 
12383
shlibpath_var=$shlibpath_var
 
12384
 
 
12385
# Is shlibpath searched before the hard-coded library search path?
 
12386
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12387
 
 
12388
# How to hardcode a shared library path into an executable.
 
12389
hardcode_action=$hardcode_action_CXX
 
12390
 
 
12391
# Whether we should hardcode library paths into libraries.
 
12392
hardcode_into_libs=$hardcode_into_libs
 
12393
 
 
12394
# Flag to hardcode \$libdir into a binary during linking.
 
12395
# This must work even if \$libdir does not exist.
 
12396
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
12397
 
 
12398
# If ld is used when linking, flag to hardcode \$libdir into
 
12399
# a binary during linking. This must work even if \$libdir does
 
12400
# not exist.
 
12401
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
12402
 
 
12403
# Whether we need a single -rpath flag with a separated argument.
 
12404
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
12405
 
 
12406
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12407
# resulting binary.
 
12408
hardcode_direct=$hardcode_direct_CXX
 
12409
 
 
12410
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12411
# resulting binary.
 
12412
hardcode_minus_L=$hardcode_minus_L_CXX
 
12413
 
 
12414
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12415
# the resulting binary.
 
12416
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
12417
 
 
12418
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12419
# and all subsequent libraries and executables linked against it.
 
12420
hardcode_automatic=$hardcode_automatic_CXX
 
12421
 
 
12422
# Variables whose values should be saved in libtool wrapper scripts and
 
12423
# restored at relink time.
 
12424
variables_saved_for_relink="$variables_saved_for_relink"
 
12425
 
 
12426
# Whether libtool must link a program against all its dependency libraries.
 
12427
link_all_deplibs=$link_all_deplibs_CXX
 
12428
 
 
12429
# Compile-time system search path for libraries
 
12430
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12431
 
 
12432
# Run-time system search path for libraries
 
12433
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12434
 
 
12435
# Fix the shell variable \$srcfile for the compiler.
 
12436
fix_srcfile_path="$fix_srcfile_path_CXX"
 
12437
 
 
12438
# Set to yes if exported symbols are required.
 
12439
always_export_symbols=$always_export_symbols_CXX
 
12440
 
 
12441
# The commands to list exported symbols.
 
12442
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
12443
 
 
12444
# The commands to extract the exported symbol list from a shared archive.
 
12445
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12446
 
 
12447
# Symbols that should not be listed in the preloaded symbols.
 
12448
exclude_expsyms=$lt_exclude_expsyms_CXX
 
12449
 
 
12450
# Symbols that must always be exported.
 
12451
include_expsyms=$lt_include_expsyms_CXX
 
12452
 
 
12453
# ### END LIBTOOL TAG CONFIG: $tagname
 
12454
 
 
12455
__EOF__
 
12456
 
 
12457
 
 
12458
else
 
12459
  # If there is no Makefile yet, we rely on a make rule to execute
 
12460
  # `config.status --recheck' to rerun these tests and create the
 
12461
  # libtool script then.
 
12462
  test -f Makefile && make "$ltmain"
 
12463
fi
 
12464
 
 
12465
 
 
12466
ac_ext=c
 
12467
ac_cpp='$CPP $CPPFLAGS'
 
12468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12471
 
 
12472
CC=$lt_save_CC
 
12473
LDCXX=$LD
 
12474
LD=$lt_save_LD
 
12475
GCC=$lt_save_GCC
 
12476
with_gnu_ldcxx=$with_gnu_ld
 
12477
with_gnu_ld=$lt_save_with_gnu_ld
 
12478
lt_cv_path_LDCXX=$lt_cv_path_LD
 
12479
lt_cv_path_LD=$lt_save_path_LD
 
12480
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
12481
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
12482
 
 
12483
        else
 
12484
          tagname=""
 
12485
        fi
 
12486
        ;;
 
12487
 
 
12488
      F77)
 
12489
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
12490
 
 
12491
ac_ext=f
 
12492
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
12493
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12494
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
12495
 
 
12496
 
 
12497
archive_cmds_need_lc_F77=no
 
12498
allow_undefined_flag_F77=
 
12499
always_export_symbols_F77=no
 
12500
archive_expsym_cmds_F77=
 
12501
export_dynamic_flag_spec_F77=
 
12502
hardcode_direct_F77=no
 
12503
hardcode_libdir_flag_spec_F77=
 
12504
hardcode_libdir_flag_spec_ld_F77=
 
12505
hardcode_libdir_separator_F77=
 
12506
hardcode_minus_L_F77=no
 
12507
hardcode_automatic_F77=no
 
12508
module_cmds_F77=
 
12509
module_expsym_cmds_F77=
 
12510
link_all_deplibs_F77=unknown
 
12511
old_archive_cmds_F77=$old_archive_cmds
 
12512
no_undefined_flag_F77=
 
12513
whole_archive_flag_spec_F77=
 
12514
enable_shared_with_static_runtimes_F77=no
 
12515
 
 
12516
# Source file extension for f77 test sources.
 
12517
ac_ext=f
 
12518
 
 
12519
# Object file extension for compiled f77 test sources.
 
12520
objext=o
 
12521
objext_F77=$objext
 
12522
 
 
12523
# Code to be used in simple compile tests
 
12524
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
12525
 
 
12526
# Code to be used in simple link tests
 
12527
lt_simple_link_test_code="      program t\n      end\n"
 
12528
 
 
12529
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12530
 
 
12531
# If no C compiler was specified, use CC.
 
12532
LTCC=${LTCC-"$CC"}
 
12533
 
 
12534
# Allow CC to be a program name with arguments.
 
12535
compiler=$CC
 
12536
 
 
12537
 
 
12538
# Allow CC to be a program name with arguments.
 
12539
lt_save_CC="$CC"
 
12540
CC=${F77-"f77"}
 
12541
compiler=$CC
 
12542
compiler_F77=$CC
 
12543
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12544
 
 
12545
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12546
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
12547
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12548
echo "${ECHO_T}$can_build_shared" >&6
 
12549
 
 
12550
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12551
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
12552
test "$can_build_shared" = "no" && enable_shared=no
 
12553
 
 
12554
# On AIX, shared libraries and static libraries use the same namespace, and
 
12555
# are all built from PIC.
 
12556
case "$host_os" in
 
12557
aix3*)
 
12558
  test "$enable_shared" = yes && enable_static=no
 
12559
  if test -n "$RANLIB"; then
 
12560
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12561
    postinstall_cmds='$RANLIB $lib'
 
12562
  fi
 
12563
  ;;
 
12564
aix4*)
 
12565
  test "$enable_shared" = yes && enable_static=no
 
12566
  ;;
 
12567
esac
 
12568
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12569
echo "${ECHO_T}$enable_shared" >&6
 
12570
 
 
12571
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12572
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
12573
# Make sure either enable_shared or enable_static is yes.
 
12574
test "$enable_shared" = yes || enable_static=yes
 
12575
echo "$as_me:$LINENO: result: $enable_static" >&5
 
12576
echo "${ECHO_T}$enable_static" >&6
 
12577
 
 
12578
test "$ld_shlibs_F77" = no && can_build_shared=no
 
12579
 
 
12580
GCC_F77="$G77"
 
12581
LD_F77="$LD"
 
12582
 
 
12583
lt_prog_compiler_wl_F77=
 
12584
lt_prog_compiler_pic_F77=
 
12585
lt_prog_compiler_static_F77=
 
12586
 
 
12587
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12588
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12589
 
 
12590
  if test "$GCC" = yes; then
 
12591
    lt_prog_compiler_wl_F77='-Wl,'
 
12592
    lt_prog_compiler_static_F77='-static'
 
12593
 
 
12594
    case $host_os in
 
12595
      aix*)
 
12596
      # All AIX code is PIC.
 
12597
      if test "$host_cpu" = ia64; then
 
12598
        # AIX 5 now supports IA64 processor
 
12599
        lt_prog_compiler_static_F77='-Bstatic'
 
12600
      fi
 
12601
      ;;
 
12602
 
 
12603
    amigaos*)
 
12604
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12605
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12606
      # like `-m68040'.
 
12607
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
12608
      ;;
 
12609
 
 
12610
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12611
      # PIC is the default for these OSes.
 
12612
      ;;
 
12613
 
 
12614
    mingw* | pw32* | os2*)
 
12615
      # This hack is so that the source file can tell whether it is being
 
12616
      # built for inclusion in a dll (and should export symbols for example).
 
12617
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
12618
      ;;
 
12619
 
 
12620
    darwin* | rhapsody*)
 
12621
      # PIC is the default on this platform
 
12622
      # Common symbols not allowed in MH_DYLIB files
 
12623
      lt_prog_compiler_pic_F77='-fno-common'
 
12624
      ;;
 
12625
 
 
12626
    msdosdjgpp*)
 
12627
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
12628
      # on systems that don't support them.
 
12629
      lt_prog_compiler_can_build_shared_F77=no
 
12630
      enable_shared=no
 
12631
      ;;
 
12632
 
 
12633
    sysv4*MP*)
 
12634
      if test -d /usr/nec; then
 
12635
        lt_prog_compiler_pic_F77=-Kconform_pic
 
12636
      fi
 
12637
      ;;
 
12638
 
 
12639
    hpux*)
 
12640
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12641
      # not for PA HP-UX.
 
12642
      case "$host_cpu" in
 
12643
      hppa*64*|ia64*)
 
12644
        # +Z the default
 
12645
        ;;
 
12646
      *)
 
12647
        lt_prog_compiler_pic_F77='-fPIC'
 
12648
        ;;
 
12649
      esac
 
12650
      ;;
 
12651
 
 
12652
    *)
 
12653
      lt_prog_compiler_pic_F77='-fPIC'
 
12654
      ;;
 
12655
    esac
 
12656
  else
 
12657
    # PORTME Check for flag to pass linker flags through the system compiler.
 
12658
    case $host_os in
 
12659
    aix*)
 
12660
      lt_prog_compiler_wl_F77='-Wl,'
 
12661
      if test "$host_cpu" = ia64; then
 
12662
        # AIX 5 now supports IA64 processor
 
12663
        lt_prog_compiler_static_F77='-Bstatic'
 
12664
      else
 
12665
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
12666
      fi
 
12667
      ;;
 
12668
 
 
12669
    mingw* | pw32* | os2*)
 
12670
      # This hack is so that the source file can tell whether it is being
 
12671
      # built for inclusion in a dll (and should export symbols for example).
 
12672
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
12673
      ;;
 
12674
 
 
12675
    hpux9* | hpux10* | hpux11*)
 
12676
      lt_prog_compiler_wl_F77='-Wl,'
 
12677
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12678
      # not for PA HP-UX.
 
12679
      case "$host_cpu" in
 
12680
      hppa*64*|ia64*)
 
12681
        # +Z the default
 
12682
        ;;
 
12683
      *)
 
12684
        lt_prog_compiler_pic_F77='+Z'
 
12685
        ;;
 
12686
      esac
 
12687
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
12688
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
12689
      ;;
 
12690
 
 
12691
    irix5* | irix6* | nonstopux*)
 
12692
      lt_prog_compiler_wl_F77='-Wl,'
 
12693
      # PIC (with -KPIC) is the default.
 
12694
      lt_prog_compiler_static_F77='-non_shared'
 
12695
      ;;
 
12696
 
 
12697
    newsos6)
 
12698
      lt_prog_compiler_pic_F77='-KPIC'
 
12699
      lt_prog_compiler_static_F77='-Bstatic'
 
12700
      ;;
 
12701
 
 
12702
    linux*)
 
12703
      case $CC in
 
12704
      icc|ecc)
 
12705
        lt_prog_compiler_wl_F77='-Wl,'
 
12706
        lt_prog_compiler_pic_F77='-KPIC'
 
12707
        lt_prog_compiler_static_F77='-static'
 
12708
        ;;
 
12709
      ccc)
 
12710
        lt_prog_compiler_wl_F77='-Wl,'
 
12711
        # All Alpha code is PIC.
 
12712
        lt_prog_compiler_static_F77='-non_shared'
 
12713
        ;;
 
12714
      esac
 
12715
      ;;
 
12716
 
 
12717
    osf3* | osf4* | osf5*)
 
12718
      lt_prog_compiler_wl_F77='-Wl,'
 
12719
      # All OSF/1 code is PIC.
 
12720
      lt_prog_compiler_static_F77='-non_shared'
 
12721
      ;;
 
12722
 
 
12723
    sco3.2v5*)
 
12724
      lt_prog_compiler_pic_F77='-Kpic'
 
12725
      lt_prog_compiler_static_F77='-dn'
 
12726
      ;;
 
12727
 
 
12728
    solaris*)
 
12729
      lt_prog_compiler_wl_F77='-Wl,'
 
12730
      lt_prog_compiler_pic_F77='-KPIC'
 
12731
      lt_prog_compiler_static_F77='-Bstatic'
 
12732
      ;;
 
12733
 
 
12734
    sunos4*)
 
12735
      lt_prog_compiler_wl_F77='-Qoption ld '
 
12736
      lt_prog_compiler_pic_F77='-PIC'
 
12737
      lt_prog_compiler_static_F77='-Bstatic'
 
12738
      ;;
 
12739
 
 
12740
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12741
      lt_prog_compiler_wl_F77='-Wl,'
 
12742
      lt_prog_compiler_pic_F77='-KPIC'
 
12743
      lt_prog_compiler_static_F77='-Bstatic'
 
12744
      ;;
 
12745
 
 
12746
    sysv4*MP*)
 
12747
      if test -d /usr/nec ;then
 
12748
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
12749
        lt_prog_compiler_static_F77='-Bstatic'
 
12750
      fi
 
12751
      ;;
 
12752
 
 
12753
    uts4*)
 
12754
      lt_prog_compiler_pic_F77='-pic'
 
12755
      lt_prog_compiler_static_F77='-Bstatic'
 
12756
      ;;
 
12757
 
 
12758
    *)
 
12759
      lt_prog_compiler_can_build_shared_F77=no
 
12760
      ;;
 
12761
    esac
 
12762
  fi
 
12763
 
 
12764
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
12765
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
12766
 
 
12767
#
 
12768
# Check to make sure the PIC flag actually works.
 
12769
#
 
12770
if test -n "$lt_prog_compiler_pic_F77"; then
 
12771
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
12772
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
12773
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
12774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12775
else
 
12776
  lt_prog_compiler_pic_works_F77=no
 
12777
  ac_outfile=conftest.$ac_objext
 
12778
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12779
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
12780
   # Insert the option either (1) after the last *FLAGS variable, or
 
12781
   # (2) before a word containing "conftest.", or (3) at the end.
 
12782
   # Note that $ac_compile itself does not contain backslashes and begins
 
12783
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12784
   # The option is referenced via a variable to avoid confusing sed.
 
12785
   lt_compile=`echo "$ac_compile" | $SED \
 
12786
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12787
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12788
   -e 's:$: $lt_compiler_flag:'`
 
12789
   (eval echo "\"\$as_me:12789: $lt_compile\"" >&5)
 
12790
   (eval "$lt_compile" 2>conftest.err)
 
12791
   ac_status=$?
 
12792
   cat conftest.err >&5
 
12793
   echo "$as_me:12793: \$? = $ac_status" >&5
 
12794
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12795
     # The compiler can only warn and ignore the option if not recognized
 
12796
     # So say no if there are warnings
 
12797
     if test ! -s conftest.err; then
 
12798
       lt_prog_compiler_pic_works_F77=yes
 
12799
     fi
 
12800
   fi
 
12801
   $rm conftest*
 
12802
 
 
12803
fi
 
12804
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
12805
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
12806
 
 
12807
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
12808
    case $lt_prog_compiler_pic_F77 in
 
12809
     "" | " "*) ;;
 
12810
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
12811
     esac
 
12812
else
 
12813
    lt_prog_compiler_pic_F77=
 
12814
     lt_prog_compiler_can_build_shared_F77=no
 
12815
fi
 
12816
 
 
12817
fi
 
12818
case "$host_os" in
 
12819
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12820
  *djgpp*)
 
12821
    lt_prog_compiler_pic_F77=
 
12822
    ;;
 
12823
  *)
 
12824
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
12825
    ;;
 
12826
esac
 
12827
 
 
12828
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12829
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12830
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
12831
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12832
else
 
12833
  lt_cv_prog_compiler_c_o_F77=no
 
12834
   $rm -r conftest 2>/dev/null
 
12835
   mkdir conftest
 
12836
   cd conftest
 
12837
   mkdir out
 
12838
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12839
 
 
12840
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
12841
   # that will create temporary files in the current directory regardless of
 
12842
   # the output directory.  Thus, making CWD read-only will cause this test
 
12843
   # to fail, enabling locking or at least warning the user not to do parallel
 
12844
   # builds.
 
12845
   chmod -w .
 
12846
 
 
12847
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12848
   # Insert the option either (1) after the last *FLAGS variable, or
 
12849
   # (2) before a word containing "conftest.", or (3) at the end.
 
12850
   # Note that $ac_compile itself does not contain backslashes and begins
 
12851
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12852
   lt_compile=`echo "$ac_compile" | $SED \
 
12853
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12854
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12855
   -e 's:$: $lt_compiler_flag:'`
 
12856
   (eval echo "\"\$as_me:12856: $lt_compile\"" >&5)
 
12857
   (eval "$lt_compile" 2>out/conftest.err)
 
12858
   ac_status=$?
 
12859
   cat out/conftest.err >&5
 
12860
   echo "$as_me:12860: \$? = $ac_status" >&5
 
12861
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12862
   then
 
12863
     # The compiler can only warn and ignore the option if not recognized
 
12864
     # So say no if there are warnings
 
12865
     if test ! -s out/conftest.err; then
 
12866
       lt_cv_prog_compiler_c_o_F77=yes
 
12867
     fi
 
12868
   fi
 
12869
   chmod u+w .
 
12870
   $rm conftest* out/*
 
12871
   rmdir out
 
12872
   cd ..
 
12873
   rmdir conftest
 
12874
   $rm conftest*
 
12875
 
 
12876
fi
 
12877
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
12878
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
12879
 
 
12880
 
 
12881
hard_links="nottested"
 
12882
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
12883
  # do not overwrite the value of need_locks provided by the user
 
12884
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12885
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
12886
  hard_links=yes
 
12887
  $rm conftest*
 
12888
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12889
  touch conftest.a
 
12890
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12891
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12892
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
12893
echo "${ECHO_T}$hard_links" >&6
 
12894
  if test "$hard_links" = no; then
 
12895
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12896
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12897
    need_locks=warn
 
12898
  fi
 
12899
else
 
12900
  need_locks=no
 
12901
fi
 
12902
 
 
12903
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12904
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12905
 
 
12906
  runpath_var=
 
12907
  allow_undefined_flag_F77=
 
12908
  enable_shared_with_static_runtimes_F77=no
 
12909
  archive_cmds_F77=
 
12910
  archive_expsym_cmds_F77=
 
12911
  old_archive_From_new_cmds_F77=
 
12912
  old_archive_from_expsyms_cmds_F77=
 
12913
  export_dynamic_flag_spec_F77=
 
12914
  whole_archive_flag_spec_F77=
 
12915
  thread_safe_flag_spec_F77=
 
12916
  hardcode_libdir_flag_spec_F77=
 
12917
  hardcode_libdir_flag_spec_ld_F77=
 
12918
  hardcode_libdir_separator_F77=
 
12919
  hardcode_direct_F77=no
 
12920
  hardcode_minus_L_F77=no
 
12921
  hardcode_shlibpath_var_F77=unsupported
 
12922
  link_all_deplibs_F77=unknown
 
12923
  hardcode_automatic_F77=no
 
12924
  module_cmds_F77=
 
12925
  module_expsym_cmds_F77=
 
12926
  always_export_symbols_F77=no
 
12927
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12928
  # include_expsyms should be a list of space-separated symbols to be *always*
 
12929
  # included in the symbol list
 
12930
  include_expsyms_F77=
 
12931
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
12932
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
12933
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
12934
  # as well as any symbol that contains `d'.
 
12935
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
12936
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
12937
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
12938
  # the symbol is explicitly referenced.  Since portable code cannot
 
12939
  # rely on this symbol name, it's probably fine to never include it in
 
12940
  # preloaded symbol tables.
 
12941
  extract_expsyms_cmds=
 
12942
 
 
12943
  case $host_os in
 
12944
  cygwin* | mingw* | pw32*)
 
12945
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
12946
    # When not using gcc, we currently assume that we are using
 
12947
    # Microsoft Visual C++.
 
12948
    if test "$GCC" != yes; then
 
12949
      with_gnu_ld=no
 
12950
    fi
 
12951
    ;;
 
12952
  openbsd*)
 
12953
    with_gnu_ld=no
 
12954
    ;;
 
12955
  esac
 
12956
 
 
12957
  ld_shlibs_F77=yes
 
12958
  if test "$with_gnu_ld" = yes; then
 
12959
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
12960
    wlarc='${wl}'
 
12961
 
 
12962
    # See if GNU ld supports shared libraries.
 
12963
    case $host_os in
 
12964
    aix3* | aix4* | aix5*)
 
12965
      # On AIX/PPC, the GNU linker is very broken
 
12966
      if test "$host_cpu" != ia64; then
 
12967
        ld_shlibs_F77=no
 
12968
        cat <<EOF 1>&2
 
12969
 
 
12970
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
12971
*** to be unable to reliably create shared libraries on AIX.
 
12972
*** Therefore, libtool is disabling shared libraries support.  If you
 
12973
*** really care for shared libraries, you may want to modify your PATH
 
12974
*** so that a non-GNU linker is found, and then restart.
 
12975
 
 
12976
EOF
 
12977
      fi
 
12978
      ;;
 
12979
 
 
12980
    amigaos*)
 
12981
      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)'
 
12982
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
12983
      hardcode_minus_L_F77=yes
 
12984
 
 
12985
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
12986
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
12987
      # to version 4, is to share data among multiple programs linked
 
12988
      # with the same dynamic library.  Since this doesn't match the
 
12989
      # behavior of shared libraries on other platforms, we can't use
 
12990
      # them.
 
12991
      ld_shlibs_F77=no
 
12992
      ;;
 
12993
 
 
12994
    beos*)
 
12995
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12996
        allow_undefined_flag_F77=unsupported
 
12997
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12998
        # support --undefined.  This deserves some investigation.  FIXME
 
12999
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13000
      else
 
13001
        ld_shlibs_F77=no
 
13002
      fi
 
13003
      ;;
 
13004
 
 
13005
    cygwin* | mingw* | pw32*)
 
13006
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13007
      # as there is no search path for DLLs.
 
13008
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13009
      allow_undefined_flag_F77=unsupported
 
13010
      always_export_symbols_F77=no
 
13011
      enable_shared_with_static_runtimes_F77=yes
 
13012
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13013
 
 
13014
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13015
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13016
        # If the export-symbols file already is a .def file (1st line
 
13017
        # is EXPORTS), use it as is; otherwise, prepend...
 
13018
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13019
          cp $export_symbols $output_objdir/$soname.def;
 
13020
        else
 
13021
          echo EXPORTS > $output_objdir/$soname.def;
 
13022
          cat $export_symbols >> $output_objdir/$soname.def;
 
13023
        fi~
 
13024
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13025
      else
 
13026
        ld_shlibs=no
 
13027
      fi
 
13028
      ;;
 
13029
 
 
13030
    netbsd*)
 
13031
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13032
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13033
        wlarc=
 
13034
      else
 
13035
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13036
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13037
      fi
 
13038
      ;;
 
13039
 
 
13040
    solaris* | sysv5*)
 
13041
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13042
        ld_shlibs_F77=no
 
13043
        cat <<EOF 1>&2
 
13044
 
 
13045
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13046
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13047
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13048
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13049
*** your PATH or compiler configuration so that the native linker is
 
13050
*** used, and then restart.
 
13051
 
 
13052
EOF
 
13053
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13054
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13055
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13056
      else
 
13057
        ld_shlibs_F77=no
 
13058
      fi
 
13059
      ;;
 
13060
 
 
13061
    sunos4*)
 
13062
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13063
      wlarc=
 
13064
      hardcode_direct_F77=yes
 
13065
      hardcode_shlibpath_var_F77=no
 
13066
      ;;
 
13067
 
 
13068
    *)
 
13069
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13070
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13071
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13072
      else
 
13073
        ld_shlibs_F77=no
 
13074
      fi
 
13075
      ;;
 
13076
    esac
 
13077
 
 
13078
    if test "$ld_shlibs_F77" = yes; then
 
13079
      runpath_var=LD_RUN_PATH
 
13080
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13081
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13082
      # ancient GNU ld didn't support --whole-archive et. al.
 
13083
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13084
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13085
      else
 
13086
        whole_archive_flag_spec_F77=
 
13087
      fi
 
13088
    fi
 
13089
  else
 
13090
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13091
    case $host_os in
 
13092
    aix3*)
 
13093
      allow_undefined_flag_F77=unsupported
 
13094
      always_export_symbols_F77=yes
 
13095
      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'
 
13096
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13097
      # are no directories specified by -L.
 
13098
      hardcode_minus_L_F77=yes
 
13099
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13100
        # Neither direct hardcoding nor static linking is supported with a
 
13101
        # broken collect2.
 
13102
        hardcode_direct_F77=unsupported
 
13103
      fi
 
13104
      ;;
 
13105
 
 
13106
    aix4* | aix5*)
 
13107
      if test "$host_cpu" = ia64; then
 
13108
        # On IA64, the linker does run time linking by default, so we don't
 
13109
        # have to do anything special.
 
13110
        aix_use_runtimelinking=no
 
13111
        exp_sym_flag='-Bexport'
 
13112
        no_entry_flag=""
 
13113
      else
 
13114
        # If we're using GNU nm, then we don't want the "-C" option.
 
13115
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13116
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13117
          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'
 
13118
        else
 
13119
          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'
 
13120
        fi
 
13121
        aix_use_runtimelinking=no
 
13122
 
 
13123
        # Test if we are trying to use run time linking or normal
 
13124
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13125
        # need to do runtime linking.
 
13126
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13127
          for ld_flag in $LDFLAGS; do
 
13128
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13129
            aix_use_runtimelinking=yes
 
13130
            break
 
13131
          fi
 
13132
          done
 
13133
        esac
 
13134
 
 
13135
        exp_sym_flag='-bexport'
 
13136
        no_entry_flag='-bnoentry'
 
13137
      fi
 
13138
 
 
13139
      # When large executables or shared objects are built, AIX ld can
 
13140
      # have problems creating the table of contents.  If linking a library
 
13141
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13142
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13143
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13144
 
 
13145
      archive_cmds_F77=''
 
13146
      hardcode_direct_F77=yes
 
13147
      hardcode_libdir_separator_F77=':'
 
13148
      link_all_deplibs_F77=yes
 
13149
 
 
13150
      if test "$GCC" = yes; then
 
13151
        case $host_os in aix4.012|aix4.012.*)
 
13152
        # We only want to do this on AIX 4.2 and lower, the check
 
13153
        # below for broken collect2 doesn't work under 4.3+
 
13154
          collect2name=`${CC} -print-prog-name=collect2`
 
13155
          if test -f "$collect2name" && \
 
13156
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13157
          then
 
13158
          # We have reworked collect2
 
13159
          hardcode_direct_F77=yes
 
13160
          else
 
13161
          # We have old collect2
 
13162
          hardcode_direct_F77=unsupported
 
13163
          # It fails to find uninstalled libraries when the uninstalled
 
13164
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13165
          # to unsupported forces relinking
 
13166
          hardcode_minus_L_F77=yes
 
13167
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13168
          hardcode_libdir_separator_F77=
 
13169
          fi
 
13170
        esac
 
13171
        shared_flag='-shared'
 
13172
      else
 
13173
        # not using gcc
 
13174
        if test "$host_cpu" = ia64; then
 
13175
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13176
        # chokes on -Wl,-G. The following line is correct:
 
13177
          shared_flag='-G'
 
13178
        else
 
13179
        if test "$aix_use_runtimelinking" = yes; then
 
13180
            shared_flag='${wl}-G'
 
13181
          else
 
13182
            shared_flag='${wl}-bM:SRE'
 
13183
        fi
 
13184
        fi
 
13185
      fi
 
13186
 
 
13187
      # It seems that -bexpall does not export symbols beginning with
 
13188
      # underscore (_), so it is better to generate a list of symbols to export.
 
13189
      always_export_symbols_F77=yes
 
13190
      if test "$aix_use_runtimelinking" = yes; then
 
13191
        # Warning - without using the other runtime loading flags (-brtl),
 
13192
        # -berok will link without error, but may produce a broken library.
 
13193
        allow_undefined_flag_F77='-berok'
 
13194
       # Determine the default libpath from the value encoded in an empty executable.
 
13195
       cat >conftest.$ac_ext <<_ACEOF
 
13196
      program main
 
13197
 
 
13198
      end
 
13199
_ACEOF
 
13200
rm -f conftest.$ac_objext conftest$ac_exeext
 
13201
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13202
  (eval $ac_link) 2>&5
 
13203
  ac_status=$?
 
13204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13205
  (exit $ac_status); } &&
 
13206
         { ac_try='test -s conftest$ac_exeext'
 
13207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13208
  (eval $ac_try) 2>&5
 
13209
  ac_status=$?
 
13210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13211
  (exit $ac_status); }; }; then
 
13212
 
 
13213
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13214
}'`
 
13215
# Check for a 64-bit object if we didn't find anything.
 
13216
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; }
 
13217
}'`; fi
 
13218
else
 
13219
  echo "$as_me: failed program was:" >&5
 
13220
sed 's/^/| /' conftest.$ac_ext >&5
 
13221
 
 
13222
fi
 
13223
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13224
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13225
 
 
13226
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13227
        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"
 
13228
       else
 
13229
        if test "$host_cpu" = ia64; then
 
13230
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13231
          allow_undefined_flag_F77="-z nodefs"
 
13232
          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"
 
13233
        else
 
13234
         # Determine the default libpath from the value encoded in an empty executable.
 
13235
         cat >conftest.$ac_ext <<_ACEOF
 
13236
      program main
 
13237
 
 
13238
      end
 
13239
_ACEOF
 
13240
rm -f conftest.$ac_objext conftest$ac_exeext
 
13241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13242
  (eval $ac_link) 2>&5
 
13243
  ac_status=$?
 
13244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13245
  (exit $ac_status); } &&
 
13246
         { ac_try='test -s conftest$ac_exeext'
 
13247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13248
  (eval $ac_try) 2>&5
 
13249
  ac_status=$?
 
13250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13251
  (exit $ac_status); }; }; then
 
13252
 
 
13253
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13254
}'`
 
13255
# Check for a 64-bit object if we didn't find anything.
 
13256
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; }
 
13257
}'`; fi
 
13258
else
 
13259
  echo "$as_me: failed program was:" >&5
 
13260
sed 's/^/| /' conftest.$ac_ext >&5
 
13261
 
 
13262
fi
 
13263
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
13264
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13265
 
 
13266
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13267
          # Warning - without using the other run time loading flags,
 
13268
          # -berok will link without error, but may produce a broken library.
 
13269
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13270
          allow_undefined_flag_F77=' ${wl}-berok'
 
13271
          # -bexpall does not export symbols beginning with underscore (_)
 
13272
          always_export_symbols_F77=yes
 
13273
          # Exported symbols can be pulled into shared objects from archives
 
13274
          whole_archive_flag_spec_F77=' '
 
13275
          archive_cmds_need_lc_F77=yes
 
13276
          # This is similar to how AIX traditionally builds it's shared libraries.
 
13277
          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'
 
13278
        fi
 
13279
      fi
 
13280
      ;;
 
13281
 
 
13282
    amigaos*)
 
13283
      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)'
 
13284
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13285
      hardcode_minus_L_F77=yes
 
13286
      # see comment about different semantics on the GNU ld section
 
13287
      ld_shlibs_F77=no
 
13288
      ;;
 
13289
 
 
13290
    bsdi4*)
 
13291
      export_dynamic_flag_spec_F77=-rdynamic
 
13292
      ;;
 
13293
 
 
13294
    cygwin* | mingw* | pw32*)
 
13295
      # When not using gcc, we currently assume that we are using
 
13296
      # Microsoft Visual C++.
 
13297
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13298
      # no search path for DLLs.
 
13299
      hardcode_libdir_flag_spec_F77=' '
 
13300
      allow_undefined_flag_F77=unsupported
 
13301
      # Tell ltmain to make .lib files, not .a files.
 
13302
      libext=lib
 
13303
      # Tell ltmain to make .dll files, not .so files.
 
13304
      shrext=".dll"
 
13305
      # FIXME: Setting linknames here is a bad hack.
 
13306
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13307
      # The linker will automatically build a .lib file if we build a DLL.
 
13308
      old_archive_From_new_cmds_F77='true'
 
13309
      # FIXME: Should let the user specify the lib program.
 
13310
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13311
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13312
      enable_shared_with_static_runtimes_F77=yes
 
13313
      ;;
 
13314
 
 
13315
    darwin* | rhapsody*)
 
13316
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
13317
      archive_cmds_need_lc_F77=no
 
13318
      case "$host_os" in
 
13319
      rhapsody* | darwin1.[012])
 
13320
        allow_undefined_flag_F77='-undefined suppress'
 
13321
        ;;
 
13322
      *) # Darwin 1.3 on
 
13323
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13324
        ;;
 
13325
      esac
 
13326
      # FIXME: Relying on posixy $() will cause problems for
 
13327
      #        cross-compilation, but unfortunately the echo tests do not
 
13328
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
13329
      #        `"' quotes if we put them in here... so don't!
 
13330
        lt_int_apple_cc_single_mod=no
 
13331
        output_verbose_link_cmd='echo'
 
13332
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
13333
          lt_int_apple_cc_single_mod=yes
 
13334
        fi
 
13335
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13336
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13337
        else
 
13338
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13339
      fi
 
13340
      module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
13341
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
13342
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13343
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13344
        else
 
13345
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13346
        fi
 
13347
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13348
      hardcode_direct_F77=no
 
13349
      hardcode_automatic_F77=yes
 
13350
      hardcode_shlibpath_var_F77=unsupported
 
13351
      whole_archive_flag_spec_F77='-all_load $convenience'
 
13352
      link_all_deplibs_F77=yes
 
13353
    fi
 
13354
      ;;
 
13355
 
 
13356
    dgux*)
 
13357
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13358
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13359
      hardcode_shlibpath_var_F77=no
 
13360
      ;;
 
13361
 
 
13362
    freebsd1*)
 
13363
      ld_shlibs_F77=no
 
13364
      ;;
 
13365
 
 
13366
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
13367
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
13368
    # does not break anything, and helps significantly (at the cost of a little
 
13369
    # extra space).
 
13370
    freebsd2.2*)
 
13371
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
13372
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13373
      hardcode_direct_F77=yes
 
13374
      hardcode_shlibpath_var_F77=no
 
13375
      ;;
 
13376
 
 
13377
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
13378
    freebsd2*)
 
13379
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13380
      hardcode_direct_F77=yes
 
13381
      hardcode_minus_L_F77=yes
 
13382
      hardcode_shlibpath_var_F77=no
 
13383
      ;;
 
13384
 
 
13385
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
13386
    freebsd*)
 
13387
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
13388
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13389
      hardcode_direct_F77=yes
 
13390
      hardcode_shlibpath_var_F77=no
 
13391
      ;;
 
13392
 
 
13393
    hpux9*)
 
13394
      if test "$GCC" = yes; then
 
13395
        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'
 
13396
      else
 
13397
        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'
 
13398
      fi
 
13399
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13400
      hardcode_libdir_separator_F77=:
 
13401
      hardcode_direct_F77=yes
 
13402
 
 
13403
      # hardcode_minus_L: Not really in the search PATH,
 
13404
      # but as the default location of the library.
 
13405
      hardcode_minus_L_F77=yes
 
13406
      export_dynamic_flag_spec_F77='${wl}-E'
 
13407
      ;;
 
13408
 
 
13409
    hpux10* | hpux11*)
 
13410
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
13411
        case "$host_cpu" in
 
13412
        hppa*64*|ia64*)
 
13413
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13414
          ;;
 
13415
        *)
 
13416
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
13417
          ;;
 
13418
        esac
 
13419
      else
 
13420
        case "$host_cpu" in
 
13421
        hppa*64*|ia64*)
 
13422
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13423
          ;;
 
13424
        *)
 
13425
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
13426
          ;;
 
13427
        esac
 
13428
      fi
 
13429
      if test "$with_gnu_ld" = no; then
 
13430
        case "$host_cpu" in
 
13431
        hppa*64*)
 
13432
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13433
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
13434
          hardcode_libdir_separator_F77=:
 
13435
          hardcode_direct_F77=no
 
13436
          hardcode_shlibpath_var_F77=no
 
13437
          ;;
 
13438
        ia64*)
 
13439
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13440
          hardcode_direct_F77=no
 
13441
          hardcode_shlibpath_var_F77=no
 
13442
 
 
13443
          # hardcode_minus_L: Not really in the search PATH,
 
13444
          # but as the default location of the library.
 
13445
          hardcode_minus_L_F77=yes
 
13446
          ;;
 
13447
        *)
 
13448
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13449
          hardcode_libdir_separator_F77=:
 
13450
          hardcode_direct_F77=yes
 
13451
          export_dynamic_flag_spec_F77='${wl}-E'
 
13452
 
 
13453
          # hardcode_minus_L: Not really in the search PATH,
 
13454
          # but as the default location of the library.
 
13455
          hardcode_minus_L_F77=yes
 
13456
          ;;
 
13457
        esac
 
13458
      fi
 
13459
      ;;
 
13460
 
 
13461
    irix5* | irix6* | nonstopux*)
 
13462
      if test "$GCC" = yes; then
 
13463
        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'
 
13464
      else
 
13465
        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'
 
13466
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
13467
      fi
 
13468
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13469
      hardcode_libdir_separator_F77=:
 
13470
      link_all_deplibs_F77=yes
 
13471
      ;;
 
13472
 
 
13473
    netbsd*)
 
13474
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13475
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
13476
      else
 
13477
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
13478
      fi
 
13479
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13480
      hardcode_direct_F77=yes
 
13481
      hardcode_shlibpath_var_F77=no
 
13482
      ;;
 
13483
 
 
13484
    newsos6)
 
13485
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13486
      hardcode_direct_F77=yes
 
13487
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13488
      hardcode_libdir_separator_F77=:
 
13489
      hardcode_shlibpath_var_F77=no
 
13490
      ;;
 
13491
 
 
13492
    openbsd*)
 
13493
      hardcode_direct_F77=yes
 
13494
      hardcode_shlibpath_var_F77=no
 
13495
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13496
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
13497
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13498
        export_dynamic_flag_spec_F77='${wl}-E'
 
13499
      else
 
13500
       case $host_os in
 
13501
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
13502
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13503
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
13504
           ;;
 
13505
         *)
 
13506
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
13507
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13508
           ;;
 
13509
       esac
 
13510
      fi
 
13511
      ;;
 
13512
 
 
13513
    os2*)
 
13514
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13515
      hardcode_minus_L_F77=yes
 
13516
      allow_undefined_flag_F77=unsupported
 
13517
      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'
 
13518
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
13519
      ;;
 
13520
 
 
13521
    osf3*)
 
13522
      if test "$GCC" = yes; then
 
13523
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
13524
        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'
 
13525
      else
 
13526
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
13527
        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'
 
13528
      fi
 
13529
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13530
      hardcode_libdir_separator_F77=:
 
13531
      ;;
 
13532
 
 
13533
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
13534
      if test "$GCC" = yes; then
 
13535
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
13536
        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'
 
13537
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
13538
      else
 
13539
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
13540
        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'
 
13541
        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~
 
13542
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
13543
 
 
13544
        # Both c and cxx compiler support -rpath directly
 
13545
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
13546
      fi
 
13547
      hardcode_libdir_separator_F77=:
 
13548
      ;;
 
13549
 
 
13550
    sco3.2v5*)
 
13551
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13552
      hardcode_shlibpath_var_F77=no
 
13553
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
13554
      runpath_var=LD_RUN_PATH
 
13555
      hardcode_runpath_var=yes
 
13556
      ;;
 
13557
 
 
13558
    solaris*)
 
13559
      no_undefined_flag_F77=' -z text'
 
13560
      if test "$GCC" = yes; then
 
13561
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13562
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13563
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
13564
      else
 
13565
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13566
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13567
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
13568
      fi
 
13569
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13570
      hardcode_shlibpath_var_F77=no
 
13571
      case $host_os in
 
13572
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
13573
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
13574
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
13575
      esac
 
13576
      link_all_deplibs_F77=yes
 
13577
      ;;
 
13578
 
 
13579
    sunos4*)
 
13580
      if test "x$host_vendor" = xsequent; then
 
13581
        # Use $CC to link under sequent, because it throws in some extra .o
 
13582
        # files that make .init and .fini sections work.
 
13583
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
13584
      else
 
13585
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
13586
      fi
 
13587
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13588
      hardcode_direct_F77=yes
 
13589
      hardcode_minus_L_F77=yes
 
13590
      hardcode_shlibpath_var_F77=no
 
13591
      ;;
 
13592
 
 
13593
    sysv4)
 
13594
      case $host_vendor in
 
13595
        sni)
 
13596
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13597
          hardcode_direct_F77=yes # is this really true???
 
13598
        ;;
 
13599
        siemens)
 
13600
          ## LD is ld it makes a PLAMLIB
 
13601
          ## CC just makes a GrossModule.
 
13602
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
13603
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
13604
          hardcode_direct_F77=no
 
13605
        ;;
 
13606
        motorola)
 
13607
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13608
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
13609
        ;;
 
13610
      esac
 
13611
      runpath_var='LD_RUN_PATH'
 
13612
      hardcode_shlibpath_var_F77=no
 
13613
      ;;
 
13614
 
 
13615
    sysv4.3*)
 
13616
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13617
      hardcode_shlibpath_var_F77=no
 
13618
      export_dynamic_flag_spec_F77='-Bexport'
 
13619
      ;;
 
13620
 
 
13621
    sysv4*MP*)
 
13622
      if test -d /usr/nec; then
 
13623
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13624
        hardcode_shlibpath_var_F77=no
 
13625
        runpath_var=LD_RUN_PATH
 
13626
        hardcode_runpath_var=yes
 
13627
        ld_shlibs_F77=yes
 
13628
      fi
 
13629
      ;;
 
13630
 
 
13631
    sysv4.2uw2*)
 
13632
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
13633
      hardcode_direct_F77=yes
 
13634
      hardcode_minus_L_F77=no
 
13635
      hardcode_shlibpath_var_F77=no
 
13636
      hardcode_runpath_var=yes
 
13637
      runpath_var=LD_RUN_PATH
 
13638
      ;;
 
13639
 
 
13640
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
13641
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
13642
      if test "$GCC" = yes; then
 
13643
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13644
      else
 
13645
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13646
      fi
 
13647
      runpath_var='LD_RUN_PATH'
 
13648
      hardcode_shlibpath_var_F77=no
 
13649
      ;;
 
13650
 
 
13651
    sysv5*)
 
13652
      no_undefined_flag_F77=' -z text'
 
13653
      # $CC -shared without GNU ld will not create a library from C++
 
13654
      # object files and a static libstdc++, better avoid it by now
 
13655
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13656
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13657
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
13658
      hardcode_libdir_flag_spec_F77=
 
13659
      hardcode_shlibpath_var_F77=no
 
13660
      runpath_var='LD_RUN_PATH'
 
13661
      ;;
 
13662
 
 
13663
    uts4*)
 
13664
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13665
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13666
      hardcode_shlibpath_var_F77=no
 
13667
      ;;
 
13668
 
 
13669
    *)
 
13670
      ld_shlibs_F77=no
 
13671
      ;;
 
13672
    esac
 
13673
  fi
 
13674
 
 
13675
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
13676
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
13677
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13678
 
 
13679
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13680
if test "$GCC" = yes; then
 
13681
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13682
fi
 
13683
 
 
13684
#
 
13685
# Do we need to explicitly link libc?
 
13686
#
 
13687
case "x$archive_cmds_need_lc_F77" in
 
13688
x|xyes)
 
13689
  # Assume -lc should be added
 
13690
  archive_cmds_need_lc_F77=yes
 
13691
 
 
13692
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13693
    case $archive_cmds_F77 in
 
13694
    *'~'*)
 
13695
      # FIXME: we may have to deal with multi-command sequences.
 
13696
      ;;
 
13697
    '$CC '*)
 
13698
      # Test whether the compiler implicitly links with -lc since on some
 
13699
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13700
      # to ld, don't add -lc before -lgcc.
 
13701
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13702
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13703
      $rm conftest*
 
13704
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13705
 
 
13706
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13707
  (eval $ac_compile) 2>&5
 
13708
  ac_status=$?
 
13709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13710
  (exit $ac_status); } 2>conftest.err; then
 
13711
        soname=conftest
 
13712
        lib=conftest
 
13713
        libobjs=conftest.$ac_objext
 
13714
        deplibs=
 
13715
        wl=$lt_prog_compiler_wl_F77
 
13716
        compiler_flags=-v
 
13717
        linker_flags=-v
 
13718
        verstring=
 
13719
        output_objdir=.
 
13720
        libname=conftest
 
13721
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
13722
        allow_undefined_flag_F77=
 
13723
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13724
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13725
  ac_status=$?
 
13726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13727
  (exit $ac_status); }
 
13728
        then
 
13729
          archive_cmds_need_lc_F77=no
 
13730
        else
 
13731
          archive_cmds_need_lc_F77=yes
 
13732
        fi
 
13733
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
13734
      else
 
13735
        cat conftest.err 1>&5
 
13736
      fi
 
13737
      $rm conftest*
 
13738
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
13739
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
13740
      ;;
 
13741
    esac
 
13742
  fi
 
13743
  ;;
 
13744
esac
 
13745
 
 
13746
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13747
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13748
hardcode_action_F77=
 
13749
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
13750
   test -n "$runpath_var F77" || \
 
13751
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
13752
 
 
13753
  # We can hardcode non-existant directories.
 
13754
  if test "$hardcode_direct_F77" != no &&
 
13755
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13756
     # have to relink, otherwise we might link with an installed library
 
13757
     # when we should be linking with a yet-to-be-installed one
 
13758
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
13759
     test "$hardcode_minus_L_F77" != no; then
 
13760
    # Linking always hardcodes the temporary library directory.
 
13761
    hardcode_action_F77=relink
 
13762
  else
 
13763
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13764
    hardcode_action_F77=immediate
 
13765
  fi
 
13766
else
 
13767
  # We cannot hardcode anything, or else we can only hardcode existing
 
13768
  # directories.
 
13769
  hardcode_action_F77=unsupported
 
13770
fi
 
13771
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
13772
echo "${ECHO_T}$hardcode_action_F77" >&6
 
13773
 
 
13774
if test "$hardcode_action_F77" = relink; then
 
13775
  # Fast installation is not supported
 
13776
  enable_fast_install=no
 
13777
elif test "$shlibpath_overrides_runpath" = yes ||
 
13778
     test "$enable_shared" = no; then
 
13779
  # Fast installation is not necessary
 
13780
  enable_fast_install=needless
 
13781
fi
 
13782
 
 
13783
striplib=
 
13784
old_striplib=
 
13785
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
13786
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
13787
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
13788
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
13789
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
13790
  echo "$as_me:$LINENO: result: yes" >&5
 
13791
echo "${ECHO_T}yes" >&6
 
13792
else
 
13793
# FIXME - insert some real tests, host_os isn't really good enough
 
13794
  case $host_os in
 
13795
   darwin*)
 
13796
       if test -n "$STRIP" ; then
 
13797
         striplib="$STRIP -x"
 
13798
         echo "$as_me:$LINENO: result: yes" >&5
 
13799
echo "${ECHO_T}yes" >&6
 
13800
       else
 
13801
  echo "$as_me:$LINENO: result: no" >&5
 
13802
echo "${ECHO_T}no" >&6
 
13803
fi
 
13804
       ;;
 
13805
   *)
 
13806
  echo "$as_me:$LINENO: result: no" >&5
 
13807
echo "${ECHO_T}no" >&6
 
13808
    ;;
 
13809
  esac
 
13810
fi
 
13811
 
 
13812
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13813
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13814
library_names_spec=
 
13815
libname_spec='lib$name'
 
13816
soname_spec=
 
13817
shrext=".so"
 
13818
postinstall_cmds=
 
13819
postuninstall_cmds=
 
13820
finish_cmds=
 
13821
finish_eval=
 
13822
shlibpath_var=
 
13823
shlibpath_overrides_runpath=unknown
 
13824
version_type=none
 
13825
dynamic_linker="$host_os ld.so"
 
13826
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13827
if test "$GCC" = yes; then
 
13828
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13829
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
13830
    # if the path contains ";" then we assume it to be the separator
 
13831
    # otherwise default to the standard path separator (i.e. ":") - it is
 
13832
    # assumed that no part of a normal pathname contains ";" but that should
 
13833
    # okay in the real world where ";" in dirpaths is itself problematic.
 
13834
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13835
  else
 
13836
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13837
  fi
 
13838
else
 
13839
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13840
fi
 
13841
need_lib_prefix=unknown
 
13842
hardcode_into_libs=no
 
13843
 
 
13844
# when you set need_version to no, make sure it does not cause -set_version
 
13845
# flags to be left without arguments
 
13846
need_version=unknown
 
13847
 
 
13848
case $host_os in
 
13849
aix3*)
 
13850
  version_type=linux
 
13851
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13852
  shlibpath_var=LIBPATH
 
13853
 
 
13854
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13855
  soname_spec='${libname}${release}${shared_ext}$major'
 
13856
  ;;
 
13857
 
 
13858
aix4* | aix5*)
 
13859
  version_type=linux
 
13860
  need_lib_prefix=no
 
13861
  need_version=no
 
13862
  hardcode_into_libs=yes
 
13863
  if test "$host_cpu" = ia64; then
 
13864
    # AIX 5 supports IA64
 
13865
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13866
    shlibpath_var=LD_LIBRARY_PATH
 
13867
  else
 
13868
    # With GCC up to 2.95.x, collect2 would create an import file
 
13869
    # for dependence libraries.  The import file would start with
 
13870
    # the line `#! .'.  This would cause the generated library to
 
13871
    # depend on `.', always an invalid library.  This was fixed in
 
13872
    # development snapshots of GCC prior to 3.0.
 
13873
    case $host_os in
 
13874
      aix4 | aix4.[01] | aix4.[01].*)
 
13875
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13876
           echo ' yes '
 
13877
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13878
        :
 
13879
      else
 
13880
        can_build_shared=no
 
13881
      fi
 
13882
      ;;
 
13883
    esac
 
13884
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13885
    # soname into executable. Probably we can add versioning support to
 
13886
    # collect2, so additional links can be useful in future.
 
13887
    if test "$aix_use_runtimelinking" = yes; then
 
13888
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13889
      # instead of lib<name>.a to let people know that these are not
 
13890
      # typical AIX shared libraries.
 
13891
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13892
    else
 
13893
      # We preserve .a as extension for shared libraries through AIX4.2
 
13894
      # and later when we are not doing run time linking.
 
13895
      library_names_spec='${libname}${release}.a $libname.a'
 
13896
      soname_spec='${libname}${release}${shared_ext}$major'
 
13897
    fi
 
13898
    shlibpath_var=LIBPATH
 
13899
  fi
 
13900
  ;;
 
13901
 
 
13902
amigaos*)
 
13903
  library_names_spec='$libname.ixlibrary $libname.a'
 
13904
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13905
  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'
 
13906
  ;;
 
13907
 
 
13908
beos*)
 
13909
  library_names_spec='${libname}${shared_ext}'
 
13910
  dynamic_linker="$host_os ld.so"
 
13911
  shlibpath_var=LIBRARY_PATH
 
13912
  ;;
 
13913
 
 
13914
bsdi4*)
 
13915
  version_type=linux
 
13916
  need_version=no
 
13917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13918
  soname_spec='${libname}${release}${shared_ext}$major'
 
13919
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13920
  shlibpath_var=LD_LIBRARY_PATH
 
13921
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13922
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13923
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13924
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13925
  # libtool to hard-code these into programs
 
13926
  ;;
 
13927
 
 
13928
cygwin* | mingw* | pw32*)
 
13929
  version_type=windows
 
13930
  shrext=".dll"
 
13931
  need_version=no
 
13932
  need_lib_prefix=no
 
13933
 
 
13934
  case $GCC,$host_os in
 
13935
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13936
    library_names_spec='$libname.dll.a'
 
13937
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13938
    postinstall_cmds='base_file=`basename \${file}`~
 
13939
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13940
      dldir=$destdir/`dirname \$dlpath`~
 
13941
      test -d \$dldir || mkdir -p \$dldir~
 
13942
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13943
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13944
      dlpath=$dir/\$dldll~
 
13945
       $rm \$dlpath'
 
13946
    shlibpath_overrides_runpath=yes
 
13947
 
 
13948
    case $host_os in
 
13949
    cygwin*)
 
13950
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13951
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13952
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
 
13953
      ;;
 
13954
    mingw*)
 
13955
      # MinGW DLLs use traditional 'lib' prefix
 
13956
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13957
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13958
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13959
        # It is most probably a Windows format PATH printed by
 
13960
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13961
        # path with ; separators, and with drive letters. We can handle the
 
13962
        # drive letters (cygwin fileutils understands them), so leave them,
 
13963
        # especially as we might pass files found there to a mingw objdump,
 
13964
        # which wouldn't understand a cygwinified path. Ahh.
 
13965
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13966
      else
 
13967
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13968
      fi
 
13969
      ;;
 
13970
    pw32*)
 
13971
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13972
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13973
      ;;
 
13974
    esac
 
13975
    ;;
 
13976
 
 
13977
  *)
 
13978
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13979
    ;;
 
13980
  esac
 
13981
  dynamic_linker='Win32 ld.exe'
 
13982
  # FIXME: first we should search . and the directory the executable is in
 
13983
  shlibpath_var=PATH
 
13984
  ;;
 
13985
 
 
13986
darwin* | rhapsody*)
 
13987
  dynamic_linker="$host_os dyld"
 
13988
  version_type=darwin
 
13989
  need_lib_prefix=no
 
13990
  need_version=no
 
13991
  # FIXME: Relying on posixy $() will cause problems for
 
13992
  #        cross-compilation, but unfortunately the echo tests do not
 
13993
  #        yet detect zsh echo's removal of \ escapes.
 
13994
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13995
  soname_spec='${libname}${release}${major}$shared_ext'
 
13996
  shlibpath_overrides_runpath=yes
 
13997
  shlibpath_var=DYLD_LIBRARY_PATH
 
13998
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
13999
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14000
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
14001
  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"`
 
14002
  fi
 
14003
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14004
  ;;
 
14005
 
 
14006
dgux*)
 
14007
  version_type=linux
 
14008
  need_lib_prefix=no
 
14009
  need_version=no
 
14010
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14011
  soname_spec='${libname}${release}${shared_ext}$major'
 
14012
  shlibpath_var=LD_LIBRARY_PATH
 
14013
  ;;
 
14014
 
 
14015
freebsd1*)
 
14016
  dynamic_linker=no
 
14017
  ;;
 
14018
 
 
14019
freebsd*-gnu*)
 
14020
  version_type=linux
 
14021
  need_lib_prefix=no
 
14022
  need_version=no
 
14023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14024
  soname_spec='${libname}${release}${shared_ext}$major'
 
14025
  shlibpath_var=LD_LIBRARY_PATH
 
14026
  shlibpath_overrides_runpath=no
 
14027
  hardcode_into_libs=yes
 
14028
  dynamic_linker='GNU ld.so'
 
14029
  ;;
 
14030
 
 
14031
freebsd*)
 
14032
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14033
  version_type=freebsd-$objformat
 
14034
  case $version_type in
 
14035
    freebsd-elf*)
 
14036
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14037
      need_version=no
 
14038
      need_lib_prefix=no
 
14039
      ;;
 
14040
    freebsd-*)
 
14041
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14042
      need_version=yes
 
14043
      ;;
 
14044
  esac
 
14045
  shlibpath_var=LD_LIBRARY_PATH
 
14046
  case $host_os in
 
14047
  freebsd2*)
 
14048
    shlibpath_overrides_runpath=yes
 
14049
    ;;
 
14050
  freebsd3.01* | freebsdelf3.01*)
 
14051
    shlibpath_overrides_runpath=yes
 
14052
    hardcode_into_libs=yes
 
14053
    ;;
 
14054
  *) # from 3.2 on
 
14055
    shlibpath_overrides_runpath=no
 
14056
    hardcode_into_libs=yes
 
14057
    ;;
 
14058
  esac
 
14059
  ;;
 
14060
 
 
14061
gnu*)
 
14062
  version_type=linux
 
14063
  need_lib_prefix=no
 
14064
  need_version=no
 
14065
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14066
  soname_spec='${libname}${release}${shared_ext}$major'
 
14067
  shlibpath_var=LD_LIBRARY_PATH
 
14068
  hardcode_into_libs=yes
 
14069
  ;;
 
14070
 
 
14071
hpux9* | hpux10* | hpux11*)
 
14072
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14073
  # link against other versions.
 
14074
  version_type=sunos
 
14075
  need_lib_prefix=no
 
14076
  need_version=no
 
14077
  case "$host_cpu" in
 
14078
  ia64*)
 
14079
    shrext='.so'
 
14080
    hardcode_into_libs=yes
 
14081
    dynamic_linker="$host_os dld.so"
 
14082
    shlibpath_var=LD_LIBRARY_PATH
 
14083
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14084
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14085
    soname_spec='${libname}${release}${shared_ext}$major'
 
14086
    if test "X$HPUX_IA64_MODE" = X32; then
 
14087
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14088
    else
 
14089
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14090
    fi
 
14091
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14092
    ;;
 
14093
   hppa*64*)
 
14094
     shrext='.sl'
 
14095
     hardcode_into_libs=yes
 
14096
     dynamic_linker="$host_os dld.sl"
 
14097
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14098
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14099
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14100
     soname_spec='${libname}${release}${shared_ext}$major'
 
14101
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14102
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14103
     ;;
 
14104
   *)
 
14105
    shrext='.sl'
 
14106
    dynamic_linker="$host_os dld.sl"
 
14107
    shlibpath_var=SHLIB_PATH
 
14108
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14109
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14110
    soname_spec='${libname}${release}${shared_ext}$major'
 
14111
    ;;
 
14112
  esac
 
14113
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14114
  postinstall_cmds='chmod 555 $lib'
 
14115
  ;;
 
14116
 
 
14117
irix5* | irix6* | nonstopux*)
 
14118
  case $host_os in
 
14119
    nonstopux*) version_type=nonstopux ;;
 
14120
    *)
 
14121
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14122
                version_type=linux
 
14123
        else
 
14124
                version_type=irix
 
14125
        fi ;;
 
14126
  esac
 
14127
  need_lib_prefix=no
 
14128
  need_version=no
 
14129
  soname_spec='${libname}${release}${shared_ext}$major'
 
14130
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14131
  case $host_os in
 
14132
  irix5* | nonstopux*)
 
14133
    libsuff= shlibsuff=
 
14134
    ;;
 
14135
  *)
 
14136
    case $LD in # libtool.m4 will add one of these switches to LD
 
14137
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14138
      libsuff= shlibsuff= libmagic=32-bit;;
 
14139
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14140
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14141
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14142
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14143
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14144
    esac
 
14145
    ;;
 
14146
  esac
 
14147
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14148
  shlibpath_overrides_runpath=no
 
14149
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14150
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14151
  hardcode_into_libs=yes
 
14152
  ;;
 
14153
 
 
14154
# No shared lib support for Linux oldld, aout, or coff.
 
14155
linux*oldld* | linux*aout* | linux*coff*)
 
14156
  dynamic_linker=no
 
14157
  ;;
 
14158
 
 
14159
# This must be Linux ELF.
 
14160
linux*)
 
14161
  version_type=linux
 
14162
  need_lib_prefix=no
 
14163
  need_version=no
 
14164
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14165
  soname_spec='${libname}${release}${shared_ext}$major'
 
14166
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14167
  shlibpath_var=LD_LIBRARY_PATH
 
14168
  shlibpath_overrides_runpath=no
 
14169
  # This implies no fast_install, which is unacceptable.
 
14170
  # Some rework will be needed to allow for fast_install
 
14171
  # before this can be enabled.
 
14172
  hardcode_into_libs=yes
 
14173
 
 
14174
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14175
  # powerpc, because MkLinux only supported shared libraries with the
 
14176
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14177
  # most powerpc-linux boxes support dynamic linking these days and
 
14178
  # people can always --disable-shared, the test was removed, and we
 
14179
  # assume the GNU/Linux dynamic linker is in use.
 
14180
  dynamic_linker='GNU/Linux ld.so'
 
14181
  ;;
 
14182
 
 
14183
netbsd*)
 
14184
  version_type=sunos
 
14185
  need_lib_prefix=no
 
14186
  need_version=no
 
14187
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14188
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14189
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14190
    dynamic_linker='NetBSD (a.out) ld.so'
 
14191
  else
 
14192
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
14193
    soname_spec='${libname}${release}${shared_ext}$major'
 
14194
    dynamic_linker='NetBSD ld.elf_so'
 
14195
  fi
 
14196
  shlibpath_var=LD_LIBRARY_PATH
 
14197
  shlibpath_overrides_runpath=yes
 
14198
  hardcode_into_libs=yes
 
14199
  ;;
 
14200
 
 
14201
newsos6)
 
14202
  version_type=linux
 
14203
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14204
  shlibpath_var=LD_LIBRARY_PATH
 
14205
  shlibpath_overrides_runpath=yes
 
14206
  ;;
 
14207
 
 
14208
nto-qnx)
 
14209
  version_type=linux
 
14210
  need_lib_prefix=no
 
14211
  need_version=no
 
14212
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14213
  soname_spec='${libname}${release}${shared_ext}$major'
 
14214
  shlibpath_var=LD_LIBRARY_PATH
 
14215
  shlibpath_overrides_runpath=yes
 
14216
  ;;
 
14217
 
 
14218
openbsd*)
 
14219
  version_type=sunos
 
14220
  need_lib_prefix=no
 
14221
  need_version=no
 
14222
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14223
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14224
  shlibpath_var=LD_LIBRARY_PATH
 
14225
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14226
    case $host_os in
 
14227
      openbsd2.[89] | openbsd2.[89].*)
 
14228
        shlibpath_overrides_runpath=no
 
14229
        ;;
 
14230
      *)
 
14231
        shlibpath_overrides_runpath=yes
 
14232
        ;;
 
14233
      esac
 
14234
  else
 
14235
    shlibpath_overrides_runpath=yes
 
14236
  fi
 
14237
  ;;
 
14238
 
 
14239
os2*)
 
14240
  libname_spec='$name'
 
14241
  shrext=".dll"
 
14242
  need_lib_prefix=no
 
14243
  library_names_spec='$libname${shared_ext} $libname.a'
 
14244
  dynamic_linker='OS/2 ld.exe'
 
14245
  shlibpath_var=LIBPATH
 
14246
  ;;
 
14247
 
 
14248
osf3* | osf4* | osf5*)
 
14249
  version_type=osf
 
14250
  need_lib_prefix=no
 
14251
  need_version=no
 
14252
  soname_spec='${libname}${release}${shared_ext}$major'
 
14253
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14254
  shlibpath_var=LD_LIBRARY_PATH
 
14255
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14256
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14257
  ;;
 
14258
 
 
14259
sco3.2v5*)
 
14260
  version_type=osf
 
14261
  soname_spec='${libname}${release}${shared_ext}$major'
 
14262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14263
  shlibpath_var=LD_LIBRARY_PATH
 
14264
  ;;
 
14265
 
 
14266
solaris*)
 
14267
  version_type=linux
 
14268
  need_lib_prefix=no
 
14269
  need_version=no
 
14270
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14271
  soname_spec='${libname}${release}${shared_ext}$major'
 
14272
  shlibpath_var=LD_LIBRARY_PATH
 
14273
  shlibpath_overrides_runpath=yes
 
14274
  hardcode_into_libs=yes
 
14275
  # ldd complains unless libraries are executable
 
14276
  postinstall_cmds='chmod +x $lib'
 
14277
  ;;
 
14278
 
 
14279
sunos4*)
 
14280
  version_type=sunos
 
14281
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14282
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14283
  shlibpath_var=LD_LIBRARY_PATH
 
14284
  shlibpath_overrides_runpath=yes
 
14285
  if test "$with_gnu_ld" = yes; then
 
14286
    need_lib_prefix=no
 
14287
  fi
 
14288
  need_version=yes
 
14289
  ;;
 
14290
 
 
14291
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14292
  version_type=linux
 
14293
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14294
  soname_spec='${libname}${release}${shared_ext}$major'
 
14295
  shlibpath_var=LD_LIBRARY_PATH
 
14296
  case $host_vendor in
 
14297
    sni)
 
14298
      shlibpath_overrides_runpath=no
 
14299
      need_lib_prefix=no
 
14300
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14301
      runpath_var=LD_RUN_PATH
 
14302
      ;;
 
14303
    siemens)
 
14304
      need_lib_prefix=no
 
14305
      ;;
 
14306
    motorola)
 
14307
      need_lib_prefix=no
 
14308
      need_version=no
 
14309
      shlibpath_overrides_runpath=no
 
14310
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14311
      ;;
 
14312
  esac
 
14313
  ;;
 
14314
 
 
14315
sysv4*MP*)
 
14316
  if test -d /usr/nec ;then
 
14317
    version_type=linux
 
14318
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14319
    soname_spec='$libname${shared_ext}.$major'
 
14320
    shlibpath_var=LD_LIBRARY_PATH
 
14321
  fi
 
14322
  ;;
 
14323
 
 
14324
uts4*)
 
14325
  version_type=linux
 
14326
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14327
  soname_spec='${libname}${release}${shared_ext}$major'
 
14328
  shlibpath_var=LD_LIBRARY_PATH
 
14329
  ;;
 
14330
 
 
14331
*)
 
14332
  dynamic_linker=no
 
14333
  ;;
 
14334
esac
 
14335
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14336
echo "${ECHO_T}$dynamic_linker" >&6
 
14337
test "$dynamic_linker" = no && can_build_shared=no
 
14338
 
 
14339
 
 
14340
# The else clause should only fire when bootstrapping the
 
14341
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14342
# with your package, and you will get complaints that there are
 
14343
# no rules to generate ltmain.sh.
 
14344
if test -f "$ltmain"; then
 
14345
  # See if we are running on zsh, and set the options which allow our commands through
 
14346
  # without removal of \ escapes.
 
14347
  if test -n "${ZSH_VERSION+set}" ; then
 
14348
    setopt NO_GLOB_SUBST
 
14349
  fi
 
14350
  # Now quote all the things that may contain metacharacters while being
 
14351
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14352
  # variables and quote the copies for generation of the libtool script.
 
14353
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
14354
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14355
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14356
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14357
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14358
    lt_cv_sys_global_symbol_to_c_name_address \
 
14359
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14360
    old_postinstall_cmds old_postuninstall_cmds \
 
14361
    compiler_F77 \
 
14362
    CC_F77 \
 
14363
    LD_F77 \
 
14364
    lt_prog_compiler_wl_F77 \
 
14365
    lt_prog_compiler_pic_F77 \
 
14366
    lt_prog_compiler_static_F77 \
 
14367
    lt_prog_compiler_no_builtin_flag_F77 \
 
14368
    export_dynamic_flag_spec_F77 \
 
14369
    thread_safe_flag_spec_F77 \
 
14370
    whole_archive_flag_spec_F77 \
 
14371
    enable_shared_with_static_runtimes_F77 \
 
14372
    old_archive_cmds_F77 \
 
14373
    old_archive_from_new_cmds_F77 \
 
14374
    predep_objects_F77 \
 
14375
    postdep_objects_F77 \
 
14376
    predeps_F77 \
 
14377
    postdeps_F77 \
 
14378
    compiler_lib_search_path_F77 \
 
14379
    archive_cmds_F77 \
 
14380
    archive_expsym_cmds_F77 \
 
14381
    postinstall_cmds_F77 \
 
14382
    postuninstall_cmds_F77 \
 
14383
    old_archive_from_expsyms_cmds_F77 \
 
14384
    allow_undefined_flag_F77 \
 
14385
    no_undefined_flag_F77 \
 
14386
    export_symbols_cmds_F77 \
 
14387
    hardcode_libdir_flag_spec_F77 \
 
14388
    hardcode_libdir_flag_spec_ld_F77 \
 
14389
    hardcode_libdir_separator_F77 \
 
14390
    hardcode_automatic_F77 \
 
14391
    module_cmds_F77 \
 
14392
    module_expsym_cmds_F77 \
 
14393
    lt_cv_prog_compiler_c_o_F77 \
 
14394
    exclude_expsyms_F77 \
 
14395
    include_expsyms_F77; do
 
14396
 
 
14397
    case $var in
 
14398
    old_archive_cmds_F77 | \
 
14399
    old_archive_from_new_cmds_F77 | \
 
14400
    archive_cmds_F77 | \
 
14401
    archive_expsym_cmds_F77 | \
 
14402
    module_cmds_F77 | \
 
14403
    module_expsym_cmds_F77 | \
 
14404
    old_archive_from_expsyms_cmds_F77 | \
 
14405
    export_symbols_cmds_F77 | \
 
14406
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14407
    postinstall_cmds | postuninstall_cmds | \
 
14408
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14409
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14410
      # Double-quote double-evaled strings.
 
14411
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14412
      ;;
 
14413
    *)
 
14414
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14415
      ;;
 
14416
    esac
 
14417
  done
 
14418
 
 
14419
  case $lt_echo in
 
14420
  *'\$0 --fallback-echo"')
 
14421
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14422
    ;;
 
14423
  esac
 
14424
 
 
14425
cfgfile="$ofile"
 
14426
 
 
14427
  cat <<__EOF__ >> "$cfgfile"
 
14428
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14429
 
 
14430
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14431
 
 
14432
# Shell to use when invoking shell scripts.
 
14433
SHELL=$lt_SHELL
 
14434
 
 
14435
# Whether or not to build shared libraries.
 
14436
build_libtool_libs=$enable_shared
 
14437
 
 
14438
# Whether or not to build static libraries.
 
14439
build_old_libs=$enable_static
 
14440
 
 
14441
# Whether or not to add -lc for building shared libraries.
 
14442
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
14443
 
 
14444
# Whether or not to disallow shared libs when runtime libs are static
 
14445
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
14446
 
 
14447
# Whether or not to optimize for fast installation.
 
14448
fast_install=$enable_fast_install
 
14449
 
 
14450
# The host system.
 
14451
host_alias=$host_alias
 
14452
host=$host
 
14453
 
 
14454
# An echo program that does not interpret backslashes.
 
14455
echo=$lt_echo
 
14456
 
 
14457
# The archiver.
 
14458
AR=$lt_AR
 
14459
AR_FLAGS=$lt_AR_FLAGS
 
14460
 
 
14461
# A C compiler.
 
14462
LTCC=$lt_LTCC
 
14463
 
 
14464
# A language-specific compiler.
 
14465
CC=$lt_compiler_F77
 
14466
 
 
14467
# Is the compiler the GNU C compiler?
 
14468
with_gcc=$GCC_F77
 
14469
 
 
14470
# An ERE matcher.
 
14471
EGREP=$lt_EGREP
 
14472
 
 
14473
# The linker used to build libraries.
 
14474
LD=$lt_LD_F77
 
14475
 
 
14476
# Whether we need hard or soft links.
 
14477
LN_S=$lt_LN_S
 
14478
 
 
14479
# A BSD-compatible nm program.
 
14480
NM=$lt_NM
 
14481
 
 
14482
# A symbol stripping program
 
14483
STRIP=$STRIP
 
14484
 
 
14485
# Used to examine libraries when file_magic_cmd begins "file"
 
14486
MAGIC_CMD=$MAGIC_CMD
 
14487
 
 
14488
# Used on cygwin: DLL creation program.
 
14489
DLLTOOL="$DLLTOOL"
 
14490
 
 
14491
# Used on cygwin: object dumper.
 
14492
OBJDUMP="$OBJDUMP"
 
14493
 
 
14494
# Used on cygwin: assembler.
 
14495
AS="$AS"
 
14496
 
 
14497
# The name of the directory that contains temporary libtool files.
 
14498
objdir=$objdir
 
14499
 
 
14500
# How to create reloadable object files.
 
14501
reload_flag=$lt_reload_flag
 
14502
reload_cmds=$lt_reload_cmds
 
14503
 
 
14504
# How to pass a linker flag through the compiler.
 
14505
wl=$lt_lt_prog_compiler_wl_F77
 
14506
 
 
14507
# Object file suffix (normally "o").
 
14508
objext="$ac_objext"
 
14509
 
 
14510
# Old archive suffix (normally "a").
 
14511
libext="$libext"
 
14512
 
 
14513
# Shared library suffix (normally ".so").
 
14514
shrext='$shrext'
 
14515
 
 
14516
# Executable file suffix (normally "").
 
14517
exeext="$exeext"
 
14518
 
 
14519
# Additional compiler flags for building library objects.
 
14520
pic_flag=$lt_lt_prog_compiler_pic_F77
 
14521
pic_mode=$pic_mode
 
14522
 
 
14523
# What is the maximum length of a command?
 
14524
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14525
 
 
14526
# Does compiler simultaneously support -c and -o options?
 
14527
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
14528
 
 
14529
# Must we lock files when doing compilation ?
 
14530
need_locks=$lt_need_locks
 
14531
 
 
14532
# Do we need the lib prefix for modules?
 
14533
need_lib_prefix=$need_lib_prefix
 
14534
 
 
14535
# Do we need a version for libraries?
 
14536
need_version=$need_version
 
14537
 
 
14538
# Whether dlopen is supported.
 
14539
dlopen_support=$enable_dlopen
 
14540
 
 
14541
# Whether dlopen of programs is supported.
 
14542
dlopen_self=$enable_dlopen_self
 
14543
 
 
14544
# Whether dlopen of statically linked programs is supported.
 
14545
dlopen_self_static=$enable_dlopen_self_static
 
14546
 
 
14547
# Compiler flag to prevent dynamic linking.
 
14548
link_static_flag=$lt_lt_prog_compiler_static_F77
 
14549
 
 
14550
# Compiler flag to turn off builtin functions.
 
14551
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
14552
 
 
14553
# Compiler flag to allow reflexive dlopens.
 
14554
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
14555
 
 
14556
# Compiler flag to generate shared objects directly from archives.
 
14557
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
14558
 
 
14559
# Compiler flag to generate thread-safe objects.
 
14560
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
14561
 
 
14562
# Library versioning type.
 
14563
version_type=$version_type
 
14564
 
 
14565
# Format of library name prefix.
 
14566
libname_spec=$lt_libname_spec
 
14567
 
 
14568
# List of archive names.  First name is the real one, the rest are links.
 
14569
# The last name is the one that the linker finds with -lNAME.
 
14570
library_names_spec=$lt_library_names_spec
 
14571
 
 
14572
# The coded name of the library, if different from the real name.
 
14573
soname_spec=$lt_soname_spec
 
14574
 
 
14575
# Commands used to build and install an old-style archive.
 
14576
RANLIB=$lt_RANLIB
 
14577
old_archive_cmds=$lt_old_archive_cmds_F77
 
14578
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14579
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14580
 
 
14581
# Create an old-style archive from a shared archive.
 
14582
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
14583
 
 
14584
# Create a temporary old-style archive to link instead of a shared archive.
 
14585
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
14586
 
 
14587
# Commands used to build and install a shared archive.
 
14588
archive_cmds=$lt_archive_cmds_F77
 
14589
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
14590
postinstall_cmds=$lt_postinstall_cmds
 
14591
postuninstall_cmds=$lt_postuninstall_cmds
 
14592
 
 
14593
# Commands used to build a loadable module (assumed same as above if empty)
 
14594
module_cmds=$lt_module_cmds_F77
 
14595
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
14596
 
 
14597
# Commands to strip libraries.
 
14598
old_striplib=$lt_old_striplib
 
14599
striplib=$lt_striplib
 
14600
 
 
14601
# Dependencies to place before the objects being linked to create a
 
14602
# shared library.
 
14603
predep_objects=$lt_predep_objects_F77
 
14604
 
 
14605
# Dependencies to place after the objects being linked to create a
 
14606
# shared library.
 
14607
postdep_objects=$lt_postdep_objects_F77
 
14608
 
 
14609
# Dependencies to place before the objects being linked to create a
 
14610
# shared library.
 
14611
predeps=$lt_predeps_F77
 
14612
 
 
14613
# Dependencies to place after the objects being linked to create a
 
14614
# shared library.
 
14615
postdeps=$lt_postdeps_F77
 
14616
 
 
14617
# The library search path used internally by the compiler when linking
 
14618
# a shared library.
 
14619
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
14620
 
 
14621
# Method to check whether dependent libraries are shared objects.
 
14622
deplibs_check_method=$lt_deplibs_check_method
 
14623
 
 
14624
# Command to use when deplibs_check_method == file_magic.
 
14625
file_magic_cmd=$lt_file_magic_cmd
 
14626
 
 
14627
# Flag that allows shared libraries with undefined symbols to be built.
 
14628
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
14629
 
 
14630
# Flag that forces no undefined symbols.
 
14631
no_undefined_flag=$lt_no_undefined_flag_F77
 
14632
 
 
14633
# Commands used to finish a libtool library installation in a directory.
 
14634
finish_cmds=$lt_finish_cmds
 
14635
 
 
14636
# Same as above, but a single script fragment to be evaled but not shown.
 
14637
finish_eval=$lt_finish_eval
 
14638
 
 
14639
# Take the output of nm and produce a listing of raw symbols and C names.
 
14640
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14641
 
 
14642
# Transform the output of nm in a proper C declaration
 
14643
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14644
 
 
14645
# Transform the output of nm in a C name address pair
 
14646
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14647
 
 
14648
# This is the shared library runtime path variable.
 
14649
runpath_var=$runpath_var
 
14650
 
 
14651
# This is the shared library path variable.
 
14652
shlibpath_var=$shlibpath_var
 
14653
 
 
14654
# Is shlibpath searched before the hard-coded library search path?
 
14655
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14656
 
 
14657
# How to hardcode a shared library path into an executable.
 
14658
hardcode_action=$hardcode_action_F77
 
14659
 
 
14660
# Whether we should hardcode library paths into libraries.
 
14661
hardcode_into_libs=$hardcode_into_libs
 
14662
 
 
14663
# Flag to hardcode \$libdir into a binary during linking.
 
14664
# This must work even if \$libdir does not exist.
 
14665
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
14666
 
 
14667
# If ld is used when linking, flag to hardcode \$libdir into
 
14668
# a binary during linking. This must work even if \$libdir does
 
14669
# not exist.
 
14670
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
14671
 
 
14672
# Whether we need a single -rpath flag with a separated argument.
 
14673
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
14674
 
 
14675
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14676
# resulting binary.
 
14677
hardcode_direct=$hardcode_direct_F77
 
14678
 
 
14679
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14680
# resulting binary.
 
14681
hardcode_minus_L=$hardcode_minus_L_F77
 
14682
 
 
14683
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14684
# the resulting binary.
 
14685
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
14686
 
 
14687
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14688
# and all subsequent libraries and executables linked against it.
 
14689
hardcode_automatic=$hardcode_automatic_F77
 
14690
 
 
14691
# Variables whose values should be saved in libtool wrapper scripts and
 
14692
# restored at relink time.
 
14693
variables_saved_for_relink="$variables_saved_for_relink"
 
14694
 
 
14695
# Whether libtool must link a program against all its dependency libraries.
 
14696
link_all_deplibs=$link_all_deplibs_F77
 
14697
 
 
14698
# Compile-time system search path for libraries
 
14699
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14700
 
 
14701
# Run-time system search path for libraries
 
14702
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14703
 
 
14704
# Fix the shell variable \$srcfile for the compiler.
 
14705
fix_srcfile_path="$fix_srcfile_path_F77"
 
14706
 
 
14707
# Set to yes if exported symbols are required.
 
14708
always_export_symbols=$always_export_symbols_F77
 
14709
 
 
14710
# The commands to list exported symbols.
 
14711
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
14712
 
 
14713
# The commands to extract the exported symbol list from a shared archive.
 
14714
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14715
 
 
14716
# Symbols that should not be listed in the preloaded symbols.
 
14717
exclude_expsyms=$lt_exclude_expsyms_F77
 
14718
 
 
14719
# Symbols that must always be exported.
 
14720
include_expsyms=$lt_include_expsyms_F77
 
14721
 
 
14722
# ### END LIBTOOL TAG CONFIG: $tagname
 
14723
 
 
14724
__EOF__
 
14725
 
 
14726
 
 
14727
else
 
14728
  # If there is no Makefile yet, we rely on a make rule to execute
 
14729
  # `config.status --recheck' to rerun these tests and create the
 
14730
  # libtool script then.
 
14731
  test -f Makefile && make "$ltmain"
 
14732
fi
 
14733
 
 
14734
 
 
14735
ac_ext=c
 
14736
ac_cpp='$CPP $CPPFLAGS'
 
14737
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14738
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14739
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14740
 
 
14741
CC="$lt_save_CC"
 
14742
 
 
14743
        else
 
14744
          tagname=""
 
14745
        fi
 
14746
        ;;
 
14747
 
 
14748
      GCJ)
 
14749
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
14750
 
 
14751
 
 
14752
 
 
14753
# Source file extension for Java test sources.
 
14754
ac_ext=java
 
14755
 
 
14756
# Object file extension for compiled Java test sources.
 
14757
objext=o
 
14758
objext_GCJ=$objext
 
14759
 
 
14760
# Code to be used in simple compile tests
 
14761
lt_simple_compile_test_code="class foo {}\n"
 
14762
 
 
14763
# Code to be used in simple link tests
 
14764
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
14765
 
 
14766
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14767
 
 
14768
# If no C compiler was specified, use CC.
 
14769
LTCC=${LTCC-"$CC"}
 
14770
 
 
14771
# Allow CC to be a program name with arguments.
 
14772
compiler=$CC
 
14773
 
 
14774
 
 
14775
# Allow CC to be a program name with arguments.
 
14776
lt_save_CC="$CC"
 
14777
CC=${GCJ-"gcj"}
 
14778
compiler=$CC
 
14779
compiler_GCJ=$CC
 
14780
 
 
14781
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
14782
archive_cmds_need_lc_GCJ=no
 
14783
 
 
14784
 
 
14785
lt_prog_compiler_no_builtin_flag_GCJ=
 
14786
 
 
14787
if test "$GCC" = yes; then
 
14788
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
14789
 
 
14790
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
14791
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
14792
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
14793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14794
else
 
14795
  lt_cv_prog_compiler_rtti_exceptions=no
 
14796
  ac_outfile=conftest.$ac_objext
 
14797
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14798
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
14799
   # Insert the option either (1) after the last *FLAGS variable, or
 
14800
   # (2) before a word containing "conftest.", or (3) at the end.
 
14801
   # Note that $ac_compile itself does not contain backslashes and begins
 
14802
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14803
   # The option is referenced via a variable to avoid confusing sed.
 
14804
   lt_compile=`echo "$ac_compile" | $SED \
 
14805
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14806
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14807
   -e 's:$: $lt_compiler_flag:'`
 
14808
   (eval echo "\"\$as_me:14808: $lt_compile\"" >&5)
 
14809
   (eval "$lt_compile" 2>conftest.err)
 
14810
   ac_status=$?
 
14811
   cat conftest.err >&5
 
14812
   echo "$as_me:14812: \$? = $ac_status" >&5
 
14813
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14814
     # The compiler can only warn and ignore the option if not recognized
 
14815
     # So say no if there are warnings
 
14816
     if test ! -s conftest.err; then
 
14817
       lt_cv_prog_compiler_rtti_exceptions=yes
 
14818
     fi
 
14819
   fi
 
14820
   $rm conftest*
 
14821
 
 
14822
fi
 
14823
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
14824
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
14825
 
 
14826
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
14827
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
14828
else
 
14829
    :
 
14830
fi
 
14831
 
 
14832
fi
 
14833
 
 
14834
lt_prog_compiler_wl_GCJ=
 
14835
lt_prog_compiler_pic_GCJ=
 
14836
lt_prog_compiler_static_GCJ=
 
14837
 
 
14838
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14839
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14840
 
 
14841
  if test "$GCC" = yes; then
 
14842
    lt_prog_compiler_wl_GCJ='-Wl,'
 
14843
    lt_prog_compiler_static_GCJ='-static'
 
14844
 
 
14845
    case $host_os in
 
14846
      aix*)
 
14847
      # All AIX code is PIC.
 
14848
      if test "$host_cpu" = ia64; then
 
14849
        # AIX 5 now supports IA64 processor
 
14850
        lt_prog_compiler_static_GCJ='-Bstatic'
 
14851
      fi
 
14852
      ;;
 
14853
 
 
14854
    amigaos*)
 
14855
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14856
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14857
      # like `-m68040'.
 
14858
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
14859
      ;;
 
14860
 
 
14861
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14862
      # PIC is the default for these OSes.
 
14863
      ;;
 
14864
 
 
14865
    mingw* | pw32* | os2*)
 
14866
      # This hack is so that the source file can tell whether it is being
 
14867
      # built for inclusion in a dll (and should export symbols for example).
 
14868
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
14869
      ;;
 
14870
 
 
14871
    darwin* | rhapsody*)
 
14872
      # PIC is the default on this platform
 
14873
      # Common symbols not allowed in MH_DYLIB files
 
14874
      lt_prog_compiler_pic_GCJ='-fno-common'
 
14875
      ;;
 
14876
 
 
14877
    msdosdjgpp*)
 
14878
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14879
      # on systems that don't support them.
 
14880
      lt_prog_compiler_can_build_shared_GCJ=no
 
14881
      enable_shared=no
 
14882
      ;;
 
14883
 
 
14884
    sysv4*MP*)
 
14885
      if test -d /usr/nec; then
 
14886
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
14887
      fi
 
14888
      ;;
 
14889
 
 
14890
    hpux*)
 
14891
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14892
      # not for PA HP-UX.
 
14893
      case "$host_cpu" in
 
14894
      hppa*64*|ia64*)
 
14895
        # +Z the default
 
14896
        ;;
 
14897
      *)
 
14898
        lt_prog_compiler_pic_GCJ='-fPIC'
 
14899
        ;;
 
14900
      esac
 
14901
      ;;
 
14902
 
 
14903
    *)
 
14904
      lt_prog_compiler_pic_GCJ='-fPIC'
 
14905
      ;;
 
14906
    esac
 
14907
  else
 
14908
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14909
    case $host_os in
 
14910
    aix*)
 
14911
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14912
      if test "$host_cpu" = ia64; then
 
14913
        # AIX 5 now supports IA64 processor
 
14914
        lt_prog_compiler_static_GCJ='-Bstatic'
 
14915
      else
 
14916
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
14917
      fi
 
14918
      ;;
 
14919
 
 
14920
    mingw* | pw32* | os2*)
 
14921
      # This hack is so that the source file can tell whether it is being
 
14922
      # built for inclusion in a dll (and should export symbols for example).
 
14923
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
14924
      ;;
 
14925
 
 
14926
    hpux9* | hpux10* | hpux11*)
 
14927
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14928
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14929
      # not for PA HP-UX.
 
14930
      case "$host_cpu" in
 
14931
      hppa*64*|ia64*)
 
14932
        # +Z the default
 
14933
        ;;
 
14934
      *)
 
14935
        lt_prog_compiler_pic_GCJ='+Z'
 
14936
        ;;
 
14937
      esac
 
14938
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14939
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
14940
      ;;
 
14941
 
 
14942
    irix5* | irix6* | nonstopux*)
 
14943
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14944
      # PIC (with -KPIC) is the default.
 
14945
      lt_prog_compiler_static_GCJ='-non_shared'
 
14946
      ;;
 
14947
 
 
14948
    newsos6)
 
14949
      lt_prog_compiler_pic_GCJ='-KPIC'
 
14950
      lt_prog_compiler_static_GCJ='-Bstatic'
 
14951
      ;;
 
14952
 
 
14953
    linux*)
 
14954
      case $CC in
 
14955
      icc|ecc)
 
14956
        lt_prog_compiler_wl_GCJ='-Wl,'
 
14957
        lt_prog_compiler_pic_GCJ='-KPIC'
 
14958
        lt_prog_compiler_static_GCJ='-static'
 
14959
        ;;
 
14960
      ccc)
 
14961
        lt_prog_compiler_wl_GCJ='-Wl,'
 
14962
        # All Alpha code is PIC.
 
14963
        lt_prog_compiler_static_GCJ='-non_shared'
 
14964
        ;;
 
14965
      esac
 
14966
      ;;
 
14967
 
 
14968
    osf3* | osf4* | osf5*)
 
14969
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14970
      # All OSF/1 code is PIC.
 
14971
      lt_prog_compiler_static_GCJ='-non_shared'
 
14972
      ;;
 
14973
 
 
14974
    sco3.2v5*)
 
14975
      lt_prog_compiler_pic_GCJ='-Kpic'
 
14976
      lt_prog_compiler_static_GCJ='-dn'
 
14977
      ;;
 
14978
 
 
14979
    solaris*)
 
14980
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14981
      lt_prog_compiler_pic_GCJ='-KPIC'
 
14982
      lt_prog_compiler_static_GCJ='-Bstatic'
 
14983
      ;;
 
14984
 
 
14985
    sunos4*)
 
14986
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
14987
      lt_prog_compiler_pic_GCJ='-PIC'
 
14988
      lt_prog_compiler_static_GCJ='-Bstatic'
 
14989
      ;;
 
14990
 
 
14991
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14992
      lt_prog_compiler_wl_GCJ='-Wl,'
 
14993
      lt_prog_compiler_pic_GCJ='-KPIC'
 
14994
      lt_prog_compiler_static_GCJ='-Bstatic'
 
14995
      ;;
 
14996
 
 
14997
    sysv4*MP*)
 
14998
      if test -d /usr/nec ;then
 
14999
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15000
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15001
      fi
 
15002
      ;;
 
15003
 
 
15004
    uts4*)
 
15005
      lt_prog_compiler_pic_GCJ='-pic'
 
15006
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15007
      ;;
 
15008
 
 
15009
    *)
 
15010
      lt_prog_compiler_can_build_shared_GCJ=no
 
15011
      ;;
 
15012
    esac
 
15013
  fi
 
15014
 
 
15015
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15016
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15017
 
 
15018
#
 
15019
# Check to make sure the PIC flag actually works.
 
15020
#
 
15021
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15022
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15023
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15024
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15025
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15026
else
 
15027
  lt_prog_compiler_pic_works_GCJ=no
 
15028
  ac_outfile=conftest.$ac_objext
 
15029
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15030
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15031
   # Insert the option either (1) after the last *FLAGS variable, or
 
15032
   # (2) before a word containing "conftest.", or (3) at the end.
 
15033
   # Note that $ac_compile itself does not contain backslashes and begins
 
15034
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15035
   # The option is referenced via a variable to avoid confusing sed.
 
15036
   lt_compile=`echo "$ac_compile" | $SED \
 
15037
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15038
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15039
   -e 's:$: $lt_compiler_flag:'`
 
15040
   (eval echo "\"\$as_me:15040: $lt_compile\"" >&5)
 
15041
   (eval "$lt_compile" 2>conftest.err)
 
15042
   ac_status=$?
 
15043
   cat conftest.err >&5
 
15044
   echo "$as_me:15044: \$? = $ac_status" >&5
 
15045
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15046
     # The compiler can only warn and ignore the option if not recognized
 
15047
     # So say no if there are warnings
 
15048
     if test ! -s conftest.err; then
 
15049
       lt_prog_compiler_pic_works_GCJ=yes
 
15050
     fi
 
15051
   fi
 
15052
   $rm conftest*
 
15053
 
 
15054
fi
 
15055
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15056
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15057
 
 
15058
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15059
    case $lt_prog_compiler_pic_GCJ in
 
15060
     "" | " "*) ;;
 
15061
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15062
     esac
 
15063
else
 
15064
    lt_prog_compiler_pic_GCJ=
 
15065
     lt_prog_compiler_can_build_shared_GCJ=no
 
15066
fi
 
15067
 
 
15068
fi
 
15069
case "$host_os" in
 
15070
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15071
  *djgpp*)
 
15072
    lt_prog_compiler_pic_GCJ=
 
15073
    ;;
 
15074
  *)
 
15075
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15076
    ;;
 
15077
esac
 
15078
 
 
15079
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15080
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15081
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15082
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15083
else
 
15084
  lt_cv_prog_compiler_c_o_GCJ=no
 
15085
   $rm -r conftest 2>/dev/null
 
15086
   mkdir conftest
 
15087
   cd conftest
 
15088
   mkdir out
 
15089
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15090
 
 
15091
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
15092
   # that will create temporary files in the current directory regardless of
 
15093
   # the output directory.  Thus, making CWD read-only will cause this test
 
15094
   # to fail, enabling locking or at least warning the user not to do parallel
 
15095
   # builds.
 
15096
   chmod -w .
 
15097
 
 
15098
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15099
   # Insert the option either (1) after the last *FLAGS variable, or
 
15100
   # (2) before a word containing "conftest.", or (3) at the end.
 
15101
   # Note that $ac_compile itself does not contain backslashes and begins
 
15102
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15103
   lt_compile=`echo "$ac_compile" | $SED \
 
15104
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15105
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15106
   -e 's:$: $lt_compiler_flag:'`
 
15107
   (eval echo "\"\$as_me:15107: $lt_compile\"" >&5)
 
15108
   (eval "$lt_compile" 2>out/conftest.err)
 
15109
   ac_status=$?
 
15110
   cat out/conftest.err >&5
 
15111
   echo "$as_me:15111: \$? = $ac_status" >&5
 
15112
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15113
   then
 
15114
     # The compiler can only warn and ignore the option if not recognized
 
15115
     # So say no if there are warnings
 
15116
     if test ! -s out/conftest.err; then
 
15117
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15118
     fi
 
15119
   fi
 
15120
   chmod u+w .
 
15121
   $rm conftest* out/*
 
15122
   rmdir out
 
15123
   cd ..
 
15124
   rmdir conftest
 
15125
   $rm conftest*
 
15126
 
 
15127
fi
 
15128
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15129
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15130
 
 
15131
 
 
15132
hard_links="nottested"
 
15133
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15134
  # do not overwrite the value of need_locks provided by the user
 
15135
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15136
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15137
  hard_links=yes
 
15138
  $rm conftest*
 
15139
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15140
  touch conftest.a
 
15141
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15142
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15143
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15144
echo "${ECHO_T}$hard_links" >&6
 
15145
  if test "$hard_links" = no; then
 
15146
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15147
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15148
    need_locks=warn
 
15149
  fi
 
15150
else
 
15151
  need_locks=no
 
15152
fi
 
15153
 
 
15154
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15155
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15156
 
 
15157
  runpath_var=
 
15158
  allow_undefined_flag_GCJ=
 
15159
  enable_shared_with_static_runtimes_GCJ=no
 
15160
  archive_cmds_GCJ=
 
15161
  archive_expsym_cmds_GCJ=
 
15162
  old_archive_From_new_cmds_GCJ=
 
15163
  old_archive_from_expsyms_cmds_GCJ=
 
15164
  export_dynamic_flag_spec_GCJ=
 
15165
  whole_archive_flag_spec_GCJ=
 
15166
  thread_safe_flag_spec_GCJ=
 
15167
  hardcode_libdir_flag_spec_GCJ=
 
15168
  hardcode_libdir_flag_spec_ld_GCJ=
 
15169
  hardcode_libdir_separator_GCJ=
 
15170
  hardcode_direct_GCJ=no
 
15171
  hardcode_minus_L_GCJ=no
 
15172
  hardcode_shlibpath_var_GCJ=unsupported
 
15173
  link_all_deplibs_GCJ=unknown
 
15174
  hardcode_automatic_GCJ=no
 
15175
  module_cmds_GCJ=
 
15176
  module_expsym_cmds_GCJ=
 
15177
  always_export_symbols_GCJ=no
 
15178
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15179
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15180
  # included in the symbol list
 
15181
  include_expsyms_GCJ=
 
15182
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15183
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15184
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15185
  # as well as any symbol that contains `d'.
 
15186
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15187
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15188
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15189
  # the symbol is explicitly referenced.  Since portable code cannot
 
15190
  # rely on this symbol name, it's probably fine to never include it in
 
15191
  # preloaded symbol tables.
 
15192
  extract_expsyms_cmds=
 
15193
 
 
15194
  case $host_os in
 
15195
  cygwin* | mingw* | pw32*)
 
15196
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15197
    # When not using gcc, we currently assume that we are using
 
15198
    # Microsoft Visual C++.
 
15199
    if test "$GCC" != yes; then
 
15200
      with_gnu_ld=no
 
15201
    fi
 
15202
    ;;
 
15203
  openbsd*)
 
15204
    with_gnu_ld=no
 
15205
    ;;
 
15206
  esac
 
15207
 
 
15208
  ld_shlibs_GCJ=yes
 
15209
  if test "$with_gnu_ld" = yes; then
 
15210
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15211
    wlarc='${wl}'
 
15212
 
 
15213
    # See if GNU ld supports shared libraries.
 
15214
    case $host_os in
 
15215
    aix3* | aix4* | aix5*)
 
15216
      # On AIX/PPC, the GNU linker is very broken
 
15217
      if test "$host_cpu" != ia64; then
 
15218
        ld_shlibs_GCJ=no
 
15219
        cat <<EOF 1>&2
 
15220
 
 
15221
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15222
*** to be unable to reliably create shared libraries on AIX.
 
15223
*** Therefore, libtool is disabling shared libraries support.  If you
 
15224
*** really care for shared libraries, you may want to modify your PATH
 
15225
*** so that a non-GNU linker is found, and then restart.
 
15226
 
 
15227
EOF
 
15228
      fi
 
15229
      ;;
 
15230
 
 
15231
    amigaos*)
 
15232
      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)'
 
15233
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15234
      hardcode_minus_L_GCJ=yes
 
15235
 
 
15236
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15237
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15238
      # to version 4, is to share data among multiple programs linked
 
15239
      # with the same dynamic library.  Since this doesn't match the
 
15240
      # behavior of shared libraries on other platforms, we can't use
 
15241
      # them.
 
15242
      ld_shlibs_GCJ=no
 
15243
      ;;
 
15244
 
 
15245
    beos*)
 
15246
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15247
        allow_undefined_flag_GCJ=unsupported
 
15248
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15249
        # support --undefined.  This deserves some investigation.  FIXME
 
15250
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15251
      else
 
15252
        ld_shlibs_GCJ=no
 
15253
      fi
 
15254
      ;;
 
15255
 
 
15256
    cygwin* | mingw* | pw32*)
 
15257
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
15258
      # as there is no search path for DLLs.
 
15259
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15260
      allow_undefined_flag_GCJ=unsupported
 
15261
      always_export_symbols_GCJ=no
 
15262
      enable_shared_with_static_runtimes_GCJ=yes
 
15263
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15264
 
 
15265
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15266
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15267
        # If the export-symbols file already is a .def file (1st line
 
15268
        # is EXPORTS), use it as is; otherwise, prepend...
 
15269
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15270
          cp $export_symbols $output_objdir/$soname.def;
 
15271
        else
 
15272
          echo EXPORTS > $output_objdir/$soname.def;
 
15273
          cat $export_symbols >> $output_objdir/$soname.def;
 
15274
        fi~
 
15275
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15276
      else
 
15277
        ld_shlibs=no
 
15278
      fi
 
15279
      ;;
 
15280
 
 
15281
    netbsd*)
 
15282
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15283
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15284
        wlarc=
 
15285
      else
 
15286
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15287
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15288
      fi
 
15289
      ;;
 
15290
 
 
15291
    solaris* | sysv5*)
 
15292
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15293
        ld_shlibs_GCJ=no
 
15294
        cat <<EOF 1>&2
 
15295
 
 
15296
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15297
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15298
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15299
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15300
*** your PATH or compiler configuration so that the native linker is
 
15301
*** used, and then restart.
 
15302
 
 
15303
EOF
 
15304
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15305
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15306
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15307
      else
 
15308
        ld_shlibs_GCJ=no
 
15309
      fi
 
15310
      ;;
 
15311
 
 
15312
    sunos4*)
 
15313
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15314
      wlarc=
 
15315
      hardcode_direct_GCJ=yes
 
15316
      hardcode_shlibpath_var_GCJ=no
 
15317
      ;;
 
15318
 
 
15319
    *)
 
15320
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15321
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15322
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15323
      else
 
15324
        ld_shlibs_GCJ=no
 
15325
      fi
 
15326
      ;;
 
15327
    esac
 
15328
 
 
15329
    if test "$ld_shlibs_GCJ" = yes; then
 
15330
      runpath_var=LD_RUN_PATH
 
15331
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
15332
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
15333
      # ancient GNU ld didn't support --whole-archive et. al.
 
15334
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15335
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15336
      else
 
15337
        whole_archive_flag_spec_GCJ=
 
15338
      fi
 
15339
    fi
 
15340
  else
 
15341
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15342
    case $host_os in
 
15343
    aix3*)
 
15344
      allow_undefined_flag_GCJ=unsupported
 
15345
      always_export_symbols_GCJ=yes
 
15346
      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'
 
15347
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15348
      # are no directories specified by -L.
 
15349
      hardcode_minus_L_GCJ=yes
 
15350
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15351
        # Neither direct hardcoding nor static linking is supported with a
 
15352
        # broken collect2.
 
15353
        hardcode_direct_GCJ=unsupported
 
15354
      fi
 
15355
      ;;
 
15356
 
 
15357
    aix4* | aix5*)
 
15358
      if test "$host_cpu" = ia64; then
 
15359
        # On IA64, the linker does run time linking by default, so we don't
 
15360
        # have to do anything special.
 
15361
        aix_use_runtimelinking=no
 
15362
        exp_sym_flag='-Bexport'
 
15363
        no_entry_flag=""
 
15364
      else
 
15365
        # If we're using GNU nm, then we don't want the "-C" option.
 
15366
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15367
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15368
          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'
 
15369
        else
 
15370
          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'
 
15371
        fi
 
15372
        aix_use_runtimelinking=no
 
15373
 
 
15374
        # Test if we are trying to use run time linking or normal
 
15375
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15376
        # need to do runtime linking.
 
15377
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15378
          for ld_flag in $LDFLAGS; do
 
15379
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15380
            aix_use_runtimelinking=yes
 
15381
            break
 
15382
          fi
 
15383
          done
 
15384
        esac
 
15385
 
 
15386
        exp_sym_flag='-bexport'
 
15387
        no_entry_flag='-bnoentry'
 
15388
      fi
 
15389
 
 
15390
      # When large executables or shared objects are built, AIX ld can
 
15391
      # have problems creating the table of contents.  If linking a library
 
15392
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15393
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15394
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15395
 
 
15396
      archive_cmds_GCJ=''
 
15397
      hardcode_direct_GCJ=yes
 
15398
      hardcode_libdir_separator_GCJ=':'
 
15399
      link_all_deplibs_GCJ=yes
 
15400
 
 
15401
      if test "$GCC" = yes; then
 
15402
        case $host_os in aix4.012|aix4.012.*)
 
15403
        # We only want to do this on AIX 4.2 and lower, the check
 
15404
        # below for broken collect2 doesn't work under 4.3+
 
15405
          collect2name=`${CC} -print-prog-name=collect2`
 
15406
          if test -f "$collect2name" && \
 
15407
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15408
          then
 
15409
          # We have reworked collect2
 
15410
          hardcode_direct_GCJ=yes
 
15411
          else
 
15412
          # We have old collect2
 
15413
          hardcode_direct_GCJ=unsupported
 
15414
          # It fails to find uninstalled libraries when the uninstalled
 
15415
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15416
          # to unsupported forces relinking
 
15417
          hardcode_minus_L_GCJ=yes
 
15418
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15419
          hardcode_libdir_separator_GCJ=
 
15420
          fi
 
15421
        esac
 
15422
        shared_flag='-shared'
 
15423
      else
 
15424
        # not using gcc
 
15425
        if test "$host_cpu" = ia64; then
 
15426
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15427
        # chokes on -Wl,-G. The following line is correct:
 
15428
          shared_flag='-G'
 
15429
        else
 
15430
        if test "$aix_use_runtimelinking" = yes; then
 
15431
            shared_flag='${wl}-G'
 
15432
          else
 
15433
            shared_flag='${wl}-bM:SRE'
 
15434
        fi
 
15435
        fi
 
15436
      fi
 
15437
 
 
15438
      # It seems that -bexpall does not export symbols beginning with
 
15439
      # underscore (_), so it is better to generate a list of symbols to export.
 
15440
      always_export_symbols_GCJ=yes
 
15441
      if test "$aix_use_runtimelinking" = yes; then
 
15442
        # Warning - without using the other runtime loading flags (-brtl),
 
15443
        # -berok will link without error, but may produce a broken library.
 
15444
        allow_undefined_flag_GCJ='-berok'
 
15445
       # Determine the default libpath from the value encoded in an empty executable.
 
15446
       cat >conftest.$ac_ext <<_ACEOF
 
15447
#line $LINENO "configure"
 
15448
/* confdefs.h.  */
 
15449
_ACEOF
 
15450
cat confdefs.h >>conftest.$ac_ext
 
15451
cat >>conftest.$ac_ext <<_ACEOF
 
15452
/* end confdefs.h.  */
 
15453
 
 
15454
int
 
15455
main ()
 
15456
{
 
15457
 
 
15458
  ;
 
15459
  return 0;
 
15460
}
 
15461
_ACEOF
 
15462
rm -f conftest.$ac_objext conftest$ac_exeext
 
15463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15464
  (eval $ac_link) 2>&5
 
15465
  ac_status=$?
 
15466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15467
  (exit $ac_status); } &&
 
15468
         { ac_try='test -s conftest$ac_exeext'
 
15469
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15470
  (eval $ac_try) 2>&5
 
15471
  ac_status=$?
 
15472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15473
  (exit $ac_status); }; }; then
 
15474
 
 
15475
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15476
}'`
 
15477
# Check for a 64-bit object if we didn't find anything.
 
15478
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; }
 
15479
}'`; fi
 
15480
else
 
15481
  echo "$as_me: failed program was:" >&5
 
15482
sed 's/^/| /' conftest.$ac_ext >&5
 
15483
 
 
15484
fi
 
15485
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
15486
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15487
 
 
15488
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15489
        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"
 
15490
       else
 
15491
        if test "$host_cpu" = ia64; then
 
15492
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
15493
          allow_undefined_flag_GCJ="-z nodefs"
 
15494
          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"
 
15495
        else
 
15496
         # Determine the default libpath from the value encoded in an empty executable.
 
15497
         cat >conftest.$ac_ext <<_ACEOF
 
15498
#line $LINENO "configure"
 
15499
/* confdefs.h.  */
 
15500
_ACEOF
 
15501
cat confdefs.h >>conftest.$ac_ext
 
15502
cat >>conftest.$ac_ext <<_ACEOF
 
15503
/* end confdefs.h.  */
 
15504
 
 
15505
int
 
15506
main ()
 
15507
{
 
15508
 
 
15509
  ;
 
15510
  return 0;
 
15511
}
 
15512
_ACEOF
 
15513
rm -f conftest.$ac_objext conftest$ac_exeext
 
15514
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15515
  (eval $ac_link) 2>&5
 
15516
  ac_status=$?
 
15517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15518
  (exit $ac_status); } &&
 
15519
         { ac_try='test -s conftest$ac_exeext'
 
15520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15521
  (eval $ac_try) 2>&5
 
15522
  ac_status=$?
 
15523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15524
  (exit $ac_status); }; }; then
 
15525
 
 
15526
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15527
}'`
 
15528
# Check for a 64-bit object if we didn't find anything.
 
15529
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; }
 
15530
}'`; fi
 
15531
else
 
15532
  echo "$as_me: failed program was:" >&5
 
15533
sed 's/^/| /' conftest.$ac_ext >&5
 
15534
 
 
15535
fi
 
15536
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
15537
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15538
 
 
15539
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15540
          # Warning - without using the other run time loading flags,
 
15541
          # -berok will link without error, but may produce a broken library.
 
15542
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
15543
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
15544
          # -bexpall does not export symbols beginning with underscore (_)
 
15545
          always_export_symbols_GCJ=yes
 
15546
          # Exported symbols can be pulled into shared objects from archives
 
15547
          whole_archive_flag_spec_GCJ=' '
 
15548
          archive_cmds_need_lc_GCJ=yes
 
15549
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15550
          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'
 
15551
        fi
 
15552
      fi
 
15553
      ;;
 
15554
 
 
15555
    amigaos*)
 
15556
      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)'
 
15557
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15558
      hardcode_minus_L_GCJ=yes
 
15559
      # see comment about different semantics on the GNU ld section
 
15560
      ld_shlibs_GCJ=no
 
15561
      ;;
 
15562
 
 
15563
    bsdi4*)
 
15564
      export_dynamic_flag_spec_GCJ=-rdynamic
 
15565
      ;;
 
15566
 
 
15567
    cygwin* | mingw* | pw32*)
 
15568
      # When not using gcc, we currently assume that we are using
 
15569
      # Microsoft Visual C++.
 
15570
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15571
      # no search path for DLLs.
 
15572
      hardcode_libdir_flag_spec_GCJ=' '
 
15573
      allow_undefined_flag_GCJ=unsupported
 
15574
      # Tell ltmain to make .lib files, not .a files.
 
15575
      libext=lib
 
15576
      # Tell ltmain to make .dll files, not .so files.
 
15577
      shrext=".dll"
 
15578
      # FIXME: Setting linknames here is a bad hack.
 
15579
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15580
      # The linker will automatically build a .lib file if we build a DLL.
 
15581
      old_archive_From_new_cmds_GCJ='true'
 
15582
      # FIXME: Should let the user specify the lib program.
 
15583
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15584
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15585
      enable_shared_with_static_runtimes_GCJ=yes
 
15586
      ;;
 
15587
 
 
15588
    darwin* | rhapsody*)
 
15589
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
15590
      archive_cmds_need_lc_GCJ=no
 
15591
      case "$host_os" in
 
15592
      rhapsody* | darwin1.[012])
 
15593
        allow_undefined_flag_GCJ='-undefined suppress'
 
15594
        ;;
 
15595
      *) # Darwin 1.3 on
 
15596
        test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
15597
        ;;
 
15598
      esac
 
15599
      # FIXME: Relying on posixy $() will cause problems for
 
15600
      #        cross-compilation, but unfortunately the echo tests do not
 
15601
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
15602
      #        `"' quotes if we put them in here... so don't!
 
15603
        lt_int_apple_cc_single_mod=no
 
15604
        output_verbose_link_cmd='echo'
 
15605
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
15606
          lt_int_apple_cc_single_mod=yes
 
15607
        fi
 
15608
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15609
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15610
        else
 
15611
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15612
      fi
 
15613
      module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
15614
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15615
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15616
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15617
        else
 
15618
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15619
        fi
 
15620
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15621
      hardcode_direct_GCJ=no
 
15622
      hardcode_automatic_GCJ=yes
 
15623
      hardcode_shlibpath_var_GCJ=unsupported
 
15624
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
15625
      link_all_deplibs_GCJ=yes
 
15626
    fi
 
15627
      ;;
 
15628
 
 
15629
    dgux*)
 
15630
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15631
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15632
      hardcode_shlibpath_var_GCJ=no
 
15633
      ;;
 
15634
 
 
15635
    freebsd1*)
 
15636
      ld_shlibs_GCJ=no
 
15637
      ;;
 
15638
 
 
15639
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15640
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15641
    # does not break anything, and helps significantly (at the cost of a little
 
15642
    # extra space).
 
15643
    freebsd2.2*)
 
15644
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15645
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15646
      hardcode_direct_GCJ=yes
 
15647
      hardcode_shlibpath_var_GCJ=no
 
15648
      ;;
 
15649
 
 
15650
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15651
    freebsd2*)
 
15652
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15653
      hardcode_direct_GCJ=yes
 
15654
      hardcode_minus_L_GCJ=yes
 
15655
      hardcode_shlibpath_var_GCJ=no
 
15656
      ;;
 
15657
 
 
15658
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15659
    freebsd*)
 
15660
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15661
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15662
      hardcode_direct_GCJ=yes
 
15663
      hardcode_shlibpath_var_GCJ=no
 
15664
      ;;
 
15665
 
 
15666
    hpux9*)
 
15667
      if test "$GCC" = yes; then
 
15668
        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'
 
15669
      else
 
15670
        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'
 
15671
      fi
 
15672
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
15673
      hardcode_libdir_separator_GCJ=:
 
15674
      hardcode_direct_GCJ=yes
 
15675
 
 
15676
      # hardcode_minus_L: Not really in the search PATH,
 
15677
      # but as the default location of the library.
 
15678
      hardcode_minus_L_GCJ=yes
 
15679
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
15680
      ;;
 
15681
 
 
15682
    hpux10* | hpux11*)
 
15683
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15684
        case "$host_cpu" in
 
15685
        hppa*64*|ia64*)
 
15686
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15687
          ;;
 
15688
        *)
 
15689
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15690
          ;;
 
15691
        esac
 
15692
      else
 
15693
        case "$host_cpu" in
 
15694
        hppa*64*|ia64*)
 
15695
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15696
          ;;
 
15697
        *)
 
15698
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15699
          ;;
 
15700
        esac
 
15701
      fi
 
15702
      if test "$with_gnu_ld" = no; then
 
15703
        case "$host_cpu" in
 
15704
        hppa*64*)
 
15705
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
15706
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
15707
          hardcode_libdir_separator_GCJ=:
 
15708
          hardcode_direct_GCJ=no
 
15709
          hardcode_shlibpath_var_GCJ=no
 
15710
          ;;
 
15711
        ia64*)
 
15712
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15713
          hardcode_direct_GCJ=no
 
15714
          hardcode_shlibpath_var_GCJ=no
 
15715
 
 
15716
          # hardcode_minus_L: Not really in the search PATH,
 
15717
          # but as the default location of the library.
 
15718
          hardcode_minus_L_GCJ=yes
 
15719
          ;;
 
15720
        *)
 
15721
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
15722
          hardcode_libdir_separator_GCJ=:
 
15723
          hardcode_direct_GCJ=yes
 
15724
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
15725
 
 
15726
          # hardcode_minus_L: Not really in the search PATH,
 
15727
          # but as the default location of the library.
 
15728
          hardcode_minus_L_GCJ=yes
 
15729
          ;;
 
15730
        esac
 
15731
      fi
 
15732
      ;;
 
15733
 
 
15734
    irix5* | irix6* | nonstopux*)
 
15735
      if test "$GCC" = yes; then
 
15736
        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'
 
15737
      else
 
15738
        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'
 
15739
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
15740
      fi
 
15741
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
15742
      hardcode_libdir_separator_GCJ=:
 
15743
      link_all_deplibs_GCJ=yes
 
15744
      ;;
 
15745
 
 
15746
    netbsd*)
 
15747
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15748
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15749
      else
 
15750
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15751
      fi
 
15752
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15753
      hardcode_direct_GCJ=yes
 
15754
      hardcode_shlibpath_var_GCJ=no
 
15755
      ;;
 
15756
 
 
15757
    newsos6)
 
15758
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15759
      hardcode_direct_GCJ=yes
 
15760
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
15761
      hardcode_libdir_separator_GCJ=:
 
15762
      hardcode_shlibpath_var_GCJ=no
 
15763
      ;;
 
15764
 
 
15765
    openbsd*)
 
15766
      hardcode_direct_GCJ=yes
 
15767
      hardcode_shlibpath_var_GCJ=no
 
15768
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15769
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15770
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
15771
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
15772
      else
 
15773
       case $host_os in
 
15774
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15775
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15776
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15777
           ;;
 
15778
         *)
 
15779
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15780
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
15781
           ;;
 
15782
       esac
 
15783
      fi
 
15784
      ;;
 
15785
 
 
15786
    os2*)
 
15787
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15788
      hardcode_minus_L_GCJ=yes
 
15789
      allow_undefined_flag_GCJ=unsupported
 
15790
      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'
 
15791
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15792
      ;;
 
15793
 
 
15794
    osf3*)
 
15795
      if test "$GCC" = yes; then
 
15796
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
15797
        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'
 
15798
      else
 
15799
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
15800
        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'
 
15801
      fi
 
15802
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
15803
      hardcode_libdir_separator_GCJ=:
 
15804
      ;;
 
15805
 
 
15806
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15807
      if test "$GCC" = yes; then
 
15808
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
15809
        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'
 
15810
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
15811
      else
 
15812
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
15813
        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'
 
15814
        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~
 
15815
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
15816
 
 
15817
        # Both c and cxx compiler support -rpath directly
 
15818
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
15819
      fi
 
15820
      hardcode_libdir_separator_GCJ=:
 
15821
      ;;
 
15822
 
 
15823
    sco3.2v5*)
 
15824
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15825
      hardcode_shlibpath_var_GCJ=no
 
15826
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
15827
      runpath_var=LD_RUN_PATH
 
15828
      hardcode_runpath_var=yes
 
15829
      ;;
 
15830
 
 
15831
    solaris*)
 
15832
      no_undefined_flag_GCJ=' -z text'
 
15833
      if test "$GCC" = yes; then
 
15834
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15835
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15836
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15837
      else
 
15838
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15839
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15840
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15841
      fi
 
15842
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
15843
      hardcode_shlibpath_var_GCJ=no
 
15844
      case $host_os in
 
15845
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15846
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15847
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
15848
      esac
 
15849
      link_all_deplibs_GCJ=yes
 
15850
      ;;
 
15851
 
 
15852
    sunos4*)
 
15853
      if test "x$host_vendor" = xsequent; then
 
15854
        # Use $CC to link under sequent, because it throws in some extra .o
 
15855
        # files that make .init and .fini sections work.
 
15856
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15857
      else
 
15858
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15859
      fi
 
15860
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15861
      hardcode_direct_GCJ=yes
 
15862
      hardcode_minus_L_GCJ=yes
 
15863
      hardcode_shlibpath_var_GCJ=no
 
15864
      ;;
 
15865
 
 
15866
    sysv4)
 
15867
      case $host_vendor in
 
15868
        sni)
 
15869
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15870
          hardcode_direct_GCJ=yes # is this really true???
 
15871
        ;;
 
15872
        siemens)
 
15873
          ## LD is ld it makes a PLAMLIB
 
15874
          ## CC just makes a GrossModule.
 
15875
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15876
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
15877
          hardcode_direct_GCJ=no
 
15878
        ;;
 
15879
        motorola)
 
15880
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15881
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
15882
        ;;
 
15883
      esac
 
15884
      runpath_var='LD_RUN_PATH'
 
15885
      hardcode_shlibpath_var_GCJ=no
 
15886
      ;;
 
15887
 
 
15888
    sysv4.3*)
 
15889
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15890
      hardcode_shlibpath_var_GCJ=no
 
15891
      export_dynamic_flag_spec_GCJ='-Bexport'
 
15892
      ;;
 
15893
 
 
15894
    sysv4*MP*)
 
15895
      if test -d /usr/nec; then
 
15896
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15897
        hardcode_shlibpath_var_GCJ=no
 
15898
        runpath_var=LD_RUN_PATH
 
15899
        hardcode_runpath_var=yes
 
15900
        ld_shlibs_GCJ=yes
 
15901
      fi
 
15902
      ;;
 
15903
 
 
15904
    sysv4.2uw2*)
 
15905
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15906
      hardcode_direct_GCJ=yes
 
15907
      hardcode_minus_L_GCJ=no
 
15908
      hardcode_shlibpath_var_GCJ=no
 
15909
      hardcode_runpath_var=yes
 
15910
      runpath_var=LD_RUN_PATH
 
15911
      ;;
 
15912
 
 
15913
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
15914
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
15915
      if test "$GCC" = yes; then
 
15916
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15917
      else
 
15918
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15919
      fi
 
15920
      runpath_var='LD_RUN_PATH'
 
15921
      hardcode_shlibpath_var_GCJ=no
 
15922
      ;;
 
15923
 
 
15924
    sysv5*)
 
15925
      no_undefined_flag_GCJ=' -z text'
 
15926
      # $CC -shared without GNU ld will not create a library from C++
 
15927
      # object files and a static libstdc++, better avoid it by now
 
15928
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15929
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15930
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15931
      hardcode_libdir_flag_spec_GCJ=
 
15932
      hardcode_shlibpath_var_GCJ=no
 
15933
      runpath_var='LD_RUN_PATH'
 
15934
      ;;
 
15935
 
 
15936
    uts4*)
 
15937
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15938
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15939
      hardcode_shlibpath_var_GCJ=no
 
15940
      ;;
 
15941
 
 
15942
    *)
 
15943
      ld_shlibs_GCJ=no
 
15944
      ;;
 
15945
    esac
 
15946
  fi
 
15947
 
 
15948
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
15949
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
15950
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
15951
 
 
15952
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15953
if test "$GCC" = yes; then
 
15954
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15955
fi
 
15956
 
 
15957
#
 
15958
# Do we need to explicitly link libc?
 
15959
#
 
15960
case "x$archive_cmds_need_lc_GCJ" in
 
15961
x|xyes)
 
15962
  # Assume -lc should be added
 
15963
  archive_cmds_need_lc_GCJ=yes
 
15964
 
 
15965
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15966
    case $archive_cmds_GCJ in
 
15967
    *'~'*)
 
15968
      # FIXME: we may have to deal with multi-command sequences.
 
15969
      ;;
 
15970
    '$CC '*)
 
15971
      # Test whether the compiler implicitly links with -lc since on some
 
15972
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15973
      # to ld, don't add -lc before -lgcc.
 
15974
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15975
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15976
      $rm conftest*
 
15977
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15978
 
 
15979
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15980
  (eval $ac_compile) 2>&5
 
15981
  ac_status=$?
 
15982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15983
  (exit $ac_status); } 2>conftest.err; then
 
15984
        soname=conftest
 
15985
        lib=conftest
 
15986
        libobjs=conftest.$ac_objext
 
15987
        deplibs=
 
15988
        wl=$lt_prog_compiler_wl_GCJ
 
15989
        compiler_flags=-v
 
15990
        linker_flags=-v
 
15991
        verstring=
 
15992
        output_objdir=.
 
15993
        libname=conftest
 
15994
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
15995
        allow_undefined_flag_GCJ=
 
15996
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15997
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15998
  ac_status=$?
 
15999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16000
  (exit $ac_status); }
 
16001
        then
 
16002
          archive_cmds_need_lc_GCJ=no
 
16003
        else
 
16004
          archive_cmds_need_lc_GCJ=yes
 
16005
        fi
 
16006
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16007
      else
 
16008
        cat conftest.err 1>&5
 
16009
      fi
 
16010
      $rm conftest*
 
16011
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16012
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16013
      ;;
 
16014
    esac
 
16015
  fi
 
16016
  ;;
 
16017
esac
 
16018
 
 
16019
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16020
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16021
hardcode_action_GCJ=
 
16022
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
16023
   test -n "$runpath_var GCJ" || \
 
16024
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
16025
 
 
16026
  # We can hardcode non-existant directories.
 
16027
  if test "$hardcode_direct_GCJ" != no &&
 
16028
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16029
     # have to relink, otherwise we might link with an installed library
 
16030
     # when we should be linking with a yet-to-be-installed one
 
16031
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
16032
     test "$hardcode_minus_L_GCJ" != no; then
 
16033
    # Linking always hardcodes the temporary library directory.
 
16034
    hardcode_action_GCJ=relink
 
16035
  else
 
16036
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16037
    hardcode_action_GCJ=immediate
 
16038
  fi
 
16039
else
 
16040
  # We cannot hardcode anything, or else we can only hardcode existing
 
16041
  # directories.
 
16042
  hardcode_action_GCJ=unsupported
 
16043
fi
 
16044
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
16045
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
16046
 
 
16047
if test "$hardcode_action_GCJ" = relink; then
 
16048
  # Fast installation is not supported
 
16049
  enable_fast_install=no
 
16050
elif test "$shlibpath_overrides_runpath" = yes ||
 
16051
     test "$enable_shared" = no; then
 
16052
  # Fast installation is not necessary
 
16053
  enable_fast_install=needless
 
16054
fi
 
16055
 
 
16056
striplib=
 
16057
old_striplib=
 
16058
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16059
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16060
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16061
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16062
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16063
  echo "$as_me:$LINENO: result: yes" >&5
 
16064
echo "${ECHO_T}yes" >&6
 
16065
else
 
16066
# FIXME - insert some real tests, host_os isn't really good enough
 
16067
  case $host_os in
 
16068
   darwin*)
 
16069
       if test -n "$STRIP" ; then
 
16070
         striplib="$STRIP -x"
 
16071
         echo "$as_me:$LINENO: result: yes" >&5
 
16072
echo "${ECHO_T}yes" >&6
 
16073
       else
 
16074
  echo "$as_me:$LINENO: result: no" >&5
 
16075
echo "${ECHO_T}no" >&6
 
16076
fi
 
16077
       ;;
 
16078
   *)
 
16079
  echo "$as_me:$LINENO: result: no" >&5
 
16080
echo "${ECHO_T}no" >&6
 
16081
    ;;
 
16082
  esac
 
16083
fi
 
16084
 
 
16085
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16086
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16087
library_names_spec=
 
16088
libname_spec='lib$name'
 
16089
soname_spec=
 
16090
shrext=".so"
 
16091
postinstall_cmds=
 
16092
postuninstall_cmds=
 
16093
finish_cmds=
 
16094
finish_eval=
 
16095
shlibpath_var=
 
16096
shlibpath_overrides_runpath=unknown
 
16097
version_type=none
 
16098
dynamic_linker="$host_os ld.so"
 
16099
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16100
if test "$GCC" = yes; then
 
16101
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16102
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16103
    # if the path contains ";" then we assume it to be the separator
 
16104
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16105
    # assumed that no part of a normal pathname contains ";" but that should
 
16106
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16107
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16108
  else
 
16109
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16110
  fi
 
16111
else
 
16112
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16113
fi
 
16114
need_lib_prefix=unknown
 
16115
hardcode_into_libs=no
 
16116
 
 
16117
# when you set need_version to no, make sure it does not cause -set_version
 
16118
# flags to be left without arguments
 
16119
need_version=unknown
 
16120
 
 
16121
case $host_os in
 
16122
aix3*)
 
16123
  version_type=linux
 
16124
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16125
  shlibpath_var=LIBPATH
 
16126
 
 
16127
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16128
  soname_spec='${libname}${release}${shared_ext}$major'
 
16129
  ;;
 
16130
 
 
16131
aix4* | aix5*)
 
16132
  version_type=linux
 
16133
  need_lib_prefix=no
 
16134
  need_version=no
 
16135
  hardcode_into_libs=yes
 
16136
  if test "$host_cpu" = ia64; then
 
16137
    # AIX 5 supports IA64
 
16138
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16139
    shlibpath_var=LD_LIBRARY_PATH
 
16140
  else
 
16141
    # With GCC up to 2.95.x, collect2 would create an import file
 
16142
    # for dependence libraries.  The import file would start with
 
16143
    # the line `#! .'.  This would cause the generated library to
 
16144
    # depend on `.', always an invalid library.  This was fixed in
 
16145
    # development snapshots of GCC prior to 3.0.
 
16146
    case $host_os in
 
16147
      aix4 | aix4.[01] | aix4.[01].*)
 
16148
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16149
           echo ' yes '
 
16150
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16151
        :
 
16152
      else
 
16153
        can_build_shared=no
 
16154
      fi
 
16155
      ;;
 
16156
    esac
 
16157
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16158
    # soname into executable. Probably we can add versioning support to
 
16159
    # collect2, so additional links can be useful in future.
 
16160
    if test "$aix_use_runtimelinking" = yes; then
 
16161
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16162
      # instead of lib<name>.a to let people know that these are not
 
16163
      # typical AIX shared libraries.
 
16164
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16165
    else
 
16166
      # We preserve .a as extension for shared libraries through AIX4.2
 
16167
      # and later when we are not doing run time linking.
 
16168
      library_names_spec='${libname}${release}.a $libname.a'
 
16169
      soname_spec='${libname}${release}${shared_ext}$major'
 
16170
    fi
 
16171
    shlibpath_var=LIBPATH
 
16172
  fi
 
16173
  ;;
 
16174
 
 
16175
amigaos*)
 
16176
  library_names_spec='$libname.ixlibrary $libname.a'
 
16177
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16178
  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'
 
16179
  ;;
 
16180
 
 
16181
beos*)
 
16182
  library_names_spec='${libname}${shared_ext}'
 
16183
  dynamic_linker="$host_os ld.so"
 
16184
  shlibpath_var=LIBRARY_PATH
 
16185
  ;;
 
16186
 
 
16187
bsdi4*)
 
16188
  version_type=linux
 
16189
  need_version=no
 
16190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16191
  soname_spec='${libname}${release}${shared_ext}$major'
 
16192
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16193
  shlibpath_var=LD_LIBRARY_PATH
 
16194
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16195
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16196
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16197
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16198
  # libtool to hard-code these into programs
 
16199
  ;;
 
16200
 
 
16201
cygwin* | mingw* | pw32*)
 
16202
  version_type=windows
 
16203
  shrext=".dll"
 
16204
  need_version=no
 
16205
  need_lib_prefix=no
 
16206
 
 
16207
  case $GCC,$host_os in
 
16208
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16209
    library_names_spec='$libname.dll.a'
 
16210
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16211
    postinstall_cmds='base_file=`basename \${file}`~
 
16212
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16213
      dldir=$destdir/`dirname \$dlpath`~
 
16214
      test -d \$dldir || mkdir -p \$dldir~
 
16215
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16216
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16217
      dlpath=$dir/\$dldll~
 
16218
       $rm \$dlpath'
 
16219
    shlibpath_overrides_runpath=yes
 
16220
 
 
16221
    case $host_os in
 
16222
    cygwin*)
 
16223
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16224
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16225
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
 
16226
      ;;
 
16227
    mingw*)
 
16228
      # MinGW DLLs use traditional 'lib' prefix
 
16229
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16230
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16231
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16232
        # It is most probably a Windows format PATH printed by
 
16233
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16234
        # path with ; separators, and with drive letters. We can handle the
 
16235
        # drive letters (cygwin fileutils understands them), so leave them,
 
16236
        # especially as we might pass files found there to a mingw objdump,
 
16237
        # which wouldn't understand a cygwinified path. Ahh.
 
16238
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16239
      else
 
16240
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16241
      fi
 
16242
      ;;
 
16243
    pw32*)
 
16244
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16245
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16246
      ;;
 
16247
    esac
 
16248
    ;;
 
16249
 
 
16250
  *)
 
16251
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16252
    ;;
 
16253
  esac
 
16254
  dynamic_linker='Win32 ld.exe'
 
16255
  # FIXME: first we should search . and the directory the executable is in
 
16256
  shlibpath_var=PATH
 
16257
  ;;
 
16258
 
 
16259
darwin* | rhapsody*)
 
16260
  dynamic_linker="$host_os dyld"
 
16261
  version_type=darwin
 
16262
  need_lib_prefix=no
 
16263
  need_version=no
 
16264
  # FIXME: Relying on posixy $() will cause problems for
 
16265
  #        cross-compilation, but unfortunately the echo tests do not
 
16266
  #        yet detect zsh echo's removal of \ escapes.
 
16267
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16268
  soname_spec='${libname}${release}${major}$shared_ext'
 
16269
  shlibpath_overrides_runpath=yes
 
16270
  shlibpath_var=DYLD_LIBRARY_PATH
 
16271
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
16272
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16273
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
 
16274
  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"`
 
16275
  fi
 
16276
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16277
  ;;
 
16278
 
 
16279
dgux*)
 
16280
  version_type=linux
 
16281
  need_lib_prefix=no
 
16282
  need_version=no
 
16283
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16284
  soname_spec='${libname}${release}${shared_ext}$major'
 
16285
  shlibpath_var=LD_LIBRARY_PATH
 
16286
  ;;
 
16287
 
 
16288
freebsd1*)
 
16289
  dynamic_linker=no
 
16290
  ;;
 
16291
 
 
16292
freebsd*-gnu*)
 
16293
  version_type=linux
 
16294
  need_lib_prefix=no
 
16295
  need_version=no
 
16296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16297
  soname_spec='${libname}${release}${shared_ext}$major'
 
16298
  shlibpath_var=LD_LIBRARY_PATH
 
16299
  shlibpath_overrides_runpath=no
 
16300
  hardcode_into_libs=yes
 
16301
  dynamic_linker='GNU ld.so'
 
16302
  ;;
 
16303
 
 
16304
freebsd*)
 
16305
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16306
  version_type=freebsd-$objformat
 
16307
  case $version_type in
 
16308
    freebsd-elf*)
 
16309
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16310
      need_version=no
 
16311
      need_lib_prefix=no
 
16312
      ;;
 
16313
    freebsd-*)
 
16314
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16315
      need_version=yes
 
16316
      ;;
 
16317
  esac
 
16318
  shlibpath_var=LD_LIBRARY_PATH
 
16319
  case $host_os in
 
16320
  freebsd2*)
 
16321
    shlibpath_overrides_runpath=yes
 
16322
    ;;
 
16323
  freebsd3.01* | freebsdelf3.01*)
 
16324
    shlibpath_overrides_runpath=yes
 
16325
    hardcode_into_libs=yes
 
16326
    ;;
 
16327
  *) # from 3.2 on
 
16328
    shlibpath_overrides_runpath=no
 
16329
    hardcode_into_libs=yes
 
16330
    ;;
 
16331
  esac
 
16332
  ;;
 
16333
 
 
16334
gnu*)
 
16335
  version_type=linux
 
16336
  need_lib_prefix=no
 
16337
  need_version=no
 
16338
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16339
  soname_spec='${libname}${release}${shared_ext}$major'
 
16340
  shlibpath_var=LD_LIBRARY_PATH
 
16341
  hardcode_into_libs=yes
 
16342
  ;;
 
16343
 
 
16344
hpux9* | hpux10* | hpux11*)
 
16345
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16346
  # link against other versions.
 
16347
  version_type=sunos
 
16348
  need_lib_prefix=no
 
16349
  need_version=no
 
16350
  case "$host_cpu" in
 
16351
  ia64*)
 
16352
    shrext='.so'
 
16353
    hardcode_into_libs=yes
 
16354
    dynamic_linker="$host_os dld.so"
 
16355
    shlibpath_var=LD_LIBRARY_PATH
 
16356
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16357
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16358
    soname_spec='${libname}${release}${shared_ext}$major'
 
16359
    if test "X$HPUX_IA64_MODE" = X32; then
 
16360
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16361
    else
 
16362
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16363
    fi
 
16364
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16365
    ;;
 
16366
   hppa*64*)
 
16367
     shrext='.sl'
 
16368
     hardcode_into_libs=yes
 
16369
     dynamic_linker="$host_os dld.sl"
 
16370
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16371
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16372
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16373
     soname_spec='${libname}${release}${shared_ext}$major'
 
16374
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16375
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16376
     ;;
 
16377
   *)
 
16378
    shrext='.sl'
 
16379
    dynamic_linker="$host_os dld.sl"
 
16380
    shlibpath_var=SHLIB_PATH
 
16381
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16382
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16383
    soname_spec='${libname}${release}${shared_ext}$major'
 
16384
    ;;
 
16385
  esac
 
16386
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16387
  postinstall_cmds='chmod 555 $lib'
 
16388
  ;;
 
16389
 
 
16390
irix5* | irix6* | nonstopux*)
 
16391
  case $host_os in
 
16392
    nonstopux*) version_type=nonstopux ;;
 
16393
    *)
 
16394
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16395
                version_type=linux
 
16396
        else
 
16397
                version_type=irix
 
16398
        fi ;;
 
16399
  esac
 
16400
  need_lib_prefix=no
 
16401
  need_version=no
 
16402
  soname_spec='${libname}${release}${shared_ext}$major'
 
16403
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16404
  case $host_os in
 
16405
  irix5* | nonstopux*)
 
16406
    libsuff= shlibsuff=
 
16407
    ;;
 
16408
  *)
 
16409
    case $LD in # libtool.m4 will add one of these switches to LD
 
16410
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16411
      libsuff= shlibsuff= libmagic=32-bit;;
 
16412
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16413
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16414
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16415
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16416
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16417
    esac
 
16418
    ;;
 
16419
  esac
 
16420
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16421
  shlibpath_overrides_runpath=no
 
16422
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16423
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16424
  hardcode_into_libs=yes
 
16425
  ;;
 
16426
 
 
16427
# No shared lib support for Linux oldld, aout, or coff.
 
16428
linux*oldld* | linux*aout* | linux*coff*)
 
16429
  dynamic_linker=no
 
16430
  ;;
 
16431
 
 
16432
# This must be Linux ELF.
 
16433
linux*)
 
16434
  version_type=linux
 
16435
  need_lib_prefix=no
 
16436
  need_version=no
 
16437
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16438
  soname_spec='${libname}${release}${shared_ext}$major'
 
16439
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16440
  shlibpath_var=LD_LIBRARY_PATH
 
16441
  shlibpath_overrides_runpath=no
 
16442
  # This implies no fast_install, which is unacceptable.
 
16443
  # Some rework will be needed to allow for fast_install
 
16444
  # before this can be enabled.
 
16445
  hardcode_into_libs=yes
 
16446
 
 
16447
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16448
  # powerpc, because MkLinux only supported shared libraries with the
 
16449
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16450
  # most powerpc-linux boxes support dynamic linking these days and
 
16451
  # people can always --disable-shared, the test was removed, and we
 
16452
  # assume the GNU/Linux dynamic linker is in use.
 
16453
  dynamic_linker='GNU/Linux ld.so'
 
16454
  ;;
 
16455
 
 
16456
netbsd*)
 
16457
  version_type=sunos
 
16458
  need_lib_prefix=no
 
16459
  need_version=no
 
16460
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16461
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16462
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16463
    dynamic_linker='NetBSD (a.out) ld.so'
 
16464
  else
 
16465
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
16466
    soname_spec='${libname}${release}${shared_ext}$major'
 
16467
    dynamic_linker='NetBSD ld.elf_so'
 
16468
  fi
 
16469
  shlibpath_var=LD_LIBRARY_PATH
 
16470
  shlibpath_overrides_runpath=yes
 
16471
  hardcode_into_libs=yes
 
16472
  ;;
 
16473
 
 
16474
newsos6)
 
16475
  version_type=linux
 
16476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16477
  shlibpath_var=LD_LIBRARY_PATH
 
16478
  shlibpath_overrides_runpath=yes
 
16479
  ;;
 
16480
 
 
16481
nto-qnx)
 
16482
  version_type=linux
 
16483
  need_lib_prefix=no
 
16484
  need_version=no
 
16485
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16486
  soname_spec='${libname}${release}${shared_ext}$major'
 
16487
  shlibpath_var=LD_LIBRARY_PATH
 
16488
  shlibpath_overrides_runpath=yes
 
16489
  ;;
 
16490
 
 
16491
openbsd*)
 
16492
  version_type=sunos
 
16493
  need_lib_prefix=no
 
16494
  need_version=no
 
16495
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16496
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16497
  shlibpath_var=LD_LIBRARY_PATH
 
16498
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16499
    case $host_os in
 
16500
      openbsd2.[89] | openbsd2.[89].*)
 
16501
        shlibpath_overrides_runpath=no
 
16502
        ;;
 
16503
      *)
 
16504
        shlibpath_overrides_runpath=yes
 
16505
        ;;
 
16506
      esac
 
16507
  else
 
16508
    shlibpath_overrides_runpath=yes
 
16509
  fi
 
16510
  ;;
 
16511
 
 
16512
os2*)
 
16513
  libname_spec='$name'
 
16514
  shrext=".dll"
 
16515
  need_lib_prefix=no
 
16516
  library_names_spec='$libname${shared_ext} $libname.a'
 
16517
  dynamic_linker='OS/2 ld.exe'
 
16518
  shlibpath_var=LIBPATH
 
16519
  ;;
 
16520
 
 
16521
osf3* | osf4* | osf5*)
 
16522
  version_type=osf
 
16523
  need_lib_prefix=no
 
16524
  need_version=no
 
16525
  soname_spec='${libname}${release}${shared_ext}$major'
 
16526
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16527
  shlibpath_var=LD_LIBRARY_PATH
 
16528
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16529
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16530
  ;;
 
16531
 
 
16532
sco3.2v5*)
 
16533
  version_type=osf
 
16534
  soname_spec='${libname}${release}${shared_ext}$major'
 
16535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16536
  shlibpath_var=LD_LIBRARY_PATH
 
16537
  ;;
 
16538
 
 
16539
solaris*)
 
16540
  version_type=linux
 
16541
  need_lib_prefix=no
 
16542
  need_version=no
 
16543
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16544
  soname_spec='${libname}${release}${shared_ext}$major'
 
16545
  shlibpath_var=LD_LIBRARY_PATH
 
16546
  shlibpath_overrides_runpath=yes
 
16547
  hardcode_into_libs=yes
 
16548
  # ldd complains unless libraries are executable
 
16549
  postinstall_cmds='chmod +x $lib'
 
16550
  ;;
 
16551
 
 
16552
sunos4*)
 
16553
  version_type=sunos
 
16554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16555
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16556
  shlibpath_var=LD_LIBRARY_PATH
 
16557
  shlibpath_overrides_runpath=yes
 
16558
  if test "$with_gnu_ld" = yes; then
 
16559
    need_lib_prefix=no
 
16560
  fi
 
16561
  need_version=yes
 
16562
  ;;
 
16563
 
 
16564
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16565
  version_type=linux
 
16566
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16567
  soname_spec='${libname}${release}${shared_ext}$major'
 
16568
  shlibpath_var=LD_LIBRARY_PATH
 
16569
  case $host_vendor in
 
16570
    sni)
 
16571
      shlibpath_overrides_runpath=no
 
16572
      need_lib_prefix=no
 
16573
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16574
      runpath_var=LD_RUN_PATH
 
16575
      ;;
 
16576
    siemens)
 
16577
      need_lib_prefix=no
 
16578
      ;;
 
16579
    motorola)
 
16580
      need_lib_prefix=no
 
16581
      need_version=no
 
16582
      shlibpath_overrides_runpath=no
 
16583
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16584
      ;;
 
16585
  esac
 
16586
  ;;
 
16587
 
 
16588
sysv4*MP*)
 
16589
  if test -d /usr/nec ;then
 
16590
    version_type=linux
 
16591
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16592
    soname_spec='$libname${shared_ext}.$major'
 
16593
    shlibpath_var=LD_LIBRARY_PATH
 
16594
  fi
 
16595
  ;;
 
16596
 
 
16597
uts4*)
 
16598
  version_type=linux
 
16599
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16600
  soname_spec='${libname}${release}${shared_ext}$major'
 
16601
  shlibpath_var=LD_LIBRARY_PATH
 
16602
  ;;
 
16603
 
 
16604
*)
 
16605
  dynamic_linker=no
 
16606
  ;;
 
16607
esac
 
16608
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16609
echo "${ECHO_T}$dynamic_linker" >&6
 
16610
test "$dynamic_linker" = no && can_build_shared=no
 
16611
 
 
16612
if test "x$enable_dlopen" != xyes; then
 
16613
  enable_dlopen=unknown
 
16614
  enable_dlopen_self=unknown
 
16615
  enable_dlopen_self_static=unknown
 
16616
else
 
16617
  lt_cv_dlopen=no
 
16618
  lt_cv_dlopen_libs=
 
16619
 
 
16620
  case $host_os in
 
16621
  beos*)
 
16622
    lt_cv_dlopen="load_add_on"
 
16623
    lt_cv_dlopen_libs=
 
16624
    lt_cv_dlopen_self=yes
 
16625
    ;;
 
16626
 
 
16627
  mingw* | pw32*)
 
16628
    lt_cv_dlopen="LoadLibrary"
 
16629
    lt_cv_dlopen_libs=
 
16630
   ;;
 
16631
 
 
16632
  cygwin*)
 
16633
    lt_cv_dlopen="dlopen"
 
16634
    lt_cv_dlopen_libs=
 
16635
   ;;
 
16636
 
 
16637
  darwin*)
 
16638
  # if libdl is installed we need to link against it
 
16639
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
16640
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
16641
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
16642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16643
else
 
16644
  ac_check_lib_save_LIBS=$LIBS
 
16645
LIBS="-ldl  $LIBS"
 
16646
cat >conftest.$ac_ext <<_ACEOF
 
16647
#line $LINENO "configure"
 
16648
/* confdefs.h.  */
 
16649
_ACEOF
 
16650
cat confdefs.h >>conftest.$ac_ext
 
16651
cat >>conftest.$ac_ext <<_ACEOF
 
16652
/* end confdefs.h.  */
 
16653
 
 
16654
/* Override any gcc2 internal prototype to avoid an error.  */
 
16655
#ifdef __cplusplus
 
16656
extern "C"
 
16657
#endif
 
16658
/* We use char because int might match the return type of a gcc2
 
16659
   builtin and then its argument prototype would still apply.  */
 
16660
char dlopen ();
 
16661
int
 
16662
main ()
 
16663
{
 
16664
dlopen ();
 
16665
  ;
 
16666
  return 0;
 
16667
}
 
16668
_ACEOF
 
16669
rm -f conftest.$ac_objext conftest$ac_exeext
 
16670
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16671
  (eval $ac_link) 2>&5
 
16672
  ac_status=$?
 
16673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16674
  (exit $ac_status); } &&
 
16675
         { ac_try='test -s conftest$ac_exeext'
 
16676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16677
  (eval $ac_try) 2>&5
 
16678
  ac_status=$?
 
16679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16680
  (exit $ac_status); }; }; then
 
16681
  ac_cv_lib_dl_dlopen=yes
 
16682
else
 
16683
  echo "$as_me: failed program was:" >&5
 
16684
sed 's/^/| /' conftest.$ac_ext >&5
 
16685
 
 
16686
ac_cv_lib_dl_dlopen=no
 
16687
fi
 
16688
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16689
LIBS=$ac_check_lib_save_LIBS
 
16690
fi
 
16691
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
16692
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
16693
if test $ac_cv_lib_dl_dlopen = yes; then
 
16694
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
16695
else
 
16696
 
 
16697
    lt_cv_dlopen="dyld"
 
16698
    lt_cv_dlopen_libs=
 
16699
    lt_cv_dlopen_self=yes
 
16700
 
 
16701
fi
 
16702
 
 
16703
   ;;
 
16704
 
 
16705
  *)
 
16706
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
16707
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
16708
if test "${ac_cv_func_shl_load+set}" = set; then
 
16709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16710
else
 
16711
  cat >conftest.$ac_ext <<_ACEOF
 
16712
#line $LINENO "configure"
 
16713
/* confdefs.h.  */
 
16714
_ACEOF
 
16715
cat confdefs.h >>conftest.$ac_ext
 
16716
cat >>conftest.$ac_ext <<_ACEOF
 
16717
/* end confdefs.h.  */
 
16718
/* System header to define __stub macros and hopefully few prototypes,
 
16719
    which can conflict with char shl_load (); below.
 
16720
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16721
    <limits.h> exists even on freestanding compilers.  */
 
16722
#ifdef __STDC__
 
16723
# include <limits.h>
 
16724
#else
 
16725
# include <assert.h>
 
16726
#endif
 
16727
/* Override any gcc2 internal prototype to avoid an error.  */
 
16728
#ifdef __cplusplus
 
16729
extern "C"
 
16730
{
 
16731
#endif
 
16732
/* We use char because int might match the return type of a gcc2
 
16733
   builtin and then its argument prototype would still apply.  */
 
16734
char shl_load ();
 
16735
/* The GNU C library defines this for functions which it implements
 
16736
    to always fail with ENOSYS.  Some functions are actually named
 
16737
    something starting with __ and the normal name is an alias.  */
 
16738
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
16739
choke me
 
16740
#else
 
16741
char (*f) () = shl_load;
 
16742
#endif
 
16743
#ifdef __cplusplus
 
16744
}
 
16745
#endif
 
16746
 
 
16747
int
 
16748
main ()
 
16749
{
 
16750
return f != shl_load;
 
16751
  ;
 
16752
  return 0;
 
16753
}
 
16754
_ACEOF
 
16755
rm -f conftest.$ac_objext conftest$ac_exeext
 
16756
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16757
  (eval $ac_link) 2>&5
 
16758
  ac_status=$?
 
16759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16760
  (exit $ac_status); } &&
 
16761
         { ac_try='test -s conftest$ac_exeext'
 
16762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16763
  (eval $ac_try) 2>&5
 
16764
  ac_status=$?
 
16765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16766
  (exit $ac_status); }; }; then
 
16767
  ac_cv_func_shl_load=yes
 
16768
else
 
16769
  echo "$as_me: failed program was:" >&5
 
16770
sed 's/^/| /' conftest.$ac_ext >&5
 
16771
 
 
16772
ac_cv_func_shl_load=no
 
16773
fi
 
16774
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16775
fi
 
16776
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
16777
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
16778
if test $ac_cv_func_shl_load = yes; then
 
16779
  lt_cv_dlopen="shl_load"
 
16780
else
 
16781
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
16782
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
16783
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
16784
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16785
else
 
16786
  ac_check_lib_save_LIBS=$LIBS
 
16787
LIBS="-ldld  $LIBS"
 
16788
cat >conftest.$ac_ext <<_ACEOF
 
16789
#line $LINENO "configure"
 
16790
/* confdefs.h.  */
 
16791
_ACEOF
 
16792
cat confdefs.h >>conftest.$ac_ext
 
16793
cat >>conftest.$ac_ext <<_ACEOF
 
16794
/* end confdefs.h.  */
 
16795
 
 
16796
/* Override any gcc2 internal prototype to avoid an error.  */
 
16797
#ifdef __cplusplus
 
16798
extern "C"
 
16799
#endif
 
16800
/* We use char because int might match the return type of a gcc2
 
16801
   builtin and then its argument prototype would still apply.  */
 
16802
char shl_load ();
 
16803
int
 
16804
main ()
 
16805
{
 
16806
shl_load ();
 
16807
  ;
 
16808
  return 0;
 
16809
}
 
16810
_ACEOF
 
16811
rm -f conftest.$ac_objext conftest$ac_exeext
 
16812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16813
  (eval $ac_link) 2>&5
 
16814
  ac_status=$?
 
16815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16816
  (exit $ac_status); } &&
 
16817
         { ac_try='test -s conftest$ac_exeext'
 
16818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16819
  (eval $ac_try) 2>&5
 
16820
  ac_status=$?
 
16821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16822
  (exit $ac_status); }; }; then
 
16823
  ac_cv_lib_dld_shl_load=yes
 
16824
else
 
16825
  echo "$as_me: failed program was:" >&5
 
16826
sed 's/^/| /' conftest.$ac_ext >&5
 
16827
 
 
16828
ac_cv_lib_dld_shl_load=no
 
16829
fi
 
16830
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16831
LIBS=$ac_check_lib_save_LIBS
 
16832
fi
 
16833
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
16834
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
16835
if test $ac_cv_lib_dld_shl_load = yes; then
 
16836
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
16837
else
 
16838
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
16839
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
16840
if test "${ac_cv_func_dlopen+set}" = set; then
 
16841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16842
else
 
16843
  cat >conftest.$ac_ext <<_ACEOF
 
16844
#line $LINENO "configure"
 
16845
/* confdefs.h.  */
 
16846
_ACEOF
 
16847
cat confdefs.h >>conftest.$ac_ext
 
16848
cat >>conftest.$ac_ext <<_ACEOF
 
16849
/* end confdefs.h.  */
 
16850
/* System header to define __stub macros and hopefully few prototypes,
 
16851
    which can conflict with char dlopen (); below.
 
16852
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16853
    <limits.h> exists even on freestanding compilers.  */
 
16854
#ifdef __STDC__
 
16855
# include <limits.h>
 
16856
#else
 
16857
# include <assert.h>
 
16858
#endif
 
16859
/* Override any gcc2 internal prototype to avoid an error.  */
 
16860
#ifdef __cplusplus
 
16861
extern "C"
 
16862
{
 
16863
#endif
 
16864
/* We use char because int might match the return type of a gcc2
 
16865
   builtin and then its argument prototype would still apply.  */
 
16866
char dlopen ();
 
16867
/* The GNU C library defines this for functions which it implements
 
16868
    to always fail with ENOSYS.  Some functions are actually named
 
16869
    something starting with __ and the normal name is an alias.  */
 
16870
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
16871
choke me
 
16872
#else
 
16873
char (*f) () = dlopen;
 
16874
#endif
 
16875
#ifdef __cplusplus
 
16876
}
 
16877
#endif
 
16878
 
 
16879
int
 
16880
main ()
 
16881
{
 
16882
return f != dlopen;
 
16883
  ;
 
16884
  return 0;
 
16885
}
 
16886
_ACEOF
 
16887
rm -f conftest.$ac_objext conftest$ac_exeext
 
16888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16889
  (eval $ac_link) 2>&5
 
16890
  ac_status=$?
 
16891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16892
  (exit $ac_status); } &&
 
16893
         { ac_try='test -s conftest$ac_exeext'
 
16894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16895
  (eval $ac_try) 2>&5
 
16896
  ac_status=$?
 
16897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16898
  (exit $ac_status); }; }; then
 
16899
  ac_cv_func_dlopen=yes
 
16900
else
 
16901
  echo "$as_me: failed program was:" >&5
 
16902
sed 's/^/| /' conftest.$ac_ext >&5
 
16903
 
 
16904
ac_cv_func_dlopen=no
 
16905
fi
 
16906
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16907
fi
 
16908
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
16909
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
16910
if test $ac_cv_func_dlopen = yes; then
 
16911
  lt_cv_dlopen="dlopen"
 
16912
else
 
16913
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
16914
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
16915
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
16916
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16917
else
 
16918
  ac_check_lib_save_LIBS=$LIBS
 
16919
LIBS="-ldl  $LIBS"
 
16920
cat >conftest.$ac_ext <<_ACEOF
 
16921
#line $LINENO "configure"
 
16922
/* confdefs.h.  */
 
16923
_ACEOF
 
16924
cat confdefs.h >>conftest.$ac_ext
 
16925
cat >>conftest.$ac_ext <<_ACEOF
 
16926
/* end confdefs.h.  */
 
16927
 
 
16928
/* Override any gcc2 internal prototype to avoid an error.  */
 
16929
#ifdef __cplusplus
 
16930
extern "C"
 
16931
#endif
 
16932
/* We use char because int might match the return type of a gcc2
 
16933
   builtin and then its argument prototype would still apply.  */
 
16934
char dlopen ();
 
16935
int
 
16936
main ()
 
16937
{
 
16938
dlopen ();
 
16939
  ;
 
16940
  return 0;
 
16941
}
 
16942
_ACEOF
 
16943
rm -f conftest.$ac_objext conftest$ac_exeext
 
16944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16945
  (eval $ac_link) 2>&5
 
16946
  ac_status=$?
 
16947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16948
  (exit $ac_status); } &&
 
16949
         { ac_try='test -s conftest$ac_exeext'
 
16950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16951
  (eval $ac_try) 2>&5
 
16952
  ac_status=$?
 
16953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16954
  (exit $ac_status); }; }; then
 
16955
  ac_cv_lib_dl_dlopen=yes
 
16956
else
 
16957
  echo "$as_me: failed program was:" >&5
 
16958
sed 's/^/| /' conftest.$ac_ext >&5
 
16959
 
 
16960
ac_cv_lib_dl_dlopen=no
 
16961
fi
 
16962
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
16963
LIBS=$ac_check_lib_save_LIBS
 
16964
fi
 
16965
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
16966
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
16967
if test $ac_cv_lib_dl_dlopen = yes; then
 
16968
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
16969
else
 
16970
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
16971
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
16972
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
16973
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16974
else
 
16975
  ac_check_lib_save_LIBS=$LIBS
 
16976
LIBS="-lsvld  $LIBS"
 
16977
cat >conftest.$ac_ext <<_ACEOF
 
16978
#line $LINENO "configure"
 
16979
/* confdefs.h.  */
 
16980
_ACEOF
 
16981
cat confdefs.h >>conftest.$ac_ext
 
16982
cat >>conftest.$ac_ext <<_ACEOF
 
16983
/* end confdefs.h.  */
 
16984
 
 
16985
/* Override any gcc2 internal prototype to avoid an error.  */
 
16986
#ifdef __cplusplus
 
16987
extern "C"
 
16988
#endif
 
16989
/* We use char because int might match the return type of a gcc2
 
16990
   builtin and then its argument prototype would still apply.  */
 
16991
char dlopen ();
 
16992
int
 
16993
main ()
 
16994
{
 
16995
dlopen ();
 
16996
  ;
 
16997
  return 0;
 
16998
}
 
16999
_ACEOF
 
17000
rm -f conftest.$ac_objext conftest$ac_exeext
 
17001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17002
  (eval $ac_link) 2>&5
 
17003
  ac_status=$?
 
17004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17005
  (exit $ac_status); } &&
 
17006
         { ac_try='test -s conftest$ac_exeext'
 
17007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17008
  (eval $ac_try) 2>&5
 
17009
  ac_status=$?
 
17010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17011
  (exit $ac_status); }; }; then
 
17012
  ac_cv_lib_svld_dlopen=yes
 
17013
else
 
17014
  echo "$as_me: failed program was:" >&5
 
17015
sed 's/^/| /' conftest.$ac_ext >&5
 
17016
 
 
17017
ac_cv_lib_svld_dlopen=no
 
17018
fi
 
17019
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
17020
LIBS=$ac_check_lib_save_LIBS
 
17021
fi
 
17022
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17023
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17024
if test $ac_cv_lib_svld_dlopen = yes; then
 
17025
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17026
else
 
17027
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17028
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17029
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17030
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17031
else
 
17032
  ac_check_lib_save_LIBS=$LIBS
 
17033
LIBS="-ldld  $LIBS"
 
17034
cat >conftest.$ac_ext <<_ACEOF
 
17035
#line $LINENO "configure"
 
17036
/* confdefs.h.  */
 
17037
_ACEOF
 
17038
cat confdefs.h >>conftest.$ac_ext
 
17039
cat >>conftest.$ac_ext <<_ACEOF
 
17040
/* end confdefs.h.  */
 
17041
 
 
17042
/* Override any gcc2 internal prototype to avoid an error.  */
 
17043
#ifdef __cplusplus
 
17044
extern "C"
 
17045
#endif
 
17046
/* We use char because int might match the return type of a gcc2
 
17047
   builtin and then its argument prototype would still apply.  */
 
17048
char dld_link ();
 
17049
int
 
17050
main ()
 
17051
{
 
17052
dld_link ();
 
17053
  ;
 
17054
  return 0;
 
17055
}
 
17056
_ACEOF
 
17057
rm -f conftest.$ac_objext conftest$ac_exeext
 
17058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17059
  (eval $ac_link) 2>&5
 
17060
  ac_status=$?
 
17061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17062
  (exit $ac_status); } &&
 
17063
         { ac_try='test -s conftest$ac_exeext'
 
17064
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17065
  (eval $ac_try) 2>&5
 
17066
  ac_status=$?
 
17067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17068
  (exit $ac_status); }; }; then
 
17069
  ac_cv_lib_dld_dld_link=yes
 
17070
else
 
17071
  echo "$as_me: failed program was:" >&5
 
17072
sed 's/^/| /' conftest.$ac_ext >&5
 
17073
 
 
17074
ac_cv_lib_dld_dld_link=no
 
17075
fi
 
17076
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
17077
LIBS=$ac_check_lib_save_LIBS
 
17078
fi
 
17079
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17080
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17081
if test $ac_cv_lib_dld_dld_link = yes; then
 
17082
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17083
fi
 
17084
 
 
17085
 
 
17086
fi
 
17087
 
 
17088
 
 
17089
fi
 
17090
 
 
17091
 
 
17092
fi
 
17093
 
 
17094
 
 
17095
fi
 
17096
 
 
17097
 
 
17098
fi
 
17099
 
 
17100
    ;;
 
17101
  esac
 
17102
 
 
17103
  if test "x$lt_cv_dlopen" != xno; then
 
17104
    enable_dlopen=yes
 
17105
  else
 
17106
    enable_dlopen=no
 
17107
  fi
 
17108
 
 
17109
  case $lt_cv_dlopen in
 
17110
  dlopen)
 
17111
    save_CPPFLAGS="$CPPFLAGS"
 
17112
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17113
 
 
17114
    save_LDFLAGS="$LDFLAGS"
 
17115
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17116
 
 
17117
    save_LIBS="$LIBS"
 
17118
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17119
 
 
17120
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17121
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
17122
if test "${lt_cv_dlopen_self+set}" = set; then
 
17123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17124
else
 
17125
          if test "$cross_compiling" = yes; then :
 
17126
  lt_cv_dlopen_self=cross
 
17127
else
 
17128
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17129
  lt_status=$lt_dlunknown
 
17130
  cat > conftest.$ac_ext <<EOF
 
17131
#line 17131 "configure"
 
17132
#include "confdefs.h"
 
17133
 
 
17134
#if HAVE_DLFCN_H
 
17135
#include <dlfcn.h>
 
17136
#endif
 
17137
 
 
17138
#include <stdio.h>
 
17139
 
 
17140
#ifdef RTLD_GLOBAL
 
17141
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17142
#else
 
17143
#  ifdef DL_GLOBAL
 
17144
#    define LT_DLGLOBAL         DL_GLOBAL
 
17145
#  else
 
17146
#    define LT_DLGLOBAL         0
 
17147
#  endif
 
17148
#endif
 
17149
 
 
17150
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17151
   find out it does not work in some platform. */
 
17152
#ifndef LT_DLLAZY_OR_NOW
 
17153
#  ifdef RTLD_LAZY
 
17154
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17155
#  else
 
17156
#    ifdef DL_LAZY
 
17157
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17158
#    else
 
17159
#      ifdef RTLD_NOW
 
17160
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17161
#      else
 
17162
#        ifdef DL_NOW
 
17163
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17164
#        else
 
17165
#          define LT_DLLAZY_OR_NOW      0
 
17166
#        endif
 
17167
#      endif
 
17168
#    endif
 
17169
#  endif
 
17170
#endif
 
17171
 
 
17172
#ifdef __cplusplus
 
17173
extern "C" void exit (int);
 
17174
#endif
 
17175
 
 
17176
void fnord() { int i=42;}
 
17177
int main ()
 
17178
{
 
17179
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17180
  int status = $lt_dlunknown;
 
17181
 
 
17182
  if (self)
 
17183
    {
 
17184
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17185
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17186
      /* dlclose (self); */
 
17187
    }
 
17188
 
 
17189
    exit (status);
 
17190
}
 
17191
EOF
 
17192
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17193
  (eval $ac_link) 2>&5
 
17194
  ac_status=$?
 
17195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17196
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17197
    (./conftest; exit; ) 2>/dev/null
 
17198
    lt_status=$?
 
17199
    case x$lt_status in
 
17200
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
17201
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
17202
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
17203
    esac
 
17204
  else :
 
17205
    # compilation failed
 
17206
    lt_cv_dlopen_self=no
 
17207
  fi
 
17208
fi
 
17209
rm -fr conftest*
 
17210
 
 
17211
 
 
17212
fi
 
17213
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
17214
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
17215
 
 
17216
    if test "x$lt_cv_dlopen_self" = xyes; then
 
17217
      LDFLAGS="$LDFLAGS $link_static_flag"
 
17218
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
17219
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
17220
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
17221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17222
else
 
17223
          if test "$cross_compiling" = yes; then :
 
17224
  lt_cv_dlopen_self_static=cross
 
17225
else
 
17226
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17227
  lt_status=$lt_dlunknown
 
17228
  cat > conftest.$ac_ext <<EOF
 
17229
#line 17229 "configure"
 
17230
#include "confdefs.h"
 
17231
 
 
17232
#if HAVE_DLFCN_H
 
17233
#include <dlfcn.h>
 
17234
#endif
 
17235
 
 
17236
#include <stdio.h>
 
17237
 
 
17238
#ifdef RTLD_GLOBAL
 
17239
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17240
#else
 
17241
#  ifdef DL_GLOBAL
 
17242
#    define LT_DLGLOBAL         DL_GLOBAL
 
17243
#  else
 
17244
#    define LT_DLGLOBAL         0
 
17245
#  endif
 
17246
#endif
 
17247
 
 
17248
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17249
   find out it does not work in some platform. */
 
17250
#ifndef LT_DLLAZY_OR_NOW
 
17251
#  ifdef RTLD_LAZY
 
17252
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17253
#  else
 
17254
#    ifdef DL_LAZY
 
17255
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17256
#    else
 
17257
#      ifdef RTLD_NOW
 
17258
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17259
#      else
 
17260
#        ifdef DL_NOW
 
17261
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17262
#        else
 
17263
#          define LT_DLLAZY_OR_NOW      0
 
17264
#        endif
 
17265
#      endif
 
17266
#    endif
 
17267
#  endif
 
17268
#endif
 
17269
 
 
17270
#ifdef __cplusplus
 
17271
extern "C" void exit (int);
 
17272
#endif
 
17273
 
 
17274
void fnord() { int i=42;}
 
17275
int main ()
 
17276
{
 
17277
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17278
  int status = $lt_dlunknown;
 
17279
 
 
17280
  if (self)
 
17281
    {
 
17282
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17283
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17284
      /* dlclose (self); */
 
17285
    }
 
17286
 
 
17287
    exit (status);
 
17288
}
 
17289
EOF
 
17290
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17291
  (eval $ac_link) 2>&5
 
17292
  ac_status=$?
 
17293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17294
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17295
    (./conftest; exit; ) 2>/dev/null
 
17296
    lt_status=$?
 
17297
    case x$lt_status in
 
17298
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
17299
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
17300
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
17301
    esac
 
17302
  else :
 
17303
    # compilation failed
 
17304
    lt_cv_dlopen_self_static=no
 
17305
  fi
 
17306
fi
 
17307
rm -fr conftest*
 
17308
 
 
17309
 
 
17310
fi
 
17311
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
17312
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
17313
    fi
 
17314
 
 
17315
    CPPFLAGS="$save_CPPFLAGS"
 
17316
    LDFLAGS="$save_LDFLAGS"
 
17317
    LIBS="$save_LIBS"
 
17318
    ;;
 
17319
  esac
 
17320
 
 
17321
  case $lt_cv_dlopen_self in
 
17322
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
17323
  *) enable_dlopen_self=unknown ;;
 
17324
  esac
 
17325
 
 
17326
  case $lt_cv_dlopen_self_static in
 
17327
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
17328
  *) enable_dlopen_self_static=unknown ;;
 
17329
  esac
 
17330
fi
 
17331
 
 
17332
 
 
17333
# The else clause should only fire when bootstrapping the
 
17334
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17335
# with your package, and you will get complaints that there are
 
17336
# no rules to generate ltmain.sh.
 
17337
if test -f "$ltmain"; then
 
17338
  # See if we are running on zsh, and set the options which allow our commands through
 
17339
  # without removal of \ escapes.
 
17340
  if test -n "${ZSH_VERSION+set}" ; then
 
17341
    setopt NO_GLOB_SUBST
 
17342
  fi
 
17343
  # Now quote all the things that may contain metacharacters while being
 
17344
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17345
  # variables and quote the copies for generation of the libtool script.
 
17346
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
17347
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17348
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17349
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17350
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17351
    lt_cv_sys_global_symbol_to_c_name_address \
 
17352
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17353
    old_postinstall_cmds old_postuninstall_cmds \
 
17354
    compiler_GCJ \
 
17355
    CC_GCJ \
 
17356
    LD_GCJ \
 
17357
    lt_prog_compiler_wl_GCJ \
 
17358
    lt_prog_compiler_pic_GCJ \
 
17359
    lt_prog_compiler_static_GCJ \
 
17360
    lt_prog_compiler_no_builtin_flag_GCJ \
 
17361
    export_dynamic_flag_spec_GCJ \
 
17362
    thread_safe_flag_spec_GCJ \
 
17363
    whole_archive_flag_spec_GCJ \
 
17364
    enable_shared_with_static_runtimes_GCJ \
 
17365
    old_archive_cmds_GCJ \
 
17366
    old_archive_from_new_cmds_GCJ \
 
17367
    predep_objects_GCJ \
 
17368
    postdep_objects_GCJ \
 
17369
    predeps_GCJ \
 
17370
    postdeps_GCJ \
 
17371
    compiler_lib_search_path_GCJ \
 
17372
    archive_cmds_GCJ \
 
17373
    archive_expsym_cmds_GCJ \
 
17374
    postinstall_cmds_GCJ \
 
17375
    postuninstall_cmds_GCJ \
 
17376
    old_archive_from_expsyms_cmds_GCJ \
 
17377
    allow_undefined_flag_GCJ \
 
17378
    no_undefined_flag_GCJ \
 
17379
    export_symbols_cmds_GCJ \
 
17380
    hardcode_libdir_flag_spec_GCJ \
 
17381
    hardcode_libdir_flag_spec_ld_GCJ \
 
17382
    hardcode_libdir_separator_GCJ \
 
17383
    hardcode_automatic_GCJ \
 
17384
    module_cmds_GCJ \
 
17385
    module_expsym_cmds_GCJ \
 
17386
    lt_cv_prog_compiler_c_o_GCJ \
 
17387
    exclude_expsyms_GCJ \
 
17388
    include_expsyms_GCJ; do
 
17389
 
 
17390
    case $var in
 
17391
    old_archive_cmds_GCJ | \
 
17392
    old_archive_from_new_cmds_GCJ | \
 
17393
    archive_cmds_GCJ | \
 
17394
    archive_expsym_cmds_GCJ | \
 
17395
    module_cmds_GCJ | \
 
17396
    module_expsym_cmds_GCJ | \
 
17397
    old_archive_from_expsyms_cmds_GCJ | \
 
17398
    export_symbols_cmds_GCJ | \
 
17399
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17400
    postinstall_cmds | postuninstall_cmds | \
 
17401
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17402
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17403
      # Double-quote double-evaled strings.
 
17404
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17405
      ;;
 
17406
    *)
 
17407
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17408
      ;;
 
17409
    esac
 
17410
  done
 
17411
 
 
17412
  case $lt_echo in
 
17413
  *'\$0 --fallback-echo"')
 
17414
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17415
    ;;
 
17416
  esac
 
17417
 
 
17418
cfgfile="$ofile"
 
17419
 
 
17420
  cat <<__EOF__ >> "$cfgfile"
 
17421
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17422
 
 
17423
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17424
 
 
17425
# Shell to use when invoking shell scripts.
 
17426
SHELL=$lt_SHELL
 
17427
 
 
17428
# Whether or not to build shared libraries.
 
17429
build_libtool_libs=$enable_shared
 
17430
 
 
17431
# Whether or not to build static libraries.
 
17432
build_old_libs=$enable_static
 
17433
 
 
17434
# Whether or not to add -lc for building shared libraries.
 
17435
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
17436
 
 
17437
# Whether or not to disallow shared libs when runtime libs are static
 
17438
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
17439
 
 
17440
# Whether or not to optimize for fast installation.
 
17441
fast_install=$enable_fast_install
 
17442
 
 
17443
# The host system.
 
17444
host_alias=$host_alias
 
17445
host=$host
 
17446
 
 
17447
# An echo program that does not interpret backslashes.
 
17448
echo=$lt_echo
 
17449
 
 
17450
# The archiver.
 
17451
AR=$lt_AR
 
17452
AR_FLAGS=$lt_AR_FLAGS
 
17453
 
 
17454
# A C compiler.
 
17455
LTCC=$lt_LTCC
 
17456
 
 
17457
# A language-specific compiler.
 
17458
CC=$lt_compiler_GCJ
 
17459
 
 
17460
# Is the compiler the GNU C compiler?
 
17461
with_gcc=$GCC_GCJ
 
17462
 
 
17463
# An ERE matcher.
 
17464
EGREP=$lt_EGREP
 
17465
 
 
17466
# The linker used to build libraries.
 
17467
LD=$lt_LD_GCJ
 
17468
 
 
17469
# Whether we need hard or soft links.
 
17470
LN_S=$lt_LN_S
 
17471
 
 
17472
# A BSD-compatible nm program.
 
17473
NM=$lt_NM
 
17474
 
 
17475
# A symbol stripping program
 
17476
STRIP=$STRIP
 
17477
 
 
17478
# Used to examine libraries when file_magic_cmd begins "file"
 
17479
MAGIC_CMD=$MAGIC_CMD
 
17480
 
 
17481
# Used on cygwin: DLL creation program.
 
17482
DLLTOOL="$DLLTOOL"
 
17483
 
 
17484
# Used on cygwin: object dumper.
 
17485
OBJDUMP="$OBJDUMP"
 
17486
 
 
17487
# Used on cygwin: assembler.
 
17488
AS="$AS"
 
17489
 
 
17490
# The name of the directory that contains temporary libtool files.
 
17491
objdir=$objdir
 
17492
 
 
17493
# How to create reloadable object files.
 
17494
reload_flag=$lt_reload_flag
 
17495
reload_cmds=$lt_reload_cmds
 
17496
 
 
17497
# How to pass a linker flag through the compiler.
 
17498
wl=$lt_lt_prog_compiler_wl_GCJ
 
17499
 
 
17500
# Object file suffix (normally "o").
 
17501
objext="$ac_objext"
 
17502
 
 
17503
# Old archive suffix (normally "a").
 
17504
libext="$libext"
 
17505
 
 
17506
# Shared library suffix (normally ".so").
 
17507
shrext='$shrext'
 
17508
 
 
17509
# Executable file suffix (normally "").
 
17510
exeext="$exeext"
 
17511
 
 
17512
# Additional compiler flags for building library objects.
 
17513
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
17514
pic_mode=$pic_mode
 
17515
 
 
17516
# What is the maximum length of a command?
 
17517
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17518
 
 
17519
# Does compiler simultaneously support -c and -o options?
 
17520
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
17521
 
 
17522
# Must we lock files when doing compilation ?
 
17523
need_locks=$lt_need_locks
 
17524
 
 
17525
# Do we need the lib prefix for modules?
 
17526
need_lib_prefix=$need_lib_prefix
 
17527
 
 
17528
# Do we need a version for libraries?
 
17529
need_version=$need_version
 
17530
 
 
17531
# Whether dlopen is supported.
 
17532
dlopen_support=$enable_dlopen
 
17533
 
 
17534
# Whether dlopen of programs is supported.
 
17535
dlopen_self=$enable_dlopen_self
 
17536
 
 
17537
# Whether dlopen of statically linked programs is supported.
 
17538
dlopen_self_static=$enable_dlopen_self_static
 
17539
 
 
17540
# Compiler flag to prevent dynamic linking.
 
17541
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
17542
 
 
17543
# Compiler flag to turn off builtin functions.
 
17544
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
17545
 
 
17546
# Compiler flag to allow reflexive dlopens.
 
17547
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
17548
 
 
17549
# Compiler flag to generate shared objects directly from archives.
 
17550
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
17551
 
 
17552
# Compiler flag to generate thread-safe objects.
 
17553
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
17554
 
 
17555
# Library versioning type.
 
17556
version_type=$version_type
 
17557
 
 
17558
# Format of library name prefix.
 
17559
libname_spec=$lt_libname_spec
 
17560
 
 
17561
# List of archive names.  First name is the real one, the rest are links.
 
17562
# The last name is the one that the linker finds with -lNAME.
 
17563
library_names_spec=$lt_library_names_spec
 
17564
 
 
17565
# The coded name of the library, if different from the real name.
 
17566
soname_spec=$lt_soname_spec
 
17567
 
 
17568
# Commands used to build and install an old-style archive.
 
17569
RANLIB=$lt_RANLIB
 
17570
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
17571
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17572
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17573
 
 
17574
# Create an old-style archive from a shared archive.
 
17575
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
17576
 
 
17577
# Create a temporary old-style archive to link instead of a shared archive.
 
17578
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
17579
 
 
17580
# Commands used to build and install a shared archive.
 
17581
archive_cmds=$lt_archive_cmds_GCJ
 
17582
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
17583
postinstall_cmds=$lt_postinstall_cmds
 
17584
postuninstall_cmds=$lt_postuninstall_cmds
 
17585
 
 
17586
# Commands used to build a loadable module (assumed same as above if empty)
 
17587
module_cmds=$lt_module_cmds_GCJ
 
17588
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
17589
 
 
17590
# Commands to strip libraries.
 
17591
old_striplib=$lt_old_striplib
 
17592
striplib=$lt_striplib
 
17593
 
 
17594
# Dependencies to place before the objects being linked to create a
 
17595
# shared library.
 
17596
predep_objects=$lt_predep_objects_GCJ
 
17597
 
 
17598
# Dependencies to place after the objects being linked to create a
 
17599
# shared library.
 
17600
postdep_objects=$lt_postdep_objects_GCJ
 
17601
 
 
17602
# Dependencies to place before the objects being linked to create a
 
17603
# shared library.
 
17604
predeps=$lt_predeps_GCJ
 
17605
 
 
17606
# Dependencies to place after the objects being linked to create a
 
17607
# shared library.
 
17608
postdeps=$lt_postdeps_GCJ
 
17609
 
 
17610
# The library search path used internally by the compiler when linking
 
17611
# a shared library.
 
17612
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
17613
 
 
17614
# Method to check whether dependent libraries are shared objects.
 
17615
deplibs_check_method=$lt_deplibs_check_method
 
17616
 
 
17617
# Command to use when deplibs_check_method == file_magic.
 
17618
file_magic_cmd=$lt_file_magic_cmd
 
17619
 
 
17620
# Flag that allows shared libraries with undefined symbols to be built.
 
17621
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
17622
 
 
17623
# Flag that forces no undefined symbols.
 
17624
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
17625
 
 
17626
# Commands used to finish a libtool library installation in a directory.
 
17627
finish_cmds=$lt_finish_cmds
 
17628
 
 
17629
# Same as above, but a single script fragment to be evaled but not shown.
 
17630
finish_eval=$lt_finish_eval
 
17631
 
 
17632
# Take the output of nm and produce a listing of raw symbols and C names.
 
17633
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17634
 
 
17635
# Transform the output of nm in a proper C declaration
 
17636
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17637
 
 
17638
# Transform the output of nm in a C name address pair
 
17639
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17640
 
 
17641
# This is the shared library runtime path variable.
 
17642
runpath_var=$runpath_var
 
17643
 
 
17644
# This is the shared library path variable.
 
17645
shlibpath_var=$shlibpath_var
 
17646
 
 
17647
# Is shlibpath searched before the hard-coded library search path?
 
17648
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17649
 
 
17650
# How to hardcode a shared library path into an executable.
 
17651
hardcode_action=$hardcode_action_GCJ
 
17652
 
 
17653
# Whether we should hardcode library paths into libraries.
 
17654
hardcode_into_libs=$hardcode_into_libs
 
17655
 
 
17656
# Flag to hardcode \$libdir into a binary during linking.
 
17657
# This must work even if \$libdir does not exist.
 
17658
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
17659
 
 
17660
# If ld is used when linking, flag to hardcode \$libdir into
 
17661
# a binary during linking. This must work even if \$libdir does
 
17662
# not exist.
 
17663
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
17664
 
 
17665
# Whether we need a single -rpath flag with a separated argument.
 
17666
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
17667
 
 
17668
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17669
# resulting binary.
 
17670
hardcode_direct=$hardcode_direct_GCJ
 
17671
 
 
17672
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17673
# resulting binary.
 
17674
hardcode_minus_L=$hardcode_minus_L_GCJ
 
17675
 
 
17676
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17677
# the resulting binary.
 
17678
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
17679
 
 
17680
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17681
# and all subsequent libraries and executables linked against it.
 
17682
hardcode_automatic=$hardcode_automatic_GCJ
 
17683
 
 
17684
# Variables whose values should be saved in libtool wrapper scripts and
 
17685
# restored at relink time.
 
17686
variables_saved_for_relink="$variables_saved_for_relink"
 
17687
 
 
17688
# Whether libtool must link a program against all its dependency libraries.
 
17689
link_all_deplibs=$link_all_deplibs_GCJ
 
17690
 
 
17691
# Compile-time system search path for libraries
 
17692
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17693
 
 
17694
# Run-time system search path for libraries
 
17695
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17696
 
 
17697
# Fix the shell variable \$srcfile for the compiler.
 
17698
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
17699
 
 
17700
# Set to yes if exported symbols are required.
 
17701
always_export_symbols=$always_export_symbols_GCJ
 
17702
 
 
17703
# The commands to list exported symbols.
 
17704
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
17705
 
 
17706
# The commands to extract the exported symbol list from a shared archive.
 
17707
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17708
 
 
17709
# Symbols that should not be listed in the preloaded symbols.
 
17710
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
17711
 
 
17712
# Symbols that must always be exported.
 
17713
include_expsyms=$lt_include_expsyms_GCJ
 
17714
 
 
17715
# ### END LIBTOOL TAG CONFIG: $tagname
 
17716
 
 
17717
__EOF__
 
17718
 
 
17719
 
 
17720
else
 
17721
  # If there is no Makefile yet, we rely on a make rule to execute
 
17722
  # `config.status --recheck' to rerun these tests and create the
 
17723
  # libtool script then.
 
17724
  test -f Makefile && make "$ltmain"
 
17725
fi
 
17726
 
 
17727
 
 
17728
ac_ext=c
 
17729
ac_cpp='$CPP $CPPFLAGS'
 
17730
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17731
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17732
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17733
 
 
17734
CC="$lt_save_CC"
 
17735
 
 
17736
        else
 
17737
          tagname=""
 
17738
        fi
 
17739
        ;;
 
17740
 
 
17741
      RC)
 
17742
 
 
17743
 
 
17744
 
 
17745
# Source file extension for RC test sources.
 
17746
ac_ext=rc
 
17747
 
 
17748
# Object file extension for compiled RC test sources.
 
17749
objext=o
 
17750
objext_RC=$objext
 
17751
 
 
17752
# Code to be used in simple compile tests
 
17753
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
17754
 
 
17755
# Code to be used in simple link tests
 
17756
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
17757
 
 
17758
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17759
 
 
17760
# If no C compiler was specified, use CC.
 
17761
LTCC=${LTCC-"$CC"}
 
17762
 
 
17763
# Allow CC to be a program name with arguments.
 
17764
compiler=$CC
 
17765
 
 
17766
 
 
17767
# Allow CC to be a program name with arguments.
 
17768
lt_save_CC="$CC"
 
17769
CC=${RC-"windres"}
 
17770
compiler=$CC
 
17771
compiler_RC=$CC
 
17772
lt_cv_prog_compiler_c_o_RC=yes
 
17773
 
 
17774
# The else clause should only fire when bootstrapping the
 
17775
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17776
# with your package, and you will get complaints that there are
 
17777
# no rules to generate ltmain.sh.
 
17778
if test -f "$ltmain"; then
 
17779
  # See if we are running on zsh, and set the options which allow our commands through
 
17780
  # without removal of \ escapes.
 
17781
  if test -n "${ZSH_VERSION+set}" ; then
 
17782
    setopt NO_GLOB_SUBST
 
17783
  fi
 
17784
  # Now quote all the things that may contain metacharacters while being
 
17785
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17786
  # variables and quote the copies for generation of the libtool script.
 
17787
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
17788
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17789
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17790
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17791
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17792
    lt_cv_sys_global_symbol_to_c_name_address \
 
17793
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17794
    old_postinstall_cmds old_postuninstall_cmds \
 
17795
    compiler_RC \
 
17796
    CC_RC \
 
17797
    LD_RC \
 
17798
    lt_prog_compiler_wl_RC \
 
17799
    lt_prog_compiler_pic_RC \
 
17800
    lt_prog_compiler_static_RC \
 
17801
    lt_prog_compiler_no_builtin_flag_RC \
 
17802
    export_dynamic_flag_spec_RC \
 
17803
    thread_safe_flag_spec_RC \
 
17804
    whole_archive_flag_spec_RC \
 
17805
    enable_shared_with_static_runtimes_RC \
 
17806
    old_archive_cmds_RC \
 
17807
    old_archive_from_new_cmds_RC \
 
17808
    predep_objects_RC \
 
17809
    postdep_objects_RC \
 
17810
    predeps_RC \
 
17811
    postdeps_RC \
 
17812
    compiler_lib_search_path_RC \
 
17813
    archive_cmds_RC \
 
17814
    archive_expsym_cmds_RC \
 
17815
    postinstall_cmds_RC \
 
17816
    postuninstall_cmds_RC \
 
17817
    old_archive_from_expsyms_cmds_RC \
 
17818
    allow_undefined_flag_RC \
 
17819
    no_undefined_flag_RC \
 
17820
    export_symbols_cmds_RC \
 
17821
    hardcode_libdir_flag_spec_RC \
 
17822
    hardcode_libdir_flag_spec_ld_RC \
 
17823
    hardcode_libdir_separator_RC \
 
17824
    hardcode_automatic_RC \
 
17825
    module_cmds_RC \
 
17826
    module_expsym_cmds_RC \
 
17827
    lt_cv_prog_compiler_c_o_RC \
 
17828
    exclude_expsyms_RC \
 
17829
    include_expsyms_RC; do
 
17830
 
 
17831
    case $var in
 
17832
    old_archive_cmds_RC | \
 
17833
    old_archive_from_new_cmds_RC | \
 
17834
    archive_cmds_RC | \
 
17835
    archive_expsym_cmds_RC | \
 
17836
    module_cmds_RC | \
 
17837
    module_expsym_cmds_RC | \
 
17838
    old_archive_from_expsyms_cmds_RC | \
 
17839
    export_symbols_cmds_RC | \
 
17840
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17841
    postinstall_cmds | postuninstall_cmds | \
 
17842
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17843
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17844
      # Double-quote double-evaled strings.
 
17845
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17846
      ;;
 
17847
    *)
 
17848
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17849
      ;;
 
17850
    esac
 
17851
  done
 
17852
 
 
17853
  case $lt_echo in
 
17854
  *'\$0 --fallback-echo"')
 
17855
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17856
    ;;
 
17857
  esac
 
17858
 
 
17859
cfgfile="$ofile"
 
17860
 
 
17861
  cat <<__EOF__ >> "$cfgfile"
 
17862
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17863
 
 
17864
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17865
 
 
17866
# Shell to use when invoking shell scripts.
 
17867
SHELL=$lt_SHELL
 
17868
 
 
17869
# Whether or not to build shared libraries.
 
17870
build_libtool_libs=$enable_shared
 
17871
 
 
17872
# Whether or not to build static libraries.
 
17873
build_old_libs=$enable_static
 
17874
 
 
17875
# Whether or not to add -lc for building shared libraries.
 
17876
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
17877
 
 
17878
# Whether or not to disallow shared libs when runtime libs are static
 
17879
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
17880
 
 
17881
# Whether or not to optimize for fast installation.
 
17882
fast_install=$enable_fast_install
 
17883
 
 
17884
# The host system.
 
17885
host_alias=$host_alias
 
17886
host=$host
 
17887
 
 
17888
# An echo program that does not interpret backslashes.
 
17889
echo=$lt_echo
 
17890
 
 
17891
# The archiver.
 
17892
AR=$lt_AR
 
17893
AR_FLAGS=$lt_AR_FLAGS
 
17894
 
 
17895
# A C compiler.
 
17896
LTCC=$lt_LTCC
 
17897
 
 
17898
# A language-specific compiler.
 
17899
CC=$lt_compiler_RC
 
17900
 
 
17901
# Is the compiler the GNU C compiler?
 
17902
with_gcc=$GCC_RC
 
17903
 
 
17904
# An ERE matcher.
 
17905
EGREP=$lt_EGREP
 
17906
 
 
17907
# The linker used to build libraries.
 
17908
LD=$lt_LD_RC
 
17909
 
 
17910
# Whether we need hard or soft links.
 
17911
LN_S=$lt_LN_S
 
17912
 
 
17913
# A BSD-compatible nm program.
 
17914
NM=$lt_NM
 
17915
 
 
17916
# A symbol stripping program
 
17917
STRIP=$STRIP
 
17918
 
 
17919
# Used to examine libraries when file_magic_cmd begins "file"
 
17920
MAGIC_CMD=$MAGIC_CMD
 
17921
 
 
17922
# Used on cygwin: DLL creation program.
 
17923
DLLTOOL="$DLLTOOL"
 
17924
 
 
17925
# Used on cygwin: object dumper.
 
17926
OBJDUMP="$OBJDUMP"
 
17927
 
 
17928
# Used on cygwin: assembler.
 
17929
AS="$AS"
 
17930
 
 
17931
# The name of the directory that contains temporary libtool files.
 
17932
objdir=$objdir
 
17933
 
 
17934
# How to create reloadable object files.
 
17935
reload_flag=$lt_reload_flag
 
17936
reload_cmds=$lt_reload_cmds
 
17937
 
 
17938
# How to pass a linker flag through the compiler.
 
17939
wl=$lt_lt_prog_compiler_wl_RC
 
17940
 
 
17941
# Object file suffix (normally "o").
 
17942
objext="$ac_objext"
 
17943
 
 
17944
# Old archive suffix (normally "a").
 
17945
libext="$libext"
 
17946
 
 
17947
# Shared library suffix (normally ".so").
 
17948
shrext='$shrext'
 
17949
 
 
17950
# Executable file suffix (normally "").
 
17951
exeext="$exeext"
 
17952
 
 
17953
# Additional compiler flags for building library objects.
 
17954
pic_flag=$lt_lt_prog_compiler_pic_RC
 
17955
pic_mode=$pic_mode
 
17956
 
 
17957
# What is the maximum length of a command?
 
17958
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17959
 
 
17960
# Does compiler simultaneously support -c and -o options?
 
17961
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
17962
 
 
17963
# Must we lock files when doing compilation ?
 
17964
need_locks=$lt_need_locks
 
17965
 
 
17966
# Do we need the lib prefix for modules?
 
17967
need_lib_prefix=$need_lib_prefix
 
17968
 
 
17969
# Do we need a version for libraries?
 
17970
need_version=$need_version
 
17971
 
 
17972
# Whether dlopen is supported.
 
17973
dlopen_support=$enable_dlopen
 
17974
 
 
17975
# Whether dlopen of programs is supported.
 
17976
dlopen_self=$enable_dlopen_self
 
17977
 
 
17978
# Whether dlopen of statically linked programs is supported.
 
17979
dlopen_self_static=$enable_dlopen_self_static
 
17980
 
 
17981
# Compiler flag to prevent dynamic linking.
 
17982
link_static_flag=$lt_lt_prog_compiler_static_RC
 
17983
 
 
17984
# Compiler flag to turn off builtin functions.
 
17985
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
17986
 
 
17987
# Compiler flag to allow reflexive dlopens.
 
17988
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
17989
 
 
17990
# Compiler flag to generate shared objects directly from archives.
 
17991
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
17992
 
 
17993
# Compiler flag to generate thread-safe objects.
 
17994
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
17995
 
 
17996
# Library versioning type.
 
17997
version_type=$version_type
 
17998
 
 
17999
# Format of library name prefix.
 
18000
libname_spec=$lt_libname_spec
 
18001
 
 
18002
# List of archive names.  First name is the real one, the rest are links.
 
18003
# The last name is the one that the linker finds with -lNAME.
 
18004
library_names_spec=$lt_library_names_spec
 
18005
 
 
18006
# The coded name of the library, if different from the real name.
 
18007
soname_spec=$lt_soname_spec
 
18008
 
 
18009
# Commands used to build and install an old-style archive.
 
18010
RANLIB=$lt_RANLIB
 
18011
old_archive_cmds=$lt_old_archive_cmds_RC
 
18012
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18013
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18014
 
 
18015
# Create an old-style archive from a shared archive.
 
18016
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18017
 
 
18018
# Create a temporary old-style archive to link instead of a shared archive.
 
18019
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18020
 
 
18021
# Commands used to build and install a shared archive.
 
18022
archive_cmds=$lt_archive_cmds_RC
 
18023
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18024
postinstall_cmds=$lt_postinstall_cmds
 
18025
postuninstall_cmds=$lt_postuninstall_cmds
 
18026
 
 
18027
# Commands used to build a loadable module (assumed same as above if empty)
 
18028
module_cmds=$lt_module_cmds_RC
 
18029
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18030
 
 
18031
# Commands to strip libraries.
 
18032
old_striplib=$lt_old_striplib
 
18033
striplib=$lt_striplib
 
18034
 
 
18035
# Dependencies to place before the objects being linked to create a
 
18036
# shared library.
 
18037
predep_objects=$lt_predep_objects_RC
 
18038
 
 
18039
# Dependencies to place after the objects being linked to create a
 
18040
# shared library.
 
18041
postdep_objects=$lt_postdep_objects_RC
 
18042
 
 
18043
# Dependencies to place before the objects being linked to create a
 
18044
# shared library.
 
18045
predeps=$lt_predeps_RC
 
18046
 
 
18047
# Dependencies to place after the objects being linked to create a
 
18048
# shared library.
 
18049
postdeps=$lt_postdeps_RC
 
18050
 
 
18051
# The library search path used internally by the compiler when linking
 
18052
# a shared library.
 
18053
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18054
 
 
18055
# Method to check whether dependent libraries are shared objects.
 
18056
deplibs_check_method=$lt_deplibs_check_method
 
18057
 
 
18058
# Command to use when deplibs_check_method == file_magic.
 
18059
file_magic_cmd=$lt_file_magic_cmd
 
18060
 
 
18061
# Flag that allows shared libraries with undefined symbols to be built.
 
18062
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18063
 
 
18064
# Flag that forces no undefined symbols.
 
18065
no_undefined_flag=$lt_no_undefined_flag_RC
 
18066
 
 
18067
# Commands used to finish a libtool library installation in a directory.
 
18068
finish_cmds=$lt_finish_cmds
 
18069
 
 
18070
# Same as above, but a single script fragment to be evaled but not shown.
 
18071
finish_eval=$lt_finish_eval
 
18072
 
 
18073
# Take the output of nm and produce a listing of raw symbols and C names.
 
18074
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18075
 
 
18076
# Transform the output of nm in a proper C declaration
 
18077
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18078
 
 
18079
# Transform the output of nm in a C name address pair
 
18080
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18081
 
 
18082
# This is the shared library runtime path variable.
 
18083
runpath_var=$runpath_var
 
18084
 
 
18085
# This is the shared library path variable.
 
18086
shlibpath_var=$shlibpath_var
 
18087
 
 
18088
# Is shlibpath searched before the hard-coded library search path?
 
18089
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18090
 
 
18091
# How to hardcode a shared library path into an executable.
 
18092
hardcode_action=$hardcode_action_RC
 
18093
 
 
18094
# Whether we should hardcode library paths into libraries.
 
18095
hardcode_into_libs=$hardcode_into_libs
 
18096
 
 
18097
# Flag to hardcode \$libdir into a binary during linking.
 
18098
# This must work even if \$libdir does not exist.
 
18099
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18100
 
 
18101
# If ld is used when linking, flag to hardcode \$libdir into
 
18102
# a binary during linking. This must work even if \$libdir does
 
18103
# not exist.
 
18104
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18105
 
 
18106
# Whether we need a single -rpath flag with a separated argument.
 
18107
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18108
 
 
18109
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18110
# resulting binary.
 
18111
hardcode_direct=$hardcode_direct_RC
 
18112
 
 
18113
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18114
# resulting binary.
 
18115
hardcode_minus_L=$hardcode_minus_L_RC
 
18116
 
 
18117
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18118
# the resulting binary.
 
18119
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18120
 
 
18121
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18122
# and all subsequent libraries and executables linked against it.
 
18123
hardcode_automatic=$hardcode_automatic_RC
 
18124
 
 
18125
# Variables whose values should be saved in libtool wrapper scripts and
 
18126
# restored at relink time.
 
18127
variables_saved_for_relink="$variables_saved_for_relink"
 
18128
 
 
18129
# Whether libtool must link a program against all its dependency libraries.
 
18130
link_all_deplibs=$link_all_deplibs_RC
 
18131
 
 
18132
# Compile-time system search path for libraries
 
18133
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18134
 
 
18135
# Run-time system search path for libraries
 
18136
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18137
 
 
18138
# Fix the shell variable \$srcfile for the compiler.
 
18139
fix_srcfile_path="$fix_srcfile_path_RC"
 
18140
 
 
18141
# Set to yes if exported symbols are required.
 
18142
always_export_symbols=$always_export_symbols_RC
 
18143
 
 
18144
# The commands to list exported symbols.
 
18145
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
18146
 
 
18147
# The commands to extract the exported symbol list from a shared archive.
 
18148
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18149
 
 
18150
# Symbols that should not be listed in the preloaded symbols.
 
18151
exclude_expsyms=$lt_exclude_expsyms_RC
 
18152
 
 
18153
# Symbols that must always be exported.
 
18154
include_expsyms=$lt_include_expsyms_RC
 
18155
 
 
18156
# ### END LIBTOOL TAG CONFIG: $tagname
 
18157
 
 
18158
__EOF__
 
18159
 
 
18160
 
 
18161
else
 
18162
  # If there is no Makefile yet, we rely on a make rule to execute
 
18163
  # `config.status --recheck' to rerun these tests and create the
 
18164
  # libtool script then.
 
18165
  test -f Makefile && make "$ltmain"
 
18166
fi
 
18167
 
 
18168
 
 
18169
ac_ext=c
 
18170
ac_cpp='$CPP $CPPFLAGS'
 
18171
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18172
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18173
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18174
 
 
18175
CC="$lt_save_CC"
 
18176
 
 
18177
        ;;
 
18178
 
 
18179
      *)
 
18180
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
18181
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
18182
   { (exit 1); exit 1; }; }
 
18183
        ;;
 
18184
      esac
 
18185
 
 
18186
      # Append the new tag name to the list of available tags.
 
18187
      if test -n "$tagname" ; then
 
18188
      available_tags="$available_tags $tagname"
 
18189
    fi
 
18190
    fi
 
18191
  done
 
18192
  IFS="$lt_save_ifs"
 
18193
 
 
18194
  # Now substitute the updated list of available tags.
 
18195
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
18196
    mv "${ofile}T" "$ofile"
 
18197
    chmod +x "$ofile"
 
18198
  else
 
18199
    rm -f "${ofile}T"
 
18200
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
18201
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
18202
   { (exit 1); exit 1; }; }
 
18203
  fi
 
18204
fi
 
18205
 
 
18206
 
 
18207
 
 
18208
# This can be used to rebuild libtool when needed
 
18209
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
18210
 
 
18211
# Always use our own libtool.
 
18212
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
18213
 
 
18214
# Prevent multiple expansion
 
18215
 
 
18216
 
 
18217
 
 
18218
 
 
18219
 
 
18220
 
 
18221
 
 
18222
 
 
18223
 
 
18224
 
 
18225
 
 
18226
 
 
18227
 
 
18228
 
 
18229
 
 
18230
 
 
18231
 
 
18232
 
 
18233
 
 
18234
 
 
18235
 
 
18236
          ac_config_files="$ac_config_files Makefile"
 
18237
cat >confcache <<\_ACEOF
 
18238
# This file is a shell script that caches the results of configure
 
18239
# tests run on this system so they can be shared between configure
 
18240
# scripts and configure runs, see configure's option --config-cache.
 
18241
# It is not useful on other systems.  If it contains results you don't
 
18242
# want to keep, you may remove or edit it.
 
18243
#
 
18244
# config.status only pays attention to the cache file if you give it
 
18245
# the --recheck option to rerun configure.
 
18246
#
 
18247
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
18248
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
18249
# following values.
 
18250
 
 
18251
_ACEOF
 
18252
 
 
18253
# The following way of writing the cache mishandles newlines in values,
 
18254
# but we know of no workaround that is simple, portable, and efficient.
 
18255
# So, don't put newlines in cache variables' values.
 
18256
# Ultrix sh set writes to stderr and can't be redirected directly,
 
18257
# and sets the high bit in the cache file unless we assign to the vars.
 
18258
{
 
18259
  (set) 2>&1 |
 
18260
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
18261
    *ac_space=\ *)
 
18262
      # `set' does not quote correctly, so add quotes (double-quote
 
18263
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
18264
      sed -n \
 
18265
        "s/'/'\\\\''/g;
 
18266
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
18267
      ;;
 
18268
    *)
 
18269
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
18270
      sed -n \
 
18271
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
18272
      ;;
 
18273
    esac;
 
18274
} |
 
18275
  sed '
 
18276
     t clear
 
18277
     : clear
 
18278
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
18279
     t end
 
18280
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
18281
     : end' >>confcache
 
18282
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
18283
  if test -w $cache_file; then
 
18284
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
18285
    cat confcache >$cache_file
 
18286
  else
 
18287
    echo "not updating unwritable cache $cache_file"
 
18288
  fi
 
18289
fi
 
18290
rm -f confcache
 
18291
 
 
18292
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
18293
# Let make expand exec_prefix.
 
18294
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
18295
 
 
18296
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
18297
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
18298
# trailing colons and then remove the whole line if VPATH becomes empty
 
18299
# (actually we leave an empty line to preserve line numbers).
 
18300
if test "x$srcdir" = x.; then
 
18301
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
18302
s/:*\$(srcdir):*/:/;
 
18303
s/:*\${srcdir}:*/:/;
 
18304
s/:*@srcdir@:*/:/;
 
18305
s/^\([^=]*=[    ]*\):*/\1/;
 
18306
s/:*$//;
 
18307
s/^[^=]*=[      ]*$//;
 
18308
}'
 
18309
fi
 
18310
 
 
18311
# Transform confdefs.h into DEFS.
 
18312
# Protect against shell expansion while executing Makefile rules.
 
18313
# Protect against Makefile macro expansion.
 
18314
#
 
18315
# If the first sed substitution is executed (which looks for macros that
 
18316
# take arguments), then we branch to the quote section.  Otherwise,
 
18317
# look for a macro that doesn't take arguments.
 
18318
cat >confdef2opt.sed <<\_ACEOF
 
18319
t clear
 
18320
: clear
 
18321
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
 
18322
t quote
 
18323
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
 
18324
t quote
 
18325
d
 
18326
: quote
 
18327
s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
 
18328
s,\[,\\&,g
 
18329
s,\],\\&,g
 
18330
s,\$,$$,g
 
18331
p
 
18332
_ACEOF
 
18333
# We use echo to avoid assuming a particular line-breaking character.
 
18334
# The extra dot is to prevent the shell from consuming trailing
 
18335
# line-breaks from the sub-command output.  A line-break within
 
18336
# single-quotes doesn't work because, if this script is created in a
 
18337
# platform that uses two characters for line-breaks (e.g., DOS), tr
 
18338
# would break.
 
18339
ac_LF_and_DOT=`echo; echo .`
 
18340
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
 
18341
rm -f confdef2opt.sed
 
18342
 
 
18343
 
 
18344
ac_libobjs=
 
18345
ac_ltlibobjs=
 
18346
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
18347
  # 1. Remove the extension, and $U if already installed.
 
18348
  ac_i=`echo "$ac_i" |
 
18349
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
18350
  # 2. Add them.
 
18351
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
18352
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
18353
done
 
18354
LIBOBJS=$ac_libobjs
 
18355
 
 
18356
LTLIBOBJS=$ac_ltlibobjs
 
18357
 
 
18358
 
 
18359
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
18360
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
18361
Usually this means the macro was only invoked conditionally." >&5
 
18362
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
18363
Usually this means the macro was only invoked conditionally." >&2;}
 
18364
   { (exit 1); exit 1; }; }
 
18365
fi
 
18366
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
18367
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
18368
Usually this means the macro was only invoked conditionally." >&5
 
18369
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
18370
Usually this means the macro was only invoked conditionally." >&2;}
 
18371
   { (exit 1); exit 1; }; }
 
18372
fi
 
18373
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
18374
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
18375
Usually this means the macro was only invoked conditionally." >&5
 
18376
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
18377
Usually this means the macro was only invoked conditionally." >&2;}
 
18378
   { (exit 1); exit 1; }; }
 
18379
fi
 
18380
 
 
18381
: ${CONFIG_STATUS=./config.status}
 
18382
ac_clean_files_save=$ac_clean_files
 
18383
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
18384
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
18385
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
18386
cat >$CONFIG_STATUS <<_ACEOF
 
18387
#! $SHELL
 
18388
# Generated by $as_me.
 
18389
# Run this file to recreate the current configuration.
 
18390
# Compiler output produced by configure, useful for debugging
 
18391
# configure, is in config.log if it exists.
 
18392
 
 
18393
debug=false
 
18394
ac_cs_recheck=false
 
18395
ac_cs_silent=false
 
18396
SHELL=\${CONFIG_SHELL-$SHELL}
 
18397
_ACEOF
 
18398
 
 
18399
cat >>$CONFIG_STATUS <<\_ACEOF
 
18400
## --------------------- ##
 
18401
## M4sh Initialization.  ##
 
18402
## --------------------- ##
 
18403
 
 
18404
# Be Bourne compatible
 
18405
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18406
  emulate sh
 
18407
  NULLCMD=:
 
18408
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18409
  # is contrary to our usage.  Disable this feature.
 
18410
  alias -g '${1+"$@"}'='"$@"'
 
18411
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
18412
  set -o posix
 
18413
fi
 
18414
 
 
18415
# Support unset when possible.
 
18416
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
18417
  as_unset=unset
 
18418
else
 
18419
  as_unset=false
 
18420
fi
 
18421
 
 
18422
 
 
18423
# Work around bugs in pre-3.0 UWIN ksh.
 
18424
$as_unset ENV MAIL MAILPATH
 
18425
PS1='$ '
 
18426
PS2='> '
 
18427
PS4='+ '
 
18428
 
 
18429
# NLS nuisances.
 
18430
for as_var in \
 
18431
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
18432
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
18433
  LC_TELEPHONE LC_TIME
 
18434
do
 
18435
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
18436
    eval $as_var=C; export $as_var
 
18437
  else
 
18438
    $as_unset $as_var
 
18439
  fi
 
18440
done
 
18441
 
 
18442
# Required to use basename.
 
18443
if expr a : '\(a\)' >/dev/null 2>&1; then
 
18444
  as_expr=expr
 
18445
else
 
18446
  as_expr=false
 
18447
fi
 
18448
 
 
18449
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
18450
  as_basename=basename
 
18451
else
 
18452
  as_basename=false
 
18453
fi
 
18454
 
 
18455
 
 
18456
# Name of the executable.
 
18457
as_me=`$as_basename "$0" ||
 
18458
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
18459
         X"$0" : 'X\(//\)$' \| \
 
18460
         X"$0" : 'X\(/\)$' \| \
 
18461
         .     : '\(.\)' 2>/dev/null ||
 
18462
echo X/"$0" |
 
18463
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
18464
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
18465
          /^X\/\(\/\).*/{ s//\1/; q; }
 
18466
          s/.*/./; q'`
 
18467
 
 
18468
 
 
18469
# PATH needs CR, and LINENO needs CR and PATH.
 
18470
# Avoid depending upon Character Ranges.
 
18471
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
18472
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
18473
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
18474
as_cr_digits='0123456789'
 
18475
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
18476
 
 
18477
# The user is always right.
 
18478
if test "${PATH_SEPARATOR+set}" != set; then
 
18479
  echo "#! /bin/sh" >conf$$.sh
 
18480
  echo  "exit 0"   >>conf$$.sh
 
18481
  chmod +x conf$$.sh
 
18482
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
18483
    PATH_SEPARATOR=';'
 
18484
  else
 
18485
    PATH_SEPARATOR=:
 
18486
  fi
 
18487
  rm -f conf$$.sh
 
18488
fi
 
18489
 
 
18490
 
 
18491
  as_lineno_1=$LINENO
 
18492
  as_lineno_2=$LINENO
 
18493
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
18494
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
18495
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
18496
  # Find who we are.  Look in the path if we contain no path at all
 
18497
  # relative or not.
 
18498
  case $0 in
 
18499
    *[\\/]* ) as_myself=$0 ;;
 
18500
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18501
for as_dir in $PATH
 
18502
do
 
18503
  IFS=$as_save_IFS
 
18504
  test -z "$as_dir" && as_dir=.
 
18505
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
18506
done
 
18507
 
 
18508
       ;;
 
18509
  esac
 
18510
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
18511
  # in which case we are not to be found in the path.
 
18512
  if test "x$as_myself" = x; then
 
18513
    as_myself=$0
 
18514
  fi
 
18515
  if test ! -f "$as_myself"; then
 
18516
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
18517
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
18518
   { (exit 1); exit 1; }; }
 
18519
  fi
 
18520
  case $CONFIG_SHELL in
 
18521
  '')
 
18522
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18523
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
18524
do
 
18525
  IFS=$as_save_IFS
 
18526
  test -z "$as_dir" && as_dir=.
 
18527
  for as_base in sh bash ksh sh5; do
 
18528
         case $as_dir in
 
18529
         /*)
 
18530
           if ("$as_dir/$as_base" -c '
 
18531
  as_lineno_1=$LINENO
 
18532
  as_lineno_2=$LINENO
 
18533
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
18534
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
18535
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
18536
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
18537
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
18538
             CONFIG_SHELL=$as_dir/$as_base
 
18539
             export CONFIG_SHELL
 
18540
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
18541
           fi;;
 
18542
         esac
 
18543
       done
 
18544
done
 
18545
;;
 
18546
  esac
 
18547
 
 
18548
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
18549
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
18550
  # line-number line before each line; the second 'sed' does the real
 
18551
  # work.  The second script uses 'N' to pair each line-number line
 
18552
  # with the numbered line, and appends trailing '-' during
 
18553
  # substitution so that $LINENO is not a special case at line end.
 
18554
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
18555
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
18556
  sed '=' <$as_myself |
 
18557
    sed '
 
18558
      N
 
18559
      s,$,-,
 
18560
      : loop
 
18561
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
18562
      t loop
 
18563
      s,-$,,
 
18564
      s,^['$as_cr_digits']*\n,,
 
18565
    ' >$as_me.lineno &&
 
18566
  chmod +x $as_me.lineno ||
 
18567
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
18568
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
18569
   { (exit 1); exit 1; }; }
 
18570
 
 
18571
  # Don't try to exec as it changes $[0], causing all sort of problems
 
18572
  # (the dirname of $[0] is not the place where we might find the
 
18573
  # original and so on.  Autoconf is especially sensible to this).
 
18574
  . ./$as_me.lineno
 
18575
  # Exit status is that of the last command.
 
18576
  exit
 
18577
}
 
18578
 
 
18579
 
 
18580
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
18581
  *c*,-n*) ECHO_N= ECHO_C='
 
18582
' ECHO_T='      ' ;;
 
18583
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
18584
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
18585
esac
 
18586
 
 
18587
if expr a : '\(a\)' >/dev/null 2>&1; then
 
18588
  as_expr=expr
 
18589
else
 
18590
  as_expr=false
 
18591
fi
 
18592
 
 
18593
rm -f conf$$ conf$$.exe conf$$.file
 
18594
echo >conf$$.file
 
18595
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
18596
  # We could just check for DJGPP; but this test a) works b) is more generic
 
18597
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
18598
  if test -f conf$$.exe; then
 
18599
    # Don't use ln at all; we don't have any links
 
18600
    as_ln_s='cp -p'
 
18601
  else
 
18602
    as_ln_s='ln -s'
 
18603
  fi
 
18604
elif ln conf$$.file conf$$ 2>/dev/null; then
 
18605
  as_ln_s=ln
 
18606
else
 
18607
  as_ln_s='cp -p'
 
18608
fi
 
18609
rm -f conf$$ conf$$.exe conf$$.file
 
18610
 
 
18611
if mkdir -p . 2>/dev/null; then
 
18612
  as_mkdir_p=:
 
18613
else
 
18614
  as_mkdir_p=false
 
18615
fi
 
18616
 
 
18617
as_executable_p="test -f"
 
18618
 
 
18619
# Sed expression to map a string onto a valid CPP name.
 
18620
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
18621
 
 
18622
# Sed expression to map a string onto a valid variable name.
 
18623
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
18624
 
 
18625
 
 
18626
# IFS
 
18627
# We need space, tab and new line, in precisely that order.
 
18628
as_nl='
 
18629
'
 
18630
IFS="   $as_nl"
 
18631
 
 
18632
# CDPATH.
 
18633
$as_unset CDPATH
 
18634
 
 
18635
exec 6>&1
 
18636
 
 
18637
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
18638
# report actual input values of CONFIG_FILES etc. instead of their
 
18639
# values after options handling.  Logging --version etc. is OK.
 
18640
exec 5>>config.log
 
18641
{
 
18642
  echo
 
18643
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
18644
## Running $as_me. ##
 
18645
_ASBOX
 
18646
} >&5
 
18647
cat >&5 <<_CSEOF
 
18648
 
 
18649
This file was extended by $as_me, which was
 
18650
generated by GNU Autoconf 2.57.  Invocation command line was
 
18651
 
 
18652
  CONFIG_FILES    = $CONFIG_FILES
 
18653
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
18654
  CONFIG_LINKS    = $CONFIG_LINKS
 
18655
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
18656
  $ $0 $@
 
18657
 
 
18658
_CSEOF
 
18659
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
18660
echo >&5
 
18661
_ACEOF
 
18662
 
 
18663
# Files that config.status was made for.
 
18664
if test -n "$ac_config_files"; then
 
18665
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
18666
fi
 
18667
 
 
18668
if test -n "$ac_config_headers"; then
 
18669
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
18670
fi
 
18671
 
 
18672
if test -n "$ac_config_links"; then
 
18673
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
18674
fi
 
18675
 
 
18676
if test -n "$ac_config_commands"; then
 
18677
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
18678
fi
 
18679
 
 
18680
cat >>$CONFIG_STATUS <<\_ACEOF
 
18681
 
 
18682
ac_cs_usage="\
 
18683
\`$as_me' instantiates files from templates according to the
 
18684
current configuration.
 
18685
 
 
18686
Usage: $0 [OPTIONS] [FILE]...
 
18687
 
 
18688
  -h, --help       print this help, then exit
 
18689
  -V, --version    print version number, then exit
 
18690
  -q, --quiet      do not print progress messages
 
18691
  -d, --debug      don't remove temporary files
 
18692
      --recheck    update $as_me by reconfiguring in the same conditions
 
18693
  --file=FILE[:TEMPLATE]
 
18694
                   instantiate the configuration file FILE
 
18695
 
 
18696
Configuration files:
 
18697
$config_files
 
18698
 
 
18699
Configuration commands:
 
18700
$config_commands
 
18701
 
 
18702
Report bugs to <bug-autoconf@gnu.org>."
 
18703
_ACEOF
 
18704
 
 
18705
cat >>$CONFIG_STATUS <<_ACEOF
 
18706
ac_cs_version="\\
 
18707
config.status
 
18708
configured by $0, generated by GNU Autoconf 2.57,
 
18709
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
18710
 
 
18711
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
18712
Free Software Foundation, Inc.
 
18713
This config.status script is free software; the Free Software Foundation
 
18714
gives unlimited permission to copy, distribute and modify it."
 
18715
srcdir=$srcdir
 
18716
INSTALL="$INSTALL"
 
18717
_ACEOF
 
18718
 
 
18719
cat >>$CONFIG_STATUS <<\_ACEOF
 
18720
# If no file are specified by the user, then we need to provide default
 
18721
# value.  By we need to know if files were specified by the user.
 
18722
ac_need_defaults=:
 
18723
while test $# != 0
 
18724
do
 
18725
  case $1 in
 
18726
  --*=*)
 
18727
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
18728
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
18729
    ac_shift=:
 
18730
    ;;
 
18731
  -*)
 
18732
    ac_option=$1
 
18733
    ac_optarg=$2
 
18734
    ac_shift=shift
 
18735
    ;;
 
18736
  *) # This is not an option, so the user has probably given explicit
 
18737
     # arguments.
 
18738
     ac_option=$1
 
18739
     ac_need_defaults=false;;
 
18740
  esac
 
18741
 
 
18742
  case $ac_option in
 
18743
  # Handling of the options.
 
18744
_ACEOF
 
18745
cat >>$CONFIG_STATUS <<\_ACEOF
 
18746
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
18747
    ac_cs_recheck=: ;;
 
18748
  --version | --vers* | -V )
 
18749
    echo "$ac_cs_version"; exit 0 ;;
 
18750
  --he | --h)
 
18751
    # Conflict between --help and --header
 
18752
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
18753
Try \`$0 --help' for more information." >&5
 
18754
echo "$as_me: error: ambiguous option: $1
 
18755
Try \`$0 --help' for more information." >&2;}
 
18756
   { (exit 1); exit 1; }; };;
 
18757
  --help | --hel | -h )
 
18758
    echo "$ac_cs_usage"; exit 0 ;;
 
18759
  --debug | --d* | -d )
 
18760
    debug=: ;;
 
18761
  --file | --fil | --fi | --f )
 
18762
    $ac_shift
 
18763
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
18764
    ac_need_defaults=false;;
 
18765
  --header | --heade | --head | --hea )
 
18766
    $ac_shift
 
18767
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
18768
    ac_need_defaults=false;;
 
18769
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
18770
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
18771
    ac_cs_silent=: ;;
 
18772
 
 
18773
  # This is an error.
 
18774
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
18775
Try \`$0 --help' for more information." >&5
 
18776
echo "$as_me: error: unrecognized option: $1
 
18777
Try \`$0 --help' for more information." >&2;}
 
18778
   { (exit 1); exit 1; }; } ;;
 
18779
 
 
18780
  *) ac_config_targets="$ac_config_targets $1" ;;
 
18781
 
 
18782
  esac
 
18783
  shift
 
18784
done
 
18785
 
 
18786
ac_configure_extra_args=
 
18787
 
 
18788
if $ac_cs_silent; then
 
18789
  exec 6>/dev/null
 
18790
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
18791
fi
 
18792
 
 
18793
_ACEOF
 
18794
cat >>$CONFIG_STATUS <<_ACEOF
 
18795
if \$ac_cs_recheck; then
 
18796
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
18797
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
18798
fi
 
18799
 
 
18800
_ACEOF
 
18801
 
 
18802
cat >>$CONFIG_STATUS <<_ACEOF
 
18803
#
 
18804
# INIT-COMMANDS section.
 
18805
#
 
18806
 
 
18807
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
18808
 
 
18809
_ACEOF
 
18810
 
 
18811
 
 
18812
 
 
18813
cat >>$CONFIG_STATUS <<\_ACEOF
 
18814
for ac_config_target in $ac_config_targets
 
18815
do
 
18816
  case "$ac_config_target" in
 
18817
  # Handling of arguments.
 
18818
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
18819
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
18820
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
18821
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
18822
   { (exit 1); exit 1; }; };;
 
18823
  esac
 
18824
done
 
18825
 
 
18826
# If the user did not use the arguments to specify the items to instantiate,
 
18827
# then the envvar interface is used.  Set only those that are not.
 
18828
# We use the long form for the default assignment because of an extremely
 
18829
# bizarre bug on SunOS 4.1.3.
 
18830
if $ac_need_defaults; then
 
18831
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
18832
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
18833
fi
 
18834
 
 
18835
# Have a temporary directory for convenience.  Make it in the build tree
 
18836
# simply because there is no reason to put it here, and in addition,
 
18837
# creating and moving files from /tmp can sometimes cause problems.
 
18838
# Create a temporary directory, and hook for its removal unless debugging.
 
18839
$debug ||
 
18840
{
 
18841
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
18842
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
18843
}
 
18844
 
 
18845
# Create a (secure) tmp directory for tmp files.
 
18846
 
 
18847
{
 
18848
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
18849
  test -n "$tmp" && test -d "$tmp"
 
18850
}  ||
 
18851
{
 
18852
  tmp=./confstat$$-$RANDOM
 
18853
  (umask 077 && mkdir $tmp)
 
18854
} ||
 
18855
{
 
18856
   echo "$me: cannot create a temporary directory in ." >&2
 
18857
   { (exit 1); exit 1; }
 
18858
}
 
18859
 
 
18860
_ACEOF
 
18861
 
 
18862
cat >>$CONFIG_STATUS <<_ACEOF
 
18863
 
 
18864
#
 
18865
# CONFIG_FILES section.
 
18866
#
 
18867
 
 
18868
# No need to generate the scripts if there are no CONFIG_FILES.
 
18869
# This happens for instance when ./config.status config.h
 
18870
if test -n "\$CONFIG_FILES"; then
 
18871
  # Protect against being on the right side of a sed subst in config.status.
 
18872
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
18873
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
18874
s,@SHELL@,$SHELL,;t t
 
18875
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
18876
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
18877
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
18878
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
18879
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
18880
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
18881
s,@exec_prefix@,$exec_prefix,;t t
 
18882
s,@prefix@,$prefix,;t t
 
18883
s,@program_transform_name@,$program_transform_name,;t t
 
18884
s,@bindir@,$bindir,;t t
 
18885
s,@sbindir@,$sbindir,;t t
 
18886
s,@libexecdir@,$libexecdir,;t t
 
18887
s,@datadir@,$datadir,;t t
 
18888
s,@sysconfdir@,$sysconfdir,;t t
 
18889
s,@sharedstatedir@,$sharedstatedir,;t t
 
18890
s,@localstatedir@,$localstatedir,;t t
 
18891
s,@libdir@,$libdir,;t t
 
18892
s,@includedir@,$includedir,;t t
 
18893
s,@oldincludedir@,$oldincludedir,;t t
 
18894
s,@infodir@,$infodir,;t t
 
18895
s,@mandir@,$mandir,;t t
 
18896
s,@build_alias@,$build_alias,;t t
 
18897
s,@host_alias@,$host_alias,;t t
 
18898
s,@target_alias@,$target_alias,;t t
 
18899
s,@DEFS@,$DEFS,;t t
 
18900
s,@ECHO_C@,$ECHO_C,;t t
 
18901
s,@ECHO_N@,$ECHO_N,;t t
 
18902
s,@ECHO_T@,$ECHO_T,;t t
 
18903
s,@LIBS@,$LIBS,;t t
 
18904
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
18905
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
18906
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
18907
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
18908
s,@PACKAGE@,$PACKAGE,;t t
 
18909
s,@VERSION@,$VERSION,;t t
 
18910
s,@ACLOCAL@,$ACLOCAL,;t t
 
18911
s,@AUTOCONF@,$AUTOCONF,;t t
 
18912
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
18913
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
18914
s,@MAKEINFO@,$MAKEINFO,;t t
 
18915
s,@AMTAR@,$AMTAR,;t t
 
18916
s,@install_sh@,$install_sh,;t t
 
18917
s,@STRIP@,$STRIP,;t t
 
18918
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
18919
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
18920
s,@AWK@,$AWK,;t t
 
18921
s,@SET_MAKE@,$SET_MAKE,;t t
 
18922
s,@am__leading_dot@,$am__leading_dot,;t t
 
18923
s,@CC@,$CC,;t t
 
18924
s,@CFLAGS@,$CFLAGS,;t t
 
18925
s,@LDFLAGS@,$LDFLAGS,;t t
 
18926
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
18927
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
18928
s,@EXEEXT@,$EXEEXT,;t t
 
18929
s,@OBJEXT@,$OBJEXT,;t t
 
18930
s,@DEPDIR@,$DEPDIR,;t t
 
18931
s,@am__include@,$am__include,;t t
 
18932
s,@am__quote@,$am__quote,;t t
 
18933
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
18934
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
18935
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
18936
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
18937
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
18938
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
18939
s,@build@,$build,;t t
 
18940
s,@build_cpu@,$build_cpu,;t t
 
18941
s,@build_vendor@,$build_vendor,;t t
 
18942
s,@build_os@,$build_os,;t t
 
18943
s,@host@,$host,;t t
 
18944
s,@host_cpu@,$host_cpu,;t t
 
18945
s,@host_vendor@,$host_vendor,;t t
 
18946
s,@host_os@,$host_os,;t t
 
18947
s,@EGREP@,$EGREP,;t t
 
18948
s,@LN_S@,$LN_S,;t t
 
18949
s,@ECHO@,$ECHO,;t t
 
18950
s,@AR@,$AR,;t t
 
18951
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
18952
s,@RANLIB@,$RANLIB,;t t
 
18953
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
18954
s,@CPP@,$CPP,;t t
 
18955
s,@CXX@,$CXX,;t t
 
18956
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
18957
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
18958
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
18959
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
18960
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
18961
s,@CXXCPP@,$CXXCPP,;t t
 
18962
s,@F77@,$F77,;t t
 
18963
s,@FFLAGS@,$FFLAGS,;t t
 
18964
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
18965
s,@LIBTOOL@,$LIBTOOL,;t t
 
18966
s,@global_top_auxdir@,$global_top_auxdir,;t t
 
18967
s,@LIBOBJS@,$LIBOBJS,;t t
 
18968
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
18969
CEOF
 
18970
 
 
18971
_ACEOF
 
18972
 
 
18973
  cat >>$CONFIG_STATUS <<\_ACEOF
 
18974
  # Split the substitutions into bite-sized pieces for seds with
 
18975
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
18976
  ac_max_sed_lines=48
 
18977
  ac_sed_frag=1 # Number of current file.
 
18978
  ac_beg=1 # First line for current file.
 
18979
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
18980
  ac_more_lines=:
 
18981
  ac_sed_cmds=
 
18982
  while $ac_more_lines; do
 
18983
    if test $ac_beg -gt 1; then
 
18984
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
18985
    else
 
18986
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
18987
    fi
 
18988
    if test ! -s $tmp/subs.frag; then
 
18989
      ac_more_lines=false
 
18990
    else
 
18991
      # The purpose of the label and of the branching condition is to
 
18992
      # speed up the sed processing (if there are no `@' at all, there
 
18993
      # is no need to browse any of the substitutions).
 
18994
      # These are the two extra sed commands mentioned above.
 
18995
      (echo ':t
 
18996
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
18997
      if test -z "$ac_sed_cmds"; then
 
18998
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
18999
      else
 
19000
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
19001
      fi
 
19002
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
19003
      ac_beg=$ac_end
 
19004
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
19005
    fi
 
19006
  done
 
19007
  if test -z "$ac_sed_cmds"; then
 
19008
    ac_sed_cmds=cat
 
19009
  fi
 
19010
fi # test -n "$CONFIG_FILES"
 
19011
 
 
19012
_ACEOF
 
19013
cat >>$CONFIG_STATUS <<\_ACEOF
 
19014
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
19015
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
19016
  case $ac_file in
 
19017
  - | *:- | *:-:* ) # input from stdin
 
19018
        cat >$tmp/stdin
 
19019
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
19020
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
19021
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
19022
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
19023
  * )   ac_file_in=$ac_file.in ;;
 
19024
  esac
 
19025
 
 
19026
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
19027
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
19028
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19029
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
19030
         X"$ac_file" : 'X\(//\)$' \| \
 
19031
         X"$ac_file" : 'X\(/\)' \| \
 
19032
         .     : '\(.\)' 2>/dev/null ||
 
19033
echo X"$ac_file" |
 
19034
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19035
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19036
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19037
          /^X\(\/\).*/{ s//\1/; q; }
 
19038
          s/.*/./; q'`
 
19039
  { if $as_mkdir_p; then
 
19040
    mkdir -p "$ac_dir"
 
19041
  else
 
19042
    as_dir="$ac_dir"
 
19043
    as_dirs=
 
19044
    while test ! -d "$as_dir"; do
 
19045
      as_dirs="$as_dir $as_dirs"
 
19046
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
19047
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19048
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19049
         X"$as_dir" : 'X\(//\)$' \| \
 
19050
         X"$as_dir" : 'X\(/\)' \| \
 
19051
         .     : '\(.\)' 2>/dev/null ||
 
19052
echo X"$as_dir" |
 
19053
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19054
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19055
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19056
          /^X\(\/\).*/{ s//\1/; q; }
 
19057
          s/.*/./; q'`
 
19058
    done
 
19059
    test ! -n "$as_dirs" || mkdir $as_dirs
 
19060
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
19061
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
19062
   { (exit 1); exit 1; }; }; }
 
19063
 
 
19064
  ac_builddir=.
 
19065
 
 
19066
if test "$ac_dir" != .; then
 
19067
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
19068
  # A "../" for each directory in $ac_dir_suffix.
 
19069
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
19070
else
 
19071
  ac_dir_suffix= ac_top_builddir=
 
19072
fi
 
19073
 
 
19074
case $srcdir in
 
19075
  .)  # No --srcdir option.  We are building in place.
 
19076
    ac_srcdir=.
 
19077
    if test -z "$ac_top_builddir"; then
 
19078
       ac_top_srcdir=.
 
19079
    else
 
19080
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
19081
    fi ;;
 
19082
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
19083
    ac_srcdir=$srcdir$ac_dir_suffix;
 
19084
    ac_top_srcdir=$srcdir ;;
 
19085
  *) # Relative path.
 
19086
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
19087
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
19088
esac
 
19089
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
19090
# absolute.
 
19091
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
19092
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
19093
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
19094
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
19095
 
 
19096
 
 
19097
  case $INSTALL in
 
19098
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
19099
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
19100
  esac
 
19101
 
 
19102
  if test x"$ac_file" != x-; then
 
19103
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
19104
echo "$as_me: creating $ac_file" >&6;}
 
19105
    rm -f "$ac_file"
 
19106
  fi
 
19107
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
19108
  # use $as_me), people would be surprised to read:
 
19109
  #    /* config.h.  Generated by config.status.  */
 
19110
  if test x"$ac_file" = x-; then
 
19111
    configure_input=
 
19112
  else
 
19113
    configure_input="$ac_file.  "
 
19114
  fi
 
19115
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
19116
                                     sed 's,.*/,,'` by configure."
 
19117
 
 
19118
  # First look for the input files in the build tree, otherwise in the
 
19119
  # src tree.
 
19120
  ac_file_inputs=`IFS=:
 
19121
    for f in $ac_file_in; do
 
19122
      case $f in
 
19123
      -) echo $tmp/stdin ;;
 
19124
      [\\/$]*)
 
19125
         # Absolute (can't be DOS-style, as IFS=:)
 
19126
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
19127
echo "$as_me: error: cannot find input file: $f" >&2;}
 
19128
   { (exit 1); exit 1; }; }
 
19129
         echo $f;;
 
19130
      *) # Relative
 
19131
         if test -f "$f"; then
 
19132
           # Build tree
 
19133
           echo $f
 
19134
         elif test -f "$srcdir/$f"; then
 
19135
           # Source tree
 
19136
           echo $srcdir/$f
 
19137
         else
 
19138
           # /dev/null tree
 
19139
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
19140
echo "$as_me: error: cannot find input file: $f" >&2;}
 
19141
   { (exit 1); exit 1; }; }
 
19142
         fi;;
 
19143
      esac
 
19144
    done` || { (exit 1); exit 1; }
 
19145
_ACEOF
 
19146
cat >>$CONFIG_STATUS <<_ACEOF
 
19147
  sed "$ac_vpsub
 
19148
$extrasub
 
19149
_ACEOF
 
19150
cat >>$CONFIG_STATUS <<\_ACEOF
 
19151
:t
 
19152
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
19153
s,@configure_input@,$configure_input,;t t
 
19154
s,@srcdir@,$ac_srcdir,;t t
 
19155
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
19156
s,@top_srcdir@,$ac_top_srcdir,;t t
 
19157
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
19158
s,@builddir@,$ac_builddir,;t t
 
19159
s,@abs_builddir@,$ac_abs_builddir,;t t
 
19160
s,@top_builddir@,$ac_top_builddir,;t t
 
19161
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
19162
s,@INSTALL@,$ac_INSTALL,;t t
 
19163
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
19164
  rm -f $tmp/stdin
 
19165
  if test x"$ac_file" != x-; then
 
19166
    mv $tmp/out $ac_file
 
19167
  else
 
19168
    cat $tmp/out
 
19169
    rm -f $tmp/out
 
19170
  fi
 
19171
 
 
19172
done
 
19173
_ACEOF
 
19174
cat >>$CONFIG_STATUS <<\_ACEOF
 
19175
 
 
19176
#
 
19177
# CONFIG_COMMANDS section.
 
19178
#
 
19179
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
19180
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
19181
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
19182
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
19183
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19184
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
19185
         X"$ac_dest" : 'X\(//\)$' \| \
 
19186
         X"$ac_dest" : 'X\(/\)' \| \
 
19187
         .     : '\(.\)' 2>/dev/null ||
 
19188
echo X"$ac_dest" |
 
19189
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19190
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19191
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19192
          /^X\(\/\).*/{ s//\1/; q; }
 
19193
          s/.*/./; q'`
 
19194
  ac_builddir=.
 
19195
 
 
19196
if test "$ac_dir" != .; then
 
19197
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
19198
  # A "../" for each directory in $ac_dir_suffix.
 
19199
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
19200
else
 
19201
  ac_dir_suffix= ac_top_builddir=
 
19202
fi
 
19203
 
 
19204
case $srcdir in
 
19205
  .)  # No --srcdir option.  We are building in place.
 
19206
    ac_srcdir=.
 
19207
    if test -z "$ac_top_builddir"; then
 
19208
       ac_top_srcdir=.
 
19209
    else
 
19210
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
19211
    fi ;;
 
19212
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
19213
    ac_srcdir=$srcdir$ac_dir_suffix;
 
19214
    ac_top_srcdir=$srcdir ;;
 
19215
  *) # Relative path.
 
19216
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
19217
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
19218
esac
 
19219
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
19220
# absolute.
 
19221
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
19222
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
19223
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
19224
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
19225
 
 
19226
 
 
19227
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
19228
echo "$as_me: executing $ac_dest commands" >&6;}
 
19229
  case $ac_dest in
 
19230
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
19231
  # Strip MF so we end up with the name of the file.
 
19232
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
19233
  # Check whether this is an Automake generated Makefile or not.
 
19234
  # We used to match only the files named `Makefile.in', but
 
19235
  # some people rename them; so instead we look at the file content.
 
19236
  # Grep'ing the first line is not enough: some people post-process
 
19237
  # each Makefile.in and add a new line on top of each file to say so.
 
19238
  # So let's grep whole file.
 
19239
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
19240
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
19241
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19242
         X"$mf" : 'X\(//\)[^/]' \| \
 
19243
         X"$mf" : 'X\(//\)$' \| \
 
19244
         X"$mf" : 'X\(/\)' \| \
 
19245
         .     : '\(.\)' 2>/dev/null ||
 
19246
echo X"$mf" |
 
19247
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19248
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19249
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19250
          /^X\(\/\).*/{ s//\1/; q; }
 
19251
          s/.*/./; q'`
 
19252
  else
 
19253
    continue
 
19254
  fi
 
19255
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
19256
  # Extract the definition of DEP_FILES from the Makefile without
 
19257
  # running `make'.
 
19258
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
19259
  test -z "$DEPDIR" && continue
 
19260
  # When using ansi2knr, U may be empty or an underscore; expand it
 
19261
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
19262
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
19263
  # We invoke sed twice because it is the simplest approach to
 
19264
  # changing $(DEPDIR) to its actual value in the expansion.
 
19265
  for file in `sed -n -e '
 
19266
    /^DEP_FILES = .*\\\\$/ {
 
19267
      s/^DEP_FILES = //
 
19268
      :loop
 
19269
        s/\\\\$//
 
19270
        p
 
19271
        n
 
19272
        /\\\\$/ b loop
 
19273
      p
 
19274
    }
 
19275
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
19276
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
19277
    # Make sure the directory exists.
 
19278
    test -f "$dirpart/$file" && continue
 
19279
    fdir=`(dirname "$file") 2>/dev/null ||
 
19280
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19281
         X"$file" : 'X\(//\)[^/]' \| \
 
19282
         X"$file" : 'X\(//\)$' \| \
 
19283
         X"$file" : 'X\(/\)' \| \
 
19284
         .     : '\(.\)' 2>/dev/null ||
 
19285
echo X"$file" |
 
19286
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19287
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19288
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19289
          /^X\(\/\).*/{ s//\1/; q; }
 
19290
          s/.*/./; q'`
 
19291
    { if $as_mkdir_p; then
 
19292
    mkdir -p $dirpart/$fdir
 
19293
  else
 
19294
    as_dir=$dirpart/$fdir
 
19295
    as_dirs=
 
19296
    while test ! -d "$as_dir"; do
 
19297
      as_dirs="$as_dir $as_dirs"
 
19298
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
19299
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
19300
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
19301
         X"$as_dir" : 'X\(//\)$' \| \
 
19302
         X"$as_dir" : 'X\(/\)' \| \
 
19303
         .     : '\(.\)' 2>/dev/null ||
 
19304
echo X"$as_dir" |
 
19305
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
19306
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
19307
          /^X\(\/\/\)$/{ s//\1/; q; }
 
19308
          /^X\(\/\).*/{ s//\1/; q; }
 
19309
          s/.*/./; q'`
 
19310
    done
 
19311
    test ! -n "$as_dirs" || mkdir $as_dirs
 
19312
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
19313
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
19314
   { (exit 1); exit 1; }; }; }
 
19315
 
 
19316
    # echo "creating $dirpart/$file"
 
19317
    echo '# dummy' > "$dirpart/$file"
 
19318
  done
 
19319
done
 
19320
 ;;
 
19321
  esac
 
19322
done
 
19323
_ACEOF
 
19324
 
 
19325
cat >>$CONFIG_STATUS <<\_ACEOF
 
19326
 
 
19327
{ (exit 0); exit 0; }
 
19328
_ACEOF
 
19329
chmod +x $CONFIG_STATUS
 
19330
ac_clean_files=$ac_clean_files_save
 
19331
 
 
19332
 
 
19333
# configure is writing to config.log, and then calls config.status.
 
19334
# config.status does its own redirection, appending to config.log.
 
19335
# Unfortunately, on DOS this fails, as config.log is still kept open
 
19336
# by configure, so config.status won't be able to write to it; its
 
19337
# output is simply discarded.  So we exec the FD to /dev/null,
 
19338
# effectively closing config.log, so it can be properly (re)opened and
 
19339
# appended to by config.status.  When coming back to configure, we
 
19340
# need to make the FD available again.
 
19341
if test "$no_create" != yes; then
 
19342
  ac_cs_success=:
 
19343
  ac_config_status_args=
 
19344
  test "$silent" = yes &&
 
19345
    ac_config_status_args="$ac_config_status_args --quiet"
 
19346
  exec 5>/dev/null
 
19347
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
19348
  exec 5>>config.log
 
19349
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
19350
  # would make configure fail if this is the last instruction.
 
19351
  $ac_cs_success || { (exit 1); exit 1; }
 
19352
fi
 
19353