~ubuntu-branches/ubuntu/lucid/libdmx/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Stone
  • Date: 2005-07-23 00:27:06 UTC
  • Revision ID: james.westby@ubuntu.com-20050723002706-gsdqrcrjekudn09a
Tags: upstream-7.0.0
ImportĀ upstreamĀ versionĀ 7.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59 for libdmx 7.0.0.
 
4
#
 
5
# Report bugs to <sandmann@redhat.com>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
 
 
247
# Check that we are running under the correct shell.
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
 
 
250
case X$ECHO in
 
251
X*--fallback-echo)
 
252
  # Remove one level of quotation (which was required for Make).
 
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
254
  ;;
 
255
esac
 
256
 
 
257
echo=${ECHO-echo}
 
258
if test "X$1" = X--no-reexec; then
 
259
  # Discard the --no-reexec flag, and continue.
 
260
  shift
 
261
elif test "X$1" = X--fallback-echo; then
 
262
  # Avoid inline document here, it may be left over
 
263
  :
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $echo works!
 
266
  :
 
267
else
 
268
  # Restart under the correct shell.
 
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
270
fi
 
271
 
 
272
if test "X$1" = X--fallback-echo; then
 
273
  # used as fallback echo
 
274
  shift
 
275
  cat <<EOF
 
276
$*
 
277
EOF
 
278
  exit 0
 
279
fi
 
280
 
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
282
# if CDPATH is set.
 
283
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
284
 
 
285
if test -z "$ECHO"; then
 
286
if test "X${echo_test_string+set}" != Xset; then
 
287
# find a string as large as possible, as long as the shell can cope with it
 
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
290
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
291
       echo_test_string="`eval $cmd`" &&
 
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
293
    then
 
294
      break
 
295
    fi
 
296
  done
 
297
fi
 
298
 
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
302
  :
 
303
else
 
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
305
  # backslashes.  This makes it impossible to quote backslashes using
 
306
  #   echo "$something" | sed 's/\\/\\\\/g'
 
307
  #
 
308
  # So, first we look for a working echo in the user's PATH.
 
309
 
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
 
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
317
      echo="$dir/echo"
 
318
      break
 
319
    fi
 
320
  done
 
321
  IFS="$lt_save_ifs"
 
322
 
 
323
  if test "X$echo" = Xecho; then
 
324
    # We didn't find a better echo, so look for alternatives.
 
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      # This shell has a builtin print -r that does the trick.
 
329
      echo='print -r'
 
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
332
      # If we have ksh, try running configure again with it.
 
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
334
      export ORIGINAL_CONFIG_SHELL
 
335
      CONFIG_SHELL=/bin/ksh
 
336
      export CONFIG_SHELL
 
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
338
    else
 
339
      # Try using printf.
 
340
      echo='printf %s\n'
 
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
344
        # Cool, printf works
 
345
        :
 
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = 'X\t' &&
 
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
351
        export CONFIG_SHELL
 
352
        SHELL="$CONFIG_SHELL"
 
353
        export SHELL
 
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
360
      else
 
361
        # maybe with a smaller string...
 
362
        prev=:
 
363
 
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
366
          then
 
367
            break
 
368
          fi
 
369
          prev="$cmd"
 
370
        done
 
371
 
 
372
        if test "$prev" != 'sed 50q "$0"'; then
 
373
          echo_test_string=`eval $prev`
 
374
          export echo_test_string
 
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
376
        else
 
377
          # Oops.  We lost completely, so just stick with echo.
 
378
          echo=echo
 
379
        fi
 
380
      fi
 
381
    fi
 
382
  fi
 
383
fi
 
384
fi
 
385
 
 
386
# Copy echo and quote the copy suitably for passing to libtool from
 
387
# the Makefile, instead of quoting the original, which is used later.
 
388
ECHO=$echo
 
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
391
fi
 
392
 
 
393
 
 
394
 
 
395
 
 
396
tagnames=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
 
400
# Name of the host.
 
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
402
# so uname gets run too.
 
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
404
 
 
405
exec 6>&1
 
406
 
 
407
#
 
408
# Initializations.
 
409
#
 
410
ac_default_prefix=/usr/local
 
411
ac_config_libobj_dir=.
 
412
cross_compiling=no
 
413
subdirs=
 
414
MFLAGS=
 
415
MAKEFLAGS=
 
416
SHELL=${CONFIG_SHELL-/bin/sh}
 
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
 
423
# Identity of this package.
 
424
PACKAGE_NAME='libdmx'
 
425
PACKAGE_TARNAME='libdmx'
 
426
PACKAGE_VERSION='7.0.0'
 
427
PACKAGE_STRING='libdmx 7.0.0'
 
428
PACKAGE_BUGREPORT='sandmann@redhat.com'
 
429
 
 
430
# Factoring default headers for most tests.
 
431
ac_includes_default="\
 
432
#include <stdio.h>
 
433
#if HAVE_SYS_TYPES_H
 
434
# include <sys/types.h>
 
435
#endif
 
436
#if HAVE_SYS_STAT_H
 
437
# include <sys/stat.h>
 
438
#endif
 
439
#if STDC_HEADERS
 
440
# include <stdlib.h>
 
441
# include <stddef.h>
 
442
#else
 
443
# if HAVE_STDLIB_H
 
444
#  include <stdlib.h>
 
445
# endif
 
446
#endif
 
447
#if HAVE_STRING_H
 
448
# if !STDC_HEADERS && HAVE_MEMORY_H
 
449
#  include <memory.h>
 
450
# endif
 
451
# include <string.h>
 
452
#endif
 
453
#if HAVE_STRINGS_H
 
454
# include <strings.h>
 
455
#endif
 
456
#if HAVE_INTTYPES_H
 
457
# include <inttypes.h>
 
458
#else
 
459
# if HAVE_STDINT_H
 
460
#  include <stdint.h>
 
461
# endif
 
462
#endif
 
463
#if HAVE_UNISTD_H
 
464
# include <unistd.h>
 
465
#endif"
 
466
 
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG DEP_CFLAGS DEP_LIBS LIBOBJS LTLIBOBJS'
 
468
ac_subst_files=''
 
469
 
 
470
# Initialize some variables set by options.
 
471
ac_init_help=
 
472
ac_init_version=false
 
473
# The variables have the same names as the options, with
 
474
# dashes changed to underlines.
 
475
cache_file=/dev/null
 
476
exec_prefix=NONE
 
477
no_create=
 
478
no_recursion=
 
479
prefix=NONE
 
480
program_prefix=NONE
 
481
program_suffix=NONE
 
482
program_transform_name=s,x,x,
 
483
silent=
 
484
site=
 
485
srcdir=
 
486
verbose=
 
487
x_includes=NONE
 
488
x_libraries=NONE
 
489
 
 
490
# Installation directory options.
 
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
492
# and all the variables that are supposed to be based on exec_prefix
 
493
# by default will actually change.
 
494
# Use braces instead of parens because sh, perl, etc. also accept them.
 
495
bindir='${exec_prefix}/bin'
 
496
sbindir='${exec_prefix}/sbin'
 
497
libexecdir='${exec_prefix}/libexec'
 
498
datadir='${prefix}/share'
 
499
sysconfdir='${prefix}/etc'
 
500
sharedstatedir='${prefix}/com'
 
501
localstatedir='${prefix}/var'
 
502
libdir='${exec_prefix}/lib'
 
503
includedir='${prefix}/include'
 
504
oldincludedir='/usr/include'
 
505
infodir='${prefix}/info'
 
506
mandir='${prefix}/man'
 
507
 
 
508
ac_prev=
 
509
for ac_option
 
510
do
 
511
  # If the previous option needs an argument, assign it.
 
512
  if test -n "$ac_prev"; then
 
513
    eval "$ac_prev=\$ac_option"
 
514
    ac_prev=
 
515
    continue
 
516
  fi
 
517
 
 
518
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
519
 
 
520
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
521
 
 
522
  case $ac_option in
 
523
 
 
524
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
525
    ac_prev=bindir ;;
 
526
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
527
    bindir=$ac_optarg ;;
 
528
 
 
529
  -build | --build | --buil | --bui | --bu)
 
530
    ac_prev=build_alias ;;
 
531
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
532
    build_alias=$ac_optarg ;;
 
533
 
 
534
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
535
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
536
    ac_prev=cache_file ;;
 
537
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
538
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
539
    cache_file=$ac_optarg ;;
 
540
 
 
541
  --config-cache | -C)
 
542
    cache_file=config.cache ;;
 
543
 
 
544
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
545
    ac_prev=datadir ;;
 
546
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
547
  | --da=*)
 
548
    datadir=$ac_optarg ;;
 
549
 
 
550
  -disable-* | --disable-*)
 
551
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
557
    eval "enable_$ac_feature=no" ;;
 
558
 
 
559
  -enable-* | --enable-*)
 
560
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
561
    # Reject names that are not valid shell variable names.
 
562
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
563
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
564
   { (exit 1); exit 1; }; }
 
565
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
566
    case $ac_option in
 
567
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
568
      *) ac_optarg=yes ;;
 
569
    esac
 
570
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
571
 
 
572
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
573
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
574
  | --exec | --exe | --ex)
 
575
    ac_prev=exec_prefix ;;
 
576
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
577
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
578
  | --exec=* | --exe=* | --ex=*)
 
579
    exec_prefix=$ac_optarg ;;
 
580
 
 
581
  -gas | --gas | --ga | --g)
 
582
    # Obsolete; use --with-gas.
 
583
    with_gas=yes ;;
 
584
 
 
585
  -help | --help | --hel | --he | -h)
 
586
    ac_init_help=long ;;
 
587
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
588
    ac_init_help=recursive ;;
 
589
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
590
    ac_init_help=short ;;
 
591
 
 
592
  -host | --host | --hos | --ho)
 
593
    ac_prev=host_alias ;;
 
594
  -host=* | --host=* | --hos=* | --ho=*)
 
595
    host_alias=$ac_optarg ;;
 
596
 
 
597
  -includedir | --includedir | --includedi | --included | --include \
 
598
  | --includ | --inclu | --incl | --inc)
 
599
    ac_prev=includedir ;;
 
600
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
601
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
602
    includedir=$ac_optarg ;;
 
603
 
 
604
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
605
    ac_prev=infodir ;;
 
606
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
607
    infodir=$ac_optarg ;;
 
608
 
 
609
  -libdir | --libdir | --libdi | --libd)
 
610
    ac_prev=libdir ;;
 
611
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
612
    libdir=$ac_optarg ;;
 
613
 
 
614
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
615
  | --libexe | --libex | --libe)
 
616
    ac_prev=libexecdir ;;
 
617
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
618
  | --libexe=* | --libex=* | --libe=*)
 
619
    libexecdir=$ac_optarg ;;
 
620
 
 
621
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
622
  | --localstate | --localstat | --localsta | --localst \
 
623
  | --locals | --local | --loca | --loc | --lo)
 
624
    ac_prev=localstatedir ;;
 
625
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
626
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
627
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
628
    localstatedir=$ac_optarg ;;
 
629
 
 
630
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
631
    ac_prev=mandir ;;
 
632
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
633
    mandir=$ac_optarg ;;
 
634
 
 
635
  -nfp | --nfp | --nf)
 
636
    # Obsolete; use --without-fp.
 
637
    with_fp=no ;;
 
638
 
 
639
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
640
  | --no-cr | --no-c | -n)
 
641
    no_create=yes ;;
 
642
 
 
643
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
644
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
645
    no_recursion=yes ;;
 
646
 
 
647
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
648
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
649
  | --oldin | --oldi | --old | --ol | --o)
 
650
    ac_prev=oldincludedir ;;
 
651
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
652
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
653
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
654
    oldincludedir=$ac_optarg ;;
 
655
 
 
656
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
657
    ac_prev=prefix ;;
 
658
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
659
    prefix=$ac_optarg ;;
 
660
 
 
661
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
662
  | --program-pre | --program-pr | --program-p)
 
663
    ac_prev=program_prefix ;;
 
664
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
665
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
666
    program_prefix=$ac_optarg ;;
 
667
 
 
668
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
669
  | --program-suf | --program-su | --program-s)
 
670
    ac_prev=program_suffix ;;
 
671
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
672
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
673
    program_suffix=$ac_optarg ;;
 
674
 
 
675
  -program-transform-name | --program-transform-name \
 
676
  | --program-transform-nam | --program-transform-na \
 
677
  | --program-transform-n | --program-transform- \
 
678
  | --program-transform | --program-transfor \
 
679
  | --program-transfo | --program-transf \
 
680
  | --program-trans | --program-tran \
 
681
  | --progr-tra | --program-tr | --program-t)
 
682
    ac_prev=program_transform_name ;;
 
683
  -program-transform-name=* | --program-transform-name=* \
 
684
  | --program-transform-nam=* | --program-transform-na=* \
 
685
  | --program-transform-n=* | --program-transform-=* \
 
686
  | --program-transform=* | --program-transfor=* \
 
687
  | --program-transfo=* | --program-transf=* \
 
688
  | --program-trans=* | --program-tran=* \
 
689
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
690
    program_transform_name=$ac_optarg ;;
 
691
 
 
692
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
693
  | -silent | --silent | --silen | --sile | --sil)
 
694
    silent=yes ;;
 
695
 
 
696
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
697
    ac_prev=sbindir ;;
 
698
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
699
  | --sbi=* | --sb=*)
 
700
    sbindir=$ac_optarg ;;
 
701
 
 
702
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
703
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
704
  | --sharedst | --shareds | --shared | --share | --shar \
 
705
  | --sha | --sh)
 
706
    ac_prev=sharedstatedir ;;
 
707
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
708
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
709
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
710
  | --sha=* | --sh=*)
 
711
    sharedstatedir=$ac_optarg ;;
 
712
 
 
713
  -site | --site | --sit)
 
714
    ac_prev=site ;;
 
715
  -site=* | --site=* | --sit=*)
 
716
    site=$ac_optarg ;;
 
717
 
 
718
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
719
    ac_prev=srcdir ;;
 
720
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
721
    srcdir=$ac_optarg ;;
 
722
 
 
723
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
724
  | --syscon | --sysco | --sysc | --sys | --sy)
 
725
    ac_prev=sysconfdir ;;
 
726
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
727
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
728
    sysconfdir=$ac_optarg ;;
 
729
 
 
730
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
731
    ac_prev=target_alias ;;
 
732
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
733
    target_alias=$ac_optarg ;;
 
734
 
 
735
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
736
    verbose=yes ;;
 
737
 
 
738
  -version | --version | --versio | --versi | --vers | -V)
 
739
    ac_init_version=: ;;
 
740
 
 
741
  -with-* | --with-*)
 
742
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
743
    # Reject names that are not valid shell variable names.
 
744
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
745
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
746
   { (exit 1); exit 1; }; }
 
747
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
748
    case $ac_option in
 
749
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
750
      *) ac_optarg=yes ;;
 
751
    esac
 
752
    eval "with_$ac_package='$ac_optarg'" ;;
 
753
 
 
754
  -without-* | --without-*)
 
755
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
756
    # Reject names that are not valid shell variable names.
 
757
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
758
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
759
   { (exit 1); exit 1; }; }
 
760
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
761
    eval "with_$ac_package=no" ;;
 
762
 
 
763
  --x)
 
764
    # Obsolete; use --with-x.
 
765
    with_x=yes ;;
 
766
 
 
767
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
768
  | --x-incl | --x-inc | --x-in | --x-i)
 
769
    ac_prev=x_includes ;;
 
770
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
771
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
772
    x_includes=$ac_optarg ;;
 
773
 
 
774
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
775
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
776
    ac_prev=x_libraries ;;
 
777
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
778
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
779
    x_libraries=$ac_optarg ;;
 
780
 
 
781
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
782
Try \`$0 --help' for more information." >&2
 
783
   { (exit 1); exit 1; }; }
 
784
    ;;
 
785
 
 
786
  *=*)
 
787
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
788
    # Reject names that are not valid shell variable names.
 
789
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
790
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
791
   { (exit 1); exit 1; }; }
 
792
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
793
    eval "$ac_envvar='$ac_optarg'"
 
794
    export $ac_envvar ;;
 
795
 
 
796
  *)
 
797
    # FIXME: should be removed in autoconf 3.0.
 
798
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
799
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
800
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
801
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
802
    ;;
 
803
 
 
804
  esac
 
805
done
 
806
 
 
807
if test -n "$ac_prev"; then
 
808
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
809
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
810
   { (exit 1); exit 1; }; }
 
811
fi
 
812
 
 
813
# Be sure to have absolute paths.
 
814
for ac_var in exec_prefix prefix
 
815
do
 
816
  eval ac_val=$`echo $ac_var`
 
817
  case $ac_val in
 
818
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
819
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
820
   { (exit 1); exit 1; }; };;
 
821
  esac
 
822
done
 
823
 
 
824
# Be sure to have absolute paths.
 
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
 
827
do
 
828
  eval ac_val=$`echo $ac_var`
 
829
  case $ac_val in
 
830
    [\\/$]* | ?:[\\/]* ) ;;
 
831
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
832
   { (exit 1); exit 1; }; };;
 
833
  esac
 
834
done
 
835
 
 
836
# There might be people who depend on the old broken behavior: `$host'
 
837
# used to hold the argument of --host etc.
 
838
# FIXME: To remove some day.
 
839
build=$build_alias
 
840
host=$host_alias
 
841
target=$target_alias
 
842
 
 
843
# FIXME: To remove some day.
 
844
if test "x$host_alias" != x; then
 
845
  if test "x$build_alias" = x; then
 
846
    cross_compiling=maybe
 
847
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
848
    If a cross compiler is detected then cross compile mode will be used." >&2
 
849
  elif test "x$build_alias" != "x$host_alias"; then
 
850
    cross_compiling=yes
 
851
  fi
 
852
fi
 
853
 
 
854
ac_tool_prefix=
 
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
856
 
 
857
test "$silent" = yes && exec 6>/dev/null
 
858
 
 
859
 
 
860
# Find the source files, if location was not specified.
 
861
if test -z "$srcdir"; then
 
862
  ac_srcdir_defaulted=yes
 
863
  # Try the directory containing this script, then its parent.
 
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
 
870
echo X"$0" |
 
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
874
          /^X\(\/\).*/{ s//\1/; q; }
 
875
          s/.*/./; q'`
 
876
  srcdir=$ac_confdir
 
877
  if test ! -r $srcdir/$ac_unique_file; then
 
878
    srcdir=..
 
879
  fi
 
880
else
 
881
  ac_srcdir_defaulted=no
 
882
fi
 
883
if test ! -r $srcdir/$ac_unique_file; then
 
884
  if test "$ac_srcdir_defaulted" = yes; then
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
886
   { (exit 1); exit 1; }; }
 
887
  else
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
889
   { (exit 1); exit 1; }; }
 
890
  fi
 
891
fi
 
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
893
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
896
ac_env_build_alias_set=${build_alias+set}
 
897
ac_env_build_alias_value=$build_alias
 
898
ac_cv_env_build_alias_set=${build_alias+set}
 
899
ac_cv_env_build_alias_value=$build_alias
 
900
ac_env_host_alias_set=${host_alias+set}
 
901
ac_env_host_alias_value=$host_alias
 
902
ac_cv_env_host_alias_set=${host_alias+set}
 
903
ac_cv_env_host_alias_value=$host_alias
 
904
ac_env_target_alias_set=${target_alias+set}
 
905
ac_env_target_alias_value=$target_alias
 
906
ac_cv_env_target_alias_set=${target_alias+set}
 
907
ac_cv_env_target_alias_value=$target_alias
 
908
ac_env_CC_set=${CC+set}
 
909
ac_env_CC_value=$CC
 
910
ac_cv_env_CC_set=${CC+set}
 
911
ac_cv_env_CC_value=$CC
 
912
ac_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_env_CFLAGS_value=$CFLAGS
 
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
915
ac_cv_env_CFLAGS_value=$CFLAGS
 
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_env_LDFLAGS_value=$LDFLAGS
 
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
924
ac_env_CPP_set=${CPP+set}
 
925
ac_env_CPP_value=$CPP
 
926
ac_cv_env_CPP_set=${CPP+set}
 
927
ac_cv_env_CPP_value=$CPP
 
928
ac_env_CXX_set=${CXX+set}
 
929
ac_env_CXX_value=$CXX
 
930
ac_cv_env_CXX_set=${CXX+set}
 
931
ac_cv_env_CXX_value=$CXX
 
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
933
ac_env_CXXFLAGS_value=$CXXFLAGS
 
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
936
ac_env_CXXCPP_set=${CXXCPP+set}
 
937
ac_env_CXXCPP_value=$CXXCPP
 
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
 
948
ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
949
ac_env_PKG_CONFIG_value=$PKG_CONFIG
 
950
ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
 
951
ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
 
952
ac_env_DEP_CFLAGS_set=${DEP_CFLAGS+set}
 
953
ac_env_DEP_CFLAGS_value=$DEP_CFLAGS
 
954
ac_cv_env_DEP_CFLAGS_set=${DEP_CFLAGS+set}
 
955
ac_cv_env_DEP_CFLAGS_value=$DEP_CFLAGS
 
956
ac_env_DEP_LIBS_set=${DEP_LIBS+set}
 
957
ac_env_DEP_LIBS_value=$DEP_LIBS
 
958
ac_cv_env_DEP_LIBS_set=${DEP_LIBS+set}
 
959
ac_cv_env_DEP_LIBS_value=$DEP_LIBS
 
960
 
 
961
#
 
962
# Report the --help message.
 
963
#
 
964
if test "$ac_init_help" = "long"; then
 
965
  # Omit some internal or obsolete options to make the list less imposing.
 
966
  # This message is too long to be a string in the A/UX 3.1 sh.
 
967
  cat <<_ACEOF
 
968
\`configure' configures libdmx 7.0.0 to adapt to many kinds of systems.
 
969
 
 
970
Usage: $0 [OPTION]... [VAR=VALUE]...
 
971
 
 
972
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
973
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
974
 
 
975
Defaults for the options are specified in brackets.
 
976
 
 
977
Configuration:
 
978
  -h, --help              display this help and exit
 
979
      --help=short        display options specific to this package
 
980
      --help=recursive    display the short help of all the included packages
 
981
  -V, --version           display version information and exit
 
982
  -q, --quiet, --silent   do not print \`checking...' messages
 
983
      --cache-file=FILE   cache test results in FILE [disabled]
 
984
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
985
  -n, --no-create         do not create output files
 
986
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
987
 
 
988
_ACEOF
 
989
 
 
990
  cat <<_ACEOF
 
991
Installation directories:
 
992
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
993
                          [$ac_default_prefix]
 
994
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
995
                          [PREFIX]
 
996
 
 
997
By default, \`make install' will install all the files in
 
998
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
999
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1000
for instance \`--prefix=\$HOME'.
 
1001
 
 
1002
For better control, use the options below.
 
1003
 
 
1004
Fine tuning of the installation directories:
 
1005
  --bindir=DIR           user executables [EPREFIX/bin]
 
1006
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1007
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1008
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
1009
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1010
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1011
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1012
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1013
  --includedir=DIR       C header files [PREFIX/include]
 
1014
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1015
  --infodir=DIR          info documentation [PREFIX/info]
 
1016
  --mandir=DIR           man documentation [PREFIX/man]
 
1017
_ACEOF
 
1018
 
 
1019
  cat <<\_ACEOF
 
1020
 
 
1021
Program names:
 
1022
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1023
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1024
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1025
 
 
1026
System types:
 
1027
  --build=BUILD     configure for building on BUILD [guessed]
 
1028
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1029
_ACEOF
 
1030
fi
 
1031
 
 
1032
if test -n "$ac_init_help"; then
 
1033
  case $ac_init_help in
 
1034
     short | recursive ) echo "Configuration of libdmx 7.0.0:";;
 
1035
   esac
 
1036
  cat <<\_ACEOF
 
1037
 
 
1038
Optional Features:
 
1039
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1040
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1041
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1042
                          (and sometimes confusing) to the casual installer
 
1043
  --disable-dependency-tracking  speeds up one-time build
 
1044
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1045
  --enable-shared[=PKGS]
 
1046
                          build shared libraries [default=yes]
 
1047
  --enable-static[=PKGS]
 
1048
                          build static libraries [default=yes]
 
1049
  --enable-fast-install[=PKGS]
 
1050
                          optimize for fast installation [default=yes]
 
1051
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1052
 
 
1053
Optional Packages:
 
1054
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1055
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1056
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1057
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1058
                          both]
 
1059
  --with-tags[=TAGS]
 
1060
                          include additional configurations [automatic]
 
1061
 
 
1062
Some influential environment variables:
 
1063
  CC          C compiler command
 
1064
  CFLAGS      C compiler flags
 
1065
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1066
              nonstandard directory <lib dir>
 
1067
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1068
              headers in a nonstandard directory <include dir>
 
1069
  CPP         C preprocessor
 
1070
  CXX         C++ compiler command
 
1071
  CXXFLAGS    C++ compiler flags
 
1072
  CXXCPP      C++ preprocessor
 
1073
  F77         Fortran 77 compiler command
 
1074
  FFLAGS      Fortran 77 compiler flags
 
1075
  PKG_CONFIG  path to pkg-config utility
 
1076
  DEP_CFLAGS  C compiler flags for DEP, overriding pkg-config
 
1077
  DEP_LIBS    linker flags for DEP, overriding pkg-config
 
1078
 
 
1079
Use these variables to override the choices made by `configure' or to help
 
1080
it to find libraries and programs with nonstandard names/locations.
 
1081
 
 
1082
Report bugs to <sandmann@redhat.com>.
 
1083
_ACEOF
 
1084
fi
 
1085
 
 
1086
if test "$ac_init_help" = "recursive"; then
 
1087
  # If there are subdirs, report their specific --help.
 
1088
  ac_popdir=`pwd`
 
1089
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1090
    test -d $ac_dir || continue
 
1091
    ac_builddir=.
 
1092
 
 
1093
if test "$ac_dir" != .; then
 
1094
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1095
  # A "../" for each directory in $ac_dir_suffix.
 
1096
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1097
else
 
1098
  ac_dir_suffix= ac_top_builddir=
 
1099
fi
 
1100
 
 
1101
case $srcdir in
 
1102
  .)  # No --srcdir option.  We are building in place.
 
1103
    ac_srcdir=.
 
1104
    if test -z "$ac_top_builddir"; then
 
1105
       ac_top_srcdir=.
 
1106
    else
 
1107
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1108
    fi ;;
 
1109
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1110
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1111
    ac_top_srcdir=$srcdir ;;
 
1112
  *) # Relative path.
 
1113
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1114
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1115
esac
 
1116
 
 
1117
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1118
# the directories may not exist.
 
1119
case `pwd` in
 
1120
.) ac_abs_builddir="$ac_dir";;
 
1121
*)
 
1122
  case "$ac_dir" in
 
1123
  .) ac_abs_builddir=`pwd`;;
 
1124
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1125
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1126
  esac;;
 
1127
esac
 
1128
case $ac_abs_builddir in
 
1129
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1130
*)
 
1131
  case ${ac_top_builddir}. in
 
1132
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1133
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1134
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1135
  esac;;
 
1136
esac
 
1137
case $ac_abs_builddir in
 
1138
.) ac_abs_srcdir=$ac_srcdir;;
 
1139
*)
 
1140
  case $ac_srcdir in
 
1141
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1142
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1143
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1144
  esac;;
 
1145
esac
 
1146
case $ac_abs_builddir in
 
1147
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1148
*)
 
1149
  case $ac_top_srcdir in
 
1150
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1151
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1152
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1153
  esac;;
 
1154
esac
 
1155
 
 
1156
    cd $ac_dir
 
1157
    # Check for guested configure; otherwise get Cygnus style configure.
 
1158
    if test -f $ac_srcdir/configure.gnu; then
 
1159
      echo
 
1160
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1161
    elif test -f $ac_srcdir/configure; then
 
1162
      echo
 
1163
      $SHELL $ac_srcdir/configure  --help=recursive
 
1164
    elif test -f $ac_srcdir/configure.ac ||
 
1165
           test -f $ac_srcdir/configure.in; then
 
1166
      echo
 
1167
      $ac_configure --help
 
1168
    else
 
1169
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1170
    fi
 
1171
    cd "$ac_popdir"
 
1172
  done
 
1173
fi
 
1174
 
 
1175
test -n "$ac_init_help" && exit 0
 
1176
if $ac_init_version; then
 
1177
  cat <<\_ACEOF
 
1178
libdmx configure 7.0.0
 
1179
generated by GNU Autoconf 2.59
 
1180
 
 
1181
Copyright (C) 2003 Free Software Foundation, Inc.
 
1182
This configure script is free software; the Free Software Foundation
 
1183
gives unlimited permission to copy, distribute and modify it.
 
1184
_ACEOF
 
1185
  exit 0
 
1186
fi
 
1187
exec 5>config.log
 
1188
cat >&5 <<_ACEOF
 
1189
This file contains any messages produced by compilers while
 
1190
running configure, to aid debugging if configure makes a mistake.
 
1191
 
 
1192
It was created by libdmx $as_me 7.0.0, which was
 
1193
generated by GNU Autoconf 2.59.  Invocation command line was
 
1194
 
 
1195
  $ $0 $@
 
1196
 
 
1197
_ACEOF
 
1198
{
 
1199
cat <<_ASUNAME
 
1200
## --------- ##
 
1201
## Platform. ##
 
1202
## --------- ##
 
1203
 
 
1204
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1205
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1206
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1207
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1208
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1209
 
 
1210
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1211
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1212
 
 
1213
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1214
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1215
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1216
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1217
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1218
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1219
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1220
 
 
1221
_ASUNAME
 
1222
 
 
1223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1224
for as_dir in $PATH
 
1225
do
 
1226
  IFS=$as_save_IFS
 
1227
  test -z "$as_dir" && as_dir=.
 
1228
  echo "PATH: $as_dir"
 
1229
done
 
1230
 
 
1231
} >&5
 
1232
 
 
1233
cat >&5 <<_ACEOF
 
1234
 
 
1235
 
 
1236
## ----------- ##
 
1237
## Core tests. ##
 
1238
## ----------- ##
 
1239
 
 
1240
_ACEOF
 
1241
 
 
1242
 
 
1243
# Keep a trace of the command line.
 
1244
# Strip out --no-create and --no-recursion so they do not pile up.
 
1245
# Strip out --silent because we don't want to record it for future runs.
 
1246
# Also quote any args containing shell meta-characters.
 
1247
# Make two passes to allow for proper duplicate-argument suppression.
 
1248
ac_configure_args=
 
1249
ac_configure_args0=
 
1250
ac_configure_args1=
 
1251
ac_sep=
 
1252
ac_must_keep_next=false
 
1253
for ac_pass in 1 2
 
1254
do
 
1255
  for ac_arg
 
1256
  do
 
1257
    case $ac_arg in
 
1258
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1259
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1260
    | -silent | --silent | --silen | --sile | --sil)
 
1261
      continue ;;
 
1262
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1263
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1264
    esac
 
1265
    case $ac_pass in
 
1266
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1267
    2)
 
1268
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1269
      if test $ac_must_keep_next = true; then
 
1270
        ac_must_keep_next=false # Got value, back to normal.
 
1271
      else
 
1272
        case $ac_arg in
 
1273
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1274
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1275
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1276
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1277
            case "$ac_configure_args0 " in
 
1278
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1279
            esac
 
1280
            ;;
 
1281
          -* ) ac_must_keep_next=true ;;
 
1282
        esac
 
1283
      fi
 
1284
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1285
      # Get rid of the leading space.
 
1286
      ac_sep=" "
 
1287
      ;;
 
1288
    esac
 
1289
  done
 
1290
done
 
1291
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1292
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1293
 
 
1294
# When interrupted or exit'd, cleanup temporary files, and complete
 
1295
# config.log.  We remove comments because anyway the quotes in there
 
1296
# would cause problems or look ugly.
 
1297
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1298
# such as our DU 5.0 friend, will then `close' the trap.
 
1299
trap 'exit_status=$?
 
1300
  # Save into config.log some information that might help in debugging.
 
1301
  {
 
1302
    echo
 
1303
 
 
1304
    cat <<\_ASBOX
 
1305
## ---------------- ##
 
1306
## Cache variables. ##
 
1307
## ---------------- ##
 
1308
_ASBOX
 
1309
    echo
 
1310
    # The following way of writing the cache mishandles newlines in values,
 
1311
{
 
1312
  (set) 2>&1 |
 
1313
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1314
    *ac_space=\ *)
 
1315
      sed -n \
 
1316
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1317
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1318
      ;;
 
1319
    *)
 
1320
      sed -n \
 
1321
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1322
      ;;
 
1323
    esac;
 
1324
}
 
1325
    echo
 
1326
 
 
1327
    cat <<\_ASBOX
 
1328
## ----------------- ##
 
1329
## Output variables. ##
 
1330
## ----------------- ##
 
1331
_ASBOX
 
1332
    echo
 
1333
    for ac_var in $ac_subst_vars
 
1334
    do
 
1335
      eval ac_val=$`echo $ac_var`
 
1336
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1337
    done | sort
 
1338
    echo
 
1339
 
 
1340
    if test -n "$ac_subst_files"; then
 
1341
      cat <<\_ASBOX
 
1342
## ------------- ##
 
1343
## Output files. ##
 
1344
## ------------- ##
 
1345
_ASBOX
 
1346
      echo
 
1347
      for ac_var in $ac_subst_files
 
1348
      do
 
1349
        eval ac_val=$`echo $ac_var`
 
1350
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1351
      done | sort
 
1352
      echo
 
1353
    fi
 
1354
 
 
1355
    if test -s confdefs.h; then
 
1356
      cat <<\_ASBOX
 
1357
## ----------- ##
 
1358
## confdefs.h. ##
 
1359
## ----------- ##
 
1360
_ASBOX
 
1361
      echo
 
1362
      sed "/^$/d" confdefs.h | sort
 
1363
      echo
 
1364
    fi
 
1365
    test "$ac_signal" != 0 &&
 
1366
      echo "$as_me: caught signal $ac_signal"
 
1367
    echo "$as_me: exit $exit_status"
 
1368
  } >&5
 
1369
  rm -f core *.core &&
 
1370
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1371
    exit $exit_status
 
1372
     ' 0
 
1373
for ac_signal in 1 2 13 15; do
 
1374
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1375
done
 
1376
ac_signal=0
 
1377
 
 
1378
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1379
rm -rf conftest* confdefs.h
 
1380
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1381
echo >confdefs.h
 
1382
 
 
1383
# Predefined preprocessor variables.
 
1384
 
 
1385
cat >>confdefs.h <<_ACEOF
 
1386
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1387
_ACEOF
 
1388
 
 
1389
 
 
1390
cat >>confdefs.h <<_ACEOF
 
1391
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1392
_ACEOF
 
1393
 
 
1394
 
 
1395
cat >>confdefs.h <<_ACEOF
 
1396
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1397
_ACEOF
 
1398
 
 
1399
 
 
1400
cat >>confdefs.h <<_ACEOF
 
1401
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1402
_ACEOF
 
1403
 
 
1404
 
 
1405
cat >>confdefs.h <<_ACEOF
 
1406
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1407
_ACEOF
 
1408
 
 
1409
 
 
1410
# Let the site file select an alternate cache file if it wants to.
 
1411
# Prefer explicitly selected file to automatically selected ones.
 
1412
if test -z "$CONFIG_SITE"; then
 
1413
  if test "x$prefix" != xNONE; then
 
1414
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1415
  else
 
1416
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1417
  fi
 
1418
fi
 
1419
for ac_site_file in $CONFIG_SITE; do
 
1420
  if test -r "$ac_site_file"; then
 
1421
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1422
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1423
    sed 's/^/| /' "$ac_site_file" >&5
 
1424
    . "$ac_site_file"
 
1425
  fi
 
1426
done
 
1427
 
 
1428
if test -r "$cache_file"; then
 
1429
  # Some versions of bash will fail to source /dev/null (special
 
1430
  # files actually), so we avoid doing that.
 
1431
  if test -f "$cache_file"; then
 
1432
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1433
echo "$as_me: loading cache $cache_file" >&6;}
 
1434
    case $cache_file in
 
1435
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1436
      *)                      . ./$cache_file;;
 
1437
    esac
 
1438
  fi
 
1439
else
 
1440
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1441
echo "$as_me: creating cache $cache_file" >&6;}
 
1442
  >$cache_file
 
1443
fi
 
1444
 
 
1445
# Check that the precious variables saved in the cache have kept the same
 
1446
# value.
 
1447
ac_cache_corrupted=false
 
1448
for ac_var in `(set) 2>&1 |
 
1449
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1450
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1451
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1452
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1453
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1454
  case $ac_old_set,$ac_new_set in
 
1455
    set,)
 
1456
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1457
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1458
      ac_cache_corrupted=: ;;
 
1459
    ,set)
 
1460
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1461
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1462
      ac_cache_corrupted=: ;;
 
1463
    ,);;
 
1464
    *)
 
1465
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1466
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1467
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1468
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1469
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1470
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1471
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1472
        ac_cache_corrupted=:
 
1473
      fi;;
 
1474
  esac
 
1475
  # Pass precious variables to config.status.
 
1476
  if test "$ac_new_set" = set; then
 
1477
    case $ac_new_val in
 
1478
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1479
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1480
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1481
    esac
 
1482
    case " $ac_configure_args " in
 
1483
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1484
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1485
    esac
 
1486
  fi
 
1487
done
 
1488
if $ac_cache_corrupted; then
 
1489
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1490
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1491
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1492
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1493
   { (exit 1); exit 1; }; }
 
1494
fi
 
1495
 
 
1496
ac_ext=c
 
1497
ac_cpp='$CPP $CPPFLAGS'
 
1498
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1499
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1500
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
 
 
1526
 
 
1527
 
 
1528
am__api_version="1.9"
 
1529
ac_aux_dir=
 
1530
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1531
  if test -f $ac_dir/install-sh; then
 
1532
    ac_aux_dir=$ac_dir
 
1533
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1534
    break
 
1535
  elif test -f $ac_dir/install.sh; then
 
1536
    ac_aux_dir=$ac_dir
 
1537
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1538
    break
 
1539
  elif test -f $ac_dir/shtool; then
 
1540
    ac_aux_dir=$ac_dir
 
1541
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1542
    break
 
1543
  fi
 
1544
done
 
1545
if test -z "$ac_aux_dir"; then
 
1546
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1547
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1548
   { (exit 1); exit 1; }; }
 
1549
fi
 
1550
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1551
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1552
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1553
 
 
1554
# Find a good install program.  We prefer a C program (faster),
 
1555
# so one script is as good as another.  But avoid the broken or
 
1556
# incompatible versions:
 
1557
# SysV /etc/install, /usr/sbin/install
 
1558
# SunOS /usr/etc/install
 
1559
# IRIX /sbin/install
 
1560
# AIX /bin/install
 
1561
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1562
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1563
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1564
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1565
# OS/2's system install, which has a completely different semantic
 
1566
# ./install, which can be erroneously created by make from ./install.sh.
 
1567
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1568
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1569
if test -z "$INSTALL"; then
 
1570
if test "${ac_cv_path_install+set}" = set; then
 
1571
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1572
else
 
1573
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1574
for as_dir in $PATH
 
1575
do
 
1576
  IFS=$as_save_IFS
 
1577
  test -z "$as_dir" && as_dir=.
 
1578
  # Account for people who put trailing slashes in PATH elements.
 
1579
case $as_dir/ in
 
1580
  ./ | .// | /cC/* | \
 
1581
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1582
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1583
  /usr/ucb/* ) ;;
 
1584
  *)
 
1585
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1586
    # Don't use installbsd from OSF since it installs stuff as root
 
1587
    # by default.
 
1588
    for ac_prog in ginstall scoinst install; do
 
1589
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1590
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1591
          if test $ac_prog = install &&
 
1592
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1593
            # AIX install.  It has an incompatible calling convention.
 
1594
            :
 
1595
          elif test $ac_prog = install &&
 
1596
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1597
            # program-specific install script used by HP pwplus--don't use.
 
1598
            :
 
1599
          else
 
1600
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1601
            break 3
 
1602
          fi
 
1603
        fi
 
1604
      done
 
1605
    done
 
1606
    ;;
 
1607
esac
 
1608
done
 
1609
 
 
1610
 
 
1611
fi
 
1612
  if test "${ac_cv_path_install+set}" = set; then
 
1613
    INSTALL=$ac_cv_path_install
 
1614
  else
 
1615
    # As a last resort, use the slow shell script.  We don't cache a
 
1616
    # path for INSTALL within a source directory, because that will
 
1617
    # break other packages using the cache if that directory is
 
1618
    # removed, or if the path is relative.
 
1619
    INSTALL=$ac_install_sh
 
1620
  fi
 
1621
fi
 
1622
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1623
echo "${ECHO_T}$INSTALL" >&6
 
1624
 
 
1625
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1626
# It thinks the first close brace ends the variable substitution.
 
1627
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1628
 
 
1629
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1630
 
 
1631
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1632
 
 
1633
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1634
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1635
# Just in case
 
1636
sleep 1
 
1637
echo timestamp > conftest.file
 
1638
# Do `set' in a subshell so we don't clobber the current shell's
 
1639
# arguments.  Must try -L first in case configure is actually a
 
1640
# symlink; some systems play weird games with the mod time of symlinks
 
1641
# (eg FreeBSD returns the mod time of the symlink's containing
 
1642
# directory).
 
1643
if (
 
1644
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1645
   if test "$*" = "X"; then
 
1646
      # -L didn't work.
 
1647
      set X `ls -t $srcdir/configure conftest.file`
 
1648
   fi
 
1649
   rm -f conftest.file
 
1650
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1651
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1652
 
 
1653
      # If neither matched, then we have a broken ls.  This can happen
 
1654
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1655
      # broken ls alias from the environment.  This has actually
 
1656
      # happened.  Such a system could not be considered "sane".
 
1657
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1658
alias in your environment" >&5
 
1659
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1660
alias in your environment" >&2;}
 
1661
   { (exit 1); exit 1; }; }
 
1662
   fi
 
1663
 
 
1664
   test "$2" = conftest.file
 
1665
   )
 
1666
then
 
1667
   # Ok.
 
1668
   :
 
1669
else
 
1670
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1671
Check your system clock" >&5
 
1672
echo "$as_me: error: newly created file is older than distributed files!
 
1673
Check your system clock" >&2;}
 
1674
   { (exit 1); exit 1; }; }
 
1675
fi
 
1676
echo "$as_me:$LINENO: result: yes" >&5
 
1677
echo "${ECHO_T}yes" >&6
 
1678
test "$program_prefix" != NONE &&
 
1679
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1680
# Use a double $ so make ignores it.
 
1681
test "$program_suffix" != NONE &&
 
1682
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1683
# Double any \ or $.  echo might interpret backslashes.
 
1684
# By default was `s,x,x', remove it if useless.
 
1685
cat <<\_ACEOF >conftest.sed
 
1686
s/[\\$]/&&/g;s/;s,x,x,$//
 
1687
_ACEOF
 
1688
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1689
rm conftest.sed
 
1690
 
 
1691
# expand $ac_aux_dir to an absolute path
 
1692
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1693
 
 
1694
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1695
# Use eval to expand $SHELL
 
1696
if eval "$MISSING --run true"; then
 
1697
  am_missing_run="$MISSING --run "
 
1698
else
 
1699
  am_missing_run=
 
1700
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1701
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1702
fi
 
1703
 
 
1704
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1705
  # We used to keeping the `.' as first argument, in order to
 
1706
  # allow $(mkdir_p) to be used without argument.  As in
 
1707
  #   $(mkdir_p) $(somedir)
 
1708
  # where $(somedir) is conditionally defined.  However this is wrong
 
1709
  # for two reasons:
 
1710
  #  1. if the package is installed by a user who cannot write `.'
 
1711
  #     make install will fail,
 
1712
  #  2. the above comment should most certainly read
 
1713
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1714
  #     so it does not work when $(somedir) is undefined and
 
1715
  #     $(DESTDIR) is not.
 
1716
  #  To support the latter case, we have to write
 
1717
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1718
  #  so the `.' trick is pointless.
 
1719
  mkdir_p='mkdir -p --'
 
1720
else
 
1721
  # On NextStep and OpenStep, the `mkdir' command does not
 
1722
  # recognize any option.  It will interpret all options as
 
1723
  # directories to create, and then abort because `.' already
 
1724
  # exists.
 
1725
  for d in ./-p ./--version;
 
1726
  do
 
1727
    test -d $d && rmdir $d
 
1728
  done
 
1729
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1730
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1731
    mkdir_p='$(mkinstalldirs)'
 
1732
  else
 
1733
    mkdir_p='$(install_sh) -d'
 
1734
  fi
 
1735
fi
 
1736
 
 
1737
for ac_prog in gawk mawk nawk awk
 
1738
do
 
1739
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1740
set dummy $ac_prog; ac_word=$2
 
1741
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1742
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1743
if test "${ac_cv_prog_AWK+set}" = set; then
 
1744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1745
else
 
1746
  if test -n "$AWK"; then
 
1747
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1748
else
 
1749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1750
for as_dir in $PATH
 
1751
do
 
1752
  IFS=$as_save_IFS
 
1753
  test -z "$as_dir" && as_dir=.
 
1754
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1755
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1756
    ac_cv_prog_AWK="$ac_prog"
 
1757
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1758
    break 2
 
1759
  fi
 
1760
done
 
1761
done
 
1762
 
 
1763
fi
 
1764
fi
 
1765
AWK=$ac_cv_prog_AWK
 
1766
if test -n "$AWK"; then
 
1767
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1768
echo "${ECHO_T}$AWK" >&6
 
1769
else
 
1770
  echo "$as_me:$LINENO: result: no" >&5
 
1771
echo "${ECHO_T}no" >&6
 
1772
fi
 
1773
 
 
1774
  test -n "$AWK" && break
 
1775
done
 
1776
 
 
1777
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1778
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1779
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1780
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1782
else
 
1783
  cat >conftest.make <<\_ACEOF
 
1784
all:
 
1785
        @echo 'ac_maketemp="$(MAKE)"'
 
1786
_ACEOF
 
1787
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1788
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1789
if test -n "$ac_maketemp"; then
 
1790
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1791
else
 
1792
  eval ac_cv_prog_make_${ac_make}_set=no
 
1793
fi
 
1794
rm -f conftest.make
 
1795
fi
 
1796
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1797
  echo "$as_me:$LINENO: result: yes" >&5
 
1798
echo "${ECHO_T}yes" >&6
 
1799
  SET_MAKE=
 
1800
else
 
1801
  echo "$as_me:$LINENO: result: no" >&5
 
1802
echo "${ECHO_T}no" >&6
 
1803
  SET_MAKE="MAKE=${MAKE-make}"
 
1804
fi
 
1805
 
 
1806
rm -rf .tst 2>/dev/null
 
1807
mkdir .tst 2>/dev/null
 
1808
if test -d .tst; then
 
1809
  am__leading_dot=.
 
1810
else
 
1811
  am__leading_dot=_
 
1812
fi
 
1813
rmdir .tst 2>/dev/null
 
1814
 
 
1815
# test to see if srcdir already configured
 
1816
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1817
   test -f $srcdir/config.status; then
 
1818
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1819
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1820
   { (exit 1); exit 1; }; }
 
1821
fi
 
1822
 
 
1823
# test whether we have cygpath
 
1824
if test -z "$CYGPATH_W"; then
 
1825
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1826
    CYGPATH_W='cygpath -w'
 
1827
  else
 
1828
    CYGPATH_W=echo
 
1829
  fi
 
1830
fi
 
1831
 
 
1832
 
 
1833
# Define the identity of the package.
 
1834
 PACKAGE='libdmx'
 
1835
 VERSION='7.0.0'
 
1836
 
 
1837
 
 
1838
cat >>confdefs.h <<_ACEOF
 
1839
#define PACKAGE "$PACKAGE"
 
1840
_ACEOF
 
1841
 
 
1842
 
 
1843
cat >>confdefs.h <<_ACEOF
 
1844
#define VERSION "$VERSION"
 
1845
_ACEOF
 
1846
 
 
1847
# Some tools Automake needs.
 
1848
 
 
1849
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1850
 
 
1851
 
 
1852
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1853
 
 
1854
 
 
1855
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1856
 
 
1857
 
 
1858
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1859
 
 
1860
 
 
1861
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1862
 
 
1863
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1864
 
 
1865
# Installed binaries are usually stripped using `strip' when the user
 
1866
# run `make install-strip'.  However `strip' might not be the right
 
1867
# tool to use in cross-compilation environments, therefore Automake
 
1868
# will honor the `STRIP' environment variable to overrule this program.
 
1869
if test "$cross_compiling" != no; then
 
1870
  if test -n "$ac_tool_prefix"; then
 
1871
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1872
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1873
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1874
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1875
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1876
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1877
else
 
1878
  if test -n "$STRIP"; then
 
1879
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1880
else
 
1881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1882
for as_dir in $PATH
 
1883
do
 
1884
  IFS=$as_save_IFS
 
1885
  test -z "$as_dir" && as_dir=.
 
1886
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1887
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1888
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1889
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1890
    break 2
 
1891
  fi
 
1892
done
 
1893
done
 
1894
 
 
1895
fi
 
1896
fi
 
1897
STRIP=$ac_cv_prog_STRIP
 
1898
if test -n "$STRIP"; then
 
1899
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1900
echo "${ECHO_T}$STRIP" >&6
 
1901
else
 
1902
  echo "$as_me:$LINENO: result: no" >&5
 
1903
echo "${ECHO_T}no" >&6
 
1904
fi
 
1905
 
 
1906
fi
 
1907
if test -z "$ac_cv_prog_STRIP"; then
 
1908
  ac_ct_STRIP=$STRIP
 
1909
  # Extract the first word of "strip", so it can be a program name with args.
 
1910
set dummy strip; ac_word=$2
 
1911
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1912
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1913
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1915
else
 
1916
  if test -n "$ac_ct_STRIP"; then
 
1917
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1918
else
 
1919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1920
for as_dir in $PATH
 
1921
do
 
1922
  IFS=$as_save_IFS
 
1923
  test -z "$as_dir" && as_dir=.
 
1924
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1925
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1926
    ac_cv_prog_ac_ct_STRIP="strip"
 
1927
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1928
    break 2
 
1929
  fi
 
1930
done
 
1931
done
 
1932
 
 
1933
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1934
fi
 
1935
fi
 
1936
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1937
if test -n "$ac_ct_STRIP"; then
 
1938
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1939
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1940
else
 
1941
  echo "$as_me:$LINENO: result: no" >&5
 
1942
echo "${ECHO_T}no" >&6
 
1943
fi
 
1944
 
 
1945
  STRIP=$ac_ct_STRIP
 
1946
else
 
1947
  STRIP="$ac_cv_prog_STRIP"
 
1948
fi
 
1949
 
 
1950
fi
 
1951
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1952
 
 
1953
# We need awk for the "check" target.  The system "awk" is bad on
 
1954
# some platforms.
 
1955
# Always define AMTAR for backward compatibility.
 
1956
 
 
1957
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1958
 
 
1959
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1960
 
 
1961
 
 
1962
 
 
1963
 
 
1964
 
 
1965
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1966
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1967
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1968
if test "${enable_maintainer_mode+set}" = set; then
 
1969
  enableval="$enable_maintainer_mode"
 
1970
  USE_MAINTAINER_MODE=$enableval
 
1971
else
 
1972
  USE_MAINTAINER_MODE=no
 
1973
fi;
 
1974
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1975
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1976
 
 
1977
 
 
1978
if test $USE_MAINTAINER_MODE = yes; then
 
1979
  MAINTAINER_MODE_TRUE=
 
1980
  MAINTAINER_MODE_FALSE='#'
 
1981
else
 
1982
  MAINTAINER_MODE_TRUE='#'
 
1983
  MAINTAINER_MODE_FALSE=
 
1984
fi
 
1985
 
 
1986
  MAINT=$MAINTAINER_MODE_TRUE
 
1987
 
 
1988
 
 
1989
 
 
1990
          ac_config_headers="$ac_config_headers config.h"
 
1991
 
 
1992
 
 
1993
# Check for progs
 
1994
ac_ext=c
 
1995
ac_cpp='$CPP $CPPFLAGS'
 
1996
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1997
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1998
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1999
if test -n "$ac_tool_prefix"; then
 
2000
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2001
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2002
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2004
if test "${ac_cv_prog_CC+set}" = set; then
 
2005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2006
else
 
2007
  if test -n "$CC"; then
 
2008
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2009
else
 
2010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2011
for as_dir in $PATH
 
2012
do
 
2013
  IFS=$as_save_IFS
 
2014
  test -z "$as_dir" && as_dir=.
 
2015
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2016
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2017
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2018
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2019
    break 2
 
2020
  fi
 
2021
done
 
2022
done
 
2023
 
 
2024
fi
 
2025
fi
 
2026
CC=$ac_cv_prog_CC
 
2027
if test -n "$CC"; then
 
2028
  echo "$as_me:$LINENO: result: $CC" >&5
 
2029
echo "${ECHO_T}$CC" >&6
 
2030
else
 
2031
  echo "$as_me:$LINENO: result: no" >&5
 
2032
echo "${ECHO_T}no" >&6
 
2033
fi
 
2034
 
 
2035
fi
 
2036
if test -z "$ac_cv_prog_CC"; then
 
2037
  ac_ct_CC=$CC
 
2038
  # Extract the first word of "gcc", so it can be a program name with args.
 
2039
set dummy gcc; ac_word=$2
 
2040
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2041
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2042
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2044
else
 
2045
  if test -n "$ac_ct_CC"; then
 
2046
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2047
else
 
2048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2049
for as_dir in $PATH
 
2050
do
 
2051
  IFS=$as_save_IFS
 
2052
  test -z "$as_dir" && as_dir=.
 
2053
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2054
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2055
    ac_cv_prog_ac_ct_CC="gcc"
 
2056
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2057
    break 2
 
2058
  fi
 
2059
done
 
2060
done
 
2061
 
 
2062
fi
 
2063
fi
 
2064
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2065
if test -n "$ac_ct_CC"; then
 
2066
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2067
echo "${ECHO_T}$ac_ct_CC" >&6
 
2068
else
 
2069
  echo "$as_me:$LINENO: result: no" >&5
 
2070
echo "${ECHO_T}no" >&6
 
2071
fi
 
2072
 
 
2073
  CC=$ac_ct_CC
 
2074
else
 
2075
  CC="$ac_cv_prog_CC"
 
2076
fi
 
2077
 
 
2078
if test -z "$CC"; then
 
2079
  if test -n "$ac_tool_prefix"; then
 
2080
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2081
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2082
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2083
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2084
if test "${ac_cv_prog_CC+set}" = set; then
 
2085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2086
else
 
2087
  if test -n "$CC"; then
 
2088
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2089
else
 
2090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2091
for as_dir in $PATH
 
2092
do
 
2093
  IFS=$as_save_IFS
 
2094
  test -z "$as_dir" && as_dir=.
 
2095
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2096
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2097
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2098
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2099
    break 2
 
2100
  fi
 
2101
done
 
2102
done
 
2103
 
 
2104
fi
 
2105
fi
 
2106
CC=$ac_cv_prog_CC
 
2107
if test -n "$CC"; then
 
2108
  echo "$as_me:$LINENO: result: $CC" >&5
 
2109
echo "${ECHO_T}$CC" >&6
 
2110
else
 
2111
  echo "$as_me:$LINENO: result: no" >&5
 
2112
echo "${ECHO_T}no" >&6
 
2113
fi
 
2114
 
 
2115
fi
 
2116
if test -z "$ac_cv_prog_CC"; then
 
2117
  ac_ct_CC=$CC
 
2118
  # Extract the first word of "cc", so it can be a program name with args.
 
2119
set dummy cc; ac_word=$2
 
2120
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2122
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2124
else
 
2125
  if test -n "$ac_ct_CC"; then
 
2126
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2127
else
 
2128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2129
for as_dir in $PATH
 
2130
do
 
2131
  IFS=$as_save_IFS
 
2132
  test -z "$as_dir" && as_dir=.
 
2133
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2134
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2135
    ac_cv_prog_ac_ct_CC="cc"
 
2136
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2137
    break 2
 
2138
  fi
 
2139
done
 
2140
done
 
2141
 
 
2142
fi
 
2143
fi
 
2144
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2145
if test -n "$ac_ct_CC"; then
 
2146
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2147
echo "${ECHO_T}$ac_ct_CC" >&6
 
2148
else
 
2149
  echo "$as_me:$LINENO: result: no" >&5
 
2150
echo "${ECHO_T}no" >&6
 
2151
fi
 
2152
 
 
2153
  CC=$ac_ct_CC
 
2154
else
 
2155
  CC="$ac_cv_prog_CC"
 
2156
fi
 
2157
 
 
2158
fi
 
2159
if test -z "$CC"; then
 
2160
  # Extract the first word of "cc", so it can be a program name with args.
 
2161
set dummy cc; ac_word=$2
 
2162
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2163
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2164
if test "${ac_cv_prog_CC+set}" = set; then
 
2165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2166
else
 
2167
  if test -n "$CC"; then
 
2168
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2169
else
 
2170
  ac_prog_rejected=no
 
2171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2172
for as_dir in $PATH
 
2173
do
 
2174
  IFS=$as_save_IFS
 
2175
  test -z "$as_dir" && as_dir=.
 
2176
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2177
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2178
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2179
       ac_prog_rejected=yes
 
2180
       continue
 
2181
     fi
 
2182
    ac_cv_prog_CC="cc"
 
2183
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2184
    break 2
 
2185
  fi
 
2186
done
 
2187
done
 
2188
 
 
2189
if test $ac_prog_rejected = yes; then
 
2190
  # We found a bogon in the path, so make sure we never use it.
 
2191
  set dummy $ac_cv_prog_CC
 
2192
  shift
 
2193
  if test $# != 0; then
 
2194
    # We chose a different compiler from the bogus one.
 
2195
    # However, it has the same basename, so the bogon will be chosen
 
2196
    # first if we set CC to just the basename; use the full file name.
 
2197
    shift
 
2198
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2199
  fi
 
2200
fi
 
2201
fi
 
2202
fi
 
2203
CC=$ac_cv_prog_CC
 
2204
if test -n "$CC"; then
 
2205
  echo "$as_me:$LINENO: result: $CC" >&5
 
2206
echo "${ECHO_T}$CC" >&6
 
2207
else
 
2208
  echo "$as_me:$LINENO: result: no" >&5
 
2209
echo "${ECHO_T}no" >&6
 
2210
fi
 
2211
 
 
2212
fi
 
2213
if test -z "$CC"; then
 
2214
  if test -n "$ac_tool_prefix"; then
 
2215
  for ac_prog in cl
 
2216
  do
 
2217
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2218
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2219
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2220
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2221
if test "${ac_cv_prog_CC+set}" = set; then
 
2222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2223
else
 
2224
  if test -n "$CC"; then
 
2225
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2226
else
 
2227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2228
for as_dir in $PATH
 
2229
do
 
2230
  IFS=$as_save_IFS
 
2231
  test -z "$as_dir" && as_dir=.
 
2232
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2233
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2234
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2235
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2236
    break 2
 
2237
  fi
 
2238
done
 
2239
done
 
2240
 
 
2241
fi
 
2242
fi
 
2243
CC=$ac_cv_prog_CC
 
2244
if test -n "$CC"; then
 
2245
  echo "$as_me:$LINENO: result: $CC" >&5
 
2246
echo "${ECHO_T}$CC" >&6
 
2247
else
 
2248
  echo "$as_me:$LINENO: result: no" >&5
 
2249
echo "${ECHO_T}no" >&6
 
2250
fi
 
2251
 
 
2252
    test -n "$CC" && break
 
2253
  done
 
2254
fi
 
2255
if test -z "$CC"; then
 
2256
  ac_ct_CC=$CC
 
2257
  for ac_prog in cl
 
2258
do
 
2259
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2260
set dummy $ac_prog; ac_word=$2
 
2261
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2262
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2263
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2265
else
 
2266
  if test -n "$ac_ct_CC"; then
 
2267
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2268
else
 
2269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2270
for as_dir in $PATH
 
2271
do
 
2272
  IFS=$as_save_IFS
 
2273
  test -z "$as_dir" && as_dir=.
 
2274
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2275
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2276
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2277
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2278
    break 2
 
2279
  fi
 
2280
done
 
2281
done
 
2282
 
 
2283
fi
 
2284
fi
 
2285
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2286
if test -n "$ac_ct_CC"; then
 
2287
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2288
echo "${ECHO_T}$ac_ct_CC" >&6
 
2289
else
 
2290
  echo "$as_me:$LINENO: result: no" >&5
 
2291
echo "${ECHO_T}no" >&6
 
2292
fi
 
2293
 
 
2294
  test -n "$ac_ct_CC" && break
 
2295
done
 
2296
 
 
2297
  CC=$ac_ct_CC
 
2298
fi
 
2299
 
 
2300
fi
 
2301
 
 
2302
 
 
2303
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2304
See \`config.log' for more details." >&5
 
2305
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2306
See \`config.log' for more details." >&2;}
 
2307
   { (exit 1); exit 1; }; }
 
2308
 
 
2309
# Provide some information about the compiler.
 
2310
echo "$as_me:$LINENO:" \
 
2311
     "checking for C compiler version" >&5
 
2312
ac_compiler=`set X $ac_compile; echo $2`
 
2313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2314
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2315
  ac_status=$?
 
2316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2317
  (exit $ac_status); }
 
2318
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2319
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2320
  ac_status=$?
 
2321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2322
  (exit $ac_status); }
 
2323
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2324
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2325
  ac_status=$?
 
2326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2327
  (exit $ac_status); }
 
2328
 
 
2329
cat >conftest.$ac_ext <<_ACEOF
 
2330
/* confdefs.h.  */
 
2331
_ACEOF
 
2332
cat confdefs.h >>conftest.$ac_ext
 
2333
cat >>conftest.$ac_ext <<_ACEOF
 
2334
/* end confdefs.h.  */
 
2335
 
 
2336
int
 
2337
main ()
 
2338
{
 
2339
 
 
2340
  ;
 
2341
  return 0;
 
2342
}
 
2343
_ACEOF
 
2344
ac_clean_files_save=$ac_clean_files
 
2345
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2346
# Try to create an executable without -o first, disregard a.out.
 
2347
# It will help us diagnose broken compilers, and finding out an intuition
 
2348
# of exeext.
 
2349
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2350
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2351
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2352
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2353
  (eval $ac_link_default) 2>&5
 
2354
  ac_status=$?
 
2355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2356
  (exit $ac_status); }; then
 
2357
  # Find the output, starting from the most likely.  This scheme is
 
2358
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2359
# resort.
 
2360
 
 
2361
# Be careful to initialize this variable, since it used to be cached.
 
2362
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2363
ac_cv_exeext=
 
2364
# b.out is created by i960 compilers.
 
2365
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2366
do
 
2367
  test -f "$ac_file" || continue
 
2368
  case $ac_file in
 
2369
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2370
        ;;
 
2371
    conftest.$ac_ext )
 
2372
        # This is the source file.
 
2373
        ;;
 
2374
    [ab].out )
 
2375
        # We found the default executable, but exeext='' is most
 
2376
        # certainly right.
 
2377
        break;;
 
2378
    *.* )
 
2379
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2380
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2381
        # but it would be cool to find out if it's true.  Does anybody
 
2382
        # maintain Libtool? --akim.
 
2383
        export ac_cv_exeext
 
2384
        break;;
 
2385
    * )
 
2386
        break;;
 
2387
  esac
 
2388
done
 
2389
else
 
2390
  echo "$as_me: failed program was:" >&5
 
2391
sed 's/^/| /' conftest.$ac_ext >&5
 
2392
 
 
2393
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2394
See \`config.log' for more details." >&5
 
2395
echo "$as_me: error: C compiler cannot create executables
 
2396
See \`config.log' for more details." >&2;}
 
2397
   { (exit 77); exit 77; }; }
 
2398
fi
 
2399
 
 
2400
ac_exeext=$ac_cv_exeext
 
2401
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2402
echo "${ECHO_T}$ac_file" >&6
 
2403
 
 
2404
# Check the compiler produces executables we can run.  If not, either
 
2405
# the compiler is broken, or we cross compile.
 
2406
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2407
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2408
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2409
# If not cross compiling, check that we can run a simple program.
 
2410
if test "$cross_compiling" != yes; then
 
2411
  if { ac_try='./$ac_file'
 
2412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2413
  (eval $ac_try) 2>&5
 
2414
  ac_status=$?
 
2415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2416
  (exit $ac_status); }; }; then
 
2417
    cross_compiling=no
 
2418
  else
 
2419
    if test "$cross_compiling" = maybe; then
 
2420
        cross_compiling=yes
 
2421
    else
 
2422
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2423
If you meant to cross compile, use \`--host'.
 
2424
See \`config.log' for more details." >&5
 
2425
echo "$as_me: error: cannot run C compiled programs.
 
2426
If you meant to cross compile, use \`--host'.
 
2427
See \`config.log' for more details." >&2;}
 
2428
   { (exit 1); exit 1; }; }
 
2429
    fi
 
2430
  fi
 
2431
fi
 
2432
echo "$as_me:$LINENO: result: yes" >&5
 
2433
echo "${ECHO_T}yes" >&6
 
2434
 
 
2435
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2436
ac_clean_files=$ac_clean_files_save
 
2437
# Check the compiler produces executables we can run.  If not, either
 
2438
# the compiler is broken, or we cross compile.
 
2439
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2440
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2441
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2442
echo "${ECHO_T}$cross_compiling" >&6
 
2443
 
 
2444
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2445
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2446
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2447
  (eval $ac_link) 2>&5
 
2448
  ac_status=$?
 
2449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2450
  (exit $ac_status); }; then
 
2451
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2452
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2453
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2454
# `rm'.
 
2455
for ac_file in conftest.exe conftest conftest.*; do
 
2456
  test -f "$ac_file" || continue
 
2457
  case $ac_file in
 
2458
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2459
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2460
          export ac_cv_exeext
 
2461
          break;;
 
2462
    * ) break;;
 
2463
  esac
 
2464
done
 
2465
else
 
2466
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2467
See \`config.log' for more details." >&5
 
2468
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2469
See \`config.log' for more details." >&2;}
 
2470
   { (exit 1); exit 1; }; }
 
2471
fi
 
2472
 
 
2473
rm -f conftest$ac_cv_exeext
 
2474
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2475
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2476
 
 
2477
rm -f conftest.$ac_ext
 
2478
EXEEXT=$ac_cv_exeext
 
2479
ac_exeext=$EXEEXT
 
2480
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2481
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2482
if test "${ac_cv_objext+set}" = set; then
 
2483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2484
else
 
2485
  cat >conftest.$ac_ext <<_ACEOF
 
2486
/* confdefs.h.  */
 
2487
_ACEOF
 
2488
cat confdefs.h >>conftest.$ac_ext
 
2489
cat >>conftest.$ac_ext <<_ACEOF
 
2490
/* end confdefs.h.  */
 
2491
 
 
2492
int
 
2493
main ()
 
2494
{
 
2495
 
 
2496
  ;
 
2497
  return 0;
 
2498
}
 
2499
_ACEOF
 
2500
rm -f conftest.o conftest.obj
 
2501
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2502
  (eval $ac_compile) 2>&5
 
2503
  ac_status=$?
 
2504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2505
  (exit $ac_status); }; then
 
2506
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2507
  case $ac_file in
 
2508
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2509
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2510
       break;;
 
2511
  esac
 
2512
done
 
2513
else
 
2514
  echo "$as_me: failed program was:" >&5
 
2515
sed 's/^/| /' conftest.$ac_ext >&5
 
2516
 
 
2517
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2518
See \`config.log' for more details." >&5
 
2519
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2520
See \`config.log' for more details." >&2;}
 
2521
   { (exit 1); exit 1; }; }
 
2522
fi
 
2523
 
 
2524
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2525
fi
 
2526
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2527
echo "${ECHO_T}$ac_cv_objext" >&6
 
2528
OBJEXT=$ac_cv_objext
 
2529
ac_objext=$OBJEXT
 
2530
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2531
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2532
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2534
else
 
2535
  cat >conftest.$ac_ext <<_ACEOF
 
2536
/* confdefs.h.  */
 
2537
_ACEOF
 
2538
cat confdefs.h >>conftest.$ac_ext
 
2539
cat >>conftest.$ac_ext <<_ACEOF
 
2540
/* end confdefs.h.  */
 
2541
 
 
2542
int
 
2543
main ()
 
2544
{
 
2545
#ifndef __GNUC__
 
2546
       choke me
 
2547
#endif
 
2548
 
 
2549
  ;
 
2550
  return 0;
 
2551
}
 
2552
_ACEOF
 
2553
rm -f conftest.$ac_objext
 
2554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2555
  (eval $ac_compile) 2>conftest.er1
 
2556
  ac_status=$?
 
2557
  grep -v '^ *+' conftest.er1 >conftest.err
 
2558
  rm -f conftest.er1
 
2559
  cat conftest.err >&5
 
2560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2561
  (exit $ac_status); } &&
 
2562
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2564
  (eval $ac_try) 2>&5
 
2565
  ac_status=$?
 
2566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2567
  (exit $ac_status); }; } &&
 
2568
         { ac_try='test -s conftest.$ac_objext'
 
2569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2570
  (eval $ac_try) 2>&5
 
2571
  ac_status=$?
 
2572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2573
  (exit $ac_status); }; }; then
 
2574
  ac_compiler_gnu=yes
 
2575
else
 
2576
  echo "$as_me: failed program was:" >&5
 
2577
sed 's/^/| /' conftest.$ac_ext >&5
 
2578
 
 
2579
ac_compiler_gnu=no
 
2580
fi
 
2581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2582
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2583
 
 
2584
fi
 
2585
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2586
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2587
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2588
ac_test_CFLAGS=${CFLAGS+set}
 
2589
ac_save_CFLAGS=$CFLAGS
 
2590
CFLAGS="-g"
 
2591
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2592
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2593
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2594
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2595
else
 
2596
  cat >conftest.$ac_ext <<_ACEOF
 
2597
/* confdefs.h.  */
 
2598
_ACEOF
 
2599
cat confdefs.h >>conftest.$ac_ext
 
2600
cat >>conftest.$ac_ext <<_ACEOF
 
2601
/* end confdefs.h.  */
 
2602
 
 
2603
int
 
2604
main ()
 
2605
{
 
2606
 
 
2607
  ;
 
2608
  return 0;
 
2609
}
 
2610
_ACEOF
 
2611
rm -f conftest.$ac_objext
 
2612
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2613
  (eval $ac_compile) 2>conftest.er1
 
2614
  ac_status=$?
 
2615
  grep -v '^ *+' conftest.er1 >conftest.err
 
2616
  rm -f conftest.er1
 
2617
  cat conftest.err >&5
 
2618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2619
  (exit $ac_status); } &&
 
2620
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2622
  (eval $ac_try) 2>&5
 
2623
  ac_status=$?
 
2624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2625
  (exit $ac_status); }; } &&
 
2626
         { ac_try='test -s conftest.$ac_objext'
 
2627
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2628
  (eval $ac_try) 2>&5
 
2629
  ac_status=$?
 
2630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2631
  (exit $ac_status); }; }; then
 
2632
  ac_cv_prog_cc_g=yes
 
2633
else
 
2634
  echo "$as_me: failed program was:" >&5
 
2635
sed 's/^/| /' conftest.$ac_ext >&5
 
2636
 
 
2637
ac_cv_prog_cc_g=no
 
2638
fi
 
2639
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2640
fi
 
2641
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2642
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2643
if test "$ac_test_CFLAGS" = set; then
 
2644
  CFLAGS=$ac_save_CFLAGS
 
2645
elif test $ac_cv_prog_cc_g = yes; then
 
2646
  if test "$GCC" = yes; then
 
2647
    CFLAGS="-g -O2"
 
2648
  else
 
2649
    CFLAGS="-g"
 
2650
  fi
 
2651
else
 
2652
  if test "$GCC" = yes; then
 
2653
    CFLAGS="-O2"
 
2654
  else
 
2655
    CFLAGS=
 
2656
  fi
 
2657
fi
 
2658
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2659
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2660
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2662
else
 
2663
  ac_cv_prog_cc_stdc=no
 
2664
ac_save_CC=$CC
 
2665
cat >conftest.$ac_ext <<_ACEOF
 
2666
/* confdefs.h.  */
 
2667
_ACEOF
 
2668
cat confdefs.h >>conftest.$ac_ext
 
2669
cat >>conftest.$ac_ext <<_ACEOF
 
2670
/* end confdefs.h.  */
 
2671
#include <stdarg.h>
 
2672
#include <stdio.h>
 
2673
#include <sys/types.h>
 
2674
#include <sys/stat.h>
 
2675
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2676
struct buf { int x; };
 
2677
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2678
static char *e (p, i)
 
2679
     char **p;
 
2680
     int i;
 
2681
{
 
2682
  return p[i];
 
2683
}
 
2684
static char *f (char * (*g) (char **, int), char **p, ...)
 
2685
{
 
2686
  char *s;
 
2687
  va_list v;
 
2688
  va_start (v,p);
 
2689
  s = g (p, va_arg (v,int));
 
2690
  va_end (v);
 
2691
  return s;
 
2692
}
 
2693
 
 
2694
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2695
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2696
   These don't provoke an error unfortunately, instead are silently treated
 
2697
   as 'x'.  The following induces an error, until -std1 is added to get
 
2698
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2699
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2700
   that's true only with -std1.  */
 
2701
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2702
 
 
2703
int test (int i, double x);
 
2704
struct s1 {int (*f) (int a);};
 
2705
struct s2 {int (*f) (double a);};
 
2706
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2707
int argc;
 
2708
char **argv;
 
2709
int
 
2710
main ()
 
2711
{
 
2712
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2713
  ;
 
2714
  return 0;
 
2715
}
 
2716
_ACEOF
 
2717
# Don't try gcc -ansi; that turns off useful extensions and
 
2718
# breaks some systems' header files.
 
2719
# AIX                   -qlanglvl=ansi
 
2720
# Ultrix and OSF/1      -std1
 
2721
# HP-UX 10.20 and later -Ae
 
2722
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2723
# SVR4                  -Xc -D__EXTENSIONS__
 
2724
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2725
do
 
2726
  CC="$ac_save_CC $ac_arg"
 
2727
  rm -f conftest.$ac_objext
 
2728
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2729
  (eval $ac_compile) 2>conftest.er1
 
2730
  ac_status=$?
 
2731
  grep -v '^ *+' conftest.er1 >conftest.err
 
2732
  rm -f conftest.er1
 
2733
  cat conftest.err >&5
 
2734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2735
  (exit $ac_status); } &&
 
2736
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2737
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2738
  (eval $ac_try) 2>&5
 
2739
  ac_status=$?
 
2740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2741
  (exit $ac_status); }; } &&
 
2742
         { ac_try='test -s conftest.$ac_objext'
 
2743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2744
  (eval $ac_try) 2>&5
 
2745
  ac_status=$?
 
2746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2747
  (exit $ac_status); }; }; then
 
2748
  ac_cv_prog_cc_stdc=$ac_arg
 
2749
break
 
2750
else
 
2751
  echo "$as_me: failed program was:" >&5
 
2752
sed 's/^/| /' conftest.$ac_ext >&5
 
2753
 
 
2754
fi
 
2755
rm -f conftest.err conftest.$ac_objext
 
2756
done
 
2757
rm -f conftest.$ac_ext conftest.$ac_objext
 
2758
CC=$ac_save_CC
 
2759
 
 
2760
fi
 
2761
 
 
2762
case "x$ac_cv_prog_cc_stdc" in
 
2763
  x|xno)
 
2764
    echo "$as_me:$LINENO: result: none needed" >&5
 
2765
echo "${ECHO_T}none needed" >&6 ;;
 
2766
  *)
 
2767
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2768
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2769
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2770
esac
 
2771
 
 
2772
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2773
# in C++ we need to declare it.  In case someone uses the same compiler
 
2774
# for both compiling C and C++ we need to have the C++ compiler decide
 
2775
# the declaration of exit, since it's the most demanding environment.
 
2776
cat >conftest.$ac_ext <<_ACEOF
 
2777
#ifndef __cplusplus
 
2778
  choke me
 
2779
#endif
 
2780
_ACEOF
 
2781
rm -f conftest.$ac_objext
 
2782
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2783
  (eval $ac_compile) 2>conftest.er1
 
2784
  ac_status=$?
 
2785
  grep -v '^ *+' conftest.er1 >conftest.err
 
2786
  rm -f conftest.er1
 
2787
  cat conftest.err >&5
 
2788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2789
  (exit $ac_status); } &&
 
2790
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2792
  (eval $ac_try) 2>&5
 
2793
  ac_status=$?
 
2794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2795
  (exit $ac_status); }; } &&
 
2796
         { ac_try='test -s conftest.$ac_objext'
 
2797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2798
  (eval $ac_try) 2>&5
 
2799
  ac_status=$?
 
2800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2801
  (exit $ac_status); }; }; then
 
2802
  for ac_declaration in \
 
2803
   '' \
 
2804
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2805
   'extern "C" void std::exit (int); using std::exit;' \
 
2806
   'extern "C" void exit (int) throw ();' \
 
2807
   'extern "C" void exit (int);' \
 
2808
   'void exit (int);'
 
2809
do
 
2810
  cat >conftest.$ac_ext <<_ACEOF
 
2811
/* confdefs.h.  */
 
2812
_ACEOF
 
2813
cat confdefs.h >>conftest.$ac_ext
 
2814
cat >>conftest.$ac_ext <<_ACEOF
 
2815
/* end confdefs.h.  */
 
2816
$ac_declaration
 
2817
#include <stdlib.h>
 
2818
int
 
2819
main ()
 
2820
{
 
2821
exit (42);
 
2822
  ;
 
2823
  return 0;
 
2824
}
 
2825
_ACEOF
 
2826
rm -f conftest.$ac_objext
 
2827
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2828
  (eval $ac_compile) 2>conftest.er1
 
2829
  ac_status=$?
 
2830
  grep -v '^ *+' conftest.er1 >conftest.err
 
2831
  rm -f conftest.er1
 
2832
  cat conftest.err >&5
 
2833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2834
  (exit $ac_status); } &&
 
2835
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2836
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2837
  (eval $ac_try) 2>&5
 
2838
  ac_status=$?
 
2839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2840
  (exit $ac_status); }; } &&
 
2841
         { ac_try='test -s conftest.$ac_objext'
 
2842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2843
  (eval $ac_try) 2>&5
 
2844
  ac_status=$?
 
2845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2846
  (exit $ac_status); }; }; then
 
2847
  :
 
2848
else
 
2849
  echo "$as_me: failed program was:" >&5
 
2850
sed 's/^/| /' conftest.$ac_ext >&5
 
2851
 
 
2852
continue
 
2853
fi
 
2854
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2855
  cat >conftest.$ac_ext <<_ACEOF
 
2856
/* confdefs.h.  */
 
2857
_ACEOF
 
2858
cat confdefs.h >>conftest.$ac_ext
 
2859
cat >>conftest.$ac_ext <<_ACEOF
 
2860
/* end confdefs.h.  */
 
2861
$ac_declaration
 
2862
int
 
2863
main ()
 
2864
{
 
2865
exit (42);
 
2866
  ;
 
2867
  return 0;
 
2868
}
 
2869
_ACEOF
 
2870
rm -f conftest.$ac_objext
 
2871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2872
  (eval $ac_compile) 2>conftest.er1
 
2873
  ac_status=$?
 
2874
  grep -v '^ *+' conftest.er1 >conftest.err
 
2875
  rm -f conftest.er1
 
2876
  cat conftest.err >&5
 
2877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2878
  (exit $ac_status); } &&
 
2879
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2881
  (eval $ac_try) 2>&5
 
2882
  ac_status=$?
 
2883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2884
  (exit $ac_status); }; } &&
 
2885
         { ac_try='test -s conftest.$ac_objext'
 
2886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2887
  (eval $ac_try) 2>&5
 
2888
  ac_status=$?
 
2889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2890
  (exit $ac_status); }; }; then
 
2891
  break
 
2892
else
 
2893
  echo "$as_me: failed program was:" >&5
 
2894
sed 's/^/| /' conftest.$ac_ext >&5
 
2895
 
 
2896
fi
 
2897
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2898
done
 
2899
rm -f conftest*
 
2900
if test -n "$ac_declaration"; then
 
2901
  echo '#ifdef __cplusplus' >>confdefs.h
 
2902
  echo $ac_declaration      >>confdefs.h
 
2903
  echo '#endif'             >>confdefs.h
 
2904
fi
 
2905
 
 
2906
else
 
2907
  echo "$as_me: failed program was:" >&5
 
2908
sed 's/^/| /' conftest.$ac_ext >&5
 
2909
 
 
2910
fi
 
2911
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2912
ac_ext=c
 
2913
ac_cpp='$CPP $CPPFLAGS'
 
2914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2917
DEPDIR="${am__leading_dot}deps"
 
2918
 
 
2919
          ac_config_commands="$ac_config_commands depfiles"
 
2920
 
 
2921
 
 
2922
am_make=${MAKE-make}
 
2923
cat > confinc << 'END'
 
2924
am__doit:
 
2925
        @echo done
 
2926
.PHONY: am__doit
 
2927
END
 
2928
# If we don't find an include directive, just comment out the code.
 
2929
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2930
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2931
am__include="#"
 
2932
am__quote=
 
2933
_am_result=none
 
2934
# First try GNU make style include.
 
2935
echo "include confinc" > confmf
 
2936
# We grep out `Entering directory' and `Leaving directory'
 
2937
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2938
# In particular we don't look at `^make:' because GNU make might
 
2939
# be invoked under some other name (usually "gmake"), in which
 
2940
# case it prints its new name instead of `make'.
 
2941
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2942
   am__include=include
 
2943
   am__quote=
 
2944
   _am_result=GNU
 
2945
fi
 
2946
# Now try BSD make style include.
 
2947
if test "$am__include" = "#"; then
 
2948
   echo '.include "confinc"' > confmf
 
2949
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2950
      am__include=.include
 
2951
      am__quote="\""
 
2952
      _am_result=BSD
 
2953
   fi
 
2954
fi
 
2955
 
 
2956
 
 
2957
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2958
echo "${ECHO_T}$_am_result" >&6
 
2959
rm -f confinc confmf
 
2960
 
 
2961
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2962
if test "${enable_dependency_tracking+set}" = set; then
 
2963
  enableval="$enable_dependency_tracking"
 
2964
 
 
2965
fi;
 
2966
if test "x$enable_dependency_tracking" != xno; then
 
2967
  am_depcomp="$ac_aux_dir/depcomp"
 
2968
  AMDEPBACKSLASH='\'
 
2969
fi
 
2970
 
 
2971
 
 
2972
if test "x$enable_dependency_tracking" != xno; then
 
2973
  AMDEP_TRUE=
 
2974
  AMDEP_FALSE='#'
 
2975
else
 
2976
  AMDEP_TRUE='#'
 
2977
  AMDEP_FALSE=
 
2978
fi
 
2979
 
 
2980
 
 
2981
 
 
2982
 
 
2983
depcc="$CC"   am_compiler_list=
 
2984
 
 
2985
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2986
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2987
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2988
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2989
else
 
2990
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2991
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2992
  # making bogus files that we don't know about and never remove.  For
 
2993
  # instance it was reported that on HP-UX the gcc test will end up
 
2994
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2995
  # in D'.
 
2996
  mkdir conftest.dir
 
2997
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2998
  # using a relative directory.
 
2999
  cp "$am_depcomp" conftest.dir
 
3000
  cd conftest.dir
 
3001
  # We will build objects and dependencies in a subdirectory because
 
3002
  # it helps to detect inapplicable dependency modes.  For instance
 
3003
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3004
  # side effect of compilation, but ICC will put the dependencies in
 
3005
  # the current directory while Tru64 will put them in the object
 
3006
  # directory.
 
3007
  mkdir sub
 
3008
 
 
3009
  am_cv_CC_dependencies_compiler_type=none
 
3010
  if test "$am_compiler_list" = ""; then
 
3011
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3012
  fi
 
3013
  for depmode in $am_compiler_list; do
 
3014
    # Setup a source with many dependencies, because some compilers
 
3015
    # like to wrap large dependency lists on column 80 (with \), and
 
3016
    # we should not choose a depcomp mode which is confused by this.
 
3017
    #
 
3018
    # We need to recreate these files for each test, as the compiler may
 
3019
    # overwrite some of them when testing with obscure command lines.
 
3020
    # This happens at least with the AIX C compiler.
 
3021
    : > sub/conftest.c
 
3022
    for i in 1 2 3 4 5 6; do
 
3023
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3024
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3025
      # Solaris 8's {/usr,}/bin/sh.
 
3026
      touch sub/conftst$i.h
 
3027
    done
 
3028
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3029
 
 
3030
    case $depmode in
 
3031
    nosideeffect)
 
3032
      # after this tag, mechanisms are not by side-effect, so they'll
 
3033
      # only be used when explicitly requested
 
3034
      if test "x$enable_dependency_tracking" = xyes; then
 
3035
        continue
 
3036
      else
 
3037
        break
 
3038
      fi
 
3039
      ;;
 
3040
    none) break ;;
 
3041
    esac
 
3042
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3043
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3044
    # handle `-M -o', and we need to detect this.
 
3045
    if depmode=$depmode \
 
3046
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3047
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3048
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3049
         >/dev/null 2>conftest.err &&
 
3050
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3051
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3052
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3053
      # icc doesn't choke on unknown options, it will just issue warnings
 
3054
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3055
      # that says an option was ignored or not supported.
 
3056
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3057
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3058
      # The diagnosis changed in icc 8.0:
 
3059
      #   icc: Command line remark: option '-MP' not supported
 
3060
      if (grep 'ignoring option' conftest.err ||
 
3061
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3062
        am_cv_CC_dependencies_compiler_type=$depmode
 
3063
        break
 
3064
      fi
 
3065
    fi
 
3066
  done
 
3067
 
 
3068
  cd ..
 
3069
  rm -rf conftest.dir
 
3070
else
 
3071
  am_cv_CC_dependencies_compiler_type=none
 
3072
fi
 
3073
 
 
3074
fi
 
3075
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3076
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3077
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3078
 
 
3079
 
 
3080
 
 
3081
if
 
3082
  test "x$enable_dependency_tracking" != xno \
 
3083
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3084
  am__fastdepCC_TRUE=
 
3085
  am__fastdepCC_FALSE='#'
 
3086
else
 
3087
  am__fastdepCC_TRUE='#'
 
3088
  am__fastdepCC_FALSE=
 
3089
fi
 
3090
 
 
3091
 
 
3092
# Check whether --enable-shared or --disable-shared was given.
 
3093
if test "${enable_shared+set}" = set; then
 
3094
  enableval="$enable_shared"
 
3095
  p=${PACKAGE-default}
 
3096
    case $enableval in
 
3097
    yes) enable_shared=yes ;;
 
3098
    no) enable_shared=no ;;
 
3099
    *)
 
3100
      enable_shared=no
 
3101
      # Look at the argument we got.  We use all the common list separators.
 
3102
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3103
      for pkg in $enableval; do
 
3104
        IFS="$lt_save_ifs"
 
3105
        if test "X$pkg" = "X$p"; then
 
3106
          enable_shared=yes
 
3107
        fi
 
3108
      done
 
3109
      IFS="$lt_save_ifs"
 
3110
      ;;
 
3111
    esac
 
3112
else
 
3113
  enable_shared=yes
 
3114
fi;
 
3115
 
 
3116
# Check whether --enable-static or --disable-static was given.
 
3117
if test "${enable_static+set}" = set; then
 
3118
  enableval="$enable_static"
 
3119
  p=${PACKAGE-default}
 
3120
    case $enableval in
 
3121
    yes) enable_static=yes ;;
 
3122
    no) enable_static=no ;;
 
3123
    *)
 
3124
     enable_static=no
 
3125
      # Look at the argument we got.  We use all the common list separators.
 
3126
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3127
      for pkg in $enableval; do
 
3128
        IFS="$lt_save_ifs"
 
3129
        if test "X$pkg" = "X$p"; then
 
3130
          enable_static=yes
 
3131
        fi
 
3132
      done
 
3133
      IFS="$lt_save_ifs"
 
3134
      ;;
 
3135
    esac
 
3136
else
 
3137
  enable_static=yes
 
3138
fi;
 
3139
 
 
3140
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3141
if test "${enable_fast_install+set}" = set; then
 
3142
  enableval="$enable_fast_install"
 
3143
  p=${PACKAGE-default}
 
3144
    case $enableval in
 
3145
    yes) enable_fast_install=yes ;;
 
3146
    no) enable_fast_install=no ;;
 
3147
    *)
 
3148
      enable_fast_install=no
 
3149
      # Look at the argument we got.  We use all the common list separators.
 
3150
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3151
      for pkg in $enableval; do
 
3152
        IFS="$lt_save_ifs"
 
3153
        if test "X$pkg" = "X$p"; then
 
3154
          enable_fast_install=yes
 
3155
        fi
 
3156
      done
 
3157
      IFS="$lt_save_ifs"
 
3158
      ;;
 
3159
    esac
 
3160
else
 
3161
  enable_fast_install=yes
 
3162
fi;
 
3163
 
 
3164
# Make sure we can run config.sub.
 
3165
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
3166
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
3167
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
3168
   { (exit 1); exit 1; }; }
 
3169
 
 
3170
echo "$as_me:$LINENO: checking build system type" >&5
 
3171
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
3172
if test "${ac_cv_build+set}" = set; then
 
3173
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3174
else
 
3175
  ac_cv_build_alias=$build_alias
 
3176
test -z "$ac_cv_build_alias" &&
 
3177
  ac_cv_build_alias=`$ac_config_guess`
 
3178
test -z "$ac_cv_build_alias" &&
 
3179
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3180
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3181
   { (exit 1); exit 1; }; }
 
3182
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
3183
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
3184
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
3185
   { (exit 1); exit 1; }; }
 
3186
 
 
3187
fi
 
3188
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3189
echo "${ECHO_T}$ac_cv_build" >&6
 
3190
build=$ac_cv_build
 
3191
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3192
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3193
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3194
 
 
3195
 
 
3196
echo "$as_me:$LINENO: checking host system type" >&5
 
3197
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
3198
if test "${ac_cv_host+set}" = set; then
 
3199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3200
else
 
3201
  ac_cv_host_alias=$host_alias
 
3202
test -z "$ac_cv_host_alias" &&
 
3203
  ac_cv_host_alias=$ac_cv_build_alias
 
3204
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
3205
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
3206
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
3207
   { (exit 1); exit 1; }; }
 
3208
 
 
3209
fi
 
3210
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3211
echo "${ECHO_T}$ac_cv_host" >&6
 
3212
host=$ac_cv_host
 
3213
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3214
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3215
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3216
 
 
3217
 
 
3218
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3219
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3220
if test "${lt_cv_path_SED+set}" = set; then
 
3221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3222
else
 
3223
  # Loop through the user's path and test for sed and gsed.
 
3224
# Then use that list of sed's as ones to test for truncation.
 
3225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3226
for as_dir in $PATH
 
3227
do
 
3228
  IFS=$as_save_IFS
 
3229
  test -z "$as_dir" && as_dir=.
 
3230
  for lt_ac_prog in sed gsed; do
 
3231
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3232
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3233
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3234
      fi
 
3235
    done
 
3236
  done
 
3237
done
 
3238
lt_ac_max=0
 
3239
lt_ac_count=0
 
3240
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3241
# along with /bin/sed that truncates output.
 
3242
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3243
  test ! -f $lt_ac_sed && break
 
3244
  cat /dev/null > conftest.in
 
3245
  lt_ac_count=0
 
3246
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3247
  # Check for GNU sed and select it if it is found.
 
3248
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3249
    lt_cv_path_SED=$lt_ac_sed
 
3250
    break
 
3251
  fi
 
3252
  while true; do
 
3253
    cat conftest.in conftest.in >conftest.tmp
 
3254
    mv conftest.tmp conftest.in
 
3255
    cp conftest.in conftest.nl
 
3256
    echo >>conftest.nl
 
3257
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3258
    cmp -s conftest.out conftest.nl || break
 
3259
    # 10000 chars as input seems more than enough
 
3260
    test $lt_ac_count -gt 10 && break
 
3261
    lt_ac_count=`expr $lt_ac_count + 1`
 
3262
    if test $lt_ac_count -gt $lt_ac_max; then
 
3263
      lt_ac_max=$lt_ac_count
 
3264
      lt_cv_path_SED=$lt_ac_sed
 
3265
    fi
 
3266
  done
 
3267
done
 
3268
SED=$lt_cv_path_SED
 
3269
 
 
3270
fi
 
3271
 
 
3272
echo "$as_me:$LINENO: result: $SED" >&5
 
3273
echo "${ECHO_T}$SED" >&6
 
3274
 
 
3275
echo "$as_me:$LINENO: checking for egrep" >&5
 
3276
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3277
if test "${ac_cv_prog_egrep+set}" = set; then
 
3278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3279
else
 
3280
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3281
    then ac_cv_prog_egrep='grep -E'
 
3282
    else ac_cv_prog_egrep='egrep'
 
3283
    fi
 
3284
fi
 
3285
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3286
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3287
 EGREP=$ac_cv_prog_egrep
 
3288
 
 
3289
 
 
3290
 
 
3291
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3292
if test "${with_gnu_ld+set}" = set; then
 
3293
  withval="$with_gnu_ld"
 
3294
  test "$withval" = no || with_gnu_ld=yes
 
3295
else
 
3296
  with_gnu_ld=no
 
3297
fi;
 
3298
ac_prog=ld
 
3299
if test "$GCC" = yes; then
 
3300
  # Check if gcc -print-prog-name=ld gives a path.
 
3301
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3302
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3303
  case $host in
 
3304
  *-*-mingw*)
 
3305
    # gcc leaves a trailing carriage return which upsets mingw
 
3306
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3307
  *)
 
3308
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3309
  esac
 
3310
  case $ac_prog in
 
3311
    # Accept absolute paths.
 
3312
    [\\/]* | ?:[\\/]*)
 
3313
      re_direlt='/[^/][^/]*/\.\./'
 
3314
      # Canonicalize the pathname of ld
 
3315
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3316
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3317
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3318
      done
 
3319
      test -z "$LD" && LD="$ac_prog"
 
3320
      ;;
 
3321
  "")
 
3322
    # If it fails, then pretend we aren't using GCC.
 
3323
    ac_prog=ld
 
3324
    ;;
 
3325
  *)
 
3326
    # If it is relative, then search for the first ld in PATH.
 
3327
    with_gnu_ld=unknown
 
3328
    ;;
 
3329
  esac
 
3330
elif test "$with_gnu_ld" = yes; then
 
3331
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3332
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3333
else
 
3334
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3335
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3336
fi
 
3337
if test "${lt_cv_path_LD+set}" = set; then
 
3338
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3339
else
 
3340
  if test -z "$LD"; then
 
3341
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3342
  for ac_dir in $PATH; do
 
3343
    IFS="$lt_save_ifs"
 
3344
    test -z "$ac_dir" && ac_dir=.
 
3345
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3346
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3347
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3348
      # but apparently some GNU ld's only accept -v.
 
3349
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3350
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3351
      *GNU* | *'with BFD'*)
 
3352
        test "$with_gnu_ld" != no && break
 
3353
        ;;
 
3354
      *)
 
3355
        test "$with_gnu_ld" != yes && break
 
3356
        ;;
 
3357
      esac
 
3358
    fi
 
3359
  done
 
3360
  IFS="$lt_save_ifs"
 
3361
else
 
3362
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3363
fi
 
3364
fi
 
3365
 
 
3366
LD="$lt_cv_path_LD"
 
3367
if test -n "$LD"; then
 
3368
  echo "$as_me:$LINENO: result: $LD" >&5
 
3369
echo "${ECHO_T}$LD" >&6
 
3370
else
 
3371
  echo "$as_me:$LINENO: result: no" >&5
 
3372
echo "${ECHO_T}no" >&6
 
3373
fi
 
3374
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3375
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3376
   { (exit 1); exit 1; }; }
 
3377
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3378
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3379
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3381
else
 
3382
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3383
case `$LD -v 2>&1 </dev/null` in
 
3384
*GNU* | *'with BFD'*)
 
3385
  lt_cv_prog_gnu_ld=yes
 
3386
  ;;
 
3387
*)
 
3388
  lt_cv_prog_gnu_ld=no
 
3389
  ;;
 
3390
esac
 
3391
fi
 
3392
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3393
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3394
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3395
 
 
3396
 
 
3397
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3398
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3399
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3400
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3401
else
 
3402
  lt_cv_ld_reload_flag='-r'
 
3403
fi
 
3404
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3405
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3406
reload_flag=$lt_cv_ld_reload_flag
 
3407
case $reload_flag in
 
3408
"" | " "*) ;;
 
3409
*) reload_flag=" $reload_flag" ;;
 
3410
esac
 
3411
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3412
 
 
3413
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3414
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3415
if test "${lt_cv_path_NM+set}" = set; then
 
3416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3417
else
 
3418
  if test -n "$NM"; then
 
3419
  # Let the user override the test.
 
3420
  lt_cv_path_NM="$NM"
 
3421
else
 
3422
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3423
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3424
    IFS="$lt_save_ifs"
 
3425
    test -z "$ac_dir" && ac_dir=.
 
3426
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3427
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3428
      # Check to see if the nm accepts a BSD-compat flag.
 
3429
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3430
      #   nm: unknown option "B" ignored
 
3431
      # Tru64's nm complains that /dev/null is an invalid object file
 
3432
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3433
      */dev/null* | *'Invalid file or object type'*)
 
3434
        lt_cv_path_NM="$tmp_nm -B"
 
3435
        break
 
3436
        ;;
 
3437
      *)
 
3438
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3439
        */dev/null*)
 
3440
          lt_cv_path_NM="$tmp_nm -p"
 
3441
          break
 
3442
          ;;
 
3443
        *)
 
3444
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3445
          continue # so that we can try to find one that supports BSD flags
 
3446
          ;;
 
3447
        esac
 
3448
      esac
 
3449
    fi
 
3450
  done
 
3451
  IFS="$lt_save_ifs"
 
3452
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3453
fi
 
3454
fi
 
3455
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3456
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3457
NM="$lt_cv_path_NM"
 
3458
 
 
3459
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3460
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3461
LN_S=$as_ln_s
 
3462
if test "$LN_S" = "ln -s"; then
 
3463
  echo "$as_me:$LINENO: result: yes" >&5
 
3464
echo "${ECHO_T}yes" >&6
 
3465
else
 
3466
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3467
echo "${ECHO_T}no, using $LN_S" >&6
 
3468
fi
 
3469
 
 
3470
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3471
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3472
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3474
else
 
3475
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3476
lt_cv_file_magic_test_file=
 
3477
lt_cv_deplibs_check_method='unknown'
 
3478
# Need to set the preceding variable on all platforms that support
 
3479
# interlibrary dependencies.
 
3480
# 'none' -- dependencies not supported.
 
3481
# `unknown' -- same as none, but documents that we really don't know.
 
3482
# 'pass_all' -- all dependencies passed with no checks.
 
3483
# 'test_compile' -- check by making test program.
 
3484
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3485
# which responds to the $file_magic_cmd with a given extended regex.
 
3486
# If you have `file' or equivalent on your system and you're not sure
 
3487
# whether `pass_all' will *always* work, you probably want this one.
 
3488
 
 
3489
case $host_os in
 
3490
aix4* | aix5*)
 
3491
  lt_cv_deplibs_check_method=pass_all
 
3492
  ;;
 
3493
 
 
3494
beos*)
 
3495
  lt_cv_deplibs_check_method=pass_all
 
3496
  ;;
 
3497
 
 
3498
bsdi4*)
 
3499
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3500
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3501
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3502
  ;;
 
3503
 
 
3504
cygwin*)
 
3505
  # func_win32_libid is a shell function defined in ltmain.sh
 
3506
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3507
  lt_cv_file_magic_cmd='func_win32_libid'
 
3508
  ;;
 
3509
 
 
3510
mingw* | pw32*)
 
3511
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3512
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3513
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3514
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3515
  ;;
 
3516
 
 
3517
darwin* | rhapsody*)
 
3518
  lt_cv_deplibs_check_method=pass_all
 
3519
  ;;
 
3520
 
 
3521
freebsd* | kfreebsd*-gnu)
 
3522
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3523
    case $host_cpu in
 
3524
    i*86 )
 
3525
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3526
      # Let's accept both of them until this is cleared up.
 
3527
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3528
      lt_cv_file_magic_cmd=/usr/bin/file
 
3529
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3530
      ;;
 
3531
    esac
 
3532
  else
 
3533
    lt_cv_deplibs_check_method=pass_all
 
3534
  fi
 
3535
  ;;
 
3536
 
 
3537
gnu*)
 
3538
  lt_cv_deplibs_check_method=pass_all
 
3539
  ;;
 
3540
 
 
3541
hpux10.20* | hpux11*)
 
3542
  lt_cv_file_magic_cmd=/usr/bin/file
 
3543
  case "$host_cpu" in
 
3544
  ia64*)
 
3545
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3546
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3547
    ;;
 
3548
  hppa*64*)
 
3549
    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]'
 
3550
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3551
    ;;
 
3552
  *)
 
3553
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3554
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3555
    ;;
 
3556
  esac
 
3557
  ;;
 
3558
 
 
3559
irix5* | irix6* | nonstopux*)
 
3560
  case $LD in
 
3561
  *-32|*"-32 ") libmagic=32-bit;;
 
3562
  *-n32|*"-n32 ") libmagic=N32;;
 
3563
  *-64|*"-64 ") libmagic=64-bit;;
 
3564
  *) libmagic=never-match;;
 
3565
  esac
 
3566
  lt_cv_deplibs_check_method=pass_all
 
3567
  ;;
 
3568
 
 
3569
# This must be Linux ELF.
 
3570
linux*)
 
3571
  lt_cv_deplibs_check_method=pass_all
 
3572
  ;;
 
3573
 
 
3574
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3575
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3576
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3577
  else
 
3578
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3579
  fi
 
3580
  ;;
 
3581
 
 
3582
newos6*)
 
3583
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3584
  lt_cv_file_magic_cmd=/usr/bin/file
 
3585
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3586
  ;;
 
3587
 
 
3588
nto-qnx*)
 
3589
  lt_cv_deplibs_check_method=unknown
 
3590
  ;;
 
3591
 
 
3592
openbsd*)
 
3593
  lt_cv_file_magic_cmd=/usr/bin/file
 
3594
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3595
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3596
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3597
  else
 
3598
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3599
  fi
 
3600
  ;;
 
3601
 
 
3602
osf3* | osf4* | osf5*)
 
3603
  lt_cv_deplibs_check_method=pass_all
 
3604
  ;;
 
3605
 
 
3606
sco3.2v5*)
 
3607
  lt_cv_deplibs_check_method=pass_all
 
3608
  ;;
 
3609
 
 
3610
solaris*)
 
3611
  lt_cv_deplibs_check_method=pass_all
 
3612
  ;;
 
3613
 
 
3614
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3615
  case $host_vendor in
 
3616
  motorola)
 
3617
    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]'
 
3618
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3619
    ;;
 
3620
  ncr)
 
3621
    lt_cv_deplibs_check_method=pass_all
 
3622
    ;;
 
3623
  sequent)
 
3624
    lt_cv_file_magic_cmd='/bin/file'
 
3625
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3626
    ;;
 
3627
  sni)
 
3628
    lt_cv_file_magic_cmd='/bin/file'
 
3629
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3630
    lt_cv_file_magic_test_file=/lib/libc.so
 
3631
    ;;
 
3632
  siemens)
 
3633
    lt_cv_deplibs_check_method=pass_all
 
3634
    ;;
 
3635
  esac
 
3636
  ;;
 
3637
 
 
3638
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3639
  lt_cv_deplibs_check_method=pass_all
 
3640
  ;;
 
3641
esac
 
3642
 
 
3643
fi
 
3644
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3645
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3646
file_magic_cmd=$lt_cv_file_magic_cmd
 
3647
deplibs_check_method=$lt_cv_deplibs_check_method
 
3648
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3649
 
 
3650
 
 
3651
 
 
3652
 
 
3653
# If no C compiler was specified, use CC.
 
3654
LTCC=${LTCC-"$CC"}
 
3655
 
 
3656
# Allow CC to be a program name with arguments.
 
3657
compiler=$CC
 
3658
 
 
3659
 
 
3660
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3661
if test "${enable_libtool_lock+set}" = set; then
 
3662
  enableval="$enable_libtool_lock"
 
3663
 
 
3664
fi;
 
3665
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3666
 
 
3667
# Some flags need to be propagated to the compiler or linker for good
 
3668
# libtool support.
 
3669
case $host in
 
3670
ia64-*-hpux*)
 
3671
  # Find out which ABI we are using.
 
3672
  echo 'int i;' > conftest.$ac_ext
 
3673
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3674
  (eval $ac_compile) 2>&5
 
3675
  ac_status=$?
 
3676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3677
  (exit $ac_status); }; then
 
3678
    case `/usr/bin/file conftest.$ac_objext` in
 
3679
    *ELF-32*)
 
3680
      HPUX_IA64_MODE="32"
 
3681
      ;;
 
3682
    *ELF-64*)
 
3683
      HPUX_IA64_MODE="64"
 
3684
      ;;
 
3685
    esac
 
3686
  fi
 
3687
  rm -rf conftest*
 
3688
  ;;
 
3689
*-*-irix6*)
 
3690
  # Find out which ABI we are using.
 
3691
  echo '#line 3691 "configure"' > conftest.$ac_ext
 
3692
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3693
  (eval $ac_compile) 2>&5
 
3694
  ac_status=$?
 
3695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3696
  (exit $ac_status); }; then
 
3697
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3698
    case `/usr/bin/file conftest.$ac_objext` in
 
3699
    *32-bit*)
 
3700
      LD="${LD-ld} -melf32bsmip"
 
3701
      ;;
 
3702
    *N32*)
 
3703
      LD="${LD-ld} -melf32bmipn32"
 
3704
      ;;
 
3705
    *64-bit*)
 
3706
      LD="${LD-ld} -melf64bmip"
 
3707
      ;;
 
3708
    esac
 
3709
   else
 
3710
    case `/usr/bin/file conftest.$ac_objext` in
 
3711
    *32-bit*)
 
3712
      LD="${LD-ld} -32"
 
3713
      ;;
 
3714
    *N32*)
 
3715
      LD="${LD-ld} -n32"
 
3716
      ;;
 
3717
    *64-bit*)
 
3718
      LD="${LD-ld} -64"
 
3719
      ;;
 
3720
    esac
 
3721
   fi
 
3722
  fi
 
3723
  rm -rf conftest*
 
3724
  ;;
 
3725
 
 
3726
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3727
  # Find out which ABI we are using.
 
3728
  echo 'int i;' > conftest.$ac_ext
 
3729
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3730
  (eval $ac_compile) 2>&5
 
3731
  ac_status=$?
 
3732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3733
  (exit $ac_status); }; then
 
3734
    case "`/usr/bin/file conftest.o`" in
 
3735
    *32-bit*)
 
3736
      case $host in
 
3737
        x86_64-*linux*)
 
3738
          LD="${LD-ld} -m elf_i386"
 
3739
          ;;
 
3740
        ppc64-*linux*|powerpc64-*linux*)
 
3741
          LD="${LD-ld} -m elf32ppclinux"
 
3742
          ;;
 
3743
        s390x-*linux*)
 
3744
          LD="${LD-ld} -m elf_s390"
 
3745
          ;;
 
3746
        sparc64-*linux*)
 
3747
          LD="${LD-ld} -m elf32_sparc"
 
3748
          ;;
 
3749
      esac
 
3750
      ;;
 
3751
    *64-bit*)
 
3752
      case $host in
 
3753
        x86_64-*linux*)
 
3754
          LD="${LD-ld} -m elf_x86_64"
 
3755
          ;;
 
3756
        ppc*-*linux*|powerpc*-*linux*)
 
3757
          LD="${LD-ld} -m elf64ppc"
 
3758
          ;;
 
3759
        s390*-*linux*)
 
3760
          LD="${LD-ld} -m elf64_s390"
 
3761
          ;;
 
3762
        sparc*-*linux*)
 
3763
          LD="${LD-ld} -m elf64_sparc"
 
3764
          ;;
 
3765
      esac
 
3766
      ;;
 
3767
    esac
 
3768
  fi
 
3769
  rm -rf conftest*
 
3770
  ;;
 
3771
 
 
3772
*-*-sco3.2v5*)
 
3773
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3774
  SAVE_CFLAGS="$CFLAGS"
 
3775
  CFLAGS="$CFLAGS -belf"
 
3776
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3777
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3778
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3780
else
 
3781
  ac_ext=c
 
3782
ac_cpp='$CPP $CPPFLAGS'
 
3783
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3784
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3785
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3786
 
 
3787
     cat >conftest.$ac_ext <<_ACEOF
 
3788
/* confdefs.h.  */
 
3789
_ACEOF
 
3790
cat confdefs.h >>conftest.$ac_ext
 
3791
cat >>conftest.$ac_ext <<_ACEOF
 
3792
/* end confdefs.h.  */
 
3793
 
 
3794
int
 
3795
main ()
 
3796
{
 
3797
 
 
3798
  ;
 
3799
  return 0;
 
3800
}
 
3801
_ACEOF
 
3802
rm -f conftest.$ac_objext conftest$ac_exeext
 
3803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3804
  (eval $ac_link) 2>conftest.er1
 
3805
  ac_status=$?
 
3806
  grep -v '^ *+' conftest.er1 >conftest.err
 
3807
  rm -f conftest.er1
 
3808
  cat conftest.err >&5
 
3809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3810
  (exit $ac_status); } &&
 
3811
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3813
  (eval $ac_try) 2>&5
 
3814
  ac_status=$?
 
3815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3816
  (exit $ac_status); }; } &&
 
3817
         { ac_try='test -s conftest$ac_exeext'
 
3818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3819
  (eval $ac_try) 2>&5
 
3820
  ac_status=$?
 
3821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3822
  (exit $ac_status); }; }; then
 
3823
  lt_cv_cc_needs_belf=yes
 
3824
else
 
3825
  echo "$as_me: failed program was:" >&5
 
3826
sed 's/^/| /' conftest.$ac_ext >&5
 
3827
 
 
3828
lt_cv_cc_needs_belf=no
 
3829
fi
 
3830
rm -f conftest.err conftest.$ac_objext \
 
3831
      conftest$ac_exeext conftest.$ac_ext
 
3832
     ac_ext=c
 
3833
ac_cpp='$CPP $CPPFLAGS'
 
3834
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3835
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3836
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3837
 
 
3838
fi
 
3839
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3840
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3841
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3842
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3843
    CFLAGS="$SAVE_CFLAGS"
 
3844
  fi
 
3845
  ;;
 
3846
 
 
3847
esac
 
3848
 
 
3849
need_locks="$enable_libtool_lock"
 
3850
 
 
3851
 
 
3852
ac_ext=c
 
3853
ac_cpp='$CPP $CPPFLAGS'
 
3854
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3855
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3856
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3857
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3858
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3859
# On Suns, sometimes $CPP names a directory.
 
3860
if test -n "$CPP" && test -d "$CPP"; then
 
3861
  CPP=
 
3862
fi
 
3863
if test -z "$CPP"; then
 
3864
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3866
else
 
3867
      # Double quotes because CPP needs to be expanded
 
3868
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3869
    do
 
3870
      ac_preproc_ok=false
 
3871
for ac_c_preproc_warn_flag in '' yes
 
3872
do
 
3873
  # Use a header file that comes with gcc, so configuring glibc
 
3874
  # with a fresh cross-compiler works.
 
3875
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3876
  # <limits.h> exists even on freestanding compilers.
 
3877
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3878
  # not just through cpp. "Syntax error" is here to catch this case.
 
3879
  cat >conftest.$ac_ext <<_ACEOF
 
3880
/* confdefs.h.  */
 
3881
_ACEOF
 
3882
cat confdefs.h >>conftest.$ac_ext
 
3883
cat >>conftest.$ac_ext <<_ACEOF
 
3884
/* end confdefs.h.  */
 
3885
#ifdef __STDC__
 
3886
# include <limits.h>
 
3887
#else
 
3888
# include <assert.h>
 
3889
#endif
 
3890
                     Syntax error
 
3891
_ACEOF
 
3892
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3893
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3894
  ac_status=$?
 
3895
  grep -v '^ *+' conftest.er1 >conftest.err
 
3896
  rm -f conftest.er1
 
3897
  cat conftest.err >&5
 
3898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3899
  (exit $ac_status); } >/dev/null; then
 
3900
  if test -s conftest.err; then
 
3901
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3902
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3903
  else
 
3904
    ac_cpp_err=
 
3905
  fi
 
3906
else
 
3907
  ac_cpp_err=yes
 
3908
fi
 
3909
if test -z "$ac_cpp_err"; then
 
3910
  :
 
3911
else
 
3912
  echo "$as_me: failed program was:" >&5
 
3913
sed 's/^/| /' conftest.$ac_ext >&5
 
3914
 
 
3915
  # Broken: fails on valid input.
 
3916
continue
 
3917
fi
 
3918
rm -f conftest.err conftest.$ac_ext
 
3919
 
 
3920
  # OK, works on sane cases.  Now check whether non-existent headers
 
3921
  # can be detected and how.
 
3922
  cat >conftest.$ac_ext <<_ACEOF
 
3923
/* confdefs.h.  */
 
3924
_ACEOF
 
3925
cat confdefs.h >>conftest.$ac_ext
 
3926
cat >>conftest.$ac_ext <<_ACEOF
 
3927
/* end confdefs.h.  */
 
3928
#include <ac_nonexistent.h>
 
3929
_ACEOF
 
3930
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3931
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3932
  ac_status=$?
 
3933
  grep -v '^ *+' conftest.er1 >conftest.err
 
3934
  rm -f conftest.er1
 
3935
  cat conftest.err >&5
 
3936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3937
  (exit $ac_status); } >/dev/null; then
 
3938
  if test -s conftest.err; then
 
3939
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3940
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3941
  else
 
3942
    ac_cpp_err=
 
3943
  fi
 
3944
else
 
3945
  ac_cpp_err=yes
 
3946
fi
 
3947
if test -z "$ac_cpp_err"; then
 
3948
  # Broken: success on invalid input.
 
3949
continue
 
3950
else
 
3951
  echo "$as_me: failed program was:" >&5
 
3952
sed 's/^/| /' conftest.$ac_ext >&5
 
3953
 
 
3954
  # Passes both tests.
 
3955
ac_preproc_ok=:
 
3956
break
 
3957
fi
 
3958
rm -f conftest.err conftest.$ac_ext
 
3959
 
 
3960
done
 
3961
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3962
rm -f conftest.err conftest.$ac_ext
 
3963
if $ac_preproc_ok; then
 
3964
  break
 
3965
fi
 
3966
 
 
3967
    done
 
3968
    ac_cv_prog_CPP=$CPP
 
3969
 
 
3970
fi
 
3971
  CPP=$ac_cv_prog_CPP
 
3972
else
 
3973
  ac_cv_prog_CPP=$CPP
 
3974
fi
 
3975
echo "$as_me:$LINENO: result: $CPP" >&5
 
3976
echo "${ECHO_T}$CPP" >&6
 
3977
ac_preproc_ok=false
 
3978
for ac_c_preproc_warn_flag in '' yes
 
3979
do
 
3980
  # Use a header file that comes with gcc, so configuring glibc
 
3981
  # with a fresh cross-compiler works.
 
3982
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3983
  # <limits.h> exists even on freestanding compilers.
 
3984
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3985
  # not just through cpp. "Syntax error" is here to catch this case.
 
3986
  cat >conftest.$ac_ext <<_ACEOF
 
3987
/* confdefs.h.  */
 
3988
_ACEOF
 
3989
cat confdefs.h >>conftest.$ac_ext
 
3990
cat >>conftest.$ac_ext <<_ACEOF
 
3991
/* end confdefs.h.  */
 
3992
#ifdef __STDC__
 
3993
# include <limits.h>
 
3994
#else
 
3995
# include <assert.h>
 
3996
#endif
 
3997
                     Syntax error
 
3998
_ACEOF
 
3999
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4000
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4001
  ac_status=$?
 
4002
  grep -v '^ *+' conftest.er1 >conftest.err
 
4003
  rm -f conftest.er1
 
4004
  cat conftest.err >&5
 
4005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4006
  (exit $ac_status); } >/dev/null; then
 
4007
  if test -s conftest.err; then
 
4008
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4009
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4010
  else
 
4011
    ac_cpp_err=
 
4012
  fi
 
4013
else
 
4014
  ac_cpp_err=yes
 
4015
fi
 
4016
if test -z "$ac_cpp_err"; then
 
4017
  :
 
4018
else
 
4019
  echo "$as_me: failed program was:" >&5
 
4020
sed 's/^/| /' conftest.$ac_ext >&5
 
4021
 
 
4022
  # Broken: fails on valid input.
 
4023
continue
 
4024
fi
 
4025
rm -f conftest.err conftest.$ac_ext
 
4026
 
 
4027
  # OK, works on sane cases.  Now check whether non-existent headers
 
4028
  # can be detected and how.
 
4029
  cat >conftest.$ac_ext <<_ACEOF
 
4030
/* confdefs.h.  */
 
4031
_ACEOF
 
4032
cat confdefs.h >>conftest.$ac_ext
 
4033
cat >>conftest.$ac_ext <<_ACEOF
 
4034
/* end confdefs.h.  */
 
4035
#include <ac_nonexistent.h>
 
4036
_ACEOF
 
4037
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4038
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4039
  ac_status=$?
 
4040
  grep -v '^ *+' conftest.er1 >conftest.err
 
4041
  rm -f conftest.er1
 
4042
  cat conftest.err >&5
 
4043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4044
  (exit $ac_status); } >/dev/null; then
 
4045
  if test -s conftest.err; then
 
4046
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4047
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4048
  else
 
4049
    ac_cpp_err=
 
4050
  fi
 
4051
else
 
4052
  ac_cpp_err=yes
 
4053
fi
 
4054
if test -z "$ac_cpp_err"; then
 
4055
  # Broken: success on invalid input.
 
4056
continue
 
4057
else
 
4058
  echo "$as_me: failed program was:" >&5
 
4059
sed 's/^/| /' conftest.$ac_ext >&5
 
4060
 
 
4061
  # Passes both tests.
 
4062
ac_preproc_ok=:
 
4063
break
 
4064
fi
 
4065
rm -f conftest.err conftest.$ac_ext
 
4066
 
 
4067
done
 
4068
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4069
rm -f conftest.err conftest.$ac_ext
 
4070
if $ac_preproc_ok; then
 
4071
  :
 
4072
else
 
4073
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4074
See \`config.log' for more details." >&5
 
4075
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4076
See \`config.log' for more details." >&2;}
 
4077
   { (exit 1); exit 1; }; }
 
4078
fi
 
4079
 
 
4080
ac_ext=c
 
4081
ac_cpp='$CPP $CPPFLAGS'
 
4082
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4083
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4084
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4085
 
 
4086
 
 
4087
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4088
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4089
if test "${ac_cv_header_stdc+set}" = set; then
 
4090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4091
else
 
4092
  cat >conftest.$ac_ext <<_ACEOF
 
4093
/* confdefs.h.  */
 
4094
_ACEOF
 
4095
cat confdefs.h >>conftest.$ac_ext
 
4096
cat >>conftest.$ac_ext <<_ACEOF
 
4097
/* end confdefs.h.  */
 
4098
#include <stdlib.h>
 
4099
#include <stdarg.h>
 
4100
#include <string.h>
 
4101
#include <float.h>
 
4102
 
 
4103
int
 
4104
main ()
 
4105
{
 
4106
 
 
4107
  ;
 
4108
  return 0;
 
4109
}
 
4110
_ACEOF
 
4111
rm -f conftest.$ac_objext
 
4112
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4113
  (eval $ac_compile) 2>conftest.er1
 
4114
  ac_status=$?
 
4115
  grep -v '^ *+' conftest.er1 >conftest.err
 
4116
  rm -f conftest.er1
 
4117
  cat conftest.err >&5
 
4118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4119
  (exit $ac_status); } &&
 
4120
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4121
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4122
  (eval $ac_try) 2>&5
 
4123
  ac_status=$?
 
4124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4125
  (exit $ac_status); }; } &&
 
4126
         { ac_try='test -s conftest.$ac_objext'
 
4127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4128
  (eval $ac_try) 2>&5
 
4129
  ac_status=$?
 
4130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4131
  (exit $ac_status); }; }; then
 
4132
  ac_cv_header_stdc=yes
 
4133
else
 
4134
  echo "$as_me: failed program was:" >&5
 
4135
sed 's/^/| /' conftest.$ac_ext >&5
 
4136
 
 
4137
ac_cv_header_stdc=no
 
4138
fi
 
4139
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4140
 
 
4141
if test $ac_cv_header_stdc = yes; then
 
4142
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4143
  cat >conftest.$ac_ext <<_ACEOF
 
4144
/* confdefs.h.  */
 
4145
_ACEOF
 
4146
cat confdefs.h >>conftest.$ac_ext
 
4147
cat >>conftest.$ac_ext <<_ACEOF
 
4148
/* end confdefs.h.  */
 
4149
#include <string.h>
 
4150
 
 
4151
_ACEOF
 
4152
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4153
  $EGREP "memchr" >/dev/null 2>&1; then
 
4154
  :
 
4155
else
 
4156
  ac_cv_header_stdc=no
 
4157
fi
 
4158
rm -f conftest*
 
4159
 
 
4160
fi
 
4161
 
 
4162
if test $ac_cv_header_stdc = yes; then
 
4163
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4164
  cat >conftest.$ac_ext <<_ACEOF
 
4165
/* confdefs.h.  */
 
4166
_ACEOF
 
4167
cat confdefs.h >>conftest.$ac_ext
 
4168
cat >>conftest.$ac_ext <<_ACEOF
 
4169
/* end confdefs.h.  */
 
4170
#include <stdlib.h>
 
4171
 
 
4172
_ACEOF
 
4173
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4174
  $EGREP "free" >/dev/null 2>&1; then
 
4175
  :
 
4176
else
 
4177
  ac_cv_header_stdc=no
 
4178
fi
 
4179
rm -f conftest*
 
4180
 
 
4181
fi
 
4182
 
 
4183
if test $ac_cv_header_stdc = yes; then
 
4184
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4185
  if test "$cross_compiling" = yes; then
 
4186
  :
 
4187
else
 
4188
  cat >conftest.$ac_ext <<_ACEOF
 
4189
/* confdefs.h.  */
 
4190
_ACEOF
 
4191
cat confdefs.h >>conftest.$ac_ext
 
4192
cat >>conftest.$ac_ext <<_ACEOF
 
4193
/* end confdefs.h.  */
 
4194
#include <ctype.h>
 
4195
#if ((' ' & 0x0FF) == 0x020)
 
4196
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4197
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4198
#else
 
4199
# define ISLOWER(c) \
 
4200
                   (('a' <= (c) && (c) <= 'i') \
 
4201
                     || ('j' <= (c) && (c) <= 'r') \
 
4202
                     || ('s' <= (c) && (c) <= 'z'))
 
4203
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4204
#endif
 
4205
 
 
4206
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4207
int
 
4208
main ()
 
4209
{
 
4210
  int i;
 
4211
  for (i = 0; i < 256; i++)
 
4212
    if (XOR (islower (i), ISLOWER (i))
 
4213
        || toupper (i) != TOUPPER (i))
 
4214
      exit(2);
 
4215
  exit (0);
 
4216
}
 
4217
_ACEOF
 
4218
rm -f conftest$ac_exeext
 
4219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4220
  (eval $ac_link) 2>&5
 
4221
  ac_status=$?
 
4222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4223
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4225
  (eval $ac_try) 2>&5
 
4226
  ac_status=$?
 
4227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4228
  (exit $ac_status); }; }; then
 
4229
  :
 
4230
else
 
4231
  echo "$as_me: program exited with status $ac_status" >&5
 
4232
echo "$as_me: failed program was:" >&5
 
4233
sed 's/^/| /' conftest.$ac_ext >&5
 
4234
 
 
4235
( exit $ac_status )
 
4236
ac_cv_header_stdc=no
 
4237
fi
 
4238
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4239
fi
 
4240
fi
 
4241
fi
 
4242
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4243
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4244
if test $ac_cv_header_stdc = yes; then
 
4245
 
 
4246
cat >>confdefs.h <<\_ACEOF
 
4247
#define STDC_HEADERS 1
 
4248
_ACEOF
 
4249
 
 
4250
fi
 
4251
 
 
4252
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4253
 
 
4254
 
 
4255
 
 
4256
 
 
4257
 
 
4258
 
 
4259
 
 
4260
 
 
4261
 
 
4262
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4263
                  inttypes.h stdint.h unistd.h
 
4264
do
 
4265
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4266
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4267
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4268
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4269
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4270
else
 
4271
  cat >conftest.$ac_ext <<_ACEOF
 
4272
/* confdefs.h.  */
 
4273
_ACEOF
 
4274
cat confdefs.h >>conftest.$ac_ext
 
4275
cat >>conftest.$ac_ext <<_ACEOF
 
4276
/* end confdefs.h.  */
 
4277
$ac_includes_default
 
4278
 
 
4279
#include <$ac_header>
 
4280
_ACEOF
 
4281
rm -f conftest.$ac_objext
 
4282
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4283
  (eval $ac_compile) 2>conftest.er1
 
4284
  ac_status=$?
 
4285
  grep -v '^ *+' conftest.er1 >conftest.err
 
4286
  rm -f conftest.er1
 
4287
  cat conftest.err >&5
 
4288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4289
  (exit $ac_status); } &&
 
4290
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4292
  (eval $ac_try) 2>&5
 
4293
  ac_status=$?
 
4294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4295
  (exit $ac_status); }; } &&
 
4296
         { ac_try='test -s conftest.$ac_objext'
 
4297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4298
  (eval $ac_try) 2>&5
 
4299
  ac_status=$?
 
4300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4301
  (exit $ac_status); }; }; then
 
4302
  eval "$as_ac_Header=yes"
 
4303
else
 
4304
  echo "$as_me: failed program was:" >&5
 
4305
sed 's/^/| /' conftest.$ac_ext >&5
 
4306
 
 
4307
eval "$as_ac_Header=no"
 
4308
fi
 
4309
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4310
fi
 
4311
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4312
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4313
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4314
  cat >>confdefs.h <<_ACEOF
 
4315
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4316
_ACEOF
 
4317
 
 
4318
fi
 
4319
 
 
4320
done
 
4321
 
 
4322
 
 
4323
 
 
4324
for ac_header in dlfcn.h
 
4325
do
 
4326
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4327
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4328
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4329
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4330
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4332
fi
 
4333
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4334
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4335
else
 
4336
  # Is the header compilable?
 
4337
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4338
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4339
cat >conftest.$ac_ext <<_ACEOF
 
4340
/* confdefs.h.  */
 
4341
_ACEOF
 
4342
cat confdefs.h >>conftest.$ac_ext
 
4343
cat >>conftest.$ac_ext <<_ACEOF
 
4344
/* end confdefs.h.  */
 
4345
$ac_includes_default
 
4346
#include <$ac_header>
 
4347
_ACEOF
 
4348
rm -f conftest.$ac_objext
 
4349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4350
  (eval $ac_compile) 2>conftest.er1
 
4351
  ac_status=$?
 
4352
  grep -v '^ *+' conftest.er1 >conftest.err
 
4353
  rm -f conftest.er1
 
4354
  cat conftest.err >&5
 
4355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4356
  (exit $ac_status); } &&
 
4357
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4359
  (eval $ac_try) 2>&5
 
4360
  ac_status=$?
 
4361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4362
  (exit $ac_status); }; } &&
 
4363
         { ac_try='test -s conftest.$ac_objext'
 
4364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4365
  (eval $ac_try) 2>&5
 
4366
  ac_status=$?
 
4367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4368
  (exit $ac_status); }; }; then
 
4369
  ac_header_compiler=yes
 
4370
else
 
4371
  echo "$as_me: failed program was:" >&5
 
4372
sed 's/^/| /' conftest.$ac_ext >&5
 
4373
 
 
4374
ac_header_compiler=no
 
4375
fi
 
4376
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4377
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4378
echo "${ECHO_T}$ac_header_compiler" >&6
 
4379
 
 
4380
# Is the header present?
 
4381
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4382
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4383
cat >conftest.$ac_ext <<_ACEOF
 
4384
/* confdefs.h.  */
 
4385
_ACEOF
 
4386
cat confdefs.h >>conftest.$ac_ext
 
4387
cat >>conftest.$ac_ext <<_ACEOF
 
4388
/* end confdefs.h.  */
 
4389
#include <$ac_header>
 
4390
_ACEOF
 
4391
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4392
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4393
  ac_status=$?
 
4394
  grep -v '^ *+' conftest.er1 >conftest.err
 
4395
  rm -f conftest.er1
 
4396
  cat conftest.err >&5
 
4397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4398
  (exit $ac_status); } >/dev/null; then
 
4399
  if test -s conftest.err; then
 
4400
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4401
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4402
  else
 
4403
    ac_cpp_err=
 
4404
  fi
 
4405
else
 
4406
  ac_cpp_err=yes
 
4407
fi
 
4408
if test -z "$ac_cpp_err"; then
 
4409
  ac_header_preproc=yes
 
4410
else
 
4411
  echo "$as_me: failed program was:" >&5
 
4412
sed 's/^/| /' conftest.$ac_ext >&5
 
4413
 
 
4414
  ac_header_preproc=no
 
4415
fi
 
4416
rm -f conftest.err conftest.$ac_ext
 
4417
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4418
echo "${ECHO_T}$ac_header_preproc" >&6
 
4419
 
 
4420
# So?  What about this header?
 
4421
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4422
  yes:no: )
 
4423
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4424
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4425
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4426
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4427
    ac_header_preproc=yes
 
4428
    ;;
 
4429
  no:yes:* )
 
4430
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4431
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4432
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4433
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4434
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4435
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4436
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4437
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4438
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4439
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4440
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4441
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4442
    (
 
4443
      cat <<\_ASBOX
 
4444
## ---------------------------------- ##
 
4445
## Report this to sandmann@redhat.com ##
 
4446
## ---------------------------------- ##
 
4447
_ASBOX
 
4448
    ) |
 
4449
      sed "s/^/$as_me: WARNING:     /" >&2
 
4450
    ;;
 
4451
esac
 
4452
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4453
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4454
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4456
else
 
4457
  eval "$as_ac_Header=\$ac_header_preproc"
 
4458
fi
 
4459
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4460
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4461
 
 
4462
fi
 
4463
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4464
  cat >>confdefs.h <<_ACEOF
 
4465
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4466
_ACEOF
 
4467
 
 
4468
fi
 
4469
 
 
4470
done
 
4471
 
 
4472
ac_ext=cc
 
4473
ac_cpp='$CXXCPP $CPPFLAGS'
 
4474
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4475
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4476
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4477
if test -n "$ac_tool_prefix"; then
 
4478
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4479
  do
 
4480
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4481
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4482
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4483
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4484
if test "${ac_cv_prog_CXX+set}" = set; then
 
4485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4486
else
 
4487
  if test -n "$CXX"; then
 
4488
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4489
else
 
4490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4491
for as_dir in $PATH
 
4492
do
 
4493
  IFS=$as_save_IFS
 
4494
  test -z "$as_dir" && as_dir=.
 
4495
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4496
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4497
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4498
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4499
    break 2
 
4500
  fi
 
4501
done
 
4502
done
 
4503
 
 
4504
fi
 
4505
fi
 
4506
CXX=$ac_cv_prog_CXX
 
4507
if test -n "$CXX"; then
 
4508
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4509
echo "${ECHO_T}$CXX" >&6
 
4510
else
 
4511
  echo "$as_me:$LINENO: result: no" >&5
 
4512
echo "${ECHO_T}no" >&6
 
4513
fi
 
4514
 
 
4515
    test -n "$CXX" && break
 
4516
  done
 
4517
fi
 
4518
if test -z "$CXX"; then
 
4519
  ac_ct_CXX=$CXX
 
4520
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4521
do
 
4522
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4523
set dummy $ac_prog; ac_word=$2
 
4524
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4525
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4526
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4528
else
 
4529
  if test -n "$ac_ct_CXX"; then
 
4530
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4531
else
 
4532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4533
for as_dir in $PATH
 
4534
do
 
4535
  IFS=$as_save_IFS
 
4536
  test -z "$as_dir" && as_dir=.
 
4537
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4538
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4539
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4540
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4541
    break 2
 
4542
  fi
 
4543
done
 
4544
done
 
4545
 
 
4546
fi
 
4547
fi
 
4548
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4549
if test -n "$ac_ct_CXX"; then
 
4550
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4551
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4552
else
 
4553
  echo "$as_me:$LINENO: result: no" >&5
 
4554
echo "${ECHO_T}no" >&6
 
4555
fi
 
4556
 
 
4557
  test -n "$ac_ct_CXX" && break
 
4558
done
 
4559
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4560
 
 
4561
  CXX=$ac_ct_CXX
 
4562
fi
 
4563
 
 
4564
 
 
4565
# Provide some information about the compiler.
 
4566
echo "$as_me:$LINENO:" \
 
4567
     "checking for C++ compiler version" >&5
 
4568
ac_compiler=`set X $ac_compile; echo $2`
 
4569
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4570
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4571
  ac_status=$?
 
4572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4573
  (exit $ac_status); }
 
4574
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4575
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4576
  ac_status=$?
 
4577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4578
  (exit $ac_status); }
 
4579
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4580
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4581
  ac_status=$?
 
4582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4583
  (exit $ac_status); }
 
4584
 
 
4585
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4586
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4587
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4589
else
 
4590
  cat >conftest.$ac_ext <<_ACEOF
 
4591
/* confdefs.h.  */
 
4592
_ACEOF
 
4593
cat confdefs.h >>conftest.$ac_ext
 
4594
cat >>conftest.$ac_ext <<_ACEOF
 
4595
/* end confdefs.h.  */
 
4596
 
 
4597
int
 
4598
main ()
 
4599
{
 
4600
#ifndef __GNUC__
 
4601
       choke me
 
4602
#endif
 
4603
 
 
4604
  ;
 
4605
  return 0;
 
4606
}
 
4607
_ACEOF
 
4608
rm -f conftest.$ac_objext
 
4609
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4610
  (eval $ac_compile) 2>conftest.er1
 
4611
  ac_status=$?
 
4612
  grep -v '^ *+' conftest.er1 >conftest.err
 
4613
  rm -f conftest.er1
 
4614
  cat conftest.err >&5
 
4615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4616
  (exit $ac_status); } &&
 
4617
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4619
  (eval $ac_try) 2>&5
 
4620
  ac_status=$?
 
4621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4622
  (exit $ac_status); }; } &&
 
4623
         { ac_try='test -s conftest.$ac_objext'
 
4624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4625
  (eval $ac_try) 2>&5
 
4626
  ac_status=$?
 
4627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4628
  (exit $ac_status); }; }; then
 
4629
  ac_compiler_gnu=yes
 
4630
else
 
4631
  echo "$as_me: failed program was:" >&5
 
4632
sed 's/^/| /' conftest.$ac_ext >&5
 
4633
 
 
4634
ac_compiler_gnu=no
 
4635
fi
 
4636
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4637
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4638
 
 
4639
fi
 
4640
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4641
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4642
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4643
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4644
ac_save_CXXFLAGS=$CXXFLAGS
 
4645
CXXFLAGS="-g"
 
4646
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4647
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4648
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4650
else
 
4651
  cat >conftest.$ac_ext <<_ACEOF
 
4652
/* confdefs.h.  */
 
4653
_ACEOF
 
4654
cat confdefs.h >>conftest.$ac_ext
 
4655
cat >>conftest.$ac_ext <<_ACEOF
 
4656
/* end confdefs.h.  */
 
4657
 
 
4658
int
 
4659
main ()
 
4660
{
 
4661
 
 
4662
  ;
 
4663
  return 0;
 
4664
}
 
4665
_ACEOF
 
4666
rm -f conftest.$ac_objext
 
4667
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4668
  (eval $ac_compile) 2>conftest.er1
 
4669
  ac_status=$?
 
4670
  grep -v '^ *+' conftest.er1 >conftest.err
 
4671
  rm -f conftest.er1
 
4672
  cat conftest.err >&5
 
4673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4674
  (exit $ac_status); } &&
 
4675
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4677
  (eval $ac_try) 2>&5
 
4678
  ac_status=$?
 
4679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4680
  (exit $ac_status); }; } &&
 
4681
         { ac_try='test -s conftest.$ac_objext'
 
4682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4683
  (eval $ac_try) 2>&5
 
4684
  ac_status=$?
 
4685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4686
  (exit $ac_status); }; }; then
 
4687
  ac_cv_prog_cxx_g=yes
 
4688
else
 
4689
  echo "$as_me: failed program was:" >&5
 
4690
sed 's/^/| /' conftest.$ac_ext >&5
 
4691
 
 
4692
ac_cv_prog_cxx_g=no
 
4693
fi
 
4694
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4695
fi
 
4696
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4697
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4698
if test "$ac_test_CXXFLAGS" = set; then
 
4699
  CXXFLAGS=$ac_save_CXXFLAGS
 
4700
elif test $ac_cv_prog_cxx_g = yes; then
 
4701
  if test "$GXX" = yes; then
 
4702
    CXXFLAGS="-g -O2"
 
4703
  else
 
4704
    CXXFLAGS="-g"
 
4705
  fi
 
4706
else
 
4707
  if test "$GXX" = yes; then
 
4708
    CXXFLAGS="-O2"
 
4709
  else
 
4710
    CXXFLAGS=
 
4711
  fi
 
4712
fi
 
4713
for ac_declaration in \
 
4714
   '' \
 
4715
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4716
   'extern "C" void std::exit (int); using std::exit;' \
 
4717
   'extern "C" void exit (int) throw ();' \
 
4718
   'extern "C" void exit (int);' \
 
4719
   'void exit (int);'
 
4720
do
 
4721
  cat >conftest.$ac_ext <<_ACEOF
 
4722
/* confdefs.h.  */
 
4723
_ACEOF
 
4724
cat confdefs.h >>conftest.$ac_ext
 
4725
cat >>conftest.$ac_ext <<_ACEOF
 
4726
/* end confdefs.h.  */
 
4727
$ac_declaration
 
4728
#include <stdlib.h>
 
4729
int
 
4730
main ()
 
4731
{
 
4732
exit (42);
 
4733
  ;
 
4734
  return 0;
 
4735
}
 
4736
_ACEOF
 
4737
rm -f conftest.$ac_objext
 
4738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4739
  (eval $ac_compile) 2>conftest.er1
 
4740
  ac_status=$?
 
4741
  grep -v '^ *+' conftest.er1 >conftest.err
 
4742
  rm -f conftest.er1
 
4743
  cat conftest.err >&5
 
4744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4745
  (exit $ac_status); } &&
 
4746
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4748
  (eval $ac_try) 2>&5
 
4749
  ac_status=$?
 
4750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4751
  (exit $ac_status); }; } &&
 
4752
         { ac_try='test -s conftest.$ac_objext'
 
4753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4754
  (eval $ac_try) 2>&5
 
4755
  ac_status=$?
 
4756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4757
  (exit $ac_status); }; }; then
 
4758
  :
 
4759
else
 
4760
  echo "$as_me: failed program was:" >&5
 
4761
sed 's/^/| /' conftest.$ac_ext >&5
 
4762
 
 
4763
continue
 
4764
fi
 
4765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4766
  cat >conftest.$ac_ext <<_ACEOF
 
4767
/* confdefs.h.  */
 
4768
_ACEOF
 
4769
cat confdefs.h >>conftest.$ac_ext
 
4770
cat >>conftest.$ac_ext <<_ACEOF
 
4771
/* end confdefs.h.  */
 
4772
$ac_declaration
 
4773
int
 
4774
main ()
 
4775
{
 
4776
exit (42);
 
4777
  ;
 
4778
  return 0;
 
4779
}
 
4780
_ACEOF
 
4781
rm -f conftest.$ac_objext
 
4782
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4783
  (eval $ac_compile) 2>conftest.er1
 
4784
  ac_status=$?
 
4785
  grep -v '^ *+' conftest.er1 >conftest.err
 
4786
  rm -f conftest.er1
 
4787
  cat conftest.err >&5
 
4788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4789
  (exit $ac_status); } &&
 
4790
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4792
  (eval $ac_try) 2>&5
 
4793
  ac_status=$?
 
4794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4795
  (exit $ac_status); }; } &&
 
4796
         { ac_try='test -s conftest.$ac_objext'
 
4797
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4798
  (eval $ac_try) 2>&5
 
4799
  ac_status=$?
 
4800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4801
  (exit $ac_status); }; }; then
 
4802
  break
 
4803
else
 
4804
  echo "$as_me: failed program was:" >&5
 
4805
sed 's/^/| /' conftest.$ac_ext >&5
 
4806
 
 
4807
fi
 
4808
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4809
done
 
4810
rm -f conftest*
 
4811
if test -n "$ac_declaration"; then
 
4812
  echo '#ifdef __cplusplus' >>confdefs.h
 
4813
  echo $ac_declaration      >>confdefs.h
 
4814
  echo '#endif'             >>confdefs.h
 
4815
fi
 
4816
 
 
4817
ac_ext=cc
 
4818
ac_cpp='$CXXCPP $CPPFLAGS'
 
4819
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4820
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4821
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4822
 
 
4823
depcc="$CXX"  am_compiler_list=
 
4824
 
 
4825
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4826
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4827
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4828
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4829
else
 
4830
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4831
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4832
  # making bogus files that we don't know about and never remove.  For
 
4833
  # instance it was reported that on HP-UX the gcc test will end up
 
4834
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4835
  # in D'.
 
4836
  mkdir conftest.dir
 
4837
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4838
  # using a relative directory.
 
4839
  cp "$am_depcomp" conftest.dir
 
4840
  cd conftest.dir
 
4841
  # We will build objects and dependencies in a subdirectory because
 
4842
  # it helps to detect inapplicable dependency modes.  For instance
 
4843
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4844
  # side effect of compilation, but ICC will put the dependencies in
 
4845
  # the current directory while Tru64 will put them in the object
 
4846
  # directory.
 
4847
  mkdir sub
 
4848
 
 
4849
  am_cv_CXX_dependencies_compiler_type=none
 
4850
  if test "$am_compiler_list" = ""; then
 
4851
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4852
  fi
 
4853
  for depmode in $am_compiler_list; do
 
4854
    # Setup a source with many dependencies, because some compilers
 
4855
    # like to wrap large dependency lists on column 80 (with \), and
 
4856
    # we should not choose a depcomp mode which is confused by this.
 
4857
    #
 
4858
    # We need to recreate these files for each test, as the compiler may
 
4859
    # overwrite some of them when testing with obscure command lines.
 
4860
    # This happens at least with the AIX C compiler.
 
4861
    : > sub/conftest.c
 
4862
    for i in 1 2 3 4 5 6; do
 
4863
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4864
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4865
      # Solaris 8's {/usr,}/bin/sh.
 
4866
      touch sub/conftst$i.h
 
4867
    done
 
4868
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4869
 
 
4870
    case $depmode in
 
4871
    nosideeffect)
 
4872
      # after this tag, mechanisms are not by side-effect, so they'll
 
4873
      # only be used when explicitly requested
 
4874
      if test "x$enable_dependency_tracking" = xyes; then
 
4875
        continue
 
4876
      else
 
4877
        break
 
4878
      fi
 
4879
      ;;
 
4880
    none) break ;;
 
4881
    esac
 
4882
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4883
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4884
    # handle `-M -o', and we need to detect this.
 
4885
    if depmode=$depmode \
 
4886
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4887
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4888
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4889
         >/dev/null 2>conftest.err &&
 
4890
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4891
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4892
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4893
      # icc doesn't choke on unknown options, it will just issue warnings
 
4894
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4895
      # that says an option was ignored or not supported.
 
4896
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4897
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4898
      # The diagnosis changed in icc 8.0:
 
4899
      #   icc: Command line remark: option '-MP' not supported
 
4900
      if (grep 'ignoring option' conftest.err ||
 
4901
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4902
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4903
        break
 
4904
      fi
 
4905
    fi
 
4906
  done
 
4907
 
 
4908
  cd ..
 
4909
  rm -rf conftest.dir
 
4910
else
 
4911
  am_cv_CXX_dependencies_compiler_type=none
 
4912
fi
 
4913
 
 
4914
fi
 
4915
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4916
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4917
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4918
 
 
4919
 
 
4920
 
 
4921
if
 
4922
  test "x$enable_dependency_tracking" != xno \
 
4923
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4924
  am__fastdepCXX_TRUE=
 
4925
  am__fastdepCXX_FALSE='#'
 
4926
else
 
4927
  am__fastdepCXX_TRUE='#'
 
4928
  am__fastdepCXX_FALSE=
 
4929
fi
 
4930
 
 
4931
 
 
4932
ac_ext=cc
 
4933
ac_cpp='$CXXCPP $CPPFLAGS'
 
4934
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4935
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4936
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4937
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4938
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
4939
if test -z "$CXXCPP"; then
 
4940
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4942
else
 
4943
      # Double quotes because CXXCPP needs to be expanded
 
4944
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4945
    do
 
4946
      ac_preproc_ok=false
 
4947
for ac_cxx_preproc_warn_flag in '' yes
 
4948
do
 
4949
  # Use a header file that comes with gcc, so configuring glibc
 
4950
  # with a fresh cross-compiler works.
 
4951
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4952
  # <limits.h> exists even on freestanding compilers.
 
4953
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4954
  # not just through cpp. "Syntax error" is here to catch this case.
 
4955
  cat >conftest.$ac_ext <<_ACEOF
 
4956
/* confdefs.h.  */
 
4957
_ACEOF
 
4958
cat confdefs.h >>conftest.$ac_ext
 
4959
cat >>conftest.$ac_ext <<_ACEOF
 
4960
/* end confdefs.h.  */
 
4961
#ifdef __STDC__
 
4962
# include <limits.h>
 
4963
#else
 
4964
# include <assert.h>
 
4965
#endif
 
4966
                     Syntax error
 
4967
_ACEOF
 
4968
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4969
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4970
  ac_status=$?
 
4971
  grep -v '^ *+' conftest.er1 >conftest.err
 
4972
  rm -f conftest.er1
 
4973
  cat conftest.err >&5
 
4974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4975
  (exit $ac_status); } >/dev/null; then
 
4976
  if test -s conftest.err; then
 
4977
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
4978
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
4979
  else
 
4980
    ac_cpp_err=
 
4981
  fi
 
4982
else
 
4983
  ac_cpp_err=yes
 
4984
fi
 
4985
if test -z "$ac_cpp_err"; then
 
4986
  :
 
4987
else
 
4988
  echo "$as_me: failed program was:" >&5
 
4989
sed 's/^/| /' conftest.$ac_ext >&5
 
4990
 
 
4991
  # Broken: fails on valid input.
 
4992
continue
 
4993
fi
 
4994
rm -f conftest.err conftest.$ac_ext
 
4995
 
 
4996
  # OK, works on sane cases.  Now check whether non-existent headers
 
4997
  # can be detected and how.
 
4998
  cat >conftest.$ac_ext <<_ACEOF
 
4999
/* confdefs.h.  */
 
5000
_ACEOF
 
5001
cat confdefs.h >>conftest.$ac_ext
 
5002
cat >>conftest.$ac_ext <<_ACEOF
 
5003
/* end confdefs.h.  */
 
5004
#include <ac_nonexistent.h>
 
5005
_ACEOF
 
5006
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5007
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5008
  ac_status=$?
 
5009
  grep -v '^ *+' conftest.er1 >conftest.err
 
5010
  rm -f conftest.er1
 
5011
  cat conftest.err >&5
 
5012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5013
  (exit $ac_status); } >/dev/null; then
 
5014
  if test -s conftest.err; then
 
5015
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5016
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5017
  else
 
5018
    ac_cpp_err=
 
5019
  fi
 
5020
else
 
5021
  ac_cpp_err=yes
 
5022
fi
 
5023
if test -z "$ac_cpp_err"; then
 
5024
  # Broken: success on invalid input.
 
5025
continue
 
5026
else
 
5027
  echo "$as_me: failed program was:" >&5
 
5028
sed 's/^/| /' conftest.$ac_ext >&5
 
5029
 
 
5030
  # Passes both tests.
 
5031
ac_preproc_ok=:
 
5032
break
 
5033
fi
 
5034
rm -f conftest.err conftest.$ac_ext
 
5035
 
 
5036
done
 
5037
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5038
rm -f conftest.err conftest.$ac_ext
 
5039
if $ac_preproc_ok; then
 
5040
  break
 
5041
fi
 
5042
 
 
5043
    done
 
5044
    ac_cv_prog_CXXCPP=$CXXCPP
 
5045
 
 
5046
fi
 
5047
  CXXCPP=$ac_cv_prog_CXXCPP
 
5048
else
 
5049
  ac_cv_prog_CXXCPP=$CXXCPP
 
5050
fi
 
5051
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5052
echo "${ECHO_T}$CXXCPP" >&6
 
5053
ac_preproc_ok=false
 
5054
for ac_cxx_preproc_warn_flag in '' yes
 
5055
do
 
5056
  # Use a header file that comes with gcc, so configuring glibc
 
5057
  # with a fresh cross-compiler works.
 
5058
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5059
  # <limits.h> exists even on freestanding compilers.
 
5060
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5061
  # not just through cpp. "Syntax error" is here to catch this case.
 
5062
  cat >conftest.$ac_ext <<_ACEOF
 
5063
/* confdefs.h.  */
 
5064
_ACEOF
 
5065
cat confdefs.h >>conftest.$ac_ext
 
5066
cat >>conftest.$ac_ext <<_ACEOF
 
5067
/* end confdefs.h.  */
 
5068
#ifdef __STDC__
 
5069
# include <limits.h>
 
5070
#else
 
5071
# include <assert.h>
 
5072
#endif
 
5073
                     Syntax error
 
5074
_ACEOF
 
5075
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5076
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5077
  ac_status=$?
 
5078
  grep -v '^ *+' conftest.er1 >conftest.err
 
5079
  rm -f conftest.er1
 
5080
  cat conftest.err >&5
 
5081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5082
  (exit $ac_status); } >/dev/null; then
 
5083
  if test -s conftest.err; then
 
5084
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5085
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5086
  else
 
5087
    ac_cpp_err=
 
5088
  fi
 
5089
else
 
5090
  ac_cpp_err=yes
 
5091
fi
 
5092
if test -z "$ac_cpp_err"; then
 
5093
  :
 
5094
else
 
5095
  echo "$as_me: failed program was:" >&5
 
5096
sed 's/^/| /' conftest.$ac_ext >&5
 
5097
 
 
5098
  # Broken: fails on valid input.
 
5099
continue
 
5100
fi
 
5101
rm -f conftest.err conftest.$ac_ext
 
5102
 
 
5103
  # OK, works on sane cases.  Now check whether non-existent headers
 
5104
  # can be detected and how.
 
5105
  cat >conftest.$ac_ext <<_ACEOF
 
5106
/* confdefs.h.  */
 
5107
_ACEOF
 
5108
cat confdefs.h >>conftest.$ac_ext
 
5109
cat >>conftest.$ac_ext <<_ACEOF
 
5110
/* end confdefs.h.  */
 
5111
#include <ac_nonexistent.h>
 
5112
_ACEOF
 
5113
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5114
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5115
  ac_status=$?
 
5116
  grep -v '^ *+' conftest.er1 >conftest.err
 
5117
  rm -f conftest.er1
 
5118
  cat conftest.err >&5
 
5119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5120
  (exit $ac_status); } >/dev/null; then
 
5121
  if test -s conftest.err; then
 
5122
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5123
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5124
  else
 
5125
    ac_cpp_err=
 
5126
  fi
 
5127
else
 
5128
  ac_cpp_err=yes
 
5129
fi
 
5130
if test -z "$ac_cpp_err"; then
 
5131
  # Broken: success on invalid input.
 
5132
continue
 
5133
else
 
5134
  echo "$as_me: failed program was:" >&5
 
5135
sed 's/^/| /' conftest.$ac_ext >&5
 
5136
 
 
5137
  # Passes both tests.
 
5138
ac_preproc_ok=:
 
5139
break
 
5140
fi
 
5141
rm -f conftest.err conftest.$ac_ext
 
5142
 
 
5143
done
 
5144
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5145
rm -f conftest.err conftest.$ac_ext
 
5146
if $ac_preproc_ok; then
 
5147
  :
 
5148
else
 
5149
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5150
See \`config.log' for more details." >&5
 
5151
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5152
See \`config.log' for more details." >&2;}
 
5153
   { (exit 1); exit 1; }; }
 
5154
fi
 
5155
 
 
5156
ac_ext=cc
 
5157
ac_cpp='$CXXCPP $CPPFLAGS'
 
5158
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5159
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5160
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5161
 
 
5162
 
 
5163
ac_ext=f
 
5164
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5165
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5166
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5167
if test -n "$ac_tool_prefix"; then
 
5168
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5169
  do
 
5170
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5171
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5172
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5173
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5174
if test "${ac_cv_prog_F77+set}" = set; then
 
5175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5176
else
 
5177
  if test -n "$F77"; then
 
5178
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5179
else
 
5180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5181
for as_dir in $PATH
 
5182
do
 
5183
  IFS=$as_save_IFS
 
5184
  test -z "$as_dir" && as_dir=.
 
5185
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5186
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5187
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5188
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5189
    break 2
 
5190
  fi
 
5191
done
 
5192
done
 
5193
 
 
5194
fi
 
5195
fi
 
5196
F77=$ac_cv_prog_F77
 
5197
if test -n "$F77"; then
 
5198
  echo "$as_me:$LINENO: result: $F77" >&5
 
5199
echo "${ECHO_T}$F77" >&6
 
5200
else
 
5201
  echo "$as_me:$LINENO: result: no" >&5
 
5202
echo "${ECHO_T}no" >&6
 
5203
fi
 
5204
 
 
5205
    test -n "$F77" && break
 
5206
  done
 
5207
fi
 
5208
if test -z "$F77"; then
 
5209
  ac_ct_F77=$F77
 
5210
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5211
do
 
5212
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5213
set dummy $ac_prog; ac_word=$2
 
5214
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5216
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5217
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5218
else
 
5219
  if test -n "$ac_ct_F77"; then
 
5220
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5221
else
 
5222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5223
for as_dir in $PATH
 
5224
do
 
5225
  IFS=$as_save_IFS
 
5226
  test -z "$as_dir" && as_dir=.
 
5227
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5228
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5229
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5230
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5231
    break 2
 
5232
  fi
 
5233
done
 
5234
done
 
5235
 
 
5236
fi
 
5237
fi
 
5238
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5239
if test -n "$ac_ct_F77"; then
 
5240
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5241
echo "${ECHO_T}$ac_ct_F77" >&6
 
5242
else
 
5243
  echo "$as_me:$LINENO: result: no" >&5
 
5244
echo "${ECHO_T}no" >&6
 
5245
fi
 
5246
 
 
5247
  test -n "$ac_ct_F77" && break
 
5248
done
 
5249
 
 
5250
  F77=$ac_ct_F77
 
5251
fi
 
5252
 
 
5253
 
 
5254
# Provide some information about the compiler.
 
5255
echo "$as_me:5255:" \
 
5256
     "checking for Fortran 77 compiler version" >&5
 
5257
ac_compiler=`set X $ac_compile; echo $2`
 
5258
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5259
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5260
  ac_status=$?
 
5261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5262
  (exit $ac_status); }
 
5263
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5264
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5265
  ac_status=$?
 
5266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5267
  (exit $ac_status); }
 
5268
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5269
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5270
  ac_status=$?
 
5271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5272
  (exit $ac_status); }
 
5273
rm -f a.out
 
5274
 
 
5275
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5276
# input file.  (Note that this only needs to work for GNU compilers.)
 
5277
ac_save_ext=$ac_ext
 
5278
ac_ext=F
 
5279
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5280
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5281
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5282
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5283
else
 
5284
  cat >conftest.$ac_ext <<_ACEOF
 
5285
      program main
 
5286
#ifndef __GNUC__
 
5287
       choke me
 
5288
#endif
 
5289
 
 
5290
      end
 
5291
_ACEOF
 
5292
rm -f conftest.$ac_objext
 
5293
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5294
  (eval $ac_compile) 2>conftest.er1
 
5295
  ac_status=$?
 
5296
  grep -v '^ *+' conftest.er1 >conftest.err
 
5297
  rm -f conftest.er1
 
5298
  cat conftest.err >&5
 
5299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5300
  (exit $ac_status); } &&
 
5301
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5303
  (eval $ac_try) 2>&5
 
5304
  ac_status=$?
 
5305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5306
  (exit $ac_status); }; } &&
 
5307
         { ac_try='test -s conftest.$ac_objext'
 
5308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5309
  (eval $ac_try) 2>&5
 
5310
  ac_status=$?
 
5311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5312
  (exit $ac_status); }; }; then
 
5313
  ac_compiler_gnu=yes
 
5314
else
 
5315
  echo "$as_me: failed program was:" >&5
 
5316
sed 's/^/| /' conftest.$ac_ext >&5
 
5317
 
 
5318
ac_compiler_gnu=no
 
5319
fi
 
5320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5321
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5322
 
 
5323
fi
 
5324
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5325
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5326
ac_ext=$ac_save_ext
 
5327
ac_test_FFLAGS=${FFLAGS+set}
 
5328
ac_save_FFLAGS=$FFLAGS
 
5329
FFLAGS=
 
5330
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5331
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5332
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5334
else
 
5335
  FFLAGS=-g
 
5336
cat >conftest.$ac_ext <<_ACEOF
 
5337
      program main
 
5338
 
 
5339
      end
 
5340
_ACEOF
 
5341
rm -f conftest.$ac_objext
 
5342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5343
  (eval $ac_compile) 2>conftest.er1
 
5344
  ac_status=$?
 
5345
  grep -v '^ *+' conftest.er1 >conftest.err
 
5346
  rm -f conftest.er1
 
5347
  cat conftest.err >&5
 
5348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5349
  (exit $ac_status); } &&
 
5350
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5352
  (eval $ac_try) 2>&5
 
5353
  ac_status=$?
 
5354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5355
  (exit $ac_status); }; } &&
 
5356
         { ac_try='test -s conftest.$ac_objext'
 
5357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5358
  (eval $ac_try) 2>&5
 
5359
  ac_status=$?
 
5360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5361
  (exit $ac_status); }; }; then
 
5362
  ac_cv_prog_f77_g=yes
 
5363
else
 
5364
  echo "$as_me: failed program was:" >&5
 
5365
sed 's/^/| /' conftest.$ac_ext >&5
 
5366
 
 
5367
ac_cv_prog_f77_g=no
 
5368
fi
 
5369
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5370
 
 
5371
fi
 
5372
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5373
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5374
if test "$ac_test_FFLAGS" = set; then
 
5375
  FFLAGS=$ac_save_FFLAGS
 
5376
elif test $ac_cv_prog_f77_g = yes; then
 
5377
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5378
    FFLAGS="-g -O2"
 
5379
  else
 
5380
    FFLAGS="-g"
 
5381
  fi
 
5382
else
 
5383
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5384
    FFLAGS="-O2"
 
5385
  else
 
5386
    FFLAGS=
 
5387
  fi
 
5388
fi
 
5389
 
 
5390
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5391
ac_ext=c
 
5392
ac_cpp='$CPP $CPPFLAGS'
 
5393
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5394
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5395
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5396
 
 
5397
 
 
5398
 
 
5399
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5400
 
 
5401
# find the maximum length of command line arguments
 
5402
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5403
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5404
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5406
else
 
5407
    i=0
 
5408
  teststring="ABCD"
 
5409
 
 
5410
  case $build_os in
 
5411
  msdosdjgpp*)
 
5412
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5413
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5414
    # during glob expansion).  Even if it were fixed, the result of this
 
5415
    # check would be larger than it should be.
 
5416
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5417
    ;;
 
5418
 
 
5419
  gnu*)
 
5420
    # Under GNU Hurd, this test is not required because there is
 
5421
    # no limit to the length of command line arguments.
 
5422
    # Libtool will interpret -1 as no limit whatsoever
 
5423
    lt_cv_sys_max_cmd_len=-1;
 
5424
    ;;
 
5425
 
 
5426
  cygwin* | mingw*)
 
5427
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5428
    # about 5 minutes as the teststring grows exponentially.
 
5429
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5430
    # you end up with a "frozen" computer, even though with patience
 
5431
    # the test eventually succeeds (with a max line length of 256k).
 
5432
    # Instead, let's just punt: use the minimum linelength reported by
 
5433
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5434
    lt_cv_sys_max_cmd_len=8192;
 
5435
    ;;
 
5436
 
 
5437
  amigaos*)
 
5438
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5439
    # So we just punt and use a minimum line length of 8192.
 
5440
    lt_cv_sys_max_cmd_len=8192;
 
5441
    ;;
 
5442
 
 
5443
 *)
 
5444
    # If test is not a shell built-in, we'll probably end up computing a
 
5445
    # maximum length that is only half of the actual maximum length, but
 
5446
    # we can't tell.
 
5447
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5448
               = "XX$teststring") >/dev/null 2>&1 &&
 
5449
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5450
            lt_cv_sys_max_cmd_len=$new_result &&
 
5451
            test $i != 17 # 1/2 MB should be enough
 
5452
    do
 
5453
      i=`expr $i + 1`
 
5454
      teststring=$teststring$teststring
 
5455
    done
 
5456
    teststring=
 
5457
    # Add a significant safety factor because C++ compilers can tack on massive
 
5458
    # amounts of additional arguments before passing them to the linker.
 
5459
    # It appears as though 1/2 is a usable value.
 
5460
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5461
    ;;
 
5462
  esac
 
5463
 
 
5464
fi
 
5465
 
 
5466
if test -n $lt_cv_sys_max_cmd_len ; then
 
5467
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5468
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5469
else
 
5470
  echo "$as_me:$LINENO: result: none" >&5
 
5471
echo "${ECHO_T}none" >&6
 
5472
fi
 
5473
 
 
5474
 
 
5475
 
 
5476
 
 
5477
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5478
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5479
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5480
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5481
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5482
else
 
5483
 
 
5484
# These are sane defaults that work on at least a few old systems.
 
5485
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5486
 
 
5487
# Character class describing NM global symbol codes.
 
5488
symcode='[BCDEGRST]'
 
5489
 
 
5490
# Regexp to match symbols that can be accessed directly from C.
 
5491
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5492
 
 
5493
# Transform the above into a raw symbol and a C symbol.
 
5494
symxfrm='\1 \2\3 \3'
 
5495
 
 
5496
# Transform an extracted symbol line into a proper C declaration
 
5497
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5498
 
 
5499
# Transform an extracted symbol line into symbol name and symbol address
 
5500
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'"
 
5501
 
 
5502
# Define system-specific variables.
 
5503
case $host_os in
 
5504
aix*)
 
5505
  symcode='[BCDT]'
 
5506
  ;;
 
5507
cygwin* | mingw* | pw32*)
 
5508
  symcode='[ABCDGISTW]'
 
5509
  ;;
 
5510
hpux*) # Its linker distinguishes data from code symbols
 
5511
  if test "$host_cpu" = ia64; then
 
5512
    symcode='[ABCDEGRST]'
 
5513
  fi
 
5514
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5515
  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'"
 
5516
  ;;
 
5517
irix* | nonstopux*)
 
5518
  symcode='[BCDEGRST]'
 
5519
  ;;
 
5520
osf*)
 
5521
  symcode='[BCDEGQRST]'
 
5522
  ;;
 
5523
solaris* | sysv5*)
 
5524
  symcode='[BDRT]'
 
5525
  ;;
 
5526
sysv4)
 
5527
  symcode='[DFNSTU]'
 
5528
  ;;
 
5529
esac
 
5530
 
 
5531
# Handle CRLF in mingw tool chain
 
5532
opt_cr=
 
5533
case $build_os in
 
5534
mingw*)
 
5535
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5536
  ;;
 
5537
esac
 
5538
 
 
5539
# If we're using GNU nm, then use its standard symbol codes.
 
5540
case `$NM -V 2>&1` in
 
5541
*GNU* | *'with BFD'*)
 
5542
  symcode='[ABCDGIRSTW]' ;;
 
5543
esac
 
5544
 
 
5545
# Try without a prefix undercore, then with it.
 
5546
for ac_symprfx in "" "_"; do
 
5547
 
 
5548
  # Write the raw and C identifiers.
 
5549
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5550
 
 
5551
  # Check to see that the pipe works correctly.
 
5552
  pipe_works=no
 
5553
 
 
5554
  rm -f conftest*
 
5555
  cat > conftest.$ac_ext <<EOF
 
5556
#ifdef __cplusplus
 
5557
extern "C" {
 
5558
#endif
 
5559
char nm_test_var;
 
5560
void nm_test_func(){}
 
5561
#ifdef __cplusplus
 
5562
}
 
5563
#endif
 
5564
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5565
EOF
 
5566
 
 
5567
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5568
  (eval $ac_compile) 2>&5
 
5569
  ac_status=$?
 
5570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5571
  (exit $ac_status); }; then
 
5572
    # Now try to grab the symbols.
 
5573
    nlist=conftest.nm
 
5574
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5575
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5576
  ac_status=$?
 
5577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5578
  (exit $ac_status); } && test -s "$nlist"; then
 
5579
      # Try sorting and uniquifying the output.
 
5580
      if sort "$nlist" | uniq > "$nlist"T; then
 
5581
        mv -f "$nlist"T "$nlist"
 
5582
      else
 
5583
        rm -f "$nlist"T
 
5584
      fi
 
5585
 
 
5586
      # Make sure that we snagged all the symbols we need.
 
5587
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5588
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5589
          cat <<EOF > conftest.$ac_ext
 
5590
#ifdef __cplusplus
 
5591
extern "C" {
 
5592
#endif
 
5593
 
 
5594
EOF
 
5595
          # Now generate the symbol file.
 
5596
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5597
 
 
5598
          cat <<EOF >> conftest.$ac_ext
 
5599
#if defined (__STDC__) && __STDC__
 
5600
# define lt_ptr_t void *
 
5601
#else
 
5602
# define lt_ptr_t char *
 
5603
# define const
 
5604
#endif
 
5605
 
 
5606
/* The mapping between symbol names and symbols. */
 
5607
const struct {
 
5608
  const char *name;
 
5609
  lt_ptr_t address;
 
5610
}
 
5611
lt_preloaded_symbols[] =
 
5612
{
 
5613
EOF
 
5614
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5615
          cat <<\EOF >> conftest.$ac_ext
 
5616
  {0, (lt_ptr_t) 0}
 
5617
};
 
5618
 
 
5619
#ifdef __cplusplus
 
5620
}
 
5621
#endif
 
5622
EOF
 
5623
          # Now try linking the two files.
 
5624
          mv conftest.$ac_objext conftstm.$ac_objext
 
5625
          lt_save_LIBS="$LIBS"
 
5626
          lt_save_CFLAGS="$CFLAGS"
 
5627
          LIBS="conftstm.$ac_objext"
 
5628
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5629
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5630
  (eval $ac_link) 2>&5
 
5631
  ac_status=$?
 
5632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5633
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5634
            pipe_works=yes
 
5635
          fi
 
5636
          LIBS="$lt_save_LIBS"
 
5637
          CFLAGS="$lt_save_CFLAGS"
 
5638
        else
 
5639
          echo "cannot find nm_test_func in $nlist" >&5
 
5640
        fi
 
5641
      else
 
5642
        echo "cannot find nm_test_var in $nlist" >&5
 
5643
      fi
 
5644
    else
 
5645
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5646
    fi
 
5647
  else
 
5648
    echo "$progname: failed program was:" >&5
 
5649
    cat conftest.$ac_ext >&5
 
5650
  fi
 
5651
  rm -f conftest* conftst*
 
5652
 
 
5653
  # Do not use the global_symbol_pipe unless it works.
 
5654
  if test "$pipe_works" = yes; then
 
5655
    break
 
5656
  else
 
5657
    lt_cv_sys_global_symbol_pipe=
 
5658
  fi
 
5659
done
 
5660
 
 
5661
fi
 
5662
 
 
5663
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5664
  lt_cv_sys_global_symbol_to_cdecl=
 
5665
fi
 
5666
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5667
  echo "$as_me:$LINENO: result: failed" >&5
 
5668
echo "${ECHO_T}failed" >&6
 
5669
else
 
5670
  echo "$as_me:$LINENO: result: ok" >&5
 
5671
echo "${ECHO_T}ok" >&6
 
5672
fi
 
5673
 
 
5674
echo "$as_me:$LINENO: checking for objdir" >&5
 
5675
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5676
if test "${lt_cv_objdir+set}" = set; then
 
5677
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5678
else
 
5679
  rm -f .libs 2>/dev/null
 
5680
mkdir .libs 2>/dev/null
 
5681
if test -d .libs; then
 
5682
  lt_cv_objdir=.libs
 
5683
else
 
5684
  # MS-DOS does not allow filenames that begin with a dot.
 
5685
  lt_cv_objdir=_libs
 
5686
fi
 
5687
rmdir .libs 2>/dev/null
 
5688
fi
 
5689
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5690
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5691
objdir=$lt_cv_objdir
 
5692
 
 
5693
 
 
5694
 
 
5695
 
 
5696
 
 
5697
case $host_os in
 
5698
aix3*)
 
5699
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5700
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5701
  # vanish in a puff of smoke.
 
5702
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5703
    COLLECT_NAMES=
 
5704
    export COLLECT_NAMES
 
5705
  fi
 
5706
  ;;
 
5707
esac
 
5708
 
 
5709
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5710
# metacharacters that are still active within double-quoted strings.
 
5711
Xsed='sed -e s/^X//'
 
5712
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5713
 
 
5714
# Same as above, but do not quote variable references.
 
5715
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5716
 
 
5717
# Sed substitution to delay expansion of an escaped shell variable in a
 
5718
# double_quote_subst'ed string.
 
5719
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5720
 
 
5721
# Sed substitution to avoid accidental globbing in evaled expressions
 
5722
no_glob_subst='s/\*/\\\*/g'
 
5723
 
 
5724
# Constants:
 
5725
rm="rm -f"
 
5726
 
 
5727
# Global variables:
 
5728
default_ofile=libtool
 
5729
can_build_shared=yes
 
5730
 
 
5731
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5732
# which needs '.lib').
 
5733
libext=a
 
5734
ltmain="$ac_aux_dir/ltmain.sh"
 
5735
ofile="$default_ofile"
 
5736
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5737
 
 
5738
if test -n "$ac_tool_prefix"; then
 
5739
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5740
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5741
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5742
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5743
if test "${ac_cv_prog_AR+set}" = set; then
 
5744
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5745
else
 
5746
  if test -n "$AR"; then
 
5747
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5748
else
 
5749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5750
for as_dir in $PATH
 
5751
do
 
5752
  IFS=$as_save_IFS
 
5753
  test -z "$as_dir" && as_dir=.
 
5754
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5755
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5756
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5757
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5758
    break 2
 
5759
  fi
 
5760
done
 
5761
done
 
5762
 
 
5763
fi
 
5764
fi
 
5765
AR=$ac_cv_prog_AR
 
5766
if test -n "$AR"; then
 
5767
  echo "$as_me:$LINENO: result: $AR" >&5
 
5768
echo "${ECHO_T}$AR" >&6
 
5769
else
 
5770
  echo "$as_me:$LINENO: result: no" >&5
 
5771
echo "${ECHO_T}no" >&6
 
5772
fi
 
5773
 
 
5774
fi
 
5775
if test -z "$ac_cv_prog_AR"; then
 
5776
  ac_ct_AR=$AR
 
5777
  # Extract the first word of "ar", so it can be a program name with args.
 
5778
set dummy ar; ac_word=$2
 
5779
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5780
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5781
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5782
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5783
else
 
5784
  if test -n "$ac_ct_AR"; then
 
5785
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5786
else
 
5787
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5788
for as_dir in $PATH
 
5789
do
 
5790
  IFS=$as_save_IFS
 
5791
  test -z "$as_dir" && as_dir=.
 
5792
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5793
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5794
    ac_cv_prog_ac_ct_AR="ar"
 
5795
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5796
    break 2
 
5797
  fi
 
5798
done
 
5799
done
 
5800
 
 
5801
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5802
fi
 
5803
fi
 
5804
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5805
if test -n "$ac_ct_AR"; then
 
5806
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5807
echo "${ECHO_T}$ac_ct_AR" >&6
 
5808
else
 
5809
  echo "$as_me:$LINENO: result: no" >&5
 
5810
echo "${ECHO_T}no" >&6
 
5811
fi
 
5812
 
 
5813
  AR=$ac_ct_AR
 
5814
else
 
5815
  AR="$ac_cv_prog_AR"
 
5816
fi
 
5817
 
 
5818
if test -n "$ac_tool_prefix"; then
 
5819
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5820
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5821
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5822
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5823
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5825
else
 
5826
  if test -n "$RANLIB"; then
 
5827
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5828
else
 
5829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5830
for as_dir in $PATH
 
5831
do
 
5832
  IFS=$as_save_IFS
 
5833
  test -z "$as_dir" && as_dir=.
 
5834
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5835
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5836
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5837
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5838
    break 2
 
5839
  fi
 
5840
done
 
5841
done
 
5842
 
 
5843
fi
 
5844
fi
 
5845
RANLIB=$ac_cv_prog_RANLIB
 
5846
if test -n "$RANLIB"; then
 
5847
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5848
echo "${ECHO_T}$RANLIB" >&6
 
5849
else
 
5850
  echo "$as_me:$LINENO: result: no" >&5
 
5851
echo "${ECHO_T}no" >&6
 
5852
fi
 
5853
 
 
5854
fi
 
5855
if test -z "$ac_cv_prog_RANLIB"; then
 
5856
  ac_ct_RANLIB=$RANLIB
 
5857
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5858
set dummy ranlib; ac_word=$2
 
5859
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5860
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5861
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5863
else
 
5864
  if test -n "$ac_ct_RANLIB"; then
 
5865
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5866
else
 
5867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5868
for as_dir in $PATH
 
5869
do
 
5870
  IFS=$as_save_IFS
 
5871
  test -z "$as_dir" && as_dir=.
 
5872
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5873
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5874
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5875
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5876
    break 2
 
5877
  fi
 
5878
done
 
5879
done
 
5880
 
 
5881
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5882
fi
 
5883
fi
 
5884
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5885
if test -n "$ac_ct_RANLIB"; then
 
5886
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5887
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5888
else
 
5889
  echo "$as_me:$LINENO: result: no" >&5
 
5890
echo "${ECHO_T}no" >&6
 
5891
fi
 
5892
 
 
5893
  RANLIB=$ac_ct_RANLIB
 
5894
else
 
5895
  RANLIB="$ac_cv_prog_RANLIB"
 
5896
fi
 
5897
 
 
5898
if test -n "$ac_tool_prefix"; then
 
5899
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5900
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5901
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5902
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5903
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5905
else
 
5906
  if test -n "$STRIP"; then
 
5907
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5908
else
 
5909
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5910
for as_dir in $PATH
 
5911
do
 
5912
  IFS=$as_save_IFS
 
5913
  test -z "$as_dir" && as_dir=.
 
5914
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5915
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5916
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5917
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5918
    break 2
 
5919
  fi
 
5920
done
 
5921
done
 
5922
 
 
5923
fi
 
5924
fi
 
5925
STRIP=$ac_cv_prog_STRIP
 
5926
if test -n "$STRIP"; then
 
5927
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5928
echo "${ECHO_T}$STRIP" >&6
 
5929
else
 
5930
  echo "$as_me:$LINENO: result: no" >&5
 
5931
echo "${ECHO_T}no" >&6
 
5932
fi
 
5933
 
 
5934
fi
 
5935
if test -z "$ac_cv_prog_STRIP"; then
 
5936
  ac_ct_STRIP=$STRIP
 
5937
  # Extract the first word of "strip", so it can be a program name with args.
 
5938
set dummy strip; ac_word=$2
 
5939
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5940
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5941
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5942
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5943
else
 
5944
  if test -n "$ac_ct_STRIP"; then
 
5945
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5946
else
 
5947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5948
for as_dir in $PATH
 
5949
do
 
5950
  IFS=$as_save_IFS
 
5951
  test -z "$as_dir" && as_dir=.
 
5952
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5953
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5954
    ac_cv_prog_ac_ct_STRIP="strip"
 
5955
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5956
    break 2
 
5957
  fi
 
5958
done
 
5959
done
 
5960
 
 
5961
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5962
fi
 
5963
fi
 
5964
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5965
if test -n "$ac_ct_STRIP"; then
 
5966
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5967
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5968
else
 
5969
  echo "$as_me:$LINENO: result: no" >&5
 
5970
echo "${ECHO_T}no" >&6
 
5971
fi
 
5972
 
 
5973
  STRIP=$ac_ct_STRIP
 
5974
else
 
5975
  STRIP="$ac_cv_prog_STRIP"
 
5976
fi
 
5977
 
 
5978
 
 
5979
old_CC="$CC"
 
5980
old_CFLAGS="$CFLAGS"
 
5981
 
 
5982
# Set sane defaults for various variables
 
5983
test -z "$AR" && AR=ar
 
5984
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5985
test -z "$AS" && AS=as
 
5986
test -z "$CC" && CC=cc
 
5987
test -z "$LTCC" && LTCC=$CC
 
5988
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5989
test -z "$LD" && LD=ld
 
5990
test -z "$LN_S" && LN_S="ln -s"
 
5991
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
5992
test -z "$NM" && NM=nm
 
5993
test -z "$SED" && SED=sed
 
5994
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5995
test -z "$RANLIB" && RANLIB=:
 
5996
test -z "$STRIP" && STRIP=:
 
5997
test -z "$ac_objext" && ac_objext=o
 
5998
 
 
5999
# Determine commands to create old-style static archives.
 
6000
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6001
old_postinstall_cmds='chmod 644 $oldlib'
 
6002
old_postuninstall_cmds=
 
6003
 
 
6004
if test -n "$RANLIB"; then
 
6005
  case $host_os in
 
6006
  openbsd*)
 
6007
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6008
    ;;
 
6009
  *)
 
6010
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6011
    ;;
 
6012
  esac
 
6013
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6014
fi
 
6015
 
 
6016
# Only perform the check for file, if the check method requires it
 
6017
case $deplibs_check_method in
 
6018
file_magic*)
 
6019
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6020
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6021
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6022
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6024
else
 
6025
  case $MAGIC_CMD in
 
6026
[\\/*] |  ?:[\\/]*)
 
6027
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6028
  ;;
 
6029
*)
 
6030
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6031
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6032
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6033
  for ac_dir in $ac_dummy; do
 
6034
    IFS="$lt_save_ifs"
 
6035
    test -z "$ac_dir" && ac_dir=.
 
6036
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6037
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6038
      if test -n "$file_magic_test_file"; then
 
6039
        case $deplibs_check_method in
 
6040
        "file_magic "*)
 
6041
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6042
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6043
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6044
            $EGREP "$file_magic_regex" > /dev/null; then
 
6045
            :
 
6046
          else
 
6047
            cat <<EOF 1>&2
 
6048
 
 
6049
*** Warning: the command libtool uses to detect shared libraries,
 
6050
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6051
*** The result is that libtool may fail to recognize shared libraries
 
6052
*** as such.  This will affect the creation of libtool libraries that
 
6053
*** depend on shared libraries, but programs linked with such libtool
 
6054
*** libraries will work regardless of this problem.  Nevertheless, you
 
6055
*** may want to report the problem to your system manager and/or to
 
6056
*** bug-libtool@gnu.org
 
6057
 
 
6058
EOF
 
6059
          fi ;;
 
6060
        esac
 
6061
      fi
 
6062
      break
 
6063
    fi
 
6064
  done
 
6065
  IFS="$lt_save_ifs"
 
6066
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6067
  ;;
 
6068
esac
 
6069
fi
 
6070
 
 
6071
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6072
if test -n "$MAGIC_CMD"; then
 
6073
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6074
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6075
else
 
6076
  echo "$as_me:$LINENO: result: no" >&5
 
6077
echo "${ECHO_T}no" >&6
 
6078
fi
 
6079
 
 
6080
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6081
  if test -n "$ac_tool_prefix"; then
 
6082
    echo "$as_me:$LINENO: checking for file" >&5
 
6083
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6084
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6086
else
 
6087
  case $MAGIC_CMD in
 
6088
[\\/*] |  ?:[\\/]*)
 
6089
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6090
  ;;
 
6091
*)
 
6092
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6093
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6094
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6095
  for ac_dir in $ac_dummy; do
 
6096
    IFS="$lt_save_ifs"
 
6097
    test -z "$ac_dir" && ac_dir=.
 
6098
    if test -f $ac_dir/file; then
 
6099
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6100
      if test -n "$file_magic_test_file"; then
 
6101
        case $deplibs_check_method in
 
6102
        "file_magic "*)
 
6103
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6104
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6105
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6106
            $EGREP "$file_magic_regex" > /dev/null; then
 
6107
            :
 
6108
          else
 
6109
            cat <<EOF 1>&2
 
6110
 
 
6111
*** Warning: the command libtool uses to detect shared libraries,
 
6112
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6113
*** The result is that libtool may fail to recognize shared libraries
 
6114
*** as such.  This will affect the creation of libtool libraries that
 
6115
*** depend on shared libraries, but programs linked with such libtool
 
6116
*** libraries will work regardless of this problem.  Nevertheless, you
 
6117
*** may want to report the problem to your system manager and/or to
 
6118
*** bug-libtool@gnu.org
 
6119
 
 
6120
EOF
 
6121
          fi ;;
 
6122
        esac
 
6123
      fi
 
6124
      break
 
6125
    fi
 
6126
  done
 
6127
  IFS="$lt_save_ifs"
 
6128
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6129
  ;;
 
6130
esac
 
6131
fi
 
6132
 
 
6133
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6134
if test -n "$MAGIC_CMD"; then
 
6135
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6136
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6137
else
 
6138
  echo "$as_me:$LINENO: result: no" >&5
 
6139
echo "${ECHO_T}no" >&6
 
6140
fi
 
6141
 
 
6142
  else
 
6143
    MAGIC_CMD=:
 
6144
  fi
 
6145
fi
 
6146
 
 
6147
  fi
 
6148
  ;;
 
6149
esac
 
6150
 
 
6151
enable_dlopen=no
 
6152
enable_win32_dll=no
 
6153
 
 
6154
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6155
if test "${enable_libtool_lock+set}" = set; then
 
6156
  enableval="$enable_libtool_lock"
 
6157
 
 
6158
fi;
 
6159
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6160
 
 
6161
 
 
6162
# Check whether --with-pic or --without-pic was given.
 
6163
if test "${with_pic+set}" = set; then
 
6164
  withval="$with_pic"
 
6165
  pic_mode="$withval"
 
6166
else
 
6167
  pic_mode=default
 
6168
fi;
 
6169
test -z "$pic_mode" && pic_mode=default
 
6170
 
 
6171
# Use C for the default configuration in the libtool script
 
6172
tagname=
 
6173
lt_save_CC="$CC"
 
6174
ac_ext=c
 
6175
ac_cpp='$CPP $CPPFLAGS'
 
6176
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6177
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6178
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6179
 
 
6180
 
 
6181
# Source file extension for C test sources.
 
6182
ac_ext=c
 
6183
 
 
6184
# Object file extension for compiled C test sources.
 
6185
objext=o
 
6186
objext=$objext
 
6187
 
 
6188
# Code to be used in simple compile tests
 
6189
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6190
 
 
6191
# Code to be used in simple link tests
 
6192
lt_simple_link_test_code='int main(){return(0);}\n'
 
6193
 
 
6194
 
 
6195
# If no C compiler was specified, use CC.
 
6196
LTCC=${LTCC-"$CC"}
 
6197
 
 
6198
# Allow CC to be a program name with arguments.
 
6199
compiler=$CC
 
6200
 
 
6201
 
 
6202
#
 
6203
# Check for any special shared library compilation flags.
 
6204
#
 
6205
lt_prog_cc_shlib=
 
6206
if test "$GCC" = no; then
 
6207
  case $host_os in
 
6208
  sco3.2v5*)
 
6209
    lt_prog_cc_shlib='-belf'
 
6210
    ;;
 
6211
  esac
 
6212
fi
 
6213
if test -n "$lt_prog_cc_shlib"; then
 
6214
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6215
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6216
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
6217
  else
 
6218
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6219
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6220
    lt_cv_prog_cc_can_build_shared=no
 
6221
  fi
 
6222
fi
 
6223
 
 
6224
 
 
6225
#
 
6226
# Check to make sure the static flag actually works.
 
6227
#
 
6228
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6229
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6230
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6232
else
 
6233
  lt_prog_compiler_static_works=no
 
6234
   save_LDFLAGS="$LDFLAGS"
 
6235
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6236
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6237
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6238
     # The compiler can only warn and ignore the option if not recognized
 
6239
     # So say no if there are warnings
 
6240
     if test -s conftest.err; then
 
6241
       # Append any errors to the config.log.
 
6242
       cat conftest.err 1>&5
 
6243
     else
 
6244
       lt_prog_compiler_static_works=yes
 
6245
     fi
 
6246
   fi
 
6247
   $rm conftest*
 
6248
   LDFLAGS="$save_LDFLAGS"
 
6249
 
 
6250
fi
 
6251
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6252
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6253
 
 
6254
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6255
    :
 
6256
else
 
6257
    lt_prog_compiler_static=
 
6258
fi
 
6259
 
 
6260
 
 
6261
 
 
6262
 
 
6263
lt_prog_compiler_no_builtin_flag=
 
6264
 
 
6265
if test "$GCC" = yes; then
 
6266
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6267
 
 
6268
 
 
6269
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6270
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6271
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6273
else
 
6274
  lt_cv_prog_compiler_rtti_exceptions=no
 
6275
  ac_outfile=conftest.$ac_objext
 
6276
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6277
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6278
   # Insert the option either (1) after the last *FLAGS variable, or
 
6279
   # (2) before a word containing "conftest.", or (3) at the end.
 
6280
   # Note that $ac_compile itself does not contain backslashes and begins
 
6281
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6282
   # The option is referenced via a variable to avoid confusing sed.
 
6283
   lt_compile=`echo "$ac_compile" | $SED \
 
6284
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6285
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6286
   -e 's:$: $lt_compiler_flag:'`
 
6287
   (eval echo "\"\$as_me:6287: $lt_compile\"" >&5)
 
6288
   (eval "$lt_compile" 2>conftest.err)
 
6289
   ac_status=$?
 
6290
   cat conftest.err >&5
 
6291
   echo "$as_me:6291: \$? = $ac_status" >&5
 
6292
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6293
     # The compiler can only warn and ignore the option if not recognized
 
6294
     # So say no if there are warnings
 
6295
     if test ! -s conftest.err; then
 
6296
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6297
     fi
 
6298
   fi
 
6299
   $rm conftest*
 
6300
 
 
6301
fi
 
6302
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6303
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6304
 
 
6305
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6306
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6307
else
 
6308
    :
 
6309
fi
 
6310
 
 
6311
fi
 
6312
 
 
6313
lt_prog_compiler_wl=
 
6314
lt_prog_compiler_pic=
 
6315
lt_prog_compiler_static=
 
6316
 
 
6317
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6318
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6319
 
 
6320
  if test "$GCC" = yes; then
 
6321
    lt_prog_compiler_wl='-Wl,'
 
6322
    lt_prog_compiler_static='-static'
 
6323
 
 
6324
    case $host_os in
 
6325
      aix*)
 
6326
      # All AIX code is PIC.
 
6327
      if test "$host_cpu" = ia64; then
 
6328
        # AIX 5 now supports IA64 processor
 
6329
        lt_prog_compiler_static='-Bstatic'
 
6330
      fi
 
6331
      ;;
 
6332
 
 
6333
    amigaos*)
 
6334
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6335
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6336
      # like `-m68040'.
 
6337
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6338
      ;;
 
6339
 
 
6340
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6341
      # PIC is the default for these OSes.
 
6342
      ;;
 
6343
 
 
6344
    mingw* | pw32* | os2*)
 
6345
      # This hack is so that the source file can tell whether it is being
 
6346
      # built for inclusion in a dll (and should export symbols for example).
 
6347
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6348
      ;;
 
6349
 
 
6350
    darwin* | rhapsody*)
 
6351
      # PIC is the default on this platform
 
6352
      # Common symbols not allowed in MH_DYLIB files
 
6353
      lt_prog_compiler_pic='-fno-common'
 
6354
      ;;
 
6355
 
 
6356
    msdosdjgpp*)
 
6357
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6358
      # on systems that don't support them.
 
6359
      lt_prog_compiler_can_build_shared=no
 
6360
      enable_shared=no
 
6361
      ;;
 
6362
 
 
6363
    sysv4*MP*)
 
6364
      if test -d /usr/nec; then
 
6365
        lt_prog_compiler_pic=-Kconform_pic
 
6366
      fi
 
6367
      ;;
 
6368
 
 
6369
    hpux*)
 
6370
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6371
      # not for PA HP-UX.
 
6372
      case "$host_cpu" in
 
6373
      hppa*64*|ia64*)
 
6374
        # +Z the default
 
6375
        ;;
 
6376
      *)
 
6377
        lt_prog_compiler_pic='-fPIC'
 
6378
        ;;
 
6379
      esac
 
6380
      ;;
 
6381
 
 
6382
    *)
 
6383
      lt_prog_compiler_pic='-fPIC'
 
6384
      ;;
 
6385
    esac
 
6386
  else
 
6387
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6388
    case $host_os in
 
6389
    aix*)
 
6390
      lt_prog_compiler_wl='-Wl,'
 
6391
      if test "$host_cpu" = ia64; then
 
6392
        # AIX 5 now supports IA64 processor
 
6393
        lt_prog_compiler_static='-Bstatic'
 
6394
      else
 
6395
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6396
      fi
 
6397
      ;;
 
6398
 
 
6399
    mingw* | pw32* | os2*)
 
6400
      # This hack is so that the source file can tell whether it is being
 
6401
      # built for inclusion in a dll (and should export symbols for example).
 
6402
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6403
      ;;
 
6404
 
 
6405
    hpux9* | hpux10* | hpux11*)
 
6406
      lt_prog_compiler_wl='-Wl,'
 
6407
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6408
      # not for PA HP-UX.
 
6409
      case "$host_cpu" in
 
6410
      hppa*64*|ia64*)
 
6411
        # +Z the default
 
6412
        ;;
 
6413
      *)
 
6414
        lt_prog_compiler_pic='+Z'
 
6415
        ;;
 
6416
      esac
 
6417
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6418
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6419
      ;;
 
6420
 
 
6421
    irix5* | irix6* | nonstopux*)
 
6422
      lt_prog_compiler_wl='-Wl,'
 
6423
      # PIC (with -KPIC) is the default.
 
6424
      lt_prog_compiler_static='-non_shared'
 
6425
      ;;
 
6426
 
 
6427
    newsos6)
 
6428
      lt_prog_compiler_pic='-KPIC'
 
6429
      lt_prog_compiler_static='-Bstatic'
 
6430
      ;;
 
6431
 
 
6432
    linux*)
 
6433
      case $CC in
 
6434
      icc* | ecc*)
 
6435
        lt_prog_compiler_wl='-Wl,'
 
6436
        lt_prog_compiler_pic='-KPIC'
 
6437
        lt_prog_compiler_static='-static'
 
6438
        ;;
 
6439
      ccc*)
 
6440
        lt_prog_compiler_wl='-Wl,'
 
6441
        # All Alpha code is PIC.
 
6442
        lt_prog_compiler_static='-non_shared'
 
6443
        ;;
 
6444
      esac
 
6445
      ;;
 
6446
 
 
6447
    osf3* | osf4* | osf5*)
 
6448
      lt_prog_compiler_wl='-Wl,'
 
6449
      # All OSF/1 code is PIC.
 
6450
      lt_prog_compiler_static='-non_shared'
 
6451
      ;;
 
6452
 
 
6453
    sco3.2v5*)
 
6454
      lt_prog_compiler_pic='-Kpic'
 
6455
      lt_prog_compiler_static='-dn'
 
6456
      ;;
 
6457
 
 
6458
    solaris*)
 
6459
      lt_prog_compiler_wl='-Wl,'
 
6460
      lt_prog_compiler_pic='-KPIC'
 
6461
      lt_prog_compiler_static='-Bstatic'
 
6462
      ;;
 
6463
 
 
6464
    sunos4*)
 
6465
      lt_prog_compiler_wl='-Qoption ld '
 
6466
      lt_prog_compiler_pic='-PIC'
 
6467
      lt_prog_compiler_static='-Bstatic'
 
6468
      ;;
 
6469
 
 
6470
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6471
      lt_prog_compiler_wl='-Wl,'
 
6472
      lt_prog_compiler_pic='-KPIC'
 
6473
      lt_prog_compiler_static='-Bstatic'
 
6474
      ;;
 
6475
 
 
6476
    sysv4*MP*)
 
6477
      if test -d /usr/nec ;then
 
6478
        lt_prog_compiler_pic='-Kconform_pic'
 
6479
        lt_prog_compiler_static='-Bstatic'
 
6480
      fi
 
6481
      ;;
 
6482
 
 
6483
    uts4*)
 
6484
      lt_prog_compiler_pic='-pic'
 
6485
      lt_prog_compiler_static='-Bstatic'
 
6486
      ;;
 
6487
 
 
6488
    *)
 
6489
      lt_prog_compiler_can_build_shared=no
 
6490
      ;;
 
6491
    esac
 
6492
  fi
 
6493
 
 
6494
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6495
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6496
 
 
6497
#
 
6498
# Check to make sure the PIC flag actually works.
 
6499
#
 
6500
if test -n "$lt_prog_compiler_pic"; then
 
6501
 
 
6502
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6503
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6504
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6506
else
 
6507
  lt_prog_compiler_pic_works=no
 
6508
  ac_outfile=conftest.$ac_objext
 
6509
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6510
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6511
   # Insert the option either (1) after the last *FLAGS variable, or
 
6512
   # (2) before a word containing "conftest.", or (3) at the end.
 
6513
   # Note that $ac_compile itself does not contain backslashes and begins
 
6514
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6515
   # The option is referenced via a variable to avoid confusing sed.
 
6516
   lt_compile=`echo "$ac_compile" | $SED \
 
6517
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6518
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6519
   -e 's:$: $lt_compiler_flag:'`
 
6520
   (eval echo "\"\$as_me:6520: $lt_compile\"" >&5)
 
6521
   (eval "$lt_compile" 2>conftest.err)
 
6522
   ac_status=$?
 
6523
   cat conftest.err >&5
 
6524
   echo "$as_me:6524: \$? = $ac_status" >&5
 
6525
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6526
     # The compiler can only warn and ignore the option if not recognized
 
6527
     # So say no if there are warnings
 
6528
     if test ! -s conftest.err; then
 
6529
       lt_prog_compiler_pic_works=yes
 
6530
     fi
 
6531
   fi
 
6532
   $rm conftest*
 
6533
 
 
6534
fi
 
6535
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6536
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6537
 
 
6538
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6539
    case $lt_prog_compiler_pic in
 
6540
     "" | " "*) ;;
 
6541
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6542
     esac
 
6543
else
 
6544
    lt_prog_compiler_pic=
 
6545
     lt_prog_compiler_can_build_shared=no
 
6546
fi
 
6547
 
 
6548
fi
 
6549
case "$host_os" in
 
6550
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6551
  *djgpp*)
 
6552
    lt_prog_compiler_pic=
 
6553
    ;;
 
6554
  *)
 
6555
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6556
    ;;
 
6557
esac
 
6558
 
 
6559
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6560
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6561
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6562
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6563
else
 
6564
  lt_cv_prog_compiler_c_o=no
 
6565
   $rm -r conftest 2>/dev/null
 
6566
   mkdir conftest
 
6567
   cd conftest
 
6568
   mkdir out
 
6569
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6570
 
 
6571
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6572
   # Insert the option either (1) after the last *FLAGS variable, or
 
6573
   # (2) before a word containing "conftest.", or (3) at the end.
 
6574
   # Note that $ac_compile itself does not contain backslashes and begins
 
6575
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6576
   lt_compile=`echo "$ac_compile" | $SED \
 
6577
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6578
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6579
   -e 's:$: $lt_compiler_flag:'`
 
6580
   (eval echo "\"\$as_me:6580: $lt_compile\"" >&5)
 
6581
   (eval "$lt_compile" 2>out/conftest.err)
 
6582
   ac_status=$?
 
6583
   cat out/conftest.err >&5
 
6584
   echo "$as_me:6584: \$? = $ac_status" >&5
 
6585
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6586
   then
 
6587
     # The compiler can only warn and ignore the option if not recognized
 
6588
     # So say no if there are warnings
 
6589
     if test ! -s out/conftest.err; then
 
6590
       lt_cv_prog_compiler_c_o=yes
 
6591
     fi
 
6592
   fi
 
6593
   chmod u+w .
 
6594
   $rm conftest*
 
6595
   # SGI C++ compiler will create directory out/ii_files/ for
 
6596
   # template instantiation
 
6597
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6598
   $rm out/* && rmdir out
 
6599
   cd ..
 
6600
   rmdir conftest
 
6601
   $rm conftest*
 
6602
 
 
6603
fi
 
6604
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6605
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6606
 
 
6607
 
 
6608
hard_links="nottested"
 
6609
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6610
  # do not overwrite the value of need_locks provided by the user
 
6611
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6612
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6613
  hard_links=yes
 
6614
  $rm conftest*
 
6615
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6616
  touch conftest.a
 
6617
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6618
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6619
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6620
echo "${ECHO_T}$hard_links" >&6
 
6621
  if test "$hard_links" = no; then
 
6622
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6623
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6624
    need_locks=warn
 
6625
  fi
 
6626
else
 
6627
  need_locks=no
 
6628
fi
 
6629
 
 
6630
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6631
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6632
 
 
6633
  runpath_var=
 
6634
  allow_undefined_flag=
 
6635
  enable_shared_with_static_runtimes=no
 
6636
  archive_cmds=
 
6637
  archive_expsym_cmds=
 
6638
  old_archive_From_new_cmds=
 
6639
  old_archive_from_expsyms_cmds=
 
6640
  export_dynamic_flag_spec=
 
6641
  whole_archive_flag_spec=
 
6642
  thread_safe_flag_spec=
 
6643
  hardcode_libdir_flag_spec=
 
6644
  hardcode_libdir_flag_spec_ld=
 
6645
  hardcode_libdir_separator=
 
6646
  hardcode_direct=no
 
6647
  hardcode_minus_L=no
 
6648
  hardcode_shlibpath_var=unsupported
 
6649
  link_all_deplibs=unknown
 
6650
  hardcode_automatic=no
 
6651
  module_cmds=
 
6652
  module_expsym_cmds=
 
6653
  always_export_symbols=no
 
6654
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6655
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6656
  # included in the symbol list
 
6657
  include_expsyms=
 
6658
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6659
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6660
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6661
  # as well as any symbol that contains `d'.
 
6662
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6663
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6664
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6665
  # the symbol is explicitly referenced.  Since portable code cannot
 
6666
  # rely on this symbol name, it's probably fine to never include it in
 
6667
  # preloaded symbol tables.
 
6668
  extract_expsyms_cmds=
 
6669
 
 
6670
  case $host_os in
 
6671
  cygwin* | mingw* | pw32*)
 
6672
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6673
    # When not using gcc, we currently assume that we are using
 
6674
    # Microsoft Visual C++.
 
6675
    if test "$GCC" != yes; then
 
6676
      with_gnu_ld=no
 
6677
    fi
 
6678
    ;;
 
6679
  openbsd*)
 
6680
    with_gnu_ld=no
 
6681
    ;;
 
6682
  esac
 
6683
 
 
6684
  ld_shlibs=yes
 
6685
  if test "$with_gnu_ld" = yes; then
 
6686
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6687
    wlarc='${wl}'
 
6688
 
 
6689
    # See if GNU ld supports shared libraries.
 
6690
    case $host_os in
 
6691
    aix3* | aix4* | aix5*)
 
6692
      # On AIX/PPC, the GNU linker is very broken
 
6693
      if test "$host_cpu" != ia64; then
 
6694
        ld_shlibs=no
 
6695
        cat <<EOF 1>&2
 
6696
 
 
6697
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6698
*** to be unable to reliably create shared libraries on AIX.
 
6699
*** Therefore, libtool is disabling shared libraries support.  If you
 
6700
*** really care for shared libraries, you may want to modify your PATH
 
6701
*** so that a non-GNU linker is found, and then restart.
 
6702
 
 
6703
EOF
 
6704
      fi
 
6705
      ;;
 
6706
 
 
6707
    amigaos*)
 
6708
      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)'
 
6709
      hardcode_libdir_flag_spec='-L$libdir'
 
6710
      hardcode_minus_L=yes
 
6711
 
 
6712
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6713
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6714
      # to version 4, is to share data among multiple programs linked
 
6715
      # with the same dynamic library.  Since this doesn't match the
 
6716
      # behavior of shared libraries on other platforms, we can't use
 
6717
      # them.
 
6718
      ld_shlibs=no
 
6719
      ;;
 
6720
 
 
6721
    beos*)
 
6722
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6723
        allow_undefined_flag=unsupported
 
6724
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6725
        # support --undefined.  This deserves some investigation.  FIXME
 
6726
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6727
      else
 
6728
        ld_shlibs=no
 
6729
      fi
 
6730
      ;;
 
6731
 
 
6732
    cygwin* | mingw* | pw32*)
 
6733
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6734
      # as there is no search path for DLLs.
 
6735
      hardcode_libdir_flag_spec='-L$libdir'
 
6736
      allow_undefined_flag=unsupported
 
6737
      always_export_symbols=no
 
6738
      enable_shared_with_static_runtimes=yes
 
6739
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6740
 
 
6741
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6742
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6743
        # If the export-symbols file already is a .def file (1st line
 
6744
        # is EXPORTS), use it as is; otherwise, prepend...
 
6745
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6746
          cp $export_symbols $output_objdir/$soname.def;
 
6747
        else
 
6748
          echo EXPORTS > $output_objdir/$soname.def;
 
6749
          cat $export_symbols >> $output_objdir/$soname.def;
 
6750
        fi~
 
6751
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6752
      else
 
6753
        ld_shlibs=no
 
6754
      fi
 
6755
      ;;
 
6756
 
 
6757
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6758
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6759
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6760
        wlarc=
 
6761
      else
 
6762
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6763
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6764
      fi
 
6765
      ;;
 
6766
 
 
6767
    solaris* | sysv5*)
 
6768
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6769
        ld_shlibs=no
 
6770
        cat <<EOF 1>&2
 
6771
 
 
6772
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6773
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6774
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6775
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6776
*** your PATH or compiler configuration so that the native linker is
 
6777
*** used, and then restart.
 
6778
 
 
6779
EOF
 
6780
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6781
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6782
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6783
      else
 
6784
        ld_shlibs=no
 
6785
      fi
 
6786
      ;;
 
6787
 
 
6788
    sunos4*)
 
6789
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6790
      wlarc=
 
6791
      hardcode_direct=yes
 
6792
      hardcode_shlibpath_var=no
 
6793
      ;;
 
6794
 
 
6795
  linux*)
 
6796
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6797
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6798
        archive_cmds="$tmp_archive_cmds"
 
6799
      supports_anon_versioning=no
 
6800
      case `$LD -v 2>/dev/null` in
 
6801
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6802
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6803
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6804
        *\ 2.11.*) ;; # other 2.11 versions
 
6805
        *) supports_anon_versioning=yes ;;
 
6806
      esac
 
6807
      if test $supports_anon_versioning = yes; then
 
6808
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6809
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6810
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
6811
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6812
      else
 
6813
        archive_expsym_cmds="$tmp_archive_cmds"
 
6814
      fi
 
6815
      link_all_deplibs=no
 
6816
    else
 
6817
      ld_shlibs=no
 
6818
    fi
 
6819
    ;;
 
6820
 
 
6821
    *)
 
6822
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6823
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6824
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6825
      else
 
6826
        ld_shlibs=no
 
6827
      fi
 
6828
      ;;
 
6829
    esac
 
6830
 
 
6831
    if test "$ld_shlibs" = yes; then
 
6832
      runpath_var=LD_RUN_PATH
 
6833
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6834
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
6835
      # ancient GNU ld didn't support --whole-archive et. al.
 
6836
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6837
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6838
      else
 
6839
        whole_archive_flag_spec=
 
6840
      fi
 
6841
    fi
 
6842
  else
 
6843
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6844
    case $host_os in
 
6845
    aix3*)
 
6846
      allow_undefined_flag=unsupported
 
6847
      always_export_symbols=yes
 
6848
      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'
 
6849
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6850
      # are no directories specified by -L.
 
6851
      hardcode_minus_L=yes
 
6852
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6853
        # Neither direct hardcoding nor static linking is supported with a
 
6854
        # broken collect2.
 
6855
        hardcode_direct=unsupported
 
6856
      fi
 
6857
      ;;
 
6858
 
 
6859
    aix4* | aix5*)
 
6860
      if test "$host_cpu" = ia64; then
 
6861
        # On IA64, the linker does run time linking by default, so we don't
 
6862
        # have to do anything special.
 
6863
        aix_use_runtimelinking=no
 
6864
        exp_sym_flag='-Bexport'
 
6865
        no_entry_flag=""
 
6866
      else
 
6867
        # If we're using GNU nm, then we don't want the "-C" option.
 
6868
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6869
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6870
          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'
 
6871
        else
 
6872
          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'
 
6873
        fi
 
6874
        aix_use_runtimelinking=no
 
6875
 
 
6876
        # Test if we are trying to use run time linking or normal
 
6877
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6878
        # need to do runtime linking.
 
6879
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6880
          for ld_flag in $LDFLAGS; do
 
6881
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6882
            aix_use_runtimelinking=yes
 
6883
            break
 
6884
          fi
 
6885
          done
 
6886
        esac
 
6887
 
 
6888
        exp_sym_flag='-bexport'
 
6889
        no_entry_flag='-bnoentry'
 
6890
      fi
 
6891
 
 
6892
      # When large executables or shared objects are built, AIX ld can
 
6893
      # have problems creating the table of contents.  If linking a library
 
6894
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6895
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6896
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6897
 
 
6898
      archive_cmds=''
 
6899
      hardcode_direct=yes
 
6900
      hardcode_libdir_separator=':'
 
6901
      link_all_deplibs=yes
 
6902
 
 
6903
      if test "$GCC" = yes; then
 
6904
        case $host_os in aix4.012|aix4.012.*)
 
6905
        # We only want to do this on AIX 4.2 and lower, the check
 
6906
        # below for broken collect2 doesn't work under 4.3+
 
6907
          collect2name=`${CC} -print-prog-name=collect2`
 
6908
          if test -f "$collect2name" && \
 
6909
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6910
          then
 
6911
          # We have reworked collect2
 
6912
          hardcode_direct=yes
 
6913
          else
 
6914
          # We have old collect2
 
6915
          hardcode_direct=unsupported
 
6916
          # It fails to find uninstalled libraries when the uninstalled
 
6917
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6918
          # to unsupported forces relinking
 
6919
          hardcode_minus_L=yes
 
6920
          hardcode_libdir_flag_spec='-L$libdir'
 
6921
          hardcode_libdir_separator=
 
6922
          fi
 
6923
        esac
 
6924
        shared_flag='-shared'
 
6925
      else
 
6926
        # not using gcc
 
6927
        if test "$host_cpu" = ia64; then
 
6928
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6929
        # chokes on -Wl,-G. The following line is correct:
 
6930
          shared_flag='-G'
 
6931
        else
 
6932
        if test "$aix_use_runtimelinking" = yes; then
 
6933
            shared_flag='${wl}-G'
 
6934
          else
 
6935
            shared_flag='${wl}-bM:SRE'
 
6936
        fi
 
6937
        fi
 
6938
      fi
 
6939
 
 
6940
      # It seems that -bexpall does not export symbols beginning with
 
6941
      # underscore (_), so it is better to generate a list of symbols to export.
 
6942
      always_export_symbols=yes
 
6943
      if test "$aix_use_runtimelinking" = yes; then
 
6944
        # Warning - without using the other runtime loading flags (-brtl),
 
6945
        # -berok will link without error, but may produce a broken library.
 
6946
        allow_undefined_flag='-berok'
 
6947
       # Determine the default libpath from the value encoded in an empty executable.
 
6948
       cat >conftest.$ac_ext <<_ACEOF
 
6949
/* confdefs.h.  */
 
6950
_ACEOF
 
6951
cat confdefs.h >>conftest.$ac_ext
 
6952
cat >>conftest.$ac_ext <<_ACEOF
 
6953
/* end confdefs.h.  */
 
6954
 
 
6955
int
 
6956
main ()
 
6957
{
 
6958
 
 
6959
  ;
 
6960
  return 0;
 
6961
}
 
6962
_ACEOF
 
6963
rm -f conftest.$ac_objext conftest$ac_exeext
 
6964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6965
  (eval $ac_link) 2>conftest.er1
 
6966
  ac_status=$?
 
6967
  grep -v '^ *+' conftest.er1 >conftest.err
 
6968
  rm -f conftest.er1
 
6969
  cat conftest.err >&5
 
6970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6971
  (exit $ac_status); } &&
 
6972
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6973
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6974
  (eval $ac_try) 2>&5
 
6975
  ac_status=$?
 
6976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6977
  (exit $ac_status); }; } &&
 
6978
         { ac_try='test -s conftest$ac_exeext'
 
6979
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6980
  (eval $ac_try) 2>&5
 
6981
  ac_status=$?
 
6982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6983
  (exit $ac_status); }; }; then
 
6984
 
 
6985
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6986
}'`
 
6987
# Check for a 64-bit object if we didn't find anything.
 
6988
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; }
 
6989
}'`; fi
 
6990
else
 
6991
  echo "$as_me: failed program was:" >&5
 
6992
sed 's/^/| /' conftest.$ac_ext >&5
 
6993
 
 
6994
fi
 
6995
rm -f conftest.err conftest.$ac_objext \
 
6996
      conftest$ac_exeext conftest.$ac_ext
 
6997
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6998
 
 
6999
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7000
        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"
 
7001
       else
 
7002
        if test "$host_cpu" = ia64; then
 
7003
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7004
          allow_undefined_flag="-z nodefs"
 
7005
          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"
 
7006
        else
 
7007
         # Determine the default libpath from the value encoded in an empty executable.
 
7008
         cat >conftest.$ac_ext <<_ACEOF
 
7009
/* confdefs.h.  */
 
7010
_ACEOF
 
7011
cat confdefs.h >>conftest.$ac_ext
 
7012
cat >>conftest.$ac_ext <<_ACEOF
 
7013
/* end confdefs.h.  */
 
7014
 
 
7015
int
 
7016
main ()
 
7017
{
 
7018
 
 
7019
  ;
 
7020
  return 0;
 
7021
}
 
7022
_ACEOF
 
7023
rm -f conftest.$ac_objext conftest$ac_exeext
 
7024
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7025
  (eval $ac_link) 2>conftest.er1
 
7026
  ac_status=$?
 
7027
  grep -v '^ *+' conftest.er1 >conftest.err
 
7028
  rm -f conftest.er1
 
7029
  cat conftest.err >&5
 
7030
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7031
  (exit $ac_status); } &&
 
7032
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7033
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7034
  (eval $ac_try) 2>&5
 
7035
  ac_status=$?
 
7036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7037
  (exit $ac_status); }; } &&
 
7038
         { ac_try='test -s conftest$ac_exeext'
 
7039
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7040
  (eval $ac_try) 2>&5
 
7041
  ac_status=$?
 
7042
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7043
  (exit $ac_status); }; }; then
 
7044
 
 
7045
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7046
}'`
 
7047
# Check for a 64-bit object if we didn't find anything.
 
7048
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; }
 
7049
}'`; fi
 
7050
else
 
7051
  echo "$as_me: failed program was:" >&5
 
7052
sed 's/^/| /' conftest.$ac_ext >&5
 
7053
 
 
7054
fi
 
7055
rm -f conftest.err conftest.$ac_objext \
 
7056
      conftest$ac_exeext conftest.$ac_ext
 
7057
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7058
 
 
7059
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7060
          # Warning - without using the other run time loading flags,
 
7061
          # -berok will link without error, but may produce a broken library.
 
7062
          no_undefined_flag=' ${wl}-bernotok'
 
7063
          allow_undefined_flag=' ${wl}-berok'
 
7064
          # -bexpall does not export symbols beginning with underscore (_)
 
7065
          always_export_symbols=yes
 
7066
          # Exported symbols can be pulled into shared objects from archives
 
7067
          whole_archive_flag_spec=' '
 
7068
          archive_cmds_need_lc=yes
 
7069
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7070
          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'
 
7071
        fi
 
7072
      fi
 
7073
      ;;
 
7074
 
 
7075
    amigaos*)
 
7076
      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)'
 
7077
      hardcode_libdir_flag_spec='-L$libdir'
 
7078
      hardcode_minus_L=yes
 
7079
      # see comment about different semantics on the GNU ld section
 
7080
      ld_shlibs=no
 
7081
      ;;
 
7082
 
 
7083
    bsdi4*)
 
7084
      export_dynamic_flag_spec=-rdynamic
 
7085
      ;;
 
7086
 
 
7087
    cygwin* | mingw* | pw32*)
 
7088
      # When not using gcc, we currently assume that we are using
 
7089
      # Microsoft Visual C++.
 
7090
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7091
      # no search path for DLLs.
 
7092
      hardcode_libdir_flag_spec=' '
 
7093
      allow_undefined_flag=unsupported
 
7094
      # Tell ltmain to make .lib files, not .a files.
 
7095
      libext=lib
 
7096
      # Tell ltmain to make .dll files, not .so files.
 
7097
      shrext_cmds=".dll"
 
7098
      # FIXME: Setting linknames here is a bad hack.
 
7099
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7100
      # The linker will automatically build a .lib file if we build a DLL.
 
7101
      old_archive_From_new_cmds='true'
 
7102
      # FIXME: Should let the user specify the lib program.
 
7103
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7104
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7105
      enable_shared_with_static_runtimes=yes
 
7106
      ;;
 
7107
 
 
7108
    darwin* | rhapsody*)
 
7109
    if test "$GXX" = yes ; then
 
7110
      archive_cmds_need_lc=no
 
7111
      case "$host_os" in
 
7112
      rhapsody* | darwin1.[012])
 
7113
        allow_undefined_flag='-undefined suppress'
 
7114
        ;;
 
7115
      *) # Darwin 1.3 on
 
7116
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7117
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
7118
      else
 
7119
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
7120
          10.[012])
 
7121
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
7122
            ;;
 
7123
          10.*)
 
7124
            allow_undefined_flag='-undefined dynamic_lookup'
 
7125
            ;;
 
7126
        esac
 
7127
      fi
 
7128
        ;;
 
7129
      esac
 
7130
        lt_int_apple_cc_single_mod=no
 
7131
        output_verbose_link_cmd='echo'
 
7132
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
7133
          lt_int_apple_cc_single_mod=yes
 
7134
        fi
 
7135
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7136
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7137
        else
 
7138
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7139
      fi
 
7140
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7141
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7142
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7143
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7144
        else
 
7145
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7146
        fi
 
7147
          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}'
 
7148
      hardcode_direct=no
 
7149
      hardcode_automatic=yes
 
7150
      hardcode_shlibpath_var=unsupported
 
7151
      whole_archive_flag_spec='-all_load $convenience'
 
7152
      link_all_deplibs=yes
 
7153
    else
 
7154
      ld_shlibs=no
 
7155
    fi
 
7156
      ;;
 
7157
 
 
7158
    dgux*)
 
7159
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7160
      hardcode_libdir_flag_spec='-L$libdir'
 
7161
      hardcode_shlibpath_var=no
 
7162
      ;;
 
7163
 
 
7164
    freebsd1*)
 
7165
      ld_shlibs=no
 
7166
      ;;
 
7167
 
 
7168
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7169
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7170
    # does not break anything, and helps significantly (at the cost of a little
 
7171
    # extra space).
 
7172
    freebsd2.2*)
 
7173
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7174
      hardcode_libdir_flag_spec='-R$libdir'
 
7175
      hardcode_direct=yes
 
7176
      hardcode_shlibpath_var=no
 
7177
      ;;
 
7178
 
 
7179
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7180
    freebsd2*)
 
7181
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7182
      hardcode_direct=yes
 
7183
      hardcode_minus_L=yes
 
7184
      hardcode_shlibpath_var=no
 
7185
      ;;
 
7186
 
 
7187
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7188
    freebsd* | kfreebsd*-gnu)
 
7189
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7190
      hardcode_libdir_flag_spec='-R$libdir'
 
7191
      hardcode_direct=yes
 
7192
      hardcode_shlibpath_var=no
 
7193
      ;;
 
7194
 
 
7195
    hpux9*)
 
7196
      if test "$GCC" = yes; then
 
7197
        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'
 
7198
      else
 
7199
        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'
 
7200
      fi
 
7201
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7202
      hardcode_libdir_separator=:
 
7203
      hardcode_direct=yes
 
7204
 
 
7205
      # hardcode_minus_L: Not really in the search PATH,
 
7206
      # but as the default location of the library.
 
7207
      hardcode_minus_L=yes
 
7208
      export_dynamic_flag_spec='${wl}-E'
 
7209
      ;;
 
7210
 
 
7211
    hpux10* | hpux11*)
 
7212
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7213
        case "$host_cpu" in
 
7214
        hppa*64*|ia64*)
 
7215
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7216
          ;;
 
7217
        *)
 
7218
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7219
          ;;
 
7220
        esac
 
7221
      else
 
7222
        case "$host_cpu" in
 
7223
        hppa*64*|ia64*)
 
7224
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7225
          ;;
 
7226
        *)
 
7227
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7228
          ;;
 
7229
        esac
 
7230
      fi
 
7231
      if test "$with_gnu_ld" = no; then
 
7232
        case "$host_cpu" in
 
7233
        hppa*64*)
 
7234
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7235
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7236
          hardcode_libdir_separator=:
 
7237
          hardcode_direct=no
 
7238
          hardcode_shlibpath_var=no
 
7239
          ;;
 
7240
        ia64*)
 
7241
          hardcode_libdir_flag_spec='-L$libdir'
 
7242
          hardcode_direct=no
 
7243
          hardcode_shlibpath_var=no
 
7244
 
 
7245
          # hardcode_minus_L: Not really in the search PATH,
 
7246
          # but as the default location of the library.
 
7247
          hardcode_minus_L=yes
 
7248
          ;;
 
7249
        *)
 
7250
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7251
          hardcode_libdir_separator=:
 
7252
          hardcode_direct=yes
 
7253
          export_dynamic_flag_spec='${wl}-E'
 
7254
 
 
7255
          # hardcode_minus_L: Not really in the search PATH,
 
7256
          # but as the default location of the library.
 
7257
          hardcode_minus_L=yes
 
7258
          ;;
 
7259
        esac
 
7260
      fi
 
7261
      ;;
 
7262
 
 
7263
    irix5* | irix6* | nonstopux*)
 
7264
      if test "$GCC" = yes; then
 
7265
        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'
 
7266
      else
 
7267
        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'
 
7268
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7269
      fi
 
7270
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7271
      hardcode_libdir_separator=:
 
7272
      link_all_deplibs=yes
 
7273
      ;;
 
7274
 
 
7275
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7276
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7277
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7278
      else
 
7279
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7280
      fi
 
7281
      hardcode_libdir_flag_spec='-R$libdir'
 
7282
      hardcode_direct=yes
 
7283
      hardcode_shlibpath_var=no
 
7284
      ;;
 
7285
 
 
7286
    newsos6)
 
7287
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7288
      hardcode_direct=yes
 
7289
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7290
      hardcode_libdir_separator=:
 
7291
      hardcode_shlibpath_var=no
 
7292
      ;;
 
7293
 
 
7294
    openbsd*)
 
7295
      hardcode_direct=yes
 
7296
      hardcode_shlibpath_var=no
 
7297
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7298
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7299
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7300
        export_dynamic_flag_spec='${wl}-E'
 
7301
      else
 
7302
       case $host_os in
 
7303
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7304
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7305
           hardcode_libdir_flag_spec='-R$libdir'
 
7306
           ;;
 
7307
         *)
 
7308
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7309
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7310
           ;;
 
7311
       esac
 
7312
      fi
 
7313
      ;;
 
7314
 
 
7315
    os2*)
 
7316
      hardcode_libdir_flag_spec='-L$libdir'
 
7317
      hardcode_minus_L=yes
 
7318
      allow_undefined_flag=unsupported
 
7319
      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'
 
7320
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7321
      ;;
 
7322
 
 
7323
    osf3*)
 
7324
      if test "$GCC" = yes; then
 
7325
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7326
        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'
 
7327
      else
 
7328
        allow_undefined_flag=' -expect_unresolved \*'
 
7329
        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'
 
7330
      fi
 
7331
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7332
      hardcode_libdir_separator=:
 
7333
      ;;
 
7334
 
 
7335
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7336
      if test "$GCC" = yes; then
 
7337
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7338
        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'
 
7339
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7340
      else
 
7341
        allow_undefined_flag=' -expect_unresolved \*'
 
7342
        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'
 
7343
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7344
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
7345
 
 
7346
        # Both c and cxx compiler support -rpath directly
 
7347
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7348
      fi
 
7349
      hardcode_libdir_separator=:
 
7350
      ;;
 
7351
 
 
7352
    sco3.2v5*)
 
7353
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7354
      hardcode_shlibpath_var=no
 
7355
      export_dynamic_flag_spec='${wl}-Bexport'
 
7356
      runpath_var=LD_RUN_PATH
 
7357
      hardcode_runpath_var=yes
 
7358
      ;;
 
7359
 
 
7360
    solaris*)
 
7361
      no_undefined_flag=' -z text'
 
7362
      if test "$GCC" = yes; then
 
7363
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7364
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7365
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7366
      else
 
7367
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7368
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7369
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7370
      fi
 
7371
      hardcode_libdir_flag_spec='-R$libdir'
 
7372
      hardcode_shlibpath_var=no
 
7373
      case $host_os in
 
7374
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7375
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7376
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7377
      esac
 
7378
      link_all_deplibs=yes
 
7379
      ;;
 
7380
 
 
7381
    sunos4*)
 
7382
      if test "x$host_vendor" = xsequent; then
 
7383
        # Use $CC to link under sequent, because it throws in some extra .o
 
7384
        # files that make .init and .fini sections work.
 
7385
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7386
      else
 
7387
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7388
      fi
 
7389
      hardcode_libdir_flag_spec='-L$libdir'
 
7390
      hardcode_direct=yes
 
7391
      hardcode_minus_L=yes
 
7392
      hardcode_shlibpath_var=no
 
7393
      ;;
 
7394
 
 
7395
    sysv4)
 
7396
      case $host_vendor in
 
7397
        sni)
 
7398
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7399
          hardcode_direct=yes # is this really true???
 
7400
        ;;
 
7401
        siemens)
 
7402
          ## LD is ld it makes a PLAMLIB
 
7403
          ## CC just makes a GrossModule.
 
7404
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7405
          reload_cmds='$CC -r -o $output$reload_objs'
 
7406
          hardcode_direct=no
 
7407
        ;;
 
7408
        motorola)
 
7409
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7410
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7411
        ;;
 
7412
      esac
 
7413
      runpath_var='LD_RUN_PATH'
 
7414
      hardcode_shlibpath_var=no
 
7415
      ;;
 
7416
 
 
7417
    sysv4.3*)
 
7418
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7419
      hardcode_shlibpath_var=no
 
7420
      export_dynamic_flag_spec='-Bexport'
 
7421
      ;;
 
7422
 
 
7423
    sysv4*MP*)
 
7424
      if test -d /usr/nec; then
 
7425
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7426
        hardcode_shlibpath_var=no
 
7427
        runpath_var=LD_RUN_PATH
 
7428
        hardcode_runpath_var=yes
 
7429
        ld_shlibs=yes
 
7430
      fi
 
7431
      ;;
 
7432
 
 
7433
    sysv4.2uw2*)
 
7434
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7435
      hardcode_direct=yes
 
7436
      hardcode_minus_L=no
 
7437
      hardcode_shlibpath_var=no
 
7438
      hardcode_runpath_var=yes
 
7439
      runpath_var=LD_RUN_PATH
 
7440
      ;;
 
7441
 
 
7442
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7443
      no_undefined_flag='${wl}-z ${wl}text'
 
7444
      if test "$GCC" = yes; then
 
7445
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7446
      else
 
7447
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7448
      fi
 
7449
      runpath_var='LD_RUN_PATH'
 
7450
      hardcode_shlibpath_var=no
 
7451
      ;;
 
7452
 
 
7453
    sysv5*)
 
7454
      no_undefined_flag=' -z text'
 
7455
      # $CC -shared without GNU ld will not create a library from C++
 
7456
      # object files and a static libstdc++, better avoid it by now
 
7457
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7458
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7459
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7460
      hardcode_libdir_flag_spec=
 
7461
      hardcode_shlibpath_var=no
 
7462
      runpath_var='LD_RUN_PATH'
 
7463
      ;;
 
7464
 
 
7465
    uts4*)
 
7466
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7467
      hardcode_libdir_flag_spec='-L$libdir'
 
7468
      hardcode_shlibpath_var=no
 
7469
      ;;
 
7470
 
 
7471
    *)
 
7472
      ld_shlibs=no
 
7473
      ;;
 
7474
    esac
 
7475
  fi
 
7476
 
 
7477
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7478
echo "${ECHO_T}$ld_shlibs" >&6
 
7479
test "$ld_shlibs" = no && can_build_shared=no
 
7480
 
 
7481
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7482
if test "$GCC" = yes; then
 
7483
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7484
fi
 
7485
 
 
7486
#
 
7487
# Do we need to explicitly link libc?
 
7488
#
 
7489
case "x$archive_cmds_need_lc" in
 
7490
x|xyes)
 
7491
  # Assume -lc should be added
 
7492
  archive_cmds_need_lc=yes
 
7493
 
 
7494
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7495
    case $archive_cmds in
 
7496
    *'~'*)
 
7497
      # FIXME: we may have to deal with multi-command sequences.
 
7498
      ;;
 
7499
    '$CC '*)
 
7500
      # Test whether the compiler implicitly links with -lc since on some
 
7501
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7502
      # to ld, don't add -lc before -lgcc.
 
7503
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7504
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7505
      $rm conftest*
 
7506
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7507
 
 
7508
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7509
  (eval $ac_compile) 2>&5
 
7510
  ac_status=$?
 
7511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7512
  (exit $ac_status); } 2>conftest.err; then
 
7513
        soname=conftest
 
7514
        lib=conftest
 
7515
        libobjs=conftest.$ac_objext
 
7516
        deplibs=
 
7517
        wl=$lt_prog_compiler_wl
 
7518
        compiler_flags=-v
 
7519
        linker_flags=-v
 
7520
        verstring=
 
7521
        output_objdir=.
 
7522
        libname=conftest
 
7523
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7524
        allow_undefined_flag=
 
7525
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7526
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7527
  ac_status=$?
 
7528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7529
  (exit $ac_status); }
 
7530
        then
 
7531
          archive_cmds_need_lc=no
 
7532
        else
 
7533
          archive_cmds_need_lc=yes
 
7534
        fi
 
7535
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7536
      else
 
7537
        cat conftest.err 1>&5
 
7538
      fi
 
7539
      $rm conftest*
 
7540
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7541
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7542
      ;;
 
7543
    esac
 
7544
  fi
 
7545
  ;;
 
7546
esac
 
7547
 
 
7548
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7549
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7550
library_names_spec=
 
7551
libname_spec='lib$name'
 
7552
soname_spec=
 
7553
shrext_cmds=".so"
 
7554
postinstall_cmds=
 
7555
postuninstall_cmds=
 
7556
finish_cmds=
 
7557
finish_eval=
 
7558
shlibpath_var=
 
7559
shlibpath_overrides_runpath=unknown
 
7560
version_type=none
 
7561
dynamic_linker="$host_os ld.so"
 
7562
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7563
if test "$GCC" = yes; then
 
7564
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7565
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7566
    # if the path contains ";" then we assume it to be the separator
 
7567
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7568
    # assumed that no part of a normal pathname contains ";" but that should
 
7569
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7570
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7571
  else
 
7572
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7573
  fi
 
7574
else
 
7575
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7576
fi
 
7577
need_lib_prefix=unknown
 
7578
hardcode_into_libs=no
 
7579
 
 
7580
# when you set need_version to no, make sure it does not cause -set_version
 
7581
# flags to be left without arguments
 
7582
need_version=unknown
 
7583
 
 
7584
case $host_os in
 
7585
aix3*)
 
7586
  version_type=linux
 
7587
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7588
  shlibpath_var=LIBPATH
 
7589
 
 
7590
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7591
  soname_spec='${libname}${release}${shared_ext}$major'
 
7592
  ;;
 
7593
 
 
7594
aix4* | aix5*)
 
7595
  version_type=linux
 
7596
  need_lib_prefix=no
 
7597
  need_version=no
 
7598
  hardcode_into_libs=yes
 
7599
  if test "$host_cpu" = ia64; then
 
7600
    # AIX 5 supports IA64
 
7601
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7602
    shlibpath_var=LD_LIBRARY_PATH
 
7603
  else
 
7604
    # With GCC up to 2.95.x, collect2 would create an import file
 
7605
    # for dependence libraries.  The import file would start with
 
7606
    # the line `#! .'.  This would cause the generated library to
 
7607
    # depend on `.', always an invalid library.  This was fixed in
 
7608
    # development snapshots of GCC prior to 3.0.
 
7609
    case $host_os in
 
7610
      aix4 | aix4.[01] | aix4.[01].*)
 
7611
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7612
           echo ' yes '
 
7613
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7614
        :
 
7615
      else
 
7616
        can_build_shared=no
 
7617
      fi
 
7618
      ;;
 
7619
    esac
 
7620
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7621
    # soname into executable. Probably we can add versioning support to
 
7622
    # collect2, so additional links can be useful in future.
 
7623
    if test "$aix_use_runtimelinking" = yes; then
 
7624
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7625
      # instead of lib<name>.a to let people know that these are not
 
7626
      # typical AIX shared libraries.
 
7627
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7628
    else
 
7629
      # We preserve .a as extension for shared libraries through AIX4.2
 
7630
      # and later when we are not doing run time linking.
 
7631
      library_names_spec='${libname}${release}.a $libname.a'
 
7632
      soname_spec='${libname}${release}${shared_ext}$major'
 
7633
    fi
 
7634
    shlibpath_var=LIBPATH
 
7635
  fi
 
7636
  ;;
 
7637
 
 
7638
amigaos*)
 
7639
  library_names_spec='$libname.ixlibrary $libname.a'
 
7640
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7641
  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'
 
7642
  ;;
 
7643
 
 
7644
beos*)
 
7645
  library_names_spec='${libname}${shared_ext}'
 
7646
  dynamic_linker="$host_os ld.so"
 
7647
  shlibpath_var=LIBRARY_PATH
 
7648
  ;;
 
7649
 
 
7650
bsdi4*)
 
7651
  version_type=linux
 
7652
  need_version=no
 
7653
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7654
  soname_spec='${libname}${release}${shared_ext}$major'
 
7655
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7656
  shlibpath_var=LD_LIBRARY_PATH
 
7657
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7658
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7659
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7660
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7661
  # libtool to hard-code these into programs
 
7662
  ;;
 
7663
 
 
7664
cygwin* | mingw* | pw32*)
 
7665
  version_type=windows
 
7666
  shrext_cmds=".dll"
 
7667
  need_version=no
 
7668
  need_lib_prefix=no
 
7669
 
 
7670
  case $GCC,$host_os in
 
7671
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7672
    library_names_spec='$libname.dll.a'
 
7673
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7674
    postinstall_cmds='base_file=`basename \${file}`~
 
7675
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7676
      dldir=$destdir/`dirname \$dlpath`~
 
7677
      test -d \$dldir || mkdir -p \$dldir~
 
7678
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7679
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7680
      dlpath=$dir/\$dldll~
 
7681
       $rm \$dlpath'
 
7682
    shlibpath_overrides_runpath=yes
 
7683
 
 
7684
    case $host_os in
 
7685
    cygwin*)
 
7686
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7687
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7688
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7689
      ;;
 
7690
    mingw*)
 
7691
      # MinGW DLLs use traditional 'lib' prefix
 
7692
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7693
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7694
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7695
        # It is most probably a Windows format PATH printed by
 
7696
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7697
        # path with ; separators, and with drive letters. We can handle the
 
7698
        # drive letters (cygwin fileutils understands them), so leave them,
 
7699
        # especially as we might pass files found there to a mingw objdump,
 
7700
        # which wouldn't understand a cygwinified path. Ahh.
 
7701
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7702
      else
 
7703
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7704
      fi
 
7705
      ;;
 
7706
    pw32*)
 
7707
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7708
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
7709
      ;;
 
7710
    esac
 
7711
    ;;
 
7712
 
 
7713
  *)
 
7714
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7715
    ;;
 
7716
  esac
 
7717
  dynamic_linker='Win32 ld.exe'
 
7718
  # FIXME: first we should search . and the directory the executable is in
 
7719
  shlibpath_var=PATH
 
7720
  ;;
 
7721
 
 
7722
darwin* | rhapsody*)
 
7723
  dynamic_linker="$host_os dyld"
 
7724
  version_type=darwin
 
7725
  need_lib_prefix=no
 
7726
  need_version=no
 
7727
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7728
  soname_spec='${libname}${release}${major}$shared_ext'
 
7729
  shlibpath_overrides_runpath=yes
 
7730
  shlibpath_var=DYLD_LIBRARY_PATH
 
7731
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
7732
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7733
  if test "$GCC" = yes; then
 
7734
    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"`
 
7735
  else
 
7736
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7737
  fi
 
7738
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7739
  ;;
 
7740
 
 
7741
dgux*)
 
7742
  version_type=linux
 
7743
  need_lib_prefix=no
 
7744
  need_version=no
 
7745
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7746
  soname_spec='${libname}${release}${shared_ext}$major'
 
7747
  shlibpath_var=LD_LIBRARY_PATH
 
7748
  ;;
 
7749
 
 
7750
freebsd1*)
 
7751
  dynamic_linker=no
 
7752
  ;;
 
7753
 
 
7754
kfreebsd*-gnu)
 
7755
  version_type=linux
 
7756
  need_lib_prefix=no
 
7757
  need_version=no
 
7758
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7759
  soname_spec='${libname}${release}${shared_ext}$major'
 
7760
  shlibpath_var=LD_LIBRARY_PATH
 
7761
  shlibpath_overrides_runpath=no
 
7762
  hardcode_into_libs=yes
 
7763
  dynamic_linker='GNU ld.so'
 
7764
  ;;
 
7765
 
 
7766
freebsd*)
 
7767
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7768
  version_type=freebsd-$objformat
 
7769
  case $version_type in
 
7770
    freebsd-elf*)
 
7771
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7772
      need_version=no
 
7773
      need_lib_prefix=no
 
7774
      ;;
 
7775
    freebsd-*)
 
7776
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7777
      need_version=yes
 
7778
      ;;
 
7779
  esac
 
7780
  shlibpath_var=LD_LIBRARY_PATH
 
7781
  case $host_os in
 
7782
  freebsd2*)
 
7783
    shlibpath_overrides_runpath=yes
 
7784
    ;;
 
7785
  freebsd3.01* | freebsdelf3.01*)
 
7786
    shlibpath_overrides_runpath=yes
 
7787
    hardcode_into_libs=yes
 
7788
    ;;
 
7789
  *) # from 3.2 on
 
7790
    shlibpath_overrides_runpath=no
 
7791
    hardcode_into_libs=yes
 
7792
    ;;
 
7793
  esac
 
7794
  ;;
 
7795
 
 
7796
gnu*)
 
7797
  version_type=linux
 
7798
  need_lib_prefix=no
 
7799
  need_version=no
 
7800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7801
  soname_spec='${libname}${release}${shared_ext}$major'
 
7802
  shlibpath_var=LD_LIBRARY_PATH
 
7803
  hardcode_into_libs=yes
 
7804
  ;;
 
7805
 
 
7806
hpux9* | hpux10* | hpux11*)
 
7807
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7808
  # link against other versions.
 
7809
  version_type=sunos
 
7810
  need_lib_prefix=no
 
7811
  need_version=no
 
7812
  case "$host_cpu" in
 
7813
  ia64*)
 
7814
    shrext_cmds='.so'
 
7815
    hardcode_into_libs=yes
 
7816
    dynamic_linker="$host_os dld.so"
 
7817
    shlibpath_var=LD_LIBRARY_PATH
 
7818
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7819
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7820
    soname_spec='${libname}${release}${shared_ext}$major'
 
7821
    if test "X$HPUX_IA64_MODE" = X32; then
 
7822
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7823
    else
 
7824
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7825
    fi
 
7826
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7827
    ;;
 
7828
   hppa*64*)
 
7829
     shrext_cmds='.sl'
 
7830
     hardcode_into_libs=yes
 
7831
     dynamic_linker="$host_os dld.sl"
 
7832
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7833
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7834
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7835
     soname_spec='${libname}${release}${shared_ext}$major'
 
7836
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7837
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7838
     ;;
 
7839
   *)
 
7840
    shrext_cmds='.sl'
 
7841
    dynamic_linker="$host_os dld.sl"
 
7842
    shlibpath_var=SHLIB_PATH
 
7843
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7844
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7845
    soname_spec='${libname}${release}${shared_ext}$major'
 
7846
    ;;
 
7847
  esac
 
7848
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7849
  postinstall_cmds='chmod 555 $lib'
 
7850
  ;;
 
7851
 
 
7852
irix5* | irix6* | nonstopux*)
 
7853
  case $host_os in
 
7854
    nonstopux*) version_type=nonstopux ;;
 
7855
    *)
 
7856
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7857
                version_type=linux
 
7858
        else
 
7859
                version_type=irix
 
7860
        fi ;;
 
7861
  esac
 
7862
  need_lib_prefix=no
 
7863
  need_version=no
 
7864
  soname_spec='${libname}${release}${shared_ext}$major'
 
7865
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7866
  case $host_os in
 
7867
  irix5* | nonstopux*)
 
7868
    libsuff= shlibsuff=
 
7869
    ;;
 
7870
  *)
 
7871
    case $LD in # libtool.m4 will add one of these switches to LD
 
7872
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7873
      libsuff= shlibsuff= libmagic=32-bit;;
 
7874
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7875
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7876
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7877
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7878
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7879
    esac
 
7880
    ;;
 
7881
  esac
 
7882
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7883
  shlibpath_overrides_runpath=no
 
7884
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7885
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7886
  hardcode_into_libs=yes
 
7887
  ;;
 
7888
 
 
7889
# No shared lib support for Linux oldld, aout, or coff.
 
7890
linux*oldld* | linux*aout* | linux*coff*)
 
7891
  dynamic_linker=no
 
7892
  ;;
 
7893
 
 
7894
# This must be Linux ELF.
 
7895
linux*)
 
7896
  version_type=linux
 
7897
  need_lib_prefix=no
 
7898
  need_version=no
 
7899
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7900
  soname_spec='${libname}${release}${shared_ext}$major'
 
7901
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7902
  shlibpath_var=LD_LIBRARY_PATH
 
7903
  shlibpath_overrides_runpath=no
 
7904
  # This implies no fast_install, which is unacceptable.
 
7905
  # Some rework will be needed to allow for fast_install
 
7906
  # before this can be enabled.
 
7907
  hardcode_into_libs=yes
 
7908
 
 
7909
  # Append ld.so.conf contents to the search path
 
7910
  if test -f /etc/ld.so.conf; then
 
7911
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
7912
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7913
  fi
 
7914
 
 
7915
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7916
  # powerpc, because MkLinux only supported shared libraries with the
 
7917
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7918
  # most powerpc-linux boxes support dynamic linking these days and
 
7919
  # people can always --disable-shared, the test was removed, and we
 
7920
  # assume the GNU/Linux dynamic linker is in use.
 
7921
  dynamic_linker='GNU/Linux ld.so'
 
7922
  ;;
 
7923
 
 
7924
netbsdelf*-gnu)
 
7925
  version_type=linux
 
7926
  need_lib_prefix=no
 
7927
  need_version=no
 
7928
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7929
  soname_spec='${libname}${release}${shared_ext}$major'
 
7930
  shlibpath_var=LD_LIBRARY_PATH
 
7931
  shlibpath_overrides_runpath=no
 
7932
  hardcode_into_libs=yes
 
7933
  dynamic_linker='NetBSD ld.elf_so'
 
7934
  ;;
 
7935
 
 
7936
knetbsd*-gnu)
 
7937
  version_type=linux
 
7938
  need_lib_prefix=no
 
7939
  need_version=no
 
7940
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7941
  soname_spec='${libname}${release}${shared_ext}$major'
 
7942
  shlibpath_var=LD_LIBRARY_PATH
 
7943
  shlibpath_overrides_runpath=no
 
7944
  hardcode_into_libs=yes
 
7945
  dynamic_linker='GNU ld.so'
 
7946
  ;;
 
7947
 
 
7948
netbsd*)
 
7949
  version_type=sunos
 
7950
  need_lib_prefix=no
 
7951
  need_version=no
 
7952
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7953
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7954
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7955
    dynamic_linker='NetBSD (a.out) ld.so'
 
7956
  else
 
7957
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7958
    soname_spec='${libname}${release}${shared_ext}$major'
 
7959
    dynamic_linker='NetBSD ld.elf_so'
 
7960
  fi
 
7961
  shlibpath_var=LD_LIBRARY_PATH
 
7962
  shlibpath_overrides_runpath=yes
 
7963
  hardcode_into_libs=yes
 
7964
  ;;
 
7965
 
 
7966
newsos6)
 
7967
  version_type=linux
 
7968
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7969
  shlibpath_var=LD_LIBRARY_PATH
 
7970
  shlibpath_overrides_runpath=yes
 
7971
  ;;
 
7972
 
 
7973
nto-qnx*)
 
7974
  version_type=linux
 
7975
  need_lib_prefix=no
 
7976
  need_version=no
 
7977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7978
  soname_spec='${libname}${release}${shared_ext}$major'
 
7979
  shlibpath_var=LD_LIBRARY_PATH
 
7980
  shlibpath_overrides_runpath=yes
 
7981
  ;;
 
7982
 
 
7983
openbsd*)
 
7984
  version_type=sunos
 
7985
  need_lib_prefix=no
 
7986
  need_version=yes
 
7987
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7988
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7989
  shlibpath_var=LD_LIBRARY_PATH
 
7990
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7991
    case $host_os in
 
7992
      openbsd2.[89] | openbsd2.[89].*)
 
7993
        shlibpath_overrides_runpath=no
 
7994
        ;;
 
7995
      *)
 
7996
        shlibpath_overrides_runpath=yes
 
7997
        ;;
 
7998
      esac
 
7999
  else
 
8000
    shlibpath_overrides_runpath=yes
 
8001
  fi
 
8002
  ;;
 
8003
 
 
8004
os2*)
 
8005
  libname_spec='$name'
 
8006
  shrext_cmds=".dll"
 
8007
  need_lib_prefix=no
 
8008
  library_names_spec='$libname${shared_ext} $libname.a'
 
8009
  dynamic_linker='OS/2 ld.exe'
 
8010
  shlibpath_var=LIBPATH
 
8011
  ;;
 
8012
 
 
8013
osf3* | osf4* | osf5*)
 
8014
  version_type=osf
 
8015
  need_lib_prefix=no
 
8016
  need_version=no
 
8017
  soname_spec='${libname}${release}${shared_ext}$major'
 
8018
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8019
  shlibpath_var=LD_LIBRARY_PATH
 
8020
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8021
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8022
  ;;
 
8023
 
 
8024
sco3.2v5*)
 
8025
  version_type=osf
 
8026
  soname_spec='${libname}${release}${shared_ext}$major'
 
8027
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8028
  shlibpath_var=LD_LIBRARY_PATH
 
8029
  ;;
 
8030
 
 
8031
solaris*)
 
8032
  version_type=linux
 
8033
  need_lib_prefix=no
 
8034
  need_version=no
 
8035
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8036
  soname_spec='${libname}${release}${shared_ext}$major'
 
8037
  shlibpath_var=LD_LIBRARY_PATH
 
8038
  shlibpath_overrides_runpath=yes
 
8039
  hardcode_into_libs=yes
 
8040
  # ldd complains unless libraries are executable
 
8041
  postinstall_cmds='chmod +x $lib'
 
8042
  ;;
 
8043
 
 
8044
sunos4*)
 
8045
  version_type=sunos
 
8046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8047
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8048
  shlibpath_var=LD_LIBRARY_PATH
 
8049
  shlibpath_overrides_runpath=yes
 
8050
  if test "$with_gnu_ld" = yes; then
 
8051
    need_lib_prefix=no
 
8052
  fi
 
8053
  need_version=yes
 
8054
  ;;
 
8055
 
 
8056
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8057
  version_type=linux
 
8058
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8059
  soname_spec='${libname}${release}${shared_ext}$major'
 
8060
  shlibpath_var=LD_LIBRARY_PATH
 
8061
  case $host_vendor in
 
8062
    sni)
 
8063
      shlibpath_overrides_runpath=no
 
8064
      need_lib_prefix=no
 
8065
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8066
      runpath_var=LD_RUN_PATH
 
8067
      ;;
 
8068
    siemens)
 
8069
      need_lib_prefix=no
 
8070
      ;;
 
8071
    motorola)
 
8072
      need_lib_prefix=no
 
8073
      need_version=no
 
8074
      shlibpath_overrides_runpath=no
 
8075
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8076
      ;;
 
8077
  esac
 
8078
  ;;
 
8079
 
 
8080
sysv4*MP*)
 
8081
  if test -d /usr/nec ;then
 
8082
    version_type=linux
 
8083
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8084
    soname_spec='$libname${shared_ext}.$major'
 
8085
    shlibpath_var=LD_LIBRARY_PATH
 
8086
  fi
 
8087
  ;;
 
8088
 
 
8089
uts4*)
 
8090
  version_type=linux
 
8091
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8092
  soname_spec='${libname}${release}${shared_ext}$major'
 
8093
  shlibpath_var=LD_LIBRARY_PATH
 
8094
  ;;
 
8095
 
 
8096
*)
 
8097
  dynamic_linker=no
 
8098
  ;;
 
8099
esac
 
8100
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8101
echo "${ECHO_T}$dynamic_linker" >&6
 
8102
test "$dynamic_linker" = no && can_build_shared=no
 
8103
 
 
8104
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8105
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8106
hardcode_action=
 
8107
if test -n "$hardcode_libdir_flag_spec" || \
 
8108
   test -n "$runpath_var " || \
 
8109
   test "X$hardcode_automatic"="Xyes" ; then
 
8110
 
 
8111
  # We can hardcode non-existant directories.
 
8112
  if test "$hardcode_direct" != no &&
 
8113
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8114
     # have to relink, otherwise we might link with an installed library
 
8115
     # when we should be linking with a yet-to-be-installed one
 
8116
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8117
     test "$hardcode_minus_L" != no; then
 
8118
    # Linking always hardcodes the temporary library directory.
 
8119
    hardcode_action=relink
 
8120
  else
 
8121
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8122
    hardcode_action=immediate
 
8123
  fi
 
8124
else
 
8125
  # We cannot hardcode anything, or else we can only hardcode existing
 
8126
  # directories.
 
8127
  hardcode_action=unsupported
 
8128
fi
 
8129
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8130
echo "${ECHO_T}$hardcode_action" >&6
 
8131
 
 
8132
if test "$hardcode_action" = relink; then
 
8133
  # Fast installation is not supported
 
8134
  enable_fast_install=no
 
8135
elif test "$shlibpath_overrides_runpath" = yes ||
 
8136
     test "$enable_shared" = no; then
 
8137
  # Fast installation is not necessary
 
8138
  enable_fast_install=needless
 
8139
fi
 
8140
 
 
8141
striplib=
 
8142
old_striplib=
 
8143
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8144
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8145
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8146
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8147
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8148
  echo "$as_me:$LINENO: result: yes" >&5
 
8149
echo "${ECHO_T}yes" >&6
 
8150
else
 
8151
# FIXME - insert some real tests, host_os isn't really good enough
 
8152
  case $host_os in
 
8153
   darwin*)
 
8154
       if test -n "$STRIP" ; then
 
8155
         striplib="$STRIP -x"
 
8156
         echo "$as_me:$LINENO: result: yes" >&5
 
8157
echo "${ECHO_T}yes" >&6
 
8158
       else
 
8159
  echo "$as_me:$LINENO: result: no" >&5
 
8160
echo "${ECHO_T}no" >&6
 
8161
fi
 
8162
       ;;
 
8163
   *)
 
8164
  echo "$as_me:$LINENO: result: no" >&5
 
8165
echo "${ECHO_T}no" >&6
 
8166
    ;;
 
8167
  esac
 
8168
fi
 
8169
 
 
8170
if test "x$enable_dlopen" != xyes; then
 
8171
  enable_dlopen=unknown
 
8172
  enable_dlopen_self=unknown
 
8173
  enable_dlopen_self_static=unknown
 
8174
else
 
8175
  lt_cv_dlopen=no
 
8176
  lt_cv_dlopen_libs=
 
8177
 
 
8178
  case $host_os in
 
8179
  beos*)
 
8180
    lt_cv_dlopen="load_add_on"
 
8181
    lt_cv_dlopen_libs=
 
8182
    lt_cv_dlopen_self=yes
 
8183
    ;;
 
8184
 
 
8185
  mingw* | pw32*)
 
8186
    lt_cv_dlopen="LoadLibrary"
 
8187
    lt_cv_dlopen_libs=
 
8188
   ;;
 
8189
 
 
8190
  cygwin*)
 
8191
    lt_cv_dlopen="dlopen"
 
8192
    lt_cv_dlopen_libs=
 
8193
   ;;
 
8194
 
 
8195
  darwin*)
 
8196
  # if libdl is installed we need to link against it
 
8197
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8198
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8199
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8201
else
 
8202
  ac_check_lib_save_LIBS=$LIBS
 
8203
LIBS="-ldl  $LIBS"
 
8204
cat >conftest.$ac_ext <<_ACEOF
 
8205
/* confdefs.h.  */
 
8206
_ACEOF
 
8207
cat confdefs.h >>conftest.$ac_ext
 
8208
cat >>conftest.$ac_ext <<_ACEOF
 
8209
/* end confdefs.h.  */
 
8210
 
 
8211
/* Override any gcc2 internal prototype to avoid an error.  */
 
8212
#ifdef __cplusplus
 
8213
extern "C"
 
8214
#endif
 
8215
/* We use char because int might match the return type of a gcc2
 
8216
   builtin and then its argument prototype would still apply.  */
 
8217
char dlopen ();
 
8218
int
 
8219
main ()
 
8220
{
 
8221
dlopen ();
 
8222
  ;
 
8223
  return 0;
 
8224
}
 
8225
_ACEOF
 
8226
rm -f conftest.$ac_objext conftest$ac_exeext
 
8227
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8228
  (eval $ac_link) 2>conftest.er1
 
8229
  ac_status=$?
 
8230
  grep -v '^ *+' conftest.er1 >conftest.err
 
8231
  rm -f conftest.er1
 
8232
  cat conftest.err >&5
 
8233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8234
  (exit $ac_status); } &&
 
8235
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8236
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8237
  (eval $ac_try) 2>&5
 
8238
  ac_status=$?
 
8239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8240
  (exit $ac_status); }; } &&
 
8241
         { ac_try='test -s conftest$ac_exeext'
 
8242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8243
  (eval $ac_try) 2>&5
 
8244
  ac_status=$?
 
8245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8246
  (exit $ac_status); }; }; then
 
8247
  ac_cv_lib_dl_dlopen=yes
 
8248
else
 
8249
  echo "$as_me: failed program was:" >&5
 
8250
sed 's/^/| /' conftest.$ac_ext >&5
 
8251
 
 
8252
ac_cv_lib_dl_dlopen=no
 
8253
fi
 
8254
rm -f conftest.err conftest.$ac_objext \
 
8255
      conftest$ac_exeext conftest.$ac_ext
 
8256
LIBS=$ac_check_lib_save_LIBS
 
8257
fi
 
8258
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8259
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8260
if test $ac_cv_lib_dl_dlopen = yes; then
 
8261
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8262
else
 
8263
 
 
8264
    lt_cv_dlopen="dyld"
 
8265
    lt_cv_dlopen_libs=
 
8266
    lt_cv_dlopen_self=yes
 
8267
 
 
8268
fi
 
8269
 
 
8270
   ;;
 
8271
 
 
8272
  *)
 
8273
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8274
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8275
if test "${ac_cv_func_shl_load+set}" = set; then
 
8276
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8277
else
 
8278
  cat >conftest.$ac_ext <<_ACEOF
 
8279
/* confdefs.h.  */
 
8280
_ACEOF
 
8281
cat confdefs.h >>conftest.$ac_ext
 
8282
cat >>conftest.$ac_ext <<_ACEOF
 
8283
/* end confdefs.h.  */
 
8284
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8285
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8286
#define shl_load innocuous_shl_load
 
8287
 
 
8288
/* System header to define __stub macros and hopefully few prototypes,
 
8289
    which can conflict with char shl_load (); below.
 
8290
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8291
    <limits.h> exists even on freestanding compilers.  */
 
8292
 
 
8293
#ifdef __STDC__
 
8294
# include <limits.h>
 
8295
#else
 
8296
# include <assert.h>
 
8297
#endif
 
8298
 
 
8299
#undef shl_load
 
8300
 
 
8301
/* Override any gcc2 internal prototype to avoid an error.  */
 
8302
#ifdef __cplusplus
 
8303
extern "C"
 
8304
{
 
8305
#endif
 
8306
/* We use char because int might match the return type of a gcc2
 
8307
   builtin and then its argument prototype would still apply.  */
 
8308
char shl_load ();
 
8309
/* The GNU C library defines this for functions which it implements
 
8310
    to always fail with ENOSYS.  Some functions are actually named
 
8311
    something starting with __ and the normal name is an alias.  */
 
8312
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8313
choke me
 
8314
#else
 
8315
char (*f) () = shl_load;
 
8316
#endif
 
8317
#ifdef __cplusplus
 
8318
}
 
8319
#endif
 
8320
 
 
8321
int
 
8322
main ()
 
8323
{
 
8324
return f != shl_load;
 
8325
  ;
 
8326
  return 0;
 
8327
}
 
8328
_ACEOF
 
8329
rm -f conftest.$ac_objext conftest$ac_exeext
 
8330
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8331
  (eval $ac_link) 2>conftest.er1
 
8332
  ac_status=$?
 
8333
  grep -v '^ *+' conftest.er1 >conftest.err
 
8334
  rm -f conftest.er1
 
8335
  cat conftest.err >&5
 
8336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8337
  (exit $ac_status); } &&
 
8338
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8340
  (eval $ac_try) 2>&5
 
8341
  ac_status=$?
 
8342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8343
  (exit $ac_status); }; } &&
 
8344
         { ac_try='test -s conftest$ac_exeext'
 
8345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8346
  (eval $ac_try) 2>&5
 
8347
  ac_status=$?
 
8348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8349
  (exit $ac_status); }; }; then
 
8350
  ac_cv_func_shl_load=yes
 
8351
else
 
8352
  echo "$as_me: failed program was:" >&5
 
8353
sed 's/^/| /' conftest.$ac_ext >&5
 
8354
 
 
8355
ac_cv_func_shl_load=no
 
8356
fi
 
8357
rm -f conftest.err conftest.$ac_objext \
 
8358
      conftest$ac_exeext conftest.$ac_ext
 
8359
fi
 
8360
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8361
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8362
if test $ac_cv_func_shl_load = yes; then
 
8363
  lt_cv_dlopen="shl_load"
 
8364
else
 
8365
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8366
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8367
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8369
else
 
8370
  ac_check_lib_save_LIBS=$LIBS
 
8371
LIBS="-ldld  $LIBS"
 
8372
cat >conftest.$ac_ext <<_ACEOF
 
8373
/* confdefs.h.  */
 
8374
_ACEOF
 
8375
cat confdefs.h >>conftest.$ac_ext
 
8376
cat >>conftest.$ac_ext <<_ACEOF
 
8377
/* end confdefs.h.  */
 
8378
 
 
8379
/* Override any gcc2 internal prototype to avoid an error.  */
 
8380
#ifdef __cplusplus
 
8381
extern "C"
 
8382
#endif
 
8383
/* We use char because int might match the return type of a gcc2
 
8384
   builtin and then its argument prototype would still apply.  */
 
8385
char shl_load ();
 
8386
int
 
8387
main ()
 
8388
{
 
8389
shl_load ();
 
8390
  ;
 
8391
  return 0;
 
8392
}
 
8393
_ACEOF
 
8394
rm -f conftest.$ac_objext conftest$ac_exeext
 
8395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8396
  (eval $ac_link) 2>conftest.er1
 
8397
  ac_status=$?
 
8398
  grep -v '^ *+' conftest.er1 >conftest.err
 
8399
  rm -f conftest.er1
 
8400
  cat conftest.err >&5
 
8401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8402
  (exit $ac_status); } &&
 
8403
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8405
  (eval $ac_try) 2>&5
 
8406
  ac_status=$?
 
8407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8408
  (exit $ac_status); }; } &&
 
8409
         { ac_try='test -s conftest$ac_exeext'
 
8410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8411
  (eval $ac_try) 2>&5
 
8412
  ac_status=$?
 
8413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8414
  (exit $ac_status); }; }; then
 
8415
  ac_cv_lib_dld_shl_load=yes
 
8416
else
 
8417
  echo "$as_me: failed program was:" >&5
 
8418
sed 's/^/| /' conftest.$ac_ext >&5
 
8419
 
 
8420
ac_cv_lib_dld_shl_load=no
 
8421
fi
 
8422
rm -f conftest.err conftest.$ac_objext \
 
8423
      conftest$ac_exeext conftest.$ac_ext
 
8424
LIBS=$ac_check_lib_save_LIBS
 
8425
fi
 
8426
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8427
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8428
if test $ac_cv_lib_dld_shl_load = yes; then
 
8429
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8430
else
 
8431
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8432
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8433
if test "${ac_cv_func_dlopen+set}" = set; then
 
8434
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8435
else
 
8436
  cat >conftest.$ac_ext <<_ACEOF
 
8437
/* confdefs.h.  */
 
8438
_ACEOF
 
8439
cat confdefs.h >>conftest.$ac_ext
 
8440
cat >>conftest.$ac_ext <<_ACEOF
 
8441
/* end confdefs.h.  */
 
8442
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8443
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8444
#define dlopen innocuous_dlopen
 
8445
 
 
8446
/* System header to define __stub macros and hopefully few prototypes,
 
8447
    which can conflict with char dlopen (); below.
 
8448
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8449
    <limits.h> exists even on freestanding compilers.  */
 
8450
 
 
8451
#ifdef __STDC__
 
8452
# include <limits.h>
 
8453
#else
 
8454
# include <assert.h>
 
8455
#endif
 
8456
 
 
8457
#undef dlopen
 
8458
 
 
8459
/* Override any gcc2 internal prototype to avoid an error.  */
 
8460
#ifdef __cplusplus
 
8461
extern "C"
 
8462
{
 
8463
#endif
 
8464
/* We use char because int might match the return type of a gcc2
 
8465
   builtin and then its argument prototype would still apply.  */
 
8466
char dlopen ();
 
8467
/* The GNU C library defines this for functions which it implements
 
8468
    to always fail with ENOSYS.  Some functions are actually named
 
8469
    something starting with __ and the normal name is an alias.  */
 
8470
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8471
choke me
 
8472
#else
 
8473
char (*f) () = dlopen;
 
8474
#endif
 
8475
#ifdef __cplusplus
 
8476
}
 
8477
#endif
 
8478
 
 
8479
int
 
8480
main ()
 
8481
{
 
8482
return f != dlopen;
 
8483
  ;
 
8484
  return 0;
 
8485
}
 
8486
_ACEOF
 
8487
rm -f conftest.$ac_objext conftest$ac_exeext
 
8488
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8489
  (eval $ac_link) 2>conftest.er1
 
8490
  ac_status=$?
 
8491
  grep -v '^ *+' conftest.er1 >conftest.err
 
8492
  rm -f conftest.er1
 
8493
  cat conftest.err >&5
 
8494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8495
  (exit $ac_status); } &&
 
8496
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8498
  (eval $ac_try) 2>&5
 
8499
  ac_status=$?
 
8500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8501
  (exit $ac_status); }; } &&
 
8502
         { ac_try='test -s conftest$ac_exeext'
 
8503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8504
  (eval $ac_try) 2>&5
 
8505
  ac_status=$?
 
8506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8507
  (exit $ac_status); }; }; then
 
8508
  ac_cv_func_dlopen=yes
 
8509
else
 
8510
  echo "$as_me: failed program was:" >&5
 
8511
sed 's/^/| /' conftest.$ac_ext >&5
 
8512
 
 
8513
ac_cv_func_dlopen=no
 
8514
fi
 
8515
rm -f conftest.err conftest.$ac_objext \
 
8516
      conftest$ac_exeext conftest.$ac_ext
 
8517
fi
 
8518
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8519
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8520
if test $ac_cv_func_dlopen = yes; then
 
8521
  lt_cv_dlopen="dlopen"
 
8522
else
 
8523
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8524
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8525
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8527
else
 
8528
  ac_check_lib_save_LIBS=$LIBS
 
8529
LIBS="-ldl  $LIBS"
 
8530
cat >conftest.$ac_ext <<_ACEOF
 
8531
/* confdefs.h.  */
 
8532
_ACEOF
 
8533
cat confdefs.h >>conftest.$ac_ext
 
8534
cat >>conftest.$ac_ext <<_ACEOF
 
8535
/* end confdefs.h.  */
 
8536
 
 
8537
/* Override any gcc2 internal prototype to avoid an error.  */
 
8538
#ifdef __cplusplus
 
8539
extern "C"
 
8540
#endif
 
8541
/* We use char because int might match the return type of a gcc2
 
8542
   builtin and then its argument prototype would still apply.  */
 
8543
char dlopen ();
 
8544
int
 
8545
main ()
 
8546
{
 
8547
dlopen ();
 
8548
  ;
 
8549
  return 0;
 
8550
}
 
8551
_ACEOF
 
8552
rm -f conftest.$ac_objext conftest$ac_exeext
 
8553
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8554
  (eval $ac_link) 2>conftest.er1
 
8555
  ac_status=$?
 
8556
  grep -v '^ *+' conftest.er1 >conftest.err
 
8557
  rm -f conftest.er1
 
8558
  cat conftest.err >&5
 
8559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8560
  (exit $ac_status); } &&
 
8561
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8563
  (eval $ac_try) 2>&5
 
8564
  ac_status=$?
 
8565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8566
  (exit $ac_status); }; } &&
 
8567
         { ac_try='test -s conftest$ac_exeext'
 
8568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8569
  (eval $ac_try) 2>&5
 
8570
  ac_status=$?
 
8571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8572
  (exit $ac_status); }; }; then
 
8573
  ac_cv_lib_dl_dlopen=yes
 
8574
else
 
8575
  echo "$as_me: failed program was:" >&5
 
8576
sed 's/^/| /' conftest.$ac_ext >&5
 
8577
 
 
8578
ac_cv_lib_dl_dlopen=no
 
8579
fi
 
8580
rm -f conftest.err conftest.$ac_objext \
 
8581
      conftest$ac_exeext conftest.$ac_ext
 
8582
LIBS=$ac_check_lib_save_LIBS
 
8583
fi
 
8584
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8585
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8586
if test $ac_cv_lib_dl_dlopen = yes; then
 
8587
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8588
else
 
8589
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8590
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8591
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8592
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8593
else
 
8594
  ac_check_lib_save_LIBS=$LIBS
 
8595
LIBS="-lsvld  $LIBS"
 
8596
cat >conftest.$ac_ext <<_ACEOF
 
8597
/* confdefs.h.  */
 
8598
_ACEOF
 
8599
cat confdefs.h >>conftest.$ac_ext
 
8600
cat >>conftest.$ac_ext <<_ACEOF
 
8601
/* end confdefs.h.  */
 
8602
 
 
8603
/* Override any gcc2 internal prototype to avoid an error.  */
 
8604
#ifdef __cplusplus
 
8605
extern "C"
 
8606
#endif
 
8607
/* We use char because int might match the return type of a gcc2
 
8608
   builtin and then its argument prototype would still apply.  */
 
8609
char dlopen ();
 
8610
int
 
8611
main ()
 
8612
{
 
8613
dlopen ();
 
8614
  ;
 
8615
  return 0;
 
8616
}
 
8617
_ACEOF
 
8618
rm -f conftest.$ac_objext conftest$ac_exeext
 
8619
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8620
  (eval $ac_link) 2>conftest.er1
 
8621
  ac_status=$?
 
8622
  grep -v '^ *+' conftest.er1 >conftest.err
 
8623
  rm -f conftest.er1
 
8624
  cat conftest.err >&5
 
8625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8626
  (exit $ac_status); } &&
 
8627
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8629
  (eval $ac_try) 2>&5
 
8630
  ac_status=$?
 
8631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8632
  (exit $ac_status); }; } &&
 
8633
         { ac_try='test -s conftest$ac_exeext'
 
8634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8635
  (eval $ac_try) 2>&5
 
8636
  ac_status=$?
 
8637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8638
  (exit $ac_status); }; }; then
 
8639
  ac_cv_lib_svld_dlopen=yes
 
8640
else
 
8641
  echo "$as_me: failed program was:" >&5
 
8642
sed 's/^/| /' conftest.$ac_ext >&5
 
8643
 
 
8644
ac_cv_lib_svld_dlopen=no
 
8645
fi
 
8646
rm -f conftest.err conftest.$ac_objext \
 
8647
      conftest$ac_exeext conftest.$ac_ext
 
8648
LIBS=$ac_check_lib_save_LIBS
 
8649
fi
 
8650
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8651
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8652
if test $ac_cv_lib_svld_dlopen = yes; then
 
8653
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8654
else
 
8655
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8656
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8657
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8659
else
 
8660
  ac_check_lib_save_LIBS=$LIBS
 
8661
LIBS="-ldld  $LIBS"
 
8662
cat >conftest.$ac_ext <<_ACEOF
 
8663
/* confdefs.h.  */
 
8664
_ACEOF
 
8665
cat confdefs.h >>conftest.$ac_ext
 
8666
cat >>conftest.$ac_ext <<_ACEOF
 
8667
/* end confdefs.h.  */
 
8668
 
 
8669
/* Override any gcc2 internal prototype to avoid an error.  */
 
8670
#ifdef __cplusplus
 
8671
extern "C"
 
8672
#endif
 
8673
/* We use char because int might match the return type of a gcc2
 
8674
   builtin and then its argument prototype would still apply.  */
 
8675
char dld_link ();
 
8676
int
 
8677
main ()
 
8678
{
 
8679
dld_link ();
 
8680
  ;
 
8681
  return 0;
 
8682
}
 
8683
_ACEOF
 
8684
rm -f conftest.$ac_objext conftest$ac_exeext
 
8685
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8686
  (eval $ac_link) 2>conftest.er1
 
8687
  ac_status=$?
 
8688
  grep -v '^ *+' conftest.er1 >conftest.err
 
8689
  rm -f conftest.er1
 
8690
  cat conftest.err >&5
 
8691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8692
  (exit $ac_status); } &&
 
8693
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8695
  (eval $ac_try) 2>&5
 
8696
  ac_status=$?
 
8697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8698
  (exit $ac_status); }; } &&
 
8699
         { ac_try='test -s conftest$ac_exeext'
 
8700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8701
  (eval $ac_try) 2>&5
 
8702
  ac_status=$?
 
8703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8704
  (exit $ac_status); }; }; then
 
8705
  ac_cv_lib_dld_dld_link=yes
 
8706
else
 
8707
  echo "$as_me: failed program was:" >&5
 
8708
sed 's/^/| /' conftest.$ac_ext >&5
 
8709
 
 
8710
ac_cv_lib_dld_dld_link=no
 
8711
fi
 
8712
rm -f conftest.err conftest.$ac_objext \
 
8713
      conftest$ac_exeext conftest.$ac_ext
 
8714
LIBS=$ac_check_lib_save_LIBS
 
8715
fi
 
8716
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8717
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8718
if test $ac_cv_lib_dld_dld_link = yes; then
 
8719
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8720
fi
 
8721
 
 
8722
 
 
8723
fi
 
8724
 
 
8725
 
 
8726
fi
 
8727
 
 
8728
 
 
8729
fi
 
8730
 
 
8731
 
 
8732
fi
 
8733
 
 
8734
 
 
8735
fi
 
8736
 
 
8737
    ;;
 
8738
  esac
 
8739
 
 
8740
  if test "x$lt_cv_dlopen" != xno; then
 
8741
    enable_dlopen=yes
 
8742
  else
 
8743
    enable_dlopen=no
 
8744
  fi
 
8745
 
 
8746
  case $lt_cv_dlopen in
 
8747
  dlopen)
 
8748
    save_CPPFLAGS="$CPPFLAGS"
 
8749
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8750
 
 
8751
    save_LDFLAGS="$LDFLAGS"
 
8752
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8753
 
 
8754
    save_LIBS="$LIBS"
 
8755
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8756
 
 
8757
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8758
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8759
if test "${lt_cv_dlopen_self+set}" = set; then
 
8760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8761
else
 
8762
          if test "$cross_compiling" = yes; then :
 
8763
  lt_cv_dlopen_self=cross
 
8764
else
 
8765
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8766
  lt_status=$lt_dlunknown
 
8767
  cat > conftest.$ac_ext <<EOF
 
8768
#line 8768 "configure"
 
8769
#include "confdefs.h"
 
8770
 
 
8771
#if HAVE_DLFCN_H
 
8772
#include <dlfcn.h>
 
8773
#endif
 
8774
 
 
8775
#include <stdio.h>
 
8776
 
 
8777
#ifdef RTLD_GLOBAL
 
8778
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8779
#else
 
8780
#  ifdef DL_GLOBAL
 
8781
#    define LT_DLGLOBAL         DL_GLOBAL
 
8782
#  else
 
8783
#    define LT_DLGLOBAL         0
 
8784
#  endif
 
8785
#endif
 
8786
 
 
8787
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8788
   find out it does not work in some platform. */
 
8789
#ifndef LT_DLLAZY_OR_NOW
 
8790
#  ifdef RTLD_LAZY
 
8791
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8792
#  else
 
8793
#    ifdef DL_LAZY
 
8794
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8795
#    else
 
8796
#      ifdef RTLD_NOW
 
8797
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8798
#      else
 
8799
#        ifdef DL_NOW
 
8800
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8801
#        else
 
8802
#          define LT_DLLAZY_OR_NOW      0
 
8803
#        endif
 
8804
#      endif
 
8805
#    endif
 
8806
#  endif
 
8807
#endif
 
8808
 
 
8809
#ifdef __cplusplus
 
8810
extern "C" void exit (int);
 
8811
#endif
 
8812
 
 
8813
void fnord() { int i=42;}
 
8814
int main ()
 
8815
{
 
8816
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8817
  int status = $lt_dlunknown;
 
8818
 
 
8819
  if (self)
 
8820
    {
 
8821
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8822
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8823
      /* dlclose (self); */
 
8824
    }
 
8825
 
 
8826
    exit (status);
 
8827
}
 
8828
EOF
 
8829
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8830
  (eval $ac_link) 2>&5
 
8831
  ac_status=$?
 
8832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8833
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8834
    (./conftest; exit; ) 2>/dev/null
 
8835
    lt_status=$?
 
8836
    case x$lt_status in
 
8837
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8838
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8839
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8840
    esac
 
8841
  else :
 
8842
    # compilation failed
 
8843
    lt_cv_dlopen_self=no
 
8844
  fi
 
8845
fi
 
8846
rm -fr conftest*
 
8847
 
 
8848
 
 
8849
fi
 
8850
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8851
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8852
 
 
8853
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8854
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8855
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8856
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8857
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8859
else
 
8860
          if test "$cross_compiling" = yes; then :
 
8861
  lt_cv_dlopen_self_static=cross
 
8862
else
 
8863
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8864
  lt_status=$lt_dlunknown
 
8865
  cat > conftest.$ac_ext <<EOF
 
8866
#line 8866 "configure"
 
8867
#include "confdefs.h"
 
8868
 
 
8869
#if HAVE_DLFCN_H
 
8870
#include <dlfcn.h>
 
8871
#endif
 
8872
 
 
8873
#include <stdio.h>
 
8874
 
 
8875
#ifdef RTLD_GLOBAL
 
8876
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8877
#else
 
8878
#  ifdef DL_GLOBAL
 
8879
#    define LT_DLGLOBAL         DL_GLOBAL
 
8880
#  else
 
8881
#    define LT_DLGLOBAL         0
 
8882
#  endif
 
8883
#endif
 
8884
 
 
8885
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8886
   find out it does not work in some platform. */
 
8887
#ifndef LT_DLLAZY_OR_NOW
 
8888
#  ifdef RTLD_LAZY
 
8889
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8890
#  else
 
8891
#    ifdef DL_LAZY
 
8892
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8893
#    else
 
8894
#      ifdef RTLD_NOW
 
8895
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8896
#      else
 
8897
#        ifdef DL_NOW
 
8898
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8899
#        else
 
8900
#          define LT_DLLAZY_OR_NOW      0
 
8901
#        endif
 
8902
#      endif
 
8903
#    endif
 
8904
#  endif
 
8905
#endif
 
8906
 
 
8907
#ifdef __cplusplus
 
8908
extern "C" void exit (int);
 
8909
#endif
 
8910
 
 
8911
void fnord() { int i=42;}
 
8912
int main ()
 
8913
{
 
8914
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8915
  int status = $lt_dlunknown;
 
8916
 
 
8917
  if (self)
 
8918
    {
 
8919
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8920
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8921
      /* dlclose (self); */
 
8922
    }
 
8923
 
 
8924
    exit (status);
 
8925
}
 
8926
EOF
 
8927
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8928
  (eval $ac_link) 2>&5
 
8929
  ac_status=$?
 
8930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8931
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8932
    (./conftest; exit; ) 2>/dev/null
 
8933
    lt_status=$?
 
8934
    case x$lt_status in
 
8935
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8936
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8937
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8938
    esac
 
8939
  else :
 
8940
    # compilation failed
 
8941
    lt_cv_dlopen_self_static=no
 
8942
  fi
 
8943
fi
 
8944
rm -fr conftest*
 
8945
 
 
8946
 
 
8947
fi
 
8948
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8949
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8950
    fi
 
8951
 
 
8952
    CPPFLAGS="$save_CPPFLAGS"
 
8953
    LDFLAGS="$save_LDFLAGS"
 
8954
    LIBS="$save_LIBS"
 
8955
    ;;
 
8956
  esac
 
8957
 
 
8958
  case $lt_cv_dlopen_self in
 
8959
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8960
  *) enable_dlopen_self=unknown ;;
 
8961
  esac
 
8962
 
 
8963
  case $lt_cv_dlopen_self_static in
 
8964
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8965
  *) enable_dlopen_self_static=unknown ;;
 
8966
  esac
 
8967
fi
 
8968
 
 
8969
 
 
8970
# Report which librarie types wil actually be built
 
8971
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8972
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8973
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8974
echo "${ECHO_T}$can_build_shared" >&6
 
8975
 
 
8976
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8977
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
8978
test "$can_build_shared" = "no" && enable_shared=no
 
8979
 
 
8980
# On AIX, shared libraries and static libraries use the same namespace, and
 
8981
# are all built from PIC.
 
8982
case "$host_os" in
 
8983
aix3*)
 
8984
  test "$enable_shared" = yes && enable_static=no
 
8985
  if test -n "$RANLIB"; then
 
8986
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8987
    postinstall_cmds='$RANLIB $lib'
 
8988
  fi
 
8989
  ;;
 
8990
 
 
8991
aix4* | aix5*)
 
8992
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8993
    test "$enable_shared" = yes && enable_static=no
 
8994
  fi
 
8995
  ;;
 
8996
  darwin* | rhapsody*)
 
8997
  if test "$GCC" = yes; then
 
8998
    archive_cmds_need_lc=no
 
8999
    case "$host_os" in
 
9000
    rhapsody* | darwin1.[012])
 
9001
      allow_undefined_flag='-undefined suppress'
 
9002
      ;;
 
9003
    *) # Darwin 1.3 on
 
9004
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9005
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9006
      else
 
9007
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9008
          10.[012])
 
9009
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9010
            ;;
 
9011
          10.*)
 
9012
            allow_undefined_flag='-undefined dynamic_lookup'
 
9013
            ;;
 
9014
        esac
 
9015
      fi
 
9016
      ;;
 
9017
    esac
 
9018
    output_verbose_link_cmd='echo'
 
9019
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
9020
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9021
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9022
    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}'
 
9023
    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}'
 
9024
    hardcode_direct=no
 
9025
    hardcode_automatic=yes
 
9026
    hardcode_shlibpath_var=unsupported
 
9027
    whole_archive_flag_spec='-all_load $convenience'
 
9028
    link_all_deplibs=yes
 
9029
  else
 
9030
    ld_shlibs=no
 
9031
  fi
 
9032
    ;;
 
9033
esac
 
9034
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9035
echo "${ECHO_T}$enable_shared" >&6
 
9036
 
 
9037
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9038
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9039
# Make sure either enable_shared or enable_static is yes.
 
9040
test "$enable_shared" = yes || enable_static=yes
 
9041
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9042
echo "${ECHO_T}$enable_static" >&6
 
9043
 
 
9044
# The else clause should only fire when bootstrapping the
 
9045
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9046
# with your package, and you will get complaints that there are
 
9047
# no rules to generate ltmain.sh.
 
9048
if test -f "$ltmain"; then
 
9049
  # See if we are running on zsh, and set the options which allow our commands through
 
9050
  # without removal of \ escapes.
 
9051
  if test -n "${ZSH_VERSION+set}" ; then
 
9052
    setopt NO_GLOB_SUBST
 
9053
  fi
 
9054
  # Now quote all the things that may contain metacharacters while being
 
9055
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9056
  # variables and quote the copies for generation of the libtool script.
 
9057
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9058
    SED SHELL STRIP \
 
9059
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9060
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9061
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9062
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9063
    lt_cv_sys_global_symbol_to_c_name_address \
 
9064
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9065
    old_postinstall_cmds old_postuninstall_cmds \
 
9066
    compiler \
 
9067
    CC \
 
9068
    LD \
 
9069
    lt_prog_compiler_wl \
 
9070
    lt_prog_compiler_pic \
 
9071
    lt_prog_compiler_static \
 
9072
    lt_prog_compiler_no_builtin_flag \
 
9073
    export_dynamic_flag_spec \
 
9074
    thread_safe_flag_spec \
 
9075
    whole_archive_flag_spec \
 
9076
    enable_shared_with_static_runtimes \
 
9077
    old_archive_cmds \
 
9078
    old_archive_from_new_cmds \
 
9079
    predep_objects \
 
9080
    postdep_objects \
 
9081
    predeps \
 
9082
    postdeps \
 
9083
    compiler_lib_search_path \
 
9084
    archive_cmds \
 
9085
    archive_expsym_cmds \
 
9086
    postinstall_cmds \
 
9087
    postuninstall_cmds \
 
9088
    old_archive_from_expsyms_cmds \
 
9089
    allow_undefined_flag \
 
9090
    no_undefined_flag \
 
9091
    export_symbols_cmds \
 
9092
    hardcode_libdir_flag_spec \
 
9093
    hardcode_libdir_flag_spec_ld \
 
9094
    hardcode_libdir_separator \
 
9095
    hardcode_automatic \
 
9096
    module_cmds \
 
9097
    module_expsym_cmds \
 
9098
    lt_cv_prog_compiler_c_o \
 
9099
    exclude_expsyms \
 
9100
    include_expsyms; do
 
9101
 
 
9102
    case $var in
 
9103
    old_archive_cmds | \
 
9104
    old_archive_from_new_cmds | \
 
9105
    archive_cmds | \
 
9106
    archive_expsym_cmds | \
 
9107
    module_cmds | \
 
9108
    module_expsym_cmds | \
 
9109
    old_archive_from_expsyms_cmds | \
 
9110
    export_symbols_cmds | \
 
9111
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9112
    postinstall_cmds | postuninstall_cmds | \
 
9113
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9114
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9115
      # Double-quote double-evaled strings.
 
9116
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9117
      ;;
 
9118
    *)
 
9119
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9120
      ;;
 
9121
    esac
 
9122
  done
 
9123
 
 
9124
  case $lt_echo in
 
9125
  *'\$0 --fallback-echo"')
 
9126
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9127
    ;;
 
9128
  esac
 
9129
 
 
9130
cfgfile="${ofile}T"
 
9131
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9132
  $rm -f "$cfgfile"
 
9133
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9134
echo "$as_me: creating $ofile" >&6;}
 
9135
 
 
9136
  cat <<__EOF__ >> "$cfgfile"
 
9137
#! $SHELL
 
9138
 
 
9139
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9140
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9141
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9142
#
 
9143
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9144
# Free Software Foundation, Inc.
 
9145
#
 
9146
# This file is part of GNU Libtool:
 
9147
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9148
#
 
9149
# This program is free software; you can redistribute it and/or modify
 
9150
# it under the terms of the GNU General Public License as published by
 
9151
# the Free Software Foundation; either version 2 of the License, or
 
9152
# (at your option) any later version.
 
9153
#
 
9154
# This program is distributed in the hope that it will be useful, but
 
9155
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9156
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9157
# General Public License for more details.
 
9158
#
 
9159
# You should have received a copy of the GNU General Public License
 
9160
# along with this program; if not, write to the Free Software
 
9161
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9162
#
 
9163
# As a special exception to the GNU General Public License, if you
 
9164
# distribute this file as part of a program that contains a
 
9165
# configuration script generated by Autoconf, you may include it under
 
9166
# the same distribution terms that you use for the rest of that program.
 
9167
 
 
9168
# A sed program that does not truncate output.
 
9169
SED=$lt_SED
 
9170
 
 
9171
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9172
Xsed="$SED -e s/^X//"
 
9173
 
 
9174
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9175
# if CDPATH is set.
 
9176
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9177
 
 
9178
# The names of the tagged configurations supported by this script.
 
9179
available_tags=
 
9180
 
 
9181
# ### BEGIN LIBTOOL CONFIG
 
9182
 
 
9183
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9184
 
 
9185
# Shell to use when invoking shell scripts.
 
9186
SHELL=$lt_SHELL
 
9187
 
 
9188
# Whether or not to build shared libraries.
 
9189
build_libtool_libs=$enable_shared
 
9190
 
 
9191
# Whether or not to build static libraries.
 
9192
build_old_libs=$enable_static
 
9193
 
 
9194
# Whether or not to add -lc for building shared libraries.
 
9195
build_libtool_need_lc=$archive_cmds_need_lc
 
9196
 
 
9197
# Whether or not to disallow shared libs when runtime libs are static
 
9198
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9199
 
 
9200
# Whether or not to optimize for fast installation.
 
9201
fast_install=$enable_fast_install
 
9202
 
 
9203
# The host system.
 
9204
host_alias=$host_alias
 
9205
host=$host
 
9206
 
 
9207
# An echo program that does not interpret backslashes.
 
9208
echo=$lt_echo
 
9209
 
 
9210
# The archiver.
 
9211
AR=$lt_AR
 
9212
AR_FLAGS=$lt_AR_FLAGS
 
9213
 
 
9214
# A C compiler.
 
9215
LTCC=$lt_LTCC
 
9216
 
 
9217
# A language-specific compiler.
 
9218
CC=$lt_compiler
 
9219
 
 
9220
# Is the compiler the GNU C compiler?
 
9221
with_gcc=$GCC
 
9222
 
 
9223
# An ERE matcher.
 
9224
EGREP=$lt_EGREP
 
9225
 
 
9226
# The linker used to build libraries.
 
9227
LD=$lt_LD
 
9228
 
 
9229
# Whether we need hard or soft links.
 
9230
LN_S=$lt_LN_S
 
9231
 
 
9232
# A BSD-compatible nm program.
 
9233
NM=$lt_NM
 
9234
 
 
9235
# A symbol stripping program
 
9236
STRIP=$lt_STRIP
 
9237
 
 
9238
# Used to examine libraries when file_magic_cmd begins "file"
 
9239
MAGIC_CMD=$MAGIC_CMD
 
9240
 
 
9241
# Used on cygwin: DLL creation program.
 
9242
DLLTOOL="$DLLTOOL"
 
9243
 
 
9244
# Used on cygwin: object dumper.
 
9245
OBJDUMP="$OBJDUMP"
 
9246
 
 
9247
# Used on cygwin: assembler.
 
9248
AS="$AS"
 
9249
 
 
9250
# The name of the directory that contains temporary libtool files.
 
9251
objdir=$objdir
 
9252
 
 
9253
# How to create reloadable object files.
 
9254
reload_flag=$lt_reload_flag
 
9255
reload_cmds=$lt_reload_cmds
 
9256
 
 
9257
# How to pass a linker flag through the compiler.
 
9258
wl=$lt_lt_prog_compiler_wl
 
9259
 
 
9260
# Object file suffix (normally "o").
 
9261
objext="$ac_objext"
 
9262
 
 
9263
# Old archive suffix (normally "a").
 
9264
libext="$libext"
 
9265
 
 
9266
# Shared library suffix (normally ".so").
 
9267
shrext_cmds='$shrext_cmds'
 
9268
 
 
9269
# Executable file suffix (normally "").
 
9270
exeext="$exeext"
 
9271
 
 
9272
# Additional compiler flags for building library objects.
 
9273
pic_flag=$lt_lt_prog_compiler_pic
 
9274
pic_mode=$pic_mode
 
9275
 
 
9276
# What is the maximum length of a command?
 
9277
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9278
 
 
9279
# Does compiler simultaneously support -c and -o options?
 
9280
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9281
 
 
9282
# Must we lock files when doing compilation ?
 
9283
need_locks=$lt_need_locks
 
9284
 
 
9285
# Do we need the lib prefix for modules?
 
9286
need_lib_prefix=$need_lib_prefix
 
9287
 
 
9288
# Do we need a version for libraries?
 
9289
need_version=$need_version
 
9290
 
 
9291
# Whether dlopen is supported.
 
9292
dlopen_support=$enable_dlopen
 
9293
 
 
9294
# Whether dlopen of programs is supported.
 
9295
dlopen_self=$enable_dlopen_self
 
9296
 
 
9297
# Whether dlopen of statically linked programs is supported.
 
9298
dlopen_self_static=$enable_dlopen_self_static
 
9299
 
 
9300
# Compiler flag to prevent dynamic linking.
 
9301
link_static_flag=$lt_lt_prog_compiler_static
 
9302
 
 
9303
# Compiler flag to turn off builtin functions.
 
9304
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9305
 
 
9306
# Compiler flag to allow reflexive dlopens.
 
9307
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9308
 
 
9309
# Compiler flag to generate shared objects directly from archives.
 
9310
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9311
 
 
9312
# Compiler flag to generate thread-safe objects.
 
9313
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9314
 
 
9315
# Library versioning type.
 
9316
version_type=$version_type
 
9317
 
 
9318
# Format of library name prefix.
 
9319
libname_spec=$lt_libname_spec
 
9320
 
 
9321
# List of archive names.  First name is the real one, the rest are links.
 
9322
# The last name is the one that the linker finds with -lNAME.
 
9323
library_names_spec=$lt_library_names_spec
 
9324
 
 
9325
# The coded name of the library, if different from the real name.
 
9326
soname_spec=$lt_soname_spec
 
9327
 
 
9328
# Commands used to build and install an old-style archive.
 
9329
RANLIB=$lt_RANLIB
 
9330
old_archive_cmds=$lt_old_archive_cmds
 
9331
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9332
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9333
 
 
9334
# Create an old-style archive from a shared archive.
 
9335
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9336
 
 
9337
# Create a temporary old-style archive to link instead of a shared archive.
 
9338
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9339
 
 
9340
# Commands used to build and install a shared archive.
 
9341
archive_cmds=$lt_archive_cmds
 
9342
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9343
postinstall_cmds=$lt_postinstall_cmds
 
9344
postuninstall_cmds=$lt_postuninstall_cmds
 
9345
 
 
9346
# Commands used to build a loadable module (assumed same as above if empty)
 
9347
module_cmds=$lt_module_cmds
 
9348
module_expsym_cmds=$lt_module_expsym_cmds
 
9349
 
 
9350
# Commands to strip libraries.
 
9351
old_striplib=$lt_old_striplib
 
9352
striplib=$lt_striplib
 
9353
 
 
9354
# Dependencies to place before the objects being linked to create a
 
9355
# shared library.
 
9356
predep_objects=$lt_predep_objects
 
9357
 
 
9358
# Dependencies to place after the objects being linked to create a
 
9359
# shared library.
 
9360
postdep_objects=$lt_postdep_objects
 
9361
 
 
9362
# Dependencies to place before the objects being linked to create a
 
9363
# shared library.
 
9364
predeps=$lt_predeps
 
9365
 
 
9366
# Dependencies to place after the objects being linked to create a
 
9367
# shared library.
 
9368
postdeps=$lt_postdeps
 
9369
 
 
9370
# The library search path used internally by the compiler when linking
 
9371
# a shared library.
 
9372
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9373
 
 
9374
# Method to check whether dependent libraries are shared objects.
 
9375
deplibs_check_method=$lt_deplibs_check_method
 
9376
 
 
9377
# Command to use when deplibs_check_method == file_magic.
 
9378
file_magic_cmd=$lt_file_magic_cmd
 
9379
 
 
9380
# Flag that allows shared libraries with undefined symbols to be built.
 
9381
allow_undefined_flag=$lt_allow_undefined_flag
 
9382
 
 
9383
# Flag that forces no undefined symbols.
 
9384
no_undefined_flag=$lt_no_undefined_flag
 
9385
 
 
9386
# Commands used to finish a libtool library installation in a directory.
 
9387
finish_cmds=$lt_finish_cmds
 
9388
 
 
9389
# Same as above, but a single script fragment to be evaled but not shown.
 
9390
finish_eval=$lt_finish_eval
 
9391
 
 
9392
# Take the output of nm and produce a listing of raw symbols and C names.
 
9393
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9394
 
 
9395
# Transform the output of nm in a proper C declaration
 
9396
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9397
 
 
9398
# Transform the output of nm in a C name address pair
 
9399
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9400
 
 
9401
# This is the shared library runtime path variable.
 
9402
runpath_var=$runpath_var
 
9403
 
 
9404
# This is the shared library path variable.
 
9405
shlibpath_var=$shlibpath_var
 
9406
 
 
9407
# Is shlibpath searched before the hard-coded library search path?
 
9408
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9409
 
 
9410
# How to hardcode a shared library path into an executable.
 
9411
hardcode_action=$hardcode_action
 
9412
 
 
9413
# Whether we should hardcode library paths into libraries.
 
9414
hardcode_into_libs=$hardcode_into_libs
 
9415
 
 
9416
# Flag to hardcode \$libdir into a binary during linking.
 
9417
# This must work even if \$libdir does not exist.
 
9418
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9419
 
 
9420
# If ld is used when linking, flag to hardcode \$libdir into
 
9421
# a binary during linking. This must work even if \$libdir does
 
9422
# not exist.
 
9423
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9424
 
 
9425
# Whether we need a single -rpath flag with a separated argument.
 
9426
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9427
 
 
9428
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9429
# resulting binary.
 
9430
hardcode_direct=$hardcode_direct
 
9431
 
 
9432
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9433
# resulting binary.
 
9434
hardcode_minus_L=$hardcode_minus_L
 
9435
 
 
9436
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9437
# the resulting binary.
 
9438
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9439
 
 
9440
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9441
# and all subsequent libraries and executables linked against it.
 
9442
hardcode_automatic=$hardcode_automatic
 
9443
 
 
9444
# Variables whose values should be saved in libtool wrapper scripts and
 
9445
# restored at relink time.
 
9446
variables_saved_for_relink="$variables_saved_for_relink"
 
9447
 
 
9448
# Whether libtool must link a program against all its dependency libraries.
 
9449
link_all_deplibs=$link_all_deplibs
 
9450
 
 
9451
# Compile-time system search path for libraries
 
9452
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9453
 
 
9454
# Run-time system search path for libraries
 
9455
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9456
 
 
9457
# Fix the shell variable \$srcfile for the compiler.
 
9458
fix_srcfile_path="$fix_srcfile_path"
 
9459
 
 
9460
# Set to yes if exported symbols are required.
 
9461
always_export_symbols=$always_export_symbols
 
9462
 
 
9463
# The commands to list exported symbols.
 
9464
export_symbols_cmds=$lt_export_symbols_cmds
 
9465
 
 
9466
# The commands to extract the exported symbol list from a shared archive.
 
9467
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9468
 
 
9469
# Symbols that should not be listed in the preloaded symbols.
 
9470
exclude_expsyms=$lt_exclude_expsyms
 
9471
 
 
9472
# Symbols that must always be exported.
 
9473
include_expsyms=$lt_include_expsyms
 
9474
 
 
9475
# ### END LIBTOOL CONFIG
 
9476
 
 
9477
__EOF__
 
9478
 
 
9479
 
 
9480
  case $host_os in
 
9481
  aix3*)
 
9482
    cat <<\EOF >> "$cfgfile"
 
9483
 
 
9484
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9485
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9486
# vanish in a puff of smoke.
 
9487
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9488
  COLLECT_NAMES=
 
9489
  export COLLECT_NAMES
 
9490
fi
 
9491
EOF
 
9492
    ;;
 
9493
  esac
 
9494
 
 
9495
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9496
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9497
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9498
  # is reportedly fixed, but why not run on old versions too?
 
9499
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9500
 
 
9501
  mv -f "$cfgfile" "$ofile" || \
 
9502
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9503
  chmod +x "$ofile"
 
9504
 
 
9505
else
 
9506
  # If there is no Makefile yet, we rely on a make rule to execute
 
9507
  # `config.status --recheck' to rerun these tests and create the
 
9508
  # libtool script then.
 
9509
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9510
  if test -f "$ltmain_in"; then
 
9511
    test -f Makefile && make "$ltmain"
 
9512
  fi
 
9513
fi
 
9514
 
 
9515
 
 
9516
ac_ext=c
 
9517
ac_cpp='$CPP $CPPFLAGS'
 
9518
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9519
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9520
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9521
 
 
9522
CC="$lt_save_CC"
 
9523
 
 
9524
 
 
9525
# Check whether --with-tags or --without-tags was given.
 
9526
if test "${with_tags+set}" = set; then
 
9527
  withval="$with_tags"
 
9528
  tagnames="$withval"
 
9529
fi;
 
9530
 
 
9531
if test -f "$ltmain" && test -n "$tagnames"; then
 
9532
  if test ! -f "${ofile}"; then
 
9533
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9534
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9535
  fi
 
9536
 
 
9537
  if test -z "$LTCC"; then
 
9538
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9539
    if test -z "$LTCC"; then
 
9540
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9541
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9542
    else
 
9543
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9544
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9545
    fi
 
9546
  fi
 
9547
 
 
9548
  # Extract list of available tagged configurations in $ofile.
 
9549
  # Note that this assumes the entire list is on one line.
 
9550
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9551
 
 
9552
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9553
  for tagname in $tagnames; do
 
9554
    IFS="$lt_save_ifs"
 
9555
    # Check whether tagname contains only valid characters
 
9556
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9557
    "") ;;
 
9558
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9559
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9560
   { (exit 1); exit 1; }; }
 
9561
        ;;
 
9562
    esac
 
9563
 
 
9564
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9565
    then
 
9566
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9567
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9568
   { (exit 1); exit 1; }; }
 
9569
    fi
 
9570
 
 
9571
    # Update the list of available tags.
 
9572
    if test -n "$tagname"; then
 
9573
      echo appending configuration tag \"$tagname\" to $ofile
 
9574
 
 
9575
      case $tagname in
 
9576
      CXX)
 
9577
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9578
          ac_ext=cc
 
9579
ac_cpp='$CXXCPP $CPPFLAGS'
 
9580
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9581
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9582
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9583
 
 
9584
 
 
9585
 
 
9586
 
 
9587
archive_cmds_need_lc_CXX=no
 
9588
allow_undefined_flag_CXX=
 
9589
always_export_symbols_CXX=no
 
9590
archive_expsym_cmds_CXX=
 
9591
export_dynamic_flag_spec_CXX=
 
9592
hardcode_direct_CXX=no
 
9593
hardcode_libdir_flag_spec_CXX=
 
9594
hardcode_libdir_flag_spec_ld_CXX=
 
9595
hardcode_libdir_separator_CXX=
 
9596
hardcode_minus_L_CXX=no
 
9597
hardcode_automatic_CXX=no
 
9598
module_cmds_CXX=
 
9599
module_expsym_cmds_CXX=
 
9600
link_all_deplibs_CXX=unknown
 
9601
old_archive_cmds_CXX=$old_archive_cmds
 
9602
no_undefined_flag_CXX=
 
9603
whole_archive_flag_spec_CXX=
 
9604
enable_shared_with_static_runtimes_CXX=no
 
9605
 
 
9606
# Dependencies to place before and after the object being linked:
 
9607
predep_objects_CXX=
 
9608
postdep_objects_CXX=
 
9609
predeps_CXX=
 
9610
postdeps_CXX=
 
9611
compiler_lib_search_path_CXX=
 
9612
 
 
9613
# Source file extension for C++ test sources.
 
9614
ac_ext=cc
 
9615
 
 
9616
# Object file extension for compiled C++ test sources.
 
9617
objext=o
 
9618
objext_CXX=$objext
 
9619
 
 
9620
# Code to be used in simple compile tests
 
9621
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9622
 
 
9623
# Code to be used in simple link tests
 
9624
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9625
 
 
9626
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9627
 
 
9628
# If no C compiler was specified, use CC.
 
9629
LTCC=${LTCC-"$CC"}
 
9630
 
 
9631
# Allow CC to be a program name with arguments.
 
9632
compiler=$CC
 
9633
 
 
9634
 
 
9635
# Allow CC to be a program name with arguments.
 
9636
lt_save_CC=$CC
 
9637
lt_save_LD=$LD
 
9638
lt_save_GCC=$GCC
 
9639
GCC=$GXX
 
9640
lt_save_with_gnu_ld=$with_gnu_ld
 
9641
lt_save_path_LD=$lt_cv_path_LD
 
9642
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9643
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9644
else
 
9645
  unset lt_cv_prog_gnu_ld
 
9646
fi
 
9647
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9648
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9649
else
 
9650
  unset lt_cv_path_LD
 
9651
fi
 
9652
test -z "${LDCXX+set}" || LD=$LDCXX
 
9653
CC=${CXX-"c++"}
 
9654
compiler=$CC
 
9655
compiler_CXX=$CC
 
9656
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
9657
 
 
9658
# We don't want -fno-exception wen compiling C++ code, so set the
 
9659
# no_builtin_flag separately
 
9660
if test "$GXX" = yes; then
 
9661
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9662
else
 
9663
  lt_prog_compiler_no_builtin_flag_CXX=
 
9664
fi
 
9665
 
 
9666
if test "$GXX" = yes; then
 
9667
  # Set up default GNU C++ configuration
 
9668
 
 
9669
 
 
9670
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9671
if test "${with_gnu_ld+set}" = set; then
 
9672
  withval="$with_gnu_ld"
 
9673
  test "$withval" = no || with_gnu_ld=yes
 
9674
else
 
9675
  with_gnu_ld=no
 
9676
fi;
 
9677
ac_prog=ld
 
9678
if test "$GCC" = yes; then
 
9679
  # Check if gcc -print-prog-name=ld gives a path.
 
9680
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9681
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9682
  case $host in
 
9683
  *-*-mingw*)
 
9684
    # gcc leaves a trailing carriage return which upsets mingw
 
9685
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9686
  *)
 
9687
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9688
  esac
 
9689
  case $ac_prog in
 
9690
    # Accept absolute paths.
 
9691
    [\\/]* | ?:[\\/]*)
 
9692
      re_direlt='/[^/][^/]*/\.\./'
 
9693
      # Canonicalize the pathname of ld
 
9694
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9695
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9696
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9697
      done
 
9698
      test -z "$LD" && LD="$ac_prog"
 
9699
      ;;
 
9700
  "")
 
9701
    # If it fails, then pretend we aren't using GCC.
 
9702
    ac_prog=ld
 
9703
    ;;
 
9704
  *)
 
9705
    # If it is relative, then search for the first ld in PATH.
 
9706
    with_gnu_ld=unknown
 
9707
    ;;
 
9708
  esac
 
9709
elif test "$with_gnu_ld" = yes; then
 
9710
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9711
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9712
else
 
9713
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9714
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9715
fi
 
9716
if test "${lt_cv_path_LD+set}" = set; then
 
9717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9718
else
 
9719
  if test -z "$LD"; then
 
9720
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9721
  for ac_dir in $PATH; do
 
9722
    IFS="$lt_save_ifs"
 
9723
    test -z "$ac_dir" && ac_dir=.
 
9724
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9725
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9726
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9727
      # but apparently some GNU ld's only accept -v.
 
9728
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9729
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9730
      *GNU* | *'with BFD'*)
 
9731
        test "$with_gnu_ld" != no && break
 
9732
        ;;
 
9733
      *)
 
9734
        test "$with_gnu_ld" != yes && break
 
9735
        ;;
 
9736
      esac
 
9737
    fi
 
9738
  done
 
9739
  IFS="$lt_save_ifs"
 
9740
else
 
9741
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9742
fi
 
9743
fi
 
9744
 
 
9745
LD="$lt_cv_path_LD"
 
9746
if test -n "$LD"; then
 
9747
  echo "$as_me:$LINENO: result: $LD" >&5
 
9748
echo "${ECHO_T}$LD" >&6
 
9749
else
 
9750
  echo "$as_me:$LINENO: result: no" >&5
 
9751
echo "${ECHO_T}no" >&6
 
9752
fi
 
9753
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
9754
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
9755
   { (exit 1); exit 1; }; }
 
9756
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9757
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
9758
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
9759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9760
else
 
9761
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
9762
case `$LD -v 2>&1 </dev/null` in
 
9763
*GNU* | *'with BFD'*)
 
9764
  lt_cv_prog_gnu_ld=yes
 
9765
  ;;
 
9766
*)
 
9767
  lt_cv_prog_gnu_ld=no
 
9768
  ;;
 
9769
esac
 
9770
fi
 
9771
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9772
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
9773
with_gnu_ld=$lt_cv_prog_gnu_ld
 
9774
 
 
9775
 
 
9776
 
 
9777
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
9778
  # archiving commands below assume that GNU ld is being used.
 
9779
  if test "$with_gnu_ld" = yes; then
 
9780
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
9781
    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'
 
9782
 
 
9783
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
9784
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
9785
 
 
9786
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
9787
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
9788
    #     investigate it a little bit more. (MM)
 
9789
    wlarc='${wl}'
 
9790
 
 
9791
    # ancient GNU ld didn't support --whole-archive et. al.
 
9792
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
9793
        grep 'no-whole-archive' > /dev/null; then
 
9794
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
9795
    else
 
9796
      whole_archive_flag_spec_CXX=
 
9797
    fi
 
9798
  else
 
9799
    with_gnu_ld=no
 
9800
    wlarc=
 
9801
 
 
9802
    # A generic and very simple default shared library creation
 
9803
    # command for GNU C++ for the case where it uses the native
 
9804
    # linker, instead of GNU ld.  If possible, this setting should
 
9805
    # overridden to take advantage of the native linker features on
 
9806
    # the platform it is being used on.
 
9807
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
9808
  fi
 
9809
 
 
9810
  # Commands to make compiler produce verbose output that lists
 
9811
  # what "hidden" libraries, object files and flags are used when
 
9812
  # linking a shared library.
 
9813
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
9814
 
 
9815
else
 
9816
  GXX=no
 
9817
  with_gnu_ld=no
 
9818
  wlarc=
 
9819
fi
 
9820
 
 
9821
# PORTME: fill in a description of your system's C++ link characteristics
 
9822
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9823
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
9824
ld_shlibs_CXX=yes
 
9825
case $host_os in
 
9826
  aix3*)
 
9827
    # FIXME: insert proper C++ library support
 
9828
    ld_shlibs_CXX=no
 
9829
    ;;
 
9830
  aix4* | aix5*)
 
9831
    if test "$host_cpu" = ia64; then
 
9832
      # On IA64, the linker does run time linking by default, so we don't
 
9833
      # have to do anything special.
 
9834
      aix_use_runtimelinking=no
 
9835
      exp_sym_flag='-Bexport'
 
9836
      no_entry_flag=""
 
9837
    else
 
9838
      aix_use_runtimelinking=no
 
9839
 
 
9840
      # Test if we are trying to use run time linking or normal
 
9841
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
9842
      # need to do runtime linking.
 
9843
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
9844
        for ld_flag in $LDFLAGS; do
 
9845
          case $ld_flag in
 
9846
          *-brtl*)
 
9847
            aix_use_runtimelinking=yes
 
9848
            break
 
9849
            ;;
 
9850
          esac
 
9851
        done
 
9852
      esac
 
9853
 
 
9854
      exp_sym_flag='-bexport'
 
9855
      no_entry_flag='-bnoentry'
 
9856
    fi
 
9857
 
 
9858
    # When large executables or shared objects are built, AIX ld can
 
9859
    # have problems creating the table of contents.  If linking a library
 
9860
    # or program results in "error TOC overflow" add -mminimal-toc to
 
9861
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
9862
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
9863
 
 
9864
    archive_cmds_CXX=''
 
9865
    hardcode_direct_CXX=yes
 
9866
    hardcode_libdir_separator_CXX=':'
 
9867
    link_all_deplibs_CXX=yes
 
9868
 
 
9869
    if test "$GXX" = yes; then
 
9870
      case $host_os in aix4.012|aix4.012.*)
 
9871
      # We only want to do this on AIX 4.2 and lower, the check
 
9872
      # below for broken collect2 doesn't work under 4.3+
 
9873
        collect2name=`${CC} -print-prog-name=collect2`
 
9874
        if test -f "$collect2name" && \
 
9875
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
9876
        then
 
9877
          # We have reworked collect2
 
9878
          hardcode_direct_CXX=yes
 
9879
        else
 
9880
          # We have old collect2
 
9881
          hardcode_direct_CXX=unsupported
 
9882
          # It fails to find uninstalled libraries when the uninstalled
 
9883
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
9884
          # to unsupported forces relinking
 
9885
          hardcode_minus_L_CXX=yes
 
9886
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
9887
          hardcode_libdir_separator_CXX=
 
9888
        fi
 
9889
      esac
 
9890
      shared_flag='-shared'
 
9891
    else
 
9892
      # not using gcc
 
9893
      if test "$host_cpu" = ia64; then
 
9894
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
9895
        # chokes on -Wl,-G. The following line is correct:
 
9896
        shared_flag='-G'
 
9897
      else
 
9898
        if test "$aix_use_runtimelinking" = yes; then
 
9899
          shared_flag='${wl}-G'
 
9900
        else
 
9901
          shared_flag='${wl}-bM:SRE'
 
9902
        fi
 
9903
      fi
 
9904
    fi
 
9905
 
 
9906
    # It seems that -bexpall does not export symbols beginning with
 
9907
    # underscore (_), so it is better to generate a list of symbols to export.
 
9908
    always_export_symbols_CXX=yes
 
9909
    if test "$aix_use_runtimelinking" = yes; then
 
9910
      # Warning - without using the other runtime loading flags (-brtl),
 
9911
      # -berok will link without error, but may produce a broken library.
 
9912
      allow_undefined_flag_CXX='-berok'
 
9913
      # Determine the default libpath from the value encoded in an empty executable.
 
9914
      cat >conftest.$ac_ext <<_ACEOF
 
9915
/* confdefs.h.  */
 
9916
_ACEOF
 
9917
cat confdefs.h >>conftest.$ac_ext
 
9918
cat >>conftest.$ac_ext <<_ACEOF
 
9919
/* end confdefs.h.  */
 
9920
 
 
9921
int
 
9922
main ()
 
9923
{
 
9924
 
 
9925
  ;
 
9926
  return 0;
 
9927
}
 
9928
_ACEOF
 
9929
rm -f conftest.$ac_objext conftest$ac_exeext
 
9930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9931
  (eval $ac_link) 2>conftest.er1
 
9932
  ac_status=$?
 
9933
  grep -v '^ *+' conftest.er1 >conftest.err
 
9934
  rm -f conftest.er1
 
9935
  cat conftest.err >&5
 
9936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9937
  (exit $ac_status); } &&
 
9938
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
9939
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9940
  (eval $ac_try) 2>&5
 
9941
  ac_status=$?
 
9942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9943
  (exit $ac_status); }; } &&
 
9944
         { ac_try='test -s conftest$ac_exeext'
 
9945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9946
  (eval $ac_try) 2>&5
 
9947
  ac_status=$?
 
9948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9949
  (exit $ac_status); }; }; then
 
9950
 
 
9951
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9952
}'`
 
9953
# Check for a 64-bit object if we didn't find anything.
 
9954
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; }
 
9955
}'`; fi
 
9956
else
 
9957
  echo "$as_me: failed program was:" >&5
 
9958
sed 's/^/| /' conftest.$ac_ext >&5
 
9959
 
 
9960
fi
 
9961
rm -f conftest.err conftest.$ac_objext \
 
9962
      conftest$ac_exeext conftest.$ac_ext
 
9963
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9964
 
 
9965
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9966
 
 
9967
      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"
 
9968
     else
 
9969
      if test "$host_cpu" = ia64; then
 
9970
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
9971
        allow_undefined_flag_CXX="-z nodefs"
 
9972
        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"
 
9973
      else
 
9974
        # Determine the default libpath from the value encoded in an empty executable.
 
9975
        cat >conftest.$ac_ext <<_ACEOF
 
9976
/* confdefs.h.  */
 
9977
_ACEOF
 
9978
cat confdefs.h >>conftest.$ac_ext
 
9979
cat >>conftest.$ac_ext <<_ACEOF
 
9980
/* end confdefs.h.  */
 
9981
 
 
9982
int
 
9983
main ()
 
9984
{
 
9985
 
 
9986
  ;
 
9987
  return 0;
 
9988
}
 
9989
_ACEOF
 
9990
rm -f conftest.$ac_objext conftest$ac_exeext
 
9991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9992
  (eval $ac_link) 2>conftest.er1
 
9993
  ac_status=$?
 
9994
  grep -v '^ *+' conftest.er1 >conftest.err
 
9995
  rm -f conftest.er1
 
9996
  cat conftest.err >&5
 
9997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9998
  (exit $ac_status); } &&
 
9999
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10001
  (eval $ac_try) 2>&5
 
10002
  ac_status=$?
 
10003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10004
  (exit $ac_status); }; } &&
 
10005
         { ac_try='test -s conftest$ac_exeext'
 
10006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10007
  (eval $ac_try) 2>&5
 
10008
  ac_status=$?
 
10009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10010
  (exit $ac_status); }; }; then
 
10011
 
 
10012
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10013
}'`
 
10014
# Check for a 64-bit object if we didn't find anything.
 
10015
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; }
 
10016
}'`; fi
 
10017
else
 
10018
  echo "$as_me: failed program was:" >&5
 
10019
sed 's/^/| /' conftest.$ac_ext >&5
 
10020
 
 
10021
fi
 
10022
rm -f conftest.err conftest.$ac_objext \
 
10023
      conftest$ac_exeext conftest.$ac_ext
 
10024
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10025
 
 
10026
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10027
        # Warning - without using the other run time loading flags,
 
10028
        # -berok will link without error, but may produce a broken library.
 
10029
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10030
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10031
        # -bexpall does not export symbols beginning with underscore (_)
 
10032
        always_export_symbols_CXX=yes
 
10033
        # Exported symbols can be pulled into shared objects from archives
 
10034
        whole_archive_flag_spec_CXX=' '
 
10035
        archive_cmds_need_lc_CXX=yes
 
10036
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10037
        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'
 
10038
      fi
 
10039
    fi
 
10040
    ;;
 
10041
  chorus*)
 
10042
    case $cc_basename in
 
10043
      *)
 
10044
        # FIXME: insert proper C++ library support
 
10045
        ld_shlibs_CXX=no
 
10046
        ;;
 
10047
    esac
 
10048
    ;;
 
10049
 
 
10050
  cygwin* | mingw* | pw32*)
 
10051
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10052
    # as there is no search path for DLLs.
 
10053
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10054
    allow_undefined_flag_CXX=unsupported
 
10055
    always_export_symbols_CXX=no
 
10056
    enable_shared_with_static_runtimes_CXX=yes
 
10057
 
 
10058
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10059
      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'
 
10060
      # If the export-symbols file already is a .def file (1st line
 
10061
      # is EXPORTS), use it as is; otherwise, prepend...
 
10062
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10063
        cp $export_symbols $output_objdir/$soname.def;
 
10064
      else
 
10065
        echo EXPORTS > $output_objdir/$soname.def;
 
10066
        cat $export_symbols >> $output_objdir/$soname.def;
 
10067
      fi~
 
10068
      $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'
 
10069
    else
 
10070
      ld_shlibs_CXX=no
 
10071
    fi
 
10072
  ;;
 
10073
 
 
10074
  darwin* | rhapsody*)
 
10075
  if test "$GXX" = yes; then
 
10076
    archive_cmds_need_lc_CXX=no
 
10077
    case "$host_os" in
 
10078
    rhapsody* | darwin1.[012])
 
10079
      allow_undefined_flag_CXX='-undefined suppress'
 
10080
      ;;
 
10081
    *) # Darwin 1.3 on
 
10082
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10083
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10084
      else
 
10085
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10086
          10.[012])
 
10087
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10088
            ;;
 
10089
          10.*)
 
10090
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
10091
            ;;
 
10092
        esac
 
10093
      fi
 
10094
      ;;
 
10095
    esac
 
10096
    lt_int_apple_cc_single_mod=no
 
10097
    output_verbose_link_cmd='echo'
 
10098
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
10099
      lt_int_apple_cc_single_mod=yes
 
10100
    fi
 
10101
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10102
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10103
    else
 
10104
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10105
    fi
 
10106
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10107
 
 
10108
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10109
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10110
      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}'
 
10111
    else
 
10112
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10113
    fi
 
10114
    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}'
 
10115
    hardcode_direct_CXX=no
 
10116
    hardcode_automatic_CXX=yes
 
10117
    hardcode_shlibpath_var_CXX=unsupported
 
10118
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
10119
    link_all_deplibs_CXX=yes
 
10120
  else
 
10121
    ld_shlibs_CXX=no
 
10122
  fi
 
10123
    ;;
 
10124
 
 
10125
  dgux*)
 
10126
    case $cc_basename in
 
10127
      ec++)
 
10128
        # FIXME: insert proper C++ library support
 
10129
        ld_shlibs_CXX=no
 
10130
        ;;
 
10131
      ghcx)
 
10132
        # Green Hills C++ Compiler
 
10133
        # FIXME: insert proper C++ library support
 
10134
        ld_shlibs_CXX=no
 
10135
        ;;
 
10136
      *)
 
10137
        # FIXME: insert proper C++ library support
 
10138
        ld_shlibs_CXX=no
 
10139
        ;;
 
10140
    esac
 
10141
    ;;
 
10142
  freebsd12*)
 
10143
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10144
    ld_shlibs_CXX=no
 
10145
    ;;
 
10146
  freebsd-elf*)
 
10147
    archive_cmds_need_lc_CXX=no
 
10148
    ;;
 
10149
  freebsd* | kfreebsd*-gnu)
 
10150
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10151
    # conventions
 
10152
    ld_shlibs_CXX=yes
 
10153
    ;;
 
10154
  gnu*)
 
10155
    ;;
 
10156
  hpux9*)
 
10157
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10158
    hardcode_libdir_separator_CXX=:
 
10159
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10160
    hardcode_direct_CXX=yes
 
10161
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10162
                                # but as the default
 
10163
                                # location of the library.
 
10164
 
 
10165
    case $cc_basename in
 
10166
    CC)
 
10167
      # FIXME: insert proper C++ library support
 
10168
      ld_shlibs_CXX=no
 
10169
      ;;
 
10170
    aCC)
 
10171
      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'
 
10172
      # Commands to make compiler produce verbose output that lists
 
10173
      # what "hidden" libraries, object files and flags are used when
 
10174
      # linking a shared library.
 
10175
      #
 
10176
      # There doesn't appear to be a way to prevent this compiler from
 
10177
      # explicitly linking system object files so we need to strip them
 
10178
      # from the output so that they don't get included in the library
 
10179
      # dependencies.
 
10180
      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'
 
10181
      ;;
 
10182
    *)
 
10183
      if test "$GXX" = yes; then
 
10184
        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'
 
10185
      else
 
10186
        # FIXME: insert proper C++ library support
 
10187
        ld_shlibs_CXX=no
 
10188
      fi
 
10189
      ;;
 
10190
    esac
 
10191
    ;;
 
10192
  hpux10*|hpux11*)
 
10193
    if test $with_gnu_ld = no; then
 
10194
      case "$host_cpu" in
 
10195
      hppa*64*)
 
10196
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10197
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10198
        hardcode_libdir_separator_CXX=:
 
10199
        ;;
 
10200
      ia64*)
 
10201
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10202
        ;;
 
10203
      *)
 
10204
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10205
        hardcode_libdir_separator_CXX=:
 
10206
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10207
        ;;
 
10208
      esac
 
10209
    fi
 
10210
    case "$host_cpu" in
 
10211
    hppa*64*)
 
10212
      hardcode_direct_CXX=no
 
10213
      hardcode_shlibpath_var_CXX=no
 
10214
      ;;
 
10215
    ia64*)
 
10216
      hardcode_direct_CXX=no
 
10217
      hardcode_shlibpath_var_CXX=no
 
10218
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10219
                                              # but as the default
 
10220
                                              # location of the library.
 
10221
      ;;
 
10222
    *)
 
10223
      hardcode_direct_CXX=yes
 
10224
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10225
                                              # but as the default
 
10226
                                              # location of the library.
 
10227
      ;;
 
10228
    esac
 
10229
 
 
10230
    case $cc_basename in
 
10231
      CC)
 
10232
        # FIXME: insert proper C++ library support
 
10233
        ld_shlibs_CXX=no
 
10234
        ;;
 
10235
      aCC)
 
10236
        case "$host_cpu" in
 
10237
        hppa*64*|ia64*)
 
10238
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10239
          ;;
 
10240
        *)
 
10241
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10242
          ;;
 
10243
        esac
 
10244
        # Commands to make compiler produce verbose output that lists
 
10245
        # what "hidden" libraries, object files and flags are used when
 
10246
        # linking a shared library.
 
10247
        #
 
10248
        # There doesn't appear to be a way to prevent this compiler from
 
10249
        # explicitly linking system object files so we need to strip them
 
10250
        # from the output so that they don't get included in the library
 
10251
        # dependencies.
 
10252
        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'
 
10253
        ;;
 
10254
      *)
 
10255
        if test "$GXX" = yes; then
 
10256
          if test $with_gnu_ld = no; then
 
10257
            case "$host_cpu" in
 
10258
            ia64*|hppa*64*)
 
10259
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10260
              ;;
 
10261
            *)
 
10262
              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'
 
10263
              ;;
 
10264
            esac
 
10265
          fi
 
10266
        else
 
10267
          # FIXME: insert proper C++ library support
 
10268
          ld_shlibs_CXX=no
 
10269
        fi
 
10270
        ;;
 
10271
    esac
 
10272
    ;;
 
10273
  irix5* | irix6*)
 
10274
    case $cc_basename in
 
10275
      CC)
 
10276
        # SGI C++
 
10277
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10278
 
 
10279
        # Archives containing C++ object files must be created using
 
10280
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10281
        # necessary to make sure instantiated templates are included
 
10282
        # in the archive.
 
10283
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10284
        ;;
 
10285
      *)
 
10286
        if test "$GXX" = yes; then
 
10287
          if test "$with_gnu_ld" = no; then
 
10288
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10289
          else
 
10290
            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'
 
10291
          fi
 
10292
        fi
 
10293
        link_all_deplibs_CXX=yes
 
10294
        ;;
 
10295
    esac
 
10296
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10297
    hardcode_libdir_separator_CXX=:
 
10298
    ;;
 
10299
  linux*)
 
10300
    case $cc_basename in
 
10301
      KCC)
 
10302
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10303
 
 
10304
        # KCC will only create a shared library if the output file
 
10305
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10306
        # to its proper name (with version) after linking.
 
10307
        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'
 
10308
        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'
 
10309
        # Commands to make compiler produce verbose output that lists
 
10310
        # what "hidden" libraries, object files and flags are used when
 
10311
        # linking a shared library.
 
10312
        #
 
10313
        # There doesn't appear to be a way to prevent this compiler from
 
10314
        # explicitly linking system object files so we need to strip them
 
10315
        # from the output so that they don't get included in the library
 
10316
        # dependencies.
 
10317
        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'
 
10318
 
 
10319
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10320
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10321
 
 
10322
        # Archives containing C++ object files must be created using
 
10323
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10324
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10325
        ;;
 
10326
      icpc)
 
10327
        # Intel C++
 
10328
        with_gnu_ld=yes
 
10329
        archive_cmds_need_lc_CXX=no
 
10330
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10331
        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'
 
10332
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10333
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10334
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10335
        ;;
 
10336
      cxx)
 
10337
        # Compaq C++
 
10338
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10339
        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'
 
10340
 
 
10341
        runpath_var=LD_RUN_PATH
 
10342
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10343
        hardcode_libdir_separator_CXX=:
 
10344
 
 
10345
        # Commands to make compiler produce verbose output that lists
 
10346
        # what "hidden" libraries, object files and flags are used when
 
10347
        # linking a shared library.
 
10348
        #
 
10349
        # There doesn't appear to be a way to prevent this compiler from
 
10350
        # explicitly linking system object files so we need to strip them
 
10351
        # from the output so that they don't get included in the library
 
10352
        # dependencies.
 
10353
        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'
 
10354
        ;;
 
10355
    esac
 
10356
    ;;
 
10357
  lynxos*)
 
10358
    # FIXME: insert proper C++ library support
 
10359
    ld_shlibs_CXX=no
 
10360
    ;;
 
10361
  m88k*)
 
10362
    # FIXME: insert proper C++ library support
 
10363
    ld_shlibs_CXX=no
 
10364
    ;;
 
10365
  mvs*)
 
10366
    case $cc_basename in
 
10367
      cxx)
 
10368
        # FIXME: insert proper C++ library support
 
10369
        ld_shlibs_CXX=no
 
10370
        ;;
 
10371
      *)
 
10372
        # FIXME: insert proper C++ library support
 
10373
        ld_shlibs_CXX=no
 
10374
        ;;
 
10375
    esac
 
10376
    ;;
 
10377
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10378
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10379
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10380
      wlarc=
 
10381
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10382
      hardcode_direct_CXX=yes
 
10383
      hardcode_shlibpath_var_CXX=no
 
10384
    fi
 
10385
    # Workaround some broken pre-1.5 toolchains
 
10386
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10387
    ;;
 
10388
  osf3*)
 
10389
    case $cc_basename in
 
10390
      KCC)
 
10391
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10392
 
 
10393
        # KCC will only create a shared library if the output file
 
10394
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10395
        # to its proper name (with version) after linking.
 
10396
        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'
 
10397
 
 
10398
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10399
        hardcode_libdir_separator_CXX=:
 
10400
 
 
10401
        # Archives containing C++ object files must be created using
 
10402
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10403
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10404
 
 
10405
        ;;
 
10406
      RCC)
 
10407
        # Rational C++ 2.4.1
 
10408
        # FIXME: insert proper C++ library support
 
10409
        ld_shlibs_CXX=no
 
10410
        ;;
 
10411
      cxx)
 
10412
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10413
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10414
 
 
10415
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10416
        hardcode_libdir_separator_CXX=:
 
10417
 
 
10418
        # Commands to make compiler produce verbose output that lists
 
10419
        # what "hidden" libraries, object files and flags are used when
 
10420
        # linking a shared library.
 
10421
        #
 
10422
        # There doesn't appear to be a way to prevent this compiler from
 
10423
        # explicitly linking system object files so we need to strip them
 
10424
        # from the output so that they don't get included in the library
 
10425
        # dependencies.
 
10426
        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'
 
10427
        ;;
 
10428
      *)
 
10429
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10430
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10431
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10432
 
 
10433
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10434
          hardcode_libdir_separator_CXX=:
 
10435
 
 
10436
          # Commands to make compiler produce verbose output that lists
 
10437
          # what "hidden" libraries, object files and flags are used when
 
10438
          # linking a shared library.
 
10439
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10440
 
 
10441
        else
 
10442
          # FIXME: insert proper C++ library support
 
10443
          ld_shlibs_CXX=no
 
10444
        fi
 
10445
        ;;
 
10446
    esac
 
10447
    ;;
 
10448
  osf4* | osf5*)
 
10449
    case $cc_basename in
 
10450
      KCC)
 
10451
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10452
 
 
10453
        # KCC will only create a shared library if the output file
 
10454
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10455
        # to its proper name (with version) after linking.
 
10456
        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'
 
10457
 
 
10458
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10459
        hardcode_libdir_separator_CXX=:
 
10460
 
 
10461
        # Archives containing C++ object files must be created using
 
10462
        # the KAI C++ compiler.
 
10463
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10464
        ;;
 
10465
      RCC)
 
10466
        # Rational C++ 2.4.1
 
10467
        # FIXME: insert proper C++ library support
 
10468
        ld_shlibs_CXX=no
 
10469
        ;;
 
10470
      cxx)
 
10471
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10472
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10473
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10474
          echo "-hidden">> $lib.exp~
 
10475
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
10476
          $rm $lib.exp'
 
10477
 
 
10478
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10479
        hardcode_libdir_separator_CXX=:
 
10480
 
 
10481
        # Commands to make compiler produce verbose output that lists
 
10482
        # what "hidden" libraries, object files and flags are used when
 
10483
        # linking a shared library.
 
10484
        #
 
10485
        # There doesn't appear to be a way to prevent this compiler from
 
10486
        # explicitly linking system object files so we need to strip them
 
10487
        # from the output so that they don't get included in the library
 
10488
        # dependencies.
 
10489
        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'
 
10490
        ;;
 
10491
      *)
 
10492
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10493
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10494
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10495
 
 
10496
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10497
          hardcode_libdir_separator_CXX=:
 
10498
 
 
10499
          # Commands to make compiler produce verbose output that lists
 
10500
          # what "hidden" libraries, object files and flags are used when
 
10501
          # linking a shared library.
 
10502
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10503
 
 
10504
        else
 
10505
          # FIXME: insert proper C++ library support
 
10506
          ld_shlibs_CXX=no
 
10507
        fi
 
10508
        ;;
 
10509
    esac
 
10510
    ;;
 
10511
  psos*)
 
10512
    # FIXME: insert proper C++ library support
 
10513
    ld_shlibs_CXX=no
 
10514
    ;;
 
10515
  sco*)
 
10516
    archive_cmds_need_lc_CXX=no
 
10517
    case $cc_basename in
 
10518
      CC)
 
10519
        # FIXME: insert proper C++ library support
 
10520
        ld_shlibs_CXX=no
 
10521
        ;;
 
10522
      *)
 
10523
        # FIXME: insert proper C++ library support
 
10524
        ld_shlibs_CXX=no
 
10525
        ;;
 
10526
    esac
 
10527
    ;;
 
10528
  sunos4*)
 
10529
    case $cc_basename in
 
10530
      CC)
 
10531
        # Sun C++ 4.x
 
10532
        # FIXME: insert proper C++ library support
 
10533
        ld_shlibs_CXX=no
 
10534
        ;;
 
10535
      lcc)
 
10536
        # Lucid
 
10537
        # FIXME: insert proper C++ library support
 
10538
        ld_shlibs_CXX=no
 
10539
        ;;
 
10540
      *)
 
10541
        # FIXME: insert proper C++ library support
 
10542
        ld_shlibs_CXX=no
 
10543
        ;;
 
10544
    esac
 
10545
    ;;
 
10546
  solaris*)
 
10547
    case $cc_basename in
 
10548
      CC)
 
10549
        # Sun C++ 4.2, 5.x and Centerline C++
 
10550
        no_undefined_flag_CXX=' -zdefs'
 
10551
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10552
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10553
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10554
 
 
10555
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10556
        hardcode_shlibpath_var_CXX=no
 
10557
        case $host_os in
 
10558
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10559
          *)
 
10560
            # The C++ compiler is used as linker so we must use $wl
 
10561
            # flag to pass the commands to the underlying system
 
10562
            # linker.
 
10563
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10564
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10565
            ;;
 
10566
        esac
 
10567
        link_all_deplibs_CXX=yes
 
10568
 
 
10569
        # Commands to make compiler produce verbose output that lists
 
10570
        # what "hidden" libraries, object files and flags are used when
 
10571
        # linking a shared library.
 
10572
        #
 
10573
        # There doesn't appear to be a way to prevent this compiler from
 
10574
        # explicitly linking system object files so we need to strip them
 
10575
        # from the output so that they don't get included in the library
 
10576
        # dependencies.
 
10577
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
10578
 
 
10579
        # Archives containing C++ object files must be created using
 
10580
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10581
        # necessary to make sure instantiated templates are included
 
10582
        # in the archive.
 
10583
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10584
        ;;
 
10585
      gcx)
 
10586
        # Green Hills C++ Compiler
 
10587
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10588
 
 
10589
        # The C++ compiler must be used to create the archive.
 
10590
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10591
        ;;
 
10592
      *)
 
10593
        # GNU C++ compiler with Solaris linker
 
10594
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10595
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10596
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10597
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10598
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10599
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10600
 
 
10601
            # Commands to make compiler produce verbose output that lists
 
10602
            # what "hidden" libraries, object files and flags are used when
 
10603
            # linking a shared library.
 
10604
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10605
          else
 
10606
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10607
            # platform.
 
10608
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10609
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10610
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10611
 
 
10612
            # Commands to make compiler produce verbose output that lists
 
10613
            # what "hidden" libraries, object files and flags are used when
 
10614
            # linking a shared library.
 
10615
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10616
          fi
 
10617
 
 
10618
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10619
        fi
 
10620
        ;;
 
10621
    esac
 
10622
    ;;
 
10623
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10624
    archive_cmds_need_lc_CXX=no
 
10625
    ;;
 
10626
  tandem*)
 
10627
    case $cc_basename in
 
10628
      NCC)
 
10629
        # NonStop-UX NCC 3.20
 
10630
        # FIXME: insert proper C++ library support
 
10631
        ld_shlibs_CXX=no
 
10632
        ;;
 
10633
      *)
 
10634
        # FIXME: insert proper C++ library support
 
10635
        ld_shlibs_CXX=no
 
10636
        ;;
 
10637
    esac
 
10638
    ;;
 
10639
  vxworks*)
 
10640
    # FIXME: insert proper C++ library support
 
10641
    ld_shlibs_CXX=no
 
10642
    ;;
 
10643
  *)
 
10644
    # FIXME: insert proper C++ library support
 
10645
    ld_shlibs_CXX=no
 
10646
    ;;
 
10647
esac
 
10648
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10649
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10650
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10651
 
 
10652
GCC_CXX="$GXX"
 
10653
LD_CXX="$LD"
 
10654
 
 
10655
 
 
10656
cat > conftest.$ac_ext <<EOF
 
10657
class Foo
 
10658
{
 
10659
public:
 
10660
  Foo (void) { a = 0; }
 
10661
private:
 
10662
  int a;
 
10663
};
 
10664
EOF
 
10665
 
 
10666
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10667
  (eval $ac_compile) 2>&5
 
10668
  ac_status=$?
 
10669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10670
  (exit $ac_status); }; then
 
10671
  # Parse the compiler output and extract the necessary
 
10672
  # objects, libraries and library flags.
 
10673
 
 
10674
  # Sentinel used to keep track of whether or not we are before
 
10675
  # the conftest object file.
 
10676
  pre_test_object_deps_done=no
 
10677
 
 
10678
  # The `*' in the case matches for architectures that use `case' in
 
10679
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10680
  # eval without this substitution.
 
10681
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
10682
 
 
10683
  for p in `eval $output_verbose_link_cmd`; do
 
10684
    case $p in
 
10685
 
 
10686
    -L* | -R* | -l*)
 
10687
       # Some compilers place space between "-{L,R}" and the path.
 
10688
       # Remove the space.
 
10689
       if test $p = "-L" \
 
10690
          || test $p = "-R"; then
 
10691
         prev=$p
 
10692
         continue
 
10693
       else
 
10694
         prev=
 
10695
       fi
 
10696
 
 
10697
       if test "$pre_test_object_deps_done" = no; then
 
10698
         case $p in
 
10699
         -L* | -R*)
 
10700
           # Internal compiler library paths should come after those
 
10701
           # provided the user.  The postdeps already come after the
 
10702
           # user supplied libs so there is no need to process them.
 
10703
           if test -z "$compiler_lib_search_path_CXX"; then
 
10704
             compiler_lib_search_path_CXX="${prev}${p}"
 
10705
           else
 
10706
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
10707
           fi
 
10708
           ;;
 
10709
         # The "-l" case would never come before the object being
 
10710
         # linked, so don't bother handling this case.
 
10711
         esac
 
10712
       else
 
10713
         if test -z "$postdeps_CXX"; then
 
10714
           postdeps_CXX="${prev}${p}"
 
10715
         else
 
10716
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
10717
         fi
 
10718
       fi
 
10719
       ;;
 
10720
 
 
10721
    *.$objext)
 
10722
       # This assumes that the test object file only shows up
 
10723
       # once in the compiler output.
 
10724
       if test "$p" = "conftest.$objext"; then
 
10725
         pre_test_object_deps_done=yes
 
10726
         continue
 
10727
       fi
 
10728
 
 
10729
       if test "$pre_test_object_deps_done" = no; then
 
10730
         if test -z "$predep_objects_CXX"; then
 
10731
           predep_objects_CXX="$p"
 
10732
         else
 
10733
           predep_objects_CXX="$predep_objects_CXX $p"
 
10734
         fi
 
10735
       else
 
10736
         if test -z "$postdep_objects_CXX"; then
 
10737
           postdep_objects_CXX="$p"
 
10738
         else
 
10739
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
10740
         fi
 
10741
       fi
 
10742
       ;;
 
10743
 
 
10744
    *) ;; # Ignore the rest.
 
10745
 
 
10746
    esac
 
10747
  done
 
10748
 
 
10749
  # Clean up.
 
10750
  rm -f a.out a.exe
 
10751
else
 
10752
  echo "libtool.m4: error: problem compiling CXX test program"
 
10753
fi
 
10754
 
 
10755
$rm -f confest.$objext
 
10756
 
 
10757
case " $postdeps_CXX " in
 
10758
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
10759
esac
 
10760
 
 
10761
lt_prog_compiler_wl_CXX=
 
10762
lt_prog_compiler_pic_CXX=
 
10763
lt_prog_compiler_static_CXX=
 
10764
 
 
10765
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10766
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
10767
 
 
10768
  # C++ specific cases for pic, static, wl, etc.
 
10769
  if test "$GXX" = yes; then
 
10770
    lt_prog_compiler_wl_CXX='-Wl,'
 
10771
    lt_prog_compiler_static_CXX='-static'
 
10772
 
 
10773
    case $host_os in
 
10774
    aix*)
 
10775
      # All AIX code is PIC.
 
10776
      if test "$host_cpu" = ia64; then
 
10777
        # AIX 5 now supports IA64 processor
 
10778
        lt_prog_compiler_static_CXX='-Bstatic'
 
10779
      fi
 
10780
      ;;
 
10781
    amigaos*)
 
10782
      # FIXME: we need at least 68020 code to build shared libraries, but
 
10783
      # adding the `-m68020' flag to GCC prevents building anything better,
 
10784
      # like `-m68040'.
 
10785
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
10786
      ;;
 
10787
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
10788
      # PIC is the default for these OSes.
 
10789
      ;;
 
10790
    mingw* | os2* | pw32*)
 
10791
      # This hack is so that the source file can tell whether it is being
 
10792
      # built for inclusion in a dll (and should export symbols for example).
 
10793
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
10794
      ;;
 
10795
    darwin* | rhapsody*)
 
10796
      # PIC is the default on this platform
 
10797
      # Common symbols not allowed in MH_DYLIB files
 
10798
      lt_prog_compiler_pic_CXX='-fno-common'
 
10799
      ;;
 
10800
    *djgpp*)
 
10801
      # DJGPP does not support shared libraries at all
 
10802
      lt_prog_compiler_pic_CXX=
 
10803
      ;;
 
10804
    sysv4*MP*)
 
10805
      if test -d /usr/nec; then
 
10806
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
10807
      fi
 
10808
      ;;
 
10809
    hpux*)
 
10810
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
10811
      # not for PA HP-UX.
 
10812
      case "$host_cpu" in
 
10813
      hppa*64*|ia64*)
 
10814
        ;;
 
10815
      *)
 
10816
        lt_prog_compiler_pic_CXX='-fPIC'
 
10817
        ;;
 
10818
      esac
 
10819
      ;;
 
10820
    *)
 
10821
      lt_prog_compiler_pic_CXX='-fPIC'
 
10822
      ;;
 
10823
    esac
 
10824
  else
 
10825
    case $host_os in
 
10826
      aix4* | aix5*)
 
10827
        # All AIX code is PIC.
 
10828
        if test "$host_cpu" = ia64; then
 
10829
          # AIX 5 now supports IA64 processor
 
10830
          lt_prog_compiler_static_CXX='-Bstatic'
 
10831
        else
 
10832
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
10833
        fi
 
10834
        ;;
 
10835
      chorus*)
 
10836
        case $cc_basename in
 
10837
        cxch68)
 
10838
          # Green Hills C++ Compiler
 
10839
          # _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"
 
10840
          ;;
 
10841
        esac
 
10842
        ;;
 
10843
      dgux*)
 
10844
        case $cc_basename in
 
10845
          ec++)
 
10846
            lt_prog_compiler_pic_CXX='-KPIC'
 
10847
            ;;
 
10848
          ghcx)
 
10849
            # Green Hills C++ Compiler
 
10850
            lt_prog_compiler_pic_CXX='-pic'
 
10851
            ;;
 
10852
          *)
 
10853
            ;;
 
10854
        esac
 
10855
        ;;
 
10856
      freebsd* | kfreebsd*-gnu)
 
10857
        # FreeBSD uses GNU C++
 
10858
        ;;
 
10859
      hpux9* | hpux10* | hpux11*)
 
10860
        case $cc_basename in
 
10861
          CC)
 
10862
            lt_prog_compiler_wl_CXX='-Wl,'
 
10863
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10864
            if test "$host_cpu" != ia64; then
 
10865
              lt_prog_compiler_pic_CXX='+Z'
 
10866
            fi
 
10867
            ;;
 
10868
          aCC)
 
10869
            lt_prog_compiler_wl_CXX='-Wl,'
 
10870
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
10871
            case "$host_cpu" in
 
10872
            hppa*64*|ia64*)
 
10873
              # +Z the default
 
10874
              ;;
 
10875
            *)
 
10876
              lt_prog_compiler_pic_CXX='+Z'
 
10877
              ;;
 
10878
            esac
 
10879
            ;;
 
10880
          *)
 
10881
            ;;
 
10882
        esac
 
10883
        ;;
 
10884
      irix5* | irix6* | nonstopux*)
 
10885
        case $cc_basename in
 
10886
          CC)
 
10887
            lt_prog_compiler_wl_CXX='-Wl,'
 
10888
            lt_prog_compiler_static_CXX='-non_shared'
 
10889
            # CC pic flag -KPIC is the default.
 
10890
            ;;
 
10891
          *)
 
10892
            ;;
 
10893
        esac
 
10894
        ;;
 
10895
      linux*)
 
10896
        case $cc_basename in
 
10897
          KCC)
 
10898
            # KAI C++ Compiler
 
10899
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10900
            lt_prog_compiler_pic_CXX='-fPIC'
 
10901
            ;;
 
10902
          icpc)
 
10903
            # Intel C++
 
10904
            lt_prog_compiler_wl_CXX='-Wl,'
 
10905
            lt_prog_compiler_pic_CXX='-KPIC'
 
10906
            lt_prog_compiler_static_CXX='-static'
 
10907
            ;;
 
10908
          cxx)
 
10909
            # Compaq C++
 
10910
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10911
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10912
            lt_prog_compiler_pic_CXX=
 
10913
            lt_prog_compiler_static_CXX='-non_shared'
 
10914
            ;;
 
10915
          *)
 
10916
            ;;
 
10917
        esac
 
10918
        ;;
 
10919
      lynxos*)
 
10920
        ;;
 
10921
      m88k*)
 
10922
        ;;
 
10923
      mvs*)
 
10924
        case $cc_basename in
 
10925
          cxx)
 
10926
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
10927
            ;;
 
10928
          *)
 
10929
            ;;
 
10930
        esac
 
10931
        ;;
 
10932
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10933
        ;;
 
10934
      osf3* | osf4* | osf5*)
 
10935
        case $cc_basename in
 
10936
          KCC)
 
10937
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
10938
            ;;
 
10939
          RCC)
 
10940
            # Rational C++ 2.4.1
 
10941
            lt_prog_compiler_pic_CXX='-pic'
 
10942
            ;;
 
10943
          cxx)
 
10944
            # Digital/Compaq C++
 
10945
            lt_prog_compiler_wl_CXX='-Wl,'
 
10946
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
10947
            # Linux and Compaq Tru64 Unix objects are PIC.
 
10948
            lt_prog_compiler_pic_CXX=
 
10949
            lt_prog_compiler_static_CXX='-non_shared'
 
10950
            ;;
 
10951
          *)
 
10952
            ;;
 
10953
        esac
 
10954
        ;;
 
10955
      psos*)
 
10956
        ;;
 
10957
      sco*)
 
10958
        case $cc_basename in
 
10959
          CC)
 
10960
            lt_prog_compiler_pic_CXX='-fPIC'
 
10961
            ;;
 
10962
          *)
 
10963
            ;;
 
10964
        esac
 
10965
        ;;
 
10966
      solaris*)
 
10967
        case $cc_basename in
 
10968
          CC)
 
10969
            # Sun C++ 4.2, 5.x and Centerline C++
 
10970
            lt_prog_compiler_pic_CXX='-KPIC'
 
10971
            lt_prog_compiler_static_CXX='-Bstatic'
 
10972
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
10973
            ;;
 
10974
          gcx)
 
10975
            # Green Hills C++ Compiler
 
10976
            lt_prog_compiler_pic_CXX='-PIC'
 
10977
            ;;
 
10978
          *)
 
10979
            ;;
 
10980
        esac
 
10981
        ;;
 
10982
      sunos4*)
 
10983
        case $cc_basename in
 
10984
          CC)
 
10985
            # Sun C++ 4.x
 
10986
            lt_prog_compiler_pic_CXX='-pic'
 
10987
            lt_prog_compiler_static_CXX='-Bstatic'
 
10988
            ;;
 
10989
          lcc)
 
10990
            # Lucid
 
10991
            lt_prog_compiler_pic_CXX='-pic'
 
10992
            ;;
 
10993
          *)
 
10994
            ;;
 
10995
        esac
 
10996
        ;;
 
10997
      tandem*)
 
10998
        case $cc_basename in
 
10999
          NCC)
 
11000
            # NonStop-UX NCC 3.20
 
11001
            lt_prog_compiler_pic_CXX='-KPIC'
 
11002
            ;;
 
11003
          *)
 
11004
            ;;
 
11005
        esac
 
11006
        ;;
 
11007
      unixware*)
 
11008
        ;;
 
11009
      vxworks*)
 
11010
        ;;
 
11011
      *)
 
11012
        lt_prog_compiler_can_build_shared_CXX=no
 
11013
        ;;
 
11014
    esac
 
11015
  fi
 
11016
 
 
11017
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11018
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11019
 
 
11020
#
 
11021
# Check to make sure the PIC flag actually works.
 
11022
#
 
11023
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11024
 
 
11025
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11026
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11027
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11029
else
 
11030
  lt_prog_compiler_pic_works_CXX=no
 
11031
  ac_outfile=conftest.$ac_objext
 
11032
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11033
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11034
   # Insert the option either (1) after the last *FLAGS variable, or
 
11035
   # (2) before a word containing "conftest.", or (3) at the end.
 
11036
   # Note that $ac_compile itself does not contain backslashes and begins
 
11037
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11038
   # The option is referenced via a variable to avoid confusing sed.
 
11039
   lt_compile=`echo "$ac_compile" | $SED \
 
11040
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11041
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11042
   -e 's:$: $lt_compiler_flag:'`
 
11043
   (eval echo "\"\$as_me:11043: $lt_compile\"" >&5)
 
11044
   (eval "$lt_compile" 2>conftest.err)
 
11045
   ac_status=$?
 
11046
   cat conftest.err >&5
 
11047
   echo "$as_me:11047: \$? = $ac_status" >&5
 
11048
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11049
     # The compiler can only warn and ignore the option if not recognized
 
11050
     # So say no if there are warnings
 
11051
     if test ! -s conftest.err; then
 
11052
       lt_prog_compiler_pic_works_CXX=yes
 
11053
     fi
 
11054
   fi
 
11055
   $rm conftest*
 
11056
 
 
11057
fi
 
11058
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11059
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11060
 
 
11061
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11062
    case $lt_prog_compiler_pic_CXX in
 
11063
     "" | " "*) ;;
 
11064
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11065
     esac
 
11066
else
 
11067
    lt_prog_compiler_pic_CXX=
 
11068
     lt_prog_compiler_can_build_shared_CXX=no
 
11069
fi
 
11070
 
 
11071
fi
 
11072
case "$host_os" in
 
11073
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11074
  *djgpp*)
 
11075
    lt_prog_compiler_pic_CXX=
 
11076
    ;;
 
11077
  *)
 
11078
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11079
    ;;
 
11080
esac
 
11081
 
 
11082
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11083
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11084
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11086
else
 
11087
  lt_cv_prog_compiler_c_o_CXX=no
 
11088
   $rm -r conftest 2>/dev/null
 
11089
   mkdir conftest
 
11090
   cd conftest
 
11091
   mkdir out
 
11092
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11093
 
 
11094
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11095
   # Insert the option either (1) after the last *FLAGS variable, or
 
11096
   # (2) before a word containing "conftest.", or (3) at the end.
 
11097
   # Note that $ac_compile itself does not contain backslashes and begins
 
11098
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11099
   lt_compile=`echo "$ac_compile" | $SED \
 
11100
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11101
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11102
   -e 's:$: $lt_compiler_flag:'`
 
11103
   (eval echo "\"\$as_me:11103: $lt_compile\"" >&5)
 
11104
   (eval "$lt_compile" 2>out/conftest.err)
 
11105
   ac_status=$?
 
11106
   cat out/conftest.err >&5
 
11107
   echo "$as_me:11107: \$? = $ac_status" >&5
 
11108
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11109
   then
 
11110
     # The compiler can only warn and ignore the option if not recognized
 
11111
     # So say no if there are warnings
 
11112
     if test ! -s out/conftest.err; then
 
11113
       lt_cv_prog_compiler_c_o_CXX=yes
 
11114
     fi
 
11115
   fi
 
11116
   chmod u+w .
 
11117
   $rm conftest*
 
11118
   # SGI C++ compiler will create directory out/ii_files/ for
 
11119
   # template instantiation
 
11120
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11121
   $rm out/* && rmdir out
 
11122
   cd ..
 
11123
   rmdir conftest
 
11124
   $rm conftest*
 
11125
 
 
11126
fi
 
11127
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11128
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11129
 
 
11130
 
 
11131
hard_links="nottested"
 
11132
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11133
  # do not overwrite the value of need_locks provided by the user
 
11134
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11135
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11136
  hard_links=yes
 
11137
  $rm conftest*
 
11138
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11139
  touch conftest.a
 
11140
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11141
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11142
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11143
echo "${ECHO_T}$hard_links" >&6
 
11144
  if test "$hard_links" = no; then
 
11145
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11146
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11147
    need_locks=warn
 
11148
  fi
 
11149
else
 
11150
  need_locks=no
 
11151
fi
 
11152
 
 
11153
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11154
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11155
 
 
11156
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11157
  case $host_os in
 
11158
  aix4* | aix5*)
 
11159
    # If we're using GNU nm, then we don't want the "-C" option.
 
11160
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11161
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11162
      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'
 
11163
    else
 
11164
      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'
 
11165
    fi
 
11166
    ;;
 
11167
  pw32*)
 
11168
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11169
  ;;
 
11170
  cygwin* | mingw*)
 
11171
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11172
  ;;
 
11173
  linux*)
 
11174
    link_all_deplibs_CXX=no
 
11175
  ;;
 
11176
  *)
 
11177
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11178
  ;;
 
11179
  esac
 
11180
 
 
11181
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11182
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11183
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11184
 
 
11185
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11186
if test "$GCC" = yes; then
 
11187
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11188
fi
 
11189
 
 
11190
#
 
11191
# Do we need to explicitly link libc?
 
11192
#
 
11193
case "x$archive_cmds_need_lc_CXX" in
 
11194
x|xyes)
 
11195
  # Assume -lc should be added
 
11196
  archive_cmds_need_lc_CXX=yes
 
11197
 
 
11198
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11199
    case $archive_cmds_CXX in
 
11200
    *'~'*)
 
11201
      # FIXME: we may have to deal with multi-command sequences.
 
11202
      ;;
 
11203
    '$CC '*)
 
11204
      # Test whether the compiler implicitly links with -lc since on some
 
11205
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11206
      # to ld, don't add -lc before -lgcc.
 
11207
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11208
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11209
      $rm conftest*
 
11210
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11211
 
 
11212
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11213
  (eval $ac_compile) 2>&5
 
11214
  ac_status=$?
 
11215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11216
  (exit $ac_status); } 2>conftest.err; then
 
11217
        soname=conftest
 
11218
        lib=conftest
 
11219
        libobjs=conftest.$ac_objext
 
11220
        deplibs=
 
11221
        wl=$lt_prog_compiler_wl_CXX
 
11222
        compiler_flags=-v
 
11223
        linker_flags=-v
 
11224
        verstring=
 
11225
        output_objdir=.
 
11226
        libname=conftest
 
11227
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11228
        allow_undefined_flag_CXX=
 
11229
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11230
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11231
  ac_status=$?
 
11232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11233
  (exit $ac_status); }
 
11234
        then
 
11235
          archive_cmds_need_lc_CXX=no
 
11236
        else
 
11237
          archive_cmds_need_lc_CXX=yes
 
11238
        fi
 
11239
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11240
      else
 
11241
        cat conftest.err 1>&5
 
11242
      fi
 
11243
      $rm conftest*
 
11244
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11245
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11246
      ;;
 
11247
    esac
 
11248
  fi
 
11249
  ;;
 
11250
esac
 
11251
 
 
11252
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11253
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11254
library_names_spec=
 
11255
libname_spec='lib$name'
 
11256
soname_spec=
 
11257
shrext_cmds=".so"
 
11258
postinstall_cmds=
 
11259
postuninstall_cmds=
 
11260
finish_cmds=
 
11261
finish_eval=
 
11262
shlibpath_var=
 
11263
shlibpath_overrides_runpath=unknown
 
11264
version_type=none
 
11265
dynamic_linker="$host_os ld.so"
 
11266
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11267
if test "$GCC" = yes; then
 
11268
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11269
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11270
    # if the path contains ";" then we assume it to be the separator
 
11271
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11272
    # assumed that no part of a normal pathname contains ";" but that should
 
11273
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11274
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11275
  else
 
11276
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11277
  fi
 
11278
else
 
11279
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11280
fi
 
11281
need_lib_prefix=unknown
 
11282
hardcode_into_libs=no
 
11283
 
 
11284
# when you set need_version to no, make sure it does not cause -set_version
 
11285
# flags to be left without arguments
 
11286
need_version=unknown
 
11287
 
 
11288
case $host_os in
 
11289
aix3*)
 
11290
  version_type=linux
 
11291
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11292
  shlibpath_var=LIBPATH
 
11293
 
 
11294
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11295
  soname_spec='${libname}${release}${shared_ext}$major'
 
11296
  ;;
 
11297
 
 
11298
aix4* | aix5*)
 
11299
  version_type=linux
 
11300
  need_lib_prefix=no
 
11301
  need_version=no
 
11302
  hardcode_into_libs=yes
 
11303
  if test "$host_cpu" = ia64; then
 
11304
    # AIX 5 supports IA64
 
11305
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11306
    shlibpath_var=LD_LIBRARY_PATH
 
11307
  else
 
11308
    # With GCC up to 2.95.x, collect2 would create an import file
 
11309
    # for dependence libraries.  The import file would start with
 
11310
    # the line `#! .'.  This would cause the generated library to
 
11311
    # depend on `.', always an invalid library.  This was fixed in
 
11312
    # development snapshots of GCC prior to 3.0.
 
11313
    case $host_os in
 
11314
      aix4 | aix4.[01] | aix4.[01].*)
 
11315
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11316
           echo ' yes '
 
11317
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11318
        :
 
11319
      else
 
11320
        can_build_shared=no
 
11321
      fi
 
11322
      ;;
 
11323
    esac
 
11324
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11325
    # soname into executable. Probably we can add versioning support to
 
11326
    # collect2, so additional links can be useful in future.
 
11327
    if test "$aix_use_runtimelinking" = yes; then
 
11328
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11329
      # instead of lib<name>.a to let people know that these are not
 
11330
      # typical AIX shared libraries.
 
11331
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11332
    else
 
11333
      # We preserve .a as extension for shared libraries through AIX4.2
 
11334
      # and later when we are not doing run time linking.
 
11335
      library_names_spec='${libname}${release}.a $libname.a'
 
11336
      soname_spec='${libname}${release}${shared_ext}$major'
 
11337
    fi
 
11338
    shlibpath_var=LIBPATH
 
11339
  fi
 
11340
  ;;
 
11341
 
 
11342
amigaos*)
 
11343
  library_names_spec='$libname.ixlibrary $libname.a'
 
11344
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11345
  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'
 
11346
  ;;
 
11347
 
 
11348
beos*)
 
11349
  library_names_spec='${libname}${shared_ext}'
 
11350
  dynamic_linker="$host_os ld.so"
 
11351
  shlibpath_var=LIBRARY_PATH
 
11352
  ;;
 
11353
 
 
11354
bsdi4*)
 
11355
  version_type=linux
 
11356
  need_version=no
 
11357
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11358
  soname_spec='${libname}${release}${shared_ext}$major'
 
11359
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11360
  shlibpath_var=LD_LIBRARY_PATH
 
11361
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11362
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11363
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11364
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11365
  # libtool to hard-code these into programs
 
11366
  ;;
 
11367
 
 
11368
cygwin* | mingw* | pw32*)
 
11369
  version_type=windows
 
11370
  shrext_cmds=".dll"
 
11371
  need_version=no
 
11372
  need_lib_prefix=no
 
11373
 
 
11374
  case $GCC,$host_os in
 
11375
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11376
    library_names_spec='$libname.dll.a'
 
11377
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11378
    postinstall_cmds='base_file=`basename \${file}`~
 
11379
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11380
      dldir=$destdir/`dirname \$dlpath`~
 
11381
      test -d \$dldir || mkdir -p \$dldir~
 
11382
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11383
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11384
      dlpath=$dir/\$dldll~
 
11385
       $rm \$dlpath'
 
11386
    shlibpath_overrides_runpath=yes
 
11387
 
 
11388
    case $host_os in
 
11389
    cygwin*)
 
11390
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11391
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11392
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11393
      ;;
 
11394
    mingw*)
 
11395
      # MinGW DLLs use traditional 'lib' prefix
 
11396
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11397
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11398
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11399
        # It is most probably a Windows format PATH printed by
 
11400
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11401
        # path with ; separators, and with drive letters. We can handle the
 
11402
        # drive letters (cygwin fileutils understands them), so leave them,
 
11403
        # especially as we might pass files found there to a mingw objdump,
 
11404
        # which wouldn't understand a cygwinified path. Ahh.
 
11405
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11406
      else
 
11407
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11408
      fi
 
11409
      ;;
 
11410
    pw32*)
 
11411
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11412
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11413
      ;;
 
11414
    esac
 
11415
    ;;
 
11416
 
 
11417
  *)
 
11418
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11419
    ;;
 
11420
  esac
 
11421
  dynamic_linker='Win32 ld.exe'
 
11422
  # FIXME: first we should search . and the directory the executable is in
 
11423
  shlibpath_var=PATH
 
11424
  ;;
 
11425
 
 
11426
darwin* | rhapsody*)
 
11427
  dynamic_linker="$host_os dyld"
 
11428
  version_type=darwin
 
11429
  need_lib_prefix=no
 
11430
  need_version=no
 
11431
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11432
  soname_spec='${libname}${release}${major}$shared_ext'
 
11433
  shlibpath_overrides_runpath=yes
 
11434
  shlibpath_var=DYLD_LIBRARY_PATH
 
11435
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
11436
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11437
  if test "$GCC" = yes; then
 
11438
    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"`
 
11439
  else
 
11440
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11441
  fi
 
11442
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11443
  ;;
 
11444
 
 
11445
dgux*)
 
11446
  version_type=linux
 
11447
  need_lib_prefix=no
 
11448
  need_version=no
 
11449
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11450
  soname_spec='${libname}${release}${shared_ext}$major'
 
11451
  shlibpath_var=LD_LIBRARY_PATH
 
11452
  ;;
 
11453
 
 
11454
freebsd1*)
 
11455
  dynamic_linker=no
 
11456
  ;;
 
11457
 
 
11458
kfreebsd*-gnu)
 
11459
  version_type=linux
 
11460
  need_lib_prefix=no
 
11461
  need_version=no
 
11462
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11463
  soname_spec='${libname}${release}${shared_ext}$major'
 
11464
  shlibpath_var=LD_LIBRARY_PATH
 
11465
  shlibpath_overrides_runpath=no
 
11466
  hardcode_into_libs=yes
 
11467
  dynamic_linker='GNU ld.so'
 
11468
  ;;
 
11469
 
 
11470
freebsd*)
 
11471
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
11472
  version_type=freebsd-$objformat
 
11473
  case $version_type in
 
11474
    freebsd-elf*)
 
11475
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11476
      need_version=no
 
11477
      need_lib_prefix=no
 
11478
      ;;
 
11479
    freebsd-*)
 
11480
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11481
      need_version=yes
 
11482
      ;;
 
11483
  esac
 
11484
  shlibpath_var=LD_LIBRARY_PATH
 
11485
  case $host_os in
 
11486
  freebsd2*)
 
11487
    shlibpath_overrides_runpath=yes
 
11488
    ;;
 
11489
  freebsd3.01* | freebsdelf3.01*)
 
11490
    shlibpath_overrides_runpath=yes
 
11491
    hardcode_into_libs=yes
 
11492
    ;;
 
11493
  *) # from 3.2 on
 
11494
    shlibpath_overrides_runpath=no
 
11495
    hardcode_into_libs=yes
 
11496
    ;;
 
11497
  esac
 
11498
  ;;
 
11499
 
 
11500
gnu*)
 
11501
  version_type=linux
 
11502
  need_lib_prefix=no
 
11503
  need_version=no
 
11504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11505
  soname_spec='${libname}${release}${shared_ext}$major'
 
11506
  shlibpath_var=LD_LIBRARY_PATH
 
11507
  hardcode_into_libs=yes
 
11508
  ;;
 
11509
 
 
11510
hpux9* | hpux10* | hpux11*)
 
11511
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11512
  # link against other versions.
 
11513
  version_type=sunos
 
11514
  need_lib_prefix=no
 
11515
  need_version=no
 
11516
  case "$host_cpu" in
 
11517
  ia64*)
 
11518
    shrext_cmds='.so'
 
11519
    hardcode_into_libs=yes
 
11520
    dynamic_linker="$host_os dld.so"
 
11521
    shlibpath_var=LD_LIBRARY_PATH
 
11522
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11523
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11524
    soname_spec='${libname}${release}${shared_ext}$major'
 
11525
    if test "X$HPUX_IA64_MODE" = X32; then
 
11526
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11527
    else
 
11528
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11529
    fi
 
11530
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11531
    ;;
 
11532
   hppa*64*)
 
11533
     shrext_cmds='.sl'
 
11534
     hardcode_into_libs=yes
 
11535
     dynamic_linker="$host_os dld.sl"
 
11536
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11537
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11538
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11539
     soname_spec='${libname}${release}${shared_ext}$major'
 
11540
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11541
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11542
     ;;
 
11543
   *)
 
11544
    shrext_cmds='.sl'
 
11545
    dynamic_linker="$host_os dld.sl"
 
11546
    shlibpath_var=SHLIB_PATH
 
11547
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11548
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11549
    soname_spec='${libname}${release}${shared_ext}$major'
 
11550
    ;;
 
11551
  esac
 
11552
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11553
  postinstall_cmds='chmod 555 $lib'
 
11554
  ;;
 
11555
 
 
11556
irix5* | irix6* | nonstopux*)
 
11557
  case $host_os in
 
11558
    nonstopux*) version_type=nonstopux ;;
 
11559
    *)
 
11560
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11561
                version_type=linux
 
11562
        else
 
11563
                version_type=irix
 
11564
        fi ;;
 
11565
  esac
 
11566
  need_lib_prefix=no
 
11567
  need_version=no
 
11568
  soname_spec='${libname}${release}${shared_ext}$major'
 
11569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11570
  case $host_os in
 
11571
  irix5* | nonstopux*)
 
11572
    libsuff= shlibsuff=
 
11573
    ;;
 
11574
  *)
 
11575
    case $LD in # libtool.m4 will add one of these switches to LD
 
11576
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11577
      libsuff= shlibsuff= libmagic=32-bit;;
 
11578
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11579
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11580
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11581
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11582
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11583
    esac
 
11584
    ;;
 
11585
  esac
 
11586
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11587
  shlibpath_overrides_runpath=no
 
11588
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11589
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11590
  hardcode_into_libs=yes
 
11591
  ;;
 
11592
 
 
11593
# No shared lib support for Linux oldld, aout, or coff.
 
11594
linux*oldld* | linux*aout* | linux*coff*)
 
11595
  dynamic_linker=no
 
11596
  ;;
 
11597
 
 
11598
# This must be Linux ELF.
 
11599
linux*)
 
11600
  version_type=linux
 
11601
  need_lib_prefix=no
 
11602
  need_version=no
 
11603
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11604
  soname_spec='${libname}${release}${shared_ext}$major'
 
11605
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11606
  shlibpath_var=LD_LIBRARY_PATH
 
11607
  shlibpath_overrides_runpath=no
 
11608
  # This implies no fast_install, which is unacceptable.
 
11609
  # Some rework will be needed to allow for fast_install
 
11610
  # before this can be enabled.
 
11611
  hardcode_into_libs=yes
 
11612
 
 
11613
  # Append ld.so.conf contents to the search path
 
11614
  if test -f /etc/ld.so.conf; then
 
11615
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
11616
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11617
  fi
 
11618
 
 
11619
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11620
  # powerpc, because MkLinux only supported shared libraries with the
 
11621
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11622
  # most powerpc-linux boxes support dynamic linking these days and
 
11623
  # people can always --disable-shared, the test was removed, and we
 
11624
  # assume the GNU/Linux dynamic linker is in use.
 
11625
  dynamic_linker='GNU/Linux ld.so'
 
11626
  ;;
 
11627
 
 
11628
netbsdelf*-gnu)
 
11629
  version_type=linux
 
11630
  need_lib_prefix=no
 
11631
  need_version=no
 
11632
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11633
  soname_spec='${libname}${release}${shared_ext}$major'
 
11634
  shlibpath_var=LD_LIBRARY_PATH
 
11635
  shlibpath_overrides_runpath=no
 
11636
  hardcode_into_libs=yes
 
11637
  dynamic_linker='NetBSD ld.elf_so'
 
11638
  ;;
 
11639
 
 
11640
knetbsd*-gnu)
 
11641
  version_type=linux
 
11642
  need_lib_prefix=no
 
11643
  need_version=no
 
11644
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11645
  soname_spec='${libname}${release}${shared_ext}$major'
 
11646
  shlibpath_var=LD_LIBRARY_PATH
 
11647
  shlibpath_overrides_runpath=no
 
11648
  hardcode_into_libs=yes
 
11649
  dynamic_linker='GNU ld.so'
 
11650
  ;;
 
11651
 
 
11652
netbsd*)
 
11653
  version_type=sunos
 
11654
  need_lib_prefix=no
 
11655
  need_version=no
 
11656
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11657
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11658
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11659
    dynamic_linker='NetBSD (a.out) ld.so'
 
11660
  else
 
11661
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11662
    soname_spec='${libname}${release}${shared_ext}$major'
 
11663
    dynamic_linker='NetBSD ld.elf_so'
 
11664
  fi
 
11665
  shlibpath_var=LD_LIBRARY_PATH
 
11666
  shlibpath_overrides_runpath=yes
 
11667
  hardcode_into_libs=yes
 
11668
  ;;
 
11669
 
 
11670
newsos6)
 
11671
  version_type=linux
 
11672
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11673
  shlibpath_var=LD_LIBRARY_PATH
 
11674
  shlibpath_overrides_runpath=yes
 
11675
  ;;
 
11676
 
 
11677
nto-qnx*)
 
11678
  version_type=linux
 
11679
  need_lib_prefix=no
 
11680
  need_version=no
 
11681
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11682
  soname_spec='${libname}${release}${shared_ext}$major'
 
11683
  shlibpath_var=LD_LIBRARY_PATH
 
11684
  shlibpath_overrides_runpath=yes
 
11685
  ;;
 
11686
 
 
11687
openbsd*)
 
11688
  version_type=sunos
 
11689
  need_lib_prefix=no
 
11690
  need_version=yes
 
11691
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11692
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11693
  shlibpath_var=LD_LIBRARY_PATH
 
11694
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11695
    case $host_os in
 
11696
      openbsd2.[89] | openbsd2.[89].*)
 
11697
        shlibpath_overrides_runpath=no
 
11698
        ;;
 
11699
      *)
 
11700
        shlibpath_overrides_runpath=yes
 
11701
        ;;
 
11702
      esac
 
11703
  else
 
11704
    shlibpath_overrides_runpath=yes
 
11705
  fi
 
11706
  ;;
 
11707
 
 
11708
os2*)
 
11709
  libname_spec='$name'
 
11710
  shrext_cmds=".dll"
 
11711
  need_lib_prefix=no
 
11712
  library_names_spec='$libname${shared_ext} $libname.a'
 
11713
  dynamic_linker='OS/2 ld.exe'
 
11714
  shlibpath_var=LIBPATH
 
11715
  ;;
 
11716
 
 
11717
osf3* | osf4* | osf5*)
 
11718
  version_type=osf
 
11719
  need_lib_prefix=no
 
11720
  need_version=no
 
11721
  soname_spec='${libname}${release}${shared_ext}$major'
 
11722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11723
  shlibpath_var=LD_LIBRARY_PATH
 
11724
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11725
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11726
  ;;
 
11727
 
 
11728
sco3.2v5*)
 
11729
  version_type=osf
 
11730
  soname_spec='${libname}${release}${shared_ext}$major'
 
11731
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11732
  shlibpath_var=LD_LIBRARY_PATH
 
11733
  ;;
 
11734
 
 
11735
solaris*)
 
11736
  version_type=linux
 
11737
  need_lib_prefix=no
 
11738
  need_version=no
 
11739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11740
  soname_spec='${libname}${release}${shared_ext}$major'
 
11741
  shlibpath_var=LD_LIBRARY_PATH
 
11742
  shlibpath_overrides_runpath=yes
 
11743
  hardcode_into_libs=yes
 
11744
  # ldd complains unless libraries are executable
 
11745
  postinstall_cmds='chmod +x $lib'
 
11746
  ;;
 
11747
 
 
11748
sunos4*)
 
11749
  version_type=sunos
 
11750
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11751
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11752
  shlibpath_var=LD_LIBRARY_PATH
 
11753
  shlibpath_overrides_runpath=yes
 
11754
  if test "$with_gnu_ld" = yes; then
 
11755
    need_lib_prefix=no
 
11756
  fi
 
11757
  need_version=yes
 
11758
  ;;
 
11759
 
 
11760
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11761
  version_type=linux
 
11762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11763
  soname_spec='${libname}${release}${shared_ext}$major'
 
11764
  shlibpath_var=LD_LIBRARY_PATH
 
11765
  case $host_vendor in
 
11766
    sni)
 
11767
      shlibpath_overrides_runpath=no
 
11768
      need_lib_prefix=no
 
11769
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11770
      runpath_var=LD_RUN_PATH
 
11771
      ;;
 
11772
    siemens)
 
11773
      need_lib_prefix=no
 
11774
      ;;
 
11775
    motorola)
 
11776
      need_lib_prefix=no
 
11777
      need_version=no
 
11778
      shlibpath_overrides_runpath=no
 
11779
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11780
      ;;
 
11781
  esac
 
11782
  ;;
 
11783
 
 
11784
sysv4*MP*)
 
11785
  if test -d /usr/nec ;then
 
11786
    version_type=linux
 
11787
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11788
    soname_spec='$libname${shared_ext}.$major'
 
11789
    shlibpath_var=LD_LIBRARY_PATH
 
11790
  fi
 
11791
  ;;
 
11792
 
 
11793
uts4*)
 
11794
  version_type=linux
 
11795
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11796
  soname_spec='${libname}${release}${shared_ext}$major'
 
11797
  shlibpath_var=LD_LIBRARY_PATH
 
11798
  ;;
 
11799
 
 
11800
*)
 
11801
  dynamic_linker=no
 
11802
  ;;
 
11803
esac
 
11804
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11805
echo "${ECHO_T}$dynamic_linker" >&6
 
11806
test "$dynamic_linker" = no && can_build_shared=no
 
11807
 
 
11808
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11809
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
11810
hardcode_action_CXX=
 
11811
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
11812
   test -n "$runpath_var CXX" || \
 
11813
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
11814
 
 
11815
  # We can hardcode non-existant directories.
 
11816
  if test "$hardcode_direct_CXX" != no &&
 
11817
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
11818
     # have to relink, otherwise we might link with an installed library
 
11819
     # when we should be linking with a yet-to-be-installed one
 
11820
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
11821
     test "$hardcode_minus_L_CXX" != no; then
 
11822
    # Linking always hardcodes the temporary library directory.
 
11823
    hardcode_action_CXX=relink
 
11824
  else
 
11825
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
11826
    hardcode_action_CXX=immediate
 
11827
  fi
 
11828
else
 
11829
  # We cannot hardcode anything, or else we can only hardcode existing
 
11830
  # directories.
 
11831
  hardcode_action_CXX=unsupported
 
11832
fi
 
11833
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11834
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
11835
 
 
11836
if test "$hardcode_action_CXX" = relink; then
 
11837
  # Fast installation is not supported
 
11838
  enable_fast_install=no
 
11839
elif test "$shlibpath_overrides_runpath" = yes ||
 
11840
     test "$enable_shared" = no; then
 
11841
  # Fast installation is not necessary
 
11842
  enable_fast_install=needless
 
11843
fi
 
11844
 
 
11845
striplib=
 
11846
old_striplib=
 
11847
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11848
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11849
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11850
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11851
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11852
  echo "$as_me:$LINENO: result: yes" >&5
 
11853
echo "${ECHO_T}yes" >&6
 
11854
else
 
11855
# FIXME - insert some real tests, host_os isn't really good enough
 
11856
  case $host_os in
 
11857
   darwin*)
 
11858
       if test -n "$STRIP" ; then
 
11859
         striplib="$STRIP -x"
 
11860
         echo "$as_me:$LINENO: result: yes" >&5
 
11861
echo "${ECHO_T}yes" >&6
 
11862
       else
 
11863
  echo "$as_me:$LINENO: result: no" >&5
 
11864
echo "${ECHO_T}no" >&6
 
11865
fi
 
11866
       ;;
 
11867
   *)
 
11868
  echo "$as_me:$LINENO: result: no" >&5
 
11869
echo "${ECHO_T}no" >&6
 
11870
    ;;
 
11871
  esac
 
11872
fi
 
11873
 
 
11874
if test "x$enable_dlopen" != xyes; then
 
11875
  enable_dlopen=unknown
 
11876
  enable_dlopen_self=unknown
 
11877
  enable_dlopen_self_static=unknown
 
11878
else
 
11879
  lt_cv_dlopen=no
 
11880
  lt_cv_dlopen_libs=
 
11881
 
 
11882
  case $host_os in
 
11883
  beos*)
 
11884
    lt_cv_dlopen="load_add_on"
 
11885
    lt_cv_dlopen_libs=
 
11886
    lt_cv_dlopen_self=yes
 
11887
    ;;
 
11888
 
 
11889
  mingw* | pw32*)
 
11890
    lt_cv_dlopen="LoadLibrary"
 
11891
    lt_cv_dlopen_libs=
 
11892
   ;;
 
11893
 
 
11894
  cygwin*)
 
11895
    lt_cv_dlopen="dlopen"
 
11896
    lt_cv_dlopen_libs=
 
11897
   ;;
 
11898
 
 
11899
  darwin*)
 
11900
  # if libdl is installed we need to link against it
 
11901
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11902
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11903
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11905
else
 
11906
  ac_check_lib_save_LIBS=$LIBS
 
11907
LIBS="-ldl  $LIBS"
 
11908
cat >conftest.$ac_ext <<_ACEOF
 
11909
/* confdefs.h.  */
 
11910
_ACEOF
 
11911
cat confdefs.h >>conftest.$ac_ext
 
11912
cat >>conftest.$ac_ext <<_ACEOF
 
11913
/* end confdefs.h.  */
 
11914
 
 
11915
/* Override any gcc2 internal prototype to avoid an error.  */
 
11916
#ifdef __cplusplus
 
11917
extern "C"
 
11918
#endif
 
11919
/* We use char because int might match the return type of a gcc2
 
11920
   builtin and then its argument prototype would still apply.  */
 
11921
char dlopen ();
 
11922
int
 
11923
main ()
 
11924
{
 
11925
dlopen ();
 
11926
  ;
 
11927
  return 0;
 
11928
}
 
11929
_ACEOF
 
11930
rm -f conftest.$ac_objext conftest$ac_exeext
 
11931
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11932
  (eval $ac_link) 2>conftest.er1
 
11933
  ac_status=$?
 
11934
  grep -v '^ *+' conftest.er1 >conftest.err
 
11935
  rm -f conftest.er1
 
11936
  cat conftest.err >&5
 
11937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11938
  (exit $ac_status); } &&
 
11939
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11941
  (eval $ac_try) 2>&5
 
11942
  ac_status=$?
 
11943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11944
  (exit $ac_status); }; } &&
 
11945
         { ac_try='test -s conftest$ac_exeext'
 
11946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11947
  (eval $ac_try) 2>&5
 
11948
  ac_status=$?
 
11949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11950
  (exit $ac_status); }; }; then
 
11951
  ac_cv_lib_dl_dlopen=yes
 
11952
else
 
11953
  echo "$as_me: failed program was:" >&5
 
11954
sed 's/^/| /' conftest.$ac_ext >&5
 
11955
 
 
11956
ac_cv_lib_dl_dlopen=no
 
11957
fi
 
11958
rm -f conftest.err conftest.$ac_objext \
 
11959
      conftest$ac_exeext conftest.$ac_ext
 
11960
LIBS=$ac_check_lib_save_LIBS
 
11961
fi
 
11962
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11963
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11964
if test $ac_cv_lib_dl_dlopen = yes; then
 
11965
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11966
else
 
11967
 
 
11968
    lt_cv_dlopen="dyld"
 
11969
    lt_cv_dlopen_libs=
 
11970
    lt_cv_dlopen_self=yes
 
11971
 
 
11972
fi
 
11973
 
 
11974
   ;;
 
11975
 
 
11976
  *)
 
11977
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11978
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11979
if test "${ac_cv_func_shl_load+set}" = set; then
 
11980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11981
else
 
11982
  cat >conftest.$ac_ext <<_ACEOF
 
11983
/* confdefs.h.  */
 
11984
_ACEOF
 
11985
cat confdefs.h >>conftest.$ac_ext
 
11986
cat >>conftest.$ac_ext <<_ACEOF
 
11987
/* end confdefs.h.  */
 
11988
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11989
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11990
#define shl_load innocuous_shl_load
 
11991
 
 
11992
/* System header to define __stub macros and hopefully few prototypes,
 
11993
    which can conflict with char shl_load (); below.
 
11994
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11995
    <limits.h> exists even on freestanding compilers.  */
 
11996
 
 
11997
#ifdef __STDC__
 
11998
# include <limits.h>
 
11999
#else
 
12000
# include <assert.h>
 
12001
#endif
 
12002
 
 
12003
#undef shl_load
 
12004
 
 
12005
/* Override any gcc2 internal prototype to avoid an error.  */
 
12006
#ifdef __cplusplus
 
12007
extern "C"
 
12008
{
 
12009
#endif
 
12010
/* We use char because int might match the return type of a gcc2
 
12011
   builtin and then its argument prototype would still apply.  */
 
12012
char shl_load ();
 
12013
/* The GNU C library defines this for functions which it implements
 
12014
    to always fail with ENOSYS.  Some functions are actually named
 
12015
    something starting with __ and the normal name is an alias.  */
 
12016
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12017
choke me
 
12018
#else
 
12019
char (*f) () = shl_load;
 
12020
#endif
 
12021
#ifdef __cplusplus
 
12022
}
 
12023
#endif
 
12024
 
 
12025
int
 
12026
main ()
 
12027
{
 
12028
return f != shl_load;
 
12029
  ;
 
12030
  return 0;
 
12031
}
 
12032
_ACEOF
 
12033
rm -f conftest.$ac_objext conftest$ac_exeext
 
12034
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12035
  (eval $ac_link) 2>conftest.er1
 
12036
  ac_status=$?
 
12037
  grep -v '^ *+' conftest.er1 >conftest.err
 
12038
  rm -f conftest.er1
 
12039
  cat conftest.err >&5
 
12040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12041
  (exit $ac_status); } &&
 
12042
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12044
  (eval $ac_try) 2>&5
 
12045
  ac_status=$?
 
12046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12047
  (exit $ac_status); }; } &&
 
12048
         { ac_try='test -s conftest$ac_exeext'
 
12049
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12050
  (eval $ac_try) 2>&5
 
12051
  ac_status=$?
 
12052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12053
  (exit $ac_status); }; }; then
 
12054
  ac_cv_func_shl_load=yes
 
12055
else
 
12056
  echo "$as_me: failed program was:" >&5
 
12057
sed 's/^/| /' conftest.$ac_ext >&5
 
12058
 
 
12059
ac_cv_func_shl_load=no
 
12060
fi
 
12061
rm -f conftest.err conftest.$ac_objext \
 
12062
      conftest$ac_exeext conftest.$ac_ext
 
12063
fi
 
12064
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12065
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12066
if test $ac_cv_func_shl_load = yes; then
 
12067
  lt_cv_dlopen="shl_load"
 
12068
else
 
12069
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12070
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12071
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12073
else
 
12074
  ac_check_lib_save_LIBS=$LIBS
 
12075
LIBS="-ldld  $LIBS"
 
12076
cat >conftest.$ac_ext <<_ACEOF
 
12077
/* confdefs.h.  */
 
12078
_ACEOF
 
12079
cat confdefs.h >>conftest.$ac_ext
 
12080
cat >>conftest.$ac_ext <<_ACEOF
 
12081
/* end confdefs.h.  */
 
12082
 
 
12083
/* Override any gcc2 internal prototype to avoid an error.  */
 
12084
#ifdef __cplusplus
 
12085
extern "C"
 
12086
#endif
 
12087
/* We use char because int might match the return type of a gcc2
 
12088
   builtin and then its argument prototype would still apply.  */
 
12089
char shl_load ();
 
12090
int
 
12091
main ()
 
12092
{
 
12093
shl_load ();
 
12094
  ;
 
12095
  return 0;
 
12096
}
 
12097
_ACEOF
 
12098
rm -f conftest.$ac_objext conftest$ac_exeext
 
12099
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12100
  (eval $ac_link) 2>conftest.er1
 
12101
  ac_status=$?
 
12102
  grep -v '^ *+' conftest.er1 >conftest.err
 
12103
  rm -f conftest.er1
 
12104
  cat conftest.err >&5
 
12105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12106
  (exit $ac_status); } &&
 
12107
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12109
  (eval $ac_try) 2>&5
 
12110
  ac_status=$?
 
12111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12112
  (exit $ac_status); }; } &&
 
12113
         { ac_try='test -s conftest$ac_exeext'
 
12114
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12115
  (eval $ac_try) 2>&5
 
12116
  ac_status=$?
 
12117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12118
  (exit $ac_status); }; }; then
 
12119
  ac_cv_lib_dld_shl_load=yes
 
12120
else
 
12121
  echo "$as_me: failed program was:" >&5
 
12122
sed 's/^/| /' conftest.$ac_ext >&5
 
12123
 
 
12124
ac_cv_lib_dld_shl_load=no
 
12125
fi
 
12126
rm -f conftest.err conftest.$ac_objext \
 
12127
      conftest$ac_exeext conftest.$ac_ext
 
12128
LIBS=$ac_check_lib_save_LIBS
 
12129
fi
 
12130
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12131
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12132
if test $ac_cv_lib_dld_shl_load = yes; then
 
12133
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12134
else
 
12135
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12136
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12137
if test "${ac_cv_func_dlopen+set}" = set; then
 
12138
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12139
else
 
12140
  cat >conftest.$ac_ext <<_ACEOF
 
12141
/* confdefs.h.  */
 
12142
_ACEOF
 
12143
cat confdefs.h >>conftest.$ac_ext
 
12144
cat >>conftest.$ac_ext <<_ACEOF
 
12145
/* end confdefs.h.  */
 
12146
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12147
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12148
#define dlopen innocuous_dlopen
 
12149
 
 
12150
/* System header to define __stub macros and hopefully few prototypes,
 
12151
    which can conflict with char dlopen (); below.
 
12152
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12153
    <limits.h> exists even on freestanding compilers.  */
 
12154
 
 
12155
#ifdef __STDC__
 
12156
# include <limits.h>
 
12157
#else
 
12158
# include <assert.h>
 
12159
#endif
 
12160
 
 
12161
#undef dlopen
 
12162
 
 
12163
/* Override any gcc2 internal prototype to avoid an error.  */
 
12164
#ifdef __cplusplus
 
12165
extern "C"
 
12166
{
 
12167
#endif
 
12168
/* We use char because int might match the return type of a gcc2
 
12169
   builtin and then its argument prototype would still apply.  */
 
12170
char dlopen ();
 
12171
/* The GNU C library defines this for functions which it implements
 
12172
    to always fail with ENOSYS.  Some functions are actually named
 
12173
    something starting with __ and the normal name is an alias.  */
 
12174
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12175
choke me
 
12176
#else
 
12177
char (*f) () = dlopen;
 
12178
#endif
 
12179
#ifdef __cplusplus
 
12180
}
 
12181
#endif
 
12182
 
 
12183
int
 
12184
main ()
 
12185
{
 
12186
return f != dlopen;
 
12187
  ;
 
12188
  return 0;
 
12189
}
 
12190
_ACEOF
 
12191
rm -f conftest.$ac_objext conftest$ac_exeext
 
12192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12193
  (eval $ac_link) 2>conftest.er1
 
12194
  ac_status=$?
 
12195
  grep -v '^ *+' conftest.er1 >conftest.err
 
12196
  rm -f conftest.er1
 
12197
  cat conftest.err >&5
 
12198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12199
  (exit $ac_status); } &&
 
12200
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12202
  (eval $ac_try) 2>&5
 
12203
  ac_status=$?
 
12204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12205
  (exit $ac_status); }; } &&
 
12206
         { ac_try='test -s conftest$ac_exeext'
 
12207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12208
  (eval $ac_try) 2>&5
 
12209
  ac_status=$?
 
12210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12211
  (exit $ac_status); }; }; then
 
12212
  ac_cv_func_dlopen=yes
 
12213
else
 
12214
  echo "$as_me: failed program was:" >&5
 
12215
sed 's/^/| /' conftest.$ac_ext >&5
 
12216
 
 
12217
ac_cv_func_dlopen=no
 
12218
fi
 
12219
rm -f conftest.err conftest.$ac_objext \
 
12220
      conftest$ac_exeext conftest.$ac_ext
 
12221
fi
 
12222
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12223
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12224
if test $ac_cv_func_dlopen = yes; then
 
12225
  lt_cv_dlopen="dlopen"
 
12226
else
 
12227
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12228
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12229
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12231
else
 
12232
  ac_check_lib_save_LIBS=$LIBS
 
12233
LIBS="-ldl  $LIBS"
 
12234
cat >conftest.$ac_ext <<_ACEOF
 
12235
/* confdefs.h.  */
 
12236
_ACEOF
 
12237
cat confdefs.h >>conftest.$ac_ext
 
12238
cat >>conftest.$ac_ext <<_ACEOF
 
12239
/* end confdefs.h.  */
 
12240
 
 
12241
/* Override any gcc2 internal prototype to avoid an error.  */
 
12242
#ifdef __cplusplus
 
12243
extern "C"
 
12244
#endif
 
12245
/* We use char because int might match the return type of a gcc2
 
12246
   builtin and then its argument prototype would still apply.  */
 
12247
char dlopen ();
 
12248
int
 
12249
main ()
 
12250
{
 
12251
dlopen ();
 
12252
  ;
 
12253
  return 0;
 
12254
}
 
12255
_ACEOF
 
12256
rm -f conftest.$ac_objext conftest$ac_exeext
 
12257
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12258
  (eval $ac_link) 2>conftest.er1
 
12259
  ac_status=$?
 
12260
  grep -v '^ *+' conftest.er1 >conftest.err
 
12261
  rm -f conftest.er1
 
12262
  cat conftest.err >&5
 
12263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12264
  (exit $ac_status); } &&
 
12265
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12267
  (eval $ac_try) 2>&5
 
12268
  ac_status=$?
 
12269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12270
  (exit $ac_status); }; } &&
 
12271
         { ac_try='test -s conftest$ac_exeext'
 
12272
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12273
  (eval $ac_try) 2>&5
 
12274
  ac_status=$?
 
12275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12276
  (exit $ac_status); }; }; then
 
12277
  ac_cv_lib_dl_dlopen=yes
 
12278
else
 
12279
  echo "$as_me: failed program was:" >&5
 
12280
sed 's/^/| /' conftest.$ac_ext >&5
 
12281
 
 
12282
ac_cv_lib_dl_dlopen=no
 
12283
fi
 
12284
rm -f conftest.err conftest.$ac_objext \
 
12285
      conftest$ac_exeext conftest.$ac_ext
 
12286
LIBS=$ac_check_lib_save_LIBS
 
12287
fi
 
12288
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12289
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12290
if test $ac_cv_lib_dl_dlopen = yes; then
 
12291
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12292
else
 
12293
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12294
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12295
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12297
else
 
12298
  ac_check_lib_save_LIBS=$LIBS
 
12299
LIBS="-lsvld  $LIBS"
 
12300
cat >conftest.$ac_ext <<_ACEOF
 
12301
/* confdefs.h.  */
 
12302
_ACEOF
 
12303
cat confdefs.h >>conftest.$ac_ext
 
12304
cat >>conftest.$ac_ext <<_ACEOF
 
12305
/* end confdefs.h.  */
 
12306
 
 
12307
/* Override any gcc2 internal prototype to avoid an error.  */
 
12308
#ifdef __cplusplus
 
12309
extern "C"
 
12310
#endif
 
12311
/* We use char because int might match the return type of a gcc2
 
12312
   builtin and then its argument prototype would still apply.  */
 
12313
char dlopen ();
 
12314
int
 
12315
main ()
 
12316
{
 
12317
dlopen ();
 
12318
  ;
 
12319
  return 0;
 
12320
}
 
12321
_ACEOF
 
12322
rm -f conftest.$ac_objext conftest$ac_exeext
 
12323
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12324
  (eval $ac_link) 2>conftest.er1
 
12325
  ac_status=$?
 
12326
  grep -v '^ *+' conftest.er1 >conftest.err
 
12327
  rm -f conftest.er1
 
12328
  cat conftest.err >&5
 
12329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12330
  (exit $ac_status); } &&
 
12331
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12333
  (eval $ac_try) 2>&5
 
12334
  ac_status=$?
 
12335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12336
  (exit $ac_status); }; } &&
 
12337
         { ac_try='test -s conftest$ac_exeext'
 
12338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12339
  (eval $ac_try) 2>&5
 
12340
  ac_status=$?
 
12341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12342
  (exit $ac_status); }; }; then
 
12343
  ac_cv_lib_svld_dlopen=yes
 
12344
else
 
12345
  echo "$as_me: failed program was:" >&5
 
12346
sed 's/^/| /' conftest.$ac_ext >&5
 
12347
 
 
12348
ac_cv_lib_svld_dlopen=no
 
12349
fi
 
12350
rm -f conftest.err conftest.$ac_objext \
 
12351
      conftest$ac_exeext conftest.$ac_ext
 
12352
LIBS=$ac_check_lib_save_LIBS
 
12353
fi
 
12354
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12355
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12356
if test $ac_cv_lib_svld_dlopen = yes; then
 
12357
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12358
else
 
12359
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12360
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12361
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12363
else
 
12364
  ac_check_lib_save_LIBS=$LIBS
 
12365
LIBS="-ldld  $LIBS"
 
12366
cat >conftest.$ac_ext <<_ACEOF
 
12367
/* confdefs.h.  */
 
12368
_ACEOF
 
12369
cat confdefs.h >>conftest.$ac_ext
 
12370
cat >>conftest.$ac_ext <<_ACEOF
 
12371
/* end confdefs.h.  */
 
12372
 
 
12373
/* Override any gcc2 internal prototype to avoid an error.  */
 
12374
#ifdef __cplusplus
 
12375
extern "C"
 
12376
#endif
 
12377
/* We use char because int might match the return type of a gcc2
 
12378
   builtin and then its argument prototype would still apply.  */
 
12379
char dld_link ();
 
12380
int
 
12381
main ()
 
12382
{
 
12383
dld_link ();
 
12384
  ;
 
12385
  return 0;
 
12386
}
 
12387
_ACEOF
 
12388
rm -f conftest.$ac_objext conftest$ac_exeext
 
12389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12390
  (eval $ac_link) 2>conftest.er1
 
12391
  ac_status=$?
 
12392
  grep -v '^ *+' conftest.er1 >conftest.err
 
12393
  rm -f conftest.er1
 
12394
  cat conftest.err >&5
 
12395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12396
  (exit $ac_status); } &&
 
12397
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12399
  (eval $ac_try) 2>&5
 
12400
  ac_status=$?
 
12401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12402
  (exit $ac_status); }; } &&
 
12403
         { ac_try='test -s conftest$ac_exeext'
 
12404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12405
  (eval $ac_try) 2>&5
 
12406
  ac_status=$?
 
12407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12408
  (exit $ac_status); }; }; then
 
12409
  ac_cv_lib_dld_dld_link=yes
 
12410
else
 
12411
  echo "$as_me: failed program was:" >&5
 
12412
sed 's/^/| /' conftest.$ac_ext >&5
 
12413
 
 
12414
ac_cv_lib_dld_dld_link=no
 
12415
fi
 
12416
rm -f conftest.err conftest.$ac_objext \
 
12417
      conftest$ac_exeext conftest.$ac_ext
 
12418
LIBS=$ac_check_lib_save_LIBS
 
12419
fi
 
12420
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12421
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12422
if test $ac_cv_lib_dld_dld_link = yes; then
 
12423
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12424
fi
 
12425
 
 
12426
 
 
12427
fi
 
12428
 
 
12429
 
 
12430
fi
 
12431
 
 
12432
 
 
12433
fi
 
12434
 
 
12435
 
 
12436
fi
 
12437
 
 
12438
 
 
12439
fi
 
12440
 
 
12441
    ;;
 
12442
  esac
 
12443
 
 
12444
  if test "x$lt_cv_dlopen" != xno; then
 
12445
    enable_dlopen=yes
 
12446
  else
 
12447
    enable_dlopen=no
 
12448
  fi
 
12449
 
 
12450
  case $lt_cv_dlopen in
 
12451
  dlopen)
 
12452
    save_CPPFLAGS="$CPPFLAGS"
 
12453
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12454
 
 
12455
    save_LDFLAGS="$LDFLAGS"
 
12456
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12457
 
 
12458
    save_LIBS="$LIBS"
 
12459
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12460
 
 
12461
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12462
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12463
if test "${lt_cv_dlopen_self+set}" = set; then
 
12464
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12465
else
 
12466
          if test "$cross_compiling" = yes; then :
 
12467
  lt_cv_dlopen_self=cross
 
12468
else
 
12469
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12470
  lt_status=$lt_dlunknown
 
12471
  cat > conftest.$ac_ext <<EOF
 
12472
#line 12472 "configure"
 
12473
#include "confdefs.h"
 
12474
 
 
12475
#if HAVE_DLFCN_H
 
12476
#include <dlfcn.h>
 
12477
#endif
 
12478
 
 
12479
#include <stdio.h>
 
12480
 
 
12481
#ifdef RTLD_GLOBAL
 
12482
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12483
#else
 
12484
#  ifdef DL_GLOBAL
 
12485
#    define LT_DLGLOBAL         DL_GLOBAL
 
12486
#  else
 
12487
#    define LT_DLGLOBAL         0
 
12488
#  endif
 
12489
#endif
 
12490
 
 
12491
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12492
   find out it does not work in some platform. */
 
12493
#ifndef LT_DLLAZY_OR_NOW
 
12494
#  ifdef RTLD_LAZY
 
12495
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12496
#  else
 
12497
#    ifdef DL_LAZY
 
12498
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12499
#    else
 
12500
#      ifdef RTLD_NOW
 
12501
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12502
#      else
 
12503
#        ifdef DL_NOW
 
12504
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12505
#        else
 
12506
#          define LT_DLLAZY_OR_NOW      0
 
12507
#        endif
 
12508
#      endif
 
12509
#    endif
 
12510
#  endif
 
12511
#endif
 
12512
 
 
12513
#ifdef __cplusplus
 
12514
extern "C" void exit (int);
 
12515
#endif
 
12516
 
 
12517
void fnord() { int i=42;}
 
12518
int main ()
 
12519
{
 
12520
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12521
  int status = $lt_dlunknown;
 
12522
 
 
12523
  if (self)
 
12524
    {
 
12525
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12526
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12527
      /* dlclose (self); */
 
12528
    }
 
12529
 
 
12530
    exit (status);
 
12531
}
 
12532
EOF
 
12533
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12534
  (eval $ac_link) 2>&5
 
12535
  ac_status=$?
 
12536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12537
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12538
    (./conftest; exit; ) 2>/dev/null
 
12539
    lt_status=$?
 
12540
    case x$lt_status in
 
12541
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12542
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12543
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12544
    esac
 
12545
  else :
 
12546
    # compilation failed
 
12547
    lt_cv_dlopen_self=no
 
12548
  fi
 
12549
fi
 
12550
rm -fr conftest*
 
12551
 
 
12552
 
 
12553
fi
 
12554
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12555
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12556
 
 
12557
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12558
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12559
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12560
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12561
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12562
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12563
else
 
12564
          if test "$cross_compiling" = yes; then :
 
12565
  lt_cv_dlopen_self_static=cross
 
12566
else
 
12567
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12568
  lt_status=$lt_dlunknown
 
12569
  cat > conftest.$ac_ext <<EOF
 
12570
#line 12570 "configure"
 
12571
#include "confdefs.h"
 
12572
 
 
12573
#if HAVE_DLFCN_H
 
12574
#include <dlfcn.h>
 
12575
#endif
 
12576
 
 
12577
#include <stdio.h>
 
12578
 
 
12579
#ifdef RTLD_GLOBAL
 
12580
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12581
#else
 
12582
#  ifdef DL_GLOBAL
 
12583
#    define LT_DLGLOBAL         DL_GLOBAL
 
12584
#  else
 
12585
#    define LT_DLGLOBAL         0
 
12586
#  endif
 
12587
#endif
 
12588
 
 
12589
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12590
   find out it does not work in some platform. */
 
12591
#ifndef LT_DLLAZY_OR_NOW
 
12592
#  ifdef RTLD_LAZY
 
12593
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12594
#  else
 
12595
#    ifdef DL_LAZY
 
12596
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12597
#    else
 
12598
#      ifdef RTLD_NOW
 
12599
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12600
#      else
 
12601
#        ifdef DL_NOW
 
12602
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12603
#        else
 
12604
#          define LT_DLLAZY_OR_NOW      0
 
12605
#        endif
 
12606
#      endif
 
12607
#    endif
 
12608
#  endif
 
12609
#endif
 
12610
 
 
12611
#ifdef __cplusplus
 
12612
extern "C" void exit (int);
 
12613
#endif
 
12614
 
 
12615
void fnord() { int i=42;}
 
12616
int main ()
 
12617
{
 
12618
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12619
  int status = $lt_dlunknown;
 
12620
 
 
12621
  if (self)
 
12622
    {
 
12623
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12624
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12625
      /* dlclose (self); */
 
12626
    }
 
12627
 
 
12628
    exit (status);
 
12629
}
 
12630
EOF
 
12631
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12632
  (eval $ac_link) 2>&5
 
12633
  ac_status=$?
 
12634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12635
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12636
    (./conftest; exit; ) 2>/dev/null
 
12637
    lt_status=$?
 
12638
    case x$lt_status in
 
12639
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12640
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12641
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12642
    esac
 
12643
  else :
 
12644
    # compilation failed
 
12645
    lt_cv_dlopen_self_static=no
 
12646
  fi
 
12647
fi
 
12648
rm -fr conftest*
 
12649
 
 
12650
 
 
12651
fi
 
12652
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12653
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12654
    fi
 
12655
 
 
12656
    CPPFLAGS="$save_CPPFLAGS"
 
12657
    LDFLAGS="$save_LDFLAGS"
 
12658
    LIBS="$save_LIBS"
 
12659
    ;;
 
12660
  esac
 
12661
 
 
12662
  case $lt_cv_dlopen_self in
 
12663
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12664
  *) enable_dlopen_self=unknown ;;
 
12665
  esac
 
12666
 
 
12667
  case $lt_cv_dlopen_self_static in
 
12668
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12669
  *) enable_dlopen_self_static=unknown ;;
 
12670
  esac
 
12671
fi
 
12672
 
 
12673
 
 
12674
# The else clause should only fire when bootstrapping the
 
12675
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12676
# with your package, and you will get complaints that there are
 
12677
# no rules to generate ltmain.sh.
 
12678
if test -f "$ltmain"; then
 
12679
  # See if we are running on zsh, and set the options which allow our commands through
 
12680
  # without removal of \ escapes.
 
12681
  if test -n "${ZSH_VERSION+set}" ; then
 
12682
    setopt NO_GLOB_SUBST
 
12683
  fi
 
12684
  # Now quote all the things that may contain metacharacters while being
 
12685
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12686
  # variables and quote the copies for generation of the libtool script.
 
12687
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12688
    SED SHELL STRIP \
 
12689
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12690
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12691
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12692
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12693
    lt_cv_sys_global_symbol_to_c_name_address \
 
12694
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12695
    old_postinstall_cmds old_postuninstall_cmds \
 
12696
    compiler_CXX \
 
12697
    CC_CXX \
 
12698
    LD_CXX \
 
12699
    lt_prog_compiler_wl_CXX \
 
12700
    lt_prog_compiler_pic_CXX \
 
12701
    lt_prog_compiler_static_CXX \
 
12702
    lt_prog_compiler_no_builtin_flag_CXX \
 
12703
    export_dynamic_flag_spec_CXX \
 
12704
    thread_safe_flag_spec_CXX \
 
12705
    whole_archive_flag_spec_CXX \
 
12706
    enable_shared_with_static_runtimes_CXX \
 
12707
    old_archive_cmds_CXX \
 
12708
    old_archive_from_new_cmds_CXX \
 
12709
    predep_objects_CXX \
 
12710
    postdep_objects_CXX \
 
12711
    predeps_CXX \
 
12712
    postdeps_CXX \
 
12713
    compiler_lib_search_path_CXX \
 
12714
    archive_cmds_CXX \
 
12715
    archive_expsym_cmds_CXX \
 
12716
    postinstall_cmds_CXX \
 
12717
    postuninstall_cmds_CXX \
 
12718
    old_archive_from_expsyms_cmds_CXX \
 
12719
    allow_undefined_flag_CXX \
 
12720
    no_undefined_flag_CXX \
 
12721
    export_symbols_cmds_CXX \
 
12722
    hardcode_libdir_flag_spec_CXX \
 
12723
    hardcode_libdir_flag_spec_ld_CXX \
 
12724
    hardcode_libdir_separator_CXX \
 
12725
    hardcode_automatic_CXX \
 
12726
    module_cmds_CXX \
 
12727
    module_expsym_cmds_CXX \
 
12728
    lt_cv_prog_compiler_c_o_CXX \
 
12729
    exclude_expsyms_CXX \
 
12730
    include_expsyms_CXX; do
 
12731
 
 
12732
    case $var in
 
12733
    old_archive_cmds_CXX | \
 
12734
    old_archive_from_new_cmds_CXX | \
 
12735
    archive_cmds_CXX | \
 
12736
    archive_expsym_cmds_CXX | \
 
12737
    module_cmds_CXX | \
 
12738
    module_expsym_cmds_CXX | \
 
12739
    old_archive_from_expsyms_cmds_CXX | \
 
12740
    export_symbols_cmds_CXX | \
 
12741
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12742
    postinstall_cmds | postuninstall_cmds | \
 
12743
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12744
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12745
      # Double-quote double-evaled strings.
 
12746
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12747
      ;;
 
12748
    *)
 
12749
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12750
      ;;
 
12751
    esac
 
12752
  done
 
12753
 
 
12754
  case $lt_echo in
 
12755
  *'\$0 --fallback-echo"')
 
12756
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12757
    ;;
 
12758
  esac
 
12759
 
 
12760
cfgfile="$ofile"
 
12761
 
 
12762
  cat <<__EOF__ >> "$cfgfile"
 
12763
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12764
 
 
12765
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12766
 
 
12767
# Shell to use when invoking shell scripts.
 
12768
SHELL=$lt_SHELL
 
12769
 
 
12770
# Whether or not to build shared libraries.
 
12771
build_libtool_libs=$enable_shared
 
12772
 
 
12773
# Whether or not to build static libraries.
 
12774
build_old_libs=$enable_static
 
12775
 
 
12776
# Whether or not to add -lc for building shared libraries.
 
12777
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12778
 
 
12779
# Whether or not to disallow shared libs when runtime libs are static
 
12780
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12781
 
 
12782
# Whether or not to optimize for fast installation.
 
12783
fast_install=$enable_fast_install
 
12784
 
 
12785
# The host system.
 
12786
host_alias=$host_alias
 
12787
host=$host
 
12788
 
 
12789
# An echo program that does not interpret backslashes.
 
12790
echo=$lt_echo
 
12791
 
 
12792
# The archiver.
 
12793
AR=$lt_AR
 
12794
AR_FLAGS=$lt_AR_FLAGS
 
12795
 
 
12796
# A C compiler.
 
12797
LTCC=$lt_LTCC
 
12798
 
 
12799
# A language-specific compiler.
 
12800
CC=$lt_compiler_CXX
 
12801
 
 
12802
# Is the compiler the GNU C compiler?
 
12803
with_gcc=$GCC_CXX
 
12804
 
 
12805
# An ERE matcher.
 
12806
EGREP=$lt_EGREP
 
12807
 
 
12808
# The linker used to build libraries.
 
12809
LD=$lt_LD_CXX
 
12810
 
 
12811
# Whether we need hard or soft links.
 
12812
LN_S=$lt_LN_S
 
12813
 
 
12814
# A BSD-compatible nm program.
 
12815
NM=$lt_NM
 
12816
 
 
12817
# A symbol stripping program
 
12818
STRIP=$lt_STRIP
 
12819
 
 
12820
# Used to examine libraries when file_magic_cmd begins "file"
 
12821
MAGIC_CMD=$MAGIC_CMD
 
12822
 
 
12823
# Used on cygwin: DLL creation program.
 
12824
DLLTOOL="$DLLTOOL"
 
12825
 
 
12826
# Used on cygwin: object dumper.
 
12827
OBJDUMP="$OBJDUMP"
 
12828
 
 
12829
# Used on cygwin: assembler.
 
12830
AS="$AS"
 
12831
 
 
12832
# The name of the directory that contains temporary libtool files.
 
12833
objdir=$objdir
 
12834
 
 
12835
# How to create reloadable object files.
 
12836
reload_flag=$lt_reload_flag
 
12837
reload_cmds=$lt_reload_cmds
 
12838
 
 
12839
# How to pass a linker flag through the compiler.
 
12840
wl=$lt_lt_prog_compiler_wl_CXX
 
12841
 
 
12842
# Object file suffix (normally "o").
 
12843
objext="$ac_objext"
 
12844
 
 
12845
# Old archive suffix (normally "a").
 
12846
libext="$libext"
 
12847
 
 
12848
# Shared library suffix (normally ".so").
 
12849
shrext_cmds='$shrext_cmds'
 
12850
 
 
12851
# Executable file suffix (normally "").
 
12852
exeext="$exeext"
 
12853
 
 
12854
# Additional compiler flags for building library objects.
 
12855
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
12856
pic_mode=$pic_mode
 
12857
 
 
12858
# What is the maximum length of a command?
 
12859
max_cmd_len=$lt_cv_sys_max_cmd_len
 
12860
 
 
12861
# Does compiler simultaneously support -c and -o options?
 
12862
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
12863
 
 
12864
# Must we lock files when doing compilation ?
 
12865
need_locks=$lt_need_locks
 
12866
 
 
12867
# Do we need the lib prefix for modules?
 
12868
need_lib_prefix=$need_lib_prefix
 
12869
 
 
12870
# Do we need a version for libraries?
 
12871
need_version=$need_version
 
12872
 
 
12873
# Whether dlopen is supported.
 
12874
dlopen_support=$enable_dlopen
 
12875
 
 
12876
# Whether dlopen of programs is supported.
 
12877
dlopen_self=$enable_dlopen_self
 
12878
 
 
12879
# Whether dlopen of statically linked programs is supported.
 
12880
dlopen_self_static=$enable_dlopen_self_static
 
12881
 
 
12882
# Compiler flag to prevent dynamic linking.
 
12883
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
12884
 
 
12885
# Compiler flag to turn off builtin functions.
 
12886
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
12887
 
 
12888
# Compiler flag to allow reflexive dlopens.
 
12889
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
12890
 
 
12891
# Compiler flag to generate shared objects directly from archives.
 
12892
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
12893
 
 
12894
# Compiler flag to generate thread-safe objects.
 
12895
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
12896
 
 
12897
# Library versioning type.
 
12898
version_type=$version_type
 
12899
 
 
12900
# Format of library name prefix.
 
12901
libname_spec=$lt_libname_spec
 
12902
 
 
12903
# List of archive names.  First name is the real one, the rest are links.
 
12904
# The last name is the one that the linker finds with -lNAME.
 
12905
library_names_spec=$lt_library_names_spec
 
12906
 
 
12907
# The coded name of the library, if different from the real name.
 
12908
soname_spec=$lt_soname_spec
 
12909
 
 
12910
# Commands used to build and install an old-style archive.
 
12911
RANLIB=$lt_RANLIB
 
12912
old_archive_cmds=$lt_old_archive_cmds_CXX
 
12913
old_postinstall_cmds=$lt_old_postinstall_cmds
 
12914
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
12915
 
 
12916
# Create an old-style archive from a shared archive.
 
12917
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
12918
 
 
12919
# Create a temporary old-style archive to link instead of a shared archive.
 
12920
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
12921
 
 
12922
# Commands used to build and install a shared archive.
 
12923
archive_cmds=$lt_archive_cmds_CXX
 
12924
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
12925
postinstall_cmds=$lt_postinstall_cmds
 
12926
postuninstall_cmds=$lt_postuninstall_cmds
 
12927
 
 
12928
# Commands used to build a loadable module (assumed same as above if empty)
 
12929
module_cmds=$lt_module_cmds_CXX
 
12930
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
12931
 
 
12932
# Commands to strip libraries.
 
12933
old_striplib=$lt_old_striplib
 
12934
striplib=$lt_striplib
 
12935
 
 
12936
# Dependencies to place before the objects being linked to create a
 
12937
# shared library.
 
12938
predep_objects=$lt_predep_objects_CXX
 
12939
 
 
12940
# Dependencies to place after the objects being linked to create a
 
12941
# shared library.
 
12942
postdep_objects=$lt_postdep_objects_CXX
 
12943
 
 
12944
# Dependencies to place before the objects being linked to create a
 
12945
# shared library.
 
12946
predeps=$lt_predeps_CXX
 
12947
 
 
12948
# Dependencies to place after the objects being linked to create a
 
12949
# shared library.
 
12950
postdeps=$lt_postdeps_CXX
 
12951
 
 
12952
# The library search path used internally by the compiler when linking
 
12953
# a shared library.
 
12954
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
12955
 
 
12956
# Method to check whether dependent libraries are shared objects.
 
12957
deplibs_check_method=$lt_deplibs_check_method
 
12958
 
 
12959
# Command to use when deplibs_check_method == file_magic.
 
12960
file_magic_cmd=$lt_file_magic_cmd
 
12961
 
 
12962
# Flag that allows shared libraries with undefined symbols to be built.
 
12963
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
12964
 
 
12965
# Flag that forces no undefined symbols.
 
12966
no_undefined_flag=$lt_no_undefined_flag_CXX
 
12967
 
 
12968
# Commands used to finish a libtool library installation in a directory.
 
12969
finish_cmds=$lt_finish_cmds
 
12970
 
 
12971
# Same as above, but a single script fragment to be evaled but not shown.
 
12972
finish_eval=$lt_finish_eval
 
12973
 
 
12974
# Take the output of nm and produce a listing of raw symbols and C names.
 
12975
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
12976
 
 
12977
# Transform the output of nm in a proper C declaration
 
12978
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
12979
 
 
12980
# Transform the output of nm in a C name address pair
 
12981
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
12982
 
 
12983
# This is the shared library runtime path variable.
 
12984
runpath_var=$runpath_var
 
12985
 
 
12986
# This is the shared library path variable.
 
12987
shlibpath_var=$shlibpath_var
 
12988
 
 
12989
# Is shlibpath searched before the hard-coded library search path?
 
12990
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
12991
 
 
12992
# How to hardcode a shared library path into an executable.
 
12993
hardcode_action=$hardcode_action_CXX
 
12994
 
 
12995
# Whether we should hardcode library paths into libraries.
 
12996
hardcode_into_libs=$hardcode_into_libs
 
12997
 
 
12998
# Flag to hardcode \$libdir into a binary during linking.
 
12999
# This must work even if \$libdir does not exist.
 
13000
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13001
 
 
13002
# If ld is used when linking, flag to hardcode \$libdir into
 
13003
# a binary during linking. This must work even if \$libdir does
 
13004
# not exist.
 
13005
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13006
 
 
13007
# Whether we need a single -rpath flag with a separated argument.
 
13008
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13009
 
 
13010
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13011
# resulting binary.
 
13012
hardcode_direct=$hardcode_direct_CXX
 
13013
 
 
13014
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13015
# resulting binary.
 
13016
hardcode_minus_L=$hardcode_minus_L_CXX
 
13017
 
 
13018
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13019
# the resulting binary.
 
13020
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13021
 
 
13022
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13023
# and all subsequent libraries and executables linked against it.
 
13024
hardcode_automatic=$hardcode_automatic_CXX
 
13025
 
 
13026
# Variables whose values should be saved in libtool wrapper scripts and
 
13027
# restored at relink time.
 
13028
variables_saved_for_relink="$variables_saved_for_relink"
 
13029
 
 
13030
# Whether libtool must link a program against all its dependency libraries.
 
13031
link_all_deplibs=$link_all_deplibs_CXX
 
13032
 
 
13033
# Compile-time system search path for libraries
 
13034
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13035
 
 
13036
# Run-time system search path for libraries
 
13037
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13038
 
 
13039
# Fix the shell variable \$srcfile for the compiler.
 
13040
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13041
 
 
13042
# Set to yes if exported symbols are required.
 
13043
always_export_symbols=$always_export_symbols_CXX
 
13044
 
 
13045
# The commands to list exported symbols.
 
13046
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13047
 
 
13048
# The commands to extract the exported symbol list from a shared archive.
 
13049
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13050
 
 
13051
# Symbols that should not be listed in the preloaded symbols.
 
13052
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13053
 
 
13054
# Symbols that must always be exported.
 
13055
include_expsyms=$lt_include_expsyms_CXX
 
13056
 
 
13057
# ### END LIBTOOL TAG CONFIG: $tagname
 
13058
 
 
13059
__EOF__
 
13060
 
 
13061
 
 
13062
else
 
13063
  # If there is no Makefile yet, we rely on a make rule to execute
 
13064
  # `config.status --recheck' to rerun these tests and create the
 
13065
  # libtool script then.
 
13066
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13067
  if test -f "$ltmain_in"; then
 
13068
    test -f Makefile && make "$ltmain"
 
13069
  fi
 
13070
fi
 
13071
 
 
13072
 
 
13073
ac_ext=c
 
13074
ac_cpp='$CPP $CPPFLAGS'
 
13075
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13076
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13077
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13078
 
 
13079
CC=$lt_save_CC
 
13080
LDCXX=$LD
 
13081
LD=$lt_save_LD
 
13082
GCC=$lt_save_GCC
 
13083
with_gnu_ldcxx=$with_gnu_ld
 
13084
with_gnu_ld=$lt_save_with_gnu_ld
 
13085
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13086
lt_cv_path_LD=$lt_save_path_LD
 
13087
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13088
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13089
 
 
13090
        else
 
13091
          tagname=""
 
13092
        fi
 
13093
        ;;
 
13094
 
 
13095
      F77)
 
13096
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13097
 
 
13098
ac_ext=f
 
13099
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13100
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13101
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13102
 
 
13103
 
 
13104
archive_cmds_need_lc_F77=no
 
13105
allow_undefined_flag_F77=
 
13106
always_export_symbols_F77=no
 
13107
archive_expsym_cmds_F77=
 
13108
export_dynamic_flag_spec_F77=
 
13109
hardcode_direct_F77=no
 
13110
hardcode_libdir_flag_spec_F77=
 
13111
hardcode_libdir_flag_spec_ld_F77=
 
13112
hardcode_libdir_separator_F77=
 
13113
hardcode_minus_L_F77=no
 
13114
hardcode_automatic_F77=no
 
13115
module_cmds_F77=
 
13116
module_expsym_cmds_F77=
 
13117
link_all_deplibs_F77=unknown
 
13118
old_archive_cmds_F77=$old_archive_cmds
 
13119
no_undefined_flag_F77=
 
13120
whole_archive_flag_spec_F77=
 
13121
enable_shared_with_static_runtimes_F77=no
 
13122
 
 
13123
# Source file extension for f77 test sources.
 
13124
ac_ext=f
 
13125
 
 
13126
# Object file extension for compiled f77 test sources.
 
13127
objext=o
 
13128
objext_F77=$objext
 
13129
 
 
13130
# Code to be used in simple compile tests
 
13131
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13132
 
 
13133
# Code to be used in simple link tests
 
13134
lt_simple_link_test_code="      program t\n      end\n"
 
13135
 
 
13136
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13137
 
 
13138
# If no C compiler was specified, use CC.
 
13139
LTCC=${LTCC-"$CC"}
 
13140
 
 
13141
# Allow CC to be a program name with arguments.
 
13142
compiler=$CC
 
13143
 
 
13144
 
 
13145
# Allow CC to be a program name with arguments.
 
13146
lt_save_CC="$CC"
 
13147
CC=${F77-"f77"}
 
13148
compiler=$CC
 
13149
compiler_F77=$CC
 
13150
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13151
 
 
13152
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13153
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13154
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13155
echo "${ECHO_T}$can_build_shared" >&6
 
13156
 
 
13157
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13158
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13159
test "$can_build_shared" = "no" && enable_shared=no
 
13160
 
 
13161
# On AIX, shared libraries and static libraries use the same namespace, and
 
13162
# are all built from PIC.
 
13163
case "$host_os" in
 
13164
aix3*)
 
13165
  test "$enable_shared" = yes && enable_static=no
 
13166
  if test -n "$RANLIB"; then
 
13167
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13168
    postinstall_cmds='$RANLIB $lib'
 
13169
  fi
 
13170
  ;;
 
13171
aix4* | aix5*)
 
13172
  test "$enable_shared" = yes && enable_static=no
 
13173
  ;;
 
13174
esac
 
13175
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13176
echo "${ECHO_T}$enable_shared" >&6
 
13177
 
 
13178
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13179
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13180
# Make sure either enable_shared or enable_static is yes.
 
13181
test "$enable_shared" = yes || enable_static=yes
 
13182
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13183
echo "${ECHO_T}$enable_static" >&6
 
13184
 
 
13185
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13186
 
 
13187
GCC_F77="$G77"
 
13188
LD_F77="$LD"
 
13189
 
 
13190
lt_prog_compiler_wl_F77=
 
13191
lt_prog_compiler_pic_F77=
 
13192
lt_prog_compiler_static_F77=
 
13193
 
 
13194
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13195
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13196
 
 
13197
  if test "$GCC" = yes; then
 
13198
    lt_prog_compiler_wl_F77='-Wl,'
 
13199
    lt_prog_compiler_static_F77='-static'
 
13200
 
 
13201
    case $host_os in
 
13202
      aix*)
 
13203
      # All AIX code is PIC.
 
13204
      if test "$host_cpu" = ia64; then
 
13205
        # AIX 5 now supports IA64 processor
 
13206
        lt_prog_compiler_static_F77='-Bstatic'
 
13207
      fi
 
13208
      ;;
 
13209
 
 
13210
    amigaos*)
 
13211
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13212
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13213
      # like `-m68040'.
 
13214
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13215
      ;;
 
13216
 
 
13217
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13218
      # PIC is the default for these OSes.
 
13219
      ;;
 
13220
 
 
13221
    mingw* | pw32* | os2*)
 
13222
      # This hack is so that the source file can tell whether it is being
 
13223
      # built for inclusion in a dll (and should export symbols for example).
 
13224
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13225
      ;;
 
13226
 
 
13227
    darwin* | rhapsody*)
 
13228
      # PIC is the default on this platform
 
13229
      # Common symbols not allowed in MH_DYLIB files
 
13230
      lt_prog_compiler_pic_F77='-fno-common'
 
13231
      ;;
 
13232
 
 
13233
    msdosdjgpp*)
 
13234
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13235
      # on systems that don't support them.
 
13236
      lt_prog_compiler_can_build_shared_F77=no
 
13237
      enable_shared=no
 
13238
      ;;
 
13239
 
 
13240
    sysv4*MP*)
 
13241
      if test -d /usr/nec; then
 
13242
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13243
      fi
 
13244
      ;;
 
13245
 
 
13246
    hpux*)
 
13247
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13248
      # not for PA HP-UX.
 
13249
      case "$host_cpu" in
 
13250
      hppa*64*|ia64*)
 
13251
        # +Z the default
 
13252
        ;;
 
13253
      *)
 
13254
        lt_prog_compiler_pic_F77='-fPIC'
 
13255
        ;;
 
13256
      esac
 
13257
      ;;
 
13258
 
 
13259
    *)
 
13260
      lt_prog_compiler_pic_F77='-fPIC'
 
13261
      ;;
 
13262
    esac
 
13263
  else
 
13264
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13265
    case $host_os in
 
13266
    aix*)
 
13267
      lt_prog_compiler_wl_F77='-Wl,'
 
13268
      if test "$host_cpu" = ia64; then
 
13269
        # AIX 5 now supports IA64 processor
 
13270
        lt_prog_compiler_static_F77='-Bstatic'
 
13271
      else
 
13272
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13273
      fi
 
13274
      ;;
 
13275
 
 
13276
    mingw* | pw32* | os2*)
 
13277
      # This hack is so that the source file can tell whether it is being
 
13278
      # built for inclusion in a dll (and should export symbols for example).
 
13279
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13280
      ;;
 
13281
 
 
13282
    hpux9* | hpux10* | hpux11*)
 
13283
      lt_prog_compiler_wl_F77='-Wl,'
 
13284
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13285
      # not for PA HP-UX.
 
13286
      case "$host_cpu" in
 
13287
      hppa*64*|ia64*)
 
13288
        # +Z the default
 
13289
        ;;
 
13290
      *)
 
13291
        lt_prog_compiler_pic_F77='+Z'
 
13292
        ;;
 
13293
      esac
 
13294
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13295
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13296
      ;;
 
13297
 
 
13298
    irix5* | irix6* | nonstopux*)
 
13299
      lt_prog_compiler_wl_F77='-Wl,'
 
13300
      # PIC (with -KPIC) is the default.
 
13301
      lt_prog_compiler_static_F77='-non_shared'
 
13302
      ;;
 
13303
 
 
13304
    newsos6)
 
13305
      lt_prog_compiler_pic_F77='-KPIC'
 
13306
      lt_prog_compiler_static_F77='-Bstatic'
 
13307
      ;;
 
13308
 
 
13309
    linux*)
 
13310
      case $CC in
 
13311
      icc* | ecc*)
 
13312
        lt_prog_compiler_wl_F77='-Wl,'
 
13313
        lt_prog_compiler_pic_F77='-KPIC'
 
13314
        lt_prog_compiler_static_F77='-static'
 
13315
        ;;
 
13316
      ccc*)
 
13317
        lt_prog_compiler_wl_F77='-Wl,'
 
13318
        # All Alpha code is PIC.
 
13319
        lt_prog_compiler_static_F77='-non_shared'
 
13320
        ;;
 
13321
      esac
 
13322
      ;;
 
13323
 
 
13324
    osf3* | osf4* | osf5*)
 
13325
      lt_prog_compiler_wl_F77='-Wl,'
 
13326
      # All OSF/1 code is PIC.
 
13327
      lt_prog_compiler_static_F77='-non_shared'
 
13328
      ;;
 
13329
 
 
13330
    sco3.2v5*)
 
13331
      lt_prog_compiler_pic_F77='-Kpic'
 
13332
      lt_prog_compiler_static_F77='-dn'
 
13333
      ;;
 
13334
 
 
13335
    solaris*)
 
13336
      lt_prog_compiler_wl_F77='-Wl,'
 
13337
      lt_prog_compiler_pic_F77='-KPIC'
 
13338
      lt_prog_compiler_static_F77='-Bstatic'
 
13339
      ;;
 
13340
 
 
13341
    sunos4*)
 
13342
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13343
      lt_prog_compiler_pic_F77='-PIC'
 
13344
      lt_prog_compiler_static_F77='-Bstatic'
 
13345
      ;;
 
13346
 
 
13347
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13348
      lt_prog_compiler_wl_F77='-Wl,'
 
13349
      lt_prog_compiler_pic_F77='-KPIC'
 
13350
      lt_prog_compiler_static_F77='-Bstatic'
 
13351
      ;;
 
13352
 
 
13353
    sysv4*MP*)
 
13354
      if test -d /usr/nec ;then
 
13355
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13356
        lt_prog_compiler_static_F77='-Bstatic'
 
13357
      fi
 
13358
      ;;
 
13359
 
 
13360
    uts4*)
 
13361
      lt_prog_compiler_pic_F77='-pic'
 
13362
      lt_prog_compiler_static_F77='-Bstatic'
 
13363
      ;;
 
13364
 
 
13365
    *)
 
13366
      lt_prog_compiler_can_build_shared_F77=no
 
13367
      ;;
 
13368
    esac
 
13369
  fi
 
13370
 
 
13371
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13372
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13373
 
 
13374
#
 
13375
# Check to make sure the PIC flag actually works.
 
13376
#
 
13377
if test -n "$lt_prog_compiler_pic_F77"; then
 
13378
 
 
13379
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13380
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13381
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13383
else
 
13384
  lt_prog_compiler_pic_works_F77=no
 
13385
  ac_outfile=conftest.$ac_objext
 
13386
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13387
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13388
   # Insert the option either (1) after the last *FLAGS variable, or
 
13389
   # (2) before a word containing "conftest.", or (3) at the end.
 
13390
   # Note that $ac_compile itself does not contain backslashes and begins
 
13391
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13392
   # The option is referenced via a variable to avoid confusing sed.
 
13393
   lt_compile=`echo "$ac_compile" | $SED \
 
13394
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13395
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13396
   -e 's:$: $lt_compiler_flag:'`
 
13397
   (eval echo "\"\$as_me:13397: $lt_compile\"" >&5)
 
13398
   (eval "$lt_compile" 2>conftest.err)
 
13399
   ac_status=$?
 
13400
   cat conftest.err >&5
 
13401
   echo "$as_me:13401: \$? = $ac_status" >&5
 
13402
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13403
     # The compiler can only warn and ignore the option if not recognized
 
13404
     # So say no if there are warnings
 
13405
     if test ! -s conftest.err; then
 
13406
       lt_prog_compiler_pic_works_F77=yes
 
13407
     fi
 
13408
   fi
 
13409
   $rm conftest*
 
13410
 
 
13411
fi
 
13412
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13413
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13414
 
 
13415
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13416
    case $lt_prog_compiler_pic_F77 in
 
13417
     "" | " "*) ;;
 
13418
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13419
     esac
 
13420
else
 
13421
    lt_prog_compiler_pic_F77=
 
13422
     lt_prog_compiler_can_build_shared_F77=no
 
13423
fi
 
13424
 
 
13425
fi
 
13426
case "$host_os" in
 
13427
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13428
  *djgpp*)
 
13429
    lt_prog_compiler_pic_F77=
 
13430
    ;;
 
13431
  *)
 
13432
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13433
    ;;
 
13434
esac
 
13435
 
 
13436
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13437
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13438
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13439
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13440
else
 
13441
  lt_cv_prog_compiler_c_o_F77=no
 
13442
   $rm -r conftest 2>/dev/null
 
13443
   mkdir conftest
 
13444
   cd conftest
 
13445
   mkdir out
 
13446
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13447
 
 
13448
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13449
   # Insert the option either (1) after the last *FLAGS variable, or
 
13450
   # (2) before a word containing "conftest.", or (3) at the end.
 
13451
   # Note that $ac_compile itself does not contain backslashes and begins
 
13452
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13453
   lt_compile=`echo "$ac_compile" | $SED \
 
13454
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13455
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13456
   -e 's:$: $lt_compiler_flag:'`
 
13457
   (eval echo "\"\$as_me:13457: $lt_compile\"" >&5)
 
13458
   (eval "$lt_compile" 2>out/conftest.err)
 
13459
   ac_status=$?
 
13460
   cat out/conftest.err >&5
 
13461
   echo "$as_me:13461: \$? = $ac_status" >&5
 
13462
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13463
   then
 
13464
     # The compiler can only warn and ignore the option if not recognized
 
13465
     # So say no if there are warnings
 
13466
     if test ! -s out/conftest.err; then
 
13467
       lt_cv_prog_compiler_c_o_F77=yes
 
13468
     fi
 
13469
   fi
 
13470
   chmod u+w .
 
13471
   $rm conftest*
 
13472
   # SGI C++ compiler will create directory out/ii_files/ for
 
13473
   # template instantiation
 
13474
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13475
   $rm out/* && rmdir out
 
13476
   cd ..
 
13477
   rmdir conftest
 
13478
   $rm conftest*
 
13479
 
 
13480
fi
 
13481
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13482
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13483
 
 
13484
 
 
13485
hard_links="nottested"
 
13486
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13487
  # do not overwrite the value of need_locks provided by the user
 
13488
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13489
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13490
  hard_links=yes
 
13491
  $rm conftest*
 
13492
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13493
  touch conftest.a
 
13494
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13495
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13496
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13497
echo "${ECHO_T}$hard_links" >&6
 
13498
  if test "$hard_links" = no; then
 
13499
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13500
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13501
    need_locks=warn
 
13502
  fi
 
13503
else
 
13504
  need_locks=no
 
13505
fi
 
13506
 
 
13507
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13508
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13509
 
 
13510
  runpath_var=
 
13511
  allow_undefined_flag_F77=
 
13512
  enable_shared_with_static_runtimes_F77=no
 
13513
  archive_cmds_F77=
 
13514
  archive_expsym_cmds_F77=
 
13515
  old_archive_From_new_cmds_F77=
 
13516
  old_archive_from_expsyms_cmds_F77=
 
13517
  export_dynamic_flag_spec_F77=
 
13518
  whole_archive_flag_spec_F77=
 
13519
  thread_safe_flag_spec_F77=
 
13520
  hardcode_libdir_flag_spec_F77=
 
13521
  hardcode_libdir_flag_spec_ld_F77=
 
13522
  hardcode_libdir_separator_F77=
 
13523
  hardcode_direct_F77=no
 
13524
  hardcode_minus_L_F77=no
 
13525
  hardcode_shlibpath_var_F77=unsupported
 
13526
  link_all_deplibs_F77=unknown
 
13527
  hardcode_automatic_F77=no
 
13528
  module_cmds_F77=
 
13529
  module_expsym_cmds_F77=
 
13530
  always_export_symbols_F77=no
 
13531
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13532
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13533
  # included in the symbol list
 
13534
  include_expsyms_F77=
 
13535
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13536
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13537
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13538
  # as well as any symbol that contains `d'.
 
13539
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13540
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13541
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13542
  # the symbol is explicitly referenced.  Since portable code cannot
 
13543
  # rely on this symbol name, it's probably fine to never include it in
 
13544
  # preloaded symbol tables.
 
13545
  extract_expsyms_cmds=
 
13546
 
 
13547
  case $host_os in
 
13548
  cygwin* | mingw* | pw32*)
 
13549
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13550
    # When not using gcc, we currently assume that we are using
 
13551
    # Microsoft Visual C++.
 
13552
    if test "$GCC" != yes; then
 
13553
      with_gnu_ld=no
 
13554
    fi
 
13555
    ;;
 
13556
  openbsd*)
 
13557
    with_gnu_ld=no
 
13558
    ;;
 
13559
  esac
 
13560
 
 
13561
  ld_shlibs_F77=yes
 
13562
  if test "$with_gnu_ld" = yes; then
 
13563
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13564
    wlarc='${wl}'
 
13565
 
 
13566
    # See if GNU ld supports shared libraries.
 
13567
    case $host_os in
 
13568
    aix3* | aix4* | aix5*)
 
13569
      # On AIX/PPC, the GNU linker is very broken
 
13570
      if test "$host_cpu" != ia64; then
 
13571
        ld_shlibs_F77=no
 
13572
        cat <<EOF 1>&2
 
13573
 
 
13574
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13575
*** to be unable to reliably create shared libraries on AIX.
 
13576
*** Therefore, libtool is disabling shared libraries support.  If you
 
13577
*** really care for shared libraries, you may want to modify your PATH
 
13578
*** so that a non-GNU linker is found, and then restart.
 
13579
 
 
13580
EOF
 
13581
      fi
 
13582
      ;;
 
13583
 
 
13584
    amigaos*)
 
13585
      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)'
 
13586
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13587
      hardcode_minus_L_F77=yes
 
13588
 
 
13589
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13590
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13591
      # to version 4, is to share data among multiple programs linked
 
13592
      # with the same dynamic library.  Since this doesn't match the
 
13593
      # behavior of shared libraries on other platforms, we can't use
 
13594
      # them.
 
13595
      ld_shlibs_F77=no
 
13596
      ;;
 
13597
 
 
13598
    beos*)
 
13599
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13600
        allow_undefined_flag_F77=unsupported
 
13601
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13602
        # support --undefined.  This deserves some investigation.  FIXME
 
13603
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13604
      else
 
13605
        ld_shlibs_F77=no
 
13606
      fi
 
13607
      ;;
 
13608
 
 
13609
    cygwin* | mingw* | pw32*)
 
13610
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13611
      # as there is no search path for DLLs.
 
13612
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13613
      allow_undefined_flag_F77=unsupported
 
13614
      always_export_symbols_F77=no
 
13615
      enable_shared_with_static_runtimes_F77=yes
 
13616
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13617
 
 
13618
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13619
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13620
        # If the export-symbols file already is a .def file (1st line
 
13621
        # is EXPORTS), use it as is; otherwise, prepend...
 
13622
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13623
          cp $export_symbols $output_objdir/$soname.def;
 
13624
        else
 
13625
          echo EXPORTS > $output_objdir/$soname.def;
 
13626
          cat $export_symbols >> $output_objdir/$soname.def;
 
13627
        fi~
 
13628
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
13629
      else
 
13630
        ld_shlibs=no
 
13631
      fi
 
13632
      ;;
 
13633
 
 
13634
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
13635
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13636
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13637
        wlarc=
 
13638
      else
 
13639
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13640
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13641
      fi
 
13642
      ;;
 
13643
 
 
13644
    solaris* | sysv5*)
 
13645
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13646
        ld_shlibs_F77=no
 
13647
        cat <<EOF 1>&2
 
13648
 
 
13649
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
13650
*** create shared libraries on Solaris systems.  Therefore, libtool
 
13651
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13652
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
13653
*** your PATH or compiler configuration so that the native linker is
 
13654
*** used, and then restart.
 
13655
 
 
13656
EOF
 
13657
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13658
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13659
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13660
      else
 
13661
        ld_shlibs_F77=no
 
13662
      fi
 
13663
      ;;
 
13664
 
 
13665
    sunos4*)
 
13666
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
13667
      wlarc=
 
13668
      hardcode_direct_F77=yes
 
13669
      hardcode_shlibpath_var_F77=no
 
13670
      ;;
 
13671
 
 
13672
  linux*)
 
13673
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13674
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13675
        archive_cmds_F77="$tmp_archive_cmds"
 
13676
      supports_anon_versioning=no
 
13677
      case `$LD -v 2>/dev/null` in
 
13678
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13679
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13680
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13681
        *\ 2.11.*) ;; # other 2.11 versions
 
13682
        *) supports_anon_versioning=yes ;;
 
13683
      esac
 
13684
      if test $supports_anon_versioning = yes; then
 
13685
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13686
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13687
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
13688
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13689
      else
 
13690
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
13691
      fi
 
13692
      link_all_deplibs_F77=no
 
13693
    else
 
13694
      ld_shlibs_F77=no
 
13695
    fi
 
13696
    ;;
 
13697
 
 
13698
    *)
 
13699
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13700
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13701
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13702
      else
 
13703
        ld_shlibs_F77=no
 
13704
      fi
 
13705
      ;;
 
13706
    esac
 
13707
 
 
13708
    if test "$ld_shlibs_F77" = yes; then
 
13709
      runpath_var=LD_RUN_PATH
 
13710
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13711
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13712
      # ancient GNU ld didn't support --whole-archive et. al.
 
13713
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13714
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13715
      else
 
13716
        whole_archive_flag_spec_F77=
 
13717
      fi
 
13718
    fi
 
13719
  else
 
13720
    # PORTME fill in a description of your system's linker (not GNU ld)
 
13721
    case $host_os in
 
13722
    aix3*)
 
13723
      allow_undefined_flag_F77=unsupported
 
13724
      always_export_symbols_F77=yes
 
13725
      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'
 
13726
      # Note: this linker hardcodes the directories in LIBPATH if there
 
13727
      # are no directories specified by -L.
 
13728
      hardcode_minus_L_F77=yes
 
13729
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13730
        # Neither direct hardcoding nor static linking is supported with a
 
13731
        # broken collect2.
 
13732
        hardcode_direct_F77=unsupported
 
13733
      fi
 
13734
      ;;
 
13735
 
 
13736
    aix4* | aix5*)
 
13737
      if test "$host_cpu" = ia64; then
 
13738
        # On IA64, the linker does run time linking by default, so we don't
 
13739
        # have to do anything special.
 
13740
        aix_use_runtimelinking=no
 
13741
        exp_sym_flag='-Bexport'
 
13742
        no_entry_flag=""
 
13743
      else
 
13744
        # If we're using GNU nm, then we don't want the "-C" option.
 
13745
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13746
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13747
          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'
 
13748
        else
 
13749
          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'
 
13750
        fi
 
13751
        aix_use_runtimelinking=no
 
13752
 
 
13753
        # Test if we are trying to use run time linking or normal
 
13754
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13755
        # need to do runtime linking.
 
13756
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
13757
          for ld_flag in $LDFLAGS; do
 
13758
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
13759
            aix_use_runtimelinking=yes
 
13760
            break
 
13761
          fi
 
13762
          done
 
13763
        esac
 
13764
 
 
13765
        exp_sym_flag='-bexport'
 
13766
        no_entry_flag='-bnoentry'
 
13767
      fi
 
13768
 
 
13769
      # When large executables or shared objects are built, AIX ld can
 
13770
      # have problems creating the table of contents.  If linking a library
 
13771
      # or program results in "error TOC overflow" add -mminimal-toc to
 
13772
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13773
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13774
 
 
13775
      archive_cmds_F77=''
 
13776
      hardcode_direct_F77=yes
 
13777
      hardcode_libdir_separator_F77=':'
 
13778
      link_all_deplibs_F77=yes
 
13779
 
 
13780
      if test "$GCC" = yes; then
 
13781
        case $host_os in aix4.012|aix4.012.*)
 
13782
        # We only want to do this on AIX 4.2 and lower, the check
 
13783
        # below for broken collect2 doesn't work under 4.3+
 
13784
          collect2name=`${CC} -print-prog-name=collect2`
 
13785
          if test -f "$collect2name" && \
 
13786
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
13787
          then
 
13788
          # We have reworked collect2
 
13789
          hardcode_direct_F77=yes
 
13790
          else
 
13791
          # We have old collect2
 
13792
          hardcode_direct_F77=unsupported
 
13793
          # It fails to find uninstalled libraries when the uninstalled
 
13794
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
13795
          # to unsupported forces relinking
 
13796
          hardcode_minus_L_F77=yes
 
13797
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13798
          hardcode_libdir_separator_F77=
 
13799
          fi
 
13800
        esac
 
13801
        shared_flag='-shared'
 
13802
      else
 
13803
        # not using gcc
 
13804
        if test "$host_cpu" = ia64; then
 
13805
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13806
        # chokes on -Wl,-G. The following line is correct:
 
13807
          shared_flag='-G'
 
13808
        else
 
13809
        if test "$aix_use_runtimelinking" = yes; then
 
13810
            shared_flag='${wl}-G'
 
13811
          else
 
13812
            shared_flag='${wl}-bM:SRE'
 
13813
        fi
 
13814
        fi
 
13815
      fi
 
13816
 
 
13817
      # It seems that -bexpall does not export symbols beginning with
 
13818
      # underscore (_), so it is better to generate a list of symbols to export.
 
13819
      always_export_symbols_F77=yes
 
13820
      if test "$aix_use_runtimelinking" = yes; then
 
13821
        # Warning - without using the other runtime loading flags (-brtl),
 
13822
        # -berok will link without error, but may produce a broken library.
 
13823
        allow_undefined_flag_F77='-berok'
 
13824
       # Determine the default libpath from the value encoded in an empty executable.
 
13825
       cat >conftest.$ac_ext <<_ACEOF
 
13826
      program main
 
13827
 
 
13828
      end
 
13829
_ACEOF
 
13830
rm -f conftest.$ac_objext conftest$ac_exeext
 
13831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13832
  (eval $ac_link) 2>conftest.er1
 
13833
  ac_status=$?
 
13834
  grep -v '^ *+' conftest.er1 >conftest.err
 
13835
  rm -f conftest.er1
 
13836
  cat conftest.err >&5
 
13837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13838
  (exit $ac_status); } &&
 
13839
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13841
  (eval $ac_try) 2>&5
 
13842
  ac_status=$?
 
13843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13844
  (exit $ac_status); }; } &&
 
13845
         { ac_try='test -s conftest$ac_exeext'
 
13846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13847
  (eval $ac_try) 2>&5
 
13848
  ac_status=$?
 
13849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13850
  (exit $ac_status); }; }; then
 
13851
 
 
13852
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13853
}'`
 
13854
# Check for a 64-bit object if we didn't find anything.
 
13855
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; }
 
13856
}'`; fi
 
13857
else
 
13858
  echo "$as_me: failed program was:" >&5
 
13859
sed 's/^/| /' conftest.$ac_ext >&5
 
13860
 
 
13861
fi
 
13862
rm -f conftest.err conftest.$ac_objext \
 
13863
      conftest$ac_exeext conftest.$ac_ext
 
13864
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13865
 
 
13866
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13867
        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"
 
13868
       else
 
13869
        if test "$host_cpu" = ia64; then
 
13870
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
13871
          allow_undefined_flag_F77="-z nodefs"
 
13872
          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"
 
13873
        else
 
13874
         # Determine the default libpath from the value encoded in an empty executable.
 
13875
         cat >conftest.$ac_ext <<_ACEOF
 
13876
      program main
 
13877
 
 
13878
      end
 
13879
_ACEOF
 
13880
rm -f conftest.$ac_objext conftest$ac_exeext
 
13881
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13882
  (eval $ac_link) 2>conftest.er1
 
13883
  ac_status=$?
 
13884
  grep -v '^ *+' conftest.er1 >conftest.err
 
13885
  rm -f conftest.er1
 
13886
  cat conftest.err >&5
 
13887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13888
  (exit $ac_status); } &&
 
13889
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
13890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13891
  (eval $ac_try) 2>&5
 
13892
  ac_status=$?
 
13893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13894
  (exit $ac_status); }; } &&
 
13895
         { ac_try='test -s conftest$ac_exeext'
 
13896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13897
  (eval $ac_try) 2>&5
 
13898
  ac_status=$?
 
13899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13900
  (exit $ac_status); }; }; then
 
13901
 
 
13902
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
13903
}'`
 
13904
# Check for a 64-bit object if we didn't find anything.
 
13905
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; }
 
13906
}'`; fi
 
13907
else
 
13908
  echo "$as_me: failed program was:" >&5
 
13909
sed 's/^/| /' conftest.$ac_ext >&5
 
13910
 
 
13911
fi
 
13912
rm -f conftest.err conftest.$ac_objext \
 
13913
      conftest$ac_exeext conftest.$ac_ext
 
13914
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13915
 
 
13916
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13917
          # Warning - without using the other run time loading flags,
 
13918
          # -berok will link without error, but may produce a broken library.
 
13919
          no_undefined_flag_F77=' ${wl}-bernotok'
 
13920
          allow_undefined_flag_F77=' ${wl}-berok'
 
13921
          # -bexpall does not export symbols beginning with underscore (_)
 
13922
          always_export_symbols_F77=yes
 
13923
          # Exported symbols can be pulled into shared objects from archives
 
13924
          whole_archive_flag_spec_F77=' '
 
13925
          archive_cmds_need_lc_F77=yes
 
13926
          # This is similar to how AIX traditionally builds it's shared libraries.
 
13927
          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'
 
13928
        fi
 
13929
      fi
 
13930
      ;;
 
13931
 
 
13932
    amigaos*)
 
13933
      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)'
 
13934
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13935
      hardcode_minus_L_F77=yes
 
13936
      # see comment about different semantics on the GNU ld section
 
13937
      ld_shlibs_F77=no
 
13938
      ;;
 
13939
 
 
13940
    bsdi4*)
 
13941
      export_dynamic_flag_spec_F77=-rdynamic
 
13942
      ;;
 
13943
 
 
13944
    cygwin* | mingw* | pw32*)
 
13945
      # When not using gcc, we currently assume that we are using
 
13946
      # Microsoft Visual C++.
 
13947
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
13948
      # no search path for DLLs.
 
13949
      hardcode_libdir_flag_spec_F77=' '
 
13950
      allow_undefined_flag_F77=unsupported
 
13951
      # Tell ltmain to make .lib files, not .a files.
 
13952
      libext=lib
 
13953
      # Tell ltmain to make .dll files, not .so files.
 
13954
      shrext_cmds=".dll"
 
13955
      # FIXME: Setting linknames here is a bad hack.
 
13956
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
13957
      # The linker will automatically build a .lib file if we build a DLL.
 
13958
      old_archive_From_new_cmds_F77='true'
 
13959
      # FIXME: Should let the user specify the lib program.
 
13960
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
13961
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13962
      enable_shared_with_static_runtimes_F77=yes
 
13963
      ;;
 
13964
 
 
13965
    darwin* | rhapsody*)
 
13966
    if test "$GXX" = yes ; then
 
13967
      archive_cmds_need_lc_F77=no
 
13968
      case "$host_os" in
 
13969
      rhapsody* | darwin1.[012])
 
13970
        allow_undefined_flag_F77='-undefined suppress'
 
13971
        ;;
 
13972
      *) # Darwin 1.3 on
 
13973
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13974
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13975
      else
 
13976
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
13977
          10.[012])
 
13978
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
13979
            ;;
 
13980
          10.*)
 
13981
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
13982
            ;;
 
13983
        esac
 
13984
      fi
 
13985
        ;;
 
13986
      esac
 
13987
        lt_int_apple_cc_single_mod=no
 
13988
        output_verbose_link_cmd='echo'
 
13989
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
13990
          lt_int_apple_cc_single_mod=yes
 
13991
        fi
 
13992
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
13993
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13994
        else
 
13995
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13996
      fi
 
13997
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13998
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
13999
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14000
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14001
        else
 
14002
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14003
        fi
 
14004
          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}'
 
14005
      hardcode_direct_F77=no
 
14006
      hardcode_automatic_F77=yes
 
14007
      hardcode_shlibpath_var_F77=unsupported
 
14008
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14009
      link_all_deplibs_F77=yes
 
14010
    else
 
14011
      ld_shlibs_F77=no
 
14012
    fi
 
14013
      ;;
 
14014
 
 
14015
    dgux*)
 
14016
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14017
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14018
      hardcode_shlibpath_var_F77=no
 
14019
      ;;
 
14020
 
 
14021
    freebsd1*)
 
14022
      ld_shlibs_F77=no
 
14023
      ;;
 
14024
 
 
14025
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14026
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14027
    # does not break anything, and helps significantly (at the cost of a little
 
14028
    # extra space).
 
14029
    freebsd2.2*)
 
14030
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14031
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14032
      hardcode_direct_F77=yes
 
14033
      hardcode_shlibpath_var_F77=no
 
14034
      ;;
 
14035
 
 
14036
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14037
    freebsd2*)
 
14038
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14039
      hardcode_direct_F77=yes
 
14040
      hardcode_minus_L_F77=yes
 
14041
      hardcode_shlibpath_var_F77=no
 
14042
      ;;
 
14043
 
 
14044
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14045
    freebsd* | kfreebsd*-gnu)
 
14046
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14047
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14048
      hardcode_direct_F77=yes
 
14049
      hardcode_shlibpath_var_F77=no
 
14050
      ;;
 
14051
 
 
14052
    hpux9*)
 
14053
      if test "$GCC" = yes; then
 
14054
        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'
 
14055
      else
 
14056
        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'
 
14057
      fi
 
14058
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14059
      hardcode_libdir_separator_F77=:
 
14060
      hardcode_direct_F77=yes
 
14061
 
 
14062
      # hardcode_minus_L: Not really in the search PATH,
 
14063
      # but as the default location of the library.
 
14064
      hardcode_minus_L_F77=yes
 
14065
      export_dynamic_flag_spec_F77='${wl}-E'
 
14066
      ;;
 
14067
 
 
14068
    hpux10* | hpux11*)
 
14069
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14070
        case "$host_cpu" in
 
14071
        hppa*64*|ia64*)
 
14072
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14073
          ;;
 
14074
        *)
 
14075
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14076
          ;;
 
14077
        esac
 
14078
      else
 
14079
        case "$host_cpu" in
 
14080
        hppa*64*|ia64*)
 
14081
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14082
          ;;
 
14083
        *)
 
14084
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14085
          ;;
 
14086
        esac
 
14087
      fi
 
14088
      if test "$with_gnu_ld" = no; then
 
14089
        case "$host_cpu" in
 
14090
        hppa*64*)
 
14091
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14092
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14093
          hardcode_libdir_separator_F77=:
 
14094
          hardcode_direct_F77=no
 
14095
          hardcode_shlibpath_var_F77=no
 
14096
          ;;
 
14097
        ia64*)
 
14098
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14099
          hardcode_direct_F77=no
 
14100
          hardcode_shlibpath_var_F77=no
 
14101
 
 
14102
          # hardcode_minus_L: Not really in the search PATH,
 
14103
          # but as the default location of the library.
 
14104
          hardcode_minus_L_F77=yes
 
14105
          ;;
 
14106
        *)
 
14107
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14108
          hardcode_libdir_separator_F77=:
 
14109
          hardcode_direct_F77=yes
 
14110
          export_dynamic_flag_spec_F77='${wl}-E'
 
14111
 
 
14112
          # hardcode_minus_L: Not really in the search PATH,
 
14113
          # but as the default location of the library.
 
14114
          hardcode_minus_L_F77=yes
 
14115
          ;;
 
14116
        esac
 
14117
      fi
 
14118
      ;;
 
14119
 
 
14120
    irix5* | irix6* | nonstopux*)
 
14121
      if test "$GCC" = yes; then
 
14122
        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'
 
14123
      else
 
14124
        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'
 
14125
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14126
      fi
 
14127
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14128
      hardcode_libdir_separator_F77=:
 
14129
      link_all_deplibs_F77=yes
 
14130
      ;;
 
14131
 
 
14132
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14133
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14134
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14135
      else
 
14136
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14137
      fi
 
14138
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14139
      hardcode_direct_F77=yes
 
14140
      hardcode_shlibpath_var_F77=no
 
14141
      ;;
 
14142
 
 
14143
    newsos6)
 
14144
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14145
      hardcode_direct_F77=yes
 
14146
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14147
      hardcode_libdir_separator_F77=:
 
14148
      hardcode_shlibpath_var_F77=no
 
14149
      ;;
 
14150
 
 
14151
    openbsd*)
 
14152
      hardcode_direct_F77=yes
 
14153
      hardcode_shlibpath_var_F77=no
 
14154
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14155
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14156
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14157
        export_dynamic_flag_spec_F77='${wl}-E'
 
14158
      else
 
14159
       case $host_os in
 
14160
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14161
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14162
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14163
           ;;
 
14164
         *)
 
14165
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14166
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14167
           ;;
 
14168
       esac
 
14169
      fi
 
14170
      ;;
 
14171
 
 
14172
    os2*)
 
14173
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14174
      hardcode_minus_L_F77=yes
 
14175
      allow_undefined_flag_F77=unsupported
 
14176
      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'
 
14177
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14178
      ;;
 
14179
 
 
14180
    osf3*)
 
14181
      if test "$GCC" = yes; then
 
14182
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14183
        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'
 
14184
      else
 
14185
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14186
        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'
 
14187
      fi
 
14188
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14189
      hardcode_libdir_separator_F77=:
 
14190
      ;;
 
14191
 
 
14192
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14193
      if test "$GCC" = yes; then
 
14194
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14195
        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'
 
14196
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14197
      else
 
14198
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14199
        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'
 
14200
        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~
 
14201
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
14202
 
 
14203
        # Both c and cxx compiler support -rpath directly
 
14204
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14205
      fi
 
14206
      hardcode_libdir_separator_F77=:
 
14207
      ;;
 
14208
 
 
14209
    sco3.2v5*)
 
14210
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14211
      hardcode_shlibpath_var_F77=no
 
14212
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14213
      runpath_var=LD_RUN_PATH
 
14214
      hardcode_runpath_var=yes
 
14215
      ;;
 
14216
 
 
14217
    solaris*)
 
14218
      no_undefined_flag_F77=' -z text'
 
14219
      if test "$GCC" = yes; then
 
14220
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14221
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14222
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14223
      else
 
14224
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14225
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14226
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14227
      fi
 
14228
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14229
      hardcode_shlibpath_var_F77=no
 
14230
      case $host_os in
 
14231
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14232
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14233
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14234
      esac
 
14235
      link_all_deplibs_F77=yes
 
14236
      ;;
 
14237
 
 
14238
    sunos4*)
 
14239
      if test "x$host_vendor" = xsequent; then
 
14240
        # Use $CC to link under sequent, because it throws in some extra .o
 
14241
        # files that make .init and .fini sections work.
 
14242
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14243
      else
 
14244
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14245
      fi
 
14246
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14247
      hardcode_direct_F77=yes
 
14248
      hardcode_minus_L_F77=yes
 
14249
      hardcode_shlibpath_var_F77=no
 
14250
      ;;
 
14251
 
 
14252
    sysv4)
 
14253
      case $host_vendor in
 
14254
        sni)
 
14255
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14256
          hardcode_direct_F77=yes # is this really true???
 
14257
        ;;
 
14258
        siemens)
 
14259
          ## LD is ld it makes a PLAMLIB
 
14260
          ## CC just makes a GrossModule.
 
14261
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14262
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14263
          hardcode_direct_F77=no
 
14264
        ;;
 
14265
        motorola)
 
14266
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14267
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14268
        ;;
 
14269
      esac
 
14270
      runpath_var='LD_RUN_PATH'
 
14271
      hardcode_shlibpath_var_F77=no
 
14272
      ;;
 
14273
 
 
14274
    sysv4.3*)
 
14275
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14276
      hardcode_shlibpath_var_F77=no
 
14277
      export_dynamic_flag_spec_F77='-Bexport'
 
14278
      ;;
 
14279
 
 
14280
    sysv4*MP*)
 
14281
      if test -d /usr/nec; then
 
14282
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14283
        hardcode_shlibpath_var_F77=no
 
14284
        runpath_var=LD_RUN_PATH
 
14285
        hardcode_runpath_var=yes
 
14286
        ld_shlibs_F77=yes
 
14287
      fi
 
14288
      ;;
 
14289
 
 
14290
    sysv4.2uw2*)
 
14291
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14292
      hardcode_direct_F77=yes
 
14293
      hardcode_minus_L_F77=no
 
14294
      hardcode_shlibpath_var_F77=no
 
14295
      hardcode_runpath_var=yes
 
14296
      runpath_var=LD_RUN_PATH
 
14297
      ;;
 
14298
 
 
14299
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14300
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14301
      if test "$GCC" = yes; then
 
14302
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14303
      else
 
14304
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14305
      fi
 
14306
      runpath_var='LD_RUN_PATH'
 
14307
      hardcode_shlibpath_var_F77=no
 
14308
      ;;
 
14309
 
 
14310
    sysv5*)
 
14311
      no_undefined_flag_F77=' -z text'
 
14312
      # $CC -shared without GNU ld will not create a library from C++
 
14313
      # object files and a static libstdc++, better avoid it by now
 
14314
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14315
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14316
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14317
      hardcode_libdir_flag_spec_F77=
 
14318
      hardcode_shlibpath_var_F77=no
 
14319
      runpath_var='LD_RUN_PATH'
 
14320
      ;;
 
14321
 
 
14322
    uts4*)
 
14323
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14324
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14325
      hardcode_shlibpath_var_F77=no
 
14326
      ;;
 
14327
 
 
14328
    *)
 
14329
      ld_shlibs_F77=no
 
14330
      ;;
 
14331
    esac
 
14332
  fi
 
14333
 
 
14334
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14335
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14336
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14337
 
 
14338
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14339
if test "$GCC" = yes; then
 
14340
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14341
fi
 
14342
 
 
14343
#
 
14344
# Do we need to explicitly link libc?
 
14345
#
 
14346
case "x$archive_cmds_need_lc_F77" in
 
14347
x|xyes)
 
14348
  # Assume -lc should be added
 
14349
  archive_cmds_need_lc_F77=yes
 
14350
 
 
14351
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14352
    case $archive_cmds_F77 in
 
14353
    *'~'*)
 
14354
      # FIXME: we may have to deal with multi-command sequences.
 
14355
      ;;
 
14356
    '$CC '*)
 
14357
      # Test whether the compiler implicitly links with -lc since on some
 
14358
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14359
      # to ld, don't add -lc before -lgcc.
 
14360
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14361
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14362
      $rm conftest*
 
14363
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14364
 
 
14365
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14366
  (eval $ac_compile) 2>&5
 
14367
  ac_status=$?
 
14368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14369
  (exit $ac_status); } 2>conftest.err; then
 
14370
        soname=conftest
 
14371
        lib=conftest
 
14372
        libobjs=conftest.$ac_objext
 
14373
        deplibs=
 
14374
        wl=$lt_prog_compiler_wl_F77
 
14375
        compiler_flags=-v
 
14376
        linker_flags=-v
 
14377
        verstring=
 
14378
        output_objdir=.
 
14379
        libname=conftest
 
14380
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14381
        allow_undefined_flag_F77=
 
14382
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14383
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14384
  ac_status=$?
 
14385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14386
  (exit $ac_status); }
 
14387
        then
 
14388
          archive_cmds_need_lc_F77=no
 
14389
        else
 
14390
          archive_cmds_need_lc_F77=yes
 
14391
        fi
 
14392
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14393
      else
 
14394
        cat conftest.err 1>&5
 
14395
      fi
 
14396
      $rm conftest*
 
14397
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14398
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14399
      ;;
 
14400
    esac
 
14401
  fi
 
14402
  ;;
 
14403
esac
 
14404
 
 
14405
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14406
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14407
library_names_spec=
 
14408
libname_spec='lib$name'
 
14409
soname_spec=
 
14410
shrext_cmds=".so"
 
14411
postinstall_cmds=
 
14412
postuninstall_cmds=
 
14413
finish_cmds=
 
14414
finish_eval=
 
14415
shlibpath_var=
 
14416
shlibpath_overrides_runpath=unknown
 
14417
version_type=none
 
14418
dynamic_linker="$host_os ld.so"
 
14419
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14420
if test "$GCC" = yes; then
 
14421
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14422
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14423
    # if the path contains ";" then we assume it to be the separator
 
14424
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14425
    # assumed that no part of a normal pathname contains ";" but that should
 
14426
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14427
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14428
  else
 
14429
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14430
  fi
 
14431
else
 
14432
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14433
fi
 
14434
need_lib_prefix=unknown
 
14435
hardcode_into_libs=no
 
14436
 
 
14437
# when you set need_version to no, make sure it does not cause -set_version
 
14438
# flags to be left without arguments
 
14439
need_version=unknown
 
14440
 
 
14441
case $host_os in
 
14442
aix3*)
 
14443
  version_type=linux
 
14444
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14445
  shlibpath_var=LIBPATH
 
14446
 
 
14447
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14448
  soname_spec='${libname}${release}${shared_ext}$major'
 
14449
  ;;
 
14450
 
 
14451
aix4* | aix5*)
 
14452
  version_type=linux
 
14453
  need_lib_prefix=no
 
14454
  need_version=no
 
14455
  hardcode_into_libs=yes
 
14456
  if test "$host_cpu" = ia64; then
 
14457
    # AIX 5 supports IA64
 
14458
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14459
    shlibpath_var=LD_LIBRARY_PATH
 
14460
  else
 
14461
    # With GCC up to 2.95.x, collect2 would create an import file
 
14462
    # for dependence libraries.  The import file would start with
 
14463
    # the line `#! .'.  This would cause the generated library to
 
14464
    # depend on `.', always an invalid library.  This was fixed in
 
14465
    # development snapshots of GCC prior to 3.0.
 
14466
    case $host_os in
 
14467
      aix4 | aix4.[01] | aix4.[01].*)
 
14468
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14469
           echo ' yes '
 
14470
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14471
        :
 
14472
      else
 
14473
        can_build_shared=no
 
14474
      fi
 
14475
      ;;
 
14476
    esac
 
14477
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14478
    # soname into executable. Probably we can add versioning support to
 
14479
    # collect2, so additional links can be useful in future.
 
14480
    if test "$aix_use_runtimelinking" = yes; then
 
14481
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14482
      # instead of lib<name>.a to let people know that these are not
 
14483
      # typical AIX shared libraries.
 
14484
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14485
    else
 
14486
      # We preserve .a as extension for shared libraries through AIX4.2
 
14487
      # and later when we are not doing run time linking.
 
14488
      library_names_spec='${libname}${release}.a $libname.a'
 
14489
      soname_spec='${libname}${release}${shared_ext}$major'
 
14490
    fi
 
14491
    shlibpath_var=LIBPATH
 
14492
  fi
 
14493
  ;;
 
14494
 
 
14495
amigaos*)
 
14496
  library_names_spec='$libname.ixlibrary $libname.a'
 
14497
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14498
  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'
 
14499
  ;;
 
14500
 
 
14501
beos*)
 
14502
  library_names_spec='${libname}${shared_ext}'
 
14503
  dynamic_linker="$host_os ld.so"
 
14504
  shlibpath_var=LIBRARY_PATH
 
14505
  ;;
 
14506
 
 
14507
bsdi4*)
 
14508
  version_type=linux
 
14509
  need_version=no
 
14510
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14511
  soname_spec='${libname}${release}${shared_ext}$major'
 
14512
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14513
  shlibpath_var=LD_LIBRARY_PATH
 
14514
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14515
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14516
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14517
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14518
  # libtool to hard-code these into programs
 
14519
  ;;
 
14520
 
 
14521
cygwin* | mingw* | pw32*)
 
14522
  version_type=windows
 
14523
  shrext_cmds=".dll"
 
14524
  need_version=no
 
14525
  need_lib_prefix=no
 
14526
 
 
14527
  case $GCC,$host_os in
 
14528
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14529
    library_names_spec='$libname.dll.a'
 
14530
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14531
    postinstall_cmds='base_file=`basename \${file}`~
 
14532
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14533
      dldir=$destdir/`dirname \$dlpath`~
 
14534
      test -d \$dldir || mkdir -p \$dldir~
 
14535
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14536
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14537
      dlpath=$dir/\$dldll~
 
14538
       $rm \$dlpath'
 
14539
    shlibpath_overrides_runpath=yes
 
14540
 
 
14541
    case $host_os in
 
14542
    cygwin*)
 
14543
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14544
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14545
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14546
      ;;
 
14547
    mingw*)
 
14548
      # MinGW DLLs use traditional 'lib' prefix
 
14549
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14550
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14551
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14552
        # It is most probably a Windows format PATH printed by
 
14553
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14554
        # path with ; separators, and with drive letters. We can handle the
 
14555
        # drive letters (cygwin fileutils understands them), so leave them,
 
14556
        # especially as we might pass files found there to a mingw objdump,
 
14557
        # which wouldn't understand a cygwinified path. Ahh.
 
14558
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14559
      else
 
14560
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14561
      fi
 
14562
      ;;
 
14563
    pw32*)
 
14564
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14565
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14566
      ;;
 
14567
    esac
 
14568
    ;;
 
14569
 
 
14570
  *)
 
14571
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14572
    ;;
 
14573
  esac
 
14574
  dynamic_linker='Win32 ld.exe'
 
14575
  # FIXME: first we should search . and the directory the executable is in
 
14576
  shlibpath_var=PATH
 
14577
  ;;
 
14578
 
 
14579
darwin* | rhapsody*)
 
14580
  dynamic_linker="$host_os dyld"
 
14581
  version_type=darwin
 
14582
  need_lib_prefix=no
 
14583
  need_version=no
 
14584
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14585
  soname_spec='${libname}${release}${major}$shared_ext'
 
14586
  shlibpath_overrides_runpath=yes
 
14587
  shlibpath_var=DYLD_LIBRARY_PATH
 
14588
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
14589
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14590
  if test "$GCC" = yes; then
 
14591
    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"`
 
14592
  else
 
14593
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14594
  fi
 
14595
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14596
  ;;
 
14597
 
 
14598
dgux*)
 
14599
  version_type=linux
 
14600
  need_lib_prefix=no
 
14601
  need_version=no
 
14602
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
14603
  soname_spec='${libname}${release}${shared_ext}$major'
 
14604
  shlibpath_var=LD_LIBRARY_PATH
 
14605
  ;;
 
14606
 
 
14607
freebsd1*)
 
14608
  dynamic_linker=no
 
14609
  ;;
 
14610
 
 
14611
kfreebsd*-gnu)
 
14612
  version_type=linux
 
14613
  need_lib_prefix=no
 
14614
  need_version=no
 
14615
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14616
  soname_spec='${libname}${release}${shared_ext}$major'
 
14617
  shlibpath_var=LD_LIBRARY_PATH
 
14618
  shlibpath_overrides_runpath=no
 
14619
  hardcode_into_libs=yes
 
14620
  dynamic_linker='GNU ld.so'
 
14621
  ;;
 
14622
 
 
14623
freebsd*)
 
14624
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14625
  version_type=freebsd-$objformat
 
14626
  case $version_type in
 
14627
    freebsd-elf*)
 
14628
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14629
      need_version=no
 
14630
      need_lib_prefix=no
 
14631
      ;;
 
14632
    freebsd-*)
 
14633
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
14634
      need_version=yes
 
14635
      ;;
 
14636
  esac
 
14637
  shlibpath_var=LD_LIBRARY_PATH
 
14638
  case $host_os in
 
14639
  freebsd2*)
 
14640
    shlibpath_overrides_runpath=yes
 
14641
    ;;
 
14642
  freebsd3.01* | freebsdelf3.01*)
 
14643
    shlibpath_overrides_runpath=yes
 
14644
    hardcode_into_libs=yes
 
14645
    ;;
 
14646
  *) # from 3.2 on
 
14647
    shlibpath_overrides_runpath=no
 
14648
    hardcode_into_libs=yes
 
14649
    ;;
 
14650
  esac
 
14651
  ;;
 
14652
 
 
14653
gnu*)
 
14654
  version_type=linux
 
14655
  need_lib_prefix=no
 
14656
  need_version=no
 
14657
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
14658
  soname_spec='${libname}${release}${shared_ext}$major'
 
14659
  shlibpath_var=LD_LIBRARY_PATH
 
14660
  hardcode_into_libs=yes
 
14661
  ;;
 
14662
 
 
14663
hpux9* | hpux10* | hpux11*)
 
14664
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
14665
  # link against other versions.
 
14666
  version_type=sunos
 
14667
  need_lib_prefix=no
 
14668
  need_version=no
 
14669
  case "$host_cpu" in
 
14670
  ia64*)
 
14671
    shrext_cmds='.so'
 
14672
    hardcode_into_libs=yes
 
14673
    dynamic_linker="$host_os dld.so"
 
14674
    shlibpath_var=LD_LIBRARY_PATH
 
14675
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14676
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14677
    soname_spec='${libname}${release}${shared_ext}$major'
 
14678
    if test "X$HPUX_IA64_MODE" = X32; then
 
14679
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
14680
    else
 
14681
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
14682
    fi
 
14683
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14684
    ;;
 
14685
   hppa*64*)
 
14686
     shrext_cmds='.sl'
 
14687
     hardcode_into_libs=yes
 
14688
     dynamic_linker="$host_os dld.sl"
 
14689
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
14690
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
14691
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14692
     soname_spec='${libname}${release}${shared_ext}$major'
 
14693
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
14694
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
14695
     ;;
 
14696
   *)
 
14697
    shrext_cmds='.sl'
 
14698
    dynamic_linker="$host_os dld.sl"
 
14699
    shlibpath_var=SHLIB_PATH
 
14700
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
14701
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14702
    soname_spec='${libname}${release}${shared_ext}$major'
 
14703
    ;;
 
14704
  esac
 
14705
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
14706
  postinstall_cmds='chmod 555 $lib'
 
14707
  ;;
 
14708
 
 
14709
irix5* | irix6* | nonstopux*)
 
14710
  case $host_os in
 
14711
    nonstopux*) version_type=nonstopux ;;
 
14712
    *)
 
14713
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
14714
                version_type=linux
 
14715
        else
 
14716
                version_type=irix
 
14717
        fi ;;
 
14718
  esac
 
14719
  need_lib_prefix=no
 
14720
  need_version=no
 
14721
  soname_spec='${libname}${release}${shared_ext}$major'
 
14722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14723
  case $host_os in
 
14724
  irix5* | nonstopux*)
 
14725
    libsuff= shlibsuff=
 
14726
    ;;
 
14727
  *)
 
14728
    case $LD in # libtool.m4 will add one of these switches to LD
 
14729
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
14730
      libsuff= shlibsuff= libmagic=32-bit;;
 
14731
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
14732
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
14733
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
14734
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
14735
    *) libsuff= shlibsuff= libmagic=never-match;;
 
14736
    esac
 
14737
    ;;
 
14738
  esac
 
14739
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
14740
  shlibpath_overrides_runpath=no
 
14741
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
14742
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
14743
  hardcode_into_libs=yes
 
14744
  ;;
 
14745
 
 
14746
# No shared lib support for Linux oldld, aout, or coff.
 
14747
linux*oldld* | linux*aout* | linux*coff*)
 
14748
  dynamic_linker=no
 
14749
  ;;
 
14750
 
 
14751
# This must be Linux ELF.
 
14752
linux*)
 
14753
  version_type=linux
 
14754
  need_lib_prefix=no
 
14755
  need_version=no
 
14756
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14757
  soname_spec='${libname}${release}${shared_ext}$major'
 
14758
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
14759
  shlibpath_var=LD_LIBRARY_PATH
 
14760
  shlibpath_overrides_runpath=no
 
14761
  # This implies no fast_install, which is unacceptable.
 
14762
  # Some rework will be needed to allow for fast_install
 
14763
  # before this can be enabled.
 
14764
  hardcode_into_libs=yes
 
14765
 
 
14766
  # Append ld.so.conf contents to the search path
 
14767
  if test -f /etc/ld.so.conf; then
 
14768
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
14769
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
14770
  fi
 
14771
 
 
14772
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14773
  # powerpc, because MkLinux only supported shared libraries with the
 
14774
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14775
  # most powerpc-linux boxes support dynamic linking these days and
 
14776
  # people can always --disable-shared, the test was removed, and we
 
14777
  # assume the GNU/Linux dynamic linker is in use.
 
14778
  dynamic_linker='GNU/Linux ld.so'
 
14779
  ;;
 
14780
 
 
14781
netbsdelf*-gnu)
 
14782
  version_type=linux
 
14783
  need_lib_prefix=no
 
14784
  need_version=no
 
14785
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14786
  soname_spec='${libname}${release}${shared_ext}$major'
 
14787
  shlibpath_var=LD_LIBRARY_PATH
 
14788
  shlibpath_overrides_runpath=no
 
14789
  hardcode_into_libs=yes
 
14790
  dynamic_linker='NetBSD ld.elf_so'
 
14791
  ;;
 
14792
 
 
14793
knetbsd*-gnu)
 
14794
  version_type=linux
 
14795
  need_lib_prefix=no
 
14796
  need_version=no
 
14797
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14798
  soname_spec='${libname}${release}${shared_ext}$major'
 
14799
  shlibpath_var=LD_LIBRARY_PATH
 
14800
  shlibpath_overrides_runpath=no
 
14801
  hardcode_into_libs=yes
 
14802
  dynamic_linker='GNU ld.so'
 
14803
  ;;
 
14804
 
 
14805
netbsd*)
 
14806
  version_type=sunos
 
14807
  need_lib_prefix=no
 
14808
  need_version=no
 
14809
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14810
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14811
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14812
    dynamic_linker='NetBSD (a.out) ld.so'
 
14813
  else
 
14814
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14815
    soname_spec='${libname}${release}${shared_ext}$major'
 
14816
    dynamic_linker='NetBSD ld.elf_so'
 
14817
  fi
 
14818
  shlibpath_var=LD_LIBRARY_PATH
 
14819
  shlibpath_overrides_runpath=yes
 
14820
  hardcode_into_libs=yes
 
14821
  ;;
 
14822
 
 
14823
newsos6)
 
14824
  version_type=linux
 
14825
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14826
  shlibpath_var=LD_LIBRARY_PATH
 
14827
  shlibpath_overrides_runpath=yes
 
14828
  ;;
 
14829
 
 
14830
nto-qnx*)
 
14831
  version_type=linux
 
14832
  need_lib_prefix=no
 
14833
  need_version=no
 
14834
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14835
  soname_spec='${libname}${release}${shared_ext}$major'
 
14836
  shlibpath_var=LD_LIBRARY_PATH
 
14837
  shlibpath_overrides_runpath=yes
 
14838
  ;;
 
14839
 
 
14840
openbsd*)
 
14841
  version_type=sunos
 
14842
  need_lib_prefix=no
 
14843
  need_version=yes
 
14844
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14845
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
14846
  shlibpath_var=LD_LIBRARY_PATH
 
14847
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14848
    case $host_os in
 
14849
      openbsd2.[89] | openbsd2.[89].*)
 
14850
        shlibpath_overrides_runpath=no
 
14851
        ;;
 
14852
      *)
 
14853
        shlibpath_overrides_runpath=yes
 
14854
        ;;
 
14855
      esac
 
14856
  else
 
14857
    shlibpath_overrides_runpath=yes
 
14858
  fi
 
14859
  ;;
 
14860
 
 
14861
os2*)
 
14862
  libname_spec='$name'
 
14863
  shrext_cmds=".dll"
 
14864
  need_lib_prefix=no
 
14865
  library_names_spec='$libname${shared_ext} $libname.a'
 
14866
  dynamic_linker='OS/2 ld.exe'
 
14867
  shlibpath_var=LIBPATH
 
14868
  ;;
 
14869
 
 
14870
osf3* | osf4* | osf5*)
 
14871
  version_type=osf
 
14872
  need_lib_prefix=no
 
14873
  need_version=no
 
14874
  soname_spec='${libname}${release}${shared_ext}$major'
 
14875
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14876
  shlibpath_var=LD_LIBRARY_PATH
 
14877
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
14878
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
14879
  ;;
 
14880
 
 
14881
sco3.2v5*)
 
14882
  version_type=osf
 
14883
  soname_spec='${libname}${release}${shared_ext}$major'
 
14884
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14885
  shlibpath_var=LD_LIBRARY_PATH
 
14886
  ;;
 
14887
 
 
14888
solaris*)
 
14889
  version_type=linux
 
14890
  need_lib_prefix=no
 
14891
  need_version=no
 
14892
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14893
  soname_spec='${libname}${release}${shared_ext}$major'
 
14894
  shlibpath_var=LD_LIBRARY_PATH
 
14895
  shlibpath_overrides_runpath=yes
 
14896
  hardcode_into_libs=yes
 
14897
  # ldd complains unless libraries are executable
 
14898
  postinstall_cmds='chmod +x $lib'
 
14899
  ;;
 
14900
 
 
14901
sunos4*)
 
14902
  version_type=sunos
 
14903
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
14904
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
14905
  shlibpath_var=LD_LIBRARY_PATH
 
14906
  shlibpath_overrides_runpath=yes
 
14907
  if test "$with_gnu_ld" = yes; then
 
14908
    need_lib_prefix=no
 
14909
  fi
 
14910
  need_version=yes
 
14911
  ;;
 
14912
 
 
14913
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14914
  version_type=linux
 
14915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14916
  soname_spec='${libname}${release}${shared_ext}$major'
 
14917
  shlibpath_var=LD_LIBRARY_PATH
 
14918
  case $host_vendor in
 
14919
    sni)
 
14920
      shlibpath_overrides_runpath=no
 
14921
      need_lib_prefix=no
 
14922
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
14923
      runpath_var=LD_RUN_PATH
 
14924
      ;;
 
14925
    siemens)
 
14926
      need_lib_prefix=no
 
14927
      ;;
 
14928
    motorola)
 
14929
      need_lib_prefix=no
 
14930
      need_version=no
 
14931
      shlibpath_overrides_runpath=no
 
14932
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
14933
      ;;
 
14934
  esac
 
14935
  ;;
 
14936
 
 
14937
sysv4*MP*)
 
14938
  if test -d /usr/nec ;then
 
14939
    version_type=linux
 
14940
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14941
    soname_spec='$libname${shared_ext}.$major'
 
14942
    shlibpath_var=LD_LIBRARY_PATH
 
14943
  fi
 
14944
  ;;
 
14945
 
 
14946
uts4*)
 
14947
  version_type=linux
 
14948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14949
  soname_spec='${libname}${release}${shared_ext}$major'
 
14950
  shlibpath_var=LD_LIBRARY_PATH
 
14951
  ;;
 
14952
 
 
14953
*)
 
14954
  dynamic_linker=no
 
14955
  ;;
 
14956
esac
 
14957
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14958
echo "${ECHO_T}$dynamic_linker" >&6
 
14959
test "$dynamic_linker" = no && can_build_shared=no
 
14960
 
 
14961
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14962
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
14963
hardcode_action_F77=
 
14964
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
14965
   test -n "$runpath_var F77" || \
 
14966
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
14967
 
 
14968
  # We can hardcode non-existant directories.
 
14969
  if test "$hardcode_direct_F77" != no &&
 
14970
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14971
     # have to relink, otherwise we might link with an installed library
 
14972
     # when we should be linking with a yet-to-be-installed one
 
14973
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
14974
     test "$hardcode_minus_L_F77" != no; then
 
14975
    # Linking always hardcodes the temporary library directory.
 
14976
    hardcode_action_F77=relink
 
14977
  else
 
14978
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14979
    hardcode_action_F77=immediate
 
14980
  fi
 
14981
else
 
14982
  # We cannot hardcode anything, or else we can only hardcode existing
 
14983
  # directories.
 
14984
  hardcode_action_F77=unsupported
 
14985
fi
 
14986
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
14987
echo "${ECHO_T}$hardcode_action_F77" >&6
 
14988
 
 
14989
if test "$hardcode_action_F77" = relink; then
 
14990
  # Fast installation is not supported
 
14991
  enable_fast_install=no
 
14992
elif test "$shlibpath_overrides_runpath" = yes ||
 
14993
     test "$enable_shared" = no; then
 
14994
  # Fast installation is not necessary
 
14995
  enable_fast_install=needless
 
14996
fi
 
14997
 
 
14998
striplib=
 
14999
old_striplib=
 
15000
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15001
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15002
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15003
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15004
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15005
  echo "$as_me:$LINENO: result: yes" >&5
 
15006
echo "${ECHO_T}yes" >&6
 
15007
else
 
15008
# FIXME - insert some real tests, host_os isn't really good enough
 
15009
  case $host_os in
 
15010
   darwin*)
 
15011
       if test -n "$STRIP" ; then
 
15012
         striplib="$STRIP -x"
 
15013
         echo "$as_me:$LINENO: result: yes" >&5
 
15014
echo "${ECHO_T}yes" >&6
 
15015
       else
 
15016
  echo "$as_me:$LINENO: result: no" >&5
 
15017
echo "${ECHO_T}no" >&6
 
15018
fi
 
15019
       ;;
 
15020
   *)
 
15021
  echo "$as_me:$LINENO: result: no" >&5
 
15022
echo "${ECHO_T}no" >&6
 
15023
    ;;
 
15024
  esac
 
15025
fi
 
15026
 
 
15027
 
 
15028
 
 
15029
# The else clause should only fire when bootstrapping the
 
15030
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15031
# with your package, and you will get complaints that there are
 
15032
# no rules to generate ltmain.sh.
 
15033
if test -f "$ltmain"; then
 
15034
  # See if we are running on zsh, and set the options which allow our commands through
 
15035
  # without removal of \ escapes.
 
15036
  if test -n "${ZSH_VERSION+set}" ; then
 
15037
    setopt NO_GLOB_SUBST
 
15038
  fi
 
15039
  # Now quote all the things that may contain metacharacters while being
 
15040
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15041
  # variables and quote the copies for generation of the libtool script.
 
15042
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15043
    SED SHELL STRIP \
 
15044
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15045
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15046
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15047
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15048
    lt_cv_sys_global_symbol_to_c_name_address \
 
15049
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15050
    old_postinstall_cmds old_postuninstall_cmds \
 
15051
    compiler_F77 \
 
15052
    CC_F77 \
 
15053
    LD_F77 \
 
15054
    lt_prog_compiler_wl_F77 \
 
15055
    lt_prog_compiler_pic_F77 \
 
15056
    lt_prog_compiler_static_F77 \
 
15057
    lt_prog_compiler_no_builtin_flag_F77 \
 
15058
    export_dynamic_flag_spec_F77 \
 
15059
    thread_safe_flag_spec_F77 \
 
15060
    whole_archive_flag_spec_F77 \
 
15061
    enable_shared_with_static_runtimes_F77 \
 
15062
    old_archive_cmds_F77 \
 
15063
    old_archive_from_new_cmds_F77 \
 
15064
    predep_objects_F77 \
 
15065
    postdep_objects_F77 \
 
15066
    predeps_F77 \
 
15067
    postdeps_F77 \
 
15068
    compiler_lib_search_path_F77 \
 
15069
    archive_cmds_F77 \
 
15070
    archive_expsym_cmds_F77 \
 
15071
    postinstall_cmds_F77 \
 
15072
    postuninstall_cmds_F77 \
 
15073
    old_archive_from_expsyms_cmds_F77 \
 
15074
    allow_undefined_flag_F77 \
 
15075
    no_undefined_flag_F77 \
 
15076
    export_symbols_cmds_F77 \
 
15077
    hardcode_libdir_flag_spec_F77 \
 
15078
    hardcode_libdir_flag_spec_ld_F77 \
 
15079
    hardcode_libdir_separator_F77 \
 
15080
    hardcode_automatic_F77 \
 
15081
    module_cmds_F77 \
 
15082
    module_expsym_cmds_F77 \
 
15083
    lt_cv_prog_compiler_c_o_F77 \
 
15084
    exclude_expsyms_F77 \
 
15085
    include_expsyms_F77; do
 
15086
 
 
15087
    case $var in
 
15088
    old_archive_cmds_F77 | \
 
15089
    old_archive_from_new_cmds_F77 | \
 
15090
    archive_cmds_F77 | \
 
15091
    archive_expsym_cmds_F77 | \
 
15092
    module_cmds_F77 | \
 
15093
    module_expsym_cmds_F77 | \
 
15094
    old_archive_from_expsyms_cmds_F77 | \
 
15095
    export_symbols_cmds_F77 | \
 
15096
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15097
    postinstall_cmds | postuninstall_cmds | \
 
15098
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15099
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15100
      # Double-quote double-evaled strings.
 
15101
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15102
      ;;
 
15103
    *)
 
15104
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15105
      ;;
 
15106
    esac
 
15107
  done
 
15108
 
 
15109
  case $lt_echo in
 
15110
  *'\$0 --fallback-echo"')
 
15111
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15112
    ;;
 
15113
  esac
 
15114
 
 
15115
cfgfile="$ofile"
 
15116
 
 
15117
  cat <<__EOF__ >> "$cfgfile"
 
15118
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15119
 
 
15120
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15121
 
 
15122
# Shell to use when invoking shell scripts.
 
15123
SHELL=$lt_SHELL
 
15124
 
 
15125
# Whether or not to build shared libraries.
 
15126
build_libtool_libs=$enable_shared
 
15127
 
 
15128
# Whether or not to build static libraries.
 
15129
build_old_libs=$enable_static
 
15130
 
 
15131
# Whether or not to add -lc for building shared libraries.
 
15132
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15133
 
 
15134
# Whether or not to disallow shared libs when runtime libs are static
 
15135
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15136
 
 
15137
# Whether or not to optimize for fast installation.
 
15138
fast_install=$enable_fast_install
 
15139
 
 
15140
# The host system.
 
15141
host_alias=$host_alias
 
15142
host=$host
 
15143
 
 
15144
# An echo program that does not interpret backslashes.
 
15145
echo=$lt_echo
 
15146
 
 
15147
# The archiver.
 
15148
AR=$lt_AR
 
15149
AR_FLAGS=$lt_AR_FLAGS
 
15150
 
 
15151
# A C compiler.
 
15152
LTCC=$lt_LTCC
 
15153
 
 
15154
# A language-specific compiler.
 
15155
CC=$lt_compiler_F77
 
15156
 
 
15157
# Is the compiler the GNU C compiler?
 
15158
with_gcc=$GCC_F77
 
15159
 
 
15160
# An ERE matcher.
 
15161
EGREP=$lt_EGREP
 
15162
 
 
15163
# The linker used to build libraries.
 
15164
LD=$lt_LD_F77
 
15165
 
 
15166
# Whether we need hard or soft links.
 
15167
LN_S=$lt_LN_S
 
15168
 
 
15169
# A BSD-compatible nm program.
 
15170
NM=$lt_NM
 
15171
 
 
15172
# A symbol stripping program
 
15173
STRIP=$lt_STRIP
 
15174
 
 
15175
# Used to examine libraries when file_magic_cmd begins "file"
 
15176
MAGIC_CMD=$MAGIC_CMD
 
15177
 
 
15178
# Used on cygwin: DLL creation program.
 
15179
DLLTOOL="$DLLTOOL"
 
15180
 
 
15181
# Used on cygwin: object dumper.
 
15182
OBJDUMP="$OBJDUMP"
 
15183
 
 
15184
# Used on cygwin: assembler.
 
15185
AS="$AS"
 
15186
 
 
15187
# The name of the directory that contains temporary libtool files.
 
15188
objdir=$objdir
 
15189
 
 
15190
# How to create reloadable object files.
 
15191
reload_flag=$lt_reload_flag
 
15192
reload_cmds=$lt_reload_cmds
 
15193
 
 
15194
# How to pass a linker flag through the compiler.
 
15195
wl=$lt_lt_prog_compiler_wl_F77
 
15196
 
 
15197
# Object file suffix (normally "o").
 
15198
objext="$ac_objext"
 
15199
 
 
15200
# Old archive suffix (normally "a").
 
15201
libext="$libext"
 
15202
 
 
15203
# Shared library suffix (normally ".so").
 
15204
shrext_cmds='$shrext_cmds'
 
15205
 
 
15206
# Executable file suffix (normally "").
 
15207
exeext="$exeext"
 
15208
 
 
15209
# Additional compiler flags for building library objects.
 
15210
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15211
pic_mode=$pic_mode
 
15212
 
 
15213
# What is the maximum length of a command?
 
15214
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15215
 
 
15216
# Does compiler simultaneously support -c and -o options?
 
15217
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15218
 
 
15219
# Must we lock files when doing compilation ?
 
15220
need_locks=$lt_need_locks
 
15221
 
 
15222
# Do we need the lib prefix for modules?
 
15223
need_lib_prefix=$need_lib_prefix
 
15224
 
 
15225
# Do we need a version for libraries?
 
15226
need_version=$need_version
 
15227
 
 
15228
# Whether dlopen is supported.
 
15229
dlopen_support=$enable_dlopen
 
15230
 
 
15231
# Whether dlopen of programs is supported.
 
15232
dlopen_self=$enable_dlopen_self
 
15233
 
 
15234
# Whether dlopen of statically linked programs is supported.
 
15235
dlopen_self_static=$enable_dlopen_self_static
 
15236
 
 
15237
# Compiler flag to prevent dynamic linking.
 
15238
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15239
 
 
15240
# Compiler flag to turn off builtin functions.
 
15241
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15242
 
 
15243
# Compiler flag to allow reflexive dlopens.
 
15244
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15245
 
 
15246
# Compiler flag to generate shared objects directly from archives.
 
15247
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15248
 
 
15249
# Compiler flag to generate thread-safe objects.
 
15250
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15251
 
 
15252
# Library versioning type.
 
15253
version_type=$version_type
 
15254
 
 
15255
# Format of library name prefix.
 
15256
libname_spec=$lt_libname_spec
 
15257
 
 
15258
# List of archive names.  First name is the real one, the rest are links.
 
15259
# The last name is the one that the linker finds with -lNAME.
 
15260
library_names_spec=$lt_library_names_spec
 
15261
 
 
15262
# The coded name of the library, if different from the real name.
 
15263
soname_spec=$lt_soname_spec
 
15264
 
 
15265
# Commands used to build and install an old-style archive.
 
15266
RANLIB=$lt_RANLIB
 
15267
old_archive_cmds=$lt_old_archive_cmds_F77
 
15268
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15269
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15270
 
 
15271
# Create an old-style archive from a shared archive.
 
15272
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15273
 
 
15274
# Create a temporary old-style archive to link instead of a shared archive.
 
15275
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15276
 
 
15277
# Commands used to build and install a shared archive.
 
15278
archive_cmds=$lt_archive_cmds_F77
 
15279
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15280
postinstall_cmds=$lt_postinstall_cmds
 
15281
postuninstall_cmds=$lt_postuninstall_cmds
 
15282
 
 
15283
# Commands used to build a loadable module (assumed same as above if empty)
 
15284
module_cmds=$lt_module_cmds_F77
 
15285
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15286
 
 
15287
# Commands to strip libraries.
 
15288
old_striplib=$lt_old_striplib
 
15289
striplib=$lt_striplib
 
15290
 
 
15291
# Dependencies to place before the objects being linked to create a
 
15292
# shared library.
 
15293
predep_objects=$lt_predep_objects_F77
 
15294
 
 
15295
# Dependencies to place after the objects being linked to create a
 
15296
# shared library.
 
15297
postdep_objects=$lt_postdep_objects_F77
 
15298
 
 
15299
# Dependencies to place before the objects being linked to create a
 
15300
# shared library.
 
15301
predeps=$lt_predeps_F77
 
15302
 
 
15303
# Dependencies to place after the objects being linked to create a
 
15304
# shared library.
 
15305
postdeps=$lt_postdeps_F77
 
15306
 
 
15307
# The library search path used internally by the compiler when linking
 
15308
# a shared library.
 
15309
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15310
 
 
15311
# Method to check whether dependent libraries are shared objects.
 
15312
deplibs_check_method=$lt_deplibs_check_method
 
15313
 
 
15314
# Command to use when deplibs_check_method == file_magic.
 
15315
file_magic_cmd=$lt_file_magic_cmd
 
15316
 
 
15317
# Flag that allows shared libraries with undefined symbols to be built.
 
15318
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15319
 
 
15320
# Flag that forces no undefined symbols.
 
15321
no_undefined_flag=$lt_no_undefined_flag_F77
 
15322
 
 
15323
# Commands used to finish a libtool library installation in a directory.
 
15324
finish_cmds=$lt_finish_cmds
 
15325
 
 
15326
# Same as above, but a single script fragment to be evaled but not shown.
 
15327
finish_eval=$lt_finish_eval
 
15328
 
 
15329
# Take the output of nm and produce a listing of raw symbols and C names.
 
15330
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15331
 
 
15332
# Transform the output of nm in a proper C declaration
 
15333
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15334
 
 
15335
# Transform the output of nm in a C name address pair
 
15336
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15337
 
 
15338
# This is the shared library runtime path variable.
 
15339
runpath_var=$runpath_var
 
15340
 
 
15341
# This is the shared library path variable.
 
15342
shlibpath_var=$shlibpath_var
 
15343
 
 
15344
# Is shlibpath searched before the hard-coded library search path?
 
15345
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15346
 
 
15347
# How to hardcode a shared library path into an executable.
 
15348
hardcode_action=$hardcode_action_F77
 
15349
 
 
15350
# Whether we should hardcode library paths into libraries.
 
15351
hardcode_into_libs=$hardcode_into_libs
 
15352
 
 
15353
# Flag to hardcode \$libdir into a binary during linking.
 
15354
# This must work even if \$libdir does not exist.
 
15355
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15356
 
 
15357
# If ld is used when linking, flag to hardcode \$libdir into
 
15358
# a binary during linking. This must work even if \$libdir does
 
15359
# not exist.
 
15360
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15361
 
 
15362
# Whether we need a single -rpath flag with a separated argument.
 
15363
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15364
 
 
15365
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15366
# resulting binary.
 
15367
hardcode_direct=$hardcode_direct_F77
 
15368
 
 
15369
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15370
# resulting binary.
 
15371
hardcode_minus_L=$hardcode_minus_L_F77
 
15372
 
 
15373
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15374
# the resulting binary.
 
15375
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15376
 
 
15377
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15378
# and all subsequent libraries and executables linked against it.
 
15379
hardcode_automatic=$hardcode_automatic_F77
 
15380
 
 
15381
# Variables whose values should be saved in libtool wrapper scripts and
 
15382
# restored at relink time.
 
15383
variables_saved_for_relink="$variables_saved_for_relink"
 
15384
 
 
15385
# Whether libtool must link a program against all its dependency libraries.
 
15386
link_all_deplibs=$link_all_deplibs_F77
 
15387
 
 
15388
# Compile-time system search path for libraries
 
15389
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15390
 
 
15391
# Run-time system search path for libraries
 
15392
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15393
 
 
15394
# Fix the shell variable \$srcfile for the compiler.
 
15395
fix_srcfile_path="$fix_srcfile_path_F77"
 
15396
 
 
15397
# Set to yes if exported symbols are required.
 
15398
always_export_symbols=$always_export_symbols_F77
 
15399
 
 
15400
# The commands to list exported symbols.
 
15401
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15402
 
 
15403
# The commands to extract the exported symbol list from a shared archive.
 
15404
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15405
 
 
15406
# Symbols that should not be listed in the preloaded symbols.
 
15407
exclude_expsyms=$lt_exclude_expsyms_F77
 
15408
 
 
15409
# Symbols that must always be exported.
 
15410
include_expsyms=$lt_include_expsyms_F77
 
15411
 
 
15412
# ### END LIBTOOL TAG CONFIG: $tagname
 
15413
 
 
15414
__EOF__
 
15415
 
 
15416
 
 
15417
else
 
15418
  # If there is no Makefile yet, we rely on a make rule to execute
 
15419
  # `config.status --recheck' to rerun these tests and create the
 
15420
  # libtool script then.
 
15421
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15422
  if test -f "$ltmain_in"; then
 
15423
    test -f Makefile && make "$ltmain"
 
15424
  fi
 
15425
fi
 
15426
 
 
15427
 
 
15428
ac_ext=c
 
15429
ac_cpp='$CPP $CPPFLAGS'
 
15430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15433
 
 
15434
CC="$lt_save_CC"
 
15435
 
 
15436
        else
 
15437
          tagname=""
 
15438
        fi
 
15439
        ;;
 
15440
 
 
15441
      GCJ)
 
15442
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15443
 
 
15444
 
 
15445
 
 
15446
# Source file extension for Java test sources.
 
15447
ac_ext=java
 
15448
 
 
15449
# Object file extension for compiled Java test sources.
 
15450
objext=o
 
15451
objext_GCJ=$objext
 
15452
 
 
15453
# Code to be used in simple compile tests
 
15454
lt_simple_compile_test_code="class foo {}\n"
 
15455
 
 
15456
# Code to be used in simple link tests
 
15457
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15458
 
 
15459
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15460
 
 
15461
# If no C compiler was specified, use CC.
 
15462
LTCC=${LTCC-"$CC"}
 
15463
 
 
15464
# Allow CC to be a program name with arguments.
 
15465
compiler=$CC
 
15466
 
 
15467
 
 
15468
# Allow CC to be a program name with arguments.
 
15469
lt_save_CC="$CC"
 
15470
CC=${GCJ-"gcj"}
 
15471
compiler=$CC
 
15472
compiler_GCJ=$CC
 
15473
 
 
15474
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15475
archive_cmds_need_lc_GCJ=no
 
15476
 
 
15477
 
 
15478
lt_prog_compiler_no_builtin_flag_GCJ=
 
15479
 
 
15480
if test "$GCC" = yes; then
 
15481
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15482
 
 
15483
 
 
15484
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15485
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15486
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15488
else
 
15489
  lt_cv_prog_compiler_rtti_exceptions=no
 
15490
  ac_outfile=conftest.$ac_objext
 
15491
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15492
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15493
   # Insert the option either (1) after the last *FLAGS variable, or
 
15494
   # (2) before a word containing "conftest.", or (3) at the end.
 
15495
   # Note that $ac_compile itself does not contain backslashes and begins
 
15496
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15497
   # The option is referenced via a variable to avoid confusing sed.
 
15498
   lt_compile=`echo "$ac_compile" | $SED \
 
15499
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15500
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15501
   -e 's:$: $lt_compiler_flag:'`
 
15502
   (eval echo "\"\$as_me:15502: $lt_compile\"" >&5)
 
15503
   (eval "$lt_compile" 2>conftest.err)
 
15504
   ac_status=$?
 
15505
   cat conftest.err >&5
 
15506
   echo "$as_me:15506: \$? = $ac_status" >&5
 
15507
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15508
     # The compiler can only warn and ignore the option if not recognized
 
15509
     # So say no if there are warnings
 
15510
     if test ! -s conftest.err; then
 
15511
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15512
     fi
 
15513
   fi
 
15514
   $rm conftest*
 
15515
 
 
15516
fi
 
15517
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15518
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
15519
 
 
15520
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15521
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15522
else
 
15523
    :
 
15524
fi
 
15525
 
 
15526
fi
 
15527
 
 
15528
lt_prog_compiler_wl_GCJ=
 
15529
lt_prog_compiler_pic_GCJ=
 
15530
lt_prog_compiler_static_GCJ=
 
15531
 
 
15532
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15533
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15534
 
 
15535
  if test "$GCC" = yes; then
 
15536
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15537
    lt_prog_compiler_static_GCJ='-static'
 
15538
 
 
15539
    case $host_os in
 
15540
      aix*)
 
15541
      # All AIX code is PIC.
 
15542
      if test "$host_cpu" = ia64; then
 
15543
        # AIX 5 now supports IA64 processor
 
15544
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15545
      fi
 
15546
      ;;
 
15547
 
 
15548
    amigaos*)
 
15549
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15550
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15551
      # like `-m68040'.
 
15552
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
15553
      ;;
 
15554
 
 
15555
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15556
      # PIC is the default for these OSes.
 
15557
      ;;
 
15558
 
 
15559
    mingw* | pw32* | os2*)
 
15560
      # This hack is so that the source file can tell whether it is being
 
15561
      # built for inclusion in a dll (and should export symbols for example).
 
15562
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15563
      ;;
 
15564
 
 
15565
    darwin* | rhapsody*)
 
15566
      # PIC is the default on this platform
 
15567
      # Common symbols not allowed in MH_DYLIB files
 
15568
      lt_prog_compiler_pic_GCJ='-fno-common'
 
15569
      ;;
 
15570
 
 
15571
    msdosdjgpp*)
 
15572
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15573
      # on systems that don't support them.
 
15574
      lt_prog_compiler_can_build_shared_GCJ=no
 
15575
      enable_shared=no
 
15576
      ;;
 
15577
 
 
15578
    sysv4*MP*)
 
15579
      if test -d /usr/nec; then
 
15580
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
15581
      fi
 
15582
      ;;
 
15583
 
 
15584
    hpux*)
 
15585
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15586
      # not for PA HP-UX.
 
15587
      case "$host_cpu" in
 
15588
      hppa*64*|ia64*)
 
15589
        # +Z the default
 
15590
        ;;
 
15591
      *)
 
15592
        lt_prog_compiler_pic_GCJ='-fPIC'
 
15593
        ;;
 
15594
      esac
 
15595
      ;;
 
15596
 
 
15597
    *)
 
15598
      lt_prog_compiler_pic_GCJ='-fPIC'
 
15599
      ;;
 
15600
    esac
 
15601
  else
 
15602
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15603
    case $host_os in
 
15604
    aix*)
 
15605
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15606
      if test "$host_cpu" = ia64; then
 
15607
        # AIX 5 now supports IA64 processor
 
15608
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15609
      else
 
15610
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
15611
      fi
 
15612
      ;;
 
15613
 
 
15614
    mingw* | pw32* | os2*)
 
15615
      # This hack is so that the source file can tell whether it is being
 
15616
      # built for inclusion in a dll (and should export symbols for example).
 
15617
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
15618
      ;;
 
15619
 
 
15620
    hpux9* | hpux10* | hpux11*)
 
15621
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15622
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15623
      # not for PA HP-UX.
 
15624
      case "$host_cpu" in
 
15625
      hppa*64*|ia64*)
 
15626
        # +Z the default
 
15627
        ;;
 
15628
      *)
 
15629
        lt_prog_compiler_pic_GCJ='+Z'
 
15630
        ;;
 
15631
      esac
 
15632
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15633
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
15634
      ;;
 
15635
 
 
15636
    irix5* | irix6* | nonstopux*)
 
15637
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15638
      # PIC (with -KPIC) is the default.
 
15639
      lt_prog_compiler_static_GCJ='-non_shared'
 
15640
      ;;
 
15641
 
 
15642
    newsos6)
 
15643
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15644
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15645
      ;;
 
15646
 
 
15647
    linux*)
 
15648
      case $CC in
 
15649
      icc* | ecc*)
 
15650
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15651
        lt_prog_compiler_pic_GCJ='-KPIC'
 
15652
        lt_prog_compiler_static_GCJ='-static'
 
15653
        ;;
 
15654
      ccc*)
 
15655
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15656
        # All Alpha code is PIC.
 
15657
        lt_prog_compiler_static_GCJ='-non_shared'
 
15658
        ;;
 
15659
      esac
 
15660
      ;;
 
15661
 
 
15662
    osf3* | osf4* | osf5*)
 
15663
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15664
      # All OSF/1 code is PIC.
 
15665
      lt_prog_compiler_static_GCJ='-non_shared'
 
15666
      ;;
 
15667
 
 
15668
    sco3.2v5*)
 
15669
      lt_prog_compiler_pic_GCJ='-Kpic'
 
15670
      lt_prog_compiler_static_GCJ='-dn'
 
15671
      ;;
 
15672
 
 
15673
    solaris*)
 
15674
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15675
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15676
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15677
      ;;
 
15678
 
 
15679
    sunos4*)
 
15680
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
15681
      lt_prog_compiler_pic_GCJ='-PIC'
 
15682
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15683
      ;;
 
15684
 
 
15685
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15686
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15687
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15688
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15689
      ;;
 
15690
 
 
15691
    sysv4*MP*)
 
15692
      if test -d /usr/nec ;then
 
15693
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
15694
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15695
      fi
 
15696
      ;;
 
15697
 
 
15698
    uts4*)
 
15699
      lt_prog_compiler_pic_GCJ='-pic'
 
15700
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15701
      ;;
 
15702
 
 
15703
    *)
 
15704
      lt_prog_compiler_can_build_shared_GCJ=no
 
15705
      ;;
 
15706
    esac
 
15707
  fi
 
15708
 
 
15709
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15710
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
15711
 
 
15712
#
 
15713
# Check to make sure the PIC flag actually works.
 
15714
#
 
15715
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
15716
 
 
15717
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15718
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
15719
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
15720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15721
else
 
15722
  lt_prog_compiler_pic_works_GCJ=no
 
15723
  ac_outfile=conftest.$ac_objext
 
15724
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15725
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
15726
   # Insert the option either (1) after the last *FLAGS variable, or
 
15727
   # (2) before a word containing "conftest.", or (3) at the end.
 
15728
   # Note that $ac_compile itself does not contain backslashes and begins
 
15729
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15730
   # The option is referenced via a variable to avoid confusing sed.
 
15731
   lt_compile=`echo "$ac_compile" | $SED \
 
15732
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15733
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15734
   -e 's:$: $lt_compiler_flag:'`
 
15735
   (eval echo "\"\$as_me:15735: $lt_compile\"" >&5)
 
15736
   (eval "$lt_compile" 2>conftest.err)
 
15737
   ac_status=$?
 
15738
   cat conftest.err >&5
 
15739
   echo "$as_me:15739: \$? = $ac_status" >&5
 
15740
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15741
     # The compiler can only warn and ignore the option if not recognized
 
15742
     # So say no if there are warnings
 
15743
     if test ! -s conftest.err; then
 
15744
       lt_prog_compiler_pic_works_GCJ=yes
 
15745
     fi
 
15746
   fi
 
15747
   $rm conftest*
 
15748
 
 
15749
fi
 
15750
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15751
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
15752
 
 
15753
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
15754
    case $lt_prog_compiler_pic_GCJ in
 
15755
     "" | " "*) ;;
 
15756
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
15757
     esac
 
15758
else
 
15759
    lt_prog_compiler_pic_GCJ=
 
15760
     lt_prog_compiler_can_build_shared_GCJ=no
 
15761
fi
 
15762
 
 
15763
fi
 
15764
case "$host_os" in
 
15765
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15766
  *djgpp*)
 
15767
    lt_prog_compiler_pic_GCJ=
 
15768
    ;;
 
15769
  *)
 
15770
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
15771
    ;;
 
15772
esac
 
15773
 
 
15774
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15775
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15776
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
15777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15778
else
 
15779
  lt_cv_prog_compiler_c_o_GCJ=no
 
15780
   $rm -r conftest 2>/dev/null
 
15781
   mkdir conftest
 
15782
   cd conftest
 
15783
   mkdir out
 
15784
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15785
 
 
15786
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15787
   # Insert the option either (1) after the last *FLAGS variable, or
 
15788
   # (2) before a word containing "conftest.", or (3) at the end.
 
15789
   # Note that $ac_compile itself does not contain backslashes and begins
 
15790
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15791
   lt_compile=`echo "$ac_compile" | $SED \
 
15792
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15793
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15794
   -e 's:$: $lt_compiler_flag:'`
 
15795
   (eval echo "\"\$as_me:15795: $lt_compile\"" >&5)
 
15796
   (eval "$lt_compile" 2>out/conftest.err)
 
15797
   ac_status=$?
 
15798
   cat out/conftest.err >&5
 
15799
   echo "$as_me:15799: \$? = $ac_status" >&5
 
15800
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15801
   then
 
15802
     # The compiler can only warn and ignore the option if not recognized
 
15803
     # So say no if there are warnings
 
15804
     if test ! -s out/conftest.err; then
 
15805
       lt_cv_prog_compiler_c_o_GCJ=yes
 
15806
     fi
 
15807
   fi
 
15808
   chmod u+w .
 
15809
   $rm conftest*
 
15810
   # SGI C++ compiler will create directory out/ii_files/ for
 
15811
   # template instantiation
 
15812
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15813
   $rm out/* && rmdir out
 
15814
   cd ..
 
15815
   rmdir conftest
 
15816
   $rm conftest*
 
15817
 
 
15818
fi
 
15819
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15820
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
15821
 
 
15822
 
 
15823
hard_links="nottested"
 
15824
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
15825
  # do not overwrite the value of need_locks provided by the user
 
15826
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15827
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15828
  hard_links=yes
 
15829
  $rm conftest*
 
15830
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15831
  touch conftest.a
 
15832
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15833
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15834
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15835
echo "${ECHO_T}$hard_links" >&6
 
15836
  if test "$hard_links" = no; then
 
15837
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15838
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15839
    need_locks=warn
 
15840
  fi
 
15841
else
 
15842
  need_locks=no
 
15843
fi
 
15844
 
 
15845
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15846
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15847
 
 
15848
  runpath_var=
 
15849
  allow_undefined_flag_GCJ=
 
15850
  enable_shared_with_static_runtimes_GCJ=no
 
15851
  archive_cmds_GCJ=
 
15852
  archive_expsym_cmds_GCJ=
 
15853
  old_archive_From_new_cmds_GCJ=
 
15854
  old_archive_from_expsyms_cmds_GCJ=
 
15855
  export_dynamic_flag_spec_GCJ=
 
15856
  whole_archive_flag_spec_GCJ=
 
15857
  thread_safe_flag_spec_GCJ=
 
15858
  hardcode_libdir_flag_spec_GCJ=
 
15859
  hardcode_libdir_flag_spec_ld_GCJ=
 
15860
  hardcode_libdir_separator_GCJ=
 
15861
  hardcode_direct_GCJ=no
 
15862
  hardcode_minus_L_GCJ=no
 
15863
  hardcode_shlibpath_var_GCJ=unsupported
 
15864
  link_all_deplibs_GCJ=unknown
 
15865
  hardcode_automatic_GCJ=no
 
15866
  module_cmds_GCJ=
 
15867
  module_expsym_cmds_GCJ=
 
15868
  always_export_symbols_GCJ=no
 
15869
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15870
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15871
  # included in the symbol list
 
15872
  include_expsyms_GCJ=
 
15873
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15874
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15875
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15876
  # as well as any symbol that contains `d'.
 
15877
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
15878
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15879
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15880
  # the symbol is explicitly referenced.  Since portable code cannot
 
15881
  # rely on this symbol name, it's probably fine to never include it in
 
15882
  # preloaded symbol tables.
 
15883
  extract_expsyms_cmds=
 
15884
 
 
15885
  case $host_os in
 
15886
  cygwin* | mingw* | pw32*)
 
15887
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15888
    # When not using gcc, we currently assume that we are using
 
15889
    # Microsoft Visual C++.
 
15890
    if test "$GCC" != yes; then
 
15891
      with_gnu_ld=no
 
15892
    fi
 
15893
    ;;
 
15894
  openbsd*)
 
15895
    with_gnu_ld=no
 
15896
    ;;
 
15897
  esac
 
15898
 
 
15899
  ld_shlibs_GCJ=yes
 
15900
  if test "$with_gnu_ld" = yes; then
 
15901
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15902
    wlarc='${wl}'
 
15903
 
 
15904
    # See if GNU ld supports shared libraries.
 
15905
    case $host_os in
 
15906
    aix3* | aix4* | aix5*)
 
15907
      # On AIX/PPC, the GNU linker is very broken
 
15908
      if test "$host_cpu" != ia64; then
 
15909
        ld_shlibs_GCJ=no
 
15910
        cat <<EOF 1>&2
 
15911
 
 
15912
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15913
*** to be unable to reliably create shared libraries on AIX.
 
15914
*** Therefore, libtool is disabling shared libraries support.  If you
 
15915
*** really care for shared libraries, you may want to modify your PATH
 
15916
*** so that a non-GNU linker is found, and then restart.
 
15917
 
 
15918
EOF
 
15919
      fi
 
15920
      ;;
 
15921
 
 
15922
    amigaos*)
 
15923
      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)'
 
15924
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15925
      hardcode_minus_L_GCJ=yes
 
15926
 
 
15927
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15928
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15929
      # to version 4, is to share data among multiple programs linked
 
15930
      # with the same dynamic library.  Since this doesn't match the
 
15931
      # behavior of shared libraries on other platforms, we can't use
 
15932
      # them.
 
15933
      ld_shlibs_GCJ=no
 
15934
      ;;
 
15935
 
 
15936
    beos*)
 
15937
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15938
        allow_undefined_flag_GCJ=unsupported
 
15939
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15940
        # support --undefined.  This deserves some investigation.  FIXME
 
15941
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15942
      else
 
15943
        ld_shlibs_GCJ=no
 
15944
      fi
 
15945
      ;;
 
15946
 
 
15947
    cygwin* | mingw* | pw32*)
 
15948
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
15949
      # as there is no search path for DLLs.
 
15950
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
15951
      allow_undefined_flag_GCJ=unsupported
 
15952
      always_export_symbols_GCJ=no
 
15953
      enable_shared_with_static_runtimes_GCJ=yes
 
15954
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15955
 
 
15956
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15957
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15958
        # If the export-symbols file already is a .def file (1st line
 
15959
        # is EXPORTS), use it as is; otherwise, prepend...
 
15960
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15961
          cp $export_symbols $output_objdir/$soname.def;
 
15962
        else
 
15963
          echo EXPORTS > $output_objdir/$soname.def;
 
15964
          cat $export_symbols >> $output_objdir/$soname.def;
 
15965
        fi~
 
15966
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15967
      else
 
15968
        ld_shlibs=no
 
15969
      fi
 
15970
      ;;
 
15971
 
 
15972
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
15973
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15974
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15975
        wlarc=
 
15976
      else
 
15977
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15978
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15979
      fi
 
15980
      ;;
 
15981
 
 
15982
    solaris* | sysv5*)
 
15983
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15984
        ld_shlibs_GCJ=no
 
15985
        cat <<EOF 1>&2
 
15986
 
 
15987
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15988
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15989
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15990
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15991
*** your PATH or compiler configuration so that the native linker is
 
15992
*** used, and then restart.
 
15993
 
 
15994
EOF
 
15995
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15996
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15997
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15998
      else
 
15999
        ld_shlibs_GCJ=no
 
16000
      fi
 
16001
      ;;
 
16002
 
 
16003
    sunos4*)
 
16004
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16005
      wlarc=
 
16006
      hardcode_direct_GCJ=yes
 
16007
      hardcode_shlibpath_var_GCJ=no
 
16008
      ;;
 
16009
 
 
16010
  linux*)
 
16011
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16012
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16013
        archive_cmds_GCJ="$tmp_archive_cmds"
 
16014
      supports_anon_versioning=no
 
16015
      case `$LD -v 2>/dev/null` in
 
16016
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16017
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16018
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16019
        *\ 2.11.*) ;; # other 2.11 versions
 
16020
        *) supports_anon_versioning=yes ;;
 
16021
      esac
 
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 $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16027
      else
 
16028
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
16029
      fi
 
16030
      link_all_deplibs_GCJ=no
 
16031
    else
 
16032
      ld_shlibs_GCJ=no
 
16033
    fi
 
16034
    ;;
 
16035
 
 
16036
    *)
 
16037
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
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
      else
 
16041
        ld_shlibs_GCJ=no
 
16042
      fi
 
16043
      ;;
 
16044
    esac
 
16045
 
 
16046
    if test "$ld_shlibs_GCJ" = yes; then
 
16047
      runpath_var=LD_RUN_PATH
 
16048
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16049
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16050
      # ancient GNU ld didn't support --whole-archive et. al.
 
16051
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16052
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16053
      else
 
16054
        whole_archive_flag_spec_GCJ=
 
16055
      fi
 
16056
    fi
 
16057
  else
 
16058
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16059
    case $host_os in
 
16060
    aix3*)
 
16061
      allow_undefined_flag_GCJ=unsupported
 
16062
      always_export_symbols_GCJ=yes
 
16063
      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'
 
16064
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16065
      # are no directories specified by -L.
 
16066
      hardcode_minus_L_GCJ=yes
 
16067
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16068
        # Neither direct hardcoding nor static linking is supported with a
 
16069
        # broken collect2.
 
16070
        hardcode_direct_GCJ=unsupported
 
16071
      fi
 
16072
      ;;
 
16073
 
 
16074
    aix4* | aix5*)
 
16075
      if test "$host_cpu" = ia64; then
 
16076
        # On IA64, the linker does run time linking by default, so we don't
 
16077
        # have to do anything special.
 
16078
        aix_use_runtimelinking=no
 
16079
        exp_sym_flag='-Bexport'
 
16080
        no_entry_flag=""
 
16081
      else
 
16082
        # If we're using GNU nm, then we don't want the "-C" option.
 
16083
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16084
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16085
          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'
 
16086
        else
 
16087
          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'
 
16088
        fi
 
16089
        aix_use_runtimelinking=no
 
16090
 
 
16091
        # Test if we are trying to use run time linking or normal
 
16092
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16093
        # need to do runtime linking.
 
16094
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16095
          for ld_flag in $LDFLAGS; do
 
16096
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16097
            aix_use_runtimelinking=yes
 
16098
            break
 
16099
          fi
 
16100
          done
 
16101
        esac
 
16102
 
 
16103
        exp_sym_flag='-bexport'
 
16104
        no_entry_flag='-bnoentry'
 
16105
      fi
 
16106
 
 
16107
      # When large executables or shared objects are built, AIX ld can
 
16108
      # have problems creating the table of contents.  If linking a library
 
16109
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16110
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16111
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16112
 
 
16113
      archive_cmds_GCJ=''
 
16114
      hardcode_direct_GCJ=yes
 
16115
      hardcode_libdir_separator_GCJ=':'
 
16116
      link_all_deplibs_GCJ=yes
 
16117
 
 
16118
      if test "$GCC" = yes; then
 
16119
        case $host_os in aix4.012|aix4.012.*)
 
16120
        # We only want to do this on AIX 4.2 and lower, the check
 
16121
        # below for broken collect2 doesn't work under 4.3+
 
16122
          collect2name=`${CC} -print-prog-name=collect2`
 
16123
          if test -f "$collect2name" && \
 
16124
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16125
          then
 
16126
          # We have reworked collect2
 
16127
          hardcode_direct_GCJ=yes
 
16128
          else
 
16129
          # We have old collect2
 
16130
          hardcode_direct_GCJ=unsupported
 
16131
          # It fails to find uninstalled libraries when the uninstalled
 
16132
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16133
          # to unsupported forces relinking
 
16134
          hardcode_minus_L_GCJ=yes
 
16135
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16136
          hardcode_libdir_separator_GCJ=
 
16137
          fi
 
16138
        esac
 
16139
        shared_flag='-shared'
 
16140
      else
 
16141
        # not using gcc
 
16142
        if test "$host_cpu" = ia64; then
 
16143
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16144
        # chokes on -Wl,-G. The following line is correct:
 
16145
          shared_flag='-G'
 
16146
        else
 
16147
        if test "$aix_use_runtimelinking" = yes; then
 
16148
            shared_flag='${wl}-G'
 
16149
          else
 
16150
            shared_flag='${wl}-bM:SRE'
 
16151
        fi
 
16152
        fi
 
16153
      fi
 
16154
 
 
16155
      # It seems that -bexpall does not export symbols beginning with
 
16156
      # underscore (_), so it is better to generate a list of symbols to export.
 
16157
      always_export_symbols_GCJ=yes
 
16158
      if test "$aix_use_runtimelinking" = yes; then
 
16159
        # Warning - without using the other runtime loading flags (-brtl),
 
16160
        # -berok will link without error, but may produce a broken library.
 
16161
        allow_undefined_flag_GCJ='-berok'
 
16162
       # Determine the default libpath from the value encoded in an empty executable.
 
16163
       cat >conftest.$ac_ext <<_ACEOF
 
16164
/* confdefs.h.  */
 
16165
_ACEOF
 
16166
cat confdefs.h >>conftest.$ac_ext
 
16167
cat >>conftest.$ac_ext <<_ACEOF
 
16168
/* end confdefs.h.  */
 
16169
 
 
16170
int
 
16171
main ()
 
16172
{
 
16173
 
 
16174
  ;
 
16175
  return 0;
 
16176
}
 
16177
_ACEOF
 
16178
rm -f conftest.$ac_objext conftest$ac_exeext
 
16179
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16180
  (eval $ac_link) 2>conftest.er1
 
16181
  ac_status=$?
 
16182
  grep -v '^ *+' conftest.er1 >conftest.err
 
16183
  rm -f conftest.er1
 
16184
  cat conftest.err >&5
 
16185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16186
  (exit $ac_status); } &&
 
16187
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16189
  (eval $ac_try) 2>&5
 
16190
  ac_status=$?
 
16191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16192
  (exit $ac_status); }; } &&
 
16193
         { ac_try='test -s conftest$ac_exeext'
 
16194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16195
  (eval $ac_try) 2>&5
 
16196
  ac_status=$?
 
16197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16198
  (exit $ac_status); }; }; then
 
16199
 
 
16200
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16201
}'`
 
16202
# Check for a 64-bit object if we didn't find anything.
 
16203
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; }
 
16204
}'`; fi
 
16205
else
 
16206
  echo "$as_me: failed program was:" >&5
 
16207
sed 's/^/| /' conftest.$ac_ext >&5
 
16208
 
 
16209
fi
 
16210
rm -f conftest.err conftest.$ac_objext \
 
16211
      conftest$ac_exeext conftest.$ac_ext
 
16212
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16213
 
 
16214
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16215
        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"
 
16216
       else
 
16217
        if test "$host_cpu" = ia64; then
 
16218
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16219
          allow_undefined_flag_GCJ="-z nodefs"
 
16220
          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"
 
16221
        else
 
16222
         # Determine the default libpath from the value encoded in an empty executable.
 
16223
         cat >conftest.$ac_ext <<_ACEOF
 
16224
/* confdefs.h.  */
 
16225
_ACEOF
 
16226
cat confdefs.h >>conftest.$ac_ext
 
16227
cat >>conftest.$ac_ext <<_ACEOF
 
16228
/* end confdefs.h.  */
 
16229
 
 
16230
int
 
16231
main ()
 
16232
{
 
16233
 
 
16234
  ;
 
16235
  return 0;
 
16236
}
 
16237
_ACEOF
 
16238
rm -f conftest.$ac_objext conftest$ac_exeext
 
16239
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16240
  (eval $ac_link) 2>conftest.er1
 
16241
  ac_status=$?
 
16242
  grep -v '^ *+' conftest.er1 >conftest.err
 
16243
  rm -f conftest.er1
 
16244
  cat conftest.err >&5
 
16245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16246
  (exit $ac_status); } &&
 
16247
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16249
  (eval $ac_try) 2>&5
 
16250
  ac_status=$?
 
16251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16252
  (exit $ac_status); }; } &&
 
16253
         { ac_try='test -s conftest$ac_exeext'
 
16254
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16255
  (eval $ac_try) 2>&5
 
16256
  ac_status=$?
 
16257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16258
  (exit $ac_status); }; }; then
 
16259
 
 
16260
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16261
}'`
 
16262
# Check for a 64-bit object if we didn't find anything.
 
16263
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; }
 
16264
}'`; fi
 
16265
else
 
16266
  echo "$as_me: failed program was:" >&5
 
16267
sed 's/^/| /' conftest.$ac_ext >&5
 
16268
 
 
16269
fi
 
16270
rm -f conftest.err conftest.$ac_objext \
 
16271
      conftest$ac_exeext conftest.$ac_ext
 
16272
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16273
 
 
16274
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16275
          # Warning - without using the other run time loading flags,
 
16276
          # -berok will link without error, but may produce a broken library.
 
16277
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16278
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16279
          # -bexpall does not export symbols beginning with underscore (_)
 
16280
          always_export_symbols_GCJ=yes
 
16281
          # Exported symbols can be pulled into shared objects from archives
 
16282
          whole_archive_flag_spec_GCJ=' '
 
16283
          archive_cmds_need_lc_GCJ=yes
 
16284
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16285
          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'
 
16286
        fi
 
16287
      fi
 
16288
      ;;
 
16289
 
 
16290
    amigaos*)
 
16291
      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)'
 
16292
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16293
      hardcode_minus_L_GCJ=yes
 
16294
      # see comment about different semantics on the GNU ld section
 
16295
      ld_shlibs_GCJ=no
 
16296
      ;;
 
16297
 
 
16298
    bsdi4*)
 
16299
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16300
      ;;
 
16301
 
 
16302
    cygwin* | mingw* | pw32*)
 
16303
      # When not using gcc, we currently assume that we are using
 
16304
      # Microsoft Visual C++.
 
16305
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16306
      # no search path for DLLs.
 
16307
      hardcode_libdir_flag_spec_GCJ=' '
 
16308
      allow_undefined_flag_GCJ=unsupported
 
16309
      # Tell ltmain to make .lib files, not .a files.
 
16310
      libext=lib
 
16311
      # Tell ltmain to make .dll files, not .so files.
 
16312
      shrext_cmds=".dll"
 
16313
      # FIXME: Setting linknames here is a bad hack.
 
16314
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16315
      # The linker will automatically build a .lib file if we build a DLL.
 
16316
      old_archive_From_new_cmds_GCJ='true'
 
16317
      # FIXME: Should let the user specify the lib program.
 
16318
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16319
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16320
      enable_shared_with_static_runtimes_GCJ=yes
 
16321
      ;;
 
16322
 
 
16323
    darwin* | rhapsody*)
 
16324
    if test "$GXX" = yes ; then
 
16325
      archive_cmds_need_lc_GCJ=no
 
16326
      case "$host_os" in
 
16327
      rhapsody* | darwin1.[012])
 
16328
        allow_undefined_flag_GCJ='-undefined suppress'
 
16329
        ;;
 
16330
      *) # Darwin 1.3 on
 
16331
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16332
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16333
      else
 
16334
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
16335
          10.[012])
 
16336
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16337
            ;;
 
16338
          10.*)
 
16339
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
16340
            ;;
 
16341
        esac
 
16342
      fi
 
16343
        ;;
 
16344
      esac
 
16345
        lt_int_apple_cc_single_mod=no
 
16346
        output_verbose_link_cmd='echo'
 
16347
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16348
          lt_int_apple_cc_single_mod=yes
 
16349
        fi
 
16350
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16351
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16352
        else
 
16353
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16354
      fi
 
16355
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16356
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16357
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16358
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16359
        else
 
16360
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16361
        fi
 
16362
          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}'
 
16363
      hardcode_direct_GCJ=no
 
16364
      hardcode_automatic_GCJ=yes
 
16365
      hardcode_shlibpath_var_GCJ=unsupported
 
16366
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16367
      link_all_deplibs_GCJ=yes
 
16368
    else
 
16369
      ld_shlibs_GCJ=no
 
16370
    fi
 
16371
      ;;
 
16372
 
 
16373
    dgux*)
 
16374
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16375
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16376
      hardcode_shlibpath_var_GCJ=no
 
16377
      ;;
 
16378
 
 
16379
    freebsd1*)
 
16380
      ld_shlibs_GCJ=no
 
16381
      ;;
 
16382
 
 
16383
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16384
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16385
    # does not break anything, and helps significantly (at the cost of a little
 
16386
    # extra space).
 
16387
    freebsd2.2*)
 
16388
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16389
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16390
      hardcode_direct_GCJ=yes
 
16391
      hardcode_shlibpath_var_GCJ=no
 
16392
      ;;
 
16393
 
 
16394
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16395
    freebsd2*)
 
16396
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16397
      hardcode_direct_GCJ=yes
 
16398
      hardcode_minus_L_GCJ=yes
 
16399
      hardcode_shlibpath_var_GCJ=no
 
16400
      ;;
 
16401
 
 
16402
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16403
    freebsd* | kfreebsd*-gnu)
 
16404
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16405
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16406
      hardcode_direct_GCJ=yes
 
16407
      hardcode_shlibpath_var_GCJ=no
 
16408
      ;;
 
16409
 
 
16410
    hpux9*)
 
16411
      if test "$GCC" = yes; then
 
16412
        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'
 
16413
      else
 
16414
        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'
 
16415
      fi
 
16416
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16417
      hardcode_libdir_separator_GCJ=:
 
16418
      hardcode_direct_GCJ=yes
 
16419
 
 
16420
      # hardcode_minus_L: Not really in the search PATH,
 
16421
      # but as the default location of the library.
 
16422
      hardcode_minus_L_GCJ=yes
 
16423
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16424
      ;;
 
16425
 
 
16426
    hpux10* | hpux11*)
 
16427
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16428
        case "$host_cpu" in
 
16429
        hppa*64*|ia64*)
 
16430
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16431
          ;;
 
16432
        *)
 
16433
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16434
          ;;
 
16435
        esac
 
16436
      else
 
16437
        case "$host_cpu" in
 
16438
        hppa*64*|ia64*)
 
16439
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16440
          ;;
 
16441
        *)
 
16442
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16443
          ;;
 
16444
        esac
 
16445
      fi
 
16446
      if test "$with_gnu_ld" = no; then
 
16447
        case "$host_cpu" in
 
16448
        hppa*64*)
 
16449
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16450
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
16451
          hardcode_libdir_separator_GCJ=:
 
16452
          hardcode_direct_GCJ=no
 
16453
          hardcode_shlibpath_var_GCJ=no
 
16454
          ;;
 
16455
        ia64*)
 
16456
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16457
          hardcode_direct_GCJ=no
 
16458
          hardcode_shlibpath_var_GCJ=no
 
16459
 
 
16460
          # hardcode_minus_L: Not really in the search PATH,
 
16461
          # but as the default location of the library.
 
16462
          hardcode_minus_L_GCJ=yes
 
16463
          ;;
 
16464
        *)
 
16465
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16466
          hardcode_libdir_separator_GCJ=:
 
16467
          hardcode_direct_GCJ=yes
 
16468
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
16469
 
 
16470
          # hardcode_minus_L: Not really in the search PATH,
 
16471
          # but as the default location of the library.
 
16472
          hardcode_minus_L_GCJ=yes
 
16473
          ;;
 
16474
        esac
 
16475
      fi
 
16476
      ;;
 
16477
 
 
16478
    irix5* | irix6* | nonstopux*)
 
16479
      if test "$GCC" = yes; then
 
16480
        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'
 
16481
      else
 
16482
        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'
 
16483
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
16484
      fi
 
16485
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16486
      hardcode_libdir_separator_GCJ=:
 
16487
      link_all_deplibs_GCJ=yes
 
16488
      ;;
 
16489
 
 
16490
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16491
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16492
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16493
      else
 
16494
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16495
      fi
 
16496
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16497
      hardcode_direct_GCJ=yes
 
16498
      hardcode_shlibpath_var_GCJ=no
 
16499
      ;;
 
16500
 
 
16501
    newsos6)
 
16502
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16503
      hardcode_direct_GCJ=yes
 
16504
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16505
      hardcode_libdir_separator_GCJ=:
 
16506
      hardcode_shlibpath_var_GCJ=no
 
16507
      ;;
 
16508
 
 
16509
    openbsd*)
 
16510
      hardcode_direct_GCJ=yes
 
16511
      hardcode_shlibpath_var_GCJ=no
 
16512
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16513
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16514
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16515
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16516
      else
 
16517
       case $host_os in
 
16518
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16519
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16520
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16521
           ;;
 
16522
         *)
 
16523
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16524
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16525
           ;;
 
16526
       esac
 
16527
      fi
 
16528
      ;;
 
16529
 
 
16530
    os2*)
 
16531
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16532
      hardcode_minus_L_GCJ=yes
 
16533
      allow_undefined_flag_GCJ=unsupported
 
16534
      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'
 
16535
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16536
      ;;
 
16537
 
 
16538
    osf3*)
 
16539
      if test "$GCC" = yes; then
 
16540
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16541
        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'
 
16542
      else
 
16543
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16544
        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'
 
16545
      fi
 
16546
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16547
      hardcode_libdir_separator_GCJ=:
 
16548
      ;;
 
16549
 
 
16550
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16551
      if test "$GCC" = yes; then
 
16552
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
16553
        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'
 
16554
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
16555
      else
 
16556
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
16557
        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'
 
16558
        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~
 
16559
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
16560
 
 
16561
        # Both c and cxx compiler support -rpath directly
 
16562
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
16563
      fi
 
16564
      hardcode_libdir_separator_GCJ=:
 
16565
      ;;
 
16566
 
 
16567
    sco3.2v5*)
 
16568
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16569
      hardcode_shlibpath_var_GCJ=no
 
16570
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16571
      runpath_var=LD_RUN_PATH
 
16572
      hardcode_runpath_var=yes
 
16573
      ;;
 
16574
 
 
16575
    solaris*)
 
16576
      no_undefined_flag_GCJ=' -z text'
 
16577
      if test "$GCC" = yes; then
 
16578
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16579
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16580
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16581
      else
 
16582
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16583
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16584
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16585
      fi
 
16586
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16587
      hardcode_shlibpath_var_GCJ=no
 
16588
      case $host_os in
 
16589
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16590
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16591
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16592
      esac
 
16593
      link_all_deplibs_GCJ=yes
 
16594
      ;;
 
16595
 
 
16596
    sunos4*)
 
16597
      if test "x$host_vendor" = xsequent; then
 
16598
        # Use $CC to link under sequent, because it throws in some extra .o
 
16599
        # files that make .init and .fini sections work.
 
16600
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16601
      else
 
16602
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16603
      fi
 
16604
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16605
      hardcode_direct_GCJ=yes
 
16606
      hardcode_minus_L_GCJ=yes
 
16607
      hardcode_shlibpath_var_GCJ=no
 
16608
      ;;
 
16609
 
 
16610
    sysv4)
 
16611
      case $host_vendor in
 
16612
        sni)
 
16613
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16614
          hardcode_direct_GCJ=yes # is this really true???
 
16615
        ;;
 
16616
        siemens)
 
16617
          ## LD is ld it makes a PLAMLIB
 
16618
          ## CC just makes a GrossModule.
 
16619
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16620
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
16621
          hardcode_direct_GCJ=no
 
16622
        ;;
 
16623
        motorola)
 
16624
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16625
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
16626
        ;;
 
16627
      esac
 
16628
      runpath_var='LD_RUN_PATH'
 
16629
      hardcode_shlibpath_var_GCJ=no
 
16630
      ;;
 
16631
 
 
16632
    sysv4.3*)
 
16633
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16634
      hardcode_shlibpath_var_GCJ=no
 
16635
      export_dynamic_flag_spec_GCJ='-Bexport'
 
16636
      ;;
 
16637
 
 
16638
    sysv4*MP*)
 
16639
      if test -d /usr/nec; then
 
16640
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16641
        hardcode_shlibpath_var_GCJ=no
 
16642
        runpath_var=LD_RUN_PATH
 
16643
        hardcode_runpath_var=yes
 
16644
        ld_shlibs_GCJ=yes
 
16645
      fi
 
16646
      ;;
 
16647
 
 
16648
    sysv4.2uw2*)
 
16649
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16650
      hardcode_direct_GCJ=yes
 
16651
      hardcode_minus_L_GCJ=no
 
16652
      hardcode_shlibpath_var_GCJ=no
 
16653
      hardcode_runpath_var=yes
 
16654
      runpath_var=LD_RUN_PATH
 
16655
      ;;
 
16656
 
 
16657
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16658
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
16659
      if test "$GCC" = yes; then
 
16660
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16661
      else
 
16662
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16663
      fi
 
16664
      runpath_var='LD_RUN_PATH'
 
16665
      hardcode_shlibpath_var_GCJ=no
 
16666
      ;;
 
16667
 
 
16668
    sysv5*)
 
16669
      no_undefined_flag_GCJ=' -z text'
 
16670
      # $CC -shared without GNU ld will not create a library from C++
 
16671
      # object files and a static libstdc++, better avoid it by now
 
16672
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16673
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16674
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16675
      hardcode_libdir_flag_spec_GCJ=
 
16676
      hardcode_shlibpath_var_GCJ=no
 
16677
      runpath_var='LD_RUN_PATH'
 
16678
      ;;
 
16679
 
 
16680
    uts4*)
 
16681
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16682
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16683
      hardcode_shlibpath_var_GCJ=no
 
16684
      ;;
 
16685
 
 
16686
    *)
 
16687
      ld_shlibs_GCJ=no
 
16688
      ;;
 
16689
    esac
 
16690
  fi
 
16691
 
 
16692
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16693
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
16694
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
16695
 
 
16696
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16697
if test "$GCC" = yes; then
 
16698
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16699
fi
 
16700
 
 
16701
#
 
16702
# Do we need to explicitly link libc?
 
16703
#
 
16704
case "x$archive_cmds_need_lc_GCJ" in
 
16705
x|xyes)
 
16706
  # Assume -lc should be added
 
16707
  archive_cmds_need_lc_GCJ=yes
 
16708
 
 
16709
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16710
    case $archive_cmds_GCJ in
 
16711
    *'~'*)
 
16712
      # FIXME: we may have to deal with multi-command sequences.
 
16713
      ;;
 
16714
    '$CC '*)
 
16715
      # Test whether the compiler implicitly links with -lc since on some
 
16716
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16717
      # to ld, don't add -lc before -lgcc.
 
16718
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16719
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16720
      $rm conftest*
 
16721
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16722
 
 
16723
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16724
  (eval $ac_compile) 2>&5
 
16725
  ac_status=$?
 
16726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16727
  (exit $ac_status); } 2>conftest.err; then
 
16728
        soname=conftest
 
16729
        lib=conftest
 
16730
        libobjs=conftest.$ac_objext
 
16731
        deplibs=
 
16732
        wl=$lt_prog_compiler_wl_GCJ
 
16733
        compiler_flags=-v
 
16734
        linker_flags=-v
 
16735
        verstring=
 
16736
        output_objdir=.
 
16737
        libname=conftest
 
16738
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
16739
        allow_undefined_flag_GCJ=
 
16740
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16741
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16742
  ac_status=$?
 
16743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16744
  (exit $ac_status); }
 
16745
        then
 
16746
          archive_cmds_need_lc_GCJ=no
 
16747
        else
 
16748
          archive_cmds_need_lc_GCJ=yes
 
16749
        fi
 
16750
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
16751
      else
 
16752
        cat conftest.err 1>&5
 
16753
      fi
 
16754
      $rm conftest*
 
16755
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16756
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
16757
      ;;
 
16758
    esac
 
16759
  fi
 
16760
  ;;
 
16761
esac
 
16762
 
 
16763
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16764
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16765
library_names_spec=
 
16766
libname_spec='lib$name'
 
16767
soname_spec=
 
16768
shrext_cmds=".so"
 
16769
postinstall_cmds=
 
16770
postuninstall_cmds=
 
16771
finish_cmds=
 
16772
finish_eval=
 
16773
shlibpath_var=
 
16774
shlibpath_overrides_runpath=unknown
 
16775
version_type=none
 
16776
dynamic_linker="$host_os ld.so"
 
16777
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16778
if test "$GCC" = yes; then
 
16779
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16780
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16781
    # if the path contains ";" then we assume it to be the separator
 
16782
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16783
    # assumed that no part of a normal pathname contains ";" but that should
 
16784
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16785
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16786
  else
 
16787
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16788
  fi
 
16789
else
 
16790
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16791
fi
 
16792
need_lib_prefix=unknown
 
16793
hardcode_into_libs=no
 
16794
 
 
16795
# when you set need_version to no, make sure it does not cause -set_version
 
16796
# flags to be left without arguments
 
16797
need_version=unknown
 
16798
 
 
16799
case $host_os in
 
16800
aix3*)
 
16801
  version_type=linux
 
16802
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16803
  shlibpath_var=LIBPATH
 
16804
 
 
16805
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16806
  soname_spec='${libname}${release}${shared_ext}$major'
 
16807
  ;;
 
16808
 
 
16809
aix4* | aix5*)
 
16810
  version_type=linux
 
16811
  need_lib_prefix=no
 
16812
  need_version=no
 
16813
  hardcode_into_libs=yes
 
16814
  if test "$host_cpu" = ia64; then
 
16815
    # AIX 5 supports IA64
 
16816
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16817
    shlibpath_var=LD_LIBRARY_PATH
 
16818
  else
 
16819
    # With GCC up to 2.95.x, collect2 would create an import file
 
16820
    # for dependence libraries.  The import file would start with
 
16821
    # the line `#! .'.  This would cause the generated library to
 
16822
    # depend on `.', always an invalid library.  This was fixed in
 
16823
    # development snapshots of GCC prior to 3.0.
 
16824
    case $host_os in
 
16825
      aix4 | aix4.[01] | aix4.[01].*)
 
16826
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16827
           echo ' yes '
 
16828
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16829
        :
 
16830
      else
 
16831
        can_build_shared=no
 
16832
      fi
 
16833
      ;;
 
16834
    esac
 
16835
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16836
    # soname into executable. Probably we can add versioning support to
 
16837
    # collect2, so additional links can be useful in future.
 
16838
    if test "$aix_use_runtimelinking" = yes; then
 
16839
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16840
      # instead of lib<name>.a to let people know that these are not
 
16841
      # typical AIX shared libraries.
 
16842
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16843
    else
 
16844
      # We preserve .a as extension for shared libraries through AIX4.2
 
16845
      # and later when we are not doing run time linking.
 
16846
      library_names_spec='${libname}${release}.a $libname.a'
 
16847
      soname_spec='${libname}${release}${shared_ext}$major'
 
16848
    fi
 
16849
    shlibpath_var=LIBPATH
 
16850
  fi
 
16851
  ;;
 
16852
 
 
16853
amigaos*)
 
16854
  library_names_spec='$libname.ixlibrary $libname.a'
 
16855
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16856
  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'
 
16857
  ;;
 
16858
 
 
16859
beos*)
 
16860
  library_names_spec='${libname}${shared_ext}'
 
16861
  dynamic_linker="$host_os ld.so"
 
16862
  shlibpath_var=LIBRARY_PATH
 
16863
  ;;
 
16864
 
 
16865
bsdi4*)
 
16866
  version_type=linux
 
16867
  need_version=no
 
16868
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16869
  soname_spec='${libname}${release}${shared_ext}$major'
 
16870
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16871
  shlibpath_var=LD_LIBRARY_PATH
 
16872
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16873
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16874
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16875
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16876
  # libtool to hard-code these into programs
 
16877
  ;;
 
16878
 
 
16879
cygwin* | mingw* | pw32*)
 
16880
  version_type=windows
 
16881
  shrext_cmds=".dll"
 
16882
  need_version=no
 
16883
  need_lib_prefix=no
 
16884
 
 
16885
  case $GCC,$host_os in
 
16886
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16887
    library_names_spec='$libname.dll.a'
 
16888
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16889
    postinstall_cmds='base_file=`basename \${file}`~
 
16890
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16891
      dldir=$destdir/`dirname \$dlpath`~
 
16892
      test -d \$dldir || mkdir -p \$dldir~
 
16893
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16894
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16895
      dlpath=$dir/\$dldll~
 
16896
       $rm \$dlpath'
 
16897
    shlibpath_overrides_runpath=yes
 
16898
 
 
16899
    case $host_os in
 
16900
    cygwin*)
 
16901
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16902
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16903
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16904
      ;;
 
16905
    mingw*)
 
16906
      # MinGW DLLs use traditional 'lib' prefix
 
16907
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16908
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16909
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16910
        # It is most probably a Windows format PATH printed by
 
16911
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16912
        # path with ; separators, and with drive letters. We can handle the
 
16913
        # drive letters (cygwin fileutils understands them), so leave them,
 
16914
        # especially as we might pass files found there to a mingw objdump,
 
16915
        # which wouldn't understand a cygwinified path. Ahh.
 
16916
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16917
      else
 
16918
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16919
      fi
 
16920
      ;;
 
16921
    pw32*)
 
16922
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16923
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16924
      ;;
 
16925
    esac
 
16926
    ;;
 
16927
 
 
16928
  *)
 
16929
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16930
    ;;
 
16931
  esac
 
16932
  dynamic_linker='Win32 ld.exe'
 
16933
  # FIXME: first we should search . and the directory the executable is in
 
16934
  shlibpath_var=PATH
 
16935
  ;;
 
16936
 
 
16937
darwin* | rhapsody*)
 
16938
  dynamic_linker="$host_os dyld"
 
16939
  version_type=darwin
 
16940
  need_lib_prefix=no
 
16941
  need_version=no
 
16942
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16943
  soname_spec='${libname}${release}${major}$shared_ext'
 
16944
  shlibpath_overrides_runpath=yes
 
16945
  shlibpath_var=DYLD_LIBRARY_PATH
 
16946
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16947
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16948
  if test "$GCC" = yes; then
 
16949
    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"`
 
16950
  else
 
16951
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16952
  fi
 
16953
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16954
  ;;
 
16955
 
 
16956
dgux*)
 
16957
  version_type=linux
 
16958
  need_lib_prefix=no
 
16959
  need_version=no
 
16960
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16961
  soname_spec='${libname}${release}${shared_ext}$major'
 
16962
  shlibpath_var=LD_LIBRARY_PATH
 
16963
  ;;
 
16964
 
 
16965
freebsd1*)
 
16966
  dynamic_linker=no
 
16967
  ;;
 
16968
 
 
16969
kfreebsd*-gnu)
 
16970
  version_type=linux
 
16971
  need_lib_prefix=no
 
16972
  need_version=no
 
16973
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16974
  soname_spec='${libname}${release}${shared_ext}$major'
 
16975
  shlibpath_var=LD_LIBRARY_PATH
 
16976
  shlibpath_overrides_runpath=no
 
16977
  hardcode_into_libs=yes
 
16978
  dynamic_linker='GNU ld.so'
 
16979
  ;;
 
16980
 
 
16981
freebsd*)
 
16982
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16983
  version_type=freebsd-$objformat
 
16984
  case $version_type in
 
16985
    freebsd-elf*)
 
16986
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16987
      need_version=no
 
16988
      need_lib_prefix=no
 
16989
      ;;
 
16990
    freebsd-*)
 
16991
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16992
      need_version=yes
 
16993
      ;;
 
16994
  esac
 
16995
  shlibpath_var=LD_LIBRARY_PATH
 
16996
  case $host_os in
 
16997
  freebsd2*)
 
16998
    shlibpath_overrides_runpath=yes
 
16999
    ;;
 
17000
  freebsd3.01* | freebsdelf3.01*)
 
17001
    shlibpath_overrides_runpath=yes
 
17002
    hardcode_into_libs=yes
 
17003
    ;;
 
17004
  *) # from 3.2 on
 
17005
    shlibpath_overrides_runpath=no
 
17006
    hardcode_into_libs=yes
 
17007
    ;;
 
17008
  esac
 
17009
  ;;
 
17010
 
 
17011
gnu*)
 
17012
  version_type=linux
 
17013
  need_lib_prefix=no
 
17014
  need_version=no
 
17015
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17016
  soname_spec='${libname}${release}${shared_ext}$major'
 
17017
  shlibpath_var=LD_LIBRARY_PATH
 
17018
  hardcode_into_libs=yes
 
17019
  ;;
 
17020
 
 
17021
hpux9* | hpux10* | hpux11*)
 
17022
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17023
  # link against other versions.
 
17024
  version_type=sunos
 
17025
  need_lib_prefix=no
 
17026
  need_version=no
 
17027
  case "$host_cpu" in
 
17028
  ia64*)
 
17029
    shrext_cmds='.so'
 
17030
    hardcode_into_libs=yes
 
17031
    dynamic_linker="$host_os dld.so"
 
17032
    shlibpath_var=LD_LIBRARY_PATH
 
17033
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17034
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17035
    soname_spec='${libname}${release}${shared_ext}$major'
 
17036
    if test "X$HPUX_IA64_MODE" = X32; then
 
17037
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17038
    else
 
17039
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17040
    fi
 
17041
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17042
    ;;
 
17043
   hppa*64*)
 
17044
     shrext_cmds='.sl'
 
17045
     hardcode_into_libs=yes
 
17046
     dynamic_linker="$host_os dld.sl"
 
17047
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17048
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17049
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17050
     soname_spec='${libname}${release}${shared_ext}$major'
 
17051
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17052
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17053
     ;;
 
17054
   *)
 
17055
    shrext_cmds='.sl'
 
17056
    dynamic_linker="$host_os dld.sl"
 
17057
    shlibpath_var=SHLIB_PATH
 
17058
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17059
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17060
    soname_spec='${libname}${release}${shared_ext}$major'
 
17061
    ;;
 
17062
  esac
 
17063
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17064
  postinstall_cmds='chmod 555 $lib'
 
17065
  ;;
 
17066
 
 
17067
irix5* | irix6* | nonstopux*)
 
17068
  case $host_os in
 
17069
    nonstopux*) version_type=nonstopux ;;
 
17070
    *)
 
17071
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17072
                version_type=linux
 
17073
        else
 
17074
                version_type=irix
 
17075
        fi ;;
 
17076
  esac
 
17077
  need_lib_prefix=no
 
17078
  need_version=no
 
17079
  soname_spec='${libname}${release}${shared_ext}$major'
 
17080
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17081
  case $host_os in
 
17082
  irix5* | nonstopux*)
 
17083
    libsuff= shlibsuff=
 
17084
    ;;
 
17085
  *)
 
17086
    case $LD in # libtool.m4 will add one of these switches to LD
 
17087
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17088
      libsuff= shlibsuff= libmagic=32-bit;;
 
17089
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17090
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17091
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17092
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17093
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17094
    esac
 
17095
    ;;
 
17096
  esac
 
17097
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17098
  shlibpath_overrides_runpath=no
 
17099
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17100
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17101
  hardcode_into_libs=yes
 
17102
  ;;
 
17103
 
 
17104
# No shared lib support for Linux oldld, aout, or coff.
 
17105
linux*oldld* | linux*aout* | linux*coff*)
 
17106
  dynamic_linker=no
 
17107
  ;;
 
17108
 
 
17109
# This must be Linux ELF.
 
17110
linux*)
 
17111
  version_type=linux
 
17112
  need_lib_prefix=no
 
17113
  need_version=no
 
17114
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17115
  soname_spec='${libname}${release}${shared_ext}$major'
 
17116
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17117
  shlibpath_var=LD_LIBRARY_PATH
 
17118
  shlibpath_overrides_runpath=no
 
17119
  # This implies no fast_install, which is unacceptable.
 
17120
  # Some rework will be needed to allow for fast_install
 
17121
  # before this can be enabled.
 
17122
  hardcode_into_libs=yes
 
17123
 
 
17124
  # Append ld.so.conf contents to the search path
 
17125
  if test -f /etc/ld.so.conf; then
 
17126
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17127
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17128
  fi
 
17129
 
 
17130
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17131
  # powerpc, because MkLinux only supported shared libraries with the
 
17132
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17133
  # most powerpc-linux boxes support dynamic linking these days and
 
17134
  # people can always --disable-shared, the test was removed, and we
 
17135
  # assume the GNU/Linux dynamic linker is in use.
 
17136
  dynamic_linker='GNU/Linux ld.so'
 
17137
  ;;
 
17138
 
 
17139
netbsdelf*-gnu)
 
17140
  version_type=linux
 
17141
  need_lib_prefix=no
 
17142
  need_version=no
 
17143
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17144
  soname_spec='${libname}${release}${shared_ext}$major'
 
17145
  shlibpath_var=LD_LIBRARY_PATH
 
17146
  shlibpath_overrides_runpath=no
 
17147
  hardcode_into_libs=yes
 
17148
  dynamic_linker='NetBSD ld.elf_so'
 
17149
  ;;
 
17150
 
 
17151
knetbsd*-gnu)
 
17152
  version_type=linux
 
17153
  need_lib_prefix=no
 
17154
  need_version=no
 
17155
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17156
  soname_spec='${libname}${release}${shared_ext}$major'
 
17157
  shlibpath_var=LD_LIBRARY_PATH
 
17158
  shlibpath_overrides_runpath=no
 
17159
  hardcode_into_libs=yes
 
17160
  dynamic_linker='GNU ld.so'
 
17161
  ;;
 
17162
 
 
17163
netbsd*)
 
17164
  version_type=sunos
 
17165
  need_lib_prefix=no
 
17166
  need_version=no
 
17167
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17168
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17169
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17170
    dynamic_linker='NetBSD (a.out) ld.so'
 
17171
  else
 
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
    dynamic_linker='NetBSD ld.elf_so'
 
17175
  fi
 
17176
  shlibpath_var=LD_LIBRARY_PATH
 
17177
  shlibpath_overrides_runpath=yes
 
17178
  hardcode_into_libs=yes
 
17179
  ;;
 
17180
 
 
17181
newsos6)
 
17182
  version_type=linux
 
17183
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17184
  shlibpath_var=LD_LIBRARY_PATH
 
17185
  shlibpath_overrides_runpath=yes
 
17186
  ;;
 
17187
 
 
17188
nto-qnx*)
 
17189
  version_type=linux
 
17190
  need_lib_prefix=no
 
17191
  need_version=no
 
17192
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17193
  soname_spec='${libname}${release}${shared_ext}$major'
 
17194
  shlibpath_var=LD_LIBRARY_PATH
 
17195
  shlibpath_overrides_runpath=yes
 
17196
  ;;
 
17197
 
 
17198
openbsd*)
 
17199
  version_type=sunos
 
17200
  need_lib_prefix=no
 
17201
  need_version=yes
 
17202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17203
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17204
  shlibpath_var=LD_LIBRARY_PATH
 
17205
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17206
    case $host_os in
 
17207
      openbsd2.[89] | openbsd2.[89].*)
 
17208
        shlibpath_overrides_runpath=no
 
17209
        ;;
 
17210
      *)
 
17211
        shlibpath_overrides_runpath=yes
 
17212
        ;;
 
17213
      esac
 
17214
  else
 
17215
    shlibpath_overrides_runpath=yes
 
17216
  fi
 
17217
  ;;
 
17218
 
 
17219
os2*)
 
17220
  libname_spec='$name'
 
17221
  shrext_cmds=".dll"
 
17222
  need_lib_prefix=no
 
17223
  library_names_spec='$libname${shared_ext} $libname.a'
 
17224
  dynamic_linker='OS/2 ld.exe'
 
17225
  shlibpath_var=LIBPATH
 
17226
  ;;
 
17227
 
 
17228
osf3* | osf4* | osf5*)
 
17229
  version_type=osf
 
17230
  need_lib_prefix=no
 
17231
  need_version=no
 
17232
  soname_spec='${libname}${release}${shared_ext}$major'
 
17233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17234
  shlibpath_var=LD_LIBRARY_PATH
 
17235
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17236
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17237
  ;;
 
17238
 
 
17239
sco3.2v5*)
 
17240
  version_type=osf
 
17241
  soname_spec='${libname}${release}${shared_ext}$major'
 
17242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17243
  shlibpath_var=LD_LIBRARY_PATH
 
17244
  ;;
 
17245
 
 
17246
solaris*)
 
17247
  version_type=linux
 
17248
  need_lib_prefix=no
 
17249
  need_version=no
 
17250
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17251
  soname_spec='${libname}${release}${shared_ext}$major'
 
17252
  shlibpath_var=LD_LIBRARY_PATH
 
17253
  shlibpath_overrides_runpath=yes
 
17254
  hardcode_into_libs=yes
 
17255
  # ldd complains unless libraries are executable
 
17256
  postinstall_cmds='chmod +x $lib'
 
17257
  ;;
 
17258
 
 
17259
sunos4*)
 
17260
  version_type=sunos
 
17261
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17262
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17263
  shlibpath_var=LD_LIBRARY_PATH
 
17264
  shlibpath_overrides_runpath=yes
 
17265
  if test "$with_gnu_ld" = yes; then
 
17266
    need_lib_prefix=no
 
17267
  fi
 
17268
  need_version=yes
 
17269
  ;;
 
17270
 
 
17271
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17272
  version_type=linux
 
17273
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17274
  soname_spec='${libname}${release}${shared_ext}$major'
 
17275
  shlibpath_var=LD_LIBRARY_PATH
 
17276
  case $host_vendor in
 
17277
    sni)
 
17278
      shlibpath_overrides_runpath=no
 
17279
      need_lib_prefix=no
 
17280
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17281
      runpath_var=LD_RUN_PATH
 
17282
      ;;
 
17283
    siemens)
 
17284
      need_lib_prefix=no
 
17285
      ;;
 
17286
    motorola)
 
17287
      need_lib_prefix=no
 
17288
      need_version=no
 
17289
      shlibpath_overrides_runpath=no
 
17290
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17291
      ;;
 
17292
  esac
 
17293
  ;;
 
17294
 
 
17295
sysv4*MP*)
 
17296
  if test -d /usr/nec ;then
 
17297
    version_type=linux
 
17298
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17299
    soname_spec='$libname${shared_ext}.$major'
 
17300
    shlibpath_var=LD_LIBRARY_PATH
 
17301
  fi
 
17302
  ;;
 
17303
 
 
17304
uts4*)
 
17305
  version_type=linux
 
17306
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17307
  soname_spec='${libname}${release}${shared_ext}$major'
 
17308
  shlibpath_var=LD_LIBRARY_PATH
 
17309
  ;;
 
17310
 
 
17311
*)
 
17312
  dynamic_linker=no
 
17313
  ;;
 
17314
esac
 
17315
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17316
echo "${ECHO_T}$dynamic_linker" >&6
 
17317
test "$dynamic_linker" = no && can_build_shared=no
 
17318
 
 
17319
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17320
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17321
hardcode_action_GCJ=
 
17322
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17323
   test -n "$runpath_var GCJ" || \
 
17324
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17325
 
 
17326
  # We can hardcode non-existant directories.
 
17327
  if test "$hardcode_direct_GCJ" != no &&
 
17328
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17329
     # have to relink, otherwise we might link with an installed library
 
17330
     # when we should be linking with a yet-to-be-installed one
 
17331
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17332
     test "$hardcode_minus_L_GCJ" != no; then
 
17333
    # Linking always hardcodes the temporary library directory.
 
17334
    hardcode_action_GCJ=relink
 
17335
  else
 
17336
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17337
    hardcode_action_GCJ=immediate
 
17338
  fi
 
17339
else
 
17340
  # We cannot hardcode anything, or else we can only hardcode existing
 
17341
  # directories.
 
17342
  hardcode_action_GCJ=unsupported
 
17343
fi
 
17344
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17345
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17346
 
 
17347
if test "$hardcode_action_GCJ" = relink; then
 
17348
  # Fast installation is not supported
 
17349
  enable_fast_install=no
 
17350
elif test "$shlibpath_overrides_runpath" = yes ||
 
17351
     test "$enable_shared" = no; then
 
17352
  # Fast installation is not necessary
 
17353
  enable_fast_install=needless
 
17354
fi
 
17355
 
 
17356
striplib=
 
17357
old_striplib=
 
17358
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17359
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17360
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17361
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17362
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17363
  echo "$as_me:$LINENO: result: yes" >&5
 
17364
echo "${ECHO_T}yes" >&6
 
17365
else
 
17366
# FIXME - insert some real tests, host_os isn't really good enough
 
17367
  case $host_os in
 
17368
   darwin*)
 
17369
       if test -n "$STRIP" ; then
 
17370
         striplib="$STRIP -x"
 
17371
         echo "$as_me:$LINENO: result: yes" >&5
 
17372
echo "${ECHO_T}yes" >&6
 
17373
       else
 
17374
  echo "$as_me:$LINENO: result: no" >&5
 
17375
echo "${ECHO_T}no" >&6
 
17376
fi
 
17377
       ;;
 
17378
   *)
 
17379
  echo "$as_me:$LINENO: result: no" >&5
 
17380
echo "${ECHO_T}no" >&6
 
17381
    ;;
 
17382
  esac
 
17383
fi
 
17384
 
 
17385
if test "x$enable_dlopen" != xyes; then
 
17386
  enable_dlopen=unknown
 
17387
  enable_dlopen_self=unknown
 
17388
  enable_dlopen_self_static=unknown
 
17389
else
 
17390
  lt_cv_dlopen=no
 
17391
  lt_cv_dlopen_libs=
 
17392
 
 
17393
  case $host_os in
 
17394
  beos*)
 
17395
    lt_cv_dlopen="load_add_on"
 
17396
    lt_cv_dlopen_libs=
 
17397
    lt_cv_dlopen_self=yes
 
17398
    ;;
 
17399
 
 
17400
  mingw* | pw32*)
 
17401
    lt_cv_dlopen="LoadLibrary"
 
17402
    lt_cv_dlopen_libs=
 
17403
   ;;
 
17404
 
 
17405
  cygwin*)
 
17406
    lt_cv_dlopen="dlopen"
 
17407
    lt_cv_dlopen_libs=
 
17408
   ;;
 
17409
 
 
17410
  darwin*)
 
17411
  # if libdl is installed we need to link against it
 
17412
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17413
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17414
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17416
else
 
17417
  ac_check_lib_save_LIBS=$LIBS
 
17418
LIBS="-ldl  $LIBS"
 
17419
cat >conftest.$ac_ext <<_ACEOF
 
17420
/* confdefs.h.  */
 
17421
_ACEOF
 
17422
cat confdefs.h >>conftest.$ac_ext
 
17423
cat >>conftest.$ac_ext <<_ACEOF
 
17424
/* end confdefs.h.  */
 
17425
 
 
17426
/* Override any gcc2 internal prototype to avoid an error.  */
 
17427
#ifdef __cplusplus
 
17428
extern "C"
 
17429
#endif
 
17430
/* We use char because int might match the return type of a gcc2
 
17431
   builtin and then its argument prototype would still apply.  */
 
17432
char dlopen ();
 
17433
int
 
17434
main ()
 
17435
{
 
17436
dlopen ();
 
17437
  ;
 
17438
  return 0;
 
17439
}
 
17440
_ACEOF
 
17441
rm -f conftest.$ac_objext conftest$ac_exeext
 
17442
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17443
  (eval $ac_link) 2>conftest.er1
 
17444
  ac_status=$?
 
17445
  grep -v '^ *+' conftest.er1 >conftest.err
 
17446
  rm -f conftest.er1
 
17447
  cat conftest.err >&5
 
17448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17449
  (exit $ac_status); } &&
 
17450
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17452
  (eval $ac_try) 2>&5
 
17453
  ac_status=$?
 
17454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17455
  (exit $ac_status); }; } &&
 
17456
         { ac_try='test -s conftest$ac_exeext'
 
17457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17458
  (eval $ac_try) 2>&5
 
17459
  ac_status=$?
 
17460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17461
  (exit $ac_status); }; }; then
 
17462
  ac_cv_lib_dl_dlopen=yes
 
17463
else
 
17464
  echo "$as_me: failed program was:" >&5
 
17465
sed 's/^/| /' conftest.$ac_ext >&5
 
17466
 
 
17467
ac_cv_lib_dl_dlopen=no
 
17468
fi
 
17469
rm -f conftest.err conftest.$ac_objext \
 
17470
      conftest$ac_exeext conftest.$ac_ext
 
17471
LIBS=$ac_check_lib_save_LIBS
 
17472
fi
 
17473
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17474
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17475
if test $ac_cv_lib_dl_dlopen = yes; then
 
17476
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17477
else
 
17478
 
 
17479
    lt_cv_dlopen="dyld"
 
17480
    lt_cv_dlopen_libs=
 
17481
    lt_cv_dlopen_self=yes
 
17482
 
 
17483
fi
 
17484
 
 
17485
   ;;
 
17486
 
 
17487
  *)
 
17488
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17489
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17490
if test "${ac_cv_func_shl_load+set}" = set; then
 
17491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17492
else
 
17493
  cat >conftest.$ac_ext <<_ACEOF
 
17494
/* confdefs.h.  */
 
17495
_ACEOF
 
17496
cat confdefs.h >>conftest.$ac_ext
 
17497
cat >>conftest.$ac_ext <<_ACEOF
 
17498
/* end confdefs.h.  */
 
17499
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17500
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17501
#define shl_load innocuous_shl_load
 
17502
 
 
17503
/* System header to define __stub macros and hopefully few prototypes,
 
17504
    which can conflict with char shl_load (); below.
 
17505
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17506
    <limits.h> exists even on freestanding compilers.  */
 
17507
 
 
17508
#ifdef __STDC__
 
17509
# include <limits.h>
 
17510
#else
 
17511
# include <assert.h>
 
17512
#endif
 
17513
 
 
17514
#undef shl_load
 
17515
 
 
17516
/* Override any gcc2 internal prototype to avoid an error.  */
 
17517
#ifdef __cplusplus
 
17518
extern "C"
 
17519
{
 
17520
#endif
 
17521
/* We use char because int might match the return type of a gcc2
 
17522
   builtin and then its argument prototype would still apply.  */
 
17523
char shl_load ();
 
17524
/* The GNU C library defines this for functions which it implements
 
17525
    to always fail with ENOSYS.  Some functions are actually named
 
17526
    something starting with __ and the normal name is an alias.  */
 
17527
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17528
choke me
 
17529
#else
 
17530
char (*f) () = shl_load;
 
17531
#endif
 
17532
#ifdef __cplusplus
 
17533
}
 
17534
#endif
 
17535
 
 
17536
int
 
17537
main ()
 
17538
{
 
17539
return f != shl_load;
 
17540
  ;
 
17541
  return 0;
 
17542
}
 
17543
_ACEOF
 
17544
rm -f conftest.$ac_objext conftest$ac_exeext
 
17545
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17546
  (eval $ac_link) 2>conftest.er1
 
17547
  ac_status=$?
 
17548
  grep -v '^ *+' conftest.er1 >conftest.err
 
17549
  rm -f conftest.er1
 
17550
  cat conftest.err >&5
 
17551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17552
  (exit $ac_status); } &&
 
17553
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17555
  (eval $ac_try) 2>&5
 
17556
  ac_status=$?
 
17557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17558
  (exit $ac_status); }; } &&
 
17559
         { ac_try='test -s conftest$ac_exeext'
 
17560
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17561
  (eval $ac_try) 2>&5
 
17562
  ac_status=$?
 
17563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17564
  (exit $ac_status); }; }; then
 
17565
  ac_cv_func_shl_load=yes
 
17566
else
 
17567
  echo "$as_me: failed program was:" >&5
 
17568
sed 's/^/| /' conftest.$ac_ext >&5
 
17569
 
 
17570
ac_cv_func_shl_load=no
 
17571
fi
 
17572
rm -f conftest.err conftest.$ac_objext \
 
17573
      conftest$ac_exeext conftest.$ac_ext
 
17574
fi
 
17575
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17576
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17577
if test $ac_cv_func_shl_load = yes; then
 
17578
  lt_cv_dlopen="shl_load"
 
17579
else
 
17580
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17581
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17582
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17584
else
 
17585
  ac_check_lib_save_LIBS=$LIBS
 
17586
LIBS="-ldld  $LIBS"
 
17587
cat >conftest.$ac_ext <<_ACEOF
 
17588
/* confdefs.h.  */
 
17589
_ACEOF
 
17590
cat confdefs.h >>conftest.$ac_ext
 
17591
cat >>conftest.$ac_ext <<_ACEOF
 
17592
/* end confdefs.h.  */
 
17593
 
 
17594
/* Override any gcc2 internal prototype to avoid an error.  */
 
17595
#ifdef __cplusplus
 
17596
extern "C"
 
17597
#endif
 
17598
/* We use char because int might match the return type of a gcc2
 
17599
   builtin and then its argument prototype would still apply.  */
 
17600
char shl_load ();
 
17601
int
 
17602
main ()
 
17603
{
 
17604
shl_load ();
 
17605
  ;
 
17606
  return 0;
 
17607
}
 
17608
_ACEOF
 
17609
rm -f conftest.$ac_objext conftest$ac_exeext
 
17610
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17611
  (eval $ac_link) 2>conftest.er1
 
17612
  ac_status=$?
 
17613
  grep -v '^ *+' conftest.er1 >conftest.err
 
17614
  rm -f conftest.er1
 
17615
  cat conftest.err >&5
 
17616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17617
  (exit $ac_status); } &&
 
17618
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17620
  (eval $ac_try) 2>&5
 
17621
  ac_status=$?
 
17622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17623
  (exit $ac_status); }; } &&
 
17624
         { ac_try='test -s conftest$ac_exeext'
 
17625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17626
  (eval $ac_try) 2>&5
 
17627
  ac_status=$?
 
17628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17629
  (exit $ac_status); }; }; then
 
17630
  ac_cv_lib_dld_shl_load=yes
 
17631
else
 
17632
  echo "$as_me: failed program was:" >&5
 
17633
sed 's/^/| /' conftest.$ac_ext >&5
 
17634
 
 
17635
ac_cv_lib_dld_shl_load=no
 
17636
fi
 
17637
rm -f conftest.err conftest.$ac_objext \
 
17638
      conftest$ac_exeext conftest.$ac_ext
 
17639
LIBS=$ac_check_lib_save_LIBS
 
17640
fi
 
17641
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
17642
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
17643
if test $ac_cv_lib_dld_shl_load = yes; then
 
17644
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
17645
else
 
17646
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
17647
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
17648
if test "${ac_cv_func_dlopen+set}" = set; then
 
17649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17650
else
 
17651
  cat >conftest.$ac_ext <<_ACEOF
 
17652
/* confdefs.h.  */
 
17653
_ACEOF
 
17654
cat confdefs.h >>conftest.$ac_ext
 
17655
cat >>conftest.$ac_ext <<_ACEOF
 
17656
/* end confdefs.h.  */
 
17657
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
17658
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17659
#define dlopen innocuous_dlopen
 
17660
 
 
17661
/* System header to define __stub macros and hopefully few prototypes,
 
17662
    which can conflict with char dlopen (); below.
 
17663
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17664
    <limits.h> exists even on freestanding compilers.  */
 
17665
 
 
17666
#ifdef __STDC__
 
17667
# include <limits.h>
 
17668
#else
 
17669
# include <assert.h>
 
17670
#endif
 
17671
 
 
17672
#undef dlopen
 
17673
 
 
17674
/* Override any gcc2 internal prototype to avoid an error.  */
 
17675
#ifdef __cplusplus
 
17676
extern "C"
 
17677
{
 
17678
#endif
 
17679
/* We use char because int might match the return type of a gcc2
 
17680
   builtin and then its argument prototype would still apply.  */
 
17681
char dlopen ();
 
17682
/* The GNU C library defines this for functions which it implements
 
17683
    to always fail with ENOSYS.  Some functions are actually named
 
17684
    something starting with __ and the normal name is an alias.  */
 
17685
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
17686
choke me
 
17687
#else
 
17688
char (*f) () = dlopen;
 
17689
#endif
 
17690
#ifdef __cplusplus
 
17691
}
 
17692
#endif
 
17693
 
 
17694
int
 
17695
main ()
 
17696
{
 
17697
return f != dlopen;
 
17698
  ;
 
17699
  return 0;
 
17700
}
 
17701
_ACEOF
 
17702
rm -f conftest.$ac_objext conftest$ac_exeext
 
17703
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17704
  (eval $ac_link) 2>conftest.er1
 
17705
  ac_status=$?
 
17706
  grep -v '^ *+' conftest.er1 >conftest.err
 
17707
  rm -f conftest.er1
 
17708
  cat conftest.err >&5
 
17709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17710
  (exit $ac_status); } &&
 
17711
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17713
  (eval $ac_try) 2>&5
 
17714
  ac_status=$?
 
17715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17716
  (exit $ac_status); }; } &&
 
17717
         { ac_try='test -s conftest$ac_exeext'
 
17718
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17719
  (eval $ac_try) 2>&5
 
17720
  ac_status=$?
 
17721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17722
  (exit $ac_status); }; }; then
 
17723
  ac_cv_func_dlopen=yes
 
17724
else
 
17725
  echo "$as_me: failed program was:" >&5
 
17726
sed 's/^/| /' conftest.$ac_ext >&5
 
17727
 
 
17728
ac_cv_func_dlopen=no
 
17729
fi
 
17730
rm -f conftest.err conftest.$ac_objext \
 
17731
      conftest$ac_exeext conftest.$ac_ext
 
17732
fi
 
17733
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
17734
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
17735
if test $ac_cv_func_dlopen = yes; then
 
17736
  lt_cv_dlopen="dlopen"
 
17737
else
 
17738
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17739
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17740
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17742
else
 
17743
  ac_check_lib_save_LIBS=$LIBS
 
17744
LIBS="-ldl  $LIBS"
 
17745
cat >conftest.$ac_ext <<_ACEOF
 
17746
/* confdefs.h.  */
 
17747
_ACEOF
 
17748
cat confdefs.h >>conftest.$ac_ext
 
17749
cat >>conftest.$ac_ext <<_ACEOF
 
17750
/* end confdefs.h.  */
 
17751
 
 
17752
/* Override any gcc2 internal prototype to avoid an error.  */
 
17753
#ifdef __cplusplus
 
17754
extern "C"
 
17755
#endif
 
17756
/* We use char because int might match the return type of a gcc2
 
17757
   builtin and then its argument prototype would still apply.  */
 
17758
char dlopen ();
 
17759
int
 
17760
main ()
 
17761
{
 
17762
dlopen ();
 
17763
  ;
 
17764
  return 0;
 
17765
}
 
17766
_ACEOF
 
17767
rm -f conftest.$ac_objext conftest$ac_exeext
 
17768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17769
  (eval $ac_link) 2>conftest.er1
 
17770
  ac_status=$?
 
17771
  grep -v '^ *+' conftest.er1 >conftest.err
 
17772
  rm -f conftest.er1
 
17773
  cat conftest.err >&5
 
17774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17775
  (exit $ac_status); } &&
 
17776
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17778
  (eval $ac_try) 2>&5
 
17779
  ac_status=$?
 
17780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17781
  (exit $ac_status); }; } &&
 
17782
         { ac_try='test -s conftest$ac_exeext'
 
17783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17784
  (eval $ac_try) 2>&5
 
17785
  ac_status=$?
 
17786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17787
  (exit $ac_status); }; }; then
 
17788
  ac_cv_lib_dl_dlopen=yes
 
17789
else
 
17790
  echo "$as_me: failed program was:" >&5
 
17791
sed 's/^/| /' conftest.$ac_ext >&5
 
17792
 
 
17793
ac_cv_lib_dl_dlopen=no
 
17794
fi
 
17795
rm -f conftest.err conftest.$ac_objext \
 
17796
      conftest$ac_exeext conftest.$ac_ext
 
17797
LIBS=$ac_check_lib_save_LIBS
 
17798
fi
 
17799
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17800
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17801
if test $ac_cv_lib_dl_dlopen = yes; then
 
17802
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17803
else
 
17804
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
17805
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
17806
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
17807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17808
else
 
17809
  ac_check_lib_save_LIBS=$LIBS
 
17810
LIBS="-lsvld  $LIBS"
 
17811
cat >conftest.$ac_ext <<_ACEOF
 
17812
/* confdefs.h.  */
 
17813
_ACEOF
 
17814
cat confdefs.h >>conftest.$ac_ext
 
17815
cat >>conftest.$ac_ext <<_ACEOF
 
17816
/* end confdefs.h.  */
 
17817
 
 
17818
/* Override any gcc2 internal prototype to avoid an error.  */
 
17819
#ifdef __cplusplus
 
17820
extern "C"
 
17821
#endif
 
17822
/* We use char because int might match the return type of a gcc2
 
17823
   builtin and then its argument prototype would still apply.  */
 
17824
char dlopen ();
 
17825
int
 
17826
main ()
 
17827
{
 
17828
dlopen ();
 
17829
  ;
 
17830
  return 0;
 
17831
}
 
17832
_ACEOF
 
17833
rm -f conftest.$ac_objext conftest$ac_exeext
 
17834
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17835
  (eval $ac_link) 2>conftest.er1
 
17836
  ac_status=$?
 
17837
  grep -v '^ *+' conftest.er1 >conftest.err
 
17838
  rm -f conftest.er1
 
17839
  cat conftest.err >&5
 
17840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17841
  (exit $ac_status); } &&
 
17842
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17843
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17844
  (eval $ac_try) 2>&5
 
17845
  ac_status=$?
 
17846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17847
  (exit $ac_status); }; } &&
 
17848
         { ac_try='test -s conftest$ac_exeext'
 
17849
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17850
  (eval $ac_try) 2>&5
 
17851
  ac_status=$?
 
17852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17853
  (exit $ac_status); }; }; then
 
17854
  ac_cv_lib_svld_dlopen=yes
 
17855
else
 
17856
  echo "$as_me: failed program was:" >&5
 
17857
sed 's/^/| /' conftest.$ac_ext >&5
 
17858
 
 
17859
ac_cv_lib_svld_dlopen=no
 
17860
fi
 
17861
rm -f conftest.err conftest.$ac_objext \
 
17862
      conftest$ac_exeext conftest.$ac_ext
 
17863
LIBS=$ac_check_lib_save_LIBS
 
17864
fi
 
17865
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17866
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17867
if test $ac_cv_lib_svld_dlopen = yes; then
 
17868
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17869
else
 
17870
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17871
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17872
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17874
else
 
17875
  ac_check_lib_save_LIBS=$LIBS
 
17876
LIBS="-ldld  $LIBS"
 
17877
cat >conftest.$ac_ext <<_ACEOF
 
17878
/* confdefs.h.  */
 
17879
_ACEOF
 
17880
cat confdefs.h >>conftest.$ac_ext
 
17881
cat >>conftest.$ac_ext <<_ACEOF
 
17882
/* end confdefs.h.  */
 
17883
 
 
17884
/* Override any gcc2 internal prototype to avoid an error.  */
 
17885
#ifdef __cplusplus
 
17886
extern "C"
 
17887
#endif
 
17888
/* We use char because int might match the return type of a gcc2
 
17889
   builtin and then its argument prototype would still apply.  */
 
17890
char dld_link ();
 
17891
int
 
17892
main ()
 
17893
{
 
17894
dld_link ();
 
17895
  ;
 
17896
  return 0;
 
17897
}
 
17898
_ACEOF
 
17899
rm -f conftest.$ac_objext conftest$ac_exeext
 
17900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17901
  (eval $ac_link) 2>conftest.er1
 
17902
  ac_status=$?
 
17903
  grep -v '^ *+' conftest.er1 >conftest.err
 
17904
  rm -f conftest.er1
 
17905
  cat conftest.err >&5
 
17906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17907
  (exit $ac_status); } &&
 
17908
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17910
  (eval $ac_try) 2>&5
 
17911
  ac_status=$?
 
17912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17913
  (exit $ac_status); }; } &&
 
17914
         { ac_try='test -s conftest$ac_exeext'
 
17915
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17916
  (eval $ac_try) 2>&5
 
17917
  ac_status=$?
 
17918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17919
  (exit $ac_status); }; }; then
 
17920
  ac_cv_lib_dld_dld_link=yes
 
17921
else
 
17922
  echo "$as_me: failed program was:" >&5
 
17923
sed 's/^/| /' conftest.$ac_ext >&5
 
17924
 
 
17925
ac_cv_lib_dld_dld_link=no
 
17926
fi
 
17927
rm -f conftest.err conftest.$ac_objext \
 
17928
      conftest$ac_exeext conftest.$ac_ext
 
17929
LIBS=$ac_check_lib_save_LIBS
 
17930
fi
 
17931
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17932
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17933
if test $ac_cv_lib_dld_dld_link = yes; then
 
17934
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17935
fi
 
17936
 
 
17937
 
 
17938
fi
 
17939
 
 
17940
 
 
17941
fi
 
17942
 
 
17943
 
 
17944
fi
 
17945
 
 
17946
 
 
17947
fi
 
17948
 
 
17949
 
 
17950
fi
 
17951
 
 
17952
    ;;
 
17953
  esac
 
17954
 
 
17955
  if test "x$lt_cv_dlopen" != xno; then
 
17956
    enable_dlopen=yes
 
17957
  else
 
17958
    enable_dlopen=no
 
17959
  fi
 
17960
 
 
17961
  case $lt_cv_dlopen in
 
17962
  dlopen)
 
17963
    save_CPPFLAGS="$CPPFLAGS"
 
17964
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17965
 
 
17966
    save_LDFLAGS="$LDFLAGS"
 
17967
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17968
 
 
17969
    save_LIBS="$LIBS"
 
17970
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17971
 
 
17972
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17973
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
17974
if test "${lt_cv_dlopen_self+set}" = set; then
 
17975
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17976
else
 
17977
          if test "$cross_compiling" = yes; then :
 
17978
  lt_cv_dlopen_self=cross
 
17979
else
 
17980
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17981
  lt_status=$lt_dlunknown
 
17982
  cat > conftest.$ac_ext <<EOF
 
17983
#line 17983 "configure"
 
17984
#include "confdefs.h"
 
17985
 
 
17986
#if HAVE_DLFCN_H
 
17987
#include <dlfcn.h>
 
17988
#endif
 
17989
 
 
17990
#include <stdio.h>
 
17991
 
 
17992
#ifdef RTLD_GLOBAL
 
17993
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17994
#else
 
17995
#  ifdef DL_GLOBAL
 
17996
#    define LT_DLGLOBAL         DL_GLOBAL
 
17997
#  else
 
17998
#    define LT_DLGLOBAL         0
 
17999
#  endif
 
18000
#endif
 
18001
 
 
18002
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18003
   find out it does not work in some platform. */
 
18004
#ifndef LT_DLLAZY_OR_NOW
 
18005
#  ifdef RTLD_LAZY
 
18006
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18007
#  else
 
18008
#    ifdef DL_LAZY
 
18009
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18010
#    else
 
18011
#      ifdef RTLD_NOW
 
18012
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18013
#      else
 
18014
#        ifdef DL_NOW
 
18015
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18016
#        else
 
18017
#          define LT_DLLAZY_OR_NOW      0
 
18018
#        endif
 
18019
#      endif
 
18020
#    endif
 
18021
#  endif
 
18022
#endif
 
18023
 
 
18024
#ifdef __cplusplus
 
18025
extern "C" void exit (int);
 
18026
#endif
 
18027
 
 
18028
void fnord() { int i=42;}
 
18029
int main ()
 
18030
{
 
18031
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18032
  int status = $lt_dlunknown;
 
18033
 
 
18034
  if (self)
 
18035
    {
 
18036
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18037
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18038
      /* dlclose (self); */
 
18039
    }
 
18040
 
 
18041
    exit (status);
 
18042
}
 
18043
EOF
 
18044
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18045
  (eval $ac_link) 2>&5
 
18046
  ac_status=$?
 
18047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18048
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18049
    (./conftest; exit; ) 2>/dev/null
 
18050
    lt_status=$?
 
18051
    case x$lt_status in
 
18052
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18053
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18054
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18055
    esac
 
18056
  else :
 
18057
    # compilation failed
 
18058
    lt_cv_dlopen_self=no
 
18059
  fi
 
18060
fi
 
18061
rm -fr conftest*
 
18062
 
 
18063
 
 
18064
fi
 
18065
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18066
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18067
 
 
18068
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18069
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18070
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18071
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18072
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18074
else
 
18075
          if test "$cross_compiling" = yes; then :
 
18076
  lt_cv_dlopen_self_static=cross
 
18077
else
 
18078
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18079
  lt_status=$lt_dlunknown
 
18080
  cat > conftest.$ac_ext <<EOF
 
18081
#line 18081 "configure"
 
18082
#include "confdefs.h"
 
18083
 
 
18084
#if HAVE_DLFCN_H
 
18085
#include <dlfcn.h>
 
18086
#endif
 
18087
 
 
18088
#include <stdio.h>
 
18089
 
 
18090
#ifdef RTLD_GLOBAL
 
18091
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18092
#else
 
18093
#  ifdef DL_GLOBAL
 
18094
#    define LT_DLGLOBAL         DL_GLOBAL
 
18095
#  else
 
18096
#    define LT_DLGLOBAL         0
 
18097
#  endif
 
18098
#endif
 
18099
 
 
18100
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18101
   find out it does not work in some platform. */
 
18102
#ifndef LT_DLLAZY_OR_NOW
 
18103
#  ifdef RTLD_LAZY
 
18104
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18105
#  else
 
18106
#    ifdef DL_LAZY
 
18107
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18108
#    else
 
18109
#      ifdef RTLD_NOW
 
18110
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18111
#      else
 
18112
#        ifdef DL_NOW
 
18113
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18114
#        else
 
18115
#          define LT_DLLAZY_OR_NOW      0
 
18116
#        endif
 
18117
#      endif
 
18118
#    endif
 
18119
#  endif
 
18120
#endif
 
18121
 
 
18122
#ifdef __cplusplus
 
18123
extern "C" void exit (int);
 
18124
#endif
 
18125
 
 
18126
void fnord() { int i=42;}
 
18127
int main ()
 
18128
{
 
18129
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18130
  int status = $lt_dlunknown;
 
18131
 
 
18132
  if (self)
 
18133
    {
 
18134
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18135
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18136
      /* dlclose (self); */
 
18137
    }
 
18138
 
 
18139
    exit (status);
 
18140
}
 
18141
EOF
 
18142
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18143
  (eval $ac_link) 2>&5
 
18144
  ac_status=$?
 
18145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18146
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18147
    (./conftest; exit; ) 2>/dev/null
 
18148
    lt_status=$?
 
18149
    case x$lt_status in
 
18150
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18151
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18152
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18153
    esac
 
18154
  else :
 
18155
    # compilation failed
 
18156
    lt_cv_dlopen_self_static=no
 
18157
  fi
 
18158
fi
 
18159
rm -fr conftest*
 
18160
 
 
18161
 
 
18162
fi
 
18163
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18164
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18165
    fi
 
18166
 
 
18167
    CPPFLAGS="$save_CPPFLAGS"
 
18168
    LDFLAGS="$save_LDFLAGS"
 
18169
    LIBS="$save_LIBS"
 
18170
    ;;
 
18171
  esac
 
18172
 
 
18173
  case $lt_cv_dlopen_self in
 
18174
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18175
  *) enable_dlopen_self=unknown ;;
 
18176
  esac
 
18177
 
 
18178
  case $lt_cv_dlopen_self_static in
 
18179
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18180
  *) enable_dlopen_self_static=unknown ;;
 
18181
  esac
 
18182
fi
 
18183
 
 
18184
 
 
18185
# The else clause should only fire when bootstrapping the
 
18186
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18187
# with your package, and you will get complaints that there are
 
18188
# no rules to generate ltmain.sh.
 
18189
if test -f "$ltmain"; then
 
18190
  # See if we are running on zsh, and set the options which allow our commands through
 
18191
  # without removal of \ escapes.
 
18192
  if test -n "${ZSH_VERSION+set}" ; then
 
18193
    setopt NO_GLOB_SUBST
 
18194
  fi
 
18195
  # Now quote all the things that may contain metacharacters while being
 
18196
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18197
  # variables and quote the copies for generation of the libtool script.
 
18198
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18199
    SED SHELL STRIP \
 
18200
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18201
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18202
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18203
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18204
    lt_cv_sys_global_symbol_to_c_name_address \
 
18205
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18206
    old_postinstall_cmds old_postuninstall_cmds \
 
18207
    compiler_GCJ \
 
18208
    CC_GCJ \
 
18209
    LD_GCJ \
 
18210
    lt_prog_compiler_wl_GCJ \
 
18211
    lt_prog_compiler_pic_GCJ \
 
18212
    lt_prog_compiler_static_GCJ \
 
18213
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18214
    export_dynamic_flag_spec_GCJ \
 
18215
    thread_safe_flag_spec_GCJ \
 
18216
    whole_archive_flag_spec_GCJ \
 
18217
    enable_shared_with_static_runtimes_GCJ \
 
18218
    old_archive_cmds_GCJ \
 
18219
    old_archive_from_new_cmds_GCJ \
 
18220
    predep_objects_GCJ \
 
18221
    postdep_objects_GCJ \
 
18222
    predeps_GCJ \
 
18223
    postdeps_GCJ \
 
18224
    compiler_lib_search_path_GCJ \
 
18225
    archive_cmds_GCJ \
 
18226
    archive_expsym_cmds_GCJ \
 
18227
    postinstall_cmds_GCJ \
 
18228
    postuninstall_cmds_GCJ \
 
18229
    old_archive_from_expsyms_cmds_GCJ \
 
18230
    allow_undefined_flag_GCJ \
 
18231
    no_undefined_flag_GCJ \
 
18232
    export_symbols_cmds_GCJ \
 
18233
    hardcode_libdir_flag_spec_GCJ \
 
18234
    hardcode_libdir_flag_spec_ld_GCJ \
 
18235
    hardcode_libdir_separator_GCJ \
 
18236
    hardcode_automatic_GCJ \
 
18237
    module_cmds_GCJ \
 
18238
    module_expsym_cmds_GCJ \
 
18239
    lt_cv_prog_compiler_c_o_GCJ \
 
18240
    exclude_expsyms_GCJ \
 
18241
    include_expsyms_GCJ; do
 
18242
 
 
18243
    case $var in
 
18244
    old_archive_cmds_GCJ | \
 
18245
    old_archive_from_new_cmds_GCJ | \
 
18246
    archive_cmds_GCJ | \
 
18247
    archive_expsym_cmds_GCJ | \
 
18248
    module_cmds_GCJ | \
 
18249
    module_expsym_cmds_GCJ | \
 
18250
    old_archive_from_expsyms_cmds_GCJ | \
 
18251
    export_symbols_cmds_GCJ | \
 
18252
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18253
    postinstall_cmds | postuninstall_cmds | \
 
18254
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18255
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18256
      # Double-quote double-evaled strings.
 
18257
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18258
      ;;
 
18259
    *)
 
18260
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18261
      ;;
 
18262
    esac
 
18263
  done
 
18264
 
 
18265
  case $lt_echo in
 
18266
  *'\$0 --fallback-echo"')
 
18267
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18268
    ;;
 
18269
  esac
 
18270
 
 
18271
cfgfile="$ofile"
 
18272
 
 
18273
  cat <<__EOF__ >> "$cfgfile"
 
18274
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18275
 
 
18276
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18277
 
 
18278
# Shell to use when invoking shell scripts.
 
18279
SHELL=$lt_SHELL
 
18280
 
 
18281
# Whether or not to build shared libraries.
 
18282
build_libtool_libs=$enable_shared
 
18283
 
 
18284
# Whether or not to build static libraries.
 
18285
build_old_libs=$enable_static
 
18286
 
 
18287
# Whether or not to add -lc for building shared libraries.
 
18288
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18289
 
 
18290
# Whether or not to disallow shared libs when runtime libs are static
 
18291
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18292
 
 
18293
# Whether or not to optimize for fast installation.
 
18294
fast_install=$enable_fast_install
 
18295
 
 
18296
# The host system.
 
18297
host_alias=$host_alias
 
18298
host=$host
 
18299
 
 
18300
# An echo program that does not interpret backslashes.
 
18301
echo=$lt_echo
 
18302
 
 
18303
# The archiver.
 
18304
AR=$lt_AR
 
18305
AR_FLAGS=$lt_AR_FLAGS
 
18306
 
 
18307
# A C compiler.
 
18308
LTCC=$lt_LTCC
 
18309
 
 
18310
# A language-specific compiler.
 
18311
CC=$lt_compiler_GCJ
 
18312
 
 
18313
# Is the compiler the GNU C compiler?
 
18314
with_gcc=$GCC_GCJ
 
18315
 
 
18316
# An ERE matcher.
 
18317
EGREP=$lt_EGREP
 
18318
 
 
18319
# The linker used to build libraries.
 
18320
LD=$lt_LD_GCJ
 
18321
 
 
18322
# Whether we need hard or soft links.
 
18323
LN_S=$lt_LN_S
 
18324
 
 
18325
# A BSD-compatible nm program.
 
18326
NM=$lt_NM
 
18327
 
 
18328
# A symbol stripping program
 
18329
STRIP=$lt_STRIP
 
18330
 
 
18331
# Used to examine libraries when file_magic_cmd begins "file"
 
18332
MAGIC_CMD=$MAGIC_CMD
 
18333
 
 
18334
# Used on cygwin: DLL creation program.
 
18335
DLLTOOL="$DLLTOOL"
 
18336
 
 
18337
# Used on cygwin: object dumper.
 
18338
OBJDUMP="$OBJDUMP"
 
18339
 
 
18340
# Used on cygwin: assembler.
 
18341
AS="$AS"
 
18342
 
 
18343
# The name of the directory that contains temporary libtool files.
 
18344
objdir=$objdir
 
18345
 
 
18346
# How to create reloadable object files.
 
18347
reload_flag=$lt_reload_flag
 
18348
reload_cmds=$lt_reload_cmds
 
18349
 
 
18350
# How to pass a linker flag through the compiler.
 
18351
wl=$lt_lt_prog_compiler_wl_GCJ
 
18352
 
 
18353
# Object file suffix (normally "o").
 
18354
objext="$ac_objext"
 
18355
 
 
18356
# Old archive suffix (normally "a").
 
18357
libext="$libext"
 
18358
 
 
18359
# Shared library suffix (normally ".so").
 
18360
shrext_cmds='$shrext_cmds'
 
18361
 
 
18362
# Executable file suffix (normally "").
 
18363
exeext="$exeext"
 
18364
 
 
18365
# Additional compiler flags for building library objects.
 
18366
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18367
pic_mode=$pic_mode
 
18368
 
 
18369
# What is the maximum length of a command?
 
18370
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18371
 
 
18372
# Does compiler simultaneously support -c and -o options?
 
18373
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18374
 
 
18375
# Must we lock files when doing compilation ?
 
18376
need_locks=$lt_need_locks
 
18377
 
 
18378
# Do we need the lib prefix for modules?
 
18379
need_lib_prefix=$need_lib_prefix
 
18380
 
 
18381
# Do we need a version for libraries?
 
18382
need_version=$need_version
 
18383
 
 
18384
# Whether dlopen is supported.
 
18385
dlopen_support=$enable_dlopen
 
18386
 
 
18387
# Whether dlopen of programs is supported.
 
18388
dlopen_self=$enable_dlopen_self
 
18389
 
 
18390
# Whether dlopen of statically linked programs is supported.
 
18391
dlopen_self_static=$enable_dlopen_self_static
 
18392
 
 
18393
# Compiler flag to prevent dynamic linking.
 
18394
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18395
 
 
18396
# Compiler flag to turn off builtin functions.
 
18397
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18398
 
 
18399
# Compiler flag to allow reflexive dlopens.
 
18400
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18401
 
 
18402
# Compiler flag to generate shared objects directly from archives.
 
18403
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18404
 
 
18405
# Compiler flag to generate thread-safe objects.
 
18406
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18407
 
 
18408
# Library versioning type.
 
18409
version_type=$version_type
 
18410
 
 
18411
# Format of library name prefix.
 
18412
libname_spec=$lt_libname_spec
 
18413
 
 
18414
# List of archive names.  First name is the real one, the rest are links.
 
18415
# The last name is the one that the linker finds with -lNAME.
 
18416
library_names_spec=$lt_library_names_spec
 
18417
 
 
18418
# The coded name of the library, if different from the real name.
 
18419
soname_spec=$lt_soname_spec
 
18420
 
 
18421
# Commands used to build and install an old-style archive.
 
18422
RANLIB=$lt_RANLIB
 
18423
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18424
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18425
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18426
 
 
18427
# Create an old-style archive from a shared archive.
 
18428
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18429
 
 
18430
# Create a temporary old-style archive to link instead of a shared archive.
 
18431
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18432
 
 
18433
# Commands used to build and install a shared archive.
 
18434
archive_cmds=$lt_archive_cmds_GCJ
 
18435
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18436
postinstall_cmds=$lt_postinstall_cmds
 
18437
postuninstall_cmds=$lt_postuninstall_cmds
 
18438
 
 
18439
# Commands used to build a loadable module (assumed same as above if empty)
 
18440
module_cmds=$lt_module_cmds_GCJ
 
18441
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18442
 
 
18443
# Commands to strip libraries.
 
18444
old_striplib=$lt_old_striplib
 
18445
striplib=$lt_striplib
 
18446
 
 
18447
# Dependencies to place before the objects being linked to create a
 
18448
# shared library.
 
18449
predep_objects=$lt_predep_objects_GCJ
 
18450
 
 
18451
# Dependencies to place after the objects being linked to create a
 
18452
# shared library.
 
18453
postdep_objects=$lt_postdep_objects_GCJ
 
18454
 
 
18455
# Dependencies to place before the objects being linked to create a
 
18456
# shared library.
 
18457
predeps=$lt_predeps_GCJ
 
18458
 
 
18459
# Dependencies to place after the objects being linked to create a
 
18460
# shared library.
 
18461
postdeps=$lt_postdeps_GCJ
 
18462
 
 
18463
# The library search path used internally by the compiler when linking
 
18464
# a shared library.
 
18465
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18466
 
 
18467
# Method to check whether dependent libraries are shared objects.
 
18468
deplibs_check_method=$lt_deplibs_check_method
 
18469
 
 
18470
# Command to use when deplibs_check_method == file_magic.
 
18471
file_magic_cmd=$lt_file_magic_cmd
 
18472
 
 
18473
# Flag that allows shared libraries with undefined symbols to be built.
 
18474
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18475
 
 
18476
# Flag that forces no undefined symbols.
 
18477
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18478
 
 
18479
# Commands used to finish a libtool library installation in a directory.
 
18480
finish_cmds=$lt_finish_cmds
 
18481
 
 
18482
# Same as above, but a single script fragment to be evaled but not shown.
 
18483
finish_eval=$lt_finish_eval
 
18484
 
 
18485
# Take the output of nm and produce a listing of raw symbols and C names.
 
18486
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18487
 
 
18488
# Transform the output of nm in a proper C declaration
 
18489
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18490
 
 
18491
# Transform the output of nm in a C name address pair
 
18492
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18493
 
 
18494
# This is the shared library runtime path variable.
 
18495
runpath_var=$runpath_var
 
18496
 
 
18497
# This is the shared library path variable.
 
18498
shlibpath_var=$shlibpath_var
 
18499
 
 
18500
# Is shlibpath searched before the hard-coded library search path?
 
18501
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18502
 
 
18503
# How to hardcode a shared library path into an executable.
 
18504
hardcode_action=$hardcode_action_GCJ
 
18505
 
 
18506
# Whether we should hardcode library paths into libraries.
 
18507
hardcode_into_libs=$hardcode_into_libs
 
18508
 
 
18509
# Flag to hardcode \$libdir into a binary during linking.
 
18510
# This must work even if \$libdir does not exist.
 
18511
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18512
 
 
18513
# If ld is used when linking, flag to hardcode \$libdir into
 
18514
# a binary during linking. This must work even if \$libdir does
 
18515
# not exist.
 
18516
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18517
 
 
18518
# Whether we need a single -rpath flag with a separated argument.
 
18519
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18520
 
 
18521
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18522
# resulting binary.
 
18523
hardcode_direct=$hardcode_direct_GCJ
 
18524
 
 
18525
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18526
# resulting binary.
 
18527
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18528
 
 
18529
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18530
# the resulting binary.
 
18531
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18532
 
 
18533
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18534
# and all subsequent libraries and executables linked against it.
 
18535
hardcode_automatic=$hardcode_automatic_GCJ
 
18536
 
 
18537
# Variables whose values should be saved in libtool wrapper scripts and
 
18538
# restored at relink time.
 
18539
variables_saved_for_relink="$variables_saved_for_relink"
 
18540
 
 
18541
# Whether libtool must link a program against all its dependency libraries.
 
18542
link_all_deplibs=$link_all_deplibs_GCJ
 
18543
 
 
18544
# Compile-time system search path for libraries
 
18545
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18546
 
 
18547
# Run-time system search path for libraries
 
18548
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18549
 
 
18550
# Fix the shell variable \$srcfile for the compiler.
 
18551
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18552
 
 
18553
# Set to yes if exported symbols are required.
 
18554
always_export_symbols=$always_export_symbols_GCJ
 
18555
 
 
18556
# The commands to list exported symbols.
 
18557
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18558
 
 
18559
# The commands to extract the exported symbol list from a shared archive.
 
18560
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18561
 
 
18562
# Symbols that should not be listed in the preloaded symbols.
 
18563
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18564
 
 
18565
# Symbols that must always be exported.
 
18566
include_expsyms=$lt_include_expsyms_GCJ
 
18567
 
 
18568
# ### END LIBTOOL TAG CONFIG: $tagname
 
18569
 
 
18570
__EOF__
 
18571
 
 
18572
 
 
18573
else
 
18574
  # If there is no Makefile yet, we rely on a make rule to execute
 
18575
  # `config.status --recheck' to rerun these tests and create the
 
18576
  # libtool script then.
 
18577
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18578
  if test -f "$ltmain_in"; then
 
18579
    test -f Makefile && make "$ltmain"
 
18580
  fi
 
18581
fi
 
18582
 
 
18583
 
 
18584
ac_ext=c
 
18585
ac_cpp='$CPP $CPPFLAGS'
 
18586
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18587
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18588
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18589
 
 
18590
CC="$lt_save_CC"
 
18591
 
 
18592
        else
 
18593
          tagname=""
 
18594
        fi
 
18595
        ;;
 
18596
 
 
18597
      RC)
 
18598
 
 
18599
 
 
18600
 
 
18601
# Source file extension for RC test sources.
 
18602
ac_ext=rc
 
18603
 
 
18604
# Object file extension for compiled RC test sources.
 
18605
objext=o
 
18606
objext_RC=$objext
 
18607
 
 
18608
# Code to be used in simple compile tests
 
18609
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18610
 
 
18611
# Code to be used in simple link tests
 
18612
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18613
 
 
18614
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18615
 
 
18616
# If no C compiler was specified, use CC.
 
18617
LTCC=${LTCC-"$CC"}
 
18618
 
 
18619
# Allow CC to be a program name with arguments.
 
18620
compiler=$CC
 
18621
 
 
18622
 
 
18623
# Allow CC to be a program name with arguments.
 
18624
lt_save_CC="$CC"
 
18625
CC=${RC-"windres"}
 
18626
compiler=$CC
 
18627
compiler_RC=$CC
 
18628
lt_cv_prog_compiler_c_o_RC=yes
 
18629
 
 
18630
# The else clause should only fire when bootstrapping the
 
18631
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18632
# with your package, and you will get complaints that there are
 
18633
# no rules to generate ltmain.sh.
 
18634
if test -f "$ltmain"; then
 
18635
  # See if we are running on zsh, and set the options which allow our commands through
 
18636
  # without removal of \ escapes.
 
18637
  if test -n "${ZSH_VERSION+set}" ; then
 
18638
    setopt NO_GLOB_SUBST
 
18639
  fi
 
18640
  # Now quote all the things that may contain metacharacters while being
 
18641
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18642
  # variables and quote the copies for generation of the libtool script.
 
18643
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18644
    SED SHELL STRIP \
 
18645
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18646
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18647
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18648
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18649
    lt_cv_sys_global_symbol_to_c_name_address \
 
18650
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18651
    old_postinstall_cmds old_postuninstall_cmds \
 
18652
    compiler_RC \
 
18653
    CC_RC \
 
18654
    LD_RC \
 
18655
    lt_prog_compiler_wl_RC \
 
18656
    lt_prog_compiler_pic_RC \
 
18657
    lt_prog_compiler_static_RC \
 
18658
    lt_prog_compiler_no_builtin_flag_RC \
 
18659
    export_dynamic_flag_spec_RC \
 
18660
    thread_safe_flag_spec_RC \
 
18661
    whole_archive_flag_spec_RC \
 
18662
    enable_shared_with_static_runtimes_RC \
 
18663
    old_archive_cmds_RC \
 
18664
    old_archive_from_new_cmds_RC \
 
18665
    predep_objects_RC \
 
18666
    postdep_objects_RC \
 
18667
    predeps_RC \
 
18668
    postdeps_RC \
 
18669
    compiler_lib_search_path_RC \
 
18670
    archive_cmds_RC \
 
18671
    archive_expsym_cmds_RC \
 
18672
    postinstall_cmds_RC \
 
18673
    postuninstall_cmds_RC \
 
18674
    old_archive_from_expsyms_cmds_RC \
 
18675
    allow_undefined_flag_RC \
 
18676
    no_undefined_flag_RC \
 
18677
    export_symbols_cmds_RC \
 
18678
    hardcode_libdir_flag_spec_RC \
 
18679
    hardcode_libdir_flag_spec_ld_RC \
 
18680
    hardcode_libdir_separator_RC \
 
18681
    hardcode_automatic_RC \
 
18682
    module_cmds_RC \
 
18683
    module_expsym_cmds_RC \
 
18684
    lt_cv_prog_compiler_c_o_RC \
 
18685
    exclude_expsyms_RC \
 
18686
    include_expsyms_RC; do
 
18687
 
 
18688
    case $var in
 
18689
    old_archive_cmds_RC | \
 
18690
    old_archive_from_new_cmds_RC | \
 
18691
    archive_cmds_RC | \
 
18692
    archive_expsym_cmds_RC | \
 
18693
    module_cmds_RC | \
 
18694
    module_expsym_cmds_RC | \
 
18695
    old_archive_from_expsyms_cmds_RC | \
 
18696
    export_symbols_cmds_RC | \
 
18697
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18698
    postinstall_cmds | postuninstall_cmds | \
 
18699
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18700
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18701
      # Double-quote double-evaled strings.
 
18702
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18703
      ;;
 
18704
    *)
 
18705
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18706
      ;;
 
18707
    esac
 
18708
  done
 
18709
 
 
18710
  case $lt_echo in
 
18711
  *'\$0 --fallback-echo"')
 
18712
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18713
    ;;
 
18714
  esac
 
18715
 
 
18716
cfgfile="$ofile"
 
18717
 
 
18718
  cat <<__EOF__ >> "$cfgfile"
 
18719
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18720
 
 
18721
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18722
 
 
18723
# Shell to use when invoking shell scripts.
 
18724
SHELL=$lt_SHELL
 
18725
 
 
18726
# Whether or not to build shared libraries.
 
18727
build_libtool_libs=$enable_shared
 
18728
 
 
18729
# Whether or not to build static libraries.
 
18730
build_old_libs=$enable_static
 
18731
 
 
18732
# Whether or not to add -lc for building shared libraries.
 
18733
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18734
 
 
18735
# Whether or not to disallow shared libs when runtime libs are static
 
18736
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18737
 
 
18738
# Whether or not to optimize for fast installation.
 
18739
fast_install=$enable_fast_install
 
18740
 
 
18741
# The host system.
 
18742
host_alias=$host_alias
 
18743
host=$host
 
18744
 
 
18745
# An echo program that does not interpret backslashes.
 
18746
echo=$lt_echo
 
18747
 
 
18748
# The archiver.
 
18749
AR=$lt_AR
 
18750
AR_FLAGS=$lt_AR_FLAGS
 
18751
 
 
18752
# A C compiler.
 
18753
LTCC=$lt_LTCC
 
18754
 
 
18755
# A language-specific compiler.
 
18756
CC=$lt_compiler_RC
 
18757
 
 
18758
# Is the compiler the GNU C compiler?
 
18759
with_gcc=$GCC_RC
 
18760
 
 
18761
# An ERE matcher.
 
18762
EGREP=$lt_EGREP
 
18763
 
 
18764
# The linker used to build libraries.
 
18765
LD=$lt_LD_RC
 
18766
 
 
18767
# Whether we need hard or soft links.
 
18768
LN_S=$lt_LN_S
 
18769
 
 
18770
# A BSD-compatible nm program.
 
18771
NM=$lt_NM
 
18772
 
 
18773
# A symbol stripping program
 
18774
STRIP=$lt_STRIP
 
18775
 
 
18776
# Used to examine libraries when file_magic_cmd begins "file"
 
18777
MAGIC_CMD=$MAGIC_CMD
 
18778
 
 
18779
# Used on cygwin: DLL creation program.
 
18780
DLLTOOL="$DLLTOOL"
 
18781
 
 
18782
# Used on cygwin: object dumper.
 
18783
OBJDUMP="$OBJDUMP"
 
18784
 
 
18785
# Used on cygwin: assembler.
 
18786
AS="$AS"
 
18787
 
 
18788
# The name of the directory that contains temporary libtool files.
 
18789
objdir=$objdir
 
18790
 
 
18791
# How to create reloadable object files.
 
18792
reload_flag=$lt_reload_flag
 
18793
reload_cmds=$lt_reload_cmds
 
18794
 
 
18795
# How to pass a linker flag through the compiler.
 
18796
wl=$lt_lt_prog_compiler_wl_RC
 
18797
 
 
18798
# Object file suffix (normally "o").
 
18799
objext="$ac_objext"
 
18800
 
 
18801
# Old archive suffix (normally "a").
 
18802
libext="$libext"
 
18803
 
 
18804
# Shared library suffix (normally ".so").
 
18805
shrext_cmds='$shrext_cmds'
 
18806
 
 
18807
# Executable file suffix (normally "").
 
18808
exeext="$exeext"
 
18809
 
 
18810
# Additional compiler flags for building library objects.
 
18811
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18812
pic_mode=$pic_mode
 
18813
 
 
18814
# What is the maximum length of a command?
 
18815
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18816
 
 
18817
# Does compiler simultaneously support -c and -o options?
 
18818
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18819
 
 
18820
# Must we lock files when doing compilation ?
 
18821
need_locks=$lt_need_locks
 
18822
 
 
18823
# Do we need the lib prefix for modules?
 
18824
need_lib_prefix=$need_lib_prefix
 
18825
 
 
18826
# Do we need a version for libraries?
 
18827
need_version=$need_version
 
18828
 
 
18829
# Whether dlopen is supported.
 
18830
dlopen_support=$enable_dlopen
 
18831
 
 
18832
# Whether dlopen of programs is supported.
 
18833
dlopen_self=$enable_dlopen_self
 
18834
 
 
18835
# Whether dlopen of statically linked programs is supported.
 
18836
dlopen_self_static=$enable_dlopen_self_static
 
18837
 
 
18838
# Compiler flag to prevent dynamic linking.
 
18839
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18840
 
 
18841
# Compiler flag to turn off builtin functions.
 
18842
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18843
 
 
18844
# Compiler flag to allow reflexive dlopens.
 
18845
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18846
 
 
18847
# Compiler flag to generate shared objects directly from archives.
 
18848
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18849
 
 
18850
# Compiler flag to generate thread-safe objects.
 
18851
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18852
 
 
18853
# Library versioning type.
 
18854
version_type=$version_type
 
18855
 
 
18856
# Format of library name prefix.
 
18857
libname_spec=$lt_libname_spec
 
18858
 
 
18859
# List of archive names.  First name is the real one, the rest are links.
 
18860
# The last name is the one that the linker finds with -lNAME.
 
18861
library_names_spec=$lt_library_names_spec
 
18862
 
 
18863
# The coded name of the library, if different from the real name.
 
18864
soname_spec=$lt_soname_spec
 
18865
 
 
18866
# Commands used to build and install an old-style archive.
 
18867
RANLIB=$lt_RANLIB
 
18868
old_archive_cmds=$lt_old_archive_cmds_RC
 
18869
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18870
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18871
 
 
18872
# Create an old-style archive from a shared archive.
 
18873
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18874
 
 
18875
# Create a temporary old-style archive to link instead of a shared archive.
 
18876
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18877
 
 
18878
# Commands used to build and install a shared archive.
 
18879
archive_cmds=$lt_archive_cmds_RC
 
18880
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18881
postinstall_cmds=$lt_postinstall_cmds
 
18882
postuninstall_cmds=$lt_postuninstall_cmds
 
18883
 
 
18884
# Commands used to build a loadable module (assumed same as above if empty)
 
18885
module_cmds=$lt_module_cmds_RC
 
18886
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18887
 
 
18888
# Commands to strip libraries.
 
18889
old_striplib=$lt_old_striplib
 
18890
striplib=$lt_striplib
 
18891
 
 
18892
# Dependencies to place before the objects being linked to create a
 
18893
# shared library.
 
18894
predep_objects=$lt_predep_objects_RC
 
18895
 
 
18896
# Dependencies to place after the objects being linked to create a
 
18897
# shared library.
 
18898
postdep_objects=$lt_postdep_objects_RC
 
18899
 
 
18900
# Dependencies to place before the objects being linked to create a
 
18901
# shared library.
 
18902
predeps=$lt_predeps_RC
 
18903
 
 
18904
# Dependencies to place after the objects being linked to create a
 
18905
# shared library.
 
18906
postdeps=$lt_postdeps_RC
 
18907
 
 
18908
# The library search path used internally by the compiler when linking
 
18909
# a shared library.
 
18910
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18911
 
 
18912
# Method to check whether dependent libraries are shared objects.
 
18913
deplibs_check_method=$lt_deplibs_check_method
 
18914
 
 
18915
# Command to use when deplibs_check_method == file_magic.
 
18916
file_magic_cmd=$lt_file_magic_cmd
 
18917
 
 
18918
# Flag that allows shared libraries with undefined symbols to be built.
 
18919
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18920
 
 
18921
# Flag that forces no undefined symbols.
 
18922
no_undefined_flag=$lt_no_undefined_flag_RC
 
18923
 
 
18924
# Commands used to finish a libtool library installation in a directory.
 
18925
finish_cmds=$lt_finish_cmds
 
18926
 
 
18927
# Same as above, but a single script fragment to be evaled but not shown.
 
18928
finish_eval=$lt_finish_eval
 
18929
 
 
18930
# Take the output of nm and produce a listing of raw symbols and C names.
 
18931
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18932
 
 
18933
# Transform the output of nm in a proper C declaration
 
18934
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18935
 
 
18936
# Transform the output of nm in a C name address pair
 
18937
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18938
 
 
18939
# This is the shared library runtime path variable.
 
18940
runpath_var=$runpath_var
 
18941
 
 
18942
# This is the shared library path variable.
 
18943
shlibpath_var=$shlibpath_var
 
18944
 
 
18945
# Is shlibpath searched before the hard-coded library search path?
 
18946
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18947
 
 
18948
# How to hardcode a shared library path into an executable.
 
18949
hardcode_action=$hardcode_action_RC
 
18950
 
 
18951
# Whether we should hardcode library paths into libraries.
 
18952
hardcode_into_libs=$hardcode_into_libs
 
18953
 
 
18954
# Flag to hardcode \$libdir into a binary during linking.
 
18955
# This must work even if \$libdir does not exist.
 
18956
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18957
 
 
18958
# If ld is used when linking, flag to hardcode \$libdir into
 
18959
# a binary during linking. This must work even if \$libdir does
 
18960
# not exist.
 
18961
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18962
 
 
18963
# Whether we need a single -rpath flag with a separated argument.
 
18964
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18965
 
 
18966
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18967
# resulting binary.
 
18968
hardcode_direct=$hardcode_direct_RC
 
18969
 
 
18970
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18971
# resulting binary.
 
18972
hardcode_minus_L=$hardcode_minus_L_RC
 
18973
 
 
18974
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18975
# the resulting binary.
 
18976
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18977
 
 
18978
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18979
# and all subsequent libraries and executables linked against it.
 
18980
hardcode_automatic=$hardcode_automatic_RC
 
18981
 
 
18982
# Variables whose values should be saved in libtool wrapper scripts and
 
18983
# restored at relink time.
 
18984
variables_saved_for_relink="$variables_saved_for_relink"
 
18985
 
 
18986
# Whether libtool must link a program against all its dependency libraries.
 
18987
link_all_deplibs=$link_all_deplibs_RC
 
18988
 
 
18989
# Compile-time system search path for libraries
 
18990
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18991
 
 
18992
# Run-time system search path for libraries
 
18993
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18994
 
 
18995
# Fix the shell variable \$srcfile for the compiler.
 
18996
fix_srcfile_path="$fix_srcfile_path_RC"
 
18997
 
 
18998
# Set to yes if exported symbols are required.
 
18999
always_export_symbols=$always_export_symbols_RC
 
19000
 
 
19001
# The commands to list exported symbols.
 
19002
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19003
 
 
19004
# The commands to extract the exported symbol list from a shared archive.
 
19005
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19006
 
 
19007
# Symbols that should not be listed in the preloaded symbols.
 
19008
exclude_expsyms=$lt_exclude_expsyms_RC
 
19009
 
 
19010
# Symbols that must always be exported.
 
19011
include_expsyms=$lt_include_expsyms_RC
 
19012
 
 
19013
# ### END LIBTOOL TAG CONFIG: $tagname
 
19014
 
 
19015
__EOF__
 
19016
 
 
19017
 
 
19018
else
 
19019
  # If there is no Makefile yet, we rely on a make rule to execute
 
19020
  # `config.status --recheck' to rerun these tests and create the
 
19021
  # libtool script then.
 
19022
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19023
  if test -f "$ltmain_in"; then
 
19024
    test -f Makefile && make "$ltmain"
 
19025
  fi
 
19026
fi
 
19027
 
 
19028
 
 
19029
ac_ext=c
 
19030
ac_cpp='$CPP $CPPFLAGS'
 
19031
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19032
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19033
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19034
 
 
19035
CC="$lt_save_CC"
 
19036
 
 
19037
        ;;
 
19038
 
 
19039
      *)
 
19040
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19041
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19042
   { (exit 1); exit 1; }; }
 
19043
        ;;
 
19044
      esac
 
19045
 
 
19046
      # Append the new tag name to the list of available tags.
 
19047
      if test -n "$tagname" ; then
 
19048
      available_tags="$available_tags $tagname"
 
19049
    fi
 
19050
    fi
 
19051
  done
 
19052
  IFS="$lt_save_ifs"
 
19053
 
 
19054
  # Now substitute the updated list of available tags.
 
19055
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19056
    mv "${ofile}T" "$ofile"
 
19057
    chmod +x "$ofile"
 
19058
  else
 
19059
    rm -f "${ofile}T"
 
19060
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19061
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19062
   { (exit 1); exit 1; }; }
 
19063
  fi
 
19064
fi
 
19065
 
 
19066
 
 
19067
 
 
19068
# This can be used to rebuild libtool when needed
 
19069
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19070
 
 
19071
# Always use our own libtool.
 
19072
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19073
 
 
19074
# Prevent multiple expansion
 
19075
 
 
19076
 
 
19077
 
 
19078
 
 
19079
 
 
19080
 
 
19081
 
 
19082
 
 
19083
 
 
19084
 
 
19085
 
 
19086
 
 
19087
 
 
19088
 
 
19089
 
 
19090
 
 
19091
 
 
19092
 
 
19093
 
 
19094
 
 
19095
 
 
19096
# Check for dependencies
 
19097
 
 
19098
 
 
19099
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
19100
        if test -n "$ac_tool_prefix"; then
 
19101
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
19102
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
19103
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19104
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19105
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
19106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19107
else
 
19108
  case $PKG_CONFIG in
 
19109
  [\\/]* | ?:[\\/]*)
 
19110
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
19111
  ;;
 
19112
  *)
 
19113
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19114
for as_dir in $PATH
 
19115
do
 
19116
  IFS=$as_save_IFS
 
19117
  test -z "$as_dir" && as_dir=.
 
19118
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19119
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19120
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19121
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19122
    break 2
 
19123
  fi
 
19124
done
 
19125
done
 
19126
 
 
19127
  ;;
 
19128
esac
 
19129
fi
 
19130
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
19131
 
 
19132
if test -n "$PKG_CONFIG"; then
 
19133
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
19134
echo "${ECHO_T}$PKG_CONFIG" >&6
 
19135
else
 
19136
  echo "$as_me:$LINENO: result: no" >&5
 
19137
echo "${ECHO_T}no" >&6
 
19138
fi
 
19139
 
 
19140
fi
 
19141
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
19142
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
19143
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
19144
set dummy pkg-config; ac_word=$2
 
19145
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19147
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
19148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19149
else
 
19150
  case $ac_pt_PKG_CONFIG in
 
19151
  [\\/]* | ?:[\\/]*)
 
19152
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
19153
  ;;
 
19154
  *)
 
19155
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19156
for as_dir in $PATH
 
19157
do
 
19158
  IFS=$as_save_IFS
 
19159
  test -z "$as_dir" && as_dir=.
 
19160
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19161
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19162
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19163
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19164
    break 2
 
19165
  fi
 
19166
done
 
19167
done
 
19168
 
 
19169
  ;;
 
19170
esac
 
19171
fi
 
19172
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
19173
 
 
19174
if test -n "$ac_pt_PKG_CONFIG"; then
 
19175
  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
19176
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
 
19177
else
 
19178
  echo "$as_me:$LINENO: result: no" >&5
 
19179
echo "${ECHO_T}no" >&6
 
19180
fi
 
19181
 
 
19182
  PKG_CONFIG=$ac_pt_PKG_CONFIG
 
19183
else
 
19184
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
19185
fi
 
19186
 
 
19187
fi
 
19188
if test -n "$PKG_CONFIG"; then
 
19189
        _pkg_min_version=0.9.0
 
19190
        echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
19191
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
 
19192
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
19193
                echo "$as_me:$LINENO: result: yes" >&5
 
19194
echo "${ECHO_T}yes" >&6
 
19195
        else
 
19196
                echo "$as_me:$LINENO: result: no" >&5
 
19197
echo "${ECHO_T}no" >&6
 
19198
                PKG_CONFIG=""
 
19199
        fi
 
19200
 
 
19201
fi
 
19202
 
 
19203
pkg_failed=no
 
19204
echo "$as_me:$LINENO: checking for DEP" >&5
 
19205
echo $ECHO_N "checking for DEP... $ECHO_C" >&6
 
19206
 
 
19207
if test -n "$PKG_CONFIG"; then
 
19208
        if test -n "$PKG_CONFIG" && \
 
19209
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto dmxproto\"") >&5
 
19210
  ($PKG_CONFIG --exists --print-errors "x11 xext xextproto dmxproto") 2>&5
 
19211
  ac_status=$?
 
19212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19213
  (exit $ac_status); }; then
 
19214
  pkg_cv_DEP_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto dmxproto" 2>/dev/null`
 
19215
else
 
19216
  pkg_failed=yes
 
19217
fi
 
19218
else
 
19219
        pkg_failed=untried
 
19220
fi
 
19221
if test -n "$PKG_CONFIG"; then
 
19222
        if test -n "$PKG_CONFIG" && \
 
19223
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto dmxproto\"") >&5
 
19224
  ($PKG_CONFIG --exists --print-errors "x11 xext xextproto dmxproto") 2>&5
 
19225
  ac_status=$?
 
19226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19227
  (exit $ac_status); }; then
 
19228
  pkg_cv_DEP_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto dmxproto" 2>/dev/null`
 
19229
else
 
19230
  pkg_failed=yes
 
19231
fi
 
19232
else
 
19233
        pkg_failed=untried
 
19234
fi
 
19235
 
 
19236
if test $pkg_failed = yes; then
 
19237
        DEP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xext xextproto dmxproto"`
 
19238
        # Put the nasty error message in config.log where it belongs
 
19239
        echo "$DEP_PKG_ERRORS" 1>&5
 
19240
 
 
19241
        { { echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto dmxproto) were not met.
 
19242
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19243
installed software in a non-standard prefix.
 
19244
 
 
19245
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19246
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19247
more details." >&5
 
19248
echo "$as_me: error: Package requirements (x11 xext xextproto dmxproto) were not met.
 
19249
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19250
installed software in a non-standard prefix.
 
19251
 
 
19252
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19253
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19254
more details." >&2;}
 
19255
   { (exit 1); exit 1; }; }
 
19256
elif test $pkg_failed = untried; then
 
19257
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
19258
is in your PATH or set the PKG_CONFIG environment variable to the full
 
19259
path to pkg-config.
 
19260
 
 
19261
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19262
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19263
more details.
 
19264
 
 
19265
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
19266
See \`config.log' for more details." >&5
 
19267
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
19268
is in your PATH or set the PKG_CONFIG environment variable to the full
 
19269
path to pkg-config.
 
19270
 
 
19271
Alternatively you may set the DEP_CFLAGS and DEP_LIBS environment variables
 
19272
to avoid the need to call pkg-config.  See the pkg-config man page for
 
19273
more details.
 
19274
 
 
19275
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
19276
See \`config.log' for more details." >&2;}
 
19277
   { (exit 1); exit 1; }; }
 
19278
else
 
19279
        DEP_CFLAGS=$pkg_cv_DEP_CFLAGS
 
19280
        DEP_LIBS=$pkg_cv_DEP_LIBS
 
19281
        :
 
19282
fi
 
19283
 
 
19284
 
 
19285
 
 
19286
 
 
19287
                                        ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile dmx.pc"
 
19288
cat >confcache <<\_ACEOF
 
19289
# This file is a shell script that caches the results of configure
 
19290
# tests run on this system so they can be shared between configure
 
19291
# scripts and configure runs, see configure's option --config-cache.
 
19292
# It is not useful on other systems.  If it contains results you don't
 
19293
# want to keep, you may remove or edit it.
 
19294
#
 
19295
# config.status only pays attention to the cache file if you give it
 
19296
# the --recheck option to rerun configure.
 
19297
#
 
19298
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
19299
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
19300
# following values.
 
19301
 
 
19302
_ACEOF
 
19303
 
 
19304
# The following way of writing the cache mishandles newlines in values,
 
19305
# but we know of no workaround that is simple, portable, and efficient.
 
19306
# So, don't put newlines in cache variables' values.
 
19307
# Ultrix sh set writes to stderr and can't be redirected directly,
 
19308
# and sets the high bit in the cache file unless we assign to the vars.
 
19309
{
 
19310
  (set) 2>&1 |
 
19311
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
19312
    *ac_space=\ *)
 
19313
      # `set' does not quote correctly, so add quotes (double-quote
 
19314
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
19315
      sed -n \
 
19316
        "s/'/'\\\\''/g;
 
19317
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
19318
      ;;
 
19319
    *)
 
19320
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
19321
      sed -n \
 
19322
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
19323
      ;;
 
19324
    esac;
 
19325
} |
 
19326
  sed '
 
19327
     t clear
 
19328
     : clear
 
19329
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
19330
     t end
 
19331
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
19332
     : end' >>confcache
 
19333
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
19334
  if test -w $cache_file; then
 
19335
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
19336
    cat confcache >$cache_file
 
19337
  else
 
19338
    echo "not updating unwritable cache $cache_file"
 
19339
  fi
 
19340
fi
 
19341
rm -f confcache
 
19342
 
 
19343
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
19344
# Let make expand exec_prefix.
 
19345
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
19346
 
 
19347
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
19348
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
19349
# trailing colons and then remove the whole line if VPATH becomes empty
 
19350
# (actually we leave an empty line to preserve line numbers).
 
19351
if test "x$srcdir" = x.; then
 
19352
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
19353
s/:*\$(srcdir):*/:/;
 
19354
s/:*\${srcdir}:*/:/;
 
19355
s/:*@srcdir@:*/:/;
 
19356
s/^\([^=]*=[     ]*\):*/\1/;
 
19357
s/:*$//;
 
19358
s/^[^=]*=[       ]*$//;
 
19359
}'
 
19360
fi
 
19361
 
 
19362
DEFS=-DHAVE_CONFIG_H
 
19363
 
 
19364
ac_libobjs=
 
19365
ac_ltlibobjs=
 
19366
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
19367
  # 1. Remove the extension, and $U if already installed.
 
19368
  ac_i=`echo "$ac_i" |
 
19369
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
19370
  # 2. Add them.
 
19371
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
19372
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
19373
done
 
19374
LIBOBJS=$ac_libobjs
 
19375
 
 
19376
LTLIBOBJS=$ac_ltlibobjs
 
19377
 
 
19378
 
 
19379
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
19380
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
19381
Usually this means the macro was only invoked conditionally." >&5
 
19382
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
19383
Usually this means the macro was only invoked conditionally." >&2;}
 
19384
   { (exit 1); exit 1; }; }
 
19385
fi
 
19386
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
19387
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
19388
Usually this means the macro was only invoked conditionally." >&5
 
19389
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
19390
Usually this means the macro was only invoked conditionally." >&2;}
 
19391
   { (exit 1); exit 1; }; }
 
19392
fi
 
19393
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
19394
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
19395
Usually this means the macro was only invoked conditionally." >&5
 
19396
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
19397
Usually this means the macro was only invoked conditionally." >&2;}
 
19398
   { (exit 1); exit 1; }; }
 
19399
fi
 
19400
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
19401
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
19402
Usually this means the macro was only invoked conditionally." >&5
 
19403
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
19404
Usually this means the macro was only invoked conditionally." >&2;}
 
19405
   { (exit 1); exit 1; }; }
 
19406
fi
 
19407
 
 
19408
: ${CONFIG_STATUS=./config.status}
 
19409
ac_clean_files_save=$ac_clean_files
 
19410
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
19411
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
19412
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
19413
cat >$CONFIG_STATUS <<_ACEOF
 
19414
#! $SHELL
 
19415
# Generated by $as_me.
 
19416
# Run this file to recreate the current configuration.
 
19417
# Compiler output produced by configure, useful for debugging
 
19418
# configure, is in config.log if it exists.
 
19419
 
 
19420
debug=false
 
19421
ac_cs_recheck=false
 
19422
ac_cs_silent=false
 
19423
SHELL=\${CONFIG_SHELL-$SHELL}
 
19424
_ACEOF
 
19425
 
 
19426
cat >>$CONFIG_STATUS <<\_ACEOF
 
19427
## --------------------- ##
 
19428
## M4sh Initialization.  ##
 
19429
## --------------------- ##
 
19430
 
 
19431
# Be Bourne compatible
 
19432
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
19433
  emulate sh
 
19434
  NULLCMD=:
 
19435
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19436
  # is contrary to our usage.  Disable this feature.
 
19437
  alias -g '${1+"$@"}'='"$@"'
 
19438
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
19439
  set -o posix
 
19440
fi
 
19441
DUALCASE=1; export DUALCASE # for MKS sh
 
19442
 
 
19443
# Support unset when possible.
 
19444
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
19445
  as_unset=unset
 
19446
else
 
19447
  as_unset=false
 
19448
fi
 
19449
 
 
19450
 
 
19451
# Work around bugs in pre-3.0 UWIN ksh.
 
19452
$as_unset ENV MAIL MAILPATH
 
19453
PS1='$ '
 
19454
PS2='> '
 
19455
PS4='+ '
 
19456
 
 
19457
# NLS nuisances.
 
19458
for as_var in \
 
19459
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
19460
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
19461
  LC_TELEPHONE LC_TIME
 
19462
do
 
19463
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
19464
    eval $as_var=C; export $as_var
 
19465
  else
 
19466
    $as_unset $as_var
 
19467
  fi
 
19468
done
 
19469
 
 
19470
# Required to use basename.
 
19471
if expr a : '\(a\)' >/dev/null 2>&1; then
 
19472
  as_expr=expr
 
19473
else
 
19474
  as_expr=false
 
19475
fi
 
19476
 
 
19477
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
19478
  as_basename=basename
 
19479
else
 
19480
  as_basename=false
 
19481
fi
 
19482
 
 
19483
 
 
19484
# Name of the executable.
 
19485
as_me=`$as_basename "$0" ||
 
19486
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
19487
         X"$0" : 'X\(//\)$' \| \
 
19488
         X"$0" : 'X\(/\)$' \| \
 
19489
         .     : '\(.\)' 2>/dev/null ||
 
19490
echo X/"$0" |
 
19491
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
19492
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
19493
          /^X\/\(\/\).*/{ s//\1/; q; }
 
19494
          s/.*/./; q'`
 
19495
 
 
19496
 
 
19497
# PATH needs CR, and LINENO needs CR and PATH.
 
19498
# Avoid depending upon Character Ranges.
 
19499
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
19500
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
19501
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
19502
as_cr_digits='0123456789'
 
19503
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
19504
 
 
19505
# The user is always right.
 
19506
if test "${PATH_SEPARATOR+set}" != set; then
 
19507
  echo "#! /bin/sh" >conf$$.sh
 
19508
  echo  "exit 0"   >>conf$$.sh
 
19509
  chmod +x conf$$.sh
 
19510
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
19511
    PATH_SEPARATOR=';'
 
19512
  else
 
19513
    PATH_SEPARATOR=:
 
19514
  fi
 
19515
  rm -f conf$$.sh
 
19516
fi
 
19517
 
 
19518
 
 
19519
  as_lineno_1=$LINENO
 
19520
  as_lineno_2=$LINENO
 
19521
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
19522
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
19523
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
19524
  # Find who we are.  Look in the path if we contain no path at all
 
19525
  # relative or not.
 
19526
  case $0 in
 
19527
    *[\\/]* ) as_myself=$0 ;;
 
19528
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19529
for as_dir in $PATH
 
19530
do
 
19531
  IFS=$as_save_IFS
 
19532
  test -z "$as_dir" && as_dir=.
 
19533
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
19534
done
 
19535
 
 
19536
       ;;
 
19537
  esac
 
19538
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
19539
  # in which case we are not to be found in the path.
 
19540
  if test "x$as_myself" = x; then
 
19541
    as_myself=$0
 
19542
  fi
 
19543
  if test ! -f "$as_myself"; then
 
19544
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
19545
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
19546
   { (exit 1); exit 1; }; }
 
19547
  fi
 
19548
  case $CONFIG_SHELL in
 
19549
  '')
 
19550
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19551
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
19552
do
 
19553
  IFS=$as_save_IFS
 
19554
  test -z "$as_dir" && as_dir=.
 
19555
  for as_base in sh bash ksh sh5; do
 
19556
         case $as_dir in
 
19557
         /*)
 
19558
           if ("$as_dir/$as_base" -c '
 
19559
  as_lineno_1=$LINENO
 
19560
  as_lineno_2=$LINENO
 
19561
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
19562
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
19563
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
19564
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
19565
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
19566
             CONFIG_SHELL=$as_dir/$as_base
 
19567
             export CONFIG_SHELL
 
19568
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
19569
           fi;;
 
19570
         esac
 
19571
       done
 
19572
done
 
19573
;;
 
19574
  esac
 
19575
 
 
19576
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
19577
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
19578
  # line-number line before each line; the second 'sed' does the real
 
19579
  # work.  The second script uses 'N' to pair each line-number line
 
19580
  # with the numbered line, and appends trailing '-' during
 
19581
  # substitution so that $LINENO is not a special case at line end.
 
19582
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
19583
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
19584
  sed '=' <$as_myself |
 
19585
    sed '
 
19586
      N
 
19587
      s,$,-,
 
19588
      : loop
 
19589
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
19590
      t loop
 
19591
      s,-$,,
 
19592
      s,^['$as_cr_digits']*\n,,
 
19593
    ' >$as_me.lineno &&
 
19594
  chmod +x $as_me.lineno ||
 
19595
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
19596
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
19597
   { (exit 1); exit 1; }; }
 
19598
 
 
19599
  # Don't try to exec as it changes $[0], causing all sort of problems
 
19600
  # (the dirname of $[0] is not the place where we might find the
 
19601
  # original and so on.  Autoconf is especially sensible to this).
 
19602
  . ./$as_me.lineno
 
19603
  # Exit status is that of the last command.
 
19604
  exit
 
19605
}
 
19606
 
 
19607
 
 
19608
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
19609
  *c*,-n*) ECHO_N= ECHO_C='
 
19610
' ECHO_T='      ' ;;
 
19611
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
19612
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
19613
esac
 
19614
 
 
19615
if expr a : '\(a\)' >/dev/null 2>&1; then
 
19616
  as_expr=expr
 
19617
else
 
19618
  as_expr=false
 
19619
fi
 
19620
 
 
19621
rm -f conf$$ conf$$.exe conf$$.file
 
19622
echo >conf$$.file
 
19623
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
19624
  # We could just check for DJGPP; but this test a) works b) is more generic
 
19625
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
19626
  if test -f conf$$.exe; then
 
19627
    # Don't use ln at all; we don't have any links
 
19628
    as_ln_s='cp -p'
 
19629
  else
 
19630
    as_ln_s='ln -s'
 
19631
  fi
 
19632
elif ln conf$$.file conf$$ 2>/dev/null; then
 
19633
  as_ln_s=ln
 
19634
else
 
19635
  as_ln_s='cp -p'
 
19636
fi
 
19637
rm -f conf$$ conf$$.exe conf$$.file
 
19638
 
 
19639
if mkdir -p . 2>/dev/null; then
 
19640
  as_mkdir_p=:
 
19641
else
 
19642
  test -d ./-p && rmdir ./-p
 
19643
  as_mkdir_p=false
 
19644
fi
 
19645
 
 
19646
as_executable_p="test -f"
 
19647
 
 
19648
# Sed expression to map a string onto a valid CPP name.
 
19649
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
19650
 
 
19651
# Sed expression to map a string onto a valid variable name.
 
19652
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
19653
 
 
19654
 
 
19655
# IFS
 
19656
# We need space, tab and new line, in precisely that order.
 
19657
as_nl='
 
19658
'
 
19659
IFS="   $as_nl"
 
19660
 
 
19661
# CDPATH.
 
19662
$as_unset CDPATH
 
19663
 
 
19664
exec 6>&1
 
19665
 
 
19666
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
19667
# report actual input values of CONFIG_FILES etc. instead of their
 
19668
# values after options handling.  Logging --version etc. is OK.
 
19669
exec 5>>config.log
 
19670
{
 
19671
  echo
 
19672
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
19673
## Running $as_me. ##
 
19674
_ASBOX
 
19675
} >&5
 
19676
cat >&5 <<_CSEOF
 
19677
 
 
19678
This file was extended by libdmx $as_me 7.0.0, which was
 
19679
generated by GNU Autoconf 2.59.  Invocation command line was
 
19680
 
 
19681
  CONFIG_FILES    = $CONFIG_FILES
 
19682
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
19683
  CONFIG_LINKS    = $CONFIG_LINKS
 
19684
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
19685
  $ $0 $@
 
19686
 
 
19687
_CSEOF
 
19688
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
19689
echo >&5
 
19690
_ACEOF
 
19691
 
 
19692
# Files that config.status was made for.
 
19693
if test -n "$ac_config_files"; then
 
19694
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
19695
fi
 
19696
 
 
19697
if test -n "$ac_config_headers"; then
 
19698
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
19699
fi
 
19700
 
 
19701
if test -n "$ac_config_links"; then
 
19702
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
19703
fi
 
19704
 
 
19705
if test -n "$ac_config_commands"; then
 
19706
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
19707
fi
 
19708
 
 
19709
cat >>$CONFIG_STATUS <<\_ACEOF
 
19710
 
 
19711
ac_cs_usage="\
 
19712
\`$as_me' instantiates files from templates according to the
 
19713
current configuration.
 
19714
 
 
19715
Usage: $0 [OPTIONS] [FILE]...
 
19716
 
 
19717
  -h, --help       print this help, then exit
 
19718
  -V, --version    print version number, then exit
 
19719
  -q, --quiet      do not print progress messages
 
19720
  -d, --debug      don't remove temporary files
 
19721
      --recheck    update $as_me by reconfiguring in the same conditions
 
19722
  --file=FILE[:TEMPLATE]
 
19723
                   instantiate the configuration file FILE
 
19724
  --header=FILE[:TEMPLATE]
 
19725
                   instantiate the configuration header FILE
 
19726
 
 
19727
Configuration files:
 
19728
$config_files
 
19729
 
 
19730
Configuration headers:
 
19731
$config_headers
 
19732
 
 
19733
Configuration commands:
 
19734
$config_commands
 
19735
 
 
19736
Report bugs to <bug-autoconf@gnu.org>."
 
19737
_ACEOF
 
19738
 
 
19739
cat >>$CONFIG_STATUS <<_ACEOF
 
19740
ac_cs_version="\\
 
19741
libdmx config.status 7.0.0
 
19742
configured by $0, generated by GNU Autoconf 2.59,
 
19743
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
19744
 
 
19745
Copyright (C) 2003 Free Software Foundation, Inc.
 
19746
This config.status script is free software; the Free Software Foundation
 
19747
gives unlimited permission to copy, distribute and modify it."
 
19748
srcdir=$srcdir
 
19749
INSTALL="$INSTALL"
 
19750
_ACEOF
 
19751
 
 
19752
cat >>$CONFIG_STATUS <<\_ACEOF
 
19753
# If no file are specified by the user, then we need to provide default
 
19754
# value.  By we need to know if files were specified by the user.
 
19755
ac_need_defaults=:
 
19756
while test $# != 0
 
19757
do
 
19758
  case $1 in
 
19759
  --*=*)
 
19760
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
19761
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
19762
    ac_shift=:
 
19763
    ;;
 
19764
  -*)
 
19765
    ac_option=$1
 
19766
    ac_optarg=$2
 
19767
    ac_shift=shift
 
19768
    ;;
 
19769
  *) # This is not an option, so the user has probably given explicit
 
19770
     # arguments.
 
19771
     ac_option=$1
 
19772
     ac_need_defaults=false;;
 
19773
  esac
 
19774
 
 
19775
  case $ac_option in
 
19776
  # Handling of the options.
 
19777
_ACEOF
 
19778
cat >>$CONFIG_STATUS <<\_ACEOF
 
19779
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
19780
    ac_cs_recheck=: ;;
 
19781
  --version | --vers* | -V )
 
19782
    echo "$ac_cs_version"; exit 0 ;;
 
19783
  --he | --h)
 
19784
    # Conflict between --help and --header
 
19785
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
19786
Try \`$0 --help' for more information." >&5
 
19787
echo "$as_me: error: ambiguous option: $1
 
19788
Try \`$0 --help' for more information." >&2;}
 
19789
   { (exit 1); exit 1; }; };;
 
19790
  --help | --hel | -h )
 
19791
    echo "$ac_cs_usage"; exit 0 ;;
 
19792
  --debug | --d* | -d )
 
19793
    debug=: ;;
 
19794
  --file | --fil | --fi | --f )
 
19795
    $ac_shift
 
19796
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
19797
    ac_need_defaults=false;;
 
19798
  --header | --heade | --head | --hea )
 
19799
    $ac_shift
 
19800
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
19801
    ac_need_defaults=false;;
 
19802
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
19803
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
19804
    ac_cs_silent=: ;;
 
19805
 
 
19806
  # This is an error.
 
19807
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
19808
Try \`$0 --help' for more information." >&5
 
19809
echo "$as_me: error: unrecognized option: $1
 
19810
Try \`$0 --help' for more information." >&2;}
 
19811
   { (exit 1); exit 1; }; } ;;
 
19812
 
 
19813
  *) ac_config_targets="$ac_config_targets $1" ;;
 
19814
 
 
19815
  esac
 
19816
  shift
 
19817
done
 
19818
 
 
19819
ac_configure_extra_args=
 
19820
 
 
19821
if $ac_cs_silent; then
 
19822
  exec 6>/dev/null
 
19823
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
19824
fi
 
19825
 
 
19826
_ACEOF
 
19827
cat >>$CONFIG_STATUS <<_ACEOF
 
19828
if \$ac_cs_recheck; then
 
19829
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
19830
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
19831
fi
 
19832
 
 
19833
_ACEOF
 
19834
 
 
19835
cat >>$CONFIG_STATUS <<_ACEOF
 
19836
#
 
19837
# INIT-COMMANDS section.
 
19838
#
 
19839
 
 
19840
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
19841
 
 
19842
_ACEOF
 
19843
 
 
19844
 
 
19845
 
 
19846
cat >>$CONFIG_STATUS <<\_ACEOF
 
19847
for ac_config_target in $ac_config_targets
 
19848
do
 
19849
  case "$ac_config_target" in
 
19850
  # Handling of arguments.
 
19851
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
19852
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
19853
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
19854
  "dmx.pc" ) CONFIG_FILES="$CONFIG_FILES dmx.pc" ;;
 
19855
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
19856
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
19857
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
19858
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
19859
   { (exit 1); exit 1; }; };;
 
19860
  esac
 
19861
done
 
19862
 
 
19863
# If the user did not use the arguments to specify the items to instantiate,
 
19864
# then the envvar interface is used.  Set only those that are not.
 
19865
# We use the long form for the default assignment because of an extremely
 
19866
# bizarre bug on SunOS 4.1.3.
 
19867
if $ac_need_defaults; then
 
19868
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
19869
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
19870
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
19871
fi
 
19872
 
 
19873
# Have a temporary directory for convenience.  Make it in the build tree
 
19874
# simply because there is no reason to put it here, and in addition,
 
19875
# creating and moving files from /tmp can sometimes cause problems.
 
19876
# Create a temporary directory, and hook for its removal unless debugging.
 
19877
$debug ||
 
19878
{
 
19879
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
19880
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
19881
}
 
19882
 
 
19883
# Create a (secure) tmp directory for tmp files.
 
19884
 
 
19885
{
 
19886
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
19887
  test -n "$tmp" && test -d "$tmp"
 
19888
}  ||
 
19889
{
 
19890
  tmp=./confstat$$-$RANDOM
 
19891
  (umask 077 && mkdir $tmp)
 
19892
} ||
 
19893
{
 
19894
   echo "$me: cannot create a temporary directory in ." >&2
 
19895
   { (exit 1); exit 1; }
 
19896
}
 
19897
 
 
19898
_ACEOF
 
19899
 
 
19900
cat >>$CONFIG_STATUS <<_ACEOF
 
19901
 
 
19902
#
 
19903
# CONFIG_FILES section.
 
19904
#
 
19905
 
 
19906
# No need to generate the scripts if there are no CONFIG_FILES.
 
19907
# This happens for instance when ./config.status config.h
 
19908
if test -n "\$CONFIG_FILES"; then
 
19909
  # Protect against being on the right side of a sed subst in config.status.
 
19910
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
19911
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
19912
s,@SHELL@,$SHELL,;t t
 
19913
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
19914
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
19915
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
19916
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
19917
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
19918
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
19919
s,@exec_prefix@,$exec_prefix,;t t
 
19920
s,@prefix@,$prefix,;t t
 
19921
s,@program_transform_name@,$program_transform_name,;t t
 
19922
s,@bindir@,$bindir,;t t
 
19923
s,@sbindir@,$sbindir,;t t
 
19924
s,@libexecdir@,$libexecdir,;t t
 
19925
s,@datadir@,$datadir,;t t
 
19926
s,@sysconfdir@,$sysconfdir,;t t
 
19927
s,@sharedstatedir@,$sharedstatedir,;t t
 
19928
s,@localstatedir@,$localstatedir,;t t
 
19929
s,@libdir@,$libdir,;t t
 
19930
s,@includedir@,$includedir,;t t
 
19931
s,@oldincludedir@,$oldincludedir,;t t
 
19932
s,@infodir@,$infodir,;t t
 
19933
s,@mandir@,$mandir,;t t
 
19934
s,@build_alias@,$build_alias,;t t
 
19935
s,@host_alias@,$host_alias,;t t
 
19936
s,@target_alias@,$target_alias,;t t
 
19937
s,@DEFS@,$DEFS,;t t
 
19938
s,@ECHO_C@,$ECHO_C,;t t
 
19939
s,@ECHO_N@,$ECHO_N,;t t
 
19940
s,@ECHO_T@,$ECHO_T,;t t
 
19941
s,@LIBS@,$LIBS,;t t
 
19942
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
19943
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
19944
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
19945
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
19946
s,@PACKAGE@,$PACKAGE,;t t
 
19947
s,@VERSION@,$VERSION,;t t
 
19948
s,@ACLOCAL@,$ACLOCAL,;t t
 
19949
s,@AUTOCONF@,$AUTOCONF,;t t
 
19950
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
19951
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
19952
s,@MAKEINFO@,$MAKEINFO,;t t
 
19953
s,@install_sh@,$install_sh,;t t
 
19954
s,@STRIP@,$STRIP,;t t
 
19955
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
19956
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
19957
s,@mkdir_p@,$mkdir_p,;t t
 
19958
s,@AWK@,$AWK,;t t
 
19959
s,@SET_MAKE@,$SET_MAKE,;t t
 
19960
s,@am__leading_dot@,$am__leading_dot,;t t
 
19961
s,@AMTAR@,$AMTAR,;t t
 
19962
s,@am__tar@,$am__tar,;t t
 
19963
s,@am__untar@,$am__untar,;t t
 
19964
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
19965
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
19966
s,@MAINT@,$MAINT,;t t
 
19967
s,@CC@,$CC,;t t
 
19968
s,@CFLAGS@,$CFLAGS,;t t
 
19969
s,@LDFLAGS@,$LDFLAGS,;t t
 
19970
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
19971
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
19972
s,@EXEEXT@,$EXEEXT,;t t
 
19973
s,@OBJEXT@,$OBJEXT,;t t
 
19974
s,@DEPDIR@,$DEPDIR,;t t
 
19975
s,@am__include@,$am__include,;t t
 
19976
s,@am__quote@,$am__quote,;t t
 
19977
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
19978
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
19979
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
19980
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
19981
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
19982
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
19983
s,@build@,$build,;t t
 
19984
s,@build_cpu@,$build_cpu,;t t
 
19985
s,@build_vendor@,$build_vendor,;t t
 
19986
s,@build_os@,$build_os,;t t
 
19987
s,@host@,$host,;t t
 
19988
s,@host_cpu@,$host_cpu,;t t
 
19989
s,@host_vendor@,$host_vendor,;t t
 
19990
s,@host_os@,$host_os,;t t
 
19991
s,@EGREP@,$EGREP,;t t
 
19992
s,@LN_S@,$LN_S,;t t
 
19993
s,@ECHO@,$ECHO,;t t
 
19994
s,@AR@,$AR,;t t
 
19995
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
19996
s,@RANLIB@,$RANLIB,;t t
 
19997
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
19998
s,@CPP@,$CPP,;t t
 
19999
s,@CXX@,$CXX,;t t
 
20000
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
20001
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
20002
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
20003
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
20004
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
20005
s,@CXXCPP@,$CXXCPP,;t t
 
20006
s,@F77@,$F77,;t t
 
20007
s,@FFLAGS@,$FFLAGS,;t t
 
20008
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
20009
s,@LIBTOOL@,$LIBTOOL,;t t
 
20010
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
20011
s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
 
20012
s,@DEP_CFLAGS@,$DEP_CFLAGS,;t t
 
20013
s,@DEP_LIBS@,$DEP_LIBS,;t t
 
20014
s,@LIBOBJS@,$LIBOBJS,;t t
 
20015
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
20016
CEOF
 
20017
 
 
20018
_ACEOF
 
20019
 
 
20020
  cat >>$CONFIG_STATUS <<\_ACEOF
 
20021
  # Split the substitutions into bite-sized pieces for seds with
 
20022
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
20023
  ac_max_sed_lines=48
 
20024
  ac_sed_frag=1 # Number of current file.
 
20025
  ac_beg=1 # First line for current file.
 
20026
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
20027
  ac_more_lines=:
 
20028
  ac_sed_cmds=
 
20029
  while $ac_more_lines; do
 
20030
    if test $ac_beg -gt 1; then
 
20031
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
20032
    else
 
20033
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
20034
    fi
 
20035
    if test ! -s $tmp/subs.frag; then
 
20036
      ac_more_lines=false
 
20037
    else
 
20038
      # The purpose of the label and of the branching condition is to
 
20039
      # speed up the sed processing (if there are no `@' at all, there
 
20040
      # is no need to browse any of the substitutions).
 
20041
      # These are the two extra sed commands mentioned above.
 
20042
      (echo ':t
 
20043
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
20044
      if test -z "$ac_sed_cmds"; then
 
20045
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
20046
      else
 
20047
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
20048
      fi
 
20049
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
20050
      ac_beg=$ac_end
 
20051
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
20052
    fi
 
20053
  done
 
20054
  if test -z "$ac_sed_cmds"; then
 
20055
    ac_sed_cmds=cat
 
20056
  fi
 
20057
fi # test -n "$CONFIG_FILES"
 
20058
 
 
20059
_ACEOF
 
20060
cat >>$CONFIG_STATUS <<\_ACEOF
 
20061
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
20062
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
20063
  case $ac_file in
 
20064
  - | *:- | *:-:* ) # input from stdin
 
20065
        cat >$tmp/stdin
 
20066
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20067
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20068
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20069
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20070
  * )   ac_file_in=$ac_file.in ;;
 
20071
  esac
 
20072
 
 
20073
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
20074
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
20075
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20076
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20077
         X"$ac_file" : 'X\(//\)$' \| \
 
20078
         X"$ac_file" : 'X\(/\)' \| \
 
20079
         .     : '\(.\)' 2>/dev/null ||
 
20080
echo X"$ac_file" |
 
20081
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20082
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20083
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20084
          /^X\(\/\).*/{ s//\1/; q; }
 
20085
          s/.*/./; q'`
 
20086
  { if $as_mkdir_p; then
 
20087
    mkdir -p "$ac_dir"
 
20088
  else
 
20089
    as_dir="$ac_dir"
 
20090
    as_dirs=
 
20091
    while test ! -d "$as_dir"; do
 
20092
      as_dirs="$as_dir $as_dirs"
 
20093
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20094
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20095
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20096
         X"$as_dir" : 'X\(//\)$' \| \
 
20097
         X"$as_dir" : 'X\(/\)' \| \
 
20098
         .     : '\(.\)' 2>/dev/null ||
 
20099
echo X"$as_dir" |
 
20100
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20101
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20102
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20103
          /^X\(\/\).*/{ s//\1/; q; }
 
20104
          s/.*/./; q'`
 
20105
    done
 
20106
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20107
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
20108
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
20109
   { (exit 1); exit 1; }; }; }
 
20110
 
 
20111
  ac_builddir=.
 
20112
 
 
20113
if test "$ac_dir" != .; then
 
20114
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
20115
  # A "../" for each directory in $ac_dir_suffix.
 
20116
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
20117
else
 
20118
  ac_dir_suffix= ac_top_builddir=
 
20119
fi
 
20120
 
 
20121
case $srcdir in
 
20122
  .)  # No --srcdir option.  We are building in place.
 
20123
    ac_srcdir=.
 
20124
    if test -z "$ac_top_builddir"; then
 
20125
       ac_top_srcdir=.
 
20126
    else
 
20127
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
20128
    fi ;;
 
20129
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
20130
    ac_srcdir=$srcdir$ac_dir_suffix;
 
20131
    ac_top_srcdir=$srcdir ;;
 
20132
  *) # Relative path.
 
20133
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
20134
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
20135
esac
 
20136
 
 
20137
# Do not use `cd foo && pwd` to compute absolute paths, because
 
20138
# the directories may not exist.
 
20139
case `pwd` in
 
20140
.) ac_abs_builddir="$ac_dir";;
 
20141
*)
 
20142
  case "$ac_dir" in
 
20143
  .) ac_abs_builddir=`pwd`;;
 
20144
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
20145
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
20146
  esac;;
 
20147
esac
 
20148
case $ac_abs_builddir in
 
20149
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
20150
*)
 
20151
  case ${ac_top_builddir}. in
 
20152
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
20153
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
20154
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
20155
  esac;;
 
20156
esac
 
20157
case $ac_abs_builddir in
 
20158
.) ac_abs_srcdir=$ac_srcdir;;
 
20159
*)
 
20160
  case $ac_srcdir in
 
20161
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
20162
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
20163
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
20164
  esac;;
 
20165
esac
 
20166
case $ac_abs_builddir in
 
20167
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
20168
*)
 
20169
  case $ac_top_srcdir in
 
20170
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
20171
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
20172
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
20173
  esac;;
 
20174
esac
 
20175
 
 
20176
 
 
20177
  case $INSTALL in
 
20178
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
20179
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
20180
  esac
 
20181
 
 
20182
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
20183
  # use $as_me), people would be surprised to read:
 
20184
  #    /* config.h.  Generated by config.status.  */
 
20185
  if test x"$ac_file" = x-; then
 
20186
    configure_input=
 
20187
  else
 
20188
    configure_input="$ac_file.  "
 
20189
  fi
 
20190
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
20191
                                     sed 's,.*/,,'` by configure."
 
20192
 
 
20193
  # First look for the input files in the build tree, otherwise in the
 
20194
  # src tree.
 
20195
  ac_file_inputs=`IFS=:
 
20196
    for f in $ac_file_in; do
 
20197
      case $f in
 
20198
      -) echo $tmp/stdin ;;
 
20199
      [\\/$]*)
 
20200
         # Absolute (can't be DOS-style, as IFS=:)
 
20201
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20202
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20203
   { (exit 1); exit 1; }; }
 
20204
         echo "$f";;
 
20205
      *) # Relative
 
20206
         if test -f "$f"; then
 
20207
           # Build tree
 
20208
           echo "$f"
 
20209
         elif test -f "$srcdir/$f"; then
 
20210
           # Source tree
 
20211
           echo "$srcdir/$f"
 
20212
         else
 
20213
           # /dev/null tree
 
20214
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20215
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20216
   { (exit 1); exit 1; }; }
 
20217
         fi;;
 
20218
      esac
 
20219
    done` || { (exit 1); exit 1; }
 
20220
 
 
20221
  if test x"$ac_file" != x-; then
 
20222
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
20223
echo "$as_me: creating $ac_file" >&6;}
 
20224
    rm -f "$ac_file"
 
20225
  fi
 
20226
_ACEOF
 
20227
cat >>$CONFIG_STATUS <<_ACEOF
 
20228
  sed "$ac_vpsub
 
20229
$extrasub
 
20230
_ACEOF
 
20231
cat >>$CONFIG_STATUS <<\_ACEOF
 
20232
:t
 
20233
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
20234
s,@configure_input@,$configure_input,;t t
 
20235
s,@srcdir@,$ac_srcdir,;t t
 
20236
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
20237
s,@top_srcdir@,$ac_top_srcdir,;t t
 
20238
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
20239
s,@builddir@,$ac_builddir,;t t
 
20240
s,@abs_builddir@,$ac_abs_builddir,;t t
 
20241
s,@top_builddir@,$ac_top_builddir,;t t
 
20242
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
20243
s,@INSTALL@,$ac_INSTALL,;t t
 
20244
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
20245
  rm -f $tmp/stdin
 
20246
  if test x"$ac_file" != x-; then
 
20247
    mv $tmp/out $ac_file
 
20248
  else
 
20249
    cat $tmp/out
 
20250
    rm -f $tmp/out
 
20251
  fi
 
20252
 
 
20253
done
 
20254
_ACEOF
 
20255
cat >>$CONFIG_STATUS <<\_ACEOF
 
20256
 
 
20257
#
 
20258
# CONFIG_HEADER section.
 
20259
#
 
20260
 
 
20261
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
20262
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
20263
#
 
20264
# ac_d sets the value in "#define NAME VALUE" lines.
 
20265
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
20266
ac_dB='[         ].*$,\1#\2'
 
20267
ac_dC=' '
 
20268
ac_dD=',;t'
 
20269
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
20270
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
20271
ac_uB='$,\1#\2define\3'
 
20272
ac_uC=' '
 
20273
ac_uD=',;t'
 
20274
 
 
20275
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
20276
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
20277
  case $ac_file in
 
20278
  - | *:- | *:-:* ) # input from stdin
 
20279
        cat >$tmp/stdin
 
20280
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20281
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20282
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20283
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20284
  * )   ac_file_in=$ac_file.in ;;
 
20285
  esac
 
20286
 
 
20287
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
20288
echo "$as_me: creating $ac_file" >&6;}
 
20289
 
 
20290
  # First look for the input files in the build tree, otherwise in the
 
20291
  # src tree.
 
20292
  ac_file_inputs=`IFS=:
 
20293
    for f in $ac_file_in; do
 
20294
      case $f in
 
20295
      -) echo $tmp/stdin ;;
 
20296
      [\\/$]*)
 
20297
         # Absolute (can't be DOS-style, as IFS=:)
 
20298
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20299
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20300
   { (exit 1); exit 1; }; }
 
20301
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
20302
         echo "$f";;
 
20303
      *) # Relative
 
20304
         if test -f "$f"; then
 
20305
           # Build tree
 
20306
           echo "$f"
 
20307
         elif test -f "$srcdir/$f"; then
 
20308
           # Source tree
 
20309
           echo "$srcdir/$f"
 
20310
         else
 
20311
           # /dev/null tree
 
20312
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20313
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20314
   { (exit 1); exit 1; }; }
 
20315
         fi;;
 
20316
      esac
 
20317
    done` || { (exit 1); exit 1; }
 
20318
  # Remove the trailing spaces.
 
20319
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
20320
 
 
20321
_ACEOF
 
20322
 
 
20323
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
20324
# `conftest.undefs', that substitutes the proper values into
 
20325
# config.h.in to produce config.h.  The first handles `#define'
 
20326
# templates, and the second `#undef' templates.
 
20327
# And first: Protect against being on the right side of a sed subst in
 
20328
# config.status.  Protect against being in an unquoted here document
 
20329
# in config.status.
 
20330
rm -f conftest.defines conftest.undefs
 
20331
# Using a here document instead of a string reduces the quoting nightmare.
 
20332
# Putting comments in sed scripts is not portable.
 
20333
#
 
20334
# `end' is used to avoid that the second main sed command (meant for
 
20335
# 0-ary CPP macros) applies to n-ary macro definitions.
 
20336
# See the Autoconf documentation for `clear'.
 
20337
cat >confdef2sed.sed <<\_ACEOF
 
20338
s/[\\&,]/\\&/g
 
20339
s,[\\$`],\\&,g
 
20340
t clear
 
20341
: clear
 
20342
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
20343
t end
 
20344
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
20345
: end
 
20346
_ACEOF
 
20347
# If some macros were called several times there might be several times
 
20348
# the same #defines, which is useless.  Nevertheless, we may not want to
 
20349
# sort them, since we want the *last* AC-DEFINE to be honored.
 
20350
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
20351
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
20352
rm -f confdef2sed.sed
 
20353
 
 
20354
# This sed command replaces #undef with comments.  This is necessary, for
 
20355
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
20356
# on some systems where configure will not decide to define it.
 
20357
cat >>conftest.undefs <<\_ACEOF
 
20358
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
20359
_ACEOF
 
20360
 
 
20361
# Break up conftest.defines because some shells have a limit on the size
 
20362
# of here documents, and old seds have small limits too (100 cmds).
 
20363
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
20364
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
20365
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
20366
echo '  :' >>$CONFIG_STATUS
 
20367
rm -f conftest.tail
 
20368
while grep . conftest.defines >/dev/null
 
20369
do
 
20370
  # Write a limited-size here document to $tmp/defines.sed.
 
20371
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
20372
  # Speed up: don't consider the non `#define' lines.
 
20373
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
20374
  # Work around the forget-to-reset-the-flag bug.
 
20375
  echo 't clr' >>$CONFIG_STATUS
 
20376
  echo ': clr' >>$CONFIG_STATUS
 
20377
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
20378
  echo 'CEOF
 
20379
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
20380
  rm -f $tmp/in
 
20381
  mv $tmp/out $tmp/in
 
20382
' >>$CONFIG_STATUS
 
20383
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
20384
  rm -f conftest.defines
 
20385
  mv conftest.tail conftest.defines
 
20386
done
 
20387
rm -f conftest.defines
 
20388
echo '  fi # grep' >>$CONFIG_STATUS
 
20389
echo >>$CONFIG_STATUS
 
20390
 
 
20391
# Break up conftest.undefs because some shells have a limit on the size
 
20392
# of here documents, and old seds have small limits too (100 cmds).
 
20393
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
20394
rm -f conftest.tail
 
20395
while grep . conftest.undefs >/dev/null
 
20396
do
 
20397
  # Write a limited-size here document to $tmp/undefs.sed.
 
20398
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
20399
  # Speed up: don't consider the non `#undef'
 
20400
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
20401
  # Work around the forget-to-reset-the-flag bug.
 
20402
  echo 't clr' >>$CONFIG_STATUS
 
20403
  echo ': clr' >>$CONFIG_STATUS
 
20404
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
20405
  echo 'CEOF
 
20406
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
20407
  rm -f $tmp/in
 
20408
  mv $tmp/out $tmp/in
 
20409
' >>$CONFIG_STATUS
 
20410
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
20411
  rm -f conftest.undefs
 
20412
  mv conftest.tail conftest.undefs
 
20413
done
 
20414
rm -f conftest.undefs
 
20415
 
 
20416
cat >>$CONFIG_STATUS <<\_ACEOF
 
20417
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
20418
  # use $as_me), people would be surprised to read:
 
20419
  #    /* config.h.  Generated by config.status.  */
 
20420
  if test x"$ac_file" = x-; then
 
20421
    echo "/* Generated by configure.  */" >$tmp/config.h
 
20422
  else
 
20423
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
20424
  fi
 
20425
  cat $tmp/in >>$tmp/config.h
 
20426
  rm -f $tmp/in
 
20427
  if test x"$ac_file" != x-; then
 
20428
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
20429
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
20430
echo "$as_me: $ac_file is unchanged" >&6;}
 
20431
    else
 
20432
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
20433
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20434
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20435
         X"$ac_file" : 'X\(//\)$' \| \
 
20436
         X"$ac_file" : 'X\(/\)' \| \
 
20437
         .     : '\(.\)' 2>/dev/null ||
 
20438
echo X"$ac_file" |
 
20439
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20440
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20441
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20442
          /^X\(\/\).*/{ s//\1/; q; }
 
20443
          s/.*/./; q'`
 
20444
      { if $as_mkdir_p; then
 
20445
    mkdir -p "$ac_dir"
 
20446
  else
 
20447
    as_dir="$ac_dir"
 
20448
    as_dirs=
 
20449
    while test ! -d "$as_dir"; do
 
20450
      as_dirs="$as_dir $as_dirs"
 
20451
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20452
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20453
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20454
         X"$as_dir" : 'X\(//\)$' \| \
 
20455
         X"$as_dir" : 'X\(/\)' \| \
 
20456
         .     : '\(.\)' 2>/dev/null ||
 
20457
echo X"$as_dir" |
 
20458
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20459
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20460
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20461
          /^X\(\/\).*/{ s//\1/; q; }
 
20462
          s/.*/./; q'`
 
20463
    done
 
20464
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20465
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
20466
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
20467
   { (exit 1); exit 1; }; }; }
 
20468
 
 
20469
      rm -f $ac_file
 
20470
      mv $tmp/config.h $ac_file
 
20471
    fi
 
20472
  else
 
20473
    cat $tmp/config.h
 
20474
    rm -f $tmp/config.h
 
20475
  fi
 
20476
# Compute $ac_file's index in $config_headers.
 
20477
_am_stamp_count=1
 
20478
for _am_header in $config_headers :; do
 
20479
  case $_am_header in
 
20480
    $ac_file | $ac_file:* )
 
20481
      break ;;
 
20482
    * )
 
20483
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
20484
  esac
 
20485
done
 
20486
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
20487
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20488
         X$ac_file : 'X\(//\)[^/]' \| \
 
20489
         X$ac_file : 'X\(//\)$' \| \
 
20490
         X$ac_file : 'X\(/\)' \| \
 
20491
         .     : '\(.\)' 2>/dev/null ||
 
20492
echo X$ac_file |
 
20493
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20494
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20495
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20496
          /^X\(\/\).*/{ s//\1/; q; }
 
20497
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
20498
done
 
20499
_ACEOF
 
20500
cat >>$CONFIG_STATUS <<\_ACEOF
 
20501
 
 
20502
#
 
20503
# CONFIG_COMMANDS section.
 
20504
#
 
20505
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
20506
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
20507
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20508
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
20509
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20510
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
20511
         X"$ac_dest" : 'X\(//\)$' \| \
 
20512
         X"$ac_dest" : 'X\(/\)' \| \
 
20513
         .     : '\(.\)' 2>/dev/null ||
 
20514
echo X"$ac_dest" |
 
20515
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20516
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20517
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20518
          /^X\(\/\).*/{ s//\1/; q; }
 
20519
          s/.*/./; q'`
 
20520
  { if $as_mkdir_p; then
 
20521
    mkdir -p "$ac_dir"
 
20522
  else
 
20523
    as_dir="$ac_dir"
 
20524
    as_dirs=
 
20525
    while test ! -d "$as_dir"; do
 
20526
      as_dirs="$as_dir $as_dirs"
 
20527
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20528
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20529
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20530
         X"$as_dir" : 'X\(//\)$' \| \
 
20531
         X"$as_dir" : 'X\(/\)' \| \
 
20532
         .     : '\(.\)' 2>/dev/null ||
 
20533
echo X"$as_dir" |
 
20534
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20535
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20536
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20537
          /^X\(\/\).*/{ s//\1/; q; }
 
20538
          s/.*/./; q'`
 
20539
    done
 
20540
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20541
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
20542
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
20543
   { (exit 1); exit 1; }; }; }
 
20544
 
 
20545
  ac_builddir=.
 
20546
 
 
20547
if test "$ac_dir" != .; then
 
20548
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
20549
  # A "../" for each directory in $ac_dir_suffix.
 
20550
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
20551
else
 
20552
  ac_dir_suffix= ac_top_builddir=
 
20553
fi
 
20554
 
 
20555
case $srcdir in
 
20556
  .)  # No --srcdir option.  We are building in place.
 
20557
    ac_srcdir=.
 
20558
    if test -z "$ac_top_builddir"; then
 
20559
       ac_top_srcdir=.
 
20560
    else
 
20561
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
20562
    fi ;;
 
20563
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
20564
    ac_srcdir=$srcdir$ac_dir_suffix;
 
20565
    ac_top_srcdir=$srcdir ;;
 
20566
  *) # Relative path.
 
20567
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
20568
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
20569
esac
 
20570
 
 
20571
# Do not use `cd foo && pwd` to compute absolute paths, because
 
20572
# the directories may not exist.
 
20573
case `pwd` in
 
20574
.) ac_abs_builddir="$ac_dir";;
 
20575
*)
 
20576
  case "$ac_dir" in
 
20577
  .) ac_abs_builddir=`pwd`;;
 
20578
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
20579
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
20580
  esac;;
 
20581
esac
 
20582
case $ac_abs_builddir in
 
20583
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
20584
*)
 
20585
  case ${ac_top_builddir}. in
 
20586
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
20587
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
20588
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
20589
  esac;;
 
20590
esac
 
20591
case $ac_abs_builddir in
 
20592
.) ac_abs_srcdir=$ac_srcdir;;
 
20593
*)
 
20594
  case $ac_srcdir in
 
20595
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
20596
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
20597
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
20598
  esac;;
 
20599
esac
 
20600
case $ac_abs_builddir in
 
20601
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
20602
*)
 
20603
  case $ac_top_srcdir in
 
20604
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
20605
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
20606
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
20607
  esac;;
 
20608
esac
 
20609
 
 
20610
 
 
20611
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
20612
echo "$as_me: executing $ac_dest commands" >&6;}
 
20613
  case $ac_dest in
 
20614
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
20615
  # Strip MF so we end up with the name of the file.
 
20616
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
20617
  # Check whether this is an Automake generated Makefile or not.
 
20618
  # We used to match only the files named `Makefile.in', but
 
20619
  # some people rename them; so instead we look at the file content.
 
20620
  # Grep'ing the first line is not enough: some people post-process
 
20621
  # each Makefile.in and add a new line on top of each file to say so.
 
20622
  # So let's grep whole file.
 
20623
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
20624
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
20625
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20626
         X"$mf" : 'X\(//\)[^/]' \| \
 
20627
         X"$mf" : 'X\(//\)$' \| \
 
20628
         X"$mf" : 'X\(/\)' \| \
 
20629
         .     : '\(.\)' 2>/dev/null ||
 
20630
echo X"$mf" |
 
20631
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20632
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20633
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20634
          /^X\(\/\).*/{ s//\1/; q; }
 
20635
          s/.*/./; q'`
 
20636
  else
 
20637
    continue
 
20638
  fi
 
20639
  # Extract the definition of DEPDIR, am__include, and am__quote
 
20640
  # from the Makefile without running `make'.
 
20641
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
20642
  test -z "$DEPDIR" && continue
 
20643
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
20644
  test -z "am__include" && continue
 
20645
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
20646
  # When using ansi2knr, U may be empty or an underscore; expand it
 
20647
  U=`sed -n 's/^U = //p' < "$mf"`
 
20648
  # Find all dependency output files, they are included files with
 
20649
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
20650
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
20651
  # expansion.
 
20652
  for file in `sed -n "
 
20653
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
20654
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
20655
    # Make sure the directory exists.
 
20656
    test -f "$dirpart/$file" && continue
 
20657
    fdir=`(dirname "$file") 2>/dev/null ||
 
20658
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20659
         X"$file" : 'X\(//\)[^/]' \| \
 
20660
         X"$file" : 'X\(//\)$' \| \
 
20661
         X"$file" : 'X\(/\)' \| \
 
20662
         .     : '\(.\)' 2>/dev/null ||
 
20663
echo X"$file" |
 
20664
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20665
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20666
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20667
          /^X\(\/\).*/{ s//\1/; q; }
 
20668
          s/.*/./; q'`
 
20669
    { if $as_mkdir_p; then
 
20670
    mkdir -p $dirpart/$fdir
 
20671
  else
 
20672
    as_dir=$dirpart/$fdir
 
20673
    as_dirs=
 
20674
    while test ! -d "$as_dir"; do
 
20675
      as_dirs="$as_dir $as_dirs"
 
20676
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20677
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20678
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20679
         X"$as_dir" : 'X\(//\)$' \| \
 
20680
         X"$as_dir" : 'X\(/\)' \| \
 
20681
         .     : '\(.\)' 2>/dev/null ||
 
20682
echo X"$as_dir" |
 
20683
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20684
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20685
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20686
          /^X\(\/\).*/{ s//\1/; q; }
 
20687
          s/.*/./; q'`
 
20688
    done
 
20689
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20690
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
20691
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
20692
   { (exit 1); exit 1; }; }; }
 
20693
 
 
20694
    # echo "creating $dirpart/$file"
 
20695
    echo '# dummy' > "$dirpart/$file"
 
20696
  done
 
20697
done
 
20698
 ;;
 
20699
  esac
 
20700
done
 
20701
_ACEOF
 
20702
 
 
20703
cat >>$CONFIG_STATUS <<\_ACEOF
 
20704
 
 
20705
{ (exit 0); exit 0; }
 
20706
_ACEOF
 
20707
chmod +x $CONFIG_STATUS
 
20708
ac_clean_files=$ac_clean_files_save
 
20709
 
 
20710
 
 
20711
# configure is writing to config.log, and then calls config.status.
 
20712
# config.status does its own redirection, appending to config.log.
 
20713
# Unfortunately, on DOS this fails, as config.log is still kept open
 
20714
# by configure, so config.status won't be able to write to it; its
 
20715
# output is simply discarded.  So we exec the FD to /dev/null,
 
20716
# effectively closing config.log, so it can be properly (re)opened and
 
20717
# appended to by config.status.  When coming back to configure, we
 
20718
# need to make the FD available again.
 
20719
if test "$no_create" != yes; then
 
20720
  ac_cs_success=:
 
20721
  ac_config_status_args=
 
20722
  test "$silent" = yes &&
 
20723
    ac_config_status_args="$ac_config_status_args --quiet"
 
20724
  exec 5>/dev/null
 
20725
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
20726
  exec 5>>config.log
 
20727
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
20728
  # would make configure fail if this is the last instruction.
 
20729
  $ac_cs_success || { (exit 1); exit 1; }
 
20730
fi
 
20731