~ubuntu-branches/ubuntu/precise/libfs/precise-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Stone
  • Date: 2005-07-23 00:15:32 UTC
  • Revision ID: james.westby@ubuntu.com-20050723001532-1n80puvkrct21vfl
Tags: upstream-3.0.0
ImportĀ upstreamĀ versionĀ 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for libFS 3.0.0.
 
4
#
 
5
# Report bugs to <keithp@keithp.com>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
 
 
247
# Check that we are running under the correct shell.
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
 
 
250
case X$ECHO in
 
251
X*--fallback-echo)
 
252
  # Remove one level of quotation (which was required for Make).
 
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
254
  ;;
 
255
esac
 
256
 
 
257
echo=${ECHO-echo}
 
258
if test "X$1" = X--no-reexec; then
 
259
  # Discard the --no-reexec flag, and continue.
 
260
  shift
 
261
elif test "X$1" = X--fallback-echo; then
 
262
  # Avoid inline document here, it may be left over
 
263
  :
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $echo works!
 
266
  :
 
267
else
 
268
  # Restart under the correct shell.
 
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
270
fi
 
271
 
 
272
if test "X$1" = X--fallback-echo; then
 
273
  # used as fallback echo
 
274
  shift
 
275
  cat <<EOF
 
276
$*
 
277
EOF
 
278
  exit 0
 
279
fi
 
280
 
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
282
# if CDPATH is set.
 
283
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
284
 
 
285
if test -z "$ECHO"; then
 
286
if test "X${echo_test_string+set}" != Xset; then
 
287
# find a string as large as possible, as long as the shell can cope with it
 
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
290
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
291
       echo_test_string="`eval $cmd`" &&
 
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
293
    then
 
294
      break
 
295
    fi
 
296
  done
 
297
fi
 
298
 
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
302
  :
 
303
else
 
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
305
  # backslashes.  This makes it impossible to quote backslashes using
 
306
  #   echo "$something" | sed 's/\\/\\\\/g'
 
307
  #
 
308
  # So, first we look for a working echo in the user's PATH.
 
309
 
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
 
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
317
      echo="$dir/echo"
 
318
      break
 
319
    fi
 
320
  done
 
321
  IFS="$lt_save_ifs"
 
322
 
 
323
  if test "X$echo" = Xecho; then
 
324
    # We didn't find a better echo, so look for alternatives.
 
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      # This shell has a builtin print -r that does the trick.
 
329
      echo='print -r'
 
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
332
      # If we have ksh, try running configure again with it.
 
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
334
      export ORIGINAL_CONFIG_SHELL
 
335
      CONFIG_SHELL=/bin/ksh
 
336
      export CONFIG_SHELL
 
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
338
    else
 
339
      # Try using printf.
 
340
      echo='printf %s\n'
 
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
344
        # Cool, printf works
 
345
        :
 
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = 'X\t' &&
 
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
351
        export CONFIG_SHELL
 
352
        SHELL="$CONFIG_SHELL"
 
353
        export SHELL
 
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
360
      else
 
361
        # maybe with a smaller string...
 
362
        prev=:
 
363
 
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
366
          then
 
367
            break
 
368
          fi
 
369
          prev="$cmd"
 
370
        done
 
371
 
 
372
        if test "$prev" != 'sed 50q "$0"'; then
 
373
          echo_test_string=`eval $prev`
 
374
          export echo_test_string
 
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
376
        else
 
377
          # Oops.  We lost completely, so just stick with echo.
 
378
          echo=echo
 
379
        fi
 
380
      fi
 
381
    fi
 
382
  fi
 
383
fi
 
384
fi
 
385
 
 
386
# Copy echo and quote the copy suitably for passing to libtool from
 
387
# the Makefile, instead of quoting the original, which is used later.
 
388
ECHO=$echo
 
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
391
fi
 
392
 
 
393
 
 
394
 
 
395
 
 
396
tagnames=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
 
400
# Name of the host.
 
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
402
# so uname gets run too.
 
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
404
 
 
405
exec 6>&1
 
406
 
 
407
#
 
408
# Initializations.
 
409
#
 
410
ac_default_prefix=/usr/local
 
411
ac_config_libobj_dir=.
 
412
cross_compiling=no
 
413
subdirs=
 
414
MFLAGS=
 
415
MAKEFLAGS=
 
416
SHELL=${CONFIG_SHELL-/bin/sh}
 
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
 
423
# Identity of this package.
 
424
PACKAGE_NAME='libFS'
 
425
PACKAGE_TARNAME='libFS'
 
426
PACKAGE_VERSION='3.0.0'
 
427
PACKAGE_STRING='libFS 3.0.0'
 
428
PACKAGE_BUGREPORT='keithp@keithp.com'
 
429
 
 
430
# Factoring default headers for most tests.
 
431
ac_includes_default="\
 
432
#include <stdio.h>
 
433
#if HAVE_SYS_TYPES_H
 
434
# include <sys/types.h>
 
435
#endif
 
436
#if HAVE_SYS_STAT_H
 
437
# include <sys/stat.h>
 
438
#endif
 
439
#if STDC_HEADERS
 
440
# include <stdlib.h>
 
441
# include <stddef.h>
 
442
#else
 
443
# if HAVE_STDLIB_H
 
444
#  include <stdlib.h>
 
445
# endif
 
446
#endif
 
447
#if HAVE_STRING_H
 
448
# if !STDC_HEADERS && HAVE_MEMORY_H
 
449
#  include <memory.h>
 
450
# endif
 
451
# include <string.h>
 
452
#endif
 
453
#if HAVE_STRINGS_H
 
454
# include <strings.h>
 
455
#endif
 
456
#if HAVE_INTTYPES_H
 
457
# include <inttypes.h>
 
458
#else
 
459
# if HAVE_STDINT_H
 
460
#  include <stdint.h>
 
461
# endif
 
462
#endif
 
463
#if HAVE_UNISTD_H
 
464
# include <unistd.h>
 
465
#endif"
 
466
 
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 PKG_CONFIG ac_pt_PKG_CONFIG DEP_CFLAGS DEP_LIBS XTRANS_CFLAGS XTRANS_LIBS LIBOBJS LTLIBOBJS'
 
468
ac_subst_files=''
 
469
 
 
470
# Initialize some variables set by options.
 
471
ac_init_help=
 
472
ac_init_version=false
 
473
# The variables have the same names as the options, with
 
474
# dashes changed to underlines.
 
475
cache_file=/dev/null
 
476
exec_prefix=NONE
 
477
no_create=
 
478
no_recursion=
 
479
prefix=NONE
 
480
program_prefix=NONE
 
481
program_suffix=NONE
 
482
program_transform_name=s,x,x,
 
483
silent=
 
484
site=
 
485
srcdir=
 
486
verbose=
 
487
x_includes=NONE
 
488
x_libraries=NONE
 
489
 
 
490
# Installation directory options.
 
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
492
# and all the variables that are supposed to be based on exec_prefix
 
493
# by default will actually change.
 
494
# Use braces instead of parens because sh, perl, etc. also accept them.
 
495
bindir='${exec_prefix}/bin'
 
496
sbindir='${exec_prefix}/sbin'
 
497
libexecdir='${exec_prefix}/libexec'
 
498
datadir='${prefix}/share'
 
499
sysconfdir='${prefix}/etc'
 
500
sharedstatedir='${prefix}/com'
 
501
localstatedir='${prefix}/var'
 
502
libdir='${exec_prefix}/lib'
 
503
includedir='${prefix}/include'
 
504
oldincludedir='/usr/include'
 
505
infodir='${prefix}/info'
 
506
mandir='${prefix}/man'
 
507
 
 
508
ac_prev=
 
509
for ac_option
 
510
do
 
511
  # If the previous option needs an argument, assign it.
 
512
  if test -n "$ac_prev"; then
 
513
    eval "$ac_prev=\$ac_option"
 
514
    ac_prev=
 
515
    continue
 
516
  fi
 
517
 
 
518
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
519
 
 
520
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
521
 
 
522
  case $ac_option in
 
523
 
 
524
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
525
    ac_prev=bindir ;;
 
526
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
527
    bindir=$ac_optarg ;;
 
528
 
 
529
  -build | --build | --buil | --bui | --bu)
 
530
    ac_prev=build_alias ;;
 
531
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
532
    build_alias=$ac_optarg ;;
 
533
 
 
534
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
535
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
536
    ac_prev=cache_file ;;
 
537
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
538
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
539
    cache_file=$ac_optarg ;;
 
540
 
 
541
  --config-cache | -C)
 
542
    cache_file=config.cache ;;
 
543
 
 
544
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
545
    ac_prev=datadir ;;
 
546
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
547
  | --da=*)
 
548
    datadir=$ac_optarg ;;
 
549
 
 
550
  -disable-* | --disable-*)
 
551
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
557
    eval "enable_$ac_feature=no" ;;
 
558
 
 
559
  -enable-* | --enable-*)
 
560
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
561
    # Reject names that are not valid shell variable names.
 
562
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
563
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
564
   { (exit 1); exit 1; }; }
 
565
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
566
    case $ac_option in
 
567
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
568
      *) ac_optarg=yes ;;
 
569
    esac
 
570
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
571
 
 
572
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
573
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
574
  | --exec | --exe | --ex)
 
575
    ac_prev=exec_prefix ;;
 
576
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
577
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
578
  | --exec=* | --exe=* | --ex=*)
 
579
    exec_prefix=$ac_optarg ;;
 
580
 
 
581
  -gas | --gas | --ga | --g)
 
582
    # Obsolete; use --with-gas.
 
583
    with_gas=yes ;;
 
584
 
 
585
  -help | --help | --hel | --he | -h)
 
586
    ac_init_help=long ;;
 
587
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
588
    ac_init_help=recursive ;;
 
589
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
590
    ac_init_help=short ;;
 
591
 
 
592
  -host | --host | --hos | --ho)
 
593
    ac_prev=host_alias ;;
 
594
  -host=* | --host=* | --hos=* | --ho=*)
 
595
    host_alias=$ac_optarg ;;
 
596
 
 
597
  -includedir | --includedir | --includedi | --included | --include \
 
598
  | --includ | --inclu | --incl | --inc)
 
599
    ac_prev=includedir ;;
 
600
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
601
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
602
    includedir=$ac_optarg ;;
 
603
 
 
604
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
605
    ac_prev=infodir ;;
 
606
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
607
    infodir=$ac_optarg ;;
 
608
 
 
609
  -libdir | --libdir | --libdi | --libd)
 
610
    ac_prev=libdir ;;
 
611
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
612
    libdir=$ac_optarg ;;
 
613
 
 
614
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
615
  | --libexe | --libex | --libe)
 
616
    ac_prev=libexecdir ;;
 
617
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
618
  | --libexe=* | --libex=* | --libe=*)
 
619
    libexecdir=$ac_optarg ;;
 
620
 
 
621
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
622
  | --localstate | --localstat | --localsta | --localst \
 
623
  | --locals | --local | --loca | --loc | --lo)
 
624
    ac_prev=localstatedir ;;
 
625
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
626
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
627
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
628
    localstatedir=$ac_optarg ;;
 
629
 
 
630
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
631
    ac_prev=mandir ;;
 
632
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
633
    mandir=$ac_optarg ;;
 
634
 
 
635
  -nfp | --nfp | --nf)
 
636
    # Obsolete; use --without-fp.
 
637
    with_fp=no ;;
 
638
 
 
639
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
640
  | --no-cr | --no-c | -n)
 
641
    no_create=yes ;;
 
642
 
 
643
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
644
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
645
    no_recursion=yes ;;
 
646
 
 
647
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
648
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
649
  | --oldin | --oldi | --old | --ol | --o)
 
650
    ac_prev=oldincludedir ;;
 
651
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
652
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
653
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
654
    oldincludedir=$ac_optarg ;;
 
655
 
 
656
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
657
    ac_prev=prefix ;;
 
658
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
659
    prefix=$ac_optarg ;;
 
660
 
 
661
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
662
  | --program-pre | --program-pr | --program-p)
 
663
    ac_prev=program_prefix ;;
 
664
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
665
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
666
    program_prefix=$ac_optarg ;;
 
667
 
 
668
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
669
  | --program-suf | --program-su | --program-s)
 
670
    ac_prev=program_suffix ;;
 
671
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
672
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
673
    program_suffix=$ac_optarg ;;
 
674
 
 
675
  -program-transform-name | --program-transform-name \
 
676
  | --program-transform-nam | --program-transform-na \
 
677
  | --program-transform-n | --program-transform- \
 
678
  | --program-transform | --program-transfor \
 
679
  | --program-transfo | --program-transf \
 
680
  | --program-trans | --program-tran \
 
681
  | --progr-tra | --program-tr | --program-t)
 
682
    ac_prev=program_transform_name ;;
 
683
  -program-transform-name=* | --program-transform-name=* \
 
684
  | --program-transform-nam=* | --program-transform-na=* \
 
685
  | --program-transform-n=* | --program-transform-=* \
 
686
  | --program-transform=* | --program-transfor=* \
 
687
  | --program-transfo=* | --program-transf=* \
 
688
  | --program-trans=* | --program-tran=* \
 
689
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
690
    program_transform_name=$ac_optarg ;;
 
691
 
 
692
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
693
  | -silent | --silent | --silen | --sile | --sil)
 
694
    silent=yes ;;
 
695
 
 
696
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
697
    ac_prev=sbindir ;;
 
698
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
699
  | --sbi=* | --sb=*)
 
700
    sbindir=$ac_optarg ;;
 
701
 
 
702
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
703
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
704
  | --sharedst | --shareds | --shared | --share | --shar \
 
705
  | --sha | --sh)
 
706
    ac_prev=sharedstatedir ;;
 
707
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
708
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
709
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
710
  | --sha=* | --sh=*)
 
711
    sharedstatedir=$ac_optarg ;;
 
712
 
 
713
  -site | --site | --sit)
 
714
    ac_prev=site ;;
 
715
  -site=* | --site=* | --sit=*)
 
716
    site=$ac_optarg ;;
 
717
 
 
718
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
719
    ac_prev=srcdir ;;
 
720
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
721
    srcdir=$ac_optarg ;;
 
722
 
 
723
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
724
  | --syscon | --sysco | --sysc | --sys | --sy)
 
725
    ac_prev=sysconfdir ;;
 
726
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
727
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
728
    sysconfdir=$ac_optarg ;;
 
729
 
 
730
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
731
    ac_prev=target_alias ;;
 
732
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
733
    target_alias=$ac_optarg ;;
 
734
 
 
735
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
736
    verbose=yes ;;
 
737
 
 
738
  -version | --version | --versio | --versi | --vers | -V)
 
739
    ac_init_version=: ;;
 
740
 
 
741
  -with-* | --with-*)
 
742
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
743
    # Reject names that are not valid shell variable names.
 
744
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
745
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
746
   { (exit 1); exit 1; }; }
 
747
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
748
    case $ac_option in
 
749
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
750
      *) ac_optarg=yes ;;
 
751
    esac
 
752
    eval "with_$ac_package='$ac_optarg'" ;;
 
753
 
 
754
  -without-* | --without-*)
 
755
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
756
    # Reject names that are not valid shell variable names.
 
757
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
758
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
759
   { (exit 1); exit 1; }; }
 
760
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
761
    eval "with_$ac_package=no" ;;
 
762
 
 
763
  --x)
 
764
    # Obsolete; use --with-x.
 
765
    with_x=yes ;;
 
766
 
 
767
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
768
  | --x-incl | --x-inc | --x-in | --x-i)
 
769
    ac_prev=x_includes ;;
 
770
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
771
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
772
    x_includes=$ac_optarg ;;
 
773
 
 
774
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
775
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
776
    ac_prev=x_libraries ;;
 
777
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
778
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
779
    x_libraries=$ac_optarg ;;
 
780
 
 
781
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
782
Try \`$0 --help' for more information." >&2
 
783
   { (exit 1); exit 1; }; }
 
784
    ;;
 
785
 
 
786
  *=*)
 
787
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
788
    # Reject names that are not valid shell variable names.
 
789
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
790
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
791
   { (exit 1); exit 1; }; }
 
792
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
793
    eval "$ac_envvar='$ac_optarg'"
 
794
    export $ac_envvar ;;
 
795
 
 
796
  *)
 
797
    # FIXME: should be removed in autoconf 3.0.
 
798
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
799
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
800
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
801
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
802
    ;;
 
803
 
 
804
  esac
 
805
done
 
806
 
 
807
if test -n "$ac_prev"; then
 
808
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
809
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
810
   { (exit 1); exit 1; }; }
 
811
fi
 
812
 
 
813
# Be sure to have absolute paths.
 
814
for ac_var in exec_prefix prefix
 
815
do
 
816
  eval ac_val=$`echo $ac_var`
 
817
  case $ac_val in
 
818
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
819
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
820
   { (exit 1); exit 1; }; };;
 
821
  esac
 
822
done
 
823
 
 
824
# Be sure to have absolute paths.
 
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
 
827
do
 
828
  eval ac_val=$`echo $ac_var`
 
829
  case $ac_val in
 
830
    [\\/$]* | ?:[\\/]* ) ;;
 
831
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
832
   { (exit 1); exit 1; }; };;
 
833
  esac
 
834
done
 
835
 
 
836
# There might be people who depend on the old broken behavior: `$host'
 
837
# used to hold the argument of --host etc.
 
838
# FIXME: To remove some day.
 
839
build=$build_alias
 
840
host=$host_alias
 
841
target=$target_alias
 
842
 
 
843
# FIXME: To remove some day.
 
844
if test "x$host_alias" != x; then
 
845
  if test "x$build_alias" = x; then
 
846
    cross_compiling=maybe
 
847
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
848
    If a cross compiler is detected then cross compile mode will be used." >&2
 
849
  elif test "x$build_alias" != "x$host_alias"; then
 
850
    cross_compiling=yes
 
851
  fi
 
852
fi
 
853
 
 
854
ac_tool_prefix=
 
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
856
 
 
857
test "$silent" = yes && exec 6>/dev/null
 
858
 
 
859
 
 
860
# Find the source files, if location was not specified.
 
861
if test -z "$srcdir"; then
 
862
  ac_srcdir_defaulted=yes
 
863
  # Try the directory containing this script, then its parent.
 
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
 
870
echo X"$0" |
 
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
874
          /^X\(\/\).*/{ s//\1/; q; }
 
875
          s/.*/./; q'`
 
876
  srcdir=$ac_confdir
 
877
  if test ! -r $srcdir/$ac_unique_file; then
 
878
    srcdir=..
 
879
  fi
 
880
else
 
881
  ac_srcdir_defaulted=no
 
882
fi
 
883
if test ! -r $srcdir/$ac_unique_file; then
 
884
  if test "$ac_srcdir_defaulted" = yes; then
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
886
   { (exit 1); exit 1; }; }
 
887
  else
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
889
   { (exit 1); exit 1; }; }
 
890
  fi
 
891
fi
 
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
893
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
896
ac_env_build_alias_set=${build_alias+set}
 
897
ac_env_build_alias_value=$build_alias
 
898
ac_cv_env_build_alias_set=${build_alias+set}
 
899
ac_cv_env_build_alias_value=$build_alias
 
900
ac_env_host_alias_set=${host_alias+set}
 
901
ac_env_host_alias_value=$host_alias
 
902
ac_cv_env_host_alias_set=${host_alias+set}
 
903
ac_cv_env_host_alias_value=$host_alias
 
904
ac_env_target_alias_set=${target_alias+set}
 
905
ac_env_target_alias_value=$target_alias
 
906
ac_cv_env_target_alias_set=${target_alias+set}
 
907
ac_cv_env_target_alias_value=$target_alias
 
908
ac_env_CC_set=${CC+set}
 
909
ac_env_CC_value=$CC
 
910
ac_cv_env_CC_set=${CC+set}
 
911
ac_cv_env_CC_value=$CC
 
912
ac_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_env_CFLAGS_value=$CFLAGS
 
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
915
ac_cv_env_CFLAGS_value=$CFLAGS
 
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_env_LDFLAGS_value=$LDFLAGS
 
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
924
ac_env_CPP_set=${CPP+set}
 
925
ac_env_CPP_value=$CPP
 
926
ac_cv_env_CPP_set=${CPP+set}
 
927
ac_cv_env_CPP_value=$CPP
 
928
ac_env_CXX_set=${CXX+set}
 
929
ac_env_CXX_value=$CXX
 
930
ac_cv_env_CXX_set=${CXX+set}
 
931
ac_cv_env_CXX_value=$CXX
 
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
933
ac_env_CXXFLAGS_value=$CXXFLAGS
 
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
936
ac_env_CXXCPP_set=${CXXCPP+set}
 
937
ac_env_CXXCPP_value=$CXXCPP
 
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
 
948
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
949
ac_env_PKG_CONFIG_value=$PKG_CONFIG
 
950
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
951
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
 
952
ac_env_DEP_CFLAGS_set=${DEP_CFLAGS+set}
 
953
ac_env_DEP_CFLAGS_value=$DEP_CFLAGS
 
954
ac_cv_env_DEP_CFLAGS_set=${DEP_CFLAGS+set}
 
955
ac_cv_env_DEP_CFLAGS_value=$DEP_CFLAGS
 
956
ac_env_DEP_LIBS_set=${DEP_LIBS+set}
 
957
ac_env_DEP_LIBS_value=$DEP_LIBS
 
958
ac_cv_env_DEP_LIBS_set=${DEP_LIBS+set}
 
959
ac_cv_env_DEP_LIBS_value=$DEP_LIBS
 
960
ac_env_XTRANS_CFLAGS_set=${XTRANS_CFLAGS+set}
 
961
ac_env_XTRANS_CFLAGS_value=$XTRANS_CFLAGS
 
962
ac_cv_env_XTRANS_CFLAGS_set=${XTRANS_CFLAGS+set}
 
963
ac_cv_env_XTRANS_CFLAGS_value=$XTRANS_CFLAGS
 
964
ac_env_XTRANS_LIBS_set=${XTRANS_LIBS+set}
 
965
ac_env_XTRANS_LIBS_value=$XTRANS_LIBS
 
966
ac_cv_env_XTRANS_LIBS_set=${XTRANS_LIBS+set}
 
967
ac_cv_env_XTRANS_LIBS_value=$XTRANS_LIBS
 
968
 
 
969
#
 
970
# Report the --help message.
 
971
#
 
972
if test "$ac_init_help" = "long"; then
 
973
  # Omit some internal or obsolete options to make the list less imposing.
 
974
  # This message is too long to be a string in the A/UX 3.1 sh.
 
975
  cat <<_ACEOF
 
976
\`configure' configures libFS 3.0.0 to adapt to many kinds of systems.
 
977
 
 
978
Usage: $0 [OPTION]... [VAR=VALUE]...
 
979
 
 
980
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
981
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
982
 
 
983
Defaults for the options are specified in brackets.
 
984
 
 
985
Configuration:
 
986
  -h, --help              display this help and exit
 
987
      --help=short        display options specific to this package
 
988
      --help=recursive    display the short help of all the included packages
 
989
  -V, --version           display version information and exit
 
990
  -q, --quiet, --silent   do not print \`checking...' messages
 
991
      --cache-file=FILE   cache test results in FILE [disabled]
 
992
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
993
  -n, --no-create         do not create output files
 
994
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
995
 
 
996
_ACEOF
 
997
 
 
998
  cat <<_ACEOF
 
999
Installation directories:
 
1000
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1001
                          [$ac_default_prefix]
 
1002
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1003
                          [PREFIX]
 
1004
 
 
1005
By default, \`make install' will install all the files in
 
1006
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1007
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1008
for instance \`--prefix=\$HOME'.
 
1009
 
 
1010
For better control, use the options below.
 
1011
 
 
1012
Fine tuning of the installation directories:
 
1013
  --bindir=DIR           user executables [EPREFIX/bin]
 
1014
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1015
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1016
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
1017
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1018
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1019
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1020
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1021
  --includedir=DIR       C header files [PREFIX/include]
 
1022
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1023
  --infodir=DIR          info documentation [PREFIX/info]
 
1024
  --mandir=DIR           man documentation [PREFIX/man]
 
1025
_ACEOF
 
1026
 
 
1027
  cat <<\_ACEOF
 
1028
 
 
1029
Program names:
 
1030
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1031
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1032
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1033
 
 
1034
System types:
 
1035
  --build=BUILD     configure for building on BUILD [guessed]
 
1036
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1037
_ACEOF
 
1038
fi
 
1039
 
 
1040
if test -n "$ac_init_help"; then
 
1041
  case $ac_init_help in
 
1042
     short | recursive ) echo "Configuration of libFS 3.0.0:";;
 
1043
   esac
 
1044
  cat <<\_ACEOF
 
1045
 
 
1046
Optional Features:
 
1047
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1048
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1049
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1050
                          (and sometimes confusing) to the casual installer
 
1051
  --disable-dependency-tracking  speeds up one-time build
 
1052
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1053
  --enable-shared[=PKGS]
 
1054
                          build shared libraries [default=yes]
 
1055
  --enable-static[=PKGS]
 
1056
                          build static libraries [default=yes]
 
1057
  --enable-fast-install[=PKGS]
 
1058
                          optimize for fast installation [default=yes]
 
1059
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1060
  --disable-unix-transport
 
1061
  --disable-tcp-transport
 
1062
  --disable-ipv6
 
1063
 
 
1064
Optional Packages:
 
1065
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1066
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1067
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1068
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1069
                          both]
 
1070
  --with-tags[=TAGS]
 
1071
                          include additional configurations [automatic]
 
1072
 
 
1073
Some influential environment variables:
 
1074
  CC          C compiler command
 
1075
  CFLAGS      C compiler flags
 
1076
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1077
              nonstandard directory <lib dir>
 
1078
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1079
              headers in a nonstandard directory <include dir>
 
1080
  CPP         C preprocessor
 
1081
  CXX         C++ compiler command
 
1082
  CXXFLAGS    C++ compiler flags
 
1083
  CXXCPP      C++ preprocessor
 
1084
  F77         Fortran 77 compiler command
 
1085
  FFLAGS      Fortran 77 compiler flags
 
1086
  PKG_CONFIG  path to pkg-config utility
 
1087
  DEP_CFLAGS  C compiler flags for DEP, overriding pkg-config
 
1088
  DEP_LIBS    linker flags for DEP, overriding pkg-config
 
1089
  XTRANS_CFLAGS
 
1090
              C compiler flags for XTRANS, overriding pkg-config
 
1091
  XTRANS_LIBS linker flags for XTRANS, overriding pkg-config
 
1092
 
 
1093
Use these variables to override the choices made by `configure' or to help
 
1094
it to find libraries and programs with nonstandard names/locations.
 
1095
 
 
1096
Report bugs to <keithp@keithp.com>.
 
1097
_ACEOF
 
1098
fi
 
1099
 
 
1100
if test "$ac_init_help" = "recursive"; then
 
1101
  # If there are subdirs, report their specific --help.
 
1102
  ac_popdir=`pwd`
 
1103
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1104
    test -d $ac_dir || continue
 
1105
    ac_builddir=.
 
1106
 
 
1107
if test "$ac_dir" != .; then
 
1108
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1109
  # A "../" for each directory in $ac_dir_suffix.
 
1110
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1111
else
 
1112
  ac_dir_suffix= ac_top_builddir=
 
1113
fi
 
1114
 
 
1115
case $srcdir in
 
1116
  .)  # No --srcdir option.  We are building in place.
 
1117
    ac_srcdir=.
 
1118
    if test -z "$ac_top_builddir"; then
 
1119
       ac_top_srcdir=.
 
1120
    else
 
1121
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1122
    fi ;;
 
1123
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1124
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1125
    ac_top_srcdir=$srcdir ;;
 
1126
  *) # Relative path.
 
1127
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1128
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1129
esac
 
1130
 
 
1131
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1132
# the directories may not exist.
 
1133
case `pwd` in
 
1134
.) ac_abs_builddir="$ac_dir";;
 
1135
*)
 
1136
  case "$ac_dir" in
 
1137
  .) ac_abs_builddir=`pwd`;;
 
1138
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1139
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1140
  esac;;
 
1141
esac
 
1142
case $ac_abs_builddir in
 
1143
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1144
*)
 
1145
  case ${ac_top_builddir}. in
 
1146
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1147
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1148
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1149
  esac;;
 
1150
esac
 
1151
case $ac_abs_builddir in
 
1152
.) ac_abs_srcdir=$ac_srcdir;;
 
1153
*)
 
1154
  case $ac_srcdir in
 
1155
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1156
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1157
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1158
  esac;;
 
1159
esac
 
1160
case $ac_abs_builddir in
 
1161
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1162
*)
 
1163
  case $ac_top_srcdir in
 
1164
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1165
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1166
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1167
  esac;;
 
1168
esac
 
1169
 
 
1170
    cd $ac_dir
 
1171
    # Check for guested configure; otherwise get Cygnus style configure.
 
1172
    if test -f $ac_srcdir/configure.gnu; then
 
1173
      echo
 
1174
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1175
    elif test -f $ac_srcdir/configure; then
 
1176
      echo
 
1177
      $SHELL $ac_srcdir/configure  --help=recursive
 
1178
    elif test -f $ac_srcdir/configure.ac ||
 
1179
           test -f $ac_srcdir/configure.in; then
 
1180
      echo
 
1181
      $ac_configure --help
 
1182
    else
 
1183
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1184
    fi
 
1185
    cd "$ac_popdir"
 
1186
  done
 
1187
fi
 
1188
 
 
1189
test -n "$ac_init_help" && exit 0
 
1190
if $ac_init_version; then
 
1191
  cat <<\_ACEOF
 
1192
libFS configure 3.0.0
 
1193
generated by GNU Autoconf 2.59
 
1194
 
 
1195
Copyright (C) 2003 Free Software Foundation, Inc.
 
1196
This configure script is free software; the Free Software Foundation
 
1197
gives unlimited permission to copy, distribute and modify it.
 
1198
_ACEOF
 
1199
  exit 0
 
1200
fi
 
1201
exec 5>config.log
 
1202
cat >&5 <<_ACEOF
 
1203
This file contains any messages produced by compilers while
 
1204
running configure, to aid debugging if configure makes a mistake.
 
1205
 
 
1206
It was created by libFS $as_me 3.0.0, which was
 
1207
generated by GNU Autoconf 2.59.  Invocation command line was
 
1208
 
 
1209
  $ $0 $@
 
1210
 
 
1211
_ACEOF
 
1212
{
 
1213
cat <<_ASUNAME
 
1214
## --------- ##
 
1215
## Platform. ##
 
1216
## --------- ##
 
1217
 
 
1218
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1219
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1220
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1221
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1222
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1223
 
 
1224
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1225
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1226
 
 
1227
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1228
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1229
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1230
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1231
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1232
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1233
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1234
 
 
1235
_ASUNAME
 
1236
 
 
1237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1238
for as_dir in $PATH
 
1239
do
 
1240
  IFS=$as_save_IFS
 
1241
  test -z "$as_dir" && as_dir=.
 
1242
  echo "PATH: $as_dir"
 
1243
done
 
1244
 
 
1245
} >&5
 
1246
 
 
1247
cat >&5 <<_ACEOF
 
1248
 
 
1249
 
 
1250
## ----------- ##
 
1251
## Core tests. ##
 
1252
## ----------- ##
 
1253
 
 
1254
_ACEOF
 
1255
 
 
1256
 
 
1257
# Keep a trace of the command line.
 
1258
# Strip out --no-create and --no-recursion so they do not pile up.
 
1259
# Strip out --silent because we don't want to record it for future runs.
 
1260
# Also quote any args containing shell meta-characters.
 
1261
# Make two passes to allow for proper duplicate-argument suppression.
 
1262
ac_configure_args=
 
1263
ac_configure_args0=
 
1264
ac_configure_args1=
 
1265
ac_sep=
 
1266
ac_must_keep_next=false
 
1267
for ac_pass in 1 2
 
1268
do
 
1269
  for ac_arg
 
1270
  do
 
1271
    case $ac_arg in
 
1272
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1273
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1274
    | -silent | --silent | --silen | --sile | --sil)
 
1275
      continue ;;
 
1276
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1277
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1278
    esac
 
1279
    case $ac_pass in
 
1280
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1281
    2)
 
1282
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1283
      if test $ac_must_keep_next = true; then
 
1284
        ac_must_keep_next=false # Got value, back to normal.
 
1285
      else
 
1286
        case $ac_arg in
 
1287
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1288
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1289
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1290
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1291
            case "$ac_configure_args0 " in
 
1292
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1293
            esac
 
1294
            ;;
 
1295
          -* ) ac_must_keep_next=true ;;
 
1296
        esac
 
1297
      fi
 
1298
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1299
      # Get rid of the leading space.
 
1300
      ac_sep=" "
 
1301
      ;;
 
1302
    esac
 
1303
  done
 
1304
done
 
1305
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1306
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1307
 
 
1308
# When interrupted or exit'd, cleanup temporary files, and complete
 
1309
# config.log.  We remove comments because anyway the quotes in there
 
1310
# would cause problems or look ugly.
 
1311
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1312
# such as our DU 5.0 friend, will then `close' the trap.
 
1313
trap 'exit_status=$?
 
1314
  # Save into config.log some information that might help in debugging.
 
1315
  {
 
1316
    echo
 
1317
 
 
1318
    cat <<\_ASBOX
 
1319
## ---------------- ##
 
1320
## Cache variables. ##
 
1321
## ---------------- ##
 
1322
_ASBOX
 
1323
    echo
 
1324
    # The following way of writing the cache mishandles newlines in values,
 
1325
{
 
1326
  (set) 2>&1 |
 
1327
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1328
    *ac_space=\ *)
 
1329
      sed -n \
 
1330
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1331
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1332
      ;;
 
1333
    *)
 
1334
      sed -n \
 
1335
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1336
      ;;
 
1337
    esac;
 
1338
}
 
1339
    echo
 
1340
 
 
1341
    cat <<\_ASBOX
 
1342
## ----------------- ##
 
1343
## Output variables. ##
 
1344
## ----------------- ##
 
1345
_ASBOX
 
1346
    echo
 
1347
    for ac_var in $ac_subst_vars
 
1348
    do
 
1349
      eval ac_val=$`echo $ac_var`
 
1350
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1351
    done | sort
 
1352
    echo
 
1353
 
 
1354
    if test -n "$ac_subst_files"; then
 
1355
      cat <<\_ASBOX
 
1356
## ------------- ##
 
1357
## Output files. ##
 
1358
## ------------- ##
 
1359
_ASBOX
 
1360
      echo
 
1361
      for ac_var in $ac_subst_files
 
1362
      do
 
1363
        eval ac_val=$`echo $ac_var`
 
1364
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1365
      done | sort
 
1366
      echo
 
1367
    fi
 
1368
 
 
1369
    if test -s confdefs.h; then
 
1370
      cat <<\_ASBOX
 
1371
## ----------- ##
 
1372
## confdefs.h. ##
 
1373
## ----------- ##
 
1374
_ASBOX
 
1375
      echo
 
1376
      sed "/^$/d" confdefs.h | sort
 
1377
      echo
 
1378
    fi
 
1379
    test "$ac_signal" != 0 &&
 
1380
      echo "$as_me: caught signal $ac_signal"
 
1381
    echo "$as_me: exit $exit_status"
 
1382
  } >&5
 
1383
  rm -f core *.core &&
 
1384
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1385
    exit $exit_status
 
1386
     ' 0
 
1387
for ac_signal in 1 2 13 15; do
 
1388
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1389
done
 
1390
ac_signal=0
 
1391
 
 
1392
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1393
rm -rf conftest* confdefs.h
 
1394
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1395
echo >confdefs.h
 
1396
 
 
1397
# Predefined preprocessor variables.
 
1398
 
 
1399
cat >>confdefs.h <<_ACEOF
 
1400
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1401
_ACEOF
 
1402
 
 
1403
 
 
1404
cat >>confdefs.h <<_ACEOF
 
1405
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1406
_ACEOF
 
1407
 
 
1408
 
 
1409
cat >>confdefs.h <<_ACEOF
 
1410
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1411
_ACEOF
 
1412
 
 
1413
 
 
1414
cat >>confdefs.h <<_ACEOF
 
1415
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1416
_ACEOF
 
1417
 
 
1418
 
 
1419
cat >>confdefs.h <<_ACEOF
 
1420
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1421
_ACEOF
 
1422
 
 
1423
 
 
1424
# Let the site file select an alternate cache file if it wants to.
 
1425
# Prefer explicitly selected file to automatically selected ones.
 
1426
if test -z "$CONFIG_SITE"; then
 
1427
  if test "x$prefix" != xNONE; then
 
1428
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1429
  else
 
1430
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1431
  fi
 
1432
fi
 
1433
for ac_site_file in $CONFIG_SITE; do
 
1434
  if test -r "$ac_site_file"; then
 
1435
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1436
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1437
    sed 's/^/| /' "$ac_site_file" >&5
 
1438
    . "$ac_site_file"
 
1439
  fi
 
1440
done
 
1441
 
 
1442
if test -r "$cache_file"; then
 
1443
  # Some versions of bash will fail to source /dev/null (special
 
1444
  # files actually), so we avoid doing that.
 
1445
  if test -f "$cache_file"; then
 
1446
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1447
echo "$as_me: loading cache $cache_file" >&6;}
 
1448
    case $cache_file in
 
1449
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1450
      *)                      . ./$cache_file;;
 
1451
    esac
 
1452
  fi
 
1453
else
 
1454
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1455
echo "$as_me: creating cache $cache_file" >&6;}
 
1456
  >$cache_file
 
1457
fi
 
1458
 
 
1459
# Check that the precious variables saved in the cache have kept the same
 
1460
# value.
 
1461
ac_cache_corrupted=false
 
1462
for ac_var in `(set) 2>&1 |
 
1463
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1464
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1465
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1466
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1467
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1468
  case $ac_old_set,$ac_new_set in
 
1469
    set,)
 
1470
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1471
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1472
      ac_cache_corrupted=: ;;
 
1473
    ,set)
 
1474
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1475
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1476
      ac_cache_corrupted=: ;;
 
1477
    ,);;
 
1478
    *)
 
1479
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1480
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1481
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1482
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1483
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1484
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1485
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1486
        ac_cache_corrupted=:
 
1487
      fi;;
 
1488
  esac
 
1489
  # Pass precious variables to config.status.
 
1490
  if test "$ac_new_set" = set; then
 
1491
    case $ac_new_val in
 
1492
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1493
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1494
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1495
    esac
 
1496
    case " $ac_configure_args " in
 
1497
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1498
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1499
    esac
 
1500
  fi
 
1501
done
 
1502
if $ac_cache_corrupted; then
 
1503
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1504
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1505
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1506
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1507
   { (exit 1); exit 1; }; }
 
1508
fi
 
1509
 
 
1510
ac_ext=c
 
1511
ac_cpp='$CPP $CPPFLAGS'
 
1512
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1513
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1514
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
 
 
1529
 
 
1530
 
 
1531
 
 
1532
 
 
1533
 
 
1534
 
 
1535
 
 
1536
 
 
1537
 
 
1538
 
 
1539
 
 
1540
 
 
1541
 
 
1542
am__api_version="1.9"
 
1543
ac_aux_dir=
 
1544
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1545
  if test -f $ac_dir/install-sh; then
 
1546
    ac_aux_dir=$ac_dir
 
1547
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1548
    break
 
1549
  elif test -f $ac_dir/install.sh; then
 
1550
    ac_aux_dir=$ac_dir
 
1551
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1552
    break
 
1553
  elif test -f $ac_dir/shtool; then
 
1554
    ac_aux_dir=$ac_dir
 
1555
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1556
    break
 
1557
  fi
 
1558
done
 
1559
if test -z "$ac_aux_dir"; then
 
1560
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1561
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1562
   { (exit 1); exit 1; }; }
 
1563
fi
 
1564
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1565
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1566
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1567
 
 
1568
# Find a good install program.  We prefer a C program (faster),
 
1569
# so one script is as good as another.  But avoid the broken or
 
1570
# incompatible versions:
 
1571
# SysV /etc/install, /usr/sbin/install
 
1572
# SunOS /usr/etc/install
 
1573
# IRIX /sbin/install
 
1574
# AIX /bin/install
 
1575
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1576
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1577
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1578
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1579
# OS/2's system install, which has a completely different semantic
 
1580
# ./install, which can be erroneously created by make from ./install.sh.
 
1581
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1582
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1583
if test -z "$INSTALL"; then
 
1584
if test "${ac_cv_path_install+set}" = set; then
 
1585
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1586
else
 
1587
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1588
for as_dir in $PATH
 
1589
do
 
1590
  IFS=$as_save_IFS
 
1591
  test -z "$as_dir" && as_dir=.
 
1592
  # Account for people who put trailing slashes in PATH elements.
 
1593
case $as_dir/ in
 
1594
  ./ | .// | /cC/* | \
 
1595
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1596
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1597
  /usr/ucb/* ) ;;
 
1598
  *)
 
1599
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1600
    # Don't use installbsd from OSF since it installs stuff as root
 
1601
    # by default.
 
1602
    for ac_prog in ginstall scoinst install; do
 
1603
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1604
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1605
          if test $ac_prog = install &&
 
1606
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1607
            # AIX install.  It has an incompatible calling convention.
 
1608
            :
 
1609
          elif test $ac_prog = install &&
 
1610
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1611
            # program-specific install script used by HP pwplus--don't use.
 
1612
            :
 
1613
          else
 
1614
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1615
            break 3
 
1616
          fi
 
1617
        fi
 
1618
      done
 
1619
    done
 
1620
    ;;
 
1621
esac
 
1622
done
 
1623
 
 
1624
 
 
1625
fi
 
1626
  if test "${ac_cv_path_install+set}" = set; then
 
1627
    INSTALL=$ac_cv_path_install
 
1628
  else
 
1629
    # As a last resort, use the slow shell script.  We don't cache a
 
1630
    # path for INSTALL within a source directory, because that will
 
1631
    # break other packages using the cache if that directory is
 
1632
    # removed, or if the path is relative.
 
1633
    INSTALL=$ac_install_sh
 
1634
  fi
 
1635
fi
 
1636
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1637
echo "${ECHO_T}$INSTALL" >&6
 
1638
 
 
1639
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1640
# It thinks the first close brace ends the variable substitution.
 
1641
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1642
 
 
1643
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1644
 
 
1645
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1646
 
 
1647
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1648
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1649
# Just in case
 
1650
sleep 1
 
1651
echo timestamp > conftest.file
 
1652
# Do `set' in a subshell so we don't clobber the current shell's
 
1653
# arguments.  Must try -L first in case configure is actually a
 
1654
# symlink; some systems play weird games with the mod time of symlinks
 
1655
# (eg FreeBSD returns the mod time of the symlink's containing
 
1656
# directory).
 
1657
if (
 
1658
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1659
   if test "$*" = "X"; then
 
1660
      # -L didn't work.
 
1661
      set X `ls -t $srcdir/configure conftest.file`
 
1662
   fi
 
1663
   rm -f conftest.file
 
1664
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1665
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1666
 
 
1667
      # If neither matched, then we have a broken ls.  This can happen
 
1668
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1669
      # broken ls alias from the environment.  This has actually
 
1670
      # happened.  Such a system could not be considered "sane".
 
1671
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1672
alias in your environment" >&5
 
1673
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1674
alias in your environment" >&2;}
 
1675
   { (exit 1); exit 1; }; }
 
1676
   fi
 
1677
 
 
1678
   test "$2" = conftest.file
 
1679
   )
 
1680
then
 
1681
   # Ok.
 
1682
   :
 
1683
else
 
1684
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1685
Check your system clock" >&5
 
1686
echo "$as_me: error: newly created file is older than distributed files!
 
1687
Check your system clock" >&2;}
 
1688
   { (exit 1); exit 1; }; }
 
1689
fi
 
1690
echo "$as_me:$LINENO: result: yes" >&5
 
1691
echo "${ECHO_T}yes" >&6
 
1692
test "$program_prefix" != NONE &&
 
1693
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1694
# Use a double $ so make ignores it.
 
1695
test "$program_suffix" != NONE &&
 
1696
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1697
# Double any \ or $.  echo might interpret backslashes.
 
1698
# By default was `s,x,x', remove it if useless.
 
1699
cat <<\_ACEOF >conftest.sed
 
1700
s/[\\$]/&&/g;s/;s,x,x,$//
 
1701
_ACEOF
 
1702
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1703
rm conftest.sed
 
1704
 
 
1705
# expand $ac_aux_dir to an absolute path
 
1706
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1707
 
 
1708
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1709
# Use eval to expand $SHELL
 
1710
if eval "$MISSING --run true"; then
 
1711
  am_missing_run="$MISSING --run "
 
1712
else
 
1713
  am_missing_run=
 
1714
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1715
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1716
fi
 
1717
 
 
1718
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1719
  # We used to keeping the `.' as first argument, in order to
 
1720
  # allow $(mkdir_p) to be used without argument.  As in
 
1721
  #   $(mkdir_p) $(somedir)
 
1722
  # where $(somedir) is conditionally defined.  However this is wrong
 
1723
  # for two reasons:
 
1724
  #  1. if the package is installed by a user who cannot write `.'
 
1725
  #     make install will fail,
 
1726
  #  2. the above comment should most certainly read
 
1727
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1728
  #     so it does not work when $(somedir) is undefined and
 
1729
  #     $(DESTDIR) is not.
 
1730
  #  To support the latter case, we have to write
 
1731
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1732
  #  so the `.' trick is pointless.
 
1733
  mkdir_p='mkdir -p --'
 
1734
else
 
1735
  # On NextStep and OpenStep, the `mkdir' command does not
 
1736
  # recognize any option.  It will interpret all options as
 
1737
  # directories to create, and then abort because `.' already
 
1738
  # exists.
 
1739
  for d in ./-p ./--version;
 
1740
  do
 
1741
    test -d $d && rmdir $d
 
1742
  done
 
1743
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1744
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1745
    mkdir_p='$(mkinstalldirs)'
 
1746
  else
 
1747
    mkdir_p='$(install_sh) -d'
 
1748
  fi
 
1749
fi
 
1750
 
 
1751
for ac_prog in gawk mawk nawk awk
 
1752
do
 
1753
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1754
set dummy $ac_prog; ac_word=$2
 
1755
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1757
if test "${ac_cv_prog_AWK+set}" = set; then
 
1758
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1759
else
 
1760
  if test -n "$AWK"; then
 
1761
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1762
else
 
1763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1764
for as_dir in $PATH
 
1765
do
 
1766
  IFS=$as_save_IFS
 
1767
  test -z "$as_dir" && as_dir=.
 
1768
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1769
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1770
    ac_cv_prog_AWK="$ac_prog"
 
1771
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1772
    break 2
 
1773
  fi
 
1774
done
 
1775
done
 
1776
 
 
1777
fi
 
1778
fi
 
1779
AWK=$ac_cv_prog_AWK
 
1780
if test -n "$AWK"; then
 
1781
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1782
echo "${ECHO_T}$AWK" >&6
 
1783
else
 
1784
  echo "$as_me:$LINENO: result: no" >&5
 
1785
echo "${ECHO_T}no" >&6
 
1786
fi
 
1787
 
 
1788
  test -n "$AWK" && break
 
1789
done
 
1790
 
 
1791
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1792
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1793
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1794
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1796
else
 
1797
  cat >conftest.make <<\_ACEOF
 
1798
all:
 
1799
        @echo 'ac_maketemp="$(MAKE)"'
 
1800
_ACEOF
 
1801
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1802
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1803
if test -n "$ac_maketemp"; then
 
1804
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1805
else
 
1806
  eval ac_cv_prog_make_${ac_make}_set=no
 
1807
fi
 
1808
rm -f conftest.make
 
1809
fi
 
1810
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1811
  echo "$as_me:$LINENO: result: yes" >&5
 
1812
echo "${ECHO_T}yes" >&6
 
1813
  SET_MAKE=
 
1814
else
 
1815
  echo "$as_me:$LINENO: result: no" >&5
 
1816
echo "${ECHO_T}no" >&6
 
1817
  SET_MAKE="MAKE=${MAKE-make}"
 
1818
fi
 
1819
 
 
1820
rm -rf .tst 2>/dev/null
 
1821
mkdir .tst 2>/dev/null
 
1822
if test -d .tst; then
 
1823
  am__leading_dot=.
 
1824
else
 
1825
  am__leading_dot=_
 
1826
fi
 
1827
rmdir .tst 2>/dev/null
 
1828
 
 
1829
# test to see if srcdir already configured
 
1830
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1831
   test -f $srcdir/config.status; then
 
1832
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1833
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1834
   { (exit 1); exit 1; }; }
 
1835
fi
 
1836
 
 
1837
# test whether we have cygpath
 
1838
if test -z "$CYGPATH_W"; then
 
1839
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1840
    CYGPATH_W='cygpath -w'
 
1841
  else
 
1842
    CYGPATH_W=echo
 
1843
  fi
 
1844
fi
 
1845
 
 
1846
 
 
1847
# Define the identity of the package.
 
1848
 PACKAGE='libFS'
 
1849
 VERSION='3.0.0'
 
1850
 
 
1851
 
 
1852
cat >>confdefs.h <<_ACEOF
 
1853
#define PACKAGE "$PACKAGE"
 
1854
_ACEOF
 
1855
 
 
1856
 
 
1857
cat >>confdefs.h <<_ACEOF
 
1858
#define VERSION "$VERSION"
 
1859
_ACEOF
 
1860
 
 
1861
# Some tools Automake needs.
 
1862
 
 
1863
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1864
 
 
1865
 
 
1866
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1867
 
 
1868
 
 
1869
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1870
 
 
1871
 
 
1872
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1873
 
 
1874
 
 
1875
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1876
 
 
1877
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1878
 
 
1879
# Installed binaries are usually stripped using `strip' when the user
 
1880
# run `make install-strip'.  However `strip' might not be the right
 
1881
# tool to use in cross-compilation environments, therefore Automake
 
1882
# will honor the `STRIP' environment variable to overrule this program.
 
1883
if test "$cross_compiling" != no; then
 
1884
  if test -n "$ac_tool_prefix"; then
 
1885
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1886
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1887
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1888
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1889
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1891
else
 
1892
  if test -n "$STRIP"; then
 
1893
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1894
else
 
1895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1896
for as_dir in $PATH
 
1897
do
 
1898
  IFS=$as_save_IFS
 
1899
  test -z "$as_dir" && as_dir=.
 
1900
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1901
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1902
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1903
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1904
    break 2
 
1905
  fi
 
1906
done
 
1907
done
 
1908
 
 
1909
fi
 
1910
fi
 
1911
STRIP=$ac_cv_prog_STRIP
 
1912
if test -n "$STRIP"; then
 
1913
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1914
echo "${ECHO_T}$STRIP" >&6
 
1915
else
 
1916
  echo "$as_me:$LINENO: result: no" >&5
 
1917
echo "${ECHO_T}no" >&6
 
1918
fi
 
1919
 
 
1920
fi
 
1921
if test -z "$ac_cv_prog_STRIP"; then
 
1922
  ac_ct_STRIP=$STRIP
 
1923
  # Extract the first word of "strip", so it can be a program name with args.
 
1924
set dummy strip; ac_word=$2
 
1925
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1926
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1927
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1929
else
 
1930
  if test -n "$ac_ct_STRIP"; then
 
1931
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1932
else
 
1933
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1934
for as_dir in $PATH
 
1935
do
 
1936
  IFS=$as_save_IFS
 
1937
  test -z "$as_dir" && as_dir=.
 
1938
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1939
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1940
    ac_cv_prog_ac_ct_STRIP="strip"
 
1941
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1942
    break 2
 
1943
  fi
 
1944
done
 
1945
done
 
1946
 
 
1947
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1948
fi
 
1949
fi
 
1950
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1951
if test -n "$ac_ct_STRIP"; then
 
1952
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1953
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1954
else
 
1955
  echo "$as_me:$LINENO: result: no" >&5
 
1956
echo "${ECHO_T}no" >&6
 
1957
fi
 
1958
 
 
1959
  STRIP=$ac_ct_STRIP
 
1960
else
 
1961
  STRIP="$ac_cv_prog_STRIP"
 
1962
fi
 
1963
 
 
1964
fi
 
1965
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1966
 
 
1967
# We need awk for the "check" target.  The system "awk" is bad on
 
1968
# some platforms.
 
1969
# Always define AMTAR for backward compatibility.
 
1970
 
 
1971
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1972
 
 
1973
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1974
 
 
1975
 
 
1976
 
 
1977
 
 
1978
 
 
1979
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1980
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1981
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1982
if test "${enable_maintainer_mode+set}" = set; then
 
1983
  enableval="$enable_maintainer_mode"
 
1984
  USE_MAINTAINER_MODE=$enableval
 
1985
else
 
1986
  USE_MAINTAINER_MODE=no
 
1987
fi;
 
1988
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1989
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1990
 
 
1991
 
 
1992
if test $USE_MAINTAINER_MODE = yes; then
 
1993
  MAINTAINER_MODE_TRUE=
 
1994
  MAINTAINER_MODE_FALSE='#'
 
1995
else
 
1996
  MAINTAINER_MODE_TRUE='#'
 
1997
  MAINTAINER_MODE_FALSE=
 
1998
fi
 
1999
 
 
2000
  MAINT=$MAINTAINER_MODE_TRUE
 
2001
 
 
2002
 
 
2003
 
 
2004
          ac_config_headers="$ac_config_headers config.h"
 
2005
 
 
2006
 
 
2007
# Check for progs
 
2008
ac_ext=c
 
2009
ac_cpp='$CPP $CPPFLAGS'
 
2010
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2011
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2012
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2013
if test -n "$ac_tool_prefix"; then
 
2014
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2015
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2016
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2017
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2018
if test "${ac_cv_prog_CC+set}" = set; then
 
2019
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2020
else
 
2021
  if test -n "$CC"; then
 
2022
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2023
else
 
2024
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2025
for as_dir in $PATH
 
2026
do
 
2027
  IFS=$as_save_IFS
 
2028
  test -z "$as_dir" && as_dir=.
 
2029
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2030
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2031
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2032
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2033
    break 2
 
2034
  fi
 
2035
done
 
2036
done
 
2037
 
 
2038
fi
 
2039
fi
 
2040
CC=$ac_cv_prog_CC
 
2041
if test -n "$CC"; then
 
2042
  echo "$as_me:$LINENO: result: $CC" >&5
 
2043
echo "${ECHO_T}$CC" >&6
 
2044
else
 
2045
  echo "$as_me:$LINENO: result: no" >&5
 
2046
echo "${ECHO_T}no" >&6
 
2047
fi
 
2048
 
 
2049
fi
 
2050
if test -z "$ac_cv_prog_CC"; then
 
2051
  ac_ct_CC=$CC
 
2052
  # Extract the first word of "gcc", so it can be a program name with args.
 
2053
set dummy gcc; ac_word=$2
 
2054
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2055
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2056
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2058
else
 
2059
  if test -n "$ac_ct_CC"; then
 
2060
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2061
else
 
2062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2063
for as_dir in $PATH
 
2064
do
 
2065
  IFS=$as_save_IFS
 
2066
  test -z "$as_dir" && as_dir=.
 
2067
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2068
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2069
    ac_cv_prog_ac_ct_CC="gcc"
 
2070
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2071
    break 2
 
2072
  fi
 
2073
done
 
2074
done
 
2075
 
 
2076
fi
 
2077
fi
 
2078
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2079
if test -n "$ac_ct_CC"; then
 
2080
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2081
echo "${ECHO_T}$ac_ct_CC" >&6
 
2082
else
 
2083
  echo "$as_me:$LINENO: result: no" >&5
 
2084
echo "${ECHO_T}no" >&6
 
2085
fi
 
2086
 
 
2087
  CC=$ac_ct_CC
 
2088
else
 
2089
  CC="$ac_cv_prog_CC"
 
2090
fi
 
2091
 
 
2092
if test -z "$CC"; then
 
2093
  if test -n "$ac_tool_prefix"; then
 
2094
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2095
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2096
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2097
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2098
if test "${ac_cv_prog_CC+set}" = set; then
 
2099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2100
else
 
2101
  if test -n "$CC"; then
 
2102
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2103
else
 
2104
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2105
for as_dir in $PATH
 
2106
do
 
2107
  IFS=$as_save_IFS
 
2108
  test -z "$as_dir" && as_dir=.
 
2109
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2110
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2111
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2112
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2113
    break 2
 
2114
  fi
 
2115
done
 
2116
done
 
2117
 
 
2118
fi
 
2119
fi
 
2120
CC=$ac_cv_prog_CC
 
2121
if test -n "$CC"; then
 
2122
  echo "$as_me:$LINENO: result: $CC" >&5
 
2123
echo "${ECHO_T}$CC" >&6
 
2124
else
 
2125
  echo "$as_me:$LINENO: result: no" >&5
 
2126
echo "${ECHO_T}no" >&6
 
2127
fi
 
2128
 
 
2129
fi
 
2130
if test -z "$ac_cv_prog_CC"; then
 
2131
  ac_ct_CC=$CC
 
2132
  # Extract the first word of "cc", so it can be a program name with args.
 
2133
set dummy cc; ac_word=$2
 
2134
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2135
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2136
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2137
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2138
else
 
2139
  if test -n "$ac_ct_CC"; then
 
2140
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2141
else
 
2142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2143
for as_dir in $PATH
 
2144
do
 
2145
  IFS=$as_save_IFS
 
2146
  test -z "$as_dir" && as_dir=.
 
2147
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2148
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2149
    ac_cv_prog_ac_ct_CC="cc"
 
2150
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2151
    break 2
 
2152
  fi
 
2153
done
 
2154
done
 
2155
 
 
2156
fi
 
2157
fi
 
2158
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2159
if test -n "$ac_ct_CC"; then
 
2160
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2161
echo "${ECHO_T}$ac_ct_CC" >&6
 
2162
else
 
2163
  echo "$as_me:$LINENO: result: no" >&5
 
2164
echo "${ECHO_T}no" >&6
 
2165
fi
 
2166
 
 
2167
  CC=$ac_ct_CC
 
2168
else
 
2169
  CC="$ac_cv_prog_CC"
 
2170
fi
 
2171
 
 
2172
fi
 
2173
if test -z "$CC"; then
 
2174
  # Extract the first word of "cc", so it can be a program name with args.
 
2175
set dummy cc; ac_word=$2
 
2176
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2177
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2178
if test "${ac_cv_prog_CC+set}" = set; then
 
2179
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2180
else
 
2181
  if test -n "$CC"; then
 
2182
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2183
else
 
2184
  ac_prog_rejected=no
 
2185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2186
for as_dir in $PATH
 
2187
do
 
2188
  IFS=$as_save_IFS
 
2189
  test -z "$as_dir" && as_dir=.
 
2190
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2191
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2192
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2193
       ac_prog_rejected=yes
 
2194
       continue
 
2195
     fi
 
2196
    ac_cv_prog_CC="cc"
 
2197
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2198
    break 2
 
2199
  fi
 
2200
done
 
2201
done
 
2202
 
 
2203
if test $ac_prog_rejected = yes; then
 
2204
  # We found a bogon in the path, so make sure we never use it.
 
2205
  set dummy $ac_cv_prog_CC
 
2206
  shift
 
2207
  if test $# != 0; then
 
2208
    # We chose a different compiler from the bogus one.
 
2209
    # However, it has the same basename, so the bogon will be chosen
 
2210
    # first if we set CC to just the basename; use the full file name.
 
2211
    shift
 
2212
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2213
  fi
 
2214
fi
 
2215
fi
 
2216
fi
 
2217
CC=$ac_cv_prog_CC
 
2218
if test -n "$CC"; then
 
2219
  echo "$as_me:$LINENO: result: $CC" >&5
 
2220
echo "${ECHO_T}$CC" >&6
 
2221
else
 
2222
  echo "$as_me:$LINENO: result: no" >&5
 
2223
echo "${ECHO_T}no" >&6
 
2224
fi
 
2225
 
 
2226
fi
 
2227
if test -z "$CC"; then
 
2228
  if test -n "$ac_tool_prefix"; then
 
2229
  for ac_prog in cl
 
2230
  do
 
2231
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2232
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2233
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2234
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2235
if test "${ac_cv_prog_CC+set}" = set; then
 
2236
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2237
else
 
2238
  if test -n "$CC"; then
 
2239
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2240
else
 
2241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2242
for as_dir in $PATH
 
2243
do
 
2244
  IFS=$as_save_IFS
 
2245
  test -z "$as_dir" && as_dir=.
 
2246
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2247
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2248
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2249
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2250
    break 2
 
2251
  fi
 
2252
done
 
2253
done
 
2254
 
 
2255
fi
 
2256
fi
 
2257
CC=$ac_cv_prog_CC
 
2258
if test -n "$CC"; then
 
2259
  echo "$as_me:$LINENO: result: $CC" >&5
 
2260
echo "${ECHO_T}$CC" >&6
 
2261
else
 
2262
  echo "$as_me:$LINENO: result: no" >&5
 
2263
echo "${ECHO_T}no" >&6
 
2264
fi
 
2265
 
 
2266
    test -n "$CC" && break
 
2267
  done
 
2268
fi
 
2269
if test -z "$CC"; then
 
2270
  ac_ct_CC=$CC
 
2271
  for ac_prog in cl
 
2272
do
 
2273
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2274
set dummy $ac_prog; ac_word=$2
 
2275
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2276
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2277
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2279
else
 
2280
  if test -n "$ac_ct_CC"; then
 
2281
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2282
else
 
2283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2284
for as_dir in $PATH
 
2285
do
 
2286
  IFS=$as_save_IFS
 
2287
  test -z "$as_dir" && as_dir=.
 
2288
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2289
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2290
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2291
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2292
    break 2
 
2293
  fi
 
2294
done
 
2295
done
 
2296
 
 
2297
fi
 
2298
fi
 
2299
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2300
if test -n "$ac_ct_CC"; then
 
2301
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2302
echo "${ECHO_T}$ac_ct_CC" >&6
 
2303
else
 
2304
  echo "$as_me:$LINENO: result: no" >&5
 
2305
echo "${ECHO_T}no" >&6
 
2306
fi
 
2307
 
 
2308
  test -n "$ac_ct_CC" && break
 
2309
done
 
2310
 
 
2311
  CC=$ac_ct_CC
 
2312
fi
 
2313
 
 
2314
fi
 
2315
 
 
2316
 
 
2317
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2318
See \`config.log' for more details." >&5
 
2319
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2320
See \`config.log' for more details." >&2;}
 
2321
   { (exit 1); exit 1; }; }
 
2322
 
 
2323
# Provide some information about the compiler.
 
2324
echo "$as_me:$LINENO:" \
 
2325
     "checking for C compiler version" >&5
 
2326
ac_compiler=`set X $ac_compile; echo $2`
 
2327
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2328
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2329
  ac_status=$?
 
2330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2331
  (exit $ac_status); }
 
2332
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2333
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2334
  ac_status=$?
 
2335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2336
  (exit $ac_status); }
 
2337
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2338
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2339
  ac_status=$?
 
2340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2341
  (exit $ac_status); }
 
2342
 
 
2343
cat >conftest.$ac_ext <<_ACEOF
 
2344
/* confdefs.h.  */
 
2345
_ACEOF
 
2346
cat confdefs.h >>conftest.$ac_ext
 
2347
cat >>conftest.$ac_ext <<_ACEOF
 
2348
/* end confdefs.h.  */
 
2349
 
 
2350
int
 
2351
main ()
 
2352
{
 
2353
 
 
2354
  ;
 
2355
  return 0;
 
2356
}
 
2357
_ACEOF
 
2358
ac_clean_files_save=$ac_clean_files
 
2359
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2360
# Try to create an executable without -o first, disregard a.out.
 
2361
# It will help us diagnose broken compilers, and finding out an intuition
 
2362
# of exeext.
 
2363
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2364
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2365
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2366
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2367
  (eval $ac_link_default) 2>&5
 
2368
  ac_status=$?
 
2369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2370
  (exit $ac_status); }; then
 
2371
  # Find the output, starting from the most likely.  This scheme is
 
2372
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2373
# resort.
 
2374
 
 
2375
# Be careful to initialize this variable, since it used to be cached.
 
2376
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2377
ac_cv_exeext=
 
2378
# b.out is created by i960 compilers.
 
2379
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2380
do
 
2381
  test -f "$ac_file" || continue
 
2382
  case $ac_file in
 
2383
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2384
        ;;
 
2385
    conftest.$ac_ext )
 
2386
        # This is the source file.
 
2387
        ;;
 
2388
    [ab].out )
 
2389
        # We found the default executable, but exeext='' is most
 
2390
        # certainly right.
 
2391
        break;;
 
2392
    *.* )
 
2393
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2394
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2395
        # but it would be cool to find out if it's true.  Does anybody
 
2396
        # maintain Libtool? --akim.
 
2397
        export ac_cv_exeext
 
2398
        break;;
 
2399
    * )
 
2400
        break;;
 
2401
  esac
 
2402
done
 
2403
else
 
2404
  echo "$as_me: failed program was:" >&5
 
2405
sed 's/^/| /' conftest.$ac_ext >&5
 
2406
 
 
2407
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2408
See \`config.log' for more details." >&5
 
2409
echo "$as_me: error: C compiler cannot create executables
 
2410
See \`config.log' for more details." >&2;}
 
2411
   { (exit 77); exit 77; }; }
 
2412
fi
 
2413
 
 
2414
ac_exeext=$ac_cv_exeext
 
2415
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2416
echo "${ECHO_T}$ac_file" >&6
 
2417
 
 
2418
# Check the compiler produces executables we can run.  If not, either
 
2419
# the compiler is broken, or we cross compile.
 
2420
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2421
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2422
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2423
# If not cross compiling, check that we can run a simple program.
 
2424
if test "$cross_compiling" != yes; then
 
2425
  if { ac_try='./$ac_file'
 
2426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2427
  (eval $ac_try) 2>&5
 
2428
  ac_status=$?
 
2429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2430
  (exit $ac_status); }; }; then
 
2431
    cross_compiling=no
 
2432
  else
 
2433
    if test "$cross_compiling" = maybe; then
 
2434
        cross_compiling=yes
 
2435
    else
 
2436
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2437
If you meant to cross compile, use \`--host'.
 
2438
See \`config.log' for more details." >&5
 
2439
echo "$as_me: error: cannot run C compiled programs.
 
2440
If you meant to cross compile, use \`--host'.
 
2441
See \`config.log' for more details." >&2;}
 
2442
   { (exit 1); exit 1; }; }
 
2443
    fi
 
2444
  fi
 
2445
fi
 
2446
echo "$as_me:$LINENO: result: yes" >&5
 
2447
echo "${ECHO_T}yes" >&6
 
2448
 
 
2449
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2450
ac_clean_files=$ac_clean_files_save
 
2451
# Check the compiler produces executables we can run.  If not, either
 
2452
# the compiler is broken, or we cross compile.
 
2453
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2454
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2455
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2456
echo "${ECHO_T}$cross_compiling" >&6
 
2457
 
 
2458
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2459
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2460
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2461
  (eval $ac_link) 2>&5
 
2462
  ac_status=$?
 
2463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2464
  (exit $ac_status); }; then
 
2465
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2466
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2467
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2468
# `rm'.
 
2469
for ac_file in conftest.exe conftest conftest.*; do
 
2470
  test -f "$ac_file" || continue
 
2471
  case $ac_file in
 
2472
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2473
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2474
          export ac_cv_exeext
 
2475
          break;;
 
2476
    * ) break;;
 
2477
  esac
 
2478
done
 
2479
else
 
2480
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2481
See \`config.log' for more details." >&5
 
2482
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2483
See \`config.log' for more details." >&2;}
 
2484
   { (exit 1); exit 1; }; }
 
2485
fi
 
2486
 
 
2487
rm -f conftest$ac_cv_exeext
 
2488
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2489
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2490
 
 
2491
rm -f conftest.$ac_ext
 
2492
EXEEXT=$ac_cv_exeext
 
2493
ac_exeext=$EXEEXT
 
2494
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2495
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2496
if test "${ac_cv_objext+set}" = set; then
 
2497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2498
else
 
2499
  cat >conftest.$ac_ext <<_ACEOF
 
2500
/* confdefs.h.  */
 
2501
_ACEOF
 
2502
cat confdefs.h >>conftest.$ac_ext
 
2503
cat >>conftest.$ac_ext <<_ACEOF
 
2504
/* end confdefs.h.  */
 
2505
 
 
2506
int
 
2507
main ()
 
2508
{
 
2509
 
 
2510
  ;
 
2511
  return 0;
 
2512
}
 
2513
_ACEOF
 
2514
rm -f conftest.o conftest.obj
 
2515
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2516
  (eval $ac_compile) 2>&5
 
2517
  ac_status=$?
 
2518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2519
  (exit $ac_status); }; then
 
2520
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2521
  case $ac_file in
 
2522
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2523
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2524
       break;;
 
2525
  esac
 
2526
done
 
2527
else
 
2528
  echo "$as_me: failed program was:" >&5
 
2529
sed 's/^/| /' conftest.$ac_ext >&5
 
2530
 
 
2531
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2532
See \`config.log' for more details." >&5
 
2533
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2534
See \`config.log' for more details." >&2;}
 
2535
   { (exit 1); exit 1; }; }
 
2536
fi
 
2537
 
 
2538
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2539
fi
 
2540
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2541
echo "${ECHO_T}$ac_cv_objext" >&6
 
2542
OBJEXT=$ac_cv_objext
 
2543
ac_objext=$OBJEXT
 
2544
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2545
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2546
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2548
else
 
2549
  cat >conftest.$ac_ext <<_ACEOF
 
2550
/* confdefs.h.  */
 
2551
_ACEOF
 
2552
cat confdefs.h >>conftest.$ac_ext
 
2553
cat >>conftest.$ac_ext <<_ACEOF
 
2554
/* end confdefs.h.  */
 
2555
 
 
2556
int
 
2557
main ()
 
2558
{
 
2559
#ifndef __GNUC__
 
2560
       choke me
 
2561
#endif
 
2562
 
 
2563
  ;
 
2564
  return 0;
 
2565
}
 
2566
_ACEOF
 
2567
rm -f conftest.$ac_objext
 
2568
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2569
  (eval $ac_compile) 2>conftest.er1
 
2570
  ac_status=$?
 
2571
  grep -v '^ *+' conftest.er1 >conftest.err
 
2572
  rm -f conftest.er1
 
2573
  cat conftest.err >&5
 
2574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2575
  (exit $ac_status); } &&
 
2576
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2578
  (eval $ac_try) 2>&5
 
2579
  ac_status=$?
 
2580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2581
  (exit $ac_status); }; } &&
 
2582
         { ac_try='test -s conftest.$ac_objext'
 
2583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2584
  (eval $ac_try) 2>&5
 
2585
  ac_status=$?
 
2586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2587
  (exit $ac_status); }; }; then
 
2588
  ac_compiler_gnu=yes
 
2589
else
 
2590
  echo "$as_me: failed program was:" >&5
 
2591
sed 's/^/| /' conftest.$ac_ext >&5
 
2592
 
 
2593
ac_compiler_gnu=no
 
2594
fi
 
2595
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2596
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2597
 
 
2598
fi
 
2599
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2600
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2601
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2602
ac_test_CFLAGS=${CFLAGS+set}
 
2603
ac_save_CFLAGS=$CFLAGS
 
2604
CFLAGS="-g"
 
2605
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2606
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2607
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2609
else
 
2610
  cat >conftest.$ac_ext <<_ACEOF
 
2611
/* confdefs.h.  */
 
2612
_ACEOF
 
2613
cat confdefs.h >>conftest.$ac_ext
 
2614
cat >>conftest.$ac_ext <<_ACEOF
 
2615
/* end confdefs.h.  */
 
2616
 
 
2617
int
 
2618
main ()
 
2619
{
 
2620
 
 
2621
  ;
 
2622
  return 0;
 
2623
}
 
2624
_ACEOF
 
2625
rm -f conftest.$ac_objext
 
2626
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2627
  (eval $ac_compile) 2>conftest.er1
 
2628
  ac_status=$?
 
2629
  grep -v '^ *+' conftest.er1 >conftest.err
 
2630
  rm -f conftest.er1
 
2631
  cat conftest.err >&5
 
2632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2633
  (exit $ac_status); } &&
 
2634
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2635
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2636
  (eval $ac_try) 2>&5
 
2637
  ac_status=$?
 
2638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2639
  (exit $ac_status); }; } &&
 
2640
         { ac_try='test -s conftest.$ac_objext'
 
2641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2642
  (eval $ac_try) 2>&5
 
2643
  ac_status=$?
 
2644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2645
  (exit $ac_status); }; }; then
 
2646
  ac_cv_prog_cc_g=yes
 
2647
else
 
2648
  echo "$as_me: failed program was:" >&5
 
2649
sed 's/^/| /' conftest.$ac_ext >&5
 
2650
 
 
2651
ac_cv_prog_cc_g=no
 
2652
fi
 
2653
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2654
fi
 
2655
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2656
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2657
if test "$ac_test_CFLAGS" = set; then
 
2658
  CFLAGS=$ac_save_CFLAGS
 
2659
elif test $ac_cv_prog_cc_g = yes; then
 
2660
  if test "$GCC" = yes; then
 
2661
    CFLAGS="-g -O2"
 
2662
  else
 
2663
    CFLAGS="-g"
 
2664
  fi
 
2665
else
 
2666
  if test "$GCC" = yes; then
 
2667
    CFLAGS="-O2"
 
2668
  else
 
2669
    CFLAGS=
 
2670
  fi
 
2671
fi
 
2672
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2673
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2674
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2675
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2676
else
 
2677
  ac_cv_prog_cc_stdc=no
 
2678
ac_save_CC=$CC
 
2679
cat >conftest.$ac_ext <<_ACEOF
 
2680
/* confdefs.h.  */
 
2681
_ACEOF
 
2682
cat confdefs.h >>conftest.$ac_ext
 
2683
cat >>conftest.$ac_ext <<_ACEOF
 
2684
/* end confdefs.h.  */
 
2685
#include <stdarg.h>
 
2686
#include <stdio.h>
 
2687
#include <sys/types.h>
 
2688
#include <sys/stat.h>
 
2689
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2690
struct buf { int x; };
 
2691
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2692
static char *e (p, i)
 
2693
     char **p;
 
2694
     int i;
 
2695
{
 
2696
  return p[i];
 
2697
}
 
2698
static char *f (char * (*g) (char **, int), char **p, ...)
 
2699
{
 
2700
  char *s;
 
2701
  va_list v;
 
2702
  va_start (v,p);
 
2703
  s = g (p, va_arg (v,int));
 
2704
  va_end (v);
 
2705
  return s;
 
2706
}
 
2707
 
 
2708
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2709
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2710
   These don't provoke an error unfortunately, instead are silently treated
 
2711
   as 'x'.  The following induces an error, until -std1 is added to get
 
2712
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2713
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2714
   that's true only with -std1.  */
 
2715
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2716
 
 
2717
int test (int i, double x);
 
2718
struct s1 {int (*f) (int a);};
 
2719
struct s2 {int (*f) (double a);};
 
2720
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2721
int argc;
 
2722
char **argv;
 
2723
int
 
2724
main ()
 
2725
{
 
2726
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2727
  ;
 
2728
  return 0;
 
2729
}
 
2730
_ACEOF
 
2731
# Don't try gcc -ansi; that turns off useful extensions and
 
2732
# breaks some systems' header files.
 
2733
# AIX                   -qlanglvl=ansi
 
2734
# Ultrix and OSF/1      -std1
 
2735
# HP-UX 10.20 and later -Ae
 
2736
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2737
# SVR4                  -Xc -D__EXTENSIONS__
 
2738
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2739
do
 
2740
  CC="$ac_save_CC $ac_arg"
 
2741
  rm -f conftest.$ac_objext
 
2742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2743
  (eval $ac_compile) 2>conftest.er1
 
2744
  ac_status=$?
 
2745
  grep -v '^ *+' conftest.er1 >conftest.err
 
2746
  rm -f conftest.er1
 
2747
  cat conftest.err >&5
 
2748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2749
  (exit $ac_status); } &&
 
2750
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2752
  (eval $ac_try) 2>&5
 
2753
  ac_status=$?
 
2754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2755
  (exit $ac_status); }; } &&
 
2756
         { ac_try='test -s conftest.$ac_objext'
 
2757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2758
  (eval $ac_try) 2>&5
 
2759
  ac_status=$?
 
2760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2761
  (exit $ac_status); }; }; then
 
2762
  ac_cv_prog_cc_stdc=$ac_arg
 
2763
break
 
2764
else
 
2765
  echo "$as_me: failed program was:" >&5
 
2766
sed 's/^/| /' conftest.$ac_ext >&5
 
2767
 
 
2768
fi
 
2769
rm -f conftest.err conftest.$ac_objext
 
2770
done
 
2771
rm -f conftest.$ac_ext conftest.$ac_objext
 
2772
CC=$ac_save_CC
 
2773
 
 
2774
fi
 
2775
 
 
2776
case "x$ac_cv_prog_cc_stdc" in
 
2777
  x|xno)
 
2778
    echo "$as_me:$LINENO: result: none needed" >&5
 
2779
echo "${ECHO_T}none needed" >&6 ;;
 
2780
  *)
 
2781
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2782
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2783
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2784
esac
 
2785
 
 
2786
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2787
# in C++ we need to declare it.  In case someone uses the same compiler
 
2788
# for both compiling C and C++ we need to have the C++ compiler decide
 
2789
# the declaration of exit, since it's the most demanding environment.
 
2790
cat >conftest.$ac_ext <<_ACEOF
 
2791
#ifndef __cplusplus
 
2792
  choke me
 
2793
#endif
 
2794
_ACEOF
 
2795
rm -f conftest.$ac_objext
 
2796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2797
  (eval $ac_compile) 2>conftest.er1
 
2798
  ac_status=$?
 
2799
  grep -v '^ *+' conftest.er1 >conftest.err
 
2800
  rm -f conftest.er1
 
2801
  cat conftest.err >&5
 
2802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2803
  (exit $ac_status); } &&
 
2804
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2806
  (eval $ac_try) 2>&5
 
2807
  ac_status=$?
 
2808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2809
  (exit $ac_status); }; } &&
 
2810
         { ac_try='test -s conftest.$ac_objext'
 
2811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2812
  (eval $ac_try) 2>&5
 
2813
  ac_status=$?
 
2814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2815
  (exit $ac_status); }; }; then
 
2816
  for ac_declaration in \
 
2817
   '' \
 
2818
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2819
   'extern "C" void std::exit (int); using std::exit;' \
 
2820
   'extern "C" void exit (int) throw ();' \
 
2821
   'extern "C" void exit (int);' \
 
2822
   'void exit (int);'
 
2823
do
 
2824
  cat >conftest.$ac_ext <<_ACEOF
 
2825
/* confdefs.h.  */
 
2826
_ACEOF
 
2827
cat confdefs.h >>conftest.$ac_ext
 
2828
cat >>conftest.$ac_ext <<_ACEOF
 
2829
/* end confdefs.h.  */
 
2830
$ac_declaration
 
2831
#include <stdlib.h>
 
2832
int
 
2833
main ()
 
2834
{
 
2835
exit (42);
 
2836
  ;
 
2837
  return 0;
 
2838
}
 
2839
_ACEOF
 
2840
rm -f conftest.$ac_objext
 
2841
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2842
  (eval $ac_compile) 2>conftest.er1
 
2843
  ac_status=$?
 
2844
  grep -v '^ *+' conftest.er1 >conftest.err
 
2845
  rm -f conftest.er1
 
2846
  cat conftest.err >&5
 
2847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2848
  (exit $ac_status); } &&
 
2849
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2851
  (eval $ac_try) 2>&5
 
2852
  ac_status=$?
 
2853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2854
  (exit $ac_status); }; } &&
 
2855
         { ac_try='test -s conftest.$ac_objext'
 
2856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2857
  (eval $ac_try) 2>&5
 
2858
  ac_status=$?
 
2859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2860
  (exit $ac_status); }; }; then
 
2861
  :
 
2862
else
 
2863
  echo "$as_me: failed program was:" >&5
 
2864
sed 's/^/| /' conftest.$ac_ext >&5
 
2865
 
 
2866
continue
 
2867
fi
 
2868
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2869
  cat >conftest.$ac_ext <<_ACEOF
 
2870
/* confdefs.h.  */
 
2871
_ACEOF
 
2872
cat confdefs.h >>conftest.$ac_ext
 
2873
cat >>conftest.$ac_ext <<_ACEOF
 
2874
/* end confdefs.h.  */
 
2875
$ac_declaration
 
2876
int
 
2877
main ()
 
2878
{
 
2879
exit (42);
 
2880
  ;
 
2881
  return 0;
 
2882
}
 
2883
_ACEOF
 
2884
rm -f conftest.$ac_objext
 
2885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2886
  (eval $ac_compile) 2>conftest.er1
 
2887
  ac_status=$?
 
2888
  grep -v '^ *+' conftest.er1 >conftest.err
 
2889
  rm -f conftest.er1
 
2890
  cat conftest.err >&5
 
2891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2892
  (exit $ac_status); } &&
 
2893
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2895
  (eval $ac_try) 2>&5
 
2896
  ac_status=$?
 
2897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2898
  (exit $ac_status); }; } &&
 
2899
         { ac_try='test -s conftest.$ac_objext'
 
2900
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2901
  (eval $ac_try) 2>&5
 
2902
  ac_status=$?
 
2903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2904
  (exit $ac_status); }; }; then
 
2905
  break
 
2906
else
 
2907
  echo "$as_me: failed program was:" >&5
 
2908
sed 's/^/| /' conftest.$ac_ext >&5
 
2909
 
 
2910
fi
 
2911
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2912
done
 
2913
rm -f conftest*
 
2914
if test -n "$ac_declaration"; then
 
2915
  echo '#ifdef __cplusplus' >>confdefs.h
 
2916
  echo $ac_declaration      >>confdefs.h
 
2917
  echo '#endif'             >>confdefs.h
 
2918
fi
 
2919
 
 
2920
else
 
2921
  echo "$as_me: failed program was:" >&5
 
2922
sed 's/^/| /' conftest.$ac_ext >&5
 
2923
 
 
2924
fi
 
2925
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2926
ac_ext=c
 
2927
ac_cpp='$CPP $CPPFLAGS'
 
2928
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2929
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2930
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2931
DEPDIR="${am__leading_dot}deps"
 
2932
 
 
2933
          ac_config_commands="$ac_config_commands depfiles"
 
2934
 
 
2935
 
 
2936
am_make=${MAKE-make}
 
2937
cat > confinc << 'END'
 
2938
am__doit:
 
2939
        @echo done
 
2940
.PHONY: am__doit
 
2941
END
 
2942
# If we don't find an include directive, just comment out the code.
 
2943
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2944
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2945
am__include="#"
 
2946
am__quote=
 
2947
_am_result=none
 
2948
# First try GNU make style include.
 
2949
echo "include confinc" > confmf
 
2950
# We grep out `Entering directory' and `Leaving directory'
 
2951
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2952
# In particular we don't look at `^make:' because GNU make might
 
2953
# be invoked under some other name (usually "gmake"), in which
 
2954
# case it prints its new name instead of `make'.
 
2955
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2956
   am__include=include
 
2957
   am__quote=
 
2958
   _am_result=GNU
 
2959
fi
 
2960
# Now try BSD make style include.
 
2961
if test "$am__include" = "#"; then
 
2962
   echo '.include "confinc"' > confmf
 
2963
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2964
      am__include=.include
 
2965
      am__quote="\""
 
2966
      _am_result=BSD
 
2967
   fi
 
2968
fi
 
2969
 
 
2970
 
 
2971
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2972
echo "${ECHO_T}$_am_result" >&6
 
2973
rm -f confinc confmf
 
2974
 
 
2975
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2976
if test "${enable_dependency_tracking+set}" = set; then
 
2977
  enableval="$enable_dependency_tracking"
 
2978
 
 
2979
fi;
 
2980
if test "x$enable_dependency_tracking" != xno; then
 
2981
  am_depcomp="$ac_aux_dir/depcomp"
 
2982
  AMDEPBACKSLASH='\'
 
2983
fi
 
2984
 
 
2985
 
 
2986
if test "x$enable_dependency_tracking" != xno; then
 
2987
  AMDEP_TRUE=
 
2988
  AMDEP_FALSE='#'
 
2989
else
 
2990
  AMDEP_TRUE='#'
 
2991
  AMDEP_FALSE=
 
2992
fi
 
2993
 
 
2994
 
 
2995
 
 
2996
 
 
2997
depcc="$CC"   am_compiler_list=
 
2998
 
 
2999
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3000
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3001
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3002
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3003
else
 
3004
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3005
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3006
  # making bogus files that we don't know about and never remove.  For
 
3007
  # instance it was reported that on HP-UX the gcc test will end up
 
3008
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3009
  # in D'.
 
3010
  mkdir conftest.dir
 
3011
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3012
  # using a relative directory.
 
3013
  cp "$am_depcomp" conftest.dir
 
3014
  cd conftest.dir
 
3015
  # We will build objects and dependencies in a subdirectory because
 
3016
  # it helps to detect inapplicable dependency modes.  For instance
 
3017
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3018
  # side effect of compilation, but ICC will put the dependencies in
 
3019
  # the current directory while Tru64 will put them in the object
 
3020
  # directory.
 
3021
  mkdir sub
 
3022
 
 
3023
  am_cv_CC_dependencies_compiler_type=none
 
3024
  if test "$am_compiler_list" = ""; then
 
3025
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3026
  fi
 
3027
  for depmode in $am_compiler_list; do
 
3028
    # Setup a source with many dependencies, because some compilers
 
3029
    # like to wrap large dependency lists on column 80 (with \), and
 
3030
    # we should not choose a depcomp mode which is confused by this.
 
3031
    #
 
3032
    # We need to recreate these files for each test, as the compiler may
 
3033
    # overwrite some of them when testing with obscure command lines.
 
3034
    # This happens at least with the AIX C compiler.
 
3035
    : > sub/conftest.c
 
3036
    for i in 1 2 3 4 5 6; do
 
3037
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3038
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3039
      # Solaris 8's {/usr,}/bin/sh.
 
3040
      touch sub/conftst$i.h
 
3041
    done
 
3042
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3043
 
 
3044
    case $depmode in
 
3045
    nosideeffect)
 
3046
      # after this tag, mechanisms are not by side-effect, so they'll
 
3047
      # only be used when explicitly requested
 
3048
      if test "x$enable_dependency_tracking" = xyes; then
 
3049
        continue
 
3050
      else
 
3051
        break
 
3052
      fi
 
3053
      ;;
 
3054
    none) break ;;
 
3055
    esac
 
3056
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3057
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3058
    # handle `-M -o', and we need to detect this.
 
3059
    if depmode=$depmode \
 
3060
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3061
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3062
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3063
         >/dev/null 2>conftest.err &&
 
3064
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3065
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3066
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3067
      # icc doesn't choke on unknown options, it will just issue warnings
 
3068
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3069
      # that says an option was ignored or not supported.
 
3070
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3071
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3072
      # The diagnosis changed in icc 8.0:
 
3073
      #   icc: Command line remark: option '-MP' not supported
 
3074
      if (grep 'ignoring option' conftest.err ||
 
3075
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3076
        am_cv_CC_dependencies_compiler_type=$depmode
 
3077
        break
 
3078
      fi
 
3079
    fi
 
3080
  done
 
3081
 
 
3082
  cd ..
 
3083
  rm -rf conftest.dir
 
3084
else
 
3085
  am_cv_CC_dependencies_compiler_type=none
 
3086
fi
 
3087
 
 
3088
fi
 
3089
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3090
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3091
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3092
 
 
3093
 
 
3094
 
 
3095
if
 
3096
  test "x$enable_dependency_tracking" != xno \
 
3097
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3098
  am__fastdepCC_TRUE=
 
3099
  am__fastdepCC_FALSE='#'
 
3100
else
 
3101
  am__fastdepCC_TRUE='#'
 
3102
  am__fastdepCC_FALSE=
 
3103
fi
 
3104
 
 
3105
 
 
3106
# Check whether --enable-shared or --disable-shared was given.
 
3107
if test "${enable_shared+set}" = set; then
 
3108
  enableval="$enable_shared"
 
3109
  p=${PACKAGE-default}
 
3110
    case $enableval in
 
3111
    yes) enable_shared=yes ;;
 
3112
    no) enable_shared=no ;;
 
3113
    *)
 
3114
      enable_shared=no
 
3115
      # Look at the argument we got.  We use all the common list separators.
 
3116
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3117
      for pkg in $enableval; do
 
3118
        IFS="$lt_save_ifs"
 
3119
        if test "X$pkg" = "X$p"; then
 
3120
          enable_shared=yes
 
3121
        fi
 
3122
      done
 
3123
      IFS="$lt_save_ifs"
 
3124
      ;;
 
3125
    esac
 
3126
else
 
3127
  enable_shared=yes
 
3128
fi;
 
3129
 
 
3130
# Check whether --enable-static or --disable-static was given.
 
3131
if test "${enable_static+set}" = set; then
 
3132
  enableval="$enable_static"
 
3133
  p=${PACKAGE-default}
 
3134
    case $enableval in
 
3135
    yes) enable_static=yes ;;
 
3136
    no) enable_static=no ;;
 
3137
    *)
 
3138
     enable_static=no
 
3139
      # Look at the argument we got.  We use all the common list separators.
 
3140
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3141
      for pkg in $enableval; do
 
3142
        IFS="$lt_save_ifs"
 
3143
        if test "X$pkg" = "X$p"; then
 
3144
          enable_static=yes
 
3145
        fi
 
3146
      done
 
3147
      IFS="$lt_save_ifs"
 
3148
      ;;
 
3149
    esac
 
3150
else
 
3151
  enable_static=yes
 
3152
fi;
 
3153
 
 
3154
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3155
if test "${enable_fast_install+set}" = set; then
 
3156
  enableval="$enable_fast_install"
 
3157
  p=${PACKAGE-default}
 
3158
    case $enableval in
 
3159
    yes) enable_fast_install=yes ;;
 
3160
    no) enable_fast_install=no ;;
 
3161
    *)
 
3162
      enable_fast_install=no
 
3163
      # Look at the argument we got.  We use all the common list separators.
 
3164
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3165
      for pkg in $enableval; do
 
3166
        IFS="$lt_save_ifs"
 
3167
        if test "X$pkg" = "X$p"; then
 
3168
          enable_fast_install=yes
 
3169
        fi
 
3170
      done
 
3171
      IFS="$lt_save_ifs"
 
3172
      ;;
 
3173
    esac
 
3174
else
 
3175
  enable_fast_install=yes
 
3176
fi;
 
3177
 
 
3178
# Make sure we can run config.sub.
 
3179
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
3180
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
3181
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
3182
   { (exit 1); exit 1; }; }
 
3183
 
 
3184
echo "$as_me:$LINENO: checking build system type" >&5
 
3185
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
3186
if test "${ac_cv_build+set}" = set; then
 
3187
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3188
else
 
3189
  ac_cv_build_alias=$build_alias
 
3190
test -z "$ac_cv_build_alias" &&
 
3191
  ac_cv_build_alias=`$ac_config_guess`
 
3192
test -z "$ac_cv_build_alias" &&
 
3193
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3194
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3195
   { (exit 1); exit 1; }; }
 
3196
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
3197
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
3198
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
3199
   { (exit 1); exit 1; }; }
 
3200
 
 
3201
fi
 
3202
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3203
echo "${ECHO_T}$ac_cv_build" >&6
 
3204
build=$ac_cv_build
 
3205
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3206
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3207
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3208
 
 
3209
 
 
3210
echo "$as_me:$LINENO: checking host system type" >&5
 
3211
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
3212
if test "${ac_cv_host+set}" = set; then
 
3213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3214
else
 
3215
  ac_cv_host_alias=$host_alias
 
3216
test -z "$ac_cv_host_alias" &&
 
3217
  ac_cv_host_alias=$ac_cv_build_alias
 
3218
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
3219
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
3220
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
3221
   { (exit 1); exit 1; }; }
 
3222
 
 
3223
fi
 
3224
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3225
echo "${ECHO_T}$ac_cv_host" >&6
 
3226
host=$ac_cv_host
 
3227
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3228
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3229
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3230
 
 
3231
 
 
3232
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3233
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3234
if test "${lt_cv_path_SED+set}" = set; then
 
3235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3236
else
 
3237
  # Loop through the user's path and test for sed and gsed.
 
3238
# Then use that list of sed's as ones to test for truncation.
 
3239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3240
for as_dir in $PATH
 
3241
do
 
3242
  IFS=$as_save_IFS
 
3243
  test -z "$as_dir" && as_dir=.
 
3244
  for lt_ac_prog in sed gsed; do
 
3245
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3246
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3247
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3248
      fi
 
3249
    done
 
3250
  done
 
3251
done
 
3252
lt_ac_max=0
 
3253
lt_ac_count=0
 
3254
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3255
# along with /bin/sed that truncates output.
 
3256
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3257
  test ! -f $lt_ac_sed && break
 
3258
  cat /dev/null > conftest.in
 
3259
  lt_ac_count=0
 
3260
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3261
  # Check for GNU sed and select it if it is found.
 
3262
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3263
    lt_cv_path_SED=$lt_ac_sed
 
3264
    break
 
3265
  fi
 
3266
  while true; do
 
3267
    cat conftest.in conftest.in >conftest.tmp
 
3268
    mv conftest.tmp conftest.in
 
3269
    cp conftest.in conftest.nl
 
3270
    echo >>conftest.nl
 
3271
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3272
    cmp -s conftest.out conftest.nl || break
 
3273
    # 10000 chars as input seems more than enough
 
3274
    test $lt_ac_count -gt 10 && break
 
3275
    lt_ac_count=`expr $lt_ac_count + 1`
 
3276
    if test $lt_ac_count -gt $lt_ac_max; then
 
3277
      lt_ac_max=$lt_ac_count
 
3278
      lt_cv_path_SED=$lt_ac_sed
 
3279
    fi
 
3280
  done
 
3281
done
 
3282
SED=$lt_cv_path_SED
 
3283
 
 
3284
fi
 
3285
 
 
3286
echo "$as_me:$LINENO: result: $SED" >&5
 
3287
echo "${ECHO_T}$SED" >&6
 
3288
 
 
3289
echo "$as_me:$LINENO: checking for egrep" >&5
 
3290
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3291
if test "${ac_cv_prog_egrep+set}" = set; then
 
3292
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3293
else
 
3294
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3295
    then ac_cv_prog_egrep='grep -E'
 
3296
    else ac_cv_prog_egrep='egrep'
 
3297
    fi
 
3298
fi
 
3299
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3300
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3301
 EGREP=$ac_cv_prog_egrep
 
3302
 
 
3303
 
 
3304
 
 
3305
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3306
if test "${with_gnu_ld+set}" = set; then
 
3307
  withval="$with_gnu_ld"
 
3308
  test "$withval" = no || with_gnu_ld=yes
 
3309
else
 
3310
  with_gnu_ld=no
 
3311
fi;
 
3312
ac_prog=ld
 
3313
if test "$GCC" = yes; then
 
3314
  # Check if gcc -print-prog-name=ld gives a path.
 
3315
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3316
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3317
  case $host in
 
3318
  *-*-mingw*)
 
3319
    # gcc leaves a trailing carriage return which upsets mingw
 
3320
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3321
  *)
 
3322
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3323
  esac
 
3324
  case $ac_prog in
 
3325
    # Accept absolute paths.
 
3326
    [\\/]* | ?:[\\/]*)
 
3327
      re_direlt='/[^/][^/]*/\.\./'
 
3328
      # Canonicalize the pathname of ld
 
3329
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3330
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3331
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3332
      done
 
3333
      test -z "$LD" && LD="$ac_prog"
 
3334
      ;;
 
3335
  "")
 
3336
    # If it fails, then pretend we aren't using GCC.
 
3337
    ac_prog=ld
 
3338
    ;;
 
3339
  *)
 
3340
    # If it is relative, then search for the first ld in PATH.
 
3341
    with_gnu_ld=unknown
 
3342
    ;;
 
3343
  esac
 
3344
elif test "$with_gnu_ld" = yes; then
 
3345
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3346
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3347
else
 
3348
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3349
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3350
fi
 
3351
if test "${lt_cv_path_LD+set}" = set; then
 
3352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3353
else
 
3354
  if test -z "$LD"; then
 
3355
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3356
  for ac_dir in $PATH; do
 
3357
    IFS="$lt_save_ifs"
 
3358
    test -z "$ac_dir" && ac_dir=.
 
3359
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3360
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3361
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3362
      # but apparently some GNU ld's only accept -v.
 
3363
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3364
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3365
      *GNU* | *'with BFD'*)
 
3366
        test "$with_gnu_ld" != no && break
 
3367
        ;;
 
3368
      *)
 
3369
        test "$with_gnu_ld" != yes && break
 
3370
        ;;
 
3371
      esac
 
3372
    fi
 
3373
  done
 
3374
  IFS="$lt_save_ifs"
 
3375
else
 
3376
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3377
fi
 
3378
fi
 
3379
 
 
3380
LD="$lt_cv_path_LD"
 
3381
if test -n "$LD"; then
 
3382
  echo "$as_me:$LINENO: result: $LD" >&5
 
3383
echo "${ECHO_T}$LD" >&6
 
3384
else
 
3385
  echo "$as_me:$LINENO: result: no" >&5
 
3386
echo "${ECHO_T}no" >&6
 
3387
fi
 
3388
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3389
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3390
   { (exit 1); exit 1; }; }
 
3391
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3392
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3393
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3394
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3395
else
 
3396
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3397
case `$LD -v 2>&1 </dev/null` in
 
3398
*GNU* | *'with BFD'*)
 
3399
  lt_cv_prog_gnu_ld=yes
 
3400
  ;;
 
3401
*)
 
3402
  lt_cv_prog_gnu_ld=no
 
3403
  ;;
 
3404
esac
 
3405
fi
 
3406
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3407
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3408
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3409
 
 
3410
 
 
3411
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3412
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3413
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3415
else
 
3416
  lt_cv_ld_reload_flag='-r'
 
3417
fi
 
3418
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3419
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3420
reload_flag=$lt_cv_ld_reload_flag
 
3421
case $reload_flag in
 
3422
"" | " "*) ;;
 
3423
*) reload_flag=" $reload_flag" ;;
 
3424
esac
 
3425
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3426
 
 
3427
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3428
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3429
if test "${lt_cv_path_NM+set}" = set; then
 
3430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3431
else
 
3432
  if test -n "$NM"; then
 
3433
  # Let the user override the test.
 
3434
  lt_cv_path_NM="$NM"
 
3435
else
 
3436
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3437
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3438
    IFS="$lt_save_ifs"
 
3439
    test -z "$ac_dir" && ac_dir=.
 
3440
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3441
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3442
      # Check to see if the nm accepts a BSD-compat flag.
 
3443
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3444
      #   nm: unknown option "B" ignored
 
3445
      # Tru64's nm complains that /dev/null is an invalid object file
 
3446
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3447
      */dev/null* | *'Invalid file or object type'*)
 
3448
        lt_cv_path_NM="$tmp_nm -B"
 
3449
        break
 
3450
        ;;
 
3451
      *)
 
3452
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3453
        */dev/null*)
 
3454
          lt_cv_path_NM="$tmp_nm -p"
 
3455
          break
 
3456
          ;;
 
3457
        *)
 
3458
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3459
          continue # so that we can try to find one that supports BSD flags
 
3460
          ;;
 
3461
        esac
 
3462
      esac
 
3463
    fi
 
3464
  done
 
3465
  IFS="$lt_save_ifs"
 
3466
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3467
fi
 
3468
fi
 
3469
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3470
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3471
NM="$lt_cv_path_NM"
 
3472
 
 
3473
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3474
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3475
LN_S=$as_ln_s
 
3476
if test "$LN_S" = "ln -s"; then
 
3477
  echo "$as_me:$LINENO: result: yes" >&5
 
3478
echo "${ECHO_T}yes" >&6
 
3479
else
 
3480
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3481
echo "${ECHO_T}no, using $LN_S" >&6
 
3482
fi
 
3483
 
 
3484
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3485
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3486
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3488
else
 
3489
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3490
lt_cv_file_magic_test_file=
 
3491
lt_cv_deplibs_check_method='unknown'
 
3492
# Need to set the preceding variable on all platforms that support
 
3493
# interlibrary dependencies.
 
3494
# 'none' -- dependencies not supported.
 
3495
# `unknown' -- same as none, but documents that we really don't know.
 
3496
# 'pass_all' -- all dependencies passed with no checks.
 
3497
# 'test_compile' -- check by making test program.
 
3498
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3499
# which responds to the $file_magic_cmd with a given extended regex.
 
3500
# If you have `file' or equivalent on your system and you're not sure
 
3501
# whether `pass_all' will *always* work, you probably want this one.
 
3502
 
 
3503
case $host_os in
 
3504
aix4* | aix5*)
 
3505
  lt_cv_deplibs_check_method=pass_all
 
3506
  ;;
 
3507
 
 
3508
beos*)
 
3509
  lt_cv_deplibs_check_method=pass_all
 
3510
  ;;
 
3511
 
 
3512
bsdi4*)
 
3513
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3514
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3515
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3516
  ;;
 
3517
 
 
3518
cygwin*)
 
3519
  # func_win32_libid is a shell function defined in ltmain.sh
 
3520
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3521
  lt_cv_file_magic_cmd='func_win32_libid'
 
3522
  ;;
 
3523
 
 
3524
mingw* | pw32*)
 
3525
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3526
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3527
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3528
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3529
  ;;
 
3530
 
 
3531
darwin* | rhapsody*)
 
3532
  lt_cv_deplibs_check_method=pass_all
 
3533
  ;;
 
3534
 
 
3535
freebsd* | kfreebsd*-gnu)
 
3536
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3537
    case $host_cpu in
 
3538
    i*86 )
 
3539
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3540
      # Let's accept both of them until this is cleared up.
 
3541
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3542
      lt_cv_file_magic_cmd=/usr/bin/file
 
3543
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3544
      ;;
 
3545
    esac
 
3546
  else
 
3547
    lt_cv_deplibs_check_method=pass_all
 
3548
  fi
 
3549
  ;;
 
3550
 
 
3551
gnu*)
 
3552
  lt_cv_deplibs_check_method=pass_all
 
3553
  ;;
 
3554
 
 
3555
hpux10.20* | hpux11*)
 
3556
  lt_cv_file_magic_cmd=/usr/bin/file
 
3557
  case "$host_cpu" in
 
3558
  ia64*)
 
3559
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3560
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3561
    ;;
 
3562
  hppa*64*)
 
3563
    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]'
 
3564
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3565
    ;;
 
3566
  *)
 
3567
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3568
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3569
    ;;
 
3570
  esac
 
3571
  ;;
 
3572
 
 
3573
irix5* | irix6* | nonstopux*)
 
3574
  case $LD in
 
3575
  *-32|*"-32 ") libmagic=32-bit;;
 
3576
  *-n32|*"-n32 ") libmagic=N32;;
 
3577
  *-64|*"-64 ") libmagic=64-bit;;
 
3578
  *) libmagic=never-match;;
 
3579
  esac
 
3580
  lt_cv_deplibs_check_method=pass_all
 
3581
  ;;
 
3582
 
 
3583
# This must be Linux ELF.
 
3584
linux*)
 
3585
  lt_cv_deplibs_check_method=pass_all
 
3586
  ;;
 
3587
 
 
3588
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3589
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3590
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3591
  else
 
3592
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3593
  fi
 
3594
  ;;
 
3595
 
 
3596
newos6*)
 
3597
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3598
  lt_cv_file_magic_cmd=/usr/bin/file
 
3599
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3600
  ;;
 
3601
 
 
3602
nto-qnx*)
 
3603
  lt_cv_deplibs_check_method=unknown
 
3604
  ;;
 
3605
 
 
3606
openbsd*)
 
3607
  lt_cv_file_magic_cmd=/usr/bin/file
 
3608
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3609
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3610
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3611
  else
 
3612
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3613
  fi
 
3614
  ;;
 
3615
 
 
3616
osf3* | osf4* | osf5*)
 
3617
  lt_cv_deplibs_check_method=pass_all
 
3618
  ;;
 
3619
 
 
3620
sco3.2v5*)
 
3621
  lt_cv_deplibs_check_method=pass_all
 
3622
  ;;
 
3623
 
 
3624
solaris*)
 
3625
  lt_cv_deplibs_check_method=pass_all
 
3626
  ;;
 
3627
 
 
3628
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3629
  case $host_vendor in
 
3630
  motorola)
 
3631
    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]'
 
3632
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3633
    ;;
 
3634
  ncr)
 
3635
    lt_cv_deplibs_check_method=pass_all
 
3636
    ;;
 
3637
  sequent)
 
3638
    lt_cv_file_magic_cmd='/bin/file'
 
3639
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3640
    ;;
 
3641
  sni)
 
3642
    lt_cv_file_magic_cmd='/bin/file'
 
3643
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3644
    lt_cv_file_magic_test_file=/lib/libc.so
 
3645
    ;;
 
3646
  siemens)
 
3647
    lt_cv_deplibs_check_method=pass_all
 
3648
    ;;
 
3649
  esac
 
3650
  ;;
 
3651
 
 
3652
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3653
  lt_cv_deplibs_check_method=pass_all
 
3654
  ;;
 
3655
esac
 
3656
 
 
3657
fi
 
3658
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3659
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3660
file_magic_cmd=$lt_cv_file_magic_cmd
 
3661
deplibs_check_method=$lt_cv_deplibs_check_method
 
3662
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3663
 
 
3664
 
 
3665
 
 
3666
 
 
3667
# If no C compiler was specified, use CC.
 
3668
LTCC=${LTCC-"$CC"}
 
3669
 
 
3670
# Allow CC to be a program name with arguments.
 
3671
compiler=$CC
 
3672
 
 
3673
 
 
3674
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3675
if test "${enable_libtool_lock+set}" = set; then
 
3676
  enableval="$enable_libtool_lock"
 
3677
 
 
3678
fi;
 
3679
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3680
 
 
3681
# Some flags need to be propagated to the compiler or linker for good
 
3682
# libtool support.
 
3683
case $host in
 
3684
ia64-*-hpux*)
 
3685
  # Find out which ABI we are using.
 
3686
  echo 'int i;' > conftest.$ac_ext
 
3687
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3688
  (eval $ac_compile) 2>&5
 
3689
  ac_status=$?
 
3690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3691
  (exit $ac_status); }; then
 
3692
    case `/usr/bin/file conftest.$ac_objext` in
 
3693
    *ELF-32*)
 
3694
      HPUX_IA64_MODE="32"
 
3695
      ;;
 
3696
    *ELF-64*)
 
3697
      HPUX_IA64_MODE="64"
 
3698
      ;;
 
3699
    esac
 
3700
  fi
 
3701
  rm -rf conftest*
 
3702
  ;;
 
3703
*-*-irix6*)
 
3704
  # Find out which ABI we are using.
 
3705
  echo '#line 3705 "configure"' > conftest.$ac_ext
 
3706
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3707
  (eval $ac_compile) 2>&5
 
3708
  ac_status=$?
 
3709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3710
  (exit $ac_status); }; then
 
3711
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3712
    case `/usr/bin/file conftest.$ac_objext` in
 
3713
    *32-bit*)
 
3714
      LD="${LD-ld} -melf32bsmip"
 
3715
      ;;
 
3716
    *N32*)
 
3717
      LD="${LD-ld} -melf32bmipn32"
 
3718
      ;;
 
3719
    *64-bit*)
 
3720
      LD="${LD-ld} -melf64bmip"
 
3721
      ;;
 
3722
    esac
 
3723
   else
 
3724
    case `/usr/bin/file conftest.$ac_objext` in
 
3725
    *32-bit*)
 
3726
      LD="${LD-ld} -32"
 
3727
      ;;
 
3728
    *N32*)
 
3729
      LD="${LD-ld} -n32"
 
3730
      ;;
 
3731
    *64-bit*)
 
3732
      LD="${LD-ld} -64"
 
3733
      ;;
 
3734
    esac
 
3735
   fi
 
3736
  fi
 
3737
  rm -rf conftest*
 
3738
  ;;
 
3739
 
 
3740
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3741
  # Find out which ABI we are using.
 
3742
  echo 'int i;' > conftest.$ac_ext
 
3743
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3744
  (eval $ac_compile) 2>&5
 
3745
  ac_status=$?
 
3746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3747
  (exit $ac_status); }; then
 
3748
    case "`/usr/bin/file conftest.o`" in
 
3749
    *32-bit*)
 
3750
      case $host in
 
3751
        x86_64-*linux*)
 
3752
          LD="${LD-ld} -m elf_i386"
 
3753
          ;;
 
3754
        ppc64-*linux*|powerpc64-*linux*)
 
3755
          LD="${LD-ld} -m elf32ppclinux"
 
3756
          ;;
 
3757
        s390x-*linux*)
 
3758
          LD="${LD-ld} -m elf_s390"
 
3759
          ;;
 
3760
        sparc64-*linux*)
 
3761
          LD="${LD-ld} -m elf32_sparc"
 
3762
          ;;
 
3763
      esac
 
3764
      ;;
 
3765
    *64-bit*)
 
3766
      case $host in
 
3767
        x86_64-*linux*)
 
3768
          LD="${LD-ld} -m elf_x86_64"
 
3769
          ;;
 
3770
        ppc*-*linux*|powerpc*-*linux*)
 
3771
          LD="${LD-ld} -m elf64ppc"
 
3772
          ;;
 
3773
        s390*-*linux*)
 
3774
          LD="${LD-ld} -m elf64_s390"
 
3775
          ;;
 
3776
        sparc*-*linux*)
 
3777
          LD="${LD-ld} -m elf64_sparc"
 
3778
          ;;
 
3779
      esac
 
3780
      ;;
 
3781
    esac
 
3782
  fi
 
3783
  rm -rf conftest*
 
3784
  ;;
 
3785
 
 
3786
*-*-sco3.2v5*)
 
3787
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3788
  SAVE_CFLAGS="$CFLAGS"
 
3789
  CFLAGS="$CFLAGS -belf"
 
3790
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3791
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3792
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3794
else
 
3795
  ac_ext=c
 
3796
ac_cpp='$CPP $CPPFLAGS'
 
3797
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3798
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3799
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3800
 
 
3801
     cat >conftest.$ac_ext <<_ACEOF
 
3802
/* confdefs.h.  */
 
3803
_ACEOF
 
3804
cat confdefs.h >>conftest.$ac_ext
 
3805
cat >>conftest.$ac_ext <<_ACEOF
 
3806
/* end confdefs.h.  */
 
3807
 
 
3808
int
 
3809
main ()
 
3810
{
 
3811
 
 
3812
  ;
 
3813
  return 0;
 
3814
}
 
3815
_ACEOF
 
3816
rm -f conftest.$ac_objext conftest$ac_exeext
 
3817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3818
  (eval $ac_link) 2>conftest.er1
 
3819
  ac_status=$?
 
3820
  grep -v '^ *+' conftest.er1 >conftest.err
 
3821
  rm -f conftest.er1
 
3822
  cat conftest.err >&5
 
3823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3824
  (exit $ac_status); } &&
 
3825
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3827
  (eval $ac_try) 2>&5
 
3828
  ac_status=$?
 
3829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3830
  (exit $ac_status); }; } &&
 
3831
         { ac_try='test -s conftest$ac_exeext'
 
3832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3833
  (eval $ac_try) 2>&5
 
3834
  ac_status=$?
 
3835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3836
  (exit $ac_status); }; }; then
 
3837
  lt_cv_cc_needs_belf=yes
 
3838
else
 
3839
  echo "$as_me: failed program was:" >&5
 
3840
sed 's/^/| /' conftest.$ac_ext >&5
 
3841
 
 
3842
lt_cv_cc_needs_belf=no
 
3843
fi
 
3844
rm -f conftest.err conftest.$ac_objext \
 
3845
      conftest$ac_exeext conftest.$ac_ext
 
3846
     ac_ext=c
 
3847
ac_cpp='$CPP $CPPFLAGS'
 
3848
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3849
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3850
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3851
 
 
3852
fi
 
3853
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3854
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3855
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3856
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3857
    CFLAGS="$SAVE_CFLAGS"
 
3858
  fi
 
3859
  ;;
 
3860
 
 
3861
esac
 
3862
 
 
3863
need_locks="$enable_libtool_lock"
 
3864
 
 
3865
 
 
3866
ac_ext=c
 
3867
ac_cpp='$CPP $CPPFLAGS'
 
3868
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3869
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3870
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3871
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3872
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3873
# On Suns, sometimes $CPP names a directory.
 
3874
if test -n "$CPP" && test -d "$CPP"; then
 
3875
  CPP=
 
3876
fi
 
3877
if test -z "$CPP"; then
 
3878
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3880
else
 
3881
      # Double quotes because CPP needs to be expanded
 
3882
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3883
    do
 
3884
      ac_preproc_ok=false
 
3885
for ac_c_preproc_warn_flag in '' yes
 
3886
do
 
3887
  # Use a header file that comes with gcc, so configuring glibc
 
3888
  # with a fresh cross-compiler works.
 
3889
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3890
  # <limits.h> exists even on freestanding compilers.
 
3891
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3892
  # not just through cpp. "Syntax error" is here to catch this case.
 
3893
  cat >conftest.$ac_ext <<_ACEOF
 
3894
/* confdefs.h.  */
 
3895
_ACEOF
 
3896
cat confdefs.h >>conftest.$ac_ext
 
3897
cat >>conftest.$ac_ext <<_ACEOF
 
3898
/* end confdefs.h.  */
 
3899
#ifdef __STDC__
 
3900
# include <limits.h>
 
3901
#else
 
3902
# include <assert.h>
 
3903
#endif
 
3904
                     Syntax error
 
3905
_ACEOF
 
3906
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3907
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3908
  ac_status=$?
 
3909
  grep -v '^ *+' conftest.er1 >conftest.err
 
3910
  rm -f conftest.er1
 
3911
  cat conftest.err >&5
 
3912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3913
  (exit $ac_status); } >/dev/null; then
 
3914
  if test -s conftest.err; then
 
3915
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3916
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3917
  else
 
3918
    ac_cpp_err=
 
3919
  fi
 
3920
else
 
3921
  ac_cpp_err=yes
 
3922
fi
 
3923
if test -z "$ac_cpp_err"; then
 
3924
  :
 
3925
else
 
3926
  echo "$as_me: failed program was:" >&5
 
3927
sed 's/^/| /' conftest.$ac_ext >&5
 
3928
 
 
3929
  # Broken: fails on valid input.
 
3930
continue
 
3931
fi
 
3932
rm -f conftest.err conftest.$ac_ext
 
3933
 
 
3934
  # OK, works on sane cases.  Now check whether non-existent headers
 
3935
  # can be detected and how.
 
3936
  cat >conftest.$ac_ext <<_ACEOF
 
3937
/* confdefs.h.  */
 
3938
_ACEOF
 
3939
cat confdefs.h >>conftest.$ac_ext
 
3940
cat >>conftest.$ac_ext <<_ACEOF
 
3941
/* end confdefs.h.  */
 
3942
#include <ac_nonexistent.h>
 
3943
_ACEOF
 
3944
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3945
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3946
  ac_status=$?
 
3947
  grep -v '^ *+' conftest.er1 >conftest.err
 
3948
  rm -f conftest.er1
 
3949
  cat conftest.err >&5
 
3950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3951
  (exit $ac_status); } >/dev/null; then
 
3952
  if test -s conftest.err; then
 
3953
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3954
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3955
  else
 
3956
    ac_cpp_err=
 
3957
  fi
 
3958
else
 
3959
  ac_cpp_err=yes
 
3960
fi
 
3961
if test -z "$ac_cpp_err"; then
 
3962
  # Broken: success on invalid input.
 
3963
continue
 
3964
else
 
3965
  echo "$as_me: failed program was:" >&5
 
3966
sed 's/^/| /' conftest.$ac_ext >&5
 
3967
 
 
3968
  # Passes both tests.
 
3969
ac_preproc_ok=:
 
3970
break
 
3971
fi
 
3972
rm -f conftest.err conftest.$ac_ext
 
3973
 
 
3974
done
 
3975
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3976
rm -f conftest.err conftest.$ac_ext
 
3977
if $ac_preproc_ok; then
 
3978
  break
 
3979
fi
 
3980
 
 
3981
    done
 
3982
    ac_cv_prog_CPP=$CPP
 
3983
 
 
3984
fi
 
3985
  CPP=$ac_cv_prog_CPP
 
3986
else
 
3987
  ac_cv_prog_CPP=$CPP
 
3988
fi
 
3989
echo "$as_me:$LINENO: result: $CPP" >&5
 
3990
echo "${ECHO_T}$CPP" >&6
 
3991
ac_preproc_ok=false
 
3992
for ac_c_preproc_warn_flag in '' yes
 
3993
do
 
3994
  # Use a header file that comes with gcc, so configuring glibc
 
3995
  # with a fresh cross-compiler works.
 
3996
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3997
  # <limits.h> exists even on freestanding compilers.
 
3998
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3999
  # not just through cpp. "Syntax error" is here to catch this case.
 
4000
  cat >conftest.$ac_ext <<_ACEOF
 
4001
/* confdefs.h.  */
 
4002
_ACEOF
 
4003
cat confdefs.h >>conftest.$ac_ext
 
4004
cat >>conftest.$ac_ext <<_ACEOF
 
4005
/* end confdefs.h.  */
 
4006
#ifdef __STDC__
 
4007
# include <limits.h>
 
4008
#else
 
4009
# include <assert.h>
 
4010
#endif
 
4011
                     Syntax error
 
4012
_ACEOF
 
4013
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4014
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4015
  ac_status=$?
 
4016
  grep -v '^ *+' conftest.er1 >conftest.err
 
4017
  rm -f conftest.er1
 
4018
  cat conftest.err >&5
 
4019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4020
  (exit $ac_status); } >/dev/null; then
 
4021
  if test -s conftest.err; then
 
4022
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4023
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4024
  else
 
4025
    ac_cpp_err=
 
4026
  fi
 
4027
else
 
4028
  ac_cpp_err=yes
 
4029
fi
 
4030
if test -z "$ac_cpp_err"; then
 
4031
  :
 
4032
else
 
4033
  echo "$as_me: failed program was:" >&5
 
4034
sed 's/^/| /' conftest.$ac_ext >&5
 
4035
 
 
4036
  # Broken: fails on valid input.
 
4037
continue
 
4038
fi
 
4039
rm -f conftest.err conftest.$ac_ext
 
4040
 
 
4041
  # OK, works on sane cases.  Now check whether non-existent headers
 
4042
  # can be detected and how.
 
4043
  cat >conftest.$ac_ext <<_ACEOF
 
4044
/* confdefs.h.  */
 
4045
_ACEOF
 
4046
cat confdefs.h >>conftest.$ac_ext
 
4047
cat >>conftest.$ac_ext <<_ACEOF
 
4048
/* end confdefs.h.  */
 
4049
#include <ac_nonexistent.h>
 
4050
_ACEOF
 
4051
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4052
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4053
  ac_status=$?
 
4054
  grep -v '^ *+' conftest.er1 >conftest.err
 
4055
  rm -f conftest.er1
 
4056
  cat conftest.err >&5
 
4057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4058
  (exit $ac_status); } >/dev/null; then
 
4059
  if test -s conftest.err; then
 
4060
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4061
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4062
  else
 
4063
    ac_cpp_err=
 
4064
  fi
 
4065
else
 
4066
  ac_cpp_err=yes
 
4067
fi
 
4068
if test -z "$ac_cpp_err"; then
 
4069
  # Broken: success on invalid input.
 
4070
continue
 
4071
else
 
4072
  echo "$as_me: failed program was:" >&5
 
4073
sed 's/^/| /' conftest.$ac_ext >&5
 
4074
 
 
4075
  # Passes both tests.
 
4076
ac_preproc_ok=:
 
4077
break
 
4078
fi
 
4079
rm -f conftest.err conftest.$ac_ext
 
4080
 
 
4081
done
 
4082
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4083
rm -f conftest.err conftest.$ac_ext
 
4084
if $ac_preproc_ok; then
 
4085
  :
 
4086
else
 
4087
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4088
See \`config.log' for more details." >&5
 
4089
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4090
See \`config.log' for more details." >&2;}
 
4091
   { (exit 1); exit 1; }; }
 
4092
fi
 
4093
 
 
4094
ac_ext=c
 
4095
ac_cpp='$CPP $CPPFLAGS'
 
4096
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4097
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4098
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4099
 
 
4100
 
 
4101
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4102
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4103
if test "${ac_cv_header_stdc+set}" = set; then
 
4104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4105
else
 
4106
  cat >conftest.$ac_ext <<_ACEOF
 
4107
/* confdefs.h.  */
 
4108
_ACEOF
 
4109
cat confdefs.h >>conftest.$ac_ext
 
4110
cat >>conftest.$ac_ext <<_ACEOF
 
4111
/* end confdefs.h.  */
 
4112
#include <stdlib.h>
 
4113
#include <stdarg.h>
 
4114
#include <string.h>
 
4115
#include <float.h>
 
4116
 
 
4117
int
 
4118
main ()
 
4119
{
 
4120
 
 
4121
  ;
 
4122
  return 0;
 
4123
}
 
4124
_ACEOF
 
4125
rm -f conftest.$ac_objext
 
4126
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4127
  (eval $ac_compile) 2>conftest.er1
 
4128
  ac_status=$?
 
4129
  grep -v '^ *+' conftest.er1 >conftest.err
 
4130
  rm -f conftest.er1
 
4131
  cat conftest.err >&5
 
4132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4133
  (exit $ac_status); } &&
 
4134
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4135
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4136
  (eval $ac_try) 2>&5
 
4137
  ac_status=$?
 
4138
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4139
  (exit $ac_status); }; } &&
 
4140
         { ac_try='test -s conftest.$ac_objext'
 
4141
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4142
  (eval $ac_try) 2>&5
 
4143
  ac_status=$?
 
4144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4145
  (exit $ac_status); }; }; then
 
4146
  ac_cv_header_stdc=yes
 
4147
else
 
4148
  echo "$as_me: failed program was:" >&5
 
4149
sed 's/^/| /' conftest.$ac_ext >&5
 
4150
 
 
4151
ac_cv_header_stdc=no
 
4152
fi
 
4153
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4154
 
 
4155
if test $ac_cv_header_stdc = yes; then
 
4156
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4157
  cat >conftest.$ac_ext <<_ACEOF
 
4158
/* confdefs.h.  */
 
4159
_ACEOF
 
4160
cat confdefs.h >>conftest.$ac_ext
 
4161
cat >>conftest.$ac_ext <<_ACEOF
 
4162
/* end confdefs.h.  */
 
4163
#include <string.h>
 
4164
 
 
4165
_ACEOF
 
4166
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4167
  $EGREP "memchr" >/dev/null 2>&1; then
 
4168
  :
 
4169
else
 
4170
  ac_cv_header_stdc=no
 
4171
fi
 
4172
rm -f conftest*
 
4173
 
 
4174
fi
 
4175
 
 
4176
if test $ac_cv_header_stdc = yes; then
 
4177
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4178
  cat >conftest.$ac_ext <<_ACEOF
 
4179
/* confdefs.h.  */
 
4180
_ACEOF
 
4181
cat confdefs.h >>conftest.$ac_ext
 
4182
cat >>conftest.$ac_ext <<_ACEOF
 
4183
/* end confdefs.h.  */
 
4184
#include <stdlib.h>
 
4185
 
 
4186
_ACEOF
 
4187
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4188
  $EGREP "free" >/dev/null 2>&1; then
 
4189
  :
 
4190
else
 
4191
  ac_cv_header_stdc=no
 
4192
fi
 
4193
rm -f conftest*
 
4194
 
 
4195
fi
 
4196
 
 
4197
if test $ac_cv_header_stdc = yes; then
 
4198
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4199
  if test "$cross_compiling" = yes; then
 
4200
  :
 
4201
else
 
4202
  cat >conftest.$ac_ext <<_ACEOF
 
4203
/* confdefs.h.  */
 
4204
_ACEOF
 
4205
cat confdefs.h >>conftest.$ac_ext
 
4206
cat >>conftest.$ac_ext <<_ACEOF
 
4207
/* end confdefs.h.  */
 
4208
#include <ctype.h>
 
4209
#if ((' ' & 0x0FF) == 0x020)
 
4210
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4211
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4212
#else
 
4213
# define ISLOWER(c) \
 
4214
                   (('a' <= (c) && (c) <= 'i') \
 
4215
                     || ('j' <= (c) && (c) <= 'r') \
 
4216
                     || ('s' <= (c) && (c) <= 'z'))
 
4217
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4218
#endif
 
4219
 
 
4220
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4221
int
 
4222
main ()
 
4223
{
 
4224
  int i;
 
4225
  for (i = 0; i < 256; i++)
 
4226
    if (XOR (islower (i), ISLOWER (i))
 
4227
        || toupper (i) != TOUPPER (i))
 
4228
      exit(2);
 
4229
  exit (0);
 
4230
}
 
4231
_ACEOF
 
4232
rm -f conftest$ac_exeext
 
4233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4234
  (eval $ac_link) 2>&5
 
4235
  ac_status=$?
 
4236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4237
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4238
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4239
  (eval $ac_try) 2>&5
 
4240
  ac_status=$?
 
4241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4242
  (exit $ac_status); }; }; then
 
4243
  :
 
4244
else
 
4245
  echo "$as_me: program exited with status $ac_status" >&5
 
4246
echo "$as_me: failed program was:" >&5
 
4247
sed 's/^/| /' conftest.$ac_ext >&5
 
4248
 
 
4249
( exit $ac_status )
 
4250
ac_cv_header_stdc=no
 
4251
fi
 
4252
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4253
fi
 
4254
fi
 
4255
fi
 
4256
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4257
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4258
if test $ac_cv_header_stdc = yes; then
 
4259
 
 
4260
cat >>confdefs.h <<\_ACEOF
 
4261
#define STDC_HEADERS 1
 
4262
_ACEOF
 
4263
 
 
4264
fi
 
4265
 
 
4266
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4267
 
 
4268
 
 
4269
 
 
4270
 
 
4271
 
 
4272
 
 
4273
 
 
4274
 
 
4275
 
 
4276
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4277
                  inttypes.h stdint.h unistd.h
 
4278
do
 
4279
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4280
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4281
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4282
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4284
else
 
4285
  cat >conftest.$ac_ext <<_ACEOF
 
4286
/* confdefs.h.  */
 
4287
_ACEOF
 
4288
cat confdefs.h >>conftest.$ac_ext
 
4289
cat >>conftest.$ac_ext <<_ACEOF
 
4290
/* end confdefs.h.  */
 
4291
$ac_includes_default
 
4292
 
 
4293
#include <$ac_header>
 
4294
_ACEOF
 
4295
rm -f conftest.$ac_objext
 
4296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4297
  (eval $ac_compile) 2>conftest.er1
 
4298
  ac_status=$?
 
4299
  grep -v '^ *+' conftest.er1 >conftest.err
 
4300
  rm -f conftest.er1
 
4301
  cat conftest.err >&5
 
4302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4303
  (exit $ac_status); } &&
 
4304
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4306
  (eval $ac_try) 2>&5
 
4307
  ac_status=$?
 
4308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4309
  (exit $ac_status); }; } &&
 
4310
         { ac_try='test -s conftest.$ac_objext'
 
4311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4312
  (eval $ac_try) 2>&5
 
4313
  ac_status=$?
 
4314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4315
  (exit $ac_status); }; }; then
 
4316
  eval "$as_ac_Header=yes"
 
4317
else
 
4318
  echo "$as_me: failed program was:" >&5
 
4319
sed 's/^/| /' conftest.$ac_ext >&5
 
4320
 
 
4321
eval "$as_ac_Header=no"
 
4322
fi
 
4323
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4324
fi
 
4325
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4326
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4327
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4328
  cat >>confdefs.h <<_ACEOF
 
4329
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4330
_ACEOF
 
4331
 
 
4332
fi
 
4333
 
 
4334
done
 
4335
 
 
4336
 
 
4337
 
 
4338
for ac_header in dlfcn.h
 
4339
do
 
4340
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4341
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4342
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4343
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4344
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4346
fi
 
4347
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4348
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4349
else
 
4350
  # Is the header compilable?
 
4351
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4352
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4353
cat >conftest.$ac_ext <<_ACEOF
 
4354
/* confdefs.h.  */
 
4355
_ACEOF
 
4356
cat confdefs.h >>conftest.$ac_ext
 
4357
cat >>conftest.$ac_ext <<_ACEOF
 
4358
/* end confdefs.h.  */
 
4359
$ac_includes_default
 
4360
#include <$ac_header>
 
4361
_ACEOF
 
4362
rm -f conftest.$ac_objext
 
4363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4364
  (eval $ac_compile) 2>conftest.er1
 
4365
  ac_status=$?
 
4366
  grep -v '^ *+' conftest.er1 >conftest.err
 
4367
  rm -f conftest.er1
 
4368
  cat conftest.err >&5
 
4369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4370
  (exit $ac_status); } &&
 
4371
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4373
  (eval $ac_try) 2>&5
 
4374
  ac_status=$?
 
4375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4376
  (exit $ac_status); }; } &&
 
4377
         { ac_try='test -s conftest.$ac_objext'
 
4378
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4379
  (eval $ac_try) 2>&5
 
4380
  ac_status=$?
 
4381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4382
  (exit $ac_status); }; }; then
 
4383
  ac_header_compiler=yes
 
4384
else
 
4385
  echo "$as_me: failed program was:" >&5
 
4386
sed 's/^/| /' conftest.$ac_ext >&5
 
4387
 
 
4388
ac_header_compiler=no
 
4389
fi
 
4390
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4391
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4392
echo "${ECHO_T}$ac_header_compiler" >&6
 
4393
 
 
4394
# Is the header present?
 
4395
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4396
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4397
cat >conftest.$ac_ext <<_ACEOF
 
4398
/* confdefs.h.  */
 
4399
_ACEOF
 
4400
cat confdefs.h >>conftest.$ac_ext
 
4401
cat >>conftest.$ac_ext <<_ACEOF
 
4402
/* end confdefs.h.  */
 
4403
#include <$ac_header>
 
4404
_ACEOF
 
4405
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4406
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4407
  ac_status=$?
 
4408
  grep -v '^ *+' conftest.er1 >conftest.err
 
4409
  rm -f conftest.er1
 
4410
  cat conftest.err >&5
 
4411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4412
  (exit $ac_status); } >/dev/null; then
 
4413
  if test -s conftest.err; then
 
4414
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4415
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4416
  else
 
4417
    ac_cpp_err=
 
4418
  fi
 
4419
else
 
4420
  ac_cpp_err=yes
 
4421
fi
 
4422
if test -z "$ac_cpp_err"; then
 
4423
  ac_header_preproc=yes
 
4424
else
 
4425
  echo "$as_me: failed program was:" >&5
 
4426
sed 's/^/| /' conftest.$ac_ext >&5
 
4427
 
 
4428
  ac_header_preproc=no
 
4429
fi
 
4430
rm -f conftest.err conftest.$ac_ext
 
4431
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4432
echo "${ECHO_T}$ac_header_preproc" >&6
 
4433
 
 
4434
# So?  What about this header?
 
4435
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4436
  yes:no: )
 
4437
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4438
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4439
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4440
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4441
    ac_header_preproc=yes
 
4442
    ;;
 
4443
  no:yes:* )
 
4444
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4445
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4446
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4447
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4448
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4449
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4450
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4451
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4452
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4453
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4454
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4455
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4456
    (
 
4457
      cat <<\_ASBOX
 
4458
## -------------------------------- ##
 
4459
## Report this to keithp@keithp.com ##
 
4460
## -------------------------------- ##
 
4461
_ASBOX
 
4462
    ) |
 
4463
      sed "s/^/$as_me: WARNING:     /" >&2
 
4464
    ;;
 
4465
esac
 
4466
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4467
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4468
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4470
else
 
4471
  eval "$as_ac_Header=\$ac_header_preproc"
 
4472
fi
 
4473
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4474
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4475
 
 
4476
fi
 
4477
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4478
  cat >>confdefs.h <<_ACEOF
 
4479
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4480
_ACEOF
 
4481
 
 
4482
fi
 
4483
 
 
4484
done
 
4485
 
 
4486
ac_ext=cc
 
4487
ac_cpp='$CXXCPP $CPPFLAGS'
 
4488
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4489
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4490
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4491
if test -n "$ac_tool_prefix"; then
 
4492
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4493
  do
 
4494
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4495
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4496
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4498
if test "${ac_cv_prog_CXX+set}" = set; then
 
4499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4500
else
 
4501
  if test -n "$CXX"; then
 
4502
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4503
else
 
4504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4505
for as_dir in $PATH
 
4506
do
 
4507
  IFS=$as_save_IFS
 
4508
  test -z "$as_dir" && as_dir=.
 
4509
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4510
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4511
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4512
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4513
    break 2
 
4514
  fi
 
4515
done
 
4516
done
 
4517
 
 
4518
fi
 
4519
fi
 
4520
CXX=$ac_cv_prog_CXX
 
4521
if test -n "$CXX"; then
 
4522
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4523
echo "${ECHO_T}$CXX" >&6
 
4524
else
 
4525
  echo "$as_me:$LINENO: result: no" >&5
 
4526
echo "${ECHO_T}no" >&6
 
4527
fi
 
4528
 
 
4529
    test -n "$CXX" && break
 
4530
  done
 
4531
fi
 
4532
if test -z "$CXX"; then
 
4533
  ac_ct_CXX=$CXX
 
4534
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4535
do
 
4536
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4537
set dummy $ac_prog; ac_word=$2
 
4538
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4539
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4540
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4542
else
 
4543
  if test -n "$ac_ct_CXX"; then
 
4544
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4545
else
 
4546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4547
for as_dir in $PATH
 
4548
do
 
4549
  IFS=$as_save_IFS
 
4550
  test -z "$as_dir" && as_dir=.
 
4551
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4552
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4553
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4554
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4555
    break 2
 
4556
  fi
 
4557
done
 
4558
done
 
4559
 
 
4560
fi
 
4561
fi
 
4562
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4563
if test -n "$ac_ct_CXX"; then
 
4564
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4565
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4566
else
 
4567
  echo "$as_me:$LINENO: result: no" >&5
 
4568
echo "${ECHO_T}no" >&6
 
4569
fi
 
4570
 
 
4571
  test -n "$ac_ct_CXX" && break
 
4572
done
 
4573
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4574
 
 
4575
  CXX=$ac_ct_CXX
 
4576
fi
 
4577
 
 
4578
 
 
4579
# Provide some information about the compiler.
 
4580
echo "$as_me:$LINENO:" \
 
4581
     "checking for C++ compiler version" >&5
 
4582
ac_compiler=`set X $ac_compile; echo $2`
 
4583
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4584
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4585
  ac_status=$?
 
4586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4587
  (exit $ac_status); }
 
4588
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4589
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4590
  ac_status=$?
 
4591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4592
  (exit $ac_status); }
 
4593
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4594
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4595
  ac_status=$?
 
4596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4597
  (exit $ac_status); }
 
4598
 
 
4599
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4600
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4601
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4603
else
 
4604
  cat >conftest.$ac_ext <<_ACEOF
 
4605
/* confdefs.h.  */
 
4606
_ACEOF
 
4607
cat confdefs.h >>conftest.$ac_ext
 
4608
cat >>conftest.$ac_ext <<_ACEOF
 
4609
/* end confdefs.h.  */
 
4610
 
 
4611
int
 
4612
main ()
 
4613
{
 
4614
#ifndef __GNUC__
 
4615
       choke me
 
4616
#endif
 
4617
 
 
4618
  ;
 
4619
  return 0;
 
4620
}
 
4621
_ACEOF
 
4622
rm -f conftest.$ac_objext
 
4623
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4624
  (eval $ac_compile) 2>conftest.er1
 
4625
  ac_status=$?
 
4626
  grep -v '^ *+' conftest.er1 >conftest.err
 
4627
  rm -f conftest.er1
 
4628
  cat conftest.err >&5
 
4629
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4630
  (exit $ac_status); } &&
 
4631
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4633
  (eval $ac_try) 2>&5
 
4634
  ac_status=$?
 
4635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4636
  (exit $ac_status); }; } &&
 
4637
         { ac_try='test -s conftest.$ac_objext'
 
4638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4639
  (eval $ac_try) 2>&5
 
4640
  ac_status=$?
 
4641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4642
  (exit $ac_status); }; }; then
 
4643
  ac_compiler_gnu=yes
 
4644
else
 
4645
  echo "$as_me: failed program was:" >&5
 
4646
sed 's/^/| /' conftest.$ac_ext >&5
 
4647
 
 
4648
ac_compiler_gnu=no
 
4649
fi
 
4650
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4651
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4652
 
 
4653
fi
 
4654
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4655
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4656
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4657
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4658
ac_save_CXXFLAGS=$CXXFLAGS
 
4659
CXXFLAGS="-g"
 
4660
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4661
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4662
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4664
else
 
4665
  cat >conftest.$ac_ext <<_ACEOF
 
4666
/* confdefs.h.  */
 
4667
_ACEOF
 
4668
cat confdefs.h >>conftest.$ac_ext
 
4669
cat >>conftest.$ac_ext <<_ACEOF
 
4670
/* end confdefs.h.  */
 
4671
 
 
4672
int
 
4673
main ()
 
4674
{
 
4675
 
 
4676
  ;
 
4677
  return 0;
 
4678
}
 
4679
_ACEOF
 
4680
rm -f conftest.$ac_objext
 
4681
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4682
  (eval $ac_compile) 2>conftest.er1
 
4683
  ac_status=$?
 
4684
  grep -v '^ *+' conftest.er1 >conftest.err
 
4685
  rm -f conftest.er1
 
4686
  cat conftest.err >&5
 
4687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4688
  (exit $ac_status); } &&
 
4689
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4691
  (eval $ac_try) 2>&5
 
4692
  ac_status=$?
 
4693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4694
  (exit $ac_status); }; } &&
 
4695
         { ac_try='test -s conftest.$ac_objext'
 
4696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4697
  (eval $ac_try) 2>&5
 
4698
  ac_status=$?
 
4699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4700
  (exit $ac_status); }; }; then
 
4701
  ac_cv_prog_cxx_g=yes
 
4702
else
 
4703
  echo "$as_me: failed program was:" >&5
 
4704
sed 's/^/| /' conftest.$ac_ext >&5
 
4705
 
 
4706
ac_cv_prog_cxx_g=no
 
4707
fi
 
4708
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4709
fi
 
4710
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4711
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4712
if test "$ac_test_CXXFLAGS" = set; then
 
4713
  CXXFLAGS=$ac_save_CXXFLAGS
 
4714
elif test $ac_cv_prog_cxx_g = yes; then
 
4715
  if test "$GXX" = yes; then
 
4716
    CXXFLAGS="-g -O2"
 
4717
  else
 
4718
    CXXFLAGS="-g"
 
4719
  fi
 
4720
else
 
4721
  if test "$GXX" = yes; then
 
4722
    CXXFLAGS="-O2"
 
4723
  else
 
4724
    CXXFLAGS=
 
4725
  fi
 
4726
fi
 
4727
for ac_declaration in \
 
4728
   '' \
 
4729
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4730
   'extern "C" void std::exit (int); using std::exit;' \
 
4731
   'extern "C" void exit (int) throw ();' \
 
4732
   'extern "C" void exit (int);' \
 
4733
   'void exit (int);'
 
4734
do
 
4735
  cat >conftest.$ac_ext <<_ACEOF
 
4736
/* confdefs.h.  */
 
4737
_ACEOF
 
4738
cat confdefs.h >>conftest.$ac_ext
 
4739
cat >>conftest.$ac_ext <<_ACEOF
 
4740
/* end confdefs.h.  */
 
4741
$ac_declaration
 
4742
#include <stdlib.h>
 
4743
int
 
4744
main ()
 
4745
{
 
4746
exit (42);
 
4747
  ;
 
4748
  return 0;
 
4749
}
 
4750
_ACEOF
 
4751
rm -f conftest.$ac_objext
 
4752
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4753
  (eval $ac_compile) 2>conftest.er1
 
4754
  ac_status=$?
 
4755
  grep -v '^ *+' conftest.er1 >conftest.err
 
4756
  rm -f conftest.er1
 
4757
  cat conftest.err >&5
 
4758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4759
  (exit $ac_status); } &&
 
4760
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4762
  (eval $ac_try) 2>&5
 
4763
  ac_status=$?
 
4764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4765
  (exit $ac_status); }; } &&
 
4766
         { ac_try='test -s conftest.$ac_objext'
 
4767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4768
  (eval $ac_try) 2>&5
 
4769
  ac_status=$?
 
4770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4771
  (exit $ac_status); }; }; then
 
4772
  :
 
4773
else
 
4774
  echo "$as_me: failed program was:" >&5
 
4775
sed 's/^/| /' conftest.$ac_ext >&5
 
4776
 
 
4777
continue
 
4778
fi
 
4779
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4780
  cat >conftest.$ac_ext <<_ACEOF
 
4781
/* confdefs.h.  */
 
4782
_ACEOF
 
4783
cat confdefs.h >>conftest.$ac_ext
 
4784
cat >>conftest.$ac_ext <<_ACEOF
 
4785
/* end confdefs.h.  */
 
4786
$ac_declaration
 
4787
int
 
4788
main ()
 
4789
{
 
4790
exit (42);
 
4791
  ;
 
4792
  return 0;
 
4793
}
 
4794
_ACEOF
 
4795
rm -f conftest.$ac_objext
 
4796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4797
  (eval $ac_compile) 2>conftest.er1
 
4798
  ac_status=$?
 
4799
  grep -v '^ *+' conftest.er1 >conftest.err
 
4800
  rm -f conftest.er1
 
4801
  cat conftest.err >&5
 
4802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4803
  (exit $ac_status); } &&
 
4804
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4806
  (eval $ac_try) 2>&5
 
4807
  ac_status=$?
 
4808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4809
  (exit $ac_status); }; } &&
 
4810
         { ac_try='test -s conftest.$ac_objext'
 
4811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4812
  (eval $ac_try) 2>&5
 
4813
  ac_status=$?
 
4814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4815
  (exit $ac_status); }; }; then
 
4816
  break
 
4817
else
 
4818
  echo "$as_me: failed program was:" >&5
 
4819
sed 's/^/| /' conftest.$ac_ext >&5
 
4820
 
 
4821
fi
 
4822
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4823
done
 
4824
rm -f conftest*
 
4825
if test -n "$ac_declaration"; then
 
4826
  echo '#ifdef __cplusplus' >>confdefs.h
 
4827
  echo $ac_declaration      >>confdefs.h
 
4828
  echo '#endif'             >>confdefs.h
 
4829
fi
 
4830
 
 
4831
ac_ext=cc
 
4832
ac_cpp='$CXXCPP $CPPFLAGS'
 
4833
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4834
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4835
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4836
 
 
4837
depcc="$CXX"  am_compiler_list=
 
4838
 
 
4839
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4840
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4841
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4843
else
 
4844
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4845
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4846
  # making bogus files that we don't know about and never remove.  For
 
4847
  # instance it was reported that on HP-UX the gcc test will end up
 
4848
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4849
  # in D'.
 
4850
  mkdir conftest.dir
 
4851
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4852
  # using a relative directory.
 
4853
  cp "$am_depcomp" conftest.dir
 
4854
  cd conftest.dir
 
4855
  # We will build objects and dependencies in a subdirectory because
 
4856
  # it helps to detect inapplicable dependency modes.  For instance
 
4857
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4858
  # side effect of compilation, but ICC will put the dependencies in
 
4859
  # the current directory while Tru64 will put them in the object
 
4860
  # directory.
 
4861
  mkdir sub
 
4862
 
 
4863
  am_cv_CXX_dependencies_compiler_type=none
 
4864
  if test "$am_compiler_list" = ""; then
 
4865
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4866
  fi
 
4867
  for depmode in $am_compiler_list; do
 
4868
    # Setup a source with many dependencies, because some compilers
 
4869
    # like to wrap large dependency lists on column 80 (with \), and
 
4870
    # we should not choose a depcomp mode which is confused by this.
 
4871
    #
 
4872
    # We need to recreate these files for each test, as the compiler may
 
4873
    # overwrite some of them when testing with obscure command lines.
 
4874
    # This happens at least with the AIX C compiler.
 
4875
    : > sub/conftest.c
 
4876
    for i in 1 2 3 4 5 6; do
 
4877
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4878
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4879
      # Solaris 8's {/usr,}/bin/sh.
 
4880
      touch sub/conftst$i.h
 
4881
    done
 
4882
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4883
 
 
4884
    case $depmode in
 
4885
    nosideeffect)
 
4886
      # after this tag, mechanisms are not by side-effect, so they'll
 
4887
      # only be used when explicitly requested
 
4888
      if test "x$enable_dependency_tracking" = xyes; then
 
4889
        continue
 
4890
      else
 
4891
        break
 
4892
      fi
 
4893
      ;;
 
4894
    none) break ;;
 
4895
    esac
 
4896
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4897
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4898
    # handle `-M -o', and we need to detect this.
 
4899
    if depmode=$depmode \
 
4900
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4901
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4902
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4903
         >/dev/null 2>conftest.err &&
 
4904
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4905
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4906
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4907
      # icc doesn't choke on unknown options, it will just issue warnings
 
4908
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4909
      # that says an option was ignored or not supported.
 
4910
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4911
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4912
      # The diagnosis changed in icc 8.0:
 
4913
      #   icc: Command line remark: option '-MP' not supported
 
4914
      if (grep 'ignoring option' conftest.err ||
 
4915
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4916
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4917
        break
 
4918
      fi
 
4919
    fi
 
4920
  done
 
4921
 
 
4922
  cd ..
 
4923
  rm -rf conftest.dir
 
4924
else
 
4925
  am_cv_CXX_dependencies_compiler_type=none
 
4926
fi
 
4927
 
 
4928
fi
 
4929
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4930
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4931
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4932
 
 
4933
 
 
4934
 
 
4935
if
 
4936
  test "x$enable_dependency_tracking" != xno \
 
4937
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4938
  am__fastdepCXX_TRUE=
 
4939
  am__fastdepCXX_FALSE='#'
 
4940
else
 
4941
  am__fastdepCXX_TRUE='#'
 
4942
  am__fastdepCXX_FALSE=
 
4943
fi
 
4944
 
 
4945
 
 
4946
ac_ext=cc
 
4947
ac_cpp='$CXXCPP $CPPFLAGS'
 
4948
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4949
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4950
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4951
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4952
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4953
if test -z "$CXXCPP"; then
 
4954
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4956
else
 
4957
      # Double quotes because CXXCPP needs to be expanded
 
4958
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4959
    do
 
4960
      ac_preproc_ok=false
 
4961
for ac_cxx_preproc_warn_flag in '' yes
 
4962
do
 
4963
  # Use a header file that comes with gcc, so configuring glibc
 
4964
  # with a fresh cross-compiler works.
 
4965
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4966
  # <limits.h> exists even on freestanding compilers.
 
4967
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4968
  # not just through cpp. "Syntax error" is here to catch this case.
 
4969
  cat >conftest.$ac_ext <<_ACEOF
 
4970
/* confdefs.h.  */
 
4971
_ACEOF
 
4972
cat confdefs.h >>conftest.$ac_ext
 
4973
cat >>conftest.$ac_ext <<_ACEOF
 
4974
/* end confdefs.h.  */
 
4975
#ifdef __STDC__
 
4976
# include <limits.h>
 
4977
#else
 
4978
# include <assert.h>
 
4979
#endif
 
4980
                     Syntax error
 
4981
_ACEOF
 
4982
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4983
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4984
  ac_status=$?
 
4985
  grep -v '^ *+' conftest.er1 >conftest.err
 
4986
  rm -f conftest.er1
 
4987
  cat conftest.err >&5
 
4988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4989
  (exit $ac_status); } >/dev/null; then
 
4990
  if test -s conftest.err; then
 
4991
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4992
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4993
  else
 
4994
    ac_cpp_err=
 
4995
  fi
 
4996
else
 
4997
  ac_cpp_err=yes
 
4998
fi
 
4999
if test -z "$ac_cpp_err"; then
 
5000
  :
 
5001
else
 
5002
  echo "$as_me: failed program was:" >&5
 
5003
sed 's/^/| /' conftest.$ac_ext >&5
 
5004
 
 
5005
  # Broken: fails on valid input.
 
5006
continue
 
5007
fi
 
5008
rm -f conftest.err conftest.$ac_ext
 
5009
 
 
5010
  # OK, works on sane cases.  Now check whether non-existent headers
 
5011
  # can be detected and how.
 
5012
  cat >conftest.$ac_ext <<_ACEOF
 
5013
/* confdefs.h.  */
 
5014
_ACEOF
 
5015
cat confdefs.h >>conftest.$ac_ext
 
5016
cat >>conftest.$ac_ext <<_ACEOF
 
5017
/* end confdefs.h.  */
 
5018
#include <ac_nonexistent.h>
 
5019
_ACEOF
 
5020
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5021
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5022
  ac_status=$?
 
5023
  grep -v '^ *+' conftest.er1 >conftest.err
 
5024
  rm -f conftest.er1
 
5025
  cat conftest.err >&5
 
5026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5027
  (exit $ac_status); } >/dev/null; then
 
5028
  if test -s conftest.err; then
 
5029
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5030
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5031
  else
 
5032
    ac_cpp_err=
 
5033
  fi
 
5034
else
 
5035
  ac_cpp_err=yes
 
5036
fi
 
5037
if test -z "$ac_cpp_err"; then
 
5038
  # Broken: success on invalid input.
 
5039
continue
 
5040
else
 
5041
  echo "$as_me: failed program was:" >&5
 
5042
sed 's/^/| /' conftest.$ac_ext >&5
 
5043
 
 
5044
  # Passes both tests.
 
5045
ac_preproc_ok=:
 
5046
break
 
5047
fi
 
5048
rm -f conftest.err conftest.$ac_ext
 
5049
 
 
5050
done
 
5051
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5052
rm -f conftest.err conftest.$ac_ext
 
5053
if $ac_preproc_ok; then
 
5054
  break
 
5055
fi
 
5056
 
 
5057
    done
 
5058
    ac_cv_prog_CXXCPP=$CXXCPP
 
5059
 
 
5060
fi
 
5061
  CXXCPP=$ac_cv_prog_CXXCPP
 
5062
else
 
5063
  ac_cv_prog_CXXCPP=$CXXCPP
 
5064
fi
 
5065
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5066
echo "${ECHO_T}$CXXCPP" >&6
 
5067
ac_preproc_ok=false
 
5068
for ac_cxx_preproc_warn_flag in '' yes
 
5069
do
 
5070
  # Use a header file that comes with gcc, so configuring glibc
 
5071
  # with a fresh cross-compiler works.
 
5072
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5073
  # <limits.h> exists even on freestanding compilers.
 
5074
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5075
  # not just through cpp. "Syntax error" is here to catch this case.
 
5076
  cat >conftest.$ac_ext <<_ACEOF
 
5077
/* confdefs.h.  */
 
5078
_ACEOF
 
5079
cat confdefs.h >>conftest.$ac_ext
 
5080
cat >>conftest.$ac_ext <<_ACEOF
 
5081
/* end confdefs.h.  */
 
5082
#ifdef __STDC__
 
5083
# include <limits.h>
 
5084
#else
 
5085
# include <assert.h>
 
5086
#endif
 
5087
                     Syntax error
 
5088
_ACEOF
 
5089
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5090
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5091
  ac_status=$?
 
5092
  grep -v '^ *+' conftest.er1 >conftest.err
 
5093
  rm -f conftest.er1
 
5094
  cat conftest.err >&5
 
5095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5096
  (exit $ac_status); } >/dev/null; then
 
5097
  if test -s conftest.err; then
 
5098
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5099
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5100
  else
 
5101
    ac_cpp_err=
 
5102
  fi
 
5103
else
 
5104
  ac_cpp_err=yes
 
5105
fi
 
5106
if test -z "$ac_cpp_err"; then
 
5107
  :
 
5108
else
 
5109
  echo "$as_me: failed program was:" >&5
 
5110
sed 's/^/| /' conftest.$ac_ext >&5
 
5111
 
 
5112
  # Broken: fails on valid input.
 
5113
continue
 
5114
fi
 
5115
rm -f conftest.err conftest.$ac_ext
 
5116
 
 
5117
  # OK, works on sane cases.  Now check whether non-existent headers
 
5118
  # can be detected and how.
 
5119
  cat >conftest.$ac_ext <<_ACEOF
 
5120
/* confdefs.h.  */
 
5121
_ACEOF
 
5122
cat confdefs.h >>conftest.$ac_ext
 
5123
cat >>conftest.$ac_ext <<_ACEOF
 
5124
/* end confdefs.h.  */
 
5125
#include <ac_nonexistent.h>
 
5126
_ACEOF
 
5127
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5128
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5129
  ac_status=$?
 
5130
  grep -v '^ *+' conftest.er1 >conftest.err
 
5131
  rm -f conftest.er1
 
5132
  cat conftest.err >&5
 
5133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5134
  (exit $ac_status); } >/dev/null; then
 
5135
  if test -s conftest.err; then
 
5136
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5137
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5138
  else
 
5139
    ac_cpp_err=
 
5140
  fi
 
5141
else
 
5142
  ac_cpp_err=yes
 
5143
fi
 
5144
if test -z "$ac_cpp_err"; then
 
5145
  # Broken: success on invalid input.
 
5146
continue
 
5147
else
 
5148
  echo "$as_me: failed program was:" >&5
 
5149
sed 's/^/| /' conftest.$ac_ext >&5
 
5150
 
 
5151
  # Passes both tests.
 
5152
ac_preproc_ok=:
 
5153
break
 
5154
fi
 
5155
rm -f conftest.err conftest.$ac_ext
 
5156
 
 
5157
done
 
5158
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5159
rm -f conftest.err conftest.$ac_ext
 
5160
if $ac_preproc_ok; then
 
5161
  :
 
5162
else
 
5163
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5164
See \`config.log' for more details." >&5
 
5165
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5166
See \`config.log' for more details." >&2;}
 
5167
   { (exit 1); exit 1; }; }
 
5168
fi
 
5169
 
 
5170
ac_ext=cc
 
5171
ac_cpp='$CXXCPP $CPPFLAGS'
 
5172
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5173
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5174
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5175
 
 
5176
 
 
5177
ac_ext=f
 
5178
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5179
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5180
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5181
if test -n "$ac_tool_prefix"; then
 
5182
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5183
  do
 
5184
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5185
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5186
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5187
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5188
if test "${ac_cv_prog_F77+set}" = set; then
 
5189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5190
else
 
5191
  if test -n "$F77"; then
 
5192
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5193
else
 
5194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5195
for as_dir in $PATH
 
5196
do
 
5197
  IFS=$as_save_IFS
 
5198
  test -z "$as_dir" && as_dir=.
 
5199
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5200
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5201
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5202
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5203
    break 2
 
5204
  fi
 
5205
done
 
5206
done
 
5207
 
 
5208
fi
 
5209
fi
 
5210
F77=$ac_cv_prog_F77
 
5211
if test -n "$F77"; then
 
5212
  echo "$as_me:$LINENO: result: $F77" >&5
 
5213
echo "${ECHO_T}$F77" >&6
 
5214
else
 
5215
  echo "$as_me:$LINENO: result: no" >&5
 
5216
echo "${ECHO_T}no" >&6
 
5217
fi
 
5218
 
 
5219
    test -n "$F77" && break
 
5220
  done
 
5221
fi
 
5222
if test -z "$F77"; then
 
5223
  ac_ct_F77=$F77
 
5224
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5225
do
 
5226
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5227
set dummy $ac_prog; ac_word=$2
 
5228
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5229
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5230
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5232
else
 
5233
  if test -n "$ac_ct_F77"; then
 
5234
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5235
else
 
5236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5237
for as_dir in $PATH
 
5238
do
 
5239
  IFS=$as_save_IFS
 
5240
  test -z "$as_dir" && as_dir=.
 
5241
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5242
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5243
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5244
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5245
    break 2
 
5246
  fi
 
5247
done
 
5248
done
 
5249
 
 
5250
fi
 
5251
fi
 
5252
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5253
if test -n "$ac_ct_F77"; then
 
5254
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5255
echo "${ECHO_T}$ac_ct_F77" >&6
 
5256
else
 
5257
  echo "$as_me:$LINENO: result: no" >&5
 
5258
echo "${ECHO_T}no" >&6
 
5259
fi
 
5260
 
 
5261
  test -n "$ac_ct_F77" && break
 
5262
done
 
5263
 
 
5264
  F77=$ac_ct_F77
 
5265
fi
 
5266
 
 
5267
 
 
5268
# Provide some information about the compiler.
 
5269
echo "$as_me:5269:" \
 
5270
     "checking for Fortran 77 compiler version" >&5
 
5271
ac_compiler=`set X $ac_compile; echo $2`
 
5272
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5273
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5274
  ac_status=$?
 
5275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5276
  (exit $ac_status); }
 
5277
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5278
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5279
  ac_status=$?
 
5280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5281
  (exit $ac_status); }
 
5282
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5283
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5284
  ac_status=$?
 
5285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5286
  (exit $ac_status); }
 
5287
rm -f a.out
 
5288
 
 
5289
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5290
# input file.  (Note that this only needs to work for GNU compilers.)
 
5291
ac_save_ext=$ac_ext
 
5292
ac_ext=F
 
5293
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5294
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5295
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5297
else
 
5298
  cat >conftest.$ac_ext <<_ACEOF
 
5299
      program main
 
5300
#ifndef __GNUC__
 
5301
       choke me
 
5302
#endif
 
5303
 
 
5304
      end
 
5305
_ACEOF
 
5306
rm -f conftest.$ac_objext
 
5307
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5308
  (eval $ac_compile) 2>conftest.er1
 
5309
  ac_status=$?
 
5310
  grep -v '^ *+' conftest.er1 >conftest.err
 
5311
  rm -f conftest.er1
 
5312
  cat conftest.err >&5
 
5313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5314
  (exit $ac_status); } &&
 
5315
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5317
  (eval $ac_try) 2>&5
 
5318
  ac_status=$?
 
5319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5320
  (exit $ac_status); }; } &&
 
5321
         { ac_try='test -s conftest.$ac_objext'
 
5322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5323
  (eval $ac_try) 2>&5
 
5324
  ac_status=$?
 
5325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5326
  (exit $ac_status); }; }; then
 
5327
  ac_compiler_gnu=yes
 
5328
else
 
5329
  echo "$as_me: failed program was:" >&5
 
5330
sed 's/^/| /' conftest.$ac_ext >&5
 
5331
 
 
5332
ac_compiler_gnu=no
 
5333
fi
 
5334
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5335
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5336
 
 
5337
fi
 
5338
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5339
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5340
ac_ext=$ac_save_ext
 
5341
ac_test_FFLAGS=${FFLAGS+set}
 
5342
ac_save_FFLAGS=$FFLAGS
 
5343
FFLAGS=
 
5344
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5345
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5346
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5348
else
 
5349
  FFLAGS=-g
 
5350
cat >conftest.$ac_ext <<_ACEOF
 
5351
      program main
 
5352
 
 
5353
      end
 
5354
_ACEOF
 
5355
rm -f conftest.$ac_objext
 
5356
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5357
  (eval $ac_compile) 2>conftest.er1
 
5358
  ac_status=$?
 
5359
  grep -v '^ *+' conftest.er1 >conftest.err
 
5360
  rm -f conftest.er1
 
5361
  cat conftest.err >&5
 
5362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5363
  (exit $ac_status); } &&
 
5364
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5366
  (eval $ac_try) 2>&5
 
5367
  ac_status=$?
 
5368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5369
  (exit $ac_status); }; } &&
 
5370
         { ac_try='test -s conftest.$ac_objext'
 
5371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5372
  (eval $ac_try) 2>&5
 
5373
  ac_status=$?
 
5374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5375
  (exit $ac_status); }; }; then
 
5376
  ac_cv_prog_f77_g=yes
 
5377
else
 
5378
  echo "$as_me: failed program was:" >&5
 
5379
sed 's/^/| /' conftest.$ac_ext >&5
 
5380
 
 
5381
ac_cv_prog_f77_g=no
 
5382
fi
 
5383
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5384
 
 
5385
fi
 
5386
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5387
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5388
if test "$ac_test_FFLAGS" = set; then
 
5389
  FFLAGS=$ac_save_FFLAGS
 
5390
elif test $ac_cv_prog_f77_g = yes; then
 
5391
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5392
    FFLAGS="-g -O2"
 
5393
  else
 
5394
    FFLAGS="-g"
 
5395
  fi
 
5396
else
 
5397
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5398
    FFLAGS="-O2"
 
5399
  else
 
5400
    FFLAGS=
 
5401
  fi
 
5402
fi
 
5403
 
 
5404
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5405
ac_ext=c
 
5406
ac_cpp='$CPP $CPPFLAGS'
 
5407
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5408
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5409
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5410
 
 
5411
 
 
5412
 
 
5413
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5414
 
 
5415
# find the maximum length of command line arguments
 
5416
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5417
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5418
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5420
else
 
5421
    i=0
 
5422
  teststring="ABCD"
 
5423
 
 
5424
  case $build_os in
 
5425
  msdosdjgpp*)
 
5426
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5427
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5428
    # during glob expansion).  Even if it were fixed, the result of this
 
5429
    # check would be larger than it should be.
 
5430
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5431
    ;;
 
5432
 
 
5433
  gnu*)
 
5434
    # Under GNU Hurd, this test is not required because there is
 
5435
    # no limit to the length of command line arguments.
 
5436
    # Libtool will interpret -1 as no limit whatsoever
 
5437
    lt_cv_sys_max_cmd_len=-1;
 
5438
    ;;
 
5439
 
 
5440
  cygwin* | mingw*)
 
5441
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5442
    # about 5 minutes as the teststring grows exponentially.
 
5443
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5444
    # you end up with a "frozen" computer, even though with patience
 
5445
    # the test eventually succeeds (with a max line length of 256k).
 
5446
    # Instead, let's just punt: use the minimum linelength reported by
 
5447
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5448
    lt_cv_sys_max_cmd_len=8192;
 
5449
    ;;
 
5450
 
 
5451
  amigaos*)
 
5452
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5453
    # So we just punt and use a minimum line length of 8192.
 
5454
    lt_cv_sys_max_cmd_len=8192;
 
5455
    ;;
 
5456
 
 
5457
 *)
 
5458
    # If test is not a shell built-in, we'll probably end up computing a
 
5459
    # maximum length that is only half of the actual maximum length, but
 
5460
    # we can't tell.
 
5461
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5462
               = "XX$teststring") >/dev/null 2>&1 &&
 
5463
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5464
            lt_cv_sys_max_cmd_len=$new_result &&
 
5465
            test $i != 17 # 1/2 MB should be enough
 
5466
    do
 
5467
      i=`expr $i + 1`
 
5468
      teststring=$teststring$teststring
 
5469
    done
 
5470
    teststring=
 
5471
    # Add a significant safety factor because C++ compilers can tack on massive
 
5472
    # amounts of additional arguments before passing them to the linker.
 
5473
    # It appears as though 1/2 is a usable value.
 
5474
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5475
    ;;
 
5476
  esac
 
5477
 
 
5478
fi
 
5479
 
 
5480
if test -n $lt_cv_sys_max_cmd_len ; then
 
5481
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5482
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5483
else
 
5484
  echo "$as_me:$LINENO: result: none" >&5
 
5485
echo "${ECHO_T}none" >&6
 
5486
fi
 
5487
 
 
5488
 
 
5489
 
 
5490
 
 
5491
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5492
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5493
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5494
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5496
else
 
5497
 
 
5498
# These are sane defaults that work on at least a few old systems.
 
5499
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5500
 
 
5501
# Character class describing NM global symbol codes.
 
5502
symcode='[BCDEGRST]'
 
5503
 
 
5504
# Regexp to match symbols that can be accessed directly from C.
 
5505
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5506
 
 
5507
# Transform the above into a raw symbol and a C symbol.
 
5508
symxfrm='\1 \2\3 \3'
 
5509
 
 
5510
# Transform an extracted symbol line into a proper C declaration
 
5511
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5512
 
 
5513
# Transform an extracted symbol line into symbol name and symbol address
 
5514
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'"
 
5515
 
 
5516
# Define system-specific variables.
 
5517
case $host_os in
 
5518
aix*)
 
5519
  symcode='[BCDT]'
 
5520
  ;;
 
5521
cygwin* | mingw* | pw32*)
 
5522
  symcode='[ABCDGISTW]'
 
5523
  ;;
 
5524
hpux*) # Its linker distinguishes data from code symbols
 
5525
  if test "$host_cpu" = ia64; then
 
5526
    symcode='[ABCDEGRST]'
 
5527
  fi
 
5528
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5529
  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'"
 
5530
  ;;
 
5531
irix* | nonstopux*)
 
5532
  symcode='[BCDEGRST]'
 
5533
  ;;
 
5534
osf*)
 
5535
  symcode='[BCDEGQRST]'
 
5536
  ;;
 
5537
solaris* | sysv5*)
 
5538
  symcode='[BDRT]'
 
5539
  ;;
 
5540
sysv4)
 
5541
  symcode='[DFNSTU]'
 
5542
  ;;
 
5543
esac
 
5544
 
 
5545
# Handle CRLF in mingw tool chain
 
5546
opt_cr=
 
5547
case $build_os in
 
5548
mingw*)
 
5549
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5550
  ;;
 
5551
esac
 
5552
 
 
5553
# If we're using GNU nm, then use its standard symbol codes.
 
5554
case `$NM -V 2>&1` in
 
5555
*GNU* | *'with BFD'*)
 
5556
  symcode='[ABCDGIRSTW]' ;;
 
5557
esac
 
5558
 
 
5559
# Try without a prefix undercore, then with it.
 
5560
for ac_symprfx in "" "_"; do
 
5561
 
 
5562
  # Write the raw and C identifiers.
 
5563
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5564
 
 
5565
  # Check to see that the pipe works correctly.
 
5566
  pipe_works=no
 
5567
 
 
5568
  rm -f conftest*
 
5569
  cat > conftest.$ac_ext <<EOF
 
5570
#ifdef __cplusplus
 
5571
extern "C" {
 
5572
#endif
 
5573
char nm_test_var;
 
5574
void nm_test_func(){}
 
5575
#ifdef __cplusplus
 
5576
}
 
5577
#endif
 
5578
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5579
EOF
 
5580
 
 
5581
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5582
  (eval $ac_compile) 2>&5
 
5583
  ac_status=$?
 
5584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5585
  (exit $ac_status); }; then
 
5586
    # Now try to grab the symbols.
 
5587
    nlist=conftest.nm
 
5588
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5589
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5590
  ac_status=$?
 
5591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5592
  (exit $ac_status); } && test -s "$nlist"; then
 
5593
      # Try sorting and uniquifying the output.
 
5594
      if sort "$nlist" | uniq > "$nlist"T; then
 
5595
        mv -f "$nlist"T "$nlist"
 
5596
      else
 
5597
        rm -f "$nlist"T
 
5598
      fi
 
5599
 
 
5600
      # Make sure that we snagged all the symbols we need.
 
5601
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5602
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5603
          cat <<EOF > conftest.$ac_ext
 
5604
#ifdef __cplusplus
 
5605
extern "C" {
 
5606
#endif
 
5607
 
 
5608
EOF
 
5609
          # Now generate the symbol file.
 
5610
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5611
 
 
5612
          cat <<EOF >> conftest.$ac_ext
 
5613
#if defined (__STDC__) && __STDC__
 
5614
# define lt_ptr_t void *
 
5615
#else
 
5616
# define lt_ptr_t char *
 
5617
# define const
 
5618
#endif
 
5619
 
 
5620
/* The mapping between symbol names and symbols. */
 
5621
const struct {
 
5622
  const char *name;
 
5623
  lt_ptr_t address;
 
5624
}
 
5625
lt_preloaded_symbols[] =
 
5626
{
 
5627
EOF
 
5628
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5629
          cat <<\EOF >> conftest.$ac_ext
 
5630
  {0, (lt_ptr_t) 0}
 
5631
};
 
5632
 
 
5633
#ifdef __cplusplus
 
5634
}
 
5635
#endif
 
5636
EOF
 
5637
          # Now try linking the two files.
 
5638
          mv conftest.$ac_objext conftstm.$ac_objext
 
5639
          lt_save_LIBS="$LIBS"
 
5640
          lt_save_CFLAGS="$CFLAGS"
 
5641
          LIBS="conftstm.$ac_objext"
 
5642
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5643
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5644
  (eval $ac_link) 2>&5
 
5645
  ac_status=$?
 
5646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5647
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5648
            pipe_works=yes
 
5649
          fi
 
5650
          LIBS="$lt_save_LIBS"
 
5651
          CFLAGS="$lt_save_CFLAGS"
 
5652
        else
 
5653
          echo "cannot find nm_test_func in $nlist" >&5
 
5654
        fi
 
5655
      else
 
5656
        echo "cannot find nm_test_var in $nlist" >&5
 
5657
      fi
 
5658
    else
 
5659
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5660
    fi
 
5661
  else
 
5662
    echo "$progname: failed program was:" >&5
 
5663
    cat conftest.$ac_ext >&5
 
5664
  fi
 
5665
  rm -f conftest* conftst*
 
5666
 
 
5667
  # Do not use the global_symbol_pipe unless it works.
 
5668
  if test "$pipe_works" = yes; then
 
5669
    break
 
5670
  else
 
5671
    lt_cv_sys_global_symbol_pipe=
 
5672
  fi
 
5673
done
 
5674
 
 
5675
fi
 
5676
 
 
5677
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5678
  lt_cv_sys_global_symbol_to_cdecl=
 
5679
fi
 
5680
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5681
  echo "$as_me:$LINENO: result: failed" >&5
 
5682
echo "${ECHO_T}failed" >&6
 
5683
else
 
5684
  echo "$as_me:$LINENO: result: ok" >&5
 
5685
echo "${ECHO_T}ok" >&6
 
5686
fi
 
5687
 
 
5688
echo "$as_me:$LINENO: checking for objdir" >&5
 
5689
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5690
if test "${lt_cv_objdir+set}" = set; then
 
5691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5692
else
 
5693
  rm -f .libs 2>/dev/null
 
5694
mkdir .libs 2>/dev/null
 
5695
if test -d .libs; then
 
5696
  lt_cv_objdir=.libs
 
5697
else
 
5698
  # MS-DOS does not allow filenames that begin with a dot.
 
5699
  lt_cv_objdir=_libs
 
5700
fi
 
5701
rmdir .libs 2>/dev/null
 
5702
fi
 
5703
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5704
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5705
objdir=$lt_cv_objdir
 
5706
 
 
5707
 
 
5708
 
 
5709
 
 
5710
 
 
5711
case $host_os in
 
5712
aix3*)
 
5713
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5714
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5715
  # vanish in a puff of smoke.
 
5716
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5717
    COLLECT_NAMES=
 
5718
    export COLLECT_NAMES
 
5719
  fi
 
5720
  ;;
 
5721
esac
 
5722
 
 
5723
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5724
# metacharacters that are still active within double-quoted strings.
 
5725
Xsed='sed -e s/^X//'
 
5726
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5727
 
 
5728
# Same as above, but do not quote variable references.
 
5729
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5730
 
 
5731
# Sed substitution to delay expansion of an escaped shell variable in a
 
5732
# double_quote_subst'ed string.
 
5733
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5734
 
 
5735
# Sed substitution to avoid accidental globbing in evaled expressions
 
5736
no_glob_subst='s/\*/\\\*/g'
 
5737
 
 
5738
# Constants:
 
5739
rm="rm -f"
 
5740
 
 
5741
# Global variables:
 
5742
default_ofile=libtool
 
5743
can_build_shared=yes
 
5744
 
 
5745
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5746
# which needs '.lib').
 
5747
libext=a
 
5748
ltmain="$ac_aux_dir/ltmain.sh"
 
5749
ofile="$default_ofile"
 
5750
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5751
 
 
5752
if test -n "$ac_tool_prefix"; then
 
5753
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5754
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5755
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5757
if test "${ac_cv_prog_AR+set}" = set; then
 
5758
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5759
else
 
5760
  if test -n "$AR"; then
 
5761
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5762
else
 
5763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5764
for as_dir in $PATH
 
5765
do
 
5766
  IFS=$as_save_IFS
 
5767
  test -z "$as_dir" && as_dir=.
 
5768
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5769
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5770
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5771
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5772
    break 2
 
5773
  fi
 
5774
done
 
5775
done
 
5776
 
 
5777
fi
 
5778
fi
 
5779
AR=$ac_cv_prog_AR
 
5780
if test -n "$AR"; then
 
5781
  echo "$as_me:$LINENO: result: $AR" >&5
 
5782
echo "${ECHO_T}$AR" >&6
 
5783
else
 
5784
  echo "$as_me:$LINENO: result: no" >&5
 
5785
echo "${ECHO_T}no" >&6
 
5786
fi
 
5787
 
 
5788
fi
 
5789
if test -z "$ac_cv_prog_AR"; then
 
5790
  ac_ct_AR=$AR
 
5791
  # Extract the first word of "ar", so it can be a program name with args.
 
5792
set dummy ar; ac_word=$2
 
5793
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5794
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5795
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5796
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5797
else
 
5798
  if test -n "$ac_ct_AR"; then
 
5799
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5800
else
 
5801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5802
for as_dir in $PATH
 
5803
do
 
5804
  IFS=$as_save_IFS
 
5805
  test -z "$as_dir" && as_dir=.
 
5806
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5807
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5808
    ac_cv_prog_ac_ct_AR="ar"
 
5809
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5810
    break 2
 
5811
  fi
 
5812
done
 
5813
done
 
5814
 
 
5815
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5816
fi
 
5817
fi
 
5818
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5819
if test -n "$ac_ct_AR"; then
 
5820
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5821
echo "${ECHO_T}$ac_ct_AR" >&6
 
5822
else
 
5823
  echo "$as_me:$LINENO: result: no" >&5
 
5824
echo "${ECHO_T}no" >&6
 
5825
fi
 
5826
 
 
5827
  AR=$ac_ct_AR
 
5828
else
 
5829
  AR="$ac_cv_prog_AR"
 
5830
fi
 
5831
 
 
5832
if test -n "$ac_tool_prefix"; then
 
5833
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5834
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5835
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5836
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5837
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5839
else
 
5840
  if test -n "$RANLIB"; then
 
5841
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5842
else
 
5843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5844
for as_dir in $PATH
 
5845
do
 
5846
  IFS=$as_save_IFS
 
5847
  test -z "$as_dir" && as_dir=.
 
5848
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5849
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5850
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5851
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5852
    break 2
 
5853
  fi
 
5854
done
 
5855
done
 
5856
 
 
5857
fi
 
5858
fi
 
5859
RANLIB=$ac_cv_prog_RANLIB
 
5860
if test -n "$RANLIB"; then
 
5861
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5862
echo "${ECHO_T}$RANLIB" >&6
 
5863
else
 
5864
  echo "$as_me:$LINENO: result: no" >&5
 
5865
echo "${ECHO_T}no" >&6
 
5866
fi
 
5867
 
 
5868
fi
 
5869
if test -z "$ac_cv_prog_RANLIB"; then
 
5870
  ac_ct_RANLIB=$RANLIB
 
5871
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5872
set dummy ranlib; ac_word=$2
 
5873
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5875
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5876
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5877
else
 
5878
  if test -n "$ac_ct_RANLIB"; then
 
5879
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5880
else
 
5881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5882
for as_dir in $PATH
 
5883
do
 
5884
  IFS=$as_save_IFS
 
5885
  test -z "$as_dir" && as_dir=.
 
5886
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5887
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5888
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5889
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5890
    break 2
 
5891
  fi
 
5892
done
 
5893
done
 
5894
 
 
5895
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5896
fi
 
5897
fi
 
5898
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5899
if test -n "$ac_ct_RANLIB"; then
 
5900
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5901
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5902
else
 
5903
  echo "$as_me:$LINENO: result: no" >&5
 
5904
echo "${ECHO_T}no" >&6
 
5905
fi
 
5906
 
 
5907
  RANLIB=$ac_ct_RANLIB
 
5908
else
 
5909
  RANLIB="$ac_cv_prog_RANLIB"
 
5910
fi
 
5911
 
 
5912
if test -n "$ac_tool_prefix"; then
 
5913
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5914
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5915
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5916
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5917
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5919
else
 
5920
  if test -n "$STRIP"; then
 
5921
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5922
else
 
5923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5924
for as_dir in $PATH
 
5925
do
 
5926
  IFS=$as_save_IFS
 
5927
  test -z "$as_dir" && as_dir=.
 
5928
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5929
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5930
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5931
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5932
    break 2
 
5933
  fi
 
5934
done
 
5935
done
 
5936
 
 
5937
fi
 
5938
fi
 
5939
STRIP=$ac_cv_prog_STRIP
 
5940
if test -n "$STRIP"; then
 
5941
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5942
echo "${ECHO_T}$STRIP" >&6
 
5943
else
 
5944
  echo "$as_me:$LINENO: result: no" >&5
 
5945
echo "${ECHO_T}no" >&6
 
5946
fi
 
5947
 
 
5948
fi
 
5949
if test -z "$ac_cv_prog_STRIP"; then
 
5950
  ac_ct_STRIP=$STRIP
 
5951
  # Extract the first word of "strip", so it can be a program name with args.
 
5952
set dummy strip; ac_word=$2
 
5953
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5954
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5955
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5957
else
 
5958
  if test -n "$ac_ct_STRIP"; then
 
5959
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5960
else
 
5961
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5962
for as_dir in $PATH
 
5963
do
 
5964
  IFS=$as_save_IFS
 
5965
  test -z "$as_dir" && as_dir=.
 
5966
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5967
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5968
    ac_cv_prog_ac_ct_STRIP="strip"
 
5969
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5970
    break 2
 
5971
  fi
 
5972
done
 
5973
done
 
5974
 
 
5975
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5976
fi
 
5977
fi
 
5978
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5979
if test -n "$ac_ct_STRIP"; then
 
5980
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5981
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5982
else
 
5983
  echo "$as_me:$LINENO: result: no" >&5
 
5984
echo "${ECHO_T}no" >&6
 
5985
fi
 
5986
 
 
5987
  STRIP=$ac_ct_STRIP
 
5988
else
 
5989
  STRIP="$ac_cv_prog_STRIP"
 
5990
fi
 
5991
 
 
5992
 
 
5993
old_CC="$CC"
 
5994
old_CFLAGS="$CFLAGS"
 
5995
 
 
5996
# Set sane defaults for various variables
 
5997
test -z "$AR" && AR=ar
 
5998
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5999
test -z "$AS" && AS=as
 
6000
test -z "$CC" && CC=cc
 
6001
test -z "$LTCC" && LTCC=$CC
 
6002
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6003
test -z "$LD" && LD=ld
 
6004
test -z "$LN_S" && LN_S="ln -s"
 
6005
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6006
test -z "$NM" && NM=nm
 
6007
test -z "$SED" && SED=sed
 
6008
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6009
test -z "$RANLIB" && RANLIB=:
 
6010
test -z "$STRIP" && STRIP=:
 
6011
test -z "$ac_objext" && ac_objext=o
 
6012
 
 
6013
# Determine commands to create old-style static archives.
 
6014
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6015
old_postinstall_cmds='chmod 644 $oldlib'
 
6016
old_postuninstall_cmds=
 
6017
 
 
6018
if test -n "$RANLIB"; then
 
6019
  case $host_os in
 
6020
  openbsd*)
 
6021
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6022
    ;;
 
6023
  *)
 
6024
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6025
    ;;
 
6026
  esac
 
6027
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6028
fi
 
6029
 
 
6030
# Only perform the check for file, if the check method requires it
 
6031
case $deplibs_check_method in
 
6032
file_magic*)
 
6033
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6034
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6035
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6036
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6037
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6038
else
 
6039
  case $MAGIC_CMD in
 
6040
[\\/*] |  ?:[\\/]*)
 
6041
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6042
  ;;
 
6043
*)
 
6044
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6045
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6046
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6047
  for ac_dir in $ac_dummy; do
 
6048
    IFS="$lt_save_ifs"
 
6049
    test -z "$ac_dir" && ac_dir=.
 
6050
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6051
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6052
      if test -n "$file_magic_test_file"; then
 
6053
        case $deplibs_check_method in
 
6054
        "file_magic "*)
 
6055
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6056
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6057
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6058
            $EGREP "$file_magic_regex" > /dev/null; then
 
6059
            :
 
6060
          else
 
6061
            cat <<EOF 1>&2
 
6062
 
 
6063
*** Warning: the command libtool uses to detect shared libraries,
 
6064
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6065
*** The result is that libtool may fail to recognize shared libraries
 
6066
*** as such.  This will affect the creation of libtool libraries that
 
6067
*** depend on shared libraries, but programs linked with such libtool
 
6068
*** libraries will work regardless of this problem.  Nevertheless, you
 
6069
*** may want to report the problem to your system manager and/or to
 
6070
*** bug-libtool@gnu.org
 
6071
 
 
6072
EOF
 
6073
          fi ;;
 
6074
        esac
 
6075
      fi
 
6076
      break
 
6077
    fi
 
6078
  done
 
6079
  IFS="$lt_save_ifs"
 
6080
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6081
  ;;
 
6082
esac
 
6083
fi
 
6084
 
 
6085
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6086
if test -n "$MAGIC_CMD"; then
 
6087
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6088
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6089
else
 
6090
  echo "$as_me:$LINENO: result: no" >&5
 
6091
echo "${ECHO_T}no" >&6
 
6092
fi
 
6093
 
 
6094
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6095
  if test -n "$ac_tool_prefix"; then
 
6096
    echo "$as_me:$LINENO: checking for file" >&5
 
6097
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6098
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6100
else
 
6101
  case $MAGIC_CMD in
 
6102
[\\/*] |  ?:[\\/]*)
 
6103
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6104
  ;;
 
6105
*)
 
6106
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6107
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6108
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6109
  for ac_dir in $ac_dummy; do
 
6110
    IFS="$lt_save_ifs"
 
6111
    test -z "$ac_dir" && ac_dir=.
 
6112
    if test -f $ac_dir/file; then
 
6113
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6114
      if test -n "$file_magic_test_file"; then
 
6115
        case $deplibs_check_method in
 
6116
        "file_magic "*)
 
6117
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6118
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6119
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6120
            $EGREP "$file_magic_regex" > /dev/null; then
 
6121
            :
 
6122
          else
 
6123
            cat <<EOF 1>&2
 
6124
 
 
6125
*** Warning: the command libtool uses to detect shared libraries,
 
6126
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6127
*** The result is that libtool may fail to recognize shared libraries
 
6128
*** as such.  This will affect the creation of libtool libraries that
 
6129
*** depend on shared libraries, but programs linked with such libtool
 
6130
*** libraries will work regardless of this problem.  Nevertheless, you
 
6131
*** may want to report the problem to your system manager and/or to
 
6132
*** bug-libtool@gnu.org
 
6133
 
 
6134
EOF
 
6135
          fi ;;
 
6136
        esac
 
6137
      fi
 
6138
      break
 
6139
    fi
 
6140
  done
 
6141
  IFS="$lt_save_ifs"
 
6142
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6143
  ;;
 
6144
esac
 
6145
fi
 
6146
 
 
6147
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6148
if test -n "$MAGIC_CMD"; then
 
6149
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6150
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6151
else
 
6152
  echo "$as_me:$LINENO: result: no" >&5
 
6153
echo "${ECHO_T}no" >&6
 
6154
fi
 
6155
 
 
6156
  else
 
6157
    MAGIC_CMD=:
 
6158
  fi
 
6159
fi
 
6160
 
 
6161
  fi
 
6162
  ;;
 
6163
esac
 
6164
 
 
6165
enable_dlopen=no
 
6166
enable_win32_dll=no
 
6167
 
 
6168
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6169
if test "${enable_libtool_lock+set}" = set; then
 
6170
  enableval="$enable_libtool_lock"
 
6171
 
 
6172
fi;
 
6173
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6174
 
 
6175
 
 
6176
# Check whether --with-pic or --without-pic was given.
 
6177
if test "${with_pic+set}" = set; then
 
6178
  withval="$with_pic"
 
6179
  pic_mode="$withval"
 
6180
else
 
6181
  pic_mode=default
 
6182
fi;
 
6183
test -z "$pic_mode" && pic_mode=default
 
6184
 
 
6185
# Use C for the default configuration in the libtool script
 
6186
tagname=
 
6187
lt_save_CC="$CC"
 
6188
ac_ext=c
 
6189
ac_cpp='$CPP $CPPFLAGS'
 
6190
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6191
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6192
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6193
 
 
6194
 
 
6195
# Source file extension for C test sources.
 
6196
ac_ext=c
 
6197
 
 
6198
# Object file extension for compiled C test sources.
 
6199
objext=o
 
6200
objext=$objext
 
6201
 
 
6202
# Code to be used in simple compile tests
 
6203
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6204
 
 
6205
# Code to be used in simple link tests
 
6206
lt_simple_link_test_code='int main(){return(0);}\n'
 
6207
 
 
6208
 
 
6209
# If no C compiler was specified, use CC.
 
6210
LTCC=${LTCC-"$CC"}
 
6211
 
 
6212
# Allow CC to be a program name with arguments.
 
6213
compiler=$CC
 
6214
 
 
6215
 
 
6216
#
 
6217
# Check for any special shared library compilation flags.
 
6218
#
 
6219
lt_prog_cc_shlib=
 
6220
if test "$GCC" = no; then
 
6221
  case $host_os in
 
6222
  sco3.2v5*)
 
6223
    lt_prog_cc_shlib='-belf'
 
6224
    ;;
 
6225
  esac
 
6226
fi
 
6227
if test -n "$lt_prog_cc_shlib"; then
 
6228
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6229
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6230
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
6231
  else
 
6232
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6233
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6234
    lt_cv_prog_cc_can_build_shared=no
 
6235
  fi
 
6236
fi
 
6237
 
 
6238
 
 
6239
#
 
6240
# Check to make sure the static flag actually works.
 
6241
#
 
6242
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6243
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6244
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6246
else
 
6247
  lt_prog_compiler_static_works=no
 
6248
   save_LDFLAGS="$LDFLAGS"
 
6249
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6250
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6251
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6252
     # The compiler can only warn and ignore the option if not recognized
 
6253
     # So say no if there are warnings
 
6254
     if test -s conftest.err; then
 
6255
       # Append any errors to the config.log.
 
6256
       cat conftest.err 1>&5
 
6257
     else
 
6258
       lt_prog_compiler_static_works=yes
 
6259
     fi
 
6260
   fi
 
6261
   $rm conftest*
 
6262
   LDFLAGS="$save_LDFLAGS"
 
6263
 
 
6264
fi
 
6265
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6266
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6267
 
 
6268
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6269
    :
 
6270
else
 
6271
    lt_prog_compiler_static=
 
6272
fi
 
6273
 
 
6274
 
 
6275
 
 
6276
 
 
6277
lt_prog_compiler_no_builtin_flag=
 
6278
 
 
6279
if test "$GCC" = yes; then
 
6280
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6281
 
 
6282
 
 
6283
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6284
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6285
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6287
else
 
6288
  lt_cv_prog_compiler_rtti_exceptions=no
 
6289
  ac_outfile=conftest.$ac_objext
 
6290
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6291
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6292
   # Insert the option either (1) after the last *FLAGS variable, or
 
6293
   # (2) before a word containing "conftest.", or (3) at the end.
 
6294
   # Note that $ac_compile itself does not contain backslashes and begins
 
6295
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6296
   # The option is referenced via a variable to avoid confusing sed.
 
6297
   lt_compile=`echo "$ac_compile" | $SED \
 
6298
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6299
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6300
   -e 's:$: $lt_compiler_flag:'`
 
6301
   (eval echo "\"\$as_me:6301: $lt_compile\"" >&5)
 
6302
   (eval "$lt_compile" 2>conftest.err)
 
6303
   ac_status=$?
 
6304
   cat conftest.err >&5
 
6305
   echo "$as_me:6305: \$? = $ac_status" >&5
 
6306
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6307
     # The compiler can only warn and ignore the option if not recognized
 
6308
     # So say no if there are warnings
 
6309
     if test ! -s conftest.err; then
 
6310
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6311
     fi
 
6312
   fi
 
6313
   $rm conftest*
 
6314
 
 
6315
fi
 
6316
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6317
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6318
 
 
6319
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6320
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6321
else
 
6322
    :
 
6323
fi
 
6324
 
 
6325
fi
 
6326
 
 
6327
lt_prog_compiler_wl=
 
6328
lt_prog_compiler_pic=
 
6329
lt_prog_compiler_static=
 
6330
 
 
6331
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6332
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6333
 
 
6334
  if test "$GCC" = yes; then
 
6335
    lt_prog_compiler_wl='-Wl,'
 
6336
    lt_prog_compiler_static='-static'
 
6337
 
 
6338
    case $host_os in
 
6339
      aix*)
 
6340
      # All AIX code is PIC.
 
6341
      if test "$host_cpu" = ia64; then
 
6342
        # AIX 5 now supports IA64 processor
 
6343
        lt_prog_compiler_static='-Bstatic'
 
6344
      fi
 
6345
      ;;
 
6346
 
 
6347
    amigaos*)
 
6348
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6349
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6350
      # like `-m68040'.
 
6351
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6352
      ;;
 
6353
 
 
6354
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6355
      # PIC is the default for these OSes.
 
6356
      ;;
 
6357
 
 
6358
    mingw* | pw32* | os2*)
 
6359
      # This hack is so that the source file can tell whether it is being
 
6360
      # built for inclusion in a dll (and should export symbols for example).
 
6361
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6362
      ;;
 
6363
 
 
6364
    darwin* | rhapsody*)
 
6365
      # PIC is the default on this platform
 
6366
      # Common symbols not allowed in MH_DYLIB files
 
6367
      lt_prog_compiler_pic='-fno-common'
 
6368
      ;;
 
6369
 
 
6370
    msdosdjgpp*)
 
6371
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6372
      # on systems that don't support them.
 
6373
      lt_prog_compiler_can_build_shared=no
 
6374
      enable_shared=no
 
6375
      ;;
 
6376
 
 
6377
    sysv4*MP*)
 
6378
      if test -d /usr/nec; then
 
6379
        lt_prog_compiler_pic=-Kconform_pic
 
6380
      fi
 
6381
      ;;
 
6382
 
 
6383
    hpux*)
 
6384
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6385
      # not for PA HP-UX.
 
6386
      case "$host_cpu" in
 
6387
      hppa*64*|ia64*)
 
6388
        # +Z the default
 
6389
        ;;
 
6390
      *)
 
6391
        lt_prog_compiler_pic='-fPIC'
 
6392
        ;;
 
6393
      esac
 
6394
      ;;
 
6395
 
 
6396
    *)
 
6397
      lt_prog_compiler_pic='-fPIC'
 
6398
      ;;
 
6399
    esac
 
6400
  else
 
6401
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6402
    case $host_os in
 
6403
    aix*)
 
6404
      lt_prog_compiler_wl='-Wl,'
 
6405
      if test "$host_cpu" = ia64; then
 
6406
        # AIX 5 now supports IA64 processor
 
6407
        lt_prog_compiler_static='-Bstatic'
 
6408
      else
 
6409
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6410
      fi
 
6411
      ;;
 
6412
 
 
6413
    mingw* | pw32* | os2*)
 
6414
      # This hack is so that the source file can tell whether it is being
 
6415
      # built for inclusion in a dll (and should export symbols for example).
 
6416
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6417
      ;;
 
6418
 
 
6419
    hpux9* | hpux10* | hpux11*)
 
6420
      lt_prog_compiler_wl='-Wl,'
 
6421
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6422
      # not for PA HP-UX.
 
6423
      case "$host_cpu" in
 
6424
      hppa*64*|ia64*)
 
6425
        # +Z the default
 
6426
        ;;
 
6427
      *)
 
6428
        lt_prog_compiler_pic='+Z'
 
6429
        ;;
 
6430
      esac
 
6431
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6432
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6433
      ;;
 
6434
 
 
6435
    irix5* | irix6* | nonstopux*)
 
6436
      lt_prog_compiler_wl='-Wl,'
 
6437
      # PIC (with -KPIC) is the default.
 
6438
      lt_prog_compiler_static='-non_shared'
 
6439
      ;;
 
6440
 
 
6441
    newsos6)
 
6442
      lt_prog_compiler_pic='-KPIC'
 
6443
      lt_prog_compiler_static='-Bstatic'
 
6444
      ;;
 
6445
 
 
6446
    linux*)
 
6447
      case $CC in
 
6448
      icc* | ecc*)
 
6449
        lt_prog_compiler_wl='-Wl,'
 
6450
        lt_prog_compiler_pic='-KPIC'
 
6451
        lt_prog_compiler_static='-static'
 
6452
        ;;
 
6453
      ccc*)
 
6454
        lt_prog_compiler_wl='-Wl,'
 
6455
        # All Alpha code is PIC.
 
6456
        lt_prog_compiler_static='-non_shared'
 
6457
        ;;
 
6458
      esac
 
6459
      ;;
 
6460
 
 
6461
    osf3* | osf4* | osf5*)
 
6462
      lt_prog_compiler_wl='-Wl,'
 
6463
      # All OSF/1 code is PIC.
 
6464
      lt_prog_compiler_static='-non_shared'
 
6465
      ;;
 
6466
 
 
6467
    sco3.2v5*)
 
6468
      lt_prog_compiler_pic='-Kpic'
 
6469
      lt_prog_compiler_static='-dn'
 
6470
      ;;
 
6471
 
 
6472
    solaris*)
 
6473
      lt_prog_compiler_wl='-Wl,'
 
6474
      lt_prog_compiler_pic='-KPIC'
 
6475
      lt_prog_compiler_static='-Bstatic'
 
6476
      ;;
 
6477
 
 
6478
    sunos4*)
 
6479
      lt_prog_compiler_wl='-Qoption ld '
 
6480
      lt_prog_compiler_pic='-PIC'
 
6481
      lt_prog_compiler_static='-Bstatic'
 
6482
      ;;
 
6483
 
 
6484
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6485
      lt_prog_compiler_wl='-Wl,'
 
6486
      lt_prog_compiler_pic='-KPIC'
 
6487
      lt_prog_compiler_static='-Bstatic'
 
6488
      ;;
 
6489
 
 
6490
    sysv4*MP*)
 
6491
      if test -d /usr/nec ;then
 
6492
        lt_prog_compiler_pic='-Kconform_pic'
 
6493
        lt_prog_compiler_static='-Bstatic'
 
6494
      fi
 
6495
      ;;
 
6496
 
 
6497
    uts4*)
 
6498
      lt_prog_compiler_pic='-pic'
 
6499
      lt_prog_compiler_static='-Bstatic'
 
6500
      ;;
 
6501
 
 
6502
    *)
 
6503
      lt_prog_compiler_can_build_shared=no
 
6504
      ;;
 
6505
    esac
 
6506
  fi
 
6507
 
 
6508
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6509
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6510
 
 
6511
#
 
6512
# Check to make sure the PIC flag actually works.
 
6513
#
 
6514
if test -n "$lt_prog_compiler_pic"; then
 
6515
 
 
6516
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6517
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6518
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6520
else
 
6521
  lt_prog_compiler_pic_works=no
 
6522
  ac_outfile=conftest.$ac_objext
 
6523
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6524
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6525
   # Insert the option either (1) after the last *FLAGS variable, or
 
6526
   # (2) before a word containing "conftest.", or (3) at the end.
 
6527
   # Note that $ac_compile itself does not contain backslashes and begins
 
6528
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6529
   # The option is referenced via a variable to avoid confusing sed.
 
6530
   lt_compile=`echo "$ac_compile" | $SED \
 
6531
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6532
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6533
   -e 's:$: $lt_compiler_flag:'`
 
6534
   (eval echo "\"\$as_me:6534: $lt_compile\"" >&5)
 
6535
   (eval "$lt_compile" 2>conftest.err)
 
6536
   ac_status=$?
 
6537
   cat conftest.err >&5
 
6538
   echo "$as_me:6538: \$? = $ac_status" >&5
 
6539
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6540
     # The compiler can only warn and ignore the option if not recognized
 
6541
     # So say no if there are warnings
 
6542
     if test ! -s conftest.err; then
 
6543
       lt_prog_compiler_pic_works=yes
 
6544
     fi
 
6545
   fi
 
6546
   $rm conftest*
 
6547
 
 
6548
fi
 
6549
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6550
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6551
 
 
6552
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6553
    case $lt_prog_compiler_pic in
 
6554
     "" | " "*) ;;
 
6555
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6556
     esac
 
6557
else
 
6558
    lt_prog_compiler_pic=
 
6559
     lt_prog_compiler_can_build_shared=no
 
6560
fi
 
6561
 
 
6562
fi
 
6563
case "$host_os" in
 
6564
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6565
  *djgpp*)
 
6566
    lt_prog_compiler_pic=
 
6567
    ;;
 
6568
  *)
 
6569
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6570
    ;;
 
6571
esac
 
6572
 
 
6573
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6574
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6575
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6577
else
 
6578
  lt_cv_prog_compiler_c_o=no
 
6579
   $rm -r conftest 2>/dev/null
 
6580
   mkdir conftest
 
6581
   cd conftest
 
6582
   mkdir out
 
6583
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6584
 
 
6585
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6586
   # Insert the option either (1) after the last *FLAGS variable, or
 
6587
   # (2) before a word containing "conftest.", or (3) at the end.
 
6588
   # Note that $ac_compile itself does not contain backslashes and begins
 
6589
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6590
   lt_compile=`echo "$ac_compile" | $SED \
 
6591
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6592
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6593
   -e 's:$: $lt_compiler_flag:'`
 
6594
   (eval echo "\"\$as_me:6594: $lt_compile\"" >&5)
 
6595
   (eval "$lt_compile" 2>out/conftest.err)
 
6596
   ac_status=$?
 
6597
   cat out/conftest.err >&5
 
6598
   echo "$as_me:6598: \$? = $ac_status" >&5
 
6599
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6600
   then
 
6601
     # The compiler can only warn and ignore the option if not recognized
 
6602
     # So say no if there are warnings
 
6603
     if test ! -s out/conftest.err; then
 
6604
       lt_cv_prog_compiler_c_o=yes
 
6605
     fi
 
6606
   fi
 
6607
   chmod u+w .
 
6608
   $rm conftest*
 
6609
   # SGI C++ compiler will create directory out/ii_files/ for
 
6610
   # template instantiation
 
6611
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6612
   $rm out/* && rmdir out
 
6613
   cd ..
 
6614
   rmdir conftest
 
6615
   $rm conftest*
 
6616
 
 
6617
fi
 
6618
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6619
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6620
 
 
6621
 
 
6622
hard_links="nottested"
 
6623
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6624
  # do not overwrite the value of need_locks provided by the user
 
6625
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6626
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6627
  hard_links=yes
 
6628
  $rm conftest*
 
6629
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6630
  touch conftest.a
 
6631
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6632
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6633
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6634
echo "${ECHO_T}$hard_links" >&6
 
6635
  if test "$hard_links" = no; then
 
6636
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6637
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6638
    need_locks=warn
 
6639
  fi
 
6640
else
 
6641
  need_locks=no
 
6642
fi
 
6643
 
 
6644
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6645
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6646
 
 
6647
  runpath_var=
 
6648
  allow_undefined_flag=
 
6649
  enable_shared_with_static_runtimes=no
 
6650
  archive_cmds=
 
6651
  archive_expsym_cmds=
 
6652
  old_archive_From_new_cmds=
 
6653
  old_archive_from_expsyms_cmds=
 
6654
  export_dynamic_flag_spec=
 
6655
  whole_archive_flag_spec=
 
6656
  thread_safe_flag_spec=
 
6657
  hardcode_libdir_flag_spec=
 
6658
  hardcode_libdir_flag_spec_ld=
 
6659
  hardcode_libdir_separator=
 
6660
  hardcode_direct=no
 
6661
  hardcode_minus_L=no
 
6662
  hardcode_shlibpath_var=unsupported
 
6663
  link_all_deplibs=unknown
 
6664
  hardcode_automatic=no
 
6665
  module_cmds=
 
6666
  module_expsym_cmds=
 
6667
  always_export_symbols=no
 
6668
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6669
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6670
  # included in the symbol list
 
6671
  include_expsyms=
 
6672
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6673
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6674
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6675
  # as well as any symbol that contains `d'.
 
6676
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6677
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6678
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6679
  # the symbol is explicitly referenced.  Since portable code cannot
 
6680
  # rely on this symbol name, it's probably fine to never include it in
 
6681
  # preloaded symbol tables.
 
6682
  extract_expsyms_cmds=
 
6683
 
 
6684
  case $host_os in
 
6685
  cygwin* | mingw* | pw32*)
 
6686
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6687
    # When not using gcc, we currently assume that we are using
 
6688
    # Microsoft Visual C++.
 
6689
    if test "$GCC" != yes; then
 
6690
      with_gnu_ld=no
 
6691
    fi
 
6692
    ;;
 
6693
  openbsd*)
 
6694
    with_gnu_ld=no
 
6695
    ;;
 
6696
  esac
 
6697
 
 
6698
  ld_shlibs=yes
 
6699
  if test "$with_gnu_ld" = yes; then
 
6700
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6701
    wlarc='${wl}'
 
6702
 
 
6703
    # See if GNU ld supports shared libraries.
 
6704
    case $host_os in
 
6705
    aix3* | aix4* | aix5*)
 
6706
      # On AIX/PPC, the GNU linker is very broken
 
6707
      if test "$host_cpu" != ia64; then
 
6708
        ld_shlibs=no
 
6709
        cat <<EOF 1>&2
 
6710
 
 
6711
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6712
*** to be unable to reliably create shared libraries on AIX.
 
6713
*** Therefore, libtool is disabling shared libraries support.  If you
 
6714
*** really care for shared libraries, you may want to modify your PATH
 
6715
*** so that a non-GNU linker is found, and then restart.
 
6716
 
 
6717
EOF
 
6718
      fi
 
6719
      ;;
 
6720
 
 
6721
    amigaos*)
 
6722
      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)'
 
6723
      hardcode_libdir_flag_spec='-L$libdir'
 
6724
      hardcode_minus_L=yes
 
6725
 
 
6726
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6727
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6728
      # to version 4, is to share data among multiple programs linked
 
6729
      # with the same dynamic library.  Since this doesn't match the
 
6730
      # behavior of shared libraries on other platforms, we can't use
 
6731
      # them.
 
6732
      ld_shlibs=no
 
6733
      ;;
 
6734
 
 
6735
    beos*)
 
6736
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6737
        allow_undefined_flag=unsupported
 
6738
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6739
        # support --undefined.  This deserves some investigation.  FIXME
 
6740
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6741
      else
 
6742
        ld_shlibs=no
 
6743
      fi
 
6744
      ;;
 
6745
 
 
6746
    cygwin* | mingw* | pw32*)
 
6747
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6748
      # as there is no search path for DLLs.
 
6749
      hardcode_libdir_flag_spec='-L$libdir'
 
6750
      allow_undefined_flag=unsupported
 
6751
      always_export_symbols=no
 
6752
      enable_shared_with_static_runtimes=yes
 
6753
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6754
 
 
6755
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6756
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6757
        # If the export-symbols file already is a .def file (1st line
 
6758
        # is EXPORTS), use it as is; otherwise, prepend...
 
6759
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6760
          cp $export_symbols $output_objdir/$soname.def;
 
6761
        else
 
6762
          echo EXPORTS > $output_objdir/$soname.def;
 
6763
          cat $export_symbols >> $output_objdir/$soname.def;
 
6764
        fi~
 
6765
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6766
      else
 
6767
        ld_shlibs=no
 
6768
      fi
 
6769
      ;;
 
6770
 
 
6771
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6772
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6773
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6774
        wlarc=
 
6775
      else
 
6776
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6777
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6778
      fi
 
6779
      ;;
 
6780
 
 
6781
    solaris* | sysv5*)
 
6782
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6783
        ld_shlibs=no
 
6784
        cat <<EOF 1>&2
 
6785
 
 
6786
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6787
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6788
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6789
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6790
*** your PATH or compiler configuration so that the native linker is
 
6791
*** used, and then restart.
 
6792
 
 
6793
EOF
 
6794
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6795
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6796
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6797
      else
 
6798
        ld_shlibs=no
 
6799
      fi
 
6800
      ;;
 
6801
 
 
6802
    sunos4*)
 
6803
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6804
      wlarc=
 
6805
      hardcode_direct=yes
 
6806
      hardcode_shlibpath_var=no
 
6807
      ;;
 
6808
 
 
6809
  linux*)
 
6810
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6811
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6812
        archive_cmds="$tmp_archive_cmds"
 
6813
      supports_anon_versioning=no
 
6814
      case `$LD -v 2>/dev/null` in
 
6815
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6816
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6817
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6818
        *\ 2.11.*) ;; # other 2.11 versions
 
6819
        *) supports_anon_versioning=yes ;;
 
6820
      esac
 
6821
      if test $supports_anon_versioning = yes; then
 
6822
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6823
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6824
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
6825
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6826
      else
 
6827
        archive_expsym_cmds="$tmp_archive_cmds"
 
6828
      fi
 
6829
      link_all_deplibs=no
 
6830
    else
 
6831
      ld_shlibs=no
 
6832
    fi
 
6833
    ;;
 
6834
 
 
6835
    *)
 
6836
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6837
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6838
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6839
      else
 
6840
        ld_shlibs=no
 
6841
      fi
 
6842
      ;;
 
6843
    esac
 
6844
 
 
6845
    if test "$ld_shlibs" = yes; then
 
6846
      runpath_var=LD_RUN_PATH
 
6847
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6848
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
6849
      # ancient GNU ld didn't support --whole-archive et. al.
 
6850
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6851
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6852
      else
 
6853
        whole_archive_flag_spec=
 
6854
      fi
 
6855
    fi
 
6856
  else
 
6857
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6858
    case $host_os in
 
6859
    aix3*)
 
6860
      allow_undefined_flag=unsupported
 
6861
      always_export_symbols=yes
 
6862
      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'
 
6863
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6864
      # are no directories specified by -L.
 
6865
      hardcode_minus_L=yes
 
6866
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6867
        # Neither direct hardcoding nor static linking is supported with a
 
6868
        # broken collect2.
 
6869
        hardcode_direct=unsupported
 
6870
      fi
 
6871
      ;;
 
6872
 
 
6873
    aix4* | aix5*)
 
6874
      if test "$host_cpu" = ia64; then
 
6875
        # On IA64, the linker does run time linking by default, so we don't
 
6876
        # have to do anything special.
 
6877
        aix_use_runtimelinking=no
 
6878
        exp_sym_flag='-Bexport'
 
6879
        no_entry_flag=""
 
6880
      else
 
6881
        # If we're using GNU nm, then we don't want the "-C" option.
 
6882
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6883
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6884
          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'
 
6885
        else
 
6886
          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'
 
6887
        fi
 
6888
        aix_use_runtimelinking=no
 
6889
 
 
6890
        # Test if we are trying to use run time linking or normal
 
6891
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6892
        # need to do runtime linking.
 
6893
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6894
          for ld_flag in $LDFLAGS; do
 
6895
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6896
            aix_use_runtimelinking=yes
 
6897
            break
 
6898
          fi
 
6899
          done
 
6900
        esac
 
6901
 
 
6902
        exp_sym_flag='-bexport'
 
6903
        no_entry_flag='-bnoentry'
 
6904
      fi
 
6905
 
 
6906
      # When large executables or shared objects are built, AIX ld can
 
6907
      # have problems creating the table of contents.  If linking a library
 
6908
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6909
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6910
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6911
 
 
6912
      archive_cmds=''
 
6913
      hardcode_direct=yes
 
6914
      hardcode_libdir_separator=':'
 
6915
      link_all_deplibs=yes
 
6916
 
 
6917
      if test "$GCC" = yes; then
 
6918
        case $host_os in aix4.012|aix4.012.*)
 
6919
        # We only want to do this on AIX 4.2 and lower, the check
 
6920
        # below for broken collect2 doesn't work under 4.3+
 
6921
          collect2name=`${CC} -print-prog-name=collect2`
 
6922
          if test -f "$collect2name" && \
 
6923
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6924
          then
 
6925
          # We have reworked collect2
 
6926
          hardcode_direct=yes
 
6927
          else
 
6928
          # We have old collect2
 
6929
          hardcode_direct=unsupported
 
6930
          # It fails to find uninstalled libraries when the uninstalled
 
6931
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6932
          # to unsupported forces relinking
 
6933
          hardcode_minus_L=yes
 
6934
          hardcode_libdir_flag_spec='-L$libdir'
 
6935
          hardcode_libdir_separator=
 
6936
          fi
 
6937
        esac
 
6938
        shared_flag='-shared'
 
6939
      else
 
6940
        # not using gcc
 
6941
        if test "$host_cpu" = ia64; then
 
6942
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6943
        # chokes on -Wl,-G. The following line is correct:
 
6944
          shared_flag='-G'
 
6945
        else
 
6946
        if test "$aix_use_runtimelinking" = yes; then
 
6947
            shared_flag='${wl}-G'
 
6948
          else
 
6949
            shared_flag='${wl}-bM:SRE'
 
6950
        fi
 
6951
        fi
 
6952
      fi
 
6953
 
 
6954
      # It seems that -bexpall does not export symbols beginning with
 
6955
      # underscore (_), so it is better to generate a list of symbols to export.
 
6956
      always_export_symbols=yes
 
6957
      if test "$aix_use_runtimelinking" = yes; then
 
6958
        # Warning - without using the other runtime loading flags (-brtl),
 
6959
        # -berok will link without error, but may produce a broken library.
 
6960
        allow_undefined_flag='-berok'
 
6961
       # Determine the default libpath from the value encoded in an empty executable.
 
6962
       cat >conftest.$ac_ext <<_ACEOF
 
6963
/* confdefs.h.  */
 
6964
_ACEOF
 
6965
cat confdefs.h >>conftest.$ac_ext
 
6966
cat >>conftest.$ac_ext <<_ACEOF
 
6967
/* end confdefs.h.  */
 
6968
 
 
6969
int
 
6970
main ()
 
6971
{
 
6972
 
 
6973
  ;
 
6974
  return 0;
 
6975
}
 
6976
_ACEOF
 
6977
rm -f conftest.$ac_objext conftest$ac_exeext
 
6978
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6979
  (eval $ac_link) 2>conftest.er1
 
6980
  ac_status=$?
 
6981
  grep -v '^ *+' conftest.er1 >conftest.err
 
6982
  rm -f conftest.er1
 
6983
  cat conftest.err >&5
 
6984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6985
  (exit $ac_status); } &&
 
6986
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6988
  (eval $ac_try) 2>&5
 
6989
  ac_status=$?
 
6990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6991
  (exit $ac_status); }; } &&
 
6992
         { ac_try='test -s conftest$ac_exeext'
 
6993
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6994
  (eval $ac_try) 2>&5
 
6995
  ac_status=$?
 
6996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6997
  (exit $ac_status); }; }; then
 
6998
 
 
6999
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7000
}'`
 
7001
# Check for a 64-bit object if we didn't find anything.
 
7002
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; }
 
7003
}'`; fi
 
7004
else
 
7005
  echo "$as_me: failed program was:" >&5
 
7006
sed 's/^/| /' conftest.$ac_ext >&5
 
7007
 
 
7008
fi
 
7009
rm -f conftest.err conftest.$ac_objext \
 
7010
      conftest$ac_exeext conftest.$ac_ext
 
7011
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7012
 
 
7013
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7014
        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"
 
7015
       else
 
7016
        if test "$host_cpu" = ia64; then
 
7017
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7018
          allow_undefined_flag="-z nodefs"
 
7019
          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"
 
7020
        else
 
7021
         # Determine the default libpath from the value encoded in an empty executable.
 
7022
         cat >conftest.$ac_ext <<_ACEOF
 
7023
/* confdefs.h.  */
 
7024
_ACEOF
 
7025
cat confdefs.h >>conftest.$ac_ext
 
7026
cat >>conftest.$ac_ext <<_ACEOF
 
7027
/* end confdefs.h.  */
 
7028
 
 
7029
int
 
7030
main ()
 
7031
{
 
7032
 
 
7033
  ;
 
7034
  return 0;
 
7035
}
 
7036
_ACEOF
 
7037
rm -f conftest.$ac_objext conftest$ac_exeext
 
7038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7039
  (eval $ac_link) 2>conftest.er1
 
7040
  ac_status=$?
 
7041
  grep -v '^ *+' conftest.er1 >conftest.err
 
7042
  rm -f conftest.er1
 
7043
  cat conftest.err >&5
 
7044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7045
  (exit $ac_status); } &&
 
7046
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7047
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7048
  (eval $ac_try) 2>&5
 
7049
  ac_status=$?
 
7050
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7051
  (exit $ac_status); }; } &&
 
7052
         { ac_try='test -s conftest$ac_exeext'
 
7053
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7054
  (eval $ac_try) 2>&5
 
7055
  ac_status=$?
 
7056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7057
  (exit $ac_status); }; }; then
 
7058
 
 
7059
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7060
}'`
 
7061
# Check for a 64-bit object if we didn't find anything.
 
7062
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; }
 
7063
}'`; fi
 
7064
else
 
7065
  echo "$as_me: failed program was:" >&5
 
7066
sed 's/^/| /' conftest.$ac_ext >&5
 
7067
 
 
7068
fi
 
7069
rm -f conftest.err conftest.$ac_objext \
 
7070
      conftest$ac_exeext conftest.$ac_ext
 
7071
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7072
 
 
7073
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7074
          # Warning - without using the other run time loading flags,
 
7075
          # -berok will link without error, but may produce a broken library.
 
7076
          no_undefined_flag=' ${wl}-bernotok'
 
7077
          allow_undefined_flag=' ${wl}-berok'
 
7078
          # -bexpall does not export symbols beginning with underscore (_)
 
7079
          always_export_symbols=yes
 
7080
          # Exported symbols can be pulled into shared objects from archives
 
7081
          whole_archive_flag_spec=' '
 
7082
          archive_cmds_need_lc=yes
 
7083
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7084
          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'
 
7085
        fi
 
7086
      fi
 
7087
      ;;
 
7088
 
 
7089
    amigaos*)
 
7090
      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)'
 
7091
      hardcode_libdir_flag_spec='-L$libdir'
 
7092
      hardcode_minus_L=yes
 
7093
      # see comment about different semantics on the GNU ld section
 
7094
      ld_shlibs=no
 
7095
      ;;
 
7096
 
 
7097
    bsdi4*)
 
7098
      export_dynamic_flag_spec=-rdynamic
 
7099
      ;;
 
7100
 
 
7101
    cygwin* | mingw* | pw32*)
 
7102
      # When not using gcc, we currently assume that we are using
 
7103
      # Microsoft Visual C++.
 
7104
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7105
      # no search path for DLLs.
 
7106
      hardcode_libdir_flag_spec=' '
 
7107
      allow_undefined_flag=unsupported
 
7108
      # Tell ltmain to make .lib files, not .a files.
 
7109
      libext=lib
 
7110
      # Tell ltmain to make .dll files, not .so files.
 
7111
      shrext_cmds=".dll"
 
7112
      # FIXME: Setting linknames here is a bad hack.
 
7113
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7114
      # The linker will automatically build a .lib file if we build a DLL.
 
7115
      old_archive_From_new_cmds='true'
 
7116
      # FIXME: Should let the user specify the lib program.
 
7117
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7118
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7119
      enable_shared_with_static_runtimes=yes
 
7120
      ;;
 
7121
 
 
7122
    darwin* | rhapsody*)
 
7123
    if test "$GXX" = yes ; then
 
7124
      archive_cmds_need_lc=no
 
7125
      case "$host_os" in
 
7126
      rhapsody* | darwin1.[012])
 
7127
        allow_undefined_flag='-undefined suppress'
 
7128
        ;;
 
7129
      *) # Darwin 1.3 on
 
7130
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7131
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
7132
      else
 
7133
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
7134
          10.[012])
 
7135
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
7136
            ;;
 
7137
          10.*)
 
7138
            allow_undefined_flag='-undefined dynamic_lookup'
 
7139
            ;;
 
7140
        esac
 
7141
      fi
 
7142
        ;;
 
7143
      esac
 
7144
        lt_int_apple_cc_single_mod=no
 
7145
        output_verbose_link_cmd='echo'
 
7146
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
7147
          lt_int_apple_cc_single_mod=yes
 
7148
        fi
 
7149
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7150
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7151
        else
 
7152
        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'
 
7153
      fi
 
7154
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7155
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7156
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7157
          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}'
 
7158
        else
 
7159
          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}'
 
7160
        fi
 
7161
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7162
      hardcode_direct=no
 
7163
      hardcode_automatic=yes
 
7164
      hardcode_shlibpath_var=unsupported
 
7165
      whole_archive_flag_spec='-all_load $convenience'
 
7166
      link_all_deplibs=yes
 
7167
    else
 
7168
      ld_shlibs=no
 
7169
    fi
 
7170
      ;;
 
7171
 
 
7172
    dgux*)
 
7173
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7174
      hardcode_libdir_flag_spec='-L$libdir'
 
7175
      hardcode_shlibpath_var=no
 
7176
      ;;
 
7177
 
 
7178
    freebsd1*)
 
7179
      ld_shlibs=no
 
7180
      ;;
 
7181
 
 
7182
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7183
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7184
    # does not break anything, and helps significantly (at the cost of a little
 
7185
    # extra space).
 
7186
    freebsd2.2*)
 
7187
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7188
      hardcode_libdir_flag_spec='-R$libdir'
 
7189
      hardcode_direct=yes
 
7190
      hardcode_shlibpath_var=no
 
7191
      ;;
 
7192
 
 
7193
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7194
    freebsd2*)
 
7195
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7196
      hardcode_direct=yes
 
7197
      hardcode_minus_L=yes
 
7198
      hardcode_shlibpath_var=no
 
7199
      ;;
 
7200
 
 
7201
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7202
    freebsd* | kfreebsd*-gnu)
 
7203
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7204
      hardcode_libdir_flag_spec='-R$libdir'
 
7205
      hardcode_direct=yes
 
7206
      hardcode_shlibpath_var=no
 
7207
      ;;
 
7208
 
 
7209
    hpux9*)
 
7210
      if test "$GCC" = yes; then
 
7211
        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'
 
7212
      else
 
7213
        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'
 
7214
      fi
 
7215
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7216
      hardcode_libdir_separator=:
 
7217
      hardcode_direct=yes
 
7218
 
 
7219
      # hardcode_minus_L: Not really in the search PATH,
 
7220
      # but as the default location of the library.
 
7221
      hardcode_minus_L=yes
 
7222
      export_dynamic_flag_spec='${wl}-E'
 
7223
      ;;
 
7224
 
 
7225
    hpux10* | hpux11*)
 
7226
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7227
        case "$host_cpu" in
 
7228
        hppa*64*|ia64*)
 
7229
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7230
          ;;
 
7231
        *)
 
7232
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7233
          ;;
 
7234
        esac
 
7235
      else
 
7236
        case "$host_cpu" in
 
7237
        hppa*64*|ia64*)
 
7238
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7239
          ;;
 
7240
        *)
 
7241
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7242
          ;;
 
7243
        esac
 
7244
      fi
 
7245
      if test "$with_gnu_ld" = no; then
 
7246
        case "$host_cpu" in
 
7247
        hppa*64*)
 
7248
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7249
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7250
          hardcode_libdir_separator=:
 
7251
          hardcode_direct=no
 
7252
          hardcode_shlibpath_var=no
 
7253
          ;;
 
7254
        ia64*)
 
7255
          hardcode_libdir_flag_spec='-L$libdir'
 
7256
          hardcode_direct=no
 
7257
          hardcode_shlibpath_var=no
 
7258
 
 
7259
          # hardcode_minus_L: Not really in the search PATH,
 
7260
          # but as the default location of the library.
 
7261
          hardcode_minus_L=yes
 
7262
          ;;
 
7263
        *)
 
7264
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7265
          hardcode_libdir_separator=:
 
7266
          hardcode_direct=yes
 
7267
          export_dynamic_flag_spec='${wl}-E'
 
7268
 
 
7269
          # hardcode_minus_L: Not really in the search PATH,
 
7270
          # but as the default location of the library.
 
7271
          hardcode_minus_L=yes
 
7272
          ;;
 
7273
        esac
 
7274
      fi
 
7275
      ;;
 
7276
 
 
7277
    irix5* | irix6* | nonstopux*)
 
7278
      if test "$GCC" = yes; then
 
7279
        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'
 
7280
      else
 
7281
        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'
 
7282
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7283
      fi
 
7284
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7285
      hardcode_libdir_separator=:
 
7286
      link_all_deplibs=yes
 
7287
      ;;
 
7288
 
 
7289
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7290
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7291
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7292
      else
 
7293
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7294
      fi
 
7295
      hardcode_libdir_flag_spec='-R$libdir'
 
7296
      hardcode_direct=yes
 
7297
      hardcode_shlibpath_var=no
 
7298
      ;;
 
7299
 
 
7300
    newsos6)
 
7301
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7302
      hardcode_direct=yes
 
7303
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7304
      hardcode_libdir_separator=:
 
7305
      hardcode_shlibpath_var=no
 
7306
      ;;
 
7307
 
 
7308
    openbsd*)
 
7309
      hardcode_direct=yes
 
7310
      hardcode_shlibpath_var=no
 
7311
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7312
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7313
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7314
        export_dynamic_flag_spec='${wl}-E'
 
7315
      else
 
7316
       case $host_os in
 
7317
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7318
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7319
           hardcode_libdir_flag_spec='-R$libdir'
 
7320
           ;;
 
7321
         *)
 
7322
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7323
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7324
           ;;
 
7325
       esac
 
7326
      fi
 
7327
      ;;
 
7328
 
 
7329
    os2*)
 
7330
      hardcode_libdir_flag_spec='-L$libdir'
 
7331
      hardcode_minus_L=yes
 
7332
      allow_undefined_flag=unsupported
 
7333
      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'
 
7334
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7335
      ;;
 
7336
 
 
7337
    osf3*)
 
7338
      if test "$GCC" = yes; then
 
7339
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7340
        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'
 
7341
      else
 
7342
        allow_undefined_flag=' -expect_unresolved \*'
 
7343
        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'
 
7344
      fi
 
7345
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7346
      hardcode_libdir_separator=:
 
7347
      ;;
 
7348
 
 
7349
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7350
      if test "$GCC" = yes; then
 
7351
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7352
        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'
 
7353
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7354
      else
 
7355
        allow_undefined_flag=' -expect_unresolved \*'
 
7356
        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'
 
7357
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7358
        $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'
 
7359
 
 
7360
        # Both c and cxx compiler support -rpath directly
 
7361
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7362
      fi
 
7363
      hardcode_libdir_separator=:
 
7364
      ;;
 
7365
 
 
7366
    sco3.2v5*)
 
7367
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7368
      hardcode_shlibpath_var=no
 
7369
      export_dynamic_flag_spec='${wl}-Bexport'
 
7370
      runpath_var=LD_RUN_PATH
 
7371
      hardcode_runpath_var=yes
 
7372
      ;;
 
7373
 
 
7374
    solaris*)
 
7375
      no_undefined_flag=' -z text'
 
7376
      if test "$GCC" = yes; then
 
7377
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7378
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7379
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7380
      else
 
7381
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7382
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7383
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7384
      fi
 
7385
      hardcode_libdir_flag_spec='-R$libdir'
 
7386
      hardcode_shlibpath_var=no
 
7387
      case $host_os in
 
7388
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7389
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7390
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7391
      esac
 
7392
      link_all_deplibs=yes
 
7393
      ;;
 
7394
 
 
7395
    sunos4*)
 
7396
      if test "x$host_vendor" = xsequent; then
 
7397
        # Use $CC to link under sequent, because it throws in some extra .o
 
7398
        # files that make .init and .fini sections work.
 
7399
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7400
      else
 
7401
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7402
      fi
 
7403
      hardcode_libdir_flag_spec='-L$libdir'
 
7404
      hardcode_direct=yes
 
7405
      hardcode_minus_L=yes
 
7406
      hardcode_shlibpath_var=no
 
7407
      ;;
 
7408
 
 
7409
    sysv4)
 
7410
      case $host_vendor in
 
7411
        sni)
 
7412
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7413
          hardcode_direct=yes # is this really true???
 
7414
        ;;
 
7415
        siemens)
 
7416
          ## LD is ld it makes a PLAMLIB
 
7417
          ## CC just makes a GrossModule.
 
7418
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7419
          reload_cmds='$CC -r -o $output$reload_objs'
 
7420
          hardcode_direct=no
 
7421
        ;;
 
7422
        motorola)
 
7423
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7424
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7425
        ;;
 
7426
      esac
 
7427
      runpath_var='LD_RUN_PATH'
 
7428
      hardcode_shlibpath_var=no
 
7429
      ;;
 
7430
 
 
7431
    sysv4.3*)
 
7432
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7433
      hardcode_shlibpath_var=no
 
7434
      export_dynamic_flag_spec='-Bexport'
 
7435
      ;;
 
7436
 
 
7437
    sysv4*MP*)
 
7438
      if test -d /usr/nec; then
 
7439
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7440
        hardcode_shlibpath_var=no
 
7441
        runpath_var=LD_RUN_PATH
 
7442
        hardcode_runpath_var=yes
 
7443
        ld_shlibs=yes
 
7444
      fi
 
7445
      ;;
 
7446
 
 
7447
    sysv4.2uw2*)
 
7448
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7449
      hardcode_direct=yes
 
7450
      hardcode_minus_L=no
 
7451
      hardcode_shlibpath_var=no
 
7452
      hardcode_runpath_var=yes
 
7453
      runpath_var=LD_RUN_PATH
 
7454
      ;;
 
7455
 
 
7456
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7457
      no_undefined_flag='${wl}-z ${wl}text'
 
7458
      if test "$GCC" = yes; then
 
7459
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7460
      else
 
7461
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7462
      fi
 
7463
      runpath_var='LD_RUN_PATH'
 
7464
      hardcode_shlibpath_var=no
 
7465
      ;;
 
7466
 
 
7467
    sysv5*)
 
7468
      no_undefined_flag=' -z text'
 
7469
      # $CC -shared without GNU ld will not create a library from C++
 
7470
      # object files and a static libstdc++, better avoid it by now
 
7471
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7472
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7473
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7474
      hardcode_libdir_flag_spec=
 
7475
      hardcode_shlibpath_var=no
 
7476
      runpath_var='LD_RUN_PATH'
 
7477
      ;;
 
7478
 
 
7479
    uts4*)
 
7480
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7481
      hardcode_libdir_flag_spec='-L$libdir'
 
7482
      hardcode_shlibpath_var=no
 
7483
      ;;
 
7484
 
 
7485
    *)
 
7486
      ld_shlibs=no
 
7487
      ;;
 
7488
    esac
 
7489
  fi
 
7490
 
 
7491
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7492
echo "${ECHO_T}$ld_shlibs" >&6
 
7493
test "$ld_shlibs" = no && can_build_shared=no
 
7494
 
 
7495
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7496
if test "$GCC" = yes; then
 
7497
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7498
fi
 
7499
 
 
7500
#
 
7501
# Do we need to explicitly link libc?
 
7502
#
 
7503
case "x$archive_cmds_need_lc" in
 
7504
x|xyes)
 
7505
  # Assume -lc should be added
 
7506
  archive_cmds_need_lc=yes
 
7507
 
 
7508
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7509
    case $archive_cmds in
 
7510
    *'~'*)
 
7511
      # FIXME: we may have to deal with multi-command sequences.
 
7512
      ;;
 
7513
    '$CC '*)
 
7514
      # Test whether the compiler implicitly links with -lc since on some
 
7515
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7516
      # to ld, don't add -lc before -lgcc.
 
7517
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7518
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7519
      $rm conftest*
 
7520
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7521
 
 
7522
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7523
  (eval $ac_compile) 2>&5
 
7524
  ac_status=$?
 
7525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7526
  (exit $ac_status); } 2>conftest.err; then
 
7527
        soname=conftest
 
7528
        lib=conftest
 
7529
        libobjs=conftest.$ac_objext
 
7530
        deplibs=
 
7531
        wl=$lt_prog_compiler_wl
 
7532
        compiler_flags=-v
 
7533
        linker_flags=-v
 
7534
        verstring=
 
7535
        output_objdir=.
 
7536
        libname=conftest
 
7537
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7538
        allow_undefined_flag=
 
7539
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7540
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7541
  ac_status=$?
 
7542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7543
  (exit $ac_status); }
 
7544
        then
 
7545
          archive_cmds_need_lc=no
 
7546
        else
 
7547
          archive_cmds_need_lc=yes
 
7548
        fi
 
7549
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7550
      else
 
7551
        cat conftest.err 1>&5
 
7552
      fi
 
7553
      $rm conftest*
 
7554
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7555
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7556
      ;;
 
7557
    esac
 
7558
  fi
 
7559
  ;;
 
7560
esac
 
7561
 
 
7562
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7563
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7564
library_names_spec=
 
7565
libname_spec='lib$name'
 
7566
soname_spec=
 
7567
shrext_cmds=".so"
 
7568
postinstall_cmds=
 
7569
postuninstall_cmds=
 
7570
finish_cmds=
 
7571
finish_eval=
 
7572
shlibpath_var=
 
7573
shlibpath_overrides_runpath=unknown
 
7574
version_type=none
 
7575
dynamic_linker="$host_os ld.so"
 
7576
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7577
if test "$GCC" = yes; then
 
7578
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7579
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7580
    # if the path contains ";" then we assume it to be the separator
 
7581
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7582
    # assumed that no part of a normal pathname contains ";" but that should
 
7583
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7584
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7585
  else
 
7586
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7587
  fi
 
7588
else
 
7589
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7590
fi
 
7591
need_lib_prefix=unknown
 
7592
hardcode_into_libs=no
 
7593
 
 
7594
# when you set need_version to no, make sure it does not cause -set_version
 
7595
# flags to be left without arguments
 
7596
need_version=unknown
 
7597
 
 
7598
case $host_os in
 
7599
aix3*)
 
7600
  version_type=linux
 
7601
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7602
  shlibpath_var=LIBPATH
 
7603
 
 
7604
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7605
  soname_spec='${libname}${release}${shared_ext}$major'
 
7606
  ;;
 
7607
 
 
7608
aix4* | aix5*)
 
7609
  version_type=linux
 
7610
  need_lib_prefix=no
 
7611
  need_version=no
 
7612
  hardcode_into_libs=yes
 
7613
  if test "$host_cpu" = ia64; then
 
7614
    # AIX 5 supports IA64
 
7615
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7616
    shlibpath_var=LD_LIBRARY_PATH
 
7617
  else
 
7618
    # With GCC up to 2.95.x, collect2 would create an import file
 
7619
    # for dependence libraries.  The import file would start with
 
7620
    # the line `#! .'.  This would cause the generated library to
 
7621
    # depend on `.', always an invalid library.  This was fixed in
 
7622
    # development snapshots of GCC prior to 3.0.
 
7623
    case $host_os in
 
7624
      aix4 | aix4.[01] | aix4.[01].*)
 
7625
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7626
           echo ' yes '
 
7627
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7628
        :
 
7629
      else
 
7630
        can_build_shared=no
 
7631
      fi
 
7632
      ;;
 
7633
    esac
 
7634
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7635
    # soname into executable. Probably we can add versioning support to
 
7636
    # collect2, so additional links can be useful in future.
 
7637
    if test "$aix_use_runtimelinking" = yes; then
 
7638
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7639
      # instead of lib<name>.a to let people know that these are not
 
7640
      # typical AIX shared libraries.
 
7641
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7642
    else
 
7643
      # We preserve .a as extension for shared libraries through AIX4.2
 
7644
      # and later when we are not doing run time linking.
 
7645
      library_names_spec='${libname}${release}.a $libname.a'
 
7646
      soname_spec='${libname}${release}${shared_ext}$major'
 
7647
    fi
 
7648
    shlibpath_var=LIBPATH
 
7649
  fi
 
7650
  ;;
 
7651
 
 
7652
amigaos*)
 
7653
  library_names_spec='$libname.ixlibrary $libname.a'
 
7654
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7655
  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'
 
7656
  ;;
 
7657
 
 
7658
beos*)
 
7659
  library_names_spec='${libname}${shared_ext}'
 
7660
  dynamic_linker="$host_os ld.so"
 
7661
  shlibpath_var=LIBRARY_PATH
 
7662
  ;;
 
7663
 
 
7664
bsdi4*)
 
7665
  version_type=linux
 
7666
  need_version=no
 
7667
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7668
  soname_spec='${libname}${release}${shared_ext}$major'
 
7669
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7670
  shlibpath_var=LD_LIBRARY_PATH
 
7671
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7672
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7673
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7674
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7675
  # libtool to hard-code these into programs
 
7676
  ;;
 
7677
 
 
7678
cygwin* | mingw* | pw32*)
 
7679
  version_type=windows
 
7680
  shrext_cmds=".dll"
 
7681
  need_version=no
 
7682
  need_lib_prefix=no
 
7683
 
 
7684
  case $GCC,$host_os in
 
7685
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7686
    library_names_spec='$libname.dll.a'
 
7687
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7688
    postinstall_cmds='base_file=`basename \${file}`~
 
7689
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7690
      dldir=$destdir/`dirname \$dlpath`~
 
7691
      test -d \$dldir || mkdir -p \$dldir~
 
7692
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7693
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7694
      dlpath=$dir/\$dldll~
 
7695
       $rm \$dlpath'
 
7696
    shlibpath_overrides_runpath=yes
 
7697
 
 
7698
    case $host_os in
 
7699
    cygwin*)
 
7700
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7701
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7702
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7703
      ;;
 
7704
    mingw*)
 
7705
      # MinGW DLLs use traditional 'lib' prefix
 
7706
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7707
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7708
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7709
        # It is most probably a Windows format PATH printed by
 
7710
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7711
        # path with ; separators, and with drive letters. We can handle the
 
7712
        # drive letters (cygwin fileutils understands them), so leave them,
 
7713
        # especially as we might pass files found there to a mingw objdump,
 
7714
        # which wouldn't understand a cygwinified path. Ahh.
 
7715
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7716
      else
 
7717
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7718
      fi
 
7719
      ;;
 
7720
    pw32*)
 
7721
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7722
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7723
      ;;
 
7724
    esac
 
7725
    ;;
 
7726
 
 
7727
  *)
 
7728
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7729
    ;;
 
7730
  esac
 
7731
  dynamic_linker='Win32 ld.exe'
 
7732
  # FIXME: first we should search . and the directory the executable is in
 
7733
  shlibpath_var=PATH
 
7734
  ;;
 
7735
 
 
7736
darwin* | rhapsody*)
 
7737
  dynamic_linker="$host_os dyld"
 
7738
  version_type=darwin
 
7739
  need_lib_prefix=no
 
7740
  need_version=no
 
7741
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7742
  soname_spec='${libname}${release}${major}$shared_ext'
 
7743
  shlibpath_overrides_runpath=yes
 
7744
  shlibpath_var=DYLD_LIBRARY_PATH
 
7745
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7746
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7747
  if test "$GCC" = yes; then
 
7748
    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"`
 
7749
  else
 
7750
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7751
  fi
 
7752
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7753
  ;;
 
7754
 
 
7755
dgux*)
 
7756
  version_type=linux
 
7757
  need_lib_prefix=no
 
7758
  need_version=no
 
7759
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7760
  soname_spec='${libname}${release}${shared_ext}$major'
 
7761
  shlibpath_var=LD_LIBRARY_PATH
 
7762
  ;;
 
7763
 
 
7764
freebsd1*)
 
7765
  dynamic_linker=no
 
7766
  ;;
 
7767
 
 
7768
kfreebsd*-gnu)
 
7769
  version_type=linux
 
7770
  need_lib_prefix=no
 
7771
  need_version=no
 
7772
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7773
  soname_spec='${libname}${release}${shared_ext}$major'
 
7774
  shlibpath_var=LD_LIBRARY_PATH
 
7775
  shlibpath_overrides_runpath=no
 
7776
  hardcode_into_libs=yes
 
7777
  dynamic_linker='GNU ld.so'
 
7778
  ;;
 
7779
 
 
7780
freebsd*)
 
7781
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7782
  version_type=freebsd-$objformat
 
7783
  case $version_type in
 
7784
    freebsd-elf*)
 
7785
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7786
      need_version=no
 
7787
      need_lib_prefix=no
 
7788
      ;;
 
7789
    freebsd-*)
 
7790
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7791
      need_version=yes
 
7792
      ;;
 
7793
  esac
 
7794
  shlibpath_var=LD_LIBRARY_PATH
 
7795
  case $host_os in
 
7796
  freebsd2*)
 
7797
    shlibpath_overrides_runpath=yes
 
7798
    ;;
 
7799
  freebsd3.01* | freebsdelf3.01*)
 
7800
    shlibpath_overrides_runpath=yes
 
7801
    hardcode_into_libs=yes
 
7802
    ;;
 
7803
  *) # from 3.2 on
 
7804
    shlibpath_overrides_runpath=no
 
7805
    hardcode_into_libs=yes
 
7806
    ;;
 
7807
  esac
 
7808
  ;;
 
7809
 
 
7810
gnu*)
 
7811
  version_type=linux
 
7812
  need_lib_prefix=no
 
7813
  need_version=no
 
7814
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7815
  soname_spec='${libname}${release}${shared_ext}$major'
 
7816
  shlibpath_var=LD_LIBRARY_PATH
 
7817
  hardcode_into_libs=yes
 
7818
  ;;
 
7819
 
 
7820
hpux9* | hpux10* | hpux11*)
 
7821
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7822
  # link against other versions.
 
7823
  version_type=sunos
 
7824
  need_lib_prefix=no
 
7825
  need_version=no
 
7826
  case "$host_cpu" in
 
7827
  ia64*)
 
7828
    shrext_cmds='.so'
 
7829
    hardcode_into_libs=yes
 
7830
    dynamic_linker="$host_os dld.so"
 
7831
    shlibpath_var=LD_LIBRARY_PATH
 
7832
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7833
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7834
    soname_spec='${libname}${release}${shared_ext}$major'
 
7835
    if test "X$HPUX_IA64_MODE" = X32; then
 
7836
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7837
    else
 
7838
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7839
    fi
 
7840
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7841
    ;;
 
7842
   hppa*64*)
 
7843
     shrext_cmds='.sl'
 
7844
     hardcode_into_libs=yes
 
7845
     dynamic_linker="$host_os dld.sl"
 
7846
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7847
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7848
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7849
     soname_spec='${libname}${release}${shared_ext}$major'
 
7850
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7851
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7852
     ;;
 
7853
   *)
 
7854
    shrext_cmds='.sl'
 
7855
    dynamic_linker="$host_os dld.sl"
 
7856
    shlibpath_var=SHLIB_PATH
 
7857
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7858
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7859
    soname_spec='${libname}${release}${shared_ext}$major'
 
7860
    ;;
 
7861
  esac
 
7862
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7863
  postinstall_cmds='chmod 555 $lib'
 
7864
  ;;
 
7865
 
 
7866
irix5* | irix6* | nonstopux*)
 
7867
  case $host_os in
 
7868
    nonstopux*) version_type=nonstopux ;;
 
7869
    *)
 
7870
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7871
                version_type=linux
 
7872
        else
 
7873
                version_type=irix
 
7874
        fi ;;
 
7875
  esac
 
7876
  need_lib_prefix=no
 
7877
  need_version=no
 
7878
  soname_spec='${libname}${release}${shared_ext}$major'
 
7879
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7880
  case $host_os in
 
7881
  irix5* | nonstopux*)
 
7882
    libsuff= shlibsuff=
 
7883
    ;;
 
7884
  *)
 
7885
    case $LD in # libtool.m4 will add one of these switches to LD
 
7886
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7887
      libsuff= shlibsuff= libmagic=32-bit;;
 
7888
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7889
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7890
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7891
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7892
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7893
    esac
 
7894
    ;;
 
7895
  esac
 
7896
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7897
  shlibpath_overrides_runpath=no
 
7898
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7899
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7900
  hardcode_into_libs=yes
 
7901
  ;;
 
7902
 
 
7903
# No shared lib support for Linux oldld, aout, or coff.
 
7904
linux*oldld* | linux*aout* | linux*coff*)
 
7905
  dynamic_linker=no
 
7906
  ;;
 
7907
 
 
7908
# This must be Linux ELF.
 
7909
linux*)
 
7910
  version_type=linux
 
7911
  need_lib_prefix=no
 
7912
  need_version=no
 
7913
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7914
  soname_spec='${libname}${release}${shared_ext}$major'
 
7915
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7916
  shlibpath_var=LD_LIBRARY_PATH
 
7917
  shlibpath_overrides_runpath=no
 
7918
  # This implies no fast_install, which is unacceptable.
 
7919
  # Some rework will be needed to allow for fast_install
 
7920
  # before this can be enabled.
 
7921
  hardcode_into_libs=yes
 
7922
 
 
7923
  # Append ld.so.conf contents to the search path
 
7924
  if test -f /etc/ld.so.conf; then
 
7925
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
7926
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7927
  fi
 
7928
 
 
7929
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7930
  # powerpc, because MkLinux only supported shared libraries with the
 
7931
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7932
  # most powerpc-linux boxes support dynamic linking these days and
 
7933
  # people can always --disable-shared, the test was removed, and we
 
7934
  # assume the GNU/Linux dynamic linker is in use.
 
7935
  dynamic_linker='GNU/Linux ld.so'
 
7936
  ;;
 
7937
 
 
7938
netbsdelf*-gnu)
 
7939
  version_type=linux
 
7940
  need_lib_prefix=no
 
7941
  need_version=no
 
7942
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7943
  soname_spec='${libname}${release}${shared_ext}$major'
 
7944
  shlibpath_var=LD_LIBRARY_PATH
 
7945
  shlibpath_overrides_runpath=no
 
7946
  hardcode_into_libs=yes
 
7947
  dynamic_linker='NetBSD ld.elf_so'
 
7948
  ;;
 
7949
 
 
7950
knetbsd*-gnu)
 
7951
  version_type=linux
 
7952
  need_lib_prefix=no
 
7953
  need_version=no
 
7954
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7955
  soname_spec='${libname}${release}${shared_ext}$major'
 
7956
  shlibpath_var=LD_LIBRARY_PATH
 
7957
  shlibpath_overrides_runpath=no
 
7958
  hardcode_into_libs=yes
 
7959
  dynamic_linker='GNU ld.so'
 
7960
  ;;
 
7961
 
 
7962
netbsd*)
 
7963
  version_type=sunos
 
7964
  need_lib_prefix=no
 
7965
  need_version=no
 
7966
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7967
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7968
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7969
    dynamic_linker='NetBSD (a.out) ld.so'
 
7970
  else
 
7971
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7972
    soname_spec='${libname}${release}${shared_ext}$major'
 
7973
    dynamic_linker='NetBSD ld.elf_so'
 
7974
  fi
 
7975
  shlibpath_var=LD_LIBRARY_PATH
 
7976
  shlibpath_overrides_runpath=yes
 
7977
  hardcode_into_libs=yes
 
7978
  ;;
 
7979
 
 
7980
newsos6)
 
7981
  version_type=linux
 
7982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7983
  shlibpath_var=LD_LIBRARY_PATH
 
7984
  shlibpath_overrides_runpath=yes
 
7985
  ;;
 
7986
 
 
7987
nto-qnx*)
 
7988
  version_type=linux
 
7989
  need_lib_prefix=no
 
7990
  need_version=no
 
7991
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7992
  soname_spec='${libname}${release}${shared_ext}$major'
 
7993
  shlibpath_var=LD_LIBRARY_PATH
 
7994
  shlibpath_overrides_runpath=yes
 
7995
  ;;
 
7996
 
 
7997
openbsd*)
 
7998
  version_type=sunos
 
7999
  need_lib_prefix=no
 
8000
  need_version=yes
 
8001
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8002
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8003
  shlibpath_var=LD_LIBRARY_PATH
 
8004
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8005
    case $host_os in
 
8006
      openbsd2.[89] | openbsd2.[89].*)
 
8007
        shlibpath_overrides_runpath=no
 
8008
        ;;
 
8009
      *)
 
8010
        shlibpath_overrides_runpath=yes
 
8011
        ;;
 
8012
      esac
 
8013
  else
 
8014
    shlibpath_overrides_runpath=yes
 
8015
  fi
 
8016
  ;;
 
8017
 
 
8018
os2*)
 
8019
  libname_spec='$name'
 
8020
  shrext_cmds=".dll"
 
8021
  need_lib_prefix=no
 
8022
  library_names_spec='$libname${shared_ext} $libname.a'
 
8023
  dynamic_linker='OS/2 ld.exe'
 
8024
  shlibpath_var=LIBPATH
 
8025
  ;;
 
8026
 
 
8027
osf3* | osf4* | osf5*)
 
8028
  version_type=osf
 
8029
  need_lib_prefix=no
 
8030
  need_version=no
 
8031
  soname_spec='${libname}${release}${shared_ext}$major'
 
8032
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8033
  shlibpath_var=LD_LIBRARY_PATH
 
8034
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8035
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8036
  ;;
 
8037
 
 
8038
sco3.2v5*)
 
8039
  version_type=osf
 
8040
  soname_spec='${libname}${release}${shared_ext}$major'
 
8041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8042
  shlibpath_var=LD_LIBRARY_PATH
 
8043
  ;;
 
8044
 
 
8045
solaris*)
 
8046
  version_type=linux
 
8047
  need_lib_prefix=no
 
8048
  need_version=no
 
8049
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8050
  soname_spec='${libname}${release}${shared_ext}$major'
 
8051
  shlibpath_var=LD_LIBRARY_PATH
 
8052
  shlibpath_overrides_runpath=yes
 
8053
  hardcode_into_libs=yes
 
8054
  # ldd complains unless libraries are executable
 
8055
  postinstall_cmds='chmod +x $lib'
 
8056
  ;;
 
8057
 
 
8058
sunos4*)
 
8059
  version_type=sunos
 
8060
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8061
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8062
  shlibpath_var=LD_LIBRARY_PATH
 
8063
  shlibpath_overrides_runpath=yes
 
8064
  if test "$with_gnu_ld" = yes; then
 
8065
    need_lib_prefix=no
 
8066
  fi
 
8067
  need_version=yes
 
8068
  ;;
 
8069
 
 
8070
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8071
  version_type=linux
 
8072
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8073
  soname_spec='${libname}${release}${shared_ext}$major'
 
8074
  shlibpath_var=LD_LIBRARY_PATH
 
8075
  case $host_vendor in
 
8076
    sni)
 
8077
      shlibpath_overrides_runpath=no
 
8078
      need_lib_prefix=no
 
8079
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8080
      runpath_var=LD_RUN_PATH
 
8081
      ;;
 
8082
    siemens)
 
8083
      need_lib_prefix=no
 
8084
      ;;
 
8085
    motorola)
 
8086
      need_lib_prefix=no
 
8087
      need_version=no
 
8088
      shlibpath_overrides_runpath=no
 
8089
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8090
      ;;
 
8091
  esac
 
8092
  ;;
 
8093
 
 
8094
sysv4*MP*)
 
8095
  if test -d /usr/nec ;then
 
8096
    version_type=linux
 
8097
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8098
    soname_spec='$libname${shared_ext}.$major'
 
8099
    shlibpath_var=LD_LIBRARY_PATH
 
8100
  fi
 
8101
  ;;
 
8102
 
 
8103
uts4*)
 
8104
  version_type=linux
 
8105
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8106
  soname_spec='${libname}${release}${shared_ext}$major'
 
8107
  shlibpath_var=LD_LIBRARY_PATH
 
8108
  ;;
 
8109
 
 
8110
*)
 
8111
  dynamic_linker=no
 
8112
  ;;
 
8113
esac
 
8114
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8115
echo "${ECHO_T}$dynamic_linker" >&6
 
8116
test "$dynamic_linker" = no && can_build_shared=no
 
8117
 
 
8118
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8119
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8120
hardcode_action=
 
8121
if test -n "$hardcode_libdir_flag_spec" || \
 
8122
   test -n "$runpath_var " || \
 
8123
   test "X$hardcode_automatic"="Xyes" ; then
 
8124
 
 
8125
  # We can hardcode non-existant directories.
 
8126
  if test "$hardcode_direct" != no &&
 
8127
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8128
     # have to relink, otherwise we might link with an installed library
 
8129
     # when we should be linking with a yet-to-be-installed one
 
8130
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8131
     test "$hardcode_minus_L" != no; then
 
8132
    # Linking always hardcodes the temporary library directory.
 
8133
    hardcode_action=relink
 
8134
  else
 
8135
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8136
    hardcode_action=immediate
 
8137
  fi
 
8138
else
 
8139
  # We cannot hardcode anything, or else we can only hardcode existing
 
8140
  # directories.
 
8141
  hardcode_action=unsupported
 
8142
fi
 
8143
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8144
echo "${ECHO_T}$hardcode_action" >&6
 
8145
 
 
8146
if test "$hardcode_action" = relink; then
 
8147
  # Fast installation is not supported
 
8148
  enable_fast_install=no
 
8149
elif test "$shlibpath_overrides_runpath" = yes ||
 
8150
     test "$enable_shared" = no; then
 
8151
  # Fast installation is not necessary
 
8152
  enable_fast_install=needless
 
8153
fi
 
8154
 
 
8155
striplib=
 
8156
old_striplib=
 
8157
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8158
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8159
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8160
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8161
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8162
  echo "$as_me:$LINENO: result: yes" >&5
 
8163
echo "${ECHO_T}yes" >&6
 
8164
else
 
8165
# FIXME - insert some real tests, host_os isn't really good enough
 
8166
  case $host_os in
 
8167
   darwin*)
 
8168
       if test -n "$STRIP" ; then
 
8169
         striplib="$STRIP -x"
 
8170
         echo "$as_me:$LINENO: result: yes" >&5
 
8171
echo "${ECHO_T}yes" >&6
 
8172
       else
 
8173
  echo "$as_me:$LINENO: result: no" >&5
 
8174
echo "${ECHO_T}no" >&6
 
8175
fi
 
8176
       ;;
 
8177
   *)
 
8178
  echo "$as_me:$LINENO: result: no" >&5
 
8179
echo "${ECHO_T}no" >&6
 
8180
    ;;
 
8181
  esac
 
8182
fi
 
8183
 
 
8184
if test "x$enable_dlopen" != xyes; then
 
8185
  enable_dlopen=unknown
 
8186
  enable_dlopen_self=unknown
 
8187
  enable_dlopen_self_static=unknown
 
8188
else
 
8189
  lt_cv_dlopen=no
 
8190
  lt_cv_dlopen_libs=
 
8191
 
 
8192
  case $host_os in
 
8193
  beos*)
 
8194
    lt_cv_dlopen="load_add_on"
 
8195
    lt_cv_dlopen_libs=
 
8196
    lt_cv_dlopen_self=yes
 
8197
    ;;
 
8198
 
 
8199
  mingw* | pw32*)
 
8200
    lt_cv_dlopen="LoadLibrary"
 
8201
    lt_cv_dlopen_libs=
 
8202
   ;;
 
8203
 
 
8204
  cygwin*)
 
8205
    lt_cv_dlopen="dlopen"
 
8206
    lt_cv_dlopen_libs=
 
8207
   ;;
 
8208
 
 
8209
  darwin*)
 
8210
  # if libdl is installed we need to link against it
 
8211
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8212
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8213
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8215
else
 
8216
  ac_check_lib_save_LIBS=$LIBS
 
8217
LIBS="-ldl  $LIBS"
 
8218
cat >conftest.$ac_ext <<_ACEOF
 
8219
/* confdefs.h.  */
 
8220
_ACEOF
 
8221
cat confdefs.h >>conftest.$ac_ext
 
8222
cat >>conftest.$ac_ext <<_ACEOF
 
8223
/* end confdefs.h.  */
 
8224
 
 
8225
/* Override any gcc2 internal prototype to avoid an error.  */
 
8226
#ifdef __cplusplus
 
8227
extern "C"
 
8228
#endif
 
8229
/* We use char because int might match the return type of a gcc2
 
8230
   builtin and then its argument prototype would still apply.  */
 
8231
char dlopen ();
 
8232
int
 
8233
main ()
 
8234
{
 
8235
dlopen ();
 
8236
  ;
 
8237
  return 0;
 
8238
}
 
8239
_ACEOF
 
8240
rm -f conftest.$ac_objext conftest$ac_exeext
 
8241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8242
  (eval $ac_link) 2>conftest.er1
 
8243
  ac_status=$?
 
8244
  grep -v '^ *+' conftest.er1 >conftest.err
 
8245
  rm -f conftest.er1
 
8246
  cat conftest.err >&5
 
8247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8248
  (exit $ac_status); } &&
 
8249
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
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); }; } &&
 
8255
         { ac_try='test -s conftest$ac_exeext'
 
8256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8257
  (eval $ac_try) 2>&5
 
8258
  ac_status=$?
 
8259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8260
  (exit $ac_status); }; }; then
 
8261
  ac_cv_lib_dl_dlopen=yes
 
8262
else
 
8263
  echo "$as_me: failed program was:" >&5
 
8264
sed 's/^/| /' conftest.$ac_ext >&5
 
8265
 
 
8266
ac_cv_lib_dl_dlopen=no
 
8267
fi
 
8268
rm -f conftest.err conftest.$ac_objext \
 
8269
      conftest$ac_exeext conftest.$ac_ext
 
8270
LIBS=$ac_check_lib_save_LIBS
 
8271
fi
 
8272
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8273
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8274
if test $ac_cv_lib_dl_dlopen = yes; then
 
8275
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8276
else
 
8277
 
 
8278
    lt_cv_dlopen="dyld"
 
8279
    lt_cv_dlopen_libs=
 
8280
    lt_cv_dlopen_self=yes
 
8281
 
 
8282
fi
 
8283
 
 
8284
   ;;
 
8285
 
 
8286
  *)
 
8287
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8288
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8289
if test "${ac_cv_func_shl_load+set}" = set; then
 
8290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8291
else
 
8292
  cat >conftest.$ac_ext <<_ACEOF
 
8293
/* confdefs.h.  */
 
8294
_ACEOF
 
8295
cat confdefs.h >>conftest.$ac_ext
 
8296
cat >>conftest.$ac_ext <<_ACEOF
 
8297
/* end confdefs.h.  */
 
8298
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8299
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8300
#define shl_load innocuous_shl_load
 
8301
 
 
8302
/* System header to define __stub macros and hopefully few prototypes,
 
8303
    which can conflict with char shl_load (); below.
 
8304
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8305
    <limits.h> exists even on freestanding compilers.  */
 
8306
 
 
8307
#ifdef __STDC__
 
8308
# include <limits.h>
 
8309
#else
 
8310
# include <assert.h>
 
8311
#endif
 
8312
 
 
8313
#undef shl_load
 
8314
 
 
8315
/* Override any gcc2 internal prototype to avoid an error.  */
 
8316
#ifdef __cplusplus
 
8317
extern "C"
 
8318
{
 
8319
#endif
 
8320
/* We use char because int might match the return type of a gcc2
 
8321
   builtin and then its argument prototype would still apply.  */
 
8322
char shl_load ();
 
8323
/* The GNU C library defines this for functions which it implements
 
8324
    to always fail with ENOSYS.  Some functions are actually named
 
8325
    something starting with __ and the normal name is an alias.  */
 
8326
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8327
choke me
 
8328
#else
 
8329
char (*f) () = shl_load;
 
8330
#endif
 
8331
#ifdef __cplusplus
 
8332
}
 
8333
#endif
 
8334
 
 
8335
int
 
8336
main ()
 
8337
{
 
8338
return f != shl_load;
 
8339
  ;
 
8340
  return 0;
 
8341
}
 
8342
_ACEOF
 
8343
rm -f conftest.$ac_objext conftest$ac_exeext
 
8344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8345
  (eval $ac_link) 2>conftest.er1
 
8346
  ac_status=$?
 
8347
  grep -v '^ *+' conftest.er1 >conftest.err
 
8348
  rm -f conftest.er1
 
8349
  cat conftest.err >&5
 
8350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8351
  (exit $ac_status); } &&
 
8352
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8353
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8354
  (eval $ac_try) 2>&5
 
8355
  ac_status=$?
 
8356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8357
  (exit $ac_status); }; } &&
 
8358
         { ac_try='test -s conftest$ac_exeext'
 
8359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8360
  (eval $ac_try) 2>&5
 
8361
  ac_status=$?
 
8362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8363
  (exit $ac_status); }; }; then
 
8364
  ac_cv_func_shl_load=yes
 
8365
else
 
8366
  echo "$as_me: failed program was:" >&5
 
8367
sed 's/^/| /' conftest.$ac_ext >&5
 
8368
 
 
8369
ac_cv_func_shl_load=no
 
8370
fi
 
8371
rm -f conftest.err conftest.$ac_objext \
 
8372
      conftest$ac_exeext conftest.$ac_ext
 
8373
fi
 
8374
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8375
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8376
if test $ac_cv_func_shl_load = yes; then
 
8377
  lt_cv_dlopen="shl_load"
 
8378
else
 
8379
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8380
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8381
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8383
else
 
8384
  ac_check_lib_save_LIBS=$LIBS
 
8385
LIBS="-ldld  $LIBS"
 
8386
cat >conftest.$ac_ext <<_ACEOF
 
8387
/* confdefs.h.  */
 
8388
_ACEOF
 
8389
cat confdefs.h >>conftest.$ac_ext
 
8390
cat >>conftest.$ac_ext <<_ACEOF
 
8391
/* end confdefs.h.  */
 
8392
 
 
8393
/* Override any gcc2 internal prototype to avoid an error.  */
 
8394
#ifdef __cplusplus
 
8395
extern "C"
 
8396
#endif
 
8397
/* We use char because int might match the return type of a gcc2
 
8398
   builtin and then its argument prototype would still apply.  */
 
8399
char shl_load ();
 
8400
int
 
8401
main ()
 
8402
{
 
8403
shl_load ();
 
8404
  ;
 
8405
  return 0;
 
8406
}
 
8407
_ACEOF
 
8408
rm -f conftest.$ac_objext conftest$ac_exeext
 
8409
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8410
  (eval $ac_link) 2>conftest.er1
 
8411
  ac_status=$?
 
8412
  grep -v '^ *+' conftest.er1 >conftest.err
 
8413
  rm -f conftest.er1
 
8414
  cat conftest.err >&5
 
8415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8416
  (exit $ac_status); } &&
 
8417
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8419
  (eval $ac_try) 2>&5
 
8420
  ac_status=$?
 
8421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8422
  (exit $ac_status); }; } &&
 
8423
         { ac_try='test -s conftest$ac_exeext'
 
8424
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8425
  (eval $ac_try) 2>&5
 
8426
  ac_status=$?
 
8427
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8428
  (exit $ac_status); }; }; then
 
8429
  ac_cv_lib_dld_shl_load=yes
 
8430
else
 
8431
  echo "$as_me: failed program was:" >&5
 
8432
sed 's/^/| /' conftest.$ac_ext >&5
 
8433
 
 
8434
ac_cv_lib_dld_shl_load=no
 
8435
fi
 
8436
rm -f conftest.err conftest.$ac_objext \
 
8437
      conftest$ac_exeext conftest.$ac_ext
 
8438
LIBS=$ac_check_lib_save_LIBS
 
8439
fi
 
8440
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8441
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8442
if test $ac_cv_lib_dld_shl_load = yes; then
 
8443
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8444
else
 
8445
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8446
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8447
if test "${ac_cv_func_dlopen+set}" = set; then
 
8448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8449
else
 
8450
  cat >conftest.$ac_ext <<_ACEOF
 
8451
/* confdefs.h.  */
 
8452
_ACEOF
 
8453
cat confdefs.h >>conftest.$ac_ext
 
8454
cat >>conftest.$ac_ext <<_ACEOF
 
8455
/* end confdefs.h.  */
 
8456
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8457
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8458
#define dlopen innocuous_dlopen
 
8459
 
 
8460
/* System header to define __stub macros and hopefully few prototypes,
 
8461
    which can conflict with char dlopen (); below.
 
8462
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8463
    <limits.h> exists even on freestanding compilers.  */
 
8464
 
 
8465
#ifdef __STDC__
 
8466
# include <limits.h>
 
8467
#else
 
8468
# include <assert.h>
 
8469
#endif
 
8470
 
 
8471
#undef dlopen
 
8472
 
 
8473
/* Override any gcc2 internal prototype to avoid an error.  */
 
8474
#ifdef __cplusplus
 
8475
extern "C"
 
8476
{
 
8477
#endif
 
8478
/* We use char because int might match the return type of a gcc2
 
8479
   builtin and then its argument prototype would still apply.  */
 
8480
char dlopen ();
 
8481
/* The GNU C library defines this for functions which it implements
 
8482
    to always fail with ENOSYS.  Some functions are actually named
 
8483
    something starting with __ and the normal name is an alias.  */
 
8484
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8485
choke me
 
8486
#else
 
8487
char (*f) () = dlopen;
 
8488
#endif
 
8489
#ifdef __cplusplus
 
8490
}
 
8491
#endif
 
8492
 
 
8493
int
 
8494
main ()
 
8495
{
 
8496
return f != dlopen;
 
8497
  ;
 
8498
  return 0;
 
8499
}
 
8500
_ACEOF
 
8501
rm -f conftest.$ac_objext conftest$ac_exeext
 
8502
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8503
  (eval $ac_link) 2>conftest.er1
 
8504
  ac_status=$?
 
8505
  grep -v '^ *+' conftest.er1 >conftest.err
 
8506
  rm -f conftest.er1
 
8507
  cat conftest.err >&5
 
8508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8509
  (exit $ac_status); } &&
 
8510
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8512
  (eval $ac_try) 2>&5
 
8513
  ac_status=$?
 
8514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8515
  (exit $ac_status); }; } &&
 
8516
         { ac_try='test -s conftest$ac_exeext'
 
8517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8518
  (eval $ac_try) 2>&5
 
8519
  ac_status=$?
 
8520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8521
  (exit $ac_status); }; }; then
 
8522
  ac_cv_func_dlopen=yes
 
8523
else
 
8524
  echo "$as_me: failed program was:" >&5
 
8525
sed 's/^/| /' conftest.$ac_ext >&5
 
8526
 
 
8527
ac_cv_func_dlopen=no
 
8528
fi
 
8529
rm -f conftest.err conftest.$ac_objext \
 
8530
      conftest$ac_exeext conftest.$ac_ext
 
8531
fi
 
8532
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8533
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8534
if test $ac_cv_func_dlopen = yes; then
 
8535
  lt_cv_dlopen="dlopen"
 
8536
else
 
8537
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8538
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8539
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8541
else
 
8542
  ac_check_lib_save_LIBS=$LIBS
 
8543
LIBS="-ldl  $LIBS"
 
8544
cat >conftest.$ac_ext <<_ACEOF
 
8545
/* confdefs.h.  */
 
8546
_ACEOF
 
8547
cat confdefs.h >>conftest.$ac_ext
 
8548
cat >>conftest.$ac_ext <<_ACEOF
 
8549
/* end confdefs.h.  */
 
8550
 
 
8551
/* Override any gcc2 internal prototype to avoid an error.  */
 
8552
#ifdef __cplusplus
 
8553
extern "C"
 
8554
#endif
 
8555
/* We use char because int might match the return type of a gcc2
 
8556
   builtin and then its argument prototype would still apply.  */
 
8557
char dlopen ();
 
8558
int
 
8559
main ()
 
8560
{
 
8561
dlopen ();
 
8562
  ;
 
8563
  return 0;
 
8564
}
 
8565
_ACEOF
 
8566
rm -f conftest.$ac_objext conftest$ac_exeext
 
8567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8568
  (eval $ac_link) 2>conftest.er1
 
8569
  ac_status=$?
 
8570
  grep -v '^ *+' conftest.er1 >conftest.err
 
8571
  rm -f conftest.er1
 
8572
  cat conftest.err >&5
 
8573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8574
  (exit $ac_status); } &&
 
8575
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8576
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8577
  (eval $ac_try) 2>&5
 
8578
  ac_status=$?
 
8579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8580
  (exit $ac_status); }; } &&
 
8581
         { ac_try='test -s conftest$ac_exeext'
 
8582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8583
  (eval $ac_try) 2>&5
 
8584
  ac_status=$?
 
8585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8586
  (exit $ac_status); }; }; then
 
8587
  ac_cv_lib_dl_dlopen=yes
 
8588
else
 
8589
  echo "$as_me: failed program was:" >&5
 
8590
sed 's/^/| /' conftest.$ac_ext >&5
 
8591
 
 
8592
ac_cv_lib_dl_dlopen=no
 
8593
fi
 
8594
rm -f conftest.err conftest.$ac_objext \
 
8595
      conftest$ac_exeext conftest.$ac_ext
 
8596
LIBS=$ac_check_lib_save_LIBS
 
8597
fi
 
8598
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8599
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8600
if test $ac_cv_lib_dl_dlopen = yes; then
 
8601
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8602
else
 
8603
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8604
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8605
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8607
else
 
8608
  ac_check_lib_save_LIBS=$LIBS
 
8609
LIBS="-lsvld  $LIBS"
 
8610
cat >conftest.$ac_ext <<_ACEOF
 
8611
/* confdefs.h.  */
 
8612
_ACEOF
 
8613
cat confdefs.h >>conftest.$ac_ext
 
8614
cat >>conftest.$ac_ext <<_ACEOF
 
8615
/* end confdefs.h.  */
 
8616
 
 
8617
/* Override any gcc2 internal prototype to avoid an error.  */
 
8618
#ifdef __cplusplus
 
8619
extern "C"
 
8620
#endif
 
8621
/* We use char because int might match the return type of a gcc2
 
8622
   builtin and then its argument prototype would still apply.  */
 
8623
char dlopen ();
 
8624
int
 
8625
main ()
 
8626
{
 
8627
dlopen ();
 
8628
  ;
 
8629
  return 0;
 
8630
}
 
8631
_ACEOF
 
8632
rm -f conftest.$ac_objext conftest$ac_exeext
 
8633
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8634
  (eval $ac_link) 2>conftest.er1
 
8635
  ac_status=$?
 
8636
  grep -v '^ *+' conftest.er1 >conftest.err
 
8637
  rm -f conftest.er1
 
8638
  cat conftest.err >&5
 
8639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8640
  (exit $ac_status); } &&
 
8641
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8643
  (eval $ac_try) 2>&5
 
8644
  ac_status=$?
 
8645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8646
  (exit $ac_status); }; } &&
 
8647
         { ac_try='test -s conftest$ac_exeext'
 
8648
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8649
  (eval $ac_try) 2>&5
 
8650
  ac_status=$?
 
8651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8652
  (exit $ac_status); }; }; then
 
8653
  ac_cv_lib_svld_dlopen=yes
 
8654
else
 
8655
  echo "$as_me: failed program was:" >&5
 
8656
sed 's/^/| /' conftest.$ac_ext >&5
 
8657
 
 
8658
ac_cv_lib_svld_dlopen=no
 
8659
fi
 
8660
rm -f conftest.err conftest.$ac_objext \
 
8661
      conftest$ac_exeext conftest.$ac_ext
 
8662
LIBS=$ac_check_lib_save_LIBS
 
8663
fi
 
8664
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8665
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8666
if test $ac_cv_lib_svld_dlopen = yes; then
 
8667
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8668
else
 
8669
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8670
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8671
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8673
else
 
8674
  ac_check_lib_save_LIBS=$LIBS
 
8675
LIBS="-ldld  $LIBS"
 
8676
cat >conftest.$ac_ext <<_ACEOF
 
8677
/* confdefs.h.  */
 
8678
_ACEOF
 
8679
cat confdefs.h >>conftest.$ac_ext
 
8680
cat >>conftest.$ac_ext <<_ACEOF
 
8681
/* end confdefs.h.  */
 
8682
 
 
8683
/* Override any gcc2 internal prototype to avoid an error.  */
 
8684
#ifdef __cplusplus
 
8685
extern "C"
 
8686
#endif
 
8687
/* We use char because int might match the return type of a gcc2
 
8688
   builtin and then its argument prototype would still apply.  */
 
8689
char dld_link ();
 
8690
int
 
8691
main ()
 
8692
{
 
8693
dld_link ();
 
8694
  ;
 
8695
  return 0;
 
8696
}
 
8697
_ACEOF
 
8698
rm -f conftest.$ac_objext conftest$ac_exeext
 
8699
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8700
  (eval $ac_link) 2>conftest.er1
 
8701
  ac_status=$?
 
8702
  grep -v '^ *+' conftest.er1 >conftest.err
 
8703
  rm -f conftest.er1
 
8704
  cat conftest.err >&5
 
8705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8706
  (exit $ac_status); } &&
 
8707
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8708
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8709
  (eval $ac_try) 2>&5
 
8710
  ac_status=$?
 
8711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8712
  (exit $ac_status); }; } &&
 
8713
         { ac_try='test -s conftest$ac_exeext'
 
8714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8715
  (eval $ac_try) 2>&5
 
8716
  ac_status=$?
 
8717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8718
  (exit $ac_status); }; }; then
 
8719
  ac_cv_lib_dld_dld_link=yes
 
8720
else
 
8721
  echo "$as_me: failed program was:" >&5
 
8722
sed 's/^/| /' conftest.$ac_ext >&5
 
8723
 
 
8724
ac_cv_lib_dld_dld_link=no
 
8725
fi
 
8726
rm -f conftest.err conftest.$ac_objext \
 
8727
      conftest$ac_exeext conftest.$ac_ext
 
8728
LIBS=$ac_check_lib_save_LIBS
 
8729
fi
 
8730
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8731
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8732
if test $ac_cv_lib_dld_dld_link = yes; then
 
8733
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8734
fi
 
8735
 
 
8736
 
 
8737
fi
 
8738
 
 
8739
 
 
8740
fi
 
8741
 
 
8742
 
 
8743
fi
 
8744
 
 
8745
 
 
8746
fi
 
8747
 
 
8748
 
 
8749
fi
 
8750
 
 
8751
    ;;
 
8752
  esac
 
8753
 
 
8754
  if test "x$lt_cv_dlopen" != xno; then
 
8755
    enable_dlopen=yes
 
8756
  else
 
8757
    enable_dlopen=no
 
8758
  fi
 
8759
 
 
8760
  case $lt_cv_dlopen in
 
8761
  dlopen)
 
8762
    save_CPPFLAGS="$CPPFLAGS"
 
8763
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8764
 
 
8765
    save_LDFLAGS="$LDFLAGS"
 
8766
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8767
 
 
8768
    save_LIBS="$LIBS"
 
8769
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8770
 
 
8771
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8772
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8773
if test "${lt_cv_dlopen_self+set}" = set; then
 
8774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8775
else
 
8776
          if test "$cross_compiling" = yes; then :
 
8777
  lt_cv_dlopen_self=cross
 
8778
else
 
8779
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8780
  lt_status=$lt_dlunknown
 
8781
  cat > conftest.$ac_ext <<EOF
 
8782
#line 8782 "configure"
 
8783
#include "confdefs.h"
 
8784
 
 
8785
#if HAVE_DLFCN_H
 
8786
#include <dlfcn.h>
 
8787
#endif
 
8788
 
 
8789
#include <stdio.h>
 
8790
 
 
8791
#ifdef RTLD_GLOBAL
 
8792
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8793
#else
 
8794
#  ifdef DL_GLOBAL
 
8795
#    define LT_DLGLOBAL         DL_GLOBAL
 
8796
#  else
 
8797
#    define LT_DLGLOBAL         0
 
8798
#  endif
 
8799
#endif
 
8800
 
 
8801
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8802
   find out it does not work in some platform. */
 
8803
#ifndef LT_DLLAZY_OR_NOW
 
8804
#  ifdef RTLD_LAZY
 
8805
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8806
#  else
 
8807
#    ifdef DL_LAZY
 
8808
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8809
#    else
 
8810
#      ifdef RTLD_NOW
 
8811
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8812
#      else
 
8813
#        ifdef DL_NOW
 
8814
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8815
#        else
 
8816
#          define LT_DLLAZY_OR_NOW      0
 
8817
#        endif
 
8818
#      endif
 
8819
#    endif
 
8820
#  endif
 
8821
#endif
 
8822
 
 
8823
#ifdef __cplusplus
 
8824
extern "C" void exit (int);
 
8825
#endif
 
8826
 
 
8827
void fnord() { int i=42;}
 
8828
int main ()
 
8829
{
 
8830
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8831
  int status = $lt_dlunknown;
 
8832
 
 
8833
  if (self)
 
8834
    {
 
8835
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8836
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8837
      /* dlclose (self); */
 
8838
    }
 
8839
 
 
8840
    exit (status);
 
8841
}
 
8842
EOF
 
8843
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8844
  (eval $ac_link) 2>&5
 
8845
  ac_status=$?
 
8846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8847
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8848
    (./conftest; exit; ) 2>/dev/null
 
8849
    lt_status=$?
 
8850
    case x$lt_status in
 
8851
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8852
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8853
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8854
    esac
 
8855
  else :
 
8856
    # compilation failed
 
8857
    lt_cv_dlopen_self=no
 
8858
  fi
 
8859
fi
 
8860
rm -fr conftest*
 
8861
 
 
8862
 
 
8863
fi
 
8864
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8865
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8866
 
 
8867
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8868
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8869
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8870
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8871
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8872
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8873
else
 
8874
          if test "$cross_compiling" = yes; then :
 
8875
  lt_cv_dlopen_self_static=cross
 
8876
else
 
8877
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8878
  lt_status=$lt_dlunknown
 
8879
  cat > conftest.$ac_ext <<EOF
 
8880
#line 8880 "configure"
 
8881
#include "confdefs.h"
 
8882
 
 
8883
#if HAVE_DLFCN_H
 
8884
#include <dlfcn.h>
 
8885
#endif
 
8886
 
 
8887
#include <stdio.h>
 
8888
 
 
8889
#ifdef RTLD_GLOBAL
 
8890
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8891
#else
 
8892
#  ifdef DL_GLOBAL
 
8893
#    define LT_DLGLOBAL         DL_GLOBAL
 
8894
#  else
 
8895
#    define LT_DLGLOBAL         0
 
8896
#  endif
 
8897
#endif
 
8898
 
 
8899
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8900
   find out it does not work in some platform. */
 
8901
#ifndef LT_DLLAZY_OR_NOW
 
8902
#  ifdef RTLD_LAZY
 
8903
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8904
#  else
 
8905
#    ifdef DL_LAZY
 
8906
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8907
#    else
 
8908
#      ifdef RTLD_NOW
 
8909
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8910
#      else
 
8911
#        ifdef DL_NOW
 
8912
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8913
#        else
 
8914
#          define LT_DLLAZY_OR_NOW      0
 
8915
#        endif
 
8916
#      endif
 
8917
#    endif
 
8918
#  endif
 
8919
#endif
 
8920
 
 
8921
#ifdef __cplusplus
 
8922
extern "C" void exit (int);
 
8923
#endif
 
8924
 
 
8925
void fnord() { int i=42;}
 
8926
int main ()
 
8927
{
 
8928
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8929
  int status = $lt_dlunknown;
 
8930
 
 
8931
  if (self)
 
8932
    {
 
8933
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8934
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8935
      /* dlclose (self); */
 
8936
    }
 
8937
 
 
8938
    exit (status);
 
8939
}
 
8940
EOF
 
8941
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8942
  (eval $ac_link) 2>&5
 
8943
  ac_status=$?
 
8944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8945
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8946
    (./conftest; exit; ) 2>/dev/null
 
8947
    lt_status=$?
 
8948
    case x$lt_status in
 
8949
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8950
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8951
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8952
    esac
 
8953
  else :
 
8954
    # compilation failed
 
8955
    lt_cv_dlopen_self_static=no
 
8956
  fi
 
8957
fi
 
8958
rm -fr conftest*
 
8959
 
 
8960
 
 
8961
fi
 
8962
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8963
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8964
    fi
 
8965
 
 
8966
    CPPFLAGS="$save_CPPFLAGS"
 
8967
    LDFLAGS="$save_LDFLAGS"
 
8968
    LIBS="$save_LIBS"
 
8969
    ;;
 
8970
  esac
 
8971
 
 
8972
  case $lt_cv_dlopen_self in
 
8973
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8974
  *) enable_dlopen_self=unknown ;;
 
8975
  esac
 
8976
 
 
8977
  case $lt_cv_dlopen_self_static in
 
8978
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8979
  *) enable_dlopen_self_static=unknown ;;
 
8980
  esac
 
8981
fi
 
8982
 
 
8983
 
 
8984
# Report which librarie types wil actually be built
 
8985
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8986
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8987
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8988
echo "${ECHO_T}$can_build_shared" >&6
 
8989
 
 
8990
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8991
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
8992
test "$can_build_shared" = "no" && enable_shared=no
 
8993
 
 
8994
# On AIX, shared libraries and static libraries use the same namespace, and
 
8995
# are all built from PIC.
 
8996
case "$host_os" in
 
8997
aix3*)
 
8998
  test "$enable_shared" = yes && enable_static=no
 
8999
  if test -n "$RANLIB"; then
 
9000
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9001
    postinstall_cmds='$RANLIB $lib'
 
9002
  fi
 
9003
  ;;
 
9004
 
 
9005
aix4* | aix5*)
 
9006
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9007
    test "$enable_shared" = yes && enable_static=no
 
9008
  fi
 
9009
  ;;
 
9010
  darwin* | rhapsody*)
 
9011
  if test "$GCC" = yes; then
 
9012
    archive_cmds_need_lc=no
 
9013
    case "$host_os" in
 
9014
    rhapsody* | darwin1.[012])
 
9015
      allow_undefined_flag='-undefined suppress'
 
9016
      ;;
 
9017
    *) # Darwin 1.3 on
 
9018
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9019
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9020
      else
 
9021
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9022
          10.[012])
 
9023
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9024
            ;;
 
9025
          10.*)
 
9026
            allow_undefined_flag='-undefined dynamic_lookup'
 
9027
            ;;
 
9028
        esac
 
9029
      fi
 
9030
      ;;
 
9031
    esac
 
9032
    output_verbose_link_cmd='echo'
 
9033
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
9034
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9035
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9036
    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}'
 
9037
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9038
    hardcode_direct=no
 
9039
    hardcode_automatic=yes
 
9040
    hardcode_shlibpath_var=unsupported
 
9041
    whole_archive_flag_spec='-all_load $convenience'
 
9042
    link_all_deplibs=yes
 
9043
  else
 
9044
    ld_shlibs=no
 
9045
  fi
 
9046
    ;;
 
9047
esac
 
9048
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9049
echo "${ECHO_T}$enable_shared" >&6
 
9050
 
 
9051
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9052
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9053
# Make sure either enable_shared or enable_static is yes.
 
9054
test "$enable_shared" = yes || enable_static=yes
 
9055
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9056
echo "${ECHO_T}$enable_static" >&6
 
9057
 
 
9058
# The else clause should only fire when bootstrapping the
 
9059
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9060
# with your package, and you will get complaints that there are
 
9061
# no rules to generate ltmain.sh.
 
9062
if test -f "$ltmain"; then
 
9063
  # See if we are running on zsh, and set the options which allow our commands through
 
9064
  # without removal of \ escapes.
 
9065
  if test -n "${ZSH_VERSION+set}" ; then
 
9066
    setopt NO_GLOB_SUBST
 
9067
  fi
 
9068
  # Now quote all the things that may contain metacharacters while being
 
9069
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9070
  # variables and quote the copies for generation of the libtool script.
 
9071
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9072
    SED SHELL STRIP \
 
9073
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9074
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9075
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9076
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9077
    lt_cv_sys_global_symbol_to_c_name_address \
 
9078
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9079
    old_postinstall_cmds old_postuninstall_cmds \
 
9080
    compiler \
 
9081
    CC \
 
9082
    LD \
 
9083
    lt_prog_compiler_wl \
 
9084
    lt_prog_compiler_pic \
 
9085
    lt_prog_compiler_static \
 
9086
    lt_prog_compiler_no_builtin_flag \
 
9087
    export_dynamic_flag_spec \
 
9088
    thread_safe_flag_spec \
 
9089
    whole_archive_flag_spec \
 
9090
    enable_shared_with_static_runtimes \
 
9091
    old_archive_cmds \
 
9092
    old_archive_from_new_cmds \
 
9093
    predep_objects \
 
9094
    postdep_objects \
 
9095
    predeps \
 
9096
    postdeps \
 
9097
    compiler_lib_search_path \
 
9098
    archive_cmds \
 
9099
    archive_expsym_cmds \
 
9100
    postinstall_cmds \
 
9101
    postuninstall_cmds \
 
9102
    old_archive_from_expsyms_cmds \
 
9103
    allow_undefined_flag \
 
9104
    no_undefined_flag \
 
9105
    export_symbols_cmds \
 
9106
    hardcode_libdir_flag_spec \
 
9107
    hardcode_libdir_flag_spec_ld \
 
9108
    hardcode_libdir_separator \
 
9109
    hardcode_automatic \
 
9110
    module_cmds \
 
9111
    module_expsym_cmds \
 
9112
    lt_cv_prog_compiler_c_o \
 
9113
    exclude_expsyms \
 
9114
    include_expsyms; do
 
9115
 
 
9116
    case $var in
 
9117
    old_archive_cmds | \
 
9118
    old_archive_from_new_cmds | \
 
9119
    archive_cmds | \
 
9120
    archive_expsym_cmds | \
 
9121
    module_cmds | \
 
9122
    module_expsym_cmds | \
 
9123
    old_archive_from_expsyms_cmds | \
 
9124
    export_symbols_cmds | \
 
9125
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9126
    postinstall_cmds | postuninstall_cmds | \
 
9127
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9128
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9129
      # Double-quote double-evaled strings.
 
9130
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9131
      ;;
 
9132
    *)
 
9133
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9134
      ;;
 
9135
    esac
 
9136
  done
 
9137
 
 
9138
  case $lt_echo in
 
9139
  *'\$0 --fallback-echo"')
 
9140
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9141
    ;;
 
9142
  esac
 
9143
 
 
9144
cfgfile="${ofile}T"
 
9145
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9146
  $rm -f "$cfgfile"
 
9147
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9148
echo "$as_me: creating $ofile" >&6;}
 
9149
 
 
9150
  cat <<__EOF__ >> "$cfgfile"
 
9151
#! $SHELL
 
9152
 
 
9153
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9154
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9155
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9156
#
 
9157
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9158
# Free Software Foundation, Inc.
 
9159
#
 
9160
# This file is part of GNU Libtool:
 
9161
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9162
#
 
9163
# This program is free software; you can redistribute it and/or modify
 
9164
# it under the terms of the GNU General Public License as published by
 
9165
# the Free Software Foundation; either version 2 of the License, or
 
9166
# (at your option) any later version.
 
9167
#
 
9168
# This program is distributed in the hope that it will be useful, but
 
9169
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9170
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9171
# General Public License for more details.
 
9172
#
 
9173
# You should have received a copy of the GNU General Public License
 
9174
# along with this program; if not, write to the Free Software
 
9175
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9176
#
 
9177
# As a special exception to the GNU General Public License, if you
 
9178
# distribute this file as part of a program that contains a
 
9179
# configuration script generated by Autoconf, you may include it under
 
9180
# the same distribution terms that you use for the rest of that program.
 
9181
 
 
9182
# A sed program that does not truncate output.
 
9183
SED=$lt_SED
 
9184
 
 
9185
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9186
Xsed="$SED -e s/^X//"
 
9187
 
 
9188
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9189
# if CDPATH is set.
 
9190
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9191
 
 
9192
# The names of the tagged configurations supported by this script.
 
9193
available_tags=
 
9194
 
 
9195
# ### BEGIN LIBTOOL CONFIG
 
9196
 
 
9197
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9198
 
 
9199
# Shell to use when invoking shell scripts.
 
9200
SHELL=$lt_SHELL
 
9201
 
 
9202
# Whether or not to build shared libraries.
 
9203
build_libtool_libs=$enable_shared
 
9204
 
 
9205
# Whether or not to build static libraries.
 
9206
build_old_libs=$enable_static
 
9207
 
 
9208
# Whether or not to add -lc for building shared libraries.
 
9209
build_libtool_need_lc=$archive_cmds_need_lc
 
9210
 
 
9211
# Whether or not to disallow shared libs when runtime libs are static
 
9212
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9213
 
 
9214
# Whether or not to optimize for fast installation.
 
9215
fast_install=$enable_fast_install
 
9216
 
 
9217
# The host system.
 
9218
host_alias=$host_alias
 
9219
host=$host
 
9220
 
 
9221
# An echo program that does not interpret backslashes.
 
9222
echo=$lt_echo
 
9223
 
 
9224
# The archiver.
 
9225
AR=$lt_AR
 
9226
AR_FLAGS=$lt_AR_FLAGS
 
9227
 
 
9228
# A C compiler.
 
9229
LTCC=$lt_LTCC
 
9230
 
 
9231
# A language-specific compiler.
 
9232
CC=$lt_compiler
 
9233
 
 
9234
# Is the compiler the GNU C compiler?
 
9235
with_gcc=$GCC
 
9236
 
 
9237
# An ERE matcher.
 
9238
EGREP=$lt_EGREP
 
9239
 
 
9240
# The linker used to build libraries.
 
9241
LD=$lt_LD
 
9242
 
 
9243
# Whether we need hard or soft links.
 
9244
LN_S=$lt_LN_S
 
9245
 
 
9246
# A BSD-compatible nm program.
 
9247
NM=$lt_NM
 
9248
 
 
9249
# A symbol stripping program
 
9250
STRIP=$lt_STRIP
 
9251
 
 
9252
# Used to examine libraries when file_magic_cmd begins "file"
 
9253
MAGIC_CMD=$MAGIC_CMD
 
9254
 
 
9255
# Used on cygwin: DLL creation program.
 
9256
DLLTOOL="$DLLTOOL"
 
9257
 
 
9258
# Used on cygwin: object dumper.
 
9259
OBJDUMP="$OBJDUMP"
 
9260
 
 
9261
# Used on cygwin: assembler.
 
9262
AS="$AS"
 
9263
 
 
9264
# The name of the directory that contains temporary libtool files.
 
9265
objdir=$objdir
 
9266
 
 
9267
# How to create reloadable object files.
 
9268
reload_flag=$lt_reload_flag
 
9269
reload_cmds=$lt_reload_cmds
 
9270
 
 
9271
# How to pass a linker flag through the compiler.
 
9272
wl=$lt_lt_prog_compiler_wl
 
9273
 
 
9274
# Object file suffix (normally "o").
 
9275
objext="$ac_objext"
 
9276
 
 
9277
# Old archive suffix (normally "a").
 
9278
libext="$libext"
 
9279
 
 
9280
# Shared library suffix (normally ".so").
 
9281
shrext_cmds='$shrext_cmds'
 
9282
 
 
9283
# Executable file suffix (normally "").
 
9284
exeext="$exeext"
 
9285
 
 
9286
# Additional compiler flags for building library objects.
 
9287
pic_flag=$lt_lt_prog_compiler_pic
 
9288
pic_mode=$pic_mode
 
9289
 
 
9290
# What is the maximum length of a command?
 
9291
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9292
 
 
9293
# Does compiler simultaneously support -c and -o options?
 
9294
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9295
 
 
9296
# Must we lock files when doing compilation ?
 
9297
need_locks=$lt_need_locks
 
9298
 
 
9299
# Do we need the lib prefix for modules?
 
9300
need_lib_prefix=$need_lib_prefix
 
9301
 
 
9302
# Do we need a version for libraries?
 
9303
need_version=$need_version
 
9304
 
 
9305
# Whether dlopen is supported.
 
9306
dlopen_support=$enable_dlopen
 
9307
 
 
9308
# Whether dlopen of programs is supported.
 
9309
dlopen_self=$enable_dlopen_self
 
9310
 
 
9311
# Whether dlopen of statically linked programs is supported.
 
9312
dlopen_self_static=$enable_dlopen_self_static
 
9313
 
 
9314
# Compiler flag to prevent dynamic linking.
 
9315
link_static_flag=$lt_lt_prog_compiler_static
 
9316
 
 
9317
# Compiler flag to turn off builtin functions.
 
9318
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9319
 
 
9320
# Compiler flag to allow reflexive dlopens.
 
9321
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9322
 
 
9323
# Compiler flag to generate shared objects directly from archives.
 
9324
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9325
 
 
9326
# Compiler flag to generate thread-safe objects.
 
9327
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9328
 
 
9329
# Library versioning type.
 
9330
version_type=$version_type
 
9331
 
 
9332
# Format of library name prefix.
 
9333
libname_spec=$lt_libname_spec
 
9334
 
 
9335
# List of archive names.  First name is the real one, the rest are links.
 
9336
# The last name is the one that the linker finds with -lNAME.
 
9337
library_names_spec=$lt_library_names_spec
 
9338
 
 
9339
# The coded name of the library, if different from the real name.
 
9340
soname_spec=$lt_soname_spec
 
9341
 
 
9342
# Commands used to build and install an old-style archive.
 
9343
RANLIB=$lt_RANLIB
 
9344
old_archive_cmds=$lt_old_archive_cmds
 
9345
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9346
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9347
 
 
9348
# Create an old-style archive from a shared archive.
 
9349
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9350
 
 
9351
# Create a temporary old-style archive to link instead of a shared archive.
 
9352
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9353
 
 
9354
# Commands used to build and install a shared archive.
 
9355
archive_cmds=$lt_archive_cmds
 
9356
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9357
postinstall_cmds=$lt_postinstall_cmds
 
9358
postuninstall_cmds=$lt_postuninstall_cmds
 
9359
 
 
9360
# Commands used to build a loadable module (assumed same as above if empty)
 
9361
module_cmds=$lt_module_cmds
 
9362
module_expsym_cmds=$lt_module_expsym_cmds
 
9363
 
 
9364
# Commands to strip libraries.
 
9365
old_striplib=$lt_old_striplib
 
9366
striplib=$lt_striplib
 
9367
 
 
9368
# Dependencies to place before the objects being linked to create a
 
9369
# shared library.
 
9370
predep_objects=$lt_predep_objects
 
9371
 
 
9372
# Dependencies to place after the objects being linked to create a
 
9373
# shared library.
 
9374
postdep_objects=$lt_postdep_objects
 
9375
 
 
9376
# Dependencies to place before the objects being linked to create a
 
9377
# shared library.
 
9378
predeps=$lt_predeps
 
9379
 
 
9380
# Dependencies to place after the objects being linked to create a
 
9381
# shared library.
 
9382
postdeps=$lt_postdeps
 
9383
 
 
9384
# The library search path used internally by the compiler when linking
 
9385
# a shared library.
 
9386
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9387
 
 
9388
# Method to check whether dependent libraries are shared objects.
 
9389
deplibs_check_method=$lt_deplibs_check_method
 
9390
 
 
9391
# Command to use when deplibs_check_method == file_magic.
 
9392
file_magic_cmd=$lt_file_magic_cmd
 
9393
 
 
9394
# Flag that allows shared libraries with undefined symbols to be built.
 
9395
allow_undefined_flag=$lt_allow_undefined_flag
 
9396
 
 
9397
# Flag that forces no undefined symbols.
 
9398
no_undefined_flag=$lt_no_undefined_flag
 
9399
 
 
9400
# Commands used to finish a libtool library installation in a directory.
 
9401
finish_cmds=$lt_finish_cmds
 
9402
 
 
9403
# Same as above, but a single script fragment to be evaled but not shown.
 
9404
finish_eval=$lt_finish_eval
 
9405
 
 
9406
# Take the output of nm and produce a listing of raw symbols and C names.
 
9407
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9408
 
 
9409
# Transform the output of nm in a proper C declaration
 
9410
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9411
 
 
9412
# Transform the output of nm in a C name address pair
 
9413
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9414
 
 
9415
# This is the shared library runtime path variable.
 
9416
runpath_var=$runpath_var
 
9417
 
 
9418
# This is the shared library path variable.
 
9419
shlibpath_var=$shlibpath_var
 
9420
 
 
9421
# Is shlibpath searched before the hard-coded library search path?
 
9422
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9423
 
 
9424
# How to hardcode a shared library path into an executable.
 
9425
hardcode_action=$hardcode_action
 
9426
 
 
9427
# Whether we should hardcode library paths into libraries.
 
9428
hardcode_into_libs=$hardcode_into_libs
 
9429
 
 
9430
# Flag to hardcode \$libdir into a binary during linking.
 
9431
# This must work even if \$libdir does not exist.
 
9432
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9433
 
 
9434
# If ld is used when linking, flag to hardcode \$libdir into
 
9435
# a binary during linking. This must work even if \$libdir does
 
9436
# not exist.
 
9437
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9438
 
 
9439
# Whether we need a single -rpath flag with a separated argument.
 
9440
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9441
 
 
9442
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9443
# resulting binary.
 
9444
hardcode_direct=$hardcode_direct
 
9445
 
 
9446
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9447
# resulting binary.
 
9448
hardcode_minus_L=$hardcode_minus_L
 
9449
 
 
9450
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9451
# the resulting binary.
 
9452
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9453
 
 
9454
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9455
# and all subsequent libraries and executables linked against it.
 
9456
hardcode_automatic=$hardcode_automatic
 
9457
 
 
9458
# Variables whose values should be saved in libtool wrapper scripts and
 
9459
# restored at relink time.
 
9460
variables_saved_for_relink="$variables_saved_for_relink"
 
9461
 
 
9462
# Whether libtool must link a program against all its dependency libraries.
 
9463
link_all_deplibs=$link_all_deplibs
 
9464
 
 
9465
# Compile-time system search path for libraries
 
9466
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9467
 
 
9468
# Run-time system search path for libraries
 
9469
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9470
 
 
9471
# Fix the shell variable \$srcfile for the compiler.
 
9472
fix_srcfile_path="$fix_srcfile_path"
 
9473
 
 
9474
# Set to yes if exported symbols are required.
 
9475
always_export_symbols=$always_export_symbols
 
9476
 
 
9477
# The commands to list exported symbols.
 
9478
export_symbols_cmds=$lt_export_symbols_cmds
 
9479
 
 
9480
# The commands to extract the exported symbol list from a shared archive.
 
9481
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9482
 
 
9483
# Symbols that should not be listed in the preloaded symbols.
 
9484
exclude_expsyms=$lt_exclude_expsyms
 
9485
 
 
9486
# Symbols that must always be exported.
 
9487
include_expsyms=$lt_include_expsyms
 
9488
 
 
9489
# ### END LIBTOOL CONFIG
 
9490
 
 
9491
__EOF__
 
9492
 
 
9493
 
 
9494
  case $host_os in
 
9495
  aix3*)
 
9496
    cat <<\EOF >> "$cfgfile"
 
9497
 
 
9498
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9499
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9500
# vanish in a puff of smoke.
 
9501
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9502
  COLLECT_NAMES=
 
9503
  export COLLECT_NAMES
 
9504
fi
 
9505
EOF
 
9506
    ;;
 
9507
  esac
 
9508
 
 
9509
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9510
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9511
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9512
  # is reportedly fixed, but why not run on old versions too?
 
9513
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9514
 
 
9515
  mv -f "$cfgfile" "$ofile" || \
 
9516
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9517
  chmod +x "$ofile"
 
9518
 
 
9519
else
 
9520
  # If there is no Makefile yet, we rely on a make rule to execute
 
9521
  # `config.status --recheck' to rerun these tests and create the
 
9522
  # libtool script then.
 
9523
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9524
  if test -f "$ltmain_in"; then
 
9525
    test -f Makefile && make "$ltmain"
 
9526
  fi
 
9527
fi
 
9528
 
 
9529
 
 
9530
ac_ext=c
 
9531
ac_cpp='$CPP $CPPFLAGS'
 
9532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9535
 
 
9536
CC="$lt_save_CC"
 
9537
 
 
9538
 
 
9539
# Check whether --with-tags or --without-tags was given.
 
9540
if test "${with_tags+set}" = set; then
 
9541
  withval="$with_tags"
 
9542
  tagnames="$withval"
 
9543
fi;
 
9544
 
 
9545
if test -f "$ltmain" && test -n "$tagnames"; then
 
9546
  if test ! -f "${ofile}"; then
 
9547
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9548
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9549
  fi
 
9550
 
 
9551
  if test -z "$LTCC"; then
 
9552
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9553
    if test -z "$LTCC"; then
 
9554
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9555
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9556
    else
 
9557
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9558
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9559
    fi
 
9560
  fi
 
9561
 
 
9562
  # Extract list of available tagged configurations in $ofile.
 
9563
  # Note that this assumes the entire list is on one line.
 
9564
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9565
 
 
9566
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9567
  for tagname in $tagnames; do
 
9568
    IFS="$lt_save_ifs"
 
9569
    # Check whether tagname contains only valid characters
 
9570
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9571
    "") ;;
 
9572
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9573
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9574
   { (exit 1); exit 1; }; }
 
9575
        ;;
 
9576
    esac
 
9577
 
 
9578
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9579
    then
 
9580
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9581
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9582
   { (exit 1); exit 1; }; }
 
9583
    fi
 
9584
 
 
9585
    # Update the list of available tags.
 
9586
    if test -n "$tagname"; then
 
9587
      echo appending configuration tag \"$tagname\" to $ofile
 
9588
 
 
9589
      case $tagname in
 
9590
      CXX)
 
9591
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9592
          ac_ext=cc
 
9593
ac_cpp='$CXXCPP $CPPFLAGS'
 
9594
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9595
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9596
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9597
 
 
9598
 
 
9599
 
 
9600
 
 
9601
archive_cmds_need_lc_CXX=no
 
9602
allow_undefined_flag_CXX=
 
9603
always_export_symbols_CXX=no
 
9604
archive_expsym_cmds_CXX=
 
9605
export_dynamic_flag_spec_CXX=
 
9606
hardcode_direct_CXX=no
 
9607
hardcode_libdir_flag_spec_CXX=
 
9608
hardcode_libdir_flag_spec_ld_CXX=
 
9609
hardcode_libdir_separator_CXX=
 
9610
hardcode_minus_L_CXX=no
 
9611
hardcode_automatic_CXX=no
 
9612
module_cmds_CXX=
 
9613
module_expsym_cmds_CXX=
 
9614
link_all_deplibs_CXX=unknown
 
9615
old_archive_cmds_CXX=$old_archive_cmds
 
9616
no_undefined_flag_CXX=
 
9617
whole_archive_flag_spec_CXX=
 
9618
enable_shared_with_static_runtimes_CXX=no
 
9619
 
 
9620
# Dependencies to place before and after the object being linked:
 
9621
predep_objects_CXX=
 
9622
postdep_objects_CXX=
 
9623
predeps_CXX=
 
9624
postdeps_CXX=
 
9625
compiler_lib_search_path_CXX=
 
9626
 
 
9627
# Source file extension for C++ test sources.
 
9628
ac_ext=cc
 
9629
 
 
9630
# Object file extension for compiled C++ test sources.
 
9631
objext=o
 
9632
objext_CXX=$objext
 
9633
 
 
9634
# Code to be used in simple compile tests
 
9635
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9636
 
 
9637
# Code to be used in simple link tests
 
9638
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9639
 
 
9640
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9641
 
 
9642
# If no C compiler was specified, use CC.
 
9643
LTCC=${LTCC-"$CC"}
 
9644
 
 
9645
# Allow CC to be a program name with arguments.
 
9646
compiler=$CC
 
9647
 
 
9648
 
 
9649
# Allow CC to be a program name with arguments.
 
9650
lt_save_CC=$CC
 
9651
lt_save_LD=$LD
 
9652
lt_save_GCC=$GCC
 
9653
GCC=$GXX
 
9654
lt_save_with_gnu_ld=$with_gnu_ld
 
9655
lt_save_path_LD=$lt_cv_path_LD
 
9656
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9657
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9658
else
 
9659
  unset lt_cv_prog_gnu_ld
 
9660
fi
 
9661
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9662
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9663
else
 
9664
  unset lt_cv_path_LD
 
9665
fi
 
9666
test -z "${LDCXX+set}" || LD=$LDCXX
 
9667
CC=${CXX-"c++"}
 
9668
compiler=$CC
 
9669
compiler_CXX=$CC
 
9670
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9671
 
 
9672
# We don't want -fno-exception wen compiling C++ code, so set the
 
9673
# no_builtin_flag separately
 
9674
if test "$GXX" = yes; then
 
9675
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9676
else
 
9677
  lt_prog_compiler_no_builtin_flag_CXX=
 
9678
fi
 
9679
 
 
9680
if test "$GXX" = yes; then
 
9681
  # Set up default GNU C++ configuration
 
9682
 
 
9683
 
 
9684
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9685
if test "${with_gnu_ld+set}" = set; then
 
9686
  withval="$with_gnu_ld"
 
9687
  test "$withval" = no || with_gnu_ld=yes
 
9688
else
 
9689
  with_gnu_ld=no
 
9690
fi;
 
9691
ac_prog=ld
 
9692
if test "$GCC" = yes; then
 
9693
  # Check if gcc -print-prog-name=ld gives a path.
 
9694
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9695
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9696
  case $host in
 
9697
  *-*-mingw*)
 
9698
    # gcc leaves a trailing carriage return which upsets mingw
 
9699
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9700
  *)
 
9701
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9702
  esac
 
9703
  case $ac_prog in
 
9704
    # Accept absolute paths.
 
9705
    [\\/]* | ?:[\\/]*)
 
9706
      re_direlt='/[^/][^/]*/\.\./'
 
9707
      # Canonicalize the pathname of ld
 
9708
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9709
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9710
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9711
      done
 
9712
      test -z "$LD" && LD="$ac_prog"
 
9713
      ;;
 
9714
  "")
 
9715
    # If it fails, then pretend we aren't using GCC.
 
9716
    ac_prog=ld
 
9717
    ;;
 
9718
  *)
 
9719
    # If it is relative, then search for the first ld in PATH.
 
9720
    with_gnu_ld=unknown
 
9721
    ;;
 
9722
  esac
 
9723
elif test "$with_gnu_ld" = yes; then
 
9724
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9725
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9726
else
 
9727
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9728
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9729
fi
 
9730
if test "${lt_cv_path_LD+set}" = set; then
 
9731
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9732
else
 
9733
  if test -z "$LD"; then
 
9734
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9735
  for ac_dir in $PATH; do
 
9736
    IFS="$lt_save_ifs"
 
9737
    test -z "$ac_dir" && ac_dir=.
 
9738
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9739
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9740
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9741
      # but apparently some GNU ld's only accept -v.
 
9742
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9743
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9744
      *GNU* | *'with BFD'*)
 
9745
        test "$with_gnu_ld" != no && break
 
9746
        ;;
 
9747
      *)
 
9748
        test "$with_gnu_ld" != yes && break
 
9749
        ;;
 
9750
      esac
 
9751
    fi
 
9752
  done
 
9753
  IFS="$lt_save_ifs"
 
9754
else
 
9755
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9756
fi
 
9757
fi
 
9758
 
 
9759
LD="$lt_cv_path_LD"
 
9760
if test -n "$LD"; then
 
9761
  echo "$as_me:$LINENO: result: $LD" >&5
 
9762
echo "${ECHO_T}$LD" >&6
 
9763
else
 
9764
  echo "$as_me:$LINENO: result: no" >&5
 
9765
echo "${ECHO_T}no" >&6
 
9766
fi
 
9767
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9768
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9769
   { (exit 1); exit 1; }; }
 
9770
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9771
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9772
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9773
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9774
else
 
9775
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9776
case `$LD -v 2>&1 </dev/null` in
 
9777
*GNU* | *'with BFD'*)
 
9778
  lt_cv_prog_gnu_ld=yes
 
9779
  ;;
 
9780
*)
 
9781
  lt_cv_prog_gnu_ld=no
 
9782
  ;;
 
9783
esac
 
9784
fi
 
9785
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9786
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9787
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9788
 
 
9789
 
 
9790
 
 
9791
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9792
  # archiving commands below assume that GNU ld is being used.
 
9793
  if test "$with_gnu_ld" = yes; then
 
9794
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9795
    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'
 
9796
 
 
9797
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9798
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9799
 
 
9800
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9801
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9802
    #     investigate it a little bit more. (MM)
 
9803
    wlarc='${wl}'
 
9804
 
 
9805
    # ancient GNU ld didn't support --whole-archive et. al.
 
9806
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9807
        grep 'no-whole-archive' > /dev/null; then
 
9808
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9809
    else
 
9810
      whole_archive_flag_spec_CXX=
 
9811
    fi
 
9812
  else
 
9813
    with_gnu_ld=no
 
9814
    wlarc=
 
9815
 
 
9816
    # A generic and very simple default shared library creation
 
9817
    # command for GNU C++ for the case where it uses the native
 
9818
    # linker, instead of GNU ld.  If possible, this setting should
 
9819
    # overridden to take advantage of the native linker features on
 
9820
    # the platform it is being used on.
 
9821
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9822
  fi
 
9823
 
 
9824
  # Commands to make compiler produce verbose output that lists
 
9825
  # what "hidden" libraries, object files and flags are used when
 
9826
  # linking a shared library.
 
9827
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9828
 
 
9829
else
 
9830
  GXX=no
 
9831
  with_gnu_ld=no
 
9832
  wlarc=
 
9833
fi
 
9834
 
 
9835
# PORTME: fill in a description of your system's C++ link characteristics
 
9836
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9837
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9838
ld_shlibs_CXX=yes
 
9839
case $host_os in
 
9840
  aix3*)
 
9841
    # FIXME: insert proper C++ library support
 
9842
    ld_shlibs_CXX=no
 
9843
    ;;
 
9844
  aix4* | aix5*)
 
9845
    if test "$host_cpu" = ia64; then
 
9846
      # On IA64, the linker does run time linking by default, so we don't
 
9847
      # have to do anything special.
 
9848
      aix_use_runtimelinking=no
 
9849
      exp_sym_flag='-Bexport'
 
9850
      no_entry_flag=""
 
9851
    else
 
9852
      aix_use_runtimelinking=no
 
9853
 
 
9854
      # Test if we are trying to use run time linking or normal
 
9855
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9856
      # need to do runtime linking.
 
9857
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9858
        for ld_flag in $LDFLAGS; do
 
9859
          case $ld_flag in
 
9860
          *-brtl*)
 
9861
            aix_use_runtimelinking=yes
 
9862
            break
 
9863
            ;;
 
9864
          esac
 
9865
        done
 
9866
      esac
 
9867
 
 
9868
      exp_sym_flag='-bexport'
 
9869
      no_entry_flag='-bnoentry'
 
9870
    fi
 
9871
 
 
9872
    # When large executables or shared objects are built, AIX ld can
 
9873
    # have problems creating the table of contents.  If linking a library
 
9874
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9875
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9876
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9877
 
 
9878
    archive_cmds_CXX=''
 
9879
    hardcode_direct_CXX=yes
 
9880
    hardcode_libdir_separator_CXX=':'
 
9881
    link_all_deplibs_CXX=yes
 
9882
 
 
9883
    if test "$GXX" = yes; then
 
9884
      case $host_os in aix4.012|aix4.012.*)
 
9885
      # We only want to do this on AIX 4.2 and lower, the check
 
9886
      # below for broken collect2 doesn't work under 4.3+
 
9887
        collect2name=`${CC} -print-prog-name=collect2`
 
9888
        if test -f "$collect2name" && \
 
9889
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9890
        then
 
9891
          # We have reworked collect2
 
9892
          hardcode_direct_CXX=yes
 
9893
        else
 
9894
          # We have old collect2
 
9895
          hardcode_direct_CXX=unsupported
 
9896
          # It fails to find uninstalled libraries when the uninstalled
 
9897
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9898
          # to unsupported forces relinking
 
9899
          hardcode_minus_L_CXX=yes
 
9900
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9901
          hardcode_libdir_separator_CXX=
 
9902
        fi
 
9903
      esac
 
9904
      shared_flag='-shared'
 
9905
    else
 
9906
      # not using gcc
 
9907
      if test "$host_cpu" = ia64; then
 
9908
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9909
        # chokes on -Wl,-G. The following line is correct:
 
9910
        shared_flag='-G'
 
9911
      else
 
9912
        if test "$aix_use_runtimelinking" = yes; then
 
9913
          shared_flag='${wl}-G'
 
9914
        else
 
9915
          shared_flag='${wl}-bM:SRE'
 
9916
        fi
 
9917
      fi
 
9918
    fi
 
9919
 
 
9920
    # It seems that -bexpall does not export symbols beginning with
 
9921
    # underscore (_), so it is better to generate a list of symbols to export.
 
9922
    always_export_symbols_CXX=yes
 
9923
    if test "$aix_use_runtimelinking" = yes; then
 
9924
      # Warning - without using the other runtime loading flags (-brtl),
 
9925
      # -berok will link without error, but may produce a broken library.
 
9926
      allow_undefined_flag_CXX='-berok'
 
9927
      # Determine the default libpath from the value encoded in an empty executable.
 
9928
      cat >conftest.$ac_ext <<_ACEOF
 
9929
/* confdefs.h.  */
 
9930
_ACEOF
 
9931
cat confdefs.h >>conftest.$ac_ext
 
9932
cat >>conftest.$ac_ext <<_ACEOF
 
9933
/* end confdefs.h.  */
 
9934
 
 
9935
int
 
9936
main ()
 
9937
{
 
9938
 
 
9939
  ;
 
9940
  return 0;
 
9941
}
 
9942
_ACEOF
 
9943
rm -f conftest.$ac_objext conftest$ac_exeext
 
9944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9945
  (eval $ac_link) 2>conftest.er1
 
9946
  ac_status=$?
 
9947
  grep -v '^ *+' conftest.er1 >conftest.err
 
9948
  rm -f conftest.er1
 
9949
  cat conftest.err >&5
 
9950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9951
  (exit $ac_status); } &&
 
9952
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
9953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9954
  (eval $ac_try) 2>&5
 
9955
  ac_status=$?
 
9956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9957
  (exit $ac_status); }; } &&
 
9958
         { ac_try='test -s conftest$ac_exeext'
 
9959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9960
  (eval $ac_try) 2>&5
 
9961
  ac_status=$?
 
9962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9963
  (exit $ac_status); }; }; then
 
9964
 
 
9965
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9966
}'`
 
9967
# Check for a 64-bit object if we didn't find anything.
 
9968
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; }
 
9969
}'`; fi
 
9970
else
 
9971
  echo "$as_me: failed program was:" >&5
 
9972
sed 's/^/| /' conftest.$ac_ext >&5
 
9973
 
 
9974
fi
 
9975
rm -f conftest.err conftest.$ac_objext \
 
9976
      conftest$ac_exeext conftest.$ac_ext
 
9977
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9978
 
 
9979
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9980
 
 
9981
      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"
 
9982
     else
 
9983
      if test "$host_cpu" = ia64; then
 
9984
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
9985
        allow_undefined_flag_CXX="-z nodefs"
 
9986
        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"
 
9987
      else
 
9988
        # Determine the default libpath from the value encoded in an empty executable.
 
9989
        cat >conftest.$ac_ext <<_ACEOF
 
9990
/* confdefs.h.  */
 
9991
_ACEOF
 
9992
cat confdefs.h >>conftest.$ac_ext
 
9993
cat >>conftest.$ac_ext <<_ACEOF
 
9994
/* end confdefs.h.  */
 
9995
 
 
9996
int
 
9997
main ()
 
9998
{
 
9999
 
 
10000
  ;
 
10001
  return 0;
 
10002
}
 
10003
_ACEOF
 
10004
rm -f conftest.$ac_objext conftest$ac_exeext
 
10005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10006
  (eval $ac_link) 2>conftest.er1
 
10007
  ac_status=$?
 
10008
  grep -v '^ *+' conftest.er1 >conftest.err
 
10009
  rm -f conftest.er1
 
10010
  cat conftest.err >&5
 
10011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10012
  (exit $ac_status); } &&
 
10013
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10015
  (eval $ac_try) 2>&5
 
10016
  ac_status=$?
 
10017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10018
  (exit $ac_status); }; } &&
 
10019
         { ac_try='test -s conftest$ac_exeext'
 
10020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10021
  (eval $ac_try) 2>&5
 
10022
  ac_status=$?
 
10023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10024
  (exit $ac_status); }; }; then
 
10025
 
 
10026
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10027
}'`
 
10028
# Check for a 64-bit object if we didn't find anything.
 
10029
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; }
 
10030
}'`; fi
 
10031
else
 
10032
  echo "$as_me: failed program was:" >&5
 
10033
sed 's/^/| /' conftest.$ac_ext >&5
 
10034
 
 
10035
fi
 
10036
rm -f conftest.err conftest.$ac_objext \
 
10037
      conftest$ac_exeext conftest.$ac_ext
 
10038
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10039
 
 
10040
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10041
        # Warning - without using the other run time loading flags,
 
10042
        # -berok will link without error, but may produce a broken library.
 
10043
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10044
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10045
        # -bexpall does not export symbols beginning with underscore (_)
 
10046
        always_export_symbols_CXX=yes
 
10047
        # Exported symbols can be pulled into shared objects from archives
 
10048
        whole_archive_flag_spec_CXX=' '
 
10049
        archive_cmds_need_lc_CXX=yes
 
10050
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10051
        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'
 
10052
      fi
 
10053
    fi
 
10054
    ;;
 
10055
  chorus*)
 
10056
    case $cc_basename in
 
10057
      *)
 
10058
        # FIXME: insert proper C++ library support
 
10059
        ld_shlibs_CXX=no
 
10060
        ;;
 
10061
    esac
 
10062
    ;;
 
10063
 
 
10064
  cygwin* | mingw* | pw32*)
 
10065
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10066
    # as there is no search path for DLLs.
 
10067
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10068
    allow_undefined_flag_CXX=unsupported
 
10069
    always_export_symbols_CXX=no
 
10070
    enable_shared_with_static_runtimes_CXX=yes
 
10071
 
 
10072
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10073
      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'
 
10074
      # If the export-symbols file already is a .def file (1st line
 
10075
      # is EXPORTS), use it as is; otherwise, prepend...
 
10076
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10077
        cp $export_symbols $output_objdir/$soname.def;
 
10078
      else
 
10079
        echo EXPORTS > $output_objdir/$soname.def;
 
10080
        cat $export_symbols >> $output_objdir/$soname.def;
 
10081
      fi~
 
10082
      $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'
 
10083
    else
 
10084
      ld_shlibs_CXX=no
 
10085
    fi
 
10086
  ;;
 
10087
 
 
10088
  darwin* | rhapsody*)
 
10089
  if test "$GXX" = yes; then
 
10090
    archive_cmds_need_lc_CXX=no
 
10091
    case "$host_os" in
 
10092
    rhapsody* | darwin1.[012])
 
10093
      allow_undefined_flag_CXX='-undefined suppress'
 
10094
      ;;
 
10095
    *) # Darwin 1.3 on
 
10096
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10097
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10098
      else
 
10099
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10100
          10.[012])
 
10101
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10102
            ;;
 
10103
          10.*)
 
10104
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
10105
            ;;
 
10106
        esac
 
10107
      fi
 
10108
      ;;
 
10109
    esac
 
10110
    lt_int_apple_cc_single_mod=no
 
10111
    output_verbose_link_cmd='echo'
 
10112
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
10113
      lt_int_apple_cc_single_mod=yes
 
10114
    fi
 
10115
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10116
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10117
    else
 
10118
      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'
 
10119
    fi
 
10120
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10121
 
 
10122
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10123
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10124
      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}'
 
10125
    else
 
10126
      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}'
 
10127
    fi
 
10128
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10129
    hardcode_direct_CXX=no
 
10130
    hardcode_automatic_CXX=yes
 
10131
    hardcode_shlibpath_var_CXX=unsupported
 
10132
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
10133
    link_all_deplibs_CXX=yes
 
10134
  else
 
10135
    ld_shlibs_CXX=no
 
10136
  fi
 
10137
    ;;
 
10138
 
 
10139
  dgux*)
 
10140
    case $cc_basename in
 
10141
      ec++)
 
10142
        # FIXME: insert proper C++ library support
 
10143
        ld_shlibs_CXX=no
 
10144
        ;;
 
10145
      ghcx)
 
10146
        # Green Hills C++ Compiler
 
10147
        # FIXME: insert proper C++ library support
 
10148
        ld_shlibs_CXX=no
 
10149
        ;;
 
10150
      *)
 
10151
        # FIXME: insert proper C++ library support
 
10152
        ld_shlibs_CXX=no
 
10153
        ;;
 
10154
    esac
 
10155
    ;;
 
10156
  freebsd12*)
 
10157
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10158
    ld_shlibs_CXX=no
 
10159
    ;;
 
10160
  freebsd-elf*)
 
10161
    archive_cmds_need_lc_CXX=no
 
10162
    ;;
 
10163
  freebsd* | kfreebsd*-gnu)
 
10164
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10165
    # conventions
 
10166
    ld_shlibs_CXX=yes
 
10167
    ;;
 
10168
  gnu*)
 
10169
    ;;
 
10170
  hpux9*)
 
10171
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10172
    hardcode_libdir_separator_CXX=:
 
10173
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10174
    hardcode_direct_CXX=yes
 
10175
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10176
                                # but as the default
 
10177
                                # location of the library.
 
10178
 
 
10179
    case $cc_basename in
 
10180
    CC)
 
10181
      # FIXME: insert proper C++ library support
 
10182
      ld_shlibs_CXX=no
 
10183
      ;;
 
10184
    aCC)
 
10185
      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'
 
10186
      # Commands to make compiler produce verbose output that lists
 
10187
      # what "hidden" libraries, object files and flags are used when
 
10188
      # linking a shared library.
 
10189
      #
 
10190
      # There doesn't appear to be a way to prevent this compiler from
 
10191
      # explicitly linking system object files so we need to strip them
 
10192
      # from the output so that they don't get included in the library
 
10193
      # dependencies.
 
10194
      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'
 
10195
      ;;
 
10196
    *)
 
10197
      if test "$GXX" = yes; then
 
10198
        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'
 
10199
      else
 
10200
        # FIXME: insert proper C++ library support
 
10201
        ld_shlibs_CXX=no
 
10202
      fi
 
10203
      ;;
 
10204
    esac
 
10205
    ;;
 
10206
  hpux10*|hpux11*)
 
10207
    if test $with_gnu_ld = no; then
 
10208
      case "$host_cpu" in
 
10209
      hppa*64*)
 
10210
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10211
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10212
        hardcode_libdir_separator_CXX=:
 
10213
        ;;
 
10214
      ia64*)
 
10215
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10216
        ;;
 
10217
      *)
 
10218
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10219
        hardcode_libdir_separator_CXX=:
 
10220
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10221
        ;;
 
10222
      esac
 
10223
    fi
 
10224
    case "$host_cpu" in
 
10225
    hppa*64*)
 
10226
      hardcode_direct_CXX=no
 
10227
      hardcode_shlibpath_var_CXX=no
 
10228
      ;;
 
10229
    ia64*)
 
10230
      hardcode_direct_CXX=no
 
10231
      hardcode_shlibpath_var_CXX=no
 
10232
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10233
                                              # but as the default
 
10234
                                              # location of the library.
 
10235
      ;;
 
10236
    *)
 
10237
      hardcode_direct_CXX=yes
 
10238
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10239
                                              # but as the default
 
10240
                                              # location of the library.
 
10241
      ;;
 
10242
    esac
 
10243
 
 
10244
    case $cc_basename in
 
10245
      CC)
 
10246
        # FIXME: insert proper C++ library support
 
10247
        ld_shlibs_CXX=no
 
10248
        ;;
 
10249
      aCC)
 
10250
        case "$host_cpu" in
 
10251
        hppa*64*|ia64*)
 
10252
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10253
          ;;
 
10254
        *)
 
10255
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10256
          ;;
 
10257
        esac
 
10258
        # Commands to make compiler produce verbose output that lists
 
10259
        # what "hidden" libraries, object files and flags are used when
 
10260
        # linking a shared library.
 
10261
        #
 
10262
        # There doesn't appear to be a way to prevent this compiler from
 
10263
        # explicitly linking system object files so we need to strip them
 
10264
        # from the output so that they don't get included in the library
 
10265
        # dependencies.
 
10266
        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'
 
10267
        ;;
 
10268
      *)
 
10269
        if test "$GXX" = yes; then
 
10270
          if test $with_gnu_ld = no; then
 
10271
            case "$host_cpu" in
 
10272
            ia64*|hppa*64*)
 
10273
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10274
              ;;
 
10275
            *)
 
10276
              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'
 
10277
              ;;
 
10278
            esac
 
10279
          fi
 
10280
        else
 
10281
          # FIXME: insert proper C++ library support
 
10282
          ld_shlibs_CXX=no
 
10283
        fi
 
10284
        ;;
 
10285
    esac
 
10286
    ;;
 
10287
  irix5* | irix6*)
 
10288
    case $cc_basename in
 
10289
      CC)
 
10290
        # SGI C++
 
10291
        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'
 
10292
 
 
10293
        # Archives containing C++ object files must be created using
 
10294
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10295
        # necessary to make sure instantiated templates are included
 
10296
        # in the archive.
 
10297
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10298
        ;;
 
10299
      *)
 
10300
        if test "$GXX" = yes; then
 
10301
          if test "$with_gnu_ld" = no; then
 
10302
            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'
 
10303
          else
 
10304
            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'
 
10305
          fi
 
10306
        fi
 
10307
        link_all_deplibs_CXX=yes
 
10308
        ;;
 
10309
    esac
 
10310
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10311
    hardcode_libdir_separator_CXX=:
 
10312
    ;;
 
10313
  linux*)
 
10314
    case $cc_basename in
 
10315
      KCC)
 
10316
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10317
 
 
10318
        # KCC will only create a shared library if the output file
 
10319
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10320
        # to its proper name (with version) after linking.
 
10321
        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'
 
10322
        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'
 
10323
        # Commands to make compiler produce verbose output that lists
 
10324
        # what "hidden" libraries, object files and flags are used when
 
10325
        # linking a shared library.
 
10326
        #
 
10327
        # There doesn't appear to be a way to prevent this compiler from
 
10328
        # explicitly linking system object files so we need to strip them
 
10329
        # from the output so that they don't get included in the library
 
10330
        # dependencies.
 
10331
        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'
 
10332
 
 
10333
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10334
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10335
 
 
10336
        # Archives containing C++ object files must be created using
 
10337
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10338
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10339
        ;;
 
10340
      icpc)
 
10341
        # Intel C++
 
10342
        with_gnu_ld=yes
 
10343
        archive_cmds_need_lc_CXX=no
 
10344
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10345
        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'
 
10346
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10347
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10348
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10349
        ;;
 
10350
      cxx)
 
10351
        # Compaq C++
 
10352
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10353
        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'
 
10354
 
 
10355
        runpath_var=LD_RUN_PATH
 
10356
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10357
        hardcode_libdir_separator_CXX=:
 
10358
 
 
10359
        # Commands to make compiler produce verbose output that lists
 
10360
        # what "hidden" libraries, object files and flags are used when
 
10361
        # linking a shared library.
 
10362
        #
 
10363
        # There doesn't appear to be a way to prevent this compiler from
 
10364
        # explicitly linking system object files so we need to strip them
 
10365
        # from the output so that they don't get included in the library
 
10366
        # dependencies.
 
10367
        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'
 
10368
        ;;
 
10369
    esac
 
10370
    ;;
 
10371
  lynxos*)
 
10372
    # FIXME: insert proper C++ library support
 
10373
    ld_shlibs_CXX=no
 
10374
    ;;
 
10375
  m88k*)
 
10376
    # FIXME: insert proper C++ library support
 
10377
    ld_shlibs_CXX=no
 
10378
    ;;
 
10379
  mvs*)
 
10380
    case $cc_basename in
 
10381
      cxx)
 
10382
        # FIXME: insert proper C++ library support
 
10383
        ld_shlibs_CXX=no
 
10384
        ;;
 
10385
      *)
 
10386
        # FIXME: insert proper C++ library support
 
10387
        ld_shlibs_CXX=no
 
10388
        ;;
 
10389
    esac
 
10390
    ;;
 
10391
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10392
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10393
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10394
      wlarc=
 
10395
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10396
      hardcode_direct_CXX=yes
 
10397
      hardcode_shlibpath_var_CXX=no
 
10398
    fi
 
10399
    # Workaround some broken pre-1.5 toolchains
 
10400
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10401
    ;;
 
10402
  osf3*)
 
10403
    case $cc_basename in
 
10404
      KCC)
 
10405
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10406
 
 
10407
        # KCC will only create a shared library if the output file
 
10408
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10409
        # to its proper name (with version) after linking.
 
10410
        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'
 
10411
 
 
10412
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10413
        hardcode_libdir_separator_CXX=:
 
10414
 
 
10415
        # Archives containing C++ object files must be created using
 
10416
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10417
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10418
 
 
10419
        ;;
 
10420
      RCC)
 
10421
        # Rational C++ 2.4.1
 
10422
        # FIXME: insert proper C++ library support
 
10423
        ld_shlibs_CXX=no
 
10424
        ;;
 
10425
      cxx)
 
10426
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10427
        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'
 
10428
 
 
10429
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10430
        hardcode_libdir_separator_CXX=:
 
10431
 
 
10432
        # Commands to make compiler produce verbose output that lists
 
10433
        # what "hidden" libraries, object files and flags are used when
 
10434
        # linking a shared library.
 
10435
        #
 
10436
        # There doesn't appear to be a way to prevent this compiler from
 
10437
        # explicitly linking system object files so we need to strip them
 
10438
        # from the output so that they don't get included in the library
 
10439
        # dependencies.
 
10440
        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'
 
10441
        ;;
 
10442
      *)
 
10443
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10444
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10445
          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'
 
10446
 
 
10447
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10448
          hardcode_libdir_separator_CXX=:
 
10449
 
 
10450
          # Commands to make compiler produce verbose output that lists
 
10451
          # what "hidden" libraries, object files and flags are used when
 
10452
          # linking a shared library.
 
10453
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10454
 
 
10455
        else
 
10456
          # FIXME: insert proper C++ library support
 
10457
          ld_shlibs_CXX=no
 
10458
        fi
 
10459
        ;;
 
10460
    esac
 
10461
    ;;
 
10462
  osf4* | osf5*)
 
10463
    case $cc_basename in
 
10464
      KCC)
 
10465
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10466
 
 
10467
        # KCC will only create a shared library if the output file
 
10468
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10469
        # to its proper name (with version) after linking.
 
10470
        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'
 
10471
 
 
10472
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10473
        hardcode_libdir_separator_CXX=:
 
10474
 
 
10475
        # Archives containing C++ object files must be created using
 
10476
        # the KAI C++ compiler.
 
10477
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10478
        ;;
 
10479
      RCC)
 
10480
        # Rational C++ 2.4.1
 
10481
        # FIXME: insert proper C++ library support
 
10482
        ld_shlibs_CXX=no
 
10483
        ;;
 
10484
      cxx)
 
10485
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10486
        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'
 
10487
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10488
          echo "-hidden">> $lib.exp~
 
10489
          $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~
 
10490
          $rm $lib.exp'
 
10491
 
 
10492
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10493
        hardcode_libdir_separator_CXX=:
 
10494
 
 
10495
        # Commands to make compiler produce verbose output that lists
 
10496
        # what "hidden" libraries, object files and flags are used when
 
10497
        # linking a shared library.
 
10498
        #
 
10499
        # There doesn't appear to be a way to prevent this compiler from
 
10500
        # explicitly linking system object files so we need to strip them
 
10501
        # from the output so that they don't get included in the library
 
10502
        # dependencies.
 
10503
        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'
 
10504
        ;;
 
10505
      *)
 
10506
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10507
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10508
         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'
 
10509
 
 
10510
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10511
          hardcode_libdir_separator_CXX=:
 
10512
 
 
10513
          # Commands to make compiler produce verbose output that lists
 
10514
          # what "hidden" libraries, object files and flags are used when
 
10515
          # linking a shared library.
 
10516
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10517
 
 
10518
        else
 
10519
          # FIXME: insert proper C++ library support
 
10520
          ld_shlibs_CXX=no
 
10521
        fi
 
10522
        ;;
 
10523
    esac
 
10524
    ;;
 
10525
  psos*)
 
10526
    # FIXME: insert proper C++ library support
 
10527
    ld_shlibs_CXX=no
 
10528
    ;;
 
10529
  sco*)
 
10530
    archive_cmds_need_lc_CXX=no
 
10531
    case $cc_basename in
 
10532
      CC)
 
10533
        # FIXME: insert proper C++ library support
 
10534
        ld_shlibs_CXX=no
 
10535
        ;;
 
10536
      *)
 
10537
        # FIXME: insert proper C++ library support
 
10538
        ld_shlibs_CXX=no
 
10539
        ;;
 
10540
    esac
 
10541
    ;;
 
10542
  sunos4*)
 
10543
    case $cc_basename in
 
10544
      CC)
 
10545
        # Sun C++ 4.x
 
10546
        # FIXME: insert proper C++ library support
 
10547
        ld_shlibs_CXX=no
 
10548
        ;;
 
10549
      lcc)
 
10550
        # Lucid
 
10551
        # FIXME: insert proper C++ library support
 
10552
        ld_shlibs_CXX=no
 
10553
        ;;
 
10554
      *)
 
10555
        # FIXME: insert proper C++ library support
 
10556
        ld_shlibs_CXX=no
 
10557
        ;;
 
10558
    esac
 
10559
    ;;
 
10560
  solaris*)
 
10561
    case $cc_basename in
 
10562
      CC)
 
10563
        # Sun C++ 4.2, 5.x and Centerline C++
 
10564
        no_undefined_flag_CXX=' -zdefs'
 
10565
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10566
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10567
        $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'
 
10568
 
 
10569
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10570
        hardcode_shlibpath_var_CXX=no
 
10571
        case $host_os in
 
10572
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10573
          *)
 
10574
            # The C++ compiler is used as linker so we must use $wl
 
10575
            # flag to pass the commands to the underlying system
 
10576
            # linker.
 
10577
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10578
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10579
            ;;
 
10580
        esac
 
10581
        link_all_deplibs_CXX=yes
 
10582
 
 
10583
        # Commands to make compiler produce verbose output that lists
 
10584
        # what "hidden" libraries, object files and flags are used when
 
10585
        # linking a shared library.
 
10586
        #
 
10587
        # There doesn't appear to be a way to prevent this compiler from
 
10588
        # explicitly linking system object files so we need to strip them
 
10589
        # from the output so that they don't get included in the library
 
10590
        # dependencies.
 
10591
        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'
 
10592
 
 
10593
        # Archives containing C++ object files must be created using
 
10594
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10595
        # necessary to make sure instantiated templates are included
 
10596
        # in the archive.
 
10597
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10598
        ;;
 
10599
      gcx)
 
10600
        # Green Hills C++ Compiler
 
10601
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10602
 
 
10603
        # The C++ compiler must be used to create the archive.
 
10604
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10605
        ;;
 
10606
      *)
 
10607
        # GNU C++ compiler with Solaris linker
 
10608
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10609
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10610
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10611
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10612
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10613
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10614
 
 
10615
            # Commands to make compiler produce verbose output that lists
 
10616
            # what "hidden" libraries, object files and flags are used when
 
10617
            # linking a shared library.
 
10618
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10619
          else
 
10620
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10621
            # platform.
 
10622
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10623
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10624
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10625
 
 
10626
            # Commands to make compiler produce verbose output that lists
 
10627
            # what "hidden" libraries, object files and flags are used when
 
10628
            # linking a shared library.
 
10629
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10630
          fi
 
10631
 
 
10632
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10633
        fi
 
10634
        ;;
 
10635
    esac
 
10636
    ;;
 
10637
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10638
    archive_cmds_need_lc_CXX=no
 
10639
    ;;
 
10640
  tandem*)
 
10641
    case $cc_basename in
 
10642
      NCC)
 
10643
        # NonStop-UX NCC 3.20
 
10644
        # FIXME: insert proper C++ library support
 
10645
        ld_shlibs_CXX=no
 
10646
        ;;
 
10647
      *)
 
10648
        # FIXME: insert proper C++ library support
 
10649
        ld_shlibs_CXX=no
 
10650
        ;;
 
10651
    esac
 
10652
    ;;
 
10653
  vxworks*)
 
10654
    # FIXME: insert proper C++ library support
 
10655
    ld_shlibs_CXX=no
 
10656
    ;;
 
10657
  *)
 
10658
    # FIXME: insert proper C++ library support
 
10659
    ld_shlibs_CXX=no
 
10660
    ;;
 
10661
esac
 
10662
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10663
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10664
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10665
 
 
10666
GCC_CXX="$GXX"
 
10667
LD_CXX="$LD"
 
10668
 
 
10669
 
 
10670
cat > conftest.$ac_ext <<EOF
 
10671
class Foo
 
10672
{
 
10673
public:
 
10674
  Foo (void) { a = 0; }
 
10675
private:
 
10676
  int a;
 
10677
};
 
10678
EOF
 
10679
 
 
10680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10681
  (eval $ac_compile) 2>&5
 
10682
  ac_status=$?
 
10683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10684
  (exit $ac_status); }; then
 
10685
  # Parse the compiler output and extract the necessary
 
10686
  # objects, libraries and library flags.
 
10687
 
 
10688
  # Sentinel used to keep track of whether or not we are before
 
10689
  # the conftest object file.
 
10690
  pre_test_object_deps_done=no
 
10691
 
 
10692
  # The `*' in the case matches for architectures that use `case' in
 
10693
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10694
  # eval without this substitution.
 
10695
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10696
 
 
10697
  for p in `eval $output_verbose_link_cmd`; do
 
10698
    case $p in
 
10699
 
 
10700
    -L* | -R* | -l*)
 
10701
       # Some compilers place space between "-{L,R}" and the path.
 
10702
       # Remove the space.
 
10703
       if test $p = "-L" \
 
10704
          || test $p = "-R"; then
 
10705
         prev=$p
 
10706
         continue
 
10707
       else
 
10708
         prev=
 
10709
       fi
 
10710
 
 
10711
       if test "$pre_test_object_deps_done" = no; then
 
10712
         case $p in
 
10713
         -L* | -R*)
 
10714
           # Internal compiler library paths should come after those
 
10715
           # provided the user.  The postdeps already come after the
 
10716
           # user supplied libs so there is no need to process them.
 
10717
           if test -z "$compiler_lib_search_path_CXX"; then
 
10718
             compiler_lib_search_path_CXX="${prev}${p}"
 
10719
           else
 
10720
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
10721
           fi
 
10722
           ;;
 
10723
         # The "-l" case would never come before the object being
 
10724
         # linked, so don't bother handling this case.
 
10725
         esac
 
10726
       else
 
10727
         if test -z "$postdeps_CXX"; then
 
10728
           postdeps_CXX="${prev}${p}"
 
10729
         else
 
10730
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
10731
         fi
 
10732
       fi
 
10733
       ;;
 
10734
 
 
10735
    *.$objext)
 
10736
       # This assumes that the test object file only shows up
 
10737
       # once in the compiler output.
 
10738
       if test "$p" = "conftest.$objext"; then
 
10739
         pre_test_object_deps_done=yes
 
10740
         continue
 
10741
       fi
 
10742
 
 
10743
       if test "$pre_test_object_deps_done" = no; then
 
10744
         if test -z "$predep_objects_CXX"; then
 
10745
           predep_objects_CXX="$p"
 
10746
         else
 
10747
           predep_objects_CXX="$predep_objects_CXX $p"
 
10748
         fi
 
10749
       else
 
10750
         if test -z "$postdep_objects_CXX"; then
 
10751
           postdep_objects_CXX="$p"
 
10752
         else
 
10753
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
10754
         fi
 
10755
       fi
 
10756
       ;;
 
10757
 
 
10758
    *) ;; # Ignore the rest.
 
10759
 
 
10760
    esac
 
10761
  done
 
10762
 
 
10763
  # Clean up.
 
10764
  rm -f a.out a.exe
 
10765
else
 
10766
  echo "libtool.m4: error: problem compiling CXX test program"
 
10767
fi
 
10768
 
 
10769
$rm -f confest.$objext
 
10770
 
 
10771
case " $postdeps_CXX " in
 
10772
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10773
esac
 
10774
 
 
10775
lt_prog_compiler_wl_CXX=
 
10776
lt_prog_compiler_pic_CXX=
 
10777
lt_prog_compiler_static_CXX=
 
10778
 
 
10779
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10780
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10781
 
 
10782
  # C++ specific cases for pic, static, wl, etc.
 
10783
  if test "$GXX" = yes; then
 
10784
    lt_prog_compiler_wl_CXX='-Wl,'
 
10785
    lt_prog_compiler_static_CXX='-static'
 
10786
 
 
10787
    case $host_os in
 
10788
    aix*)
 
10789
      # All AIX code is PIC.
 
10790
      if test "$host_cpu" = ia64; then
 
10791
        # AIX 5 now supports IA64 processor
 
10792
        lt_prog_compiler_static_CXX='-Bstatic'
 
10793
      fi
 
10794
      ;;
 
10795
    amigaos*)
 
10796
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10797
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10798
      # like `-m68040'.
 
10799
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10800
      ;;
 
10801
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10802
      # PIC is the default for these OSes.
 
10803
      ;;
 
10804
    mingw* | os2* | pw32*)
 
10805
      # This hack is so that the source file can tell whether it is being
 
10806
      # built for inclusion in a dll (and should export symbols for example).
 
10807
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10808
      ;;
 
10809
    darwin* | rhapsody*)
 
10810
      # PIC is the default on this platform
 
10811
      # Common symbols not allowed in MH_DYLIB files
 
10812
      lt_prog_compiler_pic_CXX='-fno-common'
 
10813
      ;;
 
10814
    *djgpp*)
 
10815
      # DJGPP does not support shared libraries at all
 
10816
      lt_prog_compiler_pic_CXX=
 
10817
      ;;
 
10818
    sysv4*MP*)
 
10819
      if test -d /usr/nec; then
 
10820
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10821
      fi
 
10822
      ;;
 
10823
    hpux*)
 
10824
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10825
      # not for PA HP-UX.
 
10826
      case "$host_cpu" in
 
10827
      hppa*64*|ia64*)
 
10828
        ;;
 
10829
      *)
 
10830
        lt_prog_compiler_pic_CXX='-fPIC'
 
10831
        ;;
 
10832
      esac
 
10833
      ;;
 
10834
    *)
 
10835
      lt_prog_compiler_pic_CXX='-fPIC'
 
10836
      ;;
 
10837
    esac
 
10838
  else
 
10839
    case $host_os in
 
10840
      aix4* | aix5*)
 
10841
        # All AIX code is PIC.
 
10842
        if test "$host_cpu" = ia64; then
 
10843
          # AIX 5 now supports IA64 processor
 
10844
          lt_prog_compiler_static_CXX='-Bstatic'
 
10845
        else
 
10846
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10847
        fi
 
10848
        ;;
 
10849
      chorus*)
 
10850
        case $cc_basename in
 
10851
        cxch68)
 
10852
          # Green Hills C++ Compiler
 
10853
          # _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"
 
10854
          ;;
 
10855
        esac
 
10856
        ;;
 
10857
      dgux*)
 
10858
        case $cc_basename in
 
10859
          ec++)
 
10860
            lt_prog_compiler_pic_CXX='-KPIC'
 
10861
            ;;
 
10862
          ghcx)
 
10863
            # Green Hills C++ Compiler
 
10864
            lt_prog_compiler_pic_CXX='-pic'
 
10865
            ;;
 
10866
          *)
 
10867
            ;;
 
10868
        esac
 
10869
        ;;
 
10870
      freebsd* | kfreebsd*-gnu)
 
10871
        # FreeBSD uses GNU C++
 
10872
        ;;
 
10873
      hpux9* | hpux10* | hpux11*)
 
10874
        case $cc_basename in
 
10875
          CC)
 
10876
            lt_prog_compiler_wl_CXX='-Wl,'
 
10877
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10878
            if test "$host_cpu" != ia64; then
 
10879
              lt_prog_compiler_pic_CXX='+Z'
 
10880
            fi
 
10881
            ;;
 
10882
          aCC)
 
10883
            lt_prog_compiler_wl_CXX='-Wl,'
 
10884
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10885
            case "$host_cpu" in
 
10886
            hppa*64*|ia64*)
 
10887
              # +Z the default
 
10888
              ;;
 
10889
            *)
 
10890
              lt_prog_compiler_pic_CXX='+Z'
 
10891
              ;;
 
10892
            esac
 
10893
            ;;
 
10894
          *)
 
10895
            ;;
 
10896
        esac
 
10897
        ;;
 
10898
      irix5* | irix6* | nonstopux*)
 
10899
        case $cc_basename in
 
10900
          CC)
 
10901
            lt_prog_compiler_wl_CXX='-Wl,'
 
10902
            lt_prog_compiler_static_CXX='-non_shared'
 
10903
            # CC pic flag -KPIC is the default.
 
10904
            ;;
 
10905
          *)
 
10906
            ;;
 
10907
        esac
 
10908
        ;;
 
10909
      linux*)
 
10910
        case $cc_basename in
 
10911
          KCC)
 
10912
            # KAI C++ Compiler
 
10913
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10914
            lt_prog_compiler_pic_CXX='-fPIC'
 
10915
            ;;
 
10916
          icpc)
 
10917
            # Intel C++
 
10918
            lt_prog_compiler_wl_CXX='-Wl,'
 
10919
            lt_prog_compiler_pic_CXX='-KPIC'
 
10920
            lt_prog_compiler_static_CXX='-static'
 
10921
            ;;
 
10922
          cxx)
 
10923
            # Compaq C++
 
10924
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10925
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10926
            lt_prog_compiler_pic_CXX=
 
10927
            lt_prog_compiler_static_CXX='-non_shared'
 
10928
            ;;
 
10929
          *)
 
10930
            ;;
 
10931
        esac
 
10932
        ;;
 
10933
      lynxos*)
 
10934
        ;;
 
10935
      m88k*)
 
10936
        ;;
 
10937
      mvs*)
 
10938
        case $cc_basename in
 
10939
          cxx)
 
10940
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
10941
            ;;
 
10942
          *)
 
10943
            ;;
 
10944
        esac
 
10945
        ;;
 
10946
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10947
        ;;
 
10948
      osf3* | osf4* | osf5*)
 
10949
        case $cc_basename in
 
10950
          KCC)
 
10951
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10952
            ;;
 
10953
          RCC)
 
10954
            # Rational C++ 2.4.1
 
10955
            lt_prog_compiler_pic_CXX='-pic'
 
10956
            ;;
 
10957
          cxx)
 
10958
            # Digital/Compaq C++
 
10959
            lt_prog_compiler_wl_CXX='-Wl,'
 
10960
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10961
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10962
            lt_prog_compiler_pic_CXX=
 
10963
            lt_prog_compiler_static_CXX='-non_shared'
 
10964
            ;;
 
10965
          *)
 
10966
            ;;
 
10967
        esac
 
10968
        ;;
 
10969
      psos*)
 
10970
        ;;
 
10971
      sco*)
 
10972
        case $cc_basename in
 
10973
          CC)
 
10974
            lt_prog_compiler_pic_CXX='-fPIC'
 
10975
            ;;
 
10976
          *)
 
10977
            ;;
 
10978
        esac
 
10979
        ;;
 
10980
      solaris*)
 
10981
        case $cc_basename in
 
10982
          CC)
 
10983
            # Sun C++ 4.2, 5.x and Centerline C++
 
10984
            lt_prog_compiler_pic_CXX='-KPIC'
 
10985
            lt_prog_compiler_static_CXX='-Bstatic'
 
10986
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
10987
            ;;
 
10988
          gcx)
 
10989
            # Green Hills C++ Compiler
 
10990
            lt_prog_compiler_pic_CXX='-PIC'
 
10991
            ;;
 
10992
          *)
 
10993
            ;;
 
10994
        esac
 
10995
        ;;
 
10996
      sunos4*)
 
10997
        case $cc_basename in
 
10998
          CC)
 
10999
            # Sun C++ 4.x
 
11000
            lt_prog_compiler_pic_CXX='-pic'
 
11001
            lt_prog_compiler_static_CXX='-Bstatic'
 
11002
            ;;
 
11003
          lcc)
 
11004
            # Lucid
 
11005
            lt_prog_compiler_pic_CXX='-pic'
 
11006
            ;;
 
11007
          *)
 
11008
            ;;
 
11009
        esac
 
11010
        ;;
 
11011
      tandem*)
 
11012
        case $cc_basename in
 
11013
          NCC)
 
11014
            # NonStop-UX NCC 3.20
 
11015
            lt_prog_compiler_pic_CXX='-KPIC'
 
11016
            ;;
 
11017
          *)
 
11018
            ;;
 
11019
        esac
 
11020
        ;;
 
11021
      unixware*)
 
11022
        ;;
 
11023
      vxworks*)
 
11024
        ;;
 
11025
      *)
 
11026
        lt_prog_compiler_can_build_shared_CXX=no
 
11027
        ;;
 
11028
    esac
 
11029
  fi
 
11030
 
 
11031
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11032
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11033
 
 
11034
#
 
11035
# Check to make sure the PIC flag actually works.
 
11036
#
 
11037
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11038
 
 
11039
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11040
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11041
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11042
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11043
else
 
11044
  lt_prog_compiler_pic_works_CXX=no
 
11045
  ac_outfile=conftest.$ac_objext
 
11046
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11047
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11048
   # Insert the option either (1) after the last *FLAGS variable, or
 
11049
   # (2) before a word containing "conftest.", or (3) at the end.
 
11050
   # Note that $ac_compile itself does not contain backslashes and begins
 
11051
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11052
   # The option is referenced via a variable to avoid confusing sed.
 
11053
   lt_compile=`echo "$ac_compile" | $SED \
 
11054
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11055
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11056
   -e 's:$: $lt_compiler_flag:'`
 
11057
   (eval echo "\"\$as_me:11057: $lt_compile\"" >&5)
 
11058
   (eval "$lt_compile" 2>conftest.err)
 
11059
   ac_status=$?
 
11060
   cat conftest.err >&5
 
11061
   echo "$as_me:11061: \$? = $ac_status" >&5
 
11062
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11063
     # The compiler can only warn and ignore the option if not recognized
 
11064
     # So say no if there are warnings
 
11065
     if test ! -s conftest.err; then
 
11066
       lt_prog_compiler_pic_works_CXX=yes
 
11067
     fi
 
11068
   fi
 
11069
   $rm conftest*
 
11070
 
 
11071
fi
 
11072
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11073
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11074
 
 
11075
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11076
    case $lt_prog_compiler_pic_CXX in
 
11077
     "" | " "*) ;;
 
11078
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11079
     esac
 
11080
else
 
11081
    lt_prog_compiler_pic_CXX=
 
11082
     lt_prog_compiler_can_build_shared_CXX=no
 
11083
fi
 
11084
 
 
11085
fi
 
11086
case "$host_os" in
 
11087
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11088
  *djgpp*)
 
11089
    lt_prog_compiler_pic_CXX=
 
11090
    ;;
 
11091
  *)
 
11092
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11093
    ;;
 
11094
esac
 
11095
 
 
11096
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11097
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11098
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11100
else
 
11101
  lt_cv_prog_compiler_c_o_CXX=no
 
11102
   $rm -r conftest 2>/dev/null
 
11103
   mkdir conftest
 
11104
   cd conftest
 
11105
   mkdir out
 
11106
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11107
 
 
11108
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11109
   # Insert the option either (1) after the last *FLAGS variable, or
 
11110
   # (2) before a word containing "conftest.", or (3) at the end.
 
11111
   # Note that $ac_compile itself does not contain backslashes and begins
 
11112
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11113
   lt_compile=`echo "$ac_compile" | $SED \
 
11114
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11115
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11116
   -e 's:$: $lt_compiler_flag:'`
 
11117
   (eval echo "\"\$as_me:11117: $lt_compile\"" >&5)
 
11118
   (eval "$lt_compile" 2>out/conftest.err)
 
11119
   ac_status=$?
 
11120
   cat out/conftest.err >&5
 
11121
   echo "$as_me:11121: \$? = $ac_status" >&5
 
11122
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11123
   then
 
11124
     # The compiler can only warn and ignore the option if not recognized
 
11125
     # So say no if there are warnings
 
11126
     if test ! -s out/conftest.err; then
 
11127
       lt_cv_prog_compiler_c_o_CXX=yes
 
11128
     fi
 
11129
   fi
 
11130
   chmod u+w .
 
11131
   $rm conftest*
 
11132
   # SGI C++ compiler will create directory out/ii_files/ for
 
11133
   # template instantiation
 
11134
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11135
   $rm out/* && rmdir out
 
11136
   cd ..
 
11137
   rmdir conftest
 
11138
   $rm conftest*
 
11139
 
 
11140
fi
 
11141
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11142
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11143
 
 
11144
 
 
11145
hard_links="nottested"
 
11146
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11147
  # do not overwrite the value of need_locks provided by the user
 
11148
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11149
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11150
  hard_links=yes
 
11151
  $rm conftest*
 
11152
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11153
  touch conftest.a
 
11154
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11155
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11156
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11157
echo "${ECHO_T}$hard_links" >&6
 
11158
  if test "$hard_links" = no; then
 
11159
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11160
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11161
    need_locks=warn
 
11162
  fi
 
11163
else
 
11164
  need_locks=no
 
11165
fi
 
11166
 
 
11167
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11168
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11169
 
 
11170
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11171
  case $host_os in
 
11172
  aix4* | aix5*)
 
11173
    # If we're using GNU nm, then we don't want the "-C" option.
 
11174
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11175
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11176
      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'
 
11177
    else
 
11178
      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'
 
11179
    fi
 
11180
    ;;
 
11181
  pw32*)
 
11182
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11183
  ;;
 
11184
  cygwin* | mingw*)
 
11185
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11186
  ;;
 
11187
  linux*)
 
11188
    link_all_deplibs_CXX=no
 
11189
  ;;
 
11190
  *)
 
11191
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11192
  ;;
 
11193
  esac
 
11194
 
 
11195
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11196
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11197
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11198
 
 
11199
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11200
if test "$GCC" = yes; then
 
11201
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11202
fi
 
11203
 
 
11204
#
 
11205
# Do we need to explicitly link libc?
 
11206
#
 
11207
case "x$archive_cmds_need_lc_CXX" in
 
11208
x|xyes)
 
11209
  # Assume -lc should be added
 
11210
  archive_cmds_need_lc_CXX=yes
 
11211
 
 
11212
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11213
    case $archive_cmds_CXX in
 
11214
    *'~'*)
 
11215
      # FIXME: we may have to deal with multi-command sequences.
 
11216
      ;;
 
11217
    '$CC '*)
 
11218
      # Test whether the compiler implicitly links with -lc since on some
 
11219
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11220
      # to ld, don't add -lc before -lgcc.
 
11221
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11222
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11223
      $rm conftest*
 
11224
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11225
 
 
11226
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11227
  (eval $ac_compile) 2>&5
 
11228
  ac_status=$?
 
11229
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11230
  (exit $ac_status); } 2>conftest.err; then
 
11231
        soname=conftest
 
11232
        lib=conftest
 
11233
        libobjs=conftest.$ac_objext
 
11234
        deplibs=
 
11235
        wl=$lt_prog_compiler_wl_CXX
 
11236
        compiler_flags=-v
 
11237
        linker_flags=-v
 
11238
        verstring=
 
11239
        output_objdir=.
 
11240
        libname=conftest
 
11241
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11242
        allow_undefined_flag_CXX=
 
11243
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11244
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11245
  ac_status=$?
 
11246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11247
  (exit $ac_status); }
 
11248
        then
 
11249
          archive_cmds_need_lc_CXX=no
 
11250
        else
 
11251
          archive_cmds_need_lc_CXX=yes
 
11252
        fi
 
11253
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11254
      else
 
11255
        cat conftest.err 1>&5
 
11256
      fi
 
11257
      $rm conftest*
 
11258
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11259
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11260
      ;;
 
11261
    esac
 
11262
  fi
 
11263
  ;;
 
11264
esac
 
11265
 
 
11266
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11267
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11268
library_names_spec=
 
11269
libname_spec='lib$name'
 
11270
soname_spec=
 
11271
shrext_cmds=".so"
 
11272
postinstall_cmds=
 
11273
postuninstall_cmds=
 
11274
finish_cmds=
 
11275
finish_eval=
 
11276
shlibpath_var=
 
11277
shlibpath_overrides_runpath=unknown
 
11278
version_type=none
 
11279
dynamic_linker="$host_os ld.so"
 
11280
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11281
if test "$GCC" = yes; then
 
11282
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11283
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11284
    # if the path contains ";" then we assume it to be the separator
 
11285
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11286
    # assumed that no part of a normal pathname contains ";" but that should
 
11287
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11288
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11289
  else
 
11290
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11291
  fi
 
11292
else
 
11293
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11294
fi
 
11295
need_lib_prefix=unknown
 
11296
hardcode_into_libs=no
 
11297
 
 
11298
# when you set need_version to no, make sure it does not cause -set_version
 
11299
# flags to be left without arguments
 
11300
need_version=unknown
 
11301
 
 
11302
case $host_os in
 
11303
aix3*)
 
11304
  version_type=linux
 
11305
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11306
  shlibpath_var=LIBPATH
 
11307
 
 
11308
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11309
  soname_spec='${libname}${release}${shared_ext}$major'
 
11310
  ;;
 
11311
 
 
11312
aix4* | aix5*)
 
11313
  version_type=linux
 
11314
  need_lib_prefix=no
 
11315
  need_version=no
 
11316
  hardcode_into_libs=yes
 
11317
  if test "$host_cpu" = ia64; then
 
11318
    # AIX 5 supports IA64
 
11319
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11320
    shlibpath_var=LD_LIBRARY_PATH
 
11321
  else
 
11322
    # With GCC up to 2.95.x, collect2 would create an import file
 
11323
    # for dependence libraries.  The import file would start with
 
11324
    # the line `#! .'.  This would cause the generated library to
 
11325
    # depend on `.', always an invalid library.  This was fixed in
 
11326
    # development snapshots of GCC prior to 3.0.
 
11327
    case $host_os in
 
11328
      aix4 | aix4.[01] | aix4.[01].*)
 
11329
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11330
           echo ' yes '
 
11331
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11332
        :
 
11333
      else
 
11334
        can_build_shared=no
 
11335
      fi
 
11336
      ;;
 
11337
    esac
 
11338
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11339
    # soname into executable. Probably we can add versioning support to
 
11340
    # collect2, so additional links can be useful in future.
 
11341
    if test "$aix_use_runtimelinking" = yes; then
 
11342
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11343
      # instead of lib<name>.a to let people know that these are not
 
11344
      # typical AIX shared libraries.
 
11345
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11346
    else
 
11347
      # We preserve .a as extension for shared libraries through AIX4.2
 
11348
      # and later when we are not doing run time linking.
 
11349
      library_names_spec='${libname}${release}.a $libname.a'
 
11350
      soname_spec='${libname}${release}${shared_ext}$major'
 
11351
    fi
 
11352
    shlibpath_var=LIBPATH
 
11353
  fi
 
11354
  ;;
 
11355
 
 
11356
amigaos*)
 
11357
  library_names_spec='$libname.ixlibrary $libname.a'
 
11358
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11359
  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'
 
11360
  ;;
 
11361
 
 
11362
beos*)
 
11363
  library_names_spec='${libname}${shared_ext}'
 
11364
  dynamic_linker="$host_os ld.so"
 
11365
  shlibpath_var=LIBRARY_PATH
 
11366
  ;;
 
11367
 
 
11368
bsdi4*)
 
11369
  version_type=linux
 
11370
  need_version=no
 
11371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11372
  soname_spec='${libname}${release}${shared_ext}$major'
 
11373
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11374
  shlibpath_var=LD_LIBRARY_PATH
 
11375
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11376
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11377
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11378
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11379
  # libtool to hard-code these into programs
 
11380
  ;;
 
11381
 
 
11382
cygwin* | mingw* | pw32*)
 
11383
  version_type=windows
 
11384
  shrext_cmds=".dll"
 
11385
  need_version=no
 
11386
  need_lib_prefix=no
 
11387
 
 
11388
  case $GCC,$host_os in
 
11389
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11390
    library_names_spec='$libname.dll.a'
 
11391
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11392
    postinstall_cmds='base_file=`basename \${file}`~
 
11393
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11394
      dldir=$destdir/`dirname \$dlpath`~
 
11395
      test -d \$dldir || mkdir -p \$dldir~
 
11396
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11397
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11398
      dlpath=$dir/\$dldll~
 
11399
       $rm \$dlpath'
 
11400
    shlibpath_overrides_runpath=yes
 
11401
 
 
11402
    case $host_os in
 
11403
    cygwin*)
 
11404
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11405
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11406
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11407
      ;;
 
11408
    mingw*)
 
11409
      # MinGW DLLs use traditional 'lib' prefix
 
11410
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11411
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11412
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11413
        # It is most probably a Windows format PATH printed by
 
11414
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11415
        # path with ; separators, and with drive letters. We can handle the
 
11416
        # drive letters (cygwin fileutils understands them), so leave them,
 
11417
        # especially as we might pass files found there to a mingw objdump,
 
11418
        # which wouldn't understand a cygwinified path. Ahh.
 
11419
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11420
      else
 
11421
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11422
      fi
 
11423
      ;;
 
11424
    pw32*)
 
11425
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11426
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11427
      ;;
 
11428
    esac
 
11429
    ;;
 
11430
 
 
11431
  *)
 
11432
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11433
    ;;
 
11434
  esac
 
11435
  dynamic_linker='Win32 ld.exe'
 
11436
  # FIXME: first we should search . and the directory the executable is in
 
11437
  shlibpath_var=PATH
 
11438
  ;;
 
11439
 
 
11440
darwin* | rhapsody*)
 
11441
  dynamic_linker="$host_os dyld"
 
11442
  version_type=darwin
 
11443
  need_lib_prefix=no
 
11444
  need_version=no
 
11445
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11446
  soname_spec='${libname}${release}${major}$shared_ext'
 
11447
  shlibpath_overrides_runpath=yes
 
11448
  shlibpath_var=DYLD_LIBRARY_PATH
 
11449
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11450
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11451
  if test "$GCC" = yes; then
 
11452
    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"`
 
11453
  else
 
11454
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11455
  fi
 
11456
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11457
  ;;
 
11458
 
 
11459
dgux*)
 
11460
  version_type=linux
 
11461
  need_lib_prefix=no
 
11462
  need_version=no
 
11463
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11464
  soname_spec='${libname}${release}${shared_ext}$major'
 
11465
  shlibpath_var=LD_LIBRARY_PATH
 
11466
  ;;
 
11467
 
 
11468
freebsd1*)
 
11469
  dynamic_linker=no
 
11470
  ;;
 
11471
 
 
11472
kfreebsd*-gnu)
 
11473
  version_type=linux
 
11474
  need_lib_prefix=no
 
11475
  need_version=no
 
11476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11477
  soname_spec='${libname}${release}${shared_ext}$major'
 
11478
  shlibpath_var=LD_LIBRARY_PATH
 
11479
  shlibpath_overrides_runpath=no
 
11480
  hardcode_into_libs=yes
 
11481
  dynamic_linker='GNU ld.so'
 
11482
  ;;
 
11483
 
 
11484
freebsd*)
 
11485
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11486
  version_type=freebsd-$objformat
 
11487
  case $version_type in
 
11488
    freebsd-elf*)
 
11489
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11490
      need_version=no
 
11491
      need_lib_prefix=no
 
11492
      ;;
 
11493
    freebsd-*)
 
11494
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11495
      need_version=yes
 
11496
      ;;
 
11497
  esac
 
11498
  shlibpath_var=LD_LIBRARY_PATH
 
11499
  case $host_os in
 
11500
  freebsd2*)
 
11501
    shlibpath_overrides_runpath=yes
 
11502
    ;;
 
11503
  freebsd3.01* | freebsdelf3.01*)
 
11504
    shlibpath_overrides_runpath=yes
 
11505
    hardcode_into_libs=yes
 
11506
    ;;
 
11507
  *) # from 3.2 on
 
11508
    shlibpath_overrides_runpath=no
 
11509
    hardcode_into_libs=yes
 
11510
    ;;
 
11511
  esac
 
11512
  ;;
 
11513
 
 
11514
gnu*)
 
11515
  version_type=linux
 
11516
  need_lib_prefix=no
 
11517
  need_version=no
 
11518
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11519
  soname_spec='${libname}${release}${shared_ext}$major'
 
11520
  shlibpath_var=LD_LIBRARY_PATH
 
11521
  hardcode_into_libs=yes
 
11522
  ;;
 
11523
 
 
11524
hpux9* | hpux10* | hpux11*)
 
11525
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11526
  # link against other versions.
 
11527
  version_type=sunos
 
11528
  need_lib_prefix=no
 
11529
  need_version=no
 
11530
  case "$host_cpu" in
 
11531
  ia64*)
 
11532
    shrext_cmds='.so'
 
11533
    hardcode_into_libs=yes
 
11534
    dynamic_linker="$host_os dld.so"
 
11535
    shlibpath_var=LD_LIBRARY_PATH
 
11536
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11537
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11538
    soname_spec='${libname}${release}${shared_ext}$major'
 
11539
    if test "X$HPUX_IA64_MODE" = X32; then
 
11540
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11541
    else
 
11542
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11543
    fi
 
11544
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11545
    ;;
 
11546
   hppa*64*)
 
11547
     shrext_cmds='.sl'
 
11548
     hardcode_into_libs=yes
 
11549
     dynamic_linker="$host_os dld.sl"
 
11550
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11551
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11552
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11553
     soname_spec='${libname}${release}${shared_ext}$major'
 
11554
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11555
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11556
     ;;
 
11557
   *)
 
11558
    shrext_cmds='.sl'
 
11559
    dynamic_linker="$host_os dld.sl"
 
11560
    shlibpath_var=SHLIB_PATH
 
11561
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11562
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11563
    soname_spec='${libname}${release}${shared_ext}$major'
 
11564
    ;;
 
11565
  esac
 
11566
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11567
  postinstall_cmds='chmod 555 $lib'
 
11568
  ;;
 
11569
 
 
11570
irix5* | irix6* | nonstopux*)
 
11571
  case $host_os in
 
11572
    nonstopux*) version_type=nonstopux ;;
 
11573
    *)
 
11574
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11575
                version_type=linux
 
11576
        else
 
11577
                version_type=irix
 
11578
        fi ;;
 
11579
  esac
 
11580
  need_lib_prefix=no
 
11581
  need_version=no
 
11582
  soname_spec='${libname}${release}${shared_ext}$major'
 
11583
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11584
  case $host_os in
 
11585
  irix5* | nonstopux*)
 
11586
    libsuff= shlibsuff=
 
11587
    ;;
 
11588
  *)
 
11589
    case $LD in # libtool.m4 will add one of these switches to LD
 
11590
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11591
      libsuff= shlibsuff= libmagic=32-bit;;
 
11592
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11593
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11594
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11595
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11596
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11597
    esac
 
11598
    ;;
 
11599
  esac
 
11600
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11601
  shlibpath_overrides_runpath=no
 
11602
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11603
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11604
  hardcode_into_libs=yes
 
11605
  ;;
 
11606
 
 
11607
# No shared lib support for Linux oldld, aout, or coff.
 
11608
linux*oldld* | linux*aout* | linux*coff*)
 
11609
  dynamic_linker=no
 
11610
  ;;
 
11611
 
 
11612
# This must be Linux ELF.
 
11613
linux*)
 
11614
  version_type=linux
 
11615
  need_lib_prefix=no
 
11616
  need_version=no
 
11617
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11618
  soname_spec='${libname}${release}${shared_ext}$major'
 
11619
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11620
  shlibpath_var=LD_LIBRARY_PATH
 
11621
  shlibpath_overrides_runpath=no
 
11622
  # This implies no fast_install, which is unacceptable.
 
11623
  # Some rework will be needed to allow for fast_install
 
11624
  # before this can be enabled.
 
11625
  hardcode_into_libs=yes
 
11626
 
 
11627
  # Append ld.so.conf contents to the search path
 
11628
  if test -f /etc/ld.so.conf; then
 
11629
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
11630
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11631
  fi
 
11632
 
 
11633
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11634
  # powerpc, because MkLinux only supported shared libraries with the
 
11635
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11636
  # most powerpc-linux boxes support dynamic linking these days and
 
11637
  # people can always --disable-shared, the test was removed, and we
 
11638
  # assume the GNU/Linux dynamic linker is in use.
 
11639
  dynamic_linker='GNU/Linux ld.so'
 
11640
  ;;
 
11641
 
 
11642
netbsdelf*-gnu)
 
11643
  version_type=linux
 
11644
  need_lib_prefix=no
 
11645
  need_version=no
 
11646
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11647
  soname_spec='${libname}${release}${shared_ext}$major'
 
11648
  shlibpath_var=LD_LIBRARY_PATH
 
11649
  shlibpath_overrides_runpath=no
 
11650
  hardcode_into_libs=yes
 
11651
  dynamic_linker='NetBSD ld.elf_so'
 
11652
  ;;
 
11653
 
 
11654
knetbsd*-gnu)
 
11655
  version_type=linux
 
11656
  need_lib_prefix=no
 
11657
  need_version=no
 
11658
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11659
  soname_spec='${libname}${release}${shared_ext}$major'
 
11660
  shlibpath_var=LD_LIBRARY_PATH
 
11661
  shlibpath_overrides_runpath=no
 
11662
  hardcode_into_libs=yes
 
11663
  dynamic_linker='GNU ld.so'
 
11664
  ;;
 
11665
 
 
11666
netbsd*)
 
11667
  version_type=sunos
 
11668
  need_lib_prefix=no
 
11669
  need_version=no
 
11670
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11671
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11672
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11673
    dynamic_linker='NetBSD (a.out) ld.so'
 
11674
  else
 
11675
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11676
    soname_spec='${libname}${release}${shared_ext}$major'
 
11677
    dynamic_linker='NetBSD ld.elf_so'
 
11678
  fi
 
11679
  shlibpath_var=LD_LIBRARY_PATH
 
11680
  shlibpath_overrides_runpath=yes
 
11681
  hardcode_into_libs=yes
 
11682
  ;;
 
11683
 
 
11684
newsos6)
 
11685
  version_type=linux
 
11686
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11687
  shlibpath_var=LD_LIBRARY_PATH
 
11688
  shlibpath_overrides_runpath=yes
 
11689
  ;;
 
11690
 
 
11691
nto-qnx*)
 
11692
  version_type=linux
 
11693
  need_lib_prefix=no
 
11694
  need_version=no
 
11695
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11696
  soname_spec='${libname}${release}${shared_ext}$major'
 
11697
  shlibpath_var=LD_LIBRARY_PATH
 
11698
  shlibpath_overrides_runpath=yes
 
11699
  ;;
 
11700
 
 
11701
openbsd*)
 
11702
  version_type=sunos
 
11703
  need_lib_prefix=no
 
11704
  need_version=yes
 
11705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11706
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11707
  shlibpath_var=LD_LIBRARY_PATH
 
11708
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11709
    case $host_os in
 
11710
      openbsd2.[89] | openbsd2.[89].*)
 
11711
        shlibpath_overrides_runpath=no
 
11712
        ;;
 
11713
      *)
 
11714
        shlibpath_overrides_runpath=yes
 
11715
        ;;
 
11716
      esac
 
11717
  else
 
11718
    shlibpath_overrides_runpath=yes
 
11719
  fi
 
11720
  ;;
 
11721
 
 
11722
os2*)
 
11723
  libname_spec='$name'
 
11724
  shrext_cmds=".dll"
 
11725
  need_lib_prefix=no
 
11726
  library_names_spec='$libname${shared_ext} $libname.a'
 
11727
  dynamic_linker='OS/2 ld.exe'
 
11728
  shlibpath_var=LIBPATH
 
11729
  ;;
 
11730
 
 
11731
osf3* | osf4* | osf5*)
 
11732
  version_type=osf
 
11733
  need_lib_prefix=no
 
11734
  need_version=no
 
11735
  soname_spec='${libname}${release}${shared_ext}$major'
 
11736
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11737
  shlibpath_var=LD_LIBRARY_PATH
 
11738
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11739
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11740
  ;;
 
11741
 
 
11742
sco3.2v5*)
 
11743
  version_type=osf
 
11744
  soname_spec='${libname}${release}${shared_ext}$major'
 
11745
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11746
  shlibpath_var=LD_LIBRARY_PATH
 
11747
  ;;
 
11748
 
 
11749
solaris*)
 
11750
  version_type=linux
 
11751
  need_lib_prefix=no
 
11752
  need_version=no
 
11753
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11754
  soname_spec='${libname}${release}${shared_ext}$major'
 
11755
  shlibpath_var=LD_LIBRARY_PATH
 
11756
  shlibpath_overrides_runpath=yes
 
11757
  hardcode_into_libs=yes
 
11758
  # ldd complains unless libraries are executable
 
11759
  postinstall_cmds='chmod +x $lib'
 
11760
  ;;
 
11761
 
 
11762
sunos4*)
 
11763
  version_type=sunos
 
11764
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11765
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11766
  shlibpath_var=LD_LIBRARY_PATH
 
11767
  shlibpath_overrides_runpath=yes
 
11768
  if test "$with_gnu_ld" = yes; then
 
11769
    need_lib_prefix=no
 
11770
  fi
 
11771
  need_version=yes
 
11772
  ;;
 
11773
 
 
11774
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11775
  version_type=linux
 
11776
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11777
  soname_spec='${libname}${release}${shared_ext}$major'
 
11778
  shlibpath_var=LD_LIBRARY_PATH
 
11779
  case $host_vendor in
 
11780
    sni)
 
11781
      shlibpath_overrides_runpath=no
 
11782
      need_lib_prefix=no
 
11783
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11784
      runpath_var=LD_RUN_PATH
 
11785
      ;;
 
11786
    siemens)
 
11787
      need_lib_prefix=no
 
11788
      ;;
 
11789
    motorola)
 
11790
      need_lib_prefix=no
 
11791
      need_version=no
 
11792
      shlibpath_overrides_runpath=no
 
11793
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11794
      ;;
 
11795
  esac
 
11796
  ;;
 
11797
 
 
11798
sysv4*MP*)
 
11799
  if test -d /usr/nec ;then
 
11800
    version_type=linux
 
11801
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11802
    soname_spec='$libname${shared_ext}.$major'
 
11803
    shlibpath_var=LD_LIBRARY_PATH
 
11804
  fi
 
11805
  ;;
 
11806
 
 
11807
uts4*)
 
11808
  version_type=linux
 
11809
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11810
  soname_spec='${libname}${release}${shared_ext}$major'
 
11811
  shlibpath_var=LD_LIBRARY_PATH
 
11812
  ;;
 
11813
 
 
11814
*)
 
11815
  dynamic_linker=no
 
11816
  ;;
 
11817
esac
 
11818
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11819
echo "${ECHO_T}$dynamic_linker" >&6
 
11820
test "$dynamic_linker" = no && can_build_shared=no
 
11821
 
 
11822
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11823
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
11824
hardcode_action_CXX=
 
11825
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
11826
   test -n "$runpath_var CXX" || \
 
11827
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
11828
 
 
11829
  # We can hardcode non-existant directories.
 
11830
  if test "$hardcode_direct_CXX" != no &&
 
11831
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11832
     # have to relink, otherwise we might link with an installed library
 
11833
     # when we should be linking with a yet-to-be-installed one
 
11834
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
11835
     test "$hardcode_minus_L_CXX" != no; then
 
11836
    # Linking always hardcodes the temporary library directory.
 
11837
    hardcode_action_CXX=relink
 
11838
  else
 
11839
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11840
    hardcode_action_CXX=immediate
 
11841
  fi
 
11842
else
 
11843
  # We cannot hardcode anything, or else we can only hardcode existing
 
11844
  # directories.
 
11845
  hardcode_action_CXX=unsupported
 
11846
fi
 
11847
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11848
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
11849
 
 
11850
if test "$hardcode_action_CXX" = relink; then
 
11851
  # Fast installation is not supported
 
11852
  enable_fast_install=no
 
11853
elif test "$shlibpath_overrides_runpath" = yes ||
 
11854
     test "$enable_shared" = no; then
 
11855
  # Fast installation is not necessary
 
11856
  enable_fast_install=needless
 
11857
fi
 
11858
 
 
11859
striplib=
 
11860
old_striplib=
 
11861
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11862
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11863
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11864
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11865
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11866
  echo "$as_me:$LINENO: result: yes" >&5
 
11867
echo "${ECHO_T}yes" >&6
 
11868
else
 
11869
# FIXME - insert some real tests, host_os isn't really good enough
 
11870
  case $host_os in
 
11871
   darwin*)
 
11872
       if test -n "$STRIP" ; then
 
11873
         striplib="$STRIP -x"
 
11874
         echo "$as_me:$LINENO: result: yes" >&5
 
11875
echo "${ECHO_T}yes" >&6
 
11876
       else
 
11877
  echo "$as_me:$LINENO: result: no" >&5
 
11878
echo "${ECHO_T}no" >&6
 
11879
fi
 
11880
       ;;
 
11881
   *)
 
11882
  echo "$as_me:$LINENO: result: no" >&5
 
11883
echo "${ECHO_T}no" >&6
 
11884
    ;;
 
11885
  esac
 
11886
fi
 
11887
 
 
11888
if test "x$enable_dlopen" != xyes; then
 
11889
  enable_dlopen=unknown
 
11890
  enable_dlopen_self=unknown
 
11891
  enable_dlopen_self_static=unknown
 
11892
else
 
11893
  lt_cv_dlopen=no
 
11894
  lt_cv_dlopen_libs=
 
11895
 
 
11896
  case $host_os in
 
11897
  beos*)
 
11898
    lt_cv_dlopen="load_add_on"
 
11899
    lt_cv_dlopen_libs=
 
11900
    lt_cv_dlopen_self=yes
 
11901
    ;;
 
11902
 
 
11903
  mingw* | pw32*)
 
11904
    lt_cv_dlopen="LoadLibrary"
 
11905
    lt_cv_dlopen_libs=
 
11906
   ;;
 
11907
 
 
11908
  cygwin*)
 
11909
    lt_cv_dlopen="dlopen"
 
11910
    lt_cv_dlopen_libs=
 
11911
   ;;
 
11912
 
 
11913
  darwin*)
 
11914
  # if libdl is installed we need to link against it
 
11915
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11916
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11917
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11919
else
 
11920
  ac_check_lib_save_LIBS=$LIBS
 
11921
LIBS="-ldl  $LIBS"
 
11922
cat >conftest.$ac_ext <<_ACEOF
 
11923
/* confdefs.h.  */
 
11924
_ACEOF
 
11925
cat confdefs.h >>conftest.$ac_ext
 
11926
cat >>conftest.$ac_ext <<_ACEOF
 
11927
/* end confdefs.h.  */
 
11928
 
 
11929
/* Override any gcc2 internal prototype to avoid an error.  */
 
11930
#ifdef __cplusplus
 
11931
extern "C"
 
11932
#endif
 
11933
/* We use char because int might match the return type of a gcc2
 
11934
   builtin and then its argument prototype would still apply.  */
 
11935
char dlopen ();
 
11936
int
 
11937
main ()
 
11938
{
 
11939
dlopen ();
 
11940
  ;
 
11941
  return 0;
 
11942
}
 
11943
_ACEOF
 
11944
rm -f conftest.$ac_objext conftest$ac_exeext
 
11945
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11946
  (eval $ac_link) 2>conftest.er1
 
11947
  ac_status=$?
 
11948
  grep -v '^ *+' conftest.er1 >conftest.err
 
11949
  rm -f conftest.er1
 
11950
  cat conftest.err >&5
 
11951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11952
  (exit $ac_status); } &&
 
11953
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11955
  (eval $ac_try) 2>&5
 
11956
  ac_status=$?
 
11957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11958
  (exit $ac_status); }; } &&
 
11959
         { ac_try='test -s conftest$ac_exeext'
 
11960
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11961
  (eval $ac_try) 2>&5
 
11962
  ac_status=$?
 
11963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11964
  (exit $ac_status); }; }; then
 
11965
  ac_cv_lib_dl_dlopen=yes
 
11966
else
 
11967
  echo "$as_me: failed program was:" >&5
 
11968
sed 's/^/| /' conftest.$ac_ext >&5
 
11969
 
 
11970
ac_cv_lib_dl_dlopen=no
 
11971
fi
 
11972
rm -f conftest.err conftest.$ac_objext \
 
11973
      conftest$ac_exeext conftest.$ac_ext
 
11974
LIBS=$ac_check_lib_save_LIBS
 
11975
fi
 
11976
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11977
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11978
if test $ac_cv_lib_dl_dlopen = yes; then
 
11979
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11980
else
 
11981
 
 
11982
    lt_cv_dlopen="dyld"
 
11983
    lt_cv_dlopen_libs=
 
11984
    lt_cv_dlopen_self=yes
 
11985
 
 
11986
fi
 
11987
 
 
11988
   ;;
 
11989
 
 
11990
  *)
 
11991
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11992
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11993
if test "${ac_cv_func_shl_load+set}" = set; then
 
11994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11995
else
 
11996
  cat >conftest.$ac_ext <<_ACEOF
 
11997
/* confdefs.h.  */
 
11998
_ACEOF
 
11999
cat confdefs.h >>conftest.$ac_ext
 
12000
cat >>conftest.$ac_ext <<_ACEOF
 
12001
/* end confdefs.h.  */
 
12002
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12003
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12004
#define shl_load innocuous_shl_load
 
12005
 
 
12006
/* System header to define __stub macros and hopefully few prototypes,
 
12007
    which can conflict with char shl_load (); below.
 
12008
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12009
    <limits.h> exists even on freestanding compilers.  */
 
12010
 
 
12011
#ifdef __STDC__
 
12012
# include <limits.h>
 
12013
#else
 
12014
# include <assert.h>
 
12015
#endif
 
12016
 
 
12017
#undef shl_load
 
12018
 
 
12019
/* Override any gcc2 internal prototype to avoid an error.  */
 
12020
#ifdef __cplusplus
 
12021
extern "C"
 
12022
{
 
12023
#endif
 
12024
/* We use char because int might match the return type of a gcc2
 
12025
   builtin and then its argument prototype would still apply.  */
 
12026
char shl_load ();
 
12027
/* The GNU C library defines this for functions which it implements
 
12028
    to always fail with ENOSYS.  Some functions are actually named
 
12029
    something starting with __ and the normal name is an alias.  */
 
12030
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12031
choke me
 
12032
#else
 
12033
char (*f) () = shl_load;
 
12034
#endif
 
12035
#ifdef __cplusplus
 
12036
}
 
12037
#endif
 
12038
 
 
12039
int
 
12040
main ()
 
12041
{
 
12042
return f != shl_load;
 
12043
  ;
 
12044
  return 0;
 
12045
}
 
12046
_ACEOF
 
12047
rm -f conftest.$ac_objext conftest$ac_exeext
 
12048
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12049
  (eval $ac_link) 2>conftest.er1
 
12050
  ac_status=$?
 
12051
  grep -v '^ *+' conftest.er1 >conftest.err
 
12052
  rm -f conftest.er1
 
12053
  cat conftest.err >&5
 
12054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12055
  (exit $ac_status); } &&
 
12056
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12058
  (eval $ac_try) 2>&5
 
12059
  ac_status=$?
 
12060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12061
  (exit $ac_status); }; } &&
 
12062
         { ac_try='test -s conftest$ac_exeext'
 
12063
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12064
  (eval $ac_try) 2>&5
 
12065
  ac_status=$?
 
12066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12067
  (exit $ac_status); }; }; then
 
12068
  ac_cv_func_shl_load=yes
 
12069
else
 
12070
  echo "$as_me: failed program was:" >&5
 
12071
sed 's/^/| /' conftest.$ac_ext >&5
 
12072
 
 
12073
ac_cv_func_shl_load=no
 
12074
fi
 
12075
rm -f conftest.err conftest.$ac_objext \
 
12076
      conftest$ac_exeext conftest.$ac_ext
 
12077
fi
 
12078
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12079
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12080
if test $ac_cv_func_shl_load = yes; then
 
12081
  lt_cv_dlopen="shl_load"
 
12082
else
 
12083
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12084
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12085
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12087
else
 
12088
  ac_check_lib_save_LIBS=$LIBS
 
12089
LIBS="-ldld  $LIBS"
 
12090
cat >conftest.$ac_ext <<_ACEOF
 
12091
/* confdefs.h.  */
 
12092
_ACEOF
 
12093
cat confdefs.h >>conftest.$ac_ext
 
12094
cat >>conftest.$ac_ext <<_ACEOF
 
12095
/* end confdefs.h.  */
 
12096
 
 
12097
/* Override any gcc2 internal prototype to avoid an error.  */
 
12098
#ifdef __cplusplus
 
12099
extern "C"
 
12100
#endif
 
12101
/* We use char because int might match the return type of a gcc2
 
12102
   builtin and then its argument prototype would still apply.  */
 
12103
char shl_load ();
 
12104
int
 
12105
main ()
 
12106
{
 
12107
shl_load ();
 
12108
  ;
 
12109
  return 0;
 
12110
}
 
12111
_ACEOF
 
12112
rm -f conftest.$ac_objext conftest$ac_exeext
 
12113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12114
  (eval $ac_link) 2>conftest.er1
 
12115
  ac_status=$?
 
12116
  grep -v '^ *+' conftest.er1 >conftest.err
 
12117
  rm -f conftest.er1
 
12118
  cat conftest.err >&5
 
12119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12120
  (exit $ac_status); } &&
 
12121
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12123
  (eval $ac_try) 2>&5
 
12124
  ac_status=$?
 
12125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12126
  (exit $ac_status); }; } &&
 
12127
         { ac_try='test -s conftest$ac_exeext'
 
12128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12129
  (eval $ac_try) 2>&5
 
12130
  ac_status=$?
 
12131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12132
  (exit $ac_status); }; }; then
 
12133
  ac_cv_lib_dld_shl_load=yes
 
12134
else
 
12135
  echo "$as_me: failed program was:" >&5
 
12136
sed 's/^/| /' conftest.$ac_ext >&5
 
12137
 
 
12138
ac_cv_lib_dld_shl_load=no
 
12139
fi
 
12140
rm -f conftest.err conftest.$ac_objext \
 
12141
      conftest$ac_exeext conftest.$ac_ext
 
12142
LIBS=$ac_check_lib_save_LIBS
 
12143
fi
 
12144
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12145
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12146
if test $ac_cv_lib_dld_shl_load = yes; then
 
12147
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12148
else
 
12149
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12150
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12151
if test "${ac_cv_func_dlopen+set}" = set; then
 
12152
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12153
else
 
12154
  cat >conftest.$ac_ext <<_ACEOF
 
12155
/* confdefs.h.  */
 
12156
_ACEOF
 
12157
cat confdefs.h >>conftest.$ac_ext
 
12158
cat >>conftest.$ac_ext <<_ACEOF
 
12159
/* end confdefs.h.  */
 
12160
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12161
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12162
#define dlopen innocuous_dlopen
 
12163
 
 
12164
/* System header to define __stub macros and hopefully few prototypes,
 
12165
    which can conflict with char dlopen (); below.
 
12166
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12167
    <limits.h> exists even on freestanding compilers.  */
 
12168
 
 
12169
#ifdef __STDC__
 
12170
# include <limits.h>
 
12171
#else
 
12172
# include <assert.h>
 
12173
#endif
 
12174
 
 
12175
#undef dlopen
 
12176
 
 
12177
/* Override any gcc2 internal prototype to avoid an error.  */
 
12178
#ifdef __cplusplus
 
12179
extern "C"
 
12180
{
 
12181
#endif
 
12182
/* We use char because int might match the return type of a gcc2
 
12183
   builtin and then its argument prototype would still apply.  */
 
12184
char dlopen ();
 
12185
/* The GNU C library defines this for functions which it implements
 
12186
    to always fail with ENOSYS.  Some functions are actually named
 
12187
    something starting with __ and the normal name is an alias.  */
 
12188
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12189
choke me
 
12190
#else
 
12191
char (*f) () = dlopen;
 
12192
#endif
 
12193
#ifdef __cplusplus
 
12194
}
 
12195
#endif
 
12196
 
 
12197
int
 
12198
main ()
 
12199
{
 
12200
return f != dlopen;
 
12201
  ;
 
12202
  return 0;
 
12203
}
 
12204
_ACEOF
 
12205
rm -f conftest.$ac_objext conftest$ac_exeext
 
12206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12207
  (eval $ac_link) 2>conftest.er1
 
12208
  ac_status=$?
 
12209
  grep -v '^ *+' conftest.er1 >conftest.err
 
12210
  rm -f conftest.er1
 
12211
  cat conftest.err >&5
 
12212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12213
  (exit $ac_status); } &&
 
12214
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12216
  (eval $ac_try) 2>&5
 
12217
  ac_status=$?
 
12218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12219
  (exit $ac_status); }; } &&
 
12220
         { ac_try='test -s conftest$ac_exeext'
 
12221
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12222
  (eval $ac_try) 2>&5
 
12223
  ac_status=$?
 
12224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12225
  (exit $ac_status); }; }; then
 
12226
  ac_cv_func_dlopen=yes
 
12227
else
 
12228
  echo "$as_me: failed program was:" >&5
 
12229
sed 's/^/| /' conftest.$ac_ext >&5
 
12230
 
 
12231
ac_cv_func_dlopen=no
 
12232
fi
 
12233
rm -f conftest.err conftest.$ac_objext \
 
12234
      conftest$ac_exeext conftest.$ac_ext
 
12235
fi
 
12236
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12237
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12238
if test $ac_cv_func_dlopen = yes; then
 
12239
  lt_cv_dlopen="dlopen"
 
12240
else
 
12241
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12242
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12243
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12245
else
 
12246
  ac_check_lib_save_LIBS=$LIBS
 
12247
LIBS="-ldl  $LIBS"
 
12248
cat >conftest.$ac_ext <<_ACEOF
 
12249
/* confdefs.h.  */
 
12250
_ACEOF
 
12251
cat confdefs.h >>conftest.$ac_ext
 
12252
cat >>conftest.$ac_ext <<_ACEOF
 
12253
/* end confdefs.h.  */
 
12254
 
 
12255
/* Override any gcc2 internal prototype to avoid an error.  */
 
12256
#ifdef __cplusplus
 
12257
extern "C"
 
12258
#endif
 
12259
/* We use char because int might match the return type of a gcc2
 
12260
   builtin and then its argument prototype would still apply.  */
 
12261
char dlopen ();
 
12262
int
 
12263
main ()
 
12264
{
 
12265
dlopen ();
 
12266
  ;
 
12267
  return 0;
 
12268
}
 
12269
_ACEOF
 
12270
rm -f conftest.$ac_objext conftest$ac_exeext
 
12271
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12272
  (eval $ac_link) 2>conftest.er1
 
12273
  ac_status=$?
 
12274
  grep -v '^ *+' conftest.er1 >conftest.err
 
12275
  rm -f conftest.er1
 
12276
  cat conftest.err >&5
 
12277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12278
  (exit $ac_status); } &&
 
12279
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12280
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12281
  (eval $ac_try) 2>&5
 
12282
  ac_status=$?
 
12283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12284
  (exit $ac_status); }; } &&
 
12285
         { ac_try='test -s conftest$ac_exeext'
 
12286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12287
  (eval $ac_try) 2>&5
 
12288
  ac_status=$?
 
12289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12290
  (exit $ac_status); }; }; then
 
12291
  ac_cv_lib_dl_dlopen=yes
 
12292
else
 
12293
  echo "$as_me: failed program was:" >&5
 
12294
sed 's/^/| /' conftest.$ac_ext >&5
 
12295
 
 
12296
ac_cv_lib_dl_dlopen=no
 
12297
fi
 
12298
rm -f conftest.err conftest.$ac_objext \
 
12299
      conftest$ac_exeext conftest.$ac_ext
 
12300
LIBS=$ac_check_lib_save_LIBS
 
12301
fi
 
12302
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12303
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12304
if test $ac_cv_lib_dl_dlopen = yes; then
 
12305
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12306
else
 
12307
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12308
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12309
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12311
else
 
12312
  ac_check_lib_save_LIBS=$LIBS
 
12313
LIBS="-lsvld  $LIBS"
 
12314
cat >conftest.$ac_ext <<_ACEOF
 
12315
/* confdefs.h.  */
 
12316
_ACEOF
 
12317
cat confdefs.h >>conftest.$ac_ext
 
12318
cat >>conftest.$ac_ext <<_ACEOF
 
12319
/* end confdefs.h.  */
 
12320
 
 
12321
/* Override any gcc2 internal prototype to avoid an error.  */
 
12322
#ifdef __cplusplus
 
12323
extern "C"
 
12324
#endif
 
12325
/* We use char because int might match the return type of a gcc2
 
12326
   builtin and then its argument prototype would still apply.  */
 
12327
char dlopen ();
 
12328
int
 
12329
main ()
 
12330
{
 
12331
dlopen ();
 
12332
  ;
 
12333
  return 0;
 
12334
}
 
12335
_ACEOF
 
12336
rm -f conftest.$ac_objext conftest$ac_exeext
 
12337
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12338
  (eval $ac_link) 2>conftest.er1
 
12339
  ac_status=$?
 
12340
  grep -v '^ *+' conftest.er1 >conftest.err
 
12341
  rm -f conftest.er1
 
12342
  cat conftest.err >&5
 
12343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12344
  (exit $ac_status); } &&
 
12345
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12347
  (eval $ac_try) 2>&5
 
12348
  ac_status=$?
 
12349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12350
  (exit $ac_status); }; } &&
 
12351
         { ac_try='test -s conftest$ac_exeext'
 
12352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12353
  (eval $ac_try) 2>&5
 
12354
  ac_status=$?
 
12355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12356
  (exit $ac_status); }; }; then
 
12357
  ac_cv_lib_svld_dlopen=yes
 
12358
else
 
12359
  echo "$as_me: failed program was:" >&5
 
12360
sed 's/^/| /' conftest.$ac_ext >&5
 
12361
 
 
12362
ac_cv_lib_svld_dlopen=no
 
12363
fi
 
12364
rm -f conftest.err conftest.$ac_objext \
 
12365
      conftest$ac_exeext conftest.$ac_ext
 
12366
LIBS=$ac_check_lib_save_LIBS
 
12367
fi
 
12368
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12369
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12370
if test $ac_cv_lib_svld_dlopen = yes; then
 
12371
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12372
else
 
12373
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12374
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12375
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12377
else
 
12378
  ac_check_lib_save_LIBS=$LIBS
 
12379
LIBS="-ldld  $LIBS"
 
12380
cat >conftest.$ac_ext <<_ACEOF
 
12381
/* confdefs.h.  */
 
12382
_ACEOF
 
12383
cat confdefs.h >>conftest.$ac_ext
 
12384
cat >>conftest.$ac_ext <<_ACEOF
 
12385
/* end confdefs.h.  */
 
12386
 
 
12387
/* Override any gcc2 internal prototype to avoid an error.  */
 
12388
#ifdef __cplusplus
 
12389
extern "C"
 
12390
#endif
 
12391
/* We use char because int might match the return type of a gcc2
 
12392
   builtin and then its argument prototype would still apply.  */
 
12393
char dld_link ();
 
12394
int
 
12395
main ()
 
12396
{
 
12397
dld_link ();
 
12398
  ;
 
12399
  return 0;
 
12400
}
 
12401
_ACEOF
 
12402
rm -f conftest.$ac_objext conftest$ac_exeext
 
12403
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12404
  (eval $ac_link) 2>conftest.er1
 
12405
  ac_status=$?
 
12406
  grep -v '^ *+' conftest.er1 >conftest.err
 
12407
  rm -f conftest.er1
 
12408
  cat conftest.err >&5
 
12409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12410
  (exit $ac_status); } &&
 
12411
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12413
  (eval $ac_try) 2>&5
 
12414
  ac_status=$?
 
12415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12416
  (exit $ac_status); }; } &&
 
12417
         { ac_try='test -s conftest$ac_exeext'
 
12418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12419
  (eval $ac_try) 2>&5
 
12420
  ac_status=$?
 
12421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12422
  (exit $ac_status); }; }; then
 
12423
  ac_cv_lib_dld_dld_link=yes
 
12424
else
 
12425
  echo "$as_me: failed program was:" >&5
 
12426
sed 's/^/| /' conftest.$ac_ext >&5
 
12427
 
 
12428
ac_cv_lib_dld_dld_link=no
 
12429
fi
 
12430
rm -f conftest.err conftest.$ac_objext \
 
12431
      conftest$ac_exeext conftest.$ac_ext
 
12432
LIBS=$ac_check_lib_save_LIBS
 
12433
fi
 
12434
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12435
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12436
if test $ac_cv_lib_dld_dld_link = yes; then
 
12437
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12438
fi
 
12439
 
 
12440
 
 
12441
fi
 
12442
 
 
12443
 
 
12444
fi
 
12445
 
 
12446
 
 
12447
fi
 
12448
 
 
12449
 
 
12450
fi
 
12451
 
 
12452
 
 
12453
fi
 
12454
 
 
12455
    ;;
 
12456
  esac
 
12457
 
 
12458
  if test "x$lt_cv_dlopen" != xno; then
 
12459
    enable_dlopen=yes
 
12460
  else
 
12461
    enable_dlopen=no
 
12462
  fi
 
12463
 
 
12464
  case $lt_cv_dlopen in
 
12465
  dlopen)
 
12466
    save_CPPFLAGS="$CPPFLAGS"
 
12467
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12468
 
 
12469
    save_LDFLAGS="$LDFLAGS"
 
12470
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12471
 
 
12472
    save_LIBS="$LIBS"
 
12473
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12474
 
 
12475
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12476
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12477
if test "${lt_cv_dlopen_self+set}" = set; then
 
12478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12479
else
 
12480
          if test "$cross_compiling" = yes; then :
 
12481
  lt_cv_dlopen_self=cross
 
12482
else
 
12483
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12484
  lt_status=$lt_dlunknown
 
12485
  cat > conftest.$ac_ext <<EOF
 
12486
#line 12486 "configure"
 
12487
#include "confdefs.h"
 
12488
 
 
12489
#if HAVE_DLFCN_H
 
12490
#include <dlfcn.h>
 
12491
#endif
 
12492
 
 
12493
#include <stdio.h>
 
12494
 
 
12495
#ifdef RTLD_GLOBAL
 
12496
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12497
#else
 
12498
#  ifdef DL_GLOBAL
 
12499
#    define LT_DLGLOBAL         DL_GLOBAL
 
12500
#  else
 
12501
#    define LT_DLGLOBAL         0
 
12502
#  endif
 
12503
#endif
 
12504
 
 
12505
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12506
   find out it does not work in some platform. */
 
12507
#ifndef LT_DLLAZY_OR_NOW
 
12508
#  ifdef RTLD_LAZY
 
12509
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12510
#  else
 
12511
#    ifdef DL_LAZY
 
12512
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12513
#    else
 
12514
#      ifdef RTLD_NOW
 
12515
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12516
#      else
 
12517
#        ifdef DL_NOW
 
12518
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12519
#        else
 
12520
#          define LT_DLLAZY_OR_NOW      0
 
12521
#        endif
 
12522
#      endif
 
12523
#    endif
 
12524
#  endif
 
12525
#endif
 
12526
 
 
12527
#ifdef __cplusplus
 
12528
extern "C" void exit (int);
 
12529
#endif
 
12530
 
 
12531
void fnord() { int i=42;}
 
12532
int main ()
 
12533
{
 
12534
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12535
  int status = $lt_dlunknown;
 
12536
 
 
12537
  if (self)
 
12538
    {
 
12539
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12540
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12541
      /* dlclose (self); */
 
12542
    }
 
12543
 
 
12544
    exit (status);
 
12545
}
 
12546
EOF
 
12547
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12548
  (eval $ac_link) 2>&5
 
12549
  ac_status=$?
 
12550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12551
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12552
    (./conftest; exit; ) 2>/dev/null
 
12553
    lt_status=$?
 
12554
    case x$lt_status in
 
12555
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12556
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12557
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12558
    esac
 
12559
  else :
 
12560
    # compilation failed
 
12561
    lt_cv_dlopen_self=no
 
12562
  fi
 
12563
fi
 
12564
rm -fr conftest*
 
12565
 
 
12566
 
 
12567
fi
 
12568
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12569
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12570
 
 
12571
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12572
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12573
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12574
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12575
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12577
else
 
12578
          if test "$cross_compiling" = yes; then :
 
12579
  lt_cv_dlopen_self_static=cross
 
12580
else
 
12581
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12582
  lt_status=$lt_dlunknown
 
12583
  cat > conftest.$ac_ext <<EOF
 
12584
#line 12584 "configure"
 
12585
#include "confdefs.h"
 
12586
 
 
12587
#if HAVE_DLFCN_H
 
12588
#include <dlfcn.h>
 
12589
#endif
 
12590
 
 
12591
#include <stdio.h>
 
12592
 
 
12593
#ifdef RTLD_GLOBAL
 
12594
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12595
#else
 
12596
#  ifdef DL_GLOBAL
 
12597
#    define LT_DLGLOBAL         DL_GLOBAL
 
12598
#  else
 
12599
#    define LT_DLGLOBAL         0
 
12600
#  endif
 
12601
#endif
 
12602
 
 
12603
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12604
   find out it does not work in some platform. */
 
12605
#ifndef LT_DLLAZY_OR_NOW
 
12606
#  ifdef RTLD_LAZY
 
12607
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12608
#  else
 
12609
#    ifdef DL_LAZY
 
12610
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12611
#    else
 
12612
#      ifdef RTLD_NOW
 
12613
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12614
#      else
 
12615
#        ifdef DL_NOW
 
12616
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12617
#        else
 
12618
#          define LT_DLLAZY_OR_NOW      0
 
12619
#        endif
 
12620
#      endif
 
12621
#    endif
 
12622
#  endif
 
12623
#endif
 
12624
 
 
12625
#ifdef __cplusplus
 
12626
extern "C" void exit (int);
 
12627
#endif
 
12628
 
 
12629
void fnord() { int i=42;}
 
12630
int main ()
 
12631
{
 
12632
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12633
  int status = $lt_dlunknown;
 
12634
 
 
12635
  if (self)
 
12636
    {
 
12637
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12638
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12639
      /* dlclose (self); */
 
12640
    }
 
12641
 
 
12642
    exit (status);
 
12643
}
 
12644
EOF
 
12645
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12646
  (eval $ac_link) 2>&5
 
12647
  ac_status=$?
 
12648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12649
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12650
    (./conftest; exit; ) 2>/dev/null
 
12651
    lt_status=$?
 
12652
    case x$lt_status in
 
12653
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12654
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12655
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12656
    esac
 
12657
  else :
 
12658
    # compilation failed
 
12659
    lt_cv_dlopen_self_static=no
 
12660
  fi
 
12661
fi
 
12662
rm -fr conftest*
 
12663
 
 
12664
 
 
12665
fi
 
12666
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12667
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12668
    fi
 
12669
 
 
12670
    CPPFLAGS="$save_CPPFLAGS"
 
12671
    LDFLAGS="$save_LDFLAGS"
 
12672
    LIBS="$save_LIBS"
 
12673
    ;;
 
12674
  esac
 
12675
 
 
12676
  case $lt_cv_dlopen_self in
 
12677
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12678
  *) enable_dlopen_self=unknown ;;
 
12679
  esac
 
12680
 
 
12681
  case $lt_cv_dlopen_self_static in
 
12682
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12683
  *) enable_dlopen_self_static=unknown ;;
 
12684
  esac
 
12685
fi
 
12686
 
 
12687
 
 
12688
# The else clause should only fire when bootstrapping the
 
12689
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12690
# with your package, and you will get complaints that there are
 
12691
# no rules to generate ltmain.sh.
 
12692
if test -f "$ltmain"; then
 
12693
  # See if we are running on zsh, and set the options which allow our commands through
 
12694
  # without removal of \ escapes.
 
12695
  if test -n "${ZSH_VERSION+set}" ; then
 
12696
    setopt NO_GLOB_SUBST
 
12697
  fi
 
12698
  # Now quote all the things that may contain metacharacters while being
 
12699
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12700
  # variables and quote the copies for generation of the libtool script.
 
12701
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12702
    SED SHELL STRIP \
 
12703
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12704
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12705
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12706
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12707
    lt_cv_sys_global_symbol_to_c_name_address \
 
12708
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12709
    old_postinstall_cmds old_postuninstall_cmds \
 
12710
    compiler_CXX \
 
12711
    CC_CXX \
 
12712
    LD_CXX \
 
12713
    lt_prog_compiler_wl_CXX \
 
12714
    lt_prog_compiler_pic_CXX \
 
12715
    lt_prog_compiler_static_CXX \
 
12716
    lt_prog_compiler_no_builtin_flag_CXX \
 
12717
    export_dynamic_flag_spec_CXX \
 
12718
    thread_safe_flag_spec_CXX \
 
12719
    whole_archive_flag_spec_CXX \
 
12720
    enable_shared_with_static_runtimes_CXX \
 
12721
    old_archive_cmds_CXX \
 
12722
    old_archive_from_new_cmds_CXX \
 
12723
    predep_objects_CXX \
 
12724
    postdep_objects_CXX \
 
12725
    predeps_CXX \
 
12726
    postdeps_CXX \
 
12727
    compiler_lib_search_path_CXX \
 
12728
    archive_cmds_CXX \
 
12729
    archive_expsym_cmds_CXX \
 
12730
    postinstall_cmds_CXX \
 
12731
    postuninstall_cmds_CXX \
 
12732
    old_archive_from_expsyms_cmds_CXX \
 
12733
    allow_undefined_flag_CXX \
 
12734
    no_undefined_flag_CXX \
 
12735
    export_symbols_cmds_CXX \
 
12736
    hardcode_libdir_flag_spec_CXX \
 
12737
    hardcode_libdir_flag_spec_ld_CXX \
 
12738
    hardcode_libdir_separator_CXX \
 
12739
    hardcode_automatic_CXX \
 
12740
    module_cmds_CXX \
 
12741
    module_expsym_cmds_CXX \
 
12742
    lt_cv_prog_compiler_c_o_CXX \
 
12743
    exclude_expsyms_CXX \
 
12744
    include_expsyms_CXX; do
 
12745
 
 
12746
    case $var in
 
12747
    old_archive_cmds_CXX | \
 
12748
    old_archive_from_new_cmds_CXX | \
 
12749
    archive_cmds_CXX | \
 
12750
    archive_expsym_cmds_CXX | \
 
12751
    module_cmds_CXX | \
 
12752
    module_expsym_cmds_CXX | \
 
12753
    old_archive_from_expsyms_cmds_CXX | \
 
12754
    export_symbols_cmds_CXX | \
 
12755
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12756
    postinstall_cmds | postuninstall_cmds | \
 
12757
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12758
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12759
      # Double-quote double-evaled strings.
 
12760
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12761
      ;;
 
12762
    *)
 
12763
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12764
      ;;
 
12765
    esac
 
12766
  done
 
12767
 
 
12768
  case $lt_echo in
 
12769
  *'\$0 --fallback-echo"')
 
12770
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12771
    ;;
 
12772
  esac
 
12773
 
 
12774
cfgfile="$ofile"
 
12775
 
 
12776
  cat <<__EOF__ >> "$cfgfile"
 
12777
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12778
 
 
12779
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12780
 
 
12781
# Shell to use when invoking shell scripts.
 
12782
SHELL=$lt_SHELL
 
12783
 
 
12784
# Whether or not to build shared libraries.
 
12785
build_libtool_libs=$enable_shared
 
12786
 
 
12787
# Whether or not to build static libraries.
 
12788
build_old_libs=$enable_static
 
12789
 
 
12790
# Whether or not to add -lc for building shared libraries.
 
12791
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12792
 
 
12793
# Whether or not to disallow shared libs when runtime libs are static
 
12794
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12795
 
 
12796
# Whether or not to optimize for fast installation.
 
12797
fast_install=$enable_fast_install
 
12798
 
 
12799
# The host system.
 
12800
host_alias=$host_alias
 
12801
host=$host
 
12802
 
 
12803
# An echo program that does not interpret backslashes.
 
12804
echo=$lt_echo
 
12805
 
 
12806
# The archiver.
 
12807
AR=$lt_AR
 
12808
AR_FLAGS=$lt_AR_FLAGS
 
12809
 
 
12810
# A C compiler.
 
12811
LTCC=$lt_LTCC
 
12812
 
 
12813
# A language-specific compiler.
 
12814
CC=$lt_compiler_CXX
 
12815
 
 
12816
# Is the compiler the GNU C compiler?
 
12817
with_gcc=$GCC_CXX
 
12818
 
 
12819
# An ERE matcher.
 
12820
EGREP=$lt_EGREP
 
12821
 
 
12822
# The linker used to build libraries.
 
12823
LD=$lt_LD_CXX
 
12824
 
 
12825
# Whether we need hard or soft links.
 
12826
LN_S=$lt_LN_S
 
12827
 
 
12828
# A BSD-compatible nm program.
 
12829
NM=$lt_NM
 
12830
 
 
12831
# A symbol stripping program
 
12832
STRIP=$lt_STRIP
 
12833
 
 
12834
# Used to examine libraries when file_magic_cmd begins "file"
 
12835
MAGIC_CMD=$MAGIC_CMD
 
12836
 
 
12837
# Used on cygwin: DLL creation program.
 
12838
DLLTOOL="$DLLTOOL"
 
12839
 
 
12840
# Used on cygwin: object dumper.
 
12841
OBJDUMP="$OBJDUMP"
 
12842
 
 
12843
# Used on cygwin: assembler.
 
12844
AS="$AS"
 
12845
 
 
12846
# The name of the directory that contains temporary libtool files.
 
12847
objdir=$objdir
 
12848
 
 
12849
# How to create reloadable object files.
 
12850
reload_flag=$lt_reload_flag
 
12851
reload_cmds=$lt_reload_cmds
 
12852
 
 
12853
# How to pass a linker flag through the compiler.
 
12854
wl=$lt_lt_prog_compiler_wl_CXX
 
12855
 
 
12856
# Object file suffix (normally "o").
 
12857
objext="$ac_objext"
 
12858
 
 
12859
# Old archive suffix (normally "a").
 
12860
libext="$libext"
 
12861
 
 
12862
# Shared library suffix (normally ".so").
 
12863
shrext_cmds='$shrext_cmds'
 
12864
 
 
12865
# Executable file suffix (normally "").
 
12866
exeext="$exeext"
 
12867
 
 
12868
# Additional compiler flags for building library objects.
 
12869
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12870
pic_mode=$pic_mode
 
12871
 
 
12872
# What is the maximum length of a command?
 
12873
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12874
 
 
12875
# Does compiler simultaneously support -c and -o options?
 
12876
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12877
 
 
12878
# Must we lock files when doing compilation ?
 
12879
need_locks=$lt_need_locks
 
12880
 
 
12881
# Do we need the lib prefix for modules?
 
12882
need_lib_prefix=$need_lib_prefix
 
12883
 
 
12884
# Do we need a version for libraries?
 
12885
need_version=$need_version
 
12886
 
 
12887
# Whether dlopen is supported.
 
12888
dlopen_support=$enable_dlopen
 
12889
 
 
12890
# Whether dlopen of programs is supported.
 
12891
dlopen_self=$enable_dlopen_self
 
12892
 
 
12893
# Whether dlopen of statically linked programs is supported.
 
12894
dlopen_self_static=$enable_dlopen_self_static
 
12895
 
 
12896
# Compiler flag to prevent dynamic linking.
 
12897
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12898
 
 
12899
# Compiler flag to turn off builtin functions.
 
12900
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12901
 
 
12902
# Compiler flag to allow reflexive dlopens.
 
12903
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12904
 
 
12905
# Compiler flag to generate shared objects directly from archives.
 
12906
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12907
 
 
12908
# Compiler flag to generate thread-safe objects.
 
12909
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12910
 
 
12911
# Library versioning type.
 
12912
version_type=$version_type
 
12913
 
 
12914
# Format of library name prefix.
 
12915
libname_spec=$lt_libname_spec
 
12916
 
 
12917
# List of archive names.  First name is the real one, the rest are links.
 
12918
# The last name is the one that the linker finds with -lNAME.
 
12919
library_names_spec=$lt_library_names_spec
 
12920
 
 
12921
# The coded name of the library, if different from the real name.
 
12922
soname_spec=$lt_soname_spec
 
12923
 
 
12924
# Commands used to build and install an old-style archive.
 
12925
RANLIB=$lt_RANLIB
 
12926
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12927
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12928
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12929
 
 
12930
# Create an old-style archive from a shared archive.
 
12931
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12932
 
 
12933
# Create a temporary old-style archive to link instead of a shared archive.
 
12934
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12935
 
 
12936
# Commands used to build and install a shared archive.
 
12937
archive_cmds=$lt_archive_cmds_CXX
 
12938
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12939
postinstall_cmds=$lt_postinstall_cmds
 
12940
postuninstall_cmds=$lt_postuninstall_cmds
 
12941
 
 
12942
# Commands used to build a loadable module (assumed same as above if empty)
 
12943
module_cmds=$lt_module_cmds_CXX
 
12944
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12945
 
 
12946
# Commands to strip libraries.
 
12947
old_striplib=$lt_old_striplib
 
12948
striplib=$lt_striplib
 
12949
 
 
12950
# Dependencies to place before the objects being linked to create a
 
12951
# shared library.
 
12952
predep_objects=$lt_predep_objects_CXX
 
12953
 
 
12954
# Dependencies to place after the objects being linked to create a
 
12955
# shared library.
 
12956
postdep_objects=$lt_postdep_objects_CXX
 
12957
 
 
12958
# Dependencies to place before the objects being linked to create a
 
12959
# shared library.
 
12960
predeps=$lt_predeps_CXX
 
12961
 
 
12962
# Dependencies to place after the objects being linked to create a
 
12963
# shared library.
 
12964
postdeps=$lt_postdeps_CXX
 
12965
 
 
12966
# The library search path used internally by the compiler when linking
 
12967
# a shared library.
 
12968
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12969
 
 
12970
# Method to check whether dependent libraries are shared objects.
 
12971
deplibs_check_method=$lt_deplibs_check_method
 
12972
 
 
12973
# Command to use when deplibs_check_method == file_magic.
 
12974
file_magic_cmd=$lt_file_magic_cmd
 
12975
 
 
12976
# Flag that allows shared libraries with undefined symbols to be built.
 
12977
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12978
 
 
12979
# Flag that forces no undefined symbols.
 
12980
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12981
 
 
12982
# Commands used to finish a libtool library installation in a directory.
 
12983
finish_cmds=$lt_finish_cmds
 
12984
 
 
12985
# Same as above, but a single script fragment to be evaled but not shown.
 
12986
finish_eval=$lt_finish_eval
 
12987
 
 
12988
# Take the output of nm and produce a listing of raw symbols and C names.
 
12989
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12990
 
 
12991
# Transform the output of nm in a proper C declaration
 
12992
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12993
 
 
12994
# Transform the output of nm in a C name address pair
 
12995
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12996
 
 
12997
# This is the shared library runtime path variable.
 
12998
runpath_var=$runpath_var
 
12999
 
 
13000
# This is the shared library path variable.
 
13001
shlibpath_var=$shlibpath_var
 
13002
 
 
13003
# Is shlibpath searched before the hard-coded library search path?
 
13004
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13005
 
 
13006
# How to hardcode a shared library path into an executable.
 
13007
hardcode_action=$hardcode_action_CXX
 
13008
 
 
13009
# Whether we should hardcode library paths into libraries.
 
13010
hardcode_into_libs=$hardcode_into_libs
 
13011
 
 
13012
# Flag to hardcode \$libdir into a binary during linking.
 
13013
# This must work even if \$libdir does not exist.
 
13014
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13015
 
 
13016
# If ld is used when linking, flag to hardcode \$libdir into
 
13017
# a binary during linking. This must work even if \$libdir does
 
13018
# not exist.
 
13019
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13020
 
 
13021
# Whether we need a single -rpath flag with a separated argument.
 
13022
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13023
 
 
13024
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13025
# resulting binary.
 
13026
hardcode_direct=$hardcode_direct_CXX
 
13027
 
 
13028
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13029
# resulting binary.
 
13030
hardcode_minus_L=$hardcode_minus_L_CXX
 
13031
 
 
13032
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13033
# the resulting binary.
 
13034
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13035
 
 
13036
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13037
# and all subsequent libraries and executables linked against it.
 
13038
hardcode_automatic=$hardcode_automatic_CXX
 
13039
 
 
13040
# Variables whose values should be saved in libtool wrapper scripts and
 
13041
# restored at relink time.
 
13042
variables_saved_for_relink="$variables_saved_for_relink"
 
13043
 
 
13044
# Whether libtool must link a program against all its dependency libraries.
 
13045
link_all_deplibs=$link_all_deplibs_CXX
 
13046
 
 
13047
# Compile-time system search path for libraries
 
13048
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13049
 
 
13050
# Run-time system search path for libraries
 
13051
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13052
 
 
13053
# Fix the shell variable \$srcfile for the compiler.
 
13054
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13055
 
 
13056
# Set to yes if exported symbols are required.
 
13057
always_export_symbols=$always_export_symbols_CXX
 
13058
 
 
13059
# The commands to list exported symbols.
 
13060
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13061
 
 
13062
# The commands to extract the exported symbol list from a shared archive.
 
13063
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13064
 
 
13065
# Symbols that should not be listed in the preloaded symbols.
 
13066
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13067
 
 
13068
# Symbols that must always be exported.
 
13069
include_expsyms=$lt_include_expsyms_CXX
 
13070
 
 
13071
# ### END LIBTOOL TAG CONFIG: $tagname
 
13072
 
 
13073
__EOF__
 
13074
 
 
13075
 
 
13076
else
 
13077
  # If there is no Makefile yet, we rely on a make rule to execute
 
13078
  # `config.status --recheck' to rerun these tests and create the
 
13079
  # libtool script then.
 
13080
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13081
  if test -f "$ltmain_in"; then
 
13082
    test -f Makefile && make "$ltmain"
 
13083
  fi
 
13084
fi
 
13085
 
 
13086
 
 
13087
ac_ext=c
 
13088
ac_cpp='$CPP $CPPFLAGS'
 
13089
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13090
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13091
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13092
 
 
13093
CC=$lt_save_CC
 
13094
LDCXX=$LD
 
13095
LD=$lt_save_LD
 
13096
GCC=$lt_save_GCC
 
13097
with_gnu_ldcxx=$with_gnu_ld
 
13098
with_gnu_ld=$lt_save_with_gnu_ld
 
13099
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13100
lt_cv_path_LD=$lt_save_path_LD
 
13101
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13102
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13103
 
 
13104
        else
 
13105
          tagname=""
 
13106
        fi
 
13107
        ;;
 
13108
 
 
13109
      F77)
 
13110
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13111
 
 
13112
ac_ext=f
 
13113
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13114
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13115
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13116
 
 
13117
 
 
13118
archive_cmds_need_lc_F77=no
 
13119
allow_undefined_flag_F77=
 
13120
always_export_symbols_F77=no
 
13121
archive_expsym_cmds_F77=
 
13122
export_dynamic_flag_spec_F77=
 
13123
hardcode_direct_F77=no
 
13124
hardcode_libdir_flag_spec_F77=
 
13125
hardcode_libdir_flag_spec_ld_F77=
 
13126
hardcode_libdir_separator_F77=
 
13127
hardcode_minus_L_F77=no
 
13128
hardcode_automatic_F77=no
 
13129
module_cmds_F77=
 
13130
module_expsym_cmds_F77=
 
13131
link_all_deplibs_F77=unknown
 
13132
old_archive_cmds_F77=$old_archive_cmds
 
13133
no_undefined_flag_F77=
 
13134
whole_archive_flag_spec_F77=
 
13135
enable_shared_with_static_runtimes_F77=no
 
13136
 
 
13137
# Source file extension for f77 test sources.
 
13138
ac_ext=f
 
13139
 
 
13140
# Object file extension for compiled f77 test sources.
 
13141
objext=o
 
13142
objext_F77=$objext
 
13143
 
 
13144
# Code to be used in simple compile tests
 
13145
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13146
 
 
13147
# Code to be used in simple link tests
 
13148
lt_simple_link_test_code="      program t\n      end\n"
 
13149
 
 
13150
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13151
 
 
13152
# If no C compiler was specified, use CC.
 
13153
LTCC=${LTCC-"$CC"}
 
13154
 
 
13155
# Allow CC to be a program name with arguments.
 
13156
compiler=$CC
 
13157
 
 
13158
 
 
13159
# Allow CC to be a program name with arguments.
 
13160
lt_save_CC="$CC"
 
13161
CC=${F77-"f77"}
 
13162
compiler=$CC
 
13163
compiler_F77=$CC
 
13164
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13165
 
 
13166
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13167
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13168
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13169
echo "${ECHO_T}$can_build_shared" >&6
 
13170
 
 
13171
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13172
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13173
test "$can_build_shared" = "no" && enable_shared=no
 
13174
 
 
13175
# On AIX, shared libraries and static libraries use the same namespace, and
 
13176
# are all built from PIC.
 
13177
case "$host_os" in
 
13178
aix3*)
 
13179
  test "$enable_shared" = yes && enable_static=no
 
13180
  if test -n "$RANLIB"; then
 
13181
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13182
    postinstall_cmds='$RANLIB $lib'
 
13183
  fi
 
13184
  ;;
 
13185
aix4* | aix5*)
 
13186
  test "$enable_shared" = yes && enable_static=no
 
13187
  ;;
 
13188
esac
 
13189
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13190
echo "${ECHO_T}$enable_shared" >&6
 
13191
 
 
13192
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13193
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13194
# Make sure either enable_shared or enable_static is yes.
 
13195
test "$enable_shared" = yes || enable_static=yes
 
13196
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13197
echo "${ECHO_T}$enable_static" >&6
 
13198
 
 
13199
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13200
 
 
13201
GCC_F77="$G77"
 
13202
LD_F77="$LD"
 
13203
 
 
13204
lt_prog_compiler_wl_F77=
 
13205
lt_prog_compiler_pic_F77=
 
13206
lt_prog_compiler_static_F77=
 
13207
 
 
13208
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13209
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13210
 
 
13211
  if test "$GCC" = yes; then
 
13212
    lt_prog_compiler_wl_F77='-Wl,'
 
13213
    lt_prog_compiler_static_F77='-static'
 
13214
 
 
13215
    case $host_os in
 
13216
      aix*)
 
13217
      # All AIX code is PIC.
 
13218
      if test "$host_cpu" = ia64; then
 
13219
        # AIX 5 now supports IA64 processor
 
13220
        lt_prog_compiler_static_F77='-Bstatic'
 
13221
      fi
 
13222
      ;;
 
13223
 
 
13224
    amigaos*)
 
13225
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13226
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13227
      # like `-m68040'.
 
13228
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13229
      ;;
 
13230
 
 
13231
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13232
      # PIC is the default for these OSes.
 
13233
      ;;
 
13234
 
 
13235
    mingw* | pw32* | os2*)
 
13236
      # This hack is so that the source file can tell whether it is being
 
13237
      # built for inclusion in a dll (and should export symbols for example).
 
13238
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13239
      ;;
 
13240
 
 
13241
    darwin* | rhapsody*)
 
13242
      # PIC is the default on this platform
 
13243
      # Common symbols not allowed in MH_DYLIB files
 
13244
      lt_prog_compiler_pic_F77='-fno-common'
 
13245
      ;;
 
13246
 
 
13247
    msdosdjgpp*)
 
13248
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13249
      # on systems that don't support them.
 
13250
      lt_prog_compiler_can_build_shared_F77=no
 
13251
      enable_shared=no
 
13252
      ;;
 
13253
 
 
13254
    sysv4*MP*)
 
13255
      if test -d /usr/nec; then
 
13256
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13257
      fi
 
13258
      ;;
 
13259
 
 
13260
    hpux*)
 
13261
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13262
      # not for PA HP-UX.
 
13263
      case "$host_cpu" in
 
13264
      hppa*64*|ia64*)
 
13265
        # +Z the default
 
13266
        ;;
 
13267
      *)
 
13268
        lt_prog_compiler_pic_F77='-fPIC'
 
13269
        ;;
 
13270
      esac
 
13271
      ;;
 
13272
 
 
13273
    *)
 
13274
      lt_prog_compiler_pic_F77='-fPIC'
 
13275
      ;;
 
13276
    esac
 
13277
  else
 
13278
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13279
    case $host_os in
 
13280
    aix*)
 
13281
      lt_prog_compiler_wl_F77='-Wl,'
 
13282
      if test "$host_cpu" = ia64; then
 
13283
        # AIX 5 now supports IA64 processor
 
13284
        lt_prog_compiler_static_F77='-Bstatic'
 
13285
      else
 
13286
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13287
      fi
 
13288
      ;;
 
13289
 
 
13290
    mingw* | pw32* | os2*)
 
13291
      # This hack is so that the source file can tell whether it is being
 
13292
      # built for inclusion in a dll (and should export symbols for example).
 
13293
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13294
      ;;
 
13295
 
 
13296
    hpux9* | hpux10* | hpux11*)
 
13297
      lt_prog_compiler_wl_F77='-Wl,'
 
13298
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13299
      # not for PA HP-UX.
 
13300
      case "$host_cpu" in
 
13301
      hppa*64*|ia64*)
 
13302
        # +Z the default
 
13303
        ;;
 
13304
      *)
 
13305
        lt_prog_compiler_pic_F77='+Z'
 
13306
        ;;
 
13307
      esac
 
13308
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13309
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13310
      ;;
 
13311
 
 
13312
    irix5* | irix6* | nonstopux*)
 
13313
      lt_prog_compiler_wl_F77='-Wl,'
 
13314
      # PIC (with -KPIC) is the default.
 
13315
      lt_prog_compiler_static_F77='-non_shared'
 
13316
      ;;
 
13317
 
 
13318
    newsos6)
 
13319
      lt_prog_compiler_pic_F77='-KPIC'
 
13320
      lt_prog_compiler_static_F77='-Bstatic'
 
13321
      ;;
 
13322
 
 
13323
    linux*)
 
13324
      case $CC in
 
13325
      icc* | ecc*)
 
13326
        lt_prog_compiler_wl_F77='-Wl,'
 
13327
        lt_prog_compiler_pic_F77='-KPIC'
 
13328
        lt_prog_compiler_static_F77='-static'
 
13329
        ;;
 
13330
      ccc*)
 
13331
        lt_prog_compiler_wl_F77='-Wl,'
 
13332
        # All Alpha code is PIC.
 
13333
        lt_prog_compiler_static_F77='-non_shared'
 
13334
        ;;
 
13335
      esac
 
13336
      ;;
 
13337
 
 
13338
    osf3* | osf4* | osf5*)
 
13339
      lt_prog_compiler_wl_F77='-Wl,'
 
13340
      # All OSF/1 code is PIC.
 
13341
      lt_prog_compiler_static_F77='-non_shared'
 
13342
      ;;
 
13343
 
 
13344
    sco3.2v5*)
 
13345
      lt_prog_compiler_pic_F77='-Kpic'
 
13346
      lt_prog_compiler_static_F77='-dn'
 
13347
      ;;
 
13348
 
 
13349
    solaris*)
 
13350
      lt_prog_compiler_wl_F77='-Wl,'
 
13351
      lt_prog_compiler_pic_F77='-KPIC'
 
13352
      lt_prog_compiler_static_F77='-Bstatic'
 
13353
      ;;
 
13354
 
 
13355
    sunos4*)
 
13356
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13357
      lt_prog_compiler_pic_F77='-PIC'
 
13358
      lt_prog_compiler_static_F77='-Bstatic'
 
13359
      ;;
 
13360
 
 
13361
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13362
      lt_prog_compiler_wl_F77='-Wl,'
 
13363
      lt_prog_compiler_pic_F77='-KPIC'
 
13364
      lt_prog_compiler_static_F77='-Bstatic'
 
13365
      ;;
 
13366
 
 
13367
    sysv4*MP*)
 
13368
      if test -d /usr/nec ;then
 
13369
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13370
        lt_prog_compiler_static_F77='-Bstatic'
 
13371
      fi
 
13372
      ;;
 
13373
 
 
13374
    uts4*)
 
13375
      lt_prog_compiler_pic_F77='-pic'
 
13376
      lt_prog_compiler_static_F77='-Bstatic'
 
13377
      ;;
 
13378
 
 
13379
    *)
 
13380
      lt_prog_compiler_can_build_shared_F77=no
 
13381
      ;;
 
13382
    esac
 
13383
  fi
 
13384
 
 
13385
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13386
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13387
 
 
13388
#
 
13389
# Check to make sure the PIC flag actually works.
 
13390
#
 
13391
if test -n "$lt_prog_compiler_pic_F77"; then
 
13392
 
 
13393
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13394
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13395
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13396
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13397
else
 
13398
  lt_prog_compiler_pic_works_F77=no
 
13399
  ac_outfile=conftest.$ac_objext
 
13400
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13401
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13402
   # Insert the option either (1) after the last *FLAGS variable, or
 
13403
   # (2) before a word containing "conftest.", or (3) at the end.
 
13404
   # Note that $ac_compile itself does not contain backslashes and begins
 
13405
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13406
   # The option is referenced via a variable to avoid confusing sed.
 
13407
   lt_compile=`echo "$ac_compile" | $SED \
 
13408
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13409
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13410
   -e 's:$: $lt_compiler_flag:'`
 
13411
   (eval echo "\"\$as_me:13411: $lt_compile\"" >&5)
 
13412
   (eval "$lt_compile" 2>conftest.err)
 
13413
   ac_status=$?
 
13414
   cat conftest.err >&5
 
13415
   echo "$as_me:13415: \$? = $ac_status" >&5
 
13416
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13417
     # The compiler can only warn and ignore the option if not recognized
 
13418
     # So say no if there are warnings
 
13419
     if test ! -s conftest.err; then
 
13420
       lt_prog_compiler_pic_works_F77=yes
 
13421
     fi
 
13422
   fi
 
13423
   $rm conftest*
 
13424
 
 
13425
fi
 
13426
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13427
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13428
 
 
13429
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13430
    case $lt_prog_compiler_pic_F77 in
 
13431
     "" | " "*) ;;
 
13432
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13433
     esac
 
13434
else
 
13435
    lt_prog_compiler_pic_F77=
 
13436
     lt_prog_compiler_can_build_shared_F77=no
 
13437
fi
 
13438
 
 
13439
fi
 
13440
case "$host_os" in
 
13441
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13442
  *djgpp*)
 
13443
    lt_prog_compiler_pic_F77=
 
13444
    ;;
 
13445
  *)
 
13446
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13447
    ;;
 
13448
esac
 
13449
 
 
13450
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13451
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13452
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13453
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13454
else
 
13455
  lt_cv_prog_compiler_c_o_F77=no
 
13456
   $rm -r conftest 2>/dev/null
 
13457
   mkdir conftest
 
13458
   cd conftest
 
13459
   mkdir out
 
13460
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13461
 
 
13462
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13463
   # Insert the option either (1) after the last *FLAGS variable, or
 
13464
   # (2) before a word containing "conftest.", or (3) at the end.
 
13465
   # Note that $ac_compile itself does not contain backslashes and begins
 
13466
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13467
   lt_compile=`echo "$ac_compile" | $SED \
 
13468
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13469
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13470
   -e 's:$: $lt_compiler_flag:'`
 
13471
   (eval echo "\"\$as_me:13471: $lt_compile\"" >&5)
 
13472
   (eval "$lt_compile" 2>out/conftest.err)
 
13473
   ac_status=$?
 
13474
   cat out/conftest.err >&5
 
13475
   echo "$as_me:13475: \$? = $ac_status" >&5
 
13476
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13477
   then
 
13478
     # The compiler can only warn and ignore the option if not recognized
 
13479
     # So say no if there are warnings
 
13480
     if test ! -s out/conftest.err; then
 
13481
       lt_cv_prog_compiler_c_o_F77=yes
 
13482
     fi
 
13483
   fi
 
13484
   chmod u+w .
 
13485
   $rm conftest*
 
13486
   # SGI C++ compiler will create directory out/ii_files/ for
 
13487
   # template instantiation
 
13488
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13489
   $rm out/* && rmdir out
 
13490
   cd ..
 
13491
   rmdir conftest
 
13492
   $rm conftest*
 
13493
 
 
13494
fi
 
13495
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13496
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13497
 
 
13498
 
 
13499
hard_links="nottested"
 
13500
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13501
  # do not overwrite the value of need_locks provided by the user
 
13502
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13503
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13504
  hard_links=yes
 
13505
  $rm conftest*
 
13506
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13507
  touch conftest.a
 
13508
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13509
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13510
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13511
echo "${ECHO_T}$hard_links" >&6
 
13512
  if test "$hard_links" = no; then
 
13513
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13514
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13515
    need_locks=warn
 
13516
  fi
 
13517
else
 
13518
  need_locks=no
 
13519
fi
 
13520
 
 
13521
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13522
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13523
 
 
13524
  runpath_var=
 
13525
  allow_undefined_flag_F77=
 
13526
  enable_shared_with_static_runtimes_F77=no
 
13527
  archive_cmds_F77=
 
13528
  archive_expsym_cmds_F77=
 
13529
  old_archive_From_new_cmds_F77=
 
13530
  old_archive_from_expsyms_cmds_F77=
 
13531
  export_dynamic_flag_spec_F77=
 
13532
  whole_archive_flag_spec_F77=
 
13533
  thread_safe_flag_spec_F77=
 
13534
  hardcode_libdir_flag_spec_F77=
 
13535
  hardcode_libdir_flag_spec_ld_F77=
 
13536
  hardcode_libdir_separator_F77=
 
13537
  hardcode_direct_F77=no
 
13538
  hardcode_minus_L_F77=no
 
13539
  hardcode_shlibpath_var_F77=unsupported
 
13540
  link_all_deplibs_F77=unknown
 
13541
  hardcode_automatic_F77=no
 
13542
  module_cmds_F77=
 
13543
  module_expsym_cmds_F77=
 
13544
  always_export_symbols_F77=no
 
13545
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13546
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13547
  # included in the symbol list
 
13548
  include_expsyms_F77=
 
13549
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13550
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13551
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13552
  # as well as any symbol that contains `d'.
 
13553
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13554
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13555
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13556
  # the symbol is explicitly referenced.  Since portable code cannot
 
13557
  # rely on this symbol name, it's probably fine to never include it in
 
13558
  # preloaded symbol tables.
 
13559
  extract_expsyms_cmds=
 
13560
 
 
13561
  case $host_os in
 
13562
  cygwin* | mingw* | pw32*)
 
13563
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13564
    # When not using gcc, we currently assume that we are using
 
13565
    # Microsoft Visual C++.
 
13566
    if test "$GCC" != yes; then
 
13567
      with_gnu_ld=no
 
13568
    fi
 
13569
    ;;
 
13570
  openbsd*)
 
13571
    with_gnu_ld=no
 
13572
    ;;
 
13573
  esac
 
13574
 
 
13575
  ld_shlibs_F77=yes
 
13576
  if test "$with_gnu_ld" = yes; then
 
13577
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13578
    wlarc='${wl}'
 
13579
 
 
13580
    # See if GNU ld supports shared libraries.
 
13581
    case $host_os in
 
13582
    aix3* | aix4* | aix5*)
 
13583
      # On AIX/PPC, the GNU linker is very broken
 
13584
      if test "$host_cpu" != ia64; then
 
13585
        ld_shlibs_F77=no
 
13586
        cat <<EOF 1>&2
 
13587
 
 
13588
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13589
*** to be unable to reliably create shared libraries on AIX.
 
13590
*** Therefore, libtool is disabling shared libraries support.  If you
 
13591
*** really care for shared libraries, you may want to modify your PATH
 
13592
*** so that a non-GNU linker is found, and then restart.
 
13593
 
 
13594
EOF
 
13595
      fi
 
13596
      ;;
 
13597
 
 
13598
    amigaos*)
 
13599
      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)'
 
13600
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13601
      hardcode_minus_L_F77=yes
 
13602
 
 
13603
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13604
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13605
      # to version 4, is to share data among multiple programs linked
 
13606
      # with the same dynamic library.  Since this doesn't match the
 
13607
      # behavior of shared libraries on other platforms, we can't use
 
13608
      # them.
 
13609
      ld_shlibs_F77=no
 
13610
      ;;
 
13611
 
 
13612
    beos*)
 
13613
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13614
        allow_undefined_flag_F77=unsupported
 
13615
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13616
        # support --undefined.  This deserves some investigation.  FIXME
 
13617
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13618
      else
 
13619
        ld_shlibs_F77=no
 
13620
      fi
 
13621
      ;;
 
13622
 
 
13623
    cygwin* | mingw* | pw32*)
 
13624
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13625
      # as there is no search path for DLLs.
 
13626
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13627
      allow_undefined_flag_F77=unsupported
 
13628
      always_export_symbols_F77=no
 
13629
      enable_shared_with_static_runtimes_F77=yes
 
13630
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13631
 
 
13632
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13633
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13634
        # If the export-symbols file already is a .def file (1st line
 
13635
        # is EXPORTS), use it as is; otherwise, prepend...
 
13636
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13637
          cp $export_symbols $output_objdir/$soname.def;
 
13638
        else
 
13639
          echo EXPORTS > $output_objdir/$soname.def;
 
13640
          cat $export_symbols >> $output_objdir/$soname.def;
 
13641
        fi~
 
13642
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13643
      else
 
13644
        ld_shlibs=no
 
13645
      fi
 
13646
      ;;
 
13647
 
 
13648
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13649
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13650
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13651
        wlarc=
 
13652
      else
 
13653
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13654
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13655
      fi
 
13656
      ;;
 
13657
 
 
13658
    solaris* | sysv5*)
 
13659
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13660
        ld_shlibs_F77=no
 
13661
        cat <<EOF 1>&2
 
13662
 
 
13663
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13664
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13665
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13666
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13667
*** your PATH or compiler configuration so that the native linker is
 
13668
*** used, and then restart.
 
13669
 
 
13670
EOF
 
13671
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13672
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13673
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13674
      else
 
13675
        ld_shlibs_F77=no
 
13676
      fi
 
13677
      ;;
 
13678
 
 
13679
    sunos4*)
 
13680
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13681
      wlarc=
 
13682
      hardcode_direct_F77=yes
 
13683
      hardcode_shlibpath_var_F77=no
 
13684
      ;;
 
13685
 
 
13686
  linux*)
 
13687
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13688
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13689
        archive_cmds_F77="$tmp_archive_cmds"
 
13690
      supports_anon_versioning=no
 
13691
      case `$LD -v 2>/dev/null` in
 
13692
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13693
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13694
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13695
        *\ 2.11.*) ;; # other 2.11 versions
 
13696
        *) supports_anon_versioning=yes ;;
 
13697
      esac
 
13698
      if test $supports_anon_versioning = yes; then
 
13699
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13700
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13701
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
13702
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13703
      else
 
13704
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
13705
      fi
 
13706
      link_all_deplibs_F77=no
 
13707
    else
 
13708
      ld_shlibs_F77=no
 
13709
    fi
 
13710
    ;;
 
13711
 
 
13712
    *)
 
13713
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13714
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13715
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13716
      else
 
13717
        ld_shlibs_F77=no
 
13718
      fi
 
13719
      ;;
 
13720
    esac
 
13721
 
 
13722
    if test "$ld_shlibs_F77" = yes; then
 
13723
      runpath_var=LD_RUN_PATH
 
13724
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13725
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13726
      # ancient GNU ld didn't support --whole-archive et. al.
 
13727
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13728
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13729
      else
 
13730
        whole_archive_flag_spec_F77=
 
13731
      fi
 
13732
    fi
 
13733
  else
 
13734
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13735
    case $host_os in
 
13736
    aix3*)
 
13737
      allow_undefined_flag_F77=unsupported
 
13738
      always_export_symbols_F77=yes
 
13739
      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'
 
13740
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13741
      # are no directories specified by -L.
 
13742
      hardcode_minus_L_F77=yes
 
13743
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13744
        # Neither direct hardcoding nor static linking is supported with a
 
13745
        # broken collect2.
 
13746
        hardcode_direct_F77=unsupported
 
13747
      fi
 
13748
      ;;
 
13749
 
 
13750
    aix4* | aix5*)
 
13751
      if test "$host_cpu" = ia64; then
 
13752
        # On IA64, the linker does run time linking by default, so we don't
 
13753
        # have to do anything special.
 
13754
        aix_use_runtimelinking=no
 
13755
        exp_sym_flag='-Bexport'
 
13756
        no_entry_flag=""
 
13757
      else
 
13758
        # If we're using GNU nm, then we don't want the "-C" option.
 
13759
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13760
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13761
          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'
 
13762
        else
 
13763
          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'
 
13764
        fi
 
13765
        aix_use_runtimelinking=no
 
13766
 
 
13767
        # Test if we are trying to use run time linking or normal
 
13768
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13769
        # need to do runtime linking.
 
13770
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13771
          for ld_flag in $LDFLAGS; do
 
13772
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13773
            aix_use_runtimelinking=yes
 
13774
            break
 
13775
          fi
 
13776
          done
 
13777
        esac
 
13778
 
 
13779
        exp_sym_flag='-bexport'
 
13780
        no_entry_flag='-bnoentry'
 
13781
      fi
 
13782
 
 
13783
      # When large executables or shared objects are built, AIX ld can
 
13784
      # have problems creating the table of contents.  If linking a library
 
13785
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13786
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13787
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13788
 
 
13789
      archive_cmds_F77=''
 
13790
      hardcode_direct_F77=yes
 
13791
      hardcode_libdir_separator_F77=':'
 
13792
      link_all_deplibs_F77=yes
 
13793
 
 
13794
      if test "$GCC" = yes; then
 
13795
        case $host_os in aix4.012|aix4.012.*)
 
13796
        # We only want to do this on AIX 4.2 and lower, the check
 
13797
        # below for broken collect2 doesn't work under 4.3+
 
13798
          collect2name=`${CC} -print-prog-name=collect2`
 
13799
          if test -f "$collect2name" && \
 
13800
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13801
          then
 
13802
          # We have reworked collect2
 
13803
          hardcode_direct_F77=yes
 
13804
          else
 
13805
          # We have old collect2
 
13806
          hardcode_direct_F77=unsupported
 
13807
          # It fails to find uninstalled libraries when the uninstalled
 
13808
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13809
          # to unsupported forces relinking
 
13810
          hardcode_minus_L_F77=yes
 
13811
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13812
          hardcode_libdir_separator_F77=
 
13813
          fi
 
13814
        esac
 
13815
        shared_flag='-shared'
 
13816
      else
 
13817
        # not using gcc
 
13818
        if test "$host_cpu" = ia64; then
 
13819
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13820
        # chokes on -Wl,-G. The following line is correct:
 
13821
          shared_flag='-G'
 
13822
        else
 
13823
        if test "$aix_use_runtimelinking" = yes; then
 
13824
            shared_flag='${wl}-G'
 
13825
          else
 
13826
            shared_flag='${wl}-bM:SRE'
 
13827
        fi
 
13828
        fi
 
13829
      fi
 
13830
 
 
13831
      # It seems that -bexpall does not export symbols beginning with
 
13832
      # underscore (_), so it is better to generate a list of symbols to export.
 
13833
      always_export_symbols_F77=yes
 
13834
      if test "$aix_use_runtimelinking" = yes; then
 
13835
        # Warning - without using the other runtime loading flags (-brtl),
 
13836
        # -berok will link without error, but may produce a broken library.
 
13837
        allow_undefined_flag_F77='-berok'
 
13838
       # Determine the default libpath from the value encoded in an empty executable.
 
13839
       cat >conftest.$ac_ext <<_ACEOF
 
13840
      program main
 
13841
 
 
13842
      end
 
13843
_ACEOF
 
13844
rm -f conftest.$ac_objext conftest$ac_exeext
 
13845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13846
  (eval $ac_link) 2>conftest.er1
 
13847
  ac_status=$?
 
13848
  grep -v '^ *+' conftest.er1 >conftest.err
 
13849
  rm -f conftest.er1
 
13850
  cat conftest.err >&5
 
13851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13852
  (exit $ac_status); } &&
 
13853
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13855
  (eval $ac_try) 2>&5
 
13856
  ac_status=$?
 
13857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13858
  (exit $ac_status); }; } &&
 
13859
         { ac_try='test -s conftest$ac_exeext'
 
13860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13861
  (eval $ac_try) 2>&5
 
13862
  ac_status=$?
 
13863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13864
  (exit $ac_status); }; }; then
 
13865
 
 
13866
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13867
}'`
 
13868
# Check for a 64-bit object if we didn't find anything.
 
13869
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; }
 
13870
}'`; fi
 
13871
else
 
13872
  echo "$as_me: failed program was:" >&5
 
13873
sed 's/^/| /' conftest.$ac_ext >&5
 
13874
 
 
13875
fi
 
13876
rm -f conftest.err conftest.$ac_objext \
 
13877
      conftest$ac_exeext conftest.$ac_ext
 
13878
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13879
 
 
13880
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13881
        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"
 
13882
       else
 
13883
        if test "$host_cpu" = ia64; then
 
13884
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13885
          allow_undefined_flag_F77="-z nodefs"
 
13886
          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"
 
13887
        else
 
13888
         # Determine the default libpath from the value encoded in an empty executable.
 
13889
         cat >conftest.$ac_ext <<_ACEOF
 
13890
      program main
 
13891
 
 
13892
      end
 
13893
_ACEOF
 
13894
rm -f conftest.$ac_objext conftest$ac_exeext
 
13895
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13896
  (eval $ac_link) 2>conftest.er1
 
13897
  ac_status=$?
 
13898
  grep -v '^ *+' conftest.er1 >conftest.err
 
13899
  rm -f conftest.er1
 
13900
  cat conftest.err >&5
 
13901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13902
  (exit $ac_status); } &&
 
13903
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13905
  (eval $ac_try) 2>&5
 
13906
  ac_status=$?
 
13907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13908
  (exit $ac_status); }; } &&
 
13909
         { ac_try='test -s conftest$ac_exeext'
 
13910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13911
  (eval $ac_try) 2>&5
 
13912
  ac_status=$?
 
13913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13914
  (exit $ac_status); }; }; then
 
13915
 
 
13916
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13917
}'`
 
13918
# Check for a 64-bit object if we didn't find anything.
 
13919
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; }
 
13920
}'`; fi
 
13921
else
 
13922
  echo "$as_me: failed program was:" >&5
 
13923
sed 's/^/| /' conftest.$ac_ext >&5
 
13924
 
 
13925
fi
 
13926
rm -f conftest.err conftest.$ac_objext \
 
13927
      conftest$ac_exeext conftest.$ac_ext
 
13928
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13929
 
 
13930
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13931
          # Warning - without using the other run time loading flags,
 
13932
          # -berok will link without error, but may produce a broken library.
 
13933
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13934
          allow_undefined_flag_F77=' ${wl}-berok'
 
13935
          # -bexpall does not export symbols beginning with underscore (_)
 
13936
          always_export_symbols_F77=yes
 
13937
          # Exported symbols can be pulled into shared objects from archives
 
13938
          whole_archive_flag_spec_F77=' '
 
13939
          archive_cmds_need_lc_F77=yes
 
13940
          # This is similar to how AIX traditionally builds it's shared libraries.
 
13941
          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'
 
13942
        fi
 
13943
      fi
 
13944
      ;;
 
13945
 
 
13946
    amigaos*)
 
13947
      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)'
 
13948
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13949
      hardcode_minus_L_F77=yes
 
13950
      # see comment about different semantics on the GNU ld section
 
13951
      ld_shlibs_F77=no
 
13952
      ;;
 
13953
 
 
13954
    bsdi4*)
 
13955
      export_dynamic_flag_spec_F77=-rdynamic
 
13956
      ;;
 
13957
 
 
13958
    cygwin* | mingw* | pw32*)
 
13959
      # When not using gcc, we currently assume that we are using
 
13960
      # Microsoft Visual C++.
 
13961
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13962
      # no search path for DLLs.
 
13963
      hardcode_libdir_flag_spec_F77=' '
 
13964
      allow_undefined_flag_F77=unsupported
 
13965
      # Tell ltmain to make .lib files, not .a files.
 
13966
      libext=lib
 
13967
      # Tell ltmain to make .dll files, not .so files.
 
13968
      shrext_cmds=".dll"
 
13969
      # FIXME: Setting linknames here is a bad hack.
 
13970
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13971
      # The linker will automatically build a .lib file if we build a DLL.
 
13972
      old_archive_From_new_cmds_F77='true'
 
13973
      # FIXME: Should let the user specify the lib program.
 
13974
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13975
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13976
      enable_shared_with_static_runtimes_F77=yes
 
13977
      ;;
 
13978
 
 
13979
    darwin* | rhapsody*)
 
13980
    if test "$GXX" = yes ; then
 
13981
      archive_cmds_need_lc_F77=no
 
13982
      case "$host_os" in
 
13983
      rhapsody* | darwin1.[012])
 
13984
        allow_undefined_flag_F77='-undefined suppress'
 
13985
        ;;
 
13986
      *) # Darwin 1.3 on
 
13987
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13988
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13989
      else
 
13990
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
13991
          10.[012])
 
13992
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13993
            ;;
 
13994
          10.*)
 
13995
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
13996
            ;;
 
13997
        esac
 
13998
      fi
 
13999
        ;;
 
14000
      esac
 
14001
        lt_int_apple_cc_single_mod=no
 
14002
        output_verbose_link_cmd='echo'
 
14003
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
14004
          lt_int_apple_cc_single_mod=yes
 
14005
        fi
 
14006
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14007
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14008
        else
 
14009
        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'
 
14010
      fi
 
14011
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14012
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14013
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14014
          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}'
 
14015
        else
 
14016
          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}'
 
14017
        fi
 
14018
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14019
      hardcode_direct_F77=no
 
14020
      hardcode_automatic_F77=yes
 
14021
      hardcode_shlibpath_var_F77=unsupported
 
14022
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14023
      link_all_deplibs_F77=yes
 
14024
    else
 
14025
      ld_shlibs_F77=no
 
14026
    fi
 
14027
      ;;
 
14028
 
 
14029
    dgux*)
 
14030
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14031
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14032
      hardcode_shlibpath_var_F77=no
 
14033
      ;;
 
14034
 
 
14035
    freebsd1*)
 
14036
      ld_shlibs_F77=no
 
14037
      ;;
 
14038
 
 
14039
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14040
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14041
    # does not break anything, and helps significantly (at the cost of a little
 
14042
    # extra space).
 
14043
    freebsd2.2*)
 
14044
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14045
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14046
      hardcode_direct_F77=yes
 
14047
      hardcode_shlibpath_var_F77=no
 
14048
      ;;
 
14049
 
 
14050
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14051
    freebsd2*)
 
14052
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14053
      hardcode_direct_F77=yes
 
14054
      hardcode_minus_L_F77=yes
 
14055
      hardcode_shlibpath_var_F77=no
 
14056
      ;;
 
14057
 
 
14058
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14059
    freebsd* | kfreebsd*-gnu)
 
14060
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14061
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14062
      hardcode_direct_F77=yes
 
14063
      hardcode_shlibpath_var_F77=no
 
14064
      ;;
 
14065
 
 
14066
    hpux9*)
 
14067
      if test "$GCC" = yes; then
 
14068
        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'
 
14069
      else
 
14070
        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'
 
14071
      fi
 
14072
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14073
      hardcode_libdir_separator_F77=:
 
14074
      hardcode_direct_F77=yes
 
14075
 
 
14076
      # hardcode_minus_L: Not really in the search PATH,
 
14077
      # but as the default location of the library.
 
14078
      hardcode_minus_L_F77=yes
 
14079
      export_dynamic_flag_spec_F77='${wl}-E'
 
14080
      ;;
 
14081
 
 
14082
    hpux10* | hpux11*)
 
14083
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14084
        case "$host_cpu" in
 
14085
        hppa*64*|ia64*)
 
14086
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14087
          ;;
 
14088
        *)
 
14089
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14090
          ;;
 
14091
        esac
 
14092
      else
 
14093
        case "$host_cpu" in
 
14094
        hppa*64*|ia64*)
 
14095
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14096
          ;;
 
14097
        *)
 
14098
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14099
          ;;
 
14100
        esac
 
14101
      fi
 
14102
      if test "$with_gnu_ld" = no; then
 
14103
        case "$host_cpu" in
 
14104
        hppa*64*)
 
14105
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14106
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14107
          hardcode_libdir_separator_F77=:
 
14108
          hardcode_direct_F77=no
 
14109
          hardcode_shlibpath_var_F77=no
 
14110
          ;;
 
14111
        ia64*)
 
14112
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14113
          hardcode_direct_F77=no
 
14114
          hardcode_shlibpath_var_F77=no
 
14115
 
 
14116
          # hardcode_minus_L: Not really in the search PATH,
 
14117
          # but as the default location of the library.
 
14118
          hardcode_minus_L_F77=yes
 
14119
          ;;
 
14120
        *)
 
14121
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14122
          hardcode_libdir_separator_F77=:
 
14123
          hardcode_direct_F77=yes
 
14124
          export_dynamic_flag_spec_F77='${wl}-E'
 
14125
 
 
14126
          # hardcode_minus_L: Not really in the search PATH,
 
14127
          # but as the default location of the library.
 
14128
          hardcode_minus_L_F77=yes
 
14129
          ;;
 
14130
        esac
 
14131
      fi
 
14132
      ;;
 
14133
 
 
14134
    irix5* | irix6* | nonstopux*)
 
14135
      if test "$GCC" = yes; then
 
14136
        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'
 
14137
      else
 
14138
        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'
 
14139
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14140
      fi
 
14141
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14142
      hardcode_libdir_separator_F77=:
 
14143
      link_all_deplibs_F77=yes
 
14144
      ;;
 
14145
 
 
14146
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14147
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14148
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14149
      else
 
14150
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14151
      fi
 
14152
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14153
      hardcode_direct_F77=yes
 
14154
      hardcode_shlibpath_var_F77=no
 
14155
      ;;
 
14156
 
 
14157
    newsos6)
 
14158
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14159
      hardcode_direct_F77=yes
 
14160
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14161
      hardcode_libdir_separator_F77=:
 
14162
      hardcode_shlibpath_var_F77=no
 
14163
      ;;
 
14164
 
 
14165
    openbsd*)
 
14166
      hardcode_direct_F77=yes
 
14167
      hardcode_shlibpath_var_F77=no
 
14168
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14169
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14170
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14171
        export_dynamic_flag_spec_F77='${wl}-E'
 
14172
      else
 
14173
       case $host_os in
 
14174
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14175
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14176
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14177
           ;;
 
14178
         *)
 
14179
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14180
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14181
           ;;
 
14182
       esac
 
14183
      fi
 
14184
      ;;
 
14185
 
 
14186
    os2*)
 
14187
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14188
      hardcode_minus_L_F77=yes
 
14189
      allow_undefined_flag_F77=unsupported
 
14190
      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'
 
14191
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14192
      ;;
 
14193
 
 
14194
    osf3*)
 
14195
      if test "$GCC" = yes; then
 
14196
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14197
        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'
 
14198
      else
 
14199
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14200
        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'
 
14201
      fi
 
14202
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14203
      hardcode_libdir_separator_F77=:
 
14204
      ;;
 
14205
 
 
14206
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14207
      if test "$GCC" = yes; then
 
14208
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14209
        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'
 
14210
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14211
      else
 
14212
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14213
        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'
 
14214
        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~
 
14215
        $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'
 
14216
 
 
14217
        # Both c and cxx compiler support -rpath directly
 
14218
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14219
      fi
 
14220
      hardcode_libdir_separator_F77=:
 
14221
      ;;
 
14222
 
 
14223
    sco3.2v5*)
 
14224
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14225
      hardcode_shlibpath_var_F77=no
 
14226
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14227
      runpath_var=LD_RUN_PATH
 
14228
      hardcode_runpath_var=yes
 
14229
      ;;
 
14230
 
 
14231
    solaris*)
 
14232
      no_undefined_flag_F77=' -z text'
 
14233
      if test "$GCC" = yes; then
 
14234
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14235
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14236
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14237
      else
 
14238
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14239
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14240
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14241
      fi
 
14242
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14243
      hardcode_shlibpath_var_F77=no
 
14244
      case $host_os in
 
14245
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14246
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14247
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14248
      esac
 
14249
      link_all_deplibs_F77=yes
 
14250
      ;;
 
14251
 
 
14252
    sunos4*)
 
14253
      if test "x$host_vendor" = xsequent; then
 
14254
        # Use $CC to link under sequent, because it throws in some extra .o
 
14255
        # files that make .init and .fini sections work.
 
14256
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14257
      else
 
14258
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14259
      fi
 
14260
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14261
      hardcode_direct_F77=yes
 
14262
      hardcode_minus_L_F77=yes
 
14263
      hardcode_shlibpath_var_F77=no
 
14264
      ;;
 
14265
 
 
14266
    sysv4)
 
14267
      case $host_vendor in
 
14268
        sni)
 
14269
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14270
          hardcode_direct_F77=yes # is this really true???
 
14271
        ;;
 
14272
        siemens)
 
14273
          ## LD is ld it makes a PLAMLIB
 
14274
          ## CC just makes a GrossModule.
 
14275
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14276
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14277
          hardcode_direct_F77=no
 
14278
        ;;
 
14279
        motorola)
 
14280
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14281
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14282
        ;;
 
14283
      esac
 
14284
      runpath_var='LD_RUN_PATH'
 
14285
      hardcode_shlibpath_var_F77=no
 
14286
      ;;
 
14287
 
 
14288
    sysv4.3*)
 
14289
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14290
      hardcode_shlibpath_var_F77=no
 
14291
      export_dynamic_flag_spec_F77='-Bexport'
 
14292
      ;;
 
14293
 
 
14294
    sysv4*MP*)
 
14295
      if test -d /usr/nec; then
 
14296
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14297
        hardcode_shlibpath_var_F77=no
 
14298
        runpath_var=LD_RUN_PATH
 
14299
        hardcode_runpath_var=yes
 
14300
        ld_shlibs_F77=yes
 
14301
      fi
 
14302
      ;;
 
14303
 
 
14304
    sysv4.2uw2*)
 
14305
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14306
      hardcode_direct_F77=yes
 
14307
      hardcode_minus_L_F77=no
 
14308
      hardcode_shlibpath_var_F77=no
 
14309
      hardcode_runpath_var=yes
 
14310
      runpath_var=LD_RUN_PATH
 
14311
      ;;
 
14312
 
 
14313
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14314
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14315
      if test "$GCC" = yes; then
 
14316
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14317
      else
 
14318
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14319
      fi
 
14320
      runpath_var='LD_RUN_PATH'
 
14321
      hardcode_shlibpath_var_F77=no
 
14322
      ;;
 
14323
 
 
14324
    sysv5*)
 
14325
      no_undefined_flag_F77=' -z text'
 
14326
      # $CC -shared without GNU ld will not create a library from C++
 
14327
      # object files and a static libstdc++, better avoid it by now
 
14328
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14329
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14330
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14331
      hardcode_libdir_flag_spec_F77=
 
14332
      hardcode_shlibpath_var_F77=no
 
14333
      runpath_var='LD_RUN_PATH'
 
14334
      ;;
 
14335
 
 
14336
    uts4*)
 
14337
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14338
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14339
      hardcode_shlibpath_var_F77=no
 
14340
      ;;
 
14341
 
 
14342
    *)
 
14343
      ld_shlibs_F77=no
 
14344
      ;;
 
14345
    esac
 
14346
  fi
 
14347
 
 
14348
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14349
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14350
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14351
 
 
14352
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14353
if test "$GCC" = yes; then
 
14354
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14355
fi
 
14356
 
 
14357
#
 
14358
# Do we need to explicitly link libc?
 
14359
#
 
14360
case "x$archive_cmds_need_lc_F77" in
 
14361
x|xyes)
 
14362
  # Assume -lc should be added
 
14363
  archive_cmds_need_lc_F77=yes
 
14364
 
 
14365
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14366
    case $archive_cmds_F77 in
 
14367
    *'~'*)
 
14368
      # FIXME: we may have to deal with multi-command sequences.
 
14369
      ;;
 
14370
    '$CC '*)
 
14371
      # Test whether the compiler implicitly links with -lc since on some
 
14372
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14373
      # to ld, don't add -lc before -lgcc.
 
14374
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14375
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14376
      $rm conftest*
 
14377
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14378
 
 
14379
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14380
  (eval $ac_compile) 2>&5
 
14381
  ac_status=$?
 
14382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14383
  (exit $ac_status); } 2>conftest.err; then
 
14384
        soname=conftest
 
14385
        lib=conftest
 
14386
        libobjs=conftest.$ac_objext
 
14387
        deplibs=
 
14388
        wl=$lt_prog_compiler_wl_F77
 
14389
        compiler_flags=-v
 
14390
        linker_flags=-v
 
14391
        verstring=
 
14392
        output_objdir=.
 
14393
        libname=conftest
 
14394
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14395
        allow_undefined_flag_F77=
 
14396
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14397
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14398
  ac_status=$?
 
14399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14400
  (exit $ac_status); }
 
14401
        then
 
14402
          archive_cmds_need_lc_F77=no
 
14403
        else
 
14404
          archive_cmds_need_lc_F77=yes
 
14405
        fi
 
14406
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14407
      else
 
14408
        cat conftest.err 1>&5
 
14409
      fi
 
14410
      $rm conftest*
 
14411
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14412
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14413
      ;;
 
14414
    esac
 
14415
  fi
 
14416
  ;;
 
14417
esac
 
14418
 
 
14419
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14420
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14421
library_names_spec=
 
14422
libname_spec='lib$name'
 
14423
soname_spec=
 
14424
shrext_cmds=".so"
 
14425
postinstall_cmds=
 
14426
postuninstall_cmds=
 
14427
finish_cmds=
 
14428
finish_eval=
 
14429
shlibpath_var=
 
14430
shlibpath_overrides_runpath=unknown
 
14431
version_type=none
 
14432
dynamic_linker="$host_os ld.so"
 
14433
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14434
if test "$GCC" = yes; then
 
14435
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14436
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14437
    # if the path contains ";" then we assume it to be the separator
 
14438
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14439
    # assumed that no part of a normal pathname contains ";" but that should
 
14440
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14441
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14442
  else
 
14443
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14444
  fi
 
14445
else
 
14446
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14447
fi
 
14448
need_lib_prefix=unknown
 
14449
hardcode_into_libs=no
 
14450
 
 
14451
# when you set need_version to no, make sure it does not cause -set_version
 
14452
# flags to be left without arguments
 
14453
need_version=unknown
 
14454
 
 
14455
case $host_os in
 
14456
aix3*)
 
14457
  version_type=linux
 
14458
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14459
  shlibpath_var=LIBPATH
 
14460
 
 
14461
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14462
  soname_spec='${libname}${release}${shared_ext}$major'
 
14463
  ;;
 
14464
 
 
14465
aix4* | aix5*)
 
14466
  version_type=linux
 
14467
  need_lib_prefix=no
 
14468
  need_version=no
 
14469
  hardcode_into_libs=yes
 
14470
  if test "$host_cpu" = ia64; then
 
14471
    # AIX 5 supports IA64
 
14472
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14473
    shlibpath_var=LD_LIBRARY_PATH
 
14474
  else
 
14475
    # With GCC up to 2.95.x, collect2 would create an import file
 
14476
    # for dependence libraries.  The import file would start with
 
14477
    # the line `#! .'.  This would cause the generated library to
 
14478
    # depend on `.', always an invalid library.  This was fixed in
 
14479
    # development snapshots of GCC prior to 3.0.
 
14480
    case $host_os in
 
14481
      aix4 | aix4.[01] | aix4.[01].*)
 
14482
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14483
           echo ' yes '
 
14484
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14485
        :
 
14486
      else
 
14487
        can_build_shared=no
 
14488
      fi
 
14489
      ;;
 
14490
    esac
 
14491
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14492
    # soname into executable. Probably we can add versioning support to
 
14493
    # collect2, so additional links can be useful in future.
 
14494
    if test "$aix_use_runtimelinking" = yes; then
 
14495
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14496
      # instead of lib<name>.a to let people know that these are not
 
14497
      # typical AIX shared libraries.
 
14498
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14499
    else
 
14500
      # We preserve .a as extension for shared libraries through AIX4.2
 
14501
      # and later when we are not doing run time linking.
 
14502
      library_names_spec='${libname}${release}.a $libname.a'
 
14503
      soname_spec='${libname}${release}${shared_ext}$major'
 
14504
    fi
 
14505
    shlibpath_var=LIBPATH
 
14506
  fi
 
14507
  ;;
 
14508
 
 
14509
amigaos*)
 
14510
  library_names_spec='$libname.ixlibrary $libname.a'
 
14511
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14512
  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'
 
14513
  ;;
 
14514
 
 
14515
beos*)
 
14516
  library_names_spec='${libname}${shared_ext}'
 
14517
  dynamic_linker="$host_os ld.so"
 
14518
  shlibpath_var=LIBRARY_PATH
 
14519
  ;;
 
14520
 
 
14521
bsdi4*)
 
14522
  version_type=linux
 
14523
  need_version=no
 
14524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14525
  soname_spec='${libname}${release}${shared_ext}$major'
 
14526
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14527
  shlibpath_var=LD_LIBRARY_PATH
 
14528
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14529
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14530
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14531
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14532
  # libtool to hard-code these into programs
 
14533
  ;;
 
14534
 
 
14535
cygwin* | mingw* | pw32*)
 
14536
  version_type=windows
 
14537
  shrext_cmds=".dll"
 
14538
  need_version=no
 
14539
  need_lib_prefix=no
 
14540
 
 
14541
  case $GCC,$host_os in
 
14542
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14543
    library_names_spec='$libname.dll.a'
 
14544
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14545
    postinstall_cmds='base_file=`basename \${file}`~
 
14546
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14547
      dldir=$destdir/`dirname \$dlpath`~
 
14548
      test -d \$dldir || mkdir -p \$dldir~
 
14549
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14550
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14551
      dlpath=$dir/\$dldll~
 
14552
       $rm \$dlpath'
 
14553
    shlibpath_overrides_runpath=yes
 
14554
 
 
14555
    case $host_os in
 
14556
    cygwin*)
 
14557
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14558
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14559
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14560
      ;;
 
14561
    mingw*)
 
14562
      # MinGW DLLs use traditional 'lib' prefix
 
14563
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14564
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14565
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14566
        # It is most probably a Windows format PATH printed by
 
14567
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14568
        # path with ; separators, and with drive letters. We can handle the
 
14569
        # drive letters (cygwin fileutils understands them), so leave them,
 
14570
        # especially as we might pass files found there to a mingw objdump,
 
14571
        # which wouldn't understand a cygwinified path. Ahh.
 
14572
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14573
      else
 
14574
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14575
      fi
 
14576
      ;;
 
14577
    pw32*)
 
14578
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14579
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14580
      ;;
 
14581
    esac
 
14582
    ;;
 
14583
 
 
14584
  *)
 
14585
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14586
    ;;
 
14587
  esac
 
14588
  dynamic_linker='Win32 ld.exe'
 
14589
  # FIXME: first we should search . and the directory the executable is in
 
14590
  shlibpath_var=PATH
 
14591
  ;;
 
14592
 
 
14593
darwin* | rhapsody*)
 
14594
  dynamic_linker="$host_os dyld"
 
14595
  version_type=darwin
 
14596
  need_lib_prefix=no
 
14597
  need_version=no
 
14598
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14599
  soname_spec='${libname}${release}${major}$shared_ext'
 
14600
  shlibpath_overrides_runpath=yes
 
14601
  shlibpath_var=DYLD_LIBRARY_PATH
 
14602
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14603
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14604
  if test "$GCC" = yes; then
 
14605
    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"`
 
14606
  else
 
14607
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14608
  fi
 
14609
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14610
  ;;
 
14611
 
 
14612
dgux*)
 
14613
  version_type=linux
 
14614
  need_lib_prefix=no
 
14615
  need_version=no
 
14616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14617
  soname_spec='${libname}${release}${shared_ext}$major'
 
14618
  shlibpath_var=LD_LIBRARY_PATH
 
14619
  ;;
 
14620
 
 
14621
freebsd1*)
 
14622
  dynamic_linker=no
 
14623
  ;;
 
14624
 
 
14625
kfreebsd*-gnu)
 
14626
  version_type=linux
 
14627
  need_lib_prefix=no
 
14628
  need_version=no
 
14629
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14630
  soname_spec='${libname}${release}${shared_ext}$major'
 
14631
  shlibpath_var=LD_LIBRARY_PATH
 
14632
  shlibpath_overrides_runpath=no
 
14633
  hardcode_into_libs=yes
 
14634
  dynamic_linker='GNU ld.so'
 
14635
  ;;
 
14636
 
 
14637
freebsd*)
 
14638
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14639
  version_type=freebsd-$objformat
 
14640
  case $version_type in
 
14641
    freebsd-elf*)
 
14642
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14643
      need_version=no
 
14644
      need_lib_prefix=no
 
14645
      ;;
 
14646
    freebsd-*)
 
14647
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14648
      need_version=yes
 
14649
      ;;
 
14650
  esac
 
14651
  shlibpath_var=LD_LIBRARY_PATH
 
14652
  case $host_os in
 
14653
  freebsd2*)
 
14654
    shlibpath_overrides_runpath=yes
 
14655
    ;;
 
14656
  freebsd3.01* | freebsdelf3.01*)
 
14657
    shlibpath_overrides_runpath=yes
 
14658
    hardcode_into_libs=yes
 
14659
    ;;
 
14660
  *) # from 3.2 on
 
14661
    shlibpath_overrides_runpath=no
 
14662
    hardcode_into_libs=yes
 
14663
    ;;
 
14664
  esac
 
14665
  ;;
 
14666
 
 
14667
gnu*)
 
14668
  version_type=linux
 
14669
  need_lib_prefix=no
 
14670
  need_version=no
 
14671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14672
  soname_spec='${libname}${release}${shared_ext}$major'
 
14673
  shlibpath_var=LD_LIBRARY_PATH
 
14674
  hardcode_into_libs=yes
 
14675
  ;;
 
14676
 
 
14677
hpux9* | hpux10* | hpux11*)
 
14678
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14679
  # link against other versions.
 
14680
  version_type=sunos
 
14681
  need_lib_prefix=no
 
14682
  need_version=no
 
14683
  case "$host_cpu" in
 
14684
  ia64*)
 
14685
    shrext_cmds='.so'
 
14686
    hardcode_into_libs=yes
 
14687
    dynamic_linker="$host_os dld.so"
 
14688
    shlibpath_var=LD_LIBRARY_PATH
 
14689
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14690
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14691
    soname_spec='${libname}${release}${shared_ext}$major'
 
14692
    if test "X$HPUX_IA64_MODE" = X32; then
 
14693
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14694
    else
 
14695
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14696
    fi
 
14697
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14698
    ;;
 
14699
   hppa*64*)
 
14700
     shrext_cmds='.sl'
 
14701
     hardcode_into_libs=yes
 
14702
     dynamic_linker="$host_os dld.sl"
 
14703
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14704
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14705
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14706
     soname_spec='${libname}${release}${shared_ext}$major'
 
14707
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14708
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14709
     ;;
 
14710
   *)
 
14711
    shrext_cmds='.sl'
 
14712
    dynamic_linker="$host_os dld.sl"
 
14713
    shlibpath_var=SHLIB_PATH
 
14714
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14715
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14716
    soname_spec='${libname}${release}${shared_ext}$major'
 
14717
    ;;
 
14718
  esac
 
14719
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14720
  postinstall_cmds='chmod 555 $lib'
 
14721
  ;;
 
14722
 
 
14723
irix5* | irix6* | nonstopux*)
 
14724
  case $host_os in
 
14725
    nonstopux*) version_type=nonstopux ;;
 
14726
    *)
 
14727
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14728
                version_type=linux
 
14729
        else
 
14730
                version_type=irix
 
14731
        fi ;;
 
14732
  esac
 
14733
  need_lib_prefix=no
 
14734
  need_version=no
 
14735
  soname_spec='${libname}${release}${shared_ext}$major'
 
14736
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14737
  case $host_os in
 
14738
  irix5* | nonstopux*)
 
14739
    libsuff= shlibsuff=
 
14740
    ;;
 
14741
  *)
 
14742
    case $LD in # libtool.m4 will add one of these switches to LD
 
14743
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14744
      libsuff= shlibsuff= libmagic=32-bit;;
 
14745
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14746
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14747
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14748
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14749
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14750
    esac
 
14751
    ;;
 
14752
  esac
 
14753
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14754
  shlibpath_overrides_runpath=no
 
14755
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14756
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14757
  hardcode_into_libs=yes
 
14758
  ;;
 
14759
 
 
14760
# No shared lib support for Linux oldld, aout, or coff.
 
14761
linux*oldld* | linux*aout* | linux*coff*)
 
14762
  dynamic_linker=no
 
14763
  ;;
 
14764
 
 
14765
# This must be Linux ELF.
 
14766
linux*)
 
14767
  version_type=linux
 
14768
  need_lib_prefix=no
 
14769
  need_version=no
 
14770
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14771
  soname_spec='${libname}${release}${shared_ext}$major'
 
14772
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14773
  shlibpath_var=LD_LIBRARY_PATH
 
14774
  shlibpath_overrides_runpath=no
 
14775
  # This implies no fast_install, which is unacceptable.
 
14776
  # Some rework will be needed to allow for fast_install
 
14777
  # before this can be enabled.
 
14778
  hardcode_into_libs=yes
 
14779
 
 
14780
  # Append ld.so.conf contents to the search path
 
14781
  if test -f /etc/ld.so.conf; then
 
14782
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
14783
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14784
  fi
 
14785
 
 
14786
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14787
  # powerpc, because MkLinux only supported shared libraries with the
 
14788
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14789
  # most powerpc-linux boxes support dynamic linking these days and
 
14790
  # people can always --disable-shared, the test was removed, and we
 
14791
  # assume the GNU/Linux dynamic linker is in use.
 
14792
  dynamic_linker='GNU/Linux ld.so'
 
14793
  ;;
 
14794
 
 
14795
netbsdelf*-gnu)
 
14796
  version_type=linux
 
14797
  need_lib_prefix=no
 
14798
  need_version=no
 
14799
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14800
  soname_spec='${libname}${release}${shared_ext}$major'
 
14801
  shlibpath_var=LD_LIBRARY_PATH
 
14802
  shlibpath_overrides_runpath=no
 
14803
  hardcode_into_libs=yes
 
14804
  dynamic_linker='NetBSD ld.elf_so'
 
14805
  ;;
 
14806
 
 
14807
knetbsd*-gnu)
 
14808
  version_type=linux
 
14809
  need_lib_prefix=no
 
14810
  need_version=no
 
14811
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14812
  soname_spec='${libname}${release}${shared_ext}$major'
 
14813
  shlibpath_var=LD_LIBRARY_PATH
 
14814
  shlibpath_overrides_runpath=no
 
14815
  hardcode_into_libs=yes
 
14816
  dynamic_linker='GNU ld.so'
 
14817
  ;;
 
14818
 
 
14819
netbsd*)
 
14820
  version_type=sunos
 
14821
  need_lib_prefix=no
 
14822
  need_version=no
 
14823
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14824
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14825
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14826
    dynamic_linker='NetBSD (a.out) ld.so'
 
14827
  else
 
14828
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14829
    soname_spec='${libname}${release}${shared_ext}$major'
 
14830
    dynamic_linker='NetBSD ld.elf_so'
 
14831
  fi
 
14832
  shlibpath_var=LD_LIBRARY_PATH
 
14833
  shlibpath_overrides_runpath=yes
 
14834
  hardcode_into_libs=yes
 
14835
  ;;
 
14836
 
 
14837
newsos6)
 
14838
  version_type=linux
 
14839
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14840
  shlibpath_var=LD_LIBRARY_PATH
 
14841
  shlibpath_overrides_runpath=yes
 
14842
  ;;
 
14843
 
 
14844
nto-qnx*)
 
14845
  version_type=linux
 
14846
  need_lib_prefix=no
 
14847
  need_version=no
 
14848
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14849
  soname_spec='${libname}${release}${shared_ext}$major'
 
14850
  shlibpath_var=LD_LIBRARY_PATH
 
14851
  shlibpath_overrides_runpath=yes
 
14852
  ;;
 
14853
 
 
14854
openbsd*)
 
14855
  version_type=sunos
 
14856
  need_lib_prefix=no
 
14857
  need_version=yes
 
14858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14859
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14860
  shlibpath_var=LD_LIBRARY_PATH
 
14861
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14862
    case $host_os in
 
14863
      openbsd2.[89] | openbsd2.[89].*)
 
14864
        shlibpath_overrides_runpath=no
 
14865
        ;;
 
14866
      *)
 
14867
        shlibpath_overrides_runpath=yes
 
14868
        ;;
 
14869
      esac
 
14870
  else
 
14871
    shlibpath_overrides_runpath=yes
 
14872
  fi
 
14873
  ;;
 
14874
 
 
14875
os2*)
 
14876
  libname_spec='$name'
 
14877
  shrext_cmds=".dll"
 
14878
  need_lib_prefix=no
 
14879
  library_names_spec='$libname${shared_ext} $libname.a'
 
14880
  dynamic_linker='OS/2 ld.exe'
 
14881
  shlibpath_var=LIBPATH
 
14882
  ;;
 
14883
 
 
14884
osf3* | osf4* | osf5*)
 
14885
  version_type=osf
 
14886
  need_lib_prefix=no
 
14887
  need_version=no
 
14888
  soname_spec='${libname}${release}${shared_ext}$major'
 
14889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14890
  shlibpath_var=LD_LIBRARY_PATH
 
14891
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14892
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14893
  ;;
 
14894
 
 
14895
sco3.2v5*)
 
14896
  version_type=osf
 
14897
  soname_spec='${libname}${release}${shared_ext}$major'
 
14898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14899
  shlibpath_var=LD_LIBRARY_PATH
 
14900
  ;;
 
14901
 
 
14902
solaris*)
 
14903
  version_type=linux
 
14904
  need_lib_prefix=no
 
14905
  need_version=no
 
14906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14907
  soname_spec='${libname}${release}${shared_ext}$major'
 
14908
  shlibpath_var=LD_LIBRARY_PATH
 
14909
  shlibpath_overrides_runpath=yes
 
14910
  hardcode_into_libs=yes
 
14911
  # ldd complains unless libraries are executable
 
14912
  postinstall_cmds='chmod +x $lib'
 
14913
  ;;
 
14914
 
 
14915
sunos4*)
 
14916
  version_type=sunos
 
14917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14918
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14919
  shlibpath_var=LD_LIBRARY_PATH
 
14920
  shlibpath_overrides_runpath=yes
 
14921
  if test "$with_gnu_ld" = yes; then
 
14922
    need_lib_prefix=no
 
14923
  fi
 
14924
  need_version=yes
 
14925
  ;;
 
14926
 
 
14927
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14928
  version_type=linux
 
14929
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14930
  soname_spec='${libname}${release}${shared_ext}$major'
 
14931
  shlibpath_var=LD_LIBRARY_PATH
 
14932
  case $host_vendor in
 
14933
    sni)
 
14934
      shlibpath_overrides_runpath=no
 
14935
      need_lib_prefix=no
 
14936
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14937
      runpath_var=LD_RUN_PATH
 
14938
      ;;
 
14939
    siemens)
 
14940
      need_lib_prefix=no
 
14941
      ;;
 
14942
    motorola)
 
14943
      need_lib_prefix=no
 
14944
      need_version=no
 
14945
      shlibpath_overrides_runpath=no
 
14946
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14947
      ;;
 
14948
  esac
 
14949
  ;;
 
14950
 
 
14951
sysv4*MP*)
 
14952
  if test -d /usr/nec ;then
 
14953
    version_type=linux
 
14954
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14955
    soname_spec='$libname${shared_ext}.$major'
 
14956
    shlibpath_var=LD_LIBRARY_PATH
 
14957
  fi
 
14958
  ;;
 
14959
 
 
14960
uts4*)
 
14961
  version_type=linux
 
14962
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14963
  soname_spec='${libname}${release}${shared_ext}$major'
 
14964
  shlibpath_var=LD_LIBRARY_PATH
 
14965
  ;;
 
14966
 
 
14967
*)
 
14968
  dynamic_linker=no
 
14969
  ;;
 
14970
esac
 
14971
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14972
echo "${ECHO_T}$dynamic_linker" >&6
 
14973
test "$dynamic_linker" = no && can_build_shared=no
 
14974
 
 
14975
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14976
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14977
hardcode_action_F77=
 
14978
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14979
   test -n "$runpath_var F77" || \
 
14980
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
14981
 
 
14982
  # We can hardcode non-existant directories.
 
14983
  if test "$hardcode_direct_F77" != no &&
 
14984
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14985
     # have to relink, otherwise we might link with an installed library
 
14986
     # when we should be linking with a yet-to-be-installed one
 
14987
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
14988
     test "$hardcode_minus_L_F77" != no; then
 
14989
    # Linking always hardcodes the temporary library directory.
 
14990
    hardcode_action_F77=relink
 
14991
  else
 
14992
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14993
    hardcode_action_F77=immediate
 
14994
  fi
 
14995
else
 
14996
  # We cannot hardcode anything, or else we can only hardcode existing
 
14997
  # directories.
 
14998
  hardcode_action_F77=unsupported
 
14999
fi
 
15000
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15001
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15002
 
 
15003
if test "$hardcode_action_F77" = relink; then
 
15004
  # Fast installation is not supported
 
15005
  enable_fast_install=no
 
15006
elif test "$shlibpath_overrides_runpath" = yes ||
 
15007
     test "$enable_shared" = no; then
 
15008
  # Fast installation is not necessary
 
15009
  enable_fast_install=needless
 
15010
fi
 
15011
 
 
15012
striplib=
 
15013
old_striplib=
 
15014
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15015
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15016
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15017
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15018
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15019
  echo "$as_me:$LINENO: result: yes" >&5
 
15020
echo "${ECHO_T}yes" >&6
 
15021
else
 
15022
# FIXME - insert some real tests, host_os isn't really good enough
 
15023
  case $host_os in
 
15024
   darwin*)
 
15025
       if test -n "$STRIP" ; then
 
15026
         striplib="$STRIP -x"
 
15027
         echo "$as_me:$LINENO: result: yes" >&5
 
15028
echo "${ECHO_T}yes" >&6
 
15029
       else
 
15030
  echo "$as_me:$LINENO: result: no" >&5
 
15031
echo "${ECHO_T}no" >&6
 
15032
fi
 
15033
       ;;
 
15034
   *)
 
15035
  echo "$as_me:$LINENO: result: no" >&5
 
15036
echo "${ECHO_T}no" >&6
 
15037
    ;;
 
15038
  esac
 
15039
fi
 
15040
 
 
15041
 
 
15042
 
 
15043
# The else clause should only fire when bootstrapping the
 
15044
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15045
# with your package, and you will get complaints that there are
 
15046
# no rules to generate ltmain.sh.
 
15047
if test -f "$ltmain"; then
 
15048
  # See if we are running on zsh, and set the options which allow our commands through
 
15049
  # without removal of \ escapes.
 
15050
  if test -n "${ZSH_VERSION+set}" ; then
 
15051
    setopt NO_GLOB_SUBST
 
15052
  fi
 
15053
  # Now quote all the things that may contain metacharacters while being
 
15054
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15055
  # variables and quote the copies for generation of the libtool script.
 
15056
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15057
    SED SHELL STRIP \
 
15058
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15059
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15060
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15061
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15062
    lt_cv_sys_global_symbol_to_c_name_address \
 
15063
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15064
    old_postinstall_cmds old_postuninstall_cmds \
 
15065
    compiler_F77 \
 
15066
    CC_F77 \
 
15067
    LD_F77 \
 
15068
    lt_prog_compiler_wl_F77 \
 
15069
    lt_prog_compiler_pic_F77 \
 
15070
    lt_prog_compiler_static_F77 \
 
15071
    lt_prog_compiler_no_builtin_flag_F77 \
 
15072
    export_dynamic_flag_spec_F77 \
 
15073
    thread_safe_flag_spec_F77 \
 
15074
    whole_archive_flag_spec_F77 \
 
15075
    enable_shared_with_static_runtimes_F77 \
 
15076
    old_archive_cmds_F77 \
 
15077
    old_archive_from_new_cmds_F77 \
 
15078
    predep_objects_F77 \
 
15079
    postdep_objects_F77 \
 
15080
    predeps_F77 \
 
15081
    postdeps_F77 \
 
15082
    compiler_lib_search_path_F77 \
 
15083
    archive_cmds_F77 \
 
15084
    archive_expsym_cmds_F77 \
 
15085
    postinstall_cmds_F77 \
 
15086
    postuninstall_cmds_F77 \
 
15087
    old_archive_from_expsyms_cmds_F77 \
 
15088
    allow_undefined_flag_F77 \
 
15089
    no_undefined_flag_F77 \
 
15090
    export_symbols_cmds_F77 \
 
15091
    hardcode_libdir_flag_spec_F77 \
 
15092
    hardcode_libdir_flag_spec_ld_F77 \
 
15093
    hardcode_libdir_separator_F77 \
 
15094
    hardcode_automatic_F77 \
 
15095
    module_cmds_F77 \
 
15096
    module_expsym_cmds_F77 \
 
15097
    lt_cv_prog_compiler_c_o_F77 \
 
15098
    exclude_expsyms_F77 \
 
15099
    include_expsyms_F77; do
 
15100
 
 
15101
    case $var in
 
15102
    old_archive_cmds_F77 | \
 
15103
    old_archive_from_new_cmds_F77 | \
 
15104
    archive_cmds_F77 | \
 
15105
    archive_expsym_cmds_F77 | \
 
15106
    module_cmds_F77 | \
 
15107
    module_expsym_cmds_F77 | \
 
15108
    old_archive_from_expsyms_cmds_F77 | \
 
15109
    export_symbols_cmds_F77 | \
 
15110
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15111
    postinstall_cmds | postuninstall_cmds | \
 
15112
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15113
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15114
      # Double-quote double-evaled strings.
 
15115
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15116
      ;;
 
15117
    *)
 
15118
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15119
      ;;
 
15120
    esac
 
15121
  done
 
15122
 
 
15123
  case $lt_echo in
 
15124
  *'\$0 --fallback-echo"')
 
15125
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15126
    ;;
 
15127
  esac
 
15128
 
 
15129
cfgfile="$ofile"
 
15130
 
 
15131
  cat <<__EOF__ >> "$cfgfile"
 
15132
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15133
 
 
15134
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15135
 
 
15136
# Shell to use when invoking shell scripts.
 
15137
SHELL=$lt_SHELL
 
15138
 
 
15139
# Whether or not to build shared libraries.
 
15140
build_libtool_libs=$enable_shared
 
15141
 
 
15142
# Whether or not to build static libraries.
 
15143
build_old_libs=$enable_static
 
15144
 
 
15145
# Whether or not to add -lc for building shared libraries.
 
15146
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15147
 
 
15148
# Whether or not to disallow shared libs when runtime libs are static
 
15149
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15150
 
 
15151
# Whether or not to optimize for fast installation.
 
15152
fast_install=$enable_fast_install
 
15153
 
 
15154
# The host system.
 
15155
host_alias=$host_alias
 
15156
host=$host
 
15157
 
 
15158
# An echo program that does not interpret backslashes.
 
15159
echo=$lt_echo
 
15160
 
 
15161
# The archiver.
 
15162
AR=$lt_AR
 
15163
AR_FLAGS=$lt_AR_FLAGS
 
15164
 
 
15165
# A C compiler.
 
15166
LTCC=$lt_LTCC
 
15167
 
 
15168
# A language-specific compiler.
 
15169
CC=$lt_compiler_F77
 
15170
 
 
15171
# Is the compiler the GNU C compiler?
 
15172
with_gcc=$GCC_F77
 
15173
 
 
15174
# An ERE matcher.
 
15175
EGREP=$lt_EGREP
 
15176
 
 
15177
# The linker used to build libraries.
 
15178
LD=$lt_LD_F77
 
15179
 
 
15180
# Whether we need hard or soft links.
 
15181
LN_S=$lt_LN_S
 
15182
 
 
15183
# A BSD-compatible nm program.
 
15184
NM=$lt_NM
 
15185
 
 
15186
# A symbol stripping program
 
15187
STRIP=$lt_STRIP
 
15188
 
 
15189
# Used to examine libraries when file_magic_cmd begins "file"
 
15190
MAGIC_CMD=$MAGIC_CMD
 
15191
 
 
15192
# Used on cygwin: DLL creation program.
 
15193
DLLTOOL="$DLLTOOL"
 
15194
 
 
15195
# Used on cygwin: object dumper.
 
15196
OBJDUMP="$OBJDUMP"
 
15197
 
 
15198
# Used on cygwin: assembler.
 
15199
AS="$AS"
 
15200
 
 
15201
# The name of the directory that contains temporary libtool files.
 
15202
objdir=$objdir
 
15203
 
 
15204
# How to create reloadable object files.
 
15205
reload_flag=$lt_reload_flag
 
15206
reload_cmds=$lt_reload_cmds
 
15207
 
 
15208
# How to pass a linker flag through the compiler.
 
15209
wl=$lt_lt_prog_compiler_wl_F77
 
15210
 
 
15211
# Object file suffix (normally "o").
 
15212
objext="$ac_objext"
 
15213
 
 
15214
# Old archive suffix (normally "a").
 
15215
libext="$libext"
 
15216
 
 
15217
# Shared library suffix (normally ".so").
 
15218
shrext_cmds='$shrext_cmds'
 
15219
 
 
15220
# Executable file suffix (normally "").
 
15221
exeext="$exeext"
 
15222
 
 
15223
# Additional compiler flags for building library objects.
 
15224
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15225
pic_mode=$pic_mode
 
15226
 
 
15227
# What is the maximum length of a command?
 
15228
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15229
 
 
15230
# Does compiler simultaneously support -c and -o options?
 
15231
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15232
 
 
15233
# Must we lock files when doing compilation ?
 
15234
need_locks=$lt_need_locks
 
15235
 
 
15236
# Do we need the lib prefix for modules?
 
15237
need_lib_prefix=$need_lib_prefix
 
15238
 
 
15239
# Do we need a version for libraries?
 
15240
need_version=$need_version
 
15241
 
 
15242
# Whether dlopen is supported.
 
15243
dlopen_support=$enable_dlopen
 
15244
 
 
15245
# Whether dlopen of programs is supported.
 
15246
dlopen_self=$enable_dlopen_self
 
15247
 
 
15248
# Whether dlopen of statically linked programs is supported.
 
15249
dlopen_self_static=$enable_dlopen_self_static
 
15250
 
 
15251
# Compiler flag to prevent dynamic linking.
 
15252
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15253
 
 
15254
# Compiler flag to turn off builtin functions.
 
15255
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15256
 
 
15257
# Compiler flag to allow reflexive dlopens.
 
15258
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15259
 
 
15260
# Compiler flag to generate shared objects directly from archives.
 
15261
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15262
 
 
15263
# Compiler flag to generate thread-safe objects.
 
15264
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15265
 
 
15266
# Library versioning type.
 
15267
version_type=$version_type
 
15268
 
 
15269
# Format of library name prefix.
 
15270
libname_spec=$lt_libname_spec
 
15271
 
 
15272
# List of archive names.  First name is the real one, the rest are links.
 
15273
# The last name is the one that the linker finds with -lNAME.
 
15274
library_names_spec=$lt_library_names_spec
 
15275
 
 
15276
# The coded name of the library, if different from the real name.
 
15277
soname_spec=$lt_soname_spec
 
15278
 
 
15279
# Commands used to build and install an old-style archive.
 
15280
RANLIB=$lt_RANLIB
 
15281
old_archive_cmds=$lt_old_archive_cmds_F77
 
15282
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15283
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15284
 
 
15285
# Create an old-style archive from a shared archive.
 
15286
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15287
 
 
15288
# Create a temporary old-style archive to link instead of a shared archive.
 
15289
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15290
 
 
15291
# Commands used to build and install a shared archive.
 
15292
archive_cmds=$lt_archive_cmds_F77
 
15293
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15294
postinstall_cmds=$lt_postinstall_cmds
 
15295
postuninstall_cmds=$lt_postuninstall_cmds
 
15296
 
 
15297
# Commands used to build a loadable module (assumed same as above if empty)
 
15298
module_cmds=$lt_module_cmds_F77
 
15299
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15300
 
 
15301
# Commands to strip libraries.
 
15302
old_striplib=$lt_old_striplib
 
15303
striplib=$lt_striplib
 
15304
 
 
15305
# Dependencies to place before the objects being linked to create a
 
15306
# shared library.
 
15307
predep_objects=$lt_predep_objects_F77
 
15308
 
 
15309
# Dependencies to place after the objects being linked to create a
 
15310
# shared library.
 
15311
postdep_objects=$lt_postdep_objects_F77
 
15312
 
 
15313
# Dependencies to place before the objects being linked to create a
 
15314
# shared library.
 
15315
predeps=$lt_predeps_F77
 
15316
 
 
15317
# Dependencies to place after the objects being linked to create a
 
15318
# shared library.
 
15319
postdeps=$lt_postdeps_F77
 
15320
 
 
15321
# The library search path used internally by the compiler when linking
 
15322
# a shared library.
 
15323
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15324
 
 
15325
# Method to check whether dependent libraries are shared objects.
 
15326
deplibs_check_method=$lt_deplibs_check_method
 
15327
 
 
15328
# Command to use when deplibs_check_method == file_magic.
 
15329
file_magic_cmd=$lt_file_magic_cmd
 
15330
 
 
15331
# Flag that allows shared libraries with undefined symbols to be built.
 
15332
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15333
 
 
15334
# Flag that forces no undefined symbols.
 
15335
no_undefined_flag=$lt_no_undefined_flag_F77
 
15336
 
 
15337
# Commands used to finish a libtool library installation in a directory.
 
15338
finish_cmds=$lt_finish_cmds
 
15339
 
 
15340
# Same as above, but a single script fragment to be evaled but not shown.
 
15341
finish_eval=$lt_finish_eval
 
15342
 
 
15343
# Take the output of nm and produce a listing of raw symbols and C names.
 
15344
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15345
 
 
15346
# Transform the output of nm in a proper C declaration
 
15347
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15348
 
 
15349
# Transform the output of nm in a C name address pair
 
15350
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15351
 
 
15352
# This is the shared library runtime path variable.
 
15353
runpath_var=$runpath_var
 
15354
 
 
15355
# This is the shared library path variable.
 
15356
shlibpath_var=$shlibpath_var
 
15357
 
 
15358
# Is shlibpath searched before the hard-coded library search path?
 
15359
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15360
 
 
15361
# How to hardcode a shared library path into an executable.
 
15362
hardcode_action=$hardcode_action_F77
 
15363
 
 
15364
# Whether we should hardcode library paths into libraries.
 
15365
hardcode_into_libs=$hardcode_into_libs
 
15366
 
 
15367
# Flag to hardcode \$libdir into a binary during linking.
 
15368
# This must work even if \$libdir does not exist.
 
15369
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15370
 
 
15371
# If ld is used when linking, flag to hardcode \$libdir into
 
15372
# a binary during linking. This must work even if \$libdir does
 
15373
# not exist.
 
15374
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15375
 
 
15376
# Whether we need a single -rpath flag with a separated argument.
 
15377
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15378
 
 
15379
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15380
# resulting binary.
 
15381
hardcode_direct=$hardcode_direct_F77
 
15382
 
 
15383
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15384
# resulting binary.
 
15385
hardcode_minus_L=$hardcode_minus_L_F77
 
15386
 
 
15387
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15388
# the resulting binary.
 
15389
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15390
 
 
15391
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15392
# and all subsequent libraries and executables linked against it.
 
15393
hardcode_automatic=$hardcode_automatic_F77
 
15394
 
 
15395
# Variables whose values should be saved in libtool wrapper scripts and
 
15396
# restored at relink time.
 
15397
variables_saved_for_relink="$variables_saved_for_relink"
 
15398
 
 
15399
# Whether libtool must link a program against all its dependency libraries.
 
15400
link_all_deplibs=$link_all_deplibs_F77
 
15401
 
 
15402
# Compile-time system search path for libraries
 
15403
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15404
 
 
15405
# Run-time system search path for libraries
 
15406
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15407
 
 
15408
# Fix the shell variable \$srcfile for the compiler.
 
15409
fix_srcfile_path="$fix_srcfile_path_F77"
 
15410
 
 
15411
# Set to yes if exported symbols are required.
 
15412
always_export_symbols=$always_export_symbols_F77
 
15413
 
 
15414
# The commands to list exported symbols.
 
15415
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15416
 
 
15417
# The commands to extract the exported symbol list from a shared archive.
 
15418
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15419
 
 
15420
# Symbols that should not be listed in the preloaded symbols.
 
15421
exclude_expsyms=$lt_exclude_expsyms_F77
 
15422
 
 
15423
# Symbols that must always be exported.
 
15424
include_expsyms=$lt_include_expsyms_F77
 
15425
 
 
15426
# ### END LIBTOOL TAG CONFIG: $tagname
 
15427
 
 
15428
__EOF__
 
15429
 
 
15430
 
 
15431
else
 
15432
  # If there is no Makefile yet, we rely on a make rule to execute
 
15433
  # `config.status --recheck' to rerun these tests and create the
 
15434
  # libtool script then.
 
15435
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15436
  if test -f "$ltmain_in"; then
 
15437
    test -f Makefile && make "$ltmain"
 
15438
  fi
 
15439
fi
 
15440
 
 
15441
 
 
15442
ac_ext=c
 
15443
ac_cpp='$CPP $CPPFLAGS'
 
15444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15447
 
 
15448
CC="$lt_save_CC"
 
15449
 
 
15450
        else
 
15451
          tagname=""
 
15452
        fi
 
15453
        ;;
 
15454
 
 
15455
      GCJ)
 
15456
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15457
 
 
15458
 
 
15459
 
 
15460
# Source file extension for Java test sources.
 
15461
ac_ext=java
 
15462
 
 
15463
# Object file extension for compiled Java test sources.
 
15464
objext=o
 
15465
objext_GCJ=$objext
 
15466
 
 
15467
# Code to be used in simple compile tests
 
15468
lt_simple_compile_test_code="class foo {}\n"
 
15469
 
 
15470
# Code to be used in simple link tests
 
15471
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15472
 
 
15473
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15474
 
 
15475
# If no C compiler was specified, use CC.
 
15476
LTCC=${LTCC-"$CC"}
 
15477
 
 
15478
# Allow CC to be a program name with arguments.
 
15479
compiler=$CC
 
15480
 
 
15481
 
 
15482
# Allow CC to be a program name with arguments.
 
15483
lt_save_CC="$CC"
 
15484
CC=${GCJ-"gcj"}
 
15485
compiler=$CC
 
15486
compiler_GCJ=$CC
 
15487
 
 
15488
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15489
archive_cmds_need_lc_GCJ=no
 
15490
 
 
15491
 
 
15492
lt_prog_compiler_no_builtin_flag_GCJ=
 
15493
 
 
15494
if test "$GCC" = yes; then
 
15495
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15496
 
 
15497
 
 
15498
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15499
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15500
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15502
else
 
15503
  lt_cv_prog_compiler_rtti_exceptions=no
 
15504
  ac_outfile=conftest.$ac_objext
 
15505
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15506
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15507
   # Insert the option either (1) after the last *FLAGS variable, or
 
15508
   # (2) before a word containing "conftest.", or (3) at the end.
 
15509
   # Note that $ac_compile itself does not contain backslashes and begins
 
15510
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15511
   # The option is referenced via a variable to avoid confusing sed.
 
15512
   lt_compile=`echo "$ac_compile" | $SED \
 
15513
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15514
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15515
   -e 's:$: $lt_compiler_flag:'`
 
15516
   (eval echo "\"\$as_me:15516: $lt_compile\"" >&5)
 
15517
   (eval "$lt_compile" 2>conftest.err)
 
15518
   ac_status=$?
 
15519
   cat conftest.err >&5
 
15520
   echo "$as_me:15520: \$? = $ac_status" >&5
 
15521
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15522
     # The compiler can only warn and ignore the option if not recognized
 
15523
     # So say no if there are warnings
 
15524
     if test ! -s conftest.err; then
 
15525
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15526
     fi
 
15527
   fi
 
15528
   $rm conftest*
 
15529
 
 
15530
fi
 
15531
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15532
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15533
 
 
15534
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15535
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15536
else
 
15537
    :
 
15538
fi
 
15539
 
 
15540
fi
 
15541
 
 
15542
lt_prog_compiler_wl_GCJ=
 
15543
lt_prog_compiler_pic_GCJ=
 
15544
lt_prog_compiler_static_GCJ=
 
15545
 
 
15546
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15547
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15548
 
 
15549
  if test "$GCC" = yes; then
 
15550
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15551
    lt_prog_compiler_static_GCJ='-static'
 
15552
 
 
15553
    case $host_os in
 
15554
      aix*)
 
15555
      # All AIX code is PIC.
 
15556
      if test "$host_cpu" = ia64; then
 
15557
        # AIX 5 now supports IA64 processor
 
15558
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15559
      fi
 
15560
      ;;
 
15561
 
 
15562
    amigaos*)
 
15563
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15564
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15565
      # like `-m68040'.
 
15566
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15567
      ;;
 
15568
 
 
15569
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15570
      # PIC is the default for these OSes.
 
15571
      ;;
 
15572
 
 
15573
    mingw* | pw32* | os2*)
 
15574
      # This hack is so that the source file can tell whether it is being
 
15575
      # built for inclusion in a dll (and should export symbols for example).
 
15576
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15577
      ;;
 
15578
 
 
15579
    darwin* | rhapsody*)
 
15580
      # PIC is the default on this platform
 
15581
      # Common symbols not allowed in MH_DYLIB files
 
15582
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15583
      ;;
 
15584
 
 
15585
    msdosdjgpp*)
 
15586
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15587
      # on systems that don't support them.
 
15588
      lt_prog_compiler_can_build_shared_GCJ=no
 
15589
      enable_shared=no
 
15590
      ;;
 
15591
 
 
15592
    sysv4*MP*)
 
15593
      if test -d /usr/nec; then
 
15594
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15595
      fi
 
15596
      ;;
 
15597
 
 
15598
    hpux*)
 
15599
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15600
      # not for PA HP-UX.
 
15601
      case "$host_cpu" in
 
15602
      hppa*64*|ia64*)
 
15603
        # +Z the default
 
15604
        ;;
 
15605
      *)
 
15606
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15607
        ;;
 
15608
      esac
 
15609
      ;;
 
15610
 
 
15611
    *)
 
15612
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15613
      ;;
 
15614
    esac
 
15615
  else
 
15616
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15617
    case $host_os in
 
15618
    aix*)
 
15619
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15620
      if test "$host_cpu" = ia64; then
 
15621
        # AIX 5 now supports IA64 processor
 
15622
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15623
      else
 
15624
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15625
      fi
 
15626
      ;;
 
15627
 
 
15628
    mingw* | pw32* | os2*)
 
15629
      # This hack is so that the source file can tell whether it is being
 
15630
      # built for inclusion in a dll (and should export symbols for example).
 
15631
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15632
      ;;
 
15633
 
 
15634
    hpux9* | hpux10* | hpux11*)
 
15635
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15636
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15637
      # not for PA HP-UX.
 
15638
      case "$host_cpu" in
 
15639
      hppa*64*|ia64*)
 
15640
        # +Z the default
 
15641
        ;;
 
15642
      *)
 
15643
        lt_prog_compiler_pic_GCJ='+Z'
 
15644
        ;;
 
15645
      esac
 
15646
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15647
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15648
      ;;
 
15649
 
 
15650
    irix5* | irix6* | nonstopux*)
 
15651
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15652
      # PIC (with -KPIC) is the default.
 
15653
      lt_prog_compiler_static_GCJ='-non_shared'
 
15654
      ;;
 
15655
 
 
15656
    newsos6)
 
15657
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15658
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15659
      ;;
 
15660
 
 
15661
    linux*)
 
15662
      case $CC in
 
15663
      icc* | ecc*)
 
15664
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15665
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15666
        lt_prog_compiler_static_GCJ='-static'
 
15667
        ;;
 
15668
      ccc*)
 
15669
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15670
        # All Alpha code is PIC.
 
15671
        lt_prog_compiler_static_GCJ='-non_shared'
 
15672
        ;;
 
15673
      esac
 
15674
      ;;
 
15675
 
 
15676
    osf3* | osf4* | osf5*)
 
15677
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15678
      # All OSF/1 code is PIC.
 
15679
      lt_prog_compiler_static_GCJ='-non_shared'
 
15680
      ;;
 
15681
 
 
15682
    sco3.2v5*)
 
15683
      lt_prog_compiler_pic_GCJ='-Kpic'
 
15684
      lt_prog_compiler_static_GCJ='-dn'
 
15685
      ;;
 
15686
 
 
15687
    solaris*)
 
15688
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15689
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15690
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15691
      ;;
 
15692
 
 
15693
    sunos4*)
 
15694
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15695
      lt_prog_compiler_pic_GCJ='-PIC'
 
15696
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15697
      ;;
 
15698
 
 
15699
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15700
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15701
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15702
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15703
      ;;
 
15704
 
 
15705
    sysv4*MP*)
 
15706
      if test -d /usr/nec ;then
 
15707
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15708
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15709
      fi
 
15710
      ;;
 
15711
 
 
15712
    uts4*)
 
15713
      lt_prog_compiler_pic_GCJ='-pic'
 
15714
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15715
      ;;
 
15716
 
 
15717
    *)
 
15718
      lt_prog_compiler_can_build_shared_GCJ=no
 
15719
      ;;
 
15720
    esac
 
15721
  fi
 
15722
 
 
15723
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15724
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15725
 
 
15726
#
 
15727
# Check to make sure the PIC flag actually works.
 
15728
#
 
15729
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15730
 
 
15731
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15732
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15733
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15734
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15735
else
 
15736
  lt_prog_compiler_pic_works_GCJ=no
 
15737
  ac_outfile=conftest.$ac_objext
 
15738
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15739
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15740
   # Insert the option either (1) after the last *FLAGS variable, or
 
15741
   # (2) before a word containing "conftest.", or (3) at the end.
 
15742
   # Note that $ac_compile itself does not contain backslashes and begins
 
15743
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15744
   # The option is referenced via a variable to avoid confusing sed.
 
15745
   lt_compile=`echo "$ac_compile" | $SED \
 
15746
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15747
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15748
   -e 's:$: $lt_compiler_flag:'`
 
15749
   (eval echo "\"\$as_me:15749: $lt_compile\"" >&5)
 
15750
   (eval "$lt_compile" 2>conftest.err)
 
15751
   ac_status=$?
 
15752
   cat conftest.err >&5
 
15753
   echo "$as_me:15753: \$? = $ac_status" >&5
 
15754
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15755
     # The compiler can only warn and ignore the option if not recognized
 
15756
     # So say no if there are warnings
 
15757
     if test ! -s conftest.err; then
 
15758
       lt_prog_compiler_pic_works_GCJ=yes
 
15759
     fi
 
15760
   fi
 
15761
   $rm conftest*
 
15762
 
 
15763
fi
 
15764
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15765
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15766
 
 
15767
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15768
    case $lt_prog_compiler_pic_GCJ in
 
15769
     "" | " "*) ;;
 
15770
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15771
     esac
 
15772
else
 
15773
    lt_prog_compiler_pic_GCJ=
 
15774
     lt_prog_compiler_can_build_shared_GCJ=no
 
15775
fi
 
15776
 
 
15777
fi
 
15778
case "$host_os" in
 
15779
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15780
  *djgpp*)
 
15781
    lt_prog_compiler_pic_GCJ=
 
15782
    ;;
 
15783
  *)
 
15784
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15785
    ;;
 
15786
esac
 
15787
 
 
15788
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15789
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15790
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15792
else
 
15793
  lt_cv_prog_compiler_c_o_GCJ=no
 
15794
   $rm -r conftest 2>/dev/null
 
15795
   mkdir conftest
 
15796
   cd conftest
 
15797
   mkdir out
 
15798
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15799
 
 
15800
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15801
   # Insert the option either (1) after the last *FLAGS variable, or
 
15802
   # (2) before a word containing "conftest.", or (3) at the end.
 
15803
   # Note that $ac_compile itself does not contain backslashes and begins
 
15804
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15805
   lt_compile=`echo "$ac_compile" | $SED \
 
15806
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15807
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15808
   -e 's:$: $lt_compiler_flag:'`
 
15809
   (eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
 
15810
   (eval "$lt_compile" 2>out/conftest.err)
 
15811
   ac_status=$?
 
15812
   cat out/conftest.err >&5
 
15813
   echo "$as_me:15813: \$? = $ac_status" >&5
 
15814
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15815
   then
 
15816
     # The compiler can only warn and ignore the option if not recognized
 
15817
     # So say no if there are warnings
 
15818
     if test ! -s out/conftest.err; then
 
15819
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15820
     fi
 
15821
   fi
 
15822
   chmod u+w .
 
15823
   $rm conftest*
 
15824
   # SGI C++ compiler will create directory out/ii_files/ for
 
15825
   # template instantiation
 
15826
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15827
   $rm out/* && rmdir out
 
15828
   cd ..
 
15829
   rmdir conftest
 
15830
   $rm conftest*
 
15831
 
 
15832
fi
 
15833
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15834
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15835
 
 
15836
 
 
15837
hard_links="nottested"
 
15838
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15839
  # do not overwrite the value of need_locks provided by the user
 
15840
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15841
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15842
  hard_links=yes
 
15843
  $rm conftest*
 
15844
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15845
  touch conftest.a
 
15846
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15847
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15848
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15849
echo "${ECHO_T}$hard_links" >&6
 
15850
  if test "$hard_links" = no; then
 
15851
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15852
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15853
    need_locks=warn
 
15854
  fi
 
15855
else
 
15856
  need_locks=no
 
15857
fi
 
15858
 
 
15859
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15860
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15861
 
 
15862
  runpath_var=
 
15863
  allow_undefined_flag_GCJ=
 
15864
  enable_shared_with_static_runtimes_GCJ=no
 
15865
  archive_cmds_GCJ=
 
15866
  archive_expsym_cmds_GCJ=
 
15867
  old_archive_From_new_cmds_GCJ=
 
15868
  old_archive_from_expsyms_cmds_GCJ=
 
15869
  export_dynamic_flag_spec_GCJ=
 
15870
  whole_archive_flag_spec_GCJ=
 
15871
  thread_safe_flag_spec_GCJ=
 
15872
  hardcode_libdir_flag_spec_GCJ=
 
15873
  hardcode_libdir_flag_spec_ld_GCJ=
 
15874
  hardcode_libdir_separator_GCJ=
 
15875
  hardcode_direct_GCJ=no
 
15876
  hardcode_minus_L_GCJ=no
 
15877
  hardcode_shlibpath_var_GCJ=unsupported
 
15878
  link_all_deplibs_GCJ=unknown
 
15879
  hardcode_automatic_GCJ=no
 
15880
  module_cmds_GCJ=
 
15881
  module_expsym_cmds_GCJ=
 
15882
  always_export_symbols_GCJ=no
 
15883
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15884
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15885
  # included in the symbol list
 
15886
  include_expsyms_GCJ=
 
15887
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15888
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15889
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15890
  # as well as any symbol that contains `d'.
 
15891
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15892
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15893
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15894
  # the symbol is explicitly referenced.  Since portable code cannot
 
15895
  # rely on this symbol name, it's probably fine to never include it in
 
15896
  # preloaded symbol tables.
 
15897
  extract_expsyms_cmds=
 
15898
 
 
15899
  case $host_os in
 
15900
  cygwin* | mingw* | pw32*)
 
15901
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15902
    # When not using gcc, we currently assume that we are using
 
15903
    # Microsoft Visual C++.
 
15904
    if test "$GCC" != yes; then
 
15905
      with_gnu_ld=no
 
15906
    fi
 
15907
    ;;
 
15908
  openbsd*)
 
15909
    with_gnu_ld=no
 
15910
    ;;
 
15911
  esac
 
15912
 
 
15913
  ld_shlibs_GCJ=yes
 
15914
  if test "$with_gnu_ld" = yes; then
 
15915
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15916
    wlarc='${wl}'
 
15917
 
 
15918
    # See if GNU ld supports shared libraries.
 
15919
    case $host_os in
 
15920
    aix3* | aix4* | aix5*)
 
15921
      # On AIX/PPC, the GNU linker is very broken
 
15922
      if test "$host_cpu" != ia64; then
 
15923
        ld_shlibs_GCJ=no
 
15924
        cat <<EOF 1>&2
 
15925
 
 
15926
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15927
*** to be unable to reliably create shared libraries on AIX.
 
15928
*** Therefore, libtool is disabling shared libraries support.  If you
 
15929
*** really care for shared libraries, you may want to modify your PATH
 
15930
*** so that a non-GNU linker is found, and then restart.
 
15931
 
 
15932
EOF
 
15933
      fi
 
15934
      ;;
 
15935
 
 
15936
    amigaos*)
 
15937
      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)'
 
15938
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15939
      hardcode_minus_L_GCJ=yes
 
15940
 
 
15941
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15942
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15943
      # to version 4, is to share data among multiple programs linked
 
15944
      # with the same dynamic library.  Since this doesn't match the
 
15945
      # behavior of shared libraries on other platforms, we can't use
 
15946
      # them.
 
15947
      ld_shlibs_GCJ=no
 
15948
      ;;
 
15949
 
 
15950
    beos*)
 
15951
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15952
        allow_undefined_flag_GCJ=unsupported
 
15953
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15954
        # support --undefined.  This deserves some investigation.  FIXME
 
15955
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15956
      else
 
15957
        ld_shlibs_GCJ=no
 
15958
      fi
 
15959
      ;;
 
15960
 
 
15961
    cygwin* | mingw* | pw32*)
 
15962
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
15963
      # as there is no search path for DLLs.
 
15964
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15965
      allow_undefined_flag_GCJ=unsupported
 
15966
      always_export_symbols_GCJ=no
 
15967
      enable_shared_with_static_runtimes_GCJ=yes
 
15968
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15969
 
 
15970
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15971
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15972
        # If the export-symbols file already is a .def file (1st line
 
15973
        # is EXPORTS), use it as is; otherwise, prepend...
 
15974
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15975
          cp $export_symbols $output_objdir/$soname.def;
 
15976
        else
 
15977
          echo EXPORTS > $output_objdir/$soname.def;
 
15978
          cat $export_symbols >> $output_objdir/$soname.def;
 
15979
        fi~
 
15980
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15981
      else
 
15982
        ld_shlibs=no
 
15983
      fi
 
15984
      ;;
 
15985
 
 
15986
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
15987
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15988
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15989
        wlarc=
 
15990
      else
 
15991
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15992
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15993
      fi
 
15994
      ;;
 
15995
 
 
15996
    solaris* | sysv5*)
 
15997
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15998
        ld_shlibs_GCJ=no
 
15999
        cat <<EOF 1>&2
 
16000
 
 
16001
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16002
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16003
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16004
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16005
*** your PATH or compiler configuration so that the native linker is
 
16006
*** used, and then restart.
 
16007
 
 
16008
EOF
 
16009
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16010
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16011
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16012
      else
 
16013
        ld_shlibs_GCJ=no
 
16014
      fi
 
16015
      ;;
 
16016
 
 
16017
    sunos4*)
 
16018
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16019
      wlarc=
 
16020
      hardcode_direct_GCJ=yes
 
16021
      hardcode_shlibpath_var_GCJ=no
 
16022
      ;;
 
16023
 
 
16024
  linux*)
 
16025
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16026
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16027
        archive_cmds_GCJ="$tmp_archive_cmds"
 
16028
      supports_anon_versioning=no
 
16029
      case `$LD -v 2>/dev/null` in
 
16030
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16031
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16032
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16033
        *\ 2.11.*) ;; # other 2.11 versions
 
16034
        *) supports_anon_versioning=yes ;;
 
16035
      esac
 
16036
      if test $supports_anon_versioning = yes; then
 
16037
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16038
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16039
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16040
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16041
      else
 
16042
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
16043
      fi
 
16044
      link_all_deplibs_GCJ=no
 
16045
    else
 
16046
      ld_shlibs_GCJ=no
 
16047
    fi
 
16048
    ;;
 
16049
 
 
16050
    *)
 
16051
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16052
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16053
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16054
      else
 
16055
        ld_shlibs_GCJ=no
 
16056
      fi
 
16057
      ;;
 
16058
    esac
 
16059
 
 
16060
    if test "$ld_shlibs_GCJ" = yes; then
 
16061
      runpath_var=LD_RUN_PATH
 
16062
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16063
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16064
      # ancient GNU ld didn't support --whole-archive et. al.
 
16065
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16066
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16067
      else
 
16068
        whole_archive_flag_spec_GCJ=
 
16069
      fi
 
16070
    fi
 
16071
  else
 
16072
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16073
    case $host_os in
 
16074
    aix3*)
 
16075
      allow_undefined_flag_GCJ=unsupported
 
16076
      always_export_symbols_GCJ=yes
 
16077
      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'
 
16078
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16079
      # are no directories specified by -L.
 
16080
      hardcode_minus_L_GCJ=yes
 
16081
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16082
        # Neither direct hardcoding nor static linking is supported with a
 
16083
        # broken collect2.
 
16084
        hardcode_direct_GCJ=unsupported
 
16085
      fi
 
16086
      ;;
 
16087
 
 
16088
    aix4* | aix5*)
 
16089
      if test "$host_cpu" = ia64; then
 
16090
        # On IA64, the linker does run time linking by default, so we don't
 
16091
        # have to do anything special.
 
16092
        aix_use_runtimelinking=no
 
16093
        exp_sym_flag='-Bexport'
 
16094
        no_entry_flag=""
 
16095
      else
 
16096
        # If we're using GNU nm, then we don't want the "-C" option.
 
16097
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16098
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16099
          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'
 
16100
        else
 
16101
          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'
 
16102
        fi
 
16103
        aix_use_runtimelinking=no
 
16104
 
 
16105
        # Test if we are trying to use run time linking or normal
 
16106
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16107
        # need to do runtime linking.
 
16108
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16109
          for ld_flag in $LDFLAGS; do
 
16110
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16111
            aix_use_runtimelinking=yes
 
16112
            break
 
16113
          fi
 
16114
          done
 
16115
        esac
 
16116
 
 
16117
        exp_sym_flag='-bexport'
 
16118
        no_entry_flag='-bnoentry'
 
16119
      fi
 
16120
 
 
16121
      # When large executables or shared objects are built, AIX ld can
 
16122
      # have problems creating the table of contents.  If linking a library
 
16123
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16124
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16125
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16126
 
 
16127
      archive_cmds_GCJ=''
 
16128
      hardcode_direct_GCJ=yes
 
16129
      hardcode_libdir_separator_GCJ=':'
 
16130
      link_all_deplibs_GCJ=yes
 
16131
 
 
16132
      if test "$GCC" = yes; then
 
16133
        case $host_os in aix4.012|aix4.012.*)
 
16134
        # We only want to do this on AIX 4.2 and lower, the check
 
16135
        # below for broken collect2 doesn't work under 4.3+
 
16136
          collect2name=`${CC} -print-prog-name=collect2`
 
16137
          if test -f "$collect2name" && \
 
16138
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16139
          then
 
16140
          # We have reworked collect2
 
16141
          hardcode_direct_GCJ=yes
 
16142
          else
 
16143
          # We have old collect2
 
16144
          hardcode_direct_GCJ=unsupported
 
16145
          # It fails to find uninstalled libraries when the uninstalled
 
16146
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16147
          # to unsupported forces relinking
 
16148
          hardcode_minus_L_GCJ=yes
 
16149
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16150
          hardcode_libdir_separator_GCJ=
 
16151
          fi
 
16152
        esac
 
16153
        shared_flag='-shared'
 
16154
      else
 
16155
        # not using gcc
 
16156
        if test "$host_cpu" = ia64; then
 
16157
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16158
        # chokes on -Wl,-G. The following line is correct:
 
16159
          shared_flag='-G'
 
16160
        else
 
16161
        if test "$aix_use_runtimelinking" = yes; then
 
16162
            shared_flag='${wl}-G'
 
16163
          else
 
16164
            shared_flag='${wl}-bM:SRE'
 
16165
        fi
 
16166
        fi
 
16167
      fi
 
16168
 
 
16169
      # It seems that -bexpall does not export symbols beginning with
 
16170
      # underscore (_), so it is better to generate a list of symbols to export.
 
16171
      always_export_symbols_GCJ=yes
 
16172
      if test "$aix_use_runtimelinking" = yes; then
 
16173
        # Warning - without using the other runtime loading flags (-brtl),
 
16174
        # -berok will link without error, but may produce a broken library.
 
16175
        allow_undefined_flag_GCJ='-berok'
 
16176
       # Determine the default libpath from the value encoded in an empty executable.
 
16177
       cat >conftest.$ac_ext <<_ACEOF
 
16178
/* confdefs.h.  */
 
16179
_ACEOF
 
16180
cat confdefs.h >>conftest.$ac_ext
 
16181
cat >>conftest.$ac_ext <<_ACEOF
 
16182
/* end confdefs.h.  */
 
16183
 
 
16184
int
 
16185
main ()
 
16186
{
 
16187
 
 
16188
  ;
 
16189
  return 0;
 
16190
}
 
16191
_ACEOF
 
16192
rm -f conftest.$ac_objext conftest$ac_exeext
 
16193
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16194
  (eval $ac_link) 2>conftest.er1
 
16195
  ac_status=$?
 
16196
  grep -v '^ *+' conftest.er1 >conftest.err
 
16197
  rm -f conftest.er1
 
16198
  cat conftest.err >&5
 
16199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16200
  (exit $ac_status); } &&
 
16201
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16203
  (eval $ac_try) 2>&5
 
16204
  ac_status=$?
 
16205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16206
  (exit $ac_status); }; } &&
 
16207
         { ac_try='test -s conftest$ac_exeext'
 
16208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16209
  (eval $ac_try) 2>&5
 
16210
  ac_status=$?
 
16211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16212
  (exit $ac_status); }; }; then
 
16213
 
 
16214
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16215
}'`
 
16216
# Check for a 64-bit object if we didn't find anything.
 
16217
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; }
 
16218
}'`; fi
 
16219
else
 
16220
  echo "$as_me: failed program was:" >&5
 
16221
sed 's/^/| /' conftest.$ac_ext >&5
 
16222
 
 
16223
fi
 
16224
rm -f conftest.err conftest.$ac_objext \
 
16225
      conftest$ac_exeext conftest.$ac_ext
 
16226
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16227
 
 
16228
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16229
        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"
 
16230
       else
 
16231
        if test "$host_cpu" = ia64; then
 
16232
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16233
          allow_undefined_flag_GCJ="-z nodefs"
 
16234
          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"
 
16235
        else
 
16236
         # Determine the default libpath from the value encoded in an empty executable.
 
16237
         cat >conftest.$ac_ext <<_ACEOF
 
16238
/* confdefs.h.  */
 
16239
_ACEOF
 
16240
cat confdefs.h >>conftest.$ac_ext
 
16241
cat >>conftest.$ac_ext <<_ACEOF
 
16242
/* end confdefs.h.  */
 
16243
 
 
16244
int
 
16245
main ()
 
16246
{
 
16247
 
 
16248
  ;
 
16249
  return 0;
 
16250
}
 
16251
_ACEOF
 
16252
rm -f conftest.$ac_objext conftest$ac_exeext
 
16253
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16254
  (eval $ac_link) 2>conftest.er1
 
16255
  ac_status=$?
 
16256
  grep -v '^ *+' conftest.er1 >conftest.err
 
16257
  rm -f conftest.er1
 
16258
  cat conftest.err >&5
 
16259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16260
  (exit $ac_status); } &&
 
16261
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16262
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16263
  (eval $ac_try) 2>&5
 
16264
  ac_status=$?
 
16265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16266
  (exit $ac_status); }; } &&
 
16267
         { ac_try='test -s conftest$ac_exeext'
 
16268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16269
  (eval $ac_try) 2>&5
 
16270
  ac_status=$?
 
16271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16272
  (exit $ac_status); }; }; then
 
16273
 
 
16274
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16275
}'`
 
16276
# Check for a 64-bit object if we didn't find anything.
 
16277
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; }
 
16278
}'`; fi
 
16279
else
 
16280
  echo "$as_me: failed program was:" >&5
 
16281
sed 's/^/| /' conftest.$ac_ext >&5
 
16282
 
 
16283
fi
 
16284
rm -f conftest.err conftest.$ac_objext \
 
16285
      conftest$ac_exeext conftest.$ac_ext
 
16286
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16287
 
 
16288
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16289
          # Warning - without using the other run time loading flags,
 
16290
          # -berok will link without error, but may produce a broken library.
 
16291
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16292
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16293
          # -bexpall does not export symbols beginning with underscore (_)
 
16294
          always_export_symbols_GCJ=yes
 
16295
          # Exported symbols can be pulled into shared objects from archives
 
16296
          whole_archive_flag_spec_GCJ=' '
 
16297
          archive_cmds_need_lc_GCJ=yes
 
16298
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16299
          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'
 
16300
        fi
 
16301
      fi
 
16302
      ;;
 
16303
 
 
16304
    amigaos*)
 
16305
      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)'
 
16306
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16307
      hardcode_minus_L_GCJ=yes
 
16308
      # see comment about different semantics on the GNU ld section
 
16309
      ld_shlibs_GCJ=no
 
16310
      ;;
 
16311
 
 
16312
    bsdi4*)
 
16313
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16314
      ;;
 
16315
 
 
16316
    cygwin* | mingw* | pw32*)
 
16317
      # When not using gcc, we currently assume that we are using
 
16318
      # Microsoft Visual C++.
 
16319
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16320
      # no search path for DLLs.
 
16321
      hardcode_libdir_flag_spec_GCJ=' '
 
16322
      allow_undefined_flag_GCJ=unsupported
 
16323
      # Tell ltmain to make .lib files, not .a files.
 
16324
      libext=lib
 
16325
      # Tell ltmain to make .dll files, not .so files.
 
16326
      shrext_cmds=".dll"
 
16327
      # FIXME: Setting linknames here is a bad hack.
 
16328
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16329
      # The linker will automatically build a .lib file if we build a DLL.
 
16330
      old_archive_From_new_cmds_GCJ='true'
 
16331
      # FIXME: Should let the user specify the lib program.
 
16332
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16333
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16334
      enable_shared_with_static_runtimes_GCJ=yes
 
16335
      ;;
 
16336
 
 
16337
    darwin* | rhapsody*)
 
16338
    if test "$GXX" = yes ; then
 
16339
      archive_cmds_need_lc_GCJ=no
 
16340
      case "$host_os" in
 
16341
      rhapsody* | darwin1.[012])
 
16342
        allow_undefined_flag_GCJ='-undefined suppress'
 
16343
        ;;
 
16344
      *) # Darwin 1.3 on
 
16345
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16346
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16347
      else
 
16348
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
16349
          10.[012])
 
16350
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16351
            ;;
 
16352
          10.*)
 
16353
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
16354
            ;;
 
16355
        esac
 
16356
      fi
 
16357
        ;;
 
16358
      esac
 
16359
        lt_int_apple_cc_single_mod=no
 
16360
        output_verbose_link_cmd='echo'
 
16361
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16362
          lt_int_apple_cc_single_mod=yes
 
16363
        fi
 
16364
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16365
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16366
        else
 
16367
        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'
 
16368
      fi
 
16369
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16370
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16371
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16372
          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}'
 
16373
        else
 
16374
          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}'
 
16375
        fi
 
16376
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16377
      hardcode_direct_GCJ=no
 
16378
      hardcode_automatic_GCJ=yes
 
16379
      hardcode_shlibpath_var_GCJ=unsupported
 
16380
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16381
      link_all_deplibs_GCJ=yes
 
16382
    else
 
16383
      ld_shlibs_GCJ=no
 
16384
    fi
 
16385
      ;;
 
16386
 
 
16387
    dgux*)
 
16388
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16389
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16390
      hardcode_shlibpath_var_GCJ=no
 
16391
      ;;
 
16392
 
 
16393
    freebsd1*)
 
16394
      ld_shlibs_GCJ=no
 
16395
      ;;
 
16396
 
 
16397
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16398
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16399
    # does not break anything, and helps significantly (at the cost of a little
 
16400
    # extra space).
 
16401
    freebsd2.2*)
 
16402
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16403
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16404
      hardcode_direct_GCJ=yes
 
16405
      hardcode_shlibpath_var_GCJ=no
 
16406
      ;;
 
16407
 
 
16408
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16409
    freebsd2*)
 
16410
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16411
      hardcode_direct_GCJ=yes
 
16412
      hardcode_minus_L_GCJ=yes
 
16413
      hardcode_shlibpath_var_GCJ=no
 
16414
      ;;
 
16415
 
 
16416
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16417
    freebsd* | kfreebsd*-gnu)
 
16418
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16419
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16420
      hardcode_direct_GCJ=yes
 
16421
      hardcode_shlibpath_var_GCJ=no
 
16422
      ;;
 
16423
 
 
16424
    hpux9*)
 
16425
      if test "$GCC" = yes; then
 
16426
        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'
 
16427
      else
 
16428
        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'
 
16429
      fi
 
16430
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16431
      hardcode_libdir_separator_GCJ=:
 
16432
      hardcode_direct_GCJ=yes
 
16433
 
 
16434
      # hardcode_minus_L: Not really in the search PATH,
 
16435
      # but as the default location of the library.
 
16436
      hardcode_minus_L_GCJ=yes
 
16437
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16438
      ;;
 
16439
 
 
16440
    hpux10* | hpux11*)
 
16441
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16442
        case "$host_cpu" in
 
16443
        hppa*64*|ia64*)
 
16444
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16445
          ;;
 
16446
        *)
 
16447
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16448
          ;;
 
16449
        esac
 
16450
      else
 
16451
        case "$host_cpu" in
 
16452
        hppa*64*|ia64*)
 
16453
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16454
          ;;
 
16455
        *)
 
16456
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16457
          ;;
 
16458
        esac
 
16459
      fi
 
16460
      if test "$with_gnu_ld" = no; then
 
16461
        case "$host_cpu" in
 
16462
        hppa*64*)
 
16463
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16464
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16465
          hardcode_libdir_separator_GCJ=:
 
16466
          hardcode_direct_GCJ=no
 
16467
          hardcode_shlibpath_var_GCJ=no
 
16468
          ;;
 
16469
        ia64*)
 
16470
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16471
          hardcode_direct_GCJ=no
 
16472
          hardcode_shlibpath_var_GCJ=no
 
16473
 
 
16474
          # hardcode_minus_L: Not really in the search PATH,
 
16475
          # but as the default location of the library.
 
16476
          hardcode_minus_L_GCJ=yes
 
16477
          ;;
 
16478
        *)
 
16479
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16480
          hardcode_libdir_separator_GCJ=:
 
16481
          hardcode_direct_GCJ=yes
 
16482
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16483
 
 
16484
          # hardcode_minus_L: Not really in the search PATH,
 
16485
          # but as the default location of the library.
 
16486
          hardcode_minus_L_GCJ=yes
 
16487
          ;;
 
16488
        esac
 
16489
      fi
 
16490
      ;;
 
16491
 
 
16492
    irix5* | irix6* | nonstopux*)
 
16493
      if test "$GCC" = yes; then
 
16494
        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'
 
16495
      else
 
16496
        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'
 
16497
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16498
      fi
 
16499
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16500
      hardcode_libdir_separator_GCJ=:
 
16501
      link_all_deplibs_GCJ=yes
 
16502
      ;;
 
16503
 
 
16504
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16505
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16506
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16507
      else
 
16508
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16509
      fi
 
16510
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16511
      hardcode_direct_GCJ=yes
 
16512
      hardcode_shlibpath_var_GCJ=no
 
16513
      ;;
 
16514
 
 
16515
    newsos6)
 
16516
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16517
      hardcode_direct_GCJ=yes
 
16518
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16519
      hardcode_libdir_separator_GCJ=:
 
16520
      hardcode_shlibpath_var_GCJ=no
 
16521
      ;;
 
16522
 
 
16523
    openbsd*)
 
16524
      hardcode_direct_GCJ=yes
 
16525
      hardcode_shlibpath_var_GCJ=no
 
16526
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16527
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16528
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16529
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16530
      else
 
16531
       case $host_os in
 
16532
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16533
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16534
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16535
           ;;
 
16536
         *)
 
16537
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16538
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16539
           ;;
 
16540
       esac
 
16541
      fi
 
16542
      ;;
 
16543
 
 
16544
    os2*)
 
16545
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16546
      hardcode_minus_L_GCJ=yes
 
16547
      allow_undefined_flag_GCJ=unsupported
 
16548
      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'
 
16549
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16550
      ;;
 
16551
 
 
16552
    osf3*)
 
16553
      if test "$GCC" = yes; then
 
16554
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16555
        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'
 
16556
      else
 
16557
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16558
        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'
 
16559
      fi
 
16560
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16561
      hardcode_libdir_separator_GCJ=:
 
16562
      ;;
 
16563
 
 
16564
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16565
      if test "$GCC" = yes; then
 
16566
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16567
        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'
 
16568
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16569
      else
 
16570
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16571
        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'
 
16572
        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~
 
16573
        $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'
 
16574
 
 
16575
        # Both c and cxx compiler support -rpath directly
 
16576
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16577
      fi
 
16578
      hardcode_libdir_separator_GCJ=:
 
16579
      ;;
 
16580
 
 
16581
    sco3.2v5*)
 
16582
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16583
      hardcode_shlibpath_var_GCJ=no
 
16584
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16585
      runpath_var=LD_RUN_PATH
 
16586
      hardcode_runpath_var=yes
 
16587
      ;;
 
16588
 
 
16589
    solaris*)
 
16590
      no_undefined_flag_GCJ=' -z text'
 
16591
      if test "$GCC" = yes; then
 
16592
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16593
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16594
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16595
      else
 
16596
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16597
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16598
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16599
      fi
 
16600
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16601
      hardcode_shlibpath_var_GCJ=no
 
16602
      case $host_os in
 
16603
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16604
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16605
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16606
      esac
 
16607
      link_all_deplibs_GCJ=yes
 
16608
      ;;
 
16609
 
 
16610
    sunos4*)
 
16611
      if test "x$host_vendor" = xsequent; then
 
16612
        # Use $CC to link under sequent, because it throws in some extra .o
 
16613
        # files that make .init and .fini sections work.
 
16614
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16615
      else
 
16616
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16617
      fi
 
16618
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16619
      hardcode_direct_GCJ=yes
 
16620
      hardcode_minus_L_GCJ=yes
 
16621
      hardcode_shlibpath_var_GCJ=no
 
16622
      ;;
 
16623
 
 
16624
    sysv4)
 
16625
      case $host_vendor in
 
16626
        sni)
 
16627
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16628
          hardcode_direct_GCJ=yes # is this really true???
 
16629
        ;;
 
16630
        siemens)
 
16631
          ## LD is ld it makes a PLAMLIB
 
16632
          ## CC just makes a GrossModule.
 
16633
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16634
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16635
          hardcode_direct_GCJ=no
 
16636
        ;;
 
16637
        motorola)
 
16638
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16639
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16640
        ;;
 
16641
      esac
 
16642
      runpath_var='LD_RUN_PATH'
 
16643
      hardcode_shlibpath_var_GCJ=no
 
16644
      ;;
 
16645
 
 
16646
    sysv4.3*)
 
16647
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16648
      hardcode_shlibpath_var_GCJ=no
 
16649
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16650
      ;;
 
16651
 
 
16652
    sysv4*MP*)
 
16653
      if test -d /usr/nec; then
 
16654
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16655
        hardcode_shlibpath_var_GCJ=no
 
16656
        runpath_var=LD_RUN_PATH
 
16657
        hardcode_runpath_var=yes
 
16658
        ld_shlibs_GCJ=yes
 
16659
      fi
 
16660
      ;;
 
16661
 
 
16662
    sysv4.2uw2*)
 
16663
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16664
      hardcode_direct_GCJ=yes
 
16665
      hardcode_minus_L_GCJ=no
 
16666
      hardcode_shlibpath_var_GCJ=no
 
16667
      hardcode_runpath_var=yes
 
16668
      runpath_var=LD_RUN_PATH
 
16669
      ;;
 
16670
 
 
16671
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16672
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
16673
      if test "$GCC" = yes; then
 
16674
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16675
      else
 
16676
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16677
      fi
 
16678
      runpath_var='LD_RUN_PATH'
 
16679
      hardcode_shlibpath_var_GCJ=no
 
16680
      ;;
 
16681
 
 
16682
    sysv5*)
 
16683
      no_undefined_flag_GCJ=' -z text'
 
16684
      # $CC -shared without GNU ld will not create a library from C++
 
16685
      # object files and a static libstdc++, better avoid it by now
 
16686
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16687
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16688
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16689
      hardcode_libdir_flag_spec_GCJ=
 
16690
      hardcode_shlibpath_var_GCJ=no
 
16691
      runpath_var='LD_RUN_PATH'
 
16692
      ;;
 
16693
 
 
16694
    uts4*)
 
16695
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16696
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16697
      hardcode_shlibpath_var_GCJ=no
 
16698
      ;;
 
16699
 
 
16700
    *)
 
16701
      ld_shlibs_GCJ=no
 
16702
      ;;
 
16703
    esac
 
16704
  fi
 
16705
 
 
16706
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16707
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16708
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16709
 
 
16710
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16711
if test "$GCC" = yes; then
 
16712
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16713
fi
 
16714
 
 
16715
#
 
16716
# Do we need to explicitly link libc?
 
16717
#
 
16718
case "x$archive_cmds_need_lc_GCJ" in
 
16719
x|xyes)
 
16720
  # Assume -lc should be added
 
16721
  archive_cmds_need_lc_GCJ=yes
 
16722
 
 
16723
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16724
    case $archive_cmds_GCJ in
 
16725
    *'~'*)
 
16726
      # FIXME: we may have to deal with multi-command sequences.
 
16727
      ;;
 
16728
    '$CC '*)
 
16729
      # Test whether the compiler implicitly links with -lc since on some
 
16730
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16731
      # to ld, don't add -lc before -lgcc.
 
16732
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16733
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16734
      $rm conftest*
 
16735
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16736
 
 
16737
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16738
  (eval $ac_compile) 2>&5
 
16739
  ac_status=$?
 
16740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16741
  (exit $ac_status); } 2>conftest.err; then
 
16742
        soname=conftest
 
16743
        lib=conftest
 
16744
        libobjs=conftest.$ac_objext
 
16745
        deplibs=
 
16746
        wl=$lt_prog_compiler_wl_GCJ
 
16747
        compiler_flags=-v
 
16748
        linker_flags=-v
 
16749
        verstring=
 
16750
        output_objdir=.
 
16751
        libname=conftest
 
16752
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16753
        allow_undefined_flag_GCJ=
 
16754
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16755
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16756
  ac_status=$?
 
16757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16758
  (exit $ac_status); }
 
16759
        then
 
16760
          archive_cmds_need_lc_GCJ=no
 
16761
        else
 
16762
          archive_cmds_need_lc_GCJ=yes
 
16763
        fi
 
16764
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16765
      else
 
16766
        cat conftest.err 1>&5
 
16767
      fi
 
16768
      $rm conftest*
 
16769
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16770
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16771
      ;;
 
16772
    esac
 
16773
  fi
 
16774
  ;;
 
16775
esac
 
16776
 
 
16777
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16778
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16779
library_names_spec=
 
16780
libname_spec='lib$name'
 
16781
soname_spec=
 
16782
shrext_cmds=".so"
 
16783
postinstall_cmds=
 
16784
postuninstall_cmds=
 
16785
finish_cmds=
 
16786
finish_eval=
 
16787
shlibpath_var=
 
16788
shlibpath_overrides_runpath=unknown
 
16789
version_type=none
 
16790
dynamic_linker="$host_os ld.so"
 
16791
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16792
if test "$GCC" = yes; then
 
16793
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16794
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16795
    # if the path contains ";" then we assume it to be the separator
 
16796
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16797
    # assumed that no part of a normal pathname contains ";" but that should
 
16798
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16799
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16800
  else
 
16801
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16802
  fi
 
16803
else
 
16804
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16805
fi
 
16806
need_lib_prefix=unknown
 
16807
hardcode_into_libs=no
 
16808
 
 
16809
# when you set need_version to no, make sure it does not cause -set_version
 
16810
# flags to be left without arguments
 
16811
need_version=unknown
 
16812
 
 
16813
case $host_os in
 
16814
aix3*)
 
16815
  version_type=linux
 
16816
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16817
  shlibpath_var=LIBPATH
 
16818
 
 
16819
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16820
  soname_spec='${libname}${release}${shared_ext}$major'
 
16821
  ;;
 
16822
 
 
16823
aix4* | aix5*)
 
16824
  version_type=linux
 
16825
  need_lib_prefix=no
 
16826
  need_version=no
 
16827
  hardcode_into_libs=yes
 
16828
  if test "$host_cpu" = ia64; then
 
16829
    # AIX 5 supports IA64
 
16830
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16831
    shlibpath_var=LD_LIBRARY_PATH
 
16832
  else
 
16833
    # With GCC up to 2.95.x, collect2 would create an import file
 
16834
    # for dependence libraries.  The import file would start with
 
16835
    # the line `#! .'.  This would cause the generated library to
 
16836
    # depend on `.', always an invalid library.  This was fixed in
 
16837
    # development snapshots of GCC prior to 3.0.
 
16838
    case $host_os in
 
16839
      aix4 | aix4.[01] | aix4.[01].*)
 
16840
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16841
           echo ' yes '
 
16842
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16843
        :
 
16844
      else
 
16845
        can_build_shared=no
 
16846
      fi
 
16847
      ;;
 
16848
    esac
 
16849
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16850
    # soname into executable. Probably we can add versioning support to
 
16851
    # collect2, so additional links can be useful in future.
 
16852
    if test "$aix_use_runtimelinking" = yes; then
 
16853
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16854
      # instead of lib<name>.a to let people know that these are not
 
16855
      # typical AIX shared libraries.
 
16856
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16857
    else
 
16858
      # We preserve .a as extension for shared libraries through AIX4.2
 
16859
      # and later when we are not doing run time linking.
 
16860
      library_names_spec='${libname}${release}.a $libname.a'
 
16861
      soname_spec='${libname}${release}${shared_ext}$major'
 
16862
    fi
 
16863
    shlibpath_var=LIBPATH
 
16864
  fi
 
16865
  ;;
 
16866
 
 
16867
amigaos*)
 
16868
  library_names_spec='$libname.ixlibrary $libname.a'
 
16869
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16870
  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'
 
16871
  ;;
 
16872
 
 
16873
beos*)
 
16874
  library_names_spec='${libname}${shared_ext}'
 
16875
  dynamic_linker="$host_os ld.so"
 
16876
  shlibpath_var=LIBRARY_PATH
 
16877
  ;;
 
16878
 
 
16879
bsdi4*)
 
16880
  version_type=linux
 
16881
  need_version=no
 
16882
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16883
  soname_spec='${libname}${release}${shared_ext}$major'
 
16884
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16885
  shlibpath_var=LD_LIBRARY_PATH
 
16886
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16887
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16888
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16889
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16890
  # libtool to hard-code these into programs
 
16891
  ;;
 
16892
 
 
16893
cygwin* | mingw* | pw32*)
 
16894
  version_type=windows
 
16895
  shrext_cmds=".dll"
 
16896
  need_version=no
 
16897
  need_lib_prefix=no
 
16898
 
 
16899
  case $GCC,$host_os in
 
16900
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16901
    library_names_spec='$libname.dll.a'
 
16902
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16903
    postinstall_cmds='base_file=`basename \${file}`~
 
16904
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16905
      dldir=$destdir/`dirname \$dlpath`~
 
16906
      test -d \$dldir || mkdir -p \$dldir~
 
16907
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16908
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16909
      dlpath=$dir/\$dldll~
 
16910
       $rm \$dlpath'
 
16911
    shlibpath_overrides_runpath=yes
 
16912
 
 
16913
    case $host_os in
 
16914
    cygwin*)
 
16915
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16916
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16917
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16918
      ;;
 
16919
    mingw*)
 
16920
      # MinGW DLLs use traditional 'lib' prefix
 
16921
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16922
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16923
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16924
        # It is most probably a Windows format PATH printed by
 
16925
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16926
        # path with ; separators, and with drive letters. We can handle the
 
16927
        # drive letters (cygwin fileutils understands them), so leave them,
 
16928
        # especially as we might pass files found there to a mingw objdump,
 
16929
        # which wouldn't understand a cygwinified path. Ahh.
 
16930
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16931
      else
 
16932
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16933
      fi
 
16934
      ;;
 
16935
    pw32*)
 
16936
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16937
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16938
      ;;
 
16939
    esac
 
16940
    ;;
 
16941
 
 
16942
  *)
 
16943
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16944
    ;;
 
16945
  esac
 
16946
  dynamic_linker='Win32 ld.exe'
 
16947
  # FIXME: first we should search . and the directory the executable is in
 
16948
  shlibpath_var=PATH
 
16949
  ;;
 
16950
 
 
16951
darwin* | rhapsody*)
 
16952
  dynamic_linker="$host_os dyld"
 
16953
  version_type=darwin
 
16954
  need_lib_prefix=no
 
16955
  need_version=no
 
16956
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16957
  soname_spec='${libname}${release}${major}$shared_ext'
 
16958
  shlibpath_overrides_runpath=yes
 
16959
  shlibpath_var=DYLD_LIBRARY_PATH
 
16960
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16961
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16962
  if test "$GCC" = yes; then
 
16963
    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"`
 
16964
  else
 
16965
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16966
  fi
 
16967
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16968
  ;;
 
16969
 
 
16970
dgux*)
 
16971
  version_type=linux
 
16972
  need_lib_prefix=no
 
16973
  need_version=no
 
16974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16975
  soname_spec='${libname}${release}${shared_ext}$major'
 
16976
  shlibpath_var=LD_LIBRARY_PATH
 
16977
  ;;
 
16978
 
 
16979
freebsd1*)
 
16980
  dynamic_linker=no
 
16981
  ;;
 
16982
 
 
16983
kfreebsd*-gnu)
 
16984
  version_type=linux
 
16985
  need_lib_prefix=no
 
16986
  need_version=no
 
16987
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16988
  soname_spec='${libname}${release}${shared_ext}$major'
 
16989
  shlibpath_var=LD_LIBRARY_PATH
 
16990
  shlibpath_overrides_runpath=no
 
16991
  hardcode_into_libs=yes
 
16992
  dynamic_linker='GNU ld.so'
 
16993
  ;;
 
16994
 
 
16995
freebsd*)
 
16996
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16997
  version_type=freebsd-$objformat
 
16998
  case $version_type in
 
16999
    freebsd-elf*)
 
17000
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17001
      need_version=no
 
17002
      need_lib_prefix=no
 
17003
      ;;
 
17004
    freebsd-*)
 
17005
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17006
      need_version=yes
 
17007
      ;;
 
17008
  esac
 
17009
  shlibpath_var=LD_LIBRARY_PATH
 
17010
  case $host_os in
 
17011
  freebsd2*)
 
17012
    shlibpath_overrides_runpath=yes
 
17013
    ;;
 
17014
  freebsd3.01* | freebsdelf3.01*)
 
17015
    shlibpath_overrides_runpath=yes
 
17016
    hardcode_into_libs=yes
 
17017
    ;;
 
17018
  *) # from 3.2 on
 
17019
    shlibpath_overrides_runpath=no
 
17020
    hardcode_into_libs=yes
 
17021
    ;;
 
17022
  esac
 
17023
  ;;
 
17024
 
 
17025
gnu*)
 
17026
  version_type=linux
 
17027
  need_lib_prefix=no
 
17028
  need_version=no
 
17029
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17030
  soname_spec='${libname}${release}${shared_ext}$major'
 
17031
  shlibpath_var=LD_LIBRARY_PATH
 
17032
  hardcode_into_libs=yes
 
17033
  ;;
 
17034
 
 
17035
hpux9* | hpux10* | hpux11*)
 
17036
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17037
  # link against other versions.
 
17038
  version_type=sunos
 
17039
  need_lib_prefix=no
 
17040
  need_version=no
 
17041
  case "$host_cpu" in
 
17042
  ia64*)
 
17043
    shrext_cmds='.so'
 
17044
    hardcode_into_libs=yes
 
17045
    dynamic_linker="$host_os dld.so"
 
17046
    shlibpath_var=LD_LIBRARY_PATH
 
17047
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17048
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17049
    soname_spec='${libname}${release}${shared_ext}$major'
 
17050
    if test "X$HPUX_IA64_MODE" = X32; then
 
17051
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17052
    else
 
17053
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17054
    fi
 
17055
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17056
    ;;
 
17057
   hppa*64*)
 
17058
     shrext_cmds='.sl'
 
17059
     hardcode_into_libs=yes
 
17060
     dynamic_linker="$host_os dld.sl"
 
17061
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17062
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17063
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17064
     soname_spec='${libname}${release}${shared_ext}$major'
 
17065
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17066
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17067
     ;;
 
17068
   *)
 
17069
    shrext_cmds='.sl'
 
17070
    dynamic_linker="$host_os dld.sl"
 
17071
    shlibpath_var=SHLIB_PATH
 
17072
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17073
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17074
    soname_spec='${libname}${release}${shared_ext}$major'
 
17075
    ;;
 
17076
  esac
 
17077
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17078
  postinstall_cmds='chmod 555 $lib'
 
17079
  ;;
 
17080
 
 
17081
irix5* | irix6* | nonstopux*)
 
17082
  case $host_os in
 
17083
    nonstopux*) version_type=nonstopux ;;
 
17084
    *)
 
17085
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17086
                version_type=linux
 
17087
        else
 
17088
                version_type=irix
 
17089
        fi ;;
 
17090
  esac
 
17091
  need_lib_prefix=no
 
17092
  need_version=no
 
17093
  soname_spec='${libname}${release}${shared_ext}$major'
 
17094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17095
  case $host_os in
 
17096
  irix5* | nonstopux*)
 
17097
    libsuff= shlibsuff=
 
17098
    ;;
 
17099
  *)
 
17100
    case $LD in # libtool.m4 will add one of these switches to LD
 
17101
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17102
      libsuff= shlibsuff= libmagic=32-bit;;
 
17103
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17104
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17105
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17106
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17107
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17108
    esac
 
17109
    ;;
 
17110
  esac
 
17111
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17112
  shlibpath_overrides_runpath=no
 
17113
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17114
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17115
  hardcode_into_libs=yes
 
17116
  ;;
 
17117
 
 
17118
# No shared lib support for Linux oldld, aout, or coff.
 
17119
linux*oldld* | linux*aout* | linux*coff*)
 
17120
  dynamic_linker=no
 
17121
  ;;
 
17122
 
 
17123
# This must be Linux ELF.
 
17124
linux*)
 
17125
  version_type=linux
 
17126
  need_lib_prefix=no
 
17127
  need_version=no
 
17128
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17129
  soname_spec='${libname}${release}${shared_ext}$major'
 
17130
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17131
  shlibpath_var=LD_LIBRARY_PATH
 
17132
  shlibpath_overrides_runpath=no
 
17133
  # This implies no fast_install, which is unacceptable.
 
17134
  # Some rework will be needed to allow for fast_install
 
17135
  # before this can be enabled.
 
17136
  hardcode_into_libs=yes
 
17137
 
 
17138
  # Append ld.so.conf contents to the search path
 
17139
  if test -f /etc/ld.so.conf; then
 
17140
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17141
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17142
  fi
 
17143
 
 
17144
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17145
  # powerpc, because MkLinux only supported shared libraries with the
 
17146
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17147
  # most powerpc-linux boxes support dynamic linking these days and
 
17148
  # people can always --disable-shared, the test was removed, and we
 
17149
  # assume the GNU/Linux dynamic linker is in use.
 
17150
  dynamic_linker='GNU/Linux ld.so'
 
17151
  ;;
 
17152
 
 
17153
netbsdelf*-gnu)
 
17154
  version_type=linux
 
17155
  need_lib_prefix=no
 
17156
  need_version=no
 
17157
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17158
  soname_spec='${libname}${release}${shared_ext}$major'
 
17159
  shlibpath_var=LD_LIBRARY_PATH
 
17160
  shlibpath_overrides_runpath=no
 
17161
  hardcode_into_libs=yes
 
17162
  dynamic_linker='NetBSD ld.elf_so'
 
17163
  ;;
 
17164
 
 
17165
knetbsd*-gnu)
 
17166
  version_type=linux
 
17167
  need_lib_prefix=no
 
17168
  need_version=no
 
17169
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17170
  soname_spec='${libname}${release}${shared_ext}$major'
 
17171
  shlibpath_var=LD_LIBRARY_PATH
 
17172
  shlibpath_overrides_runpath=no
 
17173
  hardcode_into_libs=yes
 
17174
  dynamic_linker='GNU ld.so'
 
17175
  ;;
 
17176
 
 
17177
netbsd*)
 
17178
  version_type=sunos
 
17179
  need_lib_prefix=no
 
17180
  need_version=no
 
17181
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17182
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17183
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17184
    dynamic_linker='NetBSD (a.out) ld.so'
 
17185
  else
 
17186
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17187
    soname_spec='${libname}${release}${shared_ext}$major'
 
17188
    dynamic_linker='NetBSD ld.elf_so'
 
17189
  fi
 
17190
  shlibpath_var=LD_LIBRARY_PATH
 
17191
  shlibpath_overrides_runpath=yes
 
17192
  hardcode_into_libs=yes
 
17193
  ;;
 
17194
 
 
17195
newsos6)
 
17196
  version_type=linux
 
17197
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17198
  shlibpath_var=LD_LIBRARY_PATH
 
17199
  shlibpath_overrides_runpath=yes
 
17200
  ;;
 
17201
 
 
17202
nto-qnx*)
 
17203
  version_type=linux
 
17204
  need_lib_prefix=no
 
17205
  need_version=no
 
17206
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17207
  soname_spec='${libname}${release}${shared_ext}$major'
 
17208
  shlibpath_var=LD_LIBRARY_PATH
 
17209
  shlibpath_overrides_runpath=yes
 
17210
  ;;
 
17211
 
 
17212
openbsd*)
 
17213
  version_type=sunos
 
17214
  need_lib_prefix=no
 
17215
  need_version=yes
 
17216
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17217
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17218
  shlibpath_var=LD_LIBRARY_PATH
 
17219
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17220
    case $host_os in
 
17221
      openbsd2.[89] | openbsd2.[89].*)
 
17222
        shlibpath_overrides_runpath=no
 
17223
        ;;
 
17224
      *)
 
17225
        shlibpath_overrides_runpath=yes
 
17226
        ;;
 
17227
      esac
 
17228
  else
 
17229
    shlibpath_overrides_runpath=yes
 
17230
  fi
 
17231
  ;;
 
17232
 
 
17233
os2*)
 
17234
  libname_spec='$name'
 
17235
  shrext_cmds=".dll"
 
17236
  need_lib_prefix=no
 
17237
  library_names_spec='$libname${shared_ext} $libname.a'
 
17238
  dynamic_linker='OS/2 ld.exe'
 
17239
  shlibpath_var=LIBPATH
 
17240
  ;;
 
17241
 
 
17242
osf3* | osf4* | osf5*)
 
17243
  version_type=osf
 
17244
  need_lib_prefix=no
 
17245
  need_version=no
 
17246
  soname_spec='${libname}${release}${shared_ext}$major'
 
17247
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17248
  shlibpath_var=LD_LIBRARY_PATH
 
17249
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17250
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17251
  ;;
 
17252
 
 
17253
sco3.2v5*)
 
17254
  version_type=osf
 
17255
  soname_spec='${libname}${release}${shared_ext}$major'
 
17256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17257
  shlibpath_var=LD_LIBRARY_PATH
 
17258
  ;;
 
17259
 
 
17260
solaris*)
 
17261
  version_type=linux
 
17262
  need_lib_prefix=no
 
17263
  need_version=no
 
17264
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17265
  soname_spec='${libname}${release}${shared_ext}$major'
 
17266
  shlibpath_var=LD_LIBRARY_PATH
 
17267
  shlibpath_overrides_runpath=yes
 
17268
  hardcode_into_libs=yes
 
17269
  # ldd complains unless libraries are executable
 
17270
  postinstall_cmds='chmod +x $lib'
 
17271
  ;;
 
17272
 
 
17273
sunos4*)
 
17274
  version_type=sunos
 
17275
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17276
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17277
  shlibpath_var=LD_LIBRARY_PATH
 
17278
  shlibpath_overrides_runpath=yes
 
17279
  if test "$with_gnu_ld" = yes; then
 
17280
    need_lib_prefix=no
 
17281
  fi
 
17282
  need_version=yes
 
17283
  ;;
 
17284
 
 
17285
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17286
  version_type=linux
 
17287
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17288
  soname_spec='${libname}${release}${shared_ext}$major'
 
17289
  shlibpath_var=LD_LIBRARY_PATH
 
17290
  case $host_vendor in
 
17291
    sni)
 
17292
      shlibpath_overrides_runpath=no
 
17293
      need_lib_prefix=no
 
17294
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17295
      runpath_var=LD_RUN_PATH
 
17296
      ;;
 
17297
    siemens)
 
17298
      need_lib_prefix=no
 
17299
      ;;
 
17300
    motorola)
 
17301
      need_lib_prefix=no
 
17302
      need_version=no
 
17303
      shlibpath_overrides_runpath=no
 
17304
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17305
      ;;
 
17306
  esac
 
17307
  ;;
 
17308
 
 
17309
sysv4*MP*)
 
17310
  if test -d /usr/nec ;then
 
17311
    version_type=linux
 
17312
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17313
    soname_spec='$libname${shared_ext}.$major'
 
17314
    shlibpath_var=LD_LIBRARY_PATH
 
17315
  fi
 
17316
  ;;
 
17317
 
 
17318
uts4*)
 
17319
  version_type=linux
 
17320
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17321
  soname_spec='${libname}${release}${shared_ext}$major'
 
17322
  shlibpath_var=LD_LIBRARY_PATH
 
17323
  ;;
 
17324
 
 
17325
*)
 
17326
  dynamic_linker=no
 
17327
  ;;
 
17328
esac
 
17329
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17330
echo "${ECHO_T}$dynamic_linker" >&6
 
17331
test "$dynamic_linker" = no && can_build_shared=no
 
17332
 
 
17333
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17334
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17335
hardcode_action_GCJ=
 
17336
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17337
   test -n "$runpath_var GCJ" || \
 
17338
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17339
 
 
17340
  # We can hardcode non-existant directories.
 
17341
  if test "$hardcode_direct_GCJ" != no &&
 
17342
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17343
     # have to relink, otherwise we might link with an installed library
 
17344
     # when we should be linking with a yet-to-be-installed one
 
17345
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17346
     test "$hardcode_minus_L_GCJ" != no; then
 
17347
    # Linking always hardcodes the temporary library directory.
 
17348
    hardcode_action_GCJ=relink
 
17349
  else
 
17350
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17351
    hardcode_action_GCJ=immediate
 
17352
  fi
 
17353
else
 
17354
  # We cannot hardcode anything, or else we can only hardcode existing
 
17355
  # directories.
 
17356
  hardcode_action_GCJ=unsupported
 
17357
fi
 
17358
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17359
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17360
 
 
17361
if test "$hardcode_action_GCJ" = relink; then
 
17362
  # Fast installation is not supported
 
17363
  enable_fast_install=no
 
17364
elif test "$shlibpath_overrides_runpath" = yes ||
 
17365
     test "$enable_shared" = no; then
 
17366
  # Fast installation is not necessary
 
17367
  enable_fast_install=needless
 
17368
fi
 
17369
 
 
17370
striplib=
 
17371
old_striplib=
 
17372
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17373
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17374
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17375
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17376
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17377
  echo "$as_me:$LINENO: result: yes" >&5
 
17378
echo "${ECHO_T}yes" >&6
 
17379
else
 
17380
# FIXME - insert some real tests, host_os isn't really good enough
 
17381
  case $host_os in
 
17382
   darwin*)
 
17383
       if test -n "$STRIP" ; then
 
17384
         striplib="$STRIP -x"
 
17385
         echo "$as_me:$LINENO: result: yes" >&5
 
17386
echo "${ECHO_T}yes" >&6
 
17387
       else
 
17388
  echo "$as_me:$LINENO: result: no" >&5
 
17389
echo "${ECHO_T}no" >&6
 
17390
fi
 
17391
       ;;
 
17392
   *)
 
17393
  echo "$as_me:$LINENO: result: no" >&5
 
17394
echo "${ECHO_T}no" >&6
 
17395
    ;;
 
17396
  esac
 
17397
fi
 
17398
 
 
17399
if test "x$enable_dlopen" != xyes; then
 
17400
  enable_dlopen=unknown
 
17401
  enable_dlopen_self=unknown
 
17402
  enable_dlopen_self_static=unknown
 
17403
else
 
17404
  lt_cv_dlopen=no
 
17405
  lt_cv_dlopen_libs=
 
17406
 
 
17407
  case $host_os in
 
17408
  beos*)
 
17409
    lt_cv_dlopen="load_add_on"
 
17410
    lt_cv_dlopen_libs=
 
17411
    lt_cv_dlopen_self=yes
 
17412
    ;;
 
17413
 
 
17414
  mingw* | pw32*)
 
17415
    lt_cv_dlopen="LoadLibrary"
 
17416
    lt_cv_dlopen_libs=
 
17417
   ;;
 
17418
 
 
17419
  cygwin*)
 
17420
    lt_cv_dlopen="dlopen"
 
17421
    lt_cv_dlopen_libs=
 
17422
   ;;
 
17423
 
 
17424
  darwin*)
 
17425
  # if libdl is installed we need to link against it
 
17426
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17427
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17428
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17430
else
 
17431
  ac_check_lib_save_LIBS=$LIBS
 
17432
LIBS="-ldl  $LIBS"
 
17433
cat >conftest.$ac_ext <<_ACEOF
 
17434
/* confdefs.h.  */
 
17435
_ACEOF
 
17436
cat confdefs.h >>conftest.$ac_ext
 
17437
cat >>conftest.$ac_ext <<_ACEOF
 
17438
/* end confdefs.h.  */
 
17439
 
 
17440
/* Override any gcc2 internal prototype to avoid an error.  */
 
17441
#ifdef __cplusplus
 
17442
extern "C"
 
17443
#endif
 
17444
/* We use char because int might match the return type of a gcc2
 
17445
   builtin and then its argument prototype would still apply.  */
 
17446
char dlopen ();
 
17447
int
 
17448
main ()
 
17449
{
 
17450
dlopen ();
 
17451
  ;
 
17452
  return 0;
 
17453
}
 
17454
_ACEOF
 
17455
rm -f conftest.$ac_objext conftest$ac_exeext
 
17456
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17457
  (eval $ac_link) 2>conftest.er1
 
17458
  ac_status=$?
 
17459
  grep -v '^ *+' conftest.er1 >conftest.err
 
17460
  rm -f conftest.er1
 
17461
  cat conftest.err >&5
 
17462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17463
  (exit $ac_status); } &&
 
17464
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17466
  (eval $ac_try) 2>&5
 
17467
  ac_status=$?
 
17468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17469
  (exit $ac_status); }; } &&
 
17470
         { ac_try='test -s conftest$ac_exeext'
 
17471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17472
  (eval $ac_try) 2>&5
 
17473
  ac_status=$?
 
17474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17475
  (exit $ac_status); }; }; then
 
17476
  ac_cv_lib_dl_dlopen=yes
 
17477
else
 
17478
  echo "$as_me: failed program was:" >&5
 
17479
sed 's/^/| /' conftest.$ac_ext >&5
 
17480
 
 
17481
ac_cv_lib_dl_dlopen=no
 
17482
fi
 
17483
rm -f conftest.err conftest.$ac_objext \
 
17484
      conftest$ac_exeext conftest.$ac_ext
 
17485
LIBS=$ac_check_lib_save_LIBS
 
17486
fi
 
17487
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17488
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17489
if test $ac_cv_lib_dl_dlopen = yes; then
 
17490
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17491
else
 
17492
 
 
17493
    lt_cv_dlopen="dyld"
 
17494
    lt_cv_dlopen_libs=
 
17495
    lt_cv_dlopen_self=yes
 
17496
 
 
17497
fi
 
17498
 
 
17499
   ;;
 
17500
 
 
17501
  *)
 
17502
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17503
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17504
if test "${ac_cv_func_shl_load+set}" = set; then
 
17505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17506
else
 
17507
  cat >conftest.$ac_ext <<_ACEOF
 
17508
/* confdefs.h.  */
 
17509
_ACEOF
 
17510
cat confdefs.h >>conftest.$ac_ext
 
17511
cat >>conftest.$ac_ext <<_ACEOF
 
17512
/* end confdefs.h.  */
 
17513
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17514
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17515
#define shl_load innocuous_shl_load
 
17516
 
 
17517
/* System header to define __stub macros and hopefully few prototypes,
 
17518
    which can conflict with char shl_load (); below.
 
17519
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17520
    <limits.h> exists even on freestanding compilers.  */
 
17521
 
 
17522
#ifdef __STDC__
 
17523
# include <limits.h>
 
17524
#else
 
17525
# include <assert.h>
 
17526
#endif
 
17527
 
 
17528
#undef shl_load
 
17529
 
 
17530
/* Override any gcc2 internal prototype to avoid an error.  */
 
17531
#ifdef __cplusplus
 
17532
extern "C"
 
17533
{
 
17534
#endif
 
17535
/* We use char because int might match the return type of a gcc2
 
17536
   builtin and then its argument prototype would still apply.  */
 
17537
char shl_load ();
 
17538
/* The GNU C library defines this for functions which it implements
 
17539
    to always fail with ENOSYS.  Some functions are actually named
 
17540
    something starting with __ and the normal name is an alias.  */
 
17541
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17542
choke me
 
17543
#else
 
17544
char (*f) () = shl_load;
 
17545
#endif
 
17546
#ifdef __cplusplus
 
17547
}
 
17548
#endif
 
17549
 
 
17550
int
 
17551
main ()
 
17552
{
 
17553
return f != shl_load;
 
17554
  ;
 
17555
  return 0;
 
17556
}
 
17557
_ACEOF
 
17558
rm -f conftest.$ac_objext conftest$ac_exeext
 
17559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17560
  (eval $ac_link) 2>conftest.er1
 
17561
  ac_status=$?
 
17562
  grep -v '^ *+' conftest.er1 >conftest.err
 
17563
  rm -f conftest.er1
 
17564
  cat conftest.err >&5
 
17565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17566
  (exit $ac_status); } &&
 
17567
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17569
  (eval $ac_try) 2>&5
 
17570
  ac_status=$?
 
17571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17572
  (exit $ac_status); }; } &&
 
17573
         { ac_try='test -s conftest$ac_exeext'
 
17574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17575
  (eval $ac_try) 2>&5
 
17576
  ac_status=$?
 
17577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17578
  (exit $ac_status); }; }; then
 
17579
  ac_cv_func_shl_load=yes
 
17580
else
 
17581
  echo "$as_me: failed program was:" >&5
 
17582
sed 's/^/| /' conftest.$ac_ext >&5
 
17583
 
 
17584
ac_cv_func_shl_load=no
 
17585
fi
 
17586
rm -f conftest.err conftest.$ac_objext \
 
17587
      conftest$ac_exeext conftest.$ac_ext
 
17588
fi
 
17589
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17590
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17591
if test $ac_cv_func_shl_load = yes; then
 
17592
  lt_cv_dlopen="shl_load"
 
17593
else
 
17594
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17595
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17596
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17597
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17598
else
 
17599
  ac_check_lib_save_LIBS=$LIBS
 
17600
LIBS="-ldld  $LIBS"
 
17601
cat >conftest.$ac_ext <<_ACEOF
 
17602
/* confdefs.h.  */
 
17603
_ACEOF
 
17604
cat confdefs.h >>conftest.$ac_ext
 
17605
cat >>conftest.$ac_ext <<_ACEOF
 
17606
/* end confdefs.h.  */
 
17607
 
 
17608
/* Override any gcc2 internal prototype to avoid an error.  */
 
17609
#ifdef __cplusplus
 
17610
extern "C"
 
17611
#endif
 
17612
/* We use char because int might match the return type of a gcc2
 
17613
   builtin and then its argument prototype would still apply.  */
 
17614
char shl_load ();
 
17615
int
 
17616
main ()
 
17617
{
 
17618
shl_load ();
 
17619
  ;
 
17620
  return 0;
 
17621
}
 
17622
_ACEOF
 
17623
rm -f conftest.$ac_objext conftest$ac_exeext
 
17624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17625
  (eval $ac_link) 2>conftest.er1
 
17626
  ac_status=$?
 
17627
  grep -v '^ *+' conftest.er1 >conftest.err
 
17628
  rm -f conftest.er1
 
17629
  cat conftest.err >&5
 
17630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17631
  (exit $ac_status); } &&
 
17632
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17634
  (eval $ac_try) 2>&5
 
17635
  ac_status=$?
 
17636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17637
  (exit $ac_status); }; } &&
 
17638
         { ac_try='test -s conftest$ac_exeext'
 
17639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17640
  (eval $ac_try) 2>&5
 
17641
  ac_status=$?
 
17642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17643
  (exit $ac_status); }; }; then
 
17644
  ac_cv_lib_dld_shl_load=yes
 
17645
else
 
17646
  echo "$as_me: failed program was:" >&5
 
17647
sed 's/^/| /' conftest.$ac_ext >&5
 
17648
 
 
17649
ac_cv_lib_dld_shl_load=no
 
17650
fi
 
17651
rm -f conftest.err conftest.$ac_objext \
 
17652
      conftest$ac_exeext conftest.$ac_ext
 
17653
LIBS=$ac_check_lib_save_LIBS
 
17654
fi
 
17655
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
17656
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
17657
if test $ac_cv_lib_dld_shl_load = yes; then
 
17658
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
17659
else
 
17660
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
17661
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
17662
if test "${ac_cv_func_dlopen+set}" = set; then
 
17663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17664
else
 
17665
  cat >conftest.$ac_ext <<_ACEOF
 
17666
/* confdefs.h.  */
 
17667
_ACEOF
 
17668
cat confdefs.h >>conftest.$ac_ext
 
17669
cat >>conftest.$ac_ext <<_ACEOF
 
17670
/* end confdefs.h.  */
 
17671
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
17672
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17673
#define dlopen innocuous_dlopen
 
17674
 
 
17675
/* System header to define __stub macros and hopefully few prototypes,
 
17676
    which can conflict with char dlopen (); below.
 
17677
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17678
    <limits.h> exists even on freestanding compilers.  */
 
17679
 
 
17680
#ifdef __STDC__
 
17681
# include <limits.h>
 
17682
#else
 
17683
# include <assert.h>
 
17684
#endif
 
17685
 
 
17686
#undef dlopen
 
17687
 
 
17688
/* Override any gcc2 internal prototype to avoid an error.  */
 
17689
#ifdef __cplusplus
 
17690
extern "C"
 
17691
{
 
17692
#endif
 
17693
/* We use char because int might match the return type of a gcc2
 
17694
   builtin and then its argument prototype would still apply.  */
 
17695
char dlopen ();
 
17696
/* The GNU C library defines this for functions which it implements
 
17697
    to always fail with ENOSYS.  Some functions are actually named
 
17698
    something starting with __ and the normal name is an alias.  */
 
17699
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
17700
choke me
 
17701
#else
 
17702
char (*f) () = dlopen;
 
17703
#endif
 
17704
#ifdef __cplusplus
 
17705
}
 
17706
#endif
 
17707
 
 
17708
int
 
17709
main ()
 
17710
{
 
17711
return f != dlopen;
 
17712
  ;
 
17713
  return 0;
 
17714
}
 
17715
_ACEOF
 
17716
rm -f conftest.$ac_objext conftest$ac_exeext
 
17717
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17718
  (eval $ac_link) 2>conftest.er1
 
17719
  ac_status=$?
 
17720
  grep -v '^ *+' conftest.er1 >conftest.err
 
17721
  rm -f conftest.er1
 
17722
  cat conftest.err >&5
 
17723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17724
  (exit $ac_status); } &&
 
17725
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17727
  (eval $ac_try) 2>&5
 
17728
  ac_status=$?
 
17729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17730
  (exit $ac_status); }; } &&
 
17731
         { ac_try='test -s conftest$ac_exeext'
 
17732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17733
  (eval $ac_try) 2>&5
 
17734
  ac_status=$?
 
17735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17736
  (exit $ac_status); }; }; then
 
17737
  ac_cv_func_dlopen=yes
 
17738
else
 
17739
  echo "$as_me: failed program was:" >&5
 
17740
sed 's/^/| /' conftest.$ac_ext >&5
 
17741
 
 
17742
ac_cv_func_dlopen=no
 
17743
fi
 
17744
rm -f conftest.err conftest.$ac_objext \
 
17745
      conftest$ac_exeext conftest.$ac_ext
 
17746
fi
 
17747
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
17748
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
17749
if test $ac_cv_func_dlopen = yes; then
 
17750
  lt_cv_dlopen="dlopen"
 
17751
else
 
17752
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17753
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17754
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17755
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17756
else
 
17757
  ac_check_lib_save_LIBS=$LIBS
 
17758
LIBS="-ldl  $LIBS"
 
17759
cat >conftest.$ac_ext <<_ACEOF
 
17760
/* confdefs.h.  */
 
17761
_ACEOF
 
17762
cat confdefs.h >>conftest.$ac_ext
 
17763
cat >>conftest.$ac_ext <<_ACEOF
 
17764
/* end confdefs.h.  */
 
17765
 
 
17766
/* Override any gcc2 internal prototype to avoid an error.  */
 
17767
#ifdef __cplusplus
 
17768
extern "C"
 
17769
#endif
 
17770
/* We use char because int might match the return type of a gcc2
 
17771
   builtin and then its argument prototype would still apply.  */
 
17772
char dlopen ();
 
17773
int
 
17774
main ()
 
17775
{
 
17776
dlopen ();
 
17777
  ;
 
17778
  return 0;
 
17779
}
 
17780
_ACEOF
 
17781
rm -f conftest.$ac_objext conftest$ac_exeext
 
17782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17783
  (eval $ac_link) 2>conftest.er1
 
17784
  ac_status=$?
 
17785
  grep -v '^ *+' conftest.er1 >conftest.err
 
17786
  rm -f conftest.er1
 
17787
  cat conftest.err >&5
 
17788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17789
  (exit $ac_status); } &&
 
17790
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17792
  (eval $ac_try) 2>&5
 
17793
  ac_status=$?
 
17794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17795
  (exit $ac_status); }; } &&
 
17796
         { ac_try='test -s conftest$ac_exeext'
 
17797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17798
  (eval $ac_try) 2>&5
 
17799
  ac_status=$?
 
17800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17801
  (exit $ac_status); }; }; then
 
17802
  ac_cv_lib_dl_dlopen=yes
 
17803
else
 
17804
  echo "$as_me: failed program was:" >&5
 
17805
sed 's/^/| /' conftest.$ac_ext >&5
 
17806
 
 
17807
ac_cv_lib_dl_dlopen=no
 
17808
fi
 
17809
rm -f conftest.err conftest.$ac_objext \
 
17810
      conftest$ac_exeext conftest.$ac_ext
 
17811
LIBS=$ac_check_lib_save_LIBS
 
17812
fi
 
17813
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17814
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17815
if test $ac_cv_lib_dl_dlopen = yes; then
 
17816
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17817
else
 
17818
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
17819
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
17820
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
17821
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17822
else
 
17823
  ac_check_lib_save_LIBS=$LIBS
 
17824
LIBS="-lsvld  $LIBS"
 
17825
cat >conftest.$ac_ext <<_ACEOF
 
17826
/* confdefs.h.  */
 
17827
_ACEOF
 
17828
cat confdefs.h >>conftest.$ac_ext
 
17829
cat >>conftest.$ac_ext <<_ACEOF
 
17830
/* end confdefs.h.  */
 
17831
 
 
17832
/* Override any gcc2 internal prototype to avoid an error.  */
 
17833
#ifdef __cplusplus
 
17834
extern "C"
 
17835
#endif
 
17836
/* We use char because int might match the return type of a gcc2
 
17837
   builtin and then its argument prototype would still apply.  */
 
17838
char dlopen ();
 
17839
int
 
17840
main ()
 
17841
{
 
17842
dlopen ();
 
17843
  ;
 
17844
  return 0;
 
17845
}
 
17846
_ACEOF
 
17847
rm -f conftest.$ac_objext conftest$ac_exeext
 
17848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17849
  (eval $ac_link) 2>conftest.er1
 
17850
  ac_status=$?
 
17851
  grep -v '^ *+' conftest.er1 >conftest.err
 
17852
  rm -f conftest.er1
 
17853
  cat conftest.err >&5
 
17854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17855
  (exit $ac_status); } &&
 
17856
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17858
  (eval $ac_try) 2>&5
 
17859
  ac_status=$?
 
17860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17861
  (exit $ac_status); }; } &&
 
17862
         { ac_try='test -s conftest$ac_exeext'
 
17863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17864
  (eval $ac_try) 2>&5
 
17865
  ac_status=$?
 
17866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17867
  (exit $ac_status); }; }; then
 
17868
  ac_cv_lib_svld_dlopen=yes
 
17869
else
 
17870
  echo "$as_me: failed program was:" >&5
 
17871
sed 's/^/| /' conftest.$ac_ext >&5
 
17872
 
 
17873
ac_cv_lib_svld_dlopen=no
 
17874
fi
 
17875
rm -f conftest.err conftest.$ac_objext \
 
17876
      conftest$ac_exeext conftest.$ac_ext
 
17877
LIBS=$ac_check_lib_save_LIBS
 
17878
fi
 
17879
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17880
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17881
if test $ac_cv_lib_svld_dlopen = yes; then
 
17882
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17883
else
 
17884
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17885
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17886
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17888
else
 
17889
  ac_check_lib_save_LIBS=$LIBS
 
17890
LIBS="-ldld  $LIBS"
 
17891
cat >conftest.$ac_ext <<_ACEOF
 
17892
/* confdefs.h.  */
 
17893
_ACEOF
 
17894
cat confdefs.h >>conftest.$ac_ext
 
17895
cat >>conftest.$ac_ext <<_ACEOF
 
17896
/* end confdefs.h.  */
 
17897
 
 
17898
/* Override any gcc2 internal prototype to avoid an error.  */
 
17899
#ifdef __cplusplus
 
17900
extern "C"
 
17901
#endif
 
17902
/* We use char because int might match the return type of a gcc2
 
17903
   builtin and then its argument prototype would still apply.  */
 
17904
char dld_link ();
 
17905
int
 
17906
main ()
 
17907
{
 
17908
dld_link ();
 
17909
  ;
 
17910
  return 0;
 
17911
}
 
17912
_ACEOF
 
17913
rm -f conftest.$ac_objext conftest$ac_exeext
 
17914
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17915
  (eval $ac_link) 2>conftest.er1
 
17916
  ac_status=$?
 
17917
  grep -v '^ *+' conftest.er1 >conftest.err
 
17918
  rm -f conftest.er1
 
17919
  cat conftest.err >&5
 
17920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17921
  (exit $ac_status); } &&
 
17922
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17924
  (eval $ac_try) 2>&5
 
17925
  ac_status=$?
 
17926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17927
  (exit $ac_status); }; } &&
 
17928
         { ac_try='test -s conftest$ac_exeext'
 
17929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17930
  (eval $ac_try) 2>&5
 
17931
  ac_status=$?
 
17932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17933
  (exit $ac_status); }; }; then
 
17934
  ac_cv_lib_dld_dld_link=yes
 
17935
else
 
17936
  echo "$as_me: failed program was:" >&5
 
17937
sed 's/^/| /' conftest.$ac_ext >&5
 
17938
 
 
17939
ac_cv_lib_dld_dld_link=no
 
17940
fi
 
17941
rm -f conftest.err conftest.$ac_objext \
 
17942
      conftest$ac_exeext conftest.$ac_ext
 
17943
LIBS=$ac_check_lib_save_LIBS
 
17944
fi
 
17945
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17946
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17947
if test $ac_cv_lib_dld_dld_link = yes; then
 
17948
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17949
fi
 
17950
 
 
17951
 
 
17952
fi
 
17953
 
 
17954
 
 
17955
fi
 
17956
 
 
17957
 
 
17958
fi
 
17959
 
 
17960
 
 
17961
fi
 
17962
 
 
17963
 
 
17964
fi
 
17965
 
 
17966
    ;;
 
17967
  esac
 
17968
 
 
17969
  if test "x$lt_cv_dlopen" != xno; then
 
17970
    enable_dlopen=yes
 
17971
  else
 
17972
    enable_dlopen=no
 
17973
  fi
 
17974
 
 
17975
  case $lt_cv_dlopen in
 
17976
  dlopen)
 
17977
    save_CPPFLAGS="$CPPFLAGS"
 
17978
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17979
 
 
17980
    save_LDFLAGS="$LDFLAGS"
 
17981
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17982
 
 
17983
    save_LIBS="$LIBS"
 
17984
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17985
 
 
17986
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17987
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
17988
if test "${lt_cv_dlopen_self+set}" = set; then
 
17989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17990
else
 
17991
          if test "$cross_compiling" = yes; then :
 
17992
  lt_cv_dlopen_self=cross
 
17993
else
 
17994
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17995
  lt_status=$lt_dlunknown
 
17996
  cat > conftest.$ac_ext <<EOF
 
17997
#line 17997 "configure"
 
17998
#include "confdefs.h"
 
17999
 
 
18000
#if HAVE_DLFCN_H
 
18001
#include <dlfcn.h>
 
18002
#endif
 
18003
 
 
18004
#include <stdio.h>
 
18005
 
 
18006
#ifdef RTLD_GLOBAL
 
18007
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18008
#else
 
18009
#  ifdef DL_GLOBAL
 
18010
#    define LT_DLGLOBAL         DL_GLOBAL
 
18011
#  else
 
18012
#    define LT_DLGLOBAL         0
 
18013
#  endif
 
18014
#endif
 
18015
 
 
18016
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18017
   find out it does not work in some platform. */
 
18018
#ifndef LT_DLLAZY_OR_NOW
 
18019
#  ifdef RTLD_LAZY
 
18020
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18021
#  else
 
18022
#    ifdef DL_LAZY
 
18023
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18024
#    else
 
18025
#      ifdef RTLD_NOW
 
18026
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18027
#      else
 
18028
#        ifdef DL_NOW
 
18029
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18030
#        else
 
18031
#          define LT_DLLAZY_OR_NOW      0
 
18032
#        endif
 
18033
#      endif
 
18034
#    endif
 
18035
#  endif
 
18036
#endif
 
18037
 
 
18038
#ifdef __cplusplus
 
18039
extern "C" void exit (int);
 
18040
#endif
 
18041
 
 
18042
void fnord() { int i=42;}
 
18043
int main ()
 
18044
{
 
18045
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18046
  int status = $lt_dlunknown;
 
18047
 
 
18048
  if (self)
 
18049
    {
 
18050
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18051
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18052
      /* dlclose (self); */
 
18053
    }
 
18054
 
 
18055
    exit (status);
 
18056
}
 
18057
EOF
 
18058
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18059
  (eval $ac_link) 2>&5
 
18060
  ac_status=$?
 
18061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18062
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18063
    (./conftest; exit; ) 2>/dev/null
 
18064
    lt_status=$?
 
18065
    case x$lt_status in
 
18066
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18067
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18068
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18069
    esac
 
18070
  else :
 
18071
    # compilation failed
 
18072
    lt_cv_dlopen_self=no
 
18073
  fi
 
18074
fi
 
18075
rm -fr conftest*
 
18076
 
 
18077
 
 
18078
fi
 
18079
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18080
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18081
 
 
18082
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18083
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18084
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18085
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18086
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18088
else
 
18089
          if test "$cross_compiling" = yes; then :
 
18090
  lt_cv_dlopen_self_static=cross
 
18091
else
 
18092
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18093
  lt_status=$lt_dlunknown
 
18094
  cat > conftest.$ac_ext <<EOF
 
18095
#line 18095 "configure"
 
18096
#include "confdefs.h"
 
18097
 
 
18098
#if HAVE_DLFCN_H
 
18099
#include <dlfcn.h>
 
18100
#endif
 
18101
 
 
18102
#include <stdio.h>
 
18103
 
 
18104
#ifdef RTLD_GLOBAL
 
18105
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18106
#else
 
18107
#  ifdef DL_GLOBAL
 
18108
#    define LT_DLGLOBAL         DL_GLOBAL
 
18109
#  else
 
18110
#    define LT_DLGLOBAL         0
 
18111
#  endif
 
18112
#endif
 
18113
 
 
18114
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18115
   find out it does not work in some platform. */
 
18116
#ifndef LT_DLLAZY_OR_NOW
 
18117
#  ifdef RTLD_LAZY
 
18118
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18119
#  else
 
18120
#    ifdef DL_LAZY
 
18121
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18122
#    else
 
18123
#      ifdef RTLD_NOW
 
18124
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18125
#      else
 
18126
#        ifdef DL_NOW
 
18127
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18128
#        else
 
18129
#          define LT_DLLAZY_OR_NOW      0
 
18130
#        endif
 
18131
#      endif
 
18132
#    endif
 
18133
#  endif
 
18134
#endif
 
18135
 
 
18136
#ifdef __cplusplus
 
18137
extern "C" void exit (int);
 
18138
#endif
 
18139
 
 
18140
void fnord() { int i=42;}
 
18141
int main ()
 
18142
{
 
18143
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18144
  int status = $lt_dlunknown;
 
18145
 
 
18146
  if (self)
 
18147
    {
 
18148
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18149
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18150
      /* dlclose (self); */
 
18151
    }
 
18152
 
 
18153
    exit (status);
 
18154
}
 
18155
EOF
 
18156
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18157
  (eval $ac_link) 2>&5
 
18158
  ac_status=$?
 
18159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18160
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18161
    (./conftest; exit; ) 2>/dev/null
 
18162
    lt_status=$?
 
18163
    case x$lt_status in
 
18164
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18165
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18166
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18167
    esac
 
18168
  else :
 
18169
    # compilation failed
 
18170
    lt_cv_dlopen_self_static=no
 
18171
  fi
 
18172
fi
 
18173
rm -fr conftest*
 
18174
 
 
18175
 
 
18176
fi
 
18177
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18178
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18179
    fi
 
18180
 
 
18181
    CPPFLAGS="$save_CPPFLAGS"
 
18182
    LDFLAGS="$save_LDFLAGS"
 
18183
    LIBS="$save_LIBS"
 
18184
    ;;
 
18185
  esac
 
18186
 
 
18187
  case $lt_cv_dlopen_self in
 
18188
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18189
  *) enable_dlopen_self=unknown ;;
 
18190
  esac
 
18191
 
 
18192
  case $lt_cv_dlopen_self_static in
 
18193
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18194
  *) enable_dlopen_self_static=unknown ;;
 
18195
  esac
 
18196
fi
 
18197
 
 
18198
 
 
18199
# The else clause should only fire when bootstrapping the
 
18200
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18201
# with your package, and you will get complaints that there are
 
18202
# no rules to generate ltmain.sh.
 
18203
if test -f "$ltmain"; then
 
18204
  # See if we are running on zsh, and set the options which allow our commands through
 
18205
  # without removal of \ escapes.
 
18206
  if test -n "${ZSH_VERSION+set}" ; then
 
18207
    setopt NO_GLOB_SUBST
 
18208
  fi
 
18209
  # Now quote all the things that may contain metacharacters while being
 
18210
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18211
  # variables and quote the copies for generation of the libtool script.
 
18212
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18213
    SED SHELL STRIP \
 
18214
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18215
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18216
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18217
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18218
    lt_cv_sys_global_symbol_to_c_name_address \
 
18219
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18220
    old_postinstall_cmds old_postuninstall_cmds \
 
18221
    compiler_GCJ \
 
18222
    CC_GCJ \
 
18223
    LD_GCJ \
 
18224
    lt_prog_compiler_wl_GCJ \
 
18225
    lt_prog_compiler_pic_GCJ \
 
18226
    lt_prog_compiler_static_GCJ \
 
18227
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18228
    export_dynamic_flag_spec_GCJ \
 
18229
    thread_safe_flag_spec_GCJ \
 
18230
    whole_archive_flag_spec_GCJ \
 
18231
    enable_shared_with_static_runtimes_GCJ \
 
18232
    old_archive_cmds_GCJ \
 
18233
    old_archive_from_new_cmds_GCJ \
 
18234
    predep_objects_GCJ \
 
18235
    postdep_objects_GCJ \
 
18236
    predeps_GCJ \
 
18237
    postdeps_GCJ \
 
18238
    compiler_lib_search_path_GCJ \
 
18239
    archive_cmds_GCJ \
 
18240
    archive_expsym_cmds_GCJ \
 
18241
    postinstall_cmds_GCJ \
 
18242
    postuninstall_cmds_GCJ \
 
18243
    old_archive_from_expsyms_cmds_GCJ \
 
18244
    allow_undefined_flag_GCJ \
 
18245
    no_undefined_flag_GCJ \
 
18246
    export_symbols_cmds_GCJ \
 
18247
    hardcode_libdir_flag_spec_GCJ \
 
18248
    hardcode_libdir_flag_spec_ld_GCJ \
 
18249
    hardcode_libdir_separator_GCJ \
 
18250
    hardcode_automatic_GCJ \
 
18251
    module_cmds_GCJ \
 
18252
    module_expsym_cmds_GCJ \
 
18253
    lt_cv_prog_compiler_c_o_GCJ \
 
18254
    exclude_expsyms_GCJ \
 
18255
    include_expsyms_GCJ; do
 
18256
 
 
18257
    case $var in
 
18258
    old_archive_cmds_GCJ | \
 
18259
    old_archive_from_new_cmds_GCJ | \
 
18260
    archive_cmds_GCJ | \
 
18261
    archive_expsym_cmds_GCJ | \
 
18262
    module_cmds_GCJ | \
 
18263
    module_expsym_cmds_GCJ | \
 
18264
    old_archive_from_expsyms_cmds_GCJ | \
 
18265
    export_symbols_cmds_GCJ | \
 
18266
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18267
    postinstall_cmds | postuninstall_cmds | \
 
18268
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18269
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18270
      # Double-quote double-evaled strings.
 
18271
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18272
      ;;
 
18273
    *)
 
18274
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18275
      ;;
 
18276
    esac
 
18277
  done
 
18278
 
 
18279
  case $lt_echo in
 
18280
  *'\$0 --fallback-echo"')
 
18281
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18282
    ;;
 
18283
  esac
 
18284
 
 
18285
cfgfile="$ofile"
 
18286
 
 
18287
  cat <<__EOF__ >> "$cfgfile"
 
18288
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18289
 
 
18290
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18291
 
 
18292
# Shell to use when invoking shell scripts.
 
18293
SHELL=$lt_SHELL
 
18294
 
 
18295
# Whether or not to build shared libraries.
 
18296
build_libtool_libs=$enable_shared
 
18297
 
 
18298
# Whether or not to build static libraries.
 
18299
build_old_libs=$enable_static
 
18300
 
 
18301
# Whether or not to add -lc for building shared libraries.
 
18302
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18303
 
 
18304
# Whether or not to disallow shared libs when runtime libs are static
 
18305
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18306
 
 
18307
# Whether or not to optimize for fast installation.
 
18308
fast_install=$enable_fast_install
 
18309
 
 
18310
# The host system.
 
18311
host_alias=$host_alias
 
18312
host=$host
 
18313
 
 
18314
# An echo program that does not interpret backslashes.
 
18315
echo=$lt_echo
 
18316
 
 
18317
# The archiver.
 
18318
AR=$lt_AR
 
18319
AR_FLAGS=$lt_AR_FLAGS
 
18320
 
 
18321
# A C compiler.
 
18322
LTCC=$lt_LTCC
 
18323
 
 
18324
# A language-specific compiler.
 
18325
CC=$lt_compiler_GCJ
 
18326
 
 
18327
# Is the compiler the GNU C compiler?
 
18328
with_gcc=$GCC_GCJ
 
18329
 
 
18330
# An ERE matcher.
 
18331
EGREP=$lt_EGREP
 
18332
 
 
18333
# The linker used to build libraries.
 
18334
LD=$lt_LD_GCJ
 
18335
 
 
18336
# Whether we need hard or soft links.
 
18337
LN_S=$lt_LN_S
 
18338
 
 
18339
# A BSD-compatible nm program.
 
18340
NM=$lt_NM
 
18341
 
 
18342
# A symbol stripping program
 
18343
STRIP=$lt_STRIP
 
18344
 
 
18345
# Used to examine libraries when file_magic_cmd begins "file"
 
18346
MAGIC_CMD=$MAGIC_CMD
 
18347
 
 
18348
# Used on cygwin: DLL creation program.
 
18349
DLLTOOL="$DLLTOOL"
 
18350
 
 
18351
# Used on cygwin: object dumper.
 
18352
OBJDUMP="$OBJDUMP"
 
18353
 
 
18354
# Used on cygwin: assembler.
 
18355
AS="$AS"
 
18356
 
 
18357
# The name of the directory that contains temporary libtool files.
 
18358
objdir=$objdir
 
18359
 
 
18360
# How to create reloadable object files.
 
18361
reload_flag=$lt_reload_flag
 
18362
reload_cmds=$lt_reload_cmds
 
18363
 
 
18364
# How to pass a linker flag through the compiler.
 
18365
wl=$lt_lt_prog_compiler_wl_GCJ
 
18366
 
 
18367
# Object file suffix (normally "o").
 
18368
objext="$ac_objext"
 
18369
 
 
18370
# Old archive suffix (normally "a").
 
18371
libext="$libext"
 
18372
 
 
18373
# Shared library suffix (normally ".so").
 
18374
shrext_cmds='$shrext_cmds'
 
18375
 
 
18376
# Executable file suffix (normally "").
 
18377
exeext="$exeext"
 
18378
 
 
18379
# Additional compiler flags for building library objects.
 
18380
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18381
pic_mode=$pic_mode
 
18382
 
 
18383
# What is the maximum length of a command?
 
18384
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18385
 
 
18386
# Does compiler simultaneously support -c and -o options?
 
18387
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18388
 
 
18389
# Must we lock files when doing compilation ?
 
18390
need_locks=$lt_need_locks
 
18391
 
 
18392
# Do we need the lib prefix for modules?
 
18393
need_lib_prefix=$need_lib_prefix
 
18394
 
 
18395
# Do we need a version for libraries?
 
18396
need_version=$need_version
 
18397
 
 
18398
# Whether dlopen is supported.
 
18399
dlopen_support=$enable_dlopen
 
18400
 
 
18401
# Whether dlopen of programs is supported.
 
18402
dlopen_self=$enable_dlopen_self
 
18403
 
 
18404
# Whether dlopen of statically linked programs is supported.
 
18405
dlopen_self_static=$enable_dlopen_self_static
 
18406
 
 
18407
# Compiler flag to prevent dynamic linking.
 
18408
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18409
 
 
18410
# Compiler flag to turn off builtin functions.
 
18411
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18412
 
 
18413
# Compiler flag to allow reflexive dlopens.
 
18414
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18415
 
 
18416
# Compiler flag to generate shared objects directly from archives.
 
18417
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18418
 
 
18419
# Compiler flag to generate thread-safe objects.
 
18420
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18421
 
 
18422
# Library versioning type.
 
18423
version_type=$version_type
 
18424
 
 
18425
# Format of library name prefix.
 
18426
libname_spec=$lt_libname_spec
 
18427
 
 
18428
# List of archive names.  First name is the real one, the rest are links.
 
18429
# The last name is the one that the linker finds with -lNAME.
 
18430
library_names_spec=$lt_library_names_spec
 
18431
 
 
18432
# The coded name of the library, if different from the real name.
 
18433
soname_spec=$lt_soname_spec
 
18434
 
 
18435
# Commands used to build and install an old-style archive.
 
18436
RANLIB=$lt_RANLIB
 
18437
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18438
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18439
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18440
 
 
18441
# Create an old-style archive from a shared archive.
 
18442
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18443
 
 
18444
# Create a temporary old-style archive to link instead of a shared archive.
 
18445
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18446
 
 
18447
# Commands used to build and install a shared archive.
 
18448
archive_cmds=$lt_archive_cmds_GCJ
 
18449
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18450
postinstall_cmds=$lt_postinstall_cmds
 
18451
postuninstall_cmds=$lt_postuninstall_cmds
 
18452
 
 
18453
# Commands used to build a loadable module (assumed same as above if empty)
 
18454
module_cmds=$lt_module_cmds_GCJ
 
18455
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18456
 
 
18457
# Commands to strip libraries.
 
18458
old_striplib=$lt_old_striplib
 
18459
striplib=$lt_striplib
 
18460
 
 
18461
# Dependencies to place before the objects being linked to create a
 
18462
# shared library.
 
18463
predep_objects=$lt_predep_objects_GCJ
 
18464
 
 
18465
# Dependencies to place after the objects being linked to create a
 
18466
# shared library.
 
18467
postdep_objects=$lt_postdep_objects_GCJ
 
18468
 
 
18469
# Dependencies to place before the objects being linked to create a
 
18470
# shared library.
 
18471
predeps=$lt_predeps_GCJ
 
18472
 
 
18473
# Dependencies to place after the objects being linked to create a
 
18474
# shared library.
 
18475
postdeps=$lt_postdeps_GCJ
 
18476
 
 
18477
# The library search path used internally by the compiler when linking
 
18478
# a shared library.
 
18479
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18480
 
 
18481
# Method to check whether dependent libraries are shared objects.
 
18482
deplibs_check_method=$lt_deplibs_check_method
 
18483
 
 
18484
# Command to use when deplibs_check_method == file_magic.
 
18485
file_magic_cmd=$lt_file_magic_cmd
 
18486
 
 
18487
# Flag that allows shared libraries with undefined symbols to be built.
 
18488
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18489
 
 
18490
# Flag that forces no undefined symbols.
 
18491
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18492
 
 
18493
# Commands used to finish a libtool library installation in a directory.
 
18494
finish_cmds=$lt_finish_cmds
 
18495
 
 
18496
# Same as above, but a single script fragment to be evaled but not shown.
 
18497
finish_eval=$lt_finish_eval
 
18498
 
 
18499
# Take the output of nm and produce a listing of raw symbols and C names.
 
18500
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18501
 
 
18502
# Transform the output of nm in a proper C declaration
 
18503
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18504
 
 
18505
# Transform the output of nm in a C name address pair
 
18506
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18507
 
 
18508
# This is the shared library runtime path variable.
 
18509
runpath_var=$runpath_var
 
18510
 
 
18511
# This is the shared library path variable.
 
18512
shlibpath_var=$shlibpath_var
 
18513
 
 
18514
# Is shlibpath searched before the hard-coded library search path?
 
18515
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18516
 
 
18517
# How to hardcode a shared library path into an executable.
 
18518
hardcode_action=$hardcode_action_GCJ
 
18519
 
 
18520
# Whether we should hardcode library paths into libraries.
 
18521
hardcode_into_libs=$hardcode_into_libs
 
18522
 
 
18523
# Flag to hardcode \$libdir into a binary during linking.
 
18524
# This must work even if \$libdir does not exist.
 
18525
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18526
 
 
18527
# If ld is used when linking, flag to hardcode \$libdir into
 
18528
# a binary during linking. This must work even if \$libdir does
 
18529
# not exist.
 
18530
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18531
 
 
18532
# Whether we need a single -rpath flag with a separated argument.
 
18533
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18534
 
 
18535
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18536
# resulting binary.
 
18537
hardcode_direct=$hardcode_direct_GCJ
 
18538
 
 
18539
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18540
# resulting binary.
 
18541
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18542
 
 
18543
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18544
# the resulting binary.
 
18545
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18546
 
 
18547
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18548
# and all subsequent libraries and executables linked against it.
 
18549
hardcode_automatic=$hardcode_automatic_GCJ
 
18550
 
 
18551
# Variables whose values should be saved in libtool wrapper scripts and
 
18552
# restored at relink time.
 
18553
variables_saved_for_relink="$variables_saved_for_relink"
 
18554
 
 
18555
# Whether libtool must link a program against all its dependency libraries.
 
18556
link_all_deplibs=$link_all_deplibs_GCJ
 
18557
 
 
18558
# Compile-time system search path for libraries
 
18559
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18560
 
 
18561
# Run-time system search path for libraries
 
18562
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18563
 
 
18564
# Fix the shell variable \$srcfile for the compiler.
 
18565
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18566
 
 
18567
# Set to yes if exported symbols are required.
 
18568
always_export_symbols=$always_export_symbols_GCJ
 
18569
 
 
18570
# The commands to list exported symbols.
 
18571
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18572
 
 
18573
# The commands to extract the exported symbol list from a shared archive.
 
18574
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18575
 
 
18576
# Symbols that should not be listed in the preloaded symbols.
 
18577
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18578
 
 
18579
# Symbols that must always be exported.
 
18580
include_expsyms=$lt_include_expsyms_GCJ
 
18581
 
 
18582
# ### END LIBTOOL TAG CONFIG: $tagname
 
18583
 
 
18584
__EOF__
 
18585
 
 
18586
 
 
18587
else
 
18588
  # If there is no Makefile yet, we rely on a make rule to execute
 
18589
  # `config.status --recheck' to rerun these tests and create the
 
18590
  # libtool script then.
 
18591
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18592
  if test -f "$ltmain_in"; then
 
18593
    test -f Makefile && make "$ltmain"
 
18594
  fi
 
18595
fi
 
18596
 
 
18597
 
 
18598
ac_ext=c
 
18599
ac_cpp='$CPP $CPPFLAGS'
 
18600
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18601
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18602
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18603
 
 
18604
CC="$lt_save_CC"
 
18605
 
 
18606
        else
 
18607
          tagname=""
 
18608
        fi
 
18609
        ;;
 
18610
 
 
18611
      RC)
 
18612
 
 
18613
 
 
18614
 
 
18615
# Source file extension for RC test sources.
 
18616
ac_ext=rc
 
18617
 
 
18618
# Object file extension for compiled RC test sources.
 
18619
objext=o
 
18620
objext_RC=$objext
 
18621
 
 
18622
# Code to be used in simple compile tests
 
18623
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18624
 
 
18625
# Code to be used in simple link tests
 
18626
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18627
 
 
18628
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18629
 
 
18630
# If no C compiler was specified, use CC.
 
18631
LTCC=${LTCC-"$CC"}
 
18632
 
 
18633
# Allow CC to be a program name with arguments.
 
18634
compiler=$CC
 
18635
 
 
18636
 
 
18637
# Allow CC to be a program name with arguments.
 
18638
lt_save_CC="$CC"
 
18639
CC=${RC-"windres"}
 
18640
compiler=$CC
 
18641
compiler_RC=$CC
 
18642
lt_cv_prog_compiler_c_o_RC=yes
 
18643
 
 
18644
# The else clause should only fire when bootstrapping the
 
18645
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18646
# with your package, and you will get complaints that there are
 
18647
# no rules to generate ltmain.sh.
 
18648
if test -f "$ltmain"; then
 
18649
  # See if we are running on zsh, and set the options which allow our commands through
 
18650
  # without removal of \ escapes.
 
18651
  if test -n "${ZSH_VERSION+set}" ; then
 
18652
    setopt NO_GLOB_SUBST
 
18653
  fi
 
18654
  # Now quote all the things that may contain metacharacters while being
 
18655
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18656
  # variables and quote the copies for generation of the libtool script.
 
18657
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18658
    SED SHELL STRIP \
 
18659
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18660
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18661
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18662
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18663
    lt_cv_sys_global_symbol_to_c_name_address \
 
18664
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18665
    old_postinstall_cmds old_postuninstall_cmds \
 
18666
    compiler_RC \
 
18667
    CC_RC \
 
18668
    LD_RC \
 
18669
    lt_prog_compiler_wl_RC \
 
18670
    lt_prog_compiler_pic_RC \
 
18671
    lt_prog_compiler_static_RC \
 
18672
    lt_prog_compiler_no_builtin_flag_RC \
 
18673
    export_dynamic_flag_spec_RC \
 
18674
    thread_safe_flag_spec_RC \
 
18675
    whole_archive_flag_spec_RC \
 
18676
    enable_shared_with_static_runtimes_RC \
 
18677
    old_archive_cmds_RC \
 
18678
    old_archive_from_new_cmds_RC \
 
18679
    predep_objects_RC \
 
18680
    postdep_objects_RC \
 
18681
    predeps_RC \
 
18682
    postdeps_RC \
 
18683
    compiler_lib_search_path_RC \
 
18684
    archive_cmds_RC \
 
18685
    archive_expsym_cmds_RC \
 
18686
    postinstall_cmds_RC \
 
18687
    postuninstall_cmds_RC \
 
18688
    old_archive_from_expsyms_cmds_RC \
 
18689
    allow_undefined_flag_RC \
 
18690
    no_undefined_flag_RC \
 
18691
    export_symbols_cmds_RC \
 
18692
    hardcode_libdir_flag_spec_RC \
 
18693
    hardcode_libdir_flag_spec_ld_RC \
 
18694
    hardcode_libdir_separator_RC \
 
18695
    hardcode_automatic_RC \
 
18696
    module_cmds_RC \
 
18697
    module_expsym_cmds_RC \
 
18698
    lt_cv_prog_compiler_c_o_RC \
 
18699
    exclude_expsyms_RC \
 
18700
    include_expsyms_RC; do
 
18701
 
 
18702
    case $var in
 
18703
    old_archive_cmds_RC | \
 
18704
    old_archive_from_new_cmds_RC | \
 
18705
    archive_cmds_RC | \
 
18706
    archive_expsym_cmds_RC | \
 
18707
    module_cmds_RC | \
 
18708
    module_expsym_cmds_RC | \
 
18709
    old_archive_from_expsyms_cmds_RC | \
 
18710
    export_symbols_cmds_RC | \
 
18711
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18712
    postinstall_cmds | postuninstall_cmds | \
 
18713
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18714
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18715
      # Double-quote double-evaled strings.
 
18716
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18717
      ;;
 
18718
    *)
 
18719
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18720
      ;;
 
18721
    esac
 
18722
  done
 
18723
 
 
18724
  case $lt_echo in
 
18725
  *'\$0 --fallback-echo"')
 
18726
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18727
    ;;
 
18728
  esac
 
18729
 
 
18730
cfgfile="$ofile"
 
18731
 
 
18732
  cat <<__EOF__ >> "$cfgfile"
 
18733
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18734
 
 
18735
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18736
 
 
18737
# Shell to use when invoking shell scripts.
 
18738
SHELL=$lt_SHELL
 
18739
 
 
18740
# Whether or not to build shared libraries.
 
18741
build_libtool_libs=$enable_shared
 
18742
 
 
18743
# Whether or not to build static libraries.
 
18744
build_old_libs=$enable_static
 
18745
 
 
18746
# Whether or not to add -lc for building shared libraries.
 
18747
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18748
 
 
18749
# Whether or not to disallow shared libs when runtime libs are static
 
18750
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18751
 
 
18752
# Whether or not to optimize for fast installation.
 
18753
fast_install=$enable_fast_install
 
18754
 
 
18755
# The host system.
 
18756
host_alias=$host_alias
 
18757
host=$host
 
18758
 
 
18759
# An echo program that does not interpret backslashes.
 
18760
echo=$lt_echo
 
18761
 
 
18762
# The archiver.
 
18763
AR=$lt_AR
 
18764
AR_FLAGS=$lt_AR_FLAGS
 
18765
 
 
18766
# A C compiler.
 
18767
LTCC=$lt_LTCC
 
18768
 
 
18769
# A language-specific compiler.
 
18770
CC=$lt_compiler_RC
 
18771
 
 
18772
# Is the compiler the GNU C compiler?
 
18773
with_gcc=$GCC_RC
 
18774
 
 
18775
# An ERE matcher.
 
18776
EGREP=$lt_EGREP
 
18777
 
 
18778
# The linker used to build libraries.
 
18779
LD=$lt_LD_RC
 
18780
 
 
18781
# Whether we need hard or soft links.
 
18782
LN_S=$lt_LN_S
 
18783
 
 
18784
# A BSD-compatible nm program.
 
18785
NM=$lt_NM
 
18786
 
 
18787
# A symbol stripping program
 
18788
STRIP=$lt_STRIP
 
18789
 
 
18790
# Used to examine libraries when file_magic_cmd begins "file"
 
18791
MAGIC_CMD=$MAGIC_CMD
 
18792
 
 
18793
# Used on cygwin: DLL creation program.
 
18794
DLLTOOL="$DLLTOOL"
 
18795
 
 
18796
# Used on cygwin: object dumper.
 
18797
OBJDUMP="$OBJDUMP"
 
18798
 
 
18799
# Used on cygwin: assembler.
 
18800
AS="$AS"
 
18801
 
 
18802
# The name of the directory that contains temporary libtool files.
 
18803
objdir=$objdir
 
18804
 
 
18805
# How to create reloadable object files.
 
18806
reload_flag=$lt_reload_flag
 
18807
reload_cmds=$lt_reload_cmds
 
18808
 
 
18809
# How to pass a linker flag through the compiler.
 
18810
wl=$lt_lt_prog_compiler_wl_RC
 
18811
 
 
18812
# Object file suffix (normally "o").
 
18813
objext="$ac_objext"
 
18814
 
 
18815
# Old archive suffix (normally "a").
 
18816
libext="$libext"
 
18817
 
 
18818
# Shared library suffix (normally ".so").
 
18819
shrext_cmds='$shrext_cmds'
 
18820
 
 
18821
# Executable file suffix (normally "").
 
18822
exeext="$exeext"
 
18823
 
 
18824
# Additional compiler flags for building library objects.
 
18825
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18826
pic_mode=$pic_mode
 
18827
 
 
18828
# What is the maximum length of a command?
 
18829
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18830
 
 
18831
# Does compiler simultaneously support -c and -o options?
 
18832
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18833
 
 
18834
# Must we lock files when doing compilation ?
 
18835
need_locks=$lt_need_locks
 
18836
 
 
18837
# Do we need the lib prefix for modules?
 
18838
need_lib_prefix=$need_lib_prefix
 
18839
 
 
18840
# Do we need a version for libraries?
 
18841
need_version=$need_version
 
18842
 
 
18843
# Whether dlopen is supported.
 
18844
dlopen_support=$enable_dlopen
 
18845
 
 
18846
# Whether dlopen of programs is supported.
 
18847
dlopen_self=$enable_dlopen_self
 
18848
 
 
18849
# Whether dlopen of statically linked programs is supported.
 
18850
dlopen_self_static=$enable_dlopen_self_static
 
18851
 
 
18852
# Compiler flag to prevent dynamic linking.
 
18853
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18854
 
 
18855
# Compiler flag to turn off builtin functions.
 
18856
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18857
 
 
18858
# Compiler flag to allow reflexive dlopens.
 
18859
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18860
 
 
18861
# Compiler flag to generate shared objects directly from archives.
 
18862
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18863
 
 
18864
# Compiler flag to generate thread-safe objects.
 
18865
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18866
 
 
18867
# Library versioning type.
 
18868
version_type=$version_type
 
18869
 
 
18870
# Format of library name prefix.
 
18871
libname_spec=$lt_libname_spec
 
18872
 
 
18873
# List of archive names.  First name is the real one, the rest are links.
 
18874
# The last name is the one that the linker finds with -lNAME.
 
18875
library_names_spec=$lt_library_names_spec
 
18876
 
 
18877
# The coded name of the library, if different from the real name.
 
18878
soname_spec=$lt_soname_spec
 
18879
 
 
18880
# Commands used to build and install an old-style archive.
 
18881
RANLIB=$lt_RANLIB
 
18882
old_archive_cmds=$lt_old_archive_cmds_RC
 
18883
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18884
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18885
 
 
18886
# Create an old-style archive from a shared archive.
 
18887
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18888
 
 
18889
# Create a temporary old-style archive to link instead of a shared archive.
 
18890
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18891
 
 
18892
# Commands used to build and install a shared archive.
 
18893
archive_cmds=$lt_archive_cmds_RC
 
18894
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18895
postinstall_cmds=$lt_postinstall_cmds
 
18896
postuninstall_cmds=$lt_postuninstall_cmds
 
18897
 
 
18898
# Commands used to build a loadable module (assumed same as above if empty)
 
18899
module_cmds=$lt_module_cmds_RC
 
18900
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18901
 
 
18902
# Commands to strip libraries.
 
18903
old_striplib=$lt_old_striplib
 
18904
striplib=$lt_striplib
 
18905
 
 
18906
# Dependencies to place before the objects being linked to create a
 
18907
# shared library.
 
18908
predep_objects=$lt_predep_objects_RC
 
18909
 
 
18910
# Dependencies to place after the objects being linked to create a
 
18911
# shared library.
 
18912
postdep_objects=$lt_postdep_objects_RC
 
18913
 
 
18914
# Dependencies to place before the objects being linked to create a
 
18915
# shared library.
 
18916
predeps=$lt_predeps_RC
 
18917
 
 
18918
# Dependencies to place after the objects being linked to create a
 
18919
# shared library.
 
18920
postdeps=$lt_postdeps_RC
 
18921
 
 
18922
# The library search path used internally by the compiler when linking
 
18923
# a shared library.
 
18924
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18925
 
 
18926
# Method to check whether dependent libraries are shared objects.
 
18927
deplibs_check_method=$lt_deplibs_check_method
 
18928
 
 
18929
# Command to use when deplibs_check_method == file_magic.
 
18930
file_magic_cmd=$lt_file_magic_cmd
 
18931
 
 
18932
# Flag that allows shared libraries with undefined symbols to be built.
 
18933
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18934
 
 
18935
# Flag that forces no undefined symbols.
 
18936
no_undefined_flag=$lt_no_undefined_flag_RC
 
18937
 
 
18938
# Commands used to finish a libtool library installation in a directory.
 
18939
finish_cmds=$lt_finish_cmds
 
18940
 
 
18941
# Same as above, but a single script fragment to be evaled but not shown.
 
18942
finish_eval=$lt_finish_eval
 
18943
 
 
18944
# Take the output of nm and produce a listing of raw symbols and C names.
 
18945
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18946
 
 
18947
# Transform the output of nm in a proper C declaration
 
18948
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18949
 
 
18950
# Transform the output of nm in a C name address pair
 
18951
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18952
 
 
18953
# This is the shared library runtime path variable.
 
18954
runpath_var=$runpath_var
 
18955
 
 
18956
# This is the shared library path variable.
 
18957
shlibpath_var=$shlibpath_var
 
18958
 
 
18959
# Is shlibpath searched before the hard-coded library search path?
 
18960
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18961
 
 
18962
# How to hardcode a shared library path into an executable.
 
18963
hardcode_action=$hardcode_action_RC
 
18964
 
 
18965
# Whether we should hardcode library paths into libraries.
 
18966
hardcode_into_libs=$hardcode_into_libs
 
18967
 
 
18968
# Flag to hardcode \$libdir into a binary during linking.
 
18969
# This must work even if \$libdir does not exist.
 
18970
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18971
 
 
18972
# If ld is used when linking, flag to hardcode \$libdir into
 
18973
# a binary during linking. This must work even if \$libdir does
 
18974
# not exist.
 
18975
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18976
 
 
18977
# Whether we need a single -rpath flag with a separated argument.
 
18978
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18979
 
 
18980
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18981
# resulting binary.
 
18982
hardcode_direct=$hardcode_direct_RC
 
18983
 
 
18984
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18985
# resulting binary.
 
18986
hardcode_minus_L=$hardcode_minus_L_RC
 
18987
 
 
18988
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18989
# the resulting binary.
 
18990
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18991
 
 
18992
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18993
# and all subsequent libraries and executables linked against it.
 
18994
hardcode_automatic=$hardcode_automatic_RC
 
18995
 
 
18996
# Variables whose values should be saved in libtool wrapper scripts and
 
18997
# restored at relink time.
 
18998
variables_saved_for_relink="$variables_saved_for_relink"
 
18999
 
 
19000
# Whether libtool must link a program against all its dependency libraries.
 
19001
link_all_deplibs=$link_all_deplibs_RC
 
19002
 
 
19003
# Compile-time system search path for libraries
 
19004
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19005
 
 
19006
# Run-time system search path for libraries
 
19007
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19008
 
 
19009
# Fix the shell variable \$srcfile for the compiler.
 
19010
fix_srcfile_path="$fix_srcfile_path_RC"
 
19011
 
 
19012
# Set to yes if exported symbols are required.
 
19013
always_export_symbols=$always_export_symbols_RC
 
19014
 
 
19015
# The commands to list exported symbols.
 
19016
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19017
 
 
19018
# The commands to extract the exported symbol list from a shared archive.
 
19019
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19020
 
 
19021
# Symbols that should not be listed in the preloaded symbols.
 
19022
exclude_expsyms=$lt_exclude_expsyms_RC
 
19023
 
 
19024
# Symbols that must always be exported.
 
19025
include_expsyms=$lt_include_expsyms_RC
 
19026
 
 
19027
# ### END LIBTOOL TAG CONFIG: $tagname
 
19028
 
 
19029
__EOF__
 
19030
 
 
19031
 
 
19032
else
 
19033
  # If there is no Makefile yet, we rely on a make rule to execute
 
19034
  # `config.status --recheck' to rerun these tests and create the
 
19035
  # libtool script then.
 
19036
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19037
  if test -f "$ltmain_in"; then
 
19038
    test -f Makefile && make "$ltmain"
 
19039
  fi
 
19040
fi
 
19041
 
 
19042
 
 
19043
ac_ext=c
 
19044
ac_cpp='$CPP $CPPFLAGS'
 
19045
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19046
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19047
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19048
 
 
19049
CC="$lt_save_CC"
 
19050
 
 
19051
        ;;
 
19052
 
 
19053
      *)
 
19054
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19055
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19056
   { (exit 1); exit 1; }; }
 
19057
        ;;
 
19058
      esac
 
19059
 
 
19060
      # Append the new tag name to the list of available tags.
 
19061
      if test -n "$tagname" ; then
 
19062
      available_tags="$available_tags $tagname"
 
19063
    fi
 
19064
    fi
 
19065
  done
 
19066
  IFS="$lt_save_ifs"
 
19067
 
 
19068
  # Now substitute the updated list of available tags.
 
19069
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19070
    mv "${ofile}T" "$ofile"
 
19071
    chmod +x "$ofile"
 
19072
  else
 
19073
    rm -f "${ofile}T"
 
19074
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19075
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19076
   { (exit 1); exit 1; }; }
 
19077
  fi
 
19078
fi
 
19079
 
 
19080
 
 
19081
 
 
19082
# This can be used to rebuild libtool when needed
 
19083
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19084
 
 
19085
# Always use our own libtool.
 
19086
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19087
 
 
19088
# Prevent multiple expansion
 
19089
 
 
19090
 
 
19091
 
 
19092
 
 
19093
 
 
19094
 
 
19095
 
 
19096
 
 
19097
 
 
19098
 
 
19099
 
 
19100
 
 
19101
 
 
19102
 
 
19103
 
 
19104
 
 
19105
 
 
19106
 
 
19107
 
 
19108
 
 
19109
 
 
19110
# Check for dependencies
 
19111
 
 
19112
 
 
19113
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
19114
        if test -n "$ac_tool_prefix"; then
 
19115
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
19116
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
19117
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19118
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19119
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
19120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19121
else
 
19122
  case $PKG_CONFIG in
 
19123
  [\\/]* | ?:[\\/]*)
 
19124
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
19125
  ;;
 
19126
  *)
 
19127
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19128
for as_dir in $PATH
 
19129
do
 
19130
  IFS=$as_save_IFS
 
19131
  test -z "$as_dir" && as_dir=.
 
19132
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19133
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19134
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19135
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19136
    break 2
 
19137
  fi
 
19138
done
 
19139
done
 
19140
 
 
19141
  ;;
 
19142
esac
 
19143
fi
 
19144
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
19145
 
 
19146
if test -n "$PKG_CONFIG"; then
 
19147
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
19148
echo "${ECHO_T}$PKG_CONFIG" >&6
 
19149
else
 
19150
  echo "$as_me:$LINENO: result: no" >&5
 
19151
echo "${ECHO_T}no" >&6
 
19152
fi
 
19153
 
 
19154
fi
 
19155
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
19156
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
19157
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
19158
set dummy pkg-config; ac_word=$2
 
19159
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19160
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19161
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
19162
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19163
else
 
19164
  case $ac_pt_PKG_CONFIG in
 
19165
  [\\/]* | ?:[\\/]*)
 
19166
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
19167
  ;;
 
19168
  *)
 
19169
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19170
for as_dir in $PATH
 
19171
do
 
19172
  IFS=$as_save_IFS
 
19173
  test -z "$as_dir" && as_dir=.
 
19174
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19175
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19176
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19177
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19178
    break 2
 
19179
  fi
 
19180
done
 
19181
done
 
19182
 
 
19183
  ;;
 
19184
esac
 
19185
fi
 
19186
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
19187
 
 
19188
if test -n "$ac_pt_PKG_CONFIG"; then
 
19189
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
19190
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
19191
else
 
19192
  echo "$as_me:$LINENO: result: no" >&5
 
19193
echo "${ECHO_T}no" >&6
 
19194
fi
 
19195
 
 
19196
  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
19197
else
 
19198
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
19199
fi
 
19200
 
 
19201
fi
 
19202
if test -n "$PKG_CONFIG"; then
 
19203
        _pkg_min_version=0.9.0
 
19204
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
19205
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
19206
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
19207
                echo "$as_me:$LINENO: result: yes" >&5
 
19208
echo "${ECHO_T}yes" >&6
 
19209
        else
 
19210
                echo "$as_me:$LINENO: result: no" >&5
 
19211
echo "${ECHO_T}no" >&6
 
19212
                PKG_CONFIG=""
 
19213
        fi
 
19214
 
 
19215
fi
 
19216
 
 
19217
pkg_failed=no
 
19218
echo "$as_me:$LINENO: checking for DEP" >&5
 
19219
echo $ECHO_N "checking for DEP... $ECHO_C" >&6
 
19220
 
 
19221
if test -n "$PKG_CONFIG"; then
 
19222
        if test -n "$PKG_CONFIG" && \
 
19223
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto fontsproto\"") >&5
 
19224
  ($PKG_CONFIG --exists --print-errors "xproto fontsproto") 2>&5
 
19225
  ac_status=$?
 
19226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19227
  (exit $ac_status); }; then
 
19228
  pkg_cv_DEP_CFLAGS=`$PKG_CONFIG --cflags "xproto fontsproto" 2>/dev/null`
 
19229
else
 
19230
  pkg_failed=yes
 
19231
fi
 
19232
else
 
19233
        pkg_failed=untried
 
19234
fi
 
19235
if test -n "$PKG_CONFIG"; then
 
19236
        if test -n "$PKG_CONFIG" && \
 
19237
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto fontsproto\"") >&5
 
19238
  ($PKG_CONFIG --exists --print-errors "xproto fontsproto") 2>&5
 
19239
  ac_status=$?
 
19240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19241
  (exit $ac_status); }; then
 
19242
  pkg_cv_DEP_LIBS=`$PKG_CONFIG --libs "xproto fontsproto" 2>/dev/null`
 
19243
else
 
19244
  pkg_failed=yes
 
19245
fi
 
19246
else
 
19247
        pkg_failed=untried
 
19248
fi
 
19249
 
 
19250
if test $pkg_failed = yes; then
 
19251
        DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto fontsproto"`
 
19252
        # Put the nasty error message in config.log where it belongs
 
19253
        echo "$DEP_PKG_ERRORS" 1>&5
 
19254
 
 
19255
        { { echo "$as_me:$LINENO: error: Package requirements (xproto fontsproto) were not met.
 
19256
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19257
installed software in a non-standard prefix.
 
19258
 
 
19259
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19260
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19261
more details." >&5
 
19262
echo "$as_me: error: Package requirements (xproto fontsproto) were not met.
 
19263
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19264
installed software in a non-standard prefix.
 
19265
 
 
19266
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19267
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19268
more details." >&2;}
 
19269
   { (exit 1); exit 1; }; }
 
19270
elif test $pkg_failed = untried; then
 
19271
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
19272
is in your PATH or set the PKG_CONFIG environment variable to the full
 
19273
path to pkg-config.
 
19274
 
 
19275
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19276
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19277
more details.
 
19278
 
 
19279
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
19280
See \`config.log' for more details." >&5
 
19281
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
19282
is in your PATH or set the PKG_CONFIG environment variable to the full
 
19283
path to pkg-config.
 
19284
 
 
19285
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19286
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19287
more details.
 
19288
 
 
19289
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
19290
See \`config.log' for more details." >&2;}
 
19291
   { (exit 1); exit 1; }; }
 
19292
else
 
19293
        DEP_CFLAGS=$pkg_cv_DEP_CFLAGS
 
19294
        DEP_LIBS=$pkg_cv_DEP_LIBS
 
19295
        :
 
19296
fi
 
19297
 
 
19298
 
 
19299
#
 
19300
# Split out so we don't include xtrans C flags in fs.pc
 
19301
#
 
19302
 
 
19303
pkg_failed=no
 
19304
echo "$as_me:$LINENO: checking for XTRANS" >&5
 
19305
echo $ECHO_N "checking for XTRANS... $ECHO_C" >&6
 
19306
 
 
19307
if test -n "$PKG_CONFIG"; then
 
19308
        if test -n "$PKG_CONFIG" && \
 
19309
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
 
19310
  ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
 
19311
  ac_status=$?
 
19312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19313
  (exit $ac_status); }; then
 
19314
  pkg_cv_XTRANS_CFLAGS=`$PKG_CONFIG --cflags "xtrans" 2>/dev/null`
 
19315
else
 
19316
  pkg_failed=yes
 
19317
fi
 
19318
else
 
19319
        pkg_failed=untried
 
19320
fi
 
19321
if test -n "$PKG_CONFIG"; then
 
19322
        if test -n "$PKG_CONFIG" && \
 
19323
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xtrans\"") >&5
 
19324
  ($PKG_CONFIG --exists --print-errors "xtrans") 2>&5
 
19325
  ac_status=$?
 
19326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19327
  (exit $ac_status); }; then
 
19328
  pkg_cv_XTRANS_LIBS=`$PKG_CONFIG --libs "xtrans" 2>/dev/null`
 
19329
else
 
19330
  pkg_failed=yes
 
19331
fi
 
19332
else
 
19333
        pkg_failed=untried
 
19334
fi
 
19335
 
 
19336
if test $pkg_failed = yes; then
 
19337
        XTRANS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xtrans"`
 
19338
        # Put the nasty error message in config.log where it belongs
 
19339
        echo "$XTRANS_PKG_ERRORS" 1>&5
 
19340
 
 
19341
        { { echo "$as_me:$LINENO: error: Package requirements (xtrans) were not met.
 
19342
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19343
installed software in a non-standard prefix.
 
19344
 
 
19345
Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
 
19346
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19347
more details." >&5
 
19348
echo "$as_me: error: Package requirements (xtrans) were not met.
 
19349
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19350
installed software in a non-standard prefix.
 
19351
 
 
19352
Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
 
19353
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19354
more details." >&2;}
 
19355
   { (exit 1); exit 1; }; }
 
19356
elif test $pkg_failed = untried; then
 
19357
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
19358
is in your PATH or set the PKG_CONFIG environment variable to the full
 
19359
path to pkg-config.
 
19360
 
 
19361
Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
 
19362
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19363
more details.
 
19364
 
 
19365
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
19366
See \`config.log' for more details." >&5
 
19367
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
19368
is in your PATH or set the PKG_CONFIG environment variable to the full
 
19369
path to pkg-config.
 
19370
 
 
19371
Alternatively you may set the XTRANS_CFLAGS and XTRANS_LIBS environment variables
 
19372
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19373
more details.
 
19374
 
 
19375
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
19376
See \`config.log' for more details." >&2;}
 
19377
   { (exit 1); exit 1; }; }
 
19378
else
 
19379
        XTRANS_CFLAGS=$pkg_cv_XTRANS_CFLAGS
 
19380
        XTRANS_LIBS=$pkg_cv_XTRANS_LIBS
 
19381
        :
 
19382
fi
 
19383
 
 
19384
 
 
19385
 
 
19386
# Check whether --enable-unix-transport or --disable-unix-transport was given.
 
19387
if test "${enable_unix_transport+set}" = set; then
 
19388
  enableval="$enable_unix_transport"
 
19389
  UNIXCONN=$enableval
 
19390
else
 
19391
  UNIXCONN=yes
 
19392
fi;
 
19393
 # Check whether --enable-tcp-transport or --disable-tcp-transport was given.
 
19394
if test "${enable_tcp_transport+set}" = set; then
 
19395
  enableval="$enable_tcp_transport"
 
19396
  TCPCONN=$enableval
 
19397
else
 
19398
  TCPCONN=yes
 
19399
fi;
 
19400
 if test "$UNIXCONN" = "yes"; then
 
19401
 
 
19402
cat >>confdefs.h <<\_ACEOF
 
19403
#define UNIXCONN 1
 
19404
_ACEOF
 
19405
 
 
19406
 fi
 
19407
 if test "$TCPCONN" = "yes"; then
 
19408
 
 
19409
cat >>confdefs.h <<\_ACEOF
 
19410
#define TCPCONN 1
 
19411
_ACEOF
 
19412
 
 
19413
        # SVR4 hides these in libraries other than libc
 
19414
        echo "$as_me:$LINENO: checking for library containing socket" >&5
 
19415
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
 
19416
if test "${ac_cv_search_socket+set}" = set; then
 
19417
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19418
else
 
19419
  ac_func_search_save_LIBS=$LIBS
 
19420
ac_cv_search_socket=no
 
19421
cat >conftest.$ac_ext <<_ACEOF
 
19422
/* confdefs.h.  */
 
19423
_ACEOF
 
19424
cat confdefs.h >>conftest.$ac_ext
 
19425
cat >>conftest.$ac_ext <<_ACEOF
 
19426
/* end confdefs.h.  */
 
19427
 
 
19428
/* Override any gcc2 internal prototype to avoid an error.  */
 
19429
#ifdef __cplusplus
 
19430
extern "C"
 
19431
#endif
 
19432
/* We use char because int might match the return type of a gcc2
 
19433
   builtin and then its argument prototype would still apply.  */
 
19434
char socket ();
 
19435
int
 
19436
main ()
 
19437
{
 
19438
socket ();
 
19439
  ;
 
19440
  return 0;
 
19441
}
 
19442
_ACEOF
 
19443
rm -f conftest.$ac_objext conftest$ac_exeext
 
19444
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19445
  (eval $ac_link) 2>conftest.er1
 
19446
  ac_status=$?
 
19447
  grep -v '^ *+' conftest.er1 >conftest.err
 
19448
  rm -f conftest.er1
 
19449
  cat conftest.err >&5
 
19450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19451
  (exit $ac_status); } &&
 
19452
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19454
  (eval $ac_try) 2>&5
 
19455
  ac_status=$?
 
19456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19457
  (exit $ac_status); }; } &&
 
19458
         { ac_try='test -s conftest$ac_exeext'
 
19459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19460
  (eval $ac_try) 2>&5
 
19461
  ac_status=$?
 
19462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19463
  (exit $ac_status); }; }; then
 
19464
  ac_cv_search_socket="none required"
 
19465
else
 
19466
  echo "$as_me: failed program was:" >&5
 
19467
sed 's/^/| /' conftest.$ac_ext >&5
 
19468
 
 
19469
fi
 
19470
rm -f conftest.err conftest.$ac_objext \
 
19471
      conftest$ac_exeext conftest.$ac_ext
 
19472
if test "$ac_cv_search_socket" = no; then
 
19473
  for ac_lib in socket; do
 
19474
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
19475
    cat >conftest.$ac_ext <<_ACEOF
 
19476
/* confdefs.h.  */
 
19477
_ACEOF
 
19478
cat confdefs.h >>conftest.$ac_ext
 
19479
cat >>conftest.$ac_ext <<_ACEOF
 
19480
/* end confdefs.h.  */
 
19481
 
 
19482
/* Override any gcc2 internal prototype to avoid an error.  */
 
19483
#ifdef __cplusplus
 
19484
extern "C"
 
19485
#endif
 
19486
/* We use char because int might match the return type of a gcc2
 
19487
   builtin and then its argument prototype would still apply.  */
 
19488
char socket ();
 
19489
int
 
19490
main ()
 
19491
{
 
19492
socket ();
 
19493
  ;
 
19494
  return 0;
 
19495
}
 
19496
_ACEOF
 
19497
rm -f conftest.$ac_objext conftest$ac_exeext
 
19498
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19499
  (eval $ac_link) 2>conftest.er1
 
19500
  ac_status=$?
 
19501
  grep -v '^ *+' conftest.er1 >conftest.err
 
19502
  rm -f conftest.er1
 
19503
  cat conftest.err >&5
 
19504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19505
  (exit $ac_status); } &&
 
19506
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19508
  (eval $ac_try) 2>&5
 
19509
  ac_status=$?
 
19510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19511
  (exit $ac_status); }; } &&
 
19512
         { ac_try='test -s conftest$ac_exeext'
 
19513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19514
  (eval $ac_try) 2>&5
 
19515
  ac_status=$?
 
19516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19517
  (exit $ac_status); }; }; then
 
19518
  ac_cv_search_socket="-l$ac_lib"
 
19519
break
 
19520
else
 
19521
  echo "$as_me: failed program was:" >&5
 
19522
sed 's/^/| /' conftest.$ac_ext >&5
 
19523
 
 
19524
fi
 
19525
rm -f conftest.err conftest.$ac_objext \
 
19526
      conftest$ac_exeext conftest.$ac_ext
 
19527
  done
 
19528
fi
 
19529
LIBS=$ac_func_search_save_LIBS
 
19530
fi
 
19531
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
 
19532
echo "${ECHO_T}$ac_cv_search_socket" >&6
 
19533
if test "$ac_cv_search_socket" != no; then
 
19534
  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
 
19535
 
 
19536
fi
 
19537
 
 
19538
        echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
19539
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
 
19540
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
19541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19542
else
 
19543
  ac_func_search_save_LIBS=$LIBS
 
19544
ac_cv_search_gethostbyname=no
 
19545
cat >conftest.$ac_ext <<_ACEOF
 
19546
/* confdefs.h.  */
 
19547
_ACEOF
 
19548
cat confdefs.h >>conftest.$ac_ext
 
19549
cat >>conftest.$ac_ext <<_ACEOF
 
19550
/* end confdefs.h.  */
 
19551
 
 
19552
/* Override any gcc2 internal prototype to avoid an error.  */
 
19553
#ifdef __cplusplus
 
19554
extern "C"
 
19555
#endif
 
19556
/* We use char because int might match the return type of a gcc2
 
19557
   builtin and then its argument prototype would still apply.  */
 
19558
char gethostbyname ();
 
19559
int
 
19560
main ()
 
19561
{
 
19562
gethostbyname ();
 
19563
  ;
 
19564
  return 0;
 
19565
}
 
19566
_ACEOF
 
19567
rm -f conftest.$ac_objext conftest$ac_exeext
 
19568
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19569
  (eval $ac_link) 2>conftest.er1
 
19570
  ac_status=$?
 
19571
  grep -v '^ *+' conftest.er1 >conftest.err
 
19572
  rm -f conftest.er1
 
19573
  cat conftest.err >&5
 
19574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19575
  (exit $ac_status); } &&
 
19576
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19578
  (eval $ac_try) 2>&5
 
19579
  ac_status=$?
 
19580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19581
  (exit $ac_status); }; } &&
 
19582
         { ac_try='test -s conftest$ac_exeext'
 
19583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19584
  (eval $ac_try) 2>&5
 
19585
  ac_status=$?
 
19586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19587
  (exit $ac_status); }; }; then
 
19588
  ac_cv_search_gethostbyname="none required"
 
19589
else
 
19590
  echo "$as_me: failed program was:" >&5
 
19591
sed 's/^/| /' conftest.$ac_ext >&5
 
19592
 
 
19593
fi
 
19594
rm -f conftest.err conftest.$ac_objext \
 
19595
      conftest$ac_exeext conftest.$ac_ext
 
19596
if test "$ac_cv_search_gethostbyname" = no; then
 
19597
  for ac_lib in nsl; do
 
19598
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
19599
    cat >conftest.$ac_ext <<_ACEOF
 
19600
/* confdefs.h.  */
 
19601
_ACEOF
 
19602
cat confdefs.h >>conftest.$ac_ext
 
19603
cat >>conftest.$ac_ext <<_ACEOF
 
19604
/* end confdefs.h.  */
 
19605
 
 
19606
/* Override any gcc2 internal prototype to avoid an error.  */
 
19607
#ifdef __cplusplus
 
19608
extern "C"
 
19609
#endif
 
19610
/* We use char because int might match the return type of a gcc2
 
19611
   builtin and then its argument prototype would still apply.  */
 
19612
char gethostbyname ();
 
19613
int
 
19614
main ()
 
19615
{
 
19616
gethostbyname ();
 
19617
  ;
 
19618
  return 0;
 
19619
}
 
19620
_ACEOF
 
19621
rm -f conftest.$ac_objext conftest$ac_exeext
 
19622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19623
  (eval $ac_link) 2>conftest.er1
 
19624
  ac_status=$?
 
19625
  grep -v '^ *+' conftest.er1 >conftest.err
 
19626
  rm -f conftest.er1
 
19627
  cat conftest.err >&5
 
19628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19629
  (exit $ac_status); } &&
 
19630
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19632
  (eval $ac_try) 2>&5
 
19633
  ac_status=$?
 
19634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19635
  (exit $ac_status); }; } &&
 
19636
         { ac_try='test -s conftest$ac_exeext'
 
19637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19638
  (eval $ac_try) 2>&5
 
19639
  ac_status=$?
 
19640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19641
  (exit $ac_status); }; }; then
 
19642
  ac_cv_search_gethostbyname="-l$ac_lib"
 
19643
break
 
19644
else
 
19645
  echo "$as_me: failed program was:" >&5
 
19646
sed 's/^/| /' conftest.$ac_ext >&5
 
19647
 
 
19648
fi
 
19649
rm -f conftest.err conftest.$ac_objext \
 
19650
      conftest$ac_exeext conftest.$ac_ext
 
19651
  done
 
19652
fi
 
19653
LIBS=$ac_func_search_save_LIBS
 
19654
fi
 
19655
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
 
19656
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
 
19657
if test "$ac_cv_search_gethostbyname" != no; then
 
19658
  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
 
19659
 
 
19660
fi
 
19661
 
 
19662
 fi
 
19663
 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
 
19664
 # Check whether --enable-ipv6 or --disable-ipv6 was given.
 
19665
if test "${enable_ipv6+set}" = set; then
 
19666
  enableval="$enable_ipv6"
 
19667
  IPV6CONN=$enableval
 
19668
else
 
19669
  echo "$as_me:$LINENO: checking for getaddrinfo" >&5
 
19670
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
 
19671
if test "${ac_cv_func_getaddrinfo+set}" = set; then
 
19672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19673
else
 
19674
  cat >conftest.$ac_ext <<_ACEOF
 
19675
/* confdefs.h.  */
 
19676
_ACEOF
 
19677
cat confdefs.h >>conftest.$ac_ext
 
19678
cat >>conftest.$ac_ext <<_ACEOF
 
19679
/* end confdefs.h.  */
 
19680
/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
 
19681
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19682
#define getaddrinfo innocuous_getaddrinfo
 
19683
 
 
19684
/* System header to define __stub macros and hopefully few prototypes,
 
19685
    which can conflict with char getaddrinfo (); below.
 
19686
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19687
    <limits.h> exists even on freestanding compilers.  */
 
19688
 
 
19689
#ifdef __STDC__
 
19690
# include <limits.h>
 
19691
#else
 
19692
# include <assert.h>
 
19693
#endif
 
19694
 
 
19695
#undef getaddrinfo
 
19696
 
 
19697
/* Override any gcc2 internal prototype to avoid an error.  */
 
19698
#ifdef __cplusplus
 
19699
extern "C"
 
19700
{
 
19701
#endif
 
19702
/* We use char because int might match the return type of a gcc2
 
19703
   builtin and then its argument prototype would still apply.  */
 
19704
char getaddrinfo ();
 
19705
/* The GNU C library defines this for functions which it implements
 
19706
    to always fail with ENOSYS.  Some functions are actually named
 
19707
    something starting with __ and the normal name is an alias.  */
 
19708
#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
 
19709
choke me
 
19710
#else
 
19711
char (*f) () = getaddrinfo;
 
19712
#endif
 
19713
#ifdef __cplusplus
 
19714
}
 
19715
#endif
 
19716
 
 
19717
int
 
19718
main ()
 
19719
{
 
19720
return f != getaddrinfo;
 
19721
  ;
 
19722
  return 0;
 
19723
}
 
19724
_ACEOF
 
19725
rm -f conftest.$ac_objext conftest$ac_exeext
 
19726
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19727
  (eval $ac_link) 2>conftest.er1
 
19728
  ac_status=$?
 
19729
  grep -v '^ *+' conftest.er1 >conftest.err
 
19730
  rm -f conftest.er1
 
19731
  cat conftest.err >&5
 
19732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19733
  (exit $ac_status); } &&
 
19734
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19736
  (eval $ac_try) 2>&5
 
19737
  ac_status=$?
 
19738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19739
  (exit $ac_status); }; } &&
 
19740
         { ac_try='test -s conftest$ac_exeext'
 
19741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19742
  (eval $ac_try) 2>&5
 
19743
  ac_status=$?
 
19744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19745
  (exit $ac_status); }; }; then
 
19746
  ac_cv_func_getaddrinfo=yes
 
19747
else
 
19748
  echo "$as_me: failed program was:" >&5
 
19749
sed 's/^/| /' conftest.$ac_ext >&5
 
19750
 
 
19751
ac_cv_func_getaddrinfo=no
 
19752
fi
 
19753
rm -f conftest.err conftest.$ac_objext \
 
19754
      conftest$ac_exeext conftest.$ac_ext
 
19755
fi
 
19756
echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
 
19757
echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
 
19758
if test $ac_cv_func_getaddrinfo = yes; then
 
19759
  IPV6CONN=yes
 
19760
else
 
19761
  IPV6CONN=no
 
19762
fi
 
19763
 
 
19764
fi;
 
19765
 if test "$IPV6CONN" = "yes"; then
 
19766
 
 
19767
cat >>confdefs.h <<\_ACEOF
 
19768
#define IPv6 1
 
19769
_ACEOF
 
19770
 
 
19771
 fi
 
19772
 
 
19773
 
 
19774
 
 
19775
# Check fixesext configuration, strip extra digits from package version to
 
19776
# find the required protocol version
 
19777
 
 
19778
                              ac_config_files="$ac_config_files Makefile src/Makefile libfs.pc"
 
19779
cat >confcache <<\_ACEOF
 
19780
# This file is a shell script that caches the results of configure
 
19781
# tests run on this system so they can be shared between configure
 
19782
# scripts and configure runs, see configure's option --config-cache.
 
19783
# It is not useful on other systems.  If it contains results you don't
 
19784
# want to keep, you may remove or edit it.
 
19785
#
 
19786
# config.status only pays attention to the cache file if you give it
 
19787
# the --recheck option to rerun configure.
 
19788
#
 
19789
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
19790
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
19791
# following values.
 
19792
 
 
19793
_ACEOF
 
19794
 
 
19795
# The following way of writing the cache mishandles newlines in values,
 
19796
# but we know of no workaround that is simple, portable, and efficient.
 
19797
# So, don't put newlines in cache variables' values.
 
19798
# Ultrix sh set writes to stderr and can't be redirected directly,
 
19799
# and sets the high bit in the cache file unless we assign to the vars.
 
19800
{
 
19801
  (set) 2>&1 |
 
19802
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
19803
    *ac_space=\ *)
 
19804
      # `set' does not quote correctly, so add quotes (double-quote
 
19805
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
19806
      sed -n \
 
19807
        "s/'/'\\\\''/g;
 
19808
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
19809
      ;;
 
19810
    *)
 
19811
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
19812
      sed -n \
 
19813
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
19814
      ;;
 
19815
    esac;
 
19816
} |
 
19817
  sed '
 
19818
     t clear
 
19819
     : clear
 
19820
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
19821
     t end
 
19822
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
19823
     : end' >>confcache
 
19824
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
19825
  if test -w $cache_file; then
 
19826
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
19827
    cat confcache >$cache_file
 
19828
  else
 
19829
    echo "not updating unwritable cache $cache_file"
 
19830
  fi
 
19831
fi
 
19832
rm -f confcache
 
19833
 
 
19834
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
19835
# Let make expand exec_prefix.
 
19836
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
19837
 
 
19838
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
19839
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
19840
# trailing colons and then remove the whole line if VPATH becomes empty
 
19841
# (actually we leave an empty line to preserve line numbers).
 
19842
if test "x$srcdir" = x.; then
 
19843
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
19844
s/:*\$(srcdir):*/:/;
 
19845
s/:*\${srcdir}:*/:/;
 
19846
s/:*@srcdir@:*/:/;
 
19847
s/^\([^=]*=[     ]*\):*/\1/;
 
19848
s/:*$//;
 
19849
s/^[^=]*=[       ]*$//;
 
19850
}'
 
19851
fi
 
19852
 
 
19853
DEFS=-DHAVE_CONFIG_H
 
19854
 
 
19855
ac_libobjs=
 
19856
ac_ltlibobjs=
 
19857
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
19858
  # 1. Remove the extension, and $U if already installed.
 
19859
  ac_i=`echo "$ac_i" |
 
19860
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
19861
  # 2. Add them.
 
19862
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
19863
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
19864
done
 
19865
LIBOBJS=$ac_libobjs
 
19866
 
 
19867
LTLIBOBJS=$ac_ltlibobjs
 
19868
 
 
19869
 
 
19870
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
19871
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
19872
Usually this means the macro was only invoked conditionally." >&5
 
19873
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
19874
Usually this means the macro was only invoked conditionally." >&2;}
 
19875
   { (exit 1); exit 1; }; }
 
19876
fi
 
19877
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
19878
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
19879
Usually this means the macro was only invoked conditionally." >&5
 
19880
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
19881
Usually this means the macro was only invoked conditionally." >&2;}
 
19882
   { (exit 1); exit 1; }; }
 
19883
fi
 
19884
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
19885
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
19886
Usually this means the macro was only invoked conditionally." >&5
 
19887
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
19888
Usually this means the macro was only invoked conditionally." >&2;}
 
19889
   { (exit 1); exit 1; }; }
 
19890
fi
 
19891
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
19892
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
19893
Usually this means the macro was only invoked conditionally." >&5
 
19894
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
19895
Usually this means the macro was only invoked conditionally." >&2;}
 
19896
   { (exit 1); exit 1; }; }
 
19897
fi
 
19898
 
 
19899
: ${CONFIG_STATUS=./config.status}
 
19900
ac_clean_files_save=$ac_clean_files
 
19901
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
19902
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
19903
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
19904
cat >$CONFIG_STATUS <<_ACEOF
 
19905
#! $SHELL
 
19906
# Generated by $as_me.
 
19907
# Run this file to recreate the current configuration.
 
19908
# Compiler output produced by configure, useful for debugging
 
19909
# configure, is in config.log if it exists.
 
19910
 
 
19911
debug=false
 
19912
ac_cs_recheck=false
 
19913
ac_cs_silent=false
 
19914
SHELL=\${CONFIG_SHELL-$SHELL}
 
19915
_ACEOF
 
19916
 
 
19917
cat >>$CONFIG_STATUS <<\_ACEOF
 
19918
## --------------------- ##
 
19919
## M4sh Initialization.  ##
 
19920
## --------------------- ##
 
19921
 
 
19922
# Be Bourne compatible
 
19923
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19924
  emulate sh
 
19925
  NULLCMD=:
 
19926
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19927
  # is contrary to our usage.  Disable this feature.
 
19928
  alias -g '${1+"$@"}'='"$@"'
 
19929
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
19930
  set -o posix
 
19931
fi
 
19932
DUALCASE=1; export DUALCASE # for MKS sh
 
19933
 
 
19934
# Support unset when possible.
 
19935
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
19936
  as_unset=unset
 
19937
else
 
19938
  as_unset=false
 
19939
fi
 
19940
 
 
19941
 
 
19942
# Work around bugs in pre-3.0 UWIN ksh.
 
19943
$as_unset ENV MAIL MAILPATH
 
19944
PS1='$ '
 
19945
PS2='> '
 
19946
PS4='+ '
 
19947
 
 
19948
# NLS nuisances.
 
19949
for as_var in \
 
19950
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
19951
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
19952
  LC_TELEPHONE LC_TIME
 
19953
do
 
19954
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
19955
    eval $as_var=C; export $as_var
 
19956
  else
 
19957
    $as_unset $as_var
 
19958
  fi
 
19959
done
 
19960
 
 
19961
# Required to use basename.
 
19962
if expr a : '\(a\)' >/dev/null 2>&1; then
 
19963
  as_expr=expr
 
19964
else
 
19965
  as_expr=false
 
19966
fi
 
19967
 
 
19968
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
19969
  as_basename=basename
 
19970
else
 
19971
  as_basename=false
 
19972
fi
 
19973
 
 
19974
 
 
19975
# Name of the executable.
 
19976
as_me=`$as_basename "$0" ||
 
19977
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
19978
         X"$0" : 'X\(//\)$' \| \
 
19979
         X"$0" : 'X\(/\)$' \| \
 
19980
         .     : '\(.\)' 2>/dev/null ||
 
19981
echo X/"$0" |
 
19982
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
19983
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
19984
          /^X\/\(\/\).*/{ s//\1/; q; }
 
19985
          s/.*/./; q'`
 
19986
 
 
19987
 
 
19988
# PATH needs CR, and LINENO needs CR and PATH.
 
19989
# Avoid depending upon Character Ranges.
 
19990
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
19991
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
19992
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
19993
as_cr_digits='0123456789'
 
19994
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
19995
 
 
19996
# The user is always right.
 
19997
if test "${PATH_SEPARATOR+set}" != set; then
 
19998
  echo "#! /bin/sh" >conf$$.sh
 
19999
  echo  "exit 0"   >>conf$$.sh
 
20000
  chmod +x conf$$.sh
 
20001
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
20002
    PATH_SEPARATOR=';'
 
20003
  else
 
20004
    PATH_SEPARATOR=:
 
20005
  fi
 
20006
  rm -f conf$$.sh
 
20007
fi
 
20008
 
 
20009
 
 
20010
  as_lineno_1=$LINENO
 
20011
  as_lineno_2=$LINENO
 
20012
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20013
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20014
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
20015
  # Find who we are.  Look in the path if we contain no path at all
 
20016
  # relative or not.
 
20017
  case $0 in
 
20018
    *[\\/]* ) as_myself=$0 ;;
 
20019
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20020
for as_dir in $PATH
 
20021
do
 
20022
  IFS=$as_save_IFS
 
20023
  test -z "$as_dir" && as_dir=.
 
20024
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20025
done
 
20026
 
 
20027
       ;;
 
20028
  esac
 
20029
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
20030
  # in which case we are not to be found in the path.
 
20031
  if test "x$as_myself" = x; then
 
20032
    as_myself=$0
 
20033
  fi
 
20034
  if test ! -f "$as_myself"; then
 
20035
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
20036
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
20037
   { (exit 1); exit 1; }; }
 
20038
  fi
 
20039
  case $CONFIG_SHELL in
 
20040
  '')
 
20041
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20042
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
20043
do
 
20044
  IFS=$as_save_IFS
 
20045
  test -z "$as_dir" && as_dir=.
 
20046
  for as_base in sh bash ksh sh5; do
 
20047
         case $as_dir in
 
20048
         /*)
 
20049
           if ("$as_dir/$as_base" -c '
 
20050
  as_lineno_1=$LINENO
 
20051
  as_lineno_2=$LINENO
 
20052
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20053
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20054
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
20055
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
20056
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
20057
             CONFIG_SHELL=$as_dir/$as_base
 
20058
             export CONFIG_SHELL
 
20059
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
20060
           fi;;
 
20061
         esac
 
20062
       done
 
20063
done
 
20064
;;
 
20065
  esac
 
20066
 
 
20067
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
20068
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
20069
  # line-number line before each line; the second 'sed' does the real
 
20070
  # work.  The second script uses 'N' to pair each line-number line
 
20071
  # with the numbered line, and appends trailing '-' during
 
20072
  # substitution so that $LINENO is not a special case at line end.
 
20073
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20074
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
20075
  sed '=' <$as_myself |
 
20076
    sed '
 
20077
      N
 
20078
      s,$,-,
 
20079
      : loop
 
20080
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
20081
      t loop
 
20082
      s,-$,,
 
20083
      s,^['$as_cr_digits']*\n,,
 
20084
    ' >$as_me.lineno &&
 
20085
  chmod +x $as_me.lineno ||
 
20086
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
20087
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
20088
   { (exit 1); exit 1; }; }
 
20089
 
 
20090
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20091
  # (the dirname of $[0] is not the place where we might find the
 
20092
  # original and so on.  Autoconf is especially sensible to this).
 
20093
  . ./$as_me.lineno
 
20094
  # Exit status is that of the last command.
 
20095
  exit
 
20096
}
 
20097
 
 
20098
 
 
20099
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
20100
  *c*,-n*) ECHO_N= ECHO_C='
 
20101
' ECHO_T='      ' ;;
 
20102
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
20103
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
20104
esac
 
20105
 
 
20106
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20107
  as_expr=expr
 
20108
else
 
20109
  as_expr=false
 
20110
fi
 
20111
 
 
20112
rm -f conf$$ conf$$.exe conf$$.file
 
20113
echo >conf$$.file
 
20114
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20115
  # We could just check for DJGPP; but this test a) works b) is more generic
 
20116
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
20117
  if test -f conf$$.exe; then
 
20118
    # Don't use ln at all; we don't have any links
 
20119
    as_ln_s='cp -p'
 
20120
  else
 
20121
    as_ln_s='ln -s'
 
20122
  fi
 
20123
elif ln conf$$.file conf$$ 2>/dev/null; then
 
20124
  as_ln_s=ln
 
20125
else
 
20126
  as_ln_s='cp -p'
 
20127
fi
 
20128
rm -f conf$$ conf$$.exe conf$$.file
 
20129
 
 
20130
if mkdir -p . 2>/dev/null; then
 
20131
  as_mkdir_p=:
 
20132
else
 
20133
  test -d ./-p && rmdir ./-p
 
20134
  as_mkdir_p=false
 
20135
fi
 
20136
 
 
20137
as_executable_p="test -f"
 
20138
 
 
20139
# Sed expression to map a string onto a valid CPP name.
 
20140
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20141
 
 
20142
# Sed expression to map a string onto a valid variable name.
 
20143
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20144
 
 
20145
 
 
20146
# IFS
 
20147
# We need space, tab and new line, in precisely that order.
 
20148
as_nl='
 
20149
'
 
20150
IFS="   $as_nl"
 
20151
 
 
20152
# CDPATH.
 
20153
$as_unset CDPATH
 
20154
 
 
20155
exec 6>&1
 
20156
 
 
20157
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
20158
# report actual input values of CONFIG_FILES etc. instead of their
 
20159
# values after options handling.  Logging --version etc. is OK.
 
20160
exec 5>>config.log
 
20161
{
 
20162
  echo
 
20163
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
20164
## Running $as_me. ##
 
20165
_ASBOX
 
20166
} >&5
 
20167
cat >&5 <<_CSEOF
 
20168
 
 
20169
This file was extended by libFS $as_me 3.0.0, which was
 
20170
generated by GNU Autoconf 2.59.  Invocation command line was
 
20171
 
 
20172
  CONFIG_FILES    = $CONFIG_FILES
 
20173
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
20174
  CONFIG_LINKS    = $CONFIG_LINKS
 
20175
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
20176
  $ $0 $@
 
20177
 
 
20178
_CSEOF
 
20179
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
20180
echo >&5
 
20181
_ACEOF
 
20182
 
 
20183
# Files that config.status was made for.
 
20184
if test -n "$ac_config_files"; then
 
20185
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
20186
fi
 
20187
 
 
20188
if test -n "$ac_config_headers"; then
 
20189
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
20190
fi
 
20191
 
 
20192
if test -n "$ac_config_links"; then
 
20193
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
20194
fi
 
20195
 
 
20196
if test -n "$ac_config_commands"; then
 
20197
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
20198
fi
 
20199
 
 
20200
cat >>$CONFIG_STATUS <<\_ACEOF
 
20201
 
 
20202
ac_cs_usage="\
 
20203
\`$as_me' instantiates files from templates according to the
 
20204
current configuration.
 
20205
 
 
20206
Usage: $0 [OPTIONS] [FILE]...
 
20207
 
 
20208
  -h, --help       print this help, then exit
 
20209
  -V, --version    print version number, then exit
 
20210
  -q, --quiet      do not print progress messages
 
20211
  -d, --debug      don't remove temporary files
 
20212
      --recheck    update $as_me by reconfiguring in the same conditions
 
20213
  --file=FILE[:TEMPLATE]
 
20214
                   instantiate the configuration file FILE
 
20215
  --header=FILE[:TEMPLATE]
 
20216
                   instantiate the configuration header FILE
 
20217
 
 
20218
Configuration files:
 
20219
$config_files
 
20220
 
 
20221
Configuration headers:
 
20222
$config_headers
 
20223
 
 
20224
Configuration commands:
 
20225
$config_commands
 
20226
 
 
20227
Report bugs to <bug-autoconf@gnu.org>."
 
20228
_ACEOF
 
20229
 
 
20230
cat >>$CONFIG_STATUS <<_ACEOF
 
20231
ac_cs_version="\\
 
20232
libFS config.status 3.0.0
 
20233
configured by $0, generated by GNU Autoconf 2.59,
 
20234
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
20235
 
 
20236
Copyright (C) 2003 Free Software Foundation, Inc.
 
20237
This config.status script is free software; the Free Software Foundation
 
20238
gives unlimited permission to copy, distribute and modify it."
 
20239
srcdir=$srcdir
 
20240
INSTALL="$INSTALL"
 
20241
_ACEOF
 
20242
 
 
20243
cat >>$CONFIG_STATUS <<\_ACEOF
 
20244
# If no file are specified by the user, then we need to provide default
 
20245
# value.  By we need to know if files were specified by the user.
 
20246
ac_need_defaults=:
 
20247
while test $# != 0
 
20248
do
 
20249
  case $1 in
 
20250
  --*=*)
 
20251
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
20252
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
20253
    ac_shift=:
 
20254
    ;;
 
20255
  -*)
 
20256
    ac_option=$1
 
20257
    ac_optarg=$2
 
20258
    ac_shift=shift
 
20259
    ;;
 
20260
  *) # This is not an option, so the user has probably given explicit
 
20261
     # arguments.
 
20262
     ac_option=$1
 
20263
     ac_need_defaults=false;;
 
20264
  esac
 
20265
 
 
20266
  case $ac_option in
 
20267
  # Handling of the options.
 
20268
_ACEOF
 
20269
cat >>$CONFIG_STATUS <<\_ACEOF
 
20270
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
20271
    ac_cs_recheck=: ;;
 
20272
  --version | --vers* | -V )
 
20273
    echo "$ac_cs_version"; exit 0 ;;
 
20274
  --he | --h)
 
20275
    # Conflict between --help and --header
 
20276
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
20277
Try \`$0 --help' for more information." >&5
 
20278
echo "$as_me: error: ambiguous option: $1
 
20279
Try \`$0 --help' for more information." >&2;}
 
20280
   { (exit 1); exit 1; }; };;
 
20281
  --help | --hel | -h )
 
20282
    echo "$ac_cs_usage"; exit 0 ;;
 
20283
  --debug | --d* | -d )
 
20284
    debug=: ;;
 
20285
  --file | --fil | --fi | --f )
 
20286
    $ac_shift
 
20287
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
20288
    ac_need_defaults=false;;
 
20289
  --header | --heade | --head | --hea )
 
20290
    $ac_shift
 
20291
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
20292
    ac_need_defaults=false;;
 
20293
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
20294
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
20295
    ac_cs_silent=: ;;
 
20296
 
 
20297
  # This is an error.
 
20298
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
20299
Try \`$0 --help' for more information." >&5
 
20300
echo "$as_me: error: unrecognized option: $1
 
20301
Try \`$0 --help' for more information." >&2;}
 
20302
   { (exit 1); exit 1; }; } ;;
 
20303
 
 
20304
  *) ac_config_targets="$ac_config_targets $1" ;;
 
20305
 
 
20306
  esac
 
20307
  shift
 
20308
done
 
20309
 
 
20310
ac_configure_extra_args=
 
20311
 
 
20312
if $ac_cs_silent; then
 
20313
  exec 6>/dev/null
 
20314
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
20315
fi
 
20316
 
 
20317
_ACEOF
 
20318
cat >>$CONFIG_STATUS <<_ACEOF
 
20319
if \$ac_cs_recheck; then
 
20320
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
20321
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
20322
fi
 
20323
 
 
20324
_ACEOF
 
20325
 
 
20326
cat >>$CONFIG_STATUS <<_ACEOF
 
20327
#
 
20328
# INIT-COMMANDS section.
 
20329
#
 
20330
 
 
20331
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
20332
 
 
20333
_ACEOF
 
20334
 
 
20335
 
 
20336
 
 
20337
cat >>$CONFIG_STATUS <<\_ACEOF
 
20338
for ac_config_target in $ac_config_targets
 
20339
do
 
20340
  case "$ac_config_target" in
 
20341
  # Handling of arguments.
 
20342
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
20343
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
20344
  "libfs.pc" ) CONFIG_FILES="$CONFIG_FILES libfs.pc" ;;
 
20345
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
20346
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
20347
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
20348
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
20349
   { (exit 1); exit 1; }; };;
 
20350
  esac
 
20351
done
 
20352
 
 
20353
# If the user did not use the arguments to specify the items to instantiate,
 
20354
# then the envvar interface is used.  Set only those that are not.
 
20355
# We use the long form for the default assignment because of an extremely
 
20356
# bizarre bug on SunOS 4.1.3.
 
20357
if $ac_need_defaults; then
 
20358
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
20359
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
20360
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
20361
fi
 
20362
 
 
20363
# Have a temporary directory for convenience.  Make it in the build tree
 
20364
# simply because there is no reason to put it here, and in addition,
 
20365
# creating and moving files from /tmp can sometimes cause problems.
 
20366
# Create a temporary directory, and hook for its removal unless debugging.
 
20367
$debug ||
 
20368
{
 
20369
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
20370
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
20371
}
 
20372
 
 
20373
# Create a (secure) tmp directory for tmp files.
 
20374
 
 
20375
{
 
20376
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
20377
  test -n "$tmp" && test -d "$tmp"
 
20378
}  ||
 
20379
{
 
20380
  tmp=./confstat$$-$RANDOM
 
20381
  (umask 077 && mkdir $tmp)
 
20382
} ||
 
20383
{
 
20384
   echo "$me: cannot create a temporary directory in ." >&2
 
20385
   { (exit 1); exit 1; }
 
20386
}
 
20387
 
 
20388
_ACEOF
 
20389
 
 
20390
cat >>$CONFIG_STATUS <<_ACEOF
 
20391
 
 
20392
#
 
20393
# CONFIG_FILES section.
 
20394
#
 
20395
 
 
20396
# No need to generate the scripts if there are no CONFIG_FILES.
 
20397
# This happens for instance when ./config.status config.h
 
20398
if test -n "\$CONFIG_FILES"; then
 
20399
  # Protect against being on the right side of a sed subst in config.status.
 
20400
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
20401
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
20402
s,@SHELL@,$SHELL,;t t
 
20403
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
20404
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
20405
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
20406
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
20407
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
20408
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
20409
s,@exec_prefix@,$exec_prefix,;t t
 
20410
s,@prefix@,$prefix,;t t
 
20411
s,@program_transform_name@,$program_transform_name,;t t
 
20412
s,@bindir@,$bindir,;t t
 
20413
s,@sbindir@,$sbindir,;t t
 
20414
s,@libexecdir@,$libexecdir,;t t
 
20415
s,@datadir@,$datadir,;t t
 
20416
s,@sysconfdir@,$sysconfdir,;t t
 
20417
s,@sharedstatedir@,$sharedstatedir,;t t
 
20418
s,@localstatedir@,$localstatedir,;t t
 
20419
s,@libdir@,$libdir,;t t
 
20420
s,@includedir@,$includedir,;t t
 
20421
s,@oldincludedir@,$oldincludedir,;t t
 
20422
s,@infodir@,$infodir,;t t
 
20423
s,@mandir@,$mandir,;t t
 
20424
s,@build_alias@,$build_alias,;t t
 
20425
s,@host_alias@,$host_alias,;t t
 
20426
s,@target_alias@,$target_alias,;t t
 
20427
s,@DEFS@,$DEFS,;t t
 
20428
s,@ECHO_C@,$ECHO_C,;t t
 
20429
s,@ECHO_N@,$ECHO_N,;t t
 
20430
s,@ECHO_T@,$ECHO_T,;t t
 
20431
s,@LIBS@,$LIBS,;t t
 
20432
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
20433
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
20434
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
20435
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
20436
s,@PACKAGE@,$PACKAGE,;t t
 
20437
s,@VERSION@,$VERSION,;t t
 
20438
s,@ACLOCAL@,$ACLOCAL,;t t
 
20439
s,@AUTOCONF@,$AUTOCONF,;t t
 
20440
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
20441
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
20442
s,@MAKEINFO@,$MAKEINFO,;t t
 
20443
s,@install_sh@,$install_sh,;t t
 
20444
s,@STRIP@,$STRIP,;t t
 
20445
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
20446
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
20447
s,@mkdir_p@,$mkdir_p,;t t
 
20448
s,@AWK@,$AWK,;t t
 
20449
s,@SET_MAKE@,$SET_MAKE,;t t
 
20450
s,@am__leading_dot@,$am__leading_dot,;t t
 
20451
s,@AMTAR@,$AMTAR,;t t
 
20452
s,@am__tar@,$am__tar,;t t
 
20453
s,@am__untar@,$am__untar,;t t
 
20454
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
20455
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
20456
s,@MAINT@,$MAINT,;t t
 
20457
s,@CC@,$CC,;t t
 
20458
s,@CFLAGS@,$CFLAGS,;t t
 
20459
s,@LDFLAGS@,$LDFLAGS,;t t
 
20460
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
20461
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
20462
s,@EXEEXT@,$EXEEXT,;t t
 
20463
s,@OBJEXT@,$OBJEXT,;t t
 
20464
s,@DEPDIR@,$DEPDIR,;t t
 
20465
s,@am__include@,$am__include,;t t
 
20466
s,@am__quote@,$am__quote,;t t
 
20467
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
20468
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
20469
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
20470
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
20471
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
20472
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
20473
s,@build@,$build,;t t
 
20474
s,@build_cpu@,$build_cpu,;t t
 
20475
s,@build_vendor@,$build_vendor,;t t
 
20476
s,@build_os@,$build_os,;t t
 
20477
s,@host@,$host,;t t
 
20478
s,@host_cpu@,$host_cpu,;t t
 
20479
s,@host_vendor@,$host_vendor,;t t
 
20480
s,@host_os@,$host_os,;t t
 
20481
s,@EGREP@,$EGREP,;t t
 
20482
s,@LN_S@,$LN_S,;t t
 
20483
s,@ECHO@,$ECHO,;t t
 
20484
s,@AR@,$AR,;t t
 
20485
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
20486
s,@RANLIB@,$RANLIB,;t t
 
20487
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
20488
s,@CPP@,$CPP,;t t
 
20489
s,@CXX@,$CXX,;t t
 
20490
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
20491
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
20492
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
20493
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
20494
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
20495
s,@CXXCPP@,$CXXCPP,;t t
 
20496
s,@F77@,$F77,;t t
 
20497
s,@FFLAGS@,$FFLAGS,;t t
 
20498
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
20499
s,@LIBTOOL@,$LIBTOOL,;t t
 
20500
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
20501
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
 
20502
s,@DEP_CFLAGS@,$DEP_CFLAGS,;t t
 
20503
s,@DEP_LIBS@,$DEP_LIBS,;t t
 
20504
s,@XTRANS_CFLAGS@,$XTRANS_CFLAGS,;t t
 
20505
s,@XTRANS_LIBS@,$XTRANS_LIBS,;t t
 
20506
s,@LIBOBJS@,$LIBOBJS,;t t
 
20507
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
20508
CEOF
 
20509
 
 
20510
_ACEOF
 
20511
 
 
20512
  cat >>$CONFIG_STATUS <<\_ACEOF
 
20513
  # Split the substitutions into bite-sized pieces for seds with
 
20514
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
20515
  ac_max_sed_lines=48
 
20516
  ac_sed_frag=1 # Number of current file.
 
20517
  ac_beg=1 # First line for current file.
 
20518
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
20519
  ac_more_lines=:
 
20520
  ac_sed_cmds=
 
20521
  while $ac_more_lines; do
 
20522
    if test $ac_beg -gt 1; then
 
20523
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
20524
    else
 
20525
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
20526
    fi
 
20527
    if test ! -s $tmp/subs.frag; then
 
20528
      ac_more_lines=false
 
20529
    else
 
20530
      # The purpose of the label and of the branching condition is to
 
20531
      # speed up the sed processing (if there are no `@' at all, there
 
20532
      # is no need to browse any of the substitutions).
 
20533
      # These are the two extra sed commands mentioned above.
 
20534
      (echo ':t
 
20535
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
20536
      if test -z "$ac_sed_cmds"; then
 
20537
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
20538
      else
 
20539
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
20540
      fi
 
20541
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
20542
      ac_beg=$ac_end
 
20543
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
20544
    fi
 
20545
  done
 
20546
  if test -z "$ac_sed_cmds"; then
 
20547
    ac_sed_cmds=cat
 
20548
  fi
 
20549
fi # test -n "$CONFIG_FILES"
 
20550
 
 
20551
_ACEOF
 
20552
cat >>$CONFIG_STATUS <<\_ACEOF
 
20553
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
20554
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
20555
  case $ac_file in
 
20556
  - | *:- | *:-:* ) # input from stdin
 
20557
        cat >$tmp/stdin
 
20558
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20559
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20560
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20561
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20562
  * )   ac_file_in=$ac_file.in ;;
 
20563
  esac
 
20564
 
 
20565
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
20566
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
20567
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20568
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20569
         X"$ac_file" : 'X\(//\)$' \| \
 
20570
         X"$ac_file" : 'X\(/\)' \| \
 
20571
         .     : '\(.\)' 2>/dev/null ||
 
20572
echo X"$ac_file" |
 
20573
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20574
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20575
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20576
          /^X\(\/\).*/{ s//\1/; q; }
 
20577
          s/.*/./; q'`
 
20578
  { if $as_mkdir_p; then
 
20579
    mkdir -p "$ac_dir"
 
20580
  else
 
20581
    as_dir="$ac_dir"
 
20582
    as_dirs=
 
20583
    while test ! -d "$as_dir"; do
 
20584
      as_dirs="$as_dir $as_dirs"
 
20585
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20586
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20587
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20588
         X"$as_dir" : 'X\(//\)$' \| \
 
20589
         X"$as_dir" : 'X\(/\)' \| \
 
20590
         .     : '\(.\)' 2>/dev/null ||
 
20591
echo X"$as_dir" |
 
20592
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20593
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20594
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20595
          /^X\(\/\).*/{ s//\1/; q; }
 
20596
          s/.*/./; q'`
 
20597
    done
 
20598
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20599
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
20600
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
20601
   { (exit 1); exit 1; }; }; }
 
20602
 
 
20603
  ac_builddir=.
 
20604
 
 
20605
if test "$ac_dir" != .; then
 
20606
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
20607
  # A "../" for each directory in $ac_dir_suffix.
 
20608
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
20609
else
 
20610
  ac_dir_suffix= ac_top_builddir=
 
20611
fi
 
20612
 
 
20613
case $srcdir in
 
20614
  .)  # No --srcdir option.  We are building in place.
 
20615
    ac_srcdir=.
 
20616
    if test -z "$ac_top_builddir"; then
 
20617
       ac_top_srcdir=.
 
20618
    else
 
20619
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
20620
    fi ;;
 
20621
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
20622
    ac_srcdir=$srcdir$ac_dir_suffix;
 
20623
    ac_top_srcdir=$srcdir ;;
 
20624
  *) # Relative path.
 
20625
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
20626
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
20627
esac
 
20628
 
 
20629
# Do not use `cd foo && pwd` to compute absolute paths, because
 
20630
# the directories may not exist.
 
20631
case `pwd` in
 
20632
.) ac_abs_builddir="$ac_dir";;
 
20633
*)
 
20634
  case "$ac_dir" in
 
20635
  .) ac_abs_builddir=`pwd`;;
 
20636
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
20637
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
20638
  esac;;
 
20639
esac
 
20640
case $ac_abs_builddir in
 
20641
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
20642
*)
 
20643
  case ${ac_top_builddir}. in
 
20644
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
20645
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
20646
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
20647
  esac;;
 
20648
esac
 
20649
case $ac_abs_builddir in
 
20650
.) ac_abs_srcdir=$ac_srcdir;;
 
20651
*)
 
20652
  case $ac_srcdir in
 
20653
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
20654
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
20655
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
20656
  esac;;
 
20657
esac
 
20658
case $ac_abs_builddir in
 
20659
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
20660
*)
 
20661
  case $ac_top_srcdir in
 
20662
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
20663
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
20664
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
20665
  esac;;
 
20666
esac
 
20667
 
 
20668
 
 
20669
  case $INSTALL in
 
20670
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
20671
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
20672
  esac
 
20673
 
 
20674
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
20675
  # use $as_me), people would be surprised to read:
 
20676
  #    /* config.h.  Generated by config.status.  */
 
20677
  if test x"$ac_file" = x-; then
 
20678
    configure_input=
 
20679
  else
 
20680
    configure_input="$ac_file.  "
 
20681
  fi
 
20682
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
20683
                                     sed 's,.*/,,'` by configure."
 
20684
 
 
20685
  # First look for the input files in the build tree, otherwise in the
 
20686
  # src tree.
 
20687
  ac_file_inputs=`IFS=:
 
20688
    for f in $ac_file_in; do
 
20689
      case $f in
 
20690
      -) echo $tmp/stdin ;;
 
20691
      [\\/$]*)
 
20692
         # Absolute (can't be DOS-style, as IFS=:)
 
20693
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20694
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20695
   { (exit 1); exit 1; }; }
 
20696
         echo "$f";;
 
20697
      *) # Relative
 
20698
         if test -f "$f"; then
 
20699
           # Build tree
 
20700
           echo "$f"
 
20701
         elif test -f "$srcdir/$f"; then
 
20702
           # Source tree
 
20703
           echo "$srcdir/$f"
 
20704
         else
 
20705
           # /dev/null tree
 
20706
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20707
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20708
   { (exit 1); exit 1; }; }
 
20709
         fi;;
 
20710
      esac
 
20711
    done` || { (exit 1); exit 1; }
 
20712
 
 
20713
  if test x"$ac_file" != x-; then
 
20714
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
20715
echo "$as_me: creating $ac_file" >&6;}
 
20716
    rm -f "$ac_file"
 
20717
  fi
 
20718
_ACEOF
 
20719
cat >>$CONFIG_STATUS <<_ACEOF
 
20720
  sed "$ac_vpsub
 
20721
$extrasub
 
20722
_ACEOF
 
20723
cat >>$CONFIG_STATUS <<\_ACEOF
 
20724
:t
 
20725
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
20726
s,@configure_input@,$configure_input,;t t
 
20727
s,@srcdir@,$ac_srcdir,;t t
 
20728
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
20729
s,@top_srcdir@,$ac_top_srcdir,;t t
 
20730
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
20731
s,@builddir@,$ac_builddir,;t t
 
20732
s,@abs_builddir@,$ac_abs_builddir,;t t
 
20733
s,@top_builddir@,$ac_top_builddir,;t t
 
20734
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
20735
s,@INSTALL@,$ac_INSTALL,;t t
 
20736
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
20737
  rm -f $tmp/stdin
 
20738
  if test x"$ac_file" != x-; then
 
20739
    mv $tmp/out $ac_file
 
20740
  else
 
20741
    cat $tmp/out
 
20742
    rm -f $tmp/out
 
20743
  fi
 
20744
 
 
20745
done
 
20746
_ACEOF
 
20747
cat >>$CONFIG_STATUS <<\_ACEOF
 
20748
 
 
20749
#
 
20750
# CONFIG_HEADER section.
 
20751
#
 
20752
 
 
20753
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
20754
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
20755
#
 
20756
# ac_d sets the value in "#define NAME VALUE" lines.
 
20757
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
20758
ac_dB='[         ].*$,\1#\2'
 
20759
ac_dC=' '
 
20760
ac_dD=',;t'
 
20761
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
20762
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
20763
ac_uB='$,\1#\2define\3'
 
20764
ac_uC=' '
 
20765
ac_uD=',;t'
 
20766
 
 
20767
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
20768
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
20769
  case $ac_file in
 
20770
  - | *:- | *:-:* ) # input from stdin
 
20771
        cat >$tmp/stdin
 
20772
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20773
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20774
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20775
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20776
  * )   ac_file_in=$ac_file.in ;;
 
20777
  esac
 
20778
 
 
20779
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
20780
echo "$as_me: creating $ac_file" >&6;}
 
20781
 
 
20782
  # First look for the input files in the build tree, otherwise in the
 
20783
  # src tree.
 
20784
  ac_file_inputs=`IFS=:
 
20785
    for f in $ac_file_in; do
 
20786
      case $f in
 
20787
      -) echo $tmp/stdin ;;
 
20788
      [\\/$]*)
 
20789
         # Absolute (can't be DOS-style, as IFS=:)
 
20790
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20791
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20792
   { (exit 1); exit 1; }; }
 
20793
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
20794
         echo "$f";;
 
20795
      *) # Relative
 
20796
         if test -f "$f"; then
 
20797
           # Build tree
 
20798
           echo "$f"
 
20799
         elif test -f "$srcdir/$f"; then
 
20800
           # Source tree
 
20801
           echo "$srcdir/$f"
 
20802
         else
 
20803
           # /dev/null tree
 
20804
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20805
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20806
   { (exit 1); exit 1; }; }
 
20807
         fi;;
 
20808
      esac
 
20809
    done` || { (exit 1); exit 1; }
 
20810
  # Remove the trailing spaces.
 
20811
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
20812
 
 
20813
_ACEOF
 
20814
 
 
20815
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
20816
# `conftest.undefs', that substitutes the proper values into
 
20817
# config.h.in to produce config.h.  The first handles `#define'
 
20818
# templates, and the second `#undef' templates.
 
20819
# And first: Protect against being on the right side of a sed subst in
 
20820
# config.status.  Protect against being in an unquoted here document
 
20821
# in config.status.
 
20822
rm -f conftest.defines conftest.undefs
 
20823
# Using a here document instead of a string reduces the quoting nightmare.
 
20824
# Putting comments in sed scripts is not portable.
 
20825
#
 
20826
# `end' is used to avoid that the second main sed command (meant for
 
20827
# 0-ary CPP macros) applies to n-ary macro definitions.
 
20828
# See the Autoconf documentation for `clear'.
 
20829
cat >confdef2sed.sed <<\_ACEOF
 
20830
s/[\\&,]/\\&/g
 
20831
s,[\\$`],\\&,g
 
20832
t clear
 
20833
: clear
 
20834
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
20835
t end
 
20836
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
20837
: end
 
20838
_ACEOF
 
20839
# If some macros were called several times there might be several times
 
20840
# the same #defines, which is useless.  Nevertheless, we may not want to
 
20841
# sort them, since we want the *last* AC-DEFINE to be honored.
 
20842
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
20843
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
20844
rm -f confdef2sed.sed
 
20845
 
 
20846
# This sed command replaces #undef with comments.  This is necessary, for
 
20847
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
20848
# on some systems where configure will not decide to define it.
 
20849
cat >>conftest.undefs <<\_ACEOF
 
20850
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
20851
_ACEOF
 
20852
 
 
20853
# Break up conftest.defines because some shells have a limit on the size
 
20854
# of here documents, and old seds have small limits too (100 cmds).
 
20855
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
20856
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
20857
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
20858
echo '  :' >>$CONFIG_STATUS
 
20859
rm -f conftest.tail
 
20860
while grep . conftest.defines >/dev/null
 
20861
do
 
20862
  # Write a limited-size here document to $tmp/defines.sed.
 
20863
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
20864
  # Speed up: don't consider the non `#define' lines.
 
20865
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
20866
  # Work around the forget-to-reset-the-flag bug.
 
20867
  echo 't clr' >>$CONFIG_STATUS
 
20868
  echo ': clr' >>$CONFIG_STATUS
 
20869
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
20870
  echo 'CEOF
 
20871
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
20872
  rm -f $tmp/in
 
20873
  mv $tmp/out $tmp/in
 
20874
' >>$CONFIG_STATUS
 
20875
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
20876
  rm -f conftest.defines
 
20877
  mv conftest.tail conftest.defines
 
20878
done
 
20879
rm -f conftest.defines
 
20880
echo '  fi # grep' >>$CONFIG_STATUS
 
20881
echo >>$CONFIG_STATUS
 
20882
 
 
20883
# Break up conftest.undefs because some shells have a limit on the size
 
20884
# of here documents, and old seds have small limits too (100 cmds).
 
20885
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
20886
rm -f conftest.tail
 
20887
while grep . conftest.undefs >/dev/null
 
20888
do
 
20889
  # Write a limited-size here document to $tmp/undefs.sed.
 
20890
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
20891
  # Speed up: don't consider the non `#undef'
 
20892
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
20893
  # Work around the forget-to-reset-the-flag bug.
 
20894
  echo 't clr' >>$CONFIG_STATUS
 
20895
  echo ': clr' >>$CONFIG_STATUS
 
20896
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
20897
  echo 'CEOF
 
20898
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
20899
  rm -f $tmp/in
 
20900
  mv $tmp/out $tmp/in
 
20901
' >>$CONFIG_STATUS
 
20902
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
20903
  rm -f conftest.undefs
 
20904
  mv conftest.tail conftest.undefs
 
20905
done
 
20906
rm -f conftest.undefs
 
20907
 
 
20908
cat >>$CONFIG_STATUS <<\_ACEOF
 
20909
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
20910
  # use $as_me), people would be surprised to read:
 
20911
  #    /* config.h.  Generated by config.status.  */
 
20912
  if test x"$ac_file" = x-; then
 
20913
    echo "/* Generated by configure.  */" >$tmp/config.h
 
20914
  else
 
20915
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
20916
  fi
 
20917
  cat $tmp/in >>$tmp/config.h
 
20918
  rm -f $tmp/in
 
20919
  if test x"$ac_file" != x-; then
 
20920
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
20921
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
20922
echo "$as_me: $ac_file is unchanged" >&6;}
 
20923
    else
 
20924
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
20925
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20926
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20927
         X"$ac_file" : 'X\(//\)$' \| \
 
20928
         X"$ac_file" : 'X\(/\)' \| \
 
20929
         .     : '\(.\)' 2>/dev/null ||
 
20930
echo X"$ac_file" |
 
20931
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20932
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20933
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20934
          /^X\(\/\).*/{ s//\1/; q; }
 
20935
          s/.*/./; q'`
 
20936
      { if $as_mkdir_p; then
 
20937
    mkdir -p "$ac_dir"
 
20938
  else
 
20939
    as_dir="$ac_dir"
 
20940
    as_dirs=
 
20941
    while test ! -d "$as_dir"; do
 
20942
      as_dirs="$as_dir $as_dirs"
 
20943
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20944
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20945
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20946
         X"$as_dir" : 'X\(//\)$' \| \
 
20947
         X"$as_dir" : 'X\(/\)' \| \
 
20948
         .     : '\(.\)' 2>/dev/null ||
 
20949
echo X"$as_dir" |
 
20950
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20951
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20952
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20953
          /^X\(\/\).*/{ s//\1/; q; }
 
20954
          s/.*/./; q'`
 
20955
    done
 
20956
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20957
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
20958
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
20959
   { (exit 1); exit 1; }; }; }
 
20960
 
 
20961
      rm -f $ac_file
 
20962
      mv $tmp/config.h $ac_file
 
20963
    fi
 
20964
  else
 
20965
    cat $tmp/config.h
 
20966
    rm -f $tmp/config.h
 
20967
  fi
 
20968
# Compute $ac_file's index in $config_headers.
 
20969
_am_stamp_count=1
 
20970
for _am_header in $config_headers :; do
 
20971
  case $_am_header in
 
20972
    $ac_file | $ac_file:* )
 
20973
      break ;;
 
20974
    * )
 
20975
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
20976
  esac
 
20977
done
 
20978
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
20979
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20980
         X$ac_file : 'X\(//\)[^/]' \| \
 
20981
         X$ac_file : 'X\(//\)$' \| \
 
20982
         X$ac_file : 'X\(/\)' \| \
 
20983
         .     : '\(.\)' 2>/dev/null ||
 
20984
echo X$ac_file |
 
20985
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20986
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20987
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20988
          /^X\(\/\).*/{ s//\1/; q; }
 
20989
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
20990
done
 
20991
_ACEOF
 
20992
cat >>$CONFIG_STATUS <<\_ACEOF
 
20993
 
 
20994
#
 
20995
# CONFIG_COMMANDS section.
 
20996
#
 
20997
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
20998
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
20999
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21000
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
21001
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21002
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
21003
         X"$ac_dest" : 'X\(//\)$' \| \
 
21004
         X"$ac_dest" : 'X\(/\)' \| \
 
21005
         .     : '\(.\)' 2>/dev/null ||
 
21006
echo X"$ac_dest" |
 
21007
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21008
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21009
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21010
          /^X\(\/\).*/{ s//\1/; q; }
 
21011
          s/.*/./; q'`
 
21012
  { if $as_mkdir_p; then
 
21013
    mkdir -p "$ac_dir"
 
21014
  else
 
21015
    as_dir="$ac_dir"
 
21016
    as_dirs=
 
21017
    while test ! -d "$as_dir"; do
 
21018
      as_dirs="$as_dir $as_dirs"
 
21019
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21020
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21021
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21022
         X"$as_dir" : 'X\(//\)$' \| \
 
21023
         X"$as_dir" : 'X\(/\)' \| \
 
21024
         .     : '\(.\)' 2>/dev/null ||
 
21025
echo X"$as_dir" |
 
21026
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21027
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21028
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21029
          /^X\(\/\).*/{ s//\1/; q; }
 
21030
          s/.*/./; q'`
 
21031
    done
 
21032
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21033
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21034
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21035
   { (exit 1); exit 1; }; }; }
 
21036
 
 
21037
  ac_builddir=.
 
21038
 
 
21039
if test "$ac_dir" != .; then
 
21040
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21041
  # A "../" for each directory in $ac_dir_suffix.
 
21042
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21043
else
 
21044
  ac_dir_suffix= ac_top_builddir=
 
21045
fi
 
21046
 
 
21047
case $srcdir in
 
21048
  .)  # No --srcdir option.  We are building in place.
 
21049
    ac_srcdir=.
 
21050
    if test -z "$ac_top_builddir"; then
 
21051
       ac_top_srcdir=.
 
21052
    else
 
21053
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21054
    fi ;;
 
21055
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21056
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21057
    ac_top_srcdir=$srcdir ;;
 
21058
  *) # Relative path.
 
21059
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21060
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21061
esac
 
21062
 
 
21063
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21064
# the directories may not exist.
 
21065
case `pwd` in
 
21066
.) ac_abs_builddir="$ac_dir";;
 
21067
*)
 
21068
  case "$ac_dir" in
 
21069
  .) ac_abs_builddir=`pwd`;;
 
21070
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21071
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21072
  esac;;
 
21073
esac
 
21074
case $ac_abs_builddir in
 
21075
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21076
*)
 
21077
  case ${ac_top_builddir}. in
 
21078
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21079
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21080
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21081
  esac;;
 
21082
esac
 
21083
case $ac_abs_builddir in
 
21084
.) ac_abs_srcdir=$ac_srcdir;;
 
21085
*)
 
21086
  case $ac_srcdir in
 
21087
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21088
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21089
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21090
  esac;;
 
21091
esac
 
21092
case $ac_abs_builddir in
 
21093
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21094
*)
 
21095
  case $ac_top_srcdir in
 
21096
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21097
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21098
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21099
  esac;;
 
21100
esac
 
21101
 
 
21102
 
 
21103
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
21104
echo "$as_me: executing $ac_dest commands" >&6;}
 
21105
  case $ac_dest in
 
21106
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
21107
  # Strip MF so we end up with the name of the file.
 
21108
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21109
  # Check whether this is an Automake generated Makefile or not.
 
21110
  # We used to match only the files named `Makefile.in', but
 
21111
  # some people rename them; so instead we look at the file content.
 
21112
  # Grep'ing the first line is not enough: some people post-process
 
21113
  # each Makefile.in and add a new line on top of each file to say so.
 
21114
  # So let's grep whole file.
 
21115
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
21116
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
21117
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21118
         X"$mf" : 'X\(//\)[^/]' \| \
 
21119
         X"$mf" : 'X\(//\)$' \| \
 
21120
         X"$mf" : 'X\(/\)' \| \
 
21121
         .     : '\(.\)' 2>/dev/null ||
 
21122
echo X"$mf" |
 
21123
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21124
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21125
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21126
          /^X\(\/\).*/{ s//\1/; q; }
 
21127
          s/.*/./; q'`
 
21128
  else
 
21129
    continue
 
21130
  fi
 
21131
  # Extract the definition of DEPDIR, am__include, and am__quote
 
21132
  # from the Makefile without running `make'.
 
21133
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21134
  test -z "$DEPDIR" && continue
 
21135
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
21136
  test -z "am__include" && continue
 
21137
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
21138
  # When using ansi2knr, U may be empty or an underscore; expand it
 
21139
  U=`sed -n 's/^U = //p' < "$mf"`
 
21140
  # Find all dependency output files, they are included files with
 
21141
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
21142
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
21143
  # expansion.
 
21144
  for file in `sed -n "
 
21145
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
21146
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
21147
    # Make sure the directory exists.
 
21148
    test -f "$dirpart/$file" && continue
 
21149
    fdir=`(dirname "$file") 2>/dev/null ||
 
21150
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21151
         X"$file" : 'X\(//\)[^/]' \| \
 
21152
         X"$file" : 'X\(//\)$' \| \
 
21153
         X"$file" : 'X\(/\)' \| \
 
21154
         .     : '\(.\)' 2>/dev/null ||
 
21155
echo X"$file" |
 
21156
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21157
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21158
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21159
          /^X\(\/\).*/{ s//\1/; q; }
 
21160
          s/.*/./; q'`
 
21161
    { if $as_mkdir_p; then
 
21162
    mkdir -p $dirpart/$fdir
 
21163
  else
 
21164
    as_dir=$dirpart/$fdir
 
21165
    as_dirs=
 
21166
    while test ! -d "$as_dir"; do
 
21167
      as_dirs="$as_dir $as_dirs"
 
21168
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21169
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21170
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21171
         X"$as_dir" : 'X\(//\)$' \| \
 
21172
         X"$as_dir" : 'X\(/\)' \| \
 
21173
         .     : '\(.\)' 2>/dev/null ||
 
21174
echo X"$as_dir" |
 
21175
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21176
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21177
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21178
          /^X\(\/\).*/{ s//\1/; q; }
 
21179
          s/.*/./; q'`
 
21180
    done
 
21181
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21182
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
21183
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
21184
   { (exit 1); exit 1; }; }; }
 
21185
 
 
21186
    # echo "creating $dirpart/$file"
 
21187
    echo '# dummy' > "$dirpart/$file"
 
21188
  done
 
21189
done
 
21190
 ;;
 
21191
  esac
 
21192
done
 
21193
_ACEOF
 
21194
 
 
21195
cat >>$CONFIG_STATUS <<\_ACEOF
 
21196
 
 
21197
{ (exit 0); exit 0; }
 
21198
_ACEOF
 
21199
chmod +x $CONFIG_STATUS
 
21200
ac_clean_files=$ac_clean_files_save
 
21201
 
 
21202
 
 
21203
# configure is writing to config.log, and then calls config.status.
 
21204
# config.status does its own redirection, appending to config.log.
 
21205
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21206
# by configure, so config.status won't be able to write to it; its
 
21207
# output is simply discarded.  So we exec the FD to /dev/null,
 
21208
# effectively closing config.log, so it can be properly (re)opened and
 
21209
# appended to by config.status.  When coming back to configure, we
 
21210
# need to make the FD available again.
 
21211
if test "$no_create" != yes; then
 
21212
  ac_cs_success=:
 
21213
  ac_config_status_args=
 
21214
  test "$silent" = yes &&
 
21215
    ac_config_status_args="$ac_config_status_args --quiet"
 
21216
  exec 5>/dev/null
 
21217
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21218
  exec 5>>config.log
 
21219
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21220
  # would make configure fail if this is the last instruction.
 
21221
  $ac_cs_success || { (exit 1); exit 1; }
 
21222
fi
 
21223