~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr-util/xml/expat/configure

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

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.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
289
       echo_test_string=`eval $cmd` &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="Makefile.in"
 
429
# Factoring default headers for most tests.
 
430
ac_includes_default="\
 
431
#include <stdio.h>
 
432
#if HAVE_SYS_TYPES_H
 
433
# include <sys/types.h>
 
434
#endif
 
435
#if HAVE_SYS_STAT_H
 
436
# include <sys/stat.h>
 
437
#endif
 
438
#if STDC_HEADERS
 
439
# include <stdlib.h>
 
440
# include <stddef.h>
 
441
#else
 
442
# if HAVE_STDLIB_H
 
443
#  include <stdlib.h>
 
444
# endif
 
445
#endif
 
446
#if HAVE_STRING_H
 
447
# if !STDC_HEADERS && HAVE_MEMORY_H
 
448
#  include <memory.h>
 
449
# endif
 
450
# include <string.h>
 
451
#endif
 
452
#if HAVE_STRINGS_H
 
453
# include <strings.h>
 
454
#endif
 
455
#if HAVE_INTTYPES_H
 
456
# include <inttypes.h>
 
457
#else
 
458
# if HAVE_STDINT_H
 
459
#  include <stdint.h>
 
460
# endif
 
461
#endif
 
462
#if HAVE_UNISTD_H
 
463
# include <unistd.h>
 
464
#endif"
 
465
 
 
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL blddir PACKAGE VERSION EXPAT_MAJOR_VERSION EXPAT_MINOR_VERSION EXPAT_EDIT LIBCURRENT LIBREVISION LIBAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS FILEMAP_OBJ LTLIBOBJS'
 
467
ac_subst_files=''
 
468
 
 
469
# Initialize some variables set by options.
 
470
ac_init_help=
 
471
ac_init_version=false
 
472
# The variables have the same names as the options, with
 
473
# dashes changed to underlines.
 
474
cache_file=/dev/null
 
475
exec_prefix=NONE
 
476
no_create=
 
477
no_recursion=
 
478
prefix=NONE
 
479
program_prefix=NONE
 
480
program_suffix=NONE
 
481
program_transform_name=s,x,x,
 
482
silent=
 
483
site=
 
484
srcdir=
 
485
verbose=
 
486
x_includes=NONE
 
487
x_libraries=NONE
 
488
 
 
489
# Installation directory options.
 
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
491
# and all the variables that are supposed to be based on exec_prefix
 
492
# by default will actually change.
 
493
# Use braces instead of parens because sh, perl, etc. also accept them.
 
494
bindir='${exec_prefix}/bin'
 
495
sbindir='${exec_prefix}/sbin'
 
496
libexecdir='${exec_prefix}/libexec'
 
497
datadir='${prefix}/share'
 
498
sysconfdir='${prefix}/etc'
 
499
sharedstatedir='${prefix}/com'
 
500
localstatedir='${prefix}/var'
 
501
libdir='${exec_prefix}/lib'
 
502
includedir='${prefix}/include'
 
503
oldincludedir='/usr/include'
 
504
infodir='${prefix}/info'
 
505
mandir='${prefix}/man'
 
506
 
 
507
ac_prev=
 
508
for ac_option
 
509
do
 
510
  # If the previous option needs an argument, assign it.
 
511
  if test -n "$ac_prev"; then
 
512
    eval "$ac_prev=\$ac_option"
 
513
    ac_prev=
 
514
    continue
 
515
  fi
 
516
 
 
517
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
518
 
 
519
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
520
 
 
521
  case $ac_option in
 
522
 
 
523
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
524
    ac_prev=bindir ;;
 
525
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
526
    bindir=$ac_optarg ;;
 
527
 
 
528
  -build | --build | --buil | --bui | --bu)
 
529
    ac_prev=build_alias ;;
 
530
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
531
    build_alias=$ac_optarg ;;
 
532
 
 
533
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
534
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
535
    ac_prev=cache_file ;;
 
536
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
537
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
538
    cache_file=$ac_optarg ;;
 
539
 
 
540
  --config-cache | -C)
 
541
    cache_file=config.cache ;;
 
542
 
 
543
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
544
    ac_prev=datadir ;;
 
545
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
546
  | --da=*)
 
547
    datadir=$ac_optarg ;;
 
548
 
 
549
  -disable-* | --disable-*)
 
550
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
551
    # Reject names that are not valid shell variable names.
 
552
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
553
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
554
   { (exit 1); exit 1; }; }
 
555
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
556
    eval "enable_$ac_feature=no" ;;
 
557
 
 
558
  -enable-* | --enable-*)
 
559
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
560
    # Reject names that are not valid shell variable names.
 
561
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
562
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
563
   { (exit 1); exit 1; }; }
 
564
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
565
    case $ac_option in
 
566
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
567
      *) ac_optarg=yes ;;
 
568
    esac
 
569
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
570
 
 
571
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
572
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
573
  | --exec | --exe | --ex)
 
574
    ac_prev=exec_prefix ;;
 
575
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
576
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
577
  | --exec=* | --exe=* | --ex=*)
 
578
    exec_prefix=$ac_optarg ;;
 
579
 
 
580
  -gas | --gas | --ga | --g)
 
581
    # Obsolete; use --with-gas.
 
582
    with_gas=yes ;;
 
583
 
 
584
  -help | --help | --hel | --he | -h)
 
585
    ac_init_help=long ;;
 
586
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
587
    ac_init_help=recursive ;;
 
588
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
589
    ac_init_help=short ;;
 
590
 
 
591
  -host | --host | --hos | --ho)
 
592
    ac_prev=host_alias ;;
 
593
  -host=* | --host=* | --hos=* | --ho=*)
 
594
    host_alias=$ac_optarg ;;
 
595
 
 
596
  -includedir | --includedir | --includedi | --included | --include \
 
597
  | --includ | --inclu | --incl | --inc)
 
598
    ac_prev=includedir ;;
 
599
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
600
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
601
    includedir=$ac_optarg ;;
 
602
 
 
603
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
604
    ac_prev=infodir ;;
 
605
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
606
    infodir=$ac_optarg ;;
 
607
 
 
608
  -libdir | --libdir | --libdi | --libd)
 
609
    ac_prev=libdir ;;
 
610
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
611
    libdir=$ac_optarg ;;
 
612
 
 
613
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
614
  | --libexe | --libex | --libe)
 
615
    ac_prev=libexecdir ;;
 
616
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
617
  | --libexe=* | --libex=* | --libe=*)
 
618
    libexecdir=$ac_optarg ;;
 
619
 
 
620
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
621
  | --localstate | --localstat | --localsta | --localst \
 
622
  | --locals | --local | --loca | --loc | --lo)
 
623
    ac_prev=localstatedir ;;
 
624
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
625
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
626
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
627
    localstatedir=$ac_optarg ;;
 
628
 
 
629
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
630
    ac_prev=mandir ;;
 
631
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
632
    mandir=$ac_optarg ;;
 
633
 
 
634
  -nfp | --nfp | --nf)
 
635
    # Obsolete; use --without-fp.
 
636
    with_fp=no ;;
 
637
 
 
638
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
639
  | --no-cr | --no-c | -n)
 
640
    no_create=yes ;;
 
641
 
 
642
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
643
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
644
    no_recursion=yes ;;
 
645
 
 
646
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
647
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
648
  | --oldin | --oldi | --old | --ol | --o)
 
649
    ac_prev=oldincludedir ;;
 
650
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
651
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
652
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
653
    oldincludedir=$ac_optarg ;;
 
654
 
 
655
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
656
    ac_prev=prefix ;;
 
657
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
658
    prefix=$ac_optarg ;;
 
659
 
 
660
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
661
  | --program-pre | --program-pr | --program-p)
 
662
    ac_prev=program_prefix ;;
 
663
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
664
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
665
    program_prefix=$ac_optarg ;;
 
666
 
 
667
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
668
  | --program-suf | --program-su | --program-s)
 
669
    ac_prev=program_suffix ;;
 
670
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
671
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
672
    program_suffix=$ac_optarg ;;
 
673
 
 
674
  -program-transform-name | --program-transform-name \
 
675
  | --program-transform-nam | --program-transform-na \
 
676
  | --program-transform-n | --program-transform- \
 
677
  | --program-transform | --program-transfor \
 
678
  | --program-transfo | --program-transf \
 
679
  | --program-trans | --program-tran \
 
680
  | --progr-tra | --program-tr | --program-t)
 
681
    ac_prev=program_transform_name ;;
 
682
  -program-transform-name=* | --program-transform-name=* \
 
683
  | --program-transform-nam=* | --program-transform-na=* \
 
684
  | --program-transform-n=* | --program-transform-=* \
 
685
  | --program-transform=* | --program-transfor=* \
 
686
  | --program-transfo=* | --program-transf=* \
 
687
  | --program-trans=* | --program-tran=* \
 
688
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
689
    program_transform_name=$ac_optarg ;;
 
690
 
 
691
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
692
  | -silent | --silent | --silen | --sile | --sil)
 
693
    silent=yes ;;
 
694
 
 
695
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
696
    ac_prev=sbindir ;;
 
697
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
698
  | --sbi=* | --sb=*)
 
699
    sbindir=$ac_optarg ;;
 
700
 
 
701
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
702
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
703
  | --sharedst | --shareds | --shared | --share | --shar \
 
704
  | --sha | --sh)
 
705
    ac_prev=sharedstatedir ;;
 
706
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
707
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
708
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
709
  | --sha=* | --sh=*)
 
710
    sharedstatedir=$ac_optarg ;;
 
711
 
 
712
  -site | --site | --sit)
 
713
    ac_prev=site ;;
 
714
  -site=* | --site=* | --sit=*)
 
715
    site=$ac_optarg ;;
 
716
 
 
717
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
718
    ac_prev=srcdir ;;
 
719
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
720
    srcdir=$ac_optarg ;;
 
721
 
 
722
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
723
  | --syscon | --sysco | --sysc | --sys | --sy)
 
724
    ac_prev=sysconfdir ;;
 
725
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
726
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
727
    sysconfdir=$ac_optarg ;;
 
728
 
 
729
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
730
    ac_prev=target_alias ;;
 
731
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
732
    target_alias=$ac_optarg ;;
 
733
 
 
734
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
735
    verbose=yes ;;
 
736
 
 
737
  -version | --version | --versio | --versi | --vers | -V)
 
738
    ac_init_version=: ;;
 
739
 
 
740
  -with-* | --with-*)
 
741
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
742
    # Reject names that are not valid shell variable names.
 
743
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
744
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
745
   { (exit 1); exit 1; }; }
 
746
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
747
    case $ac_option in
 
748
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
749
      *) ac_optarg=yes ;;
 
750
    esac
 
751
    eval "with_$ac_package='$ac_optarg'" ;;
 
752
 
 
753
  -without-* | --without-*)
 
754
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
755
    # Reject names that are not valid shell variable names.
 
756
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
757
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
758
   { (exit 1); exit 1; }; }
 
759
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
760
    eval "with_$ac_package=no" ;;
 
761
 
 
762
  --x)
 
763
    # Obsolete; use --with-x.
 
764
    with_x=yes ;;
 
765
 
 
766
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
767
  | --x-incl | --x-inc | --x-in | --x-i)
 
768
    ac_prev=x_includes ;;
 
769
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
770
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
771
    x_includes=$ac_optarg ;;
 
772
 
 
773
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
774
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
775
    ac_prev=x_libraries ;;
 
776
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
777
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
778
    x_libraries=$ac_optarg ;;
 
779
 
 
780
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
781
Try \`$0 --help' for more information." >&2
 
782
   { (exit 1); exit 1; }; }
 
783
    ;;
 
784
 
 
785
  *=*)
 
786
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
787
    # Reject names that are not valid shell variable names.
 
788
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
789
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
790
   { (exit 1); exit 1; }; }
 
791
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
792
    eval "$ac_envvar='$ac_optarg'"
 
793
    export $ac_envvar ;;
 
794
 
 
795
  *)
 
796
    # FIXME: should be removed in autoconf 3.0.
 
797
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
798
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
799
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
800
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
801
    ;;
 
802
 
 
803
  esac
 
804
done
 
805
 
 
806
if test -n "$ac_prev"; then
 
807
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
808
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
809
   { (exit 1); exit 1; }; }
 
810
fi
 
811
 
 
812
# Be sure to have absolute paths.
 
813
for ac_var in exec_prefix prefix
 
814
do
 
815
  eval ac_val=$`echo $ac_var`
 
816
  case $ac_val in
 
817
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
818
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
819
   { (exit 1); exit 1; }; };;
 
820
  esac
 
821
done
 
822
 
 
823
# Be sure to have absolute paths.
 
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
825
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
do
 
827
  eval ac_val=$`echo $ac_var`
 
828
  case $ac_val in
 
829
    [\\/$]* | ?:[\\/]* ) ;;
 
830
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
831
   { (exit 1); exit 1; }; };;
 
832
  esac
 
833
done
 
834
 
 
835
# There might be people who depend on the old broken behavior: `$host'
 
836
# used to hold the argument of --host etc.
 
837
# FIXME: To remove some day.
 
838
build=$build_alias
 
839
host=$host_alias
 
840
target=$target_alias
 
841
 
 
842
# FIXME: To remove some day.
 
843
if test "x$host_alias" != x; then
 
844
  if test "x$build_alias" = x; then
 
845
    cross_compiling=maybe
 
846
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
847
    If a cross compiler is detected then cross compile mode will be used." >&2
 
848
  elif test "x$build_alias" != "x$host_alias"; then
 
849
    cross_compiling=yes
 
850
  fi
 
851
fi
 
852
 
 
853
ac_tool_prefix=
 
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
855
 
 
856
test "$silent" = yes && exec 6>/dev/null
 
857
 
 
858
 
 
859
# Find the source files, if location was not specified.
 
860
if test -z "$srcdir"; then
 
861
  ac_srcdir_defaulted=yes
 
862
  # Try the directory containing this script, then its parent.
 
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
865
         X"$0" : 'X\(//\)[^/]' \| \
 
866
         X"$0" : 'X\(//\)$' \| \
 
867
         X"$0" : 'X\(/\)' \| \
 
868
         .     : '\(.\)' 2>/dev/null ||
 
869
echo X"$0" |
 
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
871
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
872
          /^X\(\/\/\)$/{ s//\1/; q; }
 
873
          /^X\(\/\).*/{ s//\1/; q; }
 
874
          s/.*/./; q'`
 
875
  srcdir=$ac_confdir
 
876
  if test ! -r $srcdir/$ac_unique_file; then
 
877
    srcdir=..
 
878
  fi
 
879
else
 
880
  ac_srcdir_defaulted=no
 
881
fi
 
882
if test ! -r $srcdir/$ac_unique_file; then
 
883
  if test "$ac_srcdir_defaulted" = yes; then
 
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
885
   { (exit 1); exit 1; }; }
 
886
  else
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
888
   { (exit 1); exit 1; }; }
 
889
  fi
 
890
fi
 
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
892
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
893
   { (exit 1); exit 1; }; }
 
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
895
ac_env_build_alias_set=${build_alias+set}
 
896
ac_env_build_alias_value=$build_alias
 
897
ac_cv_env_build_alias_set=${build_alias+set}
 
898
ac_cv_env_build_alias_value=$build_alias
 
899
ac_env_host_alias_set=${host_alias+set}
 
900
ac_env_host_alias_value=$host_alias
 
901
ac_cv_env_host_alias_set=${host_alias+set}
 
902
ac_cv_env_host_alias_value=$host_alias
 
903
ac_env_target_alias_set=${target_alias+set}
 
904
ac_env_target_alias_value=$target_alias
 
905
ac_cv_env_target_alias_set=${target_alias+set}
 
906
ac_cv_env_target_alias_value=$target_alias
 
907
ac_env_CC_set=${CC+set}
 
908
ac_env_CC_value=$CC
 
909
ac_cv_env_CC_set=${CC+set}
 
910
ac_cv_env_CC_value=$CC
 
911
ac_env_CFLAGS_set=${CFLAGS+set}
 
912
ac_env_CFLAGS_value=$CFLAGS
 
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_cv_env_CFLAGS_value=$CFLAGS
 
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
916
ac_env_LDFLAGS_value=$LDFLAGS
 
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
920
ac_env_CPPFLAGS_value=$CPPFLAGS
 
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_env_CPP_set=${CPP+set}
 
924
ac_env_CPP_value=$CPP
 
925
ac_cv_env_CPP_set=${CPP+set}
 
926
ac_cv_env_CPP_value=$CPP
 
927
ac_env_CXX_set=${CXX+set}
 
928
ac_env_CXX_value=$CXX
 
929
ac_cv_env_CXX_set=${CXX+set}
 
930
ac_cv_env_CXX_value=$CXX
 
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
932
ac_env_CXXFLAGS_value=$CXXFLAGS
 
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_env_CXXCPP_set=${CXXCPP+set}
 
936
ac_env_CXXCPP_value=$CXXCPP
 
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_cv_env_CXXCPP_value=$CXXCPP
 
939
ac_env_F77_set=${F77+set}
 
940
ac_env_F77_value=$F77
 
941
ac_cv_env_F77_set=${F77+set}
 
942
ac_cv_env_F77_value=$F77
 
943
ac_env_FFLAGS_set=${FFLAGS+set}
 
944
ac_env_FFLAGS_value=$FFLAGS
 
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_cv_env_FFLAGS_value=$FFLAGS
 
947
 
 
948
#
 
949
# Report the --help message.
 
950
#
 
951
if test "$ac_init_help" = "long"; then
 
952
  # Omit some internal or obsolete options to make the list less imposing.
 
953
  # This message is too long to be a string in the A/UX 3.1 sh.
 
954
  cat <<_ACEOF
 
955
\`configure' configures this package to adapt to many kinds of systems.
 
956
 
 
957
Usage: $0 [OPTION]... [VAR=VALUE]...
 
958
 
 
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
960
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
961
 
 
962
Defaults for the options are specified in brackets.
 
963
 
 
964
Configuration:
 
965
  -h, --help              display this help and exit
 
966
      --help=short        display options specific to this package
 
967
      --help=recursive    display the short help of all the included packages
 
968
  -V, --version           display version information and exit
 
969
  -q, --quiet, --silent   do not print \`checking...' messages
 
970
      --cache-file=FILE   cache test results in FILE [disabled]
 
971
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
972
  -n, --no-create         do not create output files
 
973
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
974
 
 
975
_ACEOF
 
976
 
 
977
  cat <<_ACEOF
 
978
Installation directories:
 
979
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
980
                          [$ac_default_prefix]
 
981
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
982
                          [PREFIX]
 
983
 
 
984
By default, \`make install' will install all the files in
 
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
987
for instance \`--prefix=\$HOME'.
 
988
 
 
989
For better control, use the options below.
 
990
 
 
991
Fine tuning of the installation directories:
 
992
  --bindir=DIR           user executables [EPREFIX/bin]
 
993
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
994
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
995
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
996
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
997
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
998
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
999
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1000
  --includedir=DIR       C header files [PREFIX/include]
 
1001
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1002
  --infodir=DIR          info documentation [PREFIX/info]
 
1003
  --mandir=DIR           man documentation [PREFIX/man]
 
1004
_ACEOF
 
1005
 
 
1006
  cat <<\_ACEOF
 
1007
 
 
1008
System types:
 
1009
  --build=BUILD     configure for building on BUILD [guessed]
 
1010
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1011
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1012
_ACEOF
 
1013
fi
 
1014
 
 
1015
if test -n "$ac_init_help"; then
 
1016
 
 
1017
  cat <<\_ACEOF
 
1018
 
 
1019
Optional Features:
 
1020
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1021
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1022
  --enable-shared[=PKGS]
 
1023
                          build shared libraries [default=yes]
 
1024
  --enable-static[=PKGS]
 
1025
                          build static libraries [default=yes]
 
1026
  --enable-fast-install[=PKGS]
 
1027
                          optimize for fast installation [default=yes]
 
1028
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1029
 
 
1030
Optional Packages:
 
1031
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1032
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1033
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1034
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1035
                          both]
 
1036
  --with-tags[=TAGS]
 
1037
                          include additional configurations [automatic]
 
1038
 
 
1039
Some influential environment variables:
 
1040
  CC          C compiler command
 
1041
  CFLAGS      C compiler flags
 
1042
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1043
              nonstandard directory <lib dir>
 
1044
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1045
              headers in a nonstandard directory <include dir>
 
1046
  CPP         C preprocessor
 
1047
  CXX         C++ compiler command
 
1048
  CXXFLAGS    C++ compiler flags
 
1049
  CXXCPP      C++ preprocessor
 
1050
  F77         Fortran 77 compiler command
 
1051
  FFLAGS      Fortran 77 compiler flags
 
1052
 
 
1053
Use these variables to override the choices made by `configure' or to help
 
1054
it to find libraries and programs with nonstandard names/locations.
 
1055
 
 
1056
_ACEOF
 
1057
fi
 
1058
 
 
1059
if test "$ac_init_help" = "recursive"; then
 
1060
  # If there are subdirs, report their specific --help.
 
1061
  ac_popdir=`pwd`
 
1062
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1063
    test -d $ac_dir || continue
 
1064
    ac_builddir=.
 
1065
 
 
1066
if test "$ac_dir" != .; then
 
1067
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1068
  # A "../" for each directory in $ac_dir_suffix.
 
1069
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1070
else
 
1071
  ac_dir_suffix= ac_top_builddir=
 
1072
fi
 
1073
 
 
1074
case $srcdir in
 
1075
  .)  # No --srcdir option.  We are building in place.
 
1076
    ac_srcdir=.
 
1077
    if test -z "$ac_top_builddir"; then
 
1078
       ac_top_srcdir=.
 
1079
    else
 
1080
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1081
    fi ;;
 
1082
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1083
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1084
    ac_top_srcdir=$srcdir ;;
 
1085
  *) # Relative path.
 
1086
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1087
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1088
esac
 
1089
 
 
1090
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1091
# the directories may not exist.
 
1092
case `pwd` in
 
1093
.) ac_abs_builddir="$ac_dir";;
 
1094
*)
 
1095
  case "$ac_dir" in
 
1096
  .) ac_abs_builddir=`pwd`;;
 
1097
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1098
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1099
  esac;;
 
1100
esac
 
1101
case $ac_abs_builddir in
 
1102
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1103
*)
 
1104
  case ${ac_top_builddir}. in
 
1105
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1106
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1107
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1108
  esac;;
 
1109
esac
 
1110
case $ac_abs_builddir in
 
1111
.) ac_abs_srcdir=$ac_srcdir;;
 
1112
*)
 
1113
  case $ac_srcdir in
 
1114
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1115
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1116
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1117
  esac;;
 
1118
esac
 
1119
case $ac_abs_builddir in
 
1120
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1121
*)
 
1122
  case $ac_top_srcdir in
 
1123
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1124
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1125
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1126
  esac;;
 
1127
esac
 
1128
 
 
1129
    cd $ac_dir
 
1130
    # Check for guested configure; otherwise get Cygnus style configure.
 
1131
    if test -f $ac_srcdir/configure.gnu; then
 
1132
      echo
 
1133
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1134
    elif test -f $ac_srcdir/configure; then
 
1135
      echo
 
1136
      $SHELL $ac_srcdir/configure  --help=recursive
 
1137
    elif test -f $ac_srcdir/configure.ac ||
 
1138
           test -f $ac_srcdir/configure.in; then
 
1139
      echo
 
1140
      $ac_configure --help
 
1141
    else
 
1142
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1143
    fi
 
1144
    cd $ac_popdir
 
1145
  done
 
1146
fi
 
1147
 
 
1148
test -n "$ac_init_help" && exit 0
 
1149
if $ac_init_version; then
 
1150
  cat <<\_ACEOF
 
1151
 
 
1152
Copyright (C) 2003 Free Software Foundation, Inc.
 
1153
This configure script is free software; the Free Software Foundation
 
1154
gives unlimited permission to copy, distribute and modify it.
 
1155
_ACEOF
 
1156
  exit 0
 
1157
fi
 
1158
exec 5>config.log
 
1159
cat >&5 <<_ACEOF
 
1160
This file contains any messages produced by compilers while
 
1161
running configure, to aid debugging if configure makes a mistake.
 
1162
 
 
1163
It was created by $as_me, which was
 
1164
generated by GNU Autoconf 2.59.  Invocation command line was
 
1165
 
 
1166
  $ $0 $@
 
1167
 
 
1168
_ACEOF
 
1169
{
 
1170
cat <<_ASUNAME
 
1171
## --------- ##
 
1172
## Platform. ##
 
1173
## --------- ##
 
1174
 
 
1175
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1176
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1177
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1178
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1179
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1180
 
 
1181
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1182
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1183
 
 
1184
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1185
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1186
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1187
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1188
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1189
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1190
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1191
 
 
1192
_ASUNAME
 
1193
 
 
1194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1195
for as_dir in $PATH
 
1196
do
 
1197
  IFS=$as_save_IFS
 
1198
  test -z "$as_dir" && as_dir=.
 
1199
  echo "PATH: $as_dir"
 
1200
done
 
1201
 
 
1202
} >&5
 
1203
 
 
1204
cat >&5 <<_ACEOF
 
1205
 
 
1206
 
 
1207
## ----------- ##
 
1208
## Core tests. ##
 
1209
## ----------- ##
 
1210
 
 
1211
_ACEOF
 
1212
 
 
1213
 
 
1214
# Keep a trace of the command line.
 
1215
# Strip out --no-create and --no-recursion so they do not pile up.
 
1216
# Strip out --silent because we don't want to record it for future runs.
 
1217
# Also quote any args containing shell meta-characters.
 
1218
# Make two passes to allow for proper duplicate-argument suppression.
 
1219
ac_configure_args=
 
1220
ac_configure_args0=
 
1221
ac_configure_args1=
 
1222
ac_sep=
 
1223
ac_must_keep_next=false
 
1224
for ac_pass in 1 2
 
1225
do
 
1226
  for ac_arg
 
1227
  do
 
1228
    case $ac_arg in
 
1229
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1230
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1231
    | -silent | --silent | --silen | --sile | --sil)
 
1232
      continue ;;
 
1233
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1234
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1235
    esac
 
1236
    case $ac_pass in
 
1237
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1238
    2)
 
1239
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1240
      if test $ac_must_keep_next = true; then
 
1241
        ac_must_keep_next=false # Got value, back to normal.
 
1242
      else
 
1243
        case $ac_arg in
 
1244
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1245
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1246
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1247
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1248
            case "$ac_configure_args0 " in
 
1249
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1250
            esac
 
1251
            ;;
 
1252
          -* ) ac_must_keep_next=true ;;
 
1253
        esac
 
1254
      fi
 
1255
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1256
      # Get rid of the leading space.
 
1257
      ac_sep=" "
 
1258
      ;;
 
1259
    esac
 
1260
  done
 
1261
done
 
1262
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1263
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1264
 
 
1265
# When interrupted or exit'd, cleanup temporary files, and complete
 
1266
# config.log.  We remove comments because anyway the quotes in there
 
1267
# would cause problems or look ugly.
 
1268
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1269
# such as our DU 5.0 friend, will then `close' the trap.
 
1270
trap 'exit_status=$?
 
1271
  # Save into config.log some information that might help in debugging.
 
1272
  {
 
1273
    echo
 
1274
 
 
1275
    cat <<\_ASBOX
 
1276
## ---------------- ##
 
1277
## Cache variables. ##
 
1278
## ---------------- ##
 
1279
_ASBOX
 
1280
    echo
 
1281
    # The following way of writing the cache mishandles newlines in values,
 
1282
{
 
1283
  (set) 2>&1 |
 
1284
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1285
    *ac_space=\ *)
 
1286
      sed -n \
 
1287
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1288
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1289
      ;;
 
1290
    *)
 
1291
      sed -n \
 
1292
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1293
      ;;
 
1294
    esac;
 
1295
}
 
1296
    echo
 
1297
 
 
1298
    cat <<\_ASBOX
 
1299
## ----------------- ##
 
1300
## Output variables. ##
 
1301
## ----------------- ##
 
1302
_ASBOX
 
1303
    echo
 
1304
    for ac_var in $ac_subst_vars
 
1305
    do
 
1306
      eval ac_val=$`echo $ac_var`
 
1307
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1308
    done | sort
 
1309
    echo
 
1310
 
 
1311
    if test -n "$ac_subst_files"; then
 
1312
      cat <<\_ASBOX
 
1313
## ------------- ##
 
1314
## Output files. ##
 
1315
## ------------- ##
 
1316
_ASBOX
 
1317
      echo
 
1318
      for ac_var in $ac_subst_files
 
1319
      do
 
1320
        eval ac_val=$`echo $ac_var`
 
1321
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1322
      done | sort
 
1323
      echo
 
1324
    fi
 
1325
 
 
1326
    if test -s confdefs.h; then
 
1327
      cat <<\_ASBOX
 
1328
## ----------- ##
 
1329
## confdefs.h. ##
 
1330
## ----------- ##
 
1331
_ASBOX
 
1332
      echo
 
1333
      sed "/^$/d" confdefs.h | sort
 
1334
      echo
 
1335
    fi
 
1336
    test "$ac_signal" != 0 &&
 
1337
      echo "$as_me: caught signal $ac_signal"
 
1338
    echo "$as_me: exit $exit_status"
 
1339
  } >&5
 
1340
  rm -f core *.core &&
 
1341
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1342
    exit $exit_status
 
1343
     ' 0
 
1344
for ac_signal in 1 2 13 15; do
 
1345
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1346
done
 
1347
ac_signal=0
 
1348
 
 
1349
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1350
rm -rf conftest* confdefs.h
 
1351
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1352
echo >confdefs.h
 
1353
 
 
1354
# Predefined preprocessor variables.
 
1355
 
 
1356
cat >>confdefs.h <<_ACEOF
 
1357
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1358
_ACEOF
 
1359
 
 
1360
 
 
1361
cat >>confdefs.h <<_ACEOF
 
1362
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1363
_ACEOF
 
1364
 
 
1365
 
 
1366
cat >>confdefs.h <<_ACEOF
 
1367
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1368
_ACEOF
 
1369
 
 
1370
 
 
1371
cat >>confdefs.h <<_ACEOF
 
1372
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1373
_ACEOF
 
1374
 
 
1375
 
 
1376
cat >>confdefs.h <<_ACEOF
 
1377
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1378
_ACEOF
 
1379
 
 
1380
 
 
1381
# Let the site file select an alternate cache file if it wants to.
 
1382
# Prefer explicitly selected file to automatically selected ones.
 
1383
if test -z "$CONFIG_SITE"; then
 
1384
  if test "x$prefix" != xNONE; then
 
1385
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1386
  else
 
1387
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1388
  fi
 
1389
fi
 
1390
for ac_site_file in $CONFIG_SITE; do
 
1391
  if test -r "$ac_site_file"; then
 
1392
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1393
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1394
    sed 's/^/| /' "$ac_site_file" >&5
 
1395
    . "$ac_site_file"
 
1396
  fi
 
1397
done
 
1398
 
 
1399
if test -r "$cache_file"; then
 
1400
  # Some versions of bash will fail to source /dev/null (special
 
1401
  # files actually), so we avoid doing that.
 
1402
  if test -f "$cache_file"; then
 
1403
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1404
echo "$as_me: loading cache $cache_file" >&6;}
 
1405
    case $cache_file in
 
1406
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1407
      *)                      . ./$cache_file;;
 
1408
    esac
 
1409
  fi
 
1410
else
 
1411
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1412
echo "$as_me: creating cache $cache_file" >&6;}
 
1413
  >$cache_file
 
1414
fi
 
1415
 
 
1416
# Check that the precious variables saved in the cache have kept the same
 
1417
# value.
 
1418
ac_cache_corrupted=false
 
1419
for ac_var in `(set) 2>&1 |
 
1420
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1421
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1422
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1423
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1424
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1425
  case $ac_old_set,$ac_new_set in
 
1426
    set,)
 
1427
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1428
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1429
      ac_cache_corrupted=: ;;
 
1430
    ,set)
 
1431
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1432
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1433
      ac_cache_corrupted=: ;;
 
1434
    ,);;
 
1435
    *)
 
1436
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1437
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1438
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1439
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1440
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1441
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1442
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1443
        ac_cache_corrupted=:
 
1444
      fi;;
 
1445
  esac
 
1446
  # Pass precious variables to config.status.
 
1447
  if test "$ac_new_set" = set; then
 
1448
    case $ac_new_val in
 
1449
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1450
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1451
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1452
    esac
 
1453
    case " $ac_configure_args " in
 
1454
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1455
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1456
    esac
 
1457
  fi
 
1458
done
 
1459
if $ac_cache_corrupted; then
 
1460
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1461
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1462
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1463
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1464
   { (exit 1); exit 1; }; }
 
1465
fi
 
1466
 
 
1467
ac_ext=c
 
1468
ac_cpp='$CPP $CPPFLAGS'
 
1469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1472
 
 
1473
 
 
1474
 
 
1475
 
 
1476
 
 
1477
 
 
1478
 
 
1479
 
 
1480
 
 
1481
 
 
1482
 
 
1483
 
 
1484
 
 
1485
 
 
1486
 
 
1487
 
 
1488
 
 
1489
 
 
1490
 
 
1491
ac_aux_dir=
 
1492
for ac_dir in conftools $srcdir/conftools; do
 
1493
  if test -f $ac_dir/install-sh; then
 
1494
    ac_aux_dir=$ac_dir
 
1495
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1496
    break
 
1497
  elif test -f $ac_dir/install.sh; then
 
1498
    ac_aux_dir=$ac_dir
 
1499
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1500
    break
 
1501
  elif test -f $ac_dir/shtool; then
 
1502
    ac_aux_dir=$ac_dir
 
1503
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1504
    break
 
1505
  fi
 
1506
done
 
1507
if test -z "$ac_aux_dir"; then
 
1508
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
 
1509
echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
 
1510
   { (exit 1); exit 1; }; }
 
1511
fi
 
1512
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1513
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1514
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1515
 
 
1516
 
 
1517
 
 
1518
EXPAT_MAJOR_VERSION=1
 
1519
EXPAT_MINOR_VERSION=95
 
1520
EXPAT_EDIT=2
 
1521
 
 
1522
EXPAT_VERSION=$EXPAT_MAJOR_VERSION.$EXPAT_MINOR_VERSION.$EXPAT_EDIT
 
1523
VERSION=$EXPAT_VERSION
 
1524
PACKAGE=expat
 
1525
 
 
1526
 
 
1527
LIBCURRENT=1
 
1528
LIBREVISION=0
 
1529
LIBAGE=1
 
1530
 
 
1531
          ac_config_headers="$ac_config_headers config.h"
 
1532
 
 
1533
 
 
1534
# Make sure we can run config.sub.
 
1535
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1536
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1537
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1538
   { (exit 1); exit 1; }; }
 
1539
 
 
1540
echo "$as_me:$LINENO: checking build system type" >&5
 
1541
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1542
if test "${ac_cv_build+set}" = set; then
 
1543
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1544
else
 
1545
  ac_cv_build_alias=$build_alias
 
1546
test -z "$ac_cv_build_alias" &&
 
1547
  ac_cv_build_alias=`$ac_config_guess`
 
1548
test -z "$ac_cv_build_alias" &&
 
1549
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1550
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1551
   { (exit 1); exit 1; }; }
 
1552
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1553
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1554
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1555
   { (exit 1); exit 1; }; }
 
1556
 
 
1557
fi
 
1558
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1559
echo "${ECHO_T}$ac_cv_build" >&6
 
1560
build=$ac_cv_build
 
1561
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1562
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1563
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1564
 
 
1565
 
 
1566
echo "$as_me:$LINENO: checking host system type" >&5
 
1567
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1568
if test "${ac_cv_host+set}" = set; then
 
1569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1570
else
 
1571
  ac_cv_host_alias=$host_alias
 
1572
test -z "$ac_cv_host_alias" &&
 
1573
  ac_cv_host_alias=$ac_cv_build_alias
 
1574
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1575
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1576
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1577
   { (exit 1); exit 1; }; }
 
1578
 
 
1579
fi
 
1580
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1581
echo "${ECHO_T}$ac_cv_host" >&6
 
1582
host=$ac_cv_host
 
1583
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1584
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1585
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1586
 
 
1587
 
 
1588
echo "$as_me:$LINENO: checking target system type" >&5
 
1589
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1590
if test "${ac_cv_target+set}" = set; then
 
1591
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1592
else
 
1593
  ac_cv_target_alias=$target_alias
 
1594
test "x$ac_cv_target_alias" = "x" &&
 
1595
  ac_cv_target_alias=$ac_cv_host_alias
 
1596
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1597
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1598
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1599
   { (exit 1); exit 1; }; }
 
1600
 
 
1601
fi
 
1602
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1603
echo "${ECHO_T}$ac_cv_target" >&6
 
1604
target=$ac_cv_target
 
1605
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1606
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1607
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1608
 
 
1609
 
 
1610
# The aliases save the names the user supplied, while $host etc.
 
1611
# will get canonicalized.
 
1612
test -n "$target_alias" &&
 
1613
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1614
    NONENONEs,x,x, &&
 
1615
  program_prefix=${target_alias}-
 
1616
case "$host_os" in
 
1617
*os2*)
 
1618
    # Use a custom made libtool replacement
 
1619
    echo Using aplibtool
 
1620
    LIBTOOL="$srcdir/../../../apr/build/aplibtool"
 
1621
    ;;
 
1622
*)
 
1623
 
 
1624
 
 
1625
# Check whether --enable-shared or --disable-shared was given.
 
1626
if test "${enable_shared+set}" = set; then
 
1627
  enableval="$enable_shared"
 
1628
  p=${PACKAGE-default}
 
1629
    case $enableval in
 
1630
    yes) enable_shared=yes ;;
 
1631
    no) enable_shared=no ;;
 
1632
    *)
 
1633
      enable_shared=no
 
1634
      # Look at the argument we got.  We use all the common list separators.
 
1635
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1636
      for pkg in $enableval; do
 
1637
        IFS="$lt_save_ifs"
 
1638
        if test "X$pkg" = "X$p"; then
 
1639
          enable_shared=yes
 
1640
        fi
 
1641
      done
 
1642
      IFS="$lt_save_ifs"
 
1643
      ;;
 
1644
    esac
 
1645
else
 
1646
  enable_shared=yes
 
1647
fi;
 
1648
 
 
1649
# Check whether --enable-static or --disable-static was given.
 
1650
if test "${enable_static+set}" = set; then
 
1651
  enableval="$enable_static"
 
1652
  p=${PACKAGE-default}
 
1653
    case $enableval in
 
1654
    yes) enable_static=yes ;;
 
1655
    no) enable_static=no ;;
 
1656
    *)
 
1657
     enable_static=no
 
1658
      # Look at the argument we got.  We use all the common list separators.
 
1659
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1660
      for pkg in $enableval; do
 
1661
        IFS="$lt_save_ifs"
 
1662
        if test "X$pkg" = "X$p"; then
 
1663
          enable_static=yes
 
1664
        fi
 
1665
      done
 
1666
      IFS="$lt_save_ifs"
 
1667
      ;;
 
1668
    esac
 
1669
else
 
1670
  enable_static=yes
 
1671
fi;
 
1672
 
 
1673
# Check whether --enable-fast-install or --disable-fast-install was given.
 
1674
if test "${enable_fast_install+set}" = set; then
 
1675
  enableval="$enable_fast_install"
 
1676
  p=${PACKAGE-default}
 
1677
    case $enableval in
 
1678
    yes) enable_fast_install=yes ;;
 
1679
    no) enable_fast_install=no ;;
 
1680
    *)
 
1681
      enable_fast_install=no
 
1682
      # Look at the argument we got.  We use all the common list separators.
 
1683
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
1684
      for pkg in $enableval; do
 
1685
        IFS="$lt_save_ifs"
 
1686
        if test "X$pkg" = "X$p"; then
 
1687
          enable_fast_install=yes
 
1688
        fi
 
1689
      done
 
1690
      IFS="$lt_save_ifs"
 
1691
      ;;
 
1692
    esac
 
1693
else
 
1694
  enable_fast_install=yes
 
1695
fi;
 
1696
 
 
1697
ac_ext=c
 
1698
ac_cpp='$CPP $CPPFLAGS'
 
1699
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1700
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1701
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1702
if test -n "$ac_tool_prefix"; then
 
1703
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1704
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1705
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1706
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1707
if test "${ac_cv_prog_CC+set}" = set; then
 
1708
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1709
else
 
1710
  if test -n "$CC"; then
 
1711
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1712
else
 
1713
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1714
for as_dir in $PATH
 
1715
do
 
1716
  IFS=$as_save_IFS
 
1717
  test -z "$as_dir" && as_dir=.
 
1718
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1719
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1720
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1721
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1722
    break 2
 
1723
  fi
 
1724
done
 
1725
done
 
1726
 
 
1727
fi
 
1728
fi
 
1729
CC=$ac_cv_prog_CC
 
1730
if test -n "$CC"; then
 
1731
  echo "$as_me:$LINENO: result: $CC" >&5
 
1732
echo "${ECHO_T}$CC" >&6
 
1733
else
 
1734
  echo "$as_me:$LINENO: result: no" >&5
 
1735
echo "${ECHO_T}no" >&6
 
1736
fi
 
1737
 
 
1738
fi
 
1739
if test -z "$ac_cv_prog_CC"; then
 
1740
  ac_ct_CC=$CC
 
1741
  # Extract the first word of "gcc", so it can be a program name with args.
 
1742
set dummy gcc; ac_word=$2
 
1743
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1744
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1745
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1746
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1747
else
 
1748
  if test -n "$ac_ct_CC"; then
 
1749
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1750
else
 
1751
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1752
for as_dir in $PATH
 
1753
do
 
1754
  IFS=$as_save_IFS
 
1755
  test -z "$as_dir" && as_dir=.
 
1756
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1757
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1758
    ac_cv_prog_ac_ct_CC="gcc"
 
1759
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1760
    break 2
 
1761
  fi
 
1762
done
 
1763
done
 
1764
 
 
1765
fi
 
1766
fi
 
1767
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1768
if test -n "$ac_ct_CC"; then
 
1769
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1770
echo "${ECHO_T}$ac_ct_CC" >&6
 
1771
else
 
1772
  echo "$as_me:$LINENO: result: no" >&5
 
1773
echo "${ECHO_T}no" >&6
 
1774
fi
 
1775
 
 
1776
  CC=$ac_ct_CC
 
1777
else
 
1778
  CC="$ac_cv_prog_CC"
 
1779
fi
 
1780
 
 
1781
if test -z "$CC"; then
 
1782
  if test -n "$ac_tool_prefix"; then
 
1783
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1784
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1785
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1787
if test "${ac_cv_prog_CC+set}" = set; then
 
1788
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1789
else
 
1790
  if test -n "$CC"; then
 
1791
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1792
else
 
1793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1794
for as_dir in $PATH
 
1795
do
 
1796
  IFS=$as_save_IFS
 
1797
  test -z "$as_dir" && as_dir=.
 
1798
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1799
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1800
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1801
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1802
    break 2
 
1803
  fi
 
1804
done
 
1805
done
 
1806
 
 
1807
fi
 
1808
fi
 
1809
CC=$ac_cv_prog_CC
 
1810
if test -n "$CC"; then
 
1811
  echo "$as_me:$LINENO: result: $CC" >&5
 
1812
echo "${ECHO_T}$CC" >&6
 
1813
else
 
1814
  echo "$as_me:$LINENO: result: no" >&5
 
1815
echo "${ECHO_T}no" >&6
 
1816
fi
 
1817
 
 
1818
fi
 
1819
if test -z "$ac_cv_prog_CC"; then
 
1820
  ac_ct_CC=$CC
 
1821
  # Extract the first word of "cc", so it can be a program name with args.
 
1822
set dummy cc; ac_word=$2
 
1823
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1824
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1825
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1827
else
 
1828
  if test -n "$ac_ct_CC"; then
 
1829
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1830
else
 
1831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1832
for as_dir in $PATH
 
1833
do
 
1834
  IFS=$as_save_IFS
 
1835
  test -z "$as_dir" && as_dir=.
 
1836
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1837
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1838
    ac_cv_prog_ac_ct_CC="cc"
 
1839
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1840
    break 2
 
1841
  fi
 
1842
done
 
1843
done
 
1844
 
 
1845
fi
 
1846
fi
 
1847
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1848
if test -n "$ac_ct_CC"; then
 
1849
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1850
echo "${ECHO_T}$ac_ct_CC" >&6
 
1851
else
 
1852
  echo "$as_me:$LINENO: result: no" >&5
 
1853
echo "${ECHO_T}no" >&6
 
1854
fi
 
1855
 
 
1856
  CC=$ac_ct_CC
 
1857
else
 
1858
  CC="$ac_cv_prog_CC"
 
1859
fi
 
1860
 
 
1861
fi
 
1862
if test -z "$CC"; then
 
1863
  # Extract the first word of "cc", so it can be a program name with args.
 
1864
set dummy cc; ac_word=$2
 
1865
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1866
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1867
if test "${ac_cv_prog_CC+set}" = set; then
 
1868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1869
else
 
1870
  if test -n "$CC"; then
 
1871
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1872
else
 
1873
  ac_prog_rejected=no
 
1874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1875
for as_dir in $PATH
 
1876
do
 
1877
  IFS=$as_save_IFS
 
1878
  test -z "$as_dir" && as_dir=.
 
1879
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1880
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1881
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1882
       ac_prog_rejected=yes
 
1883
       continue
 
1884
     fi
 
1885
    ac_cv_prog_CC="cc"
 
1886
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1887
    break 2
 
1888
  fi
 
1889
done
 
1890
done
 
1891
 
 
1892
if test $ac_prog_rejected = yes; then
 
1893
  # We found a bogon in the path, so make sure we never use it.
 
1894
  set dummy $ac_cv_prog_CC
 
1895
  shift
 
1896
  if test $# != 0; then
 
1897
    # We chose a different compiler from the bogus one.
 
1898
    # However, it has the same basename, so the bogon will be chosen
 
1899
    # first if we set CC to just the basename; use the full file name.
 
1900
    shift
 
1901
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1902
  fi
 
1903
fi
 
1904
fi
 
1905
fi
 
1906
CC=$ac_cv_prog_CC
 
1907
if test -n "$CC"; then
 
1908
  echo "$as_me:$LINENO: result: $CC" >&5
 
1909
echo "${ECHO_T}$CC" >&6
 
1910
else
 
1911
  echo "$as_me:$LINENO: result: no" >&5
 
1912
echo "${ECHO_T}no" >&6
 
1913
fi
 
1914
 
 
1915
fi
 
1916
if test -z "$CC"; then
 
1917
  if test -n "$ac_tool_prefix"; then
 
1918
  for ac_prog in cl
 
1919
  do
 
1920
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1921
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1922
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1924
if test "${ac_cv_prog_CC+set}" = set; then
 
1925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1926
else
 
1927
  if test -n "$CC"; then
 
1928
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1929
else
 
1930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1931
for as_dir in $PATH
 
1932
do
 
1933
  IFS=$as_save_IFS
 
1934
  test -z "$as_dir" && as_dir=.
 
1935
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1936
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1937
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1938
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1939
    break 2
 
1940
  fi
 
1941
done
 
1942
done
 
1943
 
 
1944
fi
 
1945
fi
 
1946
CC=$ac_cv_prog_CC
 
1947
if test -n "$CC"; then
 
1948
  echo "$as_me:$LINENO: result: $CC" >&5
 
1949
echo "${ECHO_T}$CC" >&6
 
1950
else
 
1951
  echo "$as_me:$LINENO: result: no" >&5
 
1952
echo "${ECHO_T}no" >&6
 
1953
fi
 
1954
 
 
1955
    test -n "$CC" && break
 
1956
  done
 
1957
fi
 
1958
if test -z "$CC"; then
 
1959
  ac_ct_CC=$CC
 
1960
  for ac_prog in cl
 
1961
do
 
1962
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1963
set dummy $ac_prog; ac_word=$2
 
1964
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1965
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1966
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1968
else
 
1969
  if test -n "$ac_ct_CC"; then
 
1970
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1971
else
 
1972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1973
for as_dir in $PATH
 
1974
do
 
1975
  IFS=$as_save_IFS
 
1976
  test -z "$as_dir" && as_dir=.
 
1977
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1978
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1979
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1980
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1981
    break 2
 
1982
  fi
 
1983
done
 
1984
done
 
1985
 
 
1986
fi
 
1987
fi
 
1988
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1989
if test -n "$ac_ct_CC"; then
 
1990
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1991
echo "${ECHO_T}$ac_ct_CC" >&6
 
1992
else
 
1993
  echo "$as_me:$LINENO: result: no" >&5
 
1994
echo "${ECHO_T}no" >&6
 
1995
fi
 
1996
 
 
1997
  test -n "$ac_ct_CC" && break
 
1998
done
 
1999
 
 
2000
  CC=$ac_ct_CC
 
2001
fi
 
2002
 
 
2003
fi
 
2004
 
 
2005
 
 
2006
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2007
See \`config.log' for more details." >&5
 
2008
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2009
See \`config.log' for more details." >&2;}
 
2010
   { (exit 1); exit 1; }; }
 
2011
 
 
2012
# Provide some information about the compiler.
 
2013
echo "$as_me:$LINENO:" \
 
2014
     "checking for C compiler version" >&5
 
2015
ac_compiler=`set X $ac_compile; echo $2`
 
2016
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2017
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2018
  ac_status=$?
 
2019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2020
  (exit $ac_status); }
 
2021
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2022
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2023
  ac_status=$?
 
2024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2025
  (exit $ac_status); }
 
2026
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2027
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2028
  ac_status=$?
 
2029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2030
  (exit $ac_status); }
 
2031
 
 
2032
cat >conftest.$ac_ext <<_ACEOF
 
2033
/* confdefs.h.  */
 
2034
_ACEOF
 
2035
cat confdefs.h >>conftest.$ac_ext
 
2036
cat >>conftest.$ac_ext <<_ACEOF
 
2037
/* end confdefs.h.  */
 
2038
 
 
2039
int
 
2040
main ()
 
2041
{
 
2042
 
 
2043
  ;
 
2044
  return 0;
 
2045
}
 
2046
_ACEOF
 
2047
ac_clean_files_save=$ac_clean_files
 
2048
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2049
# Try to create an executable without -o first, disregard a.out.
 
2050
# It will help us diagnose broken compilers, and finding out an intuition
 
2051
# of exeext.
 
2052
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2053
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2054
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2055
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2056
  (eval $ac_link_default) 2>&5
 
2057
  ac_status=$?
 
2058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2059
  (exit $ac_status); }; then
 
2060
  # Find the output, starting from the most likely.  This scheme is
 
2061
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2062
# resort.
 
2063
 
 
2064
# Be careful to initialize this variable, since it used to be cached.
 
2065
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2066
ac_cv_exeext=
 
2067
# b.out is created by i960 compilers.
 
2068
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2069
do
 
2070
  test -f "$ac_file" || continue
 
2071
  case $ac_file in
 
2072
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2073
        ;;
 
2074
    conftest.$ac_ext )
 
2075
        # This is the source file.
 
2076
        ;;
 
2077
    [ab].out )
 
2078
        # We found the default executable, but exeext='' is most
 
2079
        # certainly right.
 
2080
        break;;
 
2081
    *.* )
 
2082
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2083
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2084
        # but it would be cool to find out if it's true.  Does anybody
 
2085
        # maintain Libtool? --akim.
 
2086
        export ac_cv_exeext
 
2087
        break;;
 
2088
    * )
 
2089
        break;;
 
2090
  esac
 
2091
done
 
2092
else
 
2093
  echo "$as_me: failed program was:" >&5
 
2094
sed 's/^/| /' conftest.$ac_ext >&5
 
2095
 
 
2096
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2097
See \`config.log' for more details." >&5
 
2098
echo "$as_me: error: C compiler cannot create executables
 
2099
See \`config.log' for more details." >&2;}
 
2100
   { (exit 77); exit 77; }; }
 
2101
fi
 
2102
 
 
2103
ac_exeext=$ac_cv_exeext
 
2104
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2105
echo "${ECHO_T}$ac_file" >&6
 
2106
 
 
2107
# Check the compiler produces executables we can run.  If not, either
 
2108
# the compiler is broken, or we cross compile.
 
2109
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2110
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2111
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2112
# If not cross compiling, check that we can run a simple program.
 
2113
if test "$cross_compiling" != yes; then
 
2114
  if { ac_try='./$ac_file'
 
2115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2116
  (eval $ac_try) 2>&5
 
2117
  ac_status=$?
 
2118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2119
  (exit $ac_status); }; }; then
 
2120
    cross_compiling=no
 
2121
  else
 
2122
    if test "$cross_compiling" = maybe; then
 
2123
        cross_compiling=yes
 
2124
    else
 
2125
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2126
If you meant to cross compile, use \`--host'.
 
2127
See \`config.log' for more details." >&5
 
2128
echo "$as_me: error: cannot run C compiled programs.
 
2129
If you meant to cross compile, use \`--host'.
 
2130
See \`config.log' for more details." >&2;}
 
2131
   { (exit 1); exit 1; }; }
 
2132
    fi
 
2133
  fi
 
2134
fi
 
2135
echo "$as_me:$LINENO: result: yes" >&5
 
2136
echo "${ECHO_T}yes" >&6
 
2137
 
 
2138
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2139
ac_clean_files=$ac_clean_files_save
 
2140
# Check the compiler produces executables we can run.  If not, either
 
2141
# the compiler is broken, or we cross compile.
 
2142
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2143
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2144
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2145
echo "${ECHO_T}$cross_compiling" >&6
 
2146
 
 
2147
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2148
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2149
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2150
  (eval $ac_link) 2>&5
 
2151
  ac_status=$?
 
2152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2153
  (exit $ac_status); }; then
 
2154
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2155
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2156
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2157
# `rm'.
 
2158
for ac_file in conftest.exe conftest conftest.*; do
 
2159
  test -f "$ac_file" || continue
 
2160
  case $ac_file in
 
2161
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2162
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2163
          export ac_cv_exeext
 
2164
          break;;
 
2165
    * ) break;;
 
2166
  esac
 
2167
done
 
2168
else
 
2169
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2170
See \`config.log' for more details." >&5
 
2171
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2172
See \`config.log' for more details." >&2;}
 
2173
   { (exit 1); exit 1; }; }
 
2174
fi
 
2175
 
 
2176
rm -f conftest$ac_cv_exeext
 
2177
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2178
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2179
 
 
2180
rm -f conftest.$ac_ext
 
2181
EXEEXT=$ac_cv_exeext
 
2182
ac_exeext=$EXEEXT
 
2183
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2184
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2185
if test "${ac_cv_objext+set}" = set; then
 
2186
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2187
else
 
2188
  cat >conftest.$ac_ext <<_ACEOF
 
2189
/* confdefs.h.  */
 
2190
_ACEOF
 
2191
cat confdefs.h >>conftest.$ac_ext
 
2192
cat >>conftest.$ac_ext <<_ACEOF
 
2193
/* end confdefs.h.  */
 
2194
 
 
2195
int
 
2196
main ()
 
2197
{
 
2198
 
 
2199
  ;
 
2200
  return 0;
 
2201
}
 
2202
_ACEOF
 
2203
rm -f conftest.o conftest.obj
 
2204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2205
  (eval $ac_compile) 2>&5
 
2206
  ac_status=$?
 
2207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2208
  (exit $ac_status); }; then
 
2209
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2210
  case $ac_file in
 
2211
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2212
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2213
       break;;
 
2214
  esac
 
2215
done
 
2216
else
 
2217
  echo "$as_me: failed program was:" >&5
 
2218
sed 's/^/| /' conftest.$ac_ext >&5
 
2219
 
 
2220
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2221
See \`config.log' for more details." >&5
 
2222
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2223
See \`config.log' for more details." >&2;}
 
2224
   { (exit 1); exit 1; }; }
 
2225
fi
 
2226
 
 
2227
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2228
fi
 
2229
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2230
echo "${ECHO_T}$ac_cv_objext" >&6
 
2231
OBJEXT=$ac_cv_objext
 
2232
ac_objext=$OBJEXT
 
2233
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2234
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2235
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2236
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2237
else
 
2238
  cat >conftest.$ac_ext <<_ACEOF
 
2239
/* confdefs.h.  */
 
2240
_ACEOF
 
2241
cat confdefs.h >>conftest.$ac_ext
 
2242
cat >>conftest.$ac_ext <<_ACEOF
 
2243
/* end confdefs.h.  */
 
2244
 
 
2245
int
 
2246
main ()
 
2247
{
 
2248
#ifndef __GNUC__
 
2249
       choke me
 
2250
#endif
 
2251
 
 
2252
  ;
 
2253
  return 0;
 
2254
}
 
2255
_ACEOF
 
2256
rm -f conftest.$ac_objext
 
2257
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2258
  (eval $ac_compile) 2>conftest.er1
 
2259
  ac_status=$?
 
2260
  grep -v '^ *+' conftest.er1 >conftest.err
 
2261
  rm -f conftest.er1
 
2262
  cat conftest.err >&5
 
2263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2264
  (exit $ac_status); } &&
 
2265
         { ac_try='test -z "$ac_c_werror_flag"
 
2266
                         || test ! -s conftest.err'
 
2267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2268
  (eval $ac_try) 2>&5
 
2269
  ac_status=$?
 
2270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2271
  (exit $ac_status); }; } &&
 
2272
         { ac_try='test -s conftest.$ac_objext'
 
2273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2274
  (eval $ac_try) 2>&5
 
2275
  ac_status=$?
 
2276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2277
  (exit $ac_status); }; }; then
 
2278
  ac_compiler_gnu=yes
 
2279
else
 
2280
  echo "$as_me: failed program was:" >&5
 
2281
sed 's/^/| /' conftest.$ac_ext >&5
 
2282
 
 
2283
ac_compiler_gnu=no
 
2284
fi
 
2285
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2286
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2287
 
 
2288
fi
 
2289
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2290
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2291
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2292
ac_test_CFLAGS=${CFLAGS+set}
 
2293
ac_save_CFLAGS=$CFLAGS
 
2294
CFLAGS="-g"
 
2295
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2296
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2297
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2299
else
 
2300
  cat >conftest.$ac_ext <<_ACEOF
 
2301
/* confdefs.h.  */
 
2302
_ACEOF
 
2303
cat confdefs.h >>conftest.$ac_ext
 
2304
cat >>conftest.$ac_ext <<_ACEOF
 
2305
/* end confdefs.h.  */
 
2306
 
 
2307
int
 
2308
main ()
 
2309
{
 
2310
 
 
2311
  ;
 
2312
  return 0;
 
2313
}
 
2314
_ACEOF
 
2315
rm -f conftest.$ac_objext
 
2316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2317
  (eval $ac_compile) 2>conftest.er1
 
2318
  ac_status=$?
 
2319
  grep -v '^ *+' conftest.er1 >conftest.err
 
2320
  rm -f conftest.er1
 
2321
  cat conftest.err >&5
 
2322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2323
  (exit $ac_status); } &&
 
2324
         { ac_try='test -z "$ac_c_werror_flag"
 
2325
                         || test ! -s conftest.err'
 
2326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2327
  (eval $ac_try) 2>&5
 
2328
  ac_status=$?
 
2329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2330
  (exit $ac_status); }; } &&
 
2331
         { ac_try='test -s conftest.$ac_objext'
 
2332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2333
  (eval $ac_try) 2>&5
 
2334
  ac_status=$?
 
2335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2336
  (exit $ac_status); }; }; then
 
2337
  ac_cv_prog_cc_g=yes
 
2338
else
 
2339
  echo "$as_me: failed program was:" >&5
 
2340
sed 's/^/| /' conftest.$ac_ext >&5
 
2341
 
 
2342
ac_cv_prog_cc_g=no
 
2343
fi
 
2344
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2345
fi
 
2346
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2347
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2348
if test "$ac_test_CFLAGS" = set; then
 
2349
  CFLAGS=$ac_save_CFLAGS
 
2350
elif test $ac_cv_prog_cc_g = yes; then
 
2351
  if test "$GCC" = yes; then
 
2352
    CFLAGS="-g -O2"
 
2353
  else
 
2354
    CFLAGS="-g"
 
2355
  fi
 
2356
else
 
2357
  if test "$GCC" = yes; then
 
2358
    CFLAGS="-O2"
 
2359
  else
 
2360
    CFLAGS=
 
2361
  fi
 
2362
fi
 
2363
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2364
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2365
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2367
else
 
2368
  ac_cv_prog_cc_stdc=no
 
2369
ac_save_CC=$CC
 
2370
cat >conftest.$ac_ext <<_ACEOF
 
2371
/* confdefs.h.  */
 
2372
_ACEOF
 
2373
cat confdefs.h >>conftest.$ac_ext
 
2374
cat >>conftest.$ac_ext <<_ACEOF
 
2375
/* end confdefs.h.  */
 
2376
#include <stdarg.h>
 
2377
#include <stdio.h>
 
2378
#include <sys/types.h>
 
2379
#include <sys/stat.h>
 
2380
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2381
struct buf { int x; };
 
2382
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2383
static char *e (p, i)
 
2384
     char **p;
 
2385
     int i;
 
2386
{
 
2387
  return p[i];
 
2388
}
 
2389
static char *f (char * (*g) (char **, int), char **p, ...)
 
2390
{
 
2391
  char *s;
 
2392
  va_list v;
 
2393
  va_start (v,p);
 
2394
  s = g (p, va_arg (v,int));
 
2395
  va_end (v);
 
2396
  return s;
 
2397
}
 
2398
 
 
2399
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2400
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2401
   These don't provoke an error unfortunately, instead are silently treated
 
2402
   as 'x'.  The following induces an error, until -std1 is added to get
 
2403
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2404
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2405
   that's true only with -std1.  */
 
2406
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2407
 
 
2408
int test (int i, double x);
 
2409
struct s1 {int (*f) (int a);};
 
2410
struct s2 {int (*f) (double a);};
 
2411
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2412
int argc;
 
2413
char **argv;
 
2414
int
 
2415
main ()
 
2416
{
 
2417
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2418
  ;
 
2419
  return 0;
 
2420
}
 
2421
_ACEOF
 
2422
# Don't try gcc -ansi; that turns off useful extensions and
 
2423
# breaks some systems' header files.
 
2424
# AIX                   -qlanglvl=ansi
 
2425
# Ultrix and OSF/1      -std1
 
2426
# HP-UX 10.20 and later -Ae
 
2427
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2428
# SVR4                  -Xc -D__EXTENSIONS__
 
2429
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2430
do
 
2431
  CC="$ac_save_CC $ac_arg"
 
2432
  rm -f conftest.$ac_objext
 
2433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2434
  (eval $ac_compile) 2>conftest.er1
 
2435
  ac_status=$?
 
2436
  grep -v '^ *+' conftest.er1 >conftest.err
 
2437
  rm -f conftest.er1
 
2438
  cat conftest.err >&5
 
2439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2440
  (exit $ac_status); } &&
 
2441
         { ac_try='test -z "$ac_c_werror_flag"
 
2442
                         || test ! -s conftest.err'
 
2443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2444
  (eval $ac_try) 2>&5
 
2445
  ac_status=$?
 
2446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2447
  (exit $ac_status); }; } &&
 
2448
         { ac_try='test -s conftest.$ac_objext'
 
2449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2450
  (eval $ac_try) 2>&5
 
2451
  ac_status=$?
 
2452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2453
  (exit $ac_status); }; }; then
 
2454
  ac_cv_prog_cc_stdc=$ac_arg
 
2455
break
 
2456
else
 
2457
  echo "$as_me: failed program was:" >&5
 
2458
sed 's/^/| /' conftest.$ac_ext >&5
 
2459
 
 
2460
fi
 
2461
rm -f conftest.err conftest.$ac_objext
 
2462
done
 
2463
rm -f conftest.$ac_ext conftest.$ac_objext
 
2464
CC=$ac_save_CC
 
2465
 
 
2466
fi
 
2467
 
 
2468
case "x$ac_cv_prog_cc_stdc" in
 
2469
  x|xno)
 
2470
    echo "$as_me:$LINENO: result: none needed" >&5
 
2471
echo "${ECHO_T}none needed" >&6 ;;
 
2472
  *)
 
2473
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2474
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2475
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2476
esac
 
2477
 
 
2478
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2479
# in C++ we need to declare it.  In case someone uses the same compiler
 
2480
# for both compiling C and C++ we need to have the C++ compiler decide
 
2481
# the declaration of exit, since it's the most demanding environment.
 
2482
cat >conftest.$ac_ext <<_ACEOF
 
2483
#ifndef __cplusplus
 
2484
  choke me
 
2485
#endif
 
2486
_ACEOF
 
2487
rm -f conftest.$ac_objext
 
2488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2489
  (eval $ac_compile) 2>conftest.er1
 
2490
  ac_status=$?
 
2491
  grep -v '^ *+' conftest.er1 >conftest.err
 
2492
  rm -f conftest.er1
 
2493
  cat conftest.err >&5
 
2494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2495
  (exit $ac_status); } &&
 
2496
         { ac_try='test -z "$ac_c_werror_flag"
 
2497
                         || test ! -s conftest.err'
 
2498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2499
  (eval $ac_try) 2>&5
 
2500
  ac_status=$?
 
2501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2502
  (exit $ac_status); }; } &&
 
2503
         { ac_try='test -s conftest.$ac_objext'
 
2504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2505
  (eval $ac_try) 2>&5
 
2506
  ac_status=$?
 
2507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2508
  (exit $ac_status); }; }; then
 
2509
  for ac_declaration in \
 
2510
   '' \
 
2511
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2512
   'extern "C" void std::exit (int); using std::exit;' \
 
2513
   'extern "C" void exit (int) throw ();' \
 
2514
   'extern "C" void exit (int);' \
 
2515
   'void exit (int);'
 
2516
do
 
2517
  cat >conftest.$ac_ext <<_ACEOF
 
2518
/* confdefs.h.  */
 
2519
_ACEOF
 
2520
cat confdefs.h >>conftest.$ac_ext
 
2521
cat >>conftest.$ac_ext <<_ACEOF
 
2522
/* end confdefs.h.  */
 
2523
$ac_declaration
 
2524
#include <stdlib.h>
 
2525
int
 
2526
main ()
 
2527
{
 
2528
exit (42);
 
2529
  ;
 
2530
  return 0;
 
2531
}
 
2532
_ACEOF
 
2533
rm -f conftest.$ac_objext
 
2534
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2535
  (eval $ac_compile) 2>conftest.er1
 
2536
  ac_status=$?
 
2537
  grep -v '^ *+' conftest.er1 >conftest.err
 
2538
  rm -f conftest.er1
 
2539
  cat conftest.err >&5
 
2540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2541
  (exit $ac_status); } &&
 
2542
         { ac_try='test -z "$ac_c_werror_flag"
 
2543
                         || test ! -s conftest.err'
 
2544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2545
  (eval $ac_try) 2>&5
 
2546
  ac_status=$?
 
2547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2548
  (exit $ac_status); }; } &&
 
2549
         { ac_try='test -s conftest.$ac_objext'
 
2550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2551
  (eval $ac_try) 2>&5
 
2552
  ac_status=$?
 
2553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2554
  (exit $ac_status); }; }; then
 
2555
  :
 
2556
else
 
2557
  echo "$as_me: failed program was:" >&5
 
2558
sed 's/^/| /' conftest.$ac_ext >&5
 
2559
 
 
2560
continue
 
2561
fi
 
2562
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2563
  cat >conftest.$ac_ext <<_ACEOF
 
2564
/* confdefs.h.  */
 
2565
_ACEOF
 
2566
cat confdefs.h >>conftest.$ac_ext
 
2567
cat >>conftest.$ac_ext <<_ACEOF
 
2568
/* end confdefs.h.  */
 
2569
$ac_declaration
 
2570
int
 
2571
main ()
 
2572
{
 
2573
exit (42);
 
2574
  ;
 
2575
  return 0;
 
2576
}
 
2577
_ACEOF
 
2578
rm -f conftest.$ac_objext
 
2579
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2580
  (eval $ac_compile) 2>conftest.er1
 
2581
  ac_status=$?
 
2582
  grep -v '^ *+' conftest.er1 >conftest.err
 
2583
  rm -f conftest.er1
 
2584
  cat conftest.err >&5
 
2585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2586
  (exit $ac_status); } &&
 
2587
         { ac_try='test -z "$ac_c_werror_flag"
 
2588
                         || test ! -s conftest.err'
 
2589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2590
  (eval $ac_try) 2>&5
 
2591
  ac_status=$?
 
2592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2593
  (exit $ac_status); }; } &&
 
2594
         { ac_try='test -s conftest.$ac_objext'
 
2595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2596
  (eval $ac_try) 2>&5
 
2597
  ac_status=$?
 
2598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2599
  (exit $ac_status); }; }; then
 
2600
  break
 
2601
else
 
2602
  echo "$as_me: failed program was:" >&5
 
2603
sed 's/^/| /' conftest.$ac_ext >&5
 
2604
 
 
2605
fi
 
2606
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2607
done
 
2608
rm -f conftest*
 
2609
if test -n "$ac_declaration"; then
 
2610
  echo '#ifdef __cplusplus' >>confdefs.h
 
2611
  echo $ac_declaration      >>confdefs.h
 
2612
  echo '#endif'             >>confdefs.h
 
2613
fi
 
2614
 
 
2615
else
 
2616
  echo "$as_me: failed program was:" >&5
 
2617
sed 's/^/| /' conftest.$ac_ext >&5
 
2618
 
 
2619
fi
 
2620
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2621
ac_ext=c
 
2622
ac_cpp='$CPP $CPPFLAGS'
 
2623
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2624
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2625
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2626
 
 
2627
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
2628
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
2629
if test "${lt_cv_path_SED+set}" = set; then
 
2630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2631
else
 
2632
  # Loop through the user's path and test for sed and gsed.
 
2633
# Then use that list of sed's as ones to test for truncation.
 
2634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2635
for as_dir in $PATH
 
2636
do
 
2637
  IFS=$as_save_IFS
 
2638
  test -z "$as_dir" && as_dir=.
 
2639
  for lt_ac_prog in sed gsed; do
 
2640
    for ac_exec_ext in '' $ac_executable_extensions; do
 
2641
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
2642
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
2643
      fi
 
2644
    done
 
2645
  done
 
2646
done
 
2647
lt_ac_max=0
 
2648
lt_ac_count=0
 
2649
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
2650
# along with /bin/sed that truncates output.
 
2651
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
2652
  test ! -f $lt_ac_sed && continue
 
2653
  cat /dev/null > conftest.in
 
2654
  lt_ac_count=0
 
2655
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
2656
  # Check for GNU sed and select it if it is found.
 
2657
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
2658
    lt_cv_path_SED=$lt_ac_sed
 
2659
    break
 
2660
  fi
 
2661
  while true; do
 
2662
    cat conftest.in conftest.in >conftest.tmp
 
2663
    mv conftest.tmp conftest.in
 
2664
    cp conftest.in conftest.nl
 
2665
    echo >>conftest.nl
 
2666
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
2667
    cmp -s conftest.out conftest.nl || break
 
2668
    # 10000 chars as input seems more than enough
 
2669
    test $lt_ac_count -gt 10 && break
 
2670
    lt_ac_count=`expr $lt_ac_count + 1`
 
2671
    if test $lt_ac_count -gt $lt_ac_max; then
 
2672
      lt_ac_max=$lt_ac_count
 
2673
      lt_cv_path_SED=$lt_ac_sed
 
2674
    fi
 
2675
  done
 
2676
done
 
2677
 
 
2678
fi
 
2679
 
 
2680
SED=$lt_cv_path_SED
 
2681
echo "$as_me:$LINENO: result: $SED" >&5
 
2682
echo "${ECHO_T}$SED" >&6
 
2683
 
 
2684
echo "$as_me:$LINENO: checking for egrep" >&5
 
2685
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2686
if test "${ac_cv_prog_egrep+set}" = set; then
 
2687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2688
else
 
2689
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2690
    then ac_cv_prog_egrep='grep -E'
 
2691
    else ac_cv_prog_egrep='egrep'
 
2692
    fi
 
2693
fi
 
2694
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2695
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2696
 EGREP=$ac_cv_prog_egrep
 
2697
 
 
2698
 
 
2699
 
 
2700
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
2701
if test "${with_gnu_ld+set}" = set; then
 
2702
  withval="$with_gnu_ld"
 
2703
  test "$withval" = no || with_gnu_ld=yes
 
2704
else
 
2705
  with_gnu_ld=no
 
2706
fi;
 
2707
ac_prog=ld
 
2708
if test "$GCC" = yes; then
 
2709
  # Check if gcc -print-prog-name=ld gives a path.
 
2710
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
2711
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
2712
  case $host in
 
2713
  *-*-mingw*)
 
2714
    # gcc leaves a trailing carriage return which upsets mingw
 
2715
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
2716
  *)
 
2717
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
2718
  esac
 
2719
  case $ac_prog in
 
2720
    # Accept absolute paths.
 
2721
    [\\/]* | ?:[\\/]*)
 
2722
      re_direlt='/[^/][^/]*/\.\./'
 
2723
      # Canonicalize the pathname of ld
 
2724
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
2725
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2726
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
2727
      done
 
2728
      test -z "$LD" && LD="$ac_prog"
 
2729
      ;;
 
2730
  "")
 
2731
    # If it fails, then pretend we aren't using GCC.
 
2732
    ac_prog=ld
 
2733
    ;;
 
2734
  *)
 
2735
    # If it is relative, then search for the first ld in PATH.
 
2736
    with_gnu_ld=unknown
 
2737
    ;;
 
2738
  esac
 
2739
elif test "$with_gnu_ld" = yes; then
 
2740
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
2741
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
2742
else
 
2743
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
2744
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
2745
fi
 
2746
if test "${lt_cv_path_LD+set}" = set; then
 
2747
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2748
else
 
2749
  if test -z "$LD"; then
 
2750
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2751
  for ac_dir in $PATH; do
 
2752
    IFS="$lt_save_ifs"
 
2753
    test -z "$ac_dir" && ac_dir=.
 
2754
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
2755
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
2756
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
2757
      # but apparently some variants of GNU ld only accept -v.
 
2758
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
2759
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
2760
      *GNU* | *'with BFD'*)
 
2761
        test "$with_gnu_ld" != no && break
 
2762
        ;;
 
2763
      *)
 
2764
        test "$with_gnu_ld" != yes && break
 
2765
        ;;
 
2766
      esac
 
2767
    fi
 
2768
  done
 
2769
  IFS="$lt_save_ifs"
 
2770
else
 
2771
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
2772
fi
 
2773
fi
 
2774
 
 
2775
LD="$lt_cv_path_LD"
 
2776
if test -n "$LD"; then
 
2777
  echo "$as_me:$LINENO: result: $LD" >&5
 
2778
echo "${ECHO_T}$LD" >&6
 
2779
else
 
2780
  echo "$as_me:$LINENO: result: no" >&5
 
2781
echo "${ECHO_T}no" >&6
 
2782
fi
 
2783
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
2784
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
2785
   { (exit 1); exit 1; }; }
 
2786
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
2787
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
2788
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
2789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2790
else
 
2791
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
2792
case `$LD -v 2>&1 </dev/null` in
 
2793
*GNU* | *'with BFD'*)
 
2794
  lt_cv_prog_gnu_ld=yes
 
2795
  ;;
 
2796
*)
 
2797
  lt_cv_prog_gnu_ld=no
 
2798
  ;;
 
2799
esac
 
2800
fi
 
2801
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
2802
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
2803
with_gnu_ld=$lt_cv_prog_gnu_ld
 
2804
 
 
2805
 
 
2806
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
2807
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
2808
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
2809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2810
else
 
2811
  lt_cv_ld_reload_flag='-r'
 
2812
fi
 
2813
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
2814
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
2815
reload_flag=$lt_cv_ld_reload_flag
 
2816
case $reload_flag in
 
2817
"" | " "*) ;;
 
2818
*) reload_flag=" $reload_flag" ;;
 
2819
esac
 
2820
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2821
case $host_os in
 
2822
  darwin*)
 
2823
    if test "$GCC" = yes; then
 
2824
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
2825
    else
 
2826
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
2827
    fi
 
2828
    ;;
 
2829
esac
 
2830
 
 
2831
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
2832
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
2833
if test "${lt_cv_path_NM+set}" = set; then
 
2834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2835
else
 
2836
  if test -n "$NM"; then
 
2837
  # Let the user override the test.
 
2838
  lt_cv_path_NM="$NM"
 
2839
else
 
2840
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2841
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
2842
    IFS="$lt_save_ifs"
 
2843
    test -z "$ac_dir" && ac_dir=.
 
2844
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
2845
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2846
      # Check to see if the nm accepts a BSD-compat flag.
 
2847
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2848
      #   nm: unknown option "B" ignored
 
2849
      # Tru64's nm complains that /dev/null is an invalid object file
 
2850
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2851
      */dev/null* | *'Invalid file or object type'*)
 
2852
        lt_cv_path_NM="$tmp_nm -B"
 
2853
        break
 
2854
        ;;
 
2855
      *)
 
2856
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2857
        */dev/null*)
 
2858
          lt_cv_path_NM="$tmp_nm -p"
 
2859
          break
 
2860
          ;;
 
2861
        *)
 
2862
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2863
          continue # so that we can try to find one that supports BSD flags
 
2864
          ;;
 
2865
        esac
 
2866
      esac
 
2867
    fi
 
2868
  done
 
2869
  IFS="$lt_save_ifs"
 
2870
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
2871
fi
 
2872
fi
 
2873
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
2874
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
2875
NM="$lt_cv_path_NM"
 
2876
 
 
2877
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
2878
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
2879
LN_S=$as_ln_s
 
2880
if test "$LN_S" = "ln -s"; then
 
2881
  echo "$as_me:$LINENO: result: yes" >&5
 
2882
echo "${ECHO_T}yes" >&6
 
2883
else
 
2884
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
2885
echo "${ECHO_T}no, using $LN_S" >&6
 
2886
fi
 
2887
 
 
2888
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
2889
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
2890
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
2891
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2892
else
 
2893
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
2894
lt_cv_file_magic_test_file=
 
2895
lt_cv_deplibs_check_method='unknown'
 
2896
# Need to set the preceding variable on all platforms that support
 
2897
# interlibrary dependencies.
 
2898
# 'none' -- dependencies not supported.
 
2899
# `unknown' -- same as none, but documents that we really don't know.
 
2900
# 'pass_all' -- all dependencies passed with no checks.
 
2901
# 'test_compile' -- check by making test program.
 
2902
# 'file_magic [[regex]]' -- check by looking for files in library path
 
2903
# which responds to the $file_magic_cmd with a given extended regex.
 
2904
# If you have `file' or equivalent on your system and you're not sure
 
2905
# whether `pass_all' will *always* work, you probably want this one.
 
2906
 
 
2907
case $host_os in
 
2908
aix4* | aix5*)
 
2909
  lt_cv_deplibs_check_method=pass_all
 
2910
  ;;
 
2911
 
 
2912
beos*)
 
2913
  lt_cv_deplibs_check_method=pass_all
 
2914
  ;;
 
2915
 
 
2916
bsdi[45]*)
 
2917
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
2918
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
2919
  lt_cv_file_magic_test_file=/shlib/libc.so
 
2920
  ;;
 
2921
 
 
2922
cygwin*)
 
2923
  # func_win32_libid is a shell function defined in ltmain.sh
 
2924
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
2925
  lt_cv_file_magic_cmd='func_win32_libid'
 
2926
  ;;
 
2927
 
 
2928
mingw* | pw32*)
 
2929
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
2930
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
2931
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2932
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2933
  ;;
 
2934
 
 
2935
darwin* | rhapsody*)
 
2936
  lt_cv_deplibs_check_method=pass_all
 
2937
  ;;
 
2938
 
 
2939
freebsd* | kfreebsd*-gnu | dragonfly*)
 
2940
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2941
    case $host_cpu in
 
2942
    i*86 )
 
2943
      # Not sure whether the presence of OpenBSD here was a mistake.
 
2944
      # Let's accept both of them until this is cleared up.
 
2945
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
2946
      lt_cv_file_magic_cmd=/usr/bin/file
 
2947
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
2948
      ;;
 
2949
    esac
 
2950
  else
 
2951
    lt_cv_deplibs_check_method=pass_all
 
2952
  fi
 
2953
  ;;
 
2954
 
 
2955
gnu*)
 
2956
  lt_cv_deplibs_check_method=pass_all
 
2957
  ;;
 
2958
 
 
2959
hpux10.20* | hpux11*)
 
2960
  lt_cv_file_magic_cmd=/usr/bin/file
 
2961
  case $host_cpu in
 
2962
  ia64*)
 
2963
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
2964
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
2965
    ;;
 
2966
  hppa*64*)
 
2967
    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]'
 
2968
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
2969
    ;;
 
2970
  *)
 
2971
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
2972
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
2973
    ;;
 
2974
  esac
 
2975
  ;;
 
2976
 
 
2977
irix5* | irix6* | nonstopux*)
 
2978
  case $LD in
 
2979
  *-32|*"-32 ") libmagic=32-bit;;
 
2980
  *-n32|*"-n32 ") libmagic=N32;;
 
2981
  *-64|*"-64 ") libmagic=64-bit;;
 
2982
  *) libmagic=never-match;;
 
2983
  esac
 
2984
  lt_cv_deplibs_check_method=pass_all
 
2985
  ;;
 
2986
 
 
2987
# This must be Linux ELF.
 
2988
linux*)
 
2989
  lt_cv_deplibs_check_method=pass_all
 
2990
  ;;
 
2991
 
 
2992
netbsd*)
 
2993
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2994
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
2995
  else
 
2996
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
2997
  fi
 
2998
  ;;
 
2999
 
 
3000
newos6*)
 
3001
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3002
  lt_cv_file_magic_cmd=/usr/bin/file
 
3003
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3004
  ;;
 
3005
 
 
3006
nto-qnx*)
 
3007
  lt_cv_deplibs_check_method=unknown
 
3008
  ;;
 
3009
 
 
3010
openbsd*)
 
3011
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3012
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
3013
  else
 
3014
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3015
  fi
 
3016
  ;;
 
3017
 
 
3018
osf3* | osf4* | osf5*)
 
3019
  lt_cv_deplibs_check_method=pass_all
 
3020
  ;;
 
3021
 
 
3022
sco3.2v5*)
 
3023
  lt_cv_deplibs_check_method=pass_all
 
3024
  ;;
 
3025
 
 
3026
solaris*)
 
3027
  lt_cv_deplibs_check_method=pass_all
 
3028
  ;;
 
3029
 
 
3030
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3031
  case $host_vendor in
 
3032
  motorola)
 
3033
    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]'
 
3034
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3035
    ;;
 
3036
  ncr)
 
3037
    lt_cv_deplibs_check_method=pass_all
 
3038
    ;;
 
3039
  sequent)
 
3040
    lt_cv_file_magic_cmd='/bin/file'
 
3041
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3042
    ;;
 
3043
  sni)
 
3044
    lt_cv_file_magic_cmd='/bin/file'
 
3045
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3046
    lt_cv_file_magic_test_file=/lib/libc.so
 
3047
    ;;
 
3048
  siemens)
 
3049
    lt_cv_deplibs_check_method=pass_all
 
3050
    ;;
 
3051
  esac
 
3052
  ;;
 
3053
 
 
3054
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3055
  lt_cv_deplibs_check_method=pass_all
 
3056
  ;;
 
3057
esac
 
3058
 
 
3059
fi
 
3060
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3061
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3062
file_magic_cmd=$lt_cv_file_magic_cmd
 
3063
deplibs_check_method=$lt_cv_deplibs_check_method
 
3064
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3065
 
 
3066
 
 
3067
 
 
3068
 
 
3069
# If no C compiler was specified, use CC.
 
3070
LTCC=${LTCC-"$CC"}
 
3071
 
 
3072
# Allow CC to be a program name with arguments.
 
3073
compiler=$CC
 
3074
 
 
3075
 
 
3076
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3077
if test "${enable_libtool_lock+set}" = set; then
 
3078
  enableval="$enable_libtool_lock"
 
3079
 
 
3080
fi;
 
3081
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3082
 
 
3083
# Some flags need to be propagated to the compiler or linker for good
 
3084
# libtool support.
 
3085
case $host in
 
3086
ia64-*-hpux*)
 
3087
  # Find out which ABI we are using.
 
3088
  echo 'int i;' > conftest.$ac_ext
 
3089
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3090
  (eval $ac_compile) 2>&5
 
3091
  ac_status=$?
 
3092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3093
  (exit $ac_status); }; then
 
3094
    case `/usr/bin/file conftest.$ac_objext` in
 
3095
    *ELF-32*)
 
3096
      HPUX_IA64_MODE="32"
 
3097
      ;;
 
3098
    *ELF-64*)
 
3099
      HPUX_IA64_MODE="64"
 
3100
      ;;
 
3101
    esac
 
3102
  fi
 
3103
  rm -rf conftest*
 
3104
  ;;
 
3105
*-*-irix6*)
 
3106
  # Find out which ABI we are using.
 
3107
  echo '#line 3107 "configure"' > conftest.$ac_ext
 
3108
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3109
  (eval $ac_compile) 2>&5
 
3110
  ac_status=$?
 
3111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3112
  (exit $ac_status); }; then
 
3113
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3114
    case `/usr/bin/file conftest.$ac_objext` in
 
3115
    *32-bit*)
 
3116
      LD="${LD-ld} -melf32bsmip"
 
3117
      ;;
 
3118
    *N32*)
 
3119
      LD="${LD-ld} -melf32bmipn32"
 
3120
      ;;
 
3121
    *64-bit*)
 
3122
      LD="${LD-ld} -melf64bmip"
 
3123
      ;;
 
3124
    esac
 
3125
   else
 
3126
    case `/usr/bin/file conftest.$ac_objext` in
 
3127
    *32-bit*)
 
3128
      LD="${LD-ld} -32"
 
3129
      ;;
 
3130
    *N32*)
 
3131
      LD="${LD-ld} -n32"
 
3132
      ;;
 
3133
    *64-bit*)
 
3134
      LD="${LD-ld} -64"
 
3135
      ;;
 
3136
    esac
 
3137
   fi
 
3138
  fi
 
3139
  rm -rf conftest*
 
3140
  ;;
 
3141
 
 
3142
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3143
  # Find out which ABI we are using.
 
3144
  echo 'int i;' > conftest.$ac_ext
 
3145
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3146
  (eval $ac_compile) 2>&5
 
3147
  ac_status=$?
 
3148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3149
  (exit $ac_status); }; then
 
3150
    case `/usr/bin/file conftest.o` in
 
3151
    *32-bit*)
 
3152
      case $host in
 
3153
        x86_64-*linux*)
 
3154
          LD="${LD-ld} -m elf_i386"
 
3155
          ;;
 
3156
        ppc64-*linux*|powerpc64-*linux*)
 
3157
          LD="${LD-ld} -m elf32ppclinux"
 
3158
          ;;
 
3159
        s390x-*linux*)
 
3160
          LD="${LD-ld} -m elf_s390"
 
3161
          ;;
 
3162
        sparc64-*linux*)
 
3163
          LD="${LD-ld} -m elf32_sparc"
 
3164
          ;;
 
3165
      esac
 
3166
      ;;
 
3167
    *64-bit*)
 
3168
      case $host in
 
3169
        x86_64-*linux*)
 
3170
          LD="${LD-ld} -m elf_x86_64"
 
3171
          ;;
 
3172
        ppc*-*linux*|powerpc*-*linux*)
 
3173
          LD="${LD-ld} -m elf64ppc"
 
3174
          ;;
 
3175
        s390*-*linux*)
 
3176
          LD="${LD-ld} -m elf64_s390"
 
3177
          ;;
 
3178
        sparc*-*linux*)
 
3179
          LD="${LD-ld} -m elf64_sparc"
 
3180
          ;;
 
3181
      esac
 
3182
      ;;
 
3183
    esac
 
3184
  fi
 
3185
  rm -rf conftest*
 
3186
  ;;
 
3187
 
 
3188
*-*-sco3.2v5*)
 
3189
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3190
  SAVE_CFLAGS="$CFLAGS"
 
3191
  CFLAGS="$CFLAGS -belf"
 
3192
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3193
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3194
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3196
else
 
3197
  ac_ext=c
 
3198
ac_cpp='$CPP $CPPFLAGS'
 
3199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3202
 
 
3203
     cat >conftest.$ac_ext <<_ACEOF
 
3204
/* confdefs.h.  */
 
3205
_ACEOF
 
3206
cat confdefs.h >>conftest.$ac_ext
 
3207
cat >>conftest.$ac_ext <<_ACEOF
 
3208
/* end confdefs.h.  */
 
3209
 
 
3210
int
 
3211
main ()
 
3212
{
 
3213
 
 
3214
  ;
 
3215
  return 0;
 
3216
}
 
3217
_ACEOF
 
3218
rm -f conftest.$ac_objext conftest$ac_exeext
 
3219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3220
  (eval $ac_link) 2>conftest.er1
 
3221
  ac_status=$?
 
3222
  grep -v '^ *+' conftest.er1 >conftest.err
 
3223
  rm -f conftest.er1
 
3224
  cat conftest.err >&5
 
3225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3226
  (exit $ac_status); } &&
 
3227
         { ac_try='test -z "$ac_c_werror_flag"
 
3228
                         || test ! -s conftest.err'
 
3229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3230
  (eval $ac_try) 2>&5
 
3231
  ac_status=$?
 
3232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3233
  (exit $ac_status); }; } &&
 
3234
         { ac_try='test -s conftest$ac_exeext'
 
3235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3236
  (eval $ac_try) 2>&5
 
3237
  ac_status=$?
 
3238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3239
  (exit $ac_status); }; }; then
 
3240
  lt_cv_cc_needs_belf=yes
 
3241
else
 
3242
  echo "$as_me: failed program was:" >&5
 
3243
sed 's/^/| /' conftest.$ac_ext >&5
 
3244
 
 
3245
lt_cv_cc_needs_belf=no
 
3246
fi
 
3247
rm -f conftest.err conftest.$ac_objext \
 
3248
      conftest$ac_exeext conftest.$ac_ext
 
3249
     ac_ext=c
 
3250
ac_cpp='$CPP $CPPFLAGS'
 
3251
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3252
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3253
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3254
 
 
3255
fi
 
3256
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3257
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3258
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3259
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3260
    CFLAGS="$SAVE_CFLAGS"
 
3261
  fi
 
3262
  ;;
 
3263
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
3264
  if test -n "$ac_tool_prefix"; then
 
3265
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
3266
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
3267
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3268
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3269
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
3270
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3271
else
 
3272
  if test -n "$DLLTOOL"; then
 
3273
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
3274
else
 
3275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3276
for as_dir in $PATH
 
3277
do
 
3278
  IFS=$as_save_IFS
 
3279
  test -z "$as_dir" && as_dir=.
 
3280
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3281
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3282
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
3283
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3284
    break 2
 
3285
  fi
 
3286
done
 
3287
done
 
3288
 
 
3289
fi
 
3290
fi
 
3291
DLLTOOL=$ac_cv_prog_DLLTOOL
 
3292
if test -n "$DLLTOOL"; then
 
3293
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
3294
echo "${ECHO_T}$DLLTOOL" >&6
 
3295
else
 
3296
  echo "$as_me:$LINENO: result: no" >&5
 
3297
echo "${ECHO_T}no" >&6
 
3298
fi
 
3299
 
 
3300
fi
 
3301
if test -z "$ac_cv_prog_DLLTOOL"; then
 
3302
  ac_ct_DLLTOOL=$DLLTOOL
 
3303
  # Extract the first word of "dlltool", so it can be a program name with args.
 
3304
set dummy dlltool; ac_word=$2
 
3305
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3307
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
3308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3309
else
 
3310
  if test -n "$ac_ct_DLLTOOL"; then
 
3311
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
3312
else
 
3313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3314
for as_dir in $PATH
 
3315
do
 
3316
  IFS=$as_save_IFS
 
3317
  test -z "$as_dir" && as_dir=.
 
3318
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3319
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3320
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
3321
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3322
    break 2
 
3323
  fi
 
3324
done
 
3325
done
 
3326
 
 
3327
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
 
3328
fi
 
3329
fi
 
3330
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
3331
if test -n "$ac_ct_DLLTOOL"; then
 
3332
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
3333
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
3334
else
 
3335
  echo "$as_me:$LINENO: result: no" >&5
 
3336
echo "${ECHO_T}no" >&6
 
3337
fi
 
3338
 
 
3339
  DLLTOOL=$ac_ct_DLLTOOL
 
3340
else
 
3341
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
3342
fi
 
3343
 
 
3344
  if test -n "$ac_tool_prefix"; then
 
3345
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
3346
set dummy ${ac_tool_prefix}as; ac_word=$2
 
3347
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3348
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3349
if test "${ac_cv_prog_AS+set}" = set; then
 
3350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3351
else
 
3352
  if test -n "$AS"; then
 
3353
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
3354
else
 
3355
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3356
for as_dir in $PATH
 
3357
do
 
3358
  IFS=$as_save_IFS
 
3359
  test -z "$as_dir" && as_dir=.
 
3360
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3361
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3362
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
3363
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3364
    break 2
 
3365
  fi
 
3366
done
 
3367
done
 
3368
 
 
3369
fi
 
3370
fi
 
3371
AS=$ac_cv_prog_AS
 
3372
if test -n "$AS"; then
 
3373
  echo "$as_me:$LINENO: result: $AS" >&5
 
3374
echo "${ECHO_T}$AS" >&6
 
3375
else
 
3376
  echo "$as_me:$LINENO: result: no" >&5
 
3377
echo "${ECHO_T}no" >&6
 
3378
fi
 
3379
 
 
3380
fi
 
3381
if test -z "$ac_cv_prog_AS"; then
 
3382
  ac_ct_AS=$AS
 
3383
  # Extract the first word of "as", so it can be a program name with args.
 
3384
set dummy as; ac_word=$2
 
3385
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3386
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3387
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
3388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3389
else
 
3390
  if test -n "$ac_ct_AS"; then
 
3391
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
3392
else
 
3393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3394
for as_dir in $PATH
 
3395
do
 
3396
  IFS=$as_save_IFS
 
3397
  test -z "$as_dir" && as_dir=.
 
3398
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3399
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3400
    ac_cv_prog_ac_ct_AS="as"
 
3401
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3402
    break 2
 
3403
  fi
 
3404
done
 
3405
done
 
3406
 
 
3407
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
 
3408
fi
 
3409
fi
 
3410
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
3411
if test -n "$ac_ct_AS"; then
 
3412
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
3413
echo "${ECHO_T}$ac_ct_AS" >&6
 
3414
else
 
3415
  echo "$as_me:$LINENO: result: no" >&5
 
3416
echo "${ECHO_T}no" >&6
 
3417
fi
 
3418
 
 
3419
  AS=$ac_ct_AS
 
3420
else
 
3421
  AS="$ac_cv_prog_AS"
 
3422
fi
 
3423
 
 
3424
  if test -n "$ac_tool_prefix"; then
 
3425
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
3426
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
3427
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3429
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
3430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3431
else
 
3432
  if test -n "$OBJDUMP"; then
 
3433
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
3434
else
 
3435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3436
for as_dir in $PATH
 
3437
do
 
3438
  IFS=$as_save_IFS
 
3439
  test -z "$as_dir" && as_dir=.
 
3440
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3441
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3442
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
3443
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3444
    break 2
 
3445
  fi
 
3446
done
 
3447
done
 
3448
 
 
3449
fi
 
3450
fi
 
3451
OBJDUMP=$ac_cv_prog_OBJDUMP
 
3452
if test -n "$OBJDUMP"; then
 
3453
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
3454
echo "${ECHO_T}$OBJDUMP" >&6
 
3455
else
 
3456
  echo "$as_me:$LINENO: result: no" >&5
 
3457
echo "${ECHO_T}no" >&6
 
3458
fi
 
3459
 
 
3460
fi
 
3461
if test -z "$ac_cv_prog_OBJDUMP"; then
 
3462
  ac_ct_OBJDUMP=$OBJDUMP
 
3463
  # Extract the first word of "objdump", so it can be a program name with args.
 
3464
set dummy objdump; ac_word=$2
 
3465
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3466
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3467
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
3468
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3469
else
 
3470
  if test -n "$ac_ct_OBJDUMP"; then
 
3471
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
3472
else
 
3473
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3474
for as_dir in $PATH
 
3475
do
 
3476
  IFS=$as_save_IFS
 
3477
  test -z "$as_dir" && as_dir=.
 
3478
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3479
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3480
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
3481
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3482
    break 2
 
3483
  fi
 
3484
done
 
3485
done
 
3486
 
 
3487
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
 
3488
fi
 
3489
fi
 
3490
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
3491
if test -n "$ac_ct_OBJDUMP"; then
 
3492
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
3493
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
 
3494
else
 
3495
  echo "$as_me:$LINENO: result: no" >&5
 
3496
echo "${ECHO_T}no" >&6
 
3497
fi
 
3498
 
 
3499
  OBJDUMP=$ac_ct_OBJDUMP
 
3500
else
 
3501
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
3502
fi
 
3503
 
 
3504
  ;;
 
3505
 
 
3506
esac
 
3507
 
 
3508
need_locks="$enable_libtool_lock"
 
3509
 
 
3510
 
 
3511
ac_ext=c
 
3512
ac_cpp='$CPP $CPPFLAGS'
 
3513
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3514
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3515
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3516
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3517
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3518
# On Suns, sometimes $CPP names a directory.
 
3519
if test -n "$CPP" && test -d "$CPP"; then
 
3520
  CPP=
 
3521
fi
 
3522
if test -z "$CPP"; then
 
3523
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3525
else
 
3526
      # Double quotes because CPP needs to be expanded
 
3527
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3528
    do
 
3529
      ac_preproc_ok=false
 
3530
for ac_c_preproc_warn_flag in '' yes
 
3531
do
 
3532
  # Use a header file that comes with gcc, so configuring glibc
 
3533
  # with a fresh cross-compiler works.
 
3534
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3535
  # <limits.h> exists even on freestanding compilers.
 
3536
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3537
  # not just through cpp. "Syntax error" is here to catch this case.
 
3538
  cat >conftest.$ac_ext <<_ACEOF
 
3539
/* confdefs.h.  */
 
3540
_ACEOF
 
3541
cat confdefs.h >>conftest.$ac_ext
 
3542
cat >>conftest.$ac_ext <<_ACEOF
 
3543
/* end confdefs.h.  */
 
3544
#ifdef __STDC__
 
3545
# include <limits.h>
 
3546
#else
 
3547
# include <assert.h>
 
3548
#endif
 
3549
                     Syntax error
 
3550
_ACEOF
 
3551
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3552
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3553
  ac_status=$?
 
3554
  grep -v '^ *+' conftest.er1 >conftest.err
 
3555
  rm -f conftest.er1
 
3556
  cat conftest.err >&5
 
3557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3558
  (exit $ac_status); } >/dev/null; then
 
3559
  if test -s conftest.err; then
 
3560
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3561
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3562
  else
 
3563
    ac_cpp_err=
 
3564
  fi
 
3565
else
 
3566
  ac_cpp_err=yes
 
3567
fi
 
3568
if test -z "$ac_cpp_err"; then
 
3569
  :
 
3570
else
 
3571
  echo "$as_me: failed program was:" >&5
 
3572
sed 's/^/| /' conftest.$ac_ext >&5
 
3573
 
 
3574
  # Broken: fails on valid input.
 
3575
continue
 
3576
fi
 
3577
rm -f conftest.err conftest.$ac_ext
 
3578
 
 
3579
  # OK, works on sane cases.  Now check whether non-existent headers
 
3580
  # can be detected and how.
 
3581
  cat >conftest.$ac_ext <<_ACEOF
 
3582
/* confdefs.h.  */
 
3583
_ACEOF
 
3584
cat confdefs.h >>conftest.$ac_ext
 
3585
cat >>conftest.$ac_ext <<_ACEOF
 
3586
/* end confdefs.h.  */
 
3587
#include <ac_nonexistent.h>
 
3588
_ACEOF
 
3589
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3590
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3591
  ac_status=$?
 
3592
  grep -v '^ *+' conftest.er1 >conftest.err
 
3593
  rm -f conftest.er1
 
3594
  cat conftest.err >&5
 
3595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3596
  (exit $ac_status); } >/dev/null; then
 
3597
  if test -s conftest.err; then
 
3598
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3599
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3600
  else
 
3601
    ac_cpp_err=
 
3602
  fi
 
3603
else
 
3604
  ac_cpp_err=yes
 
3605
fi
 
3606
if test -z "$ac_cpp_err"; then
 
3607
  # Broken: success on invalid input.
 
3608
continue
 
3609
else
 
3610
  echo "$as_me: failed program was:" >&5
 
3611
sed 's/^/| /' conftest.$ac_ext >&5
 
3612
 
 
3613
  # Passes both tests.
 
3614
ac_preproc_ok=:
 
3615
break
 
3616
fi
 
3617
rm -f conftest.err conftest.$ac_ext
 
3618
 
 
3619
done
 
3620
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3621
rm -f conftest.err conftest.$ac_ext
 
3622
if $ac_preproc_ok; then
 
3623
  break
 
3624
fi
 
3625
 
 
3626
    done
 
3627
    ac_cv_prog_CPP=$CPP
 
3628
 
 
3629
fi
 
3630
  CPP=$ac_cv_prog_CPP
 
3631
else
 
3632
  ac_cv_prog_CPP=$CPP
 
3633
fi
 
3634
echo "$as_me:$LINENO: result: $CPP" >&5
 
3635
echo "${ECHO_T}$CPP" >&6
 
3636
ac_preproc_ok=false
 
3637
for ac_c_preproc_warn_flag in '' yes
 
3638
do
 
3639
  # Use a header file that comes with gcc, so configuring glibc
 
3640
  # with a fresh cross-compiler works.
 
3641
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3642
  # <limits.h> exists even on freestanding compilers.
 
3643
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3644
  # not just through cpp. "Syntax error" is here to catch this case.
 
3645
  cat >conftest.$ac_ext <<_ACEOF
 
3646
/* confdefs.h.  */
 
3647
_ACEOF
 
3648
cat confdefs.h >>conftest.$ac_ext
 
3649
cat >>conftest.$ac_ext <<_ACEOF
 
3650
/* end confdefs.h.  */
 
3651
#ifdef __STDC__
 
3652
# include <limits.h>
 
3653
#else
 
3654
# include <assert.h>
 
3655
#endif
 
3656
                     Syntax error
 
3657
_ACEOF
 
3658
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3659
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3660
  ac_status=$?
 
3661
  grep -v '^ *+' conftest.er1 >conftest.err
 
3662
  rm -f conftest.er1
 
3663
  cat conftest.err >&5
 
3664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3665
  (exit $ac_status); } >/dev/null; then
 
3666
  if test -s conftest.err; then
 
3667
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3668
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3669
  else
 
3670
    ac_cpp_err=
 
3671
  fi
 
3672
else
 
3673
  ac_cpp_err=yes
 
3674
fi
 
3675
if test -z "$ac_cpp_err"; then
 
3676
  :
 
3677
else
 
3678
  echo "$as_me: failed program was:" >&5
 
3679
sed 's/^/| /' conftest.$ac_ext >&5
 
3680
 
 
3681
  # Broken: fails on valid input.
 
3682
continue
 
3683
fi
 
3684
rm -f conftest.err conftest.$ac_ext
 
3685
 
 
3686
  # OK, works on sane cases.  Now check whether non-existent headers
 
3687
  # can be detected and how.
 
3688
  cat >conftest.$ac_ext <<_ACEOF
 
3689
/* confdefs.h.  */
 
3690
_ACEOF
 
3691
cat confdefs.h >>conftest.$ac_ext
 
3692
cat >>conftest.$ac_ext <<_ACEOF
 
3693
/* end confdefs.h.  */
 
3694
#include <ac_nonexistent.h>
 
3695
_ACEOF
 
3696
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3697
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3698
  ac_status=$?
 
3699
  grep -v '^ *+' conftest.er1 >conftest.err
 
3700
  rm -f conftest.er1
 
3701
  cat conftest.err >&5
 
3702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3703
  (exit $ac_status); } >/dev/null; then
 
3704
  if test -s conftest.err; then
 
3705
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3706
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3707
  else
 
3708
    ac_cpp_err=
 
3709
  fi
 
3710
else
 
3711
  ac_cpp_err=yes
 
3712
fi
 
3713
if test -z "$ac_cpp_err"; then
 
3714
  # Broken: success on invalid input.
 
3715
continue
 
3716
else
 
3717
  echo "$as_me: failed program was:" >&5
 
3718
sed 's/^/| /' conftest.$ac_ext >&5
 
3719
 
 
3720
  # Passes both tests.
 
3721
ac_preproc_ok=:
 
3722
break
 
3723
fi
 
3724
rm -f conftest.err conftest.$ac_ext
 
3725
 
 
3726
done
 
3727
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3728
rm -f conftest.err conftest.$ac_ext
 
3729
if $ac_preproc_ok; then
 
3730
  :
 
3731
else
 
3732
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3733
See \`config.log' for more details." >&5
 
3734
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3735
See \`config.log' for more details." >&2;}
 
3736
   { (exit 1); exit 1; }; }
 
3737
fi
 
3738
 
 
3739
ac_ext=c
 
3740
ac_cpp='$CPP $CPPFLAGS'
 
3741
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3742
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3743
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3744
 
 
3745
 
 
3746
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3747
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3748
if test "${ac_cv_header_stdc+set}" = set; then
 
3749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3750
else
 
3751
  cat >conftest.$ac_ext <<_ACEOF
 
3752
/* confdefs.h.  */
 
3753
_ACEOF
 
3754
cat confdefs.h >>conftest.$ac_ext
 
3755
cat >>conftest.$ac_ext <<_ACEOF
 
3756
/* end confdefs.h.  */
 
3757
#include <stdlib.h>
 
3758
#include <stdarg.h>
 
3759
#include <string.h>
 
3760
#include <float.h>
 
3761
 
 
3762
int
 
3763
main ()
 
3764
{
 
3765
 
 
3766
  ;
 
3767
  return 0;
 
3768
}
 
3769
_ACEOF
 
3770
rm -f conftest.$ac_objext
 
3771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3772
  (eval $ac_compile) 2>conftest.er1
 
3773
  ac_status=$?
 
3774
  grep -v '^ *+' conftest.er1 >conftest.err
 
3775
  rm -f conftest.er1
 
3776
  cat conftest.err >&5
 
3777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3778
  (exit $ac_status); } &&
 
3779
         { ac_try='test -z "$ac_c_werror_flag"
 
3780
                         || test ! -s conftest.err'
 
3781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3782
  (eval $ac_try) 2>&5
 
3783
  ac_status=$?
 
3784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3785
  (exit $ac_status); }; } &&
 
3786
         { ac_try='test -s conftest.$ac_objext'
 
3787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3788
  (eval $ac_try) 2>&5
 
3789
  ac_status=$?
 
3790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3791
  (exit $ac_status); }; }; then
 
3792
  ac_cv_header_stdc=yes
 
3793
else
 
3794
  echo "$as_me: failed program was:" >&5
 
3795
sed 's/^/| /' conftest.$ac_ext >&5
 
3796
 
 
3797
ac_cv_header_stdc=no
 
3798
fi
 
3799
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3800
 
 
3801
if test $ac_cv_header_stdc = yes; then
 
3802
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3803
  cat >conftest.$ac_ext <<_ACEOF
 
3804
/* confdefs.h.  */
 
3805
_ACEOF
 
3806
cat confdefs.h >>conftest.$ac_ext
 
3807
cat >>conftest.$ac_ext <<_ACEOF
 
3808
/* end confdefs.h.  */
 
3809
#include <string.h>
 
3810
 
 
3811
_ACEOF
 
3812
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3813
  $EGREP "memchr" >/dev/null 2>&1; then
 
3814
  :
 
3815
else
 
3816
  ac_cv_header_stdc=no
 
3817
fi
 
3818
rm -f conftest*
 
3819
 
 
3820
fi
 
3821
 
 
3822
if test $ac_cv_header_stdc = yes; then
 
3823
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3824
  cat >conftest.$ac_ext <<_ACEOF
 
3825
/* confdefs.h.  */
 
3826
_ACEOF
 
3827
cat confdefs.h >>conftest.$ac_ext
 
3828
cat >>conftest.$ac_ext <<_ACEOF
 
3829
/* end confdefs.h.  */
 
3830
#include <stdlib.h>
 
3831
 
 
3832
_ACEOF
 
3833
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3834
  $EGREP "free" >/dev/null 2>&1; then
 
3835
  :
 
3836
else
 
3837
  ac_cv_header_stdc=no
 
3838
fi
 
3839
rm -f conftest*
 
3840
 
 
3841
fi
 
3842
 
 
3843
if test $ac_cv_header_stdc = yes; then
 
3844
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3845
  if test "$cross_compiling" = yes; then
 
3846
  :
 
3847
else
 
3848
  cat >conftest.$ac_ext <<_ACEOF
 
3849
/* confdefs.h.  */
 
3850
_ACEOF
 
3851
cat confdefs.h >>conftest.$ac_ext
 
3852
cat >>conftest.$ac_ext <<_ACEOF
 
3853
/* end confdefs.h.  */
 
3854
#include <ctype.h>
 
3855
#if ((' ' & 0x0FF) == 0x020)
 
3856
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3857
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3858
#else
 
3859
# define ISLOWER(c) \
 
3860
                   (('a' <= (c) && (c) <= 'i') \
 
3861
                     || ('j' <= (c) && (c) <= 'r') \
 
3862
                     || ('s' <= (c) && (c) <= 'z'))
 
3863
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3864
#endif
 
3865
 
 
3866
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3867
int
 
3868
main ()
 
3869
{
 
3870
  int i;
 
3871
  for (i = 0; i < 256; i++)
 
3872
    if (XOR (islower (i), ISLOWER (i))
 
3873
        || toupper (i) != TOUPPER (i))
 
3874
      exit(2);
 
3875
  exit (0);
 
3876
}
 
3877
_ACEOF
 
3878
rm -f conftest$ac_exeext
 
3879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3880
  (eval $ac_link) 2>&5
 
3881
  ac_status=$?
 
3882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3883
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3884
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3885
  (eval $ac_try) 2>&5
 
3886
  ac_status=$?
 
3887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3888
  (exit $ac_status); }; }; then
 
3889
  :
 
3890
else
 
3891
  echo "$as_me: program exited with status $ac_status" >&5
 
3892
echo "$as_me: failed program was:" >&5
 
3893
sed 's/^/| /' conftest.$ac_ext >&5
 
3894
 
 
3895
( exit $ac_status )
 
3896
ac_cv_header_stdc=no
 
3897
fi
 
3898
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3899
fi
 
3900
fi
 
3901
fi
 
3902
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3903
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3904
if test $ac_cv_header_stdc = yes; then
 
3905
 
 
3906
cat >>confdefs.h <<\_ACEOF
 
3907
#define STDC_HEADERS 1
 
3908
_ACEOF
 
3909
 
 
3910
fi
 
3911
 
 
3912
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3913
 
 
3914
 
 
3915
 
 
3916
 
 
3917
 
 
3918
 
 
3919
 
 
3920
 
 
3921
 
 
3922
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3923
                  inttypes.h stdint.h unistd.h
 
3924
do
 
3925
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3926
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3927
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3928
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3930
else
 
3931
  cat >conftest.$ac_ext <<_ACEOF
 
3932
/* confdefs.h.  */
 
3933
_ACEOF
 
3934
cat confdefs.h >>conftest.$ac_ext
 
3935
cat >>conftest.$ac_ext <<_ACEOF
 
3936
/* end confdefs.h.  */
 
3937
$ac_includes_default
 
3938
 
 
3939
#include <$ac_header>
 
3940
_ACEOF
 
3941
rm -f conftest.$ac_objext
 
3942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3943
  (eval $ac_compile) 2>conftest.er1
 
3944
  ac_status=$?
 
3945
  grep -v '^ *+' conftest.er1 >conftest.err
 
3946
  rm -f conftest.er1
 
3947
  cat conftest.err >&5
 
3948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3949
  (exit $ac_status); } &&
 
3950
         { ac_try='test -z "$ac_c_werror_flag"
 
3951
                         || test ! -s conftest.err'
 
3952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3953
  (eval $ac_try) 2>&5
 
3954
  ac_status=$?
 
3955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3956
  (exit $ac_status); }; } &&
 
3957
         { ac_try='test -s conftest.$ac_objext'
 
3958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3959
  (eval $ac_try) 2>&5
 
3960
  ac_status=$?
 
3961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3962
  (exit $ac_status); }; }; then
 
3963
  eval "$as_ac_Header=yes"
 
3964
else
 
3965
  echo "$as_me: failed program was:" >&5
 
3966
sed 's/^/| /' conftest.$ac_ext >&5
 
3967
 
 
3968
eval "$as_ac_Header=no"
 
3969
fi
 
3970
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3971
fi
 
3972
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3973
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3974
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3975
  cat >>confdefs.h <<_ACEOF
 
3976
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3977
_ACEOF
 
3978
 
 
3979
fi
 
3980
 
 
3981
done
 
3982
 
 
3983
 
 
3984
 
 
3985
for ac_header in dlfcn.h
 
3986
do
 
3987
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3988
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3989
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3990
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3991
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3993
fi
 
3994
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3995
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3996
else
 
3997
  # Is the header compilable?
 
3998
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3999
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
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
$ac_includes_default
 
4007
#include <$ac_header>
 
4008
_ACEOF
 
4009
rm -f conftest.$ac_objext
 
4010
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4011
  (eval $ac_compile) 2>conftest.er1
 
4012
  ac_status=$?
 
4013
  grep -v '^ *+' conftest.er1 >conftest.err
 
4014
  rm -f conftest.er1
 
4015
  cat conftest.err >&5
 
4016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4017
  (exit $ac_status); } &&
 
4018
         { ac_try='test -z "$ac_c_werror_flag"
 
4019
                         || test ! -s conftest.err'
 
4020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4021
  (eval $ac_try) 2>&5
 
4022
  ac_status=$?
 
4023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4024
  (exit $ac_status); }; } &&
 
4025
         { ac_try='test -s conftest.$ac_objext'
 
4026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4027
  (eval $ac_try) 2>&5
 
4028
  ac_status=$?
 
4029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4030
  (exit $ac_status); }; }; then
 
4031
  ac_header_compiler=yes
 
4032
else
 
4033
  echo "$as_me: failed program was:" >&5
 
4034
sed 's/^/| /' conftest.$ac_ext >&5
 
4035
 
 
4036
ac_header_compiler=no
 
4037
fi
 
4038
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4039
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4040
echo "${ECHO_T}$ac_header_compiler" >&6
 
4041
 
 
4042
# Is the header present?
 
4043
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4044
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4045
cat >conftest.$ac_ext <<_ACEOF
 
4046
/* confdefs.h.  */
 
4047
_ACEOF
 
4048
cat confdefs.h >>conftest.$ac_ext
 
4049
cat >>conftest.$ac_ext <<_ACEOF
 
4050
/* end confdefs.h.  */
 
4051
#include <$ac_header>
 
4052
_ACEOF
 
4053
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4054
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4055
  ac_status=$?
 
4056
  grep -v '^ *+' conftest.er1 >conftest.err
 
4057
  rm -f conftest.er1
 
4058
  cat conftest.err >&5
 
4059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4060
  (exit $ac_status); } >/dev/null; then
 
4061
  if test -s conftest.err; then
 
4062
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4063
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4064
  else
 
4065
    ac_cpp_err=
 
4066
  fi
 
4067
else
 
4068
  ac_cpp_err=yes
 
4069
fi
 
4070
if test -z "$ac_cpp_err"; then
 
4071
  ac_header_preproc=yes
 
4072
else
 
4073
  echo "$as_me: failed program was:" >&5
 
4074
sed 's/^/| /' conftest.$ac_ext >&5
 
4075
 
 
4076
  ac_header_preproc=no
 
4077
fi
 
4078
rm -f conftest.err conftest.$ac_ext
 
4079
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4080
echo "${ECHO_T}$ac_header_preproc" >&6
 
4081
 
 
4082
# So?  What about this header?
 
4083
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4084
  yes:no: )
 
4085
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4086
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4087
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4088
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4089
    ac_header_preproc=yes
 
4090
    ;;
 
4091
  no:yes:* )
 
4092
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4093
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4094
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4095
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4096
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4097
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4098
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4099
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4100
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4101
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4102
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4103
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4104
    (
 
4105
      cat <<\_ASBOX
 
4106
## ------------------------------------------ ##
 
4107
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4108
## ------------------------------------------ ##
 
4109
_ASBOX
 
4110
    ) |
 
4111
      sed "s/^/$as_me: WARNING:     /" >&2
 
4112
    ;;
 
4113
esac
 
4114
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4115
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4116
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4117
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4118
else
 
4119
  eval "$as_ac_Header=\$ac_header_preproc"
 
4120
fi
 
4121
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4122
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4123
 
 
4124
fi
 
4125
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4126
  cat >>confdefs.h <<_ACEOF
 
4127
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4128
_ACEOF
 
4129
 
 
4130
fi
 
4131
 
 
4132
done
 
4133
 
 
4134
ac_ext=cc
 
4135
ac_cpp='$CXXCPP $CPPFLAGS'
 
4136
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4137
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4138
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4139
if test -n "$ac_tool_prefix"; then
 
4140
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4141
  do
 
4142
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4143
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4144
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4145
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4146
if test "${ac_cv_prog_CXX+set}" = set; then
 
4147
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4148
else
 
4149
  if test -n "$CXX"; then
 
4150
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4151
else
 
4152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4153
for as_dir in $PATH
 
4154
do
 
4155
  IFS=$as_save_IFS
 
4156
  test -z "$as_dir" && as_dir=.
 
4157
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4158
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4159
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4160
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4161
    break 2
 
4162
  fi
 
4163
done
 
4164
done
 
4165
 
 
4166
fi
 
4167
fi
 
4168
CXX=$ac_cv_prog_CXX
 
4169
if test -n "$CXX"; then
 
4170
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4171
echo "${ECHO_T}$CXX" >&6
 
4172
else
 
4173
  echo "$as_me:$LINENO: result: no" >&5
 
4174
echo "${ECHO_T}no" >&6
 
4175
fi
 
4176
 
 
4177
    test -n "$CXX" && break
 
4178
  done
 
4179
fi
 
4180
if test -z "$CXX"; then
 
4181
  ac_ct_CXX=$CXX
 
4182
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4183
do
 
4184
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4185
set dummy $ac_prog; ac_word=$2
 
4186
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4187
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4188
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4190
else
 
4191
  if test -n "$ac_ct_CXX"; then
 
4192
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4193
else
 
4194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4195
for as_dir in $PATH
 
4196
do
 
4197
  IFS=$as_save_IFS
 
4198
  test -z "$as_dir" && as_dir=.
 
4199
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4200
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4201
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4202
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4203
    break 2
 
4204
  fi
 
4205
done
 
4206
done
 
4207
 
 
4208
fi
 
4209
fi
 
4210
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4211
if test -n "$ac_ct_CXX"; then
 
4212
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4213
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4214
else
 
4215
  echo "$as_me:$LINENO: result: no" >&5
 
4216
echo "${ECHO_T}no" >&6
 
4217
fi
 
4218
 
 
4219
  test -n "$ac_ct_CXX" && break
 
4220
done
 
4221
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4222
 
 
4223
  CXX=$ac_ct_CXX
 
4224
fi
 
4225
 
 
4226
 
 
4227
# Provide some information about the compiler.
 
4228
echo "$as_me:$LINENO:" \
 
4229
     "checking for C++ compiler version" >&5
 
4230
ac_compiler=`set X $ac_compile; echo $2`
 
4231
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4232
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4233
  ac_status=$?
 
4234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4235
  (exit $ac_status); }
 
4236
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4237
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4238
  ac_status=$?
 
4239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4240
  (exit $ac_status); }
 
4241
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4242
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4243
  ac_status=$?
 
4244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4245
  (exit $ac_status); }
 
4246
 
 
4247
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4248
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4249
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4250
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4251
else
 
4252
  cat >conftest.$ac_ext <<_ACEOF
 
4253
/* confdefs.h.  */
 
4254
_ACEOF
 
4255
cat confdefs.h >>conftest.$ac_ext
 
4256
cat >>conftest.$ac_ext <<_ACEOF
 
4257
/* end confdefs.h.  */
 
4258
 
 
4259
int
 
4260
main ()
 
4261
{
 
4262
#ifndef __GNUC__
 
4263
       choke me
 
4264
#endif
 
4265
 
 
4266
  ;
 
4267
  return 0;
 
4268
}
 
4269
_ACEOF
 
4270
rm -f conftest.$ac_objext
 
4271
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4272
  (eval $ac_compile) 2>conftest.er1
 
4273
  ac_status=$?
 
4274
  grep -v '^ *+' conftest.er1 >conftest.err
 
4275
  rm -f conftest.er1
 
4276
  cat conftest.err >&5
 
4277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4278
  (exit $ac_status); } &&
 
4279
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4280
                         || test ! -s conftest.err'
 
4281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4282
  (eval $ac_try) 2>&5
 
4283
  ac_status=$?
 
4284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4285
  (exit $ac_status); }; } &&
 
4286
         { ac_try='test -s conftest.$ac_objext'
 
4287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4288
  (eval $ac_try) 2>&5
 
4289
  ac_status=$?
 
4290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4291
  (exit $ac_status); }; }; then
 
4292
  ac_compiler_gnu=yes
 
4293
else
 
4294
  echo "$as_me: failed program was:" >&5
 
4295
sed 's/^/| /' conftest.$ac_ext >&5
 
4296
 
 
4297
ac_compiler_gnu=no
 
4298
fi
 
4299
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4300
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4301
 
 
4302
fi
 
4303
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4304
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4305
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4306
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4307
ac_save_CXXFLAGS=$CXXFLAGS
 
4308
CXXFLAGS="-g"
 
4309
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4310
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4311
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4313
else
 
4314
  cat >conftest.$ac_ext <<_ACEOF
 
4315
/* confdefs.h.  */
 
4316
_ACEOF
 
4317
cat confdefs.h >>conftest.$ac_ext
 
4318
cat >>conftest.$ac_ext <<_ACEOF
 
4319
/* end confdefs.h.  */
 
4320
 
 
4321
int
 
4322
main ()
 
4323
{
 
4324
 
 
4325
  ;
 
4326
  return 0;
 
4327
}
 
4328
_ACEOF
 
4329
rm -f conftest.$ac_objext
 
4330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4331
  (eval $ac_compile) 2>conftest.er1
 
4332
  ac_status=$?
 
4333
  grep -v '^ *+' conftest.er1 >conftest.err
 
4334
  rm -f conftest.er1
 
4335
  cat conftest.err >&5
 
4336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4337
  (exit $ac_status); } &&
 
4338
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4339
                         || test ! -s conftest.err'
 
4340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4341
  (eval $ac_try) 2>&5
 
4342
  ac_status=$?
 
4343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4344
  (exit $ac_status); }; } &&
 
4345
         { ac_try='test -s conftest.$ac_objext'
 
4346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4347
  (eval $ac_try) 2>&5
 
4348
  ac_status=$?
 
4349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4350
  (exit $ac_status); }; }; then
 
4351
  ac_cv_prog_cxx_g=yes
 
4352
else
 
4353
  echo "$as_me: failed program was:" >&5
 
4354
sed 's/^/| /' conftest.$ac_ext >&5
 
4355
 
 
4356
ac_cv_prog_cxx_g=no
 
4357
fi
 
4358
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4359
fi
 
4360
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4361
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4362
if test "$ac_test_CXXFLAGS" = set; then
 
4363
  CXXFLAGS=$ac_save_CXXFLAGS
 
4364
elif test $ac_cv_prog_cxx_g = yes; then
 
4365
  if test "$GXX" = yes; then
 
4366
    CXXFLAGS="-g -O2"
 
4367
  else
 
4368
    CXXFLAGS="-g"
 
4369
  fi
 
4370
else
 
4371
  if test "$GXX" = yes; then
 
4372
    CXXFLAGS="-O2"
 
4373
  else
 
4374
    CXXFLAGS=
 
4375
  fi
 
4376
fi
 
4377
for ac_declaration in \
 
4378
   '' \
 
4379
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4380
   'extern "C" void std::exit (int); using std::exit;' \
 
4381
   'extern "C" void exit (int) throw ();' \
 
4382
   'extern "C" void exit (int);' \
 
4383
   'void exit (int);'
 
4384
do
 
4385
  cat >conftest.$ac_ext <<_ACEOF
 
4386
/* confdefs.h.  */
 
4387
_ACEOF
 
4388
cat confdefs.h >>conftest.$ac_ext
 
4389
cat >>conftest.$ac_ext <<_ACEOF
 
4390
/* end confdefs.h.  */
 
4391
$ac_declaration
 
4392
#include <stdlib.h>
 
4393
int
 
4394
main ()
 
4395
{
 
4396
exit (42);
 
4397
  ;
 
4398
  return 0;
 
4399
}
 
4400
_ACEOF
 
4401
rm -f conftest.$ac_objext
 
4402
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4403
  (eval $ac_compile) 2>conftest.er1
 
4404
  ac_status=$?
 
4405
  grep -v '^ *+' conftest.er1 >conftest.err
 
4406
  rm -f conftest.er1
 
4407
  cat conftest.err >&5
 
4408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4409
  (exit $ac_status); } &&
 
4410
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4411
                         || test ! -s conftest.err'
 
4412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4413
  (eval $ac_try) 2>&5
 
4414
  ac_status=$?
 
4415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4416
  (exit $ac_status); }; } &&
 
4417
         { ac_try='test -s conftest.$ac_objext'
 
4418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4419
  (eval $ac_try) 2>&5
 
4420
  ac_status=$?
 
4421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4422
  (exit $ac_status); }; }; then
 
4423
  :
 
4424
else
 
4425
  echo "$as_me: failed program was:" >&5
 
4426
sed 's/^/| /' conftest.$ac_ext >&5
 
4427
 
 
4428
continue
 
4429
fi
 
4430
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4431
  cat >conftest.$ac_ext <<_ACEOF
 
4432
/* confdefs.h.  */
 
4433
_ACEOF
 
4434
cat confdefs.h >>conftest.$ac_ext
 
4435
cat >>conftest.$ac_ext <<_ACEOF
 
4436
/* end confdefs.h.  */
 
4437
$ac_declaration
 
4438
int
 
4439
main ()
 
4440
{
 
4441
exit (42);
 
4442
  ;
 
4443
  return 0;
 
4444
}
 
4445
_ACEOF
 
4446
rm -f conftest.$ac_objext
 
4447
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4448
  (eval $ac_compile) 2>conftest.er1
 
4449
  ac_status=$?
 
4450
  grep -v '^ *+' conftest.er1 >conftest.err
 
4451
  rm -f conftest.er1
 
4452
  cat conftest.err >&5
 
4453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4454
  (exit $ac_status); } &&
 
4455
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4456
                         || test ! -s conftest.err'
 
4457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4458
  (eval $ac_try) 2>&5
 
4459
  ac_status=$?
 
4460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4461
  (exit $ac_status); }; } &&
 
4462
         { ac_try='test -s conftest.$ac_objext'
 
4463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4464
  (eval $ac_try) 2>&5
 
4465
  ac_status=$?
 
4466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4467
  (exit $ac_status); }; }; then
 
4468
  break
 
4469
else
 
4470
  echo "$as_me: failed program was:" >&5
 
4471
sed 's/^/| /' conftest.$ac_ext >&5
 
4472
 
 
4473
fi
 
4474
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4475
done
 
4476
rm -f conftest*
 
4477
if test -n "$ac_declaration"; then
 
4478
  echo '#ifdef __cplusplus' >>confdefs.h
 
4479
  echo $ac_declaration      >>confdefs.h
 
4480
  echo '#endif'             >>confdefs.h
 
4481
fi
 
4482
 
 
4483
ac_ext=cc
 
4484
ac_cpp='$CXXCPP $CPPFLAGS'
 
4485
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4486
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4487
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4488
 
 
4489
 
 
4490
 
 
4491
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
4492
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
4493
    (test "X$CXX" != "Xg++"))) ; then
 
4494
  ac_ext=cc
 
4495
ac_cpp='$CXXCPP $CPPFLAGS'
 
4496
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4497
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4498
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4499
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4500
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4501
if test -z "$CXXCPP"; then
 
4502
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4503
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4504
else
 
4505
      # Double quotes because CXXCPP needs to be expanded
 
4506
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4507
    do
 
4508
      ac_preproc_ok=false
 
4509
for ac_cxx_preproc_warn_flag in '' yes
 
4510
do
 
4511
  # Use a header file that comes with gcc, so configuring glibc
 
4512
  # with a fresh cross-compiler works.
 
4513
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4514
  # <limits.h> exists even on freestanding compilers.
 
4515
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4516
  # not just through cpp. "Syntax error" is here to catch this case.
 
4517
  cat >conftest.$ac_ext <<_ACEOF
 
4518
/* confdefs.h.  */
 
4519
_ACEOF
 
4520
cat confdefs.h >>conftest.$ac_ext
 
4521
cat >>conftest.$ac_ext <<_ACEOF
 
4522
/* end confdefs.h.  */
 
4523
#ifdef __STDC__
 
4524
# include <limits.h>
 
4525
#else
 
4526
# include <assert.h>
 
4527
#endif
 
4528
                     Syntax error
 
4529
_ACEOF
 
4530
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4531
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4532
  ac_status=$?
 
4533
  grep -v '^ *+' conftest.er1 >conftest.err
 
4534
  rm -f conftest.er1
 
4535
  cat conftest.err >&5
 
4536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4537
  (exit $ac_status); } >/dev/null; then
 
4538
  if test -s conftest.err; then
 
4539
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4540
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4541
  else
 
4542
    ac_cpp_err=
 
4543
  fi
 
4544
else
 
4545
  ac_cpp_err=yes
 
4546
fi
 
4547
if test -z "$ac_cpp_err"; then
 
4548
  :
 
4549
else
 
4550
  echo "$as_me: failed program was:" >&5
 
4551
sed 's/^/| /' conftest.$ac_ext >&5
 
4552
 
 
4553
  # Broken: fails on valid input.
 
4554
continue
 
4555
fi
 
4556
rm -f conftest.err conftest.$ac_ext
 
4557
 
 
4558
  # OK, works on sane cases.  Now check whether non-existent headers
 
4559
  # can be detected and how.
 
4560
  cat >conftest.$ac_ext <<_ACEOF
 
4561
/* confdefs.h.  */
 
4562
_ACEOF
 
4563
cat confdefs.h >>conftest.$ac_ext
 
4564
cat >>conftest.$ac_ext <<_ACEOF
 
4565
/* end confdefs.h.  */
 
4566
#include <ac_nonexistent.h>
 
4567
_ACEOF
 
4568
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4569
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4570
  ac_status=$?
 
4571
  grep -v '^ *+' conftest.er1 >conftest.err
 
4572
  rm -f conftest.er1
 
4573
  cat conftest.err >&5
 
4574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4575
  (exit $ac_status); } >/dev/null; then
 
4576
  if test -s conftest.err; then
 
4577
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4578
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4579
  else
 
4580
    ac_cpp_err=
 
4581
  fi
 
4582
else
 
4583
  ac_cpp_err=yes
 
4584
fi
 
4585
if test -z "$ac_cpp_err"; then
 
4586
  # Broken: success on invalid input.
 
4587
continue
 
4588
else
 
4589
  echo "$as_me: failed program was:" >&5
 
4590
sed 's/^/| /' conftest.$ac_ext >&5
 
4591
 
 
4592
  # Passes both tests.
 
4593
ac_preproc_ok=:
 
4594
break
 
4595
fi
 
4596
rm -f conftest.err conftest.$ac_ext
 
4597
 
 
4598
done
 
4599
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4600
rm -f conftest.err conftest.$ac_ext
 
4601
if $ac_preproc_ok; then
 
4602
  break
 
4603
fi
 
4604
 
 
4605
    done
 
4606
    ac_cv_prog_CXXCPP=$CXXCPP
 
4607
 
 
4608
fi
 
4609
  CXXCPP=$ac_cv_prog_CXXCPP
 
4610
else
 
4611
  ac_cv_prog_CXXCPP=$CXXCPP
 
4612
fi
 
4613
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
4614
echo "${ECHO_T}$CXXCPP" >&6
 
4615
ac_preproc_ok=false
 
4616
for ac_cxx_preproc_warn_flag in '' yes
 
4617
do
 
4618
  # Use a header file that comes with gcc, so configuring glibc
 
4619
  # with a fresh cross-compiler works.
 
4620
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4621
  # <limits.h> exists even on freestanding compilers.
 
4622
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4623
  # not just through cpp. "Syntax error" is here to catch this case.
 
4624
  cat >conftest.$ac_ext <<_ACEOF
 
4625
/* confdefs.h.  */
 
4626
_ACEOF
 
4627
cat confdefs.h >>conftest.$ac_ext
 
4628
cat >>conftest.$ac_ext <<_ACEOF
 
4629
/* end confdefs.h.  */
 
4630
#ifdef __STDC__
 
4631
# include <limits.h>
 
4632
#else
 
4633
# include <assert.h>
 
4634
#endif
 
4635
                     Syntax error
 
4636
_ACEOF
 
4637
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4638
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4639
  ac_status=$?
 
4640
  grep -v '^ *+' conftest.er1 >conftest.err
 
4641
  rm -f conftest.er1
 
4642
  cat conftest.err >&5
 
4643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4644
  (exit $ac_status); } >/dev/null; then
 
4645
  if test -s conftest.err; then
 
4646
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4647
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4648
  else
 
4649
    ac_cpp_err=
 
4650
  fi
 
4651
else
 
4652
  ac_cpp_err=yes
 
4653
fi
 
4654
if test -z "$ac_cpp_err"; then
 
4655
  :
 
4656
else
 
4657
  echo "$as_me: failed program was:" >&5
 
4658
sed 's/^/| /' conftest.$ac_ext >&5
 
4659
 
 
4660
  # Broken: fails on valid input.
 
4661
continue
 
4662
fi
 
4663
rm -f conftest.err conftest.$ac_ext
 
4664
 
 
4665
  # OK, works on sane cases.  Now check whether non-existent headers
 
4666
  # can be detected and how.
 
4667
  cat >conftest.$ac_ext <<_ACEOF
 
4668
/* confdefs.h.  */
 
4669
_ACEOF
 
4670
cat confdefs.h >>conftest.$ac_ext
 
4671
cat >>conftest.$ac_ext <<_ACEOF
 
4672
/* end confdefs.h.  */
 
4673
#include <ac_nonexistent.h>
 
4674
_ACEOF
 
4675
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4676
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4677
  ac_status=$?
 
4678
  grep -v '^ *+' conftest.er1 >conftest.err
 
4679
  rm -f conftest.er1
 
4680
  cat conftest.err >&5
 
4681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4682
  (exit $ac_status); } >/dev/null; then
 
4683
  if test -s conftest.err; then
 
4684
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4685
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4686
  else
 
4687
    ac_cpp_err=
 
4688
  fi
 
4689
else
 
4690
  ac_cpp_err=yes
 
4691
fi
 
4692
if test -z "$ac_cpp_err"; then
 
4693
  # Broken: success on invalid input.
 
4694
continue
 
4695
else
 
4696
  echo "$as_me: failed program was:" >&5
 
4697
sed 's/^/| /' conftest.$ac_ext >&5
 
4698
 
 
4699
  # Passes both tests.
 
4700
ac_preproc_ok=:
 
4701
break
 
4702
fi
 
4703
rm -f conftest.err conftest.$ac_ext
 
4704
 
 
4705
done
 
4706
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4707
rm -f conftest.err conftest.$ac_ext
 
4708
if $ac_preproc_ok; then
 
4709
  :
 
4710
else
 
4711
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4712
See \`config.log' for more details." >&5
 
4713
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4714
See \`config.log' for more details." >&2;}
 
4715
   { (exit 1); exit 1; }; }
 
4716
fi
 
4717
 
 
4718
ac_ext=cc
 
4719
ac_cpp='$CXXCPP $CPPFLAGS'
 
4720
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4721
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4722
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4723
 
 
4724
fi
 
4725
 
 
4726
 
 
4727
ac_ext=f
 
4728
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
4729
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4730
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
4731
if test -n "$ac_tool_prefix"; then
 
4732
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
4733
  do
 
4734
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4735
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4736
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4737
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4738
if test "${ac_cv_prog_F77+set}" = set; then
 
4739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4740
else
 
4741
  if test -n "$F77"; then
 
4742
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
4743
else
 
4744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4745
for as_dir in $PATH
 
4746
do
 
4747
  IFS=$as_save_IFS
 
4748
  test -z "$as_dir" && as_dir=.
 
4749
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4750
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4751
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
4752
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4753
    break 2
 
4754
  fi
 
4755
done
 
4756
done
 
4757
 
 
4758
fi
 
4759
fi
 
4760
F77=$ac_cv_prog_F77
 
4761
if test -n "$F77"; then
 
4762
  echo "$as_me:$LINENO: result: $F77" >&5
 
4763
echo "${ECHO_T}$F77" >&6
 
4764
else
 
4765
  echo "$as_me:$LINENO: result: no" >&5
 
4766
echo "${ECHO_T}no" >&6
 
4767
fi
 
4768
 
 
4769
    test -n "$F77" && break
 
4770
  done
 
4771
fi
 
4772
if test -z "$F77"; then
 
4773
  ac_ct_F77=$F77
 
4774
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
4775
do
 
4776
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4777
set dummy $ac_prog; ac_word=$2
 
4778
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4779
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4780
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
4781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4782
else
 
4783
  if test -n "$ac_ct_F77"; then
 
4784
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
4785
else
 
4786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4787
for as_dir in $PATH
 
4788
do
 
4789
  IFS=$as_save_IFS
 
4790
  test -z "$as_dir" && as_dir=.
 
4791
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4792
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4793
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
4794
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4795
    break 2
 
4796
  fi
 
4797
done
 
4798
done
 
4799
 
 
4800
fi
 
4801
fi
 
4802
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
4803
if test -n "$ac_ct_F77"; then
 
4804
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
4805
echo "${ECHO_T}$ac_ct_F77" >&6
 
4806
else
 
4807
  echo "$as_me:$LINENO: result: no" >&5
 
4808
echo "${ECHO_T}no" >&6
 
4809
fi
 
4810
 
 
4811
  test -n "$ac_ct_F77" && break
 
4812
done
 
4813
 
 
4814
  F77=$ac_ct_F77
 
4815
fi
 
4816
 
 
4817
 
 
4818
# Provide some information about the compiler.
 
4819
echo "$as_me:4819:" \
 
4820
     "checking for Fortran 77 compiler version" >&5
 
4821
ac_compiler=`set X $ac_compile; echo $2`
 
4822
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4823
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4824
  ac_status=$?
 
4825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4826
  (exit $ac_status); }
 
4827
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4828
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4829
  ac_status=$?
 
4830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4831
  (exit $ac_status); }
 
4832
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4833
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4834
  ac_status=$?
 
4835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4836
  (exit $ac_status); }
 
4837
rm -f a.out
 
4838
 
 
4839
# If we don't use `.F' as extension, the preprocessor is not run on the
 
4840
# input file.  (Note that this only needs to work for GNU compilers.)
 
4841
ac_save_ext=$ac_ext
 
4842
ac_ext=F
 
4843
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
4844
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
4845
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
4846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4847
else
 
4848
  cat >conftest.$ac_ext <<_ACEOF
 
4849
      program main
 
4850
#ifndef __GNUC__
 
4851
       choke me
 
4852
#endif
 
4853
 
 
4854
      end
 
4855
_ACEOF
 
4856
rm -f conftest.$ac_objext
 
4857
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4858
  (eval $ac_compile) 2>conftest.er1
 
4859
  ac_status=$?
 
4860
  grep -v '^ *+' conftest.er1 >conftest.err
 
4861
  rm -f conftest.er1
 
4862
  cat conftest.err >&5
 
4863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4864
  (exit $ac_status); } &&
 
4865
         { ac_try='test -z "$ac_f77_werror_flag"
 
4866
                         || test ! -s conftest.err'
 
4867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4868
  (eval $ac_try) 2>&5
 
4869
  ac_status=$?
 
4870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4871
  (exit $ac_status); }; } &&
 
4872
         { ac_try='test -s conftest.$ac_objext'
 
4873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4874
  (eval $ac_try) 2>&5
 
4875
  ac_status=$?
 
4876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4877
  (exit $ac_status); }; }; then
 
4878
  ac_compiler_gnu=yes
 
4879
else
 
4880
  echo "$as_me: failed program was:" >&5
 
4881
sed 's/^/| /' conftest.$ac_ext >&5
 
4882
 
 
4883
ac_compiler_gnu=no
 
4884
fi
 
4885
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4886
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
4887
 
 
4888
fi
 
4889
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
4890
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
4891
ac_ext=$ac_save_ext
 
4892
ac_test_FFLAGS=${FFLAGS+set}
 
4893
ac_save_FFLAGS=$FFLAGS
 
4894
FFLAGS=
 
4895
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
4896
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
4897
if test "${ac_cv_prog_f77_g+set}" = set; then
 
4898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4899
else
 
4900
  FFLAGS=-g
 
4901
cat >conftest.$ac_ext <<_ACEOF
 
4902
      program main
 
4903
 
 
4904
      end
 
4905
_ACEOF
 
4906
rm -f conftest.$ac_objext
 
4907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4908
  (eval $ac_compile) 2>conftest.er1
 
4909
  ac_status=$?
 
4910
  grep -v '^ *+' conftest.er1 >conftest.err
 
4911
  rm -f conftest.er1
 
4912
  cat conftest.err >&5
 
4913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4914
  (exit $ac_status); } &&
 
4915
         { ac_try='test -z "$ac_f77_werror_flag"
 
4916
                         || test ! -s conftest.err'
 
4917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4918
  (eval $ac_try) 2>&5
 
4919
  ac_status=$?
 
4920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4921
  (exit $ac_status); }; } &&
 
4922
         { ac_try='test -s conftest.$ac_objext'
 
4923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4924
  (eval $ac_try) 2>&5
 
4925
  ac_status=$?
 
4926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4927
  (exit $ac_status); }; }; then
 
4928
  ac_cv_prog_f77_g=yes
 
4929
else
 
4930
  echo "$as_me: failed program was:" >&5
 
4931
sed 's/^/| /' conftest.$ac_ext >&5
 
4932
 
 
4933
ac_cv_prog_f77_g=no
 
4934
fi
 
4935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4936
 
 
4937
fi
 
4938
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
4939
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
4940
if test "$ac_test_FFLAGS" = set; then
 
4941
  FFLAGS=$ac_save_FFLAGS
 
4942
elif test $ac_cv_prog_f77_g = yes; then
 
4943
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
4944
    FFLAGS="-g -O2"
 
4945
  else
 
4946
    FFLAGS="-g"
 
4947
  fi
 
4948
else
 
4949
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
4950
    FFLAGS="-O2"
 
4951
  else
 
4952
    FFLAGS=
 
4953
  fi
 
4954
fi
 
4955
 
 
4956
G77=`test $ac_compiler_gnu = yes && echo yes`
 
4957
ac_ext=c
 
4958
ac_cpp='$CPP $CPPFLAGS'
 
4959
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4960
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4961
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4962
 
 
4963
 
 
4964
 
 
4965
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
4966
 
 
4967
# find the maximum length of command line arguments
 
4968
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4969
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
4970
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4972
else
 
4973
    i=0
 
4974
  teststring="ABCD"
 
4975
 
 
4976
  case $build_os in
 
4977
  msdosdjgpp*)
 
4978
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4979
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4980
    # during glob expansion).  Even if it were fixed, the result of this
 
4981
    # check would be larger than it should be.
 
4982
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4983
    ;;
 
4984
 
 
4985
  gnu*)
 
4986
    # Under GNU Hurd, this test is not required because there is
 
4987
    # no limit to the length of command line arguments.
 
4988
    # Libtool will interpret -1 as no limit whatsoever
 
4989
    lt_cv_sys_max_cmd_len=-1;
 
4990
    ;;
 
4991
 
 
4992
  cygwin* | mingw*)
 
4993
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4994
    # about 5 minutes as the teststring grows exponentially.
 
4995
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4996
    # you end up with a "frozen" computer, even though with patience
 
4997
    # the test eventually succeeds (with a max line length of 256k).
 
4998
    # Instead, let's just punt: use the minimum linelength reported by
 
4999
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5000
    lt_cv_sys_max_cmd_len=8192;
 
5001
    ;;
 
5002
 
 
5003
  amigaos*)
 
5004
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5005
    # So we just punt and use a minimum line length of 8192.
 
5006
    lt_cv_sys_max_cmd_len=8192;
 
5007
    ;;
 
5008
 
 
5009
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5010
    # This has been around since 386BSD, at least.  Likely further.
 
5011
    if test -x /sbin/sysctl; then
 
5012
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5013
    elif test -x /usr/sbin/sysctl; then
 
5014
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5015
    else
 
5016
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5017
    fi
 
5018
    # And add a safety zone
 
5019
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5020
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5021
    ;;
 
5022
  osf*)
 
5023
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5024
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5025
    # nice to cause kernel panics so lets avoid the loop below.
 
5026
    # First set a reasonable default.
 
5027
    lt_cv_sys_max_cmd_len=16384
 
5028
    #
 
5029
    if test -x /sbin/sysconfig; then
 
5030
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5031
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5032
      esac
 
5033
    fi
 
5034
    ;;
 
5035
  *)
 
5036
    # If test is not a shell built-in, we'll probably end up computing a
 
5037
    # maximum length that is only half of the actual maximum length, but
 
5038
    # we can't tell.
 
5039
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5040
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5041
               = "XX$teststring") >/dev/null 2>&1 &&
 
5042
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5043
            lt_cv_sys_max_cmd_len=$new_result &&
 
5044
            test $i != 17 # 1/2 MB should be enough
 
5045
    do
 
5046
      i=`expr $i + 1`
 
5047
      teststring=$teststring$teststring
 
5048
    done
 
5049
    teststring=
 
5050
    # Add a significant safety factor because C++ compilers can tack on massive
 
5051
    # amounts of additional arguments before passing them to the linker.
 
5052
    # It appears as though 1/2 is a usable value.
 
5053
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5054
    ;;
 
5055
  esac
 
5056
 
 
5057
fi
 
5058
 
 
5059
if test -n $lt_cv_sys_max_cmd_len ; then
 
5060
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5061
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5062
else
 
5063
  echo "$as_me:$LINENO: result: none" >&5
 
5064
echo "${ECHO_T}none" >&6
 
5065
fi
 
5066
 
 
5067
 
 
5068
 
 
5069
 
 
5070
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5071
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5072
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5073
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5074
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5075
else
 
5076
 
 
5077
# These are sane defaults that work on at least a few old systems.
 
5078
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5079
 
 
5080
# Character class describing NM global symbol codes.
 
5081
symcode='[BCDEGRST]'
 
5082
 
 
5083
# Regexp to match symbols that can be accessed directly from C.
 
5084
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5085
 
 
5086
# Transform an extracted symbol line into a proper C declaration
 
5087
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5088
 
 
5089
# Transform an extracted symbol line into symbol name and symbol address
 
5090
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'"
 
5091
 
 
5092
# Define system-specific variables.
 
5093
case $host_os in
 
5094
aix*)
 
5095
  symcode='[BCDT]'
 
5096
  ;;
 
5097
cygwin* | mingw* | pw32*)
 
5098
  symcode='[ABCDGISTW]'
 
5099
  ;;
 
5100
hpux*) # Its linker distinguishes data from code symbols
 
5101
  if test "$host_cpu" = ia64; then
 
5102
    symcode='[ABCDEGRST]'
 
5103
  fi
 
5104
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5105
  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'"
 
5106
  ;;
 
5107
linux*)
 
5108
  if test "$host_cpu" = ia64; then
 
5109
    symcode='[ABCDGIRSTW]'
 
5110
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5111
    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'"
 
5112
  fi
 
5113
  ;;
 
5114
irix* | nonstopux*)
 
5115
  symcode='[BCDEGRST]'
 
5116
  ;;
 
5117
osf*)
 
5118
  symcode='[BCDEGQRST]'
 
5119
  ;;
 
5120
solaris* | sysv5*)
 
5121
  symcode='[BDRT]'
 
5122
  ;;
 
5123
sysv4)
 
5124
  symcode='[DFNSTU]'
 
5125
  ;;
 
5126
esac
 
5127
 
 
5128
# Handle CRLF in mingw tool chain
 
5129
opt_cr=
 
5130
case $build_os in
 
5131
mingw*)
 
5132
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5133
  ;;
 
5134
esac
 
5135
 
 
5136
# If we're using GNU nm, then use its standard symbol codes.
 
5137
case `$NM -V 2>&1` in
 
5138
*GNU* | *'with BFD'*)
 
5139
  symcode='[ABCDGIRSTW]' ;;
 
5140
esac
 
5141
 
 
5142
# Try without a prefix undercore, then with it.
 
5143
for ac_symprfx in "" "_"; do
 
5144
 
 
5145
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5146
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5147
 
 
5148
  # Write the raw and C identifiers.
 
5149
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5150
 
 
5151
  # Check to see that the pipe works correctly.
 
5152
  pipe_works=no
 
5153
 
 
5154
  rm -f conftest*
 
5155
  cat > conftest.$ac_ext <<EOF
 
5156
#ifdef __cplusplus
 
5157
extern "C" {
 
5158
#endif
 
5159
char nm_test_var;
 
5160
void nm_test_func(){}
 
5161
#ifdef __cplusplus
 
5162
}
 
5163
#endif
 
5164
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5165
EOF
 
5166
 
 
5167
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5168
  (eval $ac_compile) 2>&5
 
5169
  ac_status=$?
 
5170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5171
  (exit $ac_status); }; then
 
5172
    # Now try to grab the symbols.
 
5173
    nlist=conftest.nm
 
5174
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5175
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5176
  ac_status=$?
 
5177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5178
  (exit $ac_status); } && test -s "$nlist"; then
 
5179
      # Try sorting and uniquifying the output.
 
5180
      if sort "$nlist" | uniq > "$nlist"T; then
 
5181
        mv -f "$nlist"T "$nlist"
 
5182
      else
 
5183
        rm -f "$nlist"T
 
5184
      fi
 
5185
 
 
5186
      # Make sure that we snagged all the symbols we need.
 
5187
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5188
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5189
          cat <<EOF > conftest.$ac_ext
 
5190
#ifdef __cplusplus
 
5191
extern "C" {
 
5192
#endif
 
5193
 
 
5194
EOF
 
5195
          # Now generate the symbol file.
 
5196
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5197
 
 
5198
          cat <<EOF >> conftest.$ac_ext
 
5199
#if defined (__STDC__) && __STDC__
 
5200
# define lt_ptr_t void *
 
5201
#else
 
5202
# define lt_ptr_t char *
 
5203
# define const
 
5204
#endif
 
5205
 
 
5206
/* The mapping between symbol names and symbols. */
 
5207
const struct {
 
5208
  const char *name;
 
5209
  lt_ptr_t address;
 
5210
}
 
5211
lt_preloaded_symbols[] =
 
5212
{
 
5213
EOF
 
5214
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5215
          cat <<\EOF >> conftest.$ac_ext
 
5216
  {0, (lt_ptr_t) 0}
 
5217
};
 
5218
 
 
5219
#ifdef __cplusplus
 
5220
}
 
5221
#endif
 
5222
EOF
 
5223
          # Now try linking the two files.
 
5224
          mv conftest.$ac_objext conftstm.$ac_objext
 
5225
          lt_save_LIBS="$LIBS"
 
5226
          lt_save_CFLAGS="$CFLAGS"
 
5227
          LIBS="conftstm.$ac_objext"
 
5228
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5229
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5230
  (eval $ac_link) 2>&5
 
5231
  ac_status=$?
 
5232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5233
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5234
            pipe_works=yes
 
5235
          fi
 
5236
          LIBS="$lt_save_LIBS"
 
5237
          CFLAGS="$lt_save_CFLAGS"
 
5238
        else
 
5239
          echo "cannot find nm_test_func in $nlist" >&5
 
5240
        fi
 
5241
      else
 
5242
        echo "cannot find nm_test_var in $nlist" >&5
 
5243
      fi
 
5244
    else
 
5245
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5246
    fi
 
5247
  else
 
5248
    echo "$progname: failed program was:" >&5
 
5249
    cat conftest.$ac_ext >&5
 
5250
  fi
 
5251
  rm -f conftest* conftst*
 
5252
 
 
5253
  # Do not use the global_symbol_pipe unless it works.
 
5254
  if test "$pipe_works" = yes; then
 
5255
    break
 
5256
  else
 
5257
    lt_cv_sys_global_symbol_pipe=
 
5258
  fi
 
5259
done
 
5260
 
 
5261
fi
 
5262
 
 
5263
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5264
  lt_cv_sys_global_symbol_to_cdecl=
 
5265
fi
 
5266
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5267
  echo "$as_me:$LINENO: result: failed" >&5
 
5268
echo "${ECHO_T}failed" >&6
 
5269
else
 
5270
  echo "$as_me:$LINENO: result: ok" >&5
 
5271
echo "${ECHO_T}ok" >&6
 
5272
fi
 
5273
 
 
5274
echo "$as_me:$LINENO: checking for objdir" >&5
 
5275
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5276
if test "${lt_cv_objdir+set}" = set; then
 
5277
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5278
else
 
5279
  rm -f .libs 2>/dev/null
 
5280
mkdir .libs 2>/dev/null
 
5281
if test -d .libs; then
 
5282
  lt_cv_objdir=.libs
 
5283
else
 
5284
  # MS-DOS does not allow filenames that begin with a dot.
 
5285
  lt_cv_objdir=_libs
 
5286
fi
 
5287
rmdir .libs 2>/dev/null
 
5288
fi
 
5289
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5290
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5291
objdir=$lt_cv_objdir
 
5292
 
 
5293
 
 
5294
 
 
5295
 
 
5296
 
 
5297
case $host_os in
 
5298
aix3*)
 
5299
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5300
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5301
  # vanish in a puff of smoke.
 
5302
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5303
    COLLECT_NAMES=
 
5304
    export COLLECT_NAMES
 
5305
  fi
 
5306
  ;;
 
5307
esac
 
5308
 
 
5309
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5310
# metacharacters that are still active within double-quoted strings.
 
5311
Xsed='sed -e 1s/^X//'
 
5312
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5313
 
 
5314
# Same as above, but do not quote variable references.
 
5315
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5316
 
 
5317
# Sed substitution to delay expansion of an escaped shell variable in a
 
5318
# double_quote_subst'ed string.
 
5319
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5320
 
 
5321
# Sed substitution to avoid accidental globbing in evaled expressions
 
5322
no_glob_subst='s/\*/\\\*/g'
 
5323
 
 
5324
# Constants:
 
5325
rm="rm -f"
 
5326
 
 
5327
# Global variables:
 
5328
default_ofile=libtool
 
5329
can_build_shared=yes
 
5330
 
 
5331
# All known linkers require a `.a' archive for static linking (except MSVC,
 
5332
# which needs '.lib').
 
5333
libext=a
 
5334
ltmain="$ac_aux_dir/ltmain.sh"
 
5335
ofile="$default_ofile"
 
5336
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5337
 
 
5338
if test -n "$ac_tool_prefix"; then
 
5339
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5340
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5341
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5343
if test "${ac_cv_prog_AR+set}" = set; then
 
5344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5345
else
 
5346
  if test -n "$AR"; then
 
5347
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5348
else
 
5349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5350
for as_dir in $PATH
 
5351
do
 
5352
  IFS=$as_save_IFS
 
5353
  test -z "$as_dir" && as_dir=.
 
5354
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5355
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5356
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5357
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5358
    break 2
 
5359
  fi
 
5360
done
 
5361
done
 
5362
 
 
5363
fi
 
5364
fi
 
5365
AR=$ac_cv_prog_AR
 
5366
if test -n "$AR"; then
 
5367
  echo "$as_me:$LINENO: result: $AR" >&5
 
5368
echo "${ECHO_T}$AR" >&6
 
5369
else
 
5370
  echo "$as_me:$LINENO: result: no" >&5
 
5371
echo "${ECHO_T}no" >&6
 
5372
fi
 
5373
 
 
5374
fi
 
5375
if test -z "$ac_cv_prog_AR"; then
 
5376
  ac_ct_AR=$AR
 
5377
  # Extract the first word of "ar", so it can be a program name with args.
 
5378
set dummy ar; ac_word=$2
 
5379
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5380
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5381
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5383
else
 
5384
  if test -n "$ac_ct_AR"; then
 
5385
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5386
else
 
5387
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5388
for as_dir in $PATH
 
5389
do
 
5390
  IFS=$as_save_IFS
 
5391
  test -z "$as_dir" && as_dir=.
 
5392
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5393
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5394
    ac_cv_prog_ac_ct_AR="ar"
 
5395
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5396
    break 2
 
5397
  fi
 
5398
done
 
5399
done
 
5400
 
 
5401
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5402
fi
 
5403
fi
 
5404
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5405
if test -n "$ac_ct_AR"; then
 
5406
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5407
echo "${ECHO_T}$ac_ct_AR" >&6
 
5408
else
 
5409
  echo "$as_me:$LINENO: result: no" >&5
 
5410
echo "${ECHO_T}no" >&6
 
5411
fi
 
5412
 
 
5413
  AR=$ac_ct_AR
 
5414
else
 
5415
  AR="$ac_cv_prog_AR"
 
5416
fi
 
5417
 
 
5418
if test -n "$ac_tool_prefix"; then
 
5419
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5420
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5421
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5422
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5423
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5424
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5425
else
 
5426
  if test -n "$RANLIB"; then
 
5427
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5428
else
 
5429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5430
for as_dir in $PATH
 
5431
do
 
5432
  IFS=$as_save_IFS
 
5433
  test -z "$as_dir" && as_dir=.
 
5434
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5435
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5436
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5437
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5438
    break 2
 
5439
  fi
 
5440
done
 
5441
done
 
5442
 
 
5443
fi
 
5444
fi
 
5445
RANLIB=$ac_cv_prog_RANLIB
 
5446
if test -n "$RANLIB"; then
 
5447
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5448
echo "${ECHO_T}$RANLIB" >&6
 
5449
else
 
5450
  echo "$as_me:$LINENO: result: no" >&5
 
5451
echo "${ECHO_T}no" >&6
 
5452
fi
 
5453
 
 
5454
fi
 
5455
if test -z "$ac_cv_prog_RANLIB"; then
 
5456
  ac_ct_RANLIB=$RANLIB
 
5457
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5458
set dummy ranlib; ac_word=$2
 
5459
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5461
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5463
else
 
5464
  if test -n "$ac_ct_RANLIB"; then
 
5465
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5466
else
 
5467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5468
for as_dir in $PATH
 
5469
do
 
5470
  IFS=$as_save_IFS
 
5471
  test -z "$as_dir" && as_dir=.
 
5472
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5473
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5474
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5475
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5476
    break 2
 
5477
  fi
 
5478
done
 
5479
done
 
5480
 
 
5481
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5482
fi
 
5483
fi
 
5484
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5485
if test -n "$ac_ct_RANLIB"; then
 
5486
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5487
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5488
else
 
5489
  echo "$as_me:$LINENO: result: no" >&5
 
5490
echo "${ECHO_T}no" >&6
 
5491
fi
 
5492
 
 
5493
  RANLIB=$ac_ct_RANLIB
 
5494
else
 
5495
  RANLIB="$ac_cv_prog_RANLIB"
 
5496
fi
 
5497
 
 
5498
if test -n "$ac_tool_prefix"; then
 
5499
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5500
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5501
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5502
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5503
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5505
else
 
5506
  if test -n "$STRIP"; then
 
5507
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5508
else
 
5509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5510
for as_dir in $PATH
 
5511
do
 
5512
  IFS=$as_save_IFS
 
5513
  test -z "$as_dir" && as_dir=.
 
5514
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5515
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5516
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5517
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5518
    break 2
 
5519
  fi
 
5520
done
 
5521
done
 
5522
 
 
5523
fi
 
5524
fi
 
5525
STRIP=$ac_cv_prog_STRIP
 
5526
if test -n "$STRIP"; then
 
5527
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5528
echo "${ECHO_T}$STRIP" >&6
 
5529
else
 
5530
  echo "$as_me:$LINENO: result: no" >&5
 
5531
echo "${ECHO_T}no" >&6
 
5532
fi
 
5533
 
 
5534
fi
 
5535
if test -z "$ac_cv_prog_STRIP"; then
 
5536
  ac_ct_STRIP=$STRIP
 
5537
  # Extract the first word of "strip", so it can be a program name with args.
 
5538
set dummy strip; ac_word=$2
 
5539
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5540
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5541
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5543
else
 
5544
  if test -n "$ac_ct_STRIP"; then
 
5545
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5546
else
 
5547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5548
for as_dir in $PATH
 
5549
do
 
5550
  IFS=$as_save_IFS
 
5551
  test -z "$as_dir" && as_dir=.
 
5552
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5553
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5554
    ac_cv_prog_ac_ct_STRIP="strip"
 
5555
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5556
    break 2
 
5557
  fi
 
5558
done
 
5559
done
 
5560
 
 
5561
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5562
fi
 
5563
fi
 
5564
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5565
if test -n "$ac_ct_STRIP"; then
 
5566
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5567
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5568
else
 
5569
  echo "$as_me:$LINENO: result: no" >&5
 
5570
echo "${ECHO_T}no" >&6
 
5571
fi
 
5572
 
 
5573
  STRIP=$ac_ct_STRIP
 
5574
else
 
5575
  STRIP="$ac_cv_prog_STRIP"
 
5576
fi
 
5577
 
 
5578
 
 
5579
old_CC="$CC"
 
5580
old_CFLAGS="$CFLAGS"
 
5581
 
 
5582
# Set sane defaults for various variables
 
5583
test -z "$AR" && AR=ar
 
5584
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5585
test -z "$AS" && AS=as
 
5586
test -z "$CC" && CC=cc
 
5587
test -z "$LTCC" && LTCC=$CC
 
5588
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5589
test -z "$LD" && LD=ld
 
5590
test -z "$LN_S" && LN_S="ln -s"
 
5591
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
5592
test -z "$NM" && NM=nm
 
5593
test -z "$SED" && SED=sed
 
5594
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5595
test -z "$RANLIB" && RANLIB=:
 
5596
test -z "$STRIP" && STRIP=:
 
5597
test -z "$ac_objext" && ac_objext=o
 
5598
 
 
5599
# Determine commands to create old-style static archives.
 
5600
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
5601
old_postinstall_cmds='chmod 644 $oldlib'
 
5602
old_postuninstall_cmds=
 
5603
 
 
5604
if test -n "$RANLIB"; then
 
5605
  case $host_os in
 
5606
  openbsd*)
 
5607
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
5608
    ;;
 
5609
  *)
 
5610
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
5611
    ;;
 
5612
  esac
 
5613
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5614
fi
 
5615
 
 
5616
for cc_temp in $compiler""; do
 
5617
  case $cc_temp in
 
5618
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
5619
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
5620
    \-*) ;;
 
5621
    *) break;;
 
5622
  esac
 
5623
done
 
5624
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
5625
 
 
5626
 
 
5627
# Only perform the check for file, if the check method requires it
 
5628
case $deplibs_check_method in
 
5629
file_magic*)
 
5630
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5631
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5632
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5633
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5635
else
 
5636
  case $MAGIC_CMD in
 
5637
[\\/*] |  ?:[\\/]*)
 
5638
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5639
  ;;
 
5640
*)
 
5641
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5642
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5643
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5644
  for ac_dir in $ac_dummy; do
 
5645
    IFS="$lt_save_ifs"
 
5646
    test -z "$ac_dir" && ac_dir=.
 
5647
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
5648
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
5649
      if test -n "$file_magic_test_file"; then
 
5650
        case $deplibs_check_method in
 
5651
        "file_magic "*)
 
5652
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
5653
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5654
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5655
            $EGREP "$file_magic_regex" > /dev/null; then
 
5656
            :
 
5657
          else
 
5658
            cat <<EOF 1>&2
 
5659
 
 
5660
*** Warning: the command libtool uses to detect shared libraries,
 
5661
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5662
*** The result is that libtool may fail to recognize shared libraries
 
5663
*** as such.  This will affect the creation of libtool libraries that
 
5664
*** depend on shared libraries, but programs linked with such libtool
 
5665
*** libraries will work regardless of this problem.  Nevertheless, you
 
5666
*** may want to report the problem to your system manager and/or to
 
5667
*** bug-libtool@gnu.org
 
5668
 
 
5669
EOF
 
5670
          fi ;;
 
5671
        esac
 
5672
      fi
 
5673
      break
 
5674
    fi
 
5675
  done
 
5676
  IFS="$lt_save_ifs"
 
5677
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5678
  ;;
 
5679
esac
 
5680
fi
 
5681
 
 
5682
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5683
if test -n "$MAGIC_CMD"; then
 
5684
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5685
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5686
else
 
5687
  echo "$as_me:$LINENO: result: no" >&5
 
5688
echo "${ECHO_T}no" >&6
 
5689
fi
 
5690
 
 
5691
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
5692
  if test -n "$ac_tool_prefix"; then
 
5693
    echo "$as_me:$LINENO: checking for file" >&5
 
5694
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
5695
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5696
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5697
else
 
5698
  case $MAGIC_CMD in
 
5699
[\\/*] |  ?:[\\/]*)
 
5700
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5701
  ;;
 
5702
*)
 
5703
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5704
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5705
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5706
  for ac_dir in $ac_dummy; do
 
5707
    IFS="$lt_save_ifs"
 
5708
    test -z "$ac_dir" && ac_dir=.
 
5709
    if test -f $ac_dir/file; then
 
5710
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
5711
      if test -n "$file_magic_test_file"; then
 
5712
        case $deplibs_check_method in
 
5713
        "file_magic "*)
 
5714
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
5715
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5716
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5717
            $EGREP "$file_magic_regex" > /dev/null; then
 
5718
            :
 
5719
          else
 
5720
            cat <<EOF 1>&2
 
5721
 
 
5722
*** Warning: the command libtool uses to detect shared libraries,
 
5723
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5724
*** The result is that libtool may fail to recognize shared libraries
 
5725
*** as such.  This will affect the creation of libtool libraries that
 
5726
*** depend on shared libraries, but programs linked with such libtool
 
5727
*** libraries will work regardless of this problem.  Nevertheless, you
 
5728
*** may want to report the problem to your system manager and/or to
 
5729
*** bug-libtool@gnu.org
 
5730
 
 
5731
EOF
 
5732
          fi ;;
 
5733
        esac
 
5734
      fi
 
5735
      break
 
5736
    fi
 
5737
  done
 
5738
  IFS="$lt_save_ifs"
 
5739
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5740
  ;;
 
5741
esac
 
5742
fi
 
5743
 
 
5744
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5745
if test -n "$MAGIC_CMD"; then
 
5746
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5747
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5748
else
 
5749
  echo "$as_me:$LINENO: result: no" >&5
 
5750
echo "${ECHO_T}no" >&6
 
5751
fi
 
5752
 
 
5753
  else
 
5754
    MAGIC_CMD=:
 
5755
  fi
 
5756
fi
 
5757
 
 
5758
  fi
 
5759
  ;;
 
5760
esac
 
5761
 
 
5762
enable_dlopen=no
 
5763
enable_win32_dll=yes
 
5764
 
 
5765
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5766
if test "${enable_libtool_lock+set}" = set; then
 
5767
  enableval="$enable_libtool_lock"
 
5768
 
 
5769
fi;
 
5770
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5771
 
 
5772
 
 
5773
# Check whether --with-pic or --without-pic was given.
 
5774
if test "${with_pic+set}" = set; then
 
5775
  withval="$with_pic"
 
5776
  pic_mode="$withval"
 
5777
else
 
5778
  pic_mode=default
 
5779
fi;
 
5780
test -z "$pic_mode" && pic_mode=default
 
5781
 
 
5782
# Use C for the default configuration in the libtool script
 
5783
tagname=
 
5784
lt_save_CC="$CC"
 
5785
ac_ext=c
 
5786
ac_cpp='$CPP $CPPFLAGS'
 
5787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5790
 
 
5791
 
 
5792
# Source file extension for C test sources.
 
5793
ac_ext=c
 
5794
 
 
5795
# Object file extension for compiled C test sources.
 
5796
objext=o
 
5797
objext=$objext
 
5798
 
 
5799
# Code to be used in simple compile tests
 
5800
lt_simple_compile_test_code="int some_variable = 0;\n"
 
5801
 
 
5802
# Code to be used in simple link tests
 
5803
lt_simple_link_test_code='int main(){return(0);}\n'
 
5804
 
 
5805
 
 
5806
# If no C compiler was specified, use CC.
 
5807
LTCC=${LTCC-"$CC"}
 
5808
 
 
5809
# Allow CC to be a program name with arguments.
 
5810
compiler=$CC
 
5811
 
 
5812
 
 
5813
# save warnings/boilerplate of simple test code
 
5814
ac_outfile=conftest.$ac_objext
 
5815
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
5816
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
5817
_lt_compiler_boilerplate=`cat conftest.err`
 
5818
$rm conftest*
 
5819
 
 
5820
ac_outfile=conftest.$ac_objext
 
5821
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
5822
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
5823
_lt_linker_boilerplate=`cat conftest.err`
 
5824
$rm conftest*
 
5825
 
 
5826
 
 
5827
#
 
5828
# Check for any special shared library compilation flags.
 
5829
#
 
5830
lt_prog_cc_shlib=
 
5831
if test "$GCC" = no; then
 
5832
  case $host_os in
 
5833
  sco3.2v5*)
 
5834
    lt_prog_cc_shlib='-belf'
 
5835
    ;;
 
5836
  esac
 
5837
fi
 
5838
if test -n "$lt_prog_cc_shlib"; then
 
5839
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
5840
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
5841
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
5842
  else
 
5843
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5844
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5845
    lt_cv_prog_cc_can_build_shared=no
 
5846
  fi
 
5847
fi
 
5848
 
 
5849
 
 
5850
#
 
5851
# Check to make sure the static flag actually works.
 
5852
#
 
5853
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
5854
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
5855
if test "${lt_prog_compiler_static_works+set}" = set; then
 
5856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5857
else
 
5858
  lt_prog_compiler_static_works=no
 
5859
   save_LDFLAGS="$LDFLAGS"
 
5860
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
5861
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
5862
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
5863
     # The linker can only warn and ignore the option if not recognized
 
5864
     # So say no if there are warnings
 
5865
     if test -s conftest.err; then
 
5866
       # Append any errors to the config.log.
 
5867
       cat conftest.err 1>&5
 
5868
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
5869
       $SED '/^$/d' conftest.err >conftest.er2
 
5870
       if diff conftest.exp conftest.er2 >/dev/null; then
 
5871
         lt_prog_compiler_static_works=yes
 
5872
       fi
 
5873
     else
 
5874
       lt_prog_compiler_static_works=yes
 
5875
     fi
 
5876
   fi
 
5877
   $rm conftest*
 
5878
   LDFLAGS="$save_LDFLAGS"
 
5879
 
 
5880
fi
 
5881
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
5882
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
5883
 
 
5884
if test x"$lt_prog_compiler_static_works" = xyes; then
 
5885
    :
 
5886
else
 
5887
    lt_prog_compiler_static=
 
5888
fi
 
5889
 
 
5890
 
 
5891
 
 
5892
## CAVEAT EMPTOR:
 
5893
## There is no encapsulation within the following macros, do not change
 
5894
## the running order or otherwise move them around unless you know exactly
 
5895
## what you are doing...
 
5896
 
 
5897
lt_prog_compiler_no_builtin_flag=
 
5898
 
 
5899
if test "$GCC" = yes; then
 
5900
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
5901
 
 
5902
 
 
5903
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5904
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5905
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
5906
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5907
else
 
5908
  lt_cv_prog_compiler_rtti_exceptions=no
 
5909
  ac_outfile=conftest.$ac_objext
 
5910
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5911
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
5912
   # Insert the option either (1) after the last *FLAGS variable, or
 
5913
   # (2) before a word containing "conftest.", or (3) at the end.
 
5914
   # Note that $ac_compile itself does not contain backslashes and begins
 
5915
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5916
   # The option is referenced via a variable to avoid confusing sed.
 
5917
   lt_compile=`echo "$ac_compile" | $SED \
 
5918
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
5919
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5920
   -e 's:$: $lt_compiler_flag:'`
 
5921
   (eval echo "\"\$as_me:5921: $lt_compile\"" >&5)
 
5922
   (eval "$lt_compile" 2>conftest.err)
 
5923
   ac_status=$?
 
5924
   cat conftest.err >&5
 
5925
   echo "$as_me:5925: \$? = $ac_status" >&5
 
5926
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
5927
     # The compiler can only warn and ignore the option if not recognized
 
5928
     # So say no if there are warnings other than the usual output.
 
5929
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
5930
     $SED '/^$/d' conftest.err >conftest.er2
 
5931
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
5932
       lt_cv_prog_compiler_rtti_exceptions=yes
 
5933
     fi
 
5934
   fi
 
5935
   $rm conftest*
 
5936
 
 
5937
fi
 
5938
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
5939
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
5940
 
 
5941
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
5942
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
5943
else
 
5944
    :
 
5945
fi
 
5946
 
 
5947
fi
 
5948
 
 
5949
lt_prog_compiler_wl=
 
5950
lt_prog_compiler_pic=
 
5951
lt_prog_compiler_static=
 
5952
 
 
5953
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
5954
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
5955
 
 
5956
  if test "$GCC" = yes; then
 
5957
    lt_prog_compiler_wl='-Wl,'
 
5958
    lt_prog_compiler_static='-static'
 
5959
 
 
5960
    case $host_os in
 
5961
      aix*)
 
5962
      # All AIX code is PIC.
 
5963
      if test "$host_cpu" = ia64; then
 
5964
        # AIX 5 now supports IA64 processor
 
5965
        lt_prog_compiler_static='-Bstatic'
 
5966
      fi
 
5967
      ;;
 
5968
 
 
5969
    amigaos*)
 
5970
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5971
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5972
      # like `-m68040'.
 
5973
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
5974
      ;;
 
5975
 
 
5976
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5977
      # PIC is the default for these OSes.
 
5978
      ;;
 
5979
 
 
5980
    mingw* | pw32* | os2*)
 
5981
      # This hack is so that the source file can tell whether it is being
 
5982
      # built for inclusion in a dll (and should export symbols for example).
 
5983
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
5984
      ;;
 
5985
 
 
5986
    darwin* | rhapsody*)
 
5987
      # PIC is the default on this platform
 
5988
      # Common symbols not allowed in MH_DYLIB files
 
5989
      lt_prog_compiler_pic='-fno-common'
 
5990
      ;;
 
5991
 
 
5992
    msdosdjgpp*)
 
5993
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5994
      # on systems that don't support them.
 
5995
      lt_prog_compiler_can_build_shared=no
 
5996
      enable_shared=no
 
5997
      ;;
 
5998
 
 
5999
    sysv4*MP*)
 
6000
      if test -d /usr/nec; then
 
6001
        lt_prog_compiler_pic=-Kconform_pic
 
6002
      fi
 
6003
      ;;
 
6004
 
 
6005
    hpux*)
 
6006
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6007
      # not for PA HP-UX.
 
6008
      case $host_cpu in
 
6009
      hppa*64*|ia64*)
 
6010
        # +Z the default
 
6011
        ;;
 
6012
      *)
 
6013
        lt_prog_compiler_pic='-fPIC'
 
6014
        ;;
 
6015
      esac
 
6016
      ;;
 
6017
 
 
6018
    *)
 
6019
      lt_prog_compiler_pic='-fPIC'
 
6020
      ;;
 
6021
    esac
 
6022
  else
 
6023
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6024
    case $host_os in
 
6025
    aix*)
 
6026
      lt_prog_compiler_wl='-Wl,'
 
6027
      if test "$host_cpu" = ia64; then
 
6028
        # AIX 5 now supports IA64 processor
 
6029
        lt_prog_compiler_static='-Bstatic'
 
6030
      else
 
6031
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6032
      fi
 
6033
      ;;
 
6034
      darwin*)
 
6035
        # PIC is the default on this platform
 
6036
        # Common symbols not allowed in MH_DYLIB files
 
6037
       case $cc_basename in
 
6038
         xlc*)
 
6039
         lt_prog_compiler_pic='-qnocommon'
 
6040
         lt_prog_compiler_wl='-Wl,'
 
6041
         ;;
 
6042
       esac
 
6043
       ;;
 
6044
 
 
6045
    mingw* | pw32* | os2*)
 
6046
      # This hack is so that the source file can tell whether it is being
 
6047
      # built for inclusion in a dll (and should export symbols for example).
 
6048
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6049
      ;;
 
6050
 
 
6051
    hpux9* | hpux10* | hpux11*)
 
6052
      lt_prog_compiler_wl='-Wl,'
 
6053
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6054
      # not for PA HP-UX.
 
6055
      case $host_cpu in
 
6056
      hppa*64*|ia64*)
 
6057
        # +Z the default
 
6058
        ;;
 
6059
      *)
 
6060
        lt_prog_compiler_pic='+Z'
 
6061
        ;;
 
6062
      esac
 
6063
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6064
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6065
      ;;
 
6066
 
 
6067
    irix5* | irix6* | nonstopux*)
 
6068
      lt_prog_compiler_wl='-Wl,'
 
6069
      # PIC (with -KPIC) is the default.
 
6070
      lt_prog_compiler_static='-non_shared'
 
6071
      ;;
 
6072
 
 
6073
    newsos6)
 
6074
      lt_prog_compiler_pic='-KPIC'
 
6075
      lt_prog_compiler_static='-Bstatic'
 
6076
      ;;
 
6077
 
 
6078
    linux*)
 
6079
      case $cc_basename in
 
6080
      icc* | ecc*)
 
6081
        lt_prog_compiler_wl='-Wl,'
 
6082
        lt_prog_compiler_pic='-KPIC'
 
6083
        lt_prog_compiler_static='-static'
 
6084
        ;;
 
6085
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6086
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6087
        # which looks to be a dead project)
 
6088
        lt_prog_compiler_wl='-Wl,'
 
6089
        lt_prog_compiler_pic='-fpic'
 
6090
        lt_prog_compiler_static='-Bstatic'
 
6091
        ;;
 
6092
      ccc*)
 
6093
        lt_prog_compiler_wl='-Wl,'
 
6094
        # All Alpha code is PIC.
 
6095
        lt_prog_compiler_static='-non_shared'
 
6096
        ;;
 
6097
      esac
 
6098
      ;;
 
6099
 
 
6100
    osf3* | osf4* | osf5*)
 
6101
      lt_prog_compiler_wl='-Wl,'
 
6102
      # All OSF/1 code is PIC.
 
6103
      lt_prog_compiler_static='-non_shared'
 
6104
      ;;
 
6105
 
 
6106
    sco3.2v5*)
 
6107
      lt_prog_compiler_pic='-Kpic'
 
6108
      lt_prog_compiler_static='-dn'
 
6109
      ;;
 
6110
 
 
6111
    solaris*)
 
6112
      lt_prog_compiler_pic='-KPIC'
 
6113
      lt_prog_compiler_static='-Bstatic'
 
6114
      case $cc_basename in
 
6115
      f77* | f90* | f95*)
 
6116
        lt_prog_compiler_wl='-Qoption ld ';;
 
6117
      *)
 
6118
        lt_prog_compiler_wl='-Wl,';;
 
6119
      esac
 
6120
      ;;
 
6121
 
 
6122
    sunos4*)
 
6123
      lt_prog_compiler_wl='-Qoption ld '
 
6124
      lt_prog_compiler_pic='-PIC'
 
6125
      lt_prog_compiler_static='-Bstatic'
 
6126
      ;;
 
6127
 
 
6128
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6129
      lt_prog_compiler_wl='-Wl,'
 
6130
      lt_prog_compiler_pic='-KPIC'
 
6131
      lt_prog_compiler_static='-Bstatic'
 
6132
      ;;
 
6133
 
 
6134
    sysv4*MP*)
 
6135
      if test -d /usr/nec ;then
 
6136
        lt_prog_compiler_pic='-Kconform_pic'
 
6137
        lt_prog_compiler_static='-Bstatic'
 
6138
      fi
 
6139
      ;;
 
6140
 
 
6141
    unicos*)
 
6142
      lt_prog_compiler_wl='-Wl,'
 
6143
      lt_prog_compiler_can_build_shared=no
 
6144
      ;;
 
6145
 
 
6146
    uts4*)
 
6147
      lt_prog_compiler_pic='-pic'
 
6148
      lt_prog_compiler_static='-Bstatic'
 
6149
      ;;
 
6150
 
 
6151
    *)
 
6152
      lt_prog_compiler_can_build_shared=no
 
6153
      ;;
 
6154
    esac
 
6155
  fi
 
6156
 
 
6157
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6158
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6159
 
 
6160
#
 
6161
# Check to make sure the PIC flag actually works.
 
6162
#
 
6163
if test -n "$lt_prog_compiler_pic"; then
 
6164
 
 
6165
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6166
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6167
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6169
else
 
6170
  lt_prog_compiler_pic_works=no
 
6171
  ac_outfile=conftest.$ac_objext
 
6172
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6173
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6174
   # Insert the option either (1) after the last *FLAGS variable, or
 
6175
   # (2) before a word containing "conftest.", or (3) at the end.
 
6176
   # Note that $ac_compile itself does not contain backslashes and begins
 
6177
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6178
   # The option is referenced via a variable to avoid confusing sed.
 
6179
   lt_compile=`echo "$ac_compile" | $SED \
 
6180
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6181
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6182
   -e 's:$: $lt_compiler_flag:'`
 
6183
   (eval echo "\"\$as_me:6183: $lt_compile\"" >&5)
 
6184
   (eval "$lt_compile" 2>conftest.err)
 
6185
   ac_status=$?
 
6186
   cat conftest.err >&5
 
6187
   echo "$as_me:6187: \$? = $ac_status" >&5
 
6188
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6189
     # The compiler can only warn and ignore the option if not recognized
 
6190
     # So say no if there are warnings other than the usual output.
 
6191
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6192
     $SED '/^$/d' conftest.err >conftest.er2
 
6193
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6194
       lt_prog_compiler_pic_works=yes
 
6195
     fi
 
6196
   fi
 
6197
   $rm conftest*
 
6198
 
 
6199
fi
 
6200
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6201
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6202
 
 
6203
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6204
    case $lt_prog_compiler_pic in
 
6205
     "" | " "*) ;;
 
6206
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6207
     esac
 
6208
else
 
6209
    lt_prog_compiler_pic=
 
6210
     lt_prog_compiler_can_build_shared=no
 
6211
fi
 
6212
 
 
6213
fi
 
6214
case $host_os in
 
6215
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6216
  *djgpp*)
 
6217
    lt_prog_compiler_pic=
 
6218
    ;;
 
6219
  *)
 
6220
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6221
    ;;
 
6222
esac
 
6223
 
 
6224
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6225
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6226
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6227
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6228
else
 
6229
  lt_cv_prog_compiler_c_o=no
 
6230
   $rm -r conftest 2>/dev/null
 
6231
   mkdir conftest
 
6232
   cd conftest
 
6233
   mkdir out
 
6234
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6235
 
 
6236
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6237
   # Insert the option either (1) after the last *FLAGS variable, or
 
6238
   # (2) before a word containing "conftest.", or (3) at the end.
 
6239
   # Note that $ac_compile itself does not contain backslashes and begins
 
6240
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6241
   lt_compile=`echo "$ac_compile" | $SED \
 
6242
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6243
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6244
   -e 's:$: $lt_compiler_flag:'`
 
6245
   (eval echo "\"\$as_me:6245: $lt_compile\"" >&5)
 
6246
   (eval "$lt_compile" 2>out/conftest.err)
 
6247
   ac_status=$?
 
6248
   cat out/conftest.err >&5
 
6249
   echo "$as_me:6249: \$? = $ac_status" >&5
 
6250
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6251
   then
 
6252
     # The compiler can only warn and ignore the option if not recognized
 
6253
     # So say no if there are warnings
 
6254
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
6255
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
6256
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6257
       lt_cv_prog_compiler_c_o=yes
 
6258
     fi
 
6259
   fi
 
6260
   chmod u+w . 2>&5
 
6261
   $rm conftest*
 
6262
   # SGI C++ compiler will create directory out/ii_files/ for
 
6263
   # template instantiation
 
6264
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6265
   $rm out/* && rmdir out
 
6266
   cd ..
 
6267
   rmdir conftest
 
6268
   $rm conftest*
 
6269
 
 
6270
fi
 
6271
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6272
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6273
 
 
6274
 
 
6275
hard_links="nottested"
 
6276
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6277
  # do not overwrite the value of need_locks provided by the user
 
6278
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6279
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6280
  hard_links=yes
 
6281
  $rm conftest*
 
6282
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6283
  touch conftest.a
 
6284
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6285
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6286
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6287
echo "${ECHO_T}$hard_links" >&6
 
6288
  if test "$hard_links" = no; then
 
6289
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6290
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6291
    need_locks=warn
 
6292
  fi
 
6293
else
 
6294
  need_locks=no
 
6295
fi
 
6296
 
 
6297
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6298
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6299
 
 
6300
  runpath_var=
 
6301
  allow_undefined_flag=
 
6302
  enable_shared_with_static_runtimes=no
 
6303
  archive_cmds=
 
6304
  archive_expsym_cmds=
 
6305
  old_archive_From_new_cmds=
 
6306
  old_archive_from_expsyms_cmds=
 
6307
  export_dynamic_flag_spec=
 
6308
  whole_archive_flag_spec=
 
6309
  thread_safe_flag_spec=
 
6310
  hardcode_libdir_flag_spec=
 
6311
  hardcode_libdir_flag_spec_ld=
 
6312
  hardcode_libdir_separator=
 
6313
  hardcode_direct=no
 
6314
  hardcode_minus_L=no
 
6315
  hardcode_shlibpath_var=unsupported
 
6316
  link_all_deplibs=unknown
 
6317
  hardcode_automatic=no
 
6318
  module_cmds=
 
6319
  module_expsym_cmds=
 
6320
  always_export_symbols=no
 
6321
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6322
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6323
  # included in the symbol list
 
6324
  include_expsyms=
 
6325
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6326
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6327
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6328
  # as well as any symbol that contains `d'.
 
6329
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6330
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6331
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6332
  # the symbol is explicitly referenced.  Since portable code cannot
 
6333
  # rely on this symbol name, it's probably fine to never include it in
 
6334
  # preloaded symbol tables.
 
6335
  extract_expsyms_cmds=
 
6336
  # Just being paranoid about ensuring that cc_basename is set.
 
6337
  for cc_temp in $compiler""; do
 
6338
  case $cc_temp in
 
6339
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6340
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6341
    \-*) ;;
 
6342
    *) break;;
 
6343
  esac
 
6344
done
 
6345
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6346
 
 
6347
  case $host_os in
 
6348
  cygwin* | mingw* | pw32*)
 
6349
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6350
    # When not using gcc, we currently assume that we are using
 
6351
    # Microsoft Visual C++.
 
6352
    if test "$GCC" != yes; then
 
6353
      with_gnu_ld=no
 
6354
    fi
 
6355
    ;;
 
6356
  openbsd*)
 
6357
    with_gnu_ld=no
 
6358
    ;;
 
6359
  esac
 
6360
 
 
6361
  ld_shlibs=yes
 
6362
  if test "$with_gnu_ld" = yes; then
 
6363
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6364
    wlarc='${wl}'
 
6365
 
 
6366
    # Set some defaults for GNU ld with shared library support. These
 
6367
    # are reset later if shared libraries are not supported. Putting them
 
6368
    # here allows them to be overridden if necessary.
 
6369
    runpath_var=LD_RUN_PATH
 
6370
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6371
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6372
    # ancient GNU ld didn't support --whole-archive et. al.
 
6373
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6374
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6375
      else
 
6376
        whole_archive_flag_spec=
 
6377
    fi
 
6378
    supports_anon_versioning=no
 
6379
    case `$LD -v 2>/dev/null` in
 
6380
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6381
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6382
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6383
      *\ 2.11.*) ;; # other 2.11 versions
 
6384
      *) supports_anon_versioning=yes ;;
 
6385
    esac
 
6386
 
 
6387
    # See if GNU ld supports shared libraries.
 
6388
    case $host_os in
 
6389
    aix3* | aix4* | aix5*)
 
6390
      # On AIX/PPC, the GNU linker is very broken
 
6391
      if test "$host_cpu" != ia64; then
 
6392
        ld_shlibs=no
 
6393
        cat <<EOF 1>&2
 
6394
 
 
6395
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6396
*** to be unable to reliably create shared libraries on AIX.
 
6397
*** Therefore, libtool is disabling shared libraries support.  If you
 
6398
*** really care for shared libraries, you may want to modify your PATH
 
6399
*** so that a non-GNU linker is found, and then restart.
 
6400
 
 
6401
EOF
 
6402
      fi
 
6403
      ;;
 
6404
 
 
6405
    amigaos*)
 
6406
      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)'
 
6407
      hardcode_libdir_flag_spec='-L$libdir'
 
6408
      hardcode_minus_L=yes
 
6409
 
 
6410
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6411
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6412
      # to version 4, is to share data among multiple programs linked
 
6413
      # with the same dynamic library.  Since this doesn't match the
 
6414
      # behavior of shared libraries on other platforms, we can't use
 
6415
      # them.
 
6416
      ld_shlibs=no
 
6417
      ;;
 
6418
 
 
6419
    beos*)
 
6420
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6421
        allow_undefined_flag=unsupported
 
6422
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6423
        # support --undefined.  This deserves some investigation.  FIXME
 
6424
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6425
      else
 
6426
        ld_shlibs=no
 
6427
      fi
 
6428
      ;;
 
6429
 
 
6430
    cygwin* | mingw* | pw32*)
 
6431
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6432
      # as there is no search path for DLLs.
 
6433
      hardcode_libdir_flag_spec='-L$libdir'
 
6434
      allow_undefined_flag=unsupported
 
6435
      always_export_symbols=no
 
6436
      enable_shared_with_static_runtimes=yes
 
6437
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6438
 
 
6439
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6440
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6441
        # If the export-symbols file already is a .def file (1st line
 
6442
        # is EXPORTS), use it as is; otherwise, prepend...
 
6443
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6444
          cp $export_symbols $output_objdir/$soname.def;
 
6445
        else
 
6446
          echo EXPORTS > $output_objdir/$soname.def;
 
6447
          cat $export_symbols >> $output_objdir/$soname.def;
 
6448
        fi~
 
6449
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6450
      else
 
6451
        ld_shlibs=no
 
6452
      fi
 
6453
      ;;
 
6454
 
 
6455
    linux*)
 
6456
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6457
        tmp_addflag=
 
6458
        case $cc_basename,$host_cpu in
 
6459
        pgcc*)                          # Portland Group C compiler
 
6460
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6461
          tmp_addflag=' $pic_flag'
 
6462
          ;;
 
6463
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6464
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6465
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6466
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6467
          tmp_addflag=' -i_dynamic' ;;
 
6468
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6469
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6470
        ifc* | ifort*)                  # Intel Fortran compiler
 
6471
          tmp_addflag=' -nofor_main' ;;
 
6472
        esac
 
6473
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6474
 
 
6475
        if test $supports_anon_versioning = yes; then
 
6476
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6477
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6478
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6479
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6480
        fi
 
6481
      else
 
6482
        ld_shlibs=no
 
6483
      fi
 
6484
      ;;
 
6485
 
 
6486
    netbsd*)
 
6487
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6488
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6489
        wlarc=
 
6490
      else
 
6491
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6492
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6493
      fi
 
6494
      ;;
 
6495
 
 
6496
    solaris* | sysv5*)
 
6497
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6498
        ld_shlibs=no
 
6499
        cat <<EOF 1>&2
 
6500
 
 
6501
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6502
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6503
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6504
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6505
*** your PATH or compiler configuration so that the native linker is
 
6506
*** used, and then restart.
 
6507
 
 
6508
EOF
 
6509
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6510
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6511
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6512
      else
 
6513
        ld_shlibs=no
 
6514
      fi
 
6515
      ;;
 
6516
 
 
6517
    sunos4*)
 
6518
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6519
      wlarc=
 
6520
      hardcode_direct=yes
 
6521
      hardcode_shlibpath_var=no
 
6522
      ;;
 
6523
 
 
6524
    *)
 
6525
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6526
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6527
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6528
      else
 
6529
        ld_shlibs=no
 
6530
      fi
 
6531
      ;;
 
6532
    esac
 
6533
 
 
6534
    if test "$ld_shlibs" = no; then
 
6535
      runpath_var=
 
6536
      hardcode_libdir_flag_spec=
 
6537
      export_dynamic_flag_spec=
 
6538
      whole_archive_flag_spec=
 
6539
    fi
 
6540
  else
 
6541
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6542
    case $host_os in
 
6543
    aix3*)
 
6544
      allow_undefined_flag=unsupported
 
6545
      always_export_symbols=yes
 
6546
      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'
 
6547
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6548
      # are no directories specified by -L.
 
6549
      hardcode_minus_L=yes
 
6550
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6551
        # Neither direct hardcoding nor static linking is supported with a
 
6552
        # broken collect2.
 
6553
        hardcode_direct=unsupported
 
6554
      fi
 
6555
      ;;
 
6556
 
 
6557
    aix4* | aix5*)
 
6558
      if test "$host_cpu" = ia64; then
 
6559
        # On IA64, the linker does run time linking by default, so we don't
 
6560
        # have to do anything special.
 
6561
        aix_use_runtimelinking=no
 
6562
        exp_sym_flag='-Bexport'
 
6563
        no_entry_flag=""
 
6564
      else
 
6565
        # If we're using GNU nm, then we don't want the "-C" option.
 
6566
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6567
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6568
          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'
 
6569
        else
 
6570
          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'
 
6571
        fi
 
6572
        aix_use_runtimelinking=no
 
6573
 
 
6574
        # Test if we are trying to use run time linking or normal
 
6575
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6576
        # need to do runtime linking.
 
6577
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6578
          for ld_flag in $LDFLAGS; do
 
6579
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6580
            aix_use_runtimelinking=yes
 
6581
            break
 
6582
          fi
 
6583
          done
 
6584
        esac
 
6585
 
 
6586
        exp_sym_flag='-bexport'
 
6587
        no_entry_flag='-bnoentry'
 
6588
      fi
 
6589
 
 
6590
      # When large executables or shared objects are built, AIX ld can
 
6591
      # have problems creating the table of contents.  If linking a library
 
6592
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6593
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6594
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6595
 
 
6596
      archive_cmds=''
 
6597
      hardcode_direct=yes
 
6598
      hardcode_libdir_separator=':'
 
6599
      link_all_deplibs=yes
 
6600
 
 
6601
      if test "$GCC" = yes; then
 
6602
        case $host_os in aix4.[012]|aix4.[012].*)
 
6603
        # We only want to do this on AIX 4.2 and lower, the check
 
6604
        # below for broken collect2 doesn't work under 4.3+
 
6605
          collect2name=`${CC} -print-prog-name=collect2`
 
6606
          if test -f "$collect2name" && \
 
6607
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6608
          then
 
6609
          # We have reworked collect2
 
6610
          hardcode_direct=yes
 
6611
          else
 
6612
          # We have old collect2
 
6613
          hardcode_direct=unsupported
 
6614
          # It fails to find uninstalled libraries when the uninstalled
 
6615
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6616
          # to unsupported forces relinking
 
6617
          hardcode_minus_L=yes
 
6618
          hardcode_libdir_flag_spec='-L$libdir'
 
6619
          hardcode_libdir_separator=
 
6620
          fi
 
6621
        esac
 
6622
        shared_flag='-shared'
 
6623
        if test "$aix_use_runtimelinking" = yes; then
 
6624
          shared_flag="$shared_flag "'${wl}-G'
 
6625
        fi
 
6626
      else
 
6627
        # not using gcc
 
6628
        if test "$host_cpu" = ia64; then
 
6629
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6630
        # chokes on -Wl,-G. The following line is correct:
 
6631
          shared_flag='-G'
 
6632
        else
 
6633
        if test "$aix_use_runtimelinking" = yes; then
 
6634
            shared_flag='${wl}-G'
 
6635
          else
 
6636
            shared_flag='${wl}-bM:SRE'
 
6637
        fi
 
6638
        fi
 
6639
      fi
 
6640
 
 
6641
      # It seems that -bexpall does not export symbols beginning with
 
6642
      # underscore (_), so it is better to generate a list of symbols to export.
 
6643
      always_export_symbols=yes
 
6644
      if test "$aix_use_runtimelinking" = yes; then
 
6645
        # Warning - without using the other runtime loading flags (-brtl),
 
6646
        # -berok will link without error, but may produce a broken library.
 
6647
        allow_undefined_flag='-berok'
 
6648
       # Determine the default libpath from the value encoded in an empty executable.
 
6649
       cat >conftest.$ac_ext <<_ACEOF
 
6650
/* confdefs.h.  */
 
6651
_ACEOF
 
6652
cat confdefs.h >>conftest.$ac_ext
 
6653
cat >>conftest.$ac_ext <<_ACEOF
 
6654
/* end confdefs.h.  */
 
6655
 
 
6656
int
 
6657
main ()
 
6658
{
 
6659
 
 
6660
  ;
 
6661
  return 0;
 
6662
}
 
6663
_ACEOF
 
6664
rm -f conftest.$ac_objext conftest$ac_exeext
 
6665
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6666
  (eval $ac_link) 2>conftest.er1
 
6667
  ac_status=$?
 
6668
  grep -v '^ *+' conftest.er1 >conftest.err
 
6669
  rm -f conftest.er1
 
6670
  cat conftest.err >&5
 
6671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6672
  (exit $ac_status); } &&
 
6673
         { ac_try='test -z "$ac_c_werror_flag"
 
6674
                         || test ! -s conftest.err'
 
6675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6676
  (eval $ac_try) 2>&5
 
6677
  ac_status=$?
 
6678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6679
  (exit $ac_status); }; } &&
 
6680
         { ac_try='test -s conftest$ac_exeext'
 
6681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6682
  (eval $ac_try) 2>&5
 
6683
  ac_status=$?
 
6684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6685
  (exit $ac_status); }; }; then
 
6686
 
 
6687
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6688
}'`
 
6689
# Check for a 64-bit object if we didn't find anything.
 
6690
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; }
 
6691
}'`; fi
 
6692
else
 
6693
  echo "$as_me: failed program was:" >&5
 
6694
sed 's/^/| /' conftest.$ac_ext >&5
 
6695
 
 
6696
fi
 
6697
rm -f conftest.err conftest.$ac_objext \
 
6698
      conftest$ac_exeext conftest.$ac_ext
 
6699
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6700
 
 
6701
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6702
        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"
 
6703
       else
 
6704
        if test "$host_cpu" = ia64; then
 
6705
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6706
          allow_undefined_flag="-z nodefs"
 
6707
          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"
 
6708
        else
 
6709
         # Determine the default libpath from the value encoded in an empty executable.
 
6710
         cat >conftest.$ac_ext <<_ACEOF
 
6711
/* confdefs.h.  */
 
6712
_ACEOF
 
6713
cat confdefs.h >>conftest.$ac_ext
 
6714
cat >>conftest.$ac_ext <<_ACEOF
 
6715
/* end confdefs.h.  */
 
6716
 
 
6717
int
 
6718
main ()
 
6719
{
 
6720
 
 
6721
  ;
 
6722
  return 0;
 
6723
}
 
6724
_ACEOF
 
6725
rm -f conftest.$ac_objext conftest$ac_exeext
 
6726
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6727
  (eval $ac_link) 2>conftest.er1
 
6728
  ac_status=$?
 
6729
  grep -v '^ *+' conftest.er1 >conftest.err
 
6730
  rm -f conftest.er1
 
6731
  cat conftest.err >&5
 
6732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6733
  (exit $ac_status); } &&
 
6734
         { ac_try='test -z "$ac_c_werror_flag"
 
6735
                         || test ! -s conftest.err'
 
6736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6737
  (eval $ac_try) 2>&5
 
6738
  ac_status=$?
 
6739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6740
  (exit $ac_status); }; } &&
 
6741
         { ac_try='test -s conftest$ac_exeext'
 
6742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6743
  (eval $ac_try) 2>&5
 
6744
  ac_status=$?
 
6745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6746
  (exit $ac_status); }; }; then
 
6747
 
 
6748
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6749
}'`
 
6750
# Check for a 64-bit object if we didn't find anything.
 
6751
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; }
 
6752
}'`; fi
 
6753
else
 
6754
  echo "$as_me: failed program was:" >&5
 
6755
sed 's/^/| /' conftest.$ac_ext >&5
 
6756
 
 
6757
fi
 
6758
rm -f conftest.err conftest.$ac_objext \
 
6759
      conftest$ac_exeext conftest.$ac_ext
 
6760
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6761
 
 
6762
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6763
          # Warning - without using the other run time loading flags,
 
6764
          # -berok will link without error, but may produce a broken library.
 
6765
          no_undefined_flag=' ${wl}-bernotok'
 
6766
          allow_undefined_flag=' ${wl}-berok'
 
6767
          # -bexpall does not export symbols beginning with underscore (_)
 
6768
          always_export_symbols=yes
 
6769
          # Exported symbols can be pulled into shared objects from archives
 
6770
          whole_archive_flag_spec=' '
 
6771
          archive_cmds_need_lc=yes
 
6772
          # This is similar to how AIX traditionally builds its shared libraries.
 
6773
          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'
 
6774
        fi
 
6775
      fi
 
6776
      ;;
 
6777
 
 
6778
    amigaos*)
 
6779
      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)'
 
6780
      hardcode_libdir_flag_spec='-L$libdir'
 
6781
      hardcode_minus_L=yes
 
6782
      # see comment about different semantics on the GNU ld section
 
6783
      ld_shlibs=no
 
6784
      ;;
 
6785
 
 
6786
    bsdi[45]*)
 
6787
      export_dynamic_flag_spec=-rdynamic
 
6788
      ;;
 
6789
 
 
6790
    cygwin* | mingw* | pw32*)
 
6791
      # When not using gcc, we currently assume that we are using
 
6792
      # Microsoft Visual C++.
 
6793
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6794
      # no search path for DLLs.
 
6795
      hardcode_libdir_flag_spec=' '
 
6796
      allow_undefined_flag=unsupported
 
6797
      # Tell ltmain to make .lib files, not .a files.
 
6798
      libext=lib
 
6799
      # Tell ltmain to make .dll files, not .so files.
 
6800
      shrext_cmds=".dll"
 
6801
      # FIXME: Setting linknames here is a bad hack.
 
6802
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6803
      # The linker will automatically build a .lib file if we build a DLL.
 
6804
      old_archive_From_new_cmds='true'
 
6805
      # FIXME: Should let the user specify the lib program.
 
6806
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6807
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6808
      enable_shared_with_static_runtimes=yes
 
6809
      ;;
 
6810
 
 
6811
    darwin* | rhapsody*)
 
6812
      case $host_os in
 
6813
        rhapsody* | darwin1.[012])
 
6814
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
6815
         ;;
 
6816
       *) # Darwin 1.3 on
 
6817
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6818
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6819
         else
 
6820
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6821
             10.[012])
 
6822
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6823
               ;;
 
6824
             10.*)
 
6825
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
6826
               ;;
 
6827
           esac
 
6828
         fi
 
6829
         ;;
 
6830
      esac
 
6831
      archive_cmds_need_lc=no
 
6832
      hardcode_direct=no
 
6833
      hardcode_automatic=yes
 
6834
      hardcode_shlibpath_var=unsupported
 
6835
      whole_archive_flag_spec=''
 
6836
      link_all_deplibs=yes
 
6837
    if test "$GCC" = yes ; then
 
6838
        output_verbose_link_cmd='echo'
 
6839
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6840
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6841
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6842
      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}'
 
6843
      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}'
 
6844
    else
 
6845
      case $cc_basename in
 
6846
        xlc*)
 
6847
         output_verbose_link_cmd='echo'
 
6848
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6849
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6850
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6851
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6852
          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}'
 
6853
          ;;
 
6854
       *)
 
6855
         ld_shlibs=no
 
6856
          ;;
 
6857
      esac
 
6858
    fi
 
6859
      ;;
 
6860
 
 
6861
    dgux*)
 
6862
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6863
      hardcode_libdir_flag_spec='-L$libdir'
 
6864
      hardcode_shlibpath_var=no
 
6865
      ;;
 
6866
 
 
6867
    freebsd1*)
 
6868
      ld_shlibs=no
 
6869
      ;;
 
6870
 
 
6871
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6872
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6873
    # does not break anything, and helps significantly (at the cost of a little
 
6874
    # extra space).
 
6875
    freebsd2.2*)
 
6876
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6877
      hardcode_libdir_flag_spec='-R$libdir'
 
6878
      hardcode_direct=yes
 
6879
      hardcode_shlibpath_var=no
 
6880
      ;;
 
6881
 
 
6882
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6883
    freebsd2*)
 
6884
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6885
      hardcode_direct=yes
 
6886
      hardcode_minus_L=yes
 
6887
      hardcode_shlibpath_var=no
 
6888
      ;;
 
6889
 
 
6890
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6891
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
6892
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6893
      hardcode_libdir_flag_spec='-R$libdir'
 
6894
      hardcode_direct=yes
 
6895
      hardcode_shlibpath_var=no
 
6896
      ;;
 
6897
 
 
6898
    hpux9*)
 
6899
      if test "$GCC" = yes; then
 
6900
        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'
 
6901
      else
 
6902
        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'
 
6903
      fi
 
6904
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6905
      hardcode_libdir_separator=:
 
6906
      hardcode_direct=yes
 
6907
 
 
6908
      # hardcode_minus_L: Not really in the search PATH,
 
6909
      # but as the default location of the library.
 
6910
      hardcode_minus_L=yes
 
6911
      export_dynamic_flag_spec='${wl}-E'
 
6912
      ;;
 
6913
 
 
6914
    hpux10* | hpux11*)
 
6915
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6916
        case $host_cpu in
 
6917
        hppa*64*|ia64*)
 
6918
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6919
          ;;
 
6920
        *)
 
6921
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6922
          ;;
 
6923
        esac
 
6924
      else
 
6925
        case $host_cpu in
 
6926
        hppa*64*|ia64*)
 
6927
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6928
          ;;
 
6929
        *)
 
6930
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6931
          ;;
 
6932
        esac
 
6933
      fi
 
6934
      if test "$with_gnu_ld" = no; then
 
6935
        case $host_cpu in
 
6936
        hppa*64*)
 
6937
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6938
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
6939
          hardcode_libdir_separator=:
 
6940
          hardcode_direct=no
 
6941
          hardcode_shlibpath_var=no
 
6942
          ;;
 
6943
        ia64*)
 
6944
          hardcode_libdir_flag_spec='-L$libdir'
 
6945
          hardcode_direct=no
 
6946
          hardcode_shlibpath_var=no
 
6947
 
 
6948
          # hardcode_minus_L: Not really in the search PATH,
 
6949
          # but as the default location of the library.
 
6950
          hardcode_minus_L=yes
 
6951
          ;;
 
6952
        *)
 
6953
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6954
          hardcode_libdir_separator=:
 
6955
          hardcode_direct=yes
 
6956
          export_dynamic_flag_spec='${wl}-E'
 
6957
 
 
6958
          # hardcode_minus_L: Not really in the search PATH,
 
6959
          # but as the default location of the library.
 
6960
          hardcode_minus_L=yes
 
6961
          ;;
 
6962
        esac
 
6963
      fi
 
6964
      ;;
 
6965
 
 
6966
    irix5* | irix6* | nonstopux*)
 
6967
      if test "$GCC" = yes; then
 
6968
        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'
 
6969
      else
 
6970
        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'
 
6971
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
6972
      fi
 
6973
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6974
      hardcode_libdir_separator=:
 
6975
      link_all_deplibs=yes
 
6976
      ;;
 
6977
 
 
6978
    netbsd*)
 
6979
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6980
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6981
      else
 
6982
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6983
      fi
 
6984
      hardcode_libdir_flag_spec='-R$libdir'
 
6985
      hardcode_direct=yes
 
6986
      hardcode_shlibpath_var=no
 
6987
      ;;
 
6988
 
 
6989
    newsos6)
 
6990
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6991
      hardcode_direct=yes
 
6992
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6993
      hardcode_libdir_separator=:
 
6994
      hardcode_shlibpath_var=no
 
6995
      ;;
 
6996
 
 
6997
    openbsd*)
 
6998
      hardcode_direct=yes
 
6999
      hardcode_shlibpath_var=no
 
7000
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7001
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7002
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7003
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7004
        export_dynamic_flag_spec='${wl}-E'
 
7005
      else
 
7006
       case $host_os in
 
7007
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7008
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7009
           hardcode_libdir_flag_spec='-R$libdir'
 
7010
           ;;
 
7011
         *)
 
7012
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7013
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7014
           ;;
 
7015
       esac
 
7016
      fi
 
7017
      ;;
 
7018
 
 
7019
    os2*)
 
7020
      hardcode_libdir_flag_spec='-L$libdir'
 
7021
      hardcode_minus_L=yes
 
7022
      allow_undefined_flag=unsupported
 
7023
      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'
 
7024
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7025
      ;;
 
7026
 
 
7027
    osf3*)
 
7028
      if test "$GCC" = yes; then
 
7029
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7030
        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'
 
7031
      else
 
7032
        allow_undefined_flag=' -expect_unresolved \*'
 
7033
        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'
 
7034
      fi
 
7035
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7036
      hardcode_libdir_separator=:
 
7037
      ;;
 
7038
 
 
7039
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7040
      if test "$GCC" = yes; then
 
7041
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7042
        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'
 
7043
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7044
      else
 
7045
        allow_undefined_flag=' -expect_unresolved \*'
 
7046
        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'
 
7047
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7048
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
7049
 
 
7050
        # Both c and cxx compiler support -rpath directly
 
7051
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7052
      fi
 
7053
      hardcode_libdir_separator=:
 
7054
      ;;
 
7055
 
 
7056
    sco3.2v5*)
 
7057
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7058
      hardcode_shlibpath_var=no
 
7059
      export_dynamic_flag_spec='${wl}-Bexport'
 
7060
      runpath_var=LD_RUN_PATH
 
7061
      hardcode_runpath_var=yes
 
7062
      ;;
 
7063
 
 
7064
    solaris*)
 
7065
      no_undefined_flag=' -z text'
 
7066
      if test "$GCC" = yes; then
 
7067
        wlarc='${wl}'
 
7068
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7069
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7070
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7071
      else
 
7072
        wlarc=''
 
7073
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7074
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7075
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7076
      fi
 
7077
      hardcode_libdir_flag_spec='-R$libdir'
 
7078
      hardcode_shlibpath_var=no
 
7079
      case $host_os in
 
7080
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7081
      *)
 
7082
        # The compiler driver will combine linker options so we
 
7083
        # cannot just pass the convience library names through
 
7084
        # without $wl, iff we do not link with $LD.
 
7085
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7086
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7087
        case $wlarc in
 
7088
        '')
 
7089
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7090
        *)
 
7091
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7092
        esac ;;
 
7093
      esac
 
7094
      link_all_deplibs=yes
 
7095
      ;;
 
7096
 
 
7097
    sunos4*)
 
7098
      if test "x$host_vendor" = xsequent; then
 
7099
        # Use $CC to link under sequent, because it throws in some extra .o
 
7100
        # files that make .init and .fini sections work.
 
7101
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7102
      else
 
7103
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7104
      fi
 
7105
      hardcode_libdir_flag_spec='-L$libdir'
 
7106
      hardcode_direct=yes
 
7107
      hardcode_minus_L=yes
 
7108
      hardcode_shlibpath_var=no
 
7109
      ;;
 
7110
 
 
7111
    sysv4)
 
7112
      case $host_vendor in
 
7113
        sni)
 
7114
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7115
          hardcode_direct=yes # is this really true???
 
7116
        ;;
 
7117
        siemens)
 
7118
          ## LD is ld it makes a PLAMLIB
 
7119
          ## CC just makes a GrossModule.
 
7120
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7121
          reload_cmds='$CC -r -o $output$reload_objs'
 
7122
          hardcode_direct=no
 
7123
        ;;
 
7124
        motorola)
 
7125
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7126
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7127
        ;;
 
7128
      esac
 
7129
      runpath_var='LD_RUN_PATH'
 
7130
      hardcode_shlibpath_var=no
 
7131
      ;;
 
7132
 
 
7133
    sysv4.3*)
 
7134
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7135
      hardcode_shlibpath_var=no
 
7136
      export_dynamic_flag_spec='-Bexport'
 
7137
      ;;
 
7138
 
 
7139
    sysv4*MP*)
 
7140
      if test -d /usr/nec; then
 
7141
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7142
        hardcode_shlibpath_var=no
 
7143
        runpath_var=LD_RUN_PATH
 
7144
        hardcode_runpath_var=yes
 
7145
        ld_shlibs=yes
 
7146
      fi
 
7147
      ;;
 
7148
 
 
7149
    sysv4.2uw2*)
 
7150
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7151
      hardcode_direct=yes
 
7152
      hardcode_minus_L=no
 
7153
      hardcode_shlibpath_var=no
 
7154
      hardcode_runpath_var=yes
 
7155
      runpath_var=LD_RUN_PATH
 
7156
      ;;
 
7157
 
 
7158
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7159
      no_undefined_flag='${wl}-z ${wl}text'
 
7160
      if test "$GCC" = yes; then
 
7161
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7162
      else
 
7163
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7164
      fi
 
7165
      runpath_var='LD_RUN_PATH'
 
7166
      hardcode_shlibpath_var=no
 
7167
      ;;
 
7168
 
 
7169
    sysv5*)
 
7170
      no_undefined_flag=' -z text'
 
7171
      # $CC -shared without GNU ld will not create a library from C++
 
7172
      # object files and a static libstdc++, better avoid it by now
 
7173
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7174
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7175
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7176
      hardcode_libdir_flag_spec=
 
7177
      hardcode_shlibpath_var=no
 
7178
      runpath_var='LD_RUN_PATH'
 
7179
      ;;
 
7180
 
 
7181
    uts4*)
 
7182
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7183
      hardcode_libdir_flag_spec='-L$libdir'
 
7184
      hardcode_shlibpath_var=no
 
7185
      ;;
 
7186
 
 
7187
    *)
 
7188
      ld_shlibs=no
 
7189
      ;;
 
7190
    esac
 
7191
  fi
 
7192
 
 
7193
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7194
echo "${ECHO_T}$ld_shlibs" >&6
 
7195
test "$ld_shlibs" = no && can_build_shared=no
 
7196
 
 
7197
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7198
if test "$GCC" = yes; then
 
7199
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7200
fi
 
7201
 
 
7202
#
 
7203
# Do we need to explicitly link libc?
 
7204
#
 
7205
case "x$archive_cmds_need_lc" in
 
7206
x|xyes)
 
7207
  # Assume -lc should be added
 
7208
  archive_cmds_need_lc=yes
 
7209
 
 
7210
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7211
    case $archive_cmds in
 
7212
    *'~'*)
 
7213
      # FIXME: we may have to deal with multi-command sequences.
 
7214
      ;;
 
7215
    '$CC '*)
 
7216
      # Test whether the compiler implicitly links with -lc since on some
 
7217
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7218
      # to ld, don't add -lc before -lgcc.
 
7219
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7220
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7221
      $rm conftest*
 
7222
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7223
 
 
7224
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7225
  (eval $ac_compile) 2>&5
 
7226
  ac_status=$?
 
7227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7228
  (exit $ac_status); } 2>conftest.err; then
 
7229
        soname=conftest
 
7230
        lib=conftest
 
7231
        libobjs=conftest.$ac_objext
 
7232
        deplibs=
 
7233
        wl=$lt_prog_compiler_wl
 
7234
        compiler_flags=-v
 
7235
        linker_flags=-v
 
7236
        verstring=
 
7237
        output_objdir=.
 
7238
        libname=conftest
 
7239
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7240
        allow_undefined_flag=
 
7241
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7242
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7243
  ac_status=$?
 
7244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7245
  (exit $ac_status); }
 
7246
        then
 
7247
          archive_cmds_need_lc=no
 
7248
        else
 
7249
          archive_cmds_need_lc=yes
 
7250
        fi
 
7251
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7252
      else
 
7253
        cat conftest.err 1>&5
 
7254
      fi
 
7255
      $rm conftest*
 
7256
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7257
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7258
      ;;
 
7259
    esac
 
7260
  fi
 
7261
  ;;
 
7262
esac
 
7263
 
 
7264
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7265
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7266
library_names_spec=
 
7267
libname_spec='lib$name'
 
7268
soname_spec=
 
7269
shrext_cmds=".so"
 
7270
postinstall_cmds=
 
7271
postuninstall_cmds=
 
7272
finish_cmds=
 
7273
finish_eval=
 
7274
shlibpath_var=
 
7275
shlibpath_overrides_runpath=unknown
 
7276
version_type=none
 
7277
dynamic_linker="$host_os ld.so"
 
7278
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7279
if test "$GCC" = yes; then
 
7280
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7281
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7282
    # if the path contains ";" then we assume it to be the separator
 
7283
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7284
    # assumed that no part of a normal pathname contains ";" but that should
 
7285
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7286
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7287
  else
 
7288
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7289
  fi
 
7290
else
 
7291
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7292
fi
 
7293
need_lib_prefix=unknown
 
7294
hardcode_into_libs=no
 
7295
 
 
7296
# when you set need_version to no, make sure it does not cause -set_version
 
7297
# flags to be left without arguments
 
7298
need_version=unknown
 
7299
 
 
7300
case $host_os in
 
7301
aix3*)
 
7302
  version_type=linux
 
7303
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7304
  shlibpath_var=LIBPATH
 
7305
 
 
7306
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7307
  soname_spec='${libname}${release}${shared_ext}$major'
 
7308
  ;;
 
7309
 
 
7310
aix4* | aix5*)
 
7311
  version_type=linux
 
7312
  need_lib_prefix=no
 
7313
  need_version=no
 
7314
  hardcode_into_libs=yes
 
7315
  if test "$host_cpu" = ia64; then
 
7316
    # AIX 5 supports IA64
 
7317
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7318
    shlibpath_var=LD_LIBRARY_PATH
 
7319
  else
 
7320
    # With GCC up to 2.95.x, collect2 would create an import file
 
7321
    # for dependence libraries.  The import file would start with
 
7322
    # the line `#! .'.  This would cause the generated library to
 
7323
    # depend on `.', always an invalid library.  This was fixed in
 
7324
    # development snapshots of GCC prior to 3.0.
 
7325
    case $host_os in
 
7326
      aix4 | aix4.[01] | aix4.[01].*)
 
7327
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7328
           echo ' yes '
 
7329
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7330
        :
 
7331
      else
 
7332
        can_build_shared=no
 
7333
      fi
 
7334
      ;;
 
7335
    esac
 
7336
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7337
    # soname into executable. Probably we can add versioning support to
 
7338
    # collect2, so additional links can be useful in future.
 
7339
    if test "$aix_use_runtimelinking" = yes; then
 
7340
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7341
      # instead of lib<name>.a to let people know that these are not
 
7342
      # typical AIX shared libraries.
 
7343
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7344
    else
 
7345
      # We preserve .a as extension for shared libraries through AIX4.2
 
7346
      # and later when we are not doing run time linking.
 
7347
      library_names_spec='${libname}${release}.a $libname.a'
 
7348
      soname_spec='${libname}${release}${shared_ext}$major'
 
7349
    fi
 
7350
    shlibpath_var=LIBPATH
 
7351
  fi
 
7352
  ;;
 
7353
 
 
7354
amigaos*)
 
7355
  library_names_spec='$libname.ixlibrary $libname.a'
 
7356
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7357
  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'
 
7358
  ;;
 
7359
 
 
7360
beos*)
 
7361
  library_names_spec='${libname}${shared_ext}'
 
7362
  dynamic_linker="$host_os ld.so"
 
7363
  shlibpath_var=LIBRARY_PATH
 
7364
  ;;
 
7365
 
 
7366
bsdi[45]*)
 
7367
  version_type=linux
 
7368
  need_version=no
 
7369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7370
  soname_spec='${libname}${release}${shared_ext}$major'
 
7371
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7372
  shlibpath_var=LD_LIBRARY_PATH
 
7373
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7374
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7375
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7376
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7377
  # libtool to hard-code these into programs
 
7378
  ;;
 
7379
 
 
7380
cygwin* | mingw* | pw32*)
 
7381
  version_type=windows
 
7382
  shrext_cmds=".dll"
 
7383
  need_version=no
 
7384
  need_lib_prefix=no
 
7385
 
 
7386
  case $GCC,$host_os in
 
7387
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7388
    library_names_spec='$libname.dll.a'
 
7389
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7390
    postinstall_cmds='base_file=`basename \${file}`~
 
7391
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7392
      dldir=$destdir/`dirname \$dlpath`~
 
7393
      test -d \$dldir || mkdir -p \$dldir~
 
7394
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7395
      chmod a+x \$dldir/$dlname'
 
7396
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7397
      dlpath=$dir/\$dldll~
 
7398
       $rm \$dlpath'
 
7399
    shlibpath_overrides_runpath=yes
 
7400
 
 
7401
    case $host_os in
 
7402
    cygwin*)
 
7403
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7404
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7405
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7406
      ;;
 
7407
    mingw*)
 
7408
      # MinGW DLLs use traditional 'lib' prefix
 
7409
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7410
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7411
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7412
        # It is most probably a Windows format PATH printed by
 
7413
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7414
        # path with ; separators, and with drive letters. We can handle the
 
7415
        # drive letters (cygwin fileutils understands them), so leave them,
 
7416
        # especially as we might pass files found there to a mingw objdump,
 
7417
        # which wouldn't understand a cygwinified path. Ahh.
 
7418
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7419
      else
 
7420
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7421
      fi
 
7422
      ;;
 
7423
    pw32*)
 
7424
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7425
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7426
      ;;
 
7427
    esac
 
7428
    ;;
 
7429
 
 
7430
  *)
 
7431
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7432
    ;;
 
7433
  esac
 
7434
  dynamic_linker='Win32 ld.exe'
 
7435
  # FIXME: first we should search . and the directory the executable is in
 
7436
  shlibpath_var=PATH
 
7437
  ;;
 
7438
 
 
7439
darwin* | rhapsody*)
 
7440
  dynamic_linker="$host_os dyld"
 
7441
  version_type=darwin
 
7442
  need_lib_prefix=no
 
7443
  need_version=no
 
7444
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7445
  soname_spec='${libname}${release}${major}$shared_ext'
 
7446
  shlibpath_overrides_runpath=yes
 
7447
  shlibpath_var=DYLD_LIBRARY_PATH
 
7448
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
7449
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7450
  if test "$GCC" = yes; then
 
7451
    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"`
 
7452
  else
 
7453
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7454
  fi
 
7455
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7456
  ;;
 
7457
 
 
7458
dgux*)
 
7459
  version_type=linux
 
7460
  need_lib_prefix=no
 
7461
  need_version=no
 
7462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7463
  soname_spec='${libname}${release}${shared_ext}$major'
 
7464
  shlibpath_var=LD_LIBRARY_PATH
 
7465
  ;;
 
7466
 
 
7467
freebsd1*)
 
7468
  dynamic_linker=no
 
7469
  ;;
 
7470
 
 
7471
kfreebsd*-gnu)
 
7472
  version_type=linux
 
7473
  need_lib_prefix=no
 
7474
  need_version=no
 
7475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7476
  soname_spec='${libname}${release}${shared_ext}$major'
 
7477
  shlibpath_var=LD_LIBRARY_PATH
 
7478
  shlibpath_overrides_runpath=no
 
7479
  hardcode_into_libs=yes
 
7480
  dynamic_linker='GNU ld.so'
 
7481
  ;;
 
7482
 
 
7483
freebsd* | dragonfly*)
 
7484
  # DragonFly does not have aout.  When/if they implement a new
 
7485
  # versioning mechanism, adjust this.
 
7486
  if test -x /usr/bin/objformat; then
 
7487
    objformat=`/usr/bin/objformat`
 
7488
  else
 
7489
    case $host_os in
 
7490
    freebsd[123]*) objformat=aout ;;
 
7491
    *) objformat=elf ;;
 
7492
    esac
 
7493
  fi
 
7494
  version_type=freebsd-$objformat
 
7495
  case $version_type in
 
7496
    freebsd-elf*)
 
7497
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7498
      need_version=no
 
7499
      need_lib_prefix=no
 
7500
      ;;
 
7501
    freebsd-*)
 
7502
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7503
      need_version=yes
 
7504
      ;;
 
7505
  esac
 
7506
  shlibpath_var=LD_LIBRARY_PATH
 
7507
  case $host_os in
 
7508
  freebsd2*)
 
7509
    shlibpath_overrides_runpath=yes
 
7510
    ;;
 
7511
  freebsd3.[01]* | freebsdelf3.[01]*)
 
7512
    shlibpath_overrides_runpath=yes
 
7513
    hardcode_into_libs=yes
 
7514
    ;;
 
7515
  *) # from 3.2 on
 
7516
    shlibpath_overrides_runpath=no
 
7517
    hardcode_into_libs=yes
 
7518
    ;;
 
7519
  esac
 
7520
  ;;
 
7521
 
 
7522
gnu*)
 
7523
  version_type=linux
 
7524
  need_lib_prefix=no
 
7525
  need_version=no
 
7526
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7527
  soname_spec='${libname}${release}${shared_ext}$major'
 
7528
  shlibpath_var=LD_LIBRARY_PATH
 
7529
  hardcode_into_libs=yes
 
7530
  ;;
 
7531
 
 
7532
hpux9* | hpux10* | hpux11*)
 
7533
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7534
  # link against other versions.
 
7535
  version_type=sunos
 
7536
  need_lib_prefix=no
 
7537
  need_version=no
 
7538
  case $host_cpu in
 
7539
  ia64*)
 
7540
    shrext_cmds='.so'
 
7541
    hardcode_into_libs=yes
 
7542
    dynamic_linker="$host_os dld.so"
 
7543
    shlibpath_var=LD_LIBRARY_PATH
 
7544
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7545
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7546
    soname_spec='${libname}${release}${shared_ext}$major'
 
7547
    if test "X$HPUX_IA64_MODE" = X32; then
 
7548
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7549
    else
 
7550
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7551
    fi
 
7552
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7553
    ;;
 
7554
   hppa*64*)
 
7555
     shrext_cmds='.sl'
 
7556
     hardcode_into_libs=yes
 
7557
     dynamic_linker="$host_os dld.sl"
 
7558
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7559
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7560
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7561
     soname_spec='${libname}${release}${shared_ext}$major'
 
7562
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7563
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7564
     ;;
 
7565
   *)
 
7566
    shrext_cmds='.sl'
 
7567
    dynamic_linker="$host_os dld.sl"
 
7568
    shlibpath_var=SHLIB_PATH
 
7569
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7570
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7571
    soname_spec='${libname}${release}${shared_ext}$major'
 
7572
    ;;
 
7573
  esac
 
7574
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7575
  postinstall_cmds='chmod 555 $lib'
 
7576
  ;;
 
7577
 
 
7578
irix5* | irix6* | nonstopux*)
 
7579
  case $host_os in
 
7580
    nonstopux*) version_type=nonstopux ;;
 
7581
    *)
 
7582
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7583
                version_type=linux
 
7584
        else
 
7585
                version_type=irix
 
7586
        fi ;;
 
7587
  esac
 
7588
  need_lib_prefix=no
 
7589
  need_version=no
 
7590
  soname_spec='${libname}${release}${shared_ext}$major'
 
7591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7592
  case $host_os in
 
7593
  irix5* | nonstopux*)
 
7594
    libsuff= shlibsuff=
 
7595
    ;;
 
7596
  *)
 
7597
    case $LD in # libtool.m4 will add one of these switches to LD
 
7598
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7599
      libsuff= shlibsuff= libmagic=32-bit;;
 
7600
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7601
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7602
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7603
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7604
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7605
    esac
 
7606
    ;;
 
7607
  esac
 
7608
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7609
  shlibpath_overrides_runpath=no
 
7610
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7611
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7612
  hardcode_into_libs=yes
 
7613
  ;;
 
7614
 
 
7615
# No shared lib support for Linux oldld, aout, or coff.
 
7616
linux*oldld* | linux*aout* | linux*coff*)
 
7617
  dynamic_linker=no
 
7618
  ;;
 
7619
 
 
7620
# This must be Linux ELF.
 
7621
linux*)
 
7622
  version_type=linux
 
7623
  need_lib_prefix=no
 
7624
  need_version=no
 
7625
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7626
  soname_spec='${libname}${release}${shared_ext}$major'
 
7627
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7628
  shlibpath_var=LD_LIBRARY_PATH
 
7629
  shlibpath_overrides_runpath=no
 
7630
  # This implies no fast_install, which is unacceptable.
 
7631
  # Some rework will be needed to allow for fast_install
 
7632
  # before this can be enabled.
 
7633
  hardcode_into_libs=yes
 
7634
 
 
7635
  # Append ld.so.conf contents to the search path
 
7636
  if test -f /etc/ld.so.conf; then
 
7637
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
7638
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7639
  fi
 
7640
 
 
7641
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7642
  # powerpc, because MkLinux only supported shared libraries with the
 
7643
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7644
  # most powerpc-linux boxes support dynamic linking these days and
 
7645
  # people can always --disable-shared, the test was removed, and we
 
7646
  # assume the GNU/Linux dynamic linker is in use.
 
7647
  dynamic_linker='GNU/Linux ld.so'
 
7648
  ;;
 
7649
 
 
7650
knetbsd*-gnu)
 
7651
  version_type=linux
 
7652
  need_lib_prefix=no
 
7653
  need_version=no
 
7654
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7655
  soname_spec='${libname}${release}${shared_ext}$major'
 
7656
  shlibpath_var=LD_LIBRARY_PATH
 
7657
  shlibpath_overrides_runpath=no
 
7658
  hardcode_into_libs=yes
 
7659
  dynamic_linker='GNU ld.so'
 
7660
  ;;
 
7661
 
 
7662
netbsd*)
 
7663
  version_type=sunos
 
7664
  need_lib_prefix=no
 
7665
  need_version=no
 
7666
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7667
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7668
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7669
    dynamic_linker='NetBSD (a.out) ld.so'
 
7670
  else
 
7671
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7672
    soname_spec='${libname}${release}${shared_ext}$major'
 
7673
    dynamic_linker='NetBSD ld.elf_so'
 
7674
  fi
 
7675
  shlibpath_var=LD_LIBRARY_PATH
 
7676
  shlibpath_overrides_runpath=yes
 
7677
  hardcode_into_libs=yes
 
7678
  ;;
 
7679
 
 
7680
newsos6)
 
7681
  version_type=linux
 
7682
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7683
  shlibpath_var=LD_LIBRARY_PATH
 
7684
  shlibpath_overrides_runpath=yes
 
7685
  ;;
 
7686
 
 
7687
nto-qnx*)
 
7688
  version_type=linux
 
7689
  need_lib_prefix=no
 
7690
  need_version=no
 
7691
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7692
  soname_spec='${libname}${release}${shared_ext}$major'
 
7693
  shlibpath_var=LD_LIBRARY_PATH
 
7694
  shlibpath_overrides_runpath=yes
 
7695
  ;;
 
7696
 
 
7697
openbsd*)
 
7698
  version_type=sunos
 
7699
  need_lib_prefix=no
 
7700
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
7701
  case $host_os in
 
7702
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
7703
    *)                         need_version=no  ;;
 
7704
  esac
 
7705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7706
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7707
  shlibpath_var=LD_LIBRARY_PATH
 
7708
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7709
    case $host_os in
 
7710
      openbsd2.[89] | openbsd2.[89].*)
 
7711
        shlibpath_overrides_runpath=no
 
7712
        ;;
 
7713
      *)
 
7714
        shlibpath_overrides_runpath=yes
 
7715
        ;;
 
7716
      esac
 
7717
  else
 
7718
    shlibpath_overrides_runpath=yes
 
7719
  fi
 
7720
  ;;
 
7721
 
 
7722
os2*)
 
7723
  libname_spec='$name'
 
7724
  shrext_cmds=".dll"
 
7725
  need_lib_prefix=no
 
7726
  library_names_spec='$libname${shared_ext} $libname.a'
 
7727
  dynamic_linker='OS/2 ld.exe'
 
7728
  shlibpath_var=LIBPATH
 
7729
  ;;
 
7730
 
 
7731
osf3* | osf4* | osf5*)
 
7732
  version_type=osf
 
7733
  need_lib_prefix=no
 
7734
  need_version=no
 
7735
  soname_spec='${libname}${release}${shared_ext}$major'
 
7736
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7737
  shlibpath_var=LD_LIBRARY_PATH
 
7738
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7739
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7740
  ;;
 
7741
 
 
7742
sco3.2v5*)
 
7743
  version_type=osf
 
7744
  soname_spec='${libname}${release}${shared_ext}$major'
 
7745
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7746
  shlibpath_var=LD_LIBRARY_PATH
 
7747
  ;;
 
7748
 
 
7749
solaris*)
 
7750
  version_type=linux
 
7751
  need_lib_prefix=no
 
7752
  need_version=no
 
7753
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7754
  soname_spec='${libname}${release}${shared_ext}$major'
 
7755
  shlibpath_var=LD_LIBRARY_PATH
 
7756
  shlibpath_overrides_runpath=yes
 
7757
  hardcode_into_libs=yes
 
7758
  # ldd complains unless libraries are executable
 
7759
  postinstall_cmds='chmod +x $lib'
 
7760
  ;;
 
7761
 
 
7762
sunos4*)
 
7763
  version_type=sunos
 
7764
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7765
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7766
  shlibpath_var=LD_LIBRARY_PATH
 
7767
  shlibpath_overrides_runpath=yes
 
7768
  if test "$with_gnu_ld" = yes; then
 
7769
    need_lib_prefix=no
 
7770
  fi
 
7771
  need_version=yes
 
7772
  ;;
 
7773
 
 
7774
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7775
  version_type=linux
 
7776
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7777
  soname_spec='${libname}${release}${shared_ext}$major'
 
7778
  shlibpath_var=LD_LIBRARY_PATH
 
7779
  case $host_vendor in
 
7780
    sni)
 
7781
      shlibpath_overrides_runpath=no
 
7782
      need_lib_prefix=no
 
7783
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7784
      runpath_var=LD_RUN_PATH
 
7785
      ;;
 
7786
    siemens)
 
7787
      need_lib_prefix=no
 
7788
      ;;
 
7789
    motorola)
 
7790
      need_lib_prefix=no
 
7791
      need_version=no
 
7792
      shlibpath_overrides_runpath=no
 
7793
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7794
      ;;
 
7795
  esac
 
7796
  ;;
 
7797
 
 
7798
sysv4*MP*)
 
7799
  if test -d /usr/nec ;then
 
7800
    version_type=linux
 
7801
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
7802
    soname_spec='$libname${shared_ext}.$major'
 
7803
    shlibpath_var=LD_LIBRARY_PATH
 
7804
  fi
 
7805
  ;;
 
7806
 
 
7807
uts4*)
 
7808
  version_type=linux
 
7809
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7810
  soname_spec='${libname}${release}${shared_ext}$major'
 
7811
  shlibpath_var=LD_LIBRARY_PATH
 
7812
  ;;
 
7813
 
 
7814
*)
 
7815
  dynamic_linker=no
 
7816
  ;;
 
7817
esac
 
7818
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7819
echo "${ECHO_T}$dynamic_linker" >&6
 
7820
test "$dynamic_linker" = no && can_build_shared=no
 
7821
 
 
7822
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
7823
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
7824
hardcode_action=
 
7825
if test -n "$hardcode_libdir_flag_spec" || \
 
7826
   test -n "$runpath_var" || \
 
7827
   test "X$hardcode_automatic" = "Xyes" ; then
 
7828
 
 
7829
  # We can hardcode non-existant directories.
 
7830
  if test "$hardcode_direct" != no &&
 
7831
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
7832
     # have to relink, otherwise we might link with an installed library
 
7833
     # when we should be linking with a yet-to-be-installed one
 
7834
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
7835
     test "$hardcode_minus_L" != no; then
 
7836
    # Linking always hardcodes the temporary library directory.
 
7837
    hardcode_action=relink
 
7838
  else
 
7839
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
7840
    hardcode_action=immediate
 
7841
  fi
 
7842
else
 
7843
  # We cannot hardcode anything, or else we can only hardcode existing
 
7844
  # directories.
 
7845
  hardcode_action=unsupported
 
7846
fi
 
7847
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
7848
echo "${ECHO_T}$hardcode_action" >&6
 
7849
 
 
7850
if test "$hardcode_action" = relink; then
 
7851
  # Fast installation is not supported
 
7852
  enable_fast_install=no
 
7853
elif test "$shlibpath_overrides_runpath" = yes ||
 
7854
     test "$enable_shared" = no; then
 
7855
  # Fast installation is not necessary
 
7856
  enable_fast_install=needless
 
7857
fi
 
7858
 
 
7859
striplib=
 
7860
old_striplib=
 
7861
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
7862
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
7863
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
7864
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
7865
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
7866
  echo "$as_me:$LINENO: result: yes" >&5
 
7867
echo "${ECHO_T}yes" >&6
 
7868
else
 
7869
# FIXME - insert some real tests, host_os isn't really good enough
 
7870
  case $host_os in
 
7871
   darwin*)
 
7872
       if test -n "$STRIP" ; then
 
7873
         striplib="$STRIP -x"
 
7874
         echo "$as_me:$LINENO: result: yes" >&5
 
7875
echo "${ECHO_T}yes" >&6
 
7876
       else
 
7877
  echo "$as_me:$LINENO: result: no" >&5
 
7878
echo "${ECHO_T}no" >&6
 
7879
fi
 
7880
       ;;
 
7881
   *)
 
7882
  echo "$as_me:$LINENO: result: no" >&5
 
7883
echo "${ECHO_T}no" >&6
 
7884
    ;;
 
7885
  esac
 
7886
fi
 
7887
 
 
7888
if test "x$enable_dlopen" != xyes; then
 
7889
  enable_dlopen=unknown
 
7890
  enable_dlopen_self=unknown
 
7891
  enable_dlopen_self_static=unknown
 
7892
else
 
7893
  lt_cv_dlopen=no
 
7894
  lt_cv_dlopen_libs=
 
7895
 
 
7896
  case $host_os in
 
7897
  beos*)
 
7898
    lt_cv_dlopen="load_add_on"
 
7899
    lt_cv_dlopen_libs=
 
7900
    lt_cv_dlopen_self=yes
 
7901
    ;;
 
7902
 
 
7903
  mingw* | pw32*)
 
7904
    lt_cv_dlopen="LoadLibrary"
 
7905
    lt_cv_dlopen_libs=
 
7906
   ;;
 
7907
 
 
7908
  cygwin*)
 
7909
    lt_cv_dlopen="dlopen"
 
7910
    lt_cv_dlopen_libs=
 
7911
   ;;
 
7912
 
 
7913
  darwin*)
 
7914
  # if libdl is installed we need to link against it
 
7915
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7916
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7917
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7919
else
 
7920
  ac_check_lib_save_LIBS=$LIBS
 
7921
LIBS="-ldl  $LIBS"
 
7922
cat >conftest.$ac_ext <<_ACEOF
 
7923
/* confdefs.h.  */
 
7924
_ACEOF
 
7925
cat confdefs.h >>conftest.$ac_ext
 
7926
cat >>conftest.$ac_ext <<_ACEOF
 
7927
/* end confdefs.h.  */
 
7928
 
 
7929
/* Override any gcc2 internal prototype to avoid an error.  */
 
7930
#ifdef __cplusplus
 
7931
extern "C"
 
7932
#endif
 
7933
/* We use char because int might match the return type of a gcc2
 
7934
   builtin and then its argument prototype would still apply.  */
 
7935
char dlopen ();
 
7936
int
 
7937
main ()
 
7938
{
 
7939
dlopen ();
 
7940
  ;
 
7941
  return 0;
 
7942
}
 
7943
_ACEOF
 
7944
rm -f conftest.$ac_objext conftest$ac_exeext
 
7945
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7946
  (eval $ac_link) 2>conftest.er1
 
7947
  ac_status=$?
 
7948
  grep -v '^ *+' conftest.er1 >conftest.err
 
7949
  rm -f conftest.er1
 
7950
  cat conftest.err >&5
 
7951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7952
  (exit $ac_status); } &&
 
7953
         { ac_try='test -z "$ac_c_werror_flag"
 
7954
                         || test ! -s conftest.err'
 
7955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7956
  (eval $ac_try) 2>&5
 
7957
  ac_status=$?
 
7958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7959
  (exit $ac_status); }; } &&
 
7960
         { ac_try='test -s conftest$ac_exeext'
 
7961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7962
  (eval $ac_try) 2>&5
 
7963
  ac_status=$?
 
7964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7965
  (exit $ac_status); }; }; then
 
7966
  ac_cv_lib_dl_dlopen=yes
 
7967
else
 
7968
  echo "$as_me: failed program was:" >&5
 
7969
sed 's/^/| /' conftest.$ac_ext >&5
 
7970
 
 
7971
ac_cv_lib_dl_dlopen=no
 
7972
fi
 
7973
rm -f conftest.err conftest.$ac_objext \
 
7974
      conftest$ac_exeext conftest.$ac_ext
 
7975
LIBS=$ac_check_lib_save_LIBS
 
7976
fi
 
7977
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7978
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7979
if test $ac_cv_lib_dl_dlopen = yes; then
 
7980
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7981
else
 
7982
 
 
7983
    lt_cv_dlopen="dyld"
 
7984
    lt_cv_dlopen_libs=
 
7985
    lt_cv_dlopen_self=yes
 
7986
 
 
7987
fi
 
7988
 
 
7989
   ;;
 
7990
 
 
7991
  *)
 
7992
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
7993
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
7994
if test "${ac_cv_func_shl_load+set}" = set; then
 
7995
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7996
else
 
7997
  cat >conftest.$ac_ext <<_ACEOF
 
7998
/* confdefs.h.  */
 
7999
_ACEOF
 
8000
cat confdefs.h >>conftest.$ac_ext
 
8001
cat >>conftest.$ac_ext <<_ACEOF
 
8002
/* end confdefs.h.  */
 
8003
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8004
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8005
#define shl_load innocuous_shl_load
 
8006
 
 
8007
/* System header to define __stub macros and hopefully few prototypes,
 
8008
    which can conflict with char shl_load (); below.
 
8009
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8010
    <limits.h> exists even on freestanding compilers.  */
 
8011
 
 
8012
#ifdef __STDC__
 
8013
# include <limits.h>
 
8014
#else
 
8015
# include <assert.h>
 
8016
#endif
 
8017
 
 
8018
#undef shl_load
 
8019
 
 
8020
/* Override any gcc2 internal prototype to avoid an error.  */
 
8021
#ifdef __cplusplus
 
8022
extern "C"
 
8023
{
 
8024
#endif
 
8025
/* We use char because int might match the return type of a gcc2
 
8026
   builtin and then its argument prototype would still apply.  */
 
8027
char shl_load ();
 
8028
/* The GNU C library defines this for functions which it implements
 
8029
    to always fail with ENOSYS.  Some functions are actually named
 
8030
    something starting with __ and the normal name is an alias.  */
 
8031
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8032
choke me
 
8033
#else
 
8034
char (*f) () = shl_load;
 
8035
#endif
 
8036
#ifdef __cplusplus
 
8037
}
 
8038
#endif
 
8039
 
 
8040
int
 
8041
main ()
 
8042
{
 
8043
return f != shl_load;
 
8044
  ;
 
8045
  return 0;
 
8046
}
 
8047
_ACEOF
 
8048
rm -f conftest.$ac_objext conftest$ac_exeext
 
8049
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8050
  (eval $ac_link) 2>conftest.er1
 
8051
  ac_status=$?
 
8052
  grep -v '^ *+' conftest.er1 >conftest.err
 
8053
  rm -f conftest.er1
 
8054
  cat conftest.err >&5
 
8055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8056
  (exit $ac_status); } &&
 
8057
         { ac_try='test -z "$ac_c_werror_flag"
 
8058
                         || test ! -s conftest.err'
 
8059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8060
  (eval $ac_try) 2>&5
 
8061
  ac_status=$?
 
8062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8063
  (exit $ac_status); }; } &&
 
8064
         { ac_try='test -s conftest$ac_exeext'
 
8065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8066
  (eval $ac_try) 2>&5
 
8067
  ac_status=$?
 
8068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8069
  (exit $ac_status); }; }; then
 
8070
  ac_cv_func_shl_load=yes
 
8071
else
 
8072
  echo "$as_me: failed program was:" >&5
 
8073
sed 's/^/| /' conftest.$ac_ext >&5
 
8074
 
 
8075
ac_cv_func_shl_load=no
 
8076
fi
 
8077
rm -f conftest.err conftest.$ac_objext \
 
8078
      conftest$ac_exeext conftest.$ac_ext
 
8079
fi
 
8080
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8081
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8082
if test $ac_cv_func_shl_load = yes; then
 
8083
  lt_cv_dlopen="shl_load"
 
8084
else
 
8085
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8086
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8087
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8089
else
 
8090
  ac_check_lib_save_LIBS=$LIBS
 
8091
LIBS="-ldld  $LIBS"
 
8092
cat >conftest.$ac_ext <<_ACEOF
 
8093
/* confdefs.h.  */
 
8094
_ACEOF
 
8095
cat confdefs.h >>conftest.$ac_ext
 
8096
cat >>conftest.$ac_ext <<_ACEOF
 
8097
/* end confdefs.h.  */
 
8098
 
 
8099
/* Override any gcc2 internal prototype to avoid an error.  */
 
8100
#ifdef __cplusplus
 
8101
extern "C"
 
8102
#endif
 
8103
/* We use char because int might match the return type of a gcc2
 
8104
   builtin and then its argument prototype would still apply.  */
 
8105
char shl_load ();
 
8106
int
 
8107
main ()
 
8108
{
 
8109
shl_load ();
 
8110
  ;
 
8111
  return 0;
 
8112
}
 
8113
_ACEOF
 
8114
rm -f conftest.$ac_objext conftest$ac_exeext
 
8115
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8116
  (eval $ac_link) 2>conftest.er1
 
8117
  ac_status=$?
 
8118
  grep -v '^ *+' conftest.er1 >conftest.err
 
8119
  rm -f conftest.er1
 
8120
  cat conftest.err >&5
 
8121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8122
  (exit $ac_status); } &&
 
8123
         { ac_try='test -z "$ac_c_werror_flag"
 
8124
                         || test ! -s conftest.err'
 
8125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8126
  (eval $ac_try) 2>&5
 
8127
  ac_status=$?
 
8128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8129
  (exit $ac_status); }; } &&
 
8130
         { ac_try='test -s conftest$ac_exeext'
 
8131
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8132
  (eval $ac_try) 2>&5
 
8133
  ac_status=$?
 
8134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8135
  (exit $ac_status); }; }; then
 
8136
  ac_cv_lib_dld_shl_load=yes
 
8137
else
 
8138
  echo "$as_me: failed program was:" >&5
 
8139
sed 's/^/| /' conftest.$ac_ext >&5
 
8140
 
 
8141
ac_cv_lib_dld_shl_load=no
 
8142
fi
 
8143
rm -f conftest.err conftest.$ac_objext \
 
8144
      conftest$ac_exeext conftest.$ac_ext
 
8145
LIBS=$ac_check_lib_save_LIBS
 
8146
fi
 
8147
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8148
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8149
if test $ac_cv_lib_dld_shl_load = yes; then
 
8150
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8151
else
 
8152
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8153
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8154
if test "${ac_cv_func_dlopen+set}" = set; then
 
8155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8156
else
 
8157
  cat >conftest.$ac_ext <<_ACEOF
 
8158
/* confdefs.h.  */
 
8159
_ACEOF
 
8160
cat confdefs.h >>conftest.$ac_ext
 
8161
cat >>conftest.$ac_ext <<_ACEOF
 
8162
/* end confdefs.h.  */
 
8163
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8164
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8165
#define dlopen innocuous_dlopen
 
8166
 
 
8167
/* System header to define __stub macros and hopefully few prototypes,
 
8168
    which can conflict with char dlopen (); below.
 
8169
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8170
    <limits.h> exists even on freestanding compilers.  */
 
8171
 
 
8172
#ifdef __STDC__
 
8173
# include <limits.h>
 
8174
#else
 
8175
# include <assert.h>
 
8176
#endif
 
8177
 
 
8178
#undef dlopen
 
8179
 
 
8180
/* Override any gcc2 internal prototype to avoid an error.  */
 
8181
#ifdef __cplusplus
 
8182
extern "C"
 
8183
{
 
8184
#endif
 
8185
/* We use char because int might match the return type of a gcc2
 
8186
   builtin and then its argument prototype would still apply.  */
 
8187
char dlopen ();
 
8188
/* The GNU C library defines this for functions which it implements
 
8189
    to always fail with ENOSYS.  Some functions are actually named
 
8190
    something starting with __ and the normal name is an alias.  */
 
8191
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8192
choke me
 
8193
#else
 
8194
char (*f) () = dlopen;
 
8195
#endif
 
8196
#ifdef __cplusplus
 
8197
}
 
8198
#endif
 
8199
 
 
8200
int
 
8201
main ()
 
8202
{
 
8203
return f != dlopen;
 
8204
  ;
 
8205
  return 0;
 
8206
}
 
8207
_ACEOF
 
8208
rm -f conftest.$ac_objext conftest$ac_exeext
 
8209
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8210
  (eval $ac_link) 2>conftest.er1
 
8211
  ac_status=$?
 
8212
  grep -v '^ *+' conftest.er1 >conftest.err
 
8213
  rm -f conftest.er1
 
8214
  cat conftest.err >&5
 
8215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8216
  (exit $ac_status); } &&
 
8217
         { ac_try='test -z "$ac_c_werror_flag"
 
8218
                         || test ! -s conftest.err'
 
8219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8220
  (eval $ac_try) 2>&5
 
8221
  ac_status=$?
 
8222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8223
  (exit $ac_status); }; } &&
 
8224
         { ac_try='test -s conftest$ac_exeext'
 
8225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8226
  (eval $ac_try) 2>&5
 
8227
  ac_status=$?
 
8228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8229
  (exit $ac_status); }; }; then
 
8230
  ac_cv_func_dlopen=yes
 
8231
else
 
8232
  echo "$as_me: failed program was:" >&5
 
8233
sed 's/^/| /' conftest.$ac_ext >&5
 
8234
 
 
8235
ac_cv_func_dlopen=no
 
8236
fi
 
8237
rm -f conftest.err conftest.$ac_objext \
 
8238
      conftest$ac_exeext conftest.$ac_ext
 
8239
fi
 
8240
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8241
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8242
if test $ac_cv_func_dlopen = yes; then
 
8243
  lt_cv_dlopen="dlopen"
 
8244
else
 
8245
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8246
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8247
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8249
else
 
8250
  ac_check_lib_save_LIBS=$LIBS
 
8251
LIBS="-ldl  $LIBS"
 
8252
cat >conftest.$ac_ext <<_ACEOF
 
8253
/* confdefs.h.  */
 
8254
_ACEOF
 
8255
cat confdefs.h >>conftest.$ac_ext
 
8256
cat >>conftest.$ac_ext <<_ACEOF
 
8257
/* end confdefs.h.  */
 
8258
 
 
8259
/* Override any gcc2 internal prototype to avoid an error.  */
 
8260
#ifdef __cplusplus
 
8261
extern "C"
 
8262
#endif
 
8263
/* We use char because int might match the return type of a gcc2
 
8264
   builtin and then its argument prototype would still apply.  */
 
8265
char dlopen ();
 
8266
int
 
8267
main ()
 
8268
{
 
8269
dlopen ();
 
8270
  ;
 
8271
  return 0;
 
8272
}
 
8273
_ACEOF
 
8274
rm -f conftest.$ac_objext conftest$ac_exeext
 
8275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8276
  (eval $ac_link) 2>conftest.er1
 
8277
  ac_status=$?
 
8278
  grep -v '^ *+' conftest.er1 >conftest.err
 
8279
  rm -f conftest.er1
 
8280
  cat conftest.err >&5
 
8281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8282
  (exit $ac_status); } &&
 
8283
         { ac_try='test -z "$ac_c_werror_flag"
 
8284
                         || test ! -s conftest.err'
 
8285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8286
  (eval $ac_try) 2>&5
 
8287
  ac_status=$?
 
8288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8289
  (exit $ac_status); }; } &&
 
8290
         { ac_try='test -s conftest$ac_exeext'
 
8291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8292
  (eval $ac_try) 2>&5
 
8293
  ac_status=$?
 
8294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8295
  (exit $ac_status); }; }; then
 
8296
  ac_cv_lib_dl_dlopen=yes
 
8297
else
 
8298
  echo "$as_me: failed program was:" >&5
 
8299
sed 's/^/| /' conftest.$ac_ext >&5
 
8300
 
 
8301
ac_cv_lib_dl_dlopen=no
 
8302
fi
 
8303
rm -f conftest.err conftest.$ac_objext \
 
8304
      conftest$ac_exeext conftest.$ac_ext
 
8305
LIBS=$ac_check_lib_save_LIBS
 
8306
fi
 
8307
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8308
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8309
if test $ac_cv_lib_dl_dlopen = yes; then
 
8310
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8311
else
 
8312
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8313
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8314
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8316
else
 
8317
  ac_check_lib_save_LIBS=$LIBS
 
8318
LIBS="-lsvld  $LIBS"
 
8319
cat >conftest.$ac_ext <<_ACEOF
 
8320
/* confdefs.h.  */
 
8321
_ACEOF
 
8322
cat confdefs.h >>conftest.$ac_ext
 
8323
cat >>conftest.$ac_ext <<_ACEOF
 
8324
/* end confdefs.h.  */
 
8325
 
 
8326
/* Override any gcc2 internal prototype to avoid an error.  */
 
8327
#ifdef __cplusplus
 
8328
extern "C"
 
8329
#endif
 
8330
/* We use char because int might match the return type of a gcc2
 
8331
   builtin and then its argument prototype would still apply.  */
 
8332
char dlopen ();
 
8333
int
 
8334
main ()
 
8335
{
 
8336
dlopen ();
 
8337
  ;
 
8338
  return 0;
 
8339
}
 
8340
_ACEOF
 
8341
rm -f conftest.$ac_objext conftest$ac_exeext
 
8342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8343
  (eval $ac_link) 2>conftest.er1
 
8344
  ac_status=$?
 
8345
  grep -v '^ *+' conftest.er1 >conftest.err
 
8346
  rm -f conftest.er1
 
8347
  cat conftest.err >&5
 
8348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8349
  (exit $ac_status); } &&
 
8350
         { ac_try='test -z "$ac_c_werror_flag"
 
8351
                         || test ! -s conftest.err'
 
8352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8353
  (eval $ac_try) 2>&5
 
8354
  ac_status=$?
 
8355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8356
  (exit $ac_status); }; } &&
 
8357
         { ac_try='test -s conftest$ac_exeext'
 
8358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8359
  (eval $ac_try) 2>&5
 
8360
  ac_status=$?
 
8361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8362
  (exit $ac_status); }; }; then
 
8363
  ac_cv_lib_svld_dlopen=yes
 
8364
else
 
8365
  echo "$as_me: failed program was:" >&5
 
8366
sed 's/^/| /' conftest.$ac_ext >&5
 
8367
 
 
8368
ac_cv_lib_svld_dlopen=no
 
8369
fi
 
8370
rm -f conftest.err conftest.$ac_objext \
 
8371
      conftest$ac_exeext conftest.$ac_ext
 
8372
LIBS=$ac_check_lib_save_LIBS
 
8373
fi
 
8374
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8375
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8376
if test $ac_cv_lib_svld_dlopen = yes; then
 
8377
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8378
else
 
8379
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8380
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8381
if test "${ac_cv_lib_dld_dld_link+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 dld_link ();
 
8400
int
 
8401
main ()
 
8402
{
 
8403
dld_link ();
 
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"
 
8418
                         || test ! -s conftest.err'
 
8419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8420
  (eval $ac_try) 2>&5
 
8421
  ac_status=$?
 
8422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8423
  (exit $ac_status); }; } &&
 
8424
         { ac_try='test -s conftest$ac_exeext'
 
8425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8426
  (eval $ac_try) 2>&5
 
8427
  ac_status=$?
 
8428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8429
  (exit $ac_status); }; }; then
 
8430
  ac_cv_lib_dld_dld_link=yes
 
8431
else
 
8432
  echo "$as_me: failed program was:" >&5
 
8433
sed 's/^/| /' conftest.$ac_ext >&5
 
8434
 
 
8435
ac_cv_lib_dld_dld_link=no
 
8436
fi
 
8437
rm -f conftest.err conftest.$ac_objext \
 
8438
      conftest$ac_exeext conftest.$ac_ext
 
8439
LIBS=$ac_check_lib_save_LIBS
 
8440
fi
 
8441
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8442
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8443
if test $ac_cv_lib_dld_dld_link = yes; then
 
8444
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8445
fi
 
8446
 
 
8447
 
 
8448
fi
 
8449
 
 
8450
 
 
8451
fi
 
8452
 
 
8453
 
 
8454
fi
 
8455
 
 
8456
 
 
8457
fi
 
8458
 
 
8459
 
 
8460
fi
 
8461
 
 
8462
    ;;
 
8463
  esac
 
8464
 
 
8465
  if test "x$lt_cv_dlopen" != xno; then
 
8466
    enable_dlopen=yes
 
8467
  else
 
8468
    enable_dlopen=no
 
8469
  fi
 
8470
 
 
8471
  case $lt_cv_dlopen in
 
8472
  dlopen)
 
8473
    save_CPPFLAGS="$CPPFLAGS"
 
8474
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8475
 
 
8476
    save_LDFLAGS="$LDFLAGS"
 
8477
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8478
 
 
8479
    save_LIBS="$LIBS"
 
8480
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8481
 
 
8482
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8483
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8484
if test "${lt_cv_dlopen_self+set}" = set; then
 
8485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8486
else
 
8487
          if test "$cross_compiling" = yes; then :
 
8488
  lt_cv_dlopen_self=cross
 
8489
else
 
8490
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8491
  lt_status=$lt_dlunknown
 
8492
  cat > conftest.$ac_ext <<EOF
 
8493
#line 8493 "configure"
 
8494
#include "confdefs.h"
 
8495
 
 
8496
#if HAVE_DLFCN_H
 
8497
#include <dlfcn.h>
 
8498
#endif
 
8499
 
 
8500
#include <stdio.h>
 
8501
 
 
8502
#ifdef RTLD_GLOBAL
 
8503
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8504
#else
 
8505
#  ifdef DL_GLOBAL
 
8506
#    define LT_DLGLOBAL         DL_GLOBAL
 
8507
#  else
 
8508
#    define LT_DLGLOBAL         0
 
8509
#  endif
 
8510
#endif
 
8511
 
 
8512
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8513
   find out it does not work in some platform. */
 
8514
#ifndef LT_DLLAZY_OR_NOW
 
8515
#  ifdef RTLD_LAZY
 
8516
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8517
#  else
 
8518
#    ifdef DL_LAZY
 
8519
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8520
#    else
 
8521
#      ifdef RTLD_NOW
 
8522
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8523
#      else
 
8524
#        ifdef DL_NOW
 
8525
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8526
#        else
 
8527
#          define LT_DLLAZY_OR_NOW      0
 
8528
#        endif
 
8529
#      endif
 
8530
#    endif
 
8531
#  endif
 
8532
#endif
 
8533
 
 
8534
#ifdef __cplusplus
 
8535
extern "C" void exit (int);
 
8536
#endif
 
8537
 
 
8538
void fnord() { int i=42;}
 
8539
int main ()
 
8540
{
 
8541
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8542
  int status = $lt_dlunknown;
 
8543
 
 
8544
  if (self)
 
8545
    {
 
8546
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8547
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8548
      /* dlclose (self); */
 
8549
    }
 
8550
 
 
8551
    exit (status);
 
8552
}
 
8553
EOF
 
8554
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8555
  (eval $ac_link) 2>&5
 
8556
  ac_status=$?
 
8557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8558
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8559
    (./conftest; exit; ) >&5 2>/dev/null
 
8560
    lt_status=$?
 
8561
    case x$lt_status in
 
8562
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8563
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8564
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8565
    esac
 
8566
  else :
 
8567
    # compilation failed
 
8568
    lt_cv_dlopen_self=no
 
8569
  fi
 
8570
fi
 
8571
rm -fr conftest*
 
8572
 
 
8573
 
 
8574
fi
 
8575
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8576
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8577
 
 
8578
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8579
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8580
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8581
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8582
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8584
else
 
8585
          if test "$cross_compiling" = yes; then :
 
8586
  lt_cv_dlopen_self_static=cross
 
8587
else
 
8588
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8589
  lt_status=$lt_dlunknown
 
8590
  cat > conftest.$ac_ext <<EOF
 
8591
#line 8591 "configure"
 
8592
#include "confdefs.h"
 
8593
 
 
8594
#if HAVE_DLFCN_H
 
8595
#include <dlfcn.h>
 
8596
#endif
 
8597
 
 
8598
#include <stdio.h>
 
8599
 
 
8600
#ifdef RTLD_GLOBAL
 
8601
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8602
#else
 
8603
#  ifdef DL_GLOBAL
 
8604
#    define LT_DLGLOBAL         DL_GLOBAL
 
8605
#  else
 
8606
#    define LT_DLGLOBAL         0
 
8607
#  endif
 
8608
#endif
 
8609
 
 
8610
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8611
   find out it does not work in some platform. */
 
8612
#ifndef LT_DLLAZY_OR_NOW
 
8613
#  ifdef RTLD_LAZY
 
8614
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8615
#  else
 
8616
#    ifdef DL_LAZY
 
8617
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8618
#    else
 
8619
#      ifdef RTLD_NOW
 
8620
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8621
#      else
 
8622
#        ifdef DL_NOW
 
8623
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8624
#        else
 
8625
#          define LT_DLLAZY_OR_NOW      0
 
8626
#        endif
 
8627
#      endif
 
8628
#    endif
 
8629
#  endif
 
8630
#endif
 
8631
 
 
8632
#ifdef __cplusplus
 
8633
extern "C" void exit (int);
 
8634
#endif
 
8635
 
 
8636
void fnord() { int i=42;}
 
8637
int main ()
 
8638
{
 
8639
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8640
  int status = $lt_dlunknown;
 
8641
 
 
8642
  if (self)
 
8643
    {
 
8644
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8645
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8646
      /* dlclose (self); */
 
8647
    }
 
8648
 
 
8649
    exit (status);
 
8650
}
 
8651
EOF
 
8652
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8653
  (eval $ac_link) 2>&5
 
8654
  ac_status=$?
 
8655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8656
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8657
    (./conftest; exit; ) >&5 2>/dev/null
 
8658
    lt_status=$?
 
8659
    case x$lt_status in
 
8660
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8661
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8662
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8663
    esac
 
8664
  else :
 
8665
    # compilation failed
 
8666
    lt_cv_dlopen_self_static=no
 
8667
  fi
 
8668
fi
 
8669
rm -fr conftest*
 
8670
 
 
8671
 
 
8672
fi
 
8673
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8674
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8675
    fi
 
8676
 
 
8677
    CPPFLAGS="$save_CPPFLAGS"
 
8678
    LDFLAGS="$save_LDFLAGS"
 
8679
    LIBS="$save_LIBS"
 
8680
    ;;
 
8681
  esac
 
8682
 
 
8683
  case $lt_cv_dlopen_self in
 
8684
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8685
  *) enable_dlopen_self=unknown ;;
 
8686
  esac
 
8687
 
 
8688
  case $lt_cv_dlopen_self_static in
 
8689
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8690
  *) enable_dlopen_self_static=unknown ;;
 
8691
  esac
 
8692
fi
 
8693
 
 
8694
 
 
8695
# Report which librarie types wil actually be built
 
8696
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8697
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8698
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8699
echo "${ECHO_T}$can_build_shared" >&6
 
8700
 
 
8701
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8702
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
8703
test "$can_build_shared" = "no" && enable_shared=no
 
8704
 
 
8705
# On AIX, shared libraries and static libraries use the same namespace, and
 
8706
# are all built from PIC.
 
8707
case $host_os in
 
8708
aix3*)
 
8709
  test "$enable_shared" = yes && enable_static=no
 
8710
  if test -n "$RANLIB"; then
 
8711
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8712
    postinstall_cmds='$RANLIB $lib'
 
8713
  fi
 
8714
  ;;
 
8715
 
 
8716
aix4* | aix5*)
 
8717
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8718
    test "$enable_shared" = yes && enable_static=no
 
8719
  fi
 
8720
    ;;
 
8721
esac
 
8722
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
8723
echo "${ECHO_T}$enable_shared" >&6
 
8724
 
 
8725
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
8726
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
8727
# Make sure either enable_shared or enable_static is yes.
 
8728
test "$enable_shared" = yes || enable_static=yes
 
8729
echo "$as_me:$LINENO: result: $enable_static" >&5
 
8730
echo "${ECHO_T}$enable_static" >&6
 
8731
 
 
8732
# The else clause should only fire when bootstrapping the
 
8733
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
8734
# with your package, and you will get complaints that there are
 
8735
# no rules to generate ltmain.sh.
 
8736
if test -f "$ltmain"; then
 
8737
  # See if we are running on zsh, and set the options which allow our commands through
 
8738
  # without removal of \ escapes.
 
8739
  if test -n "${ZSH_VERSION+set}" ; then
 
8740
    setopt NO_GLOB_SUBST
 
8741
  fi
 
8742
  # Now quote all the things that may contain metacharacters while being
 
8743
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
8744
  # variables and quote the copies for generation of the libtool script.
 
8745
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
8746
    SED SHELL STRIP \
 
8747
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
8748
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
8749
    deplibs_check_method reload_flag reload_cmds need_locks \
 
8750
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
8751
    lt_cv_sys_global_symbol_to_c_name_address \
 
8752
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
8753
    old_postinstall_cmds old_postuninstall_cmds \
 
8754
    compiler \
 
8755
    CC \
 
8756
    LD \
 
8757
    lt_prog_compiler_wl \
 
8758
    lt_prog_compiler_pic \
 
8759
    lt_prog_compiler_static \
 
8760
    lt_prog_compiler_no_builtin_flag \
 
8761
    export_dynamic_flag_spec \
 
8762
    thread_safe_flag_spec \
 
8763
    whole_archive_flag_spec \
 
8764
    enable_shared_with_static_runtimes \
 
8765
    old_archive_cmds \
 
8766
    old_archive_from_new_cmds \
 
8767
    predep_objects \
 
8768
    postdep_objects \
 
8769
    predeps \
 
8770
    postdeps \
 
8771
    compiler_lib_search_path \
 
8772
    archive_cmds \
 
8773
    archive_expsym_cmds \
 
8774
    postinstall_cmds \
 
8775
    postuninstall_cmds \
 
8776
    old_archive_from_expsyms_cmds \
 
8777
    allow_undefined_flag \
 
8778
    no_undefined_flag \
 
8779
    export_symbols_cmds \
 
8780
    hardcode_libdir_flag_spec \
 
8781
    hardcode_libdir_flag_spec_ld \
 
8782
    hardcode_libdir_separator \
 
8783
    hardcode_automatic \
 
8784
    module_cmds \
 
8785
    module_expsym_cmds \
 
8786
    lt_cv_prog_compiler_c_o \
 
8787
    exclude_expsyms \
 
8788
    include_expsyms; do
 
8789
 
 
8790
    case $var in
 
8791
    old_archive_cmds | \
 
8792
    old_archive_from_new_cmds | \
 
8793
    archive_cmds | \
 
8794
    archive_expsym_cmds | \
 
8795
    module_cmds | \
 
8796
    module_expsym_cmds | \
 
8797
    old_archive_from_expsyms_cmds | \
 
8798
    export_symbols_cmds | \
 
8799
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
8800
    postinstall_cmds | postuninstall_cmds | \
 
8801
    old_postinstall_cmds | old_postuninstall_cmds | \
 
8802
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
8803
      # Double-quote double-evaled strings.
 
8804
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
8805
      ;;
 
8806
    *)
 
8807
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
8808
      ;;
 
8809
    esac
 
8810
  done
 
8811
 
 
8812
  case $lt_echo in
 
8813
  *'\$0 --fallback-echo"')
 
8814
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
8815
    ;;
 
8816
  esac
 
8817
 
 
8818
cfgfile="${ofile}T"
 
8819
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
8820
  $rm -f "$cfgfile"
 
8821
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
8822
echo "$as_me: creating $ofile" >&6;}
 
8823
 
 
8824
  cat <<__EOF__ >> "$cfgfile"
 
8825
#! $SHELL
 
8826
 
 
8827
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
8828
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
8829
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
8830
#
 
8831
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
8832
# Free Software Foundation, Inc.
 
8833
#
 
8834
# This file is part of GNU Libtool:
 
8835
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
8836
#
 
8837
# This program is free software; you can redistribute it and/or modify
 
8838
# it under the terms of the GNU General Public License as published by
 
8839
# the Free Software Foundation; either version 2 of the License, or
 
8840
# (at your option) any later version.
 
8841
#
 
8842
# This program is distributed in the hope that it will be useful, but
 
8843
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
8844
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
8845
# General Public License for more details.
 
8846
#
 
8847
# You should have received a copy of the GNU General Public License
 
8848
# along with this program; if not, write to the Free Software
 
8849
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
8850
#
 
8851
# As a special exception to the GNU General Public License, if you
 
8852
# distribute this file as part of a program that contains a
 
8853
# configuration script generated by Autoconf, you may include it under
 
8854
# the same distribution terms that you use for the rest of that program.
 
8855
 
 
8856
# A sed program that does not truncate output.
 
8857
SED=$lt_SED
 
8858
 
 
8859
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
8860
Xsed="$SED -e 1s/^X//"
 
8861
 
 
8862
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
8863
# if CDPATH is set.
 
8864
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
8865
 
 
8866
# The names of the tagged configurations supported by this script.
 
8867
available_tags=
 
8868
 
 
8869
# ### BEGIN LIBTOOL CONFIG
 
8870
 
 
8871
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
8872
 
 
8873
# Shell to use when invoking shell scripts.
 
8874
SHELL=$lt_SHELL
 
8875
 
 
8876
# Whether or not to build shared libraries.
 
8877
build_libtool_libs=$enable_shared
 
8878
 
 
8879
# Whether or not to build static libraries.
 
8880
build_old_libs=$enable_static
 
8881
 
 
8882
# Whether or not to add -lc for building shared libraries.
 
8883
build_libtool_need_lc=$archive_cmds_need_lc
 
8884
 
 
8885
# Whether or not to disallow shared libs when runtime libs are static
 
8886
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
8887
 
 
8888
# Whether or not to optimize for fast installation.
 
8889
fast_install=$enable_fast_install
 
8890
 
 
8891
# The host system.
 
8892
host_alias=$host_alias
 
8893
host=$host
 
8894
host_os=$host_os
 
8895
 
 
8896
# The build system.
 
8897
build_alias=$build_alias
 
8898
build=$build
 
8899
build_os=$build_os
 
8900
 
 
8901
# An echo program that does not interpret backslashes.
 
8902
echo=$lt_echo
 
8903
 
 
8904
# The archiver.
 
8905
AR=$lt_AR
 
8906
AR_FLAGS=$lt_AR_FLAGS
 
8907
 
 
8908
# A C compiler.
 
8909
LTCC=$lt_LTCC
 
8910
 
 
8911
# A language-specific compiler.
 
8912
CC=$lt_compiler
 
8913
 
 
8914
# Is the compiler the GNU C compiler?
 
8915
with_gcc=$GCC
 
8916
 
 
8917
# An ERE matcher.
 
8918
EGREP=$lt_EGREP
 
8919
 
 
8920
# The linker used to build libraries.
 
8921
LD=$lt_LD
 
8922
 
 
8923
# Whether we need hard or soft links.
 
8924
LN_S=$lt_LN_S
 
8925
 
 
8926
# A BSD-compatible nm program.
 
8927
NM=$lt_NM
 
8928
 
 
8929
# A symbol stripping program
 
8930
STRIP=$lt_STRIP
 
8931
 
 
8932
# Used to examine libraries when file_magic_cmd begins "file"
 
8933
MAGIC_CMD=$MAGIC_CMD
 
8934
 
 
8935
# Used on cygwin: DLL creation program.
 
8936
DLLTOOL="$DLLTOOL"
 
8937
 
 
8938
# Used on cygwin: object dumper.
 
8939
OBJDUMP="$OBJDUMP"
 
8940
 
 
8941
# Used on cygwin: assembler.
 
8942
AS="$AS"
 
8943
 
 
8944
# The name of the directory that contains temporary libtool files.
 
8945
objdir=$objdir
 
8946
 
 
8947
# How to create reloadable object files.
 
8948
reload_flag=$lt_reload_flag
 
8949
reload_cmds=$lt_reload_cmds
 
8950
 
 
8951
# How to pass a linker flag through the compiler.
 
8952
wl=$lt_lt_prog_compiler_wl
 
8953
 
 
8954
# Object file suffix (normally "o").
 
8955
objext="$ac_objext"
 
8956
 
 
8957
# Old archive suffix (normally "a").
 
8958
libext="$libext"
 
8959
 
 
8960
# Shared library suffix (normally ".so").
 
8961
shrext_cmds='$shrext_cmds'
 
8962
 
 
8963
# Executable file suffix (normally "").
 
8964
exeext="$exeext"
 
8965
 
 
8966
# Additional compiler flags for building library objects.
 
8967
pic_flag=$lt_lt_prog_compiler_pic
 
8968
pic_mode=$pic_mode
 
8969
 
 
8970
# What is the maximum length of a command?
 
8971
max_cmd_len=$lt_cv_sys_max_cmd_len
 
8972
 
 
8973
# Does compiler simultaneously support -c and -o options?
 
8974
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
8975
 
 
8976
# Must we lock files when doing compilation?
 
8977
need_locks=$lt_need_locks
 
8978
 
 
8979
# Do we need the lib prefix for modules?
 
8980
need_lib_prefix=$need_lib_prefix
 
8981
 
 
8982
# Do we need a version for libraries?
 
8983
need_version=$need_version
 
8984
 
 
8985
# Whether dlopen is supported.
 
8986
dlopen_support=$enable_dlopen
 
8987
 
 
8988
# Whether dlopen of programs is supported.
 
8989
dlopen_self=$enable_dlopen_self
 
8990
 
 
8991
# Whether dlopen of statically linked programs is supported.
 
8992
dlopen_self_static=$enable_dlopen_self_static
 
8993
 
 
8994
# Compiler flag to prevent dynamic linking.
 
8995
link_static_flag=$lt_lt_prog_compiler_static
 
8996
 
 
8997
# Compiler flag to turn off builtin functions.
 
8998
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
8999
 
 
9000
# Compiler flag to allow reflexive dlopens.
 
9001
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9002
 
 
9003
# Compiler flag to generate shared objects directly from archives.
 
9004
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9005
 
 
9006
# Compiler flag to generate thread-safe objects.
 
9007
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9008
 
 
9009
# Library versioning type.
 
9010
version_type=$version_type
 
9011
 
 
9012
# Format of library name prefix.
 
9013
libname_spec=$lt_libname_spec
 
9014
 
 
9015
# List of archive names.  First name is the real one, the rest are links.
 
9016
# The last name is the one that the linker finds with -lNAME.
 
9017
library_names_spec=$lt_library_names_spec
 
9018
 
 
9019
# The coded name of the library, if different from the real name.
 
9020
soname_spec=$lt_soname_spec
 
9021
 
 
9022
# Commands used to build and install an old-style archive.
 
9023
RANLIB=$lt_RANLIB
 
9024
old_archive_cmds=$lt_old_archive_cmds
 
9025
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9026
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9027
 
 
9028
# Create an old-style archive from a shared archive.
 
9029
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9030
 
 
9031
# Create a temporary old-style archive to link instead of a shared archive.
 
9032
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9033
 
 
9034
# Commands used to build and install a shared archive.
 
9035
archive_cmds=$lt_archive_cmds
 
9036
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9037
postinstall_cmds=$lt_postinstall_cmds
 
9038
postuninstall_cmds=$lt_postuninstall_cmds
 
9039
 
 
9040
# Commands used to build a loadable module (assumed same as above if empty)
 
9041
module_cmds=$lt_module_cmds
 
9042
module_expsym_cmds=$lt_module_expsym_cmds
 
9043
 
 
9044
# Commands to strip libraries.
 
9045
old_striplib=$lt_old_striplib
 
9046
striplib=$lt_striplib
 
9047
 
 
9048
# Dependencies to place before the objects being linked to create a
 
9049
# shared library.
 
9050
predep_objects=$lt_predep_objects
 
9051
 
 
9052
# Dependencies to place after the objects being linked to create a
 
9053
# shared library.
 
9054
postdep_objects=$lt_postdep_objects
 
9055
 
 
9056
# Dependencies to place before the objects being linked to create a
 
9057
# shared library.
 
9058
predeps=$lt_predeps
 
9059
 
 
9060
# Dependencies to place after the objects being linked to create a
 
9061
# shared library.
 
9062
postdeps=$lt_postdeps
 
9063
 
 
9064
# The library search path used internally by the compiler when linking
 
9065
# a shared library.
 
9066
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9067
 
 
9068
# Method to check whether dependent libraries are shared objects.
 
9069
deplibs_check_method=$lt_deplibs_check_method
 
9070
 
 
9071
# Command to use when deplibs_check_method == file_magic.
 
9072
file_magic_cmd=$lt_file_magic_cmd
 
9073
 
 
9074
# Flag that allows shared libraries with undefined symbols to be built.
 
9075
allow_undefined_flag=$lt_allow_undefined_flag
 
9076
 
 
9077
# Flag that forces no undefined symbols.
 
9078
no_undefined_flag=$lt_no_undefined_flag
 
9079
 
 
9080
# Commands used to finish a libtool library installation in a directory.
 
9081
finish_cmds=$lt_finish_cmds
 
9082
 
 
9083
# Same as above, but a single script fragment to be evaled but not shown.
 
9084
finish_eval=$lt_finish_eval
 
9085
 
 
9086
# Take the output of nm and produce a listing of raw symbols and C names.
 
9087
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9088
 
 
9089
# Transform the output of nm in a proper C declaration
 
9090
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9091
 
 
9092
# Transform the output of nm in a C name address pair
 
9093
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9094
 
 
9095
# This is the shared library runtime path variable.
 
9096
runpath_var=$runpath_var
 
9097
 
 
9098
# This is the shared library path variable.
 
9099
shlibpath_var=$shlibpath_var
 
9100
 
 
9101
# Is shlibpath searched before the hard-coded library search path?
 
9102
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9103
 
 
9104
# How to hardcode a shared library path into an executable.
 
9105
hardcode_action=$hardcode_action
 
9106
 
 
9107
# Whether we should hardcode library paths into libraries.
 
9108
hardcode_into_libs=$hardcode_into_libs
 
9109
 
 
9110
# Flag to hardcode \$libdir into a binary during linking.
 
9111
# This must work even if \$libdir does not exist.
 
9112
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9113
 
 
9114
# If ld is used when linking, flag to hardcode \$libdir into
 
9115
# a binary during linking. This must work even if \$libdir does
 
9116
# not exist.
 
9117
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9118
 
 
9119
# Whether we need a single -rpath flag with a separated argument.
 
9120
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9121
 
 
9122
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9123
# resulting binary.
 
9124
hardcode_direct=$hardcode_direct
 
9125
 
 
9126
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9127
# resulting binary.
 
9128
hardcode_minus_L=$hardcode_minus_L
 
9129
 
 
9130
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9131
# the resulting binary.
 
9132
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9133
 
 
9134
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9135
# and all subsequent libraries and executables linked against it.
 
9136
hardcode_automatic=$hardcode_automatic
 
9137
 
 
9138
# Variables whose values should be saved in libtool wrapper scripts and
 
9139
# restored at relink time.
 
9140
variables_saved_for_relink="$variables_saved_for_relink"
 
9141
 
 
9142
# Whether libtool must link a program against all its dependency libraries.
 
9143
link_all_deplibs=$link_all_deplibs
 
9144
 
 
9145
# Compile-time system search path for libraries
 
9146
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9147
 
 
9148
# Run-time system search path for libraries
 
9149
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9150
 
 
9151
# Fix the shell variable \$srcfile for the compiler.
 
9152
fix_srcfile_path="$fix_srcfile_path"
 
9153
 
 
9154
# Set to yes if exported symbols are required.
 
9155
always_export_symbols=$always_export_symbols
 
9156
 
 
9157
# The commands to list exported symbols.
 
9158
export_symbols_cmds=$lt_export_symbols_cmds
 
9159
 
 
9160
# The commands to extract the exported symbol list from a shared archive.
 
9161
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9162
 
 
9163
# Symbols that should not be listed in the preloaded symbols.
 
9164
exclude_expsyms=$lt_exclude_expsyms
 
9165
 
 
9166
# Symbols that must always be exported.
 
9167
include_expsyms=$lt_include_expsyms
 
9168
 
 
9169
# ### END LIBTOOL CONFIG
 
9170
 
 
9171
__EOF__
 
9172
 
 
9173
 
 
9174
  case $host_os in
 
9175
  aix3*)
 
9176
    cat <<\EOF >> "$cfgfile"
 
9177
 
 
9178
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9179
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9180
# vanish in a puff of smoke.
 
9181
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9182
  COLLECT_NAMES=
 
9183
  export COLLECT_NAMES
 
9184
fi
 
9185
EOF
 
9186
    ;;
 
9187
  esac
 
9188
 
 
9189
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9190
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9191
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9192
  # is reportedly fixed, but why not run on old versions too?
 
9193
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9194
 
 
9195
  mv -f "$cfgfile" "$ofile" || \
 
9196
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9197
  chmod +x "$ofile"
 
9198
 
 
9199
else
 
9200
  # If there is no Makefile yet, we rely on a make rule to execute
 
9201
  # `config.status --recheck' to rerun these tests and create the
 
9202
  # libtool script then.
 
9203
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9204
  if test -f "$ltmain_in"; then
 
9205
    test -f Makefile && make "$ltmain"
 
9206
  fi
 
9207
fi
 
9208
 
 
9209
 
 
9210
ac_ext=c
 
9211
ac_cpp='$CPP $CPPFLAGS'
 
9212
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9213
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9214
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9215
 
 
9216
CC="$lt_save_CC"
 
9217
 
 
9218
 
 
9219
# Check whether --with-tags or --without-tags was given.
 
9220
if test "${with_tags+set}" = set; then
 
9221
  withval="$with_tags"
 
9222
  tagnames="$withval"
 
9223
fi;
 
9224
 
 
9225
if test -f "$ltmain" && test -n "$tagnames"; then
 
9226
  if test ! -f "${ofile}"; then
 
9227
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9228
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9229
  fi
 
9230
 
 
9231
  if test -z "$LTCC"; then
 
9232
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9233
    if test -z "$LTCC"; then
 
9234
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9235
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9236
    else
 
9237
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9238
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9239
    fi
 
9240
  fi
 
9241
 
 
9242
  # Extract list of available tagged configurations in $ofile.
 
9243
  # Note that this assumes the entire list is on one line.
 
9244
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9245
 
 
9246
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9247
  for tagname in $tagnames; do
 
9248
    IFS="$lt_save_ifs"
 
9249
    # Check whether tagname contains only valid characters
 
9250
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9251
    "") ;;
 
9252
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9253
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9254
   { (exit 1); exit 1; }; }
 
9255
        ;;
 
9256
    esac
 
9257
 
 
9258
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9259
    then
 
9260
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9261
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9262
   { (exit 1); exit 1; }; }
 
9263
    fi
 
9264
 
 
9265
    # Update the list of available tags.
 
9266
    if test -n "$tagname"; then
 
9267
      echo appending configuration tag \"$tagname\" to $ofile
 
9268
 
 
9269
      case $tagname in
 
9270
      CXX)
 
9271
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9272
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9273
            (test "X$CXX" != "Xg++"))) ; then
 
9274
          ac_ext=cc
 
9275
ac_cpp='$CXXCPP $CPPFLAGS'
 
9276
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9277
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9278
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9279
 
 
9280
 
 
9281
 
 
9282
 
 
9283
archive_cmds_need_lc_CXX=no
 
9284
allow_undefined_flag_CXX=
 
9285
always_export_symbols_CXX=no
 
9286
archive_expsym_cmds_CXX=
 
9287
export_dynamic_flag_spec_CXX=
 
9288
hardcode_direct_CXX=no
 
9289
hardcode_libdir_flag_spec_CXX=
 
9290
hardcode_libdir_flag_spec_ld_CXX=
 
9291
hardcode_libdir_separator_CXX=
 
9292
hardcode_minus_L_CXX=no
 
9293
hardcode_automatic_CXX=no
 
9294
module_cmds_CXX=
 
9295
module_expsym_cmds_CXX=
 
9296
link_all_deplibs_CXX=unknown
 
9297
old_archive_cmds_CXX=$old_archive_cmds
 
9298
no_undefined_flag_CXX=
 
9299
whole_archive_flag_spec_CXX=
 
9300
enable_shared_with_static_runtimes_CXX=no
 
9301
 
 
9302
# Dependencies to place before and after the object being linked:
 
9303
predep_objects_CXX=
 
9304
postdep_objects_CXX=
 
9305
predeps_CXX=
 
9306
postdeps_CXX=
 
9307
compiler_lib_search_path_CXX=
 
9308
 
 
9309
# Source file extension for C++ test sources.
 
9310
ac_ext=cpp
 
9311
 
 
9312
# Object file extension for compiled C++ test sources.
 
9313
objext=o
 
9314
objext_CXX=$objext
 
9315
 
 
9316
# Code to be used in simple compile tests
 
9317
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9318
 
 
9319
# Code to be used in simple link tests
 
9320
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9321
 
 
9322
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9323
 
 
9324
# If no C compiler was specified, use CC.
 
9325
LTCC=${LTCC-"$CC"}
 
9326
 
 
9327
# Allow CC to be a program name with arguments.
 
9328
compiler=$CC
 
9329
 
 
9330
 
 
9331
# save warnings/boilerplate of simple test code
 
9332
ac_outfile=conftest.$ac_objext
 
9333
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9334
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9335
_lt_compiler_boilerplate=`cat conftest.err`
 
9336
$rm conftest*
 
9337
 
 
9338
ac_outfile=conftest.$ac_objext
 
9339
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9340
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9341
_lt_linker_boilerplate=`cat conftest.err`
 
9342
$rm conftest*
 
9343
 
 
9344
 
 
9345
# Allow CC to be a program name with arguments.
 
9346
lt_save_CC=$CC
 
9347
lt_save_LD=$LD
 
9348
lt_save_GCC=$GCC
 
9349
GCC=$GXX
 
9350
lt_save_with_gnu_ld=$with_gnu_ld
 
9351
lt_save_path_LD=$lt_cv_path_LD
 
9352
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9353
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9354
else
 
9355
  unset lt_cv_prog_gnu_ld
 
9356
fi
 
9357
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9358
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9359
else
 
9360
  unset lt_cv_path_LD
 
9361
fi
 
9362
test -z "${LDCXX+set}" || LD=$LDCXX
 
9363
CC=${CXX-"c++"}
 
9364
compiler=$CC
 
9365
compiler_CXX=$CC
 
9366
for cc_temp in $compiler""; do
 
9367
  case $cc_temp in
 
9368
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9369
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9370
    \-*) ;;
 
9371
    *) break;;
 
9372
  esac
 
9373
done
 
9374
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9375
 
 
9376
 
 
9377
# We don't want -fno-exception wen compiling C++ code, so set the
 
9378
# no_builtin_flag separately
 
9379
if test "$GXX" = yes; then
 
9380
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9381
else
 
9382
  lt_prog_compiler_no_builtin_flag_CXX=
 
9383
fi
 
9384
 
 
9385
if test "$GXX" = yes; then
 
9386
  # Set up default GNU C++ configuration
 
9387
 
 
9388
 
 
9389
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9390
if test "${with_gnu_ld+set}" = set; then
 
9391
  withval="$with_gnu_ld"
 
9392
  test "$withval" = no || with_gnu_ld=yes
 
9393
else
 
9394
  with_gnu_ld=no
 
9395
fi;
 
9396
ac_prog=ld
 
9397
if test "$GCC" = yes; then
 
9398
  # Check if gcc -print-prog-name=ld gives a path.
 
9399
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9400
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9401
  case $host in
 
9402
  *-*-mingw*)
 
9403
    # gcc leaves a trailing carriage return which upsets mingw
 
9404
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9405
  *)
 
9406
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9407
  esac
 
9408
  case $ac_prog in
 
9409
    # Accept absolute paths.
 
9410
    [\\/]* | ?:[\\/]*)
 
9411
      re_direlt='/[^/][^/]*/\.\./'
 
9412
      # Canonicalize the pathname of ld
 
9413
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9414
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9415
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9416
      done
 
9417
      test -z "$LD" && LD="$ac_prog"
 
9418
      ;;
 
9419
  "")
 
9420
    # If it fails, then pretend we aren't using GCC.
 
9421
    ac_prog=ld
 
9422
    ;;
 
9423
  *)
 
9424
    # If it is relative, then search for the first ld in PATH.
 
9425
    with_gnu_ld=unknown
 
9426
    ;;
 
9427
  esac
 
9428
elif test "$with_gnu_ld" = yes; then
 
9429
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9430
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9431
else
 
9432
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9433
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9434
fi
 
9435
if test "${lt_cv_path_LD+set}" = set; then
 
9436
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9437
else
 
9438
  if test -z "$LD"; then
 
9439
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9440
  for ac_dir in $PATH; do
 
9441
    IFS="$lt_save_ifs"
 
9442
    test -z "$ac_dir" && ac_dir=.
 
9443
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9444
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9445
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9446
      # but apparently some variants of GNU ld only accept -v.
 
9447
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9448
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9449
      *GNU* | *'with BFD'*)
 
9450
        test "$with_gnu_ld" != no && break
 
9451
        ;;
 
9452
      *)
 
9453
        test "$with_gnu_ld" != yes && break
 
9454
        ;;
 
9455
      esac
 
9456
    fi
 
9457
  done
 
9458
  IFS="$lt_save_ifs"
 
9459
else
 
9460
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9461
fi
 
9462
fi
 
9463
 
 
9464
LD="$lt_cv_path_LD"
 
9465
if test -n "$LD"; then
 
9466
  echo "$as_me:$LINENO: result: $LD" >&5
 
9467
echo "${ECHO_T}$LD" >&6
 
9468
else
 
9469
  echo "$as_me:$LINENO: result: no" >&5
 
9470
echo "${ECHO_T}no" >&6
 
9471
fi
 
9472
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9473
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9474
   { (exit 1); exit 1; }; }
 
9475
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9476
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9477
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9479
else
 
9480
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
9481
case `$LD -v 2>&1 </dev/null` in
 
9482
*GNU* | *'with BFD'*)
 
9483
  lt_cv_prog_gnu_ld=yes
 
9484
  ;;
 
9485
*)
 
9486
  lt_cv_prog_gnu_ld=no
 
9487
  ;;
 
9488
esac
 
9489
fi
 
9490
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9491
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9492
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9493
 
 
9494
 
 
9495
 
 
9496
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9497
  # archiving commands below assume that GNU ld is being used.
 
9498
  if test "$with_gnu_ld" = yes; then
 
9499
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9500
    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'
 
9501
 
 
9502
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9503
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9504
 
 
9505
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9506
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9507
    #     investigate it a little bit more. (MM)
 
9508
    wlarc='${wl}'
 
9509
 
 
9510
    # ancient GNU ld didn't support --whole-archive et. al.
 
9511
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9512
        grep 'no-whole-archive' > /dev/null; then
 
9513
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9514
    else
 
9515
      whole_archive_flag_spec_CXX=
 
9516
    fi
 
9517
  else
 
9518
    with_gnu_ld=no
 
9519
    wlarc=
 
9520
 
 
9521
    # A generic and very simple default shared library creation
 
9522
    # command for GNU C++ for the case where it uses the native
 
9523
    # linker, instead of GNU ld.  If possible, this setting should
 
9524
    # overridden to take advantage of the native linker features on
 
9525
    # the platform it is being used on.
 
9526
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9527
  fi
 
9528
 
 
9529
  # Commands to make compiler produce verbose output that lists
 
9530
  # what "hidden" libraries, object files and flags are used when
 
9531
  # linking a shared library.
 
9532
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9533
 
 
9534
else
 
9535
  GXX=no
 
9536
  with_gnu_ld=no
 
9537
  wlarc=
 
9538
fi
 
9539
 
 
9540
# PORTME: fill in a description of your system's C++ link characteristics
 
9541
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9542
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9543
ld_shlibs_CXX=yes
 
9544
case $host_os in
 
9545
  aix3*)
 
9546
    # FIXME: insert proper C++ library support
 
9547
    ld_shlibs_CXX=no
 
9548
    ;;
 
9549
  aix4* | aix5*)
 
9550
    if test "$host_cpu" = ia64; then
 
9551
      # On IA64, the linker does run time linking by default, so we don't
 
9552
      # have to do anything special.
 
9553
      aix_use_runtimelinking=no
 
9554
      exp_sym_flag='-Bexport'
 
9555
      no_entry_flag=""
 
9556
    else
 
9557
      aix_use_runtimelinking=no
 
9558
 
 
9559
      # Test if we are trying to use run time linking or normal
 
9560
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9561
      # need to do runtime linking.
 
9562
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9563
        for ld_flag in $LDFLAGS; do
 
9564
          case $ld_flag in
 
9565
          *-brtl*)
 
9566
            aix_use_runtimelinking=yes
 
9567
            break
 
9568
            ;;
 
9569
          esac
 
9570
        done
 
9571
      esac
 
9572
 
 
9573
      exp_sym_flag='-bexport'
 
9574
      no_entry_flag='-bnoentry'
 
9575
    fi
 
9576
 
 
9577
    # When large executables or shared objects are built, AIX ld can
 
9578
    # have problems creating the table of contents.  If linking a library
 
9579
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9580
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9581
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9582
 
 
9583
    archive_cmds_CXX=''
 
9584
    hardcode_direct_CXX=yes
 
9585
    hardcode_libdir_separator_CXX=':'
 
9586
    link_all_deplibs_CXX=yes
 
9587
 
 
9588
    if test "$GXX" = yes; then
 
9589
      case $host_os in aix4.[012]|aix4.[012].*)
 
9590
      # We only want to do this on AIX 4.2 and lower, the check
 
9591
      # below for broken collect2 doesn't work under 4.3+
 
9592
        collect2name=`${CC} -print-prog-name=collect2`
 
9593
        if test -f "$collect2name" && \
 
9594
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9595
        then
 
9596
          # We have reworked collect2
 
9597
          hardcode_direct_CXX=yes
 
9598
        else
 
9599
          # We have old collect2
 
9600
          hardcode_direct_CXX=unsupported
 
9601
          # It fails to find uninstalled libraries when the uninstalled
 
9602
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9603
          # to unsupported forces relinking
 
9604
          hardcode_minus_L_CXX=yes
 
9605
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9606
          hardcode_libdir_separator_CXX=
 
9607
        fi
 
9608
      esac
 
9609
      shared_flag='-shared'
 
9610
      if test "$aix_use_runtimelinking" = yes; then
 
9611
        shared_flag="$shared_flag "'${wl}-G'
 
9612
      fi
 
9613
    else
 
9614
      # not using gcc
 
9615
      if test "$host_cpu" = ia64; then
 
9616
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9617
        # chokes on -Wl,-G. The following line is correct:
 
9618
        shared_flag='-G'
 
9619
      else
 
9620
        if test "$aix_use_runtimelinking" = yes; then
 
9621
          shared_flag='${wl}-G'
 
9622
        else
 
9623
          shared_flag='${wl}-bM:SRE'
 
9624
        fi
 
9625
      fi
 
9626
    fi
 
9627
 
 
9628
    # It seems that -bexpall does not export symbols beginning with
 
9629
    # underscore (_), so it is better to generate a list of symbols to export.
 
9630
    always_export_symbols_CXX=yes
 
9631
    if test "$aix_use_runtimelinking" = yes; then
 
9632
      # Warning - without using the other runtime loading flags (-brtl),
 
9633
      # -berok will link without error, but may produce a broken library.
 
9634
      allow_undefined_flag_CXX='-berok'
 
9635
      # Determine the default libpath from the value encoded in an empty executable.
 
9636
      cat >conftest.$ac_ext <<_ACEOF
 
9637
/* confdefs.h.  */
 
9638
_ACEOF
 
9639
cat confdefs.h >>conftest.$ac_ext
 
9640
cat >>conftest.$ac_ext <<_ACEOF
 
9641
/* end confdefs.h.  */
 
9642
 
 
9643
int
 
9644
main ()
 
9645
{
 
9646
 
 
9647
  ;
 
9648
  return 0;
 
9649
}
 
9650
_ACEOF
 
9651
rm -f conftest.$ac_objext conftest$ac_exeext
 
9652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9653
  (eval $ac_link) 2>conftest.er1
 
9654
  ac_status=$?
 
9655
  grep -v '^ *+' conftest.er1 >conftest.err
 
9656
  rm -f conftest.er1
 
9657
  cat conftest.err >&5
 
9658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9659
  (exit $ac_status); } &&
 
9660
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9661
                         || test ! -s conftest.err'
 
9662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9663
  (eval $ac_try) 2>&5
 
9664
  ac_status=$?
 
9665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9666
  (exit $ac_status); }; } &&
 
9667
         { ac_try='test -s conftest$ac_exeext'
 
9668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9669
  (eval $ac_try) 2>&5
 
9670
  ac_status=$?
 
9671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9672
  (exit $ac_status); }; }; then
 
9673
 
 
9674
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9675
}'`
 
9676
# Check for a 64-bit object if we didn't find anything.
 
9677
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; }
 
9678
}'`; fi
 
9679
else
 
9680
  echo "$as_me: failed program was:" >&5
 
9681
sed 's/^/| /' conftest.$ac_ext >&5
 
9682
 
 
9683
fi
 
9684
rm -f conftest.err conftest.$ac_objext \
 
9685
      conftest$ac_exeext conftest.$ac_ext
 
9686
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9687
 
 
9688
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9689
 
 
9690
      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"
 
9691
     else
 
9692
      if test "$host_cpu" = ia64; then
 
9693
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
9694
        allow_undefined_flag_CXX="-z nodefs"
 
9695
        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"
 
9696
      else
 
9697
        # Determine the default libpath from the value encoded in an empty executable.
 
9698
        cat >conftest.$ac_ext <<_ACEOF
 
9699
/* confdefs.h.  */
 
9700
_ACEOF
 
9701
cat confdefs.h >>conftest.$ac_ext
 
9702
cat >>conftest.$ac_ext <<_ACEOF
 
9703
/* end confdefs.h.  */
 
9704
 
 
9705
int
 
9706
main ()
 
9707
{
 
9708
 
 
9709
  ;
 
9710
  return 0;
 
9711
}
 
9712
_ACEOF
 
9713
rm -f conftest.$ac_objext conftest$ac_exeext
 
9714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9715
  (eval $ac_link) 2>conftest.er1
 
9716
  ac_status=$?
 
9717
  grep -v '^ *+' conftest.er1 >conftest.err
 
9718
  rm -f conftest.er1
 
9719
  cat conftest.err >&5
 
9720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9721
  (exit $ac_status); } &&
 
9722
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9723
                         || test ! -s conftest.err'
 
9724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9725
  (eval $ac_try) 2>&5
 
9726
  ac_status=$?
 
9727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9728
  (exit $ac_status); }; } &&
 
9729
         { ac_try='test -s conftest$ac_exeext'
 
9730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9731
  (eval $ac_try) 2>&5
 
9732
  ac_status=$?
 
9733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9734
  (exit $ac_status); }; }; then
 
9735
 
 
9736
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9737
}'`
 
9738
# Check for a 64-bit object if we didn't find anything.
 
9739
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; }
 
9740
}'`; fi
 
9741
else
 
9742
  echo "$as_me: failed program was:" >&5
 
9743
sed 's/^/| /' conftest.$ac_ext >&5
 
9744
 
 
9745
fi
 
9746
rm -f conftest.err conftest.$ac_objext \
 
9747
      conftest$ac_exeext conftest.$ac_ext
 
9748
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9749
 
 
9750
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9751
        # Warning - without using the other run time loading flags,
 
9752
        # -berok will link without error, but may produce a broken library.
 
9753
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
9754
        allow_undefined_flag_CXX=' ${wl}-berok'
 
9755
        # -bexpall does not export symbols beginning with underscore (_)
 
9756
        always_export_symbols_CXX=yes
 
9757
        # Exported symbols can be pulled into shared objects from archives
 
9758
        whole_archive_flag_spec_CXX=' '
 
9759
        archive_cmds_need_lc_CXX=yes
 
9760
        # This is similar to how AIX traditionally builds its shared libraries.
 
9761
        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'
 
9762
      fi
 
9763
    fi
 
9764
    ;;
 
9765
  chorus*)
 
9766
    case $cc_basename in
 
9767
      *)
 
9768
        # FIXME: insert proper C++ library support
 
9769
        ld_shlibs_CXX=no
 
9770
        ;;
 
9771
    esac
 
9772
    ;;
 
9773
 
 
9774
 
 
9775
  cygwin* | mingw* | pw32*)
 
9776
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
9777
    # as there is no search path for DLLs.
 
9778
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9779
    allow_undefined_flag_CXX=unsupported
 
9780
    always_export_symbols_CXX=no
 
9781
    enable_shared_with_static_runtimes_CXX=yes
 
9782
 
 
9783
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
9784
      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'
 
9785
      # If the export-symbols file already is a .def file (1st line
 
9786
      # is EXPORTS), use it as is; otherwise, prepend...
 
9787
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
9788
        cp $export_symbols $output_objdir/$soname.def;
 
9789
      else
 
9790
        echo EXPORTS > $output_objdir/$soname.def;
 
9791
        cat $export_symbols >> $output_objdir/$soname.def;
 
9792
      fi~
 
9793
      $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'
 
9794
    else
 
9795
      ld_shlibs_CXX=no
 
9796
    fi
 
9797
  ;;
 
9798
      darwin* | rhapsody*)
 
9799
        case $host_os in
 
9800
        rhapsody* | darwin1.[012])
 
9801
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
9802
         ;;
 
9803
       *) # Darwin 1.3 on
 
9804
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9805
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9806
         else
 
9807
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
9808
             10.[012])
 
9809
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9810
               ;;
 
9811
             10.*)
 
9812
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
9813
               ;;
 
9814
           esac
 
9815
         fi
 
9816
         ;;
 
9817
        esac
 
9818
      archive_cmds_need_lc_CXX=no
 
9819
      hardcode_direct_CXX=no
 
9820
      hardcode_automatic_CXX=yes
 
9821
      hardcode_shlibpath_var_CXX=unsupported
 
9822
      whole_archive_flag_spec_CXX=''
 
9823
      link_all_deplibs_CXX=yes
 
9824
 
 
9825
    if test "$GXX" = yes ; then
 
9826
      lt_int_apple_cc_single_mod=no
 
9827
      output_verbose_link_cmd='echo'
 
9828
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
9829
       lt_int_apple_cc_single_mod=yes
 
9830
      fi
 
9831
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9832
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9833
      else
 
9834
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9835
        fi
 
9836
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9837
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
9838
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9839
            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}'
 
9840
          else
 
9841
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9842
          fi
 
9843
            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}'
 
9844
      else
 
9845
      case $cc_basename in
 
9846
        xlc*)
 
9847
         output_verbose_link_cmd='echo'
 
9848
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
9849
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9850
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
9851
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9852
          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}'
 
9853
          ;;
 
9854
       *)
 
9855
         ld_shlibs_CXX=no
 
9856
          ;;
 
9857
      esac
 
9858
      fi
 
9859
        ;;
 
9860
 
 
9861
  dgux*)
 
9862
    case $cc_basename in
 
9863
      ec++*)
 
9864
        # FIXME: insert proper C++ library support
 
9865
        ld_shlibs_CXX=no
 
9866
        ;;
 
9867
      ghcx*)
 
9868
        # Green Hills C++ Compiler
 
9869
        # FIXME: insert proper C++ library support
 
9870
        ld_shlibs_CXX=no
 
9871
        ;;
 
9872
      *)
 
9873
        # FIXME: insert proper C++ library support
 
9874
        ld_shlibs_CXX=no
 
9875
        ;;
 
9876
    esac
 
9877
    ;;
 
9878
  freebsd[12]*)
 
9879
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
9880
    ld_shlibs_CXX=no
 
9881
    ;;
 
9882
  freebsd-elf*)
 
9883
    archive_cmds_need_lc_CXX=no
 
9884
    ;;
 
9885
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
9886
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
9887
    # conventions
 
9888
    ld_shlibs_CXX=yes
 
9889
    ;;
 
9890
  gnu*)
 
9891
    ;;
 
9892
  hpux9*)
 
9893
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9894
    hardcode_libdir_separator_CXX=:
 
9895
    export_dynamic_flag_spec_CXX='${wl}-E'
 
9896
    hardcode_direct_CXX=yes
 
9897
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9898
                                # but as the default
 
9899
                                # location of the library.
 
9900
 
 
9901
    case $cc_basename in
 
9902
    CC*)
 
9903
      # FIXME: insert proper C++ library support
 
9904
      ld_shlibs_CXX=no
 
9905
      ;;
 
9906
    aCC*)
 
9907
      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'
 
9908
      # Commands to make compiler produce verbose output that lists
 
9909
      # what "hidden" libraries, object files and flags are used when
 
9910
      # linking a shared library.
 
9911
      #
 
9912
      # There doesn't appear to be a way to prevent this compiler from
 
9913
      # explicitly linking system object files so we need to strip them
 
9914
      # from the output so that they don't get included in the library
 
9915
      # dependencies.
 
9916
      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'
 
9917
      ;;
 
9918
    *)
 
9919
      if test "$GXX" = yes; then
 
9920
        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'
 
9921
      else
 
9922
        # FIXME: insert proper C++ library support
 
9923
        ld_shlibs_CXX=no
 
9924
      fi
 
9925
      ;;
 
9926
    esac
 
9927
    ;;
 
9928
  hpux10*|hpux11*)
 
9929
    if test $with_gnu_ld = no; then
 
9930
      case $host_cpu in
 
9931
      hppa*64*)
 
9932
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9933
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
9934
        hardcode_libdir_separator_CXX=:
 
9935
        ;;
 
9936
      ia64*)
 
9937
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9938
        ;;
 
9939
      *)
 
9940
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9941
        hardcode_libdir_separator_CXX=:
 
9942
        export_dynamic_flag_spec_CXX='${wl}-E'
 
9943
        ;;
 
9944
      esac
 
9945
    fi
 
9946
    case $host_cpu in
 
9947
    hppa*64*)
 
9948
      hardcode_direct_CXX=no
 
9949
      hardcode_shlibpath_var_CXX=no
 
9950
      ;;
 
9951
    ia64*)
 
9952
      hardcode_direct_CXX=no
 
9953
      hardcode_shlibpath_var_CXX=no
 
9954
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9955
                                              # but as the default
 
9956
                                              # location of the library.
 
9957
      ;;
 
9958
    *)
 
9959
      hardcode_direct_CXX=yes
 
9960
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9961
                                              # but as the default
 
9962
                                              # location of the library.
 
9963
      ;;
 
9964
    esac
 
9965
 
 
9966
    case $cc_basename in
 
9967
      CC*)
 
9968
        # FIXME: insert proper C++ library support
 
9969
        ld_shlibs_CXX=no
 
9970
        ;;
 
9971
      aCC*)
 
9972
        case $host_cpu in
 
9973
        hppa*64*|ia64*)
 
9974
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9975
          ;;
 
9976
        *)
 
9977
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9978
          ;;
 
9979
        esac
 
9980
        # Commands to make compiler produce verbose output that lists
 
9981
        # what "hidden" libraries, object files and flags are used when
 
9982
        # linking a shared library.
 
9983
        #
 
9984
        # There doesn't appear to be a way to prevent this compiler from
 
9985
        # explicitly linking system object files so we need to strip them
 
9986
        # from the output so that they don't get included in the library
 
9987
        # dependencies.
 
9988
        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'
 
9989
        ;;
 
9990
      *)
 
9991
        if test "$GXX" = yes; then
 
9992
          if test $with_gnu_ld = no; then
 
9993
            case $host_cpu in
 
9994
            ia64*|hppa*64*)
 
9995
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
9996
              ;;
 
9997
            *)
 
9998
              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'
 
9999
              ;;
 
10000
            esac
 
10001
          fi
 
10002
        else
 
10003
          # FIXME: insert proper C++ library support
 
10004
          ld_shlibs_CXX=no
 
10005
        fi
 
10006
        ;;
 
10007
    esac
 
10008
    ;;
 
10009
  irix5* | irix6*)
 
10010
    case $cc_basename in
 
10011
      CC*)
 
10012
        # SGI C++
 
10013
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10014
 
 
10015
        # Archives containing C++ object files must be created using
 
10016
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10017
        # necessary to make sure instantiated templates are included
 
10018
        # in the archive.
 
10019
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10020
        ;;
 
10021
      *)
 
10022
        if test "$GXX" = yes; then
 
10023
          if test "$with_gnu_ld" = no; then
 
10024
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10025
          else
 
10026
            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'
 
10027
          fi
 
10028
        fi
 
10029
        link_all_deplibs_CXX=yes
 
10030
        ;;
 
10031
    esac
 
10032
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10033
    hardcode_libdir_separator_CXX=:
 
10034
    ;;
 
10035
  linux*)
 
10036
    case $cc_basename in
 
10037
      KCC*)
 
10038
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10039
 
 
10040
        # KCC will only create a shared library if the output file
 
10041
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10042
        # to its proper name (with version) after linking.
 
10043
        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'
 
10044
        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'
 
10045
        # Commands to make compiler produce verbose output that lists
 
10046
        # what "hidden" libraries, object files and flags are used when
 
10047
        # linking a shared library.
 
10048
        #
 
10049
        # There doesn't appear to be a way to prevent this compiler from
 
10050
        # explicitly linking system object files so we need to strip them
 
10051
        # from the output so that they don't get included in the library
 
10052
        # dependencies.
 
10053
        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'
 
10054
 
 
10055
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10056
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10057
 
 
10058
        # Archives containing C++ object files must be created using
 
10059
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10060
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10061
        ;;
 
10062
      icpc*)
 
10063
        # Intel C++
 
10064
        with_gnu_ld=yes
 
10065
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10066
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10067
        # earlier do not add the objects themselves.
 
10068
        case `$CC -V 2>&1` in
 
10069
        *"Version 7."*)
 
10070
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10071
          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'
 
10072
          ;;
 
10073
        *)  # Version 8.0 or newer
 
10074
          tmp_idyn=
 
10075
          case $host_cpu in
 
10076
            ia64*) tmp_idyn=' -i_dynamic';;
 
10077
          esac
 
10078
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10079
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10080
          ;;
 
10081
        esac
 
10082
        archive_cmds_need_lc_CXX=no
 
10083
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10084
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10085
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10086
        ;;
 
10087
      pgCC*)
 
10088
        # Portland Group C++ compiler
 
10089
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10090
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
10091
 
 
10092
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10093
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10094
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
10095
        ;;
 
10096
      cxx*)
 
10097
        # Compaq C++
 
10098
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10099
        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'
 
10100
 
 
10101
        runpath_var=LD_RUN_PATH
 
10102
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10103
        hardcode_libdir_separator_CXX=:
 
10104
 
 
10105
        # Commands to make compiler produce verbose output that lists
 
10106
        # what "hidden" libraries, object files and flags are used when
 
10107
        # linking a shared library.
 
10108
        #
 
10109
        # There doesn't appear to be a way to prevent this compiler from
 
10110
        # explicitly linking system object files so we need to strip them
 
10111
        # from the output so that they don't get included in the library
 
10112
        # dependencies.
 
10113
        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'
 
10114
        ;;
 
10115
    esac
 
10116
    ;;
 
10117
  lynxos*)
 
10118
    # FIXME: insert proper C++ library support
 
10119
    ld_shlibs_CXX=no
 
10120
    ;;
 
10121
  m88k*)
 
10122
    # FIXME: insert proper C++ library support
 
10123
    ld_shlibs_CXX=no
 
10124
    ;;
 
10125
  mvs*)
 
10126
    case $cc_basename in
 
10127
      cxx*)
 
10128
        # FIXME: insert proper C++ library support
 
10129
        ld_shlibs_CXX=no
 
10130
        ;;
 
10131
      *)
 
10132
        # FIXME: insert proper C++ library support
 
10133
        ld_shlibs_CXX=no
 
10134
        ;;
 
10135
    esac
 
10136
    ;;
 
10137
  netbsd*)
 
10138
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10139
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10140
      wlarc=
 
10141
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10142
      hardcode_direct_CXX=yes
 
10143
      hardcode_shlibpath_var_CXX=no
 
10144
    fi
 
10145
    # Workaround some broken pre-1.5 toolchains
 
10146
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10147
    ;;
 
10148
  openbsd2*)
 
10149
    # C++ shared libraries are fairly broken
 
10150
    ld_shlibs_CXX=no
 
10151
    ;;
 
10152
  openbsd*)
 
10153
    hardcode_direct_CXX=yes
 
10154
    hardcode_shlibpath_var_CXX=no
 
10155
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10156
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10157
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10158
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10159
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10160
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10161
    fi
 
10162
    output_verbose_link_cmd='echo'
 
10163
    ;;
 
10164
  osf3*)
 
10165
    case $cc_basename in
 
10166
      KCC*)
 
10167
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10168
 
 
10169
        # KCC will only create a shared library if the output file
 
10170
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10171
        # to its proper name (with version) after linking.
 
10172
        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'
 
10173
 
 
10174
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10175
        hardcode_libdir_separator_CXX=:
 
10176
 
 
10177
        # Archives containing C++ object files must be created using
 
10178
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10179
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10180
 
 
10181
        ;;
 
10182
      RCC*)
 
10183
        # Rational C++ 2.4.1
 
10184
        # FIXME: insert proper C++ library support
 
10185
        ld_shlibs_CXX=no
 
10186
        ;;
 
10187
      cxx*)
 
10188
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10189
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10190
 
 
10191
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10192
        hardcode_libdir_separator_CXX=:
 
10193
 
 
10194
        # Commands to make compiler produce verbose output that lists
 
10195
        # what "hidden" libraries, object files and flags are used when
 
10196
        # linking a shared library.
 
10197
        #
 
10198
        # There doesn't appear to be a way to prevent this compiler from
 
10199
        # explicitly linking system object files so we need to strip them
 
10200
        # from the output so that they don't get included in the library
 
10201
        # dependencies.
 
10202
        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'
 
10203
        ;;
 
10204
      *)
 
10205
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10206
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10207
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10208
 
 
10209
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10210
          hardcode_libdir_separator_CXX=:
 
10211
 
 
10212
          # Commands to make compiler produce verbose output that lists
 
10213
          # what "hidden" libraries, object files and flags are used when
 
10214
          # linking a shared library.
 
10215
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10216
 
 
10217
        else
 
10218
          # FIXME: insert proper C++ library support
 
10219
          ld_shlibs_CXX=no
 
10220
        fi
 
10221
        ;;
 
10222
    esac
 
10223
    ;;
 
10224
  osf4* | osf5*)
 
10225
    case $cc_basename in
 
10226
      KCC*)
 
10227
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10228
 
 
10229
        # KCC will only create a shared library if the output file
 
10230
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10231
        # to its proper name (with version) after linking.
 
10232
        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'
 
10233
 
 
10234
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10235
        hardcode_libdir_separator_CXX=:
 
10236
 
 
10237
        # Archives containing C++ object files must be created using
 
10238
        # the KAI C++ compiler.
 
10239
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10240
        ;;
 
10241
      RCC*)
 
10242
        # Rational C++ 2.4.1
 
10243
        # FIXME: insert proper C++ library support
 
10244
        ld_shlibs_CXX=no
 
10245
        ;;
 
10246
      cxx*)
 
10247
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10248
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10249
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10250
          echo "-hidden">> $lib.exp~
 
10251
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
10252
          $rm $lib.exp'
 
10253
 
 
10254
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10255
        hardcode_libdir_separator_CXX=:
 
10256
 
 
10257
        # Commands to make compiler produce verbose output that lists
 
10258
        # what "hidden" libraries, object files and flags are used when
 
10259
        # linking a shared library.
 
10260
        #
 
10261
        # There doesn't appear to be a way to prevent this compiler from
 
10262
        # explicitly linking system object files so we need to strip them
 
10263
        # from the output so that they don't get included in the library
 
10264
        # dependencies.
 
10265
        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'
 
10266
        ;;
 
10267
      *)
 
10268
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10269
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10270
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10271
 
 
10272
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10273
          hardcode_libdir_separator_CXX=:
 
10274
 
 
10275
          # Commands to make compiler produce verbose output that lists
 
10276
          # what "hidden" libraries, object files and flags are used when
 
10277
          # linking a shared library.
 
10278
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10279
 
 
10280
        else
 
10281
          # FIXME: insert proper C++ library support
 
10282
          ld_shlibs_CXX=no
 
10283
        fi
 
10284
        ;;
 
10285
    esac
 
10286
    ;;
 
10287
  psos*)
 
10288
    # FIXME: insert proper C++ library support
 
10289
    ld_shlibs_CXX=no
 
10290
    ;;
 
10291
  sco*)
 
10292
    archive_cmds_need_lc_CXX=no
 
10293
    case $cc_basename in
 
10294
      CC*)
 
10295
        # FIXME: insert proper C++ library support
 
10296
        ld_shlibs_CXX=no
 
10297
        ;;
 
10298
      *)
 
10299
        # FIXME: insert proper C++ library support
 
10300
        ld_shlibs_CXX=no
 
10301
        ;;
 
10302
    esac
 
10303
    ;;
 
10304
  sunos4*)
 
10305
    case $cc_basename in
 
10306
      CC*)
 
10307
        # Sun C++ 4.x
 
10308
        # FIXME: insert proper C++ library support
 
10309
        ld_shlibs_CXX=no
 
10310
        ;;
 
10311
      lcc*)
 
10312
        # Lucid
 
10313
        # FIXME: insert proper C++ library support
 
10314
        ld_shlibs_CXX=no
 
10315
        ;;
 
10316
      *)
 
10317
        # FIXME: insert proper C++ library support
 
10318
        ld_shlibs_CXX=no
 
10319
        ;;
 
10320
    esac
 
10321
    ;;
 
10322
  solaris*)
 
10323
    case $cc_basename in
 
10324
      CC*)
 
10325
        # Sun C++ 4.2, 5.x and Centerline C++
 
10326
        archive_cmds_need_lc_CXX=yes
 
10327
        no_undefined_flag_CXX=' -zdefs'
 
10328
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10329
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10330
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10331
 
 
10332
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10333
        hardcode_shlibpath_var_CXX=no
 
10334
        case $host_os in
 
10335
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10336
          *)
 
10337
            # The C++ compiler is used as linker so we must use $wl
 
10338
            # flag to pass the commands to the underlying system
 
10339
            # linker. We must also pass each convience library through
 
10340
            # to the system linker between allextract/defaultextract.
 
10341
            # The C++ compiler will combine linker options so we
 
10342
            # cannot just pass the convience library names through
 
10343
            # without $wl.
 
10344
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10345
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
10346
            ;;
 
10347
        esac
 
10348
        link_all_deplibs_CXX=yes
 
10349
 
 
10350
        output_verbose_link_cmd='echo'
 
10351
 
 
10352
        # Archives containing C++ object files must be created using
 
10353
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10354
        # necessary to make sure instantiated templates are included
 
10355
        # in the archive.
 
10356
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10357
        ;;
 
10358
      gcx*)
 
10359
        # Green Hills C++ Compiler
 
10360
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10361
 
 
10362
        # The C++ compiler must be used to create the archive.
 
10363
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10364
        ;;
 
10365
      *)
 
10366
        # GNU C++ compiler with Solaris linker
 
10367
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10368
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10369
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10370
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10371
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10372
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10373
 
 
10374
            # Commands to make compiler produce verbose output that lists
 
10375
            # what "hidden" libraries, object files and flags are used when
 
10376
            # linking a shared library.
 
10377
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10378
          else
 
10379
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10380
            # platform.
 
10381
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10382
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10383
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10384
 
 
10385
            # Commands to make compiler produce verbose output that lists
 
10386
            # what "hidden" libraries, object files and flags are used when
 
10387
            # linking a shared library.
 
10388
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10389
          fi
 
10390
 
 
10391
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10392
        fi
 
10393
        ;;
 
10394
    esac
 
10395
    ;;
 
10396
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10397
    archive_cmds_need_lc_CXX=no
 
10398
    ;;
 
10399
  tandem*)
 
10400
    case $cc_basename in
 
10401
      NCC*)
 
10402
        # NonStop-UX NCC 3.20
 
10403
        # FIXME: insert proper C++ library support
 
10404
        ld_shlibs_CXX=no
 
10405
        ;;
 
10406
      *)
 
10407
        # FIXME: insert proper C++ library support
 
10408
        ld_shlibs_CXX=no
 
10409
        ;;
 
10410
    esac
 
10411
    ;;
 
10412
  vxworks*)
 
10413
    # FIXME: insert proper C++ library support
 
10414
    ld_shlibs_CXX=no
 
10415
    ;;
 
10416
  *)
 
10417
    # FIXME: insert proper C++ library support
 
10418
    ld_shlibs_CXX=no
 
10419
    ;;
 
10420
esac
 
10421
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10422
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10423
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10424
 
 
10425
GCC_CXX="$GXX"
 
10426
LD_CXX="$LD"
 
10427
 
 
10428
## CAVEAT EMPTOR:
 
10429
## There is no encapsulation within the following macros, do not change
 
10430
## the running order or otherwise move them around unless you know exactly
 
10431
## what you are doing...
 
10432
 
 
10433
cat > conftest.$ac_ext <<EOF
 
10434
class Foo
 
10435
{
 
10436
public:
 
10437
  Foo (void) { a = 0; }
 
10438
private:
 
10439
  int a;
 
10440
};
 
10441
EOF
 
10442
 
 
10443
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10444
  (eval $ac_compile) 2>&5
 
10445
  ac_status=$?
 
10446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10447
  (exit $ac_status); }; then
 
10448
  # Parse the compiler output and extract the necessary
 
10449
  # objects, libraries and library flags.
 
10450
 
 
10451
  # Sentinel used to keep track of whether or not we are before
 
10452
  # the conftest object file.
 
10453
  pre_test_object_deps_done=no
 
10454
 
 
10455
  # The `*' in the case matches for architectures that use `case' in
 
10456
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10457
  # eval without this substitution.
 
10458
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
10459
 
 
10460
  for p in `eval $output_verbose_link_cmd`; do
 
10461
    case $p in
 
10462
 
 
10463
    -L* | -R* | -l*)
 
10464
       # Some compilers place space between "-{L,R}" and the path.
 
10465
       # Remove the space.
 
10466
       if test $p = "-L" \
 
10467
          || test $p = "-R"; then
 
10468
         prev=$p
 
10469
         continue
 
10470
       else
 
10471
         prev=
 
10472
       fi
 
10473
 
 
10474
       if test "$pre_test_object_deps_done" = no; then
 
10475
         case $p in
 
10476
         -L* | -R*)
 
10477
           # Internal compiler library paths should come after those
 
10478
           # provided the user.  The postdeps already come after the
 
10479
           # user supplied libs so there is no need to process them.
 
10480
           if test -z "$compiler_lib_search_path_CXX"; then
 
10481
             compiler_lib_search_path_CXX="${prev}${p}"
 
10482
           else
 
10483
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
10484
           fi
 
10485
           ;;
 
10486
         # The "-l" case would never come before the object being
 
10487
         # linked, so don't bother handling this case.
 
10488
         esac
 
10489
       else
 
10490
         if test -z "$postdeps_CXX"; then
 
10491
           postdeps_CXX="${prev}${p}"
 
10492
         else
 
10493
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
10494
         fi
 
10495
       fi
 
10496
       ;;
 
10497
 
 
10498
    *.$objext)
 
10499
       # This assumes that the test object file only shows up
 
10500
       # once in the compiler output.
 
10501
       if test "$p" = "conftest.$objext"; then
 
10502
         pre_test_object_deps_done=yes
 
10503
         continue
 
10504
       fi
 
10505
 
 
10506
       if test "$pre_test_object_deps_done" = no; then
 
10507
         if test -z "$predep_objects_CXX"; then
 
10508
           predep_objects_CXX="$p"
 
10509
         else
 
10510
           predep_objects_CXX="$predep_objects_CXX $p"
 
10511
         fi
 
10512
       else
 
10513
         if test -z "$postdep_objects_CXX"; then
 
10514
           postdep_objects_CXX="$p"
 
10515
         else
 
10516
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
10517
         fi
 
10518
       fi
 
10519
       ;;
 
10520
 
 
10521
    *) ;; # Ignore the rest.
 
10522
 
 
10523
    esac
 
10524
  done
 
10525
 
 
10526
  # Clean up.
 
10527
  rm -f a.out a.exe
 
10528
else
 
10529
  echo "libtool.m4: error: problem compiling CXX test program"
 
10530
fi
 
10531
 
 
10532
$rm -f confest.$objext
 
10533
 
 
10534
# PORTME: override above test on systems where it is broken
 
10535
case $host_os in
 
10536
solaris*)
 
10537
  case $cc_basename in
 
10538
  CC*)
 
10539
    # Adding this requires a known-good setup of shared libraries for
 
10540
    # Sun compiler versions before 5.6, else PIC objects from an old
 
10541
    # archive will be linked into the output, leading to subtle bugs.
 
10542
    postdeps_CXX='-lCstd -lCrun'
 
10543
    ;;
 
10544
  esac
 
10545
esac
 
10546
 
 
10547
 
 
10548
case " $postdeps_CXX " in
 
10549
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10550
esac
 
10551
 
 
10552
lt_prog_compiler_wl_CXX=
 
10553
lt_prog_compiler_pic_CXX=
 
10554
lt_prog_compiler_static_CXX=
 
10555
 
 
10556
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10557
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10558
 
 
10559
  # C++ specific cases for pic, static, wl, etc.
 
10560
  if test "$GXX" = yes; then
 
10561
    lt_prog_compiler_wl_CXX='-Wl,'
 
10562
    lt_prog_compiler_static_CXX='-static'
 
10563
 
 
10564
    case $host_os in
 
10565
    aix*)
 
10566
      # All AIX code is PIC.
 
10567
      if test "$host_cpu" = ia64; then
 
10568
        # AIX 5 now supports IA64 processor
 
10569
        lt_prog_compiler_static_CXX='-Bstatic'
 
10570
      fi
 
10571
      ;;
 
10572
    amigaos*)
 
10573
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10574
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10575
      # like `-m68040'.
 
10576
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10577
      ;;
 
10578
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10579
      # PIC is the default for these OSes.
 
10580
      ;;
 
10581
    mingw* | os2* | pw32*)
 
10582
      # This hack is so that the source file can tell whether it is being
 
10583
      # built for inclusion in a dll (and should export symbols for example).
 
10584
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10585
      ;;
 
10586
    darwin* | rhapsody*)
 
10587
      # PIC is the default on this platform
 
10588
      # Common symbols not allowed in MH_DYLIB files
 
10589
      lt_prog_compiler_pic_CXX='-fno-common'
 
10590
      ;;
 
10591
    *djgpp*)
 
10592
      # DJGPP does not support shared libraries at all
 
10593
      lt_prog_compiler_pic_CXX=
 
10594
      ;;
 
10595
    sysv4*MP*)
 
10596
      if test -d /usr/nec; then
 
10597
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10598
      fi
 
10599
      ;;
 
10600
    hpux*)
 
10601
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10602
      # not for PA HP-UX.
 
10603
      case $host_cpu in
 
10604
      hppa*64*|ia64*)
 
10605
        ;;
 
10606
      *)
 
10607
        lt_prog_compiler_pic_CXX='-fPIC'
 
10608
        ;;
 
10609
      esac
 
10610
      ;;
 
10611
    *)
 
10612
      lt_prog_compiler_pic_CXX='-fPIC'
 
10613
      ;;
 
10614
    esac
 
10615
  else
 
10616
    case $host_os in
 
10617
      aix4* | aix5*)
 
10618
        # All AIX code is PIC.
 
10619
        if test "$host_cpu" = ia64; then
 
10620
          # AIX 5 now supports IA64 processor
 
10621
          lt_prog_compiler_static_CXX='-Bstatic'
 
10622
        else
 
10623
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10624
        fi
 
10625
        ;;
 
10626
      chorus*)
 
10627
        case $cc_basename in
 
10628
        cxch68*)
 
10629
          # Green Hills C++ Compiler
 
10630
          # _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"
 
10631
          ;;
 
10632
        esac
 
10633
        ;;
 
10634
       darwin*)
 
10635
         # PIC is the default on this platform
 
10636
         # Common symbols not allowed in MH_DYLIB files
 
10637
         case $cc_basename in
 
10638
           xlc*)
 
10639
           lt_prog_compiler_pic_CXX='-qnocommon'
 
10640
           lt_prog_compiler_wl_CXX='-Wl,'
 
10641
           ;;
 
10642
         esac
 
10643
       ;;
 
10644
      dgux*)
 
10645
        case $cc_basename in
 
10646
          ec++*)
 
10647
            lt_prog_compiler_pic_CXX='-KPIC'
 
10648
            ;;
 
10649
          ghcx*)
 
10650
            # Green Hills C++ Compiler
 
10651
            lt_prog_compiler_pic_CXX='-pic'
 
10652
            ;;
 
10653
          *)
 
10654
            ;;
 
10655
        esac
 
10656
        ;;
 
10657
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
10658
        # FreeBSD uses GNU C++
 
10659
        ;;
 
10660
      hpux9* | hpux10* | hpux11*)
 
10661
        case $cc_basename in
 
10662
          CC*)
 
10663
            lt_prog_compiler_wl_CXX='-Wl,'
 
10664
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10665
            if test "$host_cpu" != ia64; then
 
10666
              lt_prog_compiler_pic_CXX='+Z'
 
10667
            fi
 
10668
            ;;
 
10669
          aCC*)
 
10670
            lt_prog_compiler_wl_CXX='-Wl,'
 
10671
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10672
            case $host_cpu in
 
10673
            hppa*64*|ia64*)
 
10674
              # +Z the default
 
10675
              ;;
 
10676
            *)
 
10677
              lt_prog_compiler_pic_CXX='+Z'
 
10678
              ;;
 
10679
            esac
 
10680
            ;;
 
10681
          *)
 
10682
            ;;
 
10683
        esac
 
10684
        ;;
 
10685
      irix5* | irix6* | nonstopux*)
 
10686
        case $cc_basename in
 
10687
          CC*)
 
10688
            lt_prog_compiler_wl_CXX='-Wl,'
 
10689
            lt_prog_compiler_static_CXX='-non_shared'
 
10690
            # CC pic flag -KPIC is the default.
 
10691
            ;;
 
10692
          *)
 
10693
            ;;
 
10694
        esac
 
10695
        ;;
 
10696
      linux*)
 
10697
        case $cc_basename in
 
10698
          KCC*)
 
10699
            # KAI C++ Compiler
 
10700
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10701
            lt_prog_compiler_pic_CXX='-fPIC'
 
10702
            ;;
 
10703
          icpc* | ecpc*)
 
10704
            # Intel C++
 
10705
            lt_prog_compiler_wl_CXX='-Wl,'
 
10706
            lt_prog_compiler_pic_CXX='-KPIC'
 
10707
            lt_prog_compiler_static_CXX='-static'
 
10708
            ;;
 
10709
          pgCC*)
 
10710
            # Portland Group C++ compiler.
 
10711
            lt_prog_compiler_wl_CXX='-Wl,'
 
10712
            lt_prog_compiler_pic_CXX='-fpic'
 
10713
            lt_prog_compiler_static_CXX='-Bstatic'
 
10714
            ;;
 
10715
          cxx*)
 
10716
            # Compaq C++
 
10717
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10718
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10719
            lt_prog_compiler_pic_CXX=
 
10720
            lt_prog_compiler_static_CXX='-non_shared'
 
10721
            ;;
 
10722
          *)
 
10723
            ;;
 
10724
        esac
 
10725
        ;;
 
10726
      lynxos*)
 
10727
        ;;
 
10728
      m88k*)
 
10729
        ;;
 
10730
      mvs*)
 
10731
        case $cc_basename in
 
10732
          cxx*)
 
10733
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
10734
            ;;
 
10735
          *)
 
10736
            ;;
 
10737
        esac
 
10738
        ;;
 
10739
      netbsd*)
 
10740
        ;;
 
10741
      osf3* | osf4* | osf5*)
 
10742
        case $cc_basename in
 
10743
          KCC*)
 
10744
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10745
            ;;
 
10746
          RCC*)
 
10747
            # Rational C++ 2.4.1
 
10748
            lt_prog_compiler_pic_CXX='-pic'
 
10749
            ;;
 
10750
          cxx*)
 
10751
            # Digital/Compaq C++
 
10752
            lt_prog_compiler_wl_CXX='-Wl,'
 
10753
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10754
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10755
            lt_prog_compiler_pic_CXX=
 
10756
            lt_prog_compiler_static_CXX='-non_shared'
 
10757
            ;;
 
10758
          *)
 
10759
            ;;
 
10760
        esac
 
10761
        ;;
 
10762
      psos*)
 
10763
        ;;
 
10764
      sco*)
 
10765
        case $cc_basename in
 
10766
          CC*)
 
10767
            lt_prog_compiler_pic_CXX='-fPIC'
 
10768
            ;;
 
10769
          *)
 
10770
            ;;
 
10771
        esac
 
10772
        ;;
 
10773
      solaris*)
 
10774
        case $cc_basename in
 
10775
          CC*)
 
10776
            # Sun C++ 4.2, 5.x and Centerline C++
 
10777
            lt_prog_compiler_pic_CXX='-KPIC'
 
10778
            lt_prog_compiler_static_CXX='-Bstatic'
 
10779
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
10780
            ;;
 
10781
          gcx*)
 
10782
            # Green Hills C++ Compiler
 
10783
            lt_prog_compiler_pic_CXX='-PIC'
 
10784
            ;;
 
10785
          *)
 
10786
            ;;
 
10787
        esac
 
10788
        ;;
 
10789
      sunos4*)
 
10790
        case $cc_basename in
 
10791
          CC*)
 
10792
            # Sun C++ 4.x
 
10793
            lt_prog_compiler_pic_CXX='-pic'
 
10794
            lt_prog_compiler_static_CXX='-Bstatic'
 
10795
            ;;
 
10796
          lcc*)
 
10797
            # Lucid
 
10798
            lt_prog_compiler_pic_CXX='-pic'
 
10799
            ;;
 
10800
          *)
 
10801
            ;;
 
10802
        esac
 
10803
        ;;
 
10804
      tandem*)
 
10805
        case $cc_basename in
 
10806
          NCC*)
 
10807
            # NonStop-UX NCC 3.20
 
10808
            lt_prog_compiler_pic_CXX='-KPIC'
 
10809
            ;;
 
10810
          *)
 
10811
            ;;
 
10812
        esac
 
10813
        ;;
 
10814
      unixware*)
 
10815
        ;;
 
10816
      vxworks*)
 
10817
        ;;
 
10818
      *)
 
10819
        lt_prog_compiler_can_build_shared_CXX=no
 
10820
        ;;
 
10821
    esac
 
10822
  fi
 
10823
 
 
10824
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
10825
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
10826
 
 
10827
#
 
10828
# Check to make sure the PIC flag actually works.
 
10829
#
 
10830
if test -n "$lt_prog_compiler_pic_CXX"; then
 
10831
 
 
10832
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
10833
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
10834
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
10835
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10836
else
 
10837
  lt_prog_compiler_pic_works_CXX=no
 
10838
  ac_outfile=conftest.$ac_objext
 
10839
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10840
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
10841
   # Insert the option either (1) after the last *FLAGS variable, or
 
10842
   # (2) before a word containing "conftest.", or (3) at the end.
 
10843
   # Note that $ac_compile itself does not contain backslashes and begins
 
10844
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10845
   # The option is referenced via a variable to avoid confusing sed.
 
10846
   lt_compile=`echo "$ac_compile" | $SED \
 
10847
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
10848
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10849
   -e 's:$: $lt_compiler_flag:'`
 
10850
   (eval echo "\"\$as_me:10850: $lt_compile\"" >&5)
 
10851
   (eval "$lt_compile" 2>conftest.err)
 
10852
   ac_status=$?
 
10853
   cat conftest.err >&5
 
10854
   echo "$as_me:10854: \$? = $ac_status" >&5
 
10855
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
10856
     # The compiler can only warn and ignore the option if not recognized
 
10857
     # So say no if there are warnings other than the usual output.
 
10858
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
10859
     $SED '/^$/d' conftest.err >conftest.er2
 
10860
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
10861
       lt_prog_compiler_pic_works_CXX=yes
 
10862
     fi
 
10863
   fi
 
10864
   $rm conftest*
 
10865
 
 
10866
fi
 
10867
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
10868
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
10869
 
 
10870
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
10871
    case $lt_prog_compiler_pic_CXX in
 
10872
     "" | " "*) ;;
 
10873
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
10874
     esac
 
10875
else
 
10876
    lt_prog_compiler_pic_CXX=
 
10877
     lt_prog_compiler_can_build_shared_CXX=no
 
10878
fi
 
10879
 
 
10880
fi
 
10881
case $host_os in
 
10882
  # For platforms which do not support PIC, -DPIC is meaningless:
 
10883
  *djgpp*)
 
10884
    lt_prog_compiler_pic_CXX=
 
10885
    ;;
 
10886
  *)
 
10887
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
10888
    ;;
 
10889
esac
 
10890
 
 
10891
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
10892
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
10893
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
10894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10895
else
 
10896
  lt_cv_prog_compiler_c_o_CXX=no
 
10897
   $rm -r conftest 2>/dev/null
 
10898
   mkdir conftest
 
10899
   cd conftest
 
10900
   mkdir out
 
10901
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
10902
 
 
10903
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
10904
   # Insert the option either (1) after the last *FLAGS variable, or
 
10905
   # (2) before a word containing "conftest.", or (3) at the end.
 
10906
   # Note that $ac_compile itself does not contain backslashes and begins
 
10907
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
10908
   lt_compile=`echo "$ac_compile" | $SED \
 
10909
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
10910
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
10911
   -e 's:$: $lt_compiler_flag:'`
 
10912
   (eval echo "\"\$as_me:10912: $lt_compile\"" >&5)
 
10913
   (eval "$lt_compile" 2>out/conftest.err)
 
10914
   ac_status=$?
 
10915
   cat out/conftest.err >&5
 
10916
   echo "$as_me:10916: \$? = $ac_status" >&5
 
10917
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
10918
   then
 
10919
     # The compiler can only warn and ignore the option if not recognized
 
10920
     # So say no if there are warnings
 
10921
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
10922
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
10923
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
10924
       lt_cv_prog_compiler_c_o_CXX=yes
 
10925
     fi
 
10926
   fi
 
10927
   chmod u+w . 2>&5
 
10928
   $rm conftest*
 
10929
   # SGI C++ compiler will create directory out/ii_files/ for
 
10930
   # template instantiation
 
10931
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
10932
   $rm out/* && rmdir out
 
10933
   cd ..
 
10934
   rmdir conftest
 
10935
   $rm conftest*
 
10936
 
 
10937
fi
 
10938
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
10939
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
10940
 
 
10941
 
 
10942
hard_links="nottested"
 
10943
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
10944
  # do not overwrite the value of need_locks provided by the user
 
10945
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
10946
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
10947
  hard_links=yes
 
10948
  $rm conftest*
 
10949
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10950
  touch conftest.a
 
10951
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
10952
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
10953
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
10954
echo "${ECHO_T}$hard_links" >&6
 
10955
  if test "$hard_links" = no; then
 
10956
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
10957
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
10958
    need_locks=warn
 
10959
  fi
 
10960
else
 
10961
  need_locks=no
 
10962
fi
 
10963
 
 
10964
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10965
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10966
 
 
10967
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10968
  case $host_os in
 
10969
  aix4* | aix5*)
 
10970
    # If we're using GNU nm, then we don't want the "-C" option.
 
10971
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10972
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
10973
      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'
 
10974
    else
 
10975
      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'
 
10976
    fi
 
10977
    ;;
 
10978
  pw32*)
 
10979
    export_symbols_cmds_CXX="$ltdll_cmds"
 
10980
  ;;
 
10981
  cygwin* | mingw*)
 
10982
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
10983
  ;;
 
10984
  *)
 
10985
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10986
  ;;
 
10987
  esac
 
10988
 
 
10989
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10990
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10991
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10992
 
 
10993
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10994
if test "$GCC" = yes; then
 
10995
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10996
fi
 
10997
 
 
10998
#
 
10999
# Do we need to explicitly link libc?
 
11000
#
 
11001
case "x$archive_cmds_need_lc_CXX" in
 
11002
x|xyes)
 
11003
  # Assume -lc should be added
 
11004
  archive_cmds_need_lc_CXX=yes
 
11005
 
 
11006
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11007
    case $archive_cmds_CXX in
 
11008
    *'~'*)
 
11009
      # FIXME: we may have to deal with multi-command sequences.
 
11010
      ;;
 
11011
    '$CC '*)
 
11012
      # Test whether the compiler implicitly links with -lc since on some
 
11013
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11014
      # to ld, don't add -lc before -lgcc.
 
11015
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11016
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11017
      $rm conftest*
 
11018
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11019
 
 
11020
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11021
  (eval $ac_compile) 2>&5
 
11022
  ac_status=$?
 
11023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11024
  (exit $ac_status); } 2>conftest.err; then
 
11025
        soname=conftest
 
11026
        lib=conftest
 
11027
        libobjs=conftest.$ac_objext
 
11028
        deplibs=
 
11029
        wl=$lt_prog_compiler_wl_CXX
 
11030
        compiler_flags=-v
 
11031
        linker_flags=-v
 
11032
        verstring=
 
11033
        output_objdir=.
 
11034
        libname=conftest
 
11035
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11036
        allow_undefined_flag_CXX=
 
11037
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11038
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11039
  ac_status=$?
 
11040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11041
  (exit $ac_status); }
 
11042
        then
 
11043
          archive_cmds_need_lc_CXX=no
 
11044
        else
 
11045
          archive_cmds_need_lc_CXX=yes
 
11046
        fi
 
11047
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11048
      else
 
11049
        cat conftest.err 1>&5
 
11050
      fi
 
11051
      $rm conftest*
 
11052
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11053
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11054
      ;;
 
11055
    esac
 
11056
  fi
 
11057
  ;;
 
11058
esac
 
11059
 
 
11060
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11061
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11062
library_names_spec=
 
11063
libname_spec='lib$name'
 
11064
soname_spec=
 
11065
shrext_cmds=".so"
 
11066
postinstall_cmds=
 
11067
postuninstall_cmds=
 
11068
finish_cmds=
 
11069
finish_eval=
 
11070
shlibpath_var=
 
11071
shlibpath_overrides_runpath=unknown
 
11072
version_type=none
 
11073
dynamic_linker="$host_os ld.so"
 
11074
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11075
if test "$GCC" = yes; then
 
11076
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11077
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11078
    # if the path contains ";" then we assume it to be the separator
 
11079
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11080
    # assumed that no part of a normal pathname contains ";" but that should
 
11081
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11082
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11083
  else
 
11084
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11085
  fi
 
11086
else
 
11087
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11088
fi
 
11089
need_lib_prefix=unknown
 
11090
hardcode_into_libs=no
 
11091
 
 
11092
# when you set need_version to no, make sure it does not cause -set_version
 
11093
# flags to be left without arguments
 
11094
need_version=unknown
 
11095
 
 
11096
case $host_os in
 
11097
aix3*)
 
11098
  version_type=linux
 
11099
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11100
  shlibpath_var=LIBPATH
 
11101
 
 
11102
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11103
  soname_spec='${libname}${release}${shared_ext}$major'
 
11104
  ;;
 
11105
 
 
11106
aix4* | aix5*)
 
11107
  version_type=linux
 
11108
  need_lib_prefix=no
 
11109
  need_version=no
 
11110
  hardcode_into_libs=yes
 
11111
  if test "$host_cpu" = ia64; then
 
11112
    # AIX 5 supports IA64
 
11113
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11114
    shlibpath_var=LD_LIBRARY_PATH
 
11115
  else
 
11116
    # With GCC up to 2.95.x, collect2 would create an import file
 
11117
    # for dependence libraries.  The import file would start with
 
11118
    # the line `#! .'.  This would cause the generated library to
 
11119
    # depend on `.', always an invalid library.  This was fixed in
 
11120
    # development snapshots of GCC prior to 3.0.
 
11121
    case $host_os in
 
11122
      aix4 | aix4.[01] | aix4.[01].*)
 
11123
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11124
           echo ' yes '
 
11125
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11126
        :
 
11127
      else
 
11128
        can_build_shared=no
 
11129
      fi
 
11130
      ;;
 
11131
    esac
 
11132
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11133
    # soname into executable. Probably we can add versioning support to
 
11134
    # collect2, so additional links can be useful in future.
 
11135
    if test "$aix_use_runtimelinking" = yes; then
 
11136
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11137
      # instead of lib<name>.a to let people know that these are not
 
11138
      # typical AIX shared libraries.
 
11139
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11140
    else
 
11141
      # We preserve .a as extension for shared libraries through AIX4.2
 
11142
      # and later when we are not doing run time linking.
 
11143
      library_names_spec='${libname}${release}.a $libname.a'
 
11144
      soname_spec='${libname}${release}${shared_ext}$major'
 
11145
    fi
 
11146
    shlibpath_var=LIBPATH
 
11147
  fi
 
11148
  ;;
 
11149
 
 
11150
amigaos*)
 
11151
  library_names_spec='$libname.ixlibrary $libname.a'
 
11152
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11153
  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'
 
11154
  ;;
 
11155
 
 
11156
beos*)
 
11157
  library_names_spec='${libname}${shared_ext}'
 
11158
  dynamic_linker="$host_os ld.so"
 
11159
  shlibpath_var=LIBRARY_PATH
 
11160
  ;;
 
11161
 
 
11162
bsdi[45]*)
 
11163
  version_type=linux
 
11164
  need_version=no
 
11165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11166
  soname_spec='${libname}${release}${shared_ext}$major'
 
11167
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11168
  shlibpath_var=LD_LIBRARY_PATH
 
11169
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11170
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11171
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11172
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11173
  # libtool to hard-code these into programs
 
11174
  ;;
 
11175
 
 
11176
cygwin* | mingw* | pw32*)
 
11177
  version_type=windows
 
11178
  shrext_cmds=".dll"
 
11179
  need_version=no
 
11180
  need_lib_prefix=no
 
11181
 
 
11182
  case $GCC,$host_os in
 
11183
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11184
    library_names_spec='$libname.dll.a'
 
11185
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11186
    postinstall_cmds='base_file=`basename \${file}`~
 
11187
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11188
      dldir=$destdir/`dirname \$dlpath`~
 
11189
      test -d \$dldir || mkdir -p \$dldir~
 
11190
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11191
      chmod a+x \$dldir/$dlname'
 
11192
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11193
      dlpath=$dir/\$dldll~
 
11194
       $rm \$dlpath'
 
11195
    shlibpath_overrides_runpath=yes
 
11196
 
 
11197
    case $host_os in
 
11198
    cygwin*)
 
11199
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11200
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11201
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11202
      ;;
 
11203
    mingw*)
 
11204
      # MinGW DLLs use traditional 'lib' prefix
 
11205
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11206
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11207
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11208
        # It is most probably a Windows format PATH printed by
 
11209
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11210
        # path with ; separators, and with drive letters. We can handle the
 
11211
        # drive letters (cygwin fileutils understands them), so leave them,
 
11212
        # especially as we might pass files found there to a mingw objdump,
 
11213
        # which wouldn't understand a cygwinified path. Ahh.
 
11214
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11215
      else
 
11216
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11217
      fi
 
11218
      ;;
 
11219
    pw32*)
 
11220
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11221
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11222
      ;;
 
11223
    esac
 
11224
    ;;
 
11225
 
 
11226
  *)
 
11227
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11228
    ;;
 
11229
  esac
 
11230
  dynamic_linker='Win32 ld.exe'
 
11231
  # FIXME: first we should search . and the directory the executable is in
 
11232
  shlibpath_var=PATH
 
11233
  ;;
 
11234
 
 
11235
darwin* | rhapsody*)
 
11236
  dynamic_linker="$host_os dyld"
 
11237
  version_type=darwin
 
11238
  need_lib_prefix=no
 
11239
  need_version=no
 
11240
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11241
  soname_spec='${libname}${release}${major}$shared_ext'
 
11242
  shlibpath_overrides_runpath=yes
 
11243
  shlibpath_var=DYLD_LIBRARY_PATH
 
11244
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11245
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11246
  if test "$GCC" = yes; then
 
11247
    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"`
 
11248
  else
 
11249
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11250
  fi
 
11251
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11252
  ;;
 
11253
 
 
11254
dgux*)
 
11255
  version_type=linux
 
11256
  need_lib_prefix=no
 
11257
  need_version=no
 
11258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11259
  soname_spec='${libname}${release}${shared_ext}$major'
 
11260
  shlibpath_var=LD_LIBRARY_PATH
 
11261
  ;;
 
11262
 
 
11263
freebsd1*)
 
11264
  dynamic_linker=no
 
11265
  ;;
 
11266
 
 
11267
kfreebsd*-gnu)
 
11268
  version_type=linux
 
11269
  need_lib_prefix=no
 
11270
  need_version=no
 
11271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11272
  soname_spec='${libname}${release}${shared_ext}$major'
 
11273
  shlibpath_var=LD_LIBRARY_PATH
 
11274
  shlibpath_overrides_runpath=no
 
11275
  hardcode_into_libs=yes
 
11276
  dynamic_linker='GNU ld.so'
 
11277
  ;;
 
11278
 
 
11279
freebsd* | dragonfly*)
 
11280
  # DragonFly does not have aout.  When/if they implement a new
 
11281
  # versioning mechanism, adjust this.
 
11282
  if test -x /usr/bin/objformat; then
 
11283
    objformat=`/usr/bin/objformat`
 
11284
  else
 
11285
    case $host_os in
 
11286
    freebsd[123]*) objformat=aout ;;
 
11287
    *) objformat=elf ;;
 
11288
    esac
 
11289
  fi
 
11290
  version_type=freebsd-$objformat
 
11291
  case $version_type in
 
11292
    freebsd-elf*)
 
11293
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11294
      need_version=no
 
11295
      need_lib_prefix=no
 
11296
      ;;
 
11297
    freebsd-*)
 
11298
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11299
      need_version=yes
 
11300
      ;;
 
11301
  esac
 
11302
  shlibpath_var=LD_LIBRARY_PATH
 
11303
  case $host_os in
 
11304
  freebsd2*)
 
11305
    shlibpath_overrides_runpath=yes
 
11306
    ;;
 
11307
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11308
    shlibpath_overrides_runpath=yes
 
11309
    hardcode_into_libs=yes
 
11310
    ;;
 
11311
  *) # from 3.2 on
 
11312
    shlibpath_overrides_runpath=no
 
11313
    hardcode_into_libs=yes
 
11314
    ;;
 
11315
  esac
 
11316
  ;;
 
11317
 
 
11318
gnu*)
 
11319
  version_type=linux
 
11320
  need_lib_prefix=no
 
11321
  need_version=no
 
11322
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11323
  soname_spec='${libname}${release}${shared_ext}$major'
 
11324
  shlibpath_var=LD_LIBRARY_PATH
 
11325
  hardcode_into_libs=yes
 
11326
  ;;
 
11327
 
 
11328
hpux9* | hpux10* | hpux11*)
 
11329
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11330
  # link against other versions.
 
11331
  version_type=sunos
 
11332
  need_lib_prefix=no
 
11333
  need_version=no
 
11334
  case $host_cpu in
 
11335
  ia64*)
 
11336
    shrext_cmds='.so'
 
11337
    hardcode_into_libs=yes
 
11338
    dynamic_linker="$host_os dld.so"
 
11339
    shlibpath_var=LD_LIBRARY_PATH
 
11340
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11341
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11342
    soname_spec='${libname}${release}${shared_ext}$major'
 
11343
    if test "X$HPUX_IA64_MODE" = X32; then
 
11344
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11345
    else
 
11346
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11347
    fi
 
11348
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11349
    ;;
 
11350
   hppa*64*)
 
11351
     shrext_cmds='.sl'
 
11352
     hardcode_into_libs=yes
 
11353
     dynamic_linker="$host_os dld.sl"
 
11354
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11355
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11356
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11357
     soname_spec='${libname}${release}${shared_ext}$major'
 
11358
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11359
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11360
     ;;
 
11361
   *)
 
11362
    shrext_cmds='.sl'
 
11363
    dynamic_linker="$host_os dld.sl"
 
11364
    shlibpath_var=SHLIB_PATH
 
11365
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11366
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11367
    soname_spec='${libname}${release}${shared_ext}$major'
 
11368
    ;;
 
11369
  esac
 
11370
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11371
  postinstall_cmds='chmod 555 $lib'
 
11372
  ;;
 
11373
 
 
11374
irix5* | irix6* | nonstopux*)
 
11375
  case $host_os in
 
11376
    nonstopux*) version_type=nonstopux ;;
 
11377
    *)
 
11378
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11379
                version_type=linux
 
11380
        else
 
11381
                version_type=irix
 
11382
        fi ;;
 
11383
  esac
 
11384
  need_lib_prefix=no
 
11385
  need_version=no
 
11386
  soname_spec='${libname}${release}${shared_ext}$major'
 
11387
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11388
  case $host_os in
 
11389
  irix5* | nonstopux*)
 
11390
    libsuff= shlibsuff=
 
11391
    ;;
 
11392
  *)
 
11393
    case $LD in # libtool.m4 will add one of these switches to LD
 
11394
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11395
      libsuff= shlibsuff= libmagic=32-bit;;
 
11396
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11397
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11398
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11399
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11400
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11401
    esac
 
11402
    ;;
 
11403
  esac
 
11404
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11405
  shlibpath_overrides_runpath=no
 
11406
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11407
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11408
  hardcode_into_libs=yes
 
11409
  ;;
 
11410
 
 
11411
# No shared lib support for Linux oldld, aout, or coff.
 
11412
linux*oldld* | linux*aout* | linux*coff*)
 
11413
  dynamic_linker=no
 
11414
  ;;
 
11415
 
 
11416
# This must be Linux ELF.
 
11417
linux*)
 
11418
  version_type=linux
 
11419
  need_lib_prefix=no
 
11420
  need_version=no
 
11421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11422
  soname_spec='${libname}${release}${shared_ext}$major'
 
11423
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11424
  shlibpath_var=LD_LIBRARY_PATH
 
11425
  shlibpath_overrides_runpath=no
 
11426
  # This implies no fast_install, which is unacceptable.
 
11427
  # Some rework will be needed to allow for fast_install
 
11428
  # before this can be enabled.
 
11429
  hardcode_into_libs=yes
 
11430
 
 
11431
  # Append ld.so.conf contents to the search path
 
11432
  if test -f /etc/ld.so.conf; then
 
11433
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
11434
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11435
  fi
 
11436
 
 
11437
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11438
  # powerpc, because MkLinux only supported shared libraries with the
 
11439
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11440
  # most powerpc-linux boxes support dynamic linking these days and
 
11441
  # people can always --disable-shared, the test was removed, and we
 
11442
  # assume the GNU/Linux dynamic linker is in use.
 
11443
  dynamic_linker='GNU/Linux ld.so'
 
11444
  ;;
 
11445
 
 
11446
knetbsd*-gnu)
 
11447
  version_type=linux
 
11448
  need_lib_prefix=no
 
11449
  need_version=no
 
11450
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11451
  soname_spec='${libname}${release}${shared_ext}$major'
 
11452
  shlibpath_var=LD_LIBRARY_PATH
 
11453
  shlibpath_overrides_runpath=no
 
11454
  hardcode_into_libs=yes
 
11455
  dynamic_linker='GNU ld.so'
 
11456
  ;;
 
11457
 
 
11458
netbsd*)
 
11459
  version_type=sunos
 
11460
  need_lib_prefix=no
 
11461
  need_version=no
 
11462
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11463
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11464
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11465
    dynamic_linker='NetBSD (a.out) ld.so'
 
11466
  else
 
11467
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11468
    soname_spec='${libname}${release}${shared_ext}$major'
 
11469
    dynamic_linker='NetBSD ld.elf_so'
 
11470
  fi
 
11471
  shlibpath_var=LD_LIBRARY_PATH
 
11472
  shlibpath_overrides_runpath=yes
 
11473
  hardcode_into_libs=yes
 
11474
  ;;
 
11475
 
 
11476
newsos6)
 
11477
  version_type=linux
 
11478
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11479
  shlibpath_var=LD_LIBRARY_PATH
 
11480
  shlibpath_overrides_runpath=yes
 
11481
  ;;
 
11482
 
 
11483
nto-qnx*)
 
11484
  version_type=linux
 
11485
  need_lib_prefix=no
 
11486
  need_version=no
 
11487
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11488
  soname_spec='${libname}${release}${shared_ext}$major'
 
11489
  shlibpath_var=LD_LIBRARY_PATH
 
11490
  shlibpath_overrides_runpath=yes
 
11491
  ;;
 
11492
 
 
11493
openbsd*)
 
11494
  version_type=sunos
 
11495
  need_lib_prefix=no
 
11496
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11497
  case $host_os in
 
11498
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
11499
    *)                         need_version=no  ;;
 
11500
  esac
 
11501
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11502
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11503
  shlibpath_var=LD_LIBRARY_PATH
 
11504
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11505
    case $host_os in
 
11506
      openbsd2.[89] | openbsd2.[89].*)
 
11507
        shlibpath_overrides_runpath=no
 
11508
        ;;
 
11509
      *)
 
11510
        shlibpath_overrides_runpath=yes
 
11511
        ;;
 
11512
      esac
 
11513
  else
 
11514
    shlibpath_overrides_runpath=yes
 
11515
  fi
 
11516
  ;;
 
11517
 
 
11518
os2*)
 
11519
  libname_spec='$name'
 
11520
  shrext_cmds=".dll"
 
11521
  need_lib_prefix=no
 
11522
  library_names_spec='$libname${shared_ext} $libname.a'
 
11523
  dynamic_linker='OS/2 ld.exe'
 
11524
  shlibpath_var=LIBPATH
 
11525
  ;;
 
11526
 
 
11527
osf3* | osf4* | osf5*)
 
11528
  version_type=osf
 
11529
  need_lib_prefix=no
 
11530
  need_version=no
 
11531
  soname_spec='${libname}${release}${shared_ext}$major'
 
11532
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11533
  shlibpath_var=LD_LIBRARY_PATH
 
11534
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11535
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11536
  ;;
 
11537
 
 
11538
sco3.2v5*)
 
11539
  version_type=osf
 
11540
  soname_spec='${libname}${release}${shared_ext}$major'
 
11541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11542
  shlibpath_var=LD_LIBRARY_PATH
 
11543
  ;;
 
11544
 
 
11545
solaris*)
 
11546
  version_type=linux
 
11547
  need_lib_prefix=no
 
11548
  need_version=no
 
11549
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11550
  soname_spec='${libname}${release}${shared_ext}$major'
 
11551
  shlibpath_var=LD_LIBRARY_PATH
 
11552
  shlibpath_overrides_runpath=yes
 
11553
  hardcode_into_libs=yes
 
11554
  # ldd complains unless libraries are executable
 
11555
  postinstall_cmds='chmod +x $lib'
 
11556
  ;;
 
11557
 
 
11558
sunos4*)
 
11559
  version_type=sunos
 
11560
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11561
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11562
  shlibpath_var=LD_LIBRARY_PATH
 
11563
  shlibpath_overrides_runpath=yes
 
11564
  if test "$with_gnu_ld" = yes; then
 
11565
    need_lib_prefix=no
 
11566
  fi
 
11567
  need_version=yes
 
11568
  ;;
 
11569
 
 
11570
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11571
  version_type=linux
 
11572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11573
  soname_spec='${libname}${release}${shared_ext}$major'
 
11574
  shlibpath_var=LD_LIBRARY_PATH
 
11575
  case $host_vendor in
 
11576
    sni)
 
11577
      shlibpath_overrides_runpath=no
 
11578
      need_lib_prefix=no
 
11579
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11580
      runpath_var=LD_RUN_PATH
 
11581
      ;;
 
11582
    siemens)
 
11583
      need_lib_prefix=no
 
11584
      ;;
 
11585
    motorola)
 
11586
      need_lib_prefix=no
 
11587
      need_version=no
 
11588
      shlibpath_overrides_runpath=no
 
11589
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11590
      ;;
 
11591
  esac
 
11592
  ;;
 
11593
 
 
11594
sysv4*MP*)
 
11595
  if test -d /usr/nec ;then
 
11596
    version_type=linux
 
11597
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11598
    soname_spec='$libname${shared_ext}.$major'
 
11599
    shlibpath_var=LD_LIBRARY_PATH
 
11600
  fi
 
11601
  ;;
 
11602
 
 
11603
uts4*)
 
11604
  version_type=linux
 
11605
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11606
  soname_spec='${libname}${release}${shared_ext}$major'
 
11607
  shlibpath_var=LD_LIBRARY_PATH
 
11608
  ;;
 
11609
 
 
11610
*)
 
11611
  dynamic_linker=no
 
11612
  ;;
 
11613
esac
 
11614
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11615
echo "${ECHO_T}$dynamic_linker" >&6
 
11616
test "$dynamic_linker" = no && can_build_shared=no
 
11617
 
 
11618
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11619
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
11620
hardcode_action_CXX=
 
11621
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
11622
   test -n "$runpath_var_CXX" || \
 
11623
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
11624
 
 
11625
  # We can hardcode non-existant directories.
 
11626
  if test "$hardcode_direct_CXX" != no &&
 
11627
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11628
     # have to relink, otherwise we might link with an installed library
 
11629
     # when we should be linking with a yet-to-be-installed one
 
11630
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
11631
     test "$hardcode_minus_L_CXX" != no; then
 
11632
    # Linking always hardcodes the temporary library directory.
 
11633
    hardcode_action_CXX=relink
 
11634
  else
 
11635
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11636
    hardcode_action_CXX=immediate
 
11637
  fi
 
11638
else
 
11639
  # We cannot hardcode anything, or else we can only hardcode existing
 
11640
  # directories.
 
11641
  hardcode_action_CXX=unsupported
 
11642
fi
 
11643
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11644
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
11645
 
 
11646
if test "$hardcode_action_CXX" = relink; then
 
11647
  # Fast installation is not supported
 
11648
  enable_fast_install=no
 
11649
elif test "$shlibpath_overrides_runpath" = yes ||
 
11650
     test "$enable_shared" = no; then
 
11651
  # Fast installation is not necessary
 
11652
  enable_fast_install=needless
 
11653
fi
 
11654
 
 
11655
striplib=
 
11656
old_striplib=
 
11657
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11658
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11659
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11660
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11661
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11662
  echo "$as_me:$LINENO: result: yes" >&5
 
11663
echo "${ECHO_T}yes" >&6
 
11664
else
 
11665
# FIXME - insert some real tests, host_os isn't really good enough
 
11666
  case $host_os in
 
11667
   darwin*)
 
11668
       if test -n "$STRIP" ; then
 
11669
         striplib="$STRIP -x"
 
11670
         echo "$as_me:$LINENO: result: yes" >&5
 
11671
echo "${ECHO_T}yes" >&6
 
11672
       else
 
11673
  echo "$as_me:$LINENO: result: no" >&5
 
11674
echo "${ECHO_T}no" >&6
 
11675
fi
 
11676
       ;;
 
11677
   *)
 
11678
  echo "$as_me:$LINENO: result: no" >&5
 
11679
echo "${ECHO_T}no" >&6
 
11680
    ;;
 
11681
  esac
 
11682
fi
 
11683
 
 
11684
if test "x$enable_dlopen" != xyes; then
 
11685
  enable_dlopen=unknown
 
11686
  enable_dlopen_self=unknown
 
11687
  enable_dlopen_self_static=unknown
 
11688
else
 
11689
  lt_cv_dlopen=no
 
11690
  lt_cv_dlopen_libs=
 
11691
 
 
11692
  case $host_os in
 
11693
  beos*)
 
11694
    lt_cv_dlopen="load_add_on"
 
11695
    lt_cv_dlopen_libs=
 
11696
    lt_cv_dlopen_self=yes
 
11697
    ;;
 
11698
 
 
11699
  mingw* | pw32*)
 
11700
    lt_cv_dlopen="LoadLibrary"
 
11701
    lt_cv_dlopen_libs=
 
11702
   ;;
 
11703
 
 
11704
  cygwin*)
 
11705
    lt_cv_dlopen="dlopen"
 
11706
    lt_cv_dlopen_libs=
 
11707
   ;;
 
11708
 
 
11709
  darwin*)
 
11710
  # if libdl is installed we need to link against it
 
11711
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11712
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11713
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11715
else
 
11716
  ac_check_lib_save_LIBS=$LIBS
 
11717
LIBS="-ldl  $LIBS"
 
11718
cat >conftest.$ac_ext <<_ACEOF
 
11719
/* confdefs.h.  */
 
11720
_ACEOF
 
11721
cat confdefs.h >>conftest.$ac_ext
 
11722
cat >>conftest.$ac_ext <<_ACEOF
 
11723
/* end confdefs.h.  */
 
11724
 
 
11725
/* Override any gcc2 internal prototype to avoid an error.  */
 
11726
#ifdef __cplusplus
 
11727
extern "C"
 
11728
#endif
 
11729
/* We use char because int might match the return type of a gcc2
 
11730
   builtin and then its argument prototype would still apply.  */
 
11731
char dlopen ();
 
11732
int
 
11733
main ()
 
11734
{
 
11735
dlopen ();
 
11736
  ;
 
11737
  return 0;
 
11738
}
 
11739
_ACEOF
 
11740
rm -f conftest.$ac_objext conftest$ac_exeext
 
11741
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11742
  (eval $ac_link) 2>conftest.er1
 
11743
  ac_status=$?
 
11744
  grep -v '^ *+' conftest.er1 >conftest.err
 
11745
  rm -f conftest.er1
 
11746
  cat conftest.err >&5
 
11747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11748
  (exit $ac_status); } &&
 
11749
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11750
                         || test ! -s conftest.err'
 
11751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11752
  (eval $ac_try) 2>&5
 
11753
  ac_status=$?
 
11754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11755
  (exit $ac_status); }; } &&
 
11756
         { ac_try='test -s conftest$ac_exeext'
 
11757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11758
  (eval $ac_try) 2>&5
 
11759
  ac_status=$?
 
11760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11761
  (exit $ac_status); }; }; then
 
11762
  ac_cv_lib_dl_dlopen=yes
 
11763
else
 
11764
  echo "$as_me: failed program was:" >&5
 
11765
sed 's/^/| /' conftest.$ac_ext >&5
 
11766
 
 
11767
ac_cv_lib_dl_dlopen=no
 
11768
fi
 
11769
rm -f conftest.err conftest.$ac_objext \
 
11770
      conftest$ac_exeext conftest.$ac_ext
 
11771
LIBS=$ac_check_lib_save_LIBS
 
11772
fi
 
11773
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11774
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11775
if test $ac_cv_lib_dl_dlopen = yes; then
 
11776
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11777
else
 
11778
 
 
11779
    lt_cv_dlopen="dyld"
 
11780
    lt_cv_dlopen_libs=
 
11781
    lt_cv_dlopen_self=yes
 
11782
 
 
11783
fi
 
11784
 
 
11785
   ;;
 
11786
 
 
11787
  *)
 
11788
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11789
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11790
if test "${ac_cv_func_shl_load+set}" = set; then
 
11791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11792
else
 
11793
  cat >conftest.$ac_ext <<_ACEOF
 
11794
/* confdefs.h.  */
 
11795
_ACEOF
 
11796
cat confdefs.h >>conftest.$ac_ext
 
11797
cat >>conftest.$ac_ext <<_ACEOF
 
11798
/* end confdefs.h.  */
 
11799
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11800
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11801
#define shl_load innocuous_shl_load
 
11802
 
 
11803
/* System header to define __stub macros and hopefully few prototypes,
 
11804
    which can conflict with char shl_load (); below.
 
11805
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11806
    <limits.h> exists even on freestanding compilers.  */
 
11807
 
 
11808
#ifdef __STDC__
 
11809
# include <limits.h>
 
11810
#else
 
11811
# include <assert.h>
 
11812
#endif
 
11813
 
 
11814
#undef shl_load
 
11815
 
 
11816
/* Override any gcc2 internal prototype to avoid an error.  */
 
11817
#ifdef __cplusplus
 
11818
extern "C"
 
11819
{
 
11820
#endif
 
11821
/* We use char because int might match the return type of a gcc2
 
11822
   builtin and then its argument prototype would still apply.  */
 
11823
char shl_load ();
 
11824
/* The GNU C library defines this for functions which it implements
 
11825
    to always fail with ENOSYS.  Some functions are actually named
 
11826
    something starting with __ and the normal name is an alias.  */
 
11827
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11828
choke me
 
11829
#else
 
11830
char (*f) () = shl_load;
 
11831
#endif
 
11832
#ifdef __cplusplus
 
11833
}
 
11834
#endif
 
11835
 
 
11836
int
 
11837
main ()
 
11838
{
 
11839
return f != shl_load;
 
11840
  ;
 
11841
  return 0;
 
11842
}
 
11843
_ACEOF
 
11844
rm -f conftest.$ac_objext conftest$ac_exeext
 
11845
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11846
  (eval $ac_link) 2>conftest.er1
 
11847
  ac_status=$?
 
11848
  grep -v '^ *+' conftest.er1 >conftest.err
 
11849
  rm -f conftest.er1
 
11850
  cat conftest.err >&5
 
11851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11852
  (exit $ac_status); } &&
 
11853
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11854
                         || test ! -s conftest.err'
 
11855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11856
  (eval $ac_try) 2>&5
 
11857
  ac_status=$?
 
11858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11859
  (exit $ac_status); }; } &&
 
11860
         { ac_try='test -s conftest$ac_exeext'
 
11861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11862
  (eval $ac_try) 2>&5
 
11863
  ac_status=$?
 
11864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11865
  (exit $ac_status); }; }; then
 
11866
  ac_cv_func_shl_load=yes
 
11867
else
 
11868
  echo "$as_me: failed program was:" >&5
 
11869
sed 's/^/| /' conftest.$ac_ext >&5
 
11870
 
 
11871
ac_cv_func_shl_load=no
 
11872
fi
 
11873
rm -f conftest.err conftest.$ac_objext \
 
11874
      conftest$ac_exeext conftest.$ac_ext
 
11875
fi
 
11876
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11877
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
11878
if test $ac_cv_func_shl_load = yes; then
 
11879
  lt_cv_dlopen="shl_load"
 
11880
else
 
11881
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11882
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
11883
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11885
else
 
11886
  ac_check_lib_save_LIBS=$LIBS
 
11887
LIBS="-ldld  $LIBS"
 
11888
cat >conftest.$ac_ext <<_ACEOF
 
11889
/* confdefs.h.  */
 
11890
_ACEOF
 
11891
cat confdefs.h >>conftest.$ac_ext
 
11892
cat >>conftest.$ac_ext <<_ACEOF
 
11893
/* end confdefs.h.  */
 
11894
 
 
11895
/* Override any gcc2 internal prototype to avoid an error.  */
 
11896
#ifdef __cplusplus
 
11897
extern "C"
 
11898
#endif
 
11899
/* We use char because int might match the return type of a gcc2
 
11900
   builtin and then its argument prototype would still apply.  */
 
11901
char shl_load ();
 
11902
int
 
11903
main ()
 
11904
{
 
11905
shl_load ();
 
11906
  ;
 
11907
  return 0;
 
11908
}
 
11909
_ACEOF
 
11910
rm -f conftest.$ac_objext conftest$ac_exeext
 
11911
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11912
  (eval $ac_link) 2>conftest.er1
 
11913
  ac_status=$?
 
11914
  grep -v '^ *+' conftest.er1 >conftest.err
 
11915
  rm -f conftest.er1
 
11916
  cat conftest.err >&5
 
11917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11918
  (exit $ac_status); } &&
 
11919
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11920
                         || test ! -s conftest.err'
 
11921
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11922
  (eval $ac_try) 2>&5
 
11923
  ac_status=$?
 
11924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11925
  (exit $ac_status); }; } &&
 
11926
         { ac_try='test -s conftest$ac_exeext'
 
11927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11928
  (eval $ac_try) 2>&5
 
11929
  ac_status=$?
 
11930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11931
  (exit $ac_status); }; }; then
 
11932
  ac_cv_lib_dld_shl_load=yes
 
11933
else
 
11934
  echo "$as_me: failed program was:" >&5
 
11935
sed 's/^/| /' conftest.$ac_ext >&5
 
11936
 
 
11937
ac_cv_lib_dld_shl_load=no
 
11938
fi
 
11939
rm -f conftest.err conftest.$ac_objext \
 
11940
      conftest$ac_exeext conftest.$ac_ext
 
11941
LIBS=$ac_check_lib_save_LIBS
 
11942
fi
 
11943
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11944
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11945
if test $ac_cv_lib_dld_shl_load = yes; then
 
11946
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11947
else
 
11948
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11949
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11950
if test "${ac_cv_func_dlopen+set}" = set; then
 
11951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11952
else
 
11953
  cat >conftest.$ac_ext <<_ACEOF
 
11954
/* confdefs.h.  */
 
11955
_ACEOF
 
11956
cat confdefs.h >>conftest.$ac_ext
 
11957
cat >>conftest.$ac_ext <<_ACEOF
 
11958
/* end confdefs.h.  */
 
11959
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
11960
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11961
#define dlopen innocuous_dlopen
 
11962
 
 
11963
/* System header to define __stub macros and hopefully few prototypes,
 
11964
    which can conflict with char dlopen (); below.
 
11965
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11966
    <limits.h> exists even on freestanding compilers.  */
 
11967
 
 
11968
#ifdef __STDC__
 
11969
# include <limits.h>
 
11970
#else
 
11971
# include <assert.h>
 
11972
#endif
 
11973
 
 
11974
#undef dlopen
 
11975
 
 
11976
/* Override any gcc2 internal prototype to avoid an error.  */
 
11977
#ifdef __cplusplus
 
11978
extern "C"
 
11979
{
 
11980
#endif
 
11981
/* We use char because int might match the return type of a gcc2
 
11982
   builtin and then its argument prototype would still apply.  */
 
11983
char dlopen ();
 
11984
/* The GNU C library defines this for functions which it implements
 
11985
    to always fail with ENOSYS.  Some functions are actually named
 
11986
    something starting with __ and the normal name is an alias.  */
 
11987
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11988
choke me
 
11989
#else
 
11990
char (*f) () = dlopen;
 
11991
#endif
 
11992
#ifdef __cplusplus
 
11993
}
 
11994
#endif
 
11995
 
 
11996
int
 
11997
main ()
 
11998
{
 
11999
return f != dlopen;
 
12000
  ;
 
12001
  return 0;
 
12002
}
 
12003
_ACEOF
 
12004
rm -f conftest.$ac_objext conftest$ac_exeext
 
12005
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12006
  (eval $ac_link) 2>conftest.er1
 
12007
  ac_status=$?
 
12008
  grep -v '^ *+' conftest.er1 >conftest.err
 
12009
  rm -f conftest.er1
 
12010
  cat conftest.err >&5
 
12011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12012
  (exit $ac_status); } &&
 
12013
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12014
                         || test ! -s conftest.err'
 
12015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12016
  (eval $ac_try) 2>&5
 
12017
  ac_status=$?
 
12018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12019
  (exit $ac_status); }; } &&
 
12020
         { ac_try='test -s conftest$ac_exeext'
 
12021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12022
  (eval $ac_try) 2>&5
 
12023
  ac_status=$?
 
12024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12025
  (exit $ac_status); }; }; then
 
12026
  ac_cv_func_dlopen=yes
 
12027
else
 
12028
  echo "$as_me: failed program was:" >&5
 
12029
sed 's/^/| /' conftest.$ac_ext >&5
 
12030
 
 
12031
ac_cv_func_dlopen=no
 
12032
fi
 
12033
rm -f conftest.err conftest.$ac_objext \
 
12034
      conftest$ac_exeext conftest.$ac_ext
 
12035
fi
 
12036
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12037
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12038
if test $ac_cv_func_dlopen = yes; then
 
12039
  lt_cv_dlopen="dlopen"
 
12040
else
 
12041
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12042
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12043
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12044
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12045
else
 
12046
  ac_check_lib_save_LIBS=$LIBS
 
12047
LIBS="-ldl  $LIBS"
 
12048
cat >conftest.$ac_ext <<_ACEOF
 
12049
/* confdefs.h.  */
 
12050
_ACEOF
 
12051
cat confdefs.h >>conftest.$ac_ext
 
12052
cat >>conftest.$ac_ext <<_ACEOF
 
12053
/* end confdefs.h.  */
 
12054
 
 
12055
/* Override any gcc2 internal prototype to avoid an error.  */
 
12056
#ifdef __cplusplus
 
12057
extern "C"
 
12058
#endif
 
12059
/* We use char because int might match the return type of a gcc2
 
12060
   builtin and then its argument prototype would still apply.  */
 
12061
char dlopen ();
 
12062
int
 
12063
main ()
 
12064
{
 
12065
dlopen ();
 
12066
  ;
 
12067
  return 0;
 
12068
}
 
12069
_ACEOF
 
12070
rm -f conftest.$ac_objext conftest$ac_exeext
 
12071
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12072
  (eval $ac_link) 2>conftest.er1
 
12073
  ac_status=$?
 
12074
  grep -v '^ *+' conftest.er1 >conftest.err
 
12075
  rm -f conftest.er1
 
12076
  cat conftest.err >&5
 
12077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12078
  (exit $ac_status); } &&
 
12079
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12080
                         || test ! -s conftest.err'
 
12081
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12082
  (eval $ac_try) 2>&5
 
12083
  ac_status=$?
 
12084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12085
  (exit $ac_status); }; } &&
 
12086
         { ac_try='test -s conftest$ac_exeext'
 
12087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12088
  (eval $ac_try) 2>&5
 
12089
  ac_status=$?
 
12090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12091
  (exit $ac_status); }; }; then
 
12092
  ac_cv_lib_dl_dlopen=yes
 
12093
else
 
12094
  echo "$as_me: failed program was:" >&5
 
12095
sed 's/^/| /' conftest.$ac_ext >&5
 
12096
 
 
12097
ac_cv_lib_dl_dlopen=no
 
12098
fi
 
12099
rm -f conftest.err conftest.$ac_objext \
 
12100
      conftest$ac_exeext conftest.$ac_ext
 
12101
LIBS=$ac_check_lib_save_LIBS
 
12102
fi
 
12103
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12104
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12105
if test $ac_cv_lib_dl_dlopen = yes; then
 
12106
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12107
else
 
12108
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12109
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12110
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12112
else
 
12113
  ac_check_lib_save_LIBS=$LIBS
 
12114
LIBS="-lsvld  $LIBS"
 
12115
cat >conftest.$ac_ext <<_ACEOF
 
12116
/* confdefs.h.  */
 
12117
_ACEOF
 
12118
cat confdefs.h >>conftest.$ac_ext
 
12119
cat >>conftest.$ac_ext <<_ACEOF
 
12120
/* end confdefs.h.  */
 
12121
 
 
12122
/* Override any gcc2 internal prototype to avoid an error.  */
 
12123
#ifdef __cplusplus
 
12124
extern "C"
 
12125
#endif
 
12126
/* We use char because int might match the return type of a gcc2
 
12127
   builtin and then its argument prototype would still apply.  */
 
12128
char dlopen ();
 
12129
int
 
12130
main ()
 
12131
{
 
12132
dlopen ();
 
12133
  ;
 
12134
  return 0;
 
12135
}
 
12136
_ACEOF
 
12137
rm -f conftest.$ac_objext conftest$ac_exeext
 
12138
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12139
  (eval $ac_link) 2>conftest.er1
 
12140
  ac_status=$?
 
12141
  grep -v '^ *+' conftest.er1 >conftest.err
 
12142
  rm -f conftest.er1
 
12143
  cat conftest.err >&5
 
12144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12145
  (exit $ac_status); } &&
 
12146
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12147
                         || test ! -s conftest.err'
 
12148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12149
  (eval $ac_try) 2>&5
 
12150
  ac_status=$?
 
12151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12152
  (exit $ac_status); }; } &&
 
12153
         { ac_try='test -s conftest$ac_exeext'
 
12154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12155
  (eval $ac_try) 2>&5
 
12156
  ac_status=$?
 
12157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12158
  (exit $ac_status); }; }; then
 
12159
  ac_cv_lib_svld_dlopen=yes
 
12160
else
 
12161
  echo "$as_me: failed program was:" >&5
 
12162
sed 's/^/| /' conftest.$ac_ext >&5
 
12163
 
 
12164
ac_cv_lib_svld_dlopen=no
 
12165
fi
 
12166
rm -f conftest.err conftest.$ac_objext \
 
12167
      conftest$ac_exeext conftest.$ac_ext
 
12168
LIBS=$ac_check_lib_save_LIBS
 
12169
fi
 
12170
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12171
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12172
if test $ac_cv_lib_svld_dlopen = yes; then
 
12173
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12174
else
 
12175
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12176
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12177
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12179
else
 
12180
  ac_check_lib_save_LIBS=$LIBS
 
12181
LIBS="-ldld  $LIBS"
 
12182
cat >conftest.$ac_ext <<_ACEOF
 
12183
/* confdefs.h.  */
 
12184
_ACEOF
 
12185
cat confdefs.h >>conftest.$ac_ext
 
12186
cat >>conftest.$ac_ext <<_ACEOF
 
12187
/* end confdefs.h.  */
 
12188
 
 
12189
/* Override any gcc2 internal prototype to avoid an error.  */
 
12190
#ifdef __cplusplus
 
12191
extern "C"
 
12192
#endif
 
12193
/* We use char because int might match the return type of a gcc2
 
12194
   builtin and then its argument prototype would still apply.  */
 
12195
char dld_link ();
 
12196
int
 
12197
main ()
 
12198
{
 
12199
dld_link ();
 
12200
  ;
 
12201
  return 0;
 
12202
}
 
12203
_ACEOF
 
12204
rm -f conftest.$ac_objext conftest$ac_exeext
 
12205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12206
  (eval $ac_link) 2>conftest.er1
 
12207
  ac_status=$?
 
12208
  grep -v '^ *+' conftest.er1 >conftest.err
 
12209
  rm -f conftest.er1
 
12210
  cat conftest.err >&5
 
12211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12212
  (exit $ac_status); } &&
 
12213
         { ac_try='test -z "$ac_cxx_werror_flag"
 
12214
                         || 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_lib_dld_dld_link=yes
 
12227
else
 
12228
  echo "$as_me: failed program was:" >&5
 
12229
sed 's/^/| /' conftest.$ac_ext >&5
 
12230
 
 
12231
ac_cv_lib_dld_dld_link=no
 
12232
fi
 
12233
rm -f conftest.err conftest.$ac_objext \
 
12234
      conftest$ac_exeext conftest.$ac_ext
 
12235
LIBS=$ac_check_lib_save_LIBS
 
12236
fi
 
12237
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12238
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12239
if test $ac_cv_lib_dld_dld_link = yes; then
 
12240
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12241
fi
 
12242
 
 
12243
 
 
12244
fi
 
12245
 
 
12246
 
 
12247
fi
 
12248
 
 
12249
 
 
12250
fi
 
12251
 
 
12252
 
 
12253
fi
 
12254
 
 
12255
 
 
12256
fi
 
12257
 
 
12258
    ;;
 
12259
  esac
 
12260
 
 
12261
  if test "x$lt_cv_dlopen" != xno; then
 
12262
    enable_dlopen=yes
 
12263
  else
 
12264
    enable_dlopen=no
 
12265
  fi
 
12266
 
 
12267
  case $lt_cv_dlopen in
 
12268
  dlopen)
 
12269
    save_CPPFLAGS="$CPPFLAGS"
 
12270
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12271
 
 
12272
    save_LDFLAGS="$LDFLAGS"
 
12273
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12274
 
 
12275
    save_LIBS="$LIBS"
 
12276
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12277
 
 
12278
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12279
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12280
if test "${lt_cv_dlopen_self+set}" = set; then
 
12281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12282
else
 
12283
          if test "$cross_compiling" = yes; then :
 
12284
  lt_cv_dlopen_self=cross
 
12285
else
 
12286
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12287
  lt_status=$lt_dlunknown
 
12288
  cat > conftest.$ac_ext <<EOF
 
12289
#line 12289 "configure"
 
12290
#include "confdefs.h"
 
12291
 
 
12292
#if HAVE_DLFCN_H
 
12293
#include <dlfcn.h>
 
12294
#endif
 
12295
 
 
12296
#include <stdio.h>
 
12297
 
 
12298
#ifdef RTLD_GLOBAL
 
12299
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12300
#else
 
12301
#  ifdef DL_GLOBAL
 
12302
#    define LT_DLGLOBAL         DL_GLOBAL
 
12303
#  else
 
12304
#    define LT_DLGLOBAL         0
 
12305
#  endif
 
12306
#endif
 
12307
 
 
12308
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12309
   find out it does not work in some platform. */
 
12310
#ifndef LT_DLLAZY_OR_NOW
 
12311
#  ifdef RTLD_LAZY
 
12312
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12313
#  else
 
12314
#    ifdef DL_LAZY
 
12315
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12316
#    else
 
12317
#      ifdef RTLD_NOW
 
12318
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12319
#      else
 
12320
#        ifdef DL_NOW
 
12321
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12322
#        else
 
12323
#          define LT_DLLAZY_OR_NOW      0
 
12324
#        endif
 
12325
#      endif
 
12326
#    endif
 
12327
#  endif
 
12328
#endif
 
12329
 
 
12330
#ifdef __cplusplus
 
12331
extern "C" void exit (int);
 
12332
#endif
 
12333
 
 
12334
void fnord() { int i=42;}
 
12335
int main ()
 
12336
{
 
12337
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12338
  int status = $lt_dlunknown;
 
12339
 
 
12340
  if (self)
 
12341
    {
 
12342
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12343
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12344
      /* dlclose (self); */
 
12345
    }
 
12346
 
 
12347
    exit (status);
 
12348
}
 
12349
EOF
 
12350
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12351
  (eval $ac_link) 2>&5
 
12352
  ac_status=$?
 
12353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12354
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12355
    (./conftest; exit; ) >&5 2>/dev/null
 
12356
    lt_status=$?
 
12357
    case x$lt_status in
 
12358
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12359
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12360
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12361
    esac
 
12362
  else :
 
12363
    # compilation failed
 
12364
    lt_cv_dlopen_self=no
 
12365
  fi
 
12366
fi
 
12367
rm -fr conftest*
 
12368
 
 
12369
 
 
12370
fi
 
12371
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12372
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12373
 
 
12374
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12375
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12376
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12377
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12378
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12379
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12380
else
 
12381
          if test "$cross_compiling" = yes; then :
 
12382
  lt_cv_dlopen_self_static=cross
 
12383
else
 
12384
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12385
  lt_status=$lt_dlunknown
 
12386
  cat > conftest.$ac_ext <<EOF
 
12387
#line 12387 "configure"
 
12388
#include "confdefs.h"
 
12389
 
 
12390
#if HAVE_DLFCN_H
 
12391
#include <dlfcn.h>
 
12392
#endif
 
12393
 
 
12394
#include <stdio.h>
 
12395
 
 
12396
#ifdef RTLD_GLOBAL
 
12397
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12398
#else
 
12399
#  ifdef DL_GLOBAL
 
12400
#    define LT_DLGLOBAL         DL_GLOBAL
 
12401
#  else
 
12402
#    define LT_DLGLOBAL         0
 
12403
#  endif
 
12404
#endif
 
12405
 
 
12406
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12407
   find out it does not work in some platform. */
 
12408
#ifndef LT_DLLAZY_OR_NOW
 
12409
#  ifdef RTLD_LAZY
 
12410
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12411
#  else
 
12412
#    ifdef DL_LAZY
 
12413
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12414
#    else
 
12415
#      ifdef RTLD_NOW
 
12416
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12417
#      else
 
12418
#        ifdef DL_NOW
 
12419
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12420
#        else
 
12421
#          define LT_DLLAZY_OR_NOW      0
 
12422
#        endif
 
12423
#      endif
 
12424
#    endif
 
12425
#  endif
 
12426
#endif
 
12427
 
 
12428
#ifdef __cplusplus
 
12429
extern "C" void exit (int);
 
12430
#endif
 
12431
 
 
12432
void fnord() { int i=42;}
 
12433
int main ()
 
12434
{
 
12435
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12436
  int status = $lt_dlunknown;
 
12437
 
 
12438
  if (self)
 
12439
    {
 
12440
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12441
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12442
      /* dlclose (self); */
 
12443
    }
 
12444
 
 
12445
    exit (status);
 
12446
}
 
12447
EOF
 
12448
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12449
  (eval $ac_link) 2>&5
 
12450
  ac_status=$?
 
12451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12452
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12453
    (./conftest; exit; ) >&5 2>/dev/null
 
12454
    lt_status=$?
 
12455
    case x$lt_status in
 
12456
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12457
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12458
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12459
    esac
 
12460
  else :
 
12461
    # compilation failed
 
12462
    lt_cv_dlopen_self_static=no
 
12463
  fi
 
12464
fi
 
12465
rm -fr conftest*
 
12466
 
 
12467
 
 
12468
fi
 
12469
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12470
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12471
    fi
 
12472
 
 
12473
    CPPFLAGS="$save_CPPFLAGS"
 
12474
    LDFLAGS="$save_LDFLAGS"
 
12475
    LIBS="$save_LIBS"
 
12476
    ;;
 
12477
  esac
 
12478
 
 
12479
  case $lt_cv_dlopen_self in
 
12480
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12481
  *) enable_dlopen_self=unknown ;;
 
12482
  esac
 
12483
 
 
12484
  case $lt_cv_dlopen_self_static in
 
12485
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12486
  *) enable_dlopen_self_static=unknown ;;
 
12487
  esac
 
12488
fi
 
12489
 
 
12490
 
 
12491
# The else clause should only fire when bootstrapping the
 
12492
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12493
# with your package, and you will get complaints that there are
 
12494
# no rules to generate ltmain.sh.
 
12495
if test -f "$ltmain"; then
 
12496
  # See if we are running on zsh, and set the options which allow our commands through
 
12497
  # without removal of \ escapes.
 
12498
  if test -n "${ZSH_VERSION+set}" ; then
 
12499
    setopt NO_GLOB_SUBST
 
12500
  fi
 
12501
  # Now quote all the things that may contain metacharacters while being
 
12502
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12503
  # variables and quote the copies for generation of the libtool script.
 
12504
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12505
    SED SHELL STRIP \
 
12506
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12507
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12508
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12509
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12510
    lt_cv_sys_global_symbol_to_c_name_address \
 
12511
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12512
    old_postinstall_cmds old_postuninstall_cmds \
 
12513
    compiler_CXX \
 
12514
    CC_CXX \
 
12515
    LD_CXX \
 
12516
    lt_prog_compiler_wl_CXX \
 
12517
    lt_prog_compiler_pic_CXX \
 
12518
    lt_prog_compiler_static_CXX \
 
12519
    lt_prog_compiler_no_builtin_flag_CXX \
 
12520
    export_dynamic_flag_spec_CXX \
 
12521
    thread_safe_flag_spec_CXX \
 
12522
    whole_archive_flag_spec_CXX \
 
12523
    enable_shared_with_static_runtimes_CXX \
 
12524
    old_archive_cmds_CXX \
 
12525
    old_archive_from_new_cmds_CXX \
 
12526
    predep_objects_CXX \
 
12527
    postdep_objects_CXX \
 
12528
    predeps_CXX \
 
12529
    postdeps_CXX \
 
12530
    compiler_lib_search_path_CXX \
 
12531
    archive_cmds_CXX \
 
12532
    archive_expsym_cmds_CXX \
 
12533
    postinstall_cmds_CXX \
 
12534
    postuninstall_cmds_CXX \
 
12535
    old_archive_from_expsyms_cmds_CXX \
 
12536
    allow_undefined_flag_CXX \
 
12537
    no_undefined_flag_CXX \
 
12538
    export_symbols_cmds_CXX \
 
12539
    hardcode_libdir_flag_spec_CXX \
 
12540
    hardcode_libdir_flag_spec_ld_CXX \
 
12541
    hardcode_libdir_separator_CXX \
 
12542
    hardcode_automatic_CXX \
 
12543
    module_cmds_CXX \
 
12544
    module_expsym_cmds_CXX \
 
12545
    lt_cv_prog_compiler_c_o_CXX \
 
12546
    exclude_expsyms_CXX \
 
12547
    include_expsyms_CXX; do
 
12548
 
 
12549
    case $var in
 
12550
    old_archive_cmds_CXX | \
 
12551
    old_archive_from_new_cmds_CXX | \
 
12552
    archive_cmds_CXX | \
 
12553
    archive_expsym_cmds_CXX | \
 
12554
    module_cmds_CXX | \
 
12555
    module_expsym_cmds_CXX | \
 
12556
    old_archive_from_expsyms_cmds_CXX | \
 
12557
    export_symbols_cmds_CXX | \
 
12558
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12559
    postinstall_cmds | postuninstall_cmds | \
 
12560
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12561
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12562
      # Double-quote double-evaled strings.
 
12563
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12564
      ;;
 
12565
    *)
 
12566
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12567
      ;;
 
12568
    esac
 
12569
  done
 
12570
 
 
12571
  case $lt_echo in
 
12572
  *'\$0 --fallback-echo"')
 
12573
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12574
    ;;
 
12575
  esac
 
12576
 
 
12577
cfgfile="$ofile"
 
12578
 
 
12579
  cat <<__EOF__ >> "$cfgfile"
 
12580
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12581
 
 
12582
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12583
 
 
12584
# Shell to use when invoking shell scripts.
 
12585
SHELL=$lt_SHELL
 
12586
 
 
12587
# Whether or not to build shared libraries.
 
12588
build_libtool_libs=$enable_shared
 
12589
 
 
12590
# Whether or not to build static libraries.
 
12591
build_old_libs=$enable_static
 
12592
 
 
12593
# Whether or not to add -lc for building shared libraries.
 
12594
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12595
 
 
12596
# Whether or not to disallow shared libs when runtime libs are static
 
12597
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12598
 
 
12599
# Whether or not to optimize for fast installation.
 
12600
fast_install=$enable_fast_install
 
12601
 
 
12602
# The host system.
 
12603
host_alias=$host_alias
 
12604
host=$host
 
12605
host_os=$host_os
 
12606
 
 
12607
# The build system.
 
12608
build_alias=$build_alias
 
12609
build=$build
 
12610
build_os=$build_os
 
12611
 
 
12612
# An echo program that does not interpret backslashes.
 
12613
echo=$lt_echo
 
12614
 
 
12615
# The archiver.
 
12616
AR=$lt_AR
 
12617
AR_FLAGS=$lt_AR_FLAGS
 
12618
 
 
12619
# A C compiler.
 
12620
LTCC=$lt_LTCC
 
12621
 
 
12622
# A language-specific compiler.
 
12623
CC=$lt_compiler_CXX
 
12624
 
 
12625
# Is the compiler the GNU C compiler?
 
12626
with_gcc=$GCC_CXX
 
12627
 
 
12628
# An ERE matcher.
 
12629
EGREP=$lt_EGREP
 
12630
 
 
12631
# The linker used to build libraries.
 
12632
LD=$lt_LD_CXX
 
12633
 
 
12634
# Whether we need hard or soft links.
 
12635
LN_S=$lt_LN_S
 
12636
 
 
12637
# A BSD-compatible nm program.
 
12638
NM=$lt_NM
 
12639
 
 
12640
# A symbol stripping program
 
12641
STRIP=$lt_STRIP
 
12642
 
 
12643
# Used to examine libraries when file_magic_cmd begins "file"
 
12644
MAGIC_CMD=$MAGIC_CMD
 
12645
 
 
12646
# Used on cygwin: DLL creation program.
 
12647
DLLTOOL="$DLLTOOL"
 
12648
 
 
12649
# Used on cygwin: object dumper.
 
12650
OBJDUMP="$OBJDUMP"
 
12651
 
 
12652
# Used on cygwin: assembler.
 
12653
AS="$AS"
 
12654
 
 
12655
# The name of the directory that contains temporary libtool files.
 
12656
objdir=$objdir
 
12657
 
 
12658
# How to create reloadable object files.
 
12659
reload_flag=$lt_reload_flag
 
12660
reload_cmds=$lt_reload_cmds
 
12661
 
 
12662
# How to pass a linker flag through the compiler.
 
12663
wl=$lt_lt_prog_compiler_wl_CXX
 
12664
 
 
12665
# Object file suffix (normally "o").
 
12666
objext="$ac_objext"
 
12667
 
 
12668
# Old archive suffix (normally "a").
 
12669
libext="$libext"
 
12670
 
 
12671
# Shared library suffix (normally ".so").
 
12672
shrext_cmds='$shrext_cmds'
 
12673
 
 
12674
# Executable file suffix (normally "").
 
12675
exeext="$exeext"
 
12676
 
 
12677
# Additional compiler flags for building library objects.
 
12678
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12679
pic_mode=$pic_mode
 
12680
 
 
12681
# What is the maximum length of a command?
 
12682
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12683
 
 
12684
# Does compiler simultaneously support -c and -o options?
 
12685
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12686
 
 
12687
# Must we lock files when doing compilation?
 
12688
need_locks=$lt_need_locks
 
12689
 
 
12690
# Do we need the lib prefix for modules?
 
12691
need_lib_prefix=$need_lib_prefix
 
12692
 
 
12693
# Do we need a version for libraries?
 
12694
need_version=$need_version
 
12695
 
 
12696
# Whether dlopen is supported.
 
12697
dlopen_support=$enable_dlopen
 
12698
 
 
12699
# Whether dlopen of programs is supported.
 
12700
dlopen_self=$enable_dlopen_self
 
12701
 
 
12702
# Whether dlopen of statically linked programs is supported.
 
12703
dlopen_self_static=$enable_dlopen_self_static
 
12704
 
 
12705
# Compiler flag to prevent dynamic linking.
 
12706
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12707
 
 
12708
# Compiler flag to turn off builtin functions.
 
12709
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12710
 
 
12711
# Compiler flag to allow reflexive dlopens.
 
12712
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12713
 
 
12714
# Compiler flag to generate shared objects directly from archives.
 
12715
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12716
 
 
12717
# Compiler flag to generate thread-safe objects.
 
12718
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12719
 
 
12720
# Library versioning type.
 
12721
version_type=$version_type
 
12722
 
 
12723
# Format of library name prefix.
 
12724
libname_spec=$lt_libname_spec
 
12725
 
 
12726
# List of archive names.  First name is the real one, the rest are links.
 
12727
# The last name is the one that the linker finds with -lNAME.
 
12728
library_names_spec=$lt_library_names_spec
 
12729
 
 
12730
# The coded name of the library, if different from the real name.
 
12731
soname_spec=$lt_soname_spec
 
12732
 
 
12733
# Commands used to build and install an old-style archive.
 
12734
RANLIB=$lt_RANLIB
 
12735
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12736
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12737
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12738
 
 
12739
# Create an old-style archive from a shared archive.
 
12740
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12741
 
 
12742
# Create a temporary old-style archive to link instead of a shared archive.
 
12743
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12744
 
 
12745
# Commands used to build and install a shared archive.
 
12746
archive_cmds=$lt_archive_cmds_CXX
 
12747
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12748
postinstall_cmds=$lt_postinstall_cmds
 
12749
postuninstall_cmds=$lt_postuninstall_cmds
 
12750
 
 
12751
# Commands used to build a loadable module (assumed same as above if empty)
 
12752
module_cmds=$lt_module_cmds_CXX
 
12753
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12754
 
 
12755
# Commands to strip libraries.
 
12756
old_striplib=$lt_old_striplib
 
12757
striplib=$lt_striplib
 
12758
 
 
12759
# Dependencies to place before the objects being linked to create a
 
12760
# shared library.
 
12761
predep_objects=$lt_predep_objects_CXX
 
12762
 
 
12763
# Dependencies to place after the objects being linked to create a
 
12764
# shared library.
 
12765
postdep_objects=$lt_postdep_objects_CXX
 
12766
 
 
12767
# Dependencies to place before the objects being linked to create a
 
12768
# shared library.
 
12769
predeps=$lt_predeps_CXX
 
12770
 
 
12771
# Dependencies to place after the objects being linked to create a
 
12772
# shared library.
 
12773
postdeps=$lt_postdeps_CXX
 
12774
 
 
12775
# The library search path used internally by the compiler when linking
 
12776
# a shared library.
 
12777
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12778
 
 
12779
# Method to check whether dependent libraries are shared objects.
 
12780
deplibs_check_method=$lt_deplibs_check_method
 
12781
 
 
12782
# Command to use when deplibs_check_method == file_magic.
 
12783
file_magic_cmd=$lt_file_magic_cmd
 
12784
 
 
12785
# Flag that allows shared libraries with undefined symbols to be built.
 
12786
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12787
 
 
12788
# Flag that forces no undefined symbols.
 
12789
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12790
 
 
12791
# Commands used to finish a libtool library installation in a directory.
 
12792
finish_cmds=$lt_finish_cmds
 
12793
 
 
12794
# Same as above, but a single script fragment to be evaled but not shown.
 
12795
finish_eval=$lt_finish_eval
 
12796
 
 
12797
# Take the output of nm and produce a listing of raw symbols and C names.
 
12798
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12799
 
 
12800
# Transform the output of nm in a proper C declaration
 
12801
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12802
 
 
12803
# Transform the output of nm in a C name address pair
 
12804
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12805
 
 
12806
# This is the shared library runtime path variable.
 
12807
runpath_var=$runpath_var
 
12808
 
 
12809
# This is the shared library path variable.
 
12810
shlibpath_var=$shlibpath_var
 
12811
 
 
12812
# Is shlibpath searched before the hard-coded library search path?
 
12813
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12814
 
 
12815
# How to hardcode a shared library path into an executable.
 
12816
hardcode_action=$hardcode_action_CXX
 
12817
 
 
12818
# Whether we should hardcode library paths into libraries.
 
12819
hardcode_into_libs=$hardcode_into_libs
 
12820
 
 
12821
# Flag to hardcode \$libdir into a binary during linking.
 
12822
# This must work even if \$libdir does not exist.
 
12823
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
12824
 
 
12825
# If ld is used when linking, flag to hardcode \$libdir into
 
12826
# a binary during linking. This must work even if \$libdir does
 
12827
# not exist.
 
12828
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
12829
 
 
12830
# Whether we need a single -rpath flag with a separated argument.
 
12831
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
12832
 
 
12833
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
12834
# resulting binary.
 
12835
hardcode_direct=$hardcode_direct_CXX
 
12836
 
 
12837
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
12838
# resulting binary.
 
12839
hardcode_minus_L=$hardcode_minus_L_CXX
 
12840
 
 
12841
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
12842
# the resulting binary.
 
12843
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
12844
 
 
12845
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
12846
# and all subsequent libraries and executables linked against it.
 
12847
hardcode_automatic=$hardcode_automatic_CXX
 
12848
 
 
12849
# Variables whose values should be saved in libtool wrapper scripts and
 
12850
# restored at relink time.
 
12851
variables_saved_for_relink="$variables_saved_for_relink"
 
12852
 
 
12853
# Whether libtool must link a program against all its dependency libraries.
 
12854
link_all_deplibs=$link_all_deplibs_CXX
 
12855
 
 
12856
# Compile-time system search path for libraries
 
12857
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
12858
 
 
12859
# Run-time system search path for libraries
 
12860
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
12861
 
 
12862
# Fix the shell variable \$srcfile for the compiler.
 
12863
fix_srcfile_path="$fix_srcfile_path_CXX"
 
12864
 
 
12865
# Set to yes if exported symbols are required.
 
12866
always_export_symbols=$always_export_symbols_CXX
 
12867
 
 
12868
# The commands to list exported symbols.
 
12869
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
12870
 
 
12871
# The commands to extract the exported symbol list from a shared archive.
 
12872
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
12873
 
 
12874
# Symbols that should not be listed in the preloaded symbols.
 
12875
exclude_expsyms=$lt_exclude_expsyms_CXX
 
12876
 
 
12877
# Symbols that must always be exported.
 
12878
include_expsyms=$lt_include_expsyms_CXX
 
12879
 
 
12880
# ### END LIBTOOL TAG CONFIG: $tagname
 
12881
 
 
12882
__EOF__
 
12883
 
 
12884
 
 
12885
else
 
12886
  # If there is no Makefile yet, we rely on a make rule to execute
 
12887
  # `config.status --recheck' to rerun these tests and create the
 
12888
  # libtool script then.
 
12889
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
12890
  if test -f "$ltmain_in"; then
 
12891
    test -f Makefile && make "$ltmain"
 
12892
  fi
 
12893
fi
 
12894
 
 
12895
 
 
12896
ac_ext=c
 
12897
ac_cpp='$CPP $CPPFLAGS'
 
12898
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12899
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12900
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
12901
 
 
12902
CC=$lt_save_CC
 
12903
LDCXX=$LD
 
12904
LD=$lt_save_LD
 
12905
GCC=$lt_save_GCC
 
12906
with_gnu_ldcxx=$with_gnu_ld
 
12907
with_gnu_ld=$lt_save_with_gnu_ld
 
12908
lt_cv_path_LDCXX=$lt_cv_path_LD
 
12909
lt_cv_path_LD=$lt_save_path_LD
 
12910
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
12911
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
12912
 
 
12913
        else
 
12914
          tagname=""
 
12915
        fi
 
12916
        ;;
 
12917
 
 
12918
      F77)
 
12919
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
12920
 
 
12921
ac_ext=f
 
12922
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
12923
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12924
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
12925
 
 
12926
 
 
12927
archive_cmds_need_lc_F77=no
 
12928
allow_undefined_flag_F77=
 
12929
always_export_symbols_F77=no
 
12930
archive_expsym_cmds_F77=
 
12931
export_dynamic_flag_spec_F77=
 
12932
hardcode_direct_F77=no
 
12933
hardcode_libdir_flag_spec_F77=
 
12934
hardcode_libdir_flag_spec_ld_F77=
 
12935
hardcode_libdir_separator_F77=
 
12936
hardcode_minus_L_F77=no
 
12937
hardcode_automatic_F77=no
 
12938
module_cmds_F77=
 
12939
module_expsym_cmds_F77=
 
12940
link_all_deplibs_F77=unknown
 
12941
old_archive_cmds_F77=$old_archive_cmds
 
12942
no_undefined_flag_F77=
 
12943
whole_archive_flag_spec_F77=
 
12944
enable_shared_with_static_runtimes_F77=no
 
12945
 
 
12946
# Source file extension for f77 test sources.
 
12947
ac_ext=f
 
12948
 
 
12949
# Object file extension for compiled f77 test sources.
 
12950
objext=o
 
12951
objext_F77=$objext
 
12952
 
 
12953
# Code to be used in simple compile tests
 
12954
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
12955
 
 
12956
# Code to be used in simple link tests
 
12957
lt_simple_link_test_code="      program t\n      end\n"
 
12958
 
 
12959
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
12960
 
 
12961
# If no C compiler was specified, use CC.
 
12962
LTCC=${LTCC-"$CC"}
 
12963
 
 
12964
# Allow CC to be a program name with arguments.
 
12965
compiler=$CC
 
12966
 
 
12967
 
 
12968
# save warnings/boilerplate of simple test code
 
12969
ac_outfile=conftest.$ac_objext
 
12970
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12971
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
12972
_lt_compiler_boilerplate=`cat conftest.err`
 
12973
$rm conftest*
 
12974
 
 
12975
ac_outfile=conftest.$ac_objext
 
12976
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
12977
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
12978
_lt_linker_boilerplate=`cat conftest.err`
 
12979
$rm conftest*
 
12980
 
 
12981
 
 
12982
# Allow CC to be a program name with arguments.
 
12983
lt_save_CC="$CC"
 
12984
CC=${F77-"f77"}
 
12985
compiler=$CC
 
12986
compiler_F77=$CC
 
12987
for cc_temp in $compiler""; do
 
12988
  case $cc_temp in
 
12989
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12990
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12991
    \-*) ;;
 
12992
    *) break;;
 
12993
  esac
 
12994
done
 
12995
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12996
 
 
12997
 
 
12998
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12999
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13000
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13001
echo "${ECHO_T}$can_build_shared" >&6
 
13002
 
 
13003
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13004
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13005
test "$can_build_shared" = "no" && enable_shared=no
 
13006
 
 
13007
# On AIX, shared libraries and static libraries use the same namespace, and
 
13008
# are all built from PIC.
 
13009
case $host_os in
 
13010
aix3*)
 
13011
  test "$enable_shared" = yes && enable_static=no
 
13012
  if test -n "$RANLIB"; then
 
13013
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13014
    postinstall_cmds='$RANLIB $lib'
 
13015
  fi
 
13016
  ;;
 
13017
aix4* | aix5*)
 
13018
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13019
    test "$enable_shared" = yes && enable_static=no
 
13020
  fi
 
13021
  ;;
 
13022
esac
 
13023
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13024
echo "${ECHO_T}$enable_shared" >&6
 
13025
 
 
13026
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13027
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13028
# Make sure either enable_shared or enable_static is yes.
 
13029
test "$enable_shared" = yes || enable_static=yes
 
13030
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13031
echo "${ECHO_T}$enable_static" >&6
 
13032
 
 
13033
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13034
 
 
13035
GCC_F77="$G77"
 
13036
LD_F77="$LD"
 
13037
 
 
13038
lt_prog_compiler_wl_F77=
 
13039
lt_prog_compiler_pic_F77=
 
13040
lt_prog_compiler_static_F77=
 
13041
 
 
13042
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13043
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13044
 
 
13045
  if test "$GCC" = yes; then
 
13046
    lt_prog_compiler_wl_F77='-Wl,'
 
13047
    lt_prog_compiler_static_F77='-static'
 
13048
 
 
13049
    case $host_os in
 
13050
      aix*)
 
13051
      # All AIX code is PIC.
 
13052
      if test "$host_cpu" = ia64; then
 
13053
        # AIX 5 now supports IA64 processor
 
13054
        lt_prog_compiler_static_F77='-Bstatic'
 
13055
      fi
 
13056
      ;;
 
13057
 
 
13058
    amigaos*)
 
13059
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13060
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13061
      # like `-m68040'.
 
13062
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13063
      ;;
 
13064
 
 
13065
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13066
      # PIC is the default for these OSes.
 
13067
      ;;
 
13068
 
 
13069
    mingw* | pw32* | os2*)
 
13070
      # This hack is so that the source file can tell whether it is being
 
13071
      # built for inclusion in a dll (and should export symbols for example).
 
13072
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13073
      ;;
 
13074
 
 
13075
    darwin* | rhapsody*)
 
13076
      # PIC is the default on this platform
 
13077
      # Common symbols not allowed in MH_DYLIB files
 
13078
      lt_prog_compiler_pic_F77='-fno-common'
 
13079
      ;;
 
13080
 
 
13081
    msdosdjgpp*)
 
13082
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13083
      # on systems that don't support them.
 
13084
      lt_prog_compiler_can_build_shared_F77=no
 
13085
      enable_shared=no
 
13086
      ;;
 
13087
 
 
13088
    sysv4*MP*)
 
13089
      if test -d /usr/nec; then
 
13090
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13091
      fi
 
13092
      ;;
 
13093
 
 
13094
    hpux*)
 
13095
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13096
      # not for PA HP-UX.
 
13097
      case $host_cpu in
 
13098
      hppa*64*|ia64*)
 
13099
        # +Z the default
 
13100
        ;;
 
13101
      *)
 
13102
        lt_prog_compiler_pic_F77='-fPIC'
 
13103
        ;;
 
13104
      esac
 
13105
      ;;
 
13106
 
 
13107
    *)
 
13108
      lt_prog_compiler_pic_F77='-fPIC'
 
13109
      ;;
 
13110
    esac
 
13111
  else
 
13112
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13113
    case $host_os in
 
13114
    aix*)
 
13115
      lt_prog_compiler_wl_F77='-Wl,'
 
13116
      if test "$host_cpu" = ia64; then
 
13117
        # AIX 5 now supports IA64 processor
 
13118
        lt_prog_compiler_static_F77='-Bstatic'
 
13119
      else
 
13120
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13121
      fi
 
13122
      ;;
 
13123
      darwin*)
 
13124
        # PIC is the default on this platform
 
13125
        # Common symbols not allowed in MH_DYLIB files
 
13126
       case $cc_basename in
 
13127
         xlc*)
 
13128
         lt_prog_compiler_pic_F77='-qnocommon'
 
13129
         lt_prog_compiler_wl_F77='-Wl,'
 
13130
         ;;
 
13131
       esac
 
13132
       ;;
 
13133
 
 
13134
    mingw* | pw32* | os2*)
 
13135
      # This hack is so that the source file can tell whether it is being
 
13136
      # built for inclusion in a dll (and should export symbols for example).
 
13137
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13138
      ;;
 
13139
 
 
13140
    hpux9* | hpux10* | hpux11*)
 
13141
      lt_prog_compiler_wl_F77='-Wl,'
 
13142
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13143
      # not for PA HP-UX.
 
13144
      case $host_cpu in
 
13145
      hppa*64*|ia64*)
 
13146
        # +Z the default
 
13147
        ;;
 
13148
      *)
 
13149
        lt_prog_compiler_pic_F77='+Z'
 
13150
        ;;
 
13151
      esac
 
13152
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13153
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13154
      ;;
 
13155
 
 
13156
    irix5* | irix6* | nonstopux*)
 
13157
      lt_prog_compiler_wl_F77='-Wl,'
 
13158
      # PIC (with -KPIC) is the default.
 
13159
      lt_prog_compiler_static_F77='-non_shared'
 
13160
      ;;
 
13161
 
 
13162
    newsos6)
 
13163
      lt_prog_compiler_pic_F77='-KPIC'
 
13164
      lt_prog_compiler_static_F77='-Bstatic'
 
13165
      ;;
 
13166
 
 
13167
    linux*)
 
13168
      case $cc_basename in
 
13169
      icc* | ecc*)
 
13170
        lt_prog_compiler_wl_F77='-Wl,'
 
13171
        lt_prog_compiler_pic_F77='-KPIC'
 
13172
        lt_prog_compiler_static_F77='-static'
 
13173
        ;;
 
13174
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13175
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13176
        # which looks to be a dead project)
 
13177
        lt_prog_compiler_wl_F77='-Wl,'
 
13178
        lt_prog_compiler_pic_F77='-fpic'
 
13179
        lt_prog_compiler_static_F77='-Bstatic'
 
13180
        ;;
 
13181
      ccc*)
 
13182
        lt_prog_compiler_wl_F77='-Wl,'
 
13183
        # All Alpha code is PIC.
 
13184
        lt_prog_compiler_static_F77='-non_shared'
 
13185
        ;;
 
13186
      esac
 
13187
      ;;
 
13188
 
 
13189
    osf3* | osf4* | osf5*)
 
13190
      lt_prog_compiler_wl_F77='-Wl,'
 
13191
      # All OSF/1 code is PIC.
 
13192
      lt_prog_compiler_static_F77='-non_shared'
 
13193
      ;;
 
13194
 
 
13195
    sco3.2v5*)
 
13196
      lt_prog_compiler_pic_F77='-Kpic'
 
13197
      lt_prog_compiler_static_F77='-dn'
 
13198
      ;;
 
13199
 
 
13200
    solaris*)
 
13201
      lt_prog_compiler_pic_F77='-KPIC'
 
13202
      lt_prog_compiler_static_F77='-Bstatic'
 
13203
      case $cc_basename in
 
13204
      f77* | f90* | f95*)
 
13205
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13206
      *)
 
13207
        lt_prog_compiler_wl_F77='-Wl,';;
 
13208
      esac
 
13209
      ;;
 
13210
 
 
13211
    sunos4*)
 
13212
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13213
      lt_prog_compiler_pic_F77='-PIC'
 
13214
      lt_prog_compiler_static_F77='-Bstatic'
 
13215
      ;;
 
13216
 
 
13217
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13218
      lt_prog_compiler_wl_F77='-Wl,'
 
13219
      lt_prog_compiler_pic_F77='-KPIC'
 
13220
      lt_prog_compiler_static_F77='-Bstatic'
 
13221
      ;;
 
13222
 
 
13223
    sysv4*MP*)
 
13224
      if test -d /usr/nec ;then
 
13225
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13226
        lt_prog_compiler_static_F77='-Bstatic'
 
13227
      fi
 
13228
      ;;
 
13229
 
 
13230
    unicos*)
 
13231
      lt_prog_compiler_wl_F77='-Wl,'
 
13232
      lt_prog_compiler_can_build_shared_F77=no
 
13233
      ;;
 
13234
 
 
13235
    uts4*)
 
13236
      lt_prog_compiler_pic_F77='-pic'
 
13237
      lt_prog_compiler_static_F77='-Bstatic'
 
13238
      ;;
 
13239
 
 
13240
    *)
 
13241
      lt_prog_compiler_can_build_shared_F77=no
 
13242
      ;;
 
13243
    esac
 
13244
  fi
 
13245
 
 
13246
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13247
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13248
 
 
13249
#
 
13250
# Check to make sure the PIC flag actually works.
 
13251
#
 
13252
if test -n "$lt_prog_compiler_pic_F77"; then
 
13253
 
 
13254
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13255
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13256
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13258
else
 
13259
  lt_prog_compiler_pic_works_F77=no
 
13260
  ac_outfile=conftest.$ac_objext
 
13261
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13262
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13263
   # Insert the option either (1) after the last *FLAGS variable, or
 
13264
   # (2) before a word containing "conftest.", or (3) at the end.
 
13265
   # Note that $ac_compile itself does not contain backslashes and begins
 
13266
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13267
   # The option is referenced via a variable to avoid confusing sed.
 
13268
   lt_compile=`echo "$ac_compile" | $SED \
 
13269
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13270
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13271
   -e 's:$: $lt_compiler_flag:'`
 
13272
   (eval echo "\"\$as_me:13272: $lt_compile\"" >&5)
 
13273
   (eval "$lt_compile" 2>conftest.err)
 
13274
   ac_status=$?
 
13275
   cat conftest.err >&5
 
13276
   echo "$as_me:13276: \$? = $ac_status" >&5
 
13277
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13278
     # The compiler can only warn and ignore the option if not recognized
 
13279
     # So say no if there are warnings other than the usual output.
 
13280
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
13281
     $SED '/^$/d' conftest.err >conftest.er2
 
13282
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
13283
       lt_prog_compiler_pic_works_F77=yes
 
13284
     fi
 
13285
   fi
 
13286
   $rm conftest*
 
13287
 
 
13288
fi
 
13289
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13290
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13291
 
 
13292
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13293
    case $lt_prog_compiler_pic_F77 in
 
13294
     "" | " "*) ;;
 
13295
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13296
     esac
 
13297
else
 
13298
    lt_prog_compiler_pic_F77=
 
13299
     lt_prog_compiler_can_build_shared_F77=no
 
13300
fi
 
13301
 
 
13302
fi
 
13303
case $host_os in
 
13304
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13305
  *djgpp*)
 
13306
    lt_prog_compiler_pic_F77=
 
13307
    ;;
 
13308
  *)
 
13309
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13310
    ;;
 
13311
esac
 
13312
 
 
13313
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13314
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13315
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13317
else
 
13318
  lt_cv_prog_compiler_c_o_F77=no
 
13319
   $rm -r conftest 2>/dev/null
 
13320
   mkdir conftest
 
13321
   cd conftest
 
13322
   mkdir out
 
13323
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13324
 
 
13325
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13326
   # Insert the option either (1) after the last *FLAGS variable, or
 
13327
   # (2) before a word containing "conftest.", or (3) at the end.
 
13328
   # Note that $ac_compile itself does not contain backslashes and begins
 
13329
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13330
   lt_compile=`echo "$ac_compile" | $SED \
 
13331
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13332
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13333
   -e 's:$: $lt_compiler_flag:'`
 
13334
   (eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
 
13335
   (eval "$lt_compile" 2>out/conftest.err)
 
13336
   ac_status=$?
 
13337
   cat out/conftest.err >&5
 
13338
   echo "$as_me:13338: \$? = $ac_status" >&5
 
13339
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13340
   then
 
13341
     # The compiler can only warn and ignore the option if not recognized
 
13342
     # So say no if there are warnings
 
13343
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
13344
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
13345
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13346
       lt_cv_prog_compiler_c_o_F77=yes
 
13347
     fi
 
13348
   fi
 
13349
   chmod u+w . 2>&5
 
13350
   $rm conftest*
 
13351
   # SGI C++ compiler will create directory out/ii_files/ for
 
13352
   # template instantiation
 
13353
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13354
   $rm out/* && rmdir out
 
13355
   cd ..
 
13356
   rmdir conftest
 
13357
   $rm conftest*
 
13358
 
 
13359
fi
 
13360
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13361
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13362
 
 
13363
 
 
13364
hard_links="nottested"
 
13365
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13366
  # do not overwrite the value of need_locks provided by the user
 
13367
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13368
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13369
  hard_links=yes
 
13370
  $rm conftest*
 
13371
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13372
  touch conftest.a
 
13373
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13374
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13375
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13376
echo "${ECHO_T}$hard_links" >&6
 
13377
  if test "$hard_links" = no; then
 
13378
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13379
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13380
    need_locks=warn
 
13381
  fi
 
13382
else
 
13383
  need_locks=no
 
13384
fi
 
13385
 
 
13386
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13387
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13388
 
 
13389
  runpath_var=
 
13390
  allow_undefined_flag_F77=
 
13391
  enable_shared_with_static_runtimes_F77=no
 
13392
  archive_cmds_F77=
 
13393
  archive_expsym_cmds_F77=
 
13394
  old_archive_From_new_cmds_F77=
 
13395
  old_archive_from_expsyms_cmds_F77=
 
13396
  export_dynamic_flag_spec_F77=
 
13397
  whole_archive_flag_spec_F77=
 
13398
  thread_safe_flag_spec_F77=
 
13399
  hardcode_libdir_flag_spec_F77=
 
13400
  hardcode_libdir_flag_spec_ld_F77=
 
13401
  hardcode_libdir_separator_F77=
 
13402
  hardcode_direct_F77=no
 
13403
  hardcode_minus_L_F77=no
 
13404
  hardcode_shlibpath_var_F77=unsupported
 
13405
  link_all_deplibs_F77=unknown
 
13406
  hardcode_automatic_F77=no
 
13407
  module_cmds_F77=
 
13408
  module_expsym_cmds_F77=
 
13409
  always_export_symbols_F77=no
 
13410
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13411
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13412
  # included in the symbol list
 
13413
  include_expsyms_F77=
 
13414
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13415
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13416
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13417
  # as well as any symbol that contains `d'.
 
13418
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13419
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13420
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13421
  # the symbol is explicitly referenced.  Since portable code cannot
 
13422
  # rely on this symbol name, it's probably fine to never include it in
 
13423
  # preloaded symbol tables.
 
13424
  extract_expsyms_cmds=
 
13425
  # Just being paranoid about ensuring that cc_basename is set.
 
13426
  for cc_temp in $compiler""; do
 
13427
  case $cc_temp in
 
13428
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13429
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13430
    \-*) ;;
 
13431
    *) break;;
 
13432
  esac
 
13433
done
 
13434
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13435
 
 
13436
  case $host_os in
 
13437
  cygwin* | mingw* | pw32*)
 
13438
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13439
    # When not using gcc, we currently assume that we are using
 
13440
    # Microsoft Visual C++.
 
13441
    if test "$GCC" != yes; then
 
13442
      with_gnu_ld=no
 
13443
    fi
 
13444
    ;;
 
13445
  openbsd*)
 
13446
    with_gnu_ld=no
 
13447
    ;;
 
13448
  esac
 
13449
 
 
13450
  ld_shlibs_F77=yes
 
13451
  if test "$with_gnu_ld" = yes; then
 
13452
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13453
    wlarc='${wl}'
 
13454
 
 
13455
    # Set some defaults for GNU ld with shared library support. These
 
13456
    # are reset later if shared libraries are not supported. Putting them
 
13457
    # here allows them to be overridden if necessary.
 
13458
    runpath_var=LD_RUN_PATH
 
13459
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13460
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13461
    # ancient GNU ld didn't support --whole-archive et. al.
 
13462
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13463
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13464
      else
 
13465
        whole_archive_flag_spec_F77=
 
13466
    fi
 
13467
    supports_anon_versioning=no
 
13468
    case `$LD -v 2>/dev/null` in
 
13469
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13470
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13471
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13472
      *\ 2.11.*) ;; # other 2.11 versions
 
13473
      *) supports_anon_versioning=yes ;;
 
13474
    esac
 
13475
 
 
13476
    # See if GNU ld supports shared libraries.
 
13477
    case $host_os in
 
13478
    aix3* | aix4* | aix5*)
 
13479
      # On AIX/PPC, the GNU linker is very broken
 
13480
      if test "$host_cpu" != ia64; then
 
13481
        ld_shlibs_F77=no
 
13482
        cat <<EOF 1>&2
 
13483
 
 
13484
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13485
*** to be unable to reliably create shared libraries on AIX.
 
13486
*** Therefore, libtool is disabling shared libraries support.  If you
 
13487
*** really care for shared libraries, you may want to modify your PATH
 
13488
*** so that a non-GNU linker is found, and then restart.
 
13489
 
 
13490
EOF
 
13491
      fi
 
13492
      ;;
 
13493
 
 
13494
    amigaos*)
 
13495
      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)'
 
13496
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13497
      hardcode_minus_L_F77=yes
 
13498
 
 
13499
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13500
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13501
      # to version 4, is to share data among multiple programs linked
 
13502
      # with the same dynamic library.  Since this doesn't match the
 
13503
      # behavior of shared libraries on other platforms, we can't use
 
13504
      # them.
 
13505
      ld_shlibs_F77=no
 
13506
      ;;
 
13507
 
 
13508
    beos*)
 
13509
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13510
        allow_undefined_flag_F77=unsupported
 
13511
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13512
        # support --undefined.  This deserves some investigation.  FIXME
 
13513
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13514
      else
 
13515
        ld_shlibs_F77=no
 
13516
      fi
 
13517
      ;;
 
13518
 
 
13519
    cygwin* | mingw* | pw32*)
 
13520
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13521
      # as there is no search path for DLLs.
 
13522
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13523
      allow_undefined_flag_F77=unsupported
 
13524
      always_export_symbols_F77=no
 
13525
      enable_shared_with_static_runtimes_F77=yes
 
13526
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13527
 
 
13528
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13529
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13530
        # If the export-symbols file already is a .def file (1st line
 
13531
        # is EXPORTS), use it as is; otherwise, prepend...
 
13532
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13533
          cp $export_symbols $output_objdir/$soname.def;
 
13534
        else
 
13535
          echo EXPORTS > $output_objdir/$soname.def;
 
13536
          cat $export_symbols >> $output_objdir/$soname.def;
 
13537
        fi~
 
13538
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13539
      else
 
13540
        ld_shlibs_F77=no
 
13541
      fi
 
13542
      ;;
 
13543
 
 
13544
    linux*)
 
13545
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13546
        tmp_addflag=
 
13547
        case $cc_basename,$host_cpu in
 
13548
        pgcc*)                          # Portland Group C compiler
 
13549
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13550
          tmp_addflag=' $pic_flag'
 
13551
          ;;
 
13552
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13553
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13554
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13555
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13556
          tmp_addflag=' -i_dynamic' ;;
 
13557
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13558
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13559
        ifc* | ifort*)                  # Intel Fortran compiler
 
13560
          tmp_addflag=' -nofor_main' ;;
 
13561
        esac
 
13562
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13563
 
 
13564
        if test $supports_anon_versioning = yes; then
 
13565
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13566
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13567
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13568
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13569
        fi
 
13570
      else
 
13571
        ld_shlibs_F77=no
 
13572
      fi
 
13573
      ;;
 
13574
 
 
13575
    netbsd*)
 
13576
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13577
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13578
        wlarc=
 
13579
      else
 
13580
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13581
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13582
      fi
 
13583
      ;;
 
13584
 
 
13585
    solaris* | sysv5*)
 
13586
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13587
        ld_shlibs_F77=no
 
13588
        cat <<EOF 1>&2
 
13589
 
 
13590
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13591
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13592
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13593
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13594
*** your PATH or compiler configuration so that the native linker is
 
13595
*** used, and then restart.
 
13596
 
 
13597
EOF
 
13598
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13599
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13600
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13601
      else
 
13602
        ld_shlibs_F77=no
 
13603
      fi
 
13604
      ;;
 
13605
 
 
13606
    sunos4*)
 
13607
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13608
      wlarc=
 
13609
      hardcode_direct_F77=yes
 
13610
      hardcode_shlibpath_var_F77=no
 
13611
      ;;
 
13612
 
 
13613
    *)
 
13614
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13615
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13616
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13617
      else
 
13618
        ld_shlibs_F77=no
 
13619
      fi
 
13620
      ;;
 
13621
    esac
 
13622
 
 
13623
    if test "$ld_shlibs_F77" = no; then
 
13624
      runpath_var=
 
13625
      hardcode_libdir_flag_spec_F77=
 
13626
      export_dynamic_flag_spec_F77=
 
13627
      whole_archive_flag_spec_F77=
 
13628
    fi
 
13629
  else
 
13630
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13631
    case $host_os in
 
13632
    aix3*)
 
13633
      allow_undefined_flag_F77=unsupported
 
13634
      always_export_symbols_F77=yes
 
13635
      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'
 
13636
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13637
      # are no directories specified by -L.
 
13638
      hardcode_minus_L_F77=yes
 
13639
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13640
        # Neither direct hardcoding nor static linking is supported with a
 
13641
        # broken collect2.
 
13642
        hardcode_direct_F77=unsupported
 
13643
      fi
 
13644
      ;;
 
13645
 
 
13646
    aix4* | aix5*)
 
13647
      if test "$host_cpu" = ia64; then
 
13648
        # On IA64, the linker does run time linking by default, so we don't
 
13649
        # have to do anything special.
 
13650
        aix_use_runtimelinking=no
 
13651
        exp_sym_flag='-Bexport'
 
13652
        no_entry_flag=""
 
13653
      else
 
13654
        # If we're using GNU nm, then we don't want the "-C" option.
 
13655
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13656
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13657
          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'
 
13658
        else
 
13659
          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'
 
13660
        fi
 
13661
        aix_use_runtimelinking=no
 
13662
 
 
13663
        # Test if we are trying to use run time linking or normal
 
13664
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13665
        # need to do runtime linking.
 
13666
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13667
          for ld_flag in $LDFLAGS; do
 
13668
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13669
            aix_use_runtimelinking=yes
 
13670
            break
 
13671
          fi
 
13672
          done
 
13673
        esac
 
13674
 
 
13675
        exp_sym_flag='-bexport'
 
13676
        no_entry_flag='-bnoentry'
 
13677
      fi
 
13678
 
 
13679
      # When large executables or shared objects are built, AIX ld can
 
13680
      # have problems creating the table of contents.  If linking a library
 
13681
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13682
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13683
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13684
 
 
13685
      archive_cmds_F77=''
 
13686
      hardcode_direct_F77=yes
 
13687
      hardcode_libdir_separator_F77=':'
 
13688
      link_all_deplibs_F77=yes
 
13689
 
 
13690
      if test "$GCC" = yes; then
 
13691
        case $host_os in aix4.[012]|aix4.[012].*)
 
13692
        # We only want to do this on AIX 4.2 and lower, the check
 
13693
        # below for broken collect2 doesn't work under 4.3+
 
13694
          collect2name=`${CC} -print-prog-name=collect2`
 
13695
          if test -f "$collect2name" && \
 
13696
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13697
          then
 
13698
          # We have reworked collect2
 
13699
          hardcode_direct_F77=yes
 
13700
          else
 
13701
          # We have old collect2
 
13702
          hardcode_direct_F77=unsupported
 
13703
          # It fails to find uninstalled libraries when the uninstalled
 
13704
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13705
          # to unsupported forces relinking
 
13706
          hardcode_minus_L_F77=yes
 
13707
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13708
          hardcode_libdir_separator_F77=
 
13709
          fi
 
13710
        esac
 
13711
        shared_flag='-shared'
 
13712
        if test "$aix_use_runtimelinking" = yes; then
 
13713
          shared_flag="$shared_flag "'${wl}-G'
 
13714
        fi
 
13715
      else
 
13716
        # not using gcc
 
13717
        if test "$host_cpu" = ia64; then
 
13718
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13719
        # chokes on -Wl,-G. The following line is correct:
 
13720
          shared_flag='-G'
 
13721
        else
 
13722
        if test "$aix_use_runtimelinking" = yes; then
 
13723
            shared_flag='${wl}-G'
 
13724
          else
 
13725
            shared_flag='${wl}-bM:SRE'
 
13726
        fi
 
13727
        fi
 
13728
      fi
 
13729
 
 
13730
      # It seems that -bexpall does not export symbols beginning with
 
13731
      # underscore (_), so it is better to generate a list of symbols to export.
 
13732
      always_export_symbols_F77=yes
 
13733
      if test "$aix_use_runtimelinking" = yes; then
 
13734
        # Warning - without using the other runtime loading flags (-brtl),
 
13735
        # -berok will link without error, but may produce a broken library.
 
13736
        allow_undefined_flag_F77='-berok'
 
13737
       # Determine the default libpath from the value encoded in an empty executable.
 
13738
       cat >conftest.$ac_ext <<_ACEOF
 
13739
      program main
 
13740
 
 
13741
      end
 
13742
_ACEOF
 
13743
rm -f conftest.$ac_objext conftest$ac_exeext
 
13744
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13745
  (eval $ac_link) 2>conftest.er1
 
13746
  ac_status=$?
 
13747
  grep -v '^ *+' conftest.er1 >conftest.err
 
13748
  rm -f conftest.er1
 
13749
  cat conftest.err >&5
 
13750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13751
  (exit $ac_status); } &&
 
13752
         { ac_try='test -z "$ac_f77_werror_flag"
 
13753
                         || test ! -s conftest.err'
 
13754
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13755
  (eval $ac_try) 2>&5
 
13756
  ac_status=$?
 
13757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13758
  (exit $ac_status); }; } &&
 
13759
         { ac_try='test -s conftest$ac_exeext'
 
13760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13761
  (eval $ac_try) 2>&5
 
13762
  ac_status=$?
 
13763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13764
  (exit $ac_status); }; }; then
 
13765
 
 
13766
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13767
}'`
 
13768
# Check for a 64-bit object if we didn't find anything.
 
13769
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; }
 
13770
}'`; fi
 
13771
else
 
13772
  echo "$as_me: failed program was:" >&5
 
13773
sed 's/^/| /' conftest.$ac_ext >&5
 
13774
 
 
13775
fi
 
13776
rm -f conftest.err conftest.$ac_objext \
 
13777
      conftest$ac_exeext conftest.$ac_ext
 
13778
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13779
 
 
13780
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13781
        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"
 
13782
       else
 
13783
        if test "$host_cpu" = ia64; then
 
13784
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13785
          allow_undefined_flag_F77="-z nodefs"
 
13786
          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"
 
13787
        else
 
13788
         # Determine the default libpath from the value encoded in an empty executable.
 
13789
         cat >conftest.$ac_ext <<_ACEOF
 
13790
      program main
 
13791
 
 
13792
      end
 
13793
_ACEOF
 
13794
rm -f conftest.$ac_objext conftest$ac_exeext
 
13795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13796
  (eval $ac_link) 2>conftest.er1
 
13797
  ac_status=$?
 
13798
  grep -v '^ *+' conftest.er1 >conftest.err
 
13799
  rm -f conftest.er1
 
13800
  cat conftest.err >&5
 
13801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13802
  (exit $ac_status); } &&
 
13803
         { ac_try='test -z "$ac_f77_werror_flag"
 
13804
                         || test ! -s conftest.err'
 
13805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13806
  (eval $ac_try) 2>&5
 
13807
  ac_status=$?
 
13808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13809
  (exit $ac_status); }; } &&
 
13810
         { ac_try='test -s conftest$ac_exeext'
 
13811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13812
  (eval $ac_try) 2>&5
 
13813
  ac_status=$?
 
13814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13815
  (exit $ac_status); }; }; then
 
13816
 
 
13817
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13818
}'`
 
13819
# Check for a 64-bit object if we didn't find anything.
 
13820
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; }
 
13821
}'`; fi
 
13822
else
 
13823
  echo "$as_me: failed program was:" >&5
 
13824
sed 's/^/| /' conftest.$ac_ext >&5
 
13825
 
 
13826
fi
 
13827
rm -f conftest.err conftest.$ac_objext \
 
13828
      conftest$ac_exeext conftest.$ac_ext
 
13829
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13830
 
 
13831
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13832
          # Warning - without using the other run time loading flags,
 
13833
          # -berok will link without error, but may produce a broken library.
 
13834
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13835
          allow_undefined_flag_F77=' ${wl}-berok'
 
13836
          # -bexpall does not export symbols beginning with underscore (_)
 
13837
          always_export_symbols_F77=yes
 
13838
          # Exported symbols can be pulled into shared objects from archives
 
13839
          whole_archive_flag_spec_F77=' '
 
13840
          archive_cmds_need_lc_F77=yes
 
13841
          # This is similar to how AIX traditionally builds its shared libraries.
 
13842
          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'
 
13843
        fi
 
13844
      fi
 
13845
      ;;
 
13846
 
 
13847
    amigaos*)
 
13848
      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)'
 
13849
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13850
      hardcode_minus_L_F77=yes
 
13851
      # see comment about different semantics on the GNU ld section
 
13852
      ld_shlibs_F77=no
 
13853
      ;;
 
13854
 
 
13855
    bsdi[45]*)
 
13856
      export_dynamic_flag_spec_F77=-rdynamic
 
13857
      ;;
 
13858
 
 
13859
    cygwin* | mingw* | pw32*)
 
13860
      # When not using gcc, we currently assume that we are using
 
13861
      # Microsoft Visual C++.
 
13862
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13863
      # no search path for DLLs.
 
13864
      hardcode_libdir_flag_spec_F77=' '
 
13865
      allow_undefined_flag_F77=unsupported
 
13866
      # Tell ltmain to make .lib files, not .a files.
 
13867
      libext=lib
 
13868
      # Tell ltmain to make .dll files, not .so files.
 
13869
      shrext_cmds=".dll"
 
13870
      # FIXME: Setting linknames here is a bad hack.
 
13871
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13872
      # The linker will automatically build a .lib file if we build a DLL.
 
13873
      old_archive_From_new_cmds_F77='true'
 
13874
      # FIXME: Should let the user specify the lib program.
 
13875
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13876
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
13877
      enable_shared_with_static_runtimes_F77=yes
 
13878
      ;;
 
13879
 
 
13880
    darwin* | rhapsody*)
 
13881
      case $host_os in
 
13882
        rhapsody* | darwin1.[012])
 
13883
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
13884
         ;;
 
13885
       *) # Darwin 1.3 on
 
13886
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13887
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13888
         else
 
13889
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
13890
             10.[012])
 
13891
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13892
               ;;
 
13893
             10.*)
 
13894
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
13895
               ;;
 
13896
           esac
 
13897
         fi
 
13898
         ;;
 
13899
      esac
 
13900
      archive_cmds_need_lc_F77=no
 
13901
      hardcode_direct_F77=no
 
13902
      hardcode_automatic_F77=yes
 
13903
      hardcode_shlibpath_var_F77=unsupported
 
13904
      whole_archive_flag_spec_F77=''
 
13905
      link_all_deplibs_F77=yes
 
13906
    if test "$GCC" = yes ; then
 
13907
        output_verbose_link_cmd='echo'
 
13908
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13909
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13910
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13911
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13912
      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}'
 
13913
    else
 
13914
      case $cc_basename in
 
13915
        xlc*)
 
13916
         output_verbose_link_cmd='echo'
 
13917
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
13918
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13919
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13920
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13921
          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}'
 
13922
          ;;
 
13923
       *)
 
13924
         ld_shlibs_F77=no
 
13925
          ;;
 
13926
      esac
 
13927
    fi
 
13928
      ;;
 
13929
 
 
13930
    dgux*)
 
13931
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13932
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13933
      hardcode_shlibpath_var_F77=no
 
13934
      ;;
 
13935
 
 
13936
    freebsd1*)
 
13937
      ld_shlibs_F77=no
 
13938
      ;;
 
13939
 
 
13940
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
13941
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
13942
    # does not break anything, and helps significantly (at the cost of a little
 
13943
    # extra space).
 
13944
    freebsd2.2*)
 
13945
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
13946
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13947
      hardcode_direct_F77=yes
 
13948
      hardcode_shlibpath_var_F77=no
 
13949
      ;;
 
13950
 
 
13951
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
13952
    freebsd2*)
 
13953
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13954
      hardcode_direct_F77=yes
 
13955
      hardcode_minus_L_F77=yes
 
13956
      hardcode_shlibpath_var_F77=no
 
13957
      ;;
 
13958
 
 
13959
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
13960
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
13961
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
13962
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
13963
      hardcode_direct_F77=yes
 
13964
      hardcode_shlibpath_var_F77=no
 
13965
      ;;
 
13966
 
 
13967
    hpux9*)
 
13968
      if test "$GCC" = yes; then
 
13969
        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'
 
13970
      else
 
13971
        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'
 
13972
      fi
 
13973
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13974
      hardcode_libdir_separator_F77=:
 
13975
      hardcode_direct_F77=yes
 
13976
 
 
13977
      # hardcode_minus_L: Not really in the search PATH,
 
13978
      # but as the default location of the library.
 
13979
      hardcode_minus_L_F77=yes
 
13980
      export_dynamic_flag_spec_F77='${wl}-E'
 
13981
      ;;
 
13982
 
 
13983
    hpux10* | hpux11*)
 
13984
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
13985
        case $host_cpu in
 
13986
        hppa*64*|ia64*)
 
13987
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13988
          ;;
 
13989
        *)
 
13990
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
13991
          ;;
 
13992
        esac
 
13993
      else
 
13994
        case $host_cpu in
 
13995
        hppa*64*|ia64*)
 
13996
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13997
          ;;
 
13998
        *)
 
13999
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14000
          ;;
 
14001
        esac
 
14002
      fi
 
14003
      if test "$with_gnu_ld" = no; then
 
14004
        case $host_cpu in
 
14005
        hppa*64*)
 
14006
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14007
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14008
          hardcode_libdir_separator_F77=:
 
14009
          hardcode_direct_F77=no
 
14010
          hardcode_shlibpath_var_F77=no
 
14011
          ;;
 
14012
        ia64*)
 
14013
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14014
          hardcode_direct_F77=no
 
14015
          hardcode_shlibpath_var_F77=no
 
14016
 
 
14017
          # hardcode_minus_L: Not really in the search PATH,
 
14018
          # but as the default location of the library.
 
14019
          hardcode_minus_L_F77=yes
 
14020
          ;;
 
14021
        *)
 
14022
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14023
          hardcode_libdir_separator_F77=:
 
14024
          hardcode_direct_F77=yes
 
14025
          export_dynamic_flag_spec_F77='${wl}-E'
 
14026
 
 
14027
          # hardcode_minus_L: Not really in the search PATH,
 
14028
          # but as the default location of the library.
 
14029
          hardcode_minus_L_F77=yes
 
14030
          ;;
 
14031
        esac
 
14032
      fi
 
14033
      ;;
 
14034
 
 
14035
    irix5* | irix6* | nonstopux*)
 
14036
      if test "$GCC" = yes; then
 
14037
        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'
 
14038
      else
 
14039
        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'
 
14040
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14041
      fi
 
14042
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14043
      hardcode_libdir_separator_F77=:
 
14044
      link_all_deplibs_F77=yes
 
14045
      ;;
 
14046
 
 
14047
    netbsd*)
 
14048
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14049
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14050
      else
 
14051
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14052
      fi
 
14053
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14054
      hardcode_direct_F77=yes
 
14055
      hardcode_shlibpath_var_F77=no
 
14056
      ;;
 
14057
 
 
14058
    newsos6)
 
14059
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14060
      hardcode_direct_F77=yes
 
14061
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14062
      hardcode_libdir_separator_F77=:
 
14063
      hardcode_shlibpath_var_F77=no
 
14064
      ;;
 
14065
 
 
14066
    openbsd*)
 
14067
      hardcode_direct_F77=yes
 
14068
      hardcode_shlibpath_var_F77=no
 
14069
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14070
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14071
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14072
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14073
        export_dynamic_flag_spec_F77='${wl}-E'
 
14074
      else
 
14075
       case $host_os in
 
14076
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14077
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14078
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14079
           ;;
 
14080
         *)
 
14081
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14082
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14083
           ;;
 
14084
       esac
 
14085
      fi
 
14086
      ;;
 
14087
 
 
14088
    os2*)
 
14089
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14090
      hardcode_minus_L_F77=yes
 
14091
      allow_undefined_flag_F77=unsupported
 
14092
      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'
 
14093
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14094
      ;;
 
14095
 
 
14096
    osf3*)
 
14097
      if test "$GCC" = yes; then
 
14098
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14099
        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'
 
14100
      else
 
14101
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14102
        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'
 
14103
      fi
 
14104
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14105
      hardcode_libdir_separator_F77=:
 
14106
      ;;
 
14107
 
 
14108
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14109
      if test "$GCC" = yes; then
 
14110
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14111
        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'
 
14112
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14113
      else
 
14114
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14115
        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'
 
14116
        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~
 
14117
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
14118
 
 
14119
        # Both c and cxx compiler support -rpath directly
 
14120
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14121
      fi
 
14122
      hardcode_libdir_separator_F77=:
 
14123
      ;;
 
14124
 
 
14125
    sco3.2v5*)
 
14126
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14127
      hardcode_shlibpath_var_F77=no
 
14128
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14129
      runpath_var=LD_RUN_PATH
 
14130
      hardcode_runpath_var=yes
 
14131
      ;;
 
14132
 
 
14133
    solaris*)
 
14134
      no_undefined_flag_F77=' -z text'
 
14135
      if test "$GCC" = yes; then
 
14136
        wlarc='${wl}'
 
14137
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14138
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14139
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14140
      else
 
14141
        wlarc=''
 
14142
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14143
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14144
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14145
      fi
 
14146
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14147
      hardcode_shlibpath_var_F77=no
 
14148
      case $host_os in
 
14149
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14150
      *)
 
14151
        # The compiler driver will combine linker options so we
 
14152
        # cannot just pass the convience library names through
 
14153
        # without $wl, iff we do not link with $LD.
 
14154
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14155
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14156
        case $wlarc in
 
14157
        '')
 
14158
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14159
        *)
 
14160
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14161
        esac ;;
 
14162
      esac
 
14163
      link_all_deplibs_F77=yes
 
14164
      ;;
 
14165
 
 
14166
    sunos4*)
 
14167
      if test "x$host_vendor" = xsequent; then
 
14168
        # Use $CC to link under sequent, because it throws in some extra .o
 
14169
        # files that make .init and .fini sections work.
 
14170
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14171
      else
 
14172
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14173
      fi
 
14174
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14175
      hardcode_direct_F77=yes
 
14176
      hardcode_minus_L_F77=yes
 
14177
      hardcode_shlibpath_var_F77=no
 
14178
      ;;
 
14179
 
 
14180
    sysv4)
 
14181
      case $host_vendor in
 
14182
        sni)
 
14183
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14184
          hardcode_direct_F77=yes # is this really true???
 
14185
        ;;
 
14186
        siemens)
 
14187
          ## LD is ld it makes a PLAMLIB
 
14188
          ## CC just makes a GrossModule.
 
14189
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14190
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14191
          hardcode_direct_F77=no
 
14192
        ;;
 
14193
        motorola)
 
14194
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14195
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14196
        ;;
 
14197
      esac
 
14198
      runpath_var='LD_RUN_PATH'
 
14199
      hardcode_shlibpath_var_F77=no
 
14200
      ;;
 
14201
 
 
14202
    sysv4.3*)
 
14203
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14204
      hardcode_shlibpath_var_F77=no
 
14205
      export_dynamic_flag_spec_F77='-Bexport'
 
14206
      ;;
 
14207
 
 
14208
    sysv4*MP*)
 
14209
      if test -d /usr/nec; then
 
14210
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14211
        hardcode_shlibpath_var_F77=no
 
14212
        runpath_var=LD_RUN_PATH
 
14213
        hardcode_runpath_var=yes
 
14214
        ld_shlibs_F77=yes
 
14215
      fi
 
14216
      ;;
 
14217
 
 
14218
    sysv4.2uw2*)
 
14219
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14220
      hardcode_direct_F77=yes
 
14221
      hardcode_minus_L_F77=no
 
14222
      hardcode_shlibpath_var_F77=no
 
14223
      hardcode_runpath_var=yes
 
14224
      runpath_var=LD_RUN_PATH
 
14225
      ;;
 
14226
 
 
14227
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14228
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14229
      if test "$GCC" = yes; then
 
14230
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14231
      else
 
14232
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14233
      fi
 
14234
      runpath_var='LD_RUN_PATH'
 
14235
      hardcode_shlibpath_var_F77=no
 
14236
      ;;
 
14237
 
 
14238
    sysv5*)
 
14239
      no_undefined_flag_F77=' -z text'
 
14240
      # $CC -shared without GNU ld will not create a library from C++
 
14241
      # object files and a static libstdc++, better avoid it by now
 
14242
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14243
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14244
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14245
      hardcode_libdir_flag_spec_F77=
 
14246
      hardcode_shlibpath_var_F77=no
 
14247
      runpath_var='LD_RUN_PATH'
 
14248
      ;;
 
14249
 
 
14250
    uts4*)
 
14251
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14252
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14253
      hardcode_shlibpath_var_F77=no
 
14254
      ;;
 
14255
 
 
14256
    *)
 
14257
      ld_shlibs_F77=no
 
14258
      ;;
 
14259
    esac
 
14260
  fi
 
14261
 
 
14262
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14263
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14264
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14265
 
 
14266
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14267
if test "$GCC" = yes; then
 
14268
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14269
fi
 
14270
 
 
14271
#
 
14272
# Do we need to explicitly link libc?
 
14273
#
 
14274
case "x$archive_cmds_need_lc_F77" in
 
14275
x|xyes)
 
14276
  # Assume -lc should be added
 
14277
  archive_cmds_need_lc_F77=yes
 
14278
 
 
14279
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14280
    case $archive_cmds_F77 in
 
14281
    *'~'*)
 
14282
      # FIXME: we may have to deal with multi-command sequences.
 
14283
      ;;
 
14284
    '$CC '*)
 
14285
      # Test whether the compiler implicitly links with -lc since on some
 
14286
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14287
      # to ld, don't add -lc before -lgcc.
 
14288
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14289
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14290
      $rm conftest*
 
14291
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14292
 
 
14293
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14294
  (eval $ac_compile) 2>&5
 
14295
  ac_status=$?
 
14296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14297
  (exit $ac_status); } 2>conftest.err; then
 
14298
        soname=conftest
 
14299
        lib=conftest
 
14300
        libobjs=conftest.$ac_objext
 
14301
        deplibs=
 
14302
        wl=$lt_prog_compiler_wl_F77
 
14303
        compiler_flags=-v
 
14304
        linker_flags=-v
 
14305
        verstring=
 
14306
        output_objdir=.
 
14307
        libname=conftest
 
14308
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14309
        allow_undefined_flag_F77=
 
14310
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14311
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14312
  ac_status=$?
 
14313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14314
  (exit $ac_status); }
 
14315
        then
 
14316
          archive_cmds_need_lc_F77=no
 
14317
        else
 
14318
          archive_cmds_need_lc_F77=yes
 
14319
        fi
 
14320
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14321
      else
 
14322
        cat conftest.err 1>&5
 
14323
      fi
 
14324
      $rm conftest*
 
14325
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14326
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14327
      ;;
 
14328
    esac
 
14329
  fi
 
14330
  ;;
 
14331
esac
 
14332
 
 
14333
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14334
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14335
library_names_spec=
 
14336
libname_spec='lib$name'
 
14337
soname_spec=
 
14338
shrext_cmds=".so"
 
14339
postinstall_cmds=
 
14340
postuninstall_cmds=
 
14341
finish_cmds=
 
14342
finish_eval=
 
14343
shlibpath_var=
 
14344
shlibpath_overrides_runpath=unknown
 
14345
version_type=none
 
14346
dynamic_linker="$host_os ld.so"
 
14347
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14348
if test "$GCC" = yes; then
 
14349
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14350
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14351
    # if the path contains ";" then we assume it to be the separator
 
14352
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14353
    # assumed that no part of a normal pathname contains ";" but that should
 
14354
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14355
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14356
  else
 
14357
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14358
  fi
 
14359
else
 
14360
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14361
fi
 
14362
need_lib_prefix=unknown
 
14363
hardcode_into_libs=no
 
14364
 
 
14365
# when you set need_version to no, make sure it does not cause -set_version
 
14366
# flags to be left without arguments
 
14367
need_version=unknown
 
14368
 
 
14369
case $host_os in
 
14370
aix3*)
 
14371
  version_type=linux
 
14372
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14373
  shlibpath_var=LIBPATH
 
14374
 
 
14375
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14376
  soname_spec='${libname}${release}${shared_ext}$major'
 
14377
  ;;
 
14378
 
 
14379
aix4* | aix5*)
 
14380
  version_type=linux
 
14381
  need_lib_prefix=no
 
14382
  need_version=no
 
14383
  hardcode_into_libs=yes
 
14384
  if test "$host_cpu" = ia64; then
 
14385
    # AIX 5 supports IA64
 
14386
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14387
    shlibpath_var=LD_LIBRARY_PATH
 
14388
  else
 
14389
    # With GCC up to 2.95.x, collect2 would create an import file
 
14390
    # for dependence libraries.  The import file would start with
 
14391
    # the line `#! .'.  This would cause the generated library to
 
14392
    # depend on `.', always an invalid library.  This was fixed in
 
14393
    # development snapshots of GCC prior to 3.0.
 
14394
    case $host_os in
 
14395
      aix4 | aix4.[01] | aix4.[01].*)
 
14396
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14397
           echo ' yes '
 
14398
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14399
        :
 
14400
      else
 
14401
        can_build_shared=no
 
14402
      fi
 
14403
      ;;
 
14404
    esac
 
14405
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14406
    # soname into executable. Probably we can add versioning support to
 
14407
    # collect2, so additional links can be useful in future.
 
14408
    if test "$aix_use_runtimelinking" = yes; then
 
14409
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14410
      # instead of lib<name>.a to let people know that these are not
 
14411
      # typical AIX shared libraries.
 
14412
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14413
    else
 
14414
      # We preserve .a as extension for shared libraries through AIX4.2
 
14415
      # and later when we are not doing run time linking.
 
14416
      library_names_spec='${libname}${release}.a $libname.a'
 
14417
      soname_spec='${libname}${release}${shared_ext}$major'
 
14418
    fi
 
14419
    shlibpath_var=LIBPATH
 
14420
  fi
 
14421
  ;;
 
14422
 
 
14423
amigaos*)
 
14424
  library_names_spec='$libname.ixlibrary $libname.a'
 
14425
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14426
  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'
 
14427
  ;;
 
14428
 
 
14429
beos*)
 
14430
  library_names_spec='${libname}${shared_ext}'
 
14431
  dynamic_linker="$host_os ld.so"
 
14432
  shlibpath_var=LIBRARY_PATH
 
14433
  ;;
 
14434
 
 
14435
bsdi[45]*)
 
14436
  version_type=linux
 
14437
  need_version=no
 
14438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14439
  soname_spec='${libname}${release}${shared_ext}$major'
 
14440
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14441
  shlibpath_var=LD_LIBRARY_PATH
 
14442
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14443
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14444
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14445
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14446
  # libtool to hard-code these into programs
 
14447
  ;;
 
14448
 
 
14449
cygwin* | mingw* | pw32*)
 
14450
  version_type=windows
 
14451
  shrext_cmds=".dll"
 
14452
  need_version=no
 
14453
  need_lib_prefix=no
 
14454
 
 
14455
  case $GCC,$host_os in
 
14456
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14457
    library_names_spec='$libname.dll.a'
 
14458
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14459
    postinstall_cmds='base_file=`basename \${file}`~
 
14460
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14461
      dldir=$destdir/`dirname \$dlpath`~
 
14462
      test -d \$dldir || mkdir -p \$dldir~
 
14463
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14464
      chmod a+x \$dldir/$dlname'
 
14465
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14466
      dlpath=$dir/\$dldll~
 
14467
       $rm \$dlpath'
 
14468
    shlibpath_overrides_runpath=yes
 
14469
 
 
14470
    case $host_os in
 
14471
    cygwin*)
 
14472
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14473
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14474
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14475
      ;;
 
14476
    mingw*)
 
14477
      # MinGW DLLs use traditional 'lib' prefix
 
14478
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14479
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14480
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14481
        # It is most probably a Windows format PATH printed by
 
14482
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14483
        # path with ; separators, and with drive letters. We can handle the
 
14484
        # drive letters (cygwin fileutils understands them), so leave them,
 
14485
        # especially as we might pass files found there to a mingw objdump,
 
14486
        # which wouldn't understand a cygwinified path. Ahh.
 
14487
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14488
      else
 
14489
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14490
      fi
 
14491
      ;;
 
14492
    pw32*)
 
14493
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14494
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14495
      ;;
 
14496
    esac
 
14497
    ;;
 
14498
 
 
14499
  *)
 
14500
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14501
    ;;
 
14502
  esac
 
14503
  dynamic_linker='Win32 ld.exe'
 
14504
  # FIXME: first we should search . and the directory the executable is in
 
14505
  shlibpath_var=PATH
 
14506
  ;;
 
14507
 
 
14508
darwin* | rhapsody*)
 
14509
  dynamic_linker="$host_os dyld"
 
14510
  version_type=darwin
 
14511
  need_lib_prefix=no
 
14512
  need_version=no
 
14513
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14514
  soname_spec='${libname}${release}${major}$shared_ext'
 
14515
  shlibpath_overrides_runpath=yes
 
14516
  shlibpath_var=DYLD_LIBRARY_PATH
 
14517
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14518
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14519
  if test "$GCC" = yes; then
 
14520
    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"`
 
14521
  else
 
14522
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14523
  fi
 
14524
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14525
  ;;
 
14526
 
 
14527
dgux*)
 
14528
  version_type=linux
 
14529
  need_lib_prefix=no
 
14530
  need_version=no
 
14531
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14532
  soname_spec='${libname}${release}${shared_ext}$major'
 
14533
  shlibpath_var=LD_LIBRARY_PATH
 
14534
  ;;
 
14535
 
 
14536
freebsd1*)
 
14537
  dynamic_linker=no
 
14538
  ;;
 
14539
 
 
14540
kfreebsd*-gnu)
 
14541
  version_type=linux
 
14542
  need_lib_prefix=no
 
14543
  need_version=no
 
14544
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14545
  soname_spec='${libname}${release}${shared_ext}$major'
 
14546
  shlibpath_var=LD_LIBRARY_PATH
 
14547
  shlibpath_overrides_runpath=no
 
14548
  hardcode_into_libs=yes
 
14549
  dynamic_linker='GNU ld.so'
 
14550
  ;;
 
14551
 
 
14552
freebsd* | dragonfly*)
 
14553
  # DragonFly does not have aout.  When/if they implement a new
 
14554
  # versioning mechanism, adjust this.
 
14555
  if test -x /usr/bin/objformat; then
 
14556
    objformat=`/usr/bin/objformat`
 
14557
  else
 
14558
    case $host_os in
 
14559
    freebsd[123]*) objformat=aout ;;
 
14560
    *) objformat=elf ;;
 
14561
    esac
 
14562
  fi
 
14563
  version_type=freebsd-$objformat
 
14564
  case $version_type in
 
14565
    freebsd-elf*)
 
14566
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14567
      need_version=no
 
14568
      need_lib_prefix=no
 
14569
      ;;
 
14570
    freebsd-*)
 
14571
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14572
      need_version=yes
 
14573
      ;;
 
14574
  esac
 
14575
  shlibpath_var=LD_LIBRARY_PATH
 
14576
  case $host_os in
 
14577
  freebsd2*)
 
14578
    shlibpath_overrides_runpath=yes
 
14579
    ;;
 
14580
  freebsd3.[01]* | freebsdelf3.[01]*)
 
14581
    shlibpath_overrides_runpath=yes
 
14582
    hardcode_into_libs=yes
 
14583
    ;;
 
14584
  *) # from 3.2 on
 
14585
    shlibpath_overrides_runpath=no
 
14586
    hardcode_into_libs=yes
 
14587
    ;;
 
14588
  esac
 
14589
  ;;
 
14590
 
 
14591
gnu*)
 
14592
  version_type=linux
 
14593
  need_lib_prefix=no
 
14594
  need_version=no
 
14595
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14596
  soname_spec='${libname}${release}${shared_ext}$major'
 
14597
  shlibpath_var=LD_LIBRARY_PATH
 
14598
  hardcode_into_libs=yes
 
14599
  ;;
 
14600
 
 
14601
hpux9* | hpux10* | hpux11*)
 
14602
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14603
  # link against other versions.
 
14604
  version_type=sunos
 
14605
  need_lib_prefix=no
 
14606
  need_version=no
 
14607
  case $host_cpu in
 
14608
  ia64*)
 
14609
    shrext_cmds='.so'
 
14610
    hardcode_into_libs=yes
 
14611
    dynamic_linker="$host_os dld.so"
 
14612
    shlibpath_var=LD_LIBRARY_PATH
 
14613
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14614
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14615
    soname_spec='${libname}${release}${shared_ext}$major'
 
14616
    if test "X$HPUX_IA64_MODE" = X32; then
 
14617
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14618
    else
 
14619
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14620
    fi
 
14621
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14622
    ;;
 
14623
   hppa*64*)
 
14624
     shrext_cmds='.sl'
 
14625
     hardcode_into_libs=yes
 
14626
     dynamic_linker="$host_os dld.sl"
 
14627
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14628
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
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
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14632
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14633
     ;;
 
14634
   *)
 
14635
    shrext_cmds='.sl'
 
14636
    dynamic_linker="$host_os dld.sl"
 
14637
    shlibpath_var=SHLIB_PATH
 
14638
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14639
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14640
    soname_spec='${libname}${release}${shared_ext}$major'
 
14641
    ;;
 
14642
  esac
 
14643
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14644
  postinstall_cmds='chmod 555 $lib'
 
14645
  ;;
 
14646
 
 
14647
irix5* | irix6* | nonstopux*)
 
14648
  case $host_os in
 
14649
    nonstopux*) version_type=nonstopux ;;
 
14650
    *)
 
14651
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14652
                version_type=linux
 
14653
        else
 
14654
                version_type=irix
 
14655
        fi ;;
 
14656
  esac
 
14657
  need_lib_prefix=no
 
14658
  need_version=no
 
14659
  soname_spec='${libname}${release}${shared_ext}$major'
 
14660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14661
  case $host_os in
 
14662
  irix5* | nonstopux*)
 
14663
    libsuff= shlibsuff=
 
14664
    ;;
 
14665
  *)
 
14666
    case $LD in # libtool.m4 will add one of these switches to LD
 
14667
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14668
      libsuff= shlibsuff= libmagic=32-bit;;
 
14669
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14670
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14671
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14672
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14673
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14674
    esac
 
14675
    ;;
 
14676
  esac
 
14677
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14678
  shlibpath_overrides_runpath=no
 
14679
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14680
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14681
  hardcode_into_libs=yes
 
14682
  ;;
 
14683
 
 
14684
# No shared lib support for Linux oldld, aout, or coff.
 
14685
linux*oldld* | linux*aout* | linux*coff*)
 
14686
  dynamic_linker=no
 
14687
  ;;
 
14688
 
 
14689
# This must be Linux ELF.
 
14690
linux*)
 
14691
  version_type=linux
 
14692
  need_lib_prefix=no
 
14693
  need_version=no
 
14694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14695
  soname_spec='${libname}${release}${shared_ext}$major'
 
14696
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14697
  shlibpath_var=LD_LIBRARY_PATH
 
14698
  shlibpath_overrides_runpath=no
 
14699
  # This implies no fast_install, which is unacceptable.
 
14700
  # Some rework will be needed to allow for fast_install
 
14701
  # before this can be enabled.
 
14702
  hardcode_into_libs=yes
 
14703
 
 
14704
  # Append ld.so.conf contents to the search path
 
14705
  if test -f /etc/ld.so.conf; then
 
14706
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14707
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14708
  fi
 
14709
 
 
14710
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14711
  # powerpc, because MkLinux only supported shared libraries with the
 
14712
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14713
  # most powerpc-linux boxes support dynamic linking these days and
 
14714
  # people can always --disable-shared, the test was removed, and we
 
14715
  # assume the GNU/Linux dynamic linker is in use.
 
14716
  dynamic_linker='GNU/Linux ld.so'
 
14717
  ;;
 
14718
 
 
14719
knetbsd*-gnu)
 
14720
  version_type=linux
 
14721
  need_lib_prefix=no
 
14722
  need_version=no
 
14723
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14724
  soname_spec='${libname}${release}${shared_ext}$major'
 
14725
  shlibpath_var=LD_LIBRARY_PATH
 
14726
  shlibpath_overrides_runpath=no
 
14727
  hardcode_into_libs=yes
 
14728
  dynamic_linker='GNU ld.so'
 
14729
  ;;
 
14730
 
 
14731
netbsd*)
 
14732
  version_type=sunos
 
14733
  need_lib_prefix=no
 
14734
  need_version=no
 
14735
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14736
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14737
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14738
    dynamic_linker='NetBSD (a.out) ld.so'
 
14739
  else
 
14740
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14741
    soname_spec='${libname}${release}${shared_ext}$major'
 
14742
    dynamic_linker='NetBSD ld.elf_so'
 
14743
  fi
 
14744
  shlibpath_var=LD_LIBRARY_PATH
 
14745
  shlibpath_overrides_runpath=yes
 
14746
  hardcode_into_libs=yes
 
14747
  ;;
 
14748
 
 
14749
newsos6)
 
14750
  version_type=linux
 
14751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14752
  shlibpath_var=LD_LIBRARY_PATH
 
14753
  shlibpath_overrides_runpath=yes
 
14754
  ;;
 
14755
 
 
14756
nto-qnx*)
 
14757
  version_type=linux
 
14758
  need_lib_prefix=no
 
14759
  need_version=no
 
14760
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14761
  soname_spec='${libname}${release}${shared_ext}$major'
 
14762
  shlibpath_var=LD_LIBRARY_PATH
 
14763
  shlibpath_overrides_runpath=yes
 
14764
  ;;
 
14765
 
 
14766
openbsd*)
 
14767
  version_type=sunos
 
14768
  need_lib_prefix=no
 
14769
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14770
  case $host_os in
 
14771
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14772
    *)                         need_version=no  ;;
 
14773
  esac
 
14774
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14775
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14776
  shlibpath_var=LD_LIBRARY_PATH
 
14777
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14778
    case $host_os in
 
14779
      openbsd2.[89] | openbsd2.[89].*)
 
14780
        shlibpath_overrides_runpath=no
 
14781
        ;;
 
14782
      *)
 
14783
        shlibpath_overrides_runpath=yes
 
14784
        ;;
 
14785
      esac
 
14786
  else
 
14787
    shlibpath_overrides_runpath=yes
 
14788
  fi
 
14789
  ;;
 
14790
 
 
14791
os2*)
 
14792
  libname_spec='$name'
 
14793
  shrext_cmds=".dll"
 
14794
  need_lib_prefix=no
 
14795
  library_names_spec='$libname${shared_ext} $libname.a'
 
14796
  dynamic_linker='OS/2 ld.exe'
 
14797
  shlibpath_var=LIBPATH
 
14798
  ;;
 
14799
 
 
14800
osf3* | osf4* | osf5*)
 
14801
  version_type=osf
 
14802
  need_lib_prefix=no
 
14803
  need_version=no
 
14804
  soname_spec='${libname}${release}${shared_ext}$major'
 
14805
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14806
  shlibpath_var=LD_LIBRARY_PATH
 
14807
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14808
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14809
  ;;
 
14810
 
 
14811
sco3.2v5*)
 
14812
  version_type=osf
 
14813
  soname_spec='${libname}${release}${shared_ext}$major'
 
14814
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14815
  shlibpath_var=LD_LIBRARY_PATH
 
14816
  ;;
 
14817
 
 
14818
solaris*)
 
14819
  version_type=linux
 
14820
  need_lib_prefix=no
 
14821
  need_version=no
 
14822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14823
  soname_spec='${libname}${release}${shared_ext}$major'
 
14824
  shlibpath_var=LD_LIBRARY_PATH
 
14825
  shlibpath_overrides_runpath=yes
 
14826
  hardcode_into_libs=yes
 
14827
  # ldd complains unless libraries are executable
 
14828
  postinstall_cmds='chmod +x $lib'
 
14829
  ;;
 
14830
 
 
14831
sunos4*)
 
14832
  version_type=sunos
 
14833
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14834
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14835
  shlibpath_var=LD_LIBRARY_PATH
 
14836
  shlibpath_overrides_runpath=yes
 
14837
  if test "$with_gnu_ld" = yes; then
 
14838
    need_lib_prefix=no
 
14839
  fi
 
14840
  need_version=yes
 
14841
  ;;
 
14842
 
 
14843
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14844
  version_type=linux
 
14845
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14846
  soname_spec='${libname}${release}${shared_ext}$major'
 
14847
  shlibpath_var=LD_LIBRARY_PATH
 
14848
  case $host_vendor in
 
14849
    sni)
 
14850
      shlibpath_overrides_runpath=no
 
14851
      need_lib_prefix=no
 
14852
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14853
      runpath_var=LD_RUN_PATH
 
14854
      ;;
 
14855
    siemens)
 
14856
      need_lib_prefix=no
 
14857
      ;;
 
14858
    motorola)
 
14859
      need_lib_prefix=no
 
14860
      need_version=no
 
14861
      shlibpath_overrides_runpath=no
 
14862
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14863
      ;;
 
14864
  esac
 
14865
  ;;
 
14866
 
 
14867
sysv4*MP*)
 
14868
  if test -d /usr/nec ;then
 
14869
    version_type=linux
 
14870
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14871
    soname_spec='$libname${shared_ext}.$major'
 
14872
    shlibpath_var=LD_LIBRARY_PATH
 
14873
  fi
 
14874
  ;;
 
14875
 
 
14876
uts4*)
 
14877
  version_type=linux
 
14878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14879
  soname_spec='${libname}${release}${shared_ext}$major'
 
14880
  shlibpath_var=LD_LIBRARY_PATH
 
14881
  ;;
 
14882
 
 
14883
*)
 
14884
  dynamic_linker=no
 
14885
  ;;
 
14886
esac
 
14887
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14888
echo "${ECHO_T}$dynamic_linker" >&6
 
14889
test "$dynamic_linker" = no && can_build_shared=no
 
14890
 
 
14891
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14892
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14893
hardcode_action_F77=
 
14894
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14895
   test -n "$runpath_var_F77" || \
 
14896
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
14897
 
 
14898
  # We can hardcode non-existant directories.
 
14899
  if test "$hardcode_direct_F77" != no &&
 
14900
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14901
     # have to relink, otherwise we might link with an installed library
 
14902
     # when we should be linking with a yet-to-be-installed one
 
14903
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
14904
     test "$hardcode_minus_L_F77" != no; then
 
14905
    # Linking always hardcodes the temporary library directory.
 
14906
    hardcode_action_F77=relink
 
14907
  else
 
14908
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14909
    hardcode_action_F77=immediate
 
14910
  fi
 
14911
else
 
14912
  # We cannot hardcode anything, or else we can only hardcode existing
 
14913
  # directories.
 
14914
  hardcode_action_F77=unsupported
 
14915
fi
 
14916
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
14917
echo "${ECHO_T}$hardcode_action_F77" >&6
 
14918
 
 
14919
if test "$hardcode_action_F77" = relink; then
 
14920
  # Fast installation is not supported
 
14921
  enable_fast_install=no
 
14922
elif test "$shlibpath_overrides_runpath" = yes ||
 
14923
     test "$enable_shared" = no; then
 
14924
  # Fast installation is not necessary
 
14925
  enable_fast_install=needless
 
14926
fi
 
14927
 
 
14928
striplib=
 
14929
old_striplib=
 
14930
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14931
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14932
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14933
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14934
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14935
  echo "$as_me:$LINENO: result: yes" >&5
 
14936
echo "${ECHO_T}yes" >&6
 
14937
else
 
14938
# FIXME - insert some real tests, host_os isn't really good enough
 
14939
  case $host_os in
 
14940
   darwin*)
 
14941
       if test -n "$STRIP" ; then
 
14942
         striplib="$STRIP -x"
 
14943
         echo "$as_me:$LINENO: result: yes" >&5
 
14944
echo "${ECHO_T}yes" >&6
 
14945
       else
 
14946
  echo "$as_me:$LINENO: result: no" >&5
 
14947
echo "${ECHO_T}no" >&6
 
14948
fi
 
14949
       ;;
 
14950
   *)
 
14951
  echo "$as_me:$LINENO: result: no" >&5
 
14952
echo "${ECHO_T}no" >&6
 
14953
    ;;
 
14954
  esac
 
14955
fi
 
14956
 
 
14957
 
 
14958
 
 
14959
# The else clause should only fire when bootstrapping the
 
14960
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14961
# with your package, and you will get complaints that there are
 
14962
# no rules to generate ltmain.sh.
 
14963
if test -f "$ltmain"; then
 
14964
  # See if we are running on zsh, and set the options which allow our commands through
 
14965
  # without removal of \ escapes.
 
14966
  if test -n "${ZSH_VERSION+set}" ; then
 
14967
    setopt NO_GLOB_SUBST
 
14968
  fi
 
14969
  # Now quote all the things that may contain metacharacters while being
 
14970
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14971
  # variables and quote the copies for generation of the libtool script.
 
14972
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
14973
    SED SHELL STRIP \
 
14974
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14975
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14976
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14977
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14978
    lt_cv_sys_global_symbol_to_c_name_address \
 
14979
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14980
    old_postinstall_cmds old_postuninstall_cmds \
 
14981
    compiler_F77 \
 
14982
    CC_F77 \
 
14983
    LD_F77 \
 
14984
    lt_prog_compiler_wl_F77 \
 
14985
    lt_prog_compiler_pic_F77 \
 
14986
    lt_prog_compiler_static_F77 \
 
14987
    lt_prog_compiler_no_builtin_flag_F77 \
 
14988
    export_dynamic_flag_spec_F77 \
 
14989
    thread_safe_flag_spec_F77 \
 
14990
    whole_archive_flag_spec_F77 \
 
14991
    enable_shared_with_static_runtimes_F77 \
 
14992
    old_archive_cmds_F77 \
 
14993
    old_archive_from_new_cmds_F77 \
 
14994
    predep_objects_F77 \
 
14995
    postdep_objects_F77 \
 
14996
    predeps_F77 \
 
14997
    postdeps_F77 \
 
14998
    compiler_lib_search_path_F77 \
 
14999
    archive_cmds_F77 \
 
15000
    archive_expsym_cmds_F77 \
 
15001
    postinstall_cmds_F77 \
 
15002
    postuninstall_cmds_F77 \
 
15003
    old_archive_from_expsyms_cmds_F77 \
 
15004
    allow_undefined_flag_F77 \
 
15005
    no_undefined_flag_F77 \
 
15006
    export_symbols_cmds_F77 \
 
15007
    hardcode_libdir_flag_spec_F77 \
 
15008
    hardcode_libdir_flag_spec_ld_F77 \
 
15009
    hardcode_libdir_separator_F77 \
 
15010
    hardcode_automatic_F77 \
 
15011
    module_cmds_F77 \
 
15012
    module_expsym_cmds_F77 \
 
15013
    lt_cv_prog_compiler_c_o_F77 \
 
15014
    exclude_expsyms_F77 \
 
15015
    include_expsyms_F77; do
 
15016
 
 
15017
    case $var in
 
15018
    old_archive_cmds_F77 | \
 
15019
    old_archive_from_new_cmds_F77 | \
 
15020
    archive_cmds_F77 | \
 
15021
    archive_expsym_cmds_F77 | \
 
15022
    module_cmds_F77 | \
 
15023
    module_expsym_cmds_F77 | \
 
15024
    old_archive_from_expsyms_cmds_F77 | \
 
15025
    export_symbols_cmds_F77 | \
 
15026
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15027
    postinstall_cmds | postuninstall_cmds | \
 
15028
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15029
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15030
      # Double-quote double-evaled strings.
 
15031
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15032
      ;;
 
15033
    *)
 
15034
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15035
      ;;
 
15036
    esac
 
15037
  done
 
15038
 
 
15039
  case $lt_echo in
 
15040
  *'\$0 --fallback-echo"')
 
15041
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15042
    ;;
 
15043
  esac
 
15044
 
 
15045
cfgfile="$ofile"
 
15046
 
 
15047
  cat <<__EOF__ >> "$cfgfile"
 
15048
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15049
 
 
15050
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15051
 
 
15052
# Shell to use when invoking shell scripts.
 
15053
SHELL=$lt_SHELL
 
15054
 
 
15055
# Whether or not to build shared libraries.
 
15056
build_libtool_libs=$enable_shared
 
15057
 
 
15058
# Whether or not to build static libraries.
 
15059
build_old_libs=$enable_static
 
15060
 
 
15061
# Whether or not to add -lc for building shared libraries.
 
15062
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15063
 
 
15064
# Whether or not to disallow shared libs when runtime libs are static
 
15065
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15066
 
 
15067
# Whether or not to optimize for fast installation.
 
15068
fast_install=$enable_fast_install
 
15069
 
 
15070
# The host system.
 
15071
host_alias=$host_alias
 
15072
host=$host
 
15073
host_os=$host_os
 
15074
 
 
15075
# The build system.
 
15076
build_alias=$build_alias
 
15077
build=$build
 
15078
build_os=$build_os
 
15079
 
 
15080
# An echo program that does not interpret backslashes.
 
15081
echo=$lt_echo
 
15082
 
 
15083
# The archiver.
 
15084
AR=$lt_AR
 
15085
AR_FLAGS=$lt_AR_FLAGS
 
15086
 
 
15087
# A C compiler.
 
15088
LTCC=$lt_LTCC
 
15089
 
 
15090
# A language-specific compiler.
 
15091
CC=$lt_compiler_F77
 
15092
 
 
15093
# Is the compiler the GNU C compiler?
 
15094
with_gcc=$GCC_F77
 
15095
 
 
15096
# An ERE matcher.
 
15097
EGREP=$lt_EGREP
 
15098
 
 
15099
# The linker used to build libraries.
 
15100
LD=$lt_LD_F77
 
15101
 
 
15102
# Whether we need hard or soft links.
 
15103
LN_S=$lt_LN_S
 
15104
 
 
15105
# A BSD-compatible nm program.
 
15106
NM=$lt_NM
 
15107
 
 
15108
# A symbol stripping program
 
15109
STRIP=$lt_STRIP
 
15110
 
 
15111
# Used to examine libraries when file_magic_cmd begins "file"
 
15112
MAGIC_CMD=$MAGIC_CMD
 
15113
 
 
15114
# Used on cygwin: DLL creation program.
 
15115
DLLTOOL="$DLLTOOL"
 
15116
 
 
15117
# Used on cygwin: object dumper.
 
15118
OBJDUMP="$OBJDUMP"
 
15119
 
 
15120
# Used on cygwin: assembler.
 
15121
AS="$AS"
 
15122
 
 
15123
# The name of the directory that contains temporary libtool files.
 
15124
objdir=$objdir
 
15125
 
 
15126
# How to create reloadable object files.
 
15127
reload_flag=$lt_reload_flag
 
15128
reload_cmds=$lt_reload_cmds
 
15129
 
 
15130
# How to pass a linker flag through the compiler.
 
15131
wl=$lt_lt_prog_compiler_wl_F77
 
15132
 
 
15133
# Object file suffix (normally "o").
 
15134
objext="$ac_objext"
 
15135
 
 
15136
# Old archive suffix (normally "a").
 
15137
libext="$libext"
 
15138
 
 
15139
# Shared library suffix (normally ".so").
 
15140
shrext_cmds='$shrext_cmds'
 
15141
 
 
15142
# Executable file suffix (normally "").
 
15143
exeext="$exeext"
 
15144
 
 
15145
# Additional compiler flags for building library objects.
 
15146
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15147
pic_mode=$pic_mode
 
15148
 
 
15149
# What is the maximum length of a command?
 
15150
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15151
 
 
15152
# Does compiler simultaneously support -c and -o options?
 
15153
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15154
 
 
15155
# Must we lock files when doing compilation?
 
15156
need_locks=$lt_need_locks
 
15157
 
 
15158
# Do we need the lib prefix for modules?
 
15159
need_lib_prefix=$need_lib_prefix
 
15160
 
 
15161
# Do we need a version for libraries?
 
15162
need_version=$need_version
 
15163
 
 
15164
# Whether dlopen is supported.
 
15165
dlopen_support=$enable_dlopen
 
15166
 
 
15167
# Whether dlopen of programs is supported.
 
15168
dlopen_self=$enable_dlopen_self
 
15169
 
 
15170
# Whether dlopen of statically linked programs is supported.
 
15171
dlopen_self_static=$enable_dlopen_self_static
 
15172
 
 
15173
# Compiler flag to prevent dynamic linking.
 
15174
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15175
 
 
15176
# Compiler flag to turn off builtin functions.
 
15177
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15178
 
 
15179
# Compiler flag to allow reflexive dlopens.
 
15180
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15181
 
 
15182
# Compiler flag to generate shared objects directly from archives.
 
15183
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15184
 
 
15185
# Compiler flag to generate thread-safe objects.
 
15186
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15187
 
 
15188
# Library versioning type.
 
15189
version_type=$version_type
 
15190
 
 
15191
# Format of library name prefix.
 
15192
libname_spec=$lt_libname_spec
 
15193
 
 
15194
# List of archive names.  First name is the real one, the rest are links.
 
15195
# The last name is the one that the linker finds with -lNAME.
 
15196
library_names_spec=$lt_library_names_spec
 
15197
 
 
15198
# The coded name of the library, if different from the real name.
 
15199
soname_spec=$lt_soname_spec
 
15200
 
 
15201
# Commands used to build and install an old-style archive.
 
15202
RANLIB=$lt_RANLIB
 
15203
old_archive_cmds=$lt_old_archive_cmds_F77
 
15204
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15205
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15206
 
 
15207
# Create an old-style archive from a shared archive.
 
15208
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15209
 
 
15210
# Create a temporary old-style archive to link instead of a shared archive.
 
15211
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15212
 
 
15213
# Commands used to build and install a shared archive.
 
15214
archive_cmds=$lt_archive_cmds_F77
 
15215
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15216
postinstall_cmds=$lt_postinstall_cmds
 
15217
postuninstall_cmds=$lt_postuninstall_cmds
 
15218
 
 
15219
# Commands used to build a loadable module (assumed same as above if empty)
 
15220
module_cmds=$lt_module_cmds_F77
 
15221
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15222
 
 
15223
# Commands to strip libraries.
 
15224
old_striplib=$lt_old_striplib
 
15225
striplib=$lt_striplib
 
15226
 
 
15227
# Dependencies to place before the objects being linked to create a
 
15228
# shared library.
 
15229
predep_objects=$lt_predep_objects_F77
 
15230
 
 
15231
# Dependencies to place after the objects being linked to create a
 
15232
# shared library.
 
15233
postdep_objects=$lt_postdep_objects_F77
 
15234
 
 
15235
# Dependencies to place before the objects being linked to create a
 
15236
# shared library.
 
15237
predeps=$lt_predeps_F77
 
15238
 
 
15239
# Dependencies to place after the objects being linked to create a
 
15240
# shared library.
 
15241
postdeps=$lt_postdeps_F77
 
15242
 
 
15243
# The library search path used internally by the compiler when linking
 
15244
# a shared library.
 
15245
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15246
 
 
15247
# Method to check whether dependent libraries are shared objects.
 
15248
deplibs_check_method=$lt_deplibs_check_method
 
15249
 
 
15250
# Command to use when deplibs_check_method == file_magic.
 
15251
file_magic_cmd=$lt_file_magic_cmd
 
15252
 
 
15253
# Flag that allows shared libraries with undefined symbols to be built.
 
15254
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15255
 
 
15256
# Flag that forces no undefined symbols.
 
15257
no_undefined_flag=$lt_no_undefined_flag_F77
 
15258
 
 
15259
# Commands used to finish a libtool library installation in a directory.
 
15260
finish_cmds=$lt_finish_cmds
 
15261
 
 
15262
# Same as above, but a single script fragment to be evaled but not shown.
 
15263
finish_eval=$lt_finish_eval
 
15264
 
 
15265
# Take the output of nm and produce a listing of raw symbols and C names.
 
15266
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15267
 
 
15268
# Transform the output of nm in a proper C declaration
 
15269
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15270
 
 
15271
# Transform the output of nm in a C name address pair
 
15272
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15273
 
 
15274
# This is the shared library runtime path variable.
 
15275
runpath_var=$runpath_var
 
15276
 
 
15277
# This is the shared library path variable.
 
15278
shlibpath_var=$shlibpath_var
 
15279
 
 
15280
# Is shlibpath searched before the hard-coded library search path?
 
15281
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15282
 
 
15283
# How to hardcode a shared library path into an executable.
 
15284
hardcode_action=$hardcode_action_F77
 
15285
 
 
15286
# Whether we should hardcode library paths into libraries.
 
15287
hardcode_into_libs=$hardcode_into_libs
 
15288
 
 
15289
# Flag to hardcode \$libdir into a binary during linking.
 
15290
# This must work even if \$libdir does not exist.
 
15291
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15292
 
 
15293
# If ld is used when linking, flag to hardcode \$libdir into
 
15294
# a binary during linking. This must work even if \$libdir does
 
15295
# not exist.
 
15296
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15297
 
 
15298
# Whether we need a single -rpath flag with a separated argument.
 
15299
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15300
 
 
15301
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15302
# resulting binary.
 
15303
hardcode_direct=$hardcode_direct_F77
 
15304
 
 
15305
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15306
# resulting binary.
 
15307
hardcode_minus_L=$hardcode_minus_L_F77
 
15308
 
 
15309
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15310
# the resulting binary.
 
15311
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15312
 
 
15313
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15314
# and all subsequent libraries and executables linked against it.
 
15315
hardcode_automatic=$hardcode_automatic_F77
 
15316
 
 
15317
# Variables whose values should be saved in libtool wrapper scripts and
 
15318
# restored at relink time.
 
15319
variables_saved_for_relink="$variables_saved_for_relink"
 
15320
 
 
15321
# Whether libtool must link a program against all its dependency libraries.
 
15322
link_all_deplibs=$link_all_deplibs_F77
 
15323
 
 
15324
# Compile-time system search path for libraries
 
15325
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15326
 
 
15327
# Run-time system search path for libraries
 
15328
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15329
 
 
15330
# Fix the shell variable \$srcfile for the compiler.
 
15331
fix_srcfile_path="$fix_srcfile_path_F77"
 
15332
 
 
15333
# Set to yes if exported symbols are required.
 
15334
always_export_symbols=$always_export_symbols_F77
 
15335
 
 
15336
# The commands to list exported symbols.
 
15337
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15338
 
 
15339
# The commands to extract the exported symbol list from a shared archive.
 
15340
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15341
 
 
15342
# Symbols that should not be listed in the preloaded symbols.
 
15343
exclude_expsyms=$lt_exclude_expsyms_F77
 
15344
 
 
15345
# Symbols that must always be exported.
 
15346
include_expsyms=$lt_include_expsyms_F77
 
15347
 
 
15348
# ### END LIBTOOL TAG CONFIG: $tagname
 
15349
 
 
15350
__EOF__
 
15351
 
 
15352
 
 
15353
else
 
15354
  # If there is no Makefile yet, we rely on a make rule to execute
 
15355
  # `config.status --recheck' to rerun these tests and create the
 
15356
  # libtool script then.
 
15357
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15358
  if test -f "$ltmain_in"; then
 
15359
    test -f Makefile && make "$ltmain"
 
15360
  fi
 
15361
fi
 
15362
 
 
15363
 
 
15364
ac_ext=c
 
15365
ac_cpp='$CPP $CPPFLAGS'
 
15366
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15367
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15368
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15369
 
 
15370
CC="$lt_save_CC"
 
15371
 
 
15372
        else
 
15373
          tagname=""
 
15374
        fi
 
15375
        ;;
 
15376
 
 
15377
      GCJ)
 
15378
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15379
 
 
15380
 
 
15381
 
 
15382
# Source file extension for Java test sources.
 
15383
ac_ext=java
 
15384
 
 
15385
# Object file extension for compiled Java test sources.
 
15386
objext=o
 
15387
objext_GCJ=$objext
 
15388
 
 
15389
# Code to be used in simple compile tests
 
15390
lt_simple_compile_test_code="class foo {}\n"
 
15391
 
 
15392
# Code to be used in simple link tests
 
15393
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15394
 
 
15395
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15396
 
 
15397
# If no C compiler was specified, use CC.
 
15398
LTCC=${LTCC-"$CC"}
 
15399
 
 
15400
# Allow CC to be a program name with arguments.
 
15401
compiler=$CC
 
15402
 
 
15403
 
 
15404
# save warnings/boilerplate of simple test code
 
15405
ac_outfile=conftest.$ac_objext
 
15406
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15407
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15408
_lt_compiler_boilerplate=`cat conftest.err`
 
15409
$rm conftest*
 
15410
 
 
15411
ac_outfile=conftest.$ac_objext
 
15412
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15413
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15414
_lt_linker_boilerplate=`cat conftest.err`
 
15415
$rm conftest*
 
15416
 
 
15417
 
 
15418
# Allow CC to be a program name with arguments.
 
15419
lt_save_CC="$CC"
 
15420
CC=${GCJ-"gcj"}
 
15421
compiler=$CC
 
15422
compiler_GCJ=$CC
 
15423
for cc_temp in $compiler""; do
 
15424
  case $cc_temp in
 
15425
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15426
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15427
    \-*) ;;
 
15428
    *) break;;
 
15429
  esac
 
15430
done
 
15431
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15432
 
 
15433
 
 
15434
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15435
archive_cmds_need_lc_GCJ=no
 
15436
 
 
15437
old_archive_cmds_GCJ=$old_archive_cmds
 
15438
 
 
15439
## CAVEAT EMPTOR:
 
15440
## There is no encapsulation within the following macros, do not change
 
15441
## the running order or otherwise move them around unless you know exactly
 
15442
## what you are doing...
 
15443
 
 
15444
lt_prog_compiler_no_builtin_flag_GCJ=
 
15445
 
 
15446
if test "$GCC" = yes; then
 
15447
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15448
 
 
15449
 
 
15450
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15451
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15452
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15453
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15454
else
 
15455
  lt_cv_prog_compiler_rtti_exceptions=no
 
15456
  ac_outfile=conftest.$ac_objext
 
15457
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15458
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15459
   # Insert the option either (1) after the last *FLAGS variable, or
 
15460
   # (2) before a word containing "conftest.", or (3) at the end.
 
15461
   # Note that $ac_compile itself does not contain backslashes and begins
 
15462
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15463
   # The option is referenced via a variable to avoid confusing sed.
 
15464
   lt_compile=`echo "$ac_compile" | $SED \
 
15465
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15466
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15467
   -e 's:$: $lt_compiler_flag:'`
 
15468
   (eval echo "\"\$as_me:15468: $lt_compile\"" >&5)
 
15469
   (eval "$lt_compile" 2>conftest.err)
 
15470
   ac_status=$?
 
15471
   cat conftest.err >&5
 
15472
   echo "$as_me:15472: \$? = $ac_status" >&5
 
15473
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15474
     # The compiler can only warn and ignore the option if not recognized
 
15475
     # So say no if there are warnings other than the usual output.
 
15476
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
15477
     $SED '/^$/d' conftest.err >conftest.er2
 
15478
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
15479
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15480
     fi
 
15481
   fi
 
15482
   $rm conftest*
 
15483
 
 
15484
fi
 
15485
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15486
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15487
 
 
15488
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15489
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15490
else
 
15491
    :
 
15492
fi
 
15493
 
 
15494
fi
 
15495
 
 
15496
lt_prog_compiler_wl_GCJ=
 
15497
lt_prog_compiler_pic_GCJ=
 
15498
lt_prog_compiler_static_GCJ=
 
15499
 
 
15500
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15501
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15502
 
 
15503
  if test "$GCC" = yes; then
 
15504
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15505
    lt_prog_compiler_static_GCJ='-static'
 
15506
 
 
15507
    case $host_os in
 
15508
      aix*)
 
15509
      # All AIX code is PIC.
 
15510
      if test "$host_cpu" = ia64; then
 
15511
        # AIX 5 now supports IA64 processor
 
15512
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15513
      fi
 
15514
      ;;
 
15515
 
 
15516
    amigaos*)
 
15517
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15518
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15519
      # like `-m68040'.
 
15520
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15521
      ;;
 
15522
 
 
15523
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15524
      # PIC is the default for these OSes.
 
15525
      ;;
 
15526
 
 
15527
    mingw* | pw32* | os2*)
 
15528
      # This hack is so that the source file can tell whether it is being
 
15529
      # built for inclusion in a dll (and should export symbols for example).
 
15530
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15531
      ;;
 
15532
 
 
15533
    darwin* | rhapsody*)
 
15534
      # PIC is the default on this platform
 
15535
      # Common symbols not allowed in MH_DYLIB files
 
15536
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15537
      ;;
 
15538
 
 
15539
    msdosdjgpp*)
 
15540
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15541
      # on systems that don't support them.
 
15542
      lt_prog_compiler_can_build_shared_GCJ=no
 
15543
      enable_shared=no
 
15544
      ;;
 
15545
 
 
15546
    sysv4*MP*)
 
15547
      if test -d /usr/nec; then
 
15548
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15549
      fi
 
15550
      ;;
 
15551
 
 
15552
    hpux*)
 
15553
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15554
      # not for PA HP-UX.
 
15555
      case $host_cpu in
 
15556
      hppa*64*|ia64*)
 
15557
        # +Z the default
 
15558
        ;;
 
15559
      *)
 
15560
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15561
        ;;
 
15562
      esac
 
15563
      ;;
 
15564
 
 
15565
    *)
 
15566
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15567
      ;;
 
15568
    esac
 
15569
  else
 
15570
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15571
    case $host_os in
 
15572
    aix*)
 
15573
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15574
      if test "$host_cpu" = ia64; then
 
15575
        # AIX 5 now supports IA64 processor
 
15576
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15577
      else
 
15578
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15579
      fi
 
15580
      ;;
 
15581
      darwin*)
 
15582
        # PIC is the default on this platform
 
15583
        # Common symbols not allowed in MH_DYLIB files
 
15584
       case $cc_basename in
 
15585
         xlc*)
 
15586
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15587
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15588
         ;;
 
15589
       esac
 
15590
       ;;
 
15591
 
 
15592
    mingw* | pw32* | os2*)
 
15593
      # This hack is so that the source file can tell whether it is being
 
15594
      # built for inclusion in a dll (and should export symbols for example).
 
15595
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15596
      ;;
 
15597
 
 
15598
    hpux9* | hpux10* | hpux11*)
 
15599
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15600
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15601
      # not for PA HP-UX.
 
15602
      case $host_cpu in
 
15603
      hppa*64*|ia64*)
 
15604
        # +Z the default
 
15605
        ;;
 
15606
      *)
 
15607
        lt_prog_compiler_pic_GCJ='+Z'
 
15608
        ;;
 
15609
      esac
 
15610
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15611
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15612
      ;;
 
15613
 
 
15614
    irix5* | irix6* | nonstopux*)
 
15615
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15616
      # PIC (with -KPIC) is the default.
 
15617
      lt_prog_compiler_static_GCJ='-non_shared'
 
15618
      ;;
 
15619
 
 
15620
    newsos6)
 
15621
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15622
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15623
      ;;
 
15624
 
 
15625
    linux*)
 
15626
      case $cc_basename in
 
15627
      icc* | ecc*)
 
15628
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15629
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15630
        lt_prog_compiler_static_GCJ='-static'
 
15631
        ;;
 
15632
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15633
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15634
        # which looks to be a dead project)
 
15635
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15636
        lt_prog_compiler_pic_GCJ='-fpic'
 
15637
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15638
        ;;
 
15639
      ccc*)
 
15640
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15641
        # All Alpha code is PIC.
 
15642
        lt_prog_compiler_static_GCJ='-non_shared'
 
15643
        ;;
 
15644
      esac
 
15645
      ;;
 
15646
 
 
15647
    osf3* | osf4* | osf5*)
 
15648
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15649
      # All OSF/1 code is PIC.
 
15650
      lt_prog_compiler_static_GCJ='-non_shared'
 
15651
      ;;
 
15652
 
 
15653
    sco3.2v5*)
 
15654
      lt_prog_compiler_pic_GCJ='-Kpic'
 
15655
      lt_prog_compiler_static_GCJ='-dn'
 
15656
      ;;
 
15657
 
 
15658
    solaris*)
 
15659
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15660
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15661
      case $cc_basename in
 
15662
      f77* | f90* | f95*)
 
15663
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15664
      *)
 
15665
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15666
      esac
 
15667
      ;;
 
15668
 
 
15669
    sunos4*)
 
15670
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15671
      lt_prog_compiler_pic_GCJ='-PIC'
 
15672
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15673
      ;;
 
15674
 
 
15675
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15676
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15677
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15678
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15679
      ;;
 
15680
 
 
15681
    sysv4*MP*)
 
15682
      if test -d /usr/nec ;then
 
15683
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15684
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15685
      fi
 
15686
      ;;
 
15687
 
 
15688
    unicos*)
 
15689
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15690
      lt_prog_compiler_can_build_shared_GCJ=no
 
15691
      ;;
 
15692
 
 
15693
    uts4*)
 
15694
      lt_prog_compiler_pic_GCJ='-pic'
 
15695
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15696
      ;;
 
15697
 
 
15698
    *)
 
15699
      lt_prog_compiler_can_build_shared_GCJ=no
 
15700
      ;;
 
15701
    esac
 
15702
  fi
 
15703
 
 
15704
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15705
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15706
 
 
15707
#
 
15708
# Check to make sure the PIC flag actually works.
 
15709
#
 
15710
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15711
 
 
15712
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15713
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15714
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15715
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15716
else
 
15717
  lt_prog_compiler_pic_works_GCJ=no
 
15718
  ac_outfile=conftest.$ac_objext
 
15719
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15720
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15721
   # Insert the option either (1) after the last *FLAGS variable, or
 
15722
   # (2) before a word containing "conftest.", or (3) at the end.
 
15723
   # Note that $ac_compile itself does not contain backslashes and begins
 
15724
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15725
   # The option is referenced via a variable to avoid confusing sed.
 
15726
   lt_compile=`echo "$ac_compile" | $SED \
 
15727
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15728
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15729
   -e 's:$: $lt_compiler_flag:'`
 
15730
   (eval echo "\"\$as_me:15730: $lt_compile\"" >&5)
 
15731
   (eval "$lt_compile" 2>conftest.err)
 
15732
   ac_status=$?
 
15733
   cat conftest.err >&5
 
15734
   echo "$as_me:15734: \$? = $ac_status" >&5
 
15735
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15736
     # The compiler can only warn and ignore the option if not recognized
 
15737
     # So say no if there are warnings other than the usual output.
 
15738
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
15739
     $SED '/^$/d' conftest.err >conftest.er2
 
15740
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
15741
       lt_prog_compiler_pic_works_GCJ=yes
 
15742
     fi
 
15743
   fi
 
15744
   $rm conftest*
 
15745
 
 
15746
fi
 
15747
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15748
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15749
 
 
15750
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15751
    case $lt_prog_compiler_pic_GCJ in
 
15752
     "" | " "*) ;;
 
15753
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15754
     esac
 
15755
else
 
15756
    lt_prog_compiler_pic_GCJ=
 
15757
     lt_prog_compiler_can_build_shared_GCJ=no
 
15758
fi
 
15759
 
 
15760
fi
 
15761
case $host_os in
 
15762
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15763
  *djgpp*)
 
15764
    lt_prog_compiler_pic_GCJ=
 
15765
    ;;
 
15766
  *)
 
15767
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15768
    ;;
 
15769
esac
 
15770
 
 
15771
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15772
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15773
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15775
else
 
15776
  lt_cv_prog_compiler_c_o_GCJ=no
 
15777
   $rm -r conftest 2>/dev/null
 
15778
   mkdir conftest
 
15779
   cd conftest
 
15780
   mkdir out
 
15781
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15782
 
 
15783
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15784
   # Insert the option either (1) after the last *FLAGS variable, or
 
15785
   # (2) before a word containing "conftest.", or (3) at the end.
 
15786
   # Note that $ac_compile itself does not contain backslashes and begins
 
15787
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15788
   lt_compile=`echo "$ac_compile" | $SED \
 
15789
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15790
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15791
   -e 's:$: $lt_compiler_flag:'`
 
15792
   (eval echo "\"\$as_me:15792: $lt_compile\"" >&5)
 
15793
   (eval "$lt_compile" 2>out/conftest.err)
 
15794
   ac_status=$?
 
15795
   cat out/conftest.err >&5
 
15796
   echo "$as_me:15796: \$? = $ac_status" >&5
 
15797
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15798
   then
 
15799
     # The compiler can only warn and ignore the option if not recognized
 
15800
     # So say no if there are warnings
 
15801
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
15802
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
15803
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15804
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15805
     fi
 
15806
   fi
 
15807
   chmod u+w . 2>&5
 
15808
   $rm conftest*
 
15809
   # SGI C++ compiler will create directory out/ii_files/ for
 
15810
   # template instantiation
 
15811
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15812
   $rm out/* && rmdir out
 
15813
   cd ..
 
15814
   rmdir conftest
 
15815
   $rm conftest*
 
15816
 
 
15817
fi
 
15818
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15819
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15820
 
 
15821
 
 
15822
hard_links="nottested"
 
15823
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15824
  # do not overwrite the value of need_locks provided by the user
 
15825
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15826
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15827
  hard_links=yes
 
15828
  $rm conftest*
 
15829
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15830
  touch conftest.a
 
15831
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15832
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15833
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15834
echo "${ECHO_T}$hard_links" >&6
 
15835
  if test "$hard_links" = no; then
 
15836
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15837
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15838
    need_locks=warn
 
15839
  fi
 
15840
else
 
15841
  need_locks=no
 
15842
fi
 
15843
 
 
15844
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15845
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15846
 
 
15847
  runpath_var=
 
15848
  allow_undefined_flag_GCJ=
 
15849
  enable_shared_with_static_runtimes_GCJ=no
 
15850
  archive_cmds_GCJ=
 
15851
  archive_expsym_cmds_GCJ=
 
15852
  old_archive_From_new_cmds_GCJ=
 
15853
  old_archive_from_expsyms_cmds_GCJ=
 
15854
  export_dynamic_flag_spec_GCJ=
 
15855
  whole_archive_flag_spec_GCJ=
 
15856
  thread_safe_flag_spec_GCJ=
 
15857
  hardcode_libdir_flag_spec_GCJ=
 
15858
  hardcode_libdir_flag_spec_ld_GCJ=
 
15859
  hardcode_libdir_separator_GCJ=
 
15860
  hardcode_direct_GCJ=no
 
15861
  hardcode_minus_L_GCJ=no
 
15862
  hardcode_shlibpath_var_GCJ=unsupported
 
15863
  link_all_deplibs_GCJ=unknown
 
15864
  hardcode_automatic_GCJ=no
 
15865
  module_cmds_GCJ=
 
15866
  module_expsym_cmds_GCJ=
 
15867
  always_export_symbols_GCJ=no
 
15868
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15869
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15870
  # included in the symbol list
 
15871
  include_expsyms_GCJ=
 
15872
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15873
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15874
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15875
  # as well as any symbol that contains `d'.
 
15876
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15877
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15878
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15879
  # the symbol is explicitly referenced.  Since portable code cannot
 
15880
  # rely on this symbol name, it's probably fine to never include it in
 
15881
  # preloaded symbol tables.
 
15882
  extract_expsyms_cmds=
 
15883
  # Just being paranoid about ensuring that cc_basename is set.
 
15884
  for cc_temp in $compiler""; do
 
15885
  case $cc_temp in
 
15886
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15887
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15888
    \-*) ;;
 
15889
    *) break;;
 
15890
  esac
 
15891
done
 
15892
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15893
 
 
15894
  case $host_os in
 
15895
  cygwin* | mingw* | pw32*)
 
15896
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15897
    # When not using gcc, we currently assume that we are using
 
15898
    # Microsoft Visual C++.
 
15899
    if test "$GCC" != yes; then
 
15900
      with_gnu_ld=no
 
15901
    fi
 
15902
    ;;
 
15903
  openbsd*)
 
15904
    with_gnu_ld=no
 
15905
    ;;
 
15906
  esac
 
15907
 
 
15908
  ld_shlibs_GCJ=yes
 
15909
  if test "$with_gnu_ld" = yes; then
 
15910
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15911
    wlarc='${wl}'
 
15912
 
 
15913
    # Set some defaults for GNU ld with shared library support. These
 
15914
    # are reset later if shared libraries are not supported. Putting them
 
15915
    # here allows them to be overridden if necessary.
 
15916
    runpath_var=LD_RUN_PATH
 
15917
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
15918
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
15919
    # ancient GNU ld didn't support --whole-archive et. al.
 
15920
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15921
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15922
      else
 
15923
        whole_archive_flag_spec_GCJ=
 
15924
    fi
 
15925
    supports_anon_versioning=no
 
15926
    case `$LD -v 2>/dev/null` in
 
15927
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15928
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15929
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15930
      *\ 2.11.*) ;; # other 2.11 versions
 
15931
      *) supports_anon_versioning=yes ;;
 
15932
    esac
 
15933
 
 
15934
    # See if GNU ld supports shared libraries.
 
15935
    case $host_os in
 
15936
    aix3* | aix4* | aix5*)
 
15937
      # On AIX/PPC, the GNU linker is very broken
 
15938
      if test "$host_cpu" != ia64; then
 
15939
        ld_shlibs_GCJ=no
 
15940
        cat <<EOF 1>&2
 
15941
 
 
15942
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15943
*** to be unable to reliably create shared libraries on AIX.
 
15944
*** Therefore, libtool is disabling shared libraries support.  If you
 
15945
*** really care for shared libraries, you may want to modify your PATH
 
15946
*** so that a non-GNU linker is found, and then restart.
 
15947
 
 
15948
EOF
 
15949
      fi
 
15950
      ;;
 
15951
 
 
15952
    amigaos*)
 
15953
      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)'
 
15954
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15955
      hardcode_minus_L_GCJ=yes
 
15956
 
 
15957
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15958
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15959
      # to version 4, is to share data among multiple programs linked
 
15960
      # with the same dynamic library.  Since this doesn't match the
 
15961
      # behavior of shared libraries on other platforms, we can't use
 
15962
      # them.
 
15963
      ld_shlibs_GCJ=no
 
15964
      ;;
 
15965
 
 
15966
    beos*)
 
15967
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15968
        allow_undefined_flag_GCJ=unsupported
 
15969
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15970
        # support --undefined.  This deserves some investigation.  FIXME
 
15971
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15972
      else
 
15973
        ld_shlibs_GCJ=no
 
15974
      fi
 
15975
      ;;
 
15976
 
 
15977
    cygwin* | mingw* | pw32*)
 
15978
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
15979
      # as there is no search path for DLLs.
 
15980
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15981
      allow_undefined_flag_GCJ=unsupported
 
15982
      always_export_symbols_GCJ=no
 
15983
      enable_shared_with_static_runtimes_GCJ=yes
 
15984
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15985
 
 
15986
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15987
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15988
        # If the export-symbols file already is a .def file (1st line
 
15989
        # is EXPORTS), use it as is; otherwise, prepend...
 
15990
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15991
          cp $export_symbols $output_objdir/$soname.def;
 
15992
        else
 
15993
          echo EXPORTS > $output_objdir/$soname.def;
 
15994
          cat $export_symbols >> $output_objdir/$soname.def;
 
15995
        fi~
 
15996
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15997
      else
 
15998
        ld_shlibs_GCJ=no
 
15999
      fi
 
16000
      ;;
 
16001
 
 
16002
    linux*)
 
16003
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16004
        tmp_addflag=
 
16005
        case $cc_basename,$host_cpu in
 
16006
        pgcc*)                          # Portland Group C compiler
 
16007
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16008
          tmp_addflag=' $pic_flag'
 
16009
          ;;
 
16010
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16011
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16012
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16013
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16014
          tmp_addflag=' -i_dynamic' ;;
 
16015
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16016
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16017
        ifc* | ifort*)                  # Intel Fortran compiler
 
16018
          tmp_addflag=' -nofor_main' ;;
 
16019
        esac
 
16020
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16021
 
 
16022
        if test $supports_anon_versioning = yes; then
 
16023
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16024
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16025
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16026
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16027
        fi
 
16028
      else
 
16029
        ld_shlibs_GCJ=no
 
16030
      fi
 
16031
      ;;
 
16032
 
 
16033
    netbsd*)
 
16034
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16035
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16036
        wlarc=
 
16037
      else
 
16038
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16039
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16040
      fi
 
16041
      ;;
 
16042
 
 
16043
    solaris* | sysv5*)
 
16044
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16045
        ld_shlibs_GCJ=no
 
16046
        cat <<EOF 1>&2
 
16047
 
 
16048
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16049
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16050
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16051
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16052
*** your PATH or compiler configuration so that the native linker is
 
16053
*** used, and then restart.
 
16054
 
 
16055
EOF
 
16056
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16057
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16058
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16059
      else
 
16060
        ld_shlibs_GCJ=no
 
16061
      fi
 
16062
      ;;
 
16063
 
 
16064
    sunos4*)
 
16065
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16066
      wlarc=
 
16067
      hardcode_direct_GCJ=yes
 
16068
      hardcode_shlibpath_var_GCJ=no
 
16069
      ;;
 
16070
 
 
16071
    *)
 
16072
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16073
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16074
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16075
      else
 
16076
        ld_shlibs_GCJ=no
 
16077
      fi
 
16078
      ;;
 
16079
    esac
 
16080
 
 
16081
    if test "$ld_shlibs_GCJ" = no; then
 
16082
      runpath_var=
 
16083
      hardcode_libdir_flag_spec_GCJ=
 
16084
      export_dynamic_flag_spec_GCJ=
 
16085
      whole_archive_flag_spec_GCJ=
 
16086
    fi
 
16087
  else
 
16088
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16089
    case $host_os in
 
16090
    aix3*)
 
16091
      allow_undefined_flag_GCJ=unsupported
 
16092
      always_export_symbols_GCJ=yes
 
16093
      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'
 
16094
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16095
      # are no directories specified by -L.
 
16096
      hardcode_minus_L_GCJ=yes
 
16097
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16098
        # Neither direct hardcoding nor static linking is supported with a
 
16099
        # broken collect2.
 
16100
        hardcode_direct_GCJ=unsupported
 
16101
      fi
 
16102
      ;;
 
16103
 
 
16104
    aix4* | aix5*)
 
16105
      if test "$host_cpu" = ia64; then
 
16106
        # On IA64, the linker does run time linking by default, so we don't
 
16107
        # have to do anything special.
 
16108
        aix_use_runtimelinking=no
 
16109
        exp_sym_flag='-Bexport'
 
16110
        no_entry_flag=""
 
16111
      else
 
16112
        # If we're using GNU nm, then we don't want the "-C" option.
 
16113
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16114
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16115
          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'
 
16116
        else
 
16117
          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'
 
16118
        fi
 
16119
        aix_use_runtimelinking=no
 
16120
 
 
16121
        # Test if we are trying to use run time linking or normal
 
16122
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16123
        # need to do runtime linking.
 
16124
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16125
          for ld_flag in $LDFLAGS; do
 
16126
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16127
            aix_use_runtimelinking=yes
 
16128
            break
 
16129
          fi
 
16130
          done
 
16131
        esac
 
16132
 
 
16133
        exp_sym_flag='-bexport'
 
16134
        no_entry_flag='-bnoentry'
 
16135
      fi
 
16136
 
 
16137
      # When large executables or shared objects are built, AIX ld can
 
16138
      # have problems creating the table of contents.  If linking a library
 
16139
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16140
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16141
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16142
 
 
16143
      archive_cmds_GCJ=''
 
16144
      hardcode_direct_GCJ=yes
 
16145
      hardcode_libdir_separator_GCJ=':'
 
16146
      link_all_deplibs_GCJ=yes
 
16147
 
 
16148
      if test "$GCC" = yes; then
 
16149
        case $host_os in aix4.[012]|aix4.[012].*)
 
16150
        # We only want to do this on AIX 4.2 and lower, the check
 
16151
        # below for broken collect2 doesn't work under 4.3+
 
16152
          collect2name=`${CC} -print-prog-name=collect2`
 
16153
          if test -f "$collect2name" && \
 
16154
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16155
          then
 
16156
          # We have reworked collect2
 
16157
          hardcode_direct_GCJ=yes
 
16158
          else
 
16159
          # We have old collect2
 
16160
          hardcode_direct_GCJ=unsupported
 
16161
          # It fails to find uninstalled libraries when the uninstalled
 
16162
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16163
          # to unsupported forces relinking
 
16164
          hardcode_minus_L_GCJ=yes
 
16165
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16166
          hardcode_libdir_separator_GCJ=
 
16167
          fi
 
16168
        esac
 
16169
        shared_flag='-shared'
 
16170
        if test "$aix_use_runtimelinking" = yes; then
 
16171
          shared_flag="$shared_flag "'${wl}-G'
 
16172
        fi
 
16173
      else
 
16174
        # not using gcc
 
16175
        if test "$host_cpu" = ia64; then
 
16176
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16177
        # chokes on -Wl,-G. The following line is correct:
 
16178
          shared_flag='-G'
 
16179
        else
 
16180
        if test "$aix_use_runtimelinking" = yes; then
 
16181
            shared_flag='${wl}-G'
 
16182
          else
 
16183
            shared_flag='${wl}-bM:SRE'
 
16184
        fi
 
16185
        fi
 
16186
      fi
 
16187
 
 
16188
      # It seems that -bexpall does not export symbols beginning with
 
16189
      # underscore (_), so it is better to generate a list of symbols to export.
 
16190
      always_export_symbols_GCJ=yes
 
16191
      if test "$aix_use_runtimelinking" = yes; then
 
16192
        # Warning - without using the other runtime loading flags (-brtl),
 
16193
        # -berok will link without error, but may produce a broken library.
 
16194
        allow_undefined_flag_GCJ='-berok'
 
16195
       # Determine the default libpath from the value encoded in an empty executable.
 
16196
       cat >conftest.$ac_ext <<_ACEOF
 
16197
/* confdefs.h.  */
 
16198
_ACEOF
 
16199
cat confdefs.h >>conftest.$ac_ext
 
16200
cat >>conftest.$ac_ext <<_ACEOF
 
16201
/* end confdefs.h.  */
 
16202
 
 
16203
int
 
16204
main ()
 
16205
{
 
16206
 
 
16207
  ;
 
16208
  return 0;
 
16209
}
 
16210
_ACEOF
 
16211
rm -f conftest.$ac_objext conftest$ac_exeext
 
16212
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16213
  (eval $ac_link) 2>conftest.er1
 
16214
  ac_status=$?
 
16215
  grep -v '^ *+' conftest.er1 >conftest.err
 
16216
  rm -f conftest.er1
 
16217
  cat conftest.err >&5
 
16218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16219
  (exit $ac_status); } &&
 
16220
         { ac_try='test -z "$ac_c_werror_flag"
 
16221
                         || test ! -s conftest.err'
 
16222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16223
  (eval $ac_try) 2>&5
 
16224
  ac_status=$?
 
16225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16226
  (exit $ac_status); }; } &&
 
16227
         { ac_try='test -s conftest$ac_exeext'
 
16228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16229
  (eval $ac_try) 2>&5
 
16230
  ac_status=$?
 
16231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16232
  (exit $ac_status); }; }; then
 
16233
 
 
16234
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16235
}'`
 
16236
# Check for a 64-bit object if we didn't find anything.
 
16237
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; }
 
16238
}'`; fi
 
16239
else
 
16240
  echo "$as_me: failed program was:" >&5
 
16241
sed 's/^/| /' conftest.$ac_ext >&5
 
16242
 
 
16243
fi
 
16244
rm -f conftest.err conftest.$ac_objext \
 
16245
      conftest$ac_exeext conftest.$ac_ext
 
16246
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16247
 
 
16248
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16249
        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"
 
16250
       else
 
16251
        if test "$host_cpu" = ia64; then
 
16252
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16253
          allow_undefined_flag_GCJ="-z nodefs"
 
16254
          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"
 
16255
        else
 
16256
         # Determine the default libpath from the value encoded in an empty executable.
 
16257
         cat >conftest.$ac_ext <<_ACEOF
 
16258
/* confdefs.h.  */
 
16259
_ACEOF
 
16260
cat confdefs.h >>conftest.$ac_ext
 
16261
cat >>conftest.$ac_ext <<_ACEOF
 
16262
/* end confdefs.h.  */
 
16263
 
 
16264
int
 
16265
main ()
 
16266
{
 
16267
 
 
16268
  ;
 
16269
  return 0;
 
16270
}
 
16271
_ACEOF
 
16272
rm -f conftest.$ac_objext conftest$ac_exeext
 
16273
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16274
  (eval $ac_link) 2>conftest.er1
 
16275
  ac_status=$?
 
16276
  grep -v '^ *+' conftest.er1 >conftest.err
 
16277
  rm -f conftest.er1
 
16278
  cat conftest.err >&5
 
16279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16280
  (exit $ac_status); } &&
 
16281
         { ac_try='test -z "$ac_c_werror_flag"
 
16282
                         || test ! -s conftest.err'
 
16283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16284
  (eval $ac_try) 2>&5
 
16285
  ac_status=$?
 
16286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16287
  (exit $ac_status); }; } &&
 
16288
         { ac_try='test -s conftest$ac_exeext'
 
16289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16290
  (eval $ac_try) 2>&5
 
16291
  ac_status=$?
 
16292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16293
  (exit $ac_status); }; }; then
 
16294
 
 
16295
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16296
}'`
 
16297
# Check for a 64-bit object if we didn't find anything.
 
16298
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; }
 
16299
}'`; fi
 
16300
else
 
16301
  echo "$as_me: failed program was:" >&5
 
16302
sed 's/^/| /' conftest.$ac_ext >&5
 
16303
 
 
16304
fi
 
16305
rm -f conftest.err conftest.$ac_objext \
 
16306
      conftest$ac_exeext conftest.$ac_ext
 
16307
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16308
 
 
16309
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16310
          # Warning - without using the other run time loading flags,
 
16311
          # -berok will link without error, but may produce a broken library.
 
16312
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16313
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16314
          # -bexpall does not export symbols beginning with underscore (_)
 
16315
          always_export_symbols_GCJ=yes
 
16316
          # Exported symbols can be pulled into shared objects from archives
 
16317
          whole_archive_flag_spec_GCJ=' '
 
16318
          archive_cmds_need_lc_GCJ=yes
 
16319
          # This is similar to how AIX traditionally builds its shared libraries.
 
16320
          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'
 
16321
        fi
 
16322
      fi
 
16323
      ;;
 
16324
 
 
16325
    amigaos*)
 
16326
      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)'
 
16327
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16328
      hardcode_minus_L_GCJ=yes
 
16329
      # see comment about different semantics on the GNU ld section
 
16330
      ld_shlibs_GCJ=no
 
16331
      ;;
 
16332
 
 
16333
    bsdi[45]*)
 
16334
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16335
      ;;
 
16336
 
 
16337
    cygwin* | mingw* | pw32*)
 
16338
      # When not using gcc, we currently assume that we are using
 
16339
      # Microsoft Visual C++.
 
16340
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16341
      # no search path for DLLs.
 
16342
      hardcode_libdir_flag_spec_GCJ=' '
 
16343
      allow_undefined_flag_GCJ=unsupported
 
16344
      # Tell ltmain to make .lib files, not .a files.
 
16345
      libext=lib
 
16346
      # Tell ltmain to make .dll files, not .so files.
 
16347
      shrext_cmds=".dll"
 
16348
      # FIXME: Setting linknames here is a bad hack.
 
16349
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16350
      # The linker will automatically build a .lib file if we build a DLL.
 
16351
      old_archive_From_new_cmds_GCJ='true'
 
16352
      # FIXME: Should let the user specify the lib program.
 
16353
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16354
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16355
      enable_shared_with_static_runtimes_GCJ=yes
 
16356
      ;;
 
16357
 
 
16358
    darwin* | rhapsody*)
 
16359
      case $host_os in
 
16360
        rhapsody* | darwin1.[012])
 
16361
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16362
         ;;
 
16363
       *) # Darwin 1.3 on
 
16364
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16365
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16366
         else
 
16367
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16368
             10.[012])
 
16369
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16370
               ;;
 
16371
             10.*)
 
16372
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16373
               ;;
 
16374
           esac
 
16375
         fi
 
16376
         ;;
 
16377
      esac
 
16378
      archive_cmds_need_lc_GCJ=no
 
16379
      hardcode_direct_GCJ=no
 
16380
      hardcode_automatic_GCJ=yes
 
16381
      hardcode_shlibpath_var_GCJ=unsupported
 
16382
      whole_archive_flag_spec_GCJ=''
 
16383
      link_all_deplibs_GCJ=yes
 
16384
    if test "$GCC" = yes ; then
 
16385
        output_verbose_link_cmd='echo'
 
16386
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16387
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16388
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16389
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16390
      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}'
 
16391
    else
 
16392
      case $cc_basename in
 
16393
        xlc*)
 
16394
         output_verbose_link_cmd='echo'
 
16395
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16396
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16397
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16398
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16399
          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}'
 
16400
          ;;
 
16401
       *)
 
16402
         ld_shlibs_GCJ=no
 
16403
          ;;
 
16404
      esac
 
16405
    fi
 
16406
      ;;
 
16407
 
 
16408
    dgux*)
 
16409
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16410
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16411
      hardcode_shlibpath_var_GCJ=no
 
16412
      ;;
 
16413
 
 
16414
    freebsd1*)
 
16415
      ld_shlibs_GCJ=no
 
16416
      ;;
 
16417
 
 
16418
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16419
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16420
    # does not break anything, and helps significantly (at the cost of a little
 
16421
    # extra space).
 
16422
    freebsd2.2*)
 
16423
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16424
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16425
      hardcode_direct_GCJ=yes
 
16426
      hardcode_shlibpath_var_GCJ=no
 
16427
      ;;
 
16428
 
 
16429
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16430
    freebsd2*)
 
16431
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16432
      hardcode_direct_GCJ=yes
 
16433
      hardcode_minus_L_GCJ=yes
 
16434
      hardcode_shlibpath_var_GCJ=no
 
16435
      ;;
 
16436
 
 
16437
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16438
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
16439
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16440
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16441
      hardcode_direct_GCJ=yes
 
16442
      hardcode_shlibpath_var_GCJ=no
 
16443
      ;;
 
16444
 
 
16445
    hpux9*)
 
16446
      if test "$GCC" = yes; then
 
16447
        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'
 
16448
      else
 
16449
        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'
 
16450
      fi
 
16451
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16452
      hardcode_libdir_separator_GCJ=:
 
16453
      hardcode_direct_GCJ=yes
 
16454
 
 
16455
      # hardcode_minus_L: Not really in the search PATH,
 
16456
      # but as the default location of the library.
 
16457
      hardcode_minus_L_GCJ=yes
 
16458
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16459
      ;;
 
16460
 
 
16461
    hpux10* | hpux11*)
 
16462
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16463
        case $host_cpu in
 
16464
        hppa*64*|ia64*)
 
16465
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16466
          ;;
 
16467
        *)
 
16468
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16469
          ;;
 
16470
        esac
 
16471
      else
 
16472
        case $host_cpu in
 
16473
        hppa*64*|ia64*)
 
16474
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16475
          ;;
 
16476
        *)
 
16477
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16478
          ;;
 
16479
        esac
 
16480
      fi
 
16481
      if test "$with_gnu_ld" = no; then
 
16482
        case $host_cpu in
 
16483
        hppa*64*)
 
16484
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16485
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16486
          hardcode_libdir_separator_GCJ=:
 
16487
          hardcode_direct_GCJ=no
 
16488
          hardcode_shlibpath_var_GCJ=no
 
16489
          ;;
 
16490
        ia64*)
 
16491
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16492
          hardcode_direct_GCJ=no
 
16493
          hardcode_shlibpath_var_GCJ=no
 
16494
 
 
16495
          # hardcode_minus_L: Not really in the search PATH,
 
16496
          # but as the default location of the library.
 
16497
          hardcode_minus_L_GCJ=yes
 
16498
          ;;
 
16499
        *)
 
16500
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16501
          hardcode_libdir_separator_GCJ=:
 
16502
          hardcode_direct_GCJ=yes
 
16503
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16504
 
 
16505
          # hardcode_minus_L: Not really in the search PATH,
 
16506
          # but as the default location of the library.
 
16507
          hardcode_minus_L_GCJ=yes
 
16508
          ;;
 
16509
        esac
 
16510
      fi
 
16511
      ;;
 
16512
 
 
16513
    irix5* | irix6* | nonstopux*)
 
16514
      if test "$GCC" = yes; then
 
16515
        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'
 
16516
      else
 
16517
        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'
 
16518
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16519
      fi
 
16520
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16521
      hardcode_libdir_separator_GCJ=:
 
16522
      link_all_deplibs_GCJ=yes
 
16523
      ;;
 
16524
 
 
16525
    netbsd*)
 
16526
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16527
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16528
      else
 
16529
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16530
      fi
 
16531
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16532
      hardcode_direct_GCJ=yes
 
16533
      hardcode_shlibpath_var_GCJ=no
 
16534
      ;;
 
16535
 
 
16536
    newsos6)
 
16537
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16538
      hardcode_direct_GCJ=yes
 
16539
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16540
      hardcode_libdir_separator_GCJ=:
 
16541
      hardcode_shlibpath_var_GCJ=no
 
16542
      ;;
 
16543
 
 
16544
    openbsd*)
 
16545
      hardcode_direct_GCJ=yes
 
16546
      hardcode_shlibpath_var_GCJ=no
 
16547
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16548
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16549
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16550
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16551
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16552
      else
 
16553
       case $host_os in
 
16554
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16555
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16556
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16557
           ;;
 
16558
         *)
 
16559
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16560
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16561
           ;;
 
16562
       esac
 
16563
      fi
 
16564
      ;;
 
16565
 
 
16566
    os2*)
 
16567
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16568
      hardcode_minus_L_GCJ=yes
 
16569
      allow_undefined_flag_GCJ=unsupported
 
16570
      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'
 
16571
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16572
      ;;
 
16573
 
 
16574
    osf3*)
 
16575
      if test "$GCC" = yes; then
 
16576
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16577
        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'
 
16578
      else
 
16579
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16580
        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'
 
16581
      fi
 
16582
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16583
      hardcode_libdir_separator_GCJ=:
 
16584
      ;;
 
16585
 
 
16586
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16587
      if test "$GCC" = yes; then
 
16588
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16589
        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'
 
16590
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16591
      else
 
16592
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16593
        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'
 
16594
        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~
 
16595
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
16596
 
 
16597
        # Both c and cxx compiler support -rpath directly
 
16598
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16599
      fi
 
16600
      hardcode_libdir_separator_GCJ=:
 
16601
      ;;
 
16602
 
 
16603
    sco3.2v5*)
 
16604
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16605
      hardcode_shlibpath_var_GCJ=no
 
16606
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16607
      runpath_var=LD_RUN_PATH
 
16608
      hardcode_runpath_var=yes
 
16609
      ;;
 
16610
 
 
16611
    solaris*)
 
16612
      no_undefined_flag_GCJ=' -z text'
 
16613
      if test "$GCC" = yes; then
 
16614
        wlarc='${wl}'
 
16615
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16616
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16617
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16618
      else
 
16619
        wlarc=''
 
16620
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16621
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16622
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16623
      fi
 
16624
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16625
      hardcode_shlibpath_var_GCJ=no
 
16626
      case $host_os in
 
16627
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16628
      *)
 
16629
        # The compiler driver will combine linker options so we
 
16630
        # cannot just pass the convience library names through
 
16631
        # without $wl, iff we do not link with $LD.
 
16632
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16633
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16634
        case $wlarc in
 
16635
        '')
 
16636
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16637
        *)
 
16638
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
16639
        esac ;;
 
16640
      esac
 
16641
      link_all_deplibs_GCJ=yes
 
16642
      ;;
 
16643
 
 
16644
    sunos4*)
 
16645
      if test "x$host_vendor" = xsequent; then
 
16646
        # Use $CC to link under sequent, because it throws in some extra .o
 
16647
        # files that make .init and .fini sections work.
 
16648
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16649
      else
 
16650
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16651
      fi
 
16652
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16653
      hardcode_direct_GCJ=yes
 
16654
      hardcode_minus_L_GCJ=yes
 
16655
      hardcode_shlibpath_var_GCJ=no
 
16656
      ;;
 
16657
 
 
16658
    sysv4)
 
16659
      case $host_vendor in
 
16660
        sni)
 
16661
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16662
          hardcode_direct_GCJ=yes # is this really true???
 
16663
        ;;
 
16664
        siemens)
 
16665
          ## LD is ld it makes a PLAMLIB
 
16666
          ## CC just makes a GrossModule.
 
16667
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16668
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16669
          hardcode_direct_GCJ=no
 
16670
        ;;
 
16671
        motorola)
 
16672
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16673
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16674
        ;;
 
16675
      esac
 
16676
      runpath_var='LD_RUN_PATH'
 
16677
      hardcode_shlibpath_var_GCJ=no
 
16678
      ;;
 
16679
 
 
16680
    sysv4.3*)
 
16681
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16682
      hardcode_shlibpath_var_GCJ=no
 
16683
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16684
      ;;
 
16685
 
 
16686
    sysv4*MP*)
 
16687
      if test -d /usr/nec; then
 
16688
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16689
        hardcode_shlibpath_var_GCJ=no
 
16690
        runpath_var=LD_RUN_PATH
 
16691
        hardcode_runpath_var=yes
 
16692
        ld_shlibs_GCJ=yes
 
16693
      fi
 
16694
      ;;
 
16695
 
 
16696
    sysv4.2uw2*)
 
16697
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16698
      hardcode_direct_GCJ=yes
 
16699
      hardcode_minus_L_GCJ=no
 
16700
      hardcode_shlibpath_var_GCJ=no
 
16701
      hardcode_runpath_var=yes
 
16702
      runpath_var=LD_RUN_PATH
 
16703
      ;;
 
16704
 
 
16705
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16706
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
16707
      if test "$GCC" = yes; then
 
16708
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16709
      else
 
16710
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16711
      fi
 
16712
      runpath_var='LD_RUN_PATH'
 
16713
      hardcode_shlibpath_var_GCJ=no
 
16714
      ;;
 
16715
 
 
16716
    sysv5*)
 
16717
      no_undefined_flag_GCJ=' -z text'
 
16718
      # $CC -shared without GNU ld will not create a library from C++
 
16719
      # object files and a static libstdc++, better avoid it by now
 
16720
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16721
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16722
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16723
      hardcode_libdir_flag_spec_GCJ=
 
16724
      hardcode_shlibpath_var_GCJ=no
 
16725
      runpath_var='LD_RUN_PATH'
 
16726
      ;;
 
16727
 
 
16728
    uts4*)
 
16729
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16730
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16731
      hardcode_shlibpath_var_GCJ=no
 
16732
      ;;
 
16733
 
 
16734
    *)
 
16735
      ld_shlibs_GCJ=no
 
16736
      ;;
 
16737
    esac
 
16738
  fi
 
16739
 
 
16740
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16741
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16742
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16743
 
 
16744
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16745
if test "$GCC" = yes; then
 
16746
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16747
fi
 
16748
 
 
16749
#
 
16750
# Do we need to explicitly link libc?
 
16751
#
 
16752
case "x$archive_cmds_need_lc_GCJ" in
 
16753
x|xyes)
 
16754
  # Assume -lc should be added
 
16755
  archive_cmds_need_lc_GCJ=yes
 
16756
 
 
16757
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16758
    case $archive_cmds_GCJ in
 
16759
    *'~'*)
 
16760
      # FIXME: we may have to deal with multi-command sequences.
 
16761
      ;;
 
16762
    '$CC '*)
 
16763
      # Test whether the compiler implicitly links with -lc since on some
 
16764
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16765
      # to ld, don't add -lc before -lgcc.
 
16766
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16767
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16768
      $rm conftest*
 
16769
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16770
 
 
16771
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16772
  (eval $ac_compile) 2>&5
 
16773
  ac_status=$?
 
16774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16775
  (exit $ac_status); } 2>conftest.err; then
 
16776
        soname=conftest
 
16777
        lib=conftest
 
16778
        libobjs=conftest.$ac_objext
 
16779
        deplibs=
 
16780
        wl=$lt_prog_compiler_wl_GCJ
 
16781
        compiler_flags=-v
 
16782
        linker_flags=-v
 
16783
        verstring=
 
16784
        output_objdir=.
 
16785
        libname=conftest
 
16786
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16787
        allow_undefined_flag_GCJ=
 
16788
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16789
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16790
  ac_status=$?
 
16791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16792
  (exit $ac_status); }
 
16793
        then
 
16794
          archive_cmds_need_lc_GCJ=no
 
16795
        else
 
16796
          archive_cmds_need_lc_GCJ=yes
 
16797
        fi
 
16798
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16799
      else
 
16800
        cat conftest.err 1>&5
 
16801
      fi
 
16802
      $rm conftest*
 
16803
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16804
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16805
      ;;
 
16806
    esac
 
16807
  fi
 
16808
  ;;
 
16809
esac
 
16810
 
 
16811
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16812
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16813
library_names_spec=
 
16814
libname_spec='lib$name'
 
16815
soname_spec=
 
16816
shrext_cmds=".so"
 
16817
postinstall_cmds=
 
16818
postuninstall_cmds=
 
16819
finish_cmds=
 
16820
finish_eval=
 
16821
shlibpath_var=
 
16822
shlibpath_overrides_runpath=unknown
 
16823
version_type=none
 
16824
dynamic_linker="$host_os ld.so"
 
16825
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16826
if test "$GCC" = yes; then
 
16827
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16828
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16829
    # if the path contains ";" then we assume it to be the separator
 
16830
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16831
    # assumed that no part of a normal pathname contains ";" but that should
 
16832
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16833
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16834
  else
 
16835
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16836
  fi
 
16837
else
 
16838
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16839
fi
 
16840
need_lib_prefix=unknown
 
16841
hardcode_into_libs=no
 
16842
 
 
16843
# when you set need_version to no, make sure it does not cause -set_version
 
16844
# flags to be left without arguments
 
16845
need_version=unknown
 
16846
 
 
16847
case $host_os in
 
16848
aix3*)
 
16849
  version_type=linux
 
16850
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16851
  shlibpath_var=LIBPATH
 
16852
 
 
16853
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16854
  soname_spec='${libname}${release}${shared_ext}$major'
 
16855
  ;;
 
16856
 
 
16857
aix4* | aix5*)
 
16858
  version_type=linux
 
16859
  need_lib_prefix=no
 
16860
  need_version=no
 
16861
  hardcode_into_libs=yes
 
16862
  if test "$host_cpu" = ia64; then
 
16863
    # AIX 5 supports IA64
 
16864
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16865
    shlibpath_var=LD_LIBRARY_PATH
 
16866
  else
 
16867
    # With GCC up to 2.95.x, collect2 would create an import file
 
16868
    # for dependence libraries.  The import file would start with
 
16869
    # the line `#! .'.  This would cause the generated library to
 
16870
    # depend on `.', always an invalid library.  This was fixed in
 
16871
    # development snapshots of GCC prior to 3.0.
 
16872
    case $host_os in
 
16873
      aix4 | aix4.[01] | aix4.[01].*)
 
16874
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16875
           echo ' yes '
 
16876
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16877
        :
 
16878
      else
 
16879
        can_build_shared=no
 
16880
      fi
 
16881
      ;;
 
16882
    esac
 
16883
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16884
    # soname into executable. Probably we can add versioning support to
 
16885
    # collect2, so additional links can be useful in future.
 
16886
    if test "$aix_use_runtimelinking" = yes; then
 
16887
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16888
      # instead of lib<name>.a to let people know that these are not
 
16889
      # typical AIX shared libraries.
 
16890
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16891
    else
 
16892
      # We preserve .a as extension for shared libraries through AIX4.2
 
16893
      # and later when we are not doing run time linking.
 
16894
      library_names_spec='${libname}${release}.a $libname.a'
 
16895
      soname_spec='${libname}${release}${shared_ext}$major'
 
16896
    fi
 
16897
    shlibpath_var=LIBPATH
 
16898
  fi
 
16899
  ;;
 
16900
 
 
16901
amigaos*)
 
16902
  library_names_spec='$libname.ixlibrary $libname.a'
 
16903
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16904
  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'
 
16905
  ;;
 
16906
 
 
16907
beos*)
 
16908
  library_names_spec='${libname}${shared_ext}'
 
16909
  dynamic_linker="$host_os ld.so"
 
16910
  shlibpath_var=LIBRARY_PATH
 
16911
  ;;
 
16912
 
 
16913
bsdi[45]*)
 
16914
  version_type=linux
 
16915
  need_version=no
 
16916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16917
  soname_spec='${libname}${release}${shared_ext}$major'
 
16918
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16919
  shlibpath_var=LD_LIBRARY_PATH
 
16920
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16921
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16922
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16923
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16924
  # libtool to hard-code these into programs
 
16925
  ;;
 
16926
 
 
16927
cygwin* | mingw* | pw32*)
 
16928
  version_type=windows
 
16929
  shrext_cmds=".dll"
 
16930
  need_version=no
 
16931
  need_lib_prefix=no
 
16932
 
 
16933
  case $GCC,$host_os in
 
16934
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16935
    library_names_spec='$libname.dll.a'
 
16936
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16937
    postinstall_cmds='base_file=`basename \${file}`~
 
16938
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16939
      dldir=$destdir/`dirname \$dlpath`~
 
16940
      test -d \$dldir || mkdir -p \$dldir~
 
16941
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16942
      chmod a+x \$dldir/$dlname'
 
16943
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16944
      dlpath=$dir/\$dldll~
 
16945
       $rm \$dlpath'
 
16946
    shlibpath_overrides_runpath=yes
 
16947
 
 
16948
    case $host_os in
 
16949
    cygwin*)
 
16950
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16951
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16952
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16953
      ;;
 
16954
    mingw*)
 
16955
      # MinGW DLLs use traditional 'lib' prefix
 
16956
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16957
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16958
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16959
        # It is most probably a Windows format PATH printed by
 
16960
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16961
        # path with ; separators, and with drive letters. We can handle the
 
16962
        # drive letters (cygwin fileutils understands them), so leave them,
 
16963
        # especially as we might pass files found there to a mingw objdump,
 
16964
        # which wouldn't understand a cygwinified path. Ahh.
 
16965
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16966
      else
 
16967
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16968
      fi
 
16969
      ;;
 
16970
    pw32*)
 
16971
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16972
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16973
      ;;
 
16974
    esac
 
16975
    ;;
 
16976
 
 
16977
  *)
 
16978
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16979
    ;;
 
16980
  esac
 
16981
  dynamic_linker='Win32 ld.exe'
 
16982
  # FIXME: first we should search . and the directory the executable is in
 
16983
  shlibpath_var=PATH
 
16984
  ;;
 
16985
 
 
16986
darwin* | rhapsody*)
 
16987
  dynamic_linker="$host_os dyld"
 
16988
  version_type=darwin
 
16989
  need_lib_prefix=no
 
16990
  need_version=no
 
16991
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16992
  soname_spec='${libname}${release}${major}$shared_ext'
 
16993
  shlibpath_overrides_runpath=yes
 
16994
  shlibpath_var=DYLD_LIBRARY_PATH
 
16995
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16996
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16997
  if test "$GCC" = yes; then
 
16998
    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"`
 
16999
  else
 
17000
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17001
  fi
 
17002
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17003
  ;;
 
17004
 
 
17005
dgux*)
 
17006
  version_type=linux
 
17007
  need_lib_prefix=no
 
17008
  need_version=no
 
17009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17010
  soname_spec='${libname}${release}${shared_ext}$major'
 
17011
  shlibpath_var=LD_LIBRARY_PATH
 
17012
  ;;
 
17013
 
 
17014
freebsd1*)
 
17015
  dynamic_linker=no
 
17016
  ;;
 
17017
 
 
17018
kfreebsd*-gnu)
 
17019
  version_type=linux
 
17020
  need_lib_prefix=no
 
17021
  need_version=no
 
17022
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17023
  soname_spec='${libname}${release}${shared_ext}$major'
 
17024
  shlibpath_var=LD_LIBRARY_PATH
 
17025
  shlibpath_overrides_runpath=no
 
17026
  hardcode_into_libs=yes
 
17027
  dynamic_linker='GNU ld.so'
 
17028
  ;;
 
17029
 
 
17030
freebsd* | dragonfly*)
 
17031
  # DragonFly does not have aout.  When/if they implement a new
 
17032
  # versioning mechanism, adjust this.
 
17033
  if test -x /usr/bin/objformat; then
 
17034
    objformat=`/usr/bin/objformat`
 
17035
  else
 
17036
    case $host_os in
 
17037
    freebsd[123]*) objformat=aout ;;
 
17038
    *) objformat=elf ;;
 
17039
    esac
 
17040
  fi
 
17041
  version_type=freebsd-$objformat
 
17042
  case $version_type in
 
17043
    freebsd-elf*)
 
17044
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17045
      need_version=no
 
17046
      need_lib_prefix=no
 
17047
      ;;
 
17048
    freebsd-*)
 
17049
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17050
      need_version=yes
 
17051
      ;;
 
17052
  esac
 
17053
  shlibpath_var=LD_LIBRARY_PATH
 
17054
  case $host_os in
 
17055
  freebsd2*)
 
17056
    shlibpath_overrides_runpath=yes
 
17057
    ;;
 
17058
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17059
    shlibpath_overrides_runpath=yes
 
17060
    hardcode_into_libs=yes
 
17061
    ;;
 
17062
  *) # from 3.2 on
 
17063
    shlibpath_overrides_runpath=no
 
17064
    hardcode_into_libs=yes
 
17065
    ;;
 
17066
  esac
 
17067
  ;;
 
17068
 
 
17069
gnu*)
 
17070
  version_type=linux
 
17071
  need_lib_prefix=no
 
17072
  need_version=no
 
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
  shlibpath_var=LD_LIBRARY_PATH
 
17076
  hardcode_into_libs=yes
 
17077
  ;;
 
17078
 
 
17079
hpux9* | hpux10* | hpux11*)
 
17080
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17081
  # link against other versions.
 
17082
  version_type=sunos
 
17083
  need_lib_prefix=no
 
17084
  need_version=no
 
17085
  case $host_cpu in
 
17086
  ia64*)
 
17087
    shrext_cmds='.so'
 
17088
    hardcode_into_libs=yes
 
17089
    dynamic_linker="$host_os dld.so"
 
17090
    shlibpath_var=LD_LIBRARY_PATH
 
17091
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17092
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17093
    soname_spec='${libname}${release}${shared_ext}$major'
 
17094
    if test "X$HPUX_IA64_MODE" = X32; then
 
17095
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17096
    else
 
17097
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17098
    fi
 
17099
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17100
    ;;
 
17101
   hppa*64*)
 
17102
     shrext_cmds='.sl'
 
17103
     hardcode_into_libs=yes
 
17104
     dynamic_linker="$host_os dld.sl"
 
17105
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17106
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17107
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17108
     soname_spec='${libname}${release}${shared_ext}$major'
 
17109
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17110
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17111
     ;;
 
17112
   *)
 
17113
    shrext_cmds='.sl'
 
17114
    dynamic_linker="$host_os dld.sl"
 
17115
    shlibpath_var=SHLIB_PATH
 
17116
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17117
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17118
    soname_spec='${libname}${release}${shared_ext}$major'
 
17119
    ;;
 
17120
  esac
 
17121
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17122
  postinstall_cmds='chmod 555 $lib'
 
17123
  ;;
 
17124
 
 
17125
irix5* | irix6* | nonstopux*)
 
17126
  case $host_os in
 
17127
    nonstopux*) version_type=nonstopux ;;
 
17128
    *)
 
17129
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17130
                version_type=linux
 
17131
        else
 
17132
                version_type=irix
 
17133
        fi ;;
 
17134
  esac
 
17135
  need_lib_prefix=no
 
17136
  need_version=no
 
17137
  soname_spec='${libname}${release}${shared_ext}$major'
 
17138
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17139
  case $host_os in
 
17140
  irix5* | nonstopux*)
 
17141
    libsuff= shlibsuff=
 
17142
    ;;
 
17143
  *)
 
17144
    case $LD in # libtool.m4 will add one of these switches to LD
 
17145
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17146
      libsuff= shlibsuff= libmagic=32-bit;;
 
17147
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17148
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17149
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17150
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17151
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17152
    esac
 
17153
    ;;
 
17154
  esac
 
17155
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17156
  shlibpath_overrides_runpath=no
 
17157
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17158
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17159
  hardcode_into_libs=yes
 
17160
  ;;
 
17161
 
 
17162
# No shared lib support for Linux oldld, aout, or coff.
 
17163
linux*oldld* | linux*aout* | linux*coff*)
 
17164
  dynamic_linker=no
 
17165
  ;;
 
17166
 
 
17167
# This must be Linux ELF.
 
17168
linux*)
 
17169
  version_type=linux
 
17170
  need_lib_prefix=no
 
17171
  need_version=no
 
17172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17173
  soname_spec='${libname}${release}${shared_ext}$major'
 
17174
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17175
  shlibpath_var=LD_LIBRARY_PATH
 
17176
  shlibpath_overrides_runpath=no
 
17177
  # This implies no fast_install, which is unacceptable.
 
17178
  # Some rework will be needed to allow for fast_install
 
17179
  # before this can be enabled.
 
17180
  hardcode_into_libs=yes
 
17181
 
 
17182
  # Append ld.so.conf contents to the search path
 
17183
  if test -f /etc/ld.so.conf; then
 
17184
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17185
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17186
  fi
 
17187
 
 
17188
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17189
  # powerpc, because MkLinux only supported shared libraries with the
 
17190
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17191
  # most powerpc-linux boxes support dynamic linking these days and
 
17192
  # people can always --disable-shared, the test was removed, and we
 
17193
  # assume the GNU/Linux dynamic linker is in use.
 
17194
  dynamic_linker='GNU/Linux ld.so'
 
17195
  ;;
 
17196
 
 
17197
knetbsd*-gnu)
 
17198
  version_type=linux
 
17199
  need_lib_prefix=no
 
17200
  need_version=no
 
17201
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17202
  soname_spec='${libname}${release}${shared_ext}$major'
 
17203
  shlibpath_var=LD_LIBRARY_PATH
 
17204
  shlibpath_overrides_runpath=no
 
17205
  hardcode_into_libs=yes
 
17206
  dynamic_linker='GNU ld.so'
 
17207
  ;;
 
17208
 
 
17209
netbsd*)
 
17210
  version_type=sunos
 
17211
  need_lib_prefix=no
 
17212
  need_version=no
 
17213
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17214
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17215
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17216
    dynamic_linker='NetBSD (a.out) ld.so'
 
17217
  else
 
17218
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17219
    soname_spec='${libname}${release}${shared_ext}$major'
 
17220
    dynamic_linker='NetBSD ld.elf_so'
 
17221
  fi
 
17222
  shlibpath_var=LD_LIBRARY_PATH
 
17223
  shlibpath_overrides_runpath=yes
 
17224
  hardcode_into_libs=yes
 
17225
  ;;
 
17226
 
 
17227
newsos6)
 
17228
  version_type=linux
 
17229
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17230
  shlibpath_var=LD_LIBRARY_PATH
 
17231
  shlibpath_overrides_runpath=yes
 
17232
  ;;
 
17233
 
 
17234
nto-qnx*)
 
17235
  version_type=linux
 
17236
  need_lib_prefix=no
 
17237
  need_version=no
 
17238
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17239
  soname_spec='${libname}${release}${shared_ext}$major'
 
17240
  shlibpath_var=LD_LIBRARY_PATH
 
17241
  shlibpath_overrides_runpath=yes
 
17242
  ;;
 
17243
 
 
17244
openbsd*)
 
17245
  version_type=sunos
 
17246
  need_lib_prefix=no
 
17247
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17248
  case $host_os in
 
17249
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17250
    *)                         need_version=no  ;;
 
17251
  esac
 
17252
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17253
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17254
  shlibpath_var=LD_LIBRARY_PATH
 
17255
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17256
    case $host_os in
 
17257
      openbsd2.[89] | openbsd2.[89].*)
 
17258
        shlibpath_overrides_runpath=no
 
17259
        ;;
 
17260
      *)
 
17261
        shlibpath_overrides_runpath=yes
 
17262
        ;;
 
17263
      esac
 
17264
  else
 
17265
    shlibpath_overrides_runpath=yes
 
17266
  fi
 
17267
  ;;
 
17268
 
 
17269
os2*)
 
17270
  libname_spec='$name'
 
17271
  shrext_cmds=".dll"
 
17272
  need_lib_prefix=no
 
17273
  library_names_spec='$libname${shared_ext} $libname.a'
 
17274
  dynamic_linker='OS/2 ld.exe'
 
17275
  shlibpath_var=LIBPATH
 
17276
  ;;
 
17277
 
 
17278
osf3* | osf4* | osf5*)
 
17279
  version_type=osf
 
17280
  need_lib_prefix=no
 
17281
  need_version=no
 
17282
  soname_spec='${libname}${release}${shared_ext}$major'
 
17283
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17284
  shlibpath_var=LD_LIBRARY_PATH
 
17285
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17286
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17287
  ;;
 
17288
 
 
17289
sco3.2v5*)
 
17290
  version_type=osf
 
17291
  soname_spec='${libname}${release}${shared_ext}$major'
 
17292
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17293
  shlibpath_var=LD_LIBRARY_PATH
 
17294
  ;;
 
17295
 
 
17296
solaris*)
 
17297
  version_type=linux
 
17298
  need_lib_prefix=no
 
17299
  need_version=no
 
17300
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17301
  soname_spec='${libname}${release}${shared_ext}$major'
 
17302
  shlibpath_var=LD_LIBRARY_PATH
 
17303
  shlibpath_overrides_runpath=yes
 
17304
  hardcode_into_libs=yes
 
17305
  # ldd complains unless libraries are executable
 
17306
  postinstall_cmds='chmod +x $lib'
 
17307
  ;;
 
17308
 
 
17309
sunos4*)
 
17310
  version_type=sunos
 
17311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17312
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17313
  shlibpath_var=LD_LIBRARY_PATH
 
17314
  shlibpath_overrides_runpath=yes
 
17315
  if test "$with_gnu_ld" = yes; then
 
17316
    need_lib_prefix=no
 
17317
  fi
 
17318
  need_version=yes
 
17319
  ;;
 
17320
 
 
17321
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17322
  version_type=linux
 
17323
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17324
  soname_spec='${libname}${release}${shared_ext}$major'
 
17325
  shlibpath_var=LD_LIBRARY_PATH
 
17326
  case $host_vendor in
 
17327
    sni)
 
17328
      shlibpath_overrides_runpath=no
 
17329
      need_lib_prefix=no
 
17330
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17331
      runpath_var=LD_RUN_PATH
 
17332
      ;;
 
17333
    siemens)
 
17334
      need_lib_prefix=no
 
17335
      ;;
 
17336
    motorola)
 
17337
      need_lib_prefix=no
 
17338
      need_version=no
 
17339
      shlibpath_overrides_runpath=no
 
17340
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17341
      ;;
 
17342
  esac
 
17343
  ;;
 
17344
 
 
17345
sysv4*MP*)
 
17346
  if test -d /usr/nec ;then
 
17347
    version_type=linux
 
17348
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17349
    soname_spec='$libname${shared_ext}.$major'
 
17350
    shlibpath_var=LD_LIBRARY_PATH
 
17351
  fi
 
17352
  ;;
 
17353
 
 
17354
uts4*)
 
17355
  version_type=linux
 
17356
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17357
  soname_spec='${libname}${release}${shared_ext}$major'
 
17358
  shlibpath_var=LD_LIBRARY_PATH
 
17359
  ;;
 
17360
 
 
17361
*)
 
17362
  dynamic_linker=no
 
17363
  ;;
 
17364
esac
 
17365
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17366
echo "${ECHO_T}$dynamic_linker" >&6
 
17367
test "$dynamic_linker" = no && can_build_shared=no
 
17368
 
 
17369
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17370
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17371
hardcode_action_GCJ=
 
17372
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17373
   test -n "$runpath_var_GCJ" || \
 
17374
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17375
 
 
17376
  # We can hardcode non-existant directories.
 
17377
  if test "$hardcode_direct_GCJ" != no &&
 
17378
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17379
     # have to relink, otherwise we might link with an installed library
 
17380
     # when we should be linking with a yet-to-be-installed one
 
17381
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17382
     test "$hardcode_minus_L_GCJ" != no; then
 
17383
    # Linking always hardcodes the temporary library directory.
 
17384
    hardcode_action_GCJ=relink
 
17385
  else
 
17386
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17387
    hardcode_action_GCJ=immediate
 
17388
  fi
 
17389
else
 
17390
  # We cannot hardcode anything, or else we can only hardcode existing
 
17391
  # directories.
 
17392
  hardcode_action_GCJ=unsupported
 
17393
fi
 
17394
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17395
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17396
 
 
17397
if test "$hardcode_action_GCJ" = relink; then
 
17398
  # Fast installation is not supported
 
17399
  enable_fast_install=no
 
17400
elif test "$shlibpath_overrides_runpath" = yes ||
 
17401
     test "$enable_shared" = no; then
 
17402
  # Fast installation is not necessary
 
17403
  enable_fast_install=needless
 
17404
fi
 
17405
 
 
17406
striplib=
 
17407
old_striplib=
 
17408
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17409
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17410
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17411
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17412
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17413
  echo "$as_me:$LINENO: result: yes" >&5
 
17414
echo "${ECHO_T}yes" >&6
 
17415
else
 
17416
# FIXME - insert some real tests, host_os isn't really good enough
 
17417
  case $host_os in
 
17418
   darwin*)
 
17419
       if test -n "$STRIP" ; then
 
17420
         striplib="$STRIP -x"
 
17421
         echo "$as_me:$LINENO: result: yes" >&5
 
17422
echo "${ECHO_T}yes" >&6
 
17423
       else
 
17424
  echo "$as_me:$LINENO: result: no" >&5
 
17425
echo "${ECHO_T}no" >&6
 
17426
fi
 
17427
       ;;
 
17428
   *)
 
17429
  echo "$as_me:$LINENO: result: no" >&5
 
17430
echo "${ECHO_T}no" >&6
 
17431
    ;;
 
17432
  esac
 
17433
fi
 
17434
 
 
17435
if test "x$enable_dlopen" != xyes; then
 
17436
  enable_dlopen=unknown
 
17437
  enable_dlopen_self=unknown
 
17438
  enable_dlopen_self_static=unknown
 
17439
else
 
17440
  lt_cv_dlopen=no
 
17441
  lt_cv_dlopen_libs=
 
17442
 
 
17443
  case $host_os in
 
17444
  beos*)
 
17445
    lt_cv_dlopen="load_add_on"
 
17446
    lt_cv_dlopen_libs=
 
17447
    lt_cv_dlopen_self=yes
 
17448
    ;;
 
17449
 
 
17450
  mingw* | pw32*)
 
17451
    lt_cv_dlopen="LoadLibrary"
 
17452
    lt_cv_dlopen_libs=
 
17453
   ;;
 
17454
 
 
17455
  cygwin*)
 
17456
    lt_cv_dlopen="dlopen"
 
17457
    lt_cv_dlopen_libs=
 
17458
   ;;
 
17459
 
 
17460
  darwin*)
 
17461
  # if libdl is installed we need to link against it
 
17462
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17463
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17464
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17466
else
 
17467
  ac_check_lib_save_LIBS=$LIBS
 
17468
LIBS="-ldl  $LIBS"
 
17469
cat >conftest.$ac_ext <<_ACEOF
 
17470
/* confdefs.h.  */
 
17471
_ACEOF
 
17472
cat confdefs.h >>conftest.$ac_ext
 
17473
cat >>conftest.$ac_ext <<_ACEOF
 
17474
/* end confdefs.h.  */
 
17475
 
 
17476
/* Override any gcc2 internal prototype to avoid an error.  */
 
17477
#ifdef __cplusplus
 
17478
extern "C"
 
17479
#endif
 
17480
/* We use char because int might match the return type of a gcc2
 
17481
   builtin and then its argument prototype would still apply.  */
 
17482
char dlopen ();
 
17483
int
 
17484
main ()
 
17485
{
 
17486
dlopen ();
 
17487
  ;
 
17488
  return 0;
 
17489
}
 
17490
_ACEOF
 
17491
rm -f conftest.$ac_objext conftest$ac_exeext
 
17492
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17493
  (eval $ac_link) 2>conftest.er1
 
17494
  ac_status=$?
 
17495
  grep -v '^ *+' conftest.er1 >conftest.err
 
17496
  rm -f conftest.er1
 
17497
  cat conftest.err >&5
 
17498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17499
  (exit $ac_status); } &&
 
17500
         { ac_try='test -z "$ac_c_werror_flag"
 
17501
                         || test ! -s conftest.err'
 
17502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17503
  (eval $ac_try) 2>&5
 
17504
  ac_status=$?
 
17505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17506
  (exit $ac_status); }; } &&
 
17507
         { ac_try='test -s conftest$ac_exeext'
 
17508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17509
  (eval $ac_try) 2>&5
 
17510
  ac_status=$?
 
17511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17512
  (exit $ac_status); }; }; then
 
17513
  ac_cv_lib_dl_dlopen=yes
 
17514
else
 
17515
  echo "$as_me: failed program was:" >&5
 
17516
sed 's/^/| /' conftest.$ac_ext >&5
 
17517
 
 
17518
ac_cv_lib_dl_dlopen=no
 
17519
fi
 
17520
rm -f conftest.err conftest.$ac_objext \
 
17521
      conftest$ac_exeext conftest.$ac_ext
 
17522
LIBS=$ac_check_lib_save_LIBS
 
17523
fi
 
17524
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17525
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17526
if test $ac_cv_lib_dl_dlopen = yes; then
 
17527
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17528
else
 
17529
 
 
17530
    lt_cv_dlopen="dyld"
 
17531
    lt_cv_dlopen_libs=
 
17532
    lt_cv_dlopen_self=yes
 
17533
 
 
17534
fi
 
17535
 
 
17536
   ;;
 
17537
 
 
17538
  *)
 
17539
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17540
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17541
if test "${ac_cv_func_shl_load+set}" = set; then
 
17542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17543
else
 
17544
  cat >conftest.$ac_ext <<_ACEOF
 
17545
/* confdefs.h.  */
 
17546
_ACEOF
 
17547
cat confdefs.h >>conftest.$ac_ext
 
17548
cat >>conftest.$ac_ext <<_ACEOF
 
17549
/* end confdefs.h.  */
 
17550
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17551
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17552
#define shl_load innocuous_shl_load
 
17553
 
 
17554
/* System header to define __stub macros and hopefully few prototypes,
 
17555
    which can conflict with char shl_load (); below.
 
17556
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17557
    <limits.h> exists even on freestanding compilers.  */
 
17558
 
 
17559
#ifdef __STDC__
 
17560
# include <limits.h>
 
17561
#else
 
17562
# include <assert.h>
 
17563
#endif
 
17564
 
 
17565
#undef shl_load
 
17566
 
 
17567
/* Override any gcc2 internal prototype to avoid an error.  */
 
17568
#ifdef __cplusplus
 
17569
extern "C"
 
17570
{
 
17571
#endif
 
17572
/* We use char because int might match the return type of a gcc2
 
17573
   builtin and then its argument prototype would still apply.  */
 
17574
char shl_load ();
 
17575
/* The GNU C library defines this for functions which it implements
 
17576
    to always fail with ENOSYS.  Some functions are actually named
 
17577
    something starting with __ and the normal name is an alias.  */
 
17578
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17579
choke me
 
17580
#else
 
17581
char (*f) () = shl_load;
 
17582
#endif
 
17583
#ifdef __cplusplus
 
17584
}
 
17585
#endif
 
17586
 
 
17587
int
 
17588
main ()
 
17589
{
 
17590
return f != shl_load;
 
17591
  ;
 
17592
  return 0;
 
17593
}
 
17594
_ACEOF
 
17595
rm -f conftest.$ac_objext conftest$ac_exeext
 
17596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17597
  (eval $ac_link) 2>conftest.er1
 
17598
  ac_status=$?
 
17599
  grep -v '^ *+' conftest.er1 >conftest.err
 
17600
  rm -f conftest.er1
 
17601
  cat conftest.err >&5
 
17602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17603
  (exit $ac_status); } &&
 
17604
         { ac_try='test -z "$ac_c_werror_flag"
 
17605
                         || test ! -s conftest.err'
 
17606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17607
  (eval $ac_try) 2>&5
 
17608
  ac_status=$?
 
17609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17610
  (exit $ac_status); }; } &&
 
17611
         { ac_try='test -s conftest$ac_exeext'
 
17612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17613
  (eval $ac_try) 2>&5
 
17614
  ac_status=$?
 
17615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17616
  (exit $ac_status); }; }; then
 
17617
  ac_cv_func_shl_load=yes
 
17618
else
 
17619
  echo "$as_me: failed program was:" >&5
 
17620
sed 's/^/| /' conftest.$ac_ext >&5
 
17621
 
 
17622
ac_cv_func_shl_load=no
 
17623
fi
 
17624
rm -f conftest.err conftest.$ac_objext \
 
17625
      conftest$ac_exeext conftest.$ac_ext
 
17626
fi
 
17627
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17628
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17629
if test $ac_cv_func_shl_load = yes; then
 
17630
  lt_cv_dlopen="shl_load"
 
17631
else
 
17632
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17633
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17634
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17636
else
 
17637
  ac_check_lib_save_LIBS=$LIBS
 
17638
LIBS="-ldld  $LIBS"
 
17639
cat >conftest.$ac_ext <<_ACEOF
 
17640
/* confdefs.h.  */
 
17641
_ACEOF
 
17642
cat confdefs.h >>conftest.$ac_ext
 
17643
cat >>conftest.$ac_ext <<_ACEOF
 
17644
/* end confdefs.h.  */
 
17645
 
 
17646
/* Override any gcc2 internal prototype to avoid an error.  */
 
17647
#ifdef __cplusplus
 
17648
extern "C"
 
17649
#endif
 
17650
/* We use char because int might match the return type of a gcc2
 
17651
   builtin and then its argument prototype would still apply.  */
 
17652
char shl_load ();
 
17653
int
 
17654
main ()
 
17655
{
 
17656
shl_load ();
 
17657
  ;
 
17658
  return 0;
 
17659
}
 
17660
_ACEOF
 
17661
rm -f conftest.$ac_objext conftest$ac_exeext
 
17662
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17663
  (eval $ac_link) 2>conftest.er1
 
17664
  ac_status=$?
 
17665
  grep -v '^ *+' conftest.er1 >conftest.err
 
17666
  rm -f conftest.er1
 
17667
  cat conftest.err >&5
 
17668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17669
  (exit $ac_status); } &&
 
17670
         { ac_try='test -z "$ac_c_werror_flag"
 
17671
                         || test ! -s conftest.err'
 
17672
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17673
  (eval $ac_try) 2>&5
 
17674
  ac_status=$?
 
17675
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17676
  (exit $ac_status); }; } &&
 
17677
         { ac_try='test -s conftest$ac_exeext'
 
17678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17679
  (eval $ac_try) 2>&5
 
17680
  ac_status=$?
 
17681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17682
  (exit $ac_status); }; }; then
 
17683
  ac_cv_lib_dld_shl_load=yes
 
17684
else
 
17685
  echo "$as_me: failed program was:" >&5
 
17686
sed 's/^/| /' conftest.$ac_ext >&5
 
17687
 
 
17688
ac_cv_lib_dld_shl_load=no
 
17689
fi
 
17690
rm -f conftest.err conftest.$ac_objext \
 
17691
      conftest$ac_exeext conftest.$ac_ext
 
17692
LIBS=$ac_check_lib_save_LIBS
 
17693
fi
 
17694
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
17695
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
17696
if test $ac_cv_lib_dld_shl_load = yes; then
 
17697
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
17698
else
 
17699
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
17700
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
17701
if test "${ac_cv_func_dlopen+set}" = set; then
 
17702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17703
else
 
17704
  cat >conftest.$ac_ext <<_ACEOF
 
17705
/* confdefs.h.  */
 
17706
_ACEOF
 
17707
cat confdefs.h >>conftest.$ac_ext
 
17708
cat >>conftest.$ac_ext <<_ACEOF
 
17709
/* end confdefs.h.  */
 
17710
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
17711
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17712
#define dlopen innocuous_dlopen
 
17713
 
 
17714
/* System header to define __stub macros and hopefully few prototypes,
 
17715
    which can conflict with char dlopen (); below.
 
17716
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17717
    <limits.h> exists even on freestanding compilers.  */
 
17718
 
 
17719
#ifdef __STDC__
 
17720
# include <limits.h>
 
17721
#else
 
17722
# include <assert.h>
 
17723
#endif
 
17724
 
 
17725
#undef dlopen
 
17726
 
 
17727
/* Override any gcc2 internal prototype to avoid an error.  */
 
17728
#ifdef __cplusplus
 
17729
extern "C"
 
17730
{
 
17731
#endif
 
17732
/* We use char because int might match the return type of a gcc2
 
17733
   builtin and then its argument prototype would still apply.  */
 
17734
char dlopen ();
 
17735
/* The GNU C library defines this for functions which it implements
 
17736
    to always fail with ENOSYS.  Some functions are actually named
 
17737
    something starting with __ and the normal name is an alias.  */
 
17738
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
17739
choke me
 
17740
#else
 
17741
char (*f) () = dlopen;
 
17742
#endif
 
17743
#ifdef __cplusplus
 
17744
}
 
17745
#endif
 
17746
 
 
17747
int
 
17748
main ()
 
17749
{
 
17750
return f != dlopen;
 
17751
  ;
 
17752
  return 0;
 
17753
}
 
17754
_ACEOF
 
17755
rm -f conftest.$ac_objext conftest$ac_exeext
 
17756
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17757
  (eval $ac_link) 2>conftest.er1
 
17758
  ac_status=$?
 
17759
  grep -v '^ *+' conftest.er1 >conftest.err
 
17760
  rm -f conftest.er1
 
17761
  cat conftest.err >&5
 
17762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17763
  (exit $ac_status); } &&
 
17764
         { ac_try='test -z "$ac_c_werror_flag"
 
17765
                         || test ! -s conftest.err'
 
17766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17767
  (eval $ac_try) 2>&5
 
17768
  ac_status=$?
 
17769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17770
  (exit $ac_status); }; } &&
 
17771
         { ac_try='test -s conftest$ac_exeext'
 
17772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17773
  (eval $ac_try) 2>&5
 
17774
  ac_status=$?
 
17775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17776
  (exit $ac_status); }; }; then
 
17777
  ac_cv_func_dlopen=yes
 
17778
else
 
17779
  echo "$as_me: failed program was:" >&5
 
17780
sed 's/^/| /' conftest.$ac_ext >&5
 
17781
 
 
17782
ac_cv_func_dlopen=no
 
17783
fi
 
17784
rm -f conftest.err conftest.$ac_objext \
 
17785
      conftest$ac_exeext conftest.$ac_ext
 
17786
fi
 
17787
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
17788
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
17789
if test $ac_cv_func_dlopen = yes; then
 
17790
  lt_cv_dlopen="dlopen"
 
17791
else
 
17792
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17793
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17794
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17796
else
 
17797
  ac_check_lib_save_LIBS=$LIBS
 
17798
LIBS="-ldl  $LIBS"
 
17799
cat >conftest.$ac_ext <<_ACEOF
 
17800
/* confdefs.h.  */
 
17801
_ACEOF
 
17802
cat confdefs.h >>conftest.$ac_ext
 
17803
cat >>conftest.$ac_ext <<_ACEOF
 
17804
/* end confdefs.h.  */
 
17805
 
 
17806
/* Override any gcc2 internal prototype to avoid an error.  */
 
17807
#ifdef __cplusplus
 
17808
extern "C"
 
17809
#endif
 
17810
/* We use char because int might match the return type of a gcc2
 
17811
   builtin and then its argument prototype would still apply.  */
 
17812
char dlopen ();
 
17813
int
 
17814
main ()
 
17815
{
 
17816
dlopen ();
 
17817
  ;
 
17818
  return 0;
 
17819
}
 
17820
_ACEOF
 
17821
rm -f conftest.$ac_objext conftest$ac_exeext
 
17822
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17823
  (eval $ac_link) 2>conftest.er1
 
17824
  ac_status=$?
 
17825
  grep -v '^ *+' conftest.er1 >conftest.err
 
17826
  rm -f conftest.er1
 
17827
  cat conftest.err >&5
 
17828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17829
  (exit $ac_status); } &&
 
17830
         { ac_try='test -z "$ac_c_werror_flag"
 
17831
                         || test ! -s conftest.err'
 
17832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17833
  (eval $ac_try) 2>&5
 
17834
  ac_status=$?
 
17835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17836
  (exit $ac_status); }; } &&
 
17837
         { ac_try='test -s conftest$ac_exeext'
 
17838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17839
  (eval $ac_try) 2>&5
 
17840
  ac_status=$?
 
17841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17842
  (exit $ac_status); }; }; then
 
17843
  ac_cv_lib_dl_dlopen=yes
 
17844
else
 
17845
  echo "$as_me: failed program was:" >&5
 
17846
sed 's/^/| /' conftest.$ac_ext >&5
 
17847
 
 
17848
ac_cv_lib_dl_dlopen=no
 
17849
fi
 
17850
rm -f conftest.err conftest.$ac_objext \
 
17851
      conftest$ac_exeext conftest.$ac_ext
 
17852
LIBS=$ac_check_lib_save_LIBS
 
17853
fi
 
17854
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17855
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17856
if test $ac_cv_lib_dl_dlopen = yes; then
 
17857
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17858
else
 
17859
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
17860
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
17861
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
17862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17863
else
 
17864
  ac_check_lib_save_LIBS=$LIBS
 
17865
LIBS="-lsvld  $LIBS"
 
17866
cat >conftest.$ac_ext <<_ACEOF
 
17867
/* confdefs.h.  */
 
17868
_ACEOF
 
17869
cat confdefs.h >>conftest.$ac_ext
 
17870
cat >>conftest.$ac_ext <<_ACEOF
 
17871
/* end confdefs.h.  */
 
17872
 
 
17873
/* Override any gcc2 internal prototype to avoid an error.  */
 
17874
#ifdef __cplusplus
 
17875
extern "C"
 
17876
#endif
 
17877
/* We use char because int might match the return type of a gcc2
 
17878
   builtin and then its argument prototype would still apply.  */
 
17879
char dlopen ();
 
17880
int
 
17881
main ()
 
17882
{
 
17883
dlopen ();
 
17884
  ;
 
17885
  return 0;
 
17886
}
 
17887
_ACEOF
 
17888
rm -f conftest.$ac_objext conftest$ac_exeext
 
17889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17890
  (eval $ac_link) 2>conftest.er1
 
17891
  ac_status=$?
 
17892
  grep -v '^ *+' conftest.er1 >conftest.err
 
17893
  rm -f conftest.er1
 
17894
  cat conftest.err >&5
 
17895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17896
  (exit $ac_status); } &&
 
17897
         { ac_try='test -z "$ac_c_werror_flag"
 
17898
                         || test ! -s conftest.err'
 
17899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17900
  (eval $ac_try) 2>&5
 
17901
  ac_status=$?
 
17902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17903
  (exit $ac_status); }; } &&
 
17904
         { ac_try='test -s conftest$ac_exeext'
 
17905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17906
  (eval $ac_try) 2>&5
 
17907
  ac_status=$?
 
17908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17909
  (exit $ac_status); }; }; then
 
17910
  ac_cv_lib_svld_dlopen=yes
 
17911
else
 
17912
  echo "$as_me: failed program was:" >&5
 
17913
sed 's/^/| /' conftest.$ac_ext >&5
 
17914
 
 
17915
ac_cv_lib_svld_dlopen=no
 
17916
fi
 
17917
rm -f conftest.err conftest.$ac_objext \
 
17918
      conftest$ac_exeext conftest.$ac_ext
 
17919
LIBS=$ac_check_lib_save_LIBS
 
17920
fi
 
17921
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17922
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17923
if test $ac_cv_lib_svld_dlopen = yes; then
 
17924
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17925
else
 
17926
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17927
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17928
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17930
else
 
17931
  ac_check_lib_save_LIBS=$LIBS
 
17932
LIBS="-ldld  $LIBS"
 
17933
cat >conftest.$ac_ext <<_ACEOF
 
17934
/* confdefs.h.  */
 
17935
_ACEOF
 
17936
cat confdefs.h >>conftest.$ac_ext
 
17937
cat >>conftest.$ac_ext <<_ACEOF
 
17938
/* end confdefs.h.  */
 
17939
 
 
17940
/* Override any gcc2 internal prototype to avoid an error.  */
 
17941
#ifdef __cplusplus
 
17942
extern "C"
 
17943
#endif
 
17944
/* We use char because int might match the return type of a gcc2
 
17945
   builtin and then its argument prototype would still apply.  */
 
17946
char dld_link ();
 
17947
int
 
17948
main ()
 
17949
{
 
17950
dld_link ();
 
17951
  ;
 
17952
  return 0;
 
17953
}
 
17954
_ACEOF
 
17955
rm -f conftest.$ac_objext conftest$ac_exeext
 
17956
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17957
  (eval $ac_link) 2>conftest.er1
 
17958
  ac_status=$?
 
17959
  grep -v '^ *+' conftest.er1 >conftest.err
 
17960
  rm -f conftest.er1
 
17961
  cat conftest.err >&5
 
17962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17963
  (exit $ac_status); } &&
 
17964
         { ac_try='test -z "$ac_c_werror_flag"
 
17965
                         || test ! -s conftest.err'
 
17966
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17967
  (eval $ac_try) 2>&5
 
17968
  ac_status=$?
 
17969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17970
  (exit $ac_status); }; } &&
 
17971
         { ac_try='test -s conftest$ac_exeext'
 
17972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17973
  (eval $ac_try) 2>&5
 
17974
  ac_status=$?
 
17975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17976
  (exit $ac_status); }; }; then
 
17977
  ac_cv_lib_dld_dld_link=yes
 
17978
else
 
17979
  echo "$as_me: failed program was:" >&5
 
17980
sed 's/^/| /' conftest.$ac_ext >&5
 
17981
 
 
17982
ac_cv_lib_dld_dld_link=no
 
17983
fi
 
17984
rm -f conftest.err conftest.$ac_objext \
 
17985
      conftest$ac_exeext conftest.$ac_ext
 
17986
LIBS=$ac_check_lib_save_LIBS
 
17987
fi
 
17988
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17989
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17990
if test $ac_cv_lib_dld_dld_link = yes; then
 
17991
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17992
fi
 
17993
 
 
17994
 
 
17995
fi
 
17996
 
 
17997
 
 
17998
fi
 
17999
 
 
18000
 
 
18001
fi
 
18002
 
 
18003
 
 
18004
fi
 
18005
 
 
18006
 
 
18007
fi
 
18008
 
 
18009
    ;;
 
18010
  esac
 
18011
 
 
18012
  if test "x$lt_cv_dlopen" != xno; then
 
18013
    enable_dlopen=yes
 
18014
  else
 
18015
    enable_dlopen=no
 
18016
  fi
 
18017
 
 
18018
  case $lt_cv_dlopen in
 
18019
  dlopen)
 
18020
    save_CPPFLAGS="$CPPFLAGS"
 
18021
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18022
 
 
18023
    save_LDFLAGS="$LDFLAGS"
 
18024
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18025
 
 
18026
    save_LIBS="$LIBS"
 
18027
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18028
 
 
18029
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18030
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18031
if test "${lt_cv_dlopen_self+set}" = set; then
 
18032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18033
else
 
18034
          if test "$cross_compiling" = yes; then :
 
18035
  lt_cv_dlopen_self=cross
 
18036
else
 
18037
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18038
  lt_status=$lt_dlunknown
 
18039
  cat > conftest.$ac_ext <<EOF
 
18040
#line 18040 "configure"
 
18041
#include "confdefs.h"
 
18042
 
 
18043
#if HAVE_DLFCN_H
 
18044
#include <dlfcn.h>
 
18045
#endif
 
18046
 
 
18047
#include <stdio.h>
 
18048
 
 
18049
#ifdef RTLD_GLOBAL
 
18050
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18051
#else
 
18052
#  ifdef DL_GLOBAL
 
18053
#    define LT_DLGLOBAL         DL_GLOBAL
 
18054
#  else
 
18055
#    define LT_DLGLOBAL         0
 
18056
#  endif
 
18057
#endif
 
18058
 
 
18059
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18060
   find out it does not work in some platform. */
 
18061
#ifndef LT_DLLAZY_OR_NOW
 
18062
#  ifdef RTLD_LAZY
 
18063
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18064
#  else
 
18065
#    ifdef DL_LAZY
 
18066
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18067
#    else
 
18068
#      ifdef RTLD_NOW
 
18069
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18070
#      else
 
18071
#        ifdef DL_NOW
 
18072
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18073
#        else
 
18074
#          define LT_DLLAZY_OR_NOW      0
 
18075
#        endif
 
18076
#      endif
 
18077
#    endif
 
18078
#  endif
 
18079
#endif
 
18080
 
 
18081
#ifdef __cplusplus
 
18082
extern "C" void exit (int);
 
18083
#endif
 
18084
 
 
18085
void fnord() { int i=42;}
 
18086
int main ()
 
18087
{
 
18088
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18089
  int status = $lt_dlunknown;
 
18090
 
 
18091
  if (self)
 
18092
    {
 
18093
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18094
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18095
      /* dlclose (self); */
 
18096
    }
 
18097
 
 
18098
    exit (status);
 
18099
}
 
18100
EOF
 
18101
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18102
  (eval $ac_link) 2>&5
 
18103
  ac_status=$?
 
18104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18105
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18106
    (./conftest; exit; ) >&5 2>/dev/null
 
18107
    lt_status=$?
 
18108
    case x$lt_status in
 
18109
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18110
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18111
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18112
    esac
 
18113
  else :
 
18114
    # compilation failed
 
18115
    lt_cv_dlopen_self=no
 
18116
  fi
 
18117
fi
 
18118
rm -fr conftest*
 
18119
 
 
18120
 
 
18121
fi
 
18122
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18123
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18124
 
 
18125
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18126
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18127
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18128
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18129
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18130
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18131
else
 
18132
          if test "$cross_compiling" = yes; then :
 
18133
  lt_cv_dlopen_self_static=cross
 
18134
else
 
18135
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18136
  lt_status=$lt_dlunknown
 
18137
  cat > conftest.$ac_ext <<EOF
 
18138
#line 18138 "configure"
 
18139
#include "confdefs.h"
 
18140
 
 
18141
#if HAVE_DLFCN_H
 
18142
#include <dlfcn.h>
 
18143
#endif
 
18144
 
 
18145
#include <stdio.h>
 
18146
 
 
18147
#ifdef RTLD_GLOBAL
 
18148
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18149
#else
 
18150
#  ifdef DL_GLOBAL
 
18151
#    define LT_DLGLOBAL         DL_GLOBAL
 
18152
#  else
 
18153
#    define LT_DLGLOBAL         0
 
18154
#  endif
 
18155
#endif
 
18156
 
 
18157
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18158
   find out it does not work in some platform. */
 
18159
#ifndef LT_DLLAZY_OR_NOW
 
18160
#  ifdef RTLD_LAZY
 
18161
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18162
#  else
 
18163
#    ifdef DL_LAZY
 
18164
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18165
#    else
 
18166
#      ifdef RTLD_NOW
 
18167
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18168
#      else
 
18169
#        ifdef DL_NOW
 
18170
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18171
#        else
 
18172
#          define LT_DLLAZY_OR_NOW      0
 
18173
#        endif
 
18174
#      endif
 
18175
#    endif
 
18176
#  endif
 
18177
#endif
 
18178
 
 
18179
#ifdef __cplusplus
 
18180
extern "C" void exit (int);
 
18181
#endif
 
18182
 
 
18183
void fnord() { int i=42;}
 
18184
int main ()
 
18185
{
 
18186
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18187
  int status = $lt_dlunknown;
 
18188
 
 
18189
  if (self)
 
18190
    {
 
18191
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18192
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18193
      /* dlclose (self); */
 
18194
    }
 
18195
 
 
18196
    exit (status);
 
18197
}
 
18198
EOF
 
18199
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18200
  (eval $ac_link) 2>&5
 
18201
  ac_status=$?
 
18202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18203
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18204
    (./conftest; exit; ) >&5 2>/dev/null
 
18205
    lt_status=$?
 
18206
    case x$lt_status in
 
18207
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18208
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18209
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18210
    esac
 
18211
  else :
 
18212
    # compilation failed
 
18213
    lt_cv_dlopen_self_static=no
 
18214
  fi
 
18215
fi
 
18216
rm -fr conftest*
 
18217
 
 
18218
 
 
18219
fi
 
18220
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18221
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18222
    fi
 
18223
 
 
18224
    CPPFLAGS="$save_CPPFLAGS"
 
18225
    LDFLAGS="$save_LDFLAGS"
 
18226
    LIBS="$save_LIBS"
 
18227
    ;;
 
18228
  esac
 
18229
 
 
18230
  case $lt_cv_dlopen_self in
 
18231
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18232
  *) enable_dlopen_self=unknown ;;
 
18233
  esac
 
18234
 
 
18235
  case $lt_cv_dlopen_self_static in
 
18236
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18237
  *) enable_dlopen_self_static=unknown ;;
 
18238
  esac
 
18239
fi
 
18240
 
 
18241
 
 
18242
# The else clause should only fire when bootstrapping the
 
18243
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18244
# with your package, and you will get complaints that there are
 
18245
# no rules to generate ltmain.sh.
 
18246
if test -f "$ltmain"; then
 
18247
  # See if we are running on zsh, and set the options which allow our commands through
 
18248
  # without removal of \ escapes.
 
18249
  if test -n "${ZSH_VERSION+set}" ; then
 
18250
    setopt NO_GLOB_SUBST
 
18251
  fi
 
18252
  # Now quote all the things that may contain metacharacters while being
 
18253
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18254
  # variables and quote the copies for generation of the libtool script.
 
18255
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18256
    SED SHELL STRIP \
 
18257
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18258
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18259
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18260
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18261
    lt_cv_sys_global_symbol_to_c_name_address \
 
18262
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18263
    old_postinstall_cmds old_postuninstall_cmds \
 
18264
    compiler_GCJ \
 
18265
    CC_GCJ \
 
18266
    LD_GCJ \
 
18267
    lt_prog_compiler_wl_GCJ \
 
18268
    lt_prog_compiler_pic_GCJ \
 
18269
    lt_prog_compiler_static_GCJ \
 
18270
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18271
    export_dynamic_flag_spec_GCJ \
 
18272
    thread_safe_flag_spec_GCJ \
 
18273
    whole_archive_flag_spec_GCJ \
 
18274
    enable_shared_with_static_runtimes_GCJ \
 
18275
    old_archive_cmds_GCJ \
 
18276
    old_archive_from_new_cmds_GCJ \
 
18277
    predep_objects_GCJ \
 
18278
    postdep_objects_GCJ \
 
18279
    predeps_GCJ \
 
18280
    postdeps_GCJ \
 
18281
    compiler_lib_search_path_GCJ \
 
18282
    archive_cmds_GCJ \
 
18283
    archive_expsym_cmds_GCJ \
 
18284
    postinstall_cmds_GCJ \
 
18285
    postuninstall_cmds_GCJ \
 
18286
    old_archive_from_expsyms_cmds_GCJ \
 
18287
    allow_undefined_flag_GCJ \
 
18288
    no_undefined_flag_GCJ \
 
18289
    export_symbols_cmds_GCJ \
 
18290
    hardcode_libdir_flag_spec_GCJ \
 
18291
    hardcode_libdir_flag_spec_ld_GCJ \
 
18292
    hardcode_libdir_separator_GCJ \
 
18293
    hardcode_automatic_GCJ \
 
18294
    module_cmds_GCJ \
 
18295
    module_expsym_cmds_GCJ \
 
18296
    lt_cv_prog_compiler_c_o_GCJ \
 
18297
    exclude_expsyms_GCJ \
 
18298
    include_expsyms_GCJ; do
 
18299
 
 
18300
    case $var in
 
18301
    old_archive_cmds_GCJ | \
 
18302
    old_archive_from_new_cmds_GCJ | \
 
18303
    archive_cmds_GCJ | \
 
18304
    archive_expsym_cmds_GCJ | \
 
18305
    module_cmds_GCJ | \
 
18306
    module_expsym_cmds_GCJ | \
 
18307
    old_archive_from_expsyms_cmds_GCJ | \
 
18308
    export_symbols_cmds_GCJ | \
 
18309
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18310
    postinstall_cmds | postuninstall_cmds | \
 
18311
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18312
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18313
      # Double-quote double-evaled strings.
 
18314
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18315
      ;;
 
18316
    *)
 
18317
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18318
      ;;
 
18319
    esac
 
18320
  done
 
18321
 
 
18322
  case $lt_echo in
 
18323
  *'\$0 --fallback-echo"')
 
18324
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18325
    ;;
 
18326
  esac
 
18327
 
 
18328
cfgfile="$ofile"
 
18329
 
 
18330
  cat <<__EOF__ >> "$cfgfile"
 
18331
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18332
 
 
18333
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18334
 
 
18335
# Shell to use when invoking shell scripts.
 
18336
SHELL=$lt_SHELL
 
18337
 
 
18338
# Whether or not to build shared libraries.
 
18339
build_libtool_libs=$enable_shared
 
18340
 
 
18341
# Whether or not to build static libraries.
 
18342
build_old_libs=$enable_static
 
18343
 
 
18344
# Whether or not to add -lc for building shared libraries.
 
18345
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18346
 
 
18347
# Whether or not to disallow shared libs when runtime libs are static
 
18348
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18349
 
 
18350
# Whether or not to optimize for fast installation.
 
18351
fast_install=$enable_fast_install
 
18352
 
 
18353
# The host system.
 
18354
host_alias=$host_alias
 
18355
host=$host
 
18356
host_os=$host_os
 
18357
 
 
18358
# The build system.
 
18359
build_alias=$build_alias
 
18360
build=$build
 
18361
build_os=$build_os
 
18362
 
 
18363
# An echo program that does not interpret backslashes.
 
18364
echo=$lt_echo
 
18365
 
 
18366
# The archiver.
 
18367
AR=$lt_AR
 
18368
AR_FLAGS=$lt_AR_FLAGS
 
18369
 
 
18370
# A C compiler.
 
18371
LTCC=$lt_LTCC
 
18372
 
 
18373
# A language-specific compiler.
 
18374
CC=$lt_compiler_GCJ
 
18375
 
 
18376
# Is the compiler the GNU C compiler?
 
18377
with_gcc=$GCC_GCJ
 
18378
 
 
18379
# An ERE matcher.
 
18380
EGREP=$lt_EGREP
 
18381
 
 
18382
# The linker used to build libraries.
 
18383
LD=$lt_LD_GCJ
 
18384
 
 
18385
# Whether we need hard or soft links.
 
18386
LN_S=$lt_LN_S
 
18387
 
 
18388
# A BSD-compatible nm program.
 
18389
NM=$lt_NM
 
18390
 
 
18391
# A symbol stripping program
 
18392
STRIP=$lt_STRIP
 
18393
 
 
18394
# Used to examine libraries when file_magic_cmd begins "file"
 
18395
MAGIC_CMD=$MAGIC_CMD
 
18396
 
 
18397
# Used on cygwin: DLL creation program.
 
18398
DLLTOOL="$DLLTOOL"
 
18399
 
 
18400
# Used on cygwin: object dumper.
 
18401
OBJDUMP="$OBJDUMP"
 
18402
 
 
18403
# Used on cygwin: assembler.
 
18404
AS="$AS"
 
18405
 
 
18406
# The name of the directory that contains temporary libtool files.
 
18407
objdir=$objdir
 
18408
 
 
18409
# How to create reloadable object files.
 
18410
reload_flag=$lt_reload_flag
 
18411
reload_cmds=$lt_reload_cmds
 
18412
 
 
18413
# How to pass a linker flag through the compiler.
 
18414
wl=$lt_lt_prog_compiler_wl_GCJ
 
18415
 
 
18416
# Object file suffix (normally "o").
 
18417
objext="$ac_objext"
 
18418
 
 
18419
# Old archive suffix (normally "a").
 
18420
libext="$libext"
 
18421
 
 
18422
# Shared library suffix (normally ".so").
 
18423
shrext_cmds='$shrext_cmds'
 
18424
 
 
18425
# Executable file suffix (normally "").
 
18426
exeext="$exeext"
 
18427
 
 
18428
# Additional compiler flags for building library objects.
 
18429
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18430
pic_mode=$pic_mode
 
18431
 
 
18432
# What is the maximum length of a command?
 
18433
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18434
 
 
18435
# Does compiler simultaneously support -c and -o options?
 
18436
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18437
 
 
18438
# Must we lock files when doing compilation?
 
18439
need_locks=$lt_need_locks
 
18440
 
 
18441
# Do we need the lib prefix for modules?
 
18442
need_lib_prefix=$need_lib_prefix
 
18443
 
 
18444
# Do we need a version for libraries?
 
18445
need_version=$need_version
 
18446
 
 
18447
# Whether dlopen is supported.
 
18448
dlopen_support=$enable_dlopen
 
18449
 
 
18450
# Whether dlopen of programs is supported.
 
18451
dlopen_self=$enable_dlopen_self
 
18452
 
 
18453
# Whether dlopen of statically linked programs is supported.
 
18454
dlopen_self_static=$enable_dlopen_self_static
 
18455
 
 
18456
# Compiler flag to prevent dynamic linking.
 
18457
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18458
 
 
18459
# Compiler flag to turn off builtin functions.
 
18460
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18461
 
 
18462
# Compiler flag to allow reflexive dlopens.
 
18463
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18464
 
 
18465
# Compiler flag to generate shared objects directly from archives.
 
18466
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18467
 
 
18468
# Compiler flag to generate thread-safe objects.
 
18469
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18470
 
 
18471
# Library versioning type.
 
18472
version_type=$version_type
 
18473
 
 
18474
# Format of library name prefix.
 
18475
libname_spec=$lt_libname_spec
 
18476
 
 
18477
# List of archive names.  First name is the real one, the rest are links.
 
18478
# The last name is the one that the linker finds with -lNAME.
 
18479
library_names_spec=$lt_library_names_spec
 
18480
 
 
18481
# The coded name of the library, if different from the real name.
 
18482
soname_spec=$lt_soname_spec
 
18483
 
 
18484
# Commands used to build and install an old-style archive.
 
18485
RANLIB=$lt_RANLIB
 
18486
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18487
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18488
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18489
 
 
18490
# Create an old-style archive from a shared archive.
 
18491
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18492
 
 
18493
# Create a temporary old-style archive to link instead of a shared archive.
 
18494
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18495
 
 
18496
# Commands used to build and install a shared archive.
 
18497
archive_cmds=$lt_archive_cmds_GCJ
 
18498
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18499
postinstall_cmds=$lt_postinstall_cmds
 
18500
postuninstall_cmds=$lt_postuninstall_cmds
 
18501
 
 
18502
# Commands used to build a loadable module (assumed same as above if empty)
 
18503
module_cmds=$lt_module_cmds_GCJ
 
18504
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18505
 
 
18506
# Commands to strip libraries.
 
18507
old_striplib=$lt_old_striplib
 
18508
striplib=$lt_striplib
 
18509
 
 
18510
# Dependencies to place before the objects being linked to create a
 
18511
# shared library.
 
18512
predep_objects=$lt_predep_objects_GCJ
 
18513
 
 
18514
# Dependencies to place after the objects being linked to create a
 
18515
# shared library.
 
18516
postdep_objects=$lt_postdep_objects_GCJ
 
18517
 
 
18518
# Dependencies to place before the objects being linked to create a
 
18519
# shared library.
 
18520
predeps=$lt_predeps_GCJ
 
18521
 
 
18522
# Dependencies to place after the objects being linked to create a
 
18523
# shared library.
 
18524
postdeps=$lt_postdeps_GCJ
 
18525
 
 
18526
# The library search path used internally by the compiler when linking
 
18527
# a shared library.
 
18528
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18529
 
 
18530
# Method to check whether dependent libraries are shared objects.
 
18531
deplibs_check_method=$lt_deplibs_check_method
 
18532
 
 
18533
# Command to use when deplibs_check_method == file_magic.
 
18534
file_magic_cmd=$lt_file_magic_cmd
 
18535
 
 
18536
# Flag that allows shared libraries with undefined symbols to be built.
 
18537
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18538
 
 
18539
# Flag that forces no undefined symbols.
 
18540
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18541
 
 
18542
# Commands used to finish a libtool library installation in a directory.
 
18543
finish_cmds=$lt_finish_cmds
 
18544
 
 
18545
# Same as above, but a single script fragment to be evaled but not shown.
 
18546
finish_eval=$lt_finish_eval
 
18547
 
 
18548
# Take the output of nm and produce a listing of raw symbols and C names.
 
18549
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18550
 
 
18551
# Transform the output of nm in a proper C declaration
 
18552
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18553
 
 
18554
# Transform the output of nm in a C name address pair
 
18555
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18556
 
 
18557
# This is the shared library runtime path variable.
 
18558
runpath_var=$runpath_var
 
18559
 
 
18560
# This is the shared library path variable.
 
18561
shlibpath_var=$shlibpath_var
 
18562
 
 
18563
# Is shlibpath searched before the hard-coded library search path?
 
18564
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18565
 
 
18566
# How to hardcode a shared library path into an executable.
 
18567
hardcode_action=$hardcode_action_GCJ
 
18568
 
 
18569
# Whether we should hardcode library paths into libraries.
 
18570
hardcode_into_libs=$hardcode_into_libs
 
18571
 
 
18572
# Flag to hardcode \$libdir into a binary during linking.
 
18573
# This must work even if \$libdir does not exist.
 
18574
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18575
 
 
18576
# If ld is used when linking, flag to hardcode \$libdir into
 
18577
# a binary during linking. This must work even if \$libdir does
 
18578
# not exist.
 
18579
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18580
 
 
18581
# Whether we need a single -rpath flag with a separated argument.
 
18582
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18583
 
 
18584
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18585
# resulting binary.
 
18586
hardcode_direct=$hardcode_direct_GCJ
 
18587
 
 
18588
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18589
# resulting binary.
 
18590
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18591
 
 
18592
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18593
# the resulting binary.
 
18594
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18595
 
 
18596
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18597
# and all subsequent libraries and executables linked against it.
 
18598
hardcode_automatic=$hardcode_automatic_GCJ
 
18599
 
 
18600
# Variables whose values should be saved in libtool wrapper scripts and
 
18601
# restored at relink time.
 
18602
variables_saved_for_relink="$variables_saved_for_relink"
 
18603
 
 
18604
# Whether libtool must link a program against all its dependency libraries.
 
18605
link_all_deplibs=$link_all_deplibs_GCJ
 
18606
 
 
18607
# Compile-time system search path for libraries
 
18608
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18609
 
 
18610
# Run-time system search path for libraries
 
18611
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18612
 
 
18613
# Fix the shell variable \$srcfile for the compiler.
 
18614
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18615
 
 
18616
# Set to yes if exported symbols are required.
 
18617
always_export_symbols=$always_export_symbols_GCJ
 
18618
 
 
18619
# The commands to list exported symbols.
 
18620
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18621
 
 
18622
# The commands to extract the exported symbol list from a shared archive.
 
18623
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18624
 
 
18625
# Symbols that should not be listed in the preloaded symbols.
 
18626
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18627
 
 
18628
# Symbols that must always be exported.
 
18629
include_expsyms=$lt_include_expsyms_GCJ
 
18630
 
 
18631
# ### END LIBTOOL TAG CONFIG: $tagname
 
18632
 
 
18633
__EOF__
 
18634
 
 
18635
 
 
18636
else
 
18637
  # If there is no Makefile yet, we rely on a make rule to execute
 
18638
  # `config.status --recheck' to rerun these tests and create the
 
18639
  # libtool script then.
 
18640
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18641
  if test -f "$ltmain_in"; then
 
18642
    test -f Makefile && make "$ltmain"
 
18643
  fi
 
18644
fi
 
18645
 
 
18646
 
 
18647
ac_ext=c
 
18648
ac_cpp='$CPP $CPPFLAGS'
 
18649
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18650
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18651
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18652
 
 
18653
CC="$lt_save_CC"
 
18654
 
 
18655
        else
 
18656
          tagname=""
 
18657
        fi
 
18658
        ;;
 
18659
 
 
18660
      RC)
 
18661
 
 
18662
 
 
18663
 
 
18664
# Source file extension for RC test sources.
 
18665
ac_ext=rc
 
18666
 
 
18667
# Object file extension for compiled RC test sources.
 
18668
objext=o
 
18669
objext_RC=$objext
 
18670
 
 
18671
# Code to be used in simple compile tests
 
18672
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18673
 
 
18674
# Code to be used in simple link tests
 
18675
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18676
 
 
18677
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18678
 
 
18679
# If no C compiler was specified, use CC.
 
18680
LTCC=${LTCC-"$CC"}
 
18681
 
 
18682
# Allow CC to be a program name with arguments.
 
18683
compiler=$CC
 
18684
 
 
18685
 
 
18686
# save warnings/boilerplate of simple test code
 
18687
ac_outfile=conftest.$ac_objext
 
18688
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18689
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
18690
_lt_compiler_boilerplate=`cat conftest.err`
 
18691
$rm conftest*
 
18692
 
 
18693
ac_outfile=conftest.$ac_objext
 
18694
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18695
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
18696
_lt_linker_boilerplate=`cat conftest.err`
 
18697
$rm conftest*
 
18698
 
 
18699
 
 
18700
# Allow CC to be a program name with arguments.
 
18701
lt_save_CC="$CC"
 
18702
CC=${RC-"windres"}
 
18703
compiler=$CC
 
18704
compiler_RC=$CC
 
18705
for cc_temp in $compiler""; do
 
18706
  case $cc_temp in
 
18707
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18708
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18709
    \-*) ;;
 
18710
    *) break;;
 
18711
  esac
 
18712
done
 
18713
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18714
 
 
18715
lt_cv_prog_compiler_c_o_RC=yes
 
18716
 
 
18717
# The else clause should only fire when bootstrapping the
 
18718
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18719
# with your package, and you will get complaints that there are
 
18720
# no rules to generate ltmain.sh.
 
18721
if test -f "$ltmain"; then
 
18722
  # See if we are running on zsh, and set the options which allow our commands through
 
18723
  # without removal of \ escapes.
 
18724
  if test -n "${ZSH_VERSION+set}" ; then
 
18725
    setopt NO_GLOB_SUBST
 
18726
  fi
 
18727
  # Now quote all the things that may contain metacharacters while being
 
18728
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18729
  # variables and quote the copies for generation of the libtool script.
 
18730
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18731
    SED SHELL STRIP \
 
18732
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18733
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18734
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18735
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18736
    lt_cv_sys_global_symbol_to_c_name_address \
 
18737
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18738
    old_postinstall_cmds old_postuninstall_cmds \
 
18739
    compiler_RC \
 
18740
    CC_RC \
 
18741
    LD_RC \
 
18742
    lt_prog_compiler_wl_RC \
 
18743
    lt_prog_compiler_pic_RC \
 
18744
    lt_prog_compiler_static_RC \
 
18745
    lt_prog_compiler_no_builtin_flag_RC \
 
18746
    export_dynamic_flag_spec_RC \
 
18747
    thread_safe_flag_spec_RC \
 
18748
    whole_archive_flag_spec_RC \
 
18749
    enable_shared_with_static_runtimes_RC \
 
18750
    old_archive_cmds_RC \
 
18751
    old_archive_from_new_cmds_RC \
 
18752
    predep_objects_RC \
 
18753
    postdep_objects_RC \
 
18754
    predeps_RC \
 
18755
    postdeps_RC \
 
18756
    compiler_lib_search_path_RC \
 
18757
    archive_cmds_RC \
 
18758
    archive_expsym_cmds_RC \
 
18759
    postinstall_cmds_RC \
 
18760
    postuninstall_cmds_RC \
 
18761
    old_archive_from_expsyms_cmds_RC \
 
18762
    allow_undefined_flag_RC \
 
18763
    no_undefined_flag_RC \
 
18764
    export_symbols_cmds_RC \
 
18765
    hardcode_libdir_flag_spec_RC \
 
18766
    hardcode_libdir_flag_spec_ld_RC \
 
18767
    hardcode_libdir_separator_RC \
 
18768
    hardcode_automatic_RC \
 
18769
    module_cmds_RC \
 
18770
    module_expsym_cmds_RC \
 
18771
    lt_cv_prog_compiler_c_o_RC \
 
18772
    exclude_expsyms_RC \
 
18773
    include_expsyms_RC; do
 
18774
 
 
18775
    case $var in
 
18776
    old_archive_cmds_RC | \
 
18777
    old_archive_from_new_cmds_RC | \
 
18778
    archive_cmds_RC | \
 
18779
    archive_expsym_cmds_RC | \
 
18780
    module_cmds_RC | \
 
18781
    module_expsym_cmds_RC | \
 
18782
    old_archive_from_expsyms_cmds_RC | \
 
18783
    export_symbols_cmds_RC | \
 
18784
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18785
    postinstall_cmds | postuninstall_cmds | \
 
18786
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18787
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18788
      # Double-quote double-evaled strings.
 
18789
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18790
      ;;
 
18791
    *)
 
18792
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18793
      ;;
 
18794
    esac
 
18795
  done
 
18796
 
 
18797
  case $lt_echo in
 
18798
  *'\$0 --fallback-echo"')
 
18799
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18800
    ;;
 
18801
  esac
 
18802
 
 
18803
cfgfile="$ofile"
 
18804
 
 
18805
  cat <<__EOF__ >> "$cfgfile"
 
18806
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18807
 
 
18808
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18809
 
 
18810
# Shell to use when invoking shell scripts.
 
18811
SHELL=$lt_SHELL
 
18812
 
 
18813
# Whether or not to build shared libraries.
 
18814
build_libtool_libs=$enable_shared
 
18815
 
 
18816
# Whether or not to build static libraries.
 
18817
build_old_libs=$enable_static
 
18818
 
 
18819
# Whether or not to add -lc for building shared libraries.
 
18820
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18821
 
 
18822
# Whether or not to disallow shared libs when runtime libs are static
 
18823
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18824
 
 
18825
# Whether or not to optimize for fast installation.
 
18826
fast_install=$enable_fast_install
 
18827
 
 
18828
# The host system.
 
18829
host_alias=$host_alias
 
18830
host=$host
 
18831
host_os=$host_os
 
18832
 
 
18833
# The build system.
 
18834
build_alias=$build_alias
 
18835
build=$build
 
18836
build_os=$build_os
 
18837
 
 
18838
# An echo program that does not interpret backslashes.
 
18839
echo=$lt_echo
 
18840
 
 
18841
# The archiver.
 
18842
AR=$lt_AR
 
18843
AR_FLAGS=$lt_AR_FLAGS
 
18844
 
 
18845
# A C compiler.
 
18846
LTCC=$lt_LTCC
 
18847
 
 
18848
# A language-specific compiler.
 
18849
CC=$lt_compiler_RC
 
18850
 
 
18851
# Is the compiler the GNU C compiler?
 
18852
with_gcc=$GCC_RC
 
18853
 
 
18854
# An ERE matcher.
 
18855
EGREP=$lt_EGREP
 
18856
 
 
18857
# The linker used to build libraries.
 
18858
LD=$lt_LD_RC
 
18859
 
 
18860
# Whether we need hard or soft links.
 
18861
LN_S=$lt_LN_S
 
18862
 
 
18863
# A BSD-compatible nm program.
 
18864
NM=$lt_NM
 
18865
 
 
18866
# A symbol stripping program
 
18867
STRIP=$lt_STRIP
 
18868
 
 
18869
# Used to examine libraries when file_magic_cmd begins "file"
 
18870
MAGIC_CMD=$MAGIC_CMD
 
18871
 
 
18872
# Used on cygwin: DLL creation program.
 
18873
DLLTOOL="$DLLTOOL"
 
18874
 
 
18875
# Used on cygwin: object dumper.
 
18876
OBJDUMP="$OBJDUMP"
 
18877
 
 
18878
# Used on cygwin: assembler.
 
18879
AS="$AS"
 
18880
 
 
18881
# The name of the directory that contains temporary libtool files.
 
18882
objdir=$objdir
 
18883
 
 
18884
# How to create reloadable object files.
 
18885
reload_flag=$lt_reload_flag
 
18886
reload_cmds=$lt_reload_cmds
 
18887
 
 
18888
# How to pass a linker flag through the compiler.
 
18889
wl=$lt_lt_prog_compiler_wl_RC
 
18890
 
 
18891
# Object file suffix (normally "o").
 
18892
objext="$ac_objext"
 
18893
 
 
18894
# Old archive suffix (normally "a").
 
18895
libext="$libext"
 
18896
 
 
18897
# Shared library suffix (normally ".so").
 
18898
shrext_cmds='$shrext_cmds'
 
18899
 
 
18900
# Executable file suffix (normally "").
 
18901
exeext="$exeext"
 
18902
 
 
18903
# Additional compiler flags for building library objects.
 
18904
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18905
pic_mode=$pic_mode
 
18906
 
 
18907
# What is the maximum length of a command?
 
18908
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18909
 
 
18910
# Does compiler simultaneously support -c and -o options?
 
18911
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18912
 
 
18913
# Must we lock files when doing compilation?
 
18914
need_locks=$lt_need_locks
 
18915
 
 
18916
# Do we need the lib prefix for modules?
 
18917
need_lib_prefix=$need_lib_prefix
 
18918
 
 
18919
# Do we need a version for libraries?
 
18920
need_version=$need_version
 
18921
 
 
18922
# Whether dlopen is supported.
 
18923
dlopen_support=$enable_dlopen
 
18924
 
 
18925
# Whether dlopen of programs is supported.
 
18926
dlopen_self=$enable_dlopen_self
 
18927
 
 
18928
# Whether dlopen of statically linked programs is supported.
 
18929
dlopen_self_static=$enable_dlopen_self_static
 
18930
 
 
18931
# Compiler flag to prevent dynamic linking.
 
18932
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18933
 
 
18934
# Compiler flag to turn off builtin functions.
 
18935
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18936
 
 
18937
# Compiler flag to allow reflexive dlopens.
 
18938
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18939
 
 
18940
# Compiler flag to generate shared objects directly from archives.
 
18941
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18942
 
 
18943
# Compiler flag to generate thread-safe objects.
 
18944
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18945
 
 
18946
# Library versioning type.
 
18947
version_type=$version_type
 
18948
 
 
18949
# Format of library name prefix.
 
18950
libname_spec=$lt_libname_spec
 
18951
 
 
18952
# List of archive names.  First name is the real one, the rest are links.
 
18953
# The last name is the one that the linker finds with -lNAME.
 
18954
library_names_spec=$lt_library_names_spec
 
18955
 
 
18956
# The coded name of the library, if different from the real name.
 
18957
soname_spec=$lt_soname_spec
 
18958
 
 
18959
# Commands used to build and install an old-style archive.
 
18960
RANLIB=$lt_RANLIB
 
18961
old_archive_cmds=$lt_old_archive_cmds_RC
 
18962
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18963
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18964
 
 
18965
# Create an old-style archive from a shared archive.
 
18966
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18967
 
 
18968
# Create a temporary old-style archive to link instead of a shared archive.
 
18969
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18970
 
 
18971
# Commands used to build and install a shared archive.
 
18972
archive_cmds=$lt_archive_cmds_RC
 
18973
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18974
postinstall_cmds=$lt_postinstall_cmds
 
18975
postuninstall_cmds=$lt_postuninstall_cmds
 
18976
 
 
18977
# Commands used to build a loadable module (assumed same as above if empty)
 
18978
module_cmds=$lt_module_cmds_RC
 
18979
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18980
 
 
18981
# Commands to strip libraries.
 
18982
old_striplib=$lt_old_striplib
 
18983
striplib=$lt_striplib
 
18984
 
 
18985
# Dependencies to place before the objects being linked to create a
 
18986
# shared library.
 
18987
predep_objects=$lt_predep_objects_RC
 
18988
 
 
18989
# Dependencies to place after the objects being linked to create a
 
18990
# shared library.
 
18991
postdep_objects=$lt_postdep_objects_RC
 
18992
 
 
18993
# Dependencies to place before the objects being linked to create a
 
18994
# shared library.
 
18995
predeps=$lt_predeps_RC
 
18996
 
 
18997
# Dependencies to place after the objects being linked to create a
 
18998
# shared library.
 
18999
postdeps=$lt_postdeps_RC
 
19000
 
 
19001
# The library search path used internally by the compiler when linking
 
19002
# a shared library.
 
19003
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19004
 
 
19005
# Method to check whether dependent libraries are shared objects.
 
19006
deplibs_check_method=$lt_deplibs_check_method
 
19007
 
 
19008
# Command to use when deplibs_check_method == file_magic.
 
19009
file_magic_cmd=$lt_file_magic_cmd
 
19010
 
 
19011
# Flag that allows shared libraries with undefined symbols to be built.
 
19012
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19013
 
 
19014
# Flag that forces no undefined symbols.
 
19015
no_undefined_flag=$lt_no_undefined_flag_RC
 
19016
 
 
19017
# Commands used to finish a libtool library installation in a directory.
 
19018
finish_cmds=$lt_finish_cmds
 
19019
 
 
19020
# Same as above, but a single script fragment to be evaled but not shown.
 
19021
finish_eval=$lt_finish_eval
 
19022
 
 
19023
# Take the output of nm and produce a listing of raw symbols and C names.
 
19024
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19025
 
 
19026
# Transform the output of nm in a proper C declaration
 
19027
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19028
 
 
19029
# Transform the output of nm in a C name address pair
 
19030
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19031
 
 
19032
# This is the shared library runtime path variable.
 
19033
runpath_var=$runpath_var
 
19034
 
 
19035
# This is the shared library path variable.
 
19036
shlibpath_var=$shlibpath_var
 
19037
 
 
19038
# Is shlibpath searched before the hard-coded library search path?
 
19039
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19040
 
 
19041
# How to hardcode a shared library path into an executable.
 
19042
hardcode_action=$hardcode_action_RC
 
19043
 
 
19044
# Whether we should hardcode library paths into libraries.
 
19045
hardcode_into_libs=$hardcode_into_libs
 
19046
 
 
19047
# Flag to hardcode \$libdir into a binary during linking.
 
19048
# This must work even if \$libdir does not exist.
 
19049
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19050
 
 
19051
# If ld is used when linking, flag to hardcode \$libdir into
 
19052
# a binary during linking. This must work even if \$libdir does
 
19053
# not exist.
 
19054
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19055
 
 
19056
# Whether we need a single -rpath flag with a separated argument.
 
19057
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19058
 
 
19059
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19060
# resulting binary.
 
19061
hardcode_direct=$hardcode_direct_RC
 
19062
 
 
19063
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19064
# resulting binary.
 
19065
hardcode_minus_L=$hardcode_minus_L_RC
 
19066
 
 
19067
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19068
# the resulting binary.
 
19069
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19070
 
 
19071
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19072
# and all subsequent libraries and executables linked against it.
 
19073
hardcode_automatic=$hardcode_automatic_RC
 
19074
 
 
19075
# Variables whose values should be saved in libtool wrapper scripts and
 
19076
# restored at relink time.
 
19077
variables_saved_for_relink="$variables_saved_for_relink"
 
19078
 
 
19079
# Whether libtool must link a program against all its dependency libraries.
 
19080
link_all_deplibs=$link_all_deplibs_RC
 
19081
 
 
19082
# Compile-time system search path for libraries
 
19083
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19084
 
 
19085
# Run-time system search path for libraries
 
19086
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19087
 
 
19088
# Fix the shell variable \$srcfile for the compiler.
 
19089
fix_srcfile_path="$fix_srcfile_path_RC"
 
19090
 
 
19091
# Set to yes if exported symbols are required.
 
19092
always_export_symbols=$always_export_symbols_RC
 
19093
 
 
19094
# The commands to list exported symbols.
 
19095
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19096
 
 
19097
# The commands to extract the exported symbol list from a shared archive.
 
19098
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19099
 
 
19100
# Symbols that should not be listed in the preloaded symbols.
 
19101
exclude_expsyms=$lt_exclude_expsyms_RC
 
19102
 
 
19103
# Symbols that must always be exported.
 
19104
include_expsyms=$lt_include_expsyms_RC
 
19105
 
 
19106
# ### END LIBTOOL TAG CONFIG: $tagname
 
19107
 
 
19108
__EOF__
 
19109
 
 
19110
 
 
19111
else
 
19112
  # If there is no Makefile yet, we rely on a make rule to execute
 
19113
  # `config.status --recheck' to rerun these tests and create the
 
19114
  # libtool script then.
 
19115
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19116
  if test -f "$ltmain_in"; then
 
19117
    test -f Makefile && make "$ltmain"
 
19118
  fi
 
19119
fi
 
19120
 
 
19121
 
 
19122
ac_ext=c
 
19123
ac_cpp='$CPP $CPPFLAGS'
 
19124
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19125
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19126
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19127
 
 
19128
CC="$lt_save_CC"
 
19129
 
 
19130
        ;;
 
19131
 
 
19132
      *)
 
19133
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19134
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19135
   { (exit 1); exit 1; }; }
 
19136
        ;;
 
19137
      esac
 
19138
 
 
19139
      # Append the new tag name to the list of available tags.
 
19140
      if test -n "$tagname" ; then
 
19141
      available_tags="$available_tags $tagname"
 
19142
    fi
 
19143
    fi
 
19144
  done
 
19145
  IFS="$lt_save_ifs"
 
19146
 
 
19147
  # Now substitute the updated list of available tags.
 
19148
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19149
    mv "${ofile}T" "$ofile"
 
19150
    chmod +x "$ofile"
 
19151
  else
 
19152
    rm -f "${ofile}T"
 
19153
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19154
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19155
   { (exit 1); exit 1; }; }
 
19156
  fi
 
19157
fi
 
19158
 
 
19159
 
 
19160
 
 
19161
# This can be used to rebuild libtool when needed
 
19162
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19163
 
 
19164
# Always use our own libtool.
 
19165
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19166
 
 
19167
# Prevent multiple expansion
 
19168
 
 
19169
 
 
19170
 
 
19171
 
 
19172
 
 
19173
 
 
19174
 
 
19175
 
 
19176
 
 
19177
 
 
19178
 
 
19179
 
 
19180
 
 
19181
 
 
19182
 
 
19183
 
 
19184
 
 
19185
 
 
19186
 
 
19187
 
 
19188
    ;;
 
19189
esac
 
19190
 
 
19191
blddir=`pwd`
 
19192
 
 
19193
 
 
19194
 
 
19195
 
 
19196
 
 
19197
 
 
19198
 
 
19199
 
 
19200
 
 
19201
 
 
19202
 
 
19203
 
 
19204
ac_ext=c
 
19205
ac_cpp='$CPP $CPPFLAGS'
 
19206
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19207
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19208
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19209
if test -n "$ac_tool_prefix"; then
 
19210
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
19211
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
19212
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19213
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19214
if test "${ac_cv_prog_CC+set}" = set; then
 
19215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19216
else
 
19217
  if test -n "$CC"; then
 
19218
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19219
else
 
19220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19221
for as_dir in $PATH
 
19222
do
 
19223
  IFS=$as_save_IFS
 
19224
  test -z "$as_dir" && as_dir=.
 
19225
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19226
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19227
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
19228
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19229
    break 2
 
19230
  fi
 
19231
done
 
19232
done
 
19233
 
 
19234
fi
 
19235
fi
 
19236
CC=$ac_cv_prog_CC
 
19237
if test -n "$CC"; then
 
19238
  echo "$as_me:$LINENO: result: $CC" >&5
 
19239
echo "${ECHO_T}$CC" >&6
 
19240
else
 
19241
  echo "$as_me:$LINENO: result: no" >&5
 
19242
echo "${ECHO_T}no" >&6
 
19243
fi
 
19244
 
 
19245
fi
 
19246
if test -z "$ac_cv_prog_CC"; then
 
19247
  ac_ct_CC=$CC
 
19248
  # Extract the first word of "gcc", so it can be a program name with args.
 
19249
set dummy gcc; ac_word=$2
 
19250
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19252
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19254
else
 
19255
  if test -n "$ac_ct_CC"; then
 
19256
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19257
else
 
19258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19259
for as_dir in $PATH
 
19260
do
 
19261
  IFS=$as_save_IFS
 
19262
  test -z "$as_dir" && as_dir=.
 
19263
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19264
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19265
    ac_cv_prog_ac_ct_CC="gcc"
 
19266
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19267
    break 2
 
19268
  fi
 
19269
done
 
19270
done
 
19271
 
 
19272
fi
 
19273
fi
 
19274
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19275
if test -n "$ac_ct_CC"; then
 
19276
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19277
echo "${ECHO_T}$ac_ct_CC" >&6
 
19278
else
 
19279
  echo "$as_me:$LINENO: result: no" >&5
 
19280
echo "${ECHO_T}no" >&6
 
19281
fi
 
19282
 
 
19283
  CC=$ac_ct_CC
 
19284
else
 
19285
  CC="$ac_cv_prog_CC"
 
19286
fi
 
19287
 
 
19288
if test -z "$CC"; then
 
19289
  if test -n "$ac_tool_prefix"; then
 
19290
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
19291
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
19292
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19293
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19294
if test "${ac_cv_prog_CC+set}" = set; then
 
19295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19296
else
 
19297
  if test -n "$CC"; then
 
19298
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19299
else
 
19300
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19301
for as_dir in $PATH
 
19302
do
 
19303
  IFS=$as_save_IFS
 
19304
  test -z "$as_dir" && as_dir=.
 
19305
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19306
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19307
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
19308
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19309
    break 2
 
19310
  fi
 
19311
done
 
19312
done
 
19313
 
 
19314
fi
 
19315
fi
 
19316
CC=$ac_cv_prog_CC
 
19317
if test -n "$CC"; then
 
19318
  echo "$as_me:$LINENO: result: $CC" >&5
 
19319
echo "${ECHO_T}$CC" >&6
 
19320
else
 
19321
  echo "$as_me:$LINENO: result: no" >&5
 
19322
echo "${ECHO_T}no" >&6
 
19323
fi
 
19324
 
 
19325
fi
 
19326
if test -z "$ac_cv_prog_CC"; then
 
19327
  ac_ct_CC=$CC
 
19328
  # Extract the first word of "cc", so it can be a program name with args.
 
19329
set dummy cc; ac_word=$2
 
19330
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19331
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19332
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19334
else
 
19335
  if test -n "$ac_ct_CC"; then
 
19336
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19337
else
 
19338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19339
for as_dir in $PATH
 
19340
do
 
19341
  IFS=$as_save_IFS
 
19342
  test -z "$as_dir" && as_dir=.
 
19343
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19344
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19345
    ac_cv_prog_ac_ct_CC="cc"
 
19346
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19347
    break 2
 
19348
  fi
 
19349
done
 
19350
done
 
19351
 
 
19352
fi
 
19353
fi
 
19354
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19355
if test -n "$ac_ct_CC"; then
 
19356
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19357
echo "${ECHO_T}$ac_ct_CC" >&6
 
19358
else
 
19359
  echo "$as_me:$LINENO: result: no" >&5
 
19360
echo "${ECHO_T}no" >&6
 
19361
fi
 
19362
 
 
19363
  CC=$ac_ct_CC
 
19364
else
 
19365
  CC="$ac_cv_prog_CC"
 
19366
fi
 
19367
 
 
19368
fi
 
19369
if test -z "$CC"; then
 
19370
  # Extract the first word of "cc", so it can be a program name with args.
 
19371
set dummy cc; ac_word=$2
 
19372
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19373
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19374
if test "${ac_cv_prog_CC+set}" = set; then
 
19375
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19376
else
 
19377
  if test -n "$CC"; then
 
19378
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19379
else
 
19380
  ac_prog_rejected=no
 
19381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19382
for as_dir in $PATH
 
19383
do
 
19384
  IFS=$as_save_IFS
 
19385
  test -z "$as_dir" && as_dir=.
 
19386
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19387
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19388
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
19389
       ac_prog_rejected=yes
 
19390
       continue
 
19391
     fi
 
19392
    ac_cv_prog_CC="cc"
 
19393
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19394
    break 2
 
19395
  fi
 
19396
done
 
19397
done
 
19398
 
 
19399
if test $ac_prog_rejected = yes; then
 
19400
  # We found a bogon in the path, so make sure we never use it.
 
19401
  set dummy $ac_cv_prog_CC
 
19402
  shift
 
19403
  if test $# != 0; then
 
19404
    # We chose a different compiler from the bogus one.
 
19405
    # However, it has the same basename, so the bogon will be chosen
 
19406
    # first if we set CC to just the basename; use the full file name.
 
19407
    shift
 
19408
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
19409
  fi
 
19410
fi
 
19411
fi
 
19412
fi
 
19413
CC=$ac_cv_prog_CC
 
19414
if test -n "$CC"; then
 
19415
  echo "$as_me:$LINENO: result: $CC" >&5
 
19416
echo "${ECHO_T}$CC" >&6
 
19417
else
 
19418
  echo "$as_me:$LINENO: result: no" >&5
 
19419
echo "${ECHO_T}no" >&6
 
19420
fi
 
19421
 
 
19422
fi
 
19423
if test -z "$CC"; then
 
19424
  if test -n "$ac_tool_prefix"; then
 
19425
  for ac_prog in cl
 
19426
  do
 
19427
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
19428
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
19429
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19430
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19431
if test "${ac_cv_prog_CC+set}" = set; then
 
19432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19433
else
 
19434
  if test -n "$CC"; then
 
19435
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19436
else
 
19437
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19438
for as_dir in $PATH
 
19439
do
 
19440
  IFS=$as_save_IFS
 
19441
  test -z "$as_dir" && as_dir=.
 
19442
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19443
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19444
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
19445
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19446
    break 2
 
19447
  fi
 
19448
done
 
19449
done
 
19450
 
 
19451
fi
 
19452
fi
 
19453
CC=$ac_cv_prog_CC
 
19454
if test -n "$CC"; then
 
19455
  echo "$as_me:$LINENO: result: $CC" >&5
 
19456
echo "${ECHO_T}$CC" >&6
 
19457
else
 
19458
  echo "$as_me:$LINENO: result: no" >&5
 
19459
echo "${ECHO_T}no" >&6
 
19460
fi
 
19461
 
 
19462
    test -n "$CC" && break
 
19463
  done
 
19464
fi
 
19465
if test -z "$CC"; then
 
19466
  ac_ct_CC=$CC
 
19467
  for ac_prog in cl
 
19468
do
 
19469
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
19470
set dummy $ac_prog; ac_word=$2
 
19471
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19473
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19475
else
 
19476
  if test -n "$ac_ct_CC"; then
 
19477
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19478
else
 
19479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19480
for as_dir in $PATH
 
19481
do
 
19482
  IFS=$as_save_IFS
 
19483
  test -z "$as_dir" && as_dir=.
 
19484
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19485
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19486
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
19487
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19488
    break 2
 
19489
  fi
 
19490
done
 
19491
done
 
19492
 
 
19493
fi
 
19494
fi
 
19495
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19496
if test -n "$ac_ct_CC"; then
 
19497
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19498
echo "${ECHO_T}$ac_ct_CC" >&6
 
19499
else
 
19500
  echo "$as_me:$LINENO: result: no" >&5
 
19501
echo "${ECHO_T}no" >&6
 
19502
fi
 
19503
 
 
19504
  test -n "$ac_ct_CC" && break
 
19505
done
 
19506
 
 
19507
  CC=$ac_ct_CC
 
19508
fi
 
19509
 
 
19510
fi
 
19511
 
 
19512
 
 
19513
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
19514
See \`config.log' for more details." >&5
 
19515
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
19516
See \`config.log' for more details." >&2;}
 
19517
   { (exit 1); exit 1; }; }
 
19518
 
 
19519
# Provide some information about the compiler.
 
19520
echo "$as_me:$LINENO:" \
 
19521
     "checking for C compiler version" >&5
 
19522
ac_compiler=`set X $ac_compile; echo $2`
 
19523
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
19524
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
19525
  ac_status=$?
 
19526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19527
  (exit $ac_status); }
 
19528
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
19529
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
19530
  ac_status=$?
 
19531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19532
  (exit $ac_status); }
 
19533
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
19534
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
19535
  ac_status=$?
 
19536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19537
  (exit $ac_status); }
 
19538
 
 
19539
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
19540
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
19541
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
19542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19543
else
 
19544
  cat >conftest.$ac_ext <<_ACEOF
 
19545
/* confdefs.h.  */
 
19546
_ACEOF
 
19547
cat confdefs.h >>conftest.$ac_ext
 
19548
cat >>conftest.$ac_ext <<_ACEOF
 
19549
/* end confdefs.h.  */
 
19550
 
 
19551
int
 
19552
main ()
 
19553
{
 
19554
#ifndef __GNUC__
 
19555
       choke me
 
19556
#endif
 
19557
 
 
19558
  ;
 
19559
  return 0;
 
19560
}
 
19561
_ACEOF
 
19562
rm -f conftest.$ac_objext
 
19563
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19564
  (eval $ac_compile) 2>conftest.er1
 
19565
  ac_status=$?
 
19566
  grep -v '^ *+' conftest.er1 >conftest.err
 
19567
  rm -f conftest.er1
 
19568
  cat conftest.err >&5
 
19569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19570
  (exit $ac_status); } &&
 
19571
         { ac_try='test -z "$ac_c_werror_flag"
 
19572
                         || test ! -s conftest.err'
 
19573
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19574
  (eval $ac_try) 2>&5
 
19575
  ac_status=$?
 
19576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19577
  (exit $ac_status); }; } &&
 
19578
         { ac_try='test -s conftest.$ac_objext'
 
19579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19580
  (eval $ac_try) 2>&5
 
19581
  ac_status=$?
 
19582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19583
  (exit $ac_status); }; }; then
 
19584
  ac_compiler_gnu=yes
 
19585
else
 
19586
  echo "$as_me: failed program was:" >&5
 
19587
sed 's/^/| /' conftest.$ac_ext >&5
 
19588
 
 
19589
ac_compiler_gnu=no
 
19590
fi
 
19591
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19592
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
19593
 
 
19594
fi
 
19595
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
19596
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
19597
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
19598
ac_test_CFLAGS=${CFLAGS+set}
 
19599
ac_save_CFLAGS=$CFLAGS
 
19600
CFLAGS="-g"
 
19601
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
19602
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
19603
if test "${ac_cv_prog_cc_g+set}" = set; then
 
19604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19605
else
 
19606
  cat >conftest.$ac_ext <<_ACEOF
 
19607
/* confdefs.h.  */
 
19608
_ACEOF
 
19609
cat confdefs.h >>conftest.$ac_ext
 
19610
cat >>conftest.$ac_ext <<_ACEOF
 
19611
/* end confdefs.h.  */
 
19612
 
 
19613
int
 
19614
main ()
 
19615
{
 
19616
 
 
19617
  ;
 
19618
  return 0;
 
19619
}
 
19620
_ACEOF
 
19621
rm -f conftest.$ac_objext
 
19622
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19623
  (eval $ac_compile) 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"
 
19631
                         || test ! -s conftest.err'
 
19632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19633
  (eval $ac_try) 2>&5
 
19634
  ac_status=$?
 
19635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19636
  (exit $ac_status); }; } &&
 
19637
         { ac_try='test -s conftest.$ac_objext'
 
19638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19639
  (eval $ac_try) 2>&5
 
19640
  ac_status=$?
 
19641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19642
  (exit $ac_status); }; }; then
 
19643
  ac_cv_prog_cc_g=yes
 
19644
else
 
19645
  echo "$as_me: failed program was:" >&5
 
19646
sed 's/^/| /' conftest.$ac_ext >&5
 
19647
 
 
19648
ac_cv_prog_cc_g=no
 
19649
fi
 
19650
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19651
fi
 
19652
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
19653
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
19654
if test "$ac_test_CFLAGS" = set; then
 
19655
  CFLAGS=$ac_save_CFLAGS
 
19656
elif test $ac_cv_prog_cc_g = yes; then
 
19657
  if test "$GCC" = yes; then
 
19658
    CFLAGS="-g -O2"
 
19659
  else
 
19660
    CFLAGS="-g"
 
19661
  fi
 
19662
else
 
19663
  if test "$GCC" = yes; then
 
19664
    CFLAGS="-O2"
 
19665
  else
 
19666
    CFLAGS=
 
19667
  fi
 
19668
fi
 
19669
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
19670
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
19671
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
19672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19673
else
 
19674
  ac_cv_prog_cc_stdc=no
 
19675
ac_save_CC=$CC
 
19676
cat >conftest.$ac_ext <<_ACEOF
 
19677
/* confdefs.h.  */
 
19678
_ACEOF
 
19679
cat confdefs.h >>conftest.$ac_ext
 
19680
cat >>conftest.$ac_ext <<_ACEOF
 
19681
/* end confdefs.h.  */
 
19682
#include <stdarg.h>
 
19683
#include <stdio.h>
 
19684
#include <sys/types.h>
 
19685
#include <sys/stat.h>
 
19686
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
19687
struct buf { int x; };
 
19688
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
19689
static char *e (p, i)
 
19690
     char **p;
 
19691
     int i;
 
19692
{
 
19693
  return p[i];
 
19694
}
 
19695
static char *f (char * (*g) (char **, int), char **p, ...)
 
19696
{
 
19697
  char *s;
 
19698
  va_list v;
 
19699
  va_start (v,p);
 
19700
  s = g (p, va_arg (v,int));
 
19701
  va_end (v);
 
19702
  return s;
 
19703
}
 
19704
 
 
19705
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
19706
   function prototypes and stuff, but not '\xHH' hex character constants.
 
19707
   These don't provoke an error unfortunately, instead are silently treated
 
19708
   as 'x'.  The following induces an error, until -std1 is added to get
 
19709
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
19710
   array size at least.  It's necessary to write '\x00'==0 to get something
 
19711
   that's true only with -std1.  */
 
19712
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
19713
 
 
19714
int test (int i, double x);
 
19715
struct s1 {int (*f) (int a);};
 
19716
struct s2 {int (*f) (double a);};
 
19717
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
19718
int argc;
 
19719
char **argv;
 
19720
int
 
19721
main ()
 
19722
{
 
19723
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
19724
  ;
 
19725
  return 0;
 
19726
}
 
19727
_ACEOF
 
19728
# Don't try gcc -ansi; that turns off useful extensions and
 
19729
# breaks some systems' header files.
 
19730
# AIX                   -qlanglvl=ansi
 
19731
# Ultrix and OSF/1      -std1
 
19732
# HP-UX 10.20 and later -Ae
 
19733
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
19734
# SVR4                  -Xc -D__EXTENSIONS__
 
19735
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
19736
do
 
19737
  CC="$ac_save_CC $ac_arg"
 
19738
  rm -f conftest.$ac_objext
 
19739
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19740
  (eval $ac_compile) 2>conftest.er1
 
19741
  ac_status=$?
 
19742
  grep -v '^ *+' conftest.er1 >conftest.err
 
19743
  rm -f conftest.er1
 
19744
  cat conftest.err >&5
 
19745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19746
  (exit $ac_status); } &&
 
19747
         { ac_try='test -z "$ac_c_werror_flag"
 
19748
                         || test ! -s conftest.err'
 
19749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19750
  (eval $ac_try) 2>&5
 
19751
  ac_status=$?
 
19752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19753
  (exit $ac_status); }; } &&
 
19754
         { ac_try='test -s conftest.$ac_objext'
 
19755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19756
  (eval $ac_try) 2>&5
 
19757
  ac_status=$?
 
19758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19759
  (exit $ac_status); }; }; then
 
19760
  ac_cv_prog_cc_stdc=$ac_arg
 
19761
break
 
19762
else
 
19763
  echo "$as_me: failed program was:" >&5
 
19764
sed 's/^/| /' conftest.$ac_ext >&5
 
19765
 
 
19766
fi
 
19767
rm -f conftest.err conftest.$ac_objext
 
19768
done
 
19769
rm -f conftest.$ac_ext conftest.$ac_objext
 
19770
CC=$ac_save_CC
 
19771
 
 
19772
fi
 
19773
 
 
19774
case "x$ac_cv_prog_cc_stdc" in
 
19775
  x|xno)
 
19776
    echo "$as_me:$LINENO: result: none needed" >&5
 
19777
echo "${ECHO_T}none needed" >&6 ;;
 
19778
  *)
 
19779
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
19780
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
19781
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
19782
esac
 
19783
 
 
19784
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
19785
# in C++ we need to declare it.  In case someone uses the same compiler
 
19786
# for both compiling C and C++ we need to have the C++ compiler decide
 
19787
# the declaration of exit, since it's the most demanding environment.
 
19788
cat >conftest.$ac_ext <<_ACEOF
 
19789
#ifndef __cplusplus
 
19790
  choke me
 
19791
#endif
 
19792
_ACEOF
 
19793
rm -f conftest.$ac_objext
 
19794
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19795
  (eval $ac_compile) 2>conftest.er1
 
19796
  ac_status=$?
 
19797
  grep -v '^ *+' conftest.er1 >conftest.err
 
19798
  rm -f conftest.er1
 
19799
  cat conftest.err >&5
 
19800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19801
  (exit $ac_status); } &&
 
19802
         { ac_try='test -z "$ac_c_werror_flag"
 
19803
                         || test ! -s conftest.err'
 
19804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19805
  (eval $ac_try) 2>&5
 
19806
  ac_status=$?
 
19807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19808
  (exit $ac_status); }; } &&
 
19809
         { ac_try='test -s conftest.$ac_objext'
 
19810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19811
  (eval $ac_try) 2>&5
 
19812
  ac_status=$?
 
19813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19814
  (exit $ac_status); }; }; then
 
19815
  for ac_declaration in \
 
19816
   '' \
 
19817
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
19818
   'extern "C" void std::exit (int); using std::exit;' \
 
19819
   'extern "C" void exit (int) throw ();' \
 
19820
   'extern "C" void exit (int);' \
 
19821
   'void exit (int);'
 
19822
do
 
19823
  cat >conftest.$ac_ext <<_ACEOF
 
19824
/* confdefs.h.  */
 
19825
_ACEOF
 
19826
cat confdefs.h >>conftest.$ac_ext
 
19827
cat >>conftest.$ac_ext <<_ACEOF
 
19828
/* end confdefs.h.  */
 
19829
$ac_declaration
 
19830
#include <stdlib.h>
 
19831
int
 
19832
main ()
 
19833
{
 
19834
exit (42);
 
19835
  ;
 
19836
  return 0;
 
19837
}
 
19838
_ACEOF
 
19839
rm -f conftest.$ac_objext
 
19840
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19841
  (eval $ac_compile) 2>conftest.er1
 
19842
  ac_status=$?
 
19843
  grep -v '^ *+' conftest.er1 >conftest.err
 
19844
  rm -f conftest.er1
 
19845
  cat conftest.err >&5
 
19846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19847
  (exit $ac_status); } &&
 
19848
         { ac_try='test -z "$ac_c_werror_flag"
 
19849
                         || test ! -s conftest.err'
 
19850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19851
  (eval $ac_try) 2>&5
 
19852
  ac_status=$?
 
19853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19854
  (exit $ac_status); }; } &&
 
19855
         { ac_try='test -s conftest.$ac_objext'
 
19856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19857
  (eval $ac_try) 2>&5
 
19858
  ac_status=$?
 
19859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19860
  (exit $ac_status); }; }; then
 
19861
  :
 
19862
else
 
19863
  echo "$as_me: failed program was:" >&5
 
19864
sed 's/^/| /' conftest.$ac_ext >&5
 
19865
 
 
19866
continue
 
19867
fi
 
19868
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19869
  cat >conftest.$ac_ext <<_ACEOF
 
19870
/* confdefs.h.  */
 
19871
_ACEOF
 
19872
cat confdefs.h >>conftest.$ac_ext
 
19873
cat >>conftest.$ac_ext <<_ACEOF
 
19874
/* end confdefs.h.  */
 
19875
$ac_declaration
 
19876
int
 
19877
main ()
 
19878
{
 
19879
exit (42);
 
19880
  ;
 
19881
  return 0;
 
19882
}
 
19883
_ACEOF
 
19884
rm -f conftest.$ac_objext
 
19885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19886
  (eval $ac_compile) 2>conftest.er1
 
19887
  ac_status=$?
 
19888
  grep -v '^ *+' conftest.er1 >conftest.err
 
19889
  rm -f conftest.er1
 
19890
  cat conftest.err >&5
 
19891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19892
  (exit $ac_status); } &&
 
19893
         { ac_try='test -z "$ac_c_werror_flag"
 
19894
                         || test ! -s conftest.err'
 
19895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19896
  (eval $ac_try) 2>&5
 
19897
  ac_status=$?
 
19898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19899
  (exit $ac_status); }; } &&
 
19900
         { ac_try='test -s conftest.$ac_objext'
 
19901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19902
  (eval $ac_try) 2>&5
 
19903
  ac_status=$?
 
19904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19905
  (exit $ac_status); }; }; then
 
19906
  break
 
19907
else
 
19908
  echo "$as_me: failed program was:" >&5
 
19909
sed 's/^/| /' conftest.$ac_ext >&5
 
19910
 
 
19911
fi
 
19912
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19913
done
 
19914
rm -f conftest*
 
19915
if test -n "$ac_declaration"; then
 
19916
  echo '#ifdef __cplusplus' >>confdefs.h
 
19917
  echo $ac_declaration      >>confdefs.h
 
19918
  echo '#endif'             >>confdefs.h
 
19919
fi
 
19920
 
 
19921
else
 
19922
  echo "$as_me: failed program was:" >&5
 
19923
sed 's/^/| /' conftest.$ac_ext >&5
 
19924
 
 
19925
fi
 
19926
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19927
ac_ext=c
 
19928
ac_cpp='$CPP $CPPFLAGS'
 
19929
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19930
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19931
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19932
 
 
19933
# Find a good install program.  We prefer a C program (faster),
 
19934
# so one script is as good as another.  But avoid the broken or
 
19935
# incompatible versions:
 
19936
# SysV /etc/install, /usr/sbin/install
 
19937
# SunOS /usr/etc/install
 
19938
# IRIX /sbin/install
 
19939
# AIX /bin/install
 
19940
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
19941
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
19942
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
19943
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
19944
# OS/2's system install, which has a completely different semantic
 
19945
# ./install, which can be erroneously created by make from ./install.sh.
 
19946
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
19947
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
19948
if test -z "$INSTALL"; then
 
19949
if test "${ac_cv_path_install+set}" = set; then
 
19950
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19951
else
 
19952
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19953
for as_dir in $PATH
 
19954
do
 
19955
  IFS=$as_save_IFS
 
19956
  test -z "$as_dir" && as_dir=.
 
19957
  # Account for people who put trailing slashes in PATH elements.
 
19958
case $as_dir/ in
 
19959
  ./ | .// | /cC/* | \
 
19960
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
19961
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
19962
  /usr/ucb/* ) ;;
 
19963
  *)
 
19964
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
19965
    # Don't use installbsd from OSF since it installs stuff as root
 
19966
    # by default.
 
19967
    for ac_prog in ginstall scoinst install; do
 
19968
      for ac_exec_ext in '' $ac_executable_extensions; do
 
19969
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
19970
          if test $ac_prog = install &&
 
19971
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
19972
            # AIX install.  It has an incompatible calling convention.
 
19973
            :
 
19974
          elif test $ac_prog = install &&
 
19975
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
19976
            # program-specific install script used by HP pwplus--don't use.
 
19977
            :
 
19978
          else
 
19979
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
19980
            break 3
 
19981
          fi
 
19982
        fi
 
19983
      done
 
19984
    done
 
19985
    ;;
 
19986
esac
 
19987
done
 
19988
 
 
19989
 
 
19990
fi
 
19991
  if test "${ac_cv_path_install+set}" = set; then
 
19992
    INSTALL=$ac_cv_path_install
 
19993
  else
 
19994
    # As a last resort, use the slow shell script.  We don't cache a
 
19995
    # path for INSTALL within a source directory, because that will
 
19996
    # break other packages using the cache if that directory is
 
19997
    # removed, or if the path is relative.
 
19998
    INSTALL=$ac_install_sh
 
19999
  fi
 
20000
fi
 
20001
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
20002
echo "${ECHO_T}$INSTALL" >&6
 
20003
 
 
20004
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
20005
# It thinks the first close brace ends the variable substitution.
 
20006
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
20007
 
 
20008
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
20009
 
 
20010
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
20011
 
 
20012
 
 
20013
 
 
20014
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20015
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
20016
if test "${ac_cv_header_stdc+set}" = set; then
 
20017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20018
else
 
20019
  cat >conftest.$ac_ext <<_ACEOF
 
20020
/* confdefs.h.  */
 
20021
_ACEOF
 
20022
cat confdefs.h >>conftest.$ac_ext
 
20023
cat >>conftest.$ac_ext <<_ACEOF
 
20024
/* end confdefs.h.  */
 
20025
#include <stdlib.h>
 
20026
#include <stdarg.h>
 
20027
#include <string.h>
 
20028
#include <float.h>
 
20029
 
 
20030
int
 
20031
main ()
 
20032
{
 
20033
 
 
20034
  ;
 
20035
  return 0;
 
20036
}
 
20037
_ACEOF
 
20038
rm -f conftest.$ac_objext
 
20039
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20040
  (eval $ac_compile) 2>conftest.er1
 
20041
  ac_status=$?
 
20042
  grep -v '^ *+' conftest.er1 >conftest.err
 
20043
  rm -f conftest.er1
 
20044
  cat conftest.err >&5
 
20045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20046
  (exit $ac_status); } &&
 
20047
         { ac_try='test -z "$ac_c_werror_flag"
 
20048
                         || test ! -s conftest.err'
 
20049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20050
  (eval $ac_try) 2>&5
 
20051
  ac_status=$?
 
20052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20053
  (exit $ac_status); }; } &&
 
20054
         { ac_try='test -s conftest.$ac_objext'
 
20055
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20056
  (eval $ac_try) 2>&5
 
20057
  ac_status=$?
 
20058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20059
  (exit $ac_status); }; }; then
 
20060
  ac_cv_header_stdc=yes
 
20061
else
 
20062
  echo "$as_me: failed program was:" >&5
 
20063
sed 's/^/| /' conftest.$ac_ext >&5
 
20064
 
 
20065
ac_cv_header_stdc=no
 
20066
fi
 
20067
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20068
 
 
20069
if test $ac_cv_header_stdc = yes; then
 
20070
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
20071
  cat >conftest.$ac_ext <<_ACEOF
 
20072
/* confdefs.h.  */
 
20073
_ACEOF
 
20074
cat confdefs.h >>conftest.$ac_ext
 
20075
cat >>conftest.$ac_ext <<_ACEOF
 
20076
/* end confdefs.h.  */
 
20077
#include <string.h>
 
20078
 
 
20079
_ACEOF
 
20080
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20081
  $EGREP "memchr" >/dev/null 2>&1; then
 
20082
  :
 
20083
else
 
20084
  ac_cv_header_stdc=no
 
20085
fi
 
20086
rm -f conftest*
 
20087
 
 
20088
fi
 
20089
 
 
20090
if test $ac_cv_header_stdc = yes; then
 
20091
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20092
  cat >conftest.$ac_ext <<_ACEOF
 
20093
/* confdefs.h.  */
 
20094
_ACEOF
 
20095
cat confdefs.h >>conftest.$ac_ext
 
20096
cat >>conftest.$ac_ext <<_ACEOF
 
20097
/* end confdefs.h.  */
 
20098
#include <stdlib.h>
 
20099
 
 
20100
_ACEOF
 
20101
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20102
  $EGREP "free" >/dev/null 2>&1; then
 
20103
  :
 
20104
else
 
20105
  ac_cv_header_stdc=no
 
20106
fi
 
20107
rm -f conftest*
 
20108
 
 
20109
fi
 
20110
 
 
20111
if test $ac_cv_header_stdc = yes; then
 
20112
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20113
  if test "$cross_compiling" = yes; then
 
20114
  :
 
20115
else
 
20116
  cat >conftest.$ac_ext <<_ACEOF
 
20117
/* confdefs.h.  */
 
20118
_ACEOF
 
20119
cat confdefs.h >>conftest.$ac_ext
 
20120
cat >>conftest.$ac_ext <<_ACEOF
 
20121
/* end confdefs.h.  */
 
20122
#include <ctype.h>
 
20123
#if ((' ' & 0x0FF) == 0x020)
 
20124
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20125
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20126
#else
 
20127
# define ISLOWER(c) \
 
20128
                   (('a' <= (c) && (c) <= 'i') \
 
20129
                     || ('j' <= (c) && (c) <= 'r') \
 
20130
                     || ('s' <= (c) && (c) <= 'z'))
 
20131
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20132
#endif
 
20133
 
 
20134
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20135
int
 
20136
main ()
 
20137
{
 
20138
  int i;
 
20139
  for (i = 0; i < 256; i++)
 
20140
    if (XOR (islower (i), ISLOWER (i))
 
20141
        || toupper (i) != TOUPPER (i))
 
20142
      exit(2);
 
20143
  exit (0);
 
20144
}
 
20145
_ACEOF
 
20146
rm -f conftest$ac_exeext
 
20147
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20148
  (eval $ac_link) 2>&5
 
20149
  ac_status=$?
 
20150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20151
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20153
  (eval $ac_try) 2>&5
 
20154
  ac_status=$?
 
20155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20156
  (exit $ac_status); }; }; then
 
20157
  :
 
20158
else
 
20159
  echo "$as_me: program exited with status $ac_status" >&5
 
20160
echo "$as_me: failed program was:" >&5
 
20161
sed 's/^/| /' conftest.$ac_ext >&5
 
20162
 
 
20163
( exit $ac_status )
 
20164
ac_cv_header_stdc=no
 
20165
fi
 
20166
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20167
fi
 
20168
fi
 
20169
fi
 
20170
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20171
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
20172
if test $ac_cv_header_stdc = yes; then
 
20173
 
 
20174
cat >>confdefs.h <<\_ACEOF
 
20175
#define STDC_HEADERS 1
 
20176
_ACEOF
 
20177
 
 
20178
fi
 
20179
 
 
20180
 
 
20181
 
 
20182
 
 
20183
for ac_header in fcntl.h unistd.h string.h
 
20184
do
 
20185
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20186
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20187
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20188
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20189
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20191
fi
 
20192
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20193
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20194
else
 
20195
  # Is the header compilable?
 
20196
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20197
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20198
cat >conftest.$ac_ext <<_ACEOF
 
20199
/* confdefs.h.  */
 
20200
_ACEOF
 
20201
cat confdefs.h >>conftest.$ac_ext
 
20202
cat >>conftest.$ac_ext <<_ACEOF
 
20203
/* end confdefs.h.  */
 
20204
$ac_includes_default
 
20205
#include <$ac_header>
 
20206
_ACEOF
 
20207
rm -f conftest.$ac_objext
 
20208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20209
  (eval $ac_compile) 2>conftest.er1
 
20210
  ac_status=$?
 
20211
  grep -v '^ *+' conftest.er1 >conftest.err
 
20212
  rm -f conftest.er1
 
20213
  cat conftest.err >&5
 
20214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20215
  (exit $ac_status); } &&
 
20216
         { ac_try='test -z "$ac_c_werror_flag"
 
20217
                         || test ! -s conftest.err'
 
20218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20219
  (eval $ac_try) 2>&5
 
20220
  ac_status=$?
 
20221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20222
  (exit $ac_status); }; } &&
 
20223
         { ac_try='test -s conftest.$ac_objext'
 
20224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20225
  (eval $ac_try) 2>&5
 
20226
  ac_status=$?
 
20227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20228
  (exit $ac_status); }; }; then
 
20229
  ac_header_compiler=yes
 
20230
else
 
20231
  echo "$as_me: failed program was:" >&5
 
20232
sed 's/^/| /' conftest.$ac_ext >&5
 
20233
 
 
20234
ac_header_compiler=no
 
20235
fi
 
20236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20237
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20238
echo "${ECHO_T}$ac_header_compiler" >&6
 
20239
 
 
20240
# Is the header present?
 
20241
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20242
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20243
cat >conftest.$ac_ext <<_ACEOF
 
20244
/* confdefs.h.  */
 
20245
_ACEOF
 
20246
cat confdefs.h >>conftest.$ac_ext
 
20247
cat >>conftest.$ac_ext <<_ACEOF
 
20248
/* end confdefs.h.  */
 
20249
#include <$ac_header>
 
20250
_ACEOF
 
20251
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20252
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20253
  ac_status=$?
 
20254
  grep -v '^ *+' conftest.er1 >conftest.err
 
20255
  rm -f conftest.er1
 
20256
  cat conftest.err >&5
 
20257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20258
  (exit $ac_status); } >/dev/null; then
 
20259
  if test -s conftest.err; then
 
20260
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20261
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20262
  else
 
20263
    ac_cpp_err=
 
20264
  fi
 
20265
else
 
20266
  ac_cpp_err=yes
 
20267
fi
 
20268
if test -z "$ac_cpp_err"; then
 
20269
  ac_header_preproc=yes
 
20270
else
 
20271
  echo "$as_me: failed program was:" >&5
 
20272
sed 's/^/| /' conftest.$ac_ext >&5
 
20273
 
 
20274
  ac_header_preproc=no
 
20275
fi
 
20276
rm -f conftest.err conftest.$ac_ext
 
20277
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20278
echo "${ECHO_T}$ac_header_preproc" >&6
 
20279
 
 
20280
# So?  What about this header?
 
20281
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20282
  yes:no: )
 
20283
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20284
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20285
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20286
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20287
    ac_header_preproc=yes
 
20288
    ;;
 
20289
  no:yes:* )
 
20290
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20291
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20292
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20293
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20294
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20295
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20296
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20297
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20298
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20299
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20300
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20301
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20302
    (
 
20303
      cat <<\_ASBOX
 
20304
## ------------------------------------------ ##
 
20305
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20306
## ------------------------------------------ ##
 
20307
_ASBOX
 
20308
    ) |
 
20309
      sed "s/^/$as_me: WARNING:     /" >&2
 
20310
    ;;
 
20311
esac
 
20312
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20313
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20314
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20316
else
 
20317
  eval "$as_ac_Header=\$ac_header_preproc"
 
20318
fi
 
20319
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20320
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20321
 
 
20322
fi
 
20323
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20324
  cat >>confdefs.h <<_ACEOF
 
20325
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20326
_ACEOF
 
20327
 
 
20328
fi
 
20329
 
 
20330
done
 
20331
 
 
20332
 
 
20333
if test "$cross_compiling" = "no"; then
 
20334
  echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
20335
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
20336
if test "${ac_cv_c_bigendian+set}" = set; then
 
20337
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20338
else
 
20339
  # See if sys/param.h defines the BYTE_ORDER macro.
 
20340
cat >conftest.$ac_ext <<_ACEOF
 
20341
/* confdefs.h.  */
 
20342
_ACEOF
 
20343
cat confdefs.h >>conftest.$ac_ext
 
20344
cat >>conftest.$ac_ext <<_ACEOF
 
20345
/* end confdefs.h.  */
 
20346
#include <sys/types.h>
 
20347
#include <sys/param.h>
 
20348
 
 
20349
int
 
20350
main ()
 
20351
{
 
20352
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
20353
 bogus endian macros
 
20354
#endif
 
20355
 
 
20356
  ;
 
20357
  return 0;
 
20358
}
 
20359
_ACEOF
 
20360
rm -f conftest.$ac_objext
 
20361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20362
  (eval $ac_compile) 2>conftest.er1
 
20363
  ac_status=$?
 
20364
  grep -v '^ *+' conftest.er1 >conftest.err
 
20365
  rm -f conftest.er1
 
20366
  cat conftest.err >&5
 
20367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20368
  (exit $ac_status); } &&
 
20369
         { ac_try='test -z "$ac_c_werror_flag"
 
20370
                         || test ! -s conftest.err'
 
20371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20372
  (eval $ac_try) 2>&5
 
20373
  ac_status=$?
 
20374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20375
  (exit $ac_status); }; } &&
 
20376
         { ac_try='test -s conftest.$ac_objext'
 
20377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20378
  (eval $ac_try) 2>&5
 
20379
  ac_status=$?
 
20380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20381
  (exit $ac_status); }; }; then
 
20382
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
20383
cat >conftest.$ac_ext <<_ACEOF
 
20384
/* confdefs.h.  */
 
20385
_ACEOF
 
20386
cat confdefs.h >>conftest.$ac_ext
 
20387
cat >>conftest.$ac_ext <<_ACEOF
 
20388
/* end confdefs.h.  */
 
20389
#include <sys/types.h>
 
20390
#include <sys/param.h>
 
20391
 
 
20392
int
 
20393
main ()
 
20394
{
 
20395
#if BYTE_ORDER != BIG_ENDIAN
 
20396
 not big endian
 
20397
#endif
 
20398
 
 
20399
  ;
 
20400
  return 0;
 
20401
}
 
20402
_ACEOF
 
20403
rm -f conftest.$ac_objext
 
20404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20405
  (eval $ac_compile) 2>conftest.er1
 
20406
  ac_status=$?
 
20407
  grep -v '^ *+' conftest.er1 >conftest.err
 
20408
  rm -f conftest.er1
 
20409
  cat conftest.err >&5
 
20410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20411
  (exit $ac_status); } &&
 
20412
         { ac_try='test -z "$ac_c_werror_flag"
 
20413
                         || test ! -s conftest.err'
 
20414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20415
  (eval $ac_try) 2>&5
 
20416
  ac_status=$?
 
20417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20418
  (exit $ac_status); }; } &&
 
20419
         { ac_try='test -s conftest.$ac_objext'
 
20420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20421
  (eval $ac_try) 2>&5
 
20422
  ac_status=$?
 
20423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20424
  (exit $ac_status); }; }; then
 
20425
  ac_cv_c_bigendian=yes
 
20426
else
 
20427
  echo "$as_me: failed program was:" >&5
 
20428
sed 's/^/| /' conftest.$ac_ext >&5
 
20429
 
 
20430
ac_cv_c_bigendian=no
 
20431
fi
 
20432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20433
else
 
20434
  echo "$as_me: failed program was:" >&5
 
20435
sed 's/^/| /' conftest.$ac_ext >&5
 
20436
 
 
20437
# It does not; compile a test program.
 
20438
if test "$cross_compiling" = yes; then
 
20439
  # try to guess the endianness by grepping values into an object file
 
20440
  ac_cv_c_bigendian=unknown
 
20441
  cat >conftest.$ac_ext <<_ACEOF
 
20442
/* confdefs.h.  */
 
20443
_ACEOF
 
20444
cat confdefs.h >>conftest.$ac_ext
 
20445
cat >>conftest.$ac_ext <<_ACEOF
 
20446
/* end confdefs.h.  */
 
20447
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
20448
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
20449
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
20450
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
20451
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
20452
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
20453
int
 
20454
main ()
 
20455
{
 
20456
 _ascii (); _ebcdic ();
 
20457
  ;
 
20458
  return 0;
 
20459
}
 
20460
_ACEOF
 
20461
rm -f conftest.$ac_objext
 
20462
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20463
  (eval $ac_compile) 2>conftest.er1
 
20464
  ac_status=$?
 
20465
  grep -v '^ *+' conftest.er1 >conftest.err
 
20466
  rm -f conftest.er1
 
20467
  cat conftest.err >&5
 
20468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20469
  (exit $ac_status); } &&
 
20470
         { ac_try='test -z "$ac_c_werror_flag"
 
20471
                         || test ! -s conftest.err'
 
20472
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20473
  (eval $ac_try) 2>&5
 
20474
  ac_status=$?
 
20475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20476
  (exit $ac_status); }; } &&
 
20477
         { ac_try='test -s conftest.$ac_objext'
 
20478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20479
  (eval $ac_try) 2>&5
 
20480
  ac_status=$?
 
20481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20482
  (exit $ac_status); }; }; then
 
20483
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
20484
  ac_cv_c_bigendian=yes
 
20485
fi
 
20486
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
20487
  if test "$ac_cv_c_bigendian" = unknown; then
 
20488
    ac_cv_c_bigendian=no
 
20489
  else
 
20490
    # finding both strings is unlikely to happen, but who knows?
 
20491
    ac_cv_c_bigendian=unknown
 
20492
  fi
 
20493
fi
 
20494
else
 
20495
  echo "$as_me: failed program was:" >&5
 
20496
sed 's/^/| /' conftest.$ac_ext >&5
 
20497
 
 
20498
fi
 
20499
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20500
else
 
20501
  cat >conftest.$ac_ext <<_ACEOF
 
20502
/* confdefs.h.  */
 
20503
_ACEOF
 
20504
cat confdefs.h >>conftest.$ac_ext
 
20505
cat >>conftest.$ac_ext <<_ACEOF
 
20506
/* end confdefs.h.  */
 
20507
int
 
20508
main ()
 
20509
{
 
20510
  /* Are we little or big endian?  From Harbison&Steele.  */
 
20511
  union
 
20512
  {
 
20513
    long l;
 
20514
    char c[sizeof (long)];
 
20515
  } u;
 
20516
  u.l = 1;
 
20517
  exit (u.c[sizeof (long) - 1] == 1);
 
20518
}
 
20519
_ACEOF
 
20520
rm -f conftest$ac_exeext
 
20521
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20522
  (eval $ac_link) 2>&5
 
20523
  ac_status=$?
 
20524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20525
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20527
  (eval $ac_try) 2>&5
 
20528
  ac_status=$?
 
20529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20530
  (exit $ac_status); }; }; then
 
20531
  ac_cv_c_bigendian=no
 
20532
else
 
20533
  echo "$as_me: program exited with status $ac_status" >&5
 
20534
echo "$as_me: failed program was:" >&5
 
20535
sed 's/^/| /' conftest.$ac_ext >&5
 
20536
 
 
20537
( exit $ac_status )
 
20538
ac_cv_c_bigendian=yes
 
20539
fi
 
20540
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20541
fi
 
20542
fi
 
20543
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20544
fi
 
20545
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
20546
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
20547
case $ac_cv_c_bigendian in
 
20548
  yes)
 
20549
 
 
20550
cat >>confdefs.h <<\_ACEOF
 
20551
#define WORDS_BIGENDIAN 1
 
20552
_ACEOF
 
20553
 ;;
 
20554
  no)
 
20555
     ;;
 
20556
  *)
 
20557
    { { echo "$as_me:$LINENO: error: unknown endianness
 
20558
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
20559
echo "$as_me: error: unknown endianness
 
20560
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
20561
   { (exit 1); exit 1; }; } ;;
 
20562
esac
 
20563
 
 
20564
else
 
20565
 
 
20566
cat >>confdefs.h <<\_ACEOF
 
20567
#define AP_UNKNOWN_BYTE_ORDER 1
 
20568
_ACEOF
 
20569
 
 
20570
fi
 
20571
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
20572
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
20573
if test "${ac_cv_c_const+set}" = set; then
 
20574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20575
else
 
20576
  cat >conftest.$ac_ext <<_ACEOF
 
20577
/* confdefs.h.  */
 
20578
_ACEOF
 
20579
cat confdefs.h >>conftest.$ac_ext
 
20580
cat >>conftest.$ac_ext <<_ACEOF
 
20581
/* end confdefs.h.  */
 
20582
 
 
20583
int
 
20584
main ()
 
20585
{
 
20586
/* FIXME: Include the comments suggested by Paul. */
 
20587
#ifndef __cplusplus
 
20588
  /* Ultrix mips cc rejects this.  */
 
20589
  typedef int charset[2];
 
20590
  const charset x;
 
20591
  /* SunOS 4.1.1 cc rejects this.  */
 
20592
  char const *const *ccp;
 
20593
  char **p;
 
20594
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
20595
  struct point {int x, y;};
 
20596
  static struct point const zero = {0,0};
 
20597
  /* AIX XL C 1.02.0.0 rejects this.
 
20598
     It does not let you subtract one const X* pointer from another in
 
20599
     an arm of an if-expression whose if-part is not a constant
 
20600
     expression */
 
20601
  const char *g = "string";
 
20602
  ccp = &g + (g ? g-g : 0);
 
20603
  /* HPUX 7.0 cc rejects these. */
 
20604
  ++ccp;
 
20605
  p = (char**) ccp;
 
20606
  ccp = (char const *const *) p;
 
20607
  { /* SCO 3.2v4 cc rejects this.  */
 
20608
    char *t;
 
20609
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
20610
 
 
20611
    *t++ = 0;
 
20612
  }
 
20613
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
20614
    int x[] = {25, 17};
 
20615
    const int *foo = &x[0];
 
20616
    ++foo;
 
20617
  }
 
20618
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
20619
    typedef const int *iptr;
 
20620
    iptr p = 0;
 
20621
    ++p;
 
20622
  }
 
20623
  { /* AIX XL C 1.02.0.0 rejects this saying
 
20624
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
20625
    struct s { int j; const int *ap[3]; };
 
20626
    struct s *b; b->j = 5;
 
20627
  }
 
20628
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
20629
    const int foo = 10;
 
20630
  }
 
20631
#endif
 
20632
 
 
20633
  ;
 
20634
  return 0;
 
20635
}
 
20636
_ACEOF
 
20637
rm -f conftest.$ac_objext
 
20638
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20639
  (eval $ac_compile) 2>conftest.er1
 
20640
  ac_status=$?
 
20641
  grep -v '^ *+' conftest.er1 >conftest.err
 
20642
  rm -f conftest.er1
 
20643
  cat conftest.err >&5
 
20644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20645
  (exit $ac_status); } &&
 
20646
         { ac_try='test -z "$ac_c_werror_flag"
 
20647
                         || test ! -s conftest.err'
 
20648
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20649
  (eval $ac_try) 2>&5
 
20650
  ac_status=$?
 
20651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20652
  (exit $ac_status); }; } &&
 
20653
         { ac_try='test -s conftest.$ac_objext'
 
20654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20655
  (eval $ac_try) 2>&5
 
20656
  ac_status=$?
 
20657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20658
  (exit $ac_status); }; }; then
 
20659
  ac_cv_c_const=yes
 
20660
else
 
20661
  echo "$as_me: failed program was:" >&5
 
20662
sed 's/^/| /' conftest.$ac_ext >&5
 
20663
 
 
20664
ac_cv_c_const=no
 
20665
fi
 
20666
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20667
fi
 
20668
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
20669
echo "${ECHO_T}$ac_cv_c_const" >&6
 
20670
if test $ac_cv_c_const = no; then
 
20671
 
 
20672
cat >>confdefs.h <<\_ACEOF
 
20673
#define const
 
20674
_ACEOF
 
20675
 
 
20676
fi
 
20677
 
 
20678
echo "$as_me:$LINENO: checking for off_t" >&5
 
20679
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
20680
if test "${ac_cv_type_off_t+set}" = set; then
 
20681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20682
else
 
20683
  cat >conftest.$ac_ext <<_ACEOF
 
20684
/* confdefs.h.  */
 
20685
_ACEOF
 
20686
cat confdefs.h >>conftest.$ac_ext
 
20687
cat >>conftest.$ac_ext <<_ACEOF
 
20688
/* end confdefs.h.  */
 
20689
$ac_includes_default
 
20690
int
 
20691
main ()
 
20692
{
 
20693
if ((off_t *) 0)
 
20694
  return 0;
 
20695
if (sizeof (off_t))
 
20696
  return 0;
 
20697
  ;
 
20698
  return 0;
 
20699
}
 
20700
_ACEOF
 
20701
rm -f conftest.$ac_objext
 
20702
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20703
  (eval $ac_compile) 2>conftest.er1
 
20704
  ac_status=$?
 
20705
  grep -v '^ *+' conftest.er1 >conftest.err
 
20706
  rm -f conftest.er1
 
20707
  cat conftest.err >&5
 
20708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20709
  (exit $ac_status); } &&
 
20710
         { ac_try='test -z "$ac_c_werror_flag"
 
20711
                         || test ! -s conftest.err'
 
20712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20713
  (eval $ac_try) 2>&5
 
20714
  ac_status=$?
 
20715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20716
  (exit $ac_status); }; } &&
 
20717
         { ac_try='test -s conftest.$ac_objext'
 
20718
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20719
  (eval $ac_try) 2>&5
 
20720
  ac_status=$?
 
20721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20722
  (exit $ac_status); }; }; then
 
20723
  ac_cv_type_off_t=yes
 
20724
else
 
20725
  echo "$as_me: failed program was:" >&5
 
20726
sed 's/^/| /' conftest.$ac_ext >&5
 
20727
 
 
20728
ac_cv_type_off_t=no
 
20729
fi
 
20730
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20731
fi
 
20732
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
20733
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
20734
if test $ac_cv_type_off_t = yes; then
 
20735
  :
 
20736
else
 
20737
 
 
20738
cat >>confdefs.h <<_ACEOF
 
20739
#define off_t long
 
20740
_ACEOF
 
20741
 
 
20742
fi
 
20743
 
 
20744
echo "$as_me:$LINENO: checking for size_t" >&5
 
20745
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
20746
if test "${ac_cv_type_size_t+set}" = set; then
 
20747
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20748
else
 
20749
  cat >conftest.$ac_ext <<_ACEOF
 
20750
/* confdefs.h.  */
 
20751
_ACEOF
 
20752
cat confdefs.h >>conftest.$ac_ext
 
20753
cat >>conftest.$ac_ext <<_ACEOF
 
20754
/* end confdefs.h.  */
 
20755
$ac_includes_default
 
20756
int
 
20757
main ()
 
20758
{
 
20759
if ((size_t *) 0)
 
20760
  return 0;
 
20761
if (sizeof (size_t))
 
20762
  return 0;
 
20763
  ;
 
20764
  return 0;
 
20765
}
 
20766
_ACEOF
 
20767
rm -f conftest.$ac_objext
 
20768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20769
  (eval $ac_compile) 2>conftest.er1
 
20770
  ac_status=$?
 
20771
  grep -v '^ *+' conftest.er1 >conftest.err
 
20772
  rm -f conftest.er1
 
20773
  cat conftest.err >&5
 
20774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20775
  (exit $ac_status); } &&
 
20776
         { ac_try='test -z "$ac_c_werror_flag"
 
20777
                         || test ! -s conftest.err'
 
20778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20779
  (eval $ac_try) 2>&5
 
20780
  ac_status=$?
 
20781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20782
  (exit $ac_status); }; } &&
 
20783
         { ac_try='test -s conftest.$ac_objext'
 
20784
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20785
  (eval $ac_try) 2>&5
 
20786
  ac_status=$?
 
20787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20788
  (exit $ac_status); }; }; then
 
20789
  ac_cv_type_size_t=yes
 
20790
else
 
20791
  echo "$as_me: failed program was:" >&5
 
20792
sed 's/^/| /' conftest.$ac_ext >&5
 
20793
 
 
20794
ac_cv_type_size_t=no
 
20795
fi
 
20796
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20797
fi
 
20798
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
20799
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
20800
if test $ac_cv_type_size_t = yes; then
 
20801
  :
 
20802
else
 
20803
 
 
20804
cat >>confdefs.h <<_ACEOF
 
20805
#define size_t unsigned
 
20806
_ACEOF
 
20807
 
 
20808
fi
 
20809
 
 
20810
 
 
20811
 
 
20812
echo "$as_me:$LINENO: checking for working memcmp" >&5
 
20813
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
 
20814
if test "${ac_cv_func_memcmp_working+set}" = set; then
 
20815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20816
else
 
20817
  if test "$cross_compiling" = yes; then
 
20818
  ac_cv_func_memcmp_working=no
 
20819
else
 
20820
  cat >conftest.$ac_ext <<_ACEOF
 
20821
/* confdefs.h.  */
 
20822
_ACEOF
 
20823
cat confdefs.h >>conftest.$ac_ext
 
20824
cat >>conftest.$ac_ext <<_ACEOF
 
20825
/* end confdefs.h.  */
 
20826
$ac_includes_default
 
20827
int
 
20828
main ()
 
20829
{
 
20830
 
 
20831
  /* Some versions of memcmp are not 8-bit clean.  */
 
20832
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
 
20833
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
 
20834
    exit (1);
 
20835
 
 
20836
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
 
20837
     or more and with at least one buffer not starting on a 4-byte boundary.
 
20838
     William Lewis provided this test program.   */
 
20839
  {
 
20840
    char foo[21];
 
20841
    char bar[21];
 
20842
    int i;
 
20843
    for (i = 0; i < 4; i++)
 
20844
      {
 
20845
        char *a = foo + i;
 
20846
        char *b = bar + i;
 
20847
        strcpy (a, "--------01111111");
 
20848
        strcpy (b, "--------10000000");
 
20849
        if (memcmp (a, b, 16) >= 0)
 
20850
          exit (1);
 
20851
      }
 
20852
    exit (0);
 
20853
  }
 
20854
 
 
20855
  ;
 
20856
  return 0;
 
20857
}
 
20858
_ACEOF
 
20859
rm -f conftest$ac_exeext
 
20860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20861
  (eval $ac_link) 2>&5
 
20862
  ac_status=$?
 
20863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20864
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20865
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20866
  (eval $ac_try) 2>&5
 
20867
  ac_status=$?
 
20868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20869
  (exit $ac_status); }; }; then
 
20870
  ac_cv_func_memcmp_working=yes
 
20871
else
 
20872
  echo "$as_me: program exited with status $ac_status" >&5
 
20873
echo "$as_me: failed program was:" >&5
 
20874
sed 's/^/| /' conftest.$ac_ext >&5
 
20875
 
 
20876
( exit $ac_status )
 
20877
ac_cv_func_memcmp_working=no
 
20878
fi
 
20879
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20880
fi
 
20881
fi
 
20882
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
 
20883
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
 
20884
test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
 
20885
    "memcmp.$ac_objext"   | \
 
20886
  *" memcmp.$ac_objext"   | \
 
20887
    "memcmp.$ac_objext "* | \
 
20888
  *" memcmp.$ac_objext "* ) ;;
 
20889
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
 
20890
esac
 
20891
 
 
20892
 
 
20893
 
 
20894
 
 
20895
for ac_header in stdlib.h unistd.h
 
20896
do
 
20897
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20898
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20899
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20900
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20901
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20902
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20903
fi
 
20904
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20905
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20906
else
 
20907
  # Is the header compilable?
 
20908
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20909
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20910
cat >conftest.$ac_ext <<_ACEOF
 
20911
/* confdefs.h.  */
 
20912
_ACEOF
 
20913
cat confdefs.h >>conftest.$ac_ext
 
20914
cat >>conftest.$ac_ext <<_ACEOF
 
20915
/* end confdefs.h.  */
 
20916
$ac_includes_default
 
20917
#include <$ac_header>
 
20918
_ACEOF
 
20919
rm -f conftest.$ac_objext
 
20920
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20921
  (eval $ac_compile) 2>conftest.er1
 
20922
  ac_status=$?
 
20923
  grep -v '^ *+' conftest.er1 >conftest.err
 
20924
  rm -f conftest.er1
 
20925
  cat conftest.err >&5
 
20926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20927
  (exit $ac_status); } &&
 
20928
         { ac_try='test -z "$ac_c_werror_flag"
 
20929
                         || test ! -s conftest.err'
 
20930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20931
  (eval $ac_try) 2>&5
 
20932
  ac_status=$?
 
20933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20934
  (exit $ac_status); }; } &&
 
20935
         { ac_try='test -s conftest.$ac_objext'
 
20936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20937
  (eval $ac_try) 2>&5
 
20938
  ac_status=$?
 
20939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20940
  (exit $ac_status); }; }; then
 
20941
  ac_header_compiler=yes
 
20942
else
 
20943
  echo "$as_me: failed program was:" >&5
 
20944
sed 's/^/| /' conftest.$ac_ext >&5
 
20945
 
 
20946
ac_header_compiler=no
 
20947
fi
 
20948
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20949
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20950
echo "${ECHO_T}$ac_header_compiler" >&6
 
20951
 
 
20952
# Is the header present?
 
20953
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20954
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20955
cat >conftest.$ac_ext <<_ACEOF
 
20956
/* confdefs.h.  */
 
20957
_ACEOF
 
20958
cat confdefs.h >>conftest.$ac_ext
 
20959
cat >>conftest.$ac_ext <<_ACEOF
 
20960
/* end confdefs.h.  */
 
20961
#include <$ac_header>
 
20962
_ACEOF
 
20963
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20964
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20965
  ac_status=$?
 
20966
  grep -v '^ *+' conftest.er1 >conftest.err
 
20967
  rm -f conftest.er1
 
20968
  cat conftest.err >&5
 
20969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20970
  (exit $ac_status); } >/dev/null; then
 
20971
  if test -s conftest.err; then
 
20972
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20973
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20974
  else
 
20975
    ac_cpp_err=
 
20976
  fi
 
20977
else
 
20978
  ac_cpp_err=yes
 
20979
fi
 
20980
if test -z "$ac_cpp_err"; then
 
20981
  ac_header_preproc=yes
 
20982
else
 
20983
  echo "$as_me: failed program was:" >&5
 
20984
sed 's/^/| /' conftest.$ac_ext >&5
 
20985
 
 
20986
  ac_header_preproc=no
 
20987
fi
 
20988
rm -f conftest.err conftest.$ac_ext
 
20989
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20990
echo "${ECHO_T}$ac_header_preproc" >&6
 
20991
 
 
20992
# So?  What about this header?
 
20993
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20994
  yes:no: )
 
20995
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20996
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20997
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20998
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20999
    ac_header_preproc=yes
 
21000
    ;;
 
21001
  no:yes:* )
 
21002
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21003
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21004
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21005
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21006
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21007
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21008
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21009
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21010
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21011
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21012
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21013
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21014
    (
 
21015
      cat <<\_ASBOX
 
21016
## ------------------------------------------ ##
 
21017
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21018
## ------------------------------------------ ##
 
21019
_ASBOX
 
21020
    ) |
 
21021
      sed "s/^/$as_me: WARNING:     /" >&2
 
21022
    ;;
 
21023
esac
 
21024
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21025
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21026
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21028
else
 
21029
  eval "$as_ac_Header=\$ac_header_preproc"
 
21030
fi
 
21031
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21032
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21033
 
 
21034
fi
 
21035
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21036
  cat >>confdefs.h <<_ACEOF
 
21037
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21038
_ACEOF
 
21039
 
 
21040
fi
 
21041
 
 
21042
done
 
21043
 
 
21044
 
 
21045
for ac_func in getpagesize
 
21046
do
 
21047
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21048
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21049
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21050
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21052
else
 
21053
  cat >conftest.$ac_ext <<_ACEOF
 
21054
/* confdefs.h.  */
 
21055
_ACEOF
 
21056
cat confdefs.h >>conftest.$ac_ext
 
21057
cat >>conftest.$ac_ext <<_ACEOF
 
21058
/* end confdefs.h.  */
 
21059
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21060
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21061
#define $ac_func innocuous_$ac_func
 
21062
 
 
21063
/* System header to define __stub macros and hopefully few prototypes,
 
21064
    which can conflict with char $ac_func (); below.
 
21065
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21066
    <limits.h> exists even on freestanding compilers.  */
 
21067
 
 
21068
#ifdef __STDC__
 
21069
# include <limits.h>
 
21070
#else
 
21071
# include <assert.h>
 
21072
#endif
 
21073
 
 
21074
#undef $ac_func
 
21075
 
 
21076
/* Override any gcc2 internal prototype to avoid an error.  */
 
21077
#ifdef __cplusplus
 
21078
extern "C"
 
21079
{
 
21080
#endif
 
21081
/* We use char because int might match the return type of a gcc2
 
21082
   builtin and then its argument prototype would still apply.  */
 
21083
char $ac_func ();
 
21084
/* The GNU C library defines this for functions which it implements
 
21085
    to always fail with ENOSYS.  Some functions are actually named
 
21086
    something starting with __ and the normal name is an alias.  */
 
21087
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21088
choke me
 
21089
#else
 
21090
char (*f) () = $ac_func;
 
21091
#endif
 
21092
#ifdef __cplusplus
 
21093
}
 
21094
#endif
 
21095
 
 
21096
int
 
21097
main ()
 
21098
{
 
21099
return f != $ac_func;
 
21100
  ;
 
21101
  return 0;
 
21102
}
 
21103
_ACEOF
 
21104
rm -f conftest.$ac_objext conftest$ac_exeext
 
21105
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21106
  (eval $ac_link) 2>conftest.er1
 
21107
  ac_status=$?
 
21108
  grep -v '^ *+' conftest.er1 >conftest.err
 
21109
  rm -f conftest.er1
 
21110
  cat conftest.err >&5
 
21111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21112
  (exit $ac_status); } &&
 
21113
         { ac_try='test -z "$ac_c_werror_flag"
 
21114
                         || test ! -s conftest.err'
 
21115
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21116
  (eval $ac_try) 2>&5
 
21117
  ac_status=$?
 
21118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21119
  (exit $ac_status); }; } &&
 
21120
         { ac_try='test -s conftest$ac_exeext'
 
21121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21122
  (eval $ac_try) 2>&5
 
21123
  ac_status=$?
 
21124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21125
  (exit $ac_status); }; }; then
 
21126
  eval "$as_ac_var=yes"
 
21127
else
 
21128
  echo "$as_me: failed program was:" >&5
 
21129
sed 's/^/| /' conftest.$ac_ext >&5
 
21130
 
 
21131
eval "$as_ac_var=no"
 
21132
fi
 
21133
rm -f conftest.err conftest.$ac_objext \
 
21134
      conftest$ac_exeext conftest.$ac_ext
 
21135
fi
 
21136
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21137
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21138
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21139
  cat >>confdefs.h <<_ACEOF
 
21140
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21141
_ACEOF
 
21142
 
 
21143
fi
 
21144
done
 
21145
 
 
21146
echo "$as_me:$LINENO: checking for working mmap" >&5
 
21147
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
21148
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
21149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21150
else
 
21151
  if test "$cross_compiling" = yes; then
 
21152
  ac_cv_func_mmap_fixed_mapped=no
 
21153
else
 
21154
  cat >conftest.$ac_ext <<_ACEOF
 
21155
/* confdefs.h.  */
 
21156
_ACEOF
 
21157
cat confdefs.h >>conftest.$ac_ext
 
21158
cat >>conftest.$ac_ext <<_ACEOF
 
21159
/* end confdefs.h.  */
 
21160
$ac_includes_default
 
21161
/* malloc might have been renamed as rpl_malloc. */
 
21162
#undef malloc
 
21163
 
 
21164
/* Thanks to Mike Haertel and Jim Avera for this test.
 
21165
   Here is a matrix of mmap possibilities:
 
21166
        mmap private not fixed
 
21167
        mmap private fixed at somewhere currently unmapped
 
21168
        mmap private fixed at somewhere already mapped
 
21169
        mmap shared not fixed
 
21170
        mmap shared fixed at somewhere currently unmapped
 
21171
        mmap shared fixed at somewhere already mapped
 
21172
   For private mappings, we should verify that changes cannot be read()
 
21173
   back from the file, nor mmap's back from the file at a different
 
21174
   address.  (There have been systems where private was not correctly
 
21175
   implemented like the infamous i386 svr4.0, and systems where the
 
21176
   VM page cache was not coherent with the file system buffer cache
 
21177
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
21178
   For shared mappings, we should conversely verify that changes get
 
21179
   propagated back to all the places they're supposed to be.
 
21180
 
 
21181
   Grep wants private fixed already mapped.
 
21182
   The main things grep needs to know about mmap are:
 
21183
   * does it exist and is it safe to write into the mmap'd area
 
21184
   * how to use it (BSD variants)  */
 
21185
 
 
21186
#include <fcntl.h>
 
21187
#include <sys/mman.h>
 
21188
 
 
21189
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
21190
char *malloc ();
 
21191
#endif
 
21192
 
 
21193
/* This mess was copied from the GNU getpagesize.h.  */
 
21194
#if !HAVE_GETPAGESIZE
 
21195
/* Assume that all systems that can run configure have sys/param.h.  */
 
21196
# if !HAVE_SYS_PARAM_H
 
21197
#  define HAVE_SYS_PARAM_H 1
 
21198
# endif
 
21199
 
 
21200
# ifdef _SC_PAGESIZE
 
21201
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
21202
# else /* no _SC_PAGESIZE */
 
21203
#  if HAVE_SYS_PARAM_H
 
21204
#   include <sys/param.h>
 
21205
#   ifdef EXEC_PAGESIZE
 
21206
#    define getpagesize() EXEC_PAGESIZE
 
21207
#   else /* no EXEC_PAGESIZE */
 
21208
#    ifdef NBPG
 
21209
#     define getpagesize() NBPG * CLSIZE
 
21210
#     ifndef CLSIZE
 
21211
#      define CLSIZE 1
 
21212
#     endif /* no CLSIZE */
 
21213
#    else /* no NBPG */
 
21214
#     ifdef NBPC
 
21215
#      define getpagesize() NBPC
 
21216
#     else /* no NBPC */
 
21217
#      ifdef PAGESIZE
 
21218
#       define getpagesize() PAGESIZE
 
21219
#      endif /* PAGESIZE */
 
21220
#     endif /* no NBPC */
 
21221
#    endif /* no NBPG */
 
21222
#   endif /* no EXEC_PAGESIZE */
 
21223
#  else /* no HAVE_SYS_PARAM_H */
 
21224
#   define getpagesize() 8192   /* punt totally */
 
21225
#  endif /* no HAVE_SYS_PARAM_H */
 
21226
# endif /* no _SC_PAGESIZE */
 
21227
 
 
21228
#endif /* no HAVE_GETPAGESIZE */
 
21229
 
 
21230
int
 
21231
main ()
 
21232
{
 
21233
  char *data, *data2, *data3;
 
21234
  int i, pagesize;
 
21235
  int fd;
 
21236
 
 
21237
  pagesize = getpagesize ();
 
21238
 
 
21239
  /* First, make a file with some known garbage in it. */
 
21240
  data = (char *) malloc (pagesize);
 
21241
  if (!data)
 
21242
    exit (1);
 
21243
  for (i = 0; i < pagesize; ++i)
 
21244
    *(data + i) = rand ();
 
21245
  umask (0);
 
21246
  fd = creat ("conftest.mmap", 0600);
 
21247
  if (fd < 0)
 
21248
    exit (1);
 
21249
  if (write (fd, data, pagesize) != pagesize)
 
21250
    exit (1);
 
21251
  close (fd);
 
21252
 
 
21253
  /* Next, try to mmap the file at a fixed address which already has
 
21254
     something else allocated at it.  If we can, also make sure that
 
21255
     we see the same garbage.  */
 
21256
  fd = open ("conftest.mmap", O_RDWR);
 
21257
  if (fd < 0)
 
21258
    exit (1);
 
21259
  data2 = (char *) malloc (2 * pagesize);
 
21260
  if (!data2)
 
21261
    exit (1);
 
21262
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
21263
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
21264
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
21265
    exit (1);
 
21266
  for (i = 0; i < pagesize; ++i)
 
21267
    if (*(data + i) != *(data2 + i))
 
21268
      exit (1);
 
21269
 
 
21270
  /* Finally, make sure that changes to the mapped area do not
 
21271
     percolate back to the file as seen by read().  (This is a bug on
 
21272
     some variants of i386 svr4.0.)  */
 
21273
  for (i = 0; i < pagesize; ++i)
 
21274
    *(data2 + i) = *(data2 + i) + 1;
 
21275
  data3 = (char *) malloc (pagesize);
 
21276
  if (!data3)
 
21277
    exit (1);
 
21278
  if (read (fd, data3, pagesize) != pagesize)
 
21279
    exit (1);
 
21280
  for (i = 0; i < pagesize; ++i)
 
21281
    if (*(data + i) != *(data3 + i))
 
21282
      exit (1);
 
21283
  close (fd);
 
21284
  exit (0);
 
21285
}
 
21286
_ACEOF
 
21287
rm -f conftest$ac_exeext
 
21288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21289
  (eval $ac_link) 2>&5
 
21290
  ac_status=$?
 
21291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21292
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21294
  (eval $ac_try) 2>&5
 
21295
  ac_status=$?
 
21296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21297
  (exit $ac_status); }; }; then
 
21298
  ac_cv_func_mmap_fixed_mapped=yes
 
21299
else
 
21300
  echo "$as_me: program exited with status $ac_status" >&5
 
21301
echo "$as_me: failed program was:" >&5
 
21302
sed 's/^/| /' conftest.$ac_ext >&5
 
21303
 
 
21304
( exit $ac_status )
 
21305
ac_cv_func_mmap_fixed_mapped=no
 
21306
fi
 
21307
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21308
fi
 
21309
fi
 
21310
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
21311
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
21312
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
21313
 
 
21314
cat >>confdefs.h <<\_ACEOF
 
21315
#define HAVE_MMAP 1
 
21316
_ACEOF
 
21317
 
 
21318
fi
 
21319
rm -f conftest.mmap
 
21320
 
 
21321
 
 
21322
if test -z "$HAVE_MMAP"; then
 
21323
FILEMAP_OBJ=unixfilemap.o
 
21324
else
 
21325
FILEMAP_OBJ=readfilemap.o
 
21326
fi
 
21327
 
 
21328
 
 
21329
 
 
21330
for ac_func in memmove bcopy
 
21331
do
 
21332
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21333
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21334
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21335
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21337
else
 
21338
  cat >conftest.$ac_ext <<_ACEOF
 
21339
/* confdefs.h.  */
 
21340
_ACEOF
 
21341
cat confdefs.h >>conftest.$ac_ext
 
21342
cat >>conftest.$ac_ext <<_ACEOF
 
21343
/* end confdefs.h.  */
 
21344
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21345
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21346
#define $ac_func innocuous_$ac_func
 
21347
 
 
21348
/* System header to define __stub macros and hopefully few prototypes,
 
21349
    which can conflict with char $ac_func (); below.
 
21350
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21351
    <limits.h> exists even on freestanding compilers.  */
 
21352
 
 
21353
#ifdef __STDC__
 
21354
# include <limits.h>
 
21355
#else
 
21356
# include <assert.h>
 
21357
#endif
 
21358
 
 
21359
#undef $ac_func
 
21360
 
 
21361
/* Override any gcc2 internal prototype to avoid an error.  */
 
21362
#ifdef __cplusplus
 
21363
extern "C"
 
21364
{
 
21365
#endif
 
21366
/* We use char because int might match the return type of a gcc2
 
21367
   builtin and then its argument prototype would still apply.  */
 
21368
char $ac_func ();
 
21369
/* The GNU C library defines this for functions which it implements
 
21370
    to always fail with ENOSYS.  Some functions are actually named
 
21371
    something starting with __ and the normal name is an alias.  */
 
21372
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21373
choke me
 
21374
#else
 
21375
char (*f) () = $ac_func;
 
21376
#endif
 
21377
#ifdef __cplusplus
 
21378
}
 
21379
#endif
 
21380
 
 
21381
int
 
21382
main ()
 
21383
{
 
21384
return f != $ac_func;
 
21385
  ;
 
21386
  return 0;
 
21387
}
 
21388
_ACEOF
 
21389
rm -f conftest.$ac_objext conftest$ac_exeext
 
21390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21391
  (eval $ac_link) 2>conftest.er1
 
21392
  ac_status=$?
 
21393
  grep -v '^ *+' conftest.er1 >conftest.err
 
21394
  rm -f conftest.er1
 
21395
  cat conftest.err >&5
 
21396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21397
  (exit $ac_status); } &&
 
21398
         { ac_try='test -z "$ac_c_werror_flag"
 
21399
                         || test ! -s conftest.err'
 
21400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21401
  (eval $ac_try) 2>&5
 
21402
  ac_status=$?
 
21403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21404
  (exit $ac_status); }; } &&
 
21405
         { ac_try='test -s conftest$ac_exeext'
 
21406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21407
  (eval $ac_try) 2>&5
 
21408
  ac_status=$?
 
21409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21410
  (exit $ac_status); }; }; then
 
21411
  eval "$as_ac_var=yes"
 
21412
else
 
21413
  echo "$as_me: failed program was:" >&5
 
21414
sed 's/^/| /' conftest.$ac_ext >&5
 
21415
 
 
21416
eval "$as_ac_var=no"
 
21417
fi
 
21418
rm -f conftest.err conftest.$ac_objext \
 
21419
      conftest$ac_exeext conftest.$ac_ext
 
21420
fi
 
21421
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21422
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21423
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21424
  cat >>confdefs.h <<_ACEOF
 
21425
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21426
_ACEOF
 
21427
 
 
21428
fi
 
21429
done
 
21430
 
 
21431
 
 
21432
                              ac_config_files="$ac_config_files Makefile lib/Makefile lib/expat.h"
 
21433
cat >confcache <<\_ACEOF
 
21434
# This file is a shell script that caches the results of configure
 
21435
# tests run on this system so they can be shared between configure
 
21436
# scripts and configure runs, see configure's option --config-cache.
 
21437
# It is not useful on other systems.  If it contains results you don't
 
21438
# want to keep, you may remove or edit it.
 
21439
#
 
21440
# config.status only pays attention to the cache file if you give it
 
21441
# the --recheck option to rerun configure.
 
21442
#
 
21443
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
21444
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
21445
# following values.
 
21446
 
 
21447
_ACEOF
 
21448
 
 
21449
# The following way of writing the cache mishandles newlines in values,
 
21450
# but we know of no workaround that is simple, portable, and efficient.
 
21451
# So, don't put newlines in cache variables' values.
 
21452
# Ultrix sh set writes to stderr and can't be redirected directly,
 
21453
# and sets the high bit in the cache file unless we assign to the vars.
 
21454
{
 
21455
  (set) 2>&1 |
 
21456
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
21457
    *ac_space=\ *)
 
21458
      # `set' does not quote correctly, so add quotes (double-quote
 
21459
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
21460
      sed -n \
 
21461
        "s/'/'\\\\''/g;
 
21462
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
21463
      ;;
 
21464
    *)
 
21465
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
21466
      sed -n \
 
21467
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
21468
      ;;
 
21469
    esac;
 
21470
} |
 
21471
  sed '
 
21472
     t clear
 
21473
     : clear
 
21474
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
21475
     t end
 
21476
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21477
     : end' >>confcache
 
21478
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
21479
  if test -w $cache_file; then
 
21480
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
21481
    cat confcache >$cache_file
 
21482
  else
 
21483
    echo "not updating unwritable cache $cache_file"
 
21484
  fi
 
21485
fi
 
21486
rm -f confcache
 
21487
 
 
21488
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
21489
# Let make expand exec_prefix.
 
21490
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
21491
 
 
21492
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21493
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21494
# trailing colons and then remove the whole line if VPATH becomes empty
 
21495
# (actually we leave an empty line to preserve line numbers).
 
21496
if test "x$srcdir" = x.; then
 
21497
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21498
s/:*\$(srcdir):*/:/;
 
21499
s/:*\${srcdir}:*/:/;
 
21500
s/:*@srcdir@:*/:/;
 
21501
s/^\([^=]*=[     ]*\):*/\1/;
 
21502
s/:*$//;
 
21503
s/^[^=]*=[       ]*$//;
 
21504
}'
 
21505
fi
 
21506
 
 
21507
DEFS=-DHAVE_CONFIG_H
 
21508
 
 
21509
ac_libobjs=
 
21510
ac_ltlibobjs=
 
21511
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
21512
  # 1. Remove the extension, and $U if already installed.
 
21513
  ac_i=`echo "$ac_i" |
 
21514
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
21515
  # 2. Add them.
 
21516
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
21517
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
21518
done
 
21519
LIBOBJS=$ac_libobjs
 
21520
 
 
21521
LTLIBOBJS=$ac_ltlibobjs
 
21522
 
 
21523
 
 
21524
 
 
21525
: ${CONFIG_STATUS=./config.status}
 
21526
ac_clean_files_save=$ac_clean_files
 
21527
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
21528
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
21529
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
21530
cat >$CONFIG_STATUS <<_ACEOF
 
21531
#! $SHELL
 
21532
# Generated by $as_me.
 
21533
# Run this file to recreate the current configuration.
 
21534
# Compiler output produced by configure, useful for debugging
 
21535
# configure, is in config.log if it exists.
 
21536
 
 
21537
debug=false
 
21538
ac_cs_recheck=false
 
21539
ac_cs_silent=false
 
21540
SHELL=\${CONFIG_SHELL-$SHELL}
 
21541
_ACEOF
 
21542
 
 
21543
cat >>$CONFIG_STATUS <<\_ACEOF
 
21544
## --------------------- ##
 
21545
## M4sh Initialization.  ##
 
21546
## --------------------- ##
 
21547
 
 
21548
# Be Bourne compatible
 
21549
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
21550
  emulate sh
 
21551
  NULLCMD=:
 
21552
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21553
  # is contrary to our usage.  Disable this feature.
 
21554
  alias -g '${1+"$@"}'='"$@"'
 
21555
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
21556
  set -o posix
 
21557
fi
 
21558
DUALCASE=1; export DUALCASE # for MKS sh
 
21559
 
 
21560
# Support unset when possible.
 
21561
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
21562
  as_unset=unset
 
21563
else
 
21564
  as_unset=false
 
21565
fi
 
21566
 
 
21567
 
 
21568
# Work around bugs in pre-3.0 UWIN ksh.
 
21569
$as_unset ENV MAIL MAILPATH
 
21570
PS1='$ '
 
21571
PS2='> '
 
21572
PS4='+ '
 
21573
 
 
21574
# NLS nuisances.
 
21575
for as_var in \
 
21576
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
21577
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
21578
  LC_TELEPHONE LC_TIME
 
21579
do
 
21580
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
21581
    eval $as_var=C; export $as_var
 
21582
  else
 
21583
    $as_unset $as_var
 
21584
  fi
 
21585
done
 
21586
 
 
21587
# Required to use basename.
 
21588
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21589
  as_expr=expr
 
21590
else
 
21591
  as_expr=false
 
21592
fi
 
21593
 
 
21594
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
21595
  as_basename=basename
 
21596
else
 
21597
  as_basename=false
 
21598
fi
 
21599
 
 
21600
 
 
21601
# Name of the executable.
 
21602
as_me=`$as_basename "$0" ||
 
21603
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
21604
         X"$0" : 'X\(//\)$' \| \
 
21605
         X"$0" : 'X\(/\)$' \| \
 
21606
         .     : '\(.\)' 2>/dev/null ||
 
21607
echo X/"$0" |
 
21608
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
21609
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
21610
          /^X\/\(\/\).*/{ s//\1/; q; }
 
21611
          s/.*/./; q'`
 
21612
 
 
21613
 
 
21614
# PATH needs CR, and LINENO needs CR and PATH.
 
21615
# Avoid depending upon Character Ranges.
 
21616
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
21617
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
21618
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
21619
as_cr_digits='0123456789'
 
21620
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
21621
 
 
21622
# The user is always right.
 
21623
if test "${PATH_SEPARATOR+set}" != set; then
 
21624
  echo "#! /bin/sh" >conf$$.sh
 
21625
  echo  "exit 0"   >>conf$$.sh
 
21626
  chmod +x conf$$.sh
 
21627
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21628
    PATH_SEPARATOR=';'
 
21629
  else
 
21630
    PATH_SEPARATOR=:
 
21631
  fi
 
21632
  rm -f conf$$.sh
 
21633
fi
 
21634
 
 
21635
 
 
21636
  as_lineno_1=$LINENO
 
21637
  as_lineno_2=$LINENO
 
21638
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
21639
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21640
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
21641
  # Find who we are.  Look in the path if we contain no path at all
 
21642
  # relative or not.
 
21643
  case $0 in
 
21644
    *[\\/]* ) as_myself=$0 ;;
 
21645
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21646
for as_dir in $PATH
 
21647
do
 
21648
  IFS=$as_save_IFS
 
21649
  test -z "$as_dir" && as_dir=.
 
21650
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
21651
done
 
21652
 
 
21653
       ;;
 
21654
  esac
 
21655
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
21656
  # in which case we are not to be found in the path.
 
21657
  if test "x$as_myself" = x; then
 
21658
    as_myself=$0
 
21659
  fi
 
21660
  if test ! -f "$as_myself"; then
 
21661
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
21662
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
21663
   { (exit 1); exit 1; }; }
 
21664
  fi
 
21665
  case $CONFIG_SHELL in
 
21666
  '')
 
21667
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21668
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
21669
do
 
21670
  IFS=$as_save_IFS
 
21671
  test -z "$as_dir" && as_dir=.
 
21672
  for as_base in sh bash ksh sh5; do
 
21673
         case $as_dir in
 
21674
         /*)
 
21675
           if ("$as_dir/$as_base" -c '
 
21676
  as_lineno_1=$LINENO
 
21677
  as_lineno_2=$LINENO
 
21678
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
21679
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21680
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
21681
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
21682
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
21683
             CONFIG_SHELL=$as_dir/$as_base
 
21684
             export CONFIG_SHELL
 
21685
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
21686
           fi;;
 
21687
         esac
 
21688
       done
 
21689
done
 
21690
;;
 
21691
  esac
 
21692
 
 
21693
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
21694
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
21695
  # line-number line before each line; the second 'sed' does the real
 
21696
  # work.  The second script uses 'N' to pair each line-number line
 
21697
  # with the numbered line, and appends trailing '-' during
 
21698
  # substitution so that $LINENO is not a special case at line end.
 
21699
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
21700
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
21701
  sed '=' <$as_myself |
 
21702
    sed '
 
21703
      N
 
21704
      s,$,-,
 
21705
      : loop
 
21706
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
21707
      t loop
 
21708
      s,-$,,
 
21709
      s,^['$as_cr_digits']*\n,,
 
21710
    ' >$as_me.lineno &&
 
21711
  chmod +x $as_me.lineno ||
 
21712
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
21713
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
21714
   { (exit 1); exit 1; }; }
 
21715
 
 
21716
  # Don't try to exec as it changes $[0], causing all sort of problems
 
21717
  # (the dirname of $[0] is not the place where we might find the
 
21718
  # original and so on.  Autoconf is especially sensible to this).
 
21719
  . ./$as_me.lineno
 
21720
  # Exit status is that of the last command.
 
21721
  exit
 
21722
}
 
21723
 
 
21724
 
 
21725
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
21726
  *c*,-n*) ECHO_N= ECHO_C='
 
21727
' ECHO_T='      ' ;;
 
21728
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
21729
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
21730
esac
 
21731
 
 
21732
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21733
  as_expr=expr
 
21734
else
 
21735
  as_expr=false
 
21736
fi
 
21737
 
 
21738
rm -f conf$$ conf$$.exe conf$$.file
 
21739
echo >conf$$.file
 
21740
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
21741
  # We could just check for DJGPP; but this test a) works b) is more generic
 
21742
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
21743
  if test -f conf$$.exe; then
 
21744
    # Don't use ln at all; we don't have any links
 
21745
    as_ln_s='cp -p'
 
21746
  else
 
21747
    as_ln_s='ln -s'
 
21748
  fi
 
21749
elif ln conf$$.file conf$$ 2>/dev/null; then
 
21750
  as_ln_s=ln
 
21751
else
 
21752
  as_ln_s='cp -p'
 
21753
fi
 
21754
rm -f conf$$ conf$$.exe conf$$.file
 
21755
 
 
21756
if mkdir -p . 2>/dev/null; then
 
21757
  as_mkdir_p=:
 
21758
else
 
21759
  test -d ./-p && rmdir ./-p
 
21760
  as_mkdir_p=false
 
21761
fi
 
21762
 
 
21763
as_executable_p="test -f"
 
21764
 
 
21765
# Sed expression to map a string onto a valid CPP name.
 
21766
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
21767
 
 
21768
# Sed expression to map a string onto a valid variable name.
 
21769
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
21770
 
 
21771
 
 
21772
# IFS
 
21773
# We need space, tab and new line, in precisely that order.
 
21774
as_nl='
 
21775
'
 
21776
IFS="   $as_nl"
 
21777
 
 
21778
# CDPATH.
 
21779
$as_unset CDPATH
 
21780
 
 
21781
exec 6>&1
 
21782
 
 
21783
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
21784
# report actual input values of CONFIG_FILES etc. instead of their
 
21785
# values after options handling.  Logging --version etc. is OK.
 
21786
exec 5>>config.log
 
21787
{
 
21788
  echo
 
21789
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
21790
## Running $as_me. ##
 
21791
_ASBOX
 
21792
} >&5
 
21793
cat >&5 <<_CSEOF
 
21794
 
 
21795
This file was extended by $as_me, which was
 
21796
generated by GNU Autoconf 2.59.  Invocation command line was
 
21797
 
 
21798
  CONFIG_FILES    = $CONFIG_FILES
 
21799
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
21800
  CONFIG_LINKS    = $CONFIG_LINKS
 
21801
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
21802
  $ $0 $@
 
21803
 
 
21804
_CSEOF
 
21805
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
21806
echo >&5
 
21807
_ACEOF
 
21808
 
 
21809
# Files that config.status was made for.
 
21810
if test -n "$ac_config_files"; then
 
21811
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
21812
fi
 
21813
 
 
21814
if test -n "$ac_config_headers"; then
 
21815
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
21816
fi
 
21817
 
 
21818
if test -n "$ac_config_links"; then
 
21819
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
21820
fi
 
21821
 
 
21822
if test -n "$ac_config_commands"; then
 
21823
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
21824
fi
 
21825
 
 
21826
cat >>$CONFIG_STATUS <<\_ACEOF
 
21827
 
 
21828
ac_cs_usage="\
 
21829
\`$as_me' instantiates files from templates according to the
 
21830
current configuration.
 
21831
 
 
21832
Usage: $0 [OPTIONS] [FILE]...
 
21833
 
 
21834
  -h, --help       print this help, then exit
 
21835
  -V, --version    print version number, then exit
 
21836
  -q, --quiet      do not print progress messages
 
21837
  -d, --debug      don't remove temporary files
 
21838
      --recheck    update $as_me by reconfiguring in the same conditions
 
21839
  --file=FILE[:TEMPLATE]
 
21840
                   instantiate the configuration file FILE
 
21841
  --header=FILE[:TEMPLATE]
 
21842
                   instantiate the configuration header FILE
 
21843
 
 
21844
Configuration files:
 
21845
$config_files
 
21846
 
 
21847
Configuration headers:
 
21848
$config_headers
 
21849
 
 
21850
Report bugs to <bug-autoconf@gnu.org>."
 
21851
_ACEOF
 
21852
 
 
21853
cat >>$CONFIG_STATUS <<_ACEOF
 
21854
ac_cs_version="\\
 
21855
config.status
 
21856
configured by $0, generated by GNU Autoconf 2.59,
 
21857
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
21858
 
 
21859
Copyright (C) 2003 Free Software Foundation, Inc.
 
21860
This config.status script is free software; the Free Software Foundation
 
21861
gives unlimited permission to copy, distribute and modify it."
 
21862
srcdir=$srcdir
 
21863
INSTALL="$INSTALL"
 
21864
_ACEOF
 
21865
 
 
21866
cat >>$CONFIG_STATUS <<\_ACEOF
 
21867
# If no file are specified by the user, then we need to provide default
 
21868
# value.  By we need to know if files were specified by the user.
 
21869
ac_need_defaults=:
 
21870
while test $# != 0
 
21871
do
 
21872
  case $1 in
 
21873
  --*=*)
 
21874
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
21875
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
21876
    ac_shift=:
 
21877
    ;;
 
21878
  -*)
 
21879
    ac_option=$1
 
21880
    ac_optarg=$2
 
21881
    ac_shift=shift
 
21882
    ;;
 
21883
  *) # This is not an option, so the user has probably given explicit
 
21884
     # arguments.
 
21885
     ac_option=$1
 
21886
     ac_need_defaults=false;;
 
21887
  esac
 
21888
 
 
21889
  case $ac_option in
 
21890
  # Handling of the options.
 
21891
_ACEOF
 
21892
cat >>$CONFIG_STATUS <<\_ACEOF
 
21893
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
21894
    ac_cs_recheck=: ;;
 
21895
  --version | --vers* | -V )
 
21896
    echo "$ac_cs_version"; exit 0 ;;
 
21897
  --he | --h)
 
21898
    # Conflict between --help and --header
 
21899
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
21900
Try \`$0 --help' for more information." >&5
 
21901
echo "$as_me: error: ambiguous option: $1
 
21902
Try \`$0 --help' for more information." >&2;}
 
21903
   { (exit 1); exit 1; }; };;
 
21904
  --help | --hel | -h )
 
21905
    echo "$ac_cs_usage"; exit 0 ;;
 
21906
  --debug | --d* | -d )
 
21907
    debug=: ;;
 
21908
  --file | --fil | --fi | --f )
 
21909
    $ac_shift
 
21910
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
21911
    ac_need_defaults=false;;
 
21912
  --header | --heade | --head | --hea )
 
21913
    $ac_shift
 
21914
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
21915
    ac_need_defaults=false;;
 
21916
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
21917
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
21918
    ac_cs_silent=: ;;
 
21919
 
 
21920
  # This is an error.
 
21921
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
21922
Try \`$0 --help' for more information." >&5
 
21923
echo "$as_me: error: unrecognized option: $1
 
21924
Try \`$0 --help' for more information." >&2;}
 
21925
   { (exit 1); exit 1; }; } ;;
 
21926
 
 
21927
  *) ac_config_targets="$ac_config_targets $1" ;;
 
21928
 
 
21929
  esac
 
21930
  shift
 
21931
done
 
21932
 
 
21933
ac_configure_extra_args=
 
21934
 
 
21935
if $ac_cs_silent; then
 
21936
  exec 6>/dev/null
 
21937
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
21938
fi
 
21939
 
 
21940
_ACEOF
 
21941
cat >>$CONFIG_STATUS <<_ACEOF
 
21942
if \$ac_cs_recheck; then
 
21943
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21944
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21945
fi
 
21946
 
 
21947
_ACEOF
 
21948
 
 
21949
 
 
21950
 
 
21951
 
 
21952
 
 
21953
cat >>$CONFIG_STATUS <<\_ACEOF
 
21954
for ac_config_target in $ac_config_targets
 
21955
do
 
21956
  case "$ac_config_target" in
 
21957
  # Handling of arguments.
 
21958
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21959
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
21960
  "lib/expat.h" ) CONFIG_FILES="$CONFIG_FILES lib/expat.h" ;;
 
21961
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21962
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
21963
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
21964
   { (exit 1); exit 1; }; };;
 
21965
  esac
 
21966
done
 
21967
 
 
21968
# If the user did not use the arguments to specify the items to instantiate,
 
21969
# then the envvar interface is used.  Set only those that are not.
 
21970
# We use the long form for the default assignment because of an extremely
 
21971
# bizarre bug on SunOS 4.1.3.
 
21972
if $ac_need_defaults; then
 
21973
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
21974
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
21975
fi
 
21976
 
 
21977
# Have a temporary directory for convenience.  Make it in the build tree
 
21978
# simply because there is no reason to put it here, and in addition,
 
21979
# creating and moving files from /tmp can sometimes cause problems.
 
21980
# Create a temporary directory, and hook for its removal unless debugging.
 
21981
$debug ||
 
21982
{
 
21983
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
21984
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
21985
}
 
21986
 
 
21987
# Create a (secure) tmp directory for tmp files.
 
21988
 
 
21989
{
 
21990
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
21991
  test -n "$tmp" && test -d "$tmp"
 
21992
}  ||
 
21993
{
 
21994
  tmp=./confstat$$-$RANDOM
 
21995
  (umask 077 && mkdir $tmp)
 
21996
} ||
 
21997
{
 
21998
   echo "$me: cannot create a temporary directory in ." >&2
 
21999
   { (exit 1); exit 1; }
 
22000
}
 
22001
 
 
22002
_ACEOF
 
22003
 
 
22004
cat >>$CONFIG_STATUS <<_ACEOF
 
22005
 
 
22006
#
 
22007
# CONFIG_FILES section.
 
22008
#
 
22009
 
 
22010
# No need to generate the scripts if there are no CONFIG_FILES.
 
22011
# This happens for instance when ./config.status config.h
 
22012
if test -n "\$CONFIG_FILES"; then
 
22013
  # Protect against being on the right side of a sed subst in config.status.
 
22014
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
22015
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
22016
s,@SHELL@,$SHELL,;t t
 
22017
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
22018
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
22019
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
22020
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
22021
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
22022
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
22023
s,@exec_prefix@,$exec_prefix,;t t
 
22024
s,@prefix@,$prefix,;t t
 
22025
s,@program_transform_name@,$program_transform_name,;t t
 
22026
s,@bindir@,$bindir,;t t
 
22027
s,@sbindir@,$sbindir,;t t
 
22028
s,@libexecdir@,$libexecdir,;t t
 
22029
s,@datadir@,$datadir,;t t
 
22030
s,@sysconfdir@,$sysconfdir,;t t
 
22031
s,@sharedstatedir@,$sharedstatedir,;t t
 
22032
s,@localstatedir@,$localstatedir,;t t
 
22033
s,@libdir@,$libdir,;t t
 
22034
s,@includedir@,$includedir,;t t
 
22035
s,@oldincludedir@,$oldincludedir,;t t
 
22036
s,@infodir@,$infodir,;t t
 
22037
s,@mandir@,$mandir,;t t
 
22038
s,@build_alias@,$build_alias,;t t
 
22039
s,@host_alias@,$host_alias,;t t
 
22040
s,@target_alias@,$target_alias,;t t
 
22041
s,@DEFS@,$DEFS,;t t
 
22042
s,@ECHO_C@,$ECHO_C,;t t
 
22043
s,@ECHO_N@,$ECHO_N,;t t
 
22044
s,@ECHO_T@,$ECHO_T,;t t
 
22045
s,@LIBS@,$LIBS,;t t
 
22046
s,@build@,$build,;t t
 
22047
s,@build_cpu@,$build_cpu,;t t
 
22048
s,@build_vendor@,$build_vendor,;t t
 
22049
s,@build_os@,$build_os,;t t
 
22050
s,@host@,$host,;t t
 
22051
s,@host_cpu@,$host_cpu,;t t
 
22052
s,@host_vendor@,$host_vendor,;t t
 
22053
s,@host_os@,$host_os,;t t
 
22054
s,@target@,$target,;t t
 
22055
s,@target_cpu@,$target_cpu,;t t
 
22056
s,@target_vendor@,$target_vendor,;t t
 
22057
s,@target_os@,$target_os,;t t
 
22058
s,@CC@,$CC,;t t
 
22059
s,@CFLAGS@,$CFLAGS,;t t
 
22060
s,@LDFLAGS@,$LDFLAGS,;t t
 
22061
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
22062
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
22063
s,@EXEEXT@,$EXEEXT,;t t
 
22064
s,@OBJEXT@,$OBJEXT,;t t
 
22065
s,@EGREP@,$EGREP,;t t
 
22066
s,@LN_S@,$LN_S,;t t
 
22067
s,@ECHO@,$ECHO,;t t
 
22068
s,@AR@,$AR,;t t
 
22069
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
22070
s,@RANLIB@,$RANLIB,;t t
 
22071
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
22072
s,@STRIP@,$STRIP,;t t
 
22073
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
22074
s,@DLLTOOL@,$DLLTOOL,;t t
 
22075
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
 
22076
s,@AS@,$AS,;t t
 
22077
s,@ac_ct_AS@,$ac_ct_AS,;t t
 
22078
s,@OBJDUMP@,$OBJDUMP,;t t
 
22079
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
 
22080
s,@CPP@,$CPP,;t t
 
22081
s,@CXX@,$CXX,;t t
 
22082
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
22083
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
22084
s,@CXXCPP@,$CXXCPP,;t t
 
22085
s,@F77@,$F77,;t t
 
22086
s,@FFLAGS@,$FFLAGS,;t t
 
22087
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
22088
s,@LIBTOOL@,$LIBTOOL,;t t
 
22089
s,@blddir@,$blddir,;t t
 
22090
s,@PACKAGE@,$PACKAGE,;t t
 
22091
s,@VERSION@,$VERSION,;t t
 
22092
s,@EXPAT_MAJOR_VERSION@,$EXPAT_MAJOR_VERSION,;t t
 
22093
s,@EXPAT_MINOR_VERSION@,$EXPAT_MINOR_VERSION,;t t
 
22094
s,@EXPAT_EDIT@,$EXPAT_EDIT,;t t
 
22095
s,@LIBCURRENT@,$LIBCURRENT,;t t
 
22096
s,@LIBREVISION@,$LIBREVISION,;t t
 
22097
s,@LIBAGE@,$LIBAGE,;t t
 
22098
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
22099
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
22100
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
22101
s,@LIBOBJS@,$LIBOBJS,;t t
 
22102
s,@FILEMAP_OBJ@,$FILEMAP_OBJ,;t t
 
22103
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
22104
CEOF
 
22105
 
 
22106
_ACEOF
 
22107
 
 
22108
  cat >>$CONFIG_STATUS <<\_ACEOF
 
22109
  # Split the substitutions into bite-sized pieces for seds with
 
22110
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
22111
  ac_max_sed_lines=48
 
22112
  ac_sed_frag=1 # Number of current file.
 
22113
  ac_beg=1 # First line for current file.
 
22114
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
22115
  ac_more_lines=:
 
22116
  ac_sed_cmds=
 
22117
  while $ac_more_lines; do
 
22118
    if test $ac_beg -gt 1; then
 
22119
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
22120
    else
 
22121
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
22122
    fi
 
22123
    if test ! -s $tmp/subs.frag; then
 
22124
      ac_more_lines=false
 
22125
    else
 
22126
      # The purpose of the label and of the branching condition is to
 
22127
      # speed up the sed processing (if there are no `@' at all, there
 
22128
      # is no need to browse any of the substitutions).
 
22129
      # These are the two extra sed commands mentioned above.
 
22130
      (echo ':t
 
22131
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
22132
      if test -z "$ac_sed_cmds"; then
 
22133
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
22134
      else
 
22135
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
22136
      fi
 
22137
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
22138
      ac_beg=$ac_end
 
22139
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
22140
    fi
 
22141
  done
 
22142
  if test -z "$ac_sed_cmds"; then
 
22143
    ac_sed_cmds=cat
 
22144
  fi
 
22145
fi # test -n "$CONFIG_FILES"
 
22146
 
 
22147
_ACEOF
 
22148
cat >>$CONFIG_STATUS <<\_ACEOF
 
22149
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
22150
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22151
  case $ac_file in
 
22152
  - | *:- | *:-:* ) # input from stdin
 
22153
        cat >$tmp/stdin
 
22154
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22155
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22156
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22157
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22158
  * )   ac_file_in=$ac_file.in ;;
 
22159
  esac
 
22160
 
 
22161
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
22162
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
22163
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22164
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22165
         X"$ac_file" : 'X\(//\)$' \| \
 
22166
         X"$ac_file" : 'X\(/\)' \| \
 
22167
         .     : '\(.\)' 2>/dev/null ||
 
22168
echo X"$ac_file" |
 
22169
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22170
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22171
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22172
          /^X\(\/\).*/{ s//\1/; q; }
 
22173
          s/.*/./; q'`
 
22174
  { if $as_mkdir_p; then
 
22175
    mkdir -p "$ac_dir"
 
22176
  else
 
22177
    as_dir="$ac_dir"
 
22178
    as_dirs=
 
22179
    while test ! -d "$as_dir"; do
 
22180
      as_dirs="$as_dir $as_dirs"
 
22181
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22182
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22183
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22184
         X"$as_dir" : 'X\(//\)$' \| \
 
22185
         X"$as_dir" : 'X\(/\)' \| \
 
22186
         .     : '\(.\)' 2>/dev/null ||
 
22187
echo X"$as_dir" |
 
22188
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22189
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22190
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22191
          /^X\(\/\).*/{ s//\1/; q; }
 
22192
          s/.*/./; q'`
 
22193
    done
 
22194
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22195
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22196
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22197
   { (exit 1); exit 1; }; }; }
 
22198
 
 
22199
  ac_builddir=.
 
22200
 
 
22201
if test "$ac_dir" != .; then
 
22202
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
22203
  # A "../" for each directory in $ac_dir_suffix.
 
22204
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22205
else
 
22206
  ac_dir_suffix= ac_top_builddir=
 
22207
fi
 
22208
 
 
22209
case $srcdir in
 
22210
  .)  # No --srcdir option.  We are building in place.
 
22211
    ac_srcdir=.
 
22212
    if test -z "$ac_top_builddir"; then
 
22213
       ac_top_srcdir=.
 
22214
    else
 
22215
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22216
    fi ;;
 
22217
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22218
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22219
    ac_top_srcdir=$srcdir ;;
 
22220
  *) # Relative path.
 
22221
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22222
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22223
esac
 
22224
 
 
22225
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22226
# the directories may not exist.
 
22227
case `pwd` in
 
22228
.) ac_abs_builddir="$ac_dir";;
 
22229
*)
 
22230
  case "$ac_dir" in
 
22231
  .) ac_abs_builddir=`pwd`;;
 
22232
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22233
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22234
  esac;;
 
22235
esac
 
22236
case $ac_abs_builddir in
 
22237
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22238
*)
 
22239
  case ${ac_top_builddir}. in
 
22240
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22241
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22242
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22243
  esac;;
 
22244
esac
 
22245
case $ac_abs_builddir in
 
22246
.) ac_abs_srcdir=$ac_srcdir;;
 
22247
*)
 
22248
  case $ac_srcdir in
 
22249
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22250
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22251
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22252
  esac;;
 
22253
esac
 
22254
case $ac_abs_builddir in
 
22255
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22256
*)
 
22257
  case $ac_top_srcdir in
 
22258
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22259
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22260
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22261
  esac;;
 
22262
esac
 
22263
 
 
22264
 
 
22265
  case $INSTALL in
 
22266
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
22267
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
22268
  esac
 
22269
 
 
22270
  if test x"$ac_file" != x-; then
 
22271
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22272
echo "$as_me: creating $ac_file" >&6;}
 
22273
    rm -f "$ac_file"
 
22274
  fi
 
22275
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22276
  # use $as_me), people would be surprised to read:
 
22277
  #    /* config.h.  Generated by config.status.  */
 
22278
  if test x"$ac_file" = x-; then
 
22279
    configure_input=
 
22280
  else
 
22281
    configure_input="$ac_file.  "
 
22282
  fi
 
22283
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
22284
                                     sed 's,.*/,,'` by configure."
 
22285
 
 
22286
  # First look for the input files in the build tree, otherwise in the
 
22287
  # src tree.
 
22288
  ac_file_inputs=`IFS=:
 
22289
    for f in $ac_file_in; do
 
22290
      case $f in
 
22291
      -) echo $tmp/stdin ;;
 
22292
      [\\/$]*)
 
22293
         # Absolute (can't be DOS-style, as IFS=:)
 
22294
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22295
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22296
   { (exit 1); exit 1; }; }
 
22297
         echo "$f";;
 
22298
      *) # Relative
 
22299
         if test -f "$f"; then
 
22300
           # Build tree
 
22301
           echo "$f"
 
22302
         elif test -f "$srcdir/$f"; then
 
22303
           # Source tree
 
22304
           echo "$srcdir/$f"
 
22305
         else
 
22306
           # /dev/null tree
 
22307
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22308
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22309
   { (exit 1); exit 1; }; }
 
22310
         fi;;
 
22311
      esac
 
22312
    done` || { (exit 1); exit 1; }
 
22313
_ACEOF
 
22314
cat >>$CONFIG_STATUS <<_ACEOF
 
22315
  sed "$ac_vpsub
 
22316
$extrasub
 
22317
_ACEOF
 
22318
cat >>$CONFIG_STATUS <<\_ACEOF
 
22319
:t
 
22320
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22321
s,@configure_input@,$configure_input,;t t
 
22322
s,@srcdir@,$ac_srcdir,;t t
 
22323
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
22324
s,@top_srcdir@,$ac_top_srcdir,;t t
 
22325
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
22326
s,@builddir@,$ac_builddir,;t t
 
22327
s,@abs_builddir@,$ac_abs_builddir,;t t
 
22328
s,@top_builddir@,$ac_top_builddir,;t t
 
22329
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
22330
s,@INSTALL@,$ac_INSTALL,;t t
 
22331
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
22332
  rm -f $tmp/stdin
 
22333
  if test x"$ac_file" != x-; then
 
22334
    mv $tmp/out $ac_file
 
22335
  else
 
22336
    cat $tmp/out
 
22337
    rm -f $tmp/out
 
22338
  fi
 
22339
 
 
22340
done
 
22341
_ACEOF
 
22342
cat >>$CONFIG_STATUS <<\_ACEOF
 
22343
 
 
22344
#
 
22345
# CONFIG_HEADER section.
 
22346
#
 
22347
 
 
22348
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
22349
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
22350
#
 
22351
# ac_d sets the value in "#define NAME VALUE" lines.
 
22352
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
22353
ac_dB='[         ].*$,\1#\2'
 
22354
ac_dC=' '
 
22355
ac_dD=',;t'
 
22356
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
22357
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
22358
ac_uB='$,\1#\2define\3'
 
22359
ac_uC=' '
 
22360
ac_uD=',;t'
 
22361
 
 
22362
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
22363
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22364
  case $ac_file in
 
22365
  - | *:- | *:-:* ) # input from stdin
 
22366
        cat >$tmp/stdin
 
22367
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22368
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22369
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22370
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22371
  * )   ac_file_in=$ac_file.in ;;
 
22372
  esac
 
22373
 
 
22374
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22375
echo "$as_me: creating $ac_file" >&6;}
 
22376
 
 
22377
  # First look for the input files in the build tree, otherwise in the
 
22378
  # src tree.
 
22379
  ac_file_inputs=`IFS=:
 
22380
    for f in $ac_file_in; do
 
22381
      case $f in
 
22382
      -) echo $tmp/stdin ;;
 
22383
      [\\/$]*)
 
22384
         # Absolute (can't be DOS-style, as IFS=:)
 
22385
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22386
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22387
   { (exit 1); exit 1; }; }
 
22388
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
22389
         echo "$f";;
 
22390
      *) # Relative
 
22391
         if test -f "$f"; then
 
22392
           # Build tree
 
22393
           echo "$f"
 
22394
         elif test -f "$srcdir/$f"; then
 
22395
           # Source tree
 
22396
           echo "$srcdir/$f"
 
22397
         else
 
22398
           # /dev/null tree
 
22399
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22400
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22401
   { (exit 1); exit 1; }; }
 
22402
         fi;;
 
22403
      esac
 
22404
    done` || { (exit 1); exit 1; }
 
22405
  # Remove the trailing spaces.
 
22406
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
22407
 
 
22408
_ACEOF
 
22409
 
 
22410
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
22411
# `conftest.undefs', that substitutes the proper values into
 
22412
# config.h.in to produce config.h.  The first handles `#define'
 
22413
# templates, and the second `#undef' templates.
 
22414
# And first: Protect against being on the right side of a sed subst in
 
22415
# config.status.  Protect against being in an unquoted here document
 
22416
# in config.status.
 
22417
rm -f conftest.defines conftest.undefs
 
22418
# Using a here document instead of a string reduces the quoting nightmare.
 
22419
# Putting comments in sed scripts is not portable.
 
22420
#
 
22421
# `end' is used to avoid that the second main sed command (meant for
 
22422
# 0-ary CPP macros) applies to n-ary macro definitions.
 
22423
# See the Autoconf documentation for `clear'.
 
22424
cat >confdef2sed.sed <<\_ACEOF
 
22425
s/[\\&,]/\\&/g
 
22426
s,[\\$`],\\&,g
 
22427
t clear
 
22428
: clear
 
22429
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
22430
t end
 
22431
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
22432
: end
 
22433
_ACEOF
 
22434
# If some macros were called several times there might be several times
 
22435
# the same #defines, which is useless.  Nevertheless, we may not want to
 
22436
# sort them, since we want the *last* AC-DEFINE to be honored.
 
22437
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
22438
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
22439
rm -f confdef2sed.sed
 
22440
 
 
22441
# This sed command replaces #undef with comments.  This is necessary, for
 
22442
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
22443
# on some systems where configure will not decide to define it.
 
22444
cat >>conftest.undefs <<\_ACEOF
 
22445
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
22446
_ACEOF
 
22447
 
 
22448
# Break up conftest.defines because some shells have a limit on the size
 
22449
# of here documents, and old seds have small limits too (100 cmds).
 
22450
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
22451
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
22452
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
22453
echo '  :' >>$CONFIG_STATUS
 
22454
rm -f conftest.tail
 
22455
while grep . conftest.defines >/dev/null
 
22456
do
 
22457
  # Write a limited-size here document to $tmp/defines.sed.
 
22458
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
22459
  # Speed up: don't consider the non `#define' lines.
 
22460
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
22461
  # Work around the forget-to-reset-the-flag bug.
 
22462
  echo 't clr' >>$CONFIG_STATUS
 
22463
  echo ': clr' >>$CONFIG_STATUS
 
22464
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
22465
  echo 'CEOF
 
22466
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
22467
  rm -f $tmp/in
 
22468
  mv $tmp/out $tmp/in
 
22469
' >>$CONFIG_STATUS
 
22470
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
22471
  rm -f conftest.defines
 
22472
  mv conftest.tail conftest.defines
 
22473
done
 
22474
rm -f conftest.defines
 
22475
echo '  fi # grep' >>$CONFIG_STATUS
 
22476
echo >>$CONFIG_STATUS
 
22477
 
 
22478
# Break up conftest.undefs because some shells have a limit on the size
 
22479
# of here documents, and old seds have small limits too (100 cmds).
 
22480
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
22481
rm -f conftest.tail
 
22482
while grep . conftest.undefs >/dev/null
 
22483
do
 
22484
  # Write a limited-size here document to $tmp/undefs.sed.
 
22485
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
22486
  # Speed up: don't consider the non `#undef'
 
22487
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
22488
  # Work around the forget-to-reset-the-flag bug.
 
22489
  echo 't clr' >>$CONFIG_STATUS
 
22490
  echo ': clr' >>$CONFIG_STATUS
 
22491
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
22492
  echo 'CEOF
 
22493
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
22494
  rm -f $tmp/in
 
22495
  mv $tmp/out $tmp/in
 
22496
' >>$CONFIG_STATUS
 
22497
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
22498
  rm -f conftest.undefs
 
22499
  mv conftest.tail conftest.undefs
 
22500
done
 
22501
rm -f conftest.undefs
 
22502
 
 
22503
cat >>$CONFIG_STATUS <<\_ACEOF
 
22504
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22505
  # use $as_me), people would be surprised to read:
 
22506
  #    /* config.h.  Generated by config.status.  */
 
22507
  if test x"$ac_file" = x-; then
 
22508
    echo "/* Generated by configure.  */" >$tmp/config.h
 
22509
  else
 
22510
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
22511
  fi
 
22512
  cat $tmp/in >>$tmp/config.h
 
22513
  rm -f $tmp/in
 
22514
  if test x"$ac_file" != x-; then
 
22515
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
22516
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
22517
echo "$as_me: $ac_file is unchanged" >&6;}
 
22518
    else
 
22519
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
22520
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22521
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22522
         X"$ac_file" : 'X\(//\)$' \| \
 
22523
         X"$ac_file" : 'X\(/\)' \| \
 
22524
         .     : '\(.\)' 2>/dev/null ||
 
22525
echo X"$ac_file" |
 
22526
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22527
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22528
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22529
          /^X\(\/\).*/{ s//\1/; q; }
 
22530
          s/.*/./; q'`
 
22531
      { if $as_mkdir_p; then
 
22532
    mkdir -p "$ac_dir"
 
22533
  else
 
22534
    as_dir="$ac_dir"
 
22535
    as_dirs=
 
22536
    while test ! -d "$as_dir"; do
 
22537
      as_dirs="$as_dir $as_dirs"
 
22538
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22539
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22540
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22541
         X"$as_dir" : 'X\(//\)$' \| \
 
22542
         X"$as_dir" : 'X\(/\)' \| \
 
22543
         .     : '\(.\)' 2>/dev/null ||
 
22544
echo X"$as_dir" |
 
22545
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22546
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22547
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22548
          /^X\(\/\).*/{ s//\1/; q; }
 
22549
          s/.*/./; q'`
 
22550
    done
 
22551
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22552
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22553
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22554
   { (exit 1); exit 1; }; }; }
 
22555
 
 
22556
      rm -f $ac_file
 
22557
      mv $tmp/config.h $ac_file
 
22558
    fi
 
22559
  else
 
22560
    cat $tmp/config.h
 
22561
    rm -f $tmp/config.h
 
22562
  fi
 
22563
done
 
22564
_ACEOF
 
22565
 
 
22566
cat >>$CONFIG_STATUS <<\_ACEOF
 
22567
 
 
22568
{ (exit 0); exit 0; }
 
22569
_ACEOF
 
22570
chmod +x $CONFIG_STATUS
 
22571
ac_clean_files=$ac_clean_files_save
 
22572
 
 
22573
 
 
22574
# configure is writing to config.log, and then calls config.status.
 
22575
# config.status does its own redirection, appending to config.log.
 
22576
# Unfortunately, on DOS this fails, as config.log is still kept open
 
22577
# by configure, so config.status won't be able to write to it; its
 
22578
# output is simply discarded.  So we exec the FD to /dev/null,
 
22579
# effectively closing config.log, so it can be properly (re)opened and
 
22580
# appended to by config.status.  When coming back to configure, we
 
22581
# need to make the FD available again.
 
22582
if test "$no_create" != yes; then
 
22583
  ac_cs_success=:
 
22584
  ac_config_status_args=
 
22585
  test "$silent" = yes &&
 
22586
    ac_config_status_args="$ac_config_status_args --quiet"
 
22587
  exec 5>/dev/null
 
22588
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
22589
  exec 5>>config.log
 
22590
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
22591
  # would make configure fail if this is the last instruction.
 
22592
  $ac_cs_success || { (exit 1); exit 1; }
 
22593
fi
 
22594