~ubuntu-branches/ubuntu/breezy/speech-dispatcher/breezy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Milan Zamazal
  • Date: 2004-05-30 12:55:54 UTC
  • Revision ID: james.westby@ubuntu.com-20040530125554-iy8f3to3bw4cldv5
Tags: upstream-0.4.1
ImportĀ upstreamĀ versionĀ 0.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
289
       echo_test_string="`eval $cmd`" &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="configure.in"
 
429
# Factoring default headers for most tests.
 
430
ac_includes_default="\
 
431
#include <stdio.h>
 
432
#if HAVE_SYS_TYPES_H
 
433
# include <sys/types.h>
 
434
#endif
 
435
#if HAVE_SYS_STAT_H
 
436
# include <sys/stat.h>
 
437
#endif
 
438
#if STDC_HEADERS
 
439
# include <stdlib.h>
 
440
# include <stddef.h>
 
441
#else
 
442
# if HAVE_STDLIB_H
 
443
#  include <stdlib.h>
 
444
# endif
 
445
#endif
 
446
#if HAVE_STRING_H
 
447
# if !STDC_HEADERS && HAVE_MEMORY_H
 
448
#  include <memory.h>
 
449
# endif
 
450
# include <string.h>
 
451
#endif
 
452
#if HAVE_STRINGS_H
 
453
# include <strings.h>
 
454
#endif
 
455
#if HAVE_INTTYPES_H
 
456
# include <inttypes.h>
 
457
#else
 
458
# if HAVE_STDINT_H
 
459
#  include <stdint.h>
 
460
# endif
 
461
#endif
 
462
#if HAVE_UNISTD_H
 
463
# include <unistd.h>
 
464
#endif"
 
465
 
 
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE flite_basic flite_kal glib_include glib_libs spdconfdir snddatadir modulebindir moduleconfdir pidpath LIB_SDAUDIO_CURRENT LIB_SDAUDIO_REVISION LIB_SDAUDIO_AGE LIB_SPD_CURRENT LIB_SPD_REVISION LIB_SPD_AGE CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
 
467
ac_subst_files=''
 
468
 
 
469
# Initialize some variables set by options.
 
470
ac_init_help=
 
471
ac_init_version=false
 
472
# The variables have the same names as the options, with
 
473
# dashes changed to underlines.
 
474
cache_file=/dev/null
 
475
exec_prefix=NONE
 
476
no_create=
 
477
no_recursion=
 
478
prefix=NONE
 
479
program_prefix=NONE
 
480
program_suffix=NONE
 
481
program_transform_name=s,x,x,
 
482
silent=
 
483
site=
 
484
srcdir=
 
485
verbose=
 
486
x_includes=NONE
 
487
x_libraries=NONE
 
488
 
 
489
# Installation directory options.
 
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
491
# and all the variables that are supposed to be based on exec_prefix
 
492
# by default will actually change.
 
493
# Use braces instead of parens because sh, perl, etc. also accept them.
 
494
bindir='${exec_prefix}/bin'
 
495
sbindir='${exec_prefix}/sbin'
 
496
libexecdir='${exec_prefix}/libexec'
 
497
datadir='${prefix}/share'
 
498
sysconfdir='${prefix}/etc'
 
499
sharedstatedir='${prefix}/com'
 
500
localstatedir='${prefix}/var'
 
501
libdir='${exec_prefix}/lib'
 
502
includedir='${prefix}/include'
 
503
oldincludedir='/usr/include'
 
504
infodir='${prefix}/info'
 
505
mandir='${prefix}/man'
 
506
 
 
507
ac_prev=
 
508
for ac_option
 
509
do
 
510
  # If the previous option needs an argument, assign it.
 
511
  if test -n "$ac_prev"; then
 
512
    eval "$ac_prev=\$ac_option"
 
513
    ac_prev=
 
514
    continue
 
515
  fi
 
516
 
 
517
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
518
 
 
519
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
520
 
 
521
  case $ac_option in
 
522
 
 
523
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
524
    ac_prev=bindir ;;
 
525
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
526
    bindir=$ac_optarg ;;
 
527
 
 
528
  -build | --build | --buil | --bui | --bu)
 
529
    ac_prev=build_alias ;;
 
530
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
531
    build_alias=$ac_optarg ;;
 
532
 
 
533
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
534
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
535
    ac_prev=cache_file ;;
 
536
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
537
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
538
    cache_file=$ac_optarg ;;
 
539
 
 
540
  --config-cache | -C)
 
541
    cache_file=config.cache ;;
 
542
 
 
543
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
544
    ac_prev=datadir ;;
 
545
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
546
  | --da=*)
 
547
    datadir=$ac_optarg ;;
 
548
 
 
549
  -disable-* | --disable-*)
 
550
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
551
    # Reject names that are not valid shell variable names.
 
552
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
553
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
554
   { (exit 1); exit 1; }; }
 
555
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
556
    eval "enable_$ac_feature=no" ;;
 
557
 
 
558
  -enable-* | --enable-*)
 
559
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
560
    # Reject names that are not valid shell variable names.
 
561
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
562
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
563
   { (exit 1); exit 1; }; }
 
564
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
565
    case $ac_option in
 
566
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
567
      *) ac_optarg=yes ;;
 
568
    esac
 
569
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
570
 
 
571
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
572
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
573
  | --exec | --exe | --ex)
 
574
    ac_prev=exec_prefix ;;
 
575
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
576
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
577
  | --exec=* | --exe=* | --ex=*)
 
578
    exec_prefix=$ac_optarg ;;
 
579
 
 
580
  -gas | --gas | --ga | --g)
 
581
    # Obsolete; use --with-gas.
 
582
    with_gas=yes ;;
 
583
 
 
584
  -help | --help | --hel | --he | -h)
 
585
    ac_init_help=long ;;
 
586
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
587
    ac_init_help=recursive ;;
 
588
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
589
    ac_init_help=short ;;
 
590
 
 
591
  -host | --host | --hos | --ho)
 
592
    ac_prev=host_alias ;;
 
593
  -host=* | --host=* | --hos=* | --ho=*)
 
594
    host_alias=$ac_optarg ;;
 
595
 
 
596
  -includedir | --includedir | --includedi | --included | --include \
 
597
  | --includ | --inclu | --incl | --inc)
 
598
    ac_prev=includedir ;;
 
599
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
600
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
601
    includedir=$ac_optarg ;;
 
602
 
 
603
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
604
    ac_prev=infodir ;;
 
605
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
606
    infodir=$ac_optarg ;;
 
607
 
 
608
  -libdir | --libdir | --libdi | --libd)
 
609
    ac_prev=libdir ;;
 
610
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
611
    libdir=$ac_optarg ;;
 
612
 
 
613
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
614
  | --libexe | --libex | --libe)
 
615
    ac_prev=libexecdir ;;
 
616
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
617
  | --libexe=* | --libex=* | --libe=*)
 
618
    libexecdir=$ac_optarg ;;
 
619
 
 
620
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
621
  | --localstate | --localstat | --localsta | --localst \
 
622
  | --locals | --local | --loca | --loc | --lo)
 
623
    ac_prev=localstatedir ;;
 
624
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
625
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
626
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
627
    localstatedir=$ac_optarg ;;
 
628
 
 
629
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
630
    ac_prev=mandir ;;
 
631
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
632
    mandir=$ac_optarg ;;
 
633
 
 
634
  -nfp | --nfp | --nf)
 
635
    # Obsolete; use --without-fp.
 
636
    with_fp=no ;;
 
637
 
 
638
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
639
  | --no-cr | --no-c | -n)
 
640
    no_create=yes ;;
 
641
 
 
642
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
643
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
644
    no_recursion=yes ;;
 
645
 
 
646
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
647
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
648
  | --oldin | --oldi | --old | --ol | --o)
 
649
    ac_prev=oldincludedir ;;
 
650
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
651
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
652
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
653
    oldincludedir=$ac_optarg ;;
 
654
 
 
655
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
656
    ac_prev=prefix ;;
 
657
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
658
    prefix=$ac_optarg ;;
 
659
 
 
660
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
661
  | --program-pre | --program-pr | --program-p)
 
662
    ac_prev=program_prefix ;;
 
663
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
664
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
665
    program_prefix=$ac_optarg ;;
 
666
 
 
667
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
668
  | --program-suf | --program-su | --program-s)
 
669
    ac_prev=program_suffix ;;
 
670
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
671
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
672
    program_suffix=$ac_optarg ;;
 
673
 
 
674
  -program-transform-name | --program-transform-name \
 
675
  | --program-transform-nam | --program-transform-na \
 
676
  | --program-transform-n | --program-transform- \
 
677
  | --program-transform | --program-transfor \
 
678
  | --program-transfo | --program-transf \
 
679
  | --program-trans | --program-tran \
 
680
  | --progr-tra | --program-tr | --program-t)
 
681
    ac_prev=program_transform_name ;;
 
682
  -program-transform-name=* | --program-transform-name=* \
 
683
  | --program-transform-nam=* | --program-transform-na=* \
 
684
  | --program-transform-n=* | --program-transform-=* \
 
685
  | --program-transform=* | --program-transfor=* \
 
686
  | --program-transfo=* | --program-transf=* \
 
687
  | --program-trans=* | --program-tran=* \
 
688
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
689
    program_transform_name=$ac_optarg ;;
 
690
 
 
691
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
692
  | -silent | --silent | --silen | --sile | --sil)
 
693
    silent=yes ;;
 
694
 
 
695
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
696
    ac_prev=sbindir ;;
 
697
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
698
  | --sbi=* | --sb=*)
 
699
    sbindir=$ac_optarg ;;
 
700
 
 
701
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
702
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
703
  | --sharedst | --shareds | --shared | --share | --shar \
 
704
  | --sha | --sh)
 
705
    ac_prev=sharedstatedir ;;
 
706
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
707
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
708
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
709
  | --sha=* | --sh=*)
 
710
    sharedstatedir=$ac_optarg ;;
 
711
 
 
712
  -site | --site | --sit)
 
713
    ac_prev=site ;;
 
714
  -site=* | --site=* | --sit=*)
 
715
    site=$ac_optarg ;;
 
716
 
 
717
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
718
    ac_prev=srcdir ;;
 
719
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
720
    srcdir=$ac_optarg ;;
 
721
 
 
722
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
723
  | --syscon | --sysco | --sysc | --sys | --sy)
 
724
    ac_prev=sysconfdir ;;
 
725
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
726
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
727
    sysconfdir=$ac_optarg ;;
 
728
 
 
729
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
730
    ac_prev=target_alias ;;
 
731
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
732
    target_alias=$ac_optarg ;;
 
733
 
 
734
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
735
    verbose=yes ;;
 
736
 
 
737
  -version | --version | --versio | --versi | --vers | -V)
 
738
    ac_init_version=: ;;
 
739
 
 
740
  -with-* | --with-*)
 
741
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
742
    # Reject names that are not valid shell variable names.
 
743
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
744
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
745
   { (exit 1); exit 1; }; }
 
746
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
747
    case $ac_option in
 
748
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
749
      *) ac_optarg=yes ;;
 
750
    esac
 
751
    eval "with_$ac_package='$ac_optarg'" ;;
 
752
 
 
753
  -without-* | --without-*)
 
754
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
755
    # Reject names that are not valid shell variable names.
 
756
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
757
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
758
   { (exit 1); exit 1; }; }
 
759
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
760
    eval "with_$ac_package=no" ;;
 
761
 
 
762
  --x)
 
763
    # Obsolete; use --with-x.
 
764
    with_x=yes ;;
 
765
 
 
766
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
767
  | --x-incl | --x-inc | --x-in | --x-i)
 
768
    ac_prev=x_includes ;;
 
769
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
770
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
771
    x_includes=$ac_optarg ;;
 
772
 
 
773
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
774
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
775
    ac_prev=x_libraries ;;
 
776
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
777
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
778
    x_libraries=$ac_optarg ;;
 
779
 
 
780
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
781
Try \`$0 --help' for more information." >&2
 
782
   { (exit 1); exit 1; }; }
 
783
    ;;
 
784
 
 
785
  *=*)
 
786
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
787
    # Reject names that are not valid shell variable names.
 
788
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
789
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
790
   { (exit 1); exit 1; }; }
 
791
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
792
    eval "$ac_envvar='$ac_optarg'"
 
793
    export $ac_envvar ;;
 
794
 
 
795
  *)
 
796
    # FIXME: should be removed in autoconf 3.0.
 
797
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
798
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
799
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
800
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
801
    ;;
 
802
 
 
803
  esac
 
804
done
 
805
 
 
806
if test -n "$ac_prev"; then
 
807
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
808
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
809
   { (exit 1); exit 1; }; }
 
810
fi
 
811
 
 
812
# Be sure to have absolute paths.
 
813
for ac_var in exec_prefix prefix
 
814
do
 
815
  eval ac_val=$`echo $ac_var`
 
816
  case $ac_val in
 
817
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
818
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
819
   { (exit 1); exit 1; }; };;
 
820
  esac
 
821
done
 
822
 
 
823
# Be sure to have absolute paths.
 
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
825
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
do
 
827
  eval ac_val=$`echo $ac_var`
 
828
  case $ac_val in
 
829
    [\\/$]* | ?:[\\/]* ) ;;
 
830
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
831
   { (exit 1); exit 1; }; };;
 
832
  esac
 
833
done
 
834
 
 
835
# There might be people who depend on the old broken behavior: `$host'
 
836
# used to hold the argument of --host etc.
 
837
# FIXME: To remove some day.
 
838
build=$build_alias
 
839
host=$host_alias
 
840
target=$target_alias
 
841
 
 
842
# FIXME: To remove some day.
 
843
if test "x$host_alias" != x; then
 
844
  if test "x$build_alias" = x; then
 
845
    cross_compiling=maybe
 
846
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
847
    If a cross compiler is detected then cross compile mode will be used." >&2
 
848
  elif test "x$build_alias" != "x$host_alias"; then
 
849
    cross_compiling=yes
 
850
  fi
 
851
fi
 
852
 
 
853
ac_tool_prefix=
 
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
855
 
 
856
test "$silent" = yes && exec 6>/dev/null
 
857
 
 
858
 
 
859
# Find the source files, if location was not specified.
 
860
if test -z "$srcdir"; then
 
861
  ac_srcdir_defaulted=yes
 
862
  # Try the directory containing this script, then its parent.
 
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
865
         X"$0" : 'X\(//\)[^/]' \| \
 
866
         X"$0" : 'X\(//\)$' \| \
 
867
         X"$0" : 'X\(/\)' \| \
 
868
         .     : '\(.\)' 2>/dev/null ||
 
869
echo X"$0" |
 
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
871
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
872
          /^X\(\/\/\)$/{ s//\1/; q; }
 
873
          /^X\(\/\).*/{ s//\1/; q; }
 
874
          s/.*/./; q'`
 
875
  srcdir=$ac_confdir
 
876
  if test ! -r $srcdir/$ac_unique_file; then
 
877
    srcdir=..
 
878
  fi
 
879
else
 
880
  ac_srcdir_defaulted=no
 
881
fi
 
882
if test ! -r $srcdir/$ac_unique_file; then
 
883
  if test "$ac_srcdir_defaulted" = yes; then
 
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
885
   { (exit 1); exit 1; }; }
 
886
  else
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
888
   { (exit 1); exit 1; }; }
 
889
  fi
 
890
fi
 
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
892
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
893
   { (exit 1); exit 1; }; }
 
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
895
ac_env_build_alias_set=${build_alias+set}
 
896
ac_env_build_alias_value=$build_alias
 
897
ac_cv_env_build_alias_set=${build_alias+set}
 
898
ac_cv_env_build_alias_value=$build_alias
 
899
ac_env_host_alias_set=${host_alias+set}
 
900
ac_env_host_alias_value=$host_alias
 
901
ac_cv_env_host_alias_set=${host_alias+set}
 
902
ac_cv_env_host_alias_value=$host_alias
 
903
ac_env_target_alias_set=${target_alias+set}
 
904
ac_env_target_alias_value=$target_alias
 
905
ac_cv_env_target_alias_set=${target_alias+set}
 
906
ac_cv_env_target_alias_value=$target_alias
 
907
ac_env_CC_set=${CC+set}
 
908
ac_env_CC_value=$CC
 
909
ac_cv_env_CC_set=${CC+set}
 
910
ac_cv_env_CC_value=$CC
 
911
ac_env_CFLAGS_set=${CFLAGS+set}
 
912
ac_env_CFLAGS_value=$CFLAGS
 
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_cv_env_CFLAGS_value=$CFLAGS
 
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
916
ac_env_LDFLAGS_value=$LDFLAGS
 
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
920
ac_env_CPPFLAGS_value=$CPPFLAGS
 
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_env_pidpath_set=${pidpath+set}
 
924
ac_env_pidpath_value=$pidpath
 
925
ac_cv_env_pidpath_set=${pidpath+set}
 
926
ac_cv_env_pidpath_value=$pidpath
 
927
ac_env_CPP_set=${CPP+set}
 
928
ac_env_CPP_value=$CPP
 
929
ac_cv_env_CPP_set=${CPP+set}
 
930
ac_cv_env_CPP_value=$CPP
 
931
ac_env_CXX_set=${CXX+set}
 
932
ac_env_CXX_value=$CXX
 
933
ac_cv_env_CXX_set=${CXX+set}
 
934
ac_cv_env_CXX_value=$CXX
 
935
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
936
ac_env_CXXFLAGS_value=$CXXFLAGS
 
937
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
938
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
939
ac_env_CXXCPP_set=${CXXCPP+set}
 
940
ac_env_CXXCPP_value=$CXXCPP
 
941
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
942
ac_cv_env_CXXCPP_value=$CXXCPP
 
943
ac_env_F77_set=${F77+set}
 
944
ac_env_F77_value=$F77
 
945
ac_cv_env_F77_set=${F77+set}
 
946
ac_cv_env_F77_value=$F77
 
947
ac_env_FFLAGS_set=${FFLAGS+set}
 
948
ac_env_FFLAGS_value=$FFLAGS
 
949
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
950
ac_cv_env_FFLAGS_value=$FFLAGS
 
951
 
 
952
#
 
953
# Report the --help message.
 
954
#
 
955
if test "$ac_init_help" = "long"; then
 
956
  # Omit some internal or obsolete options to make the list less imposing.
 
957
  # This message is too long to be a string in the A/UX 3.1 sh.
 
958
  cat <<_ACEOF
 
959
\`configure' configures this package to adapt to many kinds of systems.
 
960
 
 
961
Usage: $0 [OPTION]... [VAR=VALUE]...
 
962
 
 
963
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
964
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
965
 
 
966
Defaults for the options are specified in brackets.
 
967
 
 
968
Configuration:
 
969
  -h, --help              display this help and exit
 
970
      --help=short        display options specific to this package
 
971
      --help=recursive    display the short help of all the included packages
 
972
  -V, --version           display version information and exit
 
973
  -q, --quiet, --silent   do not print \`checking...' messages
 
974
      --cache-file=FILE   cache test results in FILE [disabled]
 
975
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
976
  -n, --no-create         do not create output files
 
977
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
978
 
 
979
_ACEOF
 
980
 
 
981
  cat <<_ACEOF
 
982
Installation directories:
 
983
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
984
                          [$ac_default_prefix]
 
985
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
986
                          [PREFIX]
 
987
 
 
988
By default, \`make install' will install all the files in
 
989
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
990
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
991
for instance \`--prefix=\$HOME'.
 
992
 
 
993
For better control, use the options below.
 
994
 
 
995
Fine tuning of the installation directories:
 
996
  --bindir=DIR           user executables [EPREFIX/bin]
 
997
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
998
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
999
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
1000
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1001
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1002
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1003
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1004
  --includedir=DIR       C header files [PREFIX/include]
 
1005
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1006
  --infodir=DIR          info documentation [PREFIX/info]
 
1007
  --mandir=DIR           man documentation [PREFIX/man]
 
1008
_ACEOF
 
1009
 
 
1010
  cat <<\_ACEOF
 
1011
 
 
1012
Program names:
 
1013
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1014
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1015
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1016
 
 
1017
System types:
 
1018
  --build=BUILD     configure for building on BUILD [guessed]
 
1019
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1020
_ACEOF
 
1021
fi
 
1022
 
 
1023
if test -n "$ac_init_help"; then
 
1024
 
 
1025
  cat <<\_ACEOF
 
1026
 
 
1027
Optional Features:
 
1028
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1029
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1030
  --disable-dependency-tracking  speeds up one-time build
 
1031
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1032
  --enable-shared[=PKGS]
 
1033
                          build shared libraries [default=yes]
 
1034
  --enable-static[=PKGS]
 
1035
                          build static libraries [default=yes]
 
1036
  --enable-fast-install[=PKGS]
 
1037
                          optimize for fast installation [default=yes]
 
1038
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1039
 
 
1040
Optional Packages:
 
1041
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1042
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1043
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1044
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1045
                          both]
 
1046
  --with-tags[=TAGS]
 
1047
                          include additional configurations [automatic]
 
1048
 
 
1049
Some influential environment variables:
 
1050
  CC          C compiler command
 
1051
  CFLAGS      C compiler flags
 
1052
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1053
              nonstandard directory <lib dir>
 
1054
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1055
              headers in a nonstandard directory <include dir>
 
1056
  pidpath     Absolute path to a pid file
 
1057
  CPP         C preprocessor
 
1058
  CXX         C++ compiler command
 
1059
  CXXFLAGS    C++ compiler flags
 
1060
  CXXCPP      C++ preprocessor
 
1061
  F77         Fortran 77 compiler command
 
1062
  FFLAGS      Fortran 77 compiler flags
 
1063
 
 
1064
Use these variables to override the choices made by `configure' or to help
 
1065
it to find libraries and programs with nonstandard names/locations.
 
1066
 
 
1067
_ACEOF
 
1068
fi
 
1069
 
 
1070
if test "$ac_init_help" = "recursive"; then
 
1071
  # If there are subdirs, report their specific --help.
 
1072
  ac_popdir=`pwd`
 
1073
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1074
    test -d $ac_dir || continue
 
1075
    ac_builddir=.
 
1076
 
 
1077
if test "$ac_dir" != .; then
 
1078
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1079
  # A "../" for each directory in $ac_dir_suffix.
 
1080
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1081
else
 
1082
  ac_dir_suffix= ac_top_builddir=
 
1083
fi
 
1084
 
 
1085
case $srcdir in
 
1086
  .)  # No --srcdir option.  We are building in place.
 
1087
    ac_srcdir=.
 
1088
    if test -z "$ac_top_builddir"; then
 
1089
       ac_top_srcdir=.
 
1090
    else
 
1091
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1092
    fi ;;
 
1093
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1094
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1095
    ac_top_srcdir=$srcdir ;;
 
1096
  *) # Relative path.
 
1097
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1098
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1099
esac
 
1100
 
 
1101
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1102
# the directories may not exist.
 
1103
case `pwd` in
 
1104
.) ac_abs_builddir="$ac_dir";;
 
1105
*)
 
1106
  case "$ac_dir" in
 
1107
  .) ac_abs_builddir=`pwd`;;
 
1108
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1109
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1110
  esac;;
 
1111
esac
 
1112
case $ac_abs_builddir in
 
1113
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1114
*)
 
1115
  case ${ac_top_builddir}. in
 
1116
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1117
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1118
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1119
  esac;;
 
1120
esac
 
1121
case $ac_abs_builddir in
 
1122
.) ac_abs_srcdir=$ac_srcdir;;
 
1123
*)
 
1124
  case $ac_srcdir in
 
1125
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1126
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1127
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1128
  esac;;
 
1129
esac
 
1130
case $ac_abs_builddir in
 
1131
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1132
*)
 
1133
  case $ac_top_srcdir in
 
1134
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1135
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1136
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1137
  esac;;
 
1138
esac
 
1139
 
 
1140
    cd $ac_dir
 
1141
    # Check for guested configure; otherwise get Cygnus style configure.
 
1142
    if test -f $ac_srcdir/configure.gnu; then
 
1143
      echo
 
1144
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1145
    elif test -f $ac_srcdir/configure; then
 
1146
      echo
 
1147
      $SHELL $ac_srcdir/configure  --help=recursive
 
1148
    elif test -f $ac_srcdir/configure.ac ||
 
1149
           test -f $ac_srcdir/configure.in; then
 
1150
      echo
 
1151
      $ac_configure --help
 
1152
    else
 
1153
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1154
    fi
 
1155
    cd "$ac_popdir"
 
1156
  done
 
1157
fi
 
1158
 
 
1159
test -n "$ac_init_help" && exit 0
 
1160
if $ac_init_version; then
 
1161
  cat <<\_ACEOF
 
1162
 
 
1163
Copyright (C) 2003 Free Software Foundation, Inc.
 
1164
This configure script is free software; the Free Software Foundation
 
1165
gives unlimited permission to copy, distribute and modify it.
 
1166
_ACEOF
 
1167
  exit 0
 
1168
fi
 
1169
exec 5>config.log
 
1170
cat >&5 <<_ACEOF
 
1171
This file contains any messages produced by compilers while
 
1172
running configure, to aid debugging if configure makes a mistake.
 
1173
 
 
1174
It was created by $as_me, which was
 
1175
generated by GNU Autoconf 2.59.  Invocation command line was
 
1176
 
 
1177
  $ $0 $@
 
1178
 
 
1179
_ACEOF
 
1180
{
 
1181
cat <<_ASUNAME
 
1182
## --------- ##
 
1183
## Platform. ##
 
1184
## --------- ##
 
1185
 
 
1186
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1187
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1188
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1189
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1190
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1191
 
 
1192
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1193
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1194
 
 
1195
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1196
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1197
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1198
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1199
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1200
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1201
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1202
 
 
1203
_ASUNAME
 
1204
 
 
1205
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1206
for as_dir in $PATH
 
1207
do
 
1208
  IFS=$as_save_IFS
 
1209
  test -z "$as_dir" && as_dir=.
 
1210
  echo "PATH: $as_dir"
 
1211
done
 
1212
 
 
1213
} >&5
 
1214
 
 
1215
cat >&5 <<_ACEOF
 
1216
 
 
1217
 
 
1218
## ----------- ##
 
1219
## Core tests. ##
 
1220
## ----------- ##
 
1221
 
 
1222
_ACEOF
 
1223
 
 
1224
 
 
1225
# Keep a trace of the command line.
 
1226
# Strip out --no-create and --no-recursion so they do not pile up.
 
1227
# Strip out --silent because we don't want to record it for future runs.
 
1228
# Also quote any args containing shell meta-characters.
 
1229
# Make two passes to allow for proper duplicate-argument suppression.
 
1230
ac_configure_args=
 
1231
ac_configure_args0=
 
1232
ac_configure_args1=
 
1233
ac_sep=
 
1234
ac_must_keep_next=false
 
1235
for ac_pass in 1 2
 
1236
do
 
1237
  for ac_arg
 
1238
  do
 
1239
    case $ac_arg in
 
1240
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1241
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1242
    | -silent | --silent | --silen | --sile | --sil)
 
1243
      continue ;;
 
1244
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1245
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1246
    esac
 
1247
    case $ac_pass in
 
1248
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1249
    2)
 
1250
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1251
      if test $ac_must_keep_next = true; then
 
1252
        ac_must_keep_next=false # Got value, back to normal.
 
1253
      else
 
1254
        case $ac_arg in
 
1255
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1256
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1257
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1258
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1259
            case "$ac_configure_args0 " in
 
1260
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1261
            esac
 
1262
            ;;
 
1263
          -* ) ac_must_keep_next=true ;;
 
1264
        esac
 
1265
      fi
 
1266
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1267
      # Get rid of the leading space.
 
1268
      ac_sep=" "
 
1269
      ;;
 
1270
    esac
 
1271
  done
 
1272
done
 
1273
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1274
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1275
 
 
1276
# When interrupted or exit'd, cleanup temporary files, and complete
 
1277
# config.log.  We remove comments because anyway the quotes in there
 
1278
# would cause problems or look ugly.
 
1279
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1280
# such as our DU 5.0 friend, will then `close' the trap.
 
1281
trap 'exit_status=$?
 
1282
  # Save into config.log some information that might help in debugging.
 
1283
  {
 
1284
    echo
 
1285
 
 
1286
    cat <<\_ASBOX
 
1287
## ---------------- ##
 
1288
## Cache variables. ##
 
1289
## ---------------- ##
 
1290
_ASBOX
 
1291
    echo
 
1292
    # The following way of writing the cache mishandles newlines in values,
 
1293
{
 
1294
  (set) 2>&1 |
 
1295
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1296
    *ac_space=\ *)
 
1297
      sed -n \
 
1298
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1299
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1300
      ;;
 
1301
    *)
 
1302
      sed -n \
 
1303
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1304
      ;;
 
1305
    esac;
 
1306
}
 
1307
    echo
 
1308
 
 
1309
    cat <<\_ASBOX
 
1310
## ----------------- ##
 
1311
## Output variables. ##
 
1312
## ----------------- ##
 
1313
_ASBOX
 
1314
    echo
 
1315
    for ac_var in $ac_subst_vars
 
1316
    do
 
1317
      eval ac_val=$`echo $ac_var`
 
1318
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1319
    done | sort
 
1320
    echo
 
1321
 
 
1322
    if test -n "$ac_subst_files"; then
 
1323
      cat <<\_ASBOX
 
1324
## ------------- ##
 
1325
## Output files. ##
 
1326
## ------------- ##
 
1327
_ASBOX
 
1328
      echo
 
1329
      for ac_var in $ac_subst_files
 
1330
      do
 
1331
        eval ac_val=$`echo $ac_var`
 
1332
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1333
      done | sort
 
1334
      echo
 
1335
    fi
 
1336
 
 
1337
    if test -s confdefs.h; then
 
1338
      cat <<\_ASBOX
 
1339
## ----------- ##
 
1340
## confdefs.h. ##
 
1341
## ----------- ##
 
1342
_ASBOX
 
1343
      echo
 
1344
      sed "/^$/d" confdefs.h | sort
 
1345
      echo
 
1346
    fi
 
1347
    test "$ac_signal" != 0 &&
 
1348
      echo "$as_me: caught signal $ac_signal"
 
1349
    echo "$as_me: exit $exit_status"
 
1350
  } >&5
 
1351
  rm -f core *.core &&
 
1352
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1353
    exit $exit_status
 
1354
     ' 0
 
1355
for ac_signal in 1 2 13 15; do
 
1356
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1357
done
 
1358
ac_signal=0
 
1359
 
 
1360
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1361
rm -rf conftest* confdefs.h
 
1362
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1363
echo >confdefs.h
 
1364
 
 
1365
# Predefined preprocessor variables.
 
1366
 
 
1367
cat >>confdefs.h <<_ACEOF
 
1368
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1369
_ACEOF
 
1370
 
 
1371
 
 
1372
cat >>confdefs.h <<_ACEOF
 
1373
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1374
_ACEOF
 
1375
 
 
1376
 
 
1377
cat >>confdefs.h <<_ACEOF
 
1378
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1379
_ACEOF
 
1380
 
 
1381
 
 
1382
cat >>confdefs.h <<_ACEOF
 
1383
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1384
_ACEOF
 
1385
 
 
1386
 
 
1387
cat >>confdefs.h <<_ACEOF
 
1388
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1389
_ACEOF
 
1390
 
 
1391
 
 
1392
# Let the site file select an alternate cache file if it wants to.
 
1393
# Prefer explicitly selected file to automatically selected ones.
 
1394
if test -z "$CONFIG_SITE"; then
 
1395
  if test "x$prefix" != xNONE; then
 
1396
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1397
  else
 
1398
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1399
  fi
 
1400
fi
 
1401
for ac_site_file in $CONFIG_SITE; do
 
1402
  if test -r "$ac_site_file"; then
 
1403
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1404
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1405
    sed 's/^/| /' "$ac_site_file" >&5
 
1406
    . "$ac_site_file"
 
1407
  fi
 
1408
done
 
1409
 
 
1410
if test -r "$cache_file"; then
 
1411
  # Some versions of bash will fail to source /dev/null (special
 
1412
  # files actually), so we avoid doing that.
 
1413
  if test -f "$cache_file"; then
 
1414
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1415
echo "$as_me: loading cache $cache_file" >&6;}
 
1416
    case $cache_file in
 
1417
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1418
      *)                      . ./$cache_file;;
 
1419
    esac
 
1420
  fi
 
1421
else
 
1422
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1423
echo "$as_me: creating cache $cache_file" >&6;}
 
1424
  >$cache_file
 
1425
fi
 
1426
 
 
1427
# Check that the precious variables saved in the cache have kept the same
 
1428
# value.
 
1429
ac_cache_corrupted=false
 
1430
for ac_var in `(set) 2>&1 |
 
1431
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1432
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1433
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1434
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1435
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1436
  case $ac_old_set,$ac_new_set in
 
1437
    set,)
 
1438
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1439
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1440
      ac_cache_corrupted=: ;;
 
1441
    ,set)
 
1442
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1443
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1444
      ac_cache_corrupted=: ;;
 
1445
    ,);;
 
1446
    *)
 
1447
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1448
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1449
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1450
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1451
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1452
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1453
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1454
        ac_cache_corrupted=:
 
1455
      fi;;
 
1456
  esac
 
1457
  # Pass precious variables to config.status.
 
1458
  if test "$ac_new_set" = set; then
 
1459
    case $ac_new_val in
 
1460
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1461
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1462
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1463
    esac
 
1464
    case " $ac_configure_args " in
 
1465
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1466
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1467
    esac
 
1468
  fi
 
1469
done
 
1470
if $ac_cache_corrupted; then
 
1471
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1472
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1473
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1474
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1475
   { (exit 1); exit 1; }; }
 
1476
fi
 
1477
 
 
1478
ac_ext=c
 
1479
ac_cpp='$CPP $CPPFLAGS'
 
1480
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1481
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1482
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1483
 
 
1484
 
 
1485
 
 
1486
 
 
1487
 
 
1488
 
 
1489
 
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
ac_ext=c
 
1504
ac_cpp='$CPP $CPPFLAGS'
 
1505
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1506
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1507
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1508
 
 
1509
 
 
1510
ac_ext=c
 
1511
ac_cpp='$CPP $CPPFLAGS'
 
1512
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1513
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1514
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1515
if test -n "$ac_tool_prefix"; then
 
1516
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1517
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1518
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1519
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1520
if test "${ac_cv_prog_CC+set}" = set; then
 
1521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1522
else
 
1523
  if test -n "$CC"; then
 
1524
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1525
else
 
1526
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1527
for as_dir in $PATH
 
1528
do
 
1529
  IFS=$as_save_IFS
 
1530
  test -z "$as_dir" && as_dir=.
 
1531
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1532
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1533
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1534
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1535
    break 2
 
1536
  fi
 
1537
done
 
1538
done
 
1539
 
 
1540
fi
 
1541
fi
 
1542
CC=$ac_cv_prog_CC
 
1543
if test -n "$CC"; then
 
1544
  echo "$as_me:$LINENO: result: $CC" >&5
 
1545
echo "${ECHO_T}$CC" >&6
 
1546
else
 
1547
  echo "$as_me:$LINENO: result: no" >&5
 
1548
echo "${ECHO_T}no" >&6
 
1549
fi
 
1550
 
 
1551
fi
 
1552
if test -z "$ac_cv_prog_CC"; then
 
1553
  ac_ct_CC=$CC
 
1554
  # Extract the first word of "gcc", so it can be a program name with args.
 
1555
set dummy gcc; ac_word=$2
 
1556
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1557
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1558
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1560
else
 
1561
  if test -n "$ac_ct_CC"; then
 
1562
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1563
else
 
1564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1565
for as_dir in $PATH
 
1566
do
 
1567
  IFS=$as_save_IFS
 
1568
  test -z "$as_dir" && as_dir=.
 
1569
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1570
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1571
    ac_cv_prog_ac_ct_CC="gcc"
 
1572
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1573
    break 2
 
1574
  fi
 
1575
done
 
1576
done
 
1577
 
 
1578
fi
 
1579
fi
 
1580
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1581
if test -n "$ac_ct_CC"; then
 
1582
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1583
echo "${ECHO_T}$ac_ct_CC" >&6
 
1584
else
 
1585
  echo "$as_me:$LINENO: result: no" >&5
 
1586
echo "${ECHO_T}no" >&6
 
1587
fi
 
1588
 
 
1589
  CC=$ac_ct_CC
 
1590
else
 
1591
  CC="$ac_cv_prog_CC"
 
1592
fi
 
1593
 
 
1594
if test -z "$CC"; then
 
1595
  if test -n "$ac_tool_prefix"; then
 
1596
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1597
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1598
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1599
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1600
if test "${ac_cv_prog_CC+set}" = set; then
 
1601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1602
else
 
1603
  if test -n "$CC"; then
 
1604
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1605
else
 
1606
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1607
for as_dir in $PATH
 
1608
do
 
1609
  IFS=$as_save_IFS
 
1610
  test -z "$as_dir" && as_dir=.
 
1611
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1612
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1613
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1614
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1615
    break 2
 
1616
  fi
 
1617
done
 
1618
done
 
1619
 
 
1620
fi
 
1621
fi
 
1622
CC=$ac_cv_prog_CC
 
1623
if test -n "$CC"; then
 
1624
  echo "$as_me:$LINENO: result: $CC" >&5
 
1625
echo "${ECHO_T}$CC" >&6
 
1626
else
 
1627
  echo "$as_me:$LINENO: result: no" >&5
 
1628
echo "${ECHO_T}no" >&6
 
1629
fi
 
1630
 
 
1631
fi
 
1632
if test -z "$ac_cv_prog_CC"; then
 
1633
  ac_ct_CC=$CC
 
1634
  # Extract the first word of "cc", so it can be a program name with args.
 
1635
set dummy cc; ac_word=$2
 
1636
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1637
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1638
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1639
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1640
else
 
1641
  if test -n "$ac_ct_CC"; then
 
1642
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1643
else
 
1644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1645
for as_dir in $PATH
 
1646
do
 
1647
  IFS=$as_save_IFS
 
1648
  test -z "$as_dir" && as_dir=.
 
1649
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1650
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1651
    ac_cv_prog_ac_ct_CC="cc"
 
1652
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1653
    break 2
 
1654
  fi
 
1655
done
 
1656
done
 
1657
 
 
1658
fi
 
1659
fi
 
1660
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1661
if test -n "$ac_ct_CC"; then
 
1662
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1663
echo "${ECHO_T}$ac_ct_CC" >&6
 
1664
else
 
1665
  echo "$as_me:$LINENO: result: no" >&5
 
1666
echo "${ECHO_T}no" >&6
 
1667
fi
 
1668
 
 
1669
  CC=$ac_ct_CC
 
1670
else
 
1671
  CC="$ac_cv_prog_CC"
 
1672
fi
 
1673
 
 
1674
fi
 
1675
if test -z "$CC"; then
 
1676
  # Extract the first word of "cc", so it can be a program name with args.
 
1677
set dummy cc; ac_word=$2
 
1678
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1680
if test "${ac_cv_prog_CC+set}" = set; then
 
1681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1682
else
 
1683
  if test -n "$CC"; then
 
1684
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1685
else
 
1686
  ac_prog_rejected=no
 
1687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1688
for as_dir in $PATH
 
1689
do
 
1690
  IFS=$as_save_IFS
 
1691
  test -z "$as_dir" && as_dir=.
 
1692
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1693
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1694
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1695
       ac_prog_rejected=yes
 
1696
       continue
 
1697
     fi
 
1698
    ac_cv_prog_CC="cc"
 
1699
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1700
    break 2
 
1701
  fi
 
1702
done
 
1703
done
 
1704
 
 
1705
if test $ac_prog_rejected = yes; then
 
1706
  # We found a bogon in the path, so make sure we never use it.
 
1707
  set dummy $ac_cv_prog_CC
 
1708
  shift
 
1709
  if test $# != 0; then
 
1710
    # We chose a different compiler from the bogus one.
 
1711
    # However, it has the same basename, so the bogon will be chosen
 
1712
    # first if we set CC to just the basename; use the full file name.
 
1713
    shift
 
1714
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1715
  fi
 
1716
fi
 
1717
fi
 
1718
fi
 
1719
CC=$ac_cv_prog_CC
 
1720
if test -n "$CC"; then
 
1721
  echo "$as_me:$LINENO: result: $CC" >&5
 
1722
echo "${ECHO_T}$CC" >&6
 
1723
else
 
1724
  echo "$as_me:$LINENO: result: no" >&5
 
1725
echo "${ECHO_T}no" >&6
 
1726
fi
 
1727
 
 
1728
fi
 
1729
if test -z "$CC"; then
 
1730
  if test -n "$ac_tool_prefix"; then
 
1731
  for ac_prog in cl
 
1732
  do
 
1733
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1734
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1735
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1736
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1737
if test "${ac_cv_prog_CC+set}" = set; then
 
1738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1739
else
 
1740
  if test -n "$CC"; then
 
1741
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1742
else
 
1743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1744
for as_dir in $PATH
 
1745
do
 
1746
  IFS=$as_save_IFS
 
1747
  test -z "$as_dir" && as_dir=.
 
1748
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1749
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1750
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1751
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1752
    break 2
 
1753
  fi
 
1754
done
 
1755
done
 
1756
 
 
1757
fi
 
1758
fi
 
1759
CC=$ac_cv_prog_CC
 
1760
if test -n "$CC"; then
 
1761
  echo "$as_me:$LINENO: result: $CC" >&5
 
1762
echo "${ECHO_T}$CC" >&6
 
1763
else
 
1764
  echo "$as_me:$LINENO: result: no" >&5
 
1765
echo "${ECHO_T}no" >&6
 
1766
fi
 
1767
 
 
1768
    test -n "$CC" && break
 
1769
  done
 
1770
fi
 
1771
if test -z "$CC"; then
 
1772
  ac_ct_CC=$CC
 
1773
  for ac_prog in cl
 
1774
do
 
1775
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1776
set dummy $ac_prog; ac_word=$2
 
1777
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1778
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1779
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1781
else
 
1782
  if test -n "$ac_ct_CC"; then
 
1783
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1784
else
 
1785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1786
for as_dir in $PATH
 
1787
do
 
1788
  IFS=$as_save_IFS
 
1789
  test -z "$as_dir" && as_dir=.
 
1790
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1791
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1792
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1793
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1794
    break 2
 
1795
  fi
 
1796
done
 
1797
done
 
1798
 
 
1799
fi
 
1800
fi
 
1801
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1802
if test -n "$ac_ct_CC"; then
 
1803
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1804
echo "${ECHO_T}$ac_ct_CC" >&6
 
1805
else
 
1806
  echo "$as_me:$LINENO: result: no" >&5
 
1807
echo "${ECHO_T}no" >&6
 
1808
fi
 
1809
 
 
1810
  test -n "$ac_ct_CC" && break
 
1811
done
 
1812
 
 
1813
  CC=$ac_ct_CC
 
1814
fi
 
1815
 
 
1816
fi
 
1817
 
 
1818
 
 
1819
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1820
See \`config.log' for more details." >&5
 
1821
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1822
See \`config.log' for more details." >&2;}
 
1823
   { (exit 1); exit 1; }; }
 
1824
 
 
1825
# Provide some information about the compiler.
 
1826
echo "$as_me:$LINENO:" \
 
1827
     "checking for C compiler version" >&5
 
1828
ac_compiler=`set X $ac_compile; echo $2`
 
1829
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1830
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1831
  ac_status=$?
 
1832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1833
  (exit $ac_status); }
 
1834
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1835
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1836
  ac_status=$?
 
1837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1838
  (exit $ac_status); }
 
1839
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1840
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1841
  ac_status=$?
 
1842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1843
  (exit $ac_status); }
 
1844
 
 
1845
cat >conftest.$ac_ext <<_ACEOF
 
1846
/* confdefs.h.  */
 
1847
_ACEOF
 
1848
cat confdefs.h >>conftest.$ac_ext
 
1849
cat >>conftest.$ac_ext <<_ACEOF
 
1850
/* end confdefs.h.  */
 
1851
 
 
1852
int
 
1853
main ()
 
1854
{
 
1855
 
 
1856
  ;
 
1857
  return 0;
 
1858
}
 
1859
_ACEOF
 
1860
ac_clean_files_save=$ac_clean_files
 
1861
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1862
# Try to create an executable without -o first, disregard a.out.
 
1863
# It will help us diagnose broken compilers, and finding out an intuition
 
1864
# of exeext.
 
1865
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1866
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
1867
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1868
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1869
  (eval $ac_link_default) 2>&5
 
1870
  ac_status=$?
 
1871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1872
  (exit $ac_status); }; then
 
1873
  # Find the output, starting from the most likely.  This scheme is
 
1874
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1875
# resort.
 
1876
 
 
1877
# Be careful to initialize this variable, since it used to be cached.
 
1878
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1879
ac_cv_exeext=
 
1880
# b.out is created by i960 compilers.
 
1881
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1882
do
 
1883
  test -f "$ac_file" || continue
 
1884
  case $ac_file in
 
1885
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1886
        ;;
 
1887
    conftest.$ac_ext )
 
1888
        # This is the source file.
 
1889
        ;;
 
1890
    [ab].out )
 
1891
        # We found the default executable, but exeext='' is most
 
1892
        # certainly right.
 
1893
        break;;
 
1894
    *.* )
 
1895
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1896
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1897
        # but it would be cool to find out if it's true.  Does anybody
 
1898
        # maintain Libtool? --akim.
 
1899
        export ac_cv_exeext
 
1900
        break;;
 
1901
    * )
 
1902
        break;;
 
1903
  esac
 
1904
done
 
1905
else
 
1906
  echo "$as_me: failed program was:" >&5
 
1907
sed 's/^/| /' conftest.$ac_ext >&5
 
1908
 
 
1909
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1910
See \`config.log' for more details." >&5
 
1911
echo "$as_me: error: C compiler cannot create executables
 
1912
See \`config.log' for more details." >&2;}
 
1913
   { (exit 77); exit 77; }; }
 
1914
fi
 
1915
 
 
1916
ac_exeext=$ac_cv_exeext
 
1917
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1918
echo "${ECHO_T}$ac_file" >&6
 
1919
 
 
1920
# Check the compiler produces executables we can run.  If not, either
 
1921
# the compiler is broken, or we cross compile.
 
1922
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
1923
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1924
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1925
# If not cross compiling, check that we can run a simple program.
 
1926
if test "$cross_compiling" != yes; then
 
1927
  if { ac_try='./$ac_file'
 
1928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1929
  (eval $ac_try) 2>&5
 
1930
  ac_status=$?
 
1931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1932
  (exit $ac_status); }; }; then
 
1933
    cross_compiling=no
 
1934
  else
 
1935
    if test "$cross_compiling" = maybe; then
 
1936
        cross_compiling=yes
 
1937
    else
 
1938
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
1939
If you meant to cross compile, use \`--host'.
 
1940
See \`config.log' for more details." >&5
 
1941
echo "$as_me: error: cannot run C compiled programs.
 
1942
If you meant to cross compile, use \`--host'.
 
1943
See \`config.log' for more details." >&2;}
 
1944
   { (exit 1); exit 1; }; }
 
1945
    fi
 
1946
  fi
 
1947
fi
 
1948
echo "$as_me:$LINENO: result: yes" >&5
 
1949
echo "${ECHO_T}yes" >&6
 
1950
 
 
1951
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1952
ac_clean_files=$ac_clean_files_save
 
1953
# Check the compiler produces executables we can run.  If not, either
 
1954
# the compiler is broken, or we cross compile.
 
1955
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1956
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1957
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1958
echo "${ECHO_T}$cross_compiling" >&6
 
1959
 
 
1960
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1961
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1962
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1963
  (eval $ac_link) 2>&5
 
1964
  ac_status=$?
 
1965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1966
  (exit $ac_status); }; then
 
1967
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1968
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1969
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1970
# `rm'.
 
1971
for ac_file in conftest.exe conftest conftest.*; do
 
1972
  test -f "$ac_file" || continue
 
1973
  case $ac_file in
 
1974
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
1975
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1976
          export ac_cv_exeext
 
1977
          break;;
 
1978
    * ) break;;
 
1979
  esac
 
1980
done
 
1981
else
 
1982
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
1983
See \`config.log' for more details." >&5
 
1984
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
1985
See \`config.log' for more details." >&2;}
 
1986
   { (exit 1); exit 1; }; }
 
1987
fi
 
1988
 
 
1989
rm -f conftest$ac_cv_exeext
 
1990
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
1991
echo "${ECHO_T}$ac_cv_exeext" >&6
 
1992
 
 
1993
rm -f conftest.$ac_ext
 
1994
EXEEXT=$ac_cv_exeext
 
1995
ac_exeext=$EXEEXT
 
1996
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
1997
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
1998
if test "${ac_cv_objext+set}" = set; then
 
1999
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2000
else
 
2001
  cat >conftest.$ac_ext <<_ACEOF
 
2002
/* confdefs.h.  */
 
2003
_ACEOF
 
2004
cat confdefs.h >>conftest.$ac_ext
 
2005
cat >>conftest.$ac_ext <<_ACEOF
 
2006
/* end confdefs.h.  */
 
2007
 
 
2008
int
 
2009
main ()
 
2010
{
 
2011
 
 
2012
  ;
 
2013
  return 0;
 
2014
}
 
2015
_ACEOF
 
2016
rm -f conftest.o conftest.obj
 
2017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2018
  (eval $ac_compile) 2>&5
 
2019
  ac_status=$?
 
2020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2021
  (exit $ac_status); }; then
 
2022
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2023
  case $ac_file in
 
2024
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2025
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2026
       break;;
 
2027
  esac
 
2028
done
 
2029
else
 
2030
  echo "$as_me: failed program was:" >&5
 
2031
sed 's/^/| /' conftest.$ac_ext >&5
 
2032
 
 
2033
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2034
See \`config.log' for more details." >&5
 
2035
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2036
See \`config.log' for more details." >&2;}
 
2037
   { (exit 1); exit 1; }; }
 
2038
fi
 
2039
 
 
2040
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2041
fi
 
2042
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2043
echo "${ECHO_T}$ac_cv_objext" >&6
 
2044
OBJEXT=$ac_cv_objext
 
2045
ac_objext=$OBJEXT
 
2046
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2047
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2048
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2050
else
 
2051
  cat >conftest.$ac_ext <<_ACEOF
 
2052
/* confdefs.h.  */
 
2053
_ACEOF
 
2054
cat confdefs.h >>conftest.$ac_ext
 
2055
cat >>conftest.$ac_ext <<_ACEOF
 
2056
/* end confdefs.h.  */
 
2057
 
 
2058
int
 
2059
main ()
 
2060
{
 
2061
#ifndef __GNUC__
 
2062
       choke me
 
2063
#endif
 
2064
 
 
2065
  ;
 
2066
  return 0;
 
2067
}
 
2068
_ACEOF
 
2069
rm -f conftest.$ac_objext
 
2070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2071
  (eval $ac_compile) 2>conftest.er1
 
2072
  ac_status=$?
 
2073
  grep -v '^ *+' conftest.er1 >conftest.err
 
2074
  rm -f conftest.er1
 
2075
  cat conftest.err >&5
 
2076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2077
  (exit $ac_status); } &&
 
2078
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2080
  (eval $ac_try) 2>&5
 
2081
  ac_status=$?
 
2082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2083
  (exit $ac_status); }; } &&
 
2084
         { ac_try='test -s conftest.$ac_objext'
 
2085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2086
  (eval $ac_try) 2>&5
 
2087
  ac_status=$?
 
2088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2089
  (exit $ac_status); }; }; then
 
2090
  ac_compiler_gnu=yes
 
2091
else
 
2092
  echo "$as_me: failed program was:" >&5
 
2093
sed 's/^/| /' conftest.$ac_ext >&5
 
2094
 
 
2095
ac_compiler_gnu=no
 
2096
fi
 
2097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2098
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2099
 
 
2100
fi
 
2101
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2102
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2103
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2104
ac_test_CFLAGS=${CFLAGS+set}
 
2105
ac_save_CFLAGS=$CFLAGS
 
2106
CFLAGS="-g"
 
2107
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2108
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2109
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2111
else
 
2112
  cat >conftest.$ac_ext <<_ACEOF
 
2113
/* confdefs.h.  */
 
2114
_ACEOF
 
2115
cat confdefs.h >>conftest.$ac_ext
 
2116
cat >>conftest.$ac_ext <<_ACEOF
 
2117
/* end confdefs.h.  */
 
2118
 
 
2119
int
 
2120
main ()
 
2121
{
 
2122
 
 
2123
  ;
 
2124
  return 0;
 
2125
}
 
2126
_ACEOF
 
2127
rm -f conftest.$ac_objext
 
2128
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2129
  (eval $ac_compile) 2>conftest.er1
 
2130
  ac_status=$?
 
2131
  grep -v '^ *+' conftest.er1 >conftest.err
 
2132
  rm -f conftest.er1
 
2133
  cat conftest.err >&5
 
2134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2135
  (exit $ac_status); } &&
 
2136
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2137
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2138
  (eval $ac_try) 2>&5
 
2139
  ac_status=$?
 
2140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2141
  (exit $ac_status); }; } &&
 
2142
         { ac_try='test -s conftest.$ac_objext'
 
2143
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2144
  (eval $ac_try) 2>&5
 
2145
  ac_status=$?
 
2146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2147
  (exit $ac_status); }; }; then
 
2148
  ac_cv_prog_cc_g=yes
 
2149
else
 
2150
  echo "$as_me: failed program was:" >&5
 
2151
sed 's/^/| /' conftest.$ac_ext >&5
 
2152
 
 
2153
ac_cv_prog_cc_g=no
 
2154
fi
 
2155
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2156
fi
 
2157
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2158
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2159
if test "$ac_test_CFLAGS" = set; then
 
2160
  CFLAGS=$ac_save_CFLAGS
 
2161
elif test $ac_cv_prog_cc_g = yes; then
 
2162
  if test "$GCC" = yes; then
 
2163
    CFLAGS="-g -O2"
 
2164
  else
 
2165
    CFLAGS="-g"
 
2166
  fi
 
2167
else
 
2168
  if test "$GCC" = yes; then
 
2169
    CFLAGS="-O2"
 
2170
  else
 
2171
    CFLAGS=
 
2172
  fi
 
2173
fi
 
2174
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2175
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2176
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2178
else
 
2179
  ac_cv_prog_cc_stdc=no
 
2180
ac_save_CC=$CC
 
2181
cat >conftest.$ac_ext <<_ACEOF
 
2182
/* confdefs.h.  */
 
2183
_ACEOF
 
2184
cat confdefs.h >>conftest.$ac_ext
 
2185
cat >>conftest.$ac_ext <<_ACEOF
 
2186
/* end confdefs.h.  */
 
2187
#include <stdarg.h>
 
2188
#include <stdio.h>
 
2189
#include <sys/types.h>
 
2190
#include <sys/stat.h>
 
2191
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2192
struct buf { int x; };
 
2193
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2194
static char *e (p, i)
 
2195
     char **p;
 
2196
     int i;
 
2197
{
 
2198
  return p[i];
 
2199
}
 
2200
static char *f (char * (*g) (char **, int), char **p, ...)
 
2201
{
 
2202
  char *s;
 
2203
  va_list v;
 
2204
  va_start (v,p);
 
2205
  s = g (p, va_arg (v,int));
 
2206
  va_end (v);
 
2207
  return s;
 
2208
}
 
2209
 
 
2210
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2211
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2212
   These don't provoke an error unfortunately, instead are silently treated
 
2213
   as 'x'.  The following induces an error, until -std1 is added to get
 
2214
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2215
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2216
   that's true only with -std1.  */
 
2217
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2218
 
 
2219
int test (int i, double x);
 
2220
struct s1 {int (*f) (int a);};
 
2221
struct s2 {int (*f) (double a);};
 
2222
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2223
int argc;
 
2224
char **argv;
 
2225
int
 
2226
main ()
 
2227
{
 
2228
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2229
  ;
 
2230
  return 0;
 
2231
}
 
2232
_ACEOF
 
2233
# Don't try gcc -ansi; that turns off useful extensions and
 
2234
# breaks some systems' header files.
 
2235
# AIX                   -qlanglvl=ansi
 
2236
# Ultrix and OSF/1      -std1
 
2237
# HP-UX 10.20 and later -Ae
 
2238
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2239
# SVR4                  -Xc -D__EXTENSIONS__
 
2240
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2241
do
 
2242
  CC="$ac_save_CC $ac_arg"
 
2243
  rm -f conftest.$ac_objext
 
2244
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2245
  (eval $ac_compile) 2>conftest.er1
 
2246
  ac_status=$?
 
2247
  grep -v '^ *+' conftest.er1 >conftest.err
 
2248
  rm -f conftest.er1
 
2249
  cat conftest.err >&5
 
2250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2251
  (exit $ac_status); } &&
 
2252
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2254
  (eval $ac_try) 2>&5
 
2255
  ac_status=$?
 
2256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2257
  (exit $ac_status); }; } &&
 
2258
         { ac_try='test -s conftest.$ac_objext'
 
2259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2260
  (eval $ac_try) 2>&5
 
2261
  ac_status=$?
 
2262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2263
  (exit $ac_status); }; }; then
 
2264
  ac_cv_prog_cc_stdc=$ac_arg
 
2265
break
 
2266
else
 
2267
  echo "$as_me: failed program was:" >&5
 
2268
sed 's/^/| /' conftest.$ac_ext >&5
 
2269
 
 
2270
fi
 
2271
rm -f conftest.err conftest.$ac_objext
 
2272
done
 
2273
rm -f conftest.$ac_ext conftest.$ac_objext
 
2274
CC=$ac_save_CC
 
2275
 
 
2276
fi
 
2277
 
 
2278
case "x$ac_cv_prog_cc_stdc" in
 
2279
  x|xno)
 
2280
    echo "$as_me:$LINENO: result: none needed" >&5
 
2281
echo "${ECHO_T}none needed" >&6 ;;
 
2282
  *)
 
2283
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2284
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2285
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2286
esac
 
2287
 
 
2288
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2289
# in C++ we need to declare it.  In case someone uses the same compiler
 
2290
# for both compiling C and C++ we need to have the C++ compiler decide
 
2291
# the declaration of exit, since it's the most demanding environment.
 
2292
cat >conftest.$ac_ext <<_ACEOF
 
2293
#ifndef __cplusplus
 
2294
  choke me
 
2295
#endif
 
2296
_ACEOF
 
2297
rm -f conftest.$ac_objext
 
2298
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2299
  (eval $ac_compile) 2>conftest.er1
 
2300
  ac_status=$?
 
2301
  grep -v '^ *+' conftest.er1 >conftest.err
 
2302
  rm -f conftest.er1
 
2303
  cat conftest.err >&5
 
2304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2305
  (exit $ac_status); } &&
 
2306
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2308
  (eval $ac_try) 2>&5
 
2309
  ac_status=$?
 
2310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2311
  (exit $ac_status); }; } &&
 
2312
         { ac_try='test -s conftest.$ac_objext'
 
2313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2314
  (eval $ac_try) 2>&5
 
2315
  ac_status=$?
 
2316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2317
  (exit $ac_status); }; }; then
 
2318
  for ac_declaration in \
 
2319
   '' \
 
2320
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2321
   'extern "C" void std::exit (int); using std::exit;' \
 
2322
   'extern "C" void exit (int) throw ();' \
 
2323
   'extern "C" void exit (int);' \
 
2324
   'void exit (int);'
 
2325
do
 
2326
  cat >conftest.$ac_ext <<_ACEOF
 
2327
/* confdefs.h.  */
 
2328
_ACEOF
 
2329
cat confdefs.h >>conftest.$ac_ext
 
2330
cat >>conftest.$ac_ext <<_ACEOF
 
2331
/* end confdefs.h.  */
 
2332
$ac_declaration
 
2333
#include <stdlib.h>
 
2334
int
 
2335
main ()
 
2336
{
 
2337
exit (42);
 
2338
  ;
 
2339
  return 0;
 
2340
}
 
2341
_ACEOF
 
2342
rm -f conftest.$ac_objext
 
2343
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2344
  (eval $ac_compile) 2>conftest.er1
 
2345
  ac_status=$?
 
2346
  grep -v '^ *+' conftest.er1 >conftest.err
 
2347
  rm -f conftest.er1
 
2348
  cat conftest.err >&5
 
2349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2350
  (exit $ac_status); } &&
 
2351
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2353
  (eval $ac_try) 2>&5
 
2354
  ac_status=$?
 
2355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2356
  (exit $ac_status); }; } &&
 
2357
         { ac_try='test -s conftest.$ac_objext'
 
2358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2359
  (eval $ac_try) 2>&5
 
2360
  ac_status=$?
 
2361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2362
  (exit $ac_status); }; }; then
 
2363
  :
 
2364
else
 
2365
  echo "$as_me: failed program was:" >&5
 
2366
sed 's/^/| /' conftest.$ac_ext >&5
 
2367
 
 
2368
continue
 
2369
fi
 
2370
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2371
  cat >conftest.$ac_ext <<_ACEOF
 
2372
/* confdefs.h.  */
 
2373
_ACEOF
 
2374
cat confdefs.h >>conftest.$ac_ext
 
2375
cat >>conftest.$ac_ext <<_ACEOF
 
2376
/* end confdefs.h.  */
 
2377
$ac_declaration
 
2378
int
 
2379
main ()
 
2380
{
 
2381
exit (42);
 
2382
  ;
 
2383
  return 0;
 
2384
}
 
2385
_ACEOF
 
2386
rm -f conftest.$ac_objext
 
2387
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2388
  (eval $ac_compile) 2>conftest.er1
 
2389
  ac_status=$?
 
2390
  grep -v '^ *+' conftest.er1 >conftest.err
 
2391
  rm -f conftest.er1
 
2392
  cat conftest.err >&5
 
2393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2394
  (exit $ac_status); } &&
 
2395
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2397
  (eval $ac_try) 2>&5
 
2398
  ac_status=$?
 
2399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2400
  (exit $ac_status); }; } &&
 
2401
         { ac_try='test -s conftest.$ac_objext'
 
2402
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2403
  (eval $ac_try) 2>&5
 
2404
  ac_status=$?
 
2405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2406
  (exit $ac_status); }; }; then
 
2407
  break
 
2408
else
 
2409
  echo "$as_me: failed program was:" >&5
 
2410
sed 's/^/| /' conftest.$ac_ext >&5
 
2411
 
 
2412
fi
 
2413
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2414
done
 
2415
rm -f conftest*
 
2416
if test -n "$ac_declaration"; then
 
2417
  echo '#ifdef __cplusplus' >>confdefs.h
 
2418
  echo $ac_declaration      >>confdefs.h
 
2419
  echo '#endif'             >>confdefs.h
 
2420
fi
 
2421
 
 
2422
else
 
2423
  echo "$as_me: failed program was:" >&5
 
2424
sed 's/^/| /' conftest.$ac_ext >&5
 
2425
 
 
2426
fi
 
2427
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2428
ac_ext=c
 
2429
ac_cpp='$CPP $CPPFLAGS'
 
2430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2433
 
 
2434
 
 
2435
am__api_version="1.8"
 
2436
ac_aux_dir=
 
2437
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
2438
  if test -f $ac_dir/install-sh; then
 
2439
    ac_aux_dir=$ac_dir
 
2440
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2441
    break
 
2442
  elif test -f $ac_dir/install.sh; then
 
2443
    ac_aux_dir=$ac_dir
 
2444
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2445
    break
 
2446
  elif test -f $ac_dir/shtool; then
 
2447
    ac_aux_dir=$ac_dir
 
2448
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2449
    break
 
2450
  fi
 
2451
done
 
2452
if test -z "$ac_aux_dir"; then
 
2453
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
2454
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
2455
   { (exit 1); exit 1; }; }
 
2456
fi
 
2457
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
2458
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
2459
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
2460
 
 
2461
# Find a good install program.  We prefer a C program (faster),
 
2462
# so one script is as good as another.  But avoid the broken or
 
2463
# incompatible versions:
 
2464
# SysV /etc/install, /usr/sbin/install
 
2465
# SunOS /usr/etc/install
 
2466
# IRIX /sbin/install
 
2467
# AIX /bin/install
 
2468
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2469
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2470
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2471
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2472
# OS/2's system install, which has a completely different semantic
 
2473
# ./install, which can be erroneously created by make from ./install.sh.
 
2474
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2475
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2476
if test -z "$INSTALL"; then
 
2477
if test "${ac_cv_path_install+set}" = set; then
 
2478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2479
else
 
2480
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2481
for as_dir in $PATH
 
2482
do
 
2483
  IFS=$as_save_IFS
 
2484
  test -z "$as_dir" && as_dir=.
 
2485
  # Account for people who put trailing slashes in PATH elements.
 
2486
case $as_dir/ in
 
2487
  ./ | .// | /cC/* | \
 
2488
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2489
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2490
  /usr/ucb/* ) ;;
 
2491
  *)
 
2492
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2493
    # Don't use installbsd from OSF since it installs stuff as root
 
2494
    # by default.
 
2495
    for ac_prog in ginstall scoinst install; do
 
2496
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2497
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2498
          if test $ac_prog = install &&
 
2499
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2500
            # AIX install.  It has an incompatible calling convention.
 
2501
            :
 
2502
          elif test $ac_prog = install &&
 
2503
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2504
            # program-specific install script used by HP pwplus--don't use.
 
2505
            :
 
2506
          else
 
2507
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2508
            break 3
 
2509
          fi
 
2510
        fi
 
2511
      done
 
2512
    done
 
2513
    ;;
 
2514
esac
 
2515
done
 
2516
 
 
2517
 
 
2518
fi
 
2519
  if test "${ac_cv_path_install+set}" = set; then
 
2520
    INSTALL=$ac_cv_path_install
 
2521
  else
 
2522
    # As a last resort, use the slow shell script.  We don't cache a
 
2523
    # path for INSTALL within a source directory, because that will
 
2524
    # break other packages using the cache if that directory is
 
2525
    # removed, or if the path is relative.
 
2526
    INSTALL=$ac_install_sh
 
2527
  fi
 
2528
fi
 
2529
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2530
echo "${ECHO_T}$INSTALL" >&6
 
2531
 
 
2532
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2533
# It thinks the first close brace ends the variable substitution.
 
2534
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2535
 
 
2536
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2537
 
 
2538
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2539
 
 
2540
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2541
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2542
# Just in case
 
2543
sleep 1
 
2544
echo timestamp > conftest.file
 
2545
# Do `set' in a subshell so we don't clobber the current shell's
 
2546
# arguments.  Must try -L first in case configure is actually a
 
2547
# symlink; some systems play weird games with the mod time of symlinks
 
2548
# (eg FreeBSD returns the mod time of the symlink's containing
 
2549
# directory).
 
2550
if (
 
2551
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2552
   if test "$*" = "X"; then
 
2553
      # -L didn't work.
 
2554
      set X `ls -t $srcdir/configure conftest.file`
 
2555
   fi
 
2556
   rm -f conftest.file
 
2557
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2558
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2559
 
 
2560
      # If neither matched, then we have a broken ls.  This can happen
 
2561
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2562
      # broken ls alias from the environment.  This has actually
 
2563
      # happened.  Such a system could not be considered "sane".
 
2564
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2565
alias in your environment" >&5
 
2566
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2567
alias in your environment" >&2;}
 
2568
   { (exit 1); exit 1; }; }
 
2569
   fi
 
2570
 
 
2571
   test "$2" = conftest.file
 
2572
   )
 
2573
then
 
2574
   # Ok.
 
2575
   :
 
2576
else
 
2577
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2578
Check your system clock" >&5
 
2579
echo "$as_me: error: newly created file is older than distributed files!
 
2580
Check your system clock" >&2;}
 
2581
   { (exit 1); exit 1; }; }
 
2582
fi
 
2583
echo "$as_me:$LINENO: result: yes" >&5
 
2584
echo "${ECHO_T}yes" >&6
 
2585
test "$program_prefix" != NONE &&
 
2586
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2587
# Use a double $ so make ignores it.
 
2588
test "$program_suffix" != NONE &&
 
2589
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
2590
# Double any \ or $.  echo might interpret backslashes.
 
2591
# By default was `s,x,x', remove it if useless.
 
2592
cat <<\_ACEOF >conftest.sed
 
2593
s/[\\$]/&&/g;s/;s,x,x,$//
 
2594
_ACEOF
 
2595
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2596
rm conftest.sed
 
2597
 
 
2598
# expand $ac_aux_dir to an absolute path
 
2599
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2600
 
 
2601
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2602
# Use eval to expand $SHELL
 
2603
if eval "$MISSING --run true"; then
 
2604
  am_missing_run="$MISSING --run "
 
2605
else
 
2606
  am_missing_run=
 
2607
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2608
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2609
fi
 
2610
 
 
2611
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2612
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
2613
  # argument.  Indeed, we sometimes output rules like
 
2614
  #   $(mkdir_p) $(somedir)
 
2615
  # where $(somedir) is conditionally defined.
 
2616
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
2617
  # expensive solution, as it forces Make to start a sub-shell.)
 
2618
  mkdir_p='mkdir -p -- .'
 
2619
else
 
2620
  # On NextStep and OpenStep, the `mkdir' command does not
 
2621
  # recognize any option.  It will interpret all options as
 
2622
  # directories to create, and then abort because `.' already
 
2623
  # exists.
 
2624
  for d in ./-p ./--version;
 
2625
  do
 
2626
    test -d $d && rmdir $d
 
2627
  done
 
2628
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2629
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2630
    mkdir_p='$(mkinstalldirs)'
 
2631
  else
 
2632
    mkdir_p='$(install_sh) -d'
 
2633
  fi
 
2634
fi
 
2635
 
 
2636
for ac_prog in gawk mawk nawk awk
 
2637
do
 
2638
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2639
set dummy $ac_prog; ac_word=$2
 
2640
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2641
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2642
if test "${ac_cv_prog_AWK+set}" = set; then
 
2643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2644
else
 
2645
  if test -n "$AWK"; then
 
2646
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2647
else
 
2648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2649
for as_dir in $PATH
 
2650
do
 
2651
  IFS=$as_save_IFS
 
2652
  test -z "$as_dir" && as_dir=.
 
2653
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2654
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2655
    ac_cv_prog_AWK="$ac_prog"
 
2656
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2657
    break 2
 
2658
  fi
 
2659
done
 
2660
done
 
2661
 
 
2662
fi
 
2663
fi
 
2664
AWK=$ac_cv_prog_AWK
 
2665
if test -n "$AWK"; then
 
2666
  echo "$as_me:$LINENO: result: $AWK" >&5
 
2667
echo "${ECHO_T}$AWK" >&6
 
2668
else
 
2669
  echo "$as_me:$LINENO: result: no" >&5
 
2670
echo "${ECHO_T}no" >&6
 
2671
fi
 
2672
 
 
2673
  test -n "$AWK" && break
 
2674
done
 
2675
 
 
2676
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2677
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
2678
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
2679
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
2680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2681
else
 
2682
  cat >conftest.make <<\_ACEOF
 
2683
all:
 
2684
        @echo 'ac_maketemp="$(MAKE)"'
 
2685
_ACEOF
 
2686
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2687
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
2688
if test -n "$ac_maketemp"; then
 
2689
  eval ac_cv_prog_make_${ac_make}_set=yes
 
2690
else
 
2691
  eval ac_cv_prog_make_${ac_make}_set=no
 
2692
fi
 
2693
rm -f conftest.make
 
2694
fi
 
2695
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
2696
  echo "$as_me:$LINENO: result: yes" >&5
 
2697
echo "${ECHO_T}yes" >&6
 
2698
  SET_MAKE=
 
2699
else
 
2700
  echo "$as_me:$LINENO: result: no" >&5
 
2701
echo "${ECHO_T}no" >&6
 
2702
  SET_MAKE="MAKE=${MAKE-make}"
 
2703
fi
 
2704
 
 
2705
rm -rf .tst 2>/dev/null
 
2706
mkdir .tst 2>/dev/null
 
2707
if test -d .tst; then
 
2708
  am__leading_dot=.
 
2709
else
 
2710
  am__leading_dot=_
 
2711
fi
 
2712
rmdir .tst 2>/dev/null
 
2713
 
 
2714
DEPDIR="${am__leading_dot}deps"
 
2715
 
 
2716
          ac_config_commands="$ac_config_commands depfiles"
 
2717
 
 
2718
 
 
2719
am_make=${MAKE-make}
 
2720
cat > confinc << 'END'
 
2721
am__doit:
 
2722
        @echo done
 
2723
.PHONY: am__doit
 
2724
END
 
2725
# If we don't find an include directive, just comment out the code.
 
2726
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2727
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2728
am__include="#"
 
2729
am__quote=
 
2730
_am_result=none
 
2731
# First try GNU make style include.
 
2732
echo "include confinc" > confmf
 
2733
# We grep out `Entering directory' and `Leaving directory'
 
2734
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2735
# In particular we don't look at `^make:' because GNU make might
 
2736
# be invoked under some other name (usually "gmake"), in which
 
2737
# case it prints its new name instead of `make'.
 
2738
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2739
   am__include=include
 
2740
   am__quote=
 
2741
   _am_result=GNU
 
2742
fi
 
2743
# Now try BSD make style include.
 
2744
if test "$am__include" = "#"; then
 
2745
   echo '.include "confinc"' > confmf
 
2746
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2747
      am__include=.include
 
2748
      am__quote="\""
 
2749
      _am_result=BSD
 
2750
   fi
 
2751
fi
 
2752
 
 
2753
 
 
2754
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2755
echo "${ECHO_T}$_am_result" >&6
 
2756
rm -f confinc confmf
 
2757
 
 
2758
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2759
if test "${enable_dependency_tracking+set}" = set; then
 
2760
  enableval="$enable_dependency_tracking"
 
2761
 
 
2762
fi;
 
2763
if test "x$enable_dependency_tracking" != xno; then
 
2764
  am_depcomp="$ac_aux_dir/depcomp"
 
2765
  AMDEPBACKSLASH='\'
 
2766
fi
 
2767
 
 
2768
 
 
2769
if test "x$enable_dependency_tracking" != xno; then
 
2770
  AMDEP_TRUE=
 
2771
  AMDEP_FALSE='#'
 
2772
else
 
2773
  AMDEP_TRUE='#'
 
2774
  AMDEP_FALSE=
 
2775
fi
 
2776
 
 
2777
 
 
2778
 
 
2779
# test to see if srcdir already configured
 
2780
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2781
   test -f $srcdir/config.status; then
 
2782
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2783
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2784
   { (exit 1); exit 1; }; }
 
2785
fi
 
2786
 
 
2787
# test whether we have cygpath
 
2788
if test -z "$CYGPATH_W"; then
 
2789
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2790
    CYGPATH_W='cygpath -w'
 
2791
  else
 
2792
    CYGPATH_W=echo
 
2793
  fi
 
2794
fi
 
2795
 
 
2796
 
 
2797
# Define the identity of the package.
 
2798
 PACKAGE="speech-dispatcher"
 
2799
 VERSION="`cat version.sh|grep '^VERSION'|awk -F= '{print $2}'`"
 
2800
 
 
2801
 
 
2802
cat >>confdefs.h <<_ACEOF
 
2803
#define PACKAGE "$PACKAGE"
 
2804
_ACEOF
 
2805
 
 
2806
 
 
2807
cat >>confdefs.h <<_ACEOF
 
2808
#define VERSION "$VERSION"
 
2809
_ACEOF
 
2810
 
 
2811
# Some tools Automake needs.
 
2812
 
 
2813
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2814
 
 
2815
 
 
2816
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2817
 
 
2818
 
 
2819
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2820
 
 
2821
 
 
2822
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2823
 
 
2824
 
 
2825
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2826
 
 
2827
 
 
2828
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2829
 
 
2830
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2831
 
 
2832
# Installed binaries are usually stripped using `strip' when the user
 
2833
# run `make install-strip'.  However `strip' might not be the right
 
2834
# tool to use in cross-compilation environments, therefore Automake
 
2835
# will honor the `STRIP' environment variable to overrule this program.
 
2836
if test "$cross_compiling" != no; then
 
2837
  if test -n "$ac_tool_prefix"; then
 
2838
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2839
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2840
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2841
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2842
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2843
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2844
else
 
2845
  if test -n "$STRIP"; then
 
2846
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2847
else
 
2848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2849
for as_dir in $PATH
 
2850
do
 
2851
  IFS=$as_save_IFS
 
2852
  test -z "$as_dir" && as_dir=.
 
2853
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2854
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2855
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2856
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2857
    break 2
 
2858
  fi
 
2859
done
 
2860
done
 
2861
 
 
2862
fi
 
2863
fi
 
2864
STRIP=$ac_cv_prog_STRIP
 
2865
if test -n "$STRIP"; then
 
2866
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
2867
echo "${ECHO_T}$STRIP" >&6
 
2868
else
 
2869
  echo "$as_me:$LINENO: result: no" >&5
 
2870
echo "${ECHO_T}no" >&6
 
2871
fi
 
2872
 
 
2873
fi
 
2874
if test -z "$ac_cv_prog_STRIP"; then
 
2875
  ac_ct_STRIP=$STRIP
 
2876
  # Extract the first word of "strip", so it can be a program name with args.
 
2877
set dummy strip; ac_word=$2
 
2878
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2879
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2880
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2882
else
 
2883
  if test -n "$ac_ct_STRIP"; then
 
2884
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2885
else
 
2886
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2887
for as_dir in $PATH
 
2888
do
 
2889
  IFS=$as_save_IFS
 
2890
  test -z "$as_dir" && as_dir=.
 
2891
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2892
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2893
    ac_cv_prog_ac_ct_STRIP="strip"
 
2894
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2895
    break 2
 
2896
  fi
 
2897
done
 
2898
done
 
2899
 
 
2900
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
2901
fi
 
2902
fi
 
2903
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2904
if test -n "$ac_ct_STRIP"; then
 
2905
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2906
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2907
else
 
2908
  echo "$as_me:$LINENO: result: no" >&5
 
2909
echo "${ECHO_T}no" >&6
 
2910
fi
 
2911
 
 
2912
  STRIP=$ac_ct_STRIP
 
2913
else
 
2914
  STRIP="$ac_cv_prog_STRIP"
 
2915
fi
 
2916
 
 
2917
fi
 
2918
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2919
 
 
2920
# We need awk for the "check" target.  The system "awk" is bad on
 
2921
# some platforms.
 
2922
 
 
2923
 
 
2924
depcc="$CC"   am_compiler_list=
 
2925
 
 
2926
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2927
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2928
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2930
else
 
2931
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2932
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2933
  # making bogus files that we don't know about and never remove.  For
 
2934
  # instance it was reported that on HP-UX the gcc test will end up
 
2935
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2936
  # in D'.
 
2937
  mkdir conftest.dir
 
2938
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2939
  # using a relative directory.
 
2940
  cp "$am_depcomp" conftest.dir
 
2941
  cd conftest.dir
 
2942
  # We will build objects and dependencies in a subdirectory because
 
2943
  # it helps to detect inapplicable dependency modes.  For instance
 
2944
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2945
  # side effect of compilation, but ICC will put the dependencies in
 
2946
  # the current directory while Tru64 will put them in the object
 
2947
  # directory.
 
2948
  mkdir sub
 
2949
 
 
2950
  am_cv_CC_dependencies_compiler_type=none
 
2951
  if test "$am_compiler_list" = ""; then
 
2952
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2953
  fi
 
2954
  for depmode in $am_compiler_list; do
 
2955
    # Setup a source with many dependencies, because some compilers
 
2956
    # like to wrap large dependency lists on column 80 (with \), and
 
2957
    # we should not choose a depcomp mode which is confused by this.
 
2958
    #
 
2959
    # We need to recreate these files for each test, as the compiler may
 
2960
    # overwrite some of them when testing with obscure command lines.
 
2961
    # This happens at least with the AIX C compiler.
 
2962
    : > sub/conftest.c
 
2963
    for i in 1 2 3 4 5 6; do
 
2964
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2965
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2966
      # Solaris 8's {/usr,}/bin/sh.
 
2967
      touch sub/conftst$i.h
 
2968
    done
 
2969
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2970
 
 
2971
    case $depmode in
 
2972
    nosideeffect)
 
2973
      # after this tag, mechanisms are not by side-effect, so they'll
 
2974
      # only be used when explicitly requested
 
2975
      if test "x$enable_dependency_tracking" = xyes; then
 
2976
        continue
 
2977
      else
 
2978
        break
 
2979
      fi
 
2980
      ;;
 
2981
    none) break ;;
 
2982
    esac
 
2983
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2984
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2985
    # handle `-M -o', and we need to detect this.
 
2986
    if depmode=$depmode \
 
2987
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2988
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2989
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2990
         >/dev/null 2>conftest.err &&
 
2991
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2992
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
2993
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2994
      # icc doesn't choke on unknown options, it will just issue warnings
 
2995
      # or remarks (even with -Werror).  So we grep stderr for any message
 
2996
      # that says an option was ignored or not supported.
 
2997
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
2998
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
2999
      # The diagnosis changed in icc 8.0:
 
3000
      #   icc: Command line remark: option '-MP' not supported
 
3001
      if (grep 'ignoring option' conftest.err ||
 
3002
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3003
        am_cv_CC_dependencies_compiler_type=$depmode
 
3004
        break
 
3005
      fi
 
3006
    fi
 
3007
  done
 
3008
 
 
3009
  cd ..
 
3010
  rm -rf conftest.dir
 
3011
else
 
3012
  am_cv_CC_dependencies_compiler_type=none
 
3013
fi
 
3014
 
 
3015
fi
 
3016
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3017
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3018
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3019
 
 
3020
 
 
3021
 
 
3022
if
 
3023
  test "x$enable_dependency_tracking" != xno \
 
3024
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3025
  am__fastdepCC_TRUE=
 
3026
  am__fastdepCC_FALSE='#'
 
3027
else
 
3028
  am__fastdepCC_TRUE='#'
 
3029
  am__fastdepCC_FALSE=
 
3030
fi
 
3031
 
 
3032
 
 
3033
 
 
3034
 
 
3035
          ac_config_headers="$ac_config_headers config.h"
 
3036
 
 
3037
 
 
3038
 
 
3039
 
 
3040
echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
 
3041
echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
 
3042
if test "${ac_cv_lib_m_sqrt+set}" = set; then
 
3043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3044
else
 
3045
  ac_check_lib_save_LIBS=$LIBS
 
3046
LIBS="-lm  $LIBS"
 
3047
cat >conftest.$ac_ext <<_ACEOF
 
3048
/* confdefs.h.  */
 
3049
_ACEOF
 
3050
cat confdefs.h >>conftest.$ac_ext
 
3051
cat >>conftest.$ac_ext <<_ACEOF
 
3052
/* end confdefs.h.  */
 
3053
 
 
3054
/* Override any gcc2 internal prototype to avoid an error.  */
 
3055
#ifdef __cplusplus
 
3056
extern "C"
 
3057
#endif
 
3058
/* We use char because int might match the return type of a gcc2
 
3059
   builtin and then its argument prototype would still apply.  */
 
3060
char sqrt ();
 
3061
int
 
3062
main ()
 
3063
{
 
3064
sqrt ();
 
3065
  ;
 
3066
  return 0;
 
3067
}
 
3068
_ACEOF
 
3069
rm -f conftest.$ac_objext conftest$ac_exeext
 
3070
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3071
  (eval $ac_link) 2>conftest.er1
 
3072
  ac_status=$?
 
3073
  grep -v '^ *+' conftest.er1 >conftest.err
 
3074
  rm -f conftest.er1
 
3075
  cat conftest.err >&5
 
3076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3077
  (exit $ac_status); } &&
 
3078
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3080
  (eval $ac_try) 2>&5
 
3081
  ac_status=$?
 
3082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3083
  (exit $ac_status); }; } &&
 
3084
         { ac_try='test -s conftest$ac_exeext'
 
3085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3086
  (eval $ac_try) 2>&5
 
3087
  ac_status=$?
 
3088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3089
  (exit $ac_status); }; }; then
 
3090
  ac_cv_lib_m_sqrt=yes
 
3091
else
 
3092
  echo "$as_me: failed program was:" >&5
 
3093
sed 's/^/| /' conftest.$ac_ext >&5
 
3094
 
 
3095
ac_cv_lib_m_sqrt=no
 
3096
fi
 
3097
rm -f conftest.err conftest.$ac_objext \
 
3098
      conftest$ac_exeext conftest.$ac_ext
 
3099
LIBS=$ac_check_lib_save_LIBS
 
3100
fi
 
3101
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
 
3102
echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
 
3103
if test $ac_cv_lib_m_sqrt = yes; then
 
3104
  cat >>confdefs.h <<_ACEOF
 
3105
#define HAVE_LIBM 1
 
3106
_ACEOF
 
3107
 
 
3108
  LIBS="-lm $LIBS"
 
3109
 
 
3110
else
 
3111
  echo "*** Required math library missing! See INSTALL .";exit 1
 
3112
fi
 
3113
 
 
3114
 
 
3115
echo "$as_me:$LINENO: checking for main in -ldl" >&5
 
3116
echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
 
3117
if test "${ac_cv_lib_dl_main+set}" = set; then
 
3118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3119
else
 
3120
  ac_check_lib_save_LIBS=$LIBS
 
3121
LIBS="-ldl  $LIBS"
 
3122
cat >conftest.$ac_ext <<_ACEOF
 
3123
/* confdefs.h.  */
 
3124
_ACEOF
 
3125
cat confdefs.h >>conftest.$ac_ext
 
3126
cat >>conftest.$ac_ext <<_ACEOF
 
3127
/* end confdefs.h.  */
 
3128
 
 
3129
 
 
3130
int
 
3131
main ()
 
3132
{
 
3133
main ();
 
3134
  ;
 
3135
  return 0;
 
3136
}
 
3137
_ACEOF
 
3138
rm -f conftest.$ac_objext conftest$ac_exeext
 
3139
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3140
  (eval $ac_link) 2>conftest.er1
 
3141
  ac_status=$?
 
3142
  grep -v '^ *+' conftest.er1 >conftest.err
 
3143
  rm -f conftest.er1
 
3144
  cat conftest.err >&5
 
3145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3146
  (exit $ac_status); } &&
 
3147
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3148
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3149
  (eval $ac_try) 2>&5
 
3150
  ac_status=$?
 
3151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3152
  (exit $ac_status); }; } &&
 
3153
         { ac_try='test -s conftest$ac_exeext'
 
3154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3155
  (eval $ac_try) 2>&5
 
3156
  ac_status=$?
 
3157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3158
  (exit $ac_status); }; }; then
 
3159
  ac_cv_lib_dl_main=yes
 
3160
else
 
3161
  echo "$as_me: failed program was:" >&5
 
3162
sed 's/^/| /' conftest.$ac_ext >&5
 
3163
 
 
3164
ac_cv_lib_dl_main=no
 
3165
fi
 
3166
rm -f conftest.err conftest.$ac_objext \
 
3167
      conftest$ac_exeext conftest.$ac_ext
 
3168
LIBS=$ac_check_lib_save_LIBS
 
3169
fi
 
3170
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
 
3171
echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
 
3172
if test $ac_cv_lib_dl_main = yes; then
 
3173
  cat >>confdefs.h <<_ACEOF
 
3174
#define HAVE_LIBDL 1
 
3175
_ACEOF
 
3176
 
 
3177
  LIBS="-ldl $LIBS"
 
3178
 
 
3179
else
 
3180
  echo "*** Required dl library missing! See INSTALL .";exit 1
 
3181
fi
 
3182
 
 
3183
 
 
3184
echo "$as_me:$LINENO: checking for main in -ldotconf" >&5
 
3185
echo $ECHO_N "checking for main in -ldotconf... $ECHO_C" >&6
 
3186
if test "${ac_cv_lib_dotconf_main+set}" = set; then
 
3187
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3188
else
 
3189
  ac_check_lib_save_LIBS=$LIBS
 
3190
LIBS="-ldotconf  $LIBS"
 
3191
cat >conftest.$ac_ext <<_ACEOF
 
3192
/* confdefs.h.  */
 
3193
_ACEOF
 
3194
cat confdefs.h >>conftest.$ac_ext
 
3195
cat >>conftest.$ac_ext <<_ACEOF
 
3196
/* end confdefs.h.  */
 
3197
 
 
3198
 
 
3199
int
 
3200
main ()
 
3201
{
 
3202
main ();
 
3203
  ;
 
3204
  return 0;
 
3205
}
 
3206
_ACEOF
 
3207
rm -f conftest.$ac_objext conftest$ac_exeext
 
3208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3209
  (eval $ac_link) 2>conftest.er1
 
3210
  ac_status=$?
 
3211
  grep -v '^ *+' conftest.er1 >conftest.err
 
3212
  rm -f conftest.er1
 
3213
  cat conftest.err >&5
 
3214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3215
  (exit $ac_status); } &&
 
3216
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3218
  (eval $ac_try) 2>&5
 
3219
  ac_status=$?
 
3220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3221
  (exit $ac_status); }; } &&
 
3222
         { ac_try='test -s conftest$ac_exeext'
 
3223
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3224
  (eval $ac_try) 2>&5
 
3225
  ac_status=$?
 
3226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3227
  (exit $ac_status); }; }; then
 
3228
  ac_cv_lib_dotconf_main=yes
 
3229
else
 
3230
  echo "$as_me: failed program was:" >&5
 
3231
sed 's/^/| /' conftest.$ac_ext >&5
 
3232
 
 
3233
ac_cv_lib_dotconf_main=no
 
3234
fi
 
3235
rm -f conftest.err conftest.$ac_objext \
 
3236
      conftest$ac_exeext conftest.$ac_ext
 
3237
LIBS=$ac_check_lib_save_LIBS
 
3238
fi
 
3239
echo "$as_me:$LINENO: result: $ac_cv_lib_dotconf_main" >&5
 
3240
echo "${ECHO_T}$ac_cv_lib_dotconf_main" >&6
 
3241
if test $ac_cv_lib_dotconf_main = yes; then
 
3242
  cat >>confdefs.h <<_ACEOF
 
3243
#define HAVE_LIBDOTCONF 1
 
3244
_ACEOF
 
3245
 
 
3246
  LIBS="-ldotconf $LIBS"
 
3247
 
 
3248
else
 
3249
  echo "*** Required DotConf library missing! See INSTALL .";exit 1
 
3250
fi
 
3251
 
 
3252
 
 
3253
echo "$as_me:$LINENO: checking for g_list_append in -lglib-2.0" >&5
 
3254
echo $ECHO_N "checking for g_list_append in -lglib-2.0... $ECHO_C" >&6
 
3255
if test "${ac_cv_lib_glib_2_0_g_list_append+set}" = set; then
 
3256
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3257
else
 
3258
  ac_check_lib_save_LIBS=$LIBS
 
3259
LIBS="-lglib-2.0  $LIBS"
 
3260
cat >conftest.$ac_ext <<_ACEOF
 
3261
/* confdefs.h.  */
 
3262
_ACEOF
 
3263
cat confdefs.h >>conftest.$ac_ext
 
3264
cat >>conftest.$ac_ext <<_ACEOF
 
3265
/* end confdefs.h.  */
 
3266
 
 
3267
/* Override any gcc2 internal prototype to avoid an error.  */
 
3268
#ifdef __cplusplus
 
3269
extern "C"
 
3270
#endif
 
3271
/* We use char because int might match the return type of a gcc2
 
3272
   builtin and then its argument prototype would still apply.  */
 
3273
char g_list_append ();
 
3274
int
 
3275
main ()
 
3276
{
 
3277
g_list_append ();
 
3278
  ;
 
3279
  return 0;
 
3280
}
 
3281
_ACEOF
 
3282
rm -f conftest.$ac_objext conftest$ac_exeext
 
3283
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3284
  (eval $ac_link) 2>conftest.er1
 
3285
  ac_status=$?
 
3286
  grep -v '^ *+' conftest.er1 >conftest.err
 
3287
  rm -f conftest.er1
 
3288
  cat conftest.err >&5
 
3289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3290
  (exit $ac_status); } &&
 
3291
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3293
  (eval $ac_try) 2>&5
 
3294
  ac_status=$?
 
3295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3296
  (exit $ac_status); }; } &&
 
3297
         { ac_try='test -s conftest$ac_exeext'
 
3298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3299
  (eval $ac_try) 2>&5
 
3300
  ac_status=$?
 
3301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3302
  (exit $ac_status); }; }; then
 
3303
  ac_cv_lib_glib_2_0_g_list_append=yes
 
3304
else
 
3305
  echo "$as_me: failed program was:" >&5
 
3306
sed 's/^/| /' conftest.$ac_ext >&5
 
3307
 
 
3308
ac_cv_lib_glib_2_0_g_list_append=no
 
3309
fi
 
3310
rm -f conftest.err conftest.$ac_objext \
 
3311
      conftest$ac_exeext conftest.$ac_ext
 
3312
LIBS=$ac_check_lib_save_LIBS
 
3313
fi
 
3314
echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_list_append" >&5
 
3315
echo "${ECHO_T}$ac_cv_lib_glib_2_0_g_list_append" >&6
 
3316
if test $ac_cv_lib_glib_2_0_g_list_append = yes; then
 
3317
  cat >>confdefs.h <<_ACEOF
 
3318
#define HAVE_LIBGLIB_2_0 1
 
3319
_ACEOF
 
3320
 
 
3321
  LIBS="-lglib-2.0 $LIBS"
 
3322
 
 
3323
else
 
3324
  echo "*** Required Glib-2.0 library missing! See INSTALL .";exit 1
 
3325
fi
 
3326
 
 
3327
 
 
3328
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
3329
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
 
3330
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
3331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3332
else
 
3333
  ac_check_lib_save_LIBS=$LIBS
 
3334
LIBS="-lpthread  $LIBS"
 
3335
cat >conftest.$ac_ext <<_ACEOF
 
3336
/* confdefs.h.  */
 
3337
_ACEOF
 
3338
cat confdefs.h >>conftest.$ac_ext
 
3339
cat >>conftest.$ac_ext <<_ACEOF
 
3340
/* end confdefs.h.  */
 
3341
 
 
3342
/* Override any gcc2 internal prototype to avoid an error.  */
 
3343
#ifdef __cplusplus
 
3344
extern "C"
 
3345
#endif
 
3346
/* We use char because int might match the return type of a gcc2
 
3347
   builtin and then its argument prototype would still apply.  */
 
3348
char pthread_create ();
 
3349
int
 
3350
main ()
 
3351
{
 
3352
pthread_create ();
 
3353
  ;
 
3354
  return 0;
 
3355
}
 
3356
_ACEOF
 
3357
rm -f conftest.$ac_objext conftest$ac_exeext
 
3358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3359
  (eval $ac_link) 2>conftest.er1
 
3360
  ac_status=$?
 
3361
  grep -v '^ *+' conftest.er1 >conftest.err
 
3362
  rm -f conftest.er1
 
3363
  cat conftest.err >&5
 
3364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3365
  (exit $ac_status); } &&
 
3366
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3368
  (eval $ac_try) 2>&5
 
3369
  ac_status=$?
 
3370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3371
  (exit $ac_status); }; } &&
 
3372
         { ac_try='test -s conftest$ac_exeext'
 
3373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3374
  (eval $ac_try) 2>&5
 
3375
  ac_status=$?
 
3376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3377
  (exit $ac_status); }; }; then
 
3378
  ac_cv_lib_pthread_pthread_create=yes
 
3379
else
 
3380
  echo "$as_me: failed program was:" >&5
 
3381
sed 's/^/| /' conftest.$ac_ext >&5
 
3382
 
 
3383
ac_cv_lib_pthread_pthread_create=no
 
3384
fi
 
3385
rm -f conftest.err conftest.$ac_objext \
 
3386
      conftest$ac_exeext conftest.$ac_ext
 
3387
LIBS=$ac_check_lib_save_LIBS
 
3388
fi
 
3389
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
3390
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
 
3391
if test $ac_cv_lib_pthread_pthread_create = yes; then
 
3392
  cat >>confdefs.h <<_ACEOF
 
3393
#define HAVE_LIBPTHREAD 1
 
3394
_ACEOF
 
3395
 
 
3396
  LIBS="-lpthread $LIBS"
 
3397
 
 
3398
else
 
3399
  echo "*** Required pthread library missing! See INSTALL .";exit 1
 
3400
fi
 
3401
 
 
3402
 
 
3403
echo "$as_me:$LINENO: checking for flite_init in -lflite" >&5
 
3404
echo $ECHO_N "checking for flite_init in -lflite... $ECHO_C" >&6
 
3405
if test "${ac_cv_lib_flite_flite_init+set}" = set; then
 
3406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3407
else
 
3408
  ac_check_lib_save_LIBS=$LIBS
 
3409
LIBS="-lflite  $LIBS"
 
3410
cat >conftest.$ac_ext <<_ACEOF
 
3411
/* confdefs.h.  */
 
3412
_ACEOF
 
3413
cat confdefs.h >>conftest.$ac_ext
 
3414
cat >>conftest.$ac_ext <<_ACEOF
 
3415
/* end confdefs.h.  */
 
3416
 
 
3417
/* Override any gcc2 internal prototype to avoid an error.  */
 
3418
#ifdef __cplusplus
 
3419
extern "C"
 
3420
#endif
 
3421
/* We use char because int might match the return type of a gcc2
 
3422
   builtin and then its argument prototype would still apply.  */
 
3423
char flite_init ();
 
3424
int
 
3425
main ()
 
3426
{
 
3427
flite_init ();
 
3428
  ;
 
3429
  return 0;
 
3430
}
 
3431
_ACEOF
 
3432
rm -f conftest.$ac_objext conftest$ac_exeext
 
3433
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3434
  (eval $ac_link) 2>conftest.er1
 
3435
  ac_status=$?
 
3436
  grep -v '^ *+' conftest.er1 >conftest.err
 
3437
  rm -f conftest.er1
 
3438
  cat conftest.err >&5
 
3439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3440
  (exit $ac_status); } &&
 
3441
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3443
  (eval $ac_try) 2>&5
 
3444
  ac_status=$?
 
3445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3446
  (exit $ac_status); }; } &&
 
3447
         { ac_try='test -s conftest$ac_exeext'
 
3448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3449
  (eval $ac_try) 2>&5
 
3450
  ac_status=$?
 
3451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3452
  (exit $ac_status); }; }; then
 
3453
  ac_cv_lib_flite_flite_init=yes
 
3454
else
 
3455
  echo "$as_me: failed program was:" >&5
 
3456
sed 's/^/| /' conftest.$ac_ext >&5
 
3457
 
 
3458
ac_cv_lib_flite_flite_init=no
 
3459
fi
 
3460
rm -f conftest.err conftest.$ac_objext \
 
3461
      conftest$ac_exeext conftest.$ac_ext
 
3462
LIBS=$ac_check_lib_save_LIBS
 
3463
fi
 
3464
echo "$as_me:$LINENO: result: $ac_cv_lib_flite_flite_init" >&5
 
3465
echo "${ECHO_T}$ac_cv_lib_flite_flite_init" >&6
 
3466
if test $ac_cv_lib_flite_flite_init = yes; then
 
3467
  echo ""
 
3468
else
 
3469
  echo "*** Required Flite libraries missing or instalation incomplete! See INSTALL .";exit 1
 
3470
fi
 
3471
 
 
3472
 
 
3473
echo "$as_me:$LINENO: checking for cmu_lex_init in -lflite_cmulex" >&5
 
3474
echo $ECHO_N "checking for cmu_lex_init in -lflite_cmulex... $ECHO_C" >&6
 
3475
if test "${ac_cv_lib_flite_cmulex_cmu_lex_init+set}" = set; then
 
3476
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3477
else
 
3478
  ac_check_lib_save_LIBS=$LIBS
 
3479
LIBS="-lflite_cmulex -lflite $LIBS"
 
3480
cat >conftest.$ac_ext <<_ACEOF
 
3481
/* confdefs.h.  */
 
3482
_ACEOF
 
3483
cat confdefs.h >>conftest.$ac_ext
 
3484
cat >>conftest.$ac_ext <<_ACEOF
 
3485
/* end confdefs.h.  */
 
3486
 
 
3487
/* Override any gcc2 internal prototype to avoid an error.  */
 
3488
#ifdef __cplusplus
 
3489
extern "C"
 
3490
#endif
 
3491
/* We use char because int might match the return type of a gcc2
 
3492
   builtin and then its argument prototype would still apply.  */
 
3493
char cmu_lex_init ();
 
3494
int
 
3495
main ()
 
3496
{
 
3497
cmu_lex_init ();
 
3498
  ;
 
3499
  return 0;
 
3500
}
 
3501
_ACEOF
 
3502
rm -f conftest.$ac_objext conftest$ac_exeext
 
3503
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3504
  (eval $ac_link) 2>conftest.er1
 
3505
  ac_status=$?
 
3506
  grep -v '^ *+' conftest.er1 >conftest.err
 
3507
  rm -f conftest.er1
 
3508
  cat conftest.err >&5
 
3509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3510
  (exit $ac_status); } &&
 
3511
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3513
  (eval $ac_try) 2>&5
 
3514
  ac_status=$?
 
3515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3516
  (exit $ac_status); }; } &&
 
3517
         { ac_try='test -s conftest$ac_exeext'
 
3518
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3519
  (eval $ac_try) 2>&5
 
3520
  ac_status=$?
 
3521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3522
  (exit $ac_status); }; }; then
 
3523
  ac_cv_lib_flite_cmulex_cmu_lex_init=yes
 
3524
else
 
3525
  echo "$as_me: failed program was:" >&5
 
3526
sed 's/^/| /' conftest.$ac_ext >&5
 
3527
 
 
3528
ac_cv_lib_flite_cmulex_cmu_lex_init=no
 
3529
fi
 
3530
rm -f conftest.err conftest.$ac_objext \
 
3531
      conftest$ac_exeext conftest.$ac_ext
 
3532
LIBS=$ac_check_lib_save_LIBS
 
3533
fi
 
3534
echo "$as_me:$LINENO: result: $ac_cv_lib_flite_cmulex_cmu_lex_init" >&5
 
3535
echo "${ECHO_T}$ac_cv_lib_flite_cmulex_cmu_lex_init" >&6
 
3536
if test $ac_cv_lib_flite_cmulex_cmu_lex_init = yes; then
 
3537
  echo ""
 
3538
else
 
3539
  echo "*** Required Flite libraries missing or instalation incomplete! See INSTALL .";exit 1
 
3540
fi
 
3541
 
 
3542
 
 
3543
echo "$as_me:$LINENO: checking for usenglish_init in -lflite_usenglish" >&5
 
3544
echo $ECHO_N "checking for usenglish_init in -lflite_usenglish... $ECHO_C" >&6
 
3545
if test "${ac_cv_lib_flite_usenglish_usenglish_init+set}" = set; then
 
3546
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3547
else
 
3548
  ac_check_lib_save_LIBS=$LIBS
 
3549
LIBS="-lflite_usenglish -lflite $LIBS"
 
3550
cat >conftest.$ac_ext <<_ACEOF
 
3551
/* confdefs.h.  */
 
3552
_ACEOF
 
3553
cat confdefs.h >>conftest.$ac_ext
 
3554
cat >>conftest.$ac_ext <<_ACEOF
 
3555
/* end confdefs.h.  */
 
3556
 
 
3557
/* Override any gcc2 internal prototype to avoid an error.  */
 
3558
#ifdef __cplusplus
 
3559
extern "C"
 
3560
#endif
 
3561
/* We use char because int might match the return type of a gcc2
 
3562
   builtin and then its argument prototype would still apply.  */
 
3563
char usenglish_init ();
 
3564
int
 
3565
main ()
 
3566
{
 
3567
usenglish_init ();
 
3568
  ;
 
3569
  return 0;
 
3570
}
 
3571
_ACEOF
 
3572
rm -f conftest.$ac_objext conftest$ac_exeext
 
3573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3574
  (eval $ac_link) 2>conftest.er1
 
3575
  ac_status=$?
 
3576
  grep -v '^ *+' conftest.er1 >conftest.err
 
3577
  rm -f conftest.er1
 
3578
  cat conftest.err >&5
 
3579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3580
  (exit $ac_status); } &&
 
3581
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3583
  (eval $ac_try) 2>&5
 
3584
  ac_status=$?
 
3585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3586
  (exit $ac_status); }; } &&
 
3587
         { ac_try='test -s conftest$ac_exeext'
 
3588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3589
  (eval $ac_try) 2>&5
 
3590
  ac_status=$?
 
3591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3592
  (exit $ac_status); }; }; then
 
3593
  ac_cv_lib_flite_usenglish_usenglish_init=yes
 
3594
else
 
3595
  echo "$as_me: failed program was:" >&5
 
3596
sed 's/^/| /' conftest.$ac_ext >&5
 
3597
 
 
3598
ac_cv_lib_flite_usenglish_usenglish_init=no
 
3599
fi
 
3600
rm -f conftest.err conftest.$ac_objext \
 
3601
      conftest$ac_exeext conftest.$ac_ext
 
3602
LIBS=$ac_check_lib_save_LIBS
 
3603
fi
 
3604
echo "$as_me:$LINENO: result: $ac_cv_lib_flite_usenglish_usenglish_init" >&5
 
3605
echo "${ECHO_T}$ac_cv_lib_flite_usenglish_usenglish_init" >&6
 
3606
if test $ac_cv_lib_flite_usenglish_usenglish_init = yes; then
 
3607
  echo ""
 
3608
else
 
3609
  echo "*** Required Flite libraries missing or instalation incomplete! See INSTALL .";exit 1
 
3610
fi
 
3611
 
 
3612
 
 
3613
flite_basic="-lflite -lflite_cmulex -lflite_usenglish";
 
3614
 
 
3615
echo "$as_me:$LINENO: checking for register_cmu_us_kal in -lflite_cmu_us_kal16" >&5
 
3616
echo $ECHO_N "checking for register_cmu_us_kal in -lflite_cmu_us_kal16... $ECHO_C" >&6
 
3617
if test "${ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal+set}" = set; then
 
3618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3619
else
 
3620
  ac_check_lib_save_LIBS=$LIBS
 
3621
LIBS="-lflite_cmu_us_kal16 -lflite -lflite_usenglish -lflite_cmulex $LIBS"
 
3622
cat >conftest.$ac_ext <<_ACEOF
 
3623
/* confdefs.h.  */
 
3624
_ACEOF
 
3625
cat confdefs.h >>conftest.$ac_ext
 
3626
cat >>conftest.$ac_ext <<_ACEOF
 
3627
/* end confdefs.h.  */
 
3628
 
 
3629
/* Override any gcc2 internal prototype to avoid an error.  */
 
3630
#ifdef __cplusplus
 
3631
extern "C"
 
3632
#endif
 
3633
/* We use char because int might match the return type of a gcc2
 
3634
   builtin and then its argument prototype would still apply.  */
 
3635
char register_cmu_us_kal ();
 
3636
int
 
3637
main ()
 
3638
{
 
3639
register_cmu_us_kal ();
 
3640
  ;
 
3641
  return 0;
 
3642
}
 
3643
_ACEOF
 
3644
rm -f conftest.$ac_objext conftest$ac_exeext
 
3645
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3646
  (eval $ac_link) 2>conftest.er1
 
3647
  ac_status=$?
 
3648
  grep -v '^ *+' conftest.er1 >conftest.err
 
3649
  rm -f conftest.er1
 
3650
  cat conftest.err >&5
 
3651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3652
  (exit $ac_status); } &&
 
3653
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3655
  (eval $ac_try) 2>&5
 
3656
  ac_status=$?
 
3657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3658
  (exit $ac_status); }; } &&
 
3659
         { ac_try='test -s conftest$ac_exeext'
 
3660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3661
  (eval $ac_try) 2>&5
 
3662
  ac_status=$?
 
3663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3664
  (exit $ac_status); }; }; then
 
3665
  ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal=yes
 
3666
else
 
3667
  echo "$as_me: failed program was:" >&5
 
3668
sed 's/^/| /' conftest.$ac_ext >&5
 
3669
 
 
3670
ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal=no
 
3671
fi
 
3672
rm -f conftest.err conftest.$ac_objext \
 
3673
      conftest$ac_exeext conftest.$ac_ext
 
3674
LIBS=$ac_check_lib_save_LIBS
 
3675
fi
 
3676
echo "$as_me:$LINENO: result: $ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal" >&5
 
3677
echo "${ECHO_T}$ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal" >&6
 
3678
if test $ac_cv_lib_flite_cmu_us_kal16_register_cmu_us_kal = yes; then
 
3679
  flite_kal="-lflite_cmu_us_kal16"
 
3680
else
 
3681
  echo "$as_me:$LINENO: checking for register_cmu_us_kal in -lflite_cmu_us_kal" >&5
 
3682
echo $ECHO_N "checking for register_cmu_us_kal in -lflite_cmu_us_kal... $ECHO_C" >&6
 
3683
if test "${ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal+set}" = set; then
 
3684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3685
else
 
3686
  ac_check_lib_save_LIBS=$LIBS
 
3687
LIBS="-lflite_cmu_us_kal -lflite -lflite_usenglish -lflite_cmulex $LIBS"
 
3688
cat >conftest.$ac_ext <<_ACEOF
 
3689
/* confdefs.h.  */
 
3690
_ACEOF
 
3691
cat confdefs.h >>conftest.$ac_ext
 
3692
cat >>conftest.$ac_ext <<_ACEOF
 
3693
/* end confdefs.h.  */
 
3694
 
 
3695
/* Override any gcc2 internal prototype to avoid an error.  */
 
3696
#ifdef __cplusplus
 
3697
extern "C"
 
3698
#endif
 
3699
/* We use char because int might match the return type of a gcc2
 
3700
   builtin and then its argument prototype would still apply.  */
 
3701
char register_cmu_us_kal ();
 
3702
int
 
3703
main ()
 
3704
{
 
3705
register_cmu_us_kal ();
 
3706
  ;
 
3707
  return 0;
 
3708
}
 
3709
_ACEOF
 
3710
rm -f conftest.$ac_objext conftest$ac_exeext
 
3711
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3712
  (eval $ac_link) 2>conftest.er1
 
3713
  ac_status=$?
 
3714
  grep -v '^ *+' conftest.er1 >conftest.err
 
3715
  rm -f conftest.er1
 
3716
  cat conftest.err >&5
 
3717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3718
  (exit $ac_status); } &&
 
3719
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3721
  (eval $ac_try) 2>&5
 
3722
  ac_status=$?
 
3723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3724
  (exit $ac_status); }; } &&
 
3725
         { ac_try='test -s conftest$ac_exeext'
 
3726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3727
  (eval $ac_try) 2>&5
 
3728
  ac_status=$?
 
3729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3730
  (exit $ac_status); }; }; then
 
3731
  ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal=yes
 
3732
else
 
3733
  echo "$as_me: failed program was:" >&5
 
3734
sed 's/^/| /' conftest.$ac_ext >&5
 
3735
 
 
3736
ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal=no
 
3737
fi
 
3738
rm -f conftest.err conftest.$ac_objext \
 
3739
      conftest$ac_exeext conftest.$ac_ext
 
3740
LIBS=$ac_check_lib_save_LIBS
 
3741
fi
 
3742
echo "$as_me:$LINENO: result: $ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal" >&5
 
3743
echo "${ECHO_T}$ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal" >&6
 
3744
if test $ac_cv_lib_flite_cmu_us_kal_register_cmu_us_kal = yes; then
 
3745
  flite_libs="-lflite_cmu_us_kal"
 
3746
else
 
3747
  echo "*** Required Flite kal voice library missing or instalation incomplete! See INSTALL .";exit 1
 
3748
fi
 
3749
 
 
3750
fi
 
3751
 
 
3752
 
 
3753
 
 
3754
 
 
3755
 
 
3756
glib_include=`pkg-config --cflags glib-2.0`
 
3757
 
 
3758
glib_libs=`pkg-config --libs glib-2.0`
 
3759
 
 
3760
 
 
3761
spdconfdir="$sysconfdir/speech-dispatcher/"
 
3762
 
 
3763
snddatadir="$datadir/sounds/speech-dispatcher/"
 
3764
 
 
3765
modulebindir="$libdir/speech-dispatcher-modules/"
 
3766
 
 
3767
moduleconfdir="$sysconfdir/speech-dispatcher/modules/"
 
3768
 
 
3769
 
 
3770
 
 
3771
 
 
3772
LIB_SDAUDIO_CURRENT=1
 
3773
LIB_SDAUDIO_REVISION=0
 
3774
LIB_SDAUDIO_AGE=0
 
3775
 
 
3776
 
 
3777
 
 
3778
 
 
3779
LIB_SPD_CURRENT=2
 
3780
LIB_SPD_REVISION=1
 
3781
LIB_SPD_AGE=1
 
3782
 
 
3783
 
 
3784
 
 
3785
 
 
3786
ac_ext=c
 
3787
ac_cpp='$CPP $CPPFLAGS'
 
3788
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3789
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3790
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3791
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3792
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3793
# On Suns, sometimes $CPP names a directory.
 
3794
if test -n "$CPP" && test -d "$CPP"; then
 
3795
  CPP=
 
3796
fi
 
3797
if test -z "$CPP"; then
 
3798
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3799
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3800
else
 
3801
      # Double quotes because CPP needs to be expanded
 
3802
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3803
    do
 
3804
      ac_preproc_ok=false
 
3805
for ac_c_preproc_warn_flag in '' yes
 
3806
do
 
3807
  # Use a header file that comes with gcc, so configuring glibc
 
3808
  # with a fresh cross-compiler works.
 
3809
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3810
  # <limits.h> exists even on freestanding compilers.
 
3811
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3812
  # not just through cpp. "Syntax error" is here to catch this case.
 
3813
  cat >conftest.$ac_ext <<_ACEOF
 
3814
/* confdefs.h.  */
 
3815
_ACEOF
 
3816
cat confdefs.h >>conftest.$ac_ext
 
3817
cat >>conftest.$ac_ext <<_ACEOF
 
3818
/* end confdefs.h.  */
 
3819
#ifdef __STDC__
 
3820
# include <limits.h>
 
3821
#else
 
3822
# include <assert.h>
 
3823
#endif
 
3824
                     Syntax error
 
3825
_ACEOF
 
3826
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3827
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3828
  ac_status=$?
 
3829
  grep -v '^ *+' conftest.er1 >conftest.err
 
3830
  rm -f conftest.er1
 
3831
  cat conftest.err >&5
 
3832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3833
  (exit $ac_status); } >/dev/null; then
 
3834
  if test -s conftest.err; then
 
3835
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3836
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3837
  else
 
3838
    ac_cpp_err=
 
3839
  fi
 
3840
else
 
3841
  ac_cpp_err=yes
 
3842
fi
 
3843
if test -z "$ac_cpp_err"; then
 
3844
  :
 
3845
else
 
3846
  echo "$as_me: failed program was:" >&5
 
3847
sed 's/^/| /' conftest.$ac_ext >&5
 
3848
 
 
3849
  # Broken: fails on valid input.
 
3850
continue
 
3851
fi
 
3852
rm -f conftest.err conftest.$ac_ext
 
3853
 
 
3854
  # OK, works on sane cases.  Now check whether non-existent headers
 
3855
  # can be detected and how.
 
3856
  cat >conftest.$ac_ext <<_ACEOF
 
3857
/* confdefs.h.  */
 
3858
_ACEOF
 
3859
cat confdefs.h >>conftest.$ac_ext
 
3860
cat >>conftest.$ac_ext <<_ACEOF
 
3861
/* end confdefs.h.  */
 
3862
#include <ac_nonexistent.h>
 
3863
_ACEOF
 
3864
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3865
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3866
  ac_status=$?
 
3867
  grep -v '^ *+' conftest.er1 >conftest.err
 
3868
  rm -f conftest.er1
 
3869
  cat conftest.err >&5
 
3870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3871
  (exit $ac_status); } >/dev/null; then
 
3872
  if test -s conftest.err; then
 
3873
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3874
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3875
  else
 
3876
    ac_cpp_err=
 
3877
  fi
 
3878
else
 
3879
  ac_cpp_err=yes
 
3880
fi
 
3881
if test -z "$ac_cpp_err"; then
 
3882
  # Broken: success on invalid input.
 
3883
continue
 
3884
else
 
3885
  echo "$as_me: failed program was:" >&5
 
3886
sed 's/^/| /' conftest.$ac_ext >&5
 
3887
 
 
3888
  # Passes both tests.
 
3889
ac_preproc_ok=:
 
3890
break
 
3891
fi
 
3892
rm -f conftest.err conftest.$ac_ext
 
3893
 
 
3894
done
 
3895
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3896
rm -f conftest.err conftest.$ac_ext
 
3897
if $ac_preproc_ok; then
 
3898
  break
 
3899
fi
 
3900
 
 
3901
    done
 
3902
    ac_cv_prog_CPP=$CPP
 
3903
 
 
3904
fi
 
3905
  CPP=$ac_cv_prog_CPP
 
3906
else
 
3907
  ac_cv_prog_CPP=$CPP
 
3908
fi
 
3909
echo "$as_me:$LINENO: result: $CPP" >&5
 
3910
echo "${ECHO_T}$CPP" >&6
 
3911
ac_preproc_ok=false
 
3912
for ac_c_preproc_warn_flag in '' yes
 
3913
do
 
3914
  # Use a header file that comes with gcc, so configuring glibc
 
3915
  # with a fresh cross-compiler works.
 
3916
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3917
  # <limits.h> exists even on freestanding compilers.
 
3918
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3919
  # not just through cpp. "Syntax error" is here to catch this case.
 
3920
  cat >conftest.$ac_ext <<_ACEOF
 
3921
/* confdefs.h.  */
 
3922
_ACEOF
 
3923
cat confdefs.h >>conftest.$ac_ext
 
3924
cat >>conftest.$ac_ext <<_ACEOF
 
3925
/* end confdefs.h.  */
 
3926
#ifdef __STDC__
 
3927
# include <limits.h>
 
3928
#else
 
3929
# include <assert.h>
 
3930
#endif
 
3931
                     Syntax error
 
3932
_ACEOF
 
3933
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3934
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3935
  ac_status=$?
 
3936
  grep -v '^ *+' conftest.er1 >conftest.err
 
3937
  rm -f conftest.er1
 
3938
  cat conftest.err >&5
 
3939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3940
  (exit $ac_status); } >/dev/null; then
 
3941
  if test -s conftest.err; then
 
3942
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3943
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3944
  else
 
3945
    ac_cpp_err=
 
3946
  fi
 
3947
else
 
3948
  ac_cpp_err=yes
 
3949
fi
 
3950
if test -z "$ac_cpp_err"; then
 
3951
  :
 
3952
else
 
3953
  echo "$as_me: failed program was:" >&5
 
3954
sed 's/^/| /' conftest.$ac_ext >&5
 
3955
 
 
3956
  # Broken: fails on valid input.
 
3957
continue
 
3958
fi
 
3959
rm -f conftest.err conftest.$ac_ext
 
3960
 
 
3961
  # OK, works on sane cases.  Now check whether non-existent headers
 
3962
  # can be detected and how.
 
3963
  cat >conftest.$ac_ext <<_ACEOF
 
3964
/* confdefs.h.  */
 
3965
_ACEOF
 
3966
cat confdefs.h >>conftest.$ac_ext
 
3967
cat >>conftest.$ac_ext <<_ACEOF
 
3968
/* end confdefs.h.  */
 
3969
#include <ac_nonexistent.h>
 
3970
_ACEOF
 
3971
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3972
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3973
  ac_status=$?
 
3974
  grep -v '^ *+' conftest.er1 >conftest.err
 
3975
  rm -f conftest.er1
 
3976
  cat conftest.err >&5
 
3977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3978
  (exit $ac_status); } >/dev/null; then
 
3979
  if test -s conftest.err; then
 
3980
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3981
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3982
  else
 
3983
    ac_cpp_err=
 
3984
  fi
 
3985
else
 
3986
  ac_cpp_err=yes
 
3987
fi
 
3988
if test -z "$ac_cpp_err"; then
 
3989
  # Broken: success on invalid input.
 
3990
continue
 
3991
else
 
3992
  echo "$as_me: failed program was:" >&5
 
3993
sed 's/^/| /' conftest.$ac_ext >&5
 
3994
 
 
3995
  # Passes both tests.
 
3996
ac_preproc_ok=:
 
3997
break
 
3998
fi
 
3999
rm -f conftest.err conftest.$ac_ext
 
4000
 
 
4001
done
 
4002
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4003
rm -f conftest.err conftest.$ac_ext
 
4004
if $ac_preproc_ok; then
 
4005
  :
 
4006
else
 
4007
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4008
See \`config.log' for more details." >&5
 
4009
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4010
See \`config.log' for more details." >&2;}
 
4011
   { (exit 1); exit 1; }; }
 
4012
fi
 
4013
 
 
4014
ac_ext=c
 
4015
ac_cpp='$CPP $CPPFLAGS'
 
4016
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4017
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4018
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4019
 
 
4020
 
 
4021
echo "$as_me:$LINENO: checking for egrep" >&5
 
4022
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4023
if test "${ac_cv_prog_egrep+set}" = set; then
 
4024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4025
else
 
4026
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4027
    then ac_cv_prog_egrep='grep -E'
 
4028
    else ac_cv_prog_egrep='egrep'
 
4029
    fi
 
4030
fi
 
4031
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4032
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4033
 EGREP=$ac_cv_prog_egrep
 
4034
 
 
4035
 
 
4036
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4037
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4038
if test "${ac_cv_header_stdc+set}" = set; then
 
4039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4040
else
 
4041
  cat >conftest.$ac_ext <<_ACEOF
 
4042
/* confdefs.h.  */
 
4043
_ACEOF
 
4044
cat confdefs.h >>conftest.$ac_ext
 
4045
cat >>conftest.$ac_ext <<_ACEOF
 
4046
/* end confdefs.h.  */
 
4047
#include <stdlib.h>
 
4048
#include <stdarg.h>
 
4049
#include <string.h>
 
4050
#include <float.h>
 
4051
 
 
4052
int
 
4053
main ()
 
4054
{
 
4055
 
 
4056
  ;
 
4057
  return 0;
 
4058
}
 
4059
_ACEOF
 
4060
rm -f conftest.$ac_objext
 
4061
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4062
  (eval $ac_compile) 2>conftest.er1
 
4063
  ac_status=$?
 
4064
  grep -v '^ *+' conftest.er1 >conftest.err
 
4065
  rm -f conftest.er1
 
4066
  cat conftest.err >&5
 
4067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4068
  (exit $ac_status); } &&
 
4069
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4071
  (eval $ac_try) 2>&5
 
4072
  ac_status=$?
 
4073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4074
  (exit $ac_status); }; } &&
 
4075
         { ac_try='test -s conftest.$ac_objext'
 
4076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4077
  (eval $ac_try) 2>&5
 
4078
  ac_status=$?
 
4079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4080
  (exit $ac_status); }; }; then
 
4081
  ac_cv_header_stdc=yes
 
4082
else
 
4083
  echo "$as_me: failed program was:" >&5
 
4084
sed 's/^/| /' conftest.$ac_ext >&5
 
4085
 
 
4086
ac_cv_header_stdc=no
 
4087
fi
 
4088
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4089
 
 
4090
if test $ac_cv_header_stdc = yes; then
 
4091
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
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 <string.h>
 
4099
 
 
4100
_ACEOF
 
4101
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4102
  $EGREP "memchr" >/dev/null 2>&1; then
 
4103
  :
 
4104
else
 
4105
  ac_cv_header_stdc=no
 
4106
fi
 
4107
rm -f conftest*
 
4108
 
 
4109
fi
 
4110
 
 
4111
if test $ac_cv_header_stdc = yes; then
 
4112
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4113
  cat >conftest.$ac_ext <<_ACEOF
 
4114
/* confdefs.h.  */
 
4115
_ACEOF
 
4116
cat confdefs.h >>conftest.$ac_ext
 
4117
cat >>conftest.$ac_ext <<_ACEOF
 
4118
/* end confdefs.h.  */
 
4119
#include <stdlib.h>
 
4120
 
 
4121
_ACEOF
 
4122
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4123
  $EGREP "free" >/dev/null 2>&1; then
 
4124
  :
 
4125
else
 
4126
  ac_cv_header_stdc=no
 
4127
fi
 
4128
rm -f conftest*
 
4129
 
 
4130
fi
 
4131
 
 
4132
if test $ac_cv_header_stdc = yes; then
 
4133
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4134
  if test "$cross_compiling" = yes; then
 
4135
  :
 
4136
else
 
4137
  cat >conftest.$ac_ext <<_ACEOF
 
4138
/* confdefs.h.  */
 
4139
_ACEOF
 
4140
cat confdefs.h >>conftest.$ac_ext
 
4141
cat >>conftest.$ac_ext <<_ACEOF
 
4142
/* end confdefs.h.  */
 
4143
#include <ctype.h>
 
4144
#if ((' ' & 0x0FF) == 0x020)
 
4145
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4146
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4147
#else
 
4148
# define ISLOWER(c) \
 
4149
                   (('a' <= (c) && (c) <= 'i') \
 
4150
                     || ('j' <= (c) && (c) <= 'r') \
 
4151
                     || ('s' <= (c) && (c) <= 'z'))
 
4152
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4153
#endif
 
4154
 
 
4155
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4156
int
 
4157
main ()
 
4158
{
 
4159
  int i;
 
4160
  for (i = 0; i < 256; i++)
 
4161
    if (XOR (islower (i), ISLOWER (i))
 
4162
        || toupper (i) != TOUPPER (i))
 
4163
      exit(2);
 
4164
  exit (0);
 
4165
}
 
4166
_ACEOF
 
4167
rm -f conftest$ac_exeext
 
4168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4169
  (eval $ac_link) 2>&5
 
4170
  ac_status=$?
 
4171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4172
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4174
  (eval $ac_try) 2>&5
 
4175
  ac_status=$?
 
4176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4177
  (exit $ac_status); }; }; then
 
4178
  :
 
4179
else
 
4180
  echo "$as_me: program exited with status $ac_status" >&5
 
4181
echo "$as_me: failed program was:" >&5
 
4182
sed 's/^/| /' conftest.$ac_ext >&5
 
4183
 
 
4184
( exit $ac_status )
 
4185
ac_cv_header_stdc=no
 
4186
fi
 
4187
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4188
fi
 
4189
fi
 
4190
fi
 
4191
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4192
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4193
if test $ac_cv_header_stdc = yes; then
 
4194
 
 
4195
cat >>confdefs.h <<\_ACEOF
 
4196
#define STDC_HEADERS 1
 
4197
_ACEOF
 
4198
 
 
4199
fi
 
4200
 
 
4201
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4202
 
 
4203
 
 
4204
 
 
4205
 
 
4206
 
 
4207
 
 
4208
 
 
4209
 
 
4210
 
 
4211
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4212
                  inttypes.h stdint.h unistd.h
 
4213
do
 
4214
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4215
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4216
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4217
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4219
else
 
4220
  cat >conftest.$ac_ext <<_ACEOF
 
4221
/* confdefs.h.  */
 
4222
_ACEOF
 
4223
cat confdefs.h >>conftest.$ac_ext
 
4224
cat >>conftest.$ac_ext <<_ACEOF
 
4225
/* end confdefs.h.  */
 
4226
$ac_includes_default
 
4227
 
 
4228
#include <$ac_header>
 
4229
_ACEOF
 
4230
rm -f conftest.$ac_objext
 
4231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4232
  (eval $ac_compile) 2>conftest.er1
 
4233
  ac_status=$?
 
4234
  grep -v '^ *+' conftest.er1 >conftest.err
 
4235
  rm -f conftest.er1
 
4236
  cat conftest.err >&5
 
4237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4238
  (exit $ac_status); } &&
 
4239
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4241
  (eval $ac_try) 2>&5
 
4242
  ac_status=$?
 
4243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4244
  (exit $ac_status); }; } &&
 
4245
         { ac_try='test -s conftest.$ac_objext'
 
4246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4247
  (eval $ac_try) 2>&5
 
4248
  ac_status=$?
 
4249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4250
  (exit $ac_status); }; }; then
 
4251
  eval "$as_ac_Header=yes"
 
4252
else
 
4253
  echo "$as_me: failed program was:" >&5
 
4254
sed 's/^/| /' conftest.$ac_ext >&5
 
4255
 
 
4256
eval "$as_ac_Header=no"
 
4257
fi
 
4258
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4259
fi
 
4260
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4261
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4262
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4263
  cat >>confdefs.h <<_ACEOF
 
4264
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4265
_ACEOF
 
4266
 
 
4267
fi
 
4268
 
 
4269
done
 
4270
 
 
4271
 
 
4272
 
 
4273
 
 
4274
 
 
4275
 
 
4276
for ac_header in limits.h sys/ioctl.h sys/time.h unistd.h
 
4277
do
 
4278
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4279
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4280
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4281
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4282
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4284
fi
 
4285
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4286
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4287
else
 
4288
  # Is the header compilable?
 
4289
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4290
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4291
cat >conftest.$ac_ext <<_ACEOF
 
4292
/* confdefs.h.  */
 
4293
_ACEOF
 
4294
cat confdefs.h >>conftest.$ac_ext
 
4295
cat >>conftest.$ac_ext <<_ACEOF
 
4296
/* end confdefs.h.  */
 
4297
$ac_includes_default
 
4298
#include <$ac_header>
 
4299
_ACEOF
 
4300
rm -f conftest.$ac_objext
 
4301
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4302
  (eval $ac_compile) 2>conftest.er1
 
4303
  ac_status=$?
 
4304
  grep -v '^ *+' conftest.er1 >conftest.err
 
4305
  rm -f conftest.er1
 
4306
  cat conftest.err >&5
 
4307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4308
  (exit $ac_status); } &&
 
4309
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4311
  (eval $ac_try) 2>&5
 
4312
  ac_status=$?
 
4313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4314
  (exit $ac_status); }; } &&
 
4315
         { ac_try='test -s conftest.$ac_objext'
 
4316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4317
  (eval $ac_try) 2>&5
 
4318
  ac_status=$?
 
4319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4320
  (exit $ac_status); }; }; then
 
4321
  ac_header_compiler=yes
 
4322
else
 
4323
  echo "$as_me: failed program was:" >&5
 
4324
sed 's/^/| /' conftest.$ac_ext >&5
 
4325
 
 
4326
ac_header_compiler=no
 
4327
fi
 
4328
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4329
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4330
echo "${ECHO_T}$ac_header_compiler" >&6
 
4331
 
 
4332
# Is the header present?
 
4333
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4334
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4335
cat >conftest.$ac_ext <<_ACEOF
 
4336
/* confdefs.h.  */
 
4337
_ACEOF
 
4338
cat confdefs.h >>conftest.$ac_ext
 
4339
cat >>conftest.$ac_ext <<_ACEOF
 
4340
/* end confdefs.h.  */
 
4341
#include <$ac_header>
 
4342
_ACEOF
 
4343
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4344
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4345
  ac_status=$?
 
4346
  grep -v '^ *+' conftest.er1 >conftest.err
 
4347
  rm -f conftest.er1
 
4348
  cat conftest.err >&5
 
4349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4350
  (exit $ac_status); } >/dev/null; then
 
4351
  if test -s conftest.err; then
 
4352
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4353
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4354
  else
 
4355
    ac_cpp_err=
 
4356
  fi
 
4357
else
 
4358
  ac_cpp_err=yes
 
4359
fi
 
4360
if test -z "$ac_cpp_err"; then
 
4361
  ac_header_preproc=yes
 
4362
else
 
4363
  echo "$as_me: failed program was:" >&5
 
4364
sed 's/^/| /' conftest.$ac_ext >&5
 
4365
 
 
4366
  ac_header_preproc=no
 
4367
fi
 
4368
rm -f conftest.err conftest.$ac_ext
 
4369
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4370
echo "${ECHO_T}$ac_header_preproc" >&6
 
4371
 
 
4372
# So?  What about this header?
 
4373
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4374
  yes:no: )
 
4375
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4376
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4377
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4378
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4379
    ac_header_preproc=yes
 
4380
    ;;
 
4381
  no:yes:* )
 
4382
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4383
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4384
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4385
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4386
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4387
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4388
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4389
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4390
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4391
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4392
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4393
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4394
    (
 
4395
      cat <<\_ASBOX
 
4396
## ------------------------------------------ ##
 
4397
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4398
## ------------------------------------------ ##
 
4399
_ASBOX
 
4400
    ) |
 
4401
      sed "s/^/$as_me: WARNING:     /" >&2
 
4402
    ;;
 
4403
esac
 
4404
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4405
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4406
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4408
else
 
4409
  eval "$as_ac_Header=\$ac_header_preproc"
 
4410
fi
 
4411
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4412
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4413
 
 
4414
fi
 
4415
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4416
  cat >>confdefs.h <<_ACEOF
 
4417
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4418
_ACEOF
 
4419
 
 
4420
fi
 
4421
 
 
4422
done
 
4423
 
 
4424
 
 
4425
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4426
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
4427
if test "${ac_cv_c_const+set}" = set; then
 
4428
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4429
else
 
4430
  cat >conftest.$ac_ext <<_ACEOF
 
4431
/* confdefs.h.  */
 
4432
_ACEOF
 
4433
cat confdefs.h >>conftest.$ac_ext
 
4434
cat >>conftest.$ac_ext <<_ACEOF
 
4435
/* end confdefs.h.  */
 
4436
 
 
4437
int
 
4438
main ()
 
4439
{
 
4440
/* FIXME: Include the comments suggested by Paul. */
 
4441
#ifndef __cplusplus
 
4442
  /* Ultrix mips cc rejects this.  */
 
4443
  typedef int charset[2];
 
4444
  const charset x;
 
4445
  /* SunOS 4.1.1 cc rejects this.  */
 
4446
  char const *const *ccp;
 
4447
  char **p;
 
4448
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4449
  struct point {int x, y;};
 
4450
  static struct point const zero = {0,0};
 
4451
  /* AIX XL C 1.02.0.0 rejects this.
 
4452
     It does not let you subtract one const X* pointer from another in
 
4453
     an arm of an if-expression whose if-part is not a constant
 
4454
     expression */
 
4455
  const char *g = "string";
 
4456
  ccp = &g + (g ? g-g : 0);
 
4457
  /* HPUX 7.0 cc rejects these. */
 
4458
  ++ccp;
 
4459
  p = (char**) ccp;
 
4460
  ccp = (char const *const *) p;
 
4461
  { /* SCO 3.2v4 cc rejects this.  */
 
4462
    char *t;
 
4463
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4464
 
 
4465
    *t++ = 0;
 
4466
  }
 
4467
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4468
    int x[] = {25, 17};
 
4469
    const int *foo = &x[0];
 
4470
    ++foo;
 
4471
  }
 
4472
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4473
    typedef const int *iptr;
 
4474
    iptr p = 0;
 
4475
    ++p;
 
4476
  }
 
4477
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4478
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4479
    struct s { int j; const int *ap[3]; };
 
4480
    struct s *b; b->j = 5;
 
4481
  }
 
4482
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4483
    const int foo = 10;
 
4484
  }
 
4485
#endif
 
4486
 
 
4487
  ;
 
4488
  return 0;
 
4489
}
 
4490
_ACEOF
 
4491
rm -f conftest.$ac_objext
 
4492
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4493
  (eval $ac_compile) 2>conftest.er1
 
4494
  ac_status=$?
 
4495
  grep -v '^ *+' conftest.er1 >conftest.err
 
4496
  rm -f conftest.er1
 
4497
  cat conftest.err >&5
 
4498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4499
  (exit $ac_status); } &&
 
4500
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4502
  (eval $ac_try) 2>&5
 
4503
  ac_status=$?
 
4504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4505
  (exit $ac_status); }; } &&
 
4506
         { ac_try='test -s conftest.$ac_objext'
 
4507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4508
  (eval $ac_try) 2>&5
 
4509
  ac_status=$?
 
4510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4511
  (exit $ac_status); }; }; then
 
4512
  ac_cv_c_const=yes
 
4513
else
 
4514
  echo "$as_me: failed program was:" >&5
 
4515
sed 's/^/| /' conftest.$ac_ext >&5
 
4516
 
 
4517
ac_cv_c_const=no
 
4518
fi
 
4519
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4520
fi
 
4521
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4522
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4523
if test $ac_cv_c_const = no; then
 
4524
 
 
4525
cat >>confdefs.h <<\_ACEOF
 
4526
#define const
 
4527
_ACEOF
 
4528
 
 
4529
fi
 
4530
 
 
4531
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
4532
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
4533
if test "${ac_cv_header_time+set}" = set; then
 
4534
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4535
else
 
4536
  cat >conftest.$ac_ext <<_ACEOF
 
4537
/* confdefs.h.  */
 
4538
_ACEOF
 
4539
cat confdefs.h >>conftest.$ac_ext
 
4540
cat >>conftest.$ac_ext <<_ACEOF
 
4541
/* end confdefs.h.  */
 
4542
#include <sys/types.h>
 
4543
#include <sys/time.h>
 
4544
#include <time.h>
 
4545
 
 
4546
int
 
4547
main ()
 
4548
{
 
4549
if ((struct tm *) 0)
 
4550
return 0;
 
4551
  ;
 
4552
  return 0;
 
4553
}
 
4554
_ACEOF
 
4555
rm -f conftest.$ac_objext
 
4556
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4557
  (eval $ac_compile) 2>conftest.er1
 
4558
  ac_status=$?
 
4559
  grep -v '^ *+' conftest.er1 >conftest.err
 
4560
  rm -f conftest.er1
 
4561
  cat conftest.err >&5
 
4562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4563
  (exit $ac_status); } &&
 
4564
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4565
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4566
  (eval $ac_try) 2>&5
 
4567
  ac_status=$?
 
4568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4569
  (exit $ac_status); }; } &&
 
4570
         { ac_try='test -s conftest.$ac_objext'
 
4571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4572
  (eval $ac_try) 2>&5
 
4573
  ac_status=$?
 
4574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4575
  (exit $ac_status); }; }; then
 
4576
  ac_cv_header_time=yes
 
4577
else
 
4578
  echo "$as_me: failed program was:" >&5
 
4579
sed 's/^/| /' conftest.$ac_ext >&5
 
4580
 
 
4581
ac_cv_header_time=no
 
4582
fi
 
4583
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4584
fi
 
4585
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
4586
echo "${ECHO_T}$ac_cv_header_time" >&6
 
4587
if test $ac_cv_header_time = yes; then
 
4588
 
 
4589
cat >>confdefs.h <<\_ACEOF
 
4590
#define TIME_WITH_SYS_TIME 1
 
4591
_ACEOF
 
4592
 
 
4593
fi
 
4594
 
 
4595
 
 
4596
if test $ac_cv_c_compiler_gnu = yes; then
 
4597
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
4598
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
 
4599
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
4600
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4601
else
 
4602
    ac_pattern="Autoconf.*'x'"
 
4603
  cat >conftest.$ac_ext <<_ACEOF
 
4604
/* confdefs.h.  */
 
4605
_ACEOF
 
4606
cat confdefs.h >>conftest.$ac_ext
 
4607
cat >>conftest.$ac_ext <<_ACEOF
 
4608
/* end confdefs.h.  */
 
4609
#include <sgtty.h>
 
4610
Autoconf TIOCGETP
 
4611
_ACEOF
 
4612
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4613
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
4614
  ac_cv_prog_gcc_traditional=yes
 
4615
else
 
4616
  ac_cv_prog_gcc_traditional=no
 
4617
fi
 
4618
rm -f conftest*
 
4619
 
 
4620
 
 
4621
  if test $ac_cv_prog_gcc_traditional = no; then
 
4622
    cat >conftest.$ac_ext <<_ACEOF
 
4623
/* confdefs.h.  */
 
4624
_ACEOF
 
4625
cat confdefs.h >>conftest.$ac_ext
 
4626
cat >>conftest.$ac_ext <<_ACEOF
 
4627
/* end confdefs.h.  */
 
4628
#include <termio.h>
 
4629
Autoconf TCGETA
 
4630
_ACEOF
 
4631
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4632
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
4633
  ac_cv_prog_gcc_traditional=yes
 
4634
fi
 
4635
rm -f conftest*
 
4636
 
 
4637
  fi
 
4638
fi
 
4639
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
4640
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
 
4641
  if test $ac_cv_prog_gcc_traditional = yes; then
 
4642
    CC="$CC -traditional"
 
4643
  fi
 
4644
fi
 
4645
 
 
4646
 
 
4647
 
 
4648
for ac_func in select socket
 
4649
do
 
4650
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
4651
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
4652
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
4653
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
4654
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4655
else
 
4656
  cat >conftest.$ac_ext <<_ACEOF
 
4657
/* confdefs.h.  */
 
4658
_ACEOF
 
4659
cat confdefs.h >>conftest.$ac_ext
 
4660
cat >>conftest.$ac_ext <<_ACEOF
 
4661
/* end confdefs.h.  */
 
4662
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
4663
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
4664
#define $ac_func innocuous_$ac_func
 
4665
 
 
4666
/* System header to define __stub macros and hopefully few prototypes,
 
4667
    which can conflict with char $ac_func (); below.
 
4668
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4669
    <limits.h> exists even on freestanding compilers.  */
 
4670
 
 
4671
#ifdef __STDC__
 
4672
# include <limits.h>
 
4673
#else
 
4674
# include <assert.h>
 
4675
#endif
 
4676
 
 
4677
#undef $ac_func
 
4678
 
 
4679
/* Override any gcc2 internal prototype to avoid an error.  */
 
4680
#ifdef __cplusplus
 
4681
extern "C"
 
4682
{
 
4683
#endif
 
4684
/* We use char because int might match the return type of a gcc2
 
4685
   builtin and then its argument prototype would still apply.  */
 
4686
char $ac_func ();
 
4687
/* The GNU C library defines this for functions which it implements
 
4688
    to always fail with ENOSYS.  Some functions are actually named
 
4689
    something starting with __ and the normal name is an alias.  */
 
4690
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
4691
choke me
 
4692
#else
 
4693
char (*f) () = $ac_func;
 
4694
#endif
 
4695
#ifdef __cplusplus
 
4696
}
 
4697
#endif
 
4698
 
 
4699
int
 
4700
main ()
 
4701
{
 
4702
return f != $ac_func;
 
4703
  ;
 
4704
  return 0;
 
4705
}
 
4706
_ACEOF
 
4707
rm -f conftest.$ac_objext conftest$ac_exeext
 
4708
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4709
  (eval $ac_link) 2>conftest.er1
 
4710
  ac_status=$?
 
4711
  grep -v '^ *+' conftest.er1 >conftest.err
 
4712
  rm -f conftest.er1
 
4713
  cat conftest.err >&5
 
4714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4715
  (exit $ac_status); } &&
 
4716
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4718
  (eval $ac_try) 2>&5
 
4719
  ac_status=$?
 
4720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4721
  (exit $ac_status); }; } &&
 
4722
         { ac_try='test -s conftest$ac_exeext'
 
4723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4724
  (eval $ac_try) 2>&5
 
4725
  ac_status=$?
 
4726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4727
  (exit $ac_status); }; }; then
 
4728
  eval "$as_ac_var=yes"
 
4729
else
 
4730
  echo "$as_me: failed program was:" >&5
 
4731
sed 's/^/| /' conftest.$ac_ext >&5
 
4732
 
 
4733
eval "$as_ac_var=no"
 
4734
fi
 
4735
rm -f conftest.err conftest.$ac_objext \
 
4736
      conftest$ac_exeext conftest.$ac_ext
 
4737
fi
 
4738
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
4739
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
4740
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
4741
  cat >>confdefs.h <<_ACEOF
 
4742
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
4743
_ACEOF
 
4744
 
 
4745
fi
 
4746
done
 
4747
 
 
4748
 
 
4749
# Find a good install program.  We prefer a C program (faster),
 
4750
# so one script is as good as another.  But avoid the broken or
 
4751
# incompatible versions:
 
4752
# SysV /etc/install, /usr/sbin/install
 
4753
# SunOS /usr/etc/install
 
4754
# IRIX /sbin/install
 
4755
# AIX /bin/install
 
4756
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
4757
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
4758
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
4759
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
4760
# OS/2's system install, which has a completely different semantic
 
4761
# ./install, which can be erroneously created by make from ./install.sh.
 
4762
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
4763
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
4764
if test -z "$INSTALL"; then
 
4765
if test "${ac_cv_path_install+set}" = set; then
 
4766
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4767
else
 
4768
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4769
for as_dir in $PATH
 
4770
do
 
4771
  IFS=$as_save_IFS
 
4772
  test -z "$as_dir" && as_dir=.
 
4773
  # Account for people who put trailing slashes in PATH elements.
 
4774
case $as_dir/ in
 
4775
  ./ | .// | /cC/* | \
 
4776
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
4777
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
4778
  /usr/ucb/* ) ;;
 
4779
  *)
 
4780
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
4781
    # Don't use installbsd from OSF since it installs stuff as root
 
4782
    # by default.
 
4783
    for ac_prog in ginstall scoinst install; do
 
4784
      for ac_exec_ext in '' $ac_executable_extensions; do
 
4785
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
4786
          if test $ac_prog = install &&
 
4787
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4788
            # AIX install.  It has an incompatible calling convention.
 
4789
            :
 
4790
          elif test $ac_prog = install &&
 
4791
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4792
            # program-specific install script used by HP pwplus--don't use.
 
4793
            :
 
4794
          else
 
4795
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
4796
            break 3
 
4797
          fi
 
4798
        fi
 
4799
      done
 
4800
    done
 
4801
    ;;
 
4802
esac
 
4803
done
 
4804
 
 
4805
 
 
4806
fi
 
4807
  if test "${ac_cv_path_install+set}" = set; then
 
4808
    INSTALL=$ac_cv_path_install
 
4809
  else
 
4810
    # As a last resort, use the slow shell script.  We don't cache a
 
4811
    # path for INSTALL within a source directory, because that will
 
4812
    # break other packages using the cache if that directory is
 
4813
    # removed, or if the path is relative.
 
4814
    INSTALL=$ac_install_sh
 
4815
  fi
 
4816
fi
 
4817
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
4818
echo "${ECHO_T}$INSTALL" >&6
 
4819
 
 
4820
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
4821
# It thinks the first close brace ends the variable substitution.
 
4822
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
4823
 
 
4824
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
4825
 
 
4826
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
4827
 
 
4828
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
4829
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
4830
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
4831
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
4832
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4833
else
 
4834
  cat >conftest.make <<\_ACEOF
 
4835
all:
 
4836
        @echo 'ac_maketemp="$(MAKE)"'
 
4837
_ACEOF
 
4838
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
4839
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
4840
if test -n "$ac_maketemp"; then
 
4841
  eval ac_cv_prog_make_${ac_make}_set=yes
 
4842
else
 
4843
  eval ac_cv_prog_make_${ac_make}_set=no
 
4844
fi
 
4845
rm -f conftest.make
 
4846
fi
 
4847
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
4848
  echo "$as_me:$LINENO: result: yes" >&5
 
4849
echo "${ECHO_T}yes" >&6
 
4850
  SET_MAKE=
 
4851
else
 
4852
  echo "$as_me:$LINENO: result: no" >&5
 
4853
echo "${ECHO_T}no" >&6
 
4854
  SET_MAKE="MAKE=${MAKE-make}"
 
4855
fi
 
4856
 
 
4857
 
 
4858
# Check whether --enable-shared or --disable-shared was given.
 
4859
if test "${enable_shared+set}" = set; then
 
4860
  enableval="$enable_shared"
 
4861
  p=${PACKAGE-default}
 
4862
    case $enableval in
 
4863
    yes) enable_shared=yes ;;
 
4864
    no) enable_shared=no ;;
 
4865
    *)
 
4866
      enable_shared=no
 
4867
      # Look at the argument we got.  We use all the common list separators.
 
4868
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4869
      for pkg in $enableval; do
 
4870
        IFS="$lt_save_ifs"
 
4871
        if test "X$pkg" = "X$p"; then
 
4872
          enable_shared=yes
 
4873
        fi
 
4874
      done
 
4875
      IFS="$lt_save_ifs"
 
4876
      ;;
 
4877
    esac
 
4878
else
 
4879
  enable_shared=yes
 
4880
fi;
 
4881
 
 
4882
# Check whether --enable-static or --disable-static was given.
 
4883
if test "${enable_static+set}" = set; then
 
4884
  enableval="$enable_static"
 
4885
  p=${PACKAGE-default}
 
4886
    case $enableval in
 
4887
    yes) enable_static=yes ;;
 
4888
    no) enable_static=no ;;
 
4889
    *)
 
4890
     enable_static=no
 
4891
      # Look at the argument we got.  We use all the common list separators.
 
4892
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4893
      for pkg in $enableval; do
 
4894
        IFS="$lt_save_ifs"
 
4895
        if test "X$pkg" = "X$p"; then
 
4896
          enable_static=yes
 
4897
        fi
 
4898
      done
 
4899
      IFS="$lt_save_ifs"
 
4900
      ;;
 
4901
    esac
 
4902
else
 
4903
  enable_static=yes
 
4904
fi;
 
4905
 
 
4906
# Check whether --enable-fast-install or --disable-fast-install was given.
 
4907
if test "${enable_fast_install+set}" = set; then
 
4908
  enableval="$enable_fast_install"
 
4909
  p=${PACKAGE-default}
 
4910
    case $enableval in
 
4911
    yes) enable_fast_install=yes ;;
 
4912
    no) enable_fast_install=no ;;
 
4913
    *)
 
4914
      enable_fast_install=no
 
4915
      # Look at the argument we got.  We use all the common list separators.
 
4916
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4917
      for pkg in $enableval; do
 
4918
        IFS="$lt_save_ifs"
 
4919
        if test "X$pkg" = "X$p"; then
 
4920
          enable_fast_install=yes
 
4921
        fi
 
4922
      done
 
4923
      IFS="$lt_save_ifs"
 
4924
      ;;
 
4925
    esac
 
4926
else
 
4927
  enable_fast_install=yes
 
4928
fi;
 
4929
 
 
4930
# Make sure we can run config.sub.
 
4931
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
4932
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
4933
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
4934
   { (exit 1); exit 1; }; }
 
4935
 
 
4936
echo "$as_me:$LINENO: checking build system type" >&5
 
4937
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
4938
if test "${ac_cv_build+set}" = set; then
 
4939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4940
else
 
4941
  ac_cv_build_alias=$build_alias
 
4942
test -z "$ac_cv_build_alias" &&
 
4943
  ac_cv_build_alias=`$ac_config_guess`
 
4944
test -z "$ac_cv_build_alias" &&
 
4945
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
4946
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
4947
   { (exit 1); exit 1; }; }
 
4948
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
4949
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
4950
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
4951
   { (exit 1); exit 1; }; }
 
4952
 
 
4953
fi
 
4954
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
4955
echo "${ECHO_T}$ac_cv_build" >&6
 
4956
build=$ac_cv_build
 
4957
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4958
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4959
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4960
 
 
4961
 
 
4962
echo "$as_me:$LINENO: checking host system type" >&5
 
4963
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
4964
if test "${ac_cv_host+set}" = set; then
 
4965
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4966
else
 
4967
  ac_cv_host_alias=$host_alias
 
4968
test -z "$ac_cv_host_alias" &&
 
4969
  ac_cv_host_alias=$ac_cv_build_alias
 
4970
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
4971
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
4972
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
4973
   { (exit 1); exit 1; }; }
 
4974
 
 
4975
fi
 
4976
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
4977
echo "${ECHO_T}$ac_cv_host" >&6
 
4978
host=$ac_cv_host
 
4979
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4980
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4981
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4982
 
 
4983
 
 
4984
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4985
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
4986
if test "${lt_cv_path_SED+set}" = set; then
 
4987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4988
else
 
4989
  # Loop through the user's path and test for sed and gsed.
 
4990
# Then use that list of sed's as ones to test for truncation.
 
4991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4992
for as_dir in $PATH
 
4993
do
 
4994
  IFS=$as_save_IFS
 
4995
  test -z "$as_dir" && as_dir=.
 
4996
  for lt_ac_prog in sed gsed; do
 
4997
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4998
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
4999
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
5000
      fi
 
5001
    done
 
5002
  done
 
5003
done
 
5004
lt_ac_max=0
 
5005
lt_ac_count=0
 
5006
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
5007
# along with /bin/sed that truncates output.
 
5008
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
5009
  test ! -f $lt_ac_sed && break
 
5010
  cat /dev/null > conftest.in
 
5011
  lt_ac_count=0
 
5012
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
5013
  # Check for GNU sed and select it if it is found.
 
5014
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
5015
    lt_cv_path_SED=$lt_ac_sed
 
5016
    break
 
5017
  fi
 
5018
  while true; do
 
5019
    cat conftest.in conftest.in >conftest.tmp
 
5020
    mv conftest.tmp conftest.in
 
5021
    cp conftest.in conftest.nl
 
5022
    echo >>conftest.nl
 
5023
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
5024
    cmp -s conftest.out conftest.nl || break
 
5025
    # 10000 chars as input seems more than enough
 
5026
    test $lt_ac_count -gt 10 && break
 
5027
    lt_ac_count=`expr $lt_ac_count + 1`
 
5028
    if test $lt_ac_count -gt $lt_ac_max; then
 
5029
      lt_ac_max=$lt_ac_count
 
5030
      lt_cv_path_SED=$lt_ac_sed
 
5031
    fi
 
5032
  done
 
5033
done
 
5034
SED=$lt_cv_path_SED
 
5035
 
 
5036
fi
 
5037
 
 
5038
echo "$as_me:$LINENO: result: $SED" >&5
 
5039
echo "${ECHO_T}$SED" >&6
 
5040
 
 
5041
 
 
5042
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
5043
if test "${with_gnu_ld+set}" = set; then
 
5044
  withval="$with_gnu_ld"
 
5045
  test "$withval" = no || with_gnu_ld=yes
 
5046
else
 
5047
  with_gnu_ld=no
 
5048
fi;
 
5049
ac_prog=ld
 
5050
if test "$GCC" = yes; then
 
5051
  # Check if gcc -print-prog-name=ld gives a path.
 
5052
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
5053
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
5054
  case $host in
 
5055
  *-*-mingw*)
 
5056
    # gcc leaves a trailing carriage return which upsets mingw
 
5057
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5058
  *)
 
5059
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5060
  esac
 
5061
  case $ac_prog in
 
5062
    # Accept absolute paths.
 
5063
    [\\/]* | ?:[\\/]*)
 
5064
      re_direlt='/[^/][^/]*/\.\./'
 
5065
      # Canonicalize the pathname of ld
 
5066
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
5067
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
5068
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5069
      done
 
5070
      test -z "$LD" && LD="$ac_prog"
 
5071
      ;;
 
5072
  "")
 
5073
    # If it fails, then pretend we aren't using GCC.
 
5074
    ac_prog=ld
 
5075
    ;;
 
5076
  *)
 
5077
    # If it is relative, then search for the first ld in PATH.
 
5078
    with_gnu_ld=unknown
 
5079
    ;;
 
5080
  esac
 
5081
elif test "$with_gnu_ld" = yes; then
 
5082
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
5083
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
5084
else
 
5085
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
5086
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
5087
fi
 
5088
if test "${lt_cv_path_LD+set}" = set; then
 
5089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5090
else
 
5091
  if test -z "$LD"; then
 
5092
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5093
  for ac_dir in $PATH; do
 
5094
    IFS="$lt_save_ifs"
 
5095
    test -z "$ac_dir" && ac_dir=.
 
5096
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5097
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5098
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5099
      # but apparently some GNU ld's only accept -v.
 
5100
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5101
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5102
      *GNU* | *'with BFD'*)
 
5103
        test "$with_gnu_ld" != no && break
 
5104
        ;;
 
5105
      *)
 
5106
        test "$with_gnu_ld" != yes && break
 
5107
        ;;
 
5108
      esac
 
5109
    fi
 
5110
  done
 
5111
  IFS="$lt_save_ifs"
 
5112
else
 
5113
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5114
fi
 
5115
fi
 
5116
 
 
5117
LD="$lt_cv_path_LD"
 
5118
if test -n "$LD"; then
 
5119
  echo "$as_me:$LINENO: result: $LD" >&5
 
5120
echo "${ECHO_T}$LD" >&6
 
5121
else
 
5122
  echo "$as_me:$LINENO: result: no" >&5
 
5123
echo "${ECHO_T}no" >&6
 
5124
fi
 
5125
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
5126
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
5127
   { (exit 1); exit 1; }; }
 
5128
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
5129
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
5130
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
5131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5132
else
 
5133
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
5134
case `$LD -v 2>&1 </dev/null` in
 
5135
*GNU* | *'with BFD'*)
 
5136
  lt_cv_prog_gnu_ld=yes
 
5137
  ;;
 
5138
*)
 
5139
  lt_cv_prog_gnu_ld=no
 
5140
  ;;
 
5141
esac
 
5142
fi
 
5143
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
5144
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
5145
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5146
 
 
5147
 
 
5148
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5149
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
5150
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5152
else
 
5153
  lt_cv_ld_reload_flag='-r'
 
5154
fi
 
5155
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5156
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
5157
reload_flag=$lt_cv_ld_reload_flag
 
5158
case $reload_flag in
 
5159
"" | " "*) ;;
 
5160
*) reload_flag=" $reload_flag" ;;
 
5161
esac
 
5162
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5163
 
 
5164
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
5165
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
5166
if test "${lt_cv_path_NM+set}" = set; then
 
5167
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5168
else
 
5169
  if test -n "$NM"; then
 
5170
  # Let the user override the test.
 
5171
  lt_cv_path_NM="$NM"
 
5172
else
 
5173
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5174
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
5175
    IFS="$lt_save_ifs"
 
5176
    test -z "$ac_dir" && ac_dir=.
 
5177
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
5178
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5179
      # Check to see if the nm accepts a BSD-compat flag.
 
5180
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5181
      #   nm: unknown option "B" ignored
 
5182
      # Tru64's nm complains that /dev/null is an invalid object file
 
5183
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5184
      */dev/null* | *'Invalid file or object type'*)
 
5185
        lt_cv_path_NM="$tmp_nm -B"
 
5186
        break
 
5187
        ;;
 
5188
      *)
 
5189
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5190
        */dev/null*)
 
5191
          lt_cv_path_NM="$tmp_nm -p"
 
5192
          break
 
5193
          ;;
 
5194
        *)
 
5195
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5196
          continue # so that we can try to find one that supports BSD flags
 
5197
          ;;
 
5198
        esac
 
5199
      esac
 
5200
    fi
 
5201
  done
 
5202
  IFS="$lt_save_ifs"
 
5203
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5204
fi
 
5205
fi
 
5206
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
5207
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
5208
NM="$lt_cv_path_NM"
 
5209
 
 
5210
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
5211
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
5212
LN_S=$as_ln_s
 
5213
if test "$LN_S" = "ln -s"; then
 
5214
  echo "$as_me:$LINENO: result: yes" >&5
 
5215
echo "${ECHO_T}yes" >&6
 
5216
else
 
5217
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
5218
echo "${ECHO_T}no, using $LN_S" >&6
 
5219
fi
 
5220
 
 
5221
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
5222
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
5223
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
5224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5225
else
 
5226
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5227
lt_cv_file_magic_test_file=
 
5228
lt_cv_deplibs_check_method='unknown'
 
5229
# Need to set the preceding variable on all platforms that support
 
5230
# interlibrary dependencies.
 
5231
# 'none' -- dependencies not supported.
 
5232
# `unknown' -- same as none, but documents that we really don't know.
 
5233
# 'pass_all' -- all dependencies passed with no checks.
 
5234
# 'test_compile' -- check by making test program.
 
5235
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5236
# which responds to the $file_magic_cmd with a given extended regex.
 
5237
# If you have `file' or equivalent on your system and you're not sure
 
5238
# whether `pass_all' will *always* work, you probably want this one.
 
5239
 
 
5240
case $host_os in
 
5241
aix4* | aix5*)
 
5242
  lt_cv_deplibs_check_method=pass_all
 
5243
  ;;
 
5244
 
 
5245
beos*)
 
5246
  lt_cv_deplibs_check_method=pass_all
 
5247
  ;;
 
5248
 
 
5249
bsdi4*)
 
5250
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5251
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5252
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5253
  ;;
 
5254
 
 
5255
cygwin*)
 
5256
  # func_win32_libid is a shell function defined in ltmain.sh
 
5257
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5258
  lt_cv_file_magic_cmd='func_win32_libid'
 
5259
  ;;
 
5260
 
 
5261
mingw* | pw32*)
 
5262
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5263
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
5264
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5265
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5266
  ;;
 
5267
 
 
5268
darwin* | rhapsody*)
 
5269
  lt_cv_deplibs_check_method=pass_all
 
5270
  ;;
 
5271
 
 
5272
freebsd* | kfreebsd*-gnu)
 
5273
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5274
    case $host_cpu in
 
5275
    i*86 )
 
5276
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5277
      # Let's accept both of them until this is cleared up.
 
5278
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
5279
      lt_cv_file_magic_cmd=/usr/bin/file
 
5280
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5281
      ;;
 
5282
    esac
 
5283
  else
 
5284
    lt_cv_deplibs_check_method=pass_all
 
5285
  fi
 
5286
  ;;
 
5287
 
 
5288
gnu*)
 
5289
  lt_cv_deplibs_check_method=pass_all
 
5290
  ;;
 
5291
 
 
5292
hpux10.20* | hpux11*)
 
5293
  lt_cv_file_magic_cmd=/usr/bin/file
 
5294
  case "$host_cpu" in
 
5295
  ia64*)
 
5296
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5297
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5298
    ;;
 
5299
  hppa*64*)
 
5300
    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]'
 
5301
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5302
    ;;
 
5303
  *)
 
5304
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5305
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5306
    ;;
 
5307
  esac
 
5308
  ;;
 
5309
 
 
5310
irix5* | irix6* | nonstopux*)
 
5311
  case $LD in
 
5312
  *-32|*"-32 ") libmagic=32-bit;;
 
5313
  *-n32|*"-n32 ") libmagic=N32;;
 
5314
  *-64|*"-64 ") libmagic=64-bit;;
 
5315
  *) libmagic=never-match;;
 
5316
  esac
 
5317
  lt_cv_deplibs_check_method=pass_all
 
5318
  ;;
 
5319
 
 
5320
# This must be Linux ELF.
 
5321
linux*)
 
5322
  lt_cv_deplibs_check_method=pass_all
 
5323
  ;;
 
5324
 
 
5325
netbsd* | knetbsd*-gnu)
 
5326
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5327
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5328
  else
 
5329
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5330
  fi
 
5331
  ;;
 
5332
 
 
5333
newos6*)
 
5334
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5335
  lt_cv_file_magic_cmd=/usr/bin/file
 
5336
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5337
  ;;
 
5338
 
 
5339
nto-qnx*)
 
5340
  lt_cv_deplibs_check_method=unknown
 
5341
  ;;
 
5342
 
 
5343
openbsd*)
 
5344
  lt_cv_file_magic_cmd=/usr/bin/file
 
5345
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5346
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5347
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
5348
  else
 
5349
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
5350
  fi
 
5351
  ;;
 
5352
 
 
5353
osf3* | osf4* | osf5*)
 
5354
  lt_cv_deplibs_check_method=pass_all
 
5355
  ;;
 
5356
 
 
5357
sco3.2v5*)
 
5358
  lt_cv_deplibs_check_method=pass_all
 
5359
  ;;
 
5360
 
 
5361
solaris*)
 
5362
  lt_cv_deplibs_check_method=pass_all
 
5363
  ;;
 
5364
 
 
5365
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5366
  case $host_vendor in
 
5367
  motorola)
 
5368
    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]'
 
5369
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5370
    ;;
 
5371
  ncr)
 
5372
    lt_cv_deplibs_check_method=pass_all
 
5373
    ;;
 
5374
  sequent)
 
5375
    lt_cv_file_magic_cmd='/bin/file'
 
5376
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5377
    ;;
 
5378
  sni)
 
5379
    lt_cv_file_magic_cmd='/bin/file'
 
5380
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5381
    lt_cv_file_magic_test_file=/lib/libc.so
 
5382
    ;;
 
5383
  siemens)
 
5384
    lt_cv_deplibs_check_method=pass_all
 
5385
    ;;
 
5386
  esac
 
5387
  ;;
 
5388
 
 
5389
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
5390
  lt_cv_deplibs_check_method=pass_all
 
5391
  ;;
 
5392
esac
 
5393
 
 
5394
fi
 
5395
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5396
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
5397
file_magic_cmd=$lt_cv_file_magic_cmd
 
5398
deplibs_check_method=$lt_cv_deplibs_check_method
 
5399
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5400
 
 
5401
 
 
5402
 
 
5403
 
 
5404
# If no C compiler was specified, use CC.
 
5405
LTCC=${LTCC-"$CC"}
 
5406
 
 
5407
# Allow CC to be a program name with arguments.
 
5408
compiler=$CC
 
5409
 
 
5410
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5411
if test "${enable_libtool_lock+set}" = set; then
 
5412
  enableval="$enable_libtool_lock"
 
5413
 
 
5414
fi;
 
5415
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5416
 
 
5417
# Some flags need to be propagated to the compiler or linker for good
 
5418
# libtool support.
 
5419
case $host in
 
5420
ia64-*-hpux*)
 
5421
  # Find out which ABI we are using.
 
5422
  echo 'int i;' > conftest.$ac_ext
 
5423
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5424
  (eval $ac_compile) 2>&5
 
5425
  ac_status=$?
 
5426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5427
  (exit $ac_status); }; then
 
5428
    case `/usr/bin/file conftest.$ac_objext` in
 
5429
    *ELF-32*)
 
5430
      HPUX_IA64_MODE="32"
 
5431
      ;;
 
5432
    *ELF-64*)
 
5433
      HPUX_IA64_MODE="64"
 
5434
      ;;
 
5435
    esac
 
5436
  fi
 
5437
  rm -rf conftest*
 
5438
  ;;
 
5439
*-*-irix6*)
 
5440
  # Find out which ABI we are using.
 
5441
  echo '#line 5441 "configure"' > conftest.$ac_ext
 
5442
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5443
  (eval $ac_compile) 2>&5
 
5444
  ac_status=$?
 
5445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5446
  (exit $ac_status); }; then
 
5447
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5448
    case `/usr/bin/file conftest.$ac_objext` in
 
5449
    *32-bit*)
 
5450
      LD="${LD-ld} -melf32bsmip"
 
5451
      ;;
 
5452
    *N32*)
 
5453
      LD="${LD-ld} -melf32bmipn32"
 
5454
      ;;
 
5455
    *64-bit*)
 
5456
      LD="${LD-ld} -melf64bmip"
 
5457
      ;;
 
5458
    esac
 
5459
   else
 
5460
    case `/usr/bin/file conftest.$ac_objext` in
 
5461
    *32-bit*)
 
5462
      LD="${LD-ld} -32"
 
5463
      ;;
 
5464
    *N32*)
 
5465
      LD="${LD-ld} -n32"
 
5466
      ;;
 
5467
    *64-bit*)
 
5468
      LD="${LD-ld} -64"
 
5469
      ;;
 
5470
    esac
 
5471
   fi
 
5472
  fi
 
5473
  rm -rf conftest*
 
5474
  ;;
 
5475
 
 
5476
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5477
  # Find out which ABI we are using.
 
5478
  echo 'int i;' > conftest.$ac_ext
 
5479
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5480
  (eval $ac_compile) 2>&5
 
5481
  ac_status=$?
 
5482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5483
  (exit $ac_status); }; then
 
5484
    case "`/usr/bin/file conftest.o`" in
 
5485
    *32-bit*)
 
5486
      case $host in
 
5487
        x86_64-*linux*)
 
5488
          LD="${LD-ld} -m elf_i386"
 
5489
          ;;
 
5490
        ppc64-*linux*|powerpc64-*linux*)
 
5491
          LD="${LD-ld} -m elf32ppclinux"
 
5492
          ;;
 
5493
        s390x-*linux*)
 
5494
          LD="${LD-ld} -m elf_s390"
 
5495
          ;;
 
5496
        sparc64-*linux*)
 
5497
          LD="${LD-ld} -m elf32_sparc"
 
5498
          ;;
 
5499
      esac
 
5500
      ;;
 
5501
    *64-bit*)
 
5502
      case $host in
 
5503
        x86_64-*linux*)
 
5504
          LD="${LD-ld} -m elf_x86_64"
 
5505
          ;;
 
5506
        ppc*-*linux*|powerpc*-*linux*)
 
5507
          LD="${LD-ld} -m elf64ppc"
 
5508
          ;;
 
5509
        s390*-*linux*)
 
5510
          LD="${LD-ld} -m elf64_s390"
 
5511
          ;;
 
5512
        sparc*-*linux*)
 
5513
          LD="${LD-ld} -m elf64_sparc"
 
5514
          ;;
 
5515
      esac
 
5516
      ;;
 
5517
    esac
 
5518
  fi
 
5519
  rm -rf conftest*
 
5520
  ;;
 
5521
 
 
5522
*-*-sco3.2v5*)
 
5523
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5524
  SAVE_CFLAGS="$CFLAGS"
 
5525
  CFLAGS="$CFLAGS -belf"
 
5526
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5527
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5528
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5530
else
 
5531
  ac_ext=c
 
5532
ac_cpp='$CPP $CPPFLAGS'
 
5533
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5534
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5535
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5536
 
 
5537
     cat >conftest.$ac_ext <<_ACEOF
 
5538
/* confdefs.h.  */
 
5539
_ACEOF
 
5540
cat confdefs.h >>conftest.$ac_ext
 
5541
cat >>conftest.$ac_ext <<_ACEOF
 
5542
/* end confdefs.h.  */
 
5543
 
 
5544
int
 
5545
main ()
 
5546
{
 
5547
 
 
5548
  ;
 
5549
  return 0;
 
5550
}
 
5551
_ACEOF
 
5552
rm -f conftest.$ac_objext conftest$ac_exeext
 
5553
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5554
  (eval $ac_link) 2>conftest.er1
 
5555
  ac_status=$?
 
5556
  grep -v '^ *+' conftest.er1 >conftest.err
 
5557
  rm -f conftest.er1
 
5558
  cat conftest.err >&5
 
5559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5560
  (exit $ac_status); } &&
 
5561
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5563
  (eval $ac_try) 2>&5
 
5564
  ac_status=$?
 
5565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5566
  (exit $ac_status); }; } &&
 
5567
         { ac_try='test -s conftest$ac_exeext'
 
5568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5569
  (eval $ac_try) 2>&5
 
5570
  ac_status=$?
 
5571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5572
  (exit $ac_status); }; }; then
 
5573
  lt_cv_cc_needs_belf=yes
 
5574
else
 
5575
  echo "$as_me: failed program was:" >&5
 
5576
sed 's/^/| /' conftest.$ac_ext >&5
 
5577
 
 
5578
lt_cv_cc_needs_belf=no
 
5579
fi
 
5580
rm -f conftest.err conftest.$ac_objext \
 
5581
      conftest$ac_exeext conftest.$ac_ext
 
5582
     ac_ext=c
 
5583
ac_cpp='$CPP $CPPFLAGS'
 
5584
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5585
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5586
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5587
 
 
5588
fi
 
5589
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5590
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5591
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5592
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5593
    CFLAGS="$SAVE_CFLAGS"
 
5594
  fi
 
5595
  ;;
 
5596
 
 
5597
esac
 
5598
 
 
5599
need_locks="$enable_libtool_lock"
 
5600
 
 
5601
 
 
5602
 
 
5603
for ac_header in dlfcn.h
 
5604
do
 
5605
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5606
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5607
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5608
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5609
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5611
fi
 
5612
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5613
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5614
else
 
5615
  # Is the header compilable?
 
5616
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5617
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5618
cat >conftest.$ac_ext <<_ACEOF
 
5619
/* confdefs.h.  */
 
5620
_ACEOF
 
5621
cat confdefs.h >>conftest.$ac_ext
 
5622
cat >>conftest.$ac_ext <<_ACEOF
 
5623
/* end confdefs.h.  */
 
5624
$ac_includes_default
 
5625
#include <$ac_header>
 
5626
_ACEOF
 
5627
rm -f conftest.$ac_objext
 
5628
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5629
  (eval $ac_compile) 2>conftest.er1
 
5630
  ac_status=$?
 
5631
  grep -v '^ *+' conftest.er1 >conftest.err
 
5632
  rm -f conftest.er1
 
5633
  cat conftest.err >&5
 
5634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5635
  (exit $ac_status); } &&
 
5636
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5638
  (eval $ac_try) 2>&5
 
5639
  ac_status=$?
 
5640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5641
  (exit $ac_status); }; } &&
 
5642
         { ac_try='test -s conftest.$ac_objext'
 
5643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5644
  (eval $ac_try) 2>&5
 
5645
  ac_status=$?
 
5646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5647
  (exit $ac_status); }; }; then
 
5648
  ac_header_compiler=yes
 
5649
else
 
5650
  echo "$as_me: failed program was:" >&5
 
5651
sed 's/^/| /' conftest.$ac_ext >&5
 
5652
 
 
5653
ac_header_compiler=no
 
5654
fi
 
5655
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5656
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5657
echo "${ECHO_T}$ac_header_compiler" >&6
 
5658
 
 
5659
# Is the header present?
 
5660
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5661
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5662
cat >conftest.$ac_ext <<_ACEOF
 
5663
/* confdefs.h.  */
 
5664
_ACEOF
 
5665
cat confdefs.h >>conftest.$ac_ext
 
5666
cat >>conftest.$ac_ext <<_ACEOF
 
5667
/* end confdefs.h.  */
 
5668
#include <$ac_header>
 
5669
_ACEOF
 
5670
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5671
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5672
  ac_status=$?
 
5673
  grep -v '^ *+' conftest.er1 >conftest.err
 
5674
  rm -f conftest.er1
 
5675
  cat conftest.err >&5
 
5676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5677
  (exit $ac_status); } >/dev/null; then
 
5678
  if test -s conftest.err; then
 
5679
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5680
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5681
  else
 
5682
    ac_cpp_err=
 
5683
  fi
 
5684
else
 
5685
  ac_cpp_err=yes
 
5686
fi
 
5687
if test -z "$ac_cpp_err"; then
 
5688
  ac_header_preproc=yes
 
5689
else
 
5690
  echo "$as_me: failed program was:" >&5
 
5691
sed 's/^/| /' conftest.$ac_ext >&5
 
5692
 
 
5693
  ac_header_preproc=no
 
5694
fi
 
5695
rm -f conftest.err conftest.$ac_ext
 
5696
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5697
echo "${ECHO_T}$ac_header_preproc" >&6
 
5698
 
 
5699
# So?  What about this header?
 
5700
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5701
  yes:no: )
 
5702
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5703
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5704
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5705
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5706
    ac_header_preproc=yes
 
5707
    ;;
 
5708
  no:yes:* )
 
5709
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5710
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5711
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5712
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5713
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5714
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5715
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5716
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5717
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5718
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5719
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5720
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5721
    (
 
5722
      cat <<\_ASBOX
 
5723
## ------------------------------------------ ##
 
5724
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5725
## ------------------------------------------ ##
 
5726
_ASBOX
 
5727
    ) |
 
5728
      sed "s/^/$as_me: WARNING:     /" >&2
 
5729
    ;;
 
5730
esac
 
5731
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5732
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5733
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5734
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5735
else
 
5736
  eval "$as_ac_Header=\$ac_header_preproc"
 
5737
fi
 
5738
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5739
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5740
 
 
5741
fi
 
5742
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5743
  cat >>confdefs.h <<_ACEOF
 
5744
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5745
_ACEOF
 
5746
 
 
5747
fi
 
5748
 
 
5749
done
 
5750
 
 
5751
ac_ext=cc
 
5752
ac_cpp='$CXXCPP $CPPFLAGS'
 
5753
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5754
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5755
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5756
if test -n "$ac_tool_prefix"; then
 
5757
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5758
  do
 
5759
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5760
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5761
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5762
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5763
if test "${ac_cv_prog_CXX+set}" = set; then
 
5764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5765
else
 
5766
  if test -n "$CXX"; then
 
5767
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5768
else
 
5769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5770
for as_dir in $PATH
 
5771
do
 
5772
  IFS=$as_save_IFS
 
5773
  test -z "$as_dir" && as_dir=.
 
5774
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5775
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5776
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5777
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5778
    break 2
 
5779
  fi
 
5780
done
 
5781
done
 
5782
 
 
5783
fi
 
5784
fi
 
5785
CXX=$ac_cv_prog_CXX
 
5786
if test -n "$CXX"; then
 
5787
  echo "$as_me:$LINENO: result: $CXX" >&5
 
5788
echo "${ECHO_T}$CXX" >&6
 
5789
else
 
5790
  echo "$as_me:$LINENO: result: no" >&5
 
5791
echo "${ECHO_T}no" >&6
 
5792
fi
 
5793
 
 
5794
    test -n "$CXX" && break
 
5795
  done
 
5796
fi
 
5797
if test -z "$CXX"; then
 
5798
  ac_ct_CXX=$CXX
 
5799
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5800
do
 
5801
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5802
set dummy $ac_prog; ac_word=$2
 
5803
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5804
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5805
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5807
else
 
5808
  if test -n "$ac_ct_CXX"; then
 
5809
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5810
else
 
5811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5812
for as_dir in $PATH
 
5813
do
 
5814
  IFS=$as_save_IFS
 
5815
  test -z "$as_dir" && as_dir=.
 
5816
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5817
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5818
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5819
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5820
    break 2
 
5821
  fi
 
5822
done
 
5823
done
 
5824
 
 
5825
fi
 
5826
fi
 
5827
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5828
if test -n "$ac_ct_CXX"; then
 
5829
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5830
echo "${ECHO_T}$ac_ct_CXX" >&6
 
5831
else
 
5832
  echo "$as_me:$LINENO: result: no" >&5
 
5833
echo "${ECHO_T}no" >&6
 
5834
fi
 
5835
 
 
5836
  test -n "$ac_ct_CXX" && break
 
5837
done
 
5838
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
5839
 
 
5840
  CXX=$ac_ct_CXX
 
5841
fi
 
5842
 
 
5843
 
 
5844
# Provide some information about the compiler.
 
5845
echo "$as_me:$LINENO:" \
 
5846
     "checking for C++ compiler version" >&5
 
5847
ac_compiler=`set X $ac_compile; echo $2`
 
5848
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5849
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5850
  ac_status=$?
 
5851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5852
  (exit $ac_status); }
 
5853
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5854
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5855
  ac_status=$?
 
5856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5857
  (exit $ac_status); }
 
5858
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5859
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5860
  ac_status=$?
 
5861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5862
  (exit $ac_status); }
 
5863
 
 
5864
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5865
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
5866
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5868
else
 
5869
  cat >conftest.$ac_ext <<_ACEOF
 
5870
/* confdefs.h.  */
 
5871
_ACEOF
 
5872
cat confdefs.h >>conftest.$ac_ext
 
5873
cat >>conftest.$ac_ext <<_ACEOF
 
5874
/* end confdefs.h.  */
 
5875
 
 
5876
int
 
5877
main ()
 
5878
{
 
5879
#ifndef __GNUC__
 
5880
       choke me
 
5881
#endif
 
5882
 
 
5883
  ;
 
5884
  return 0;
 
5885
}
 
5886
_ACEOF
 
5887
rm -f conftest.$ac_objext
 
5888
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5889
  (eval $ac_compile) 2>conftest.er1
 
5890
  ac_status=$?
 
5891
  grep -v '^ *+' conftest.er1 >conftest.err
 
5892
  rm -f conftest.er1
 
5893
  cat conftest.err >&5
 
5894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5895
  (exit $ac_status); } &&
 
5896
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5898
  (eval $ac_try) 2>&5
 
5899
  ac_status=$?
 
5900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5901
  (exit $ac_status); }; } &&
 
5902
         { ac_try='test -s conftest.$ac_objext'
 
5903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5904
  (eval $ac_try) 2>&5
 
5905
  ac_status=$?
 
5906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5907
  (exit $ac_status); }; }; then
 
5908
  ac_compiler_gnu=yes
 
5909
else
 
5910
  echo "$as_me: failed program was:" >&5
 
5911
sed 's/^/| /' conftest.$ac_ext >&5
 
5912
 
 
5913
ac_compiler_gnu=no
 
5914
fi
 
5915
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5916
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5917
 
 
5918
fi
 
5919
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5920
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5921
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5922
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5923
ac_save_CXXFLAGS=$CXXFLAGS
 
5924
CXXFLAGS="-g"
 
5925
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5926
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5927
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5929
else
 
5930
  cat >conftest.$ac_ext <<_ACEOF
 
5931
/* confdefs.h.  */
 
5932
_ACEOF
 
5933
cat confdefs.h >>conftest.$ac_ext
 
5934
cat >>conftest.$ac_ext <<_ACEOF
 
5935
/* end confdefs.h.  */
 
5936
 
 
5937
int
 
5938
main ()
 
5939
{
 
5940
 
 
5941
  ;
 
5942
  return 0;
 
5943
}
 
5944
_ACEOF
 
5945
rm -f conftest.$ac_objext
 
5946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5947
  (eval $ac_compile) 2>conftest.er1
 
5948
  ac_status=$?
 
5949
  grep -v '^ *+' conftest.er1 >conftest.err
 
5950
  rm -f conftest.er1
 
5951
  cat conftest.err >&5
 
5952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5953
  (exit $ac_status); } &&
 
5954
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5956
  (eval $ac_try) 2>&5
 
5957
  ac_status=$?
 
5958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5959
  (exit $ac_status); }; } &&
 
5960
         { ac_try='test -s conftest.$ac_objext'
 
5961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5962
  (eval $ac_try) 2>&5
 
5963
  ac_status=$?
 
5964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5965
  (exit $ac_status); }; }; then
 
5966
  ac_cv_prog_cxx_g=yes
 
5967
else
 
5968
  echo "$as_me: failed program was:" >&5
 
5969
sed 's/^/| /' conftest.$ac_ext >&5
 
5970
 
 
5971
ac_cv_prog_cxx_g=no
 
5972
fi
 
5973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5974
fi
 
5975
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5976
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5977
if test "$ac_test_CXXFLAGS" = set; then
 
5978
  CXXFLAGS=$ac_save_CXXFLAGS
 
5979
elif test $ac_cv_prog_cxx_g = yes; then
 
5980
  if test "$GXX" = yes; then
 
5981
    CXXFLAGS="-g -O2"
 
5982
  else
 
5983
    CXXFLAGS="-g"
 
5984
  fi
 
5985
else
 
5986
  if test "$GXX" = yes; then
 
5987
    CXXFLAGS="-O2"
 
5988
  else
 
5989
    CXXFLAGS=
 
5990
  fi
 
5991
fi
 
5992
for ac_declaration in \
 
5993
   '' \
 
5994
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
5995
   'extern "C" void std::exit (int); using std::exit;' \
 
5996
   'extern "C" void exit (int) throw ();' \
 
5997
   'extern "C" void exit (int);' \
 
5998
   'void exit (int);'
 
5999
do
 
6000
  cat >conftest.$ac_ext <<_ACEOF
 
6001
/* confdefs.h.  */
 
6002
_ACEOF
 
6003
cat confdefs.h >>conftest.$ac_ext
 
6004
cat >>conftest.$ac_ext <<_ACEOF
 
6005
/* end confdefs.h.  */
 
6006
$ac_declaration
 
6007
#include <stdlib.h>
 
6008
int
 
6009
main ()
 
6010
{
 
6011
exit (42);
 
6012
  ;
 
6013
  return 0;
 
6014
}
 
6015
_ACEOF
 
6016
rm -f conftest.$ac_objext
 
6017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6018
  (eval $ac_compile) 2>conftest.er1
 
6019
  ac_status=$?
 
6020
  grep -v '^ *+' conftest.er1 >conftest.err
 
6021
  rm -f conftest.er1
 
6022
  cat conftest.err >&5
 
6023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6024
  (exit $ac_status); } &&
 
6025
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6027
  (eval $ac_try) 2>&5
 
6028
  ac_status=$?
 
6029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6030
  (exit $ac_status); }; } &&
 
6031
         { ac_try='test -s conftest.$ac_objext'
 
6032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6033
  (eval $ac_try) 2>&5
 
6034
  ac_status=$?
 
6035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6036
  (exit $ac_status); }; }; then
 
6037
  :
 
6038
else
 
6039
  echo "$as_me: failed program was:" >&5
 
6040
sed 's/^/| /' conftest.$ac_ext >&5
 
6041
 
 
6042
continue
 
6043
fi
 
6044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6045
  cat >conftest.$ac_ext <<_ACEOF
 
6046
/* confdefs.h.  */
 
6047
_ACEOF
 
6048
cat confdefs.h >>conftest.$ac_ext
 
6049
cat >>conftest.$ac_ext <<_ACEOF
 
6050
/* end confdefs.h.  */
 
6051
$ac_declaration
 
6052
int
 
6053
main ()
 
6054
{
 
6055
exit (42);
 
6056
  ;
 
6057
  return 0;
 
6058
}
 
6059
_ACEOF
 
6060
rm -f conftest.$ac_objext
 
6061
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6062
  (eval $ac_compile) 2>conftest.er1
 
6063
  ac_status=$?
 
6064
  grep -v '^ *+' conftest.er1 >conftest.err
 
6065
  rm -f conftest.er1
 
6066
  cat conftest.err >&5
 
6067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6068
  (exit $ac_status); } &&
 
6069
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6070
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6071
  (eval $ac_try) 2>&5
 
6072
  ac_status=$?
 
6073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6074
  (exit $ac_status); }; } &&
 
6075
         { ac_try='test -s conftest.$ac_objext'
 
6076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6077
  (eval $ac_try) 2>&5
 
6078
  ac_status=$?
 
6079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6080
  (exit $ac_status); }; }; then
 
6081
  break
 
6082
else
 
6083
  echo "$as_me: failed program was:" >&5
 
6084
sed 's/^/| /' conftest.$ac_ext >&5
 
6085
 
 
6086
fi
 
6087
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6088
done
 
6089
rm -f conftest*
 
6090
if test -n "$ac_declaration"; then
 
6091
  echo '#ifdef __cplusplus' >>confdefs.h
 
6092
  echo $ac_declaration      >>confdefs.h
 
6093
  echo '#endif'             >>confdefs.h
 
6094
fi
 
6095
 
 
6096
ac_ext=cc
 
6097
ac_cpp='$CXXCPP $CPPFLAGS'
 
6098
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6099
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6100
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6101
 
 
6102
depcc="$CXX"  am_compiler_list=
 
6103
 
 
6104
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6105
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
6106
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6107
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6108
else
 
6109
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6110
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6111
  # making bogus files that we don't know about and never remove.  For
 
6112
  # instance it was reported that on HP-UX the gcc test will end up
 
6113
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6114
  # in D'.
 
6115
  mkdir conftest.dir
 
6116
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6117
  # using a relative directory.
 
6118
  cp "$am_depcomp" conftest.dir
 
6119
  cd conftest.dir
 
6120
  # We will build objects and dependencies in a subdirectory because
 
6121
  # it helps to detect inapplicable dependency modes.  For instance
 
6122
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6123
  # side effect of compilation, but ICC will put the dependencies in
 
6124
  # the current directory while Tru64 will put them in the object
 
6125
  # directory.
 
6126
  mkdir sub
 
6127
 
 
6128
  am_cv_CXX_dependencies_compiler_type=none
 
6129
  if test "$am_compiler_list" = ""; then
 
6130
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6131
  fi
 
6132
  for depmode in $am_compiler_list; do
 
6133
    # Setup a source with many dependencies, because some compilers
 
6134
    # like to wrap large dependency lists on column 80 (with \), and
 
6135
    # we should not choose a depcomp mode which is confused by this.
 
6136
    #
 
6137
    # We need to recreate these files for each test, as the compiler may
 
6138
    # overwrite some of them when testing with obscure command lines.
 
6139
    # This happens at least with the AIX C compiler.
 
6140
    : > sub/conftest.c
 
6141
    for i in 1 2 3 4 5 6; do
 
6142
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6143
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6144
      # Solaris 8's {/usr,}/bin/sh.
 
6145
      touch sub/conftst$i.h
 
6146
    done
 
6147
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6148
 
 
6149
    case $depmode in
 
6150
    nosideeffect)
 
6151
      # after this tag, mechanisms are not by side-effect, so they'll
 
6152
      # only be used when explicitly requested
 
6153
      if test "x$enable_dependency_tracking" = xyes; then
 
6154
        continue
 
6155
      else
 
6156
        break
 
6157
      fi
 
6158
      ;;
 
6159
    none) break ;;
 
6160
    esac
 
6161
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6162
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6163
    # handle `-M -o', and we need to detect this.
 
6164
    if depmode=$depmode \
 
6165
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6166
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6167
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6168
         >/dev/null 2>conftest.err &&
 
6169
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6170
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6171
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6172
      # icc doesn't choke on unknown options, it will just issue warnings
 
6173
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6174
      # that says an option was ignored or not supported.
 
6175
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6176
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6177
      # The diagnosis changed in icc 8.0:
 
6178
      #   icc: Command line remark: option '-MP' not supported
 
6179
      if (grep 'ignoring option' conftest.err ||
 
6180
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6181
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6182
        break
 
6183
      fi
 
6184
    fi
 
6185
  done
 
6186
 
 
6187
  cd ..
 
6188
  rm -rf conftest.dir
 
6189
else
 
6190
  am_cv_CXX_dependencies_compiler_type=none
 
6191
fi
 
6192
 
 
6193
fi
 
6194
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6195
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
6196
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6197
 
 
6198
 
 
6199
 
 
6200
if
 
6201
  test "x$enable_dependency_tracking" != xno \
 
6202
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6203
  am__fastdepCXX_TRUE=
 
6204
  am__fastdepCXX_FALSE='#'
 
6205
else
 
6206
  am__fastdepCXX_TRUE='#'
 
6207
  am__fastdepCXX_FALSE=
 
6208
fi
 
6209
 
 
6210
 
 
6211
ac_ext=cc
 
6212
ac_cpp='$CXXCPP $CPPFLAGS'
 
6213
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6214
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6215
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6216
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6217
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6218
if test -z "$CXXCPP"; then
 
6219
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6220
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6221
else
 
6222
      # Double quotes because CXXCPP needs to be expanded
 
6223
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6224
    do
 
6225
      ac_preproc_ok=false
 
6226
for ac_cxx_preproc_warn_flag in '' yes
 
6227
do
 
6228
  # Use a header file that comes with gcc, so configuring glibc
 
6229
  # with a fresh cross-compiler works.
 
6230
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6231
  # <limits.h> exists even on freestanding compilers.
 
6232
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6233
  # not just through cpp. "Syntax error" is here to catch this case.
 
6234
  cat >conftest.$ac_ext <<_ACEOF
 
6235
/* confdefs.h.  */
 
6236
_ACEOF
 
6237
cat confdefs.h >>conftest.$ac_ext
 
6238
cat >>conftest.$ac_ext <<_ACEOF
 
6239
/* end confdefs.h.  */
 
6240
#ifdef __STDC__
 
6241
# include <limits.h>
 
6242
#else
 
6243
# include <assert.h>
 
6244
#endif
 
6245
                     Syntax error
 
6246
_ACEOF
 
6247
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6248
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6249
  ac_status=$?
 
6250
  grep -v '^ *+' conftest.er1 >conftest.err
 
6251
  rm -f conftest.er1
 
6252
  cat conftest.err >&5
 
6253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6254
  (exit $ac_status); } >/dev/null; then
 
6255
  if test -s conftest.err; then
 
6256
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6257
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6258
  else
 
6259
    ac_cpp_err=
 
6260
  fi
 
6261
else
 
6262
  ac_cpp_err=yes
 
6263
fi
 
6264
if test -z "$ac_cpp_err"; then
 
6265
  :
 
6266
else
 
6267
  echo "$as_me: failed program was:" >&5
 
6268
sed 's/^/| /' conftest.$ac_ext >&5
 
6269
 
 
6270
  # Broken: fails on valid input.
 
6271
continue
 
6272
fi
 
6273
rm -f conftest.err conftest.$ac_ext
 
6274
 
 
6275
  # OK, works on sane cases.  Now check whether non-existent headers
 
6276
  # can be detected and how.
 
6277
  cat >conftest.$ac_ext <<_ACEOF
 
6278
/* confdefs.h.  */
 
6279
_ACEOF
 
6280
cat confdefs.h >>conftest.$ac_ext
 
6281
cat >>conftest.$ac_ext <<_ACEOF
 
6282
/* end confdefs.h.  */
 
6283
#include <ac_nonexistent.h>
 
6284
_ACEOF
 
6285
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6286
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6287
  ac_status=$?
 
6288
  grep -v '^ *+' conftest.er1 >conftest.err
 
6289
  rm -f conftest.er1
 
6290
  cat conftest.err >&5
 
6291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6292
  (exit $ac_status); } >/dev/null; then
 
6293
  if test -s conftest.err; then
 
6294
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6295
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6296
  else
 
6297
    ac_cpp_err=
 
6298
  fi
 
6299
else
 
6300
  ac_cpp_err=yes
 
6301
fi
 
6302
if test -z "$ac_cpp_err"; then
 
6303
  # Broken: success on invalid input.
 
6304
continue
 
6305
else
 
6306
  echo "$as_me: failed program was:" >&5
 
6307
sed 's/^/| /' conftest.$ac_ext >&5
 
6308
 
 
6309
  # Passes both tests.
 
6310
ac_preproc_ok=:
 
6311
break
 
6312
fi
 
6313
rm -f conftest.err conftest.$ac_ext
 
6314
 
 
6315
done
 
6316
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6317
rm -f conftest.err conftest.$ac_ext
 
6318
if $ac_preproc_ok; then
 
6319
  break
 
6320
fi
 
6321
 
 
6322
    done
 
6323
    ac_cv_prog_CXXCPP=$CXXCPP
 
6324
 
 
6325
fi
 
6326
  CXXCPP=$ac_cv_prog_CXXCPP
 
6327
else
 
6328
  ac_cv_prog_CXXCPP=$CXXCPP
 
6329
fi
 
6330
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6331
echo "${ECHO_T}$CXXCPP" >&6
 
6332
ac_preproc_ok=false
 
6333
for ac_cxx_preproc_warn_flag in '' yes
 
6334
do
 
6335
  # Use a header file that comes with gcc, so configuring glibc
 
6336
  # with a fresh cross-compiler works.
 
6337
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6338
  # <limits.h> exists even on freestanding compilers.
 
6339
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6340
  # not just through cpp. "Syntax error" is here to catch this case.
 
6341
  cat >conftest.$ac_ext <<_ACEOF
 
6342
/* confdefs.h.  */
 
6343
_ACEOF
 
6344
cat confdefs.h >>conftest.$ac_ext
 
6345
cat >>conftest.$ac_ext <<_ACEOF
 
6346
/* end confdefs.h.  */
 
6347
#ifdef __STDC__
 
6348
# include <limits.h>
 
6349
#else
 
6350
# include <assert.h>
 
6351
#endif
 
6352
                     Syntax error
 
6353
_ACEOF
 
6354
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6355
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6356
  ac_status=$?
 
6357
  grep -v '^ *+' conftest.er1 >conftest.err
 
6358
  rm -f conftest.er1
 
6359
  cat conftest.err >&5
 
6360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6361
  (exit $ac_status); } >/dev/null; then
 
6362
  if test -s conftest.err; then
 
6363
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6364
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6365
  else
 
6366
    ac_cpp_err=
 
6367
  fi
 
6368
else
 
6369
  ac_cpp_err=yes
 
6370
fi
 
6371
if test -z "$ac_cpp_err"; then
 
6372
  :
 
6373
else
 
6374
  echo "$as_me: failed program was:" >&5
 
6375
sed 's/^/| /' conftest.$ac_ext >&5
 
6376
 
 
6377
  # Broken: fails on valid input.
 
6378
continue
 
6379
fi
 
6380
rm -f conftest.err conftest.$ac_ext
 
6381
 
 
6382
  # OK, works on sane cases.  Now check whether non-existent headers
 
6383
  # can be detected and how.
 
6384
  cat >conftest.$ac_ext <<_ACEOF
 
6385
/* confdefs.h.  */
 
6386
_ACEOF
 
6387
cat confdefs.h >>conftest.$ac_ext
 
6388
cat >>conftest.$ac_ext <<_ACEOF
 
6389
/* end confdefs.h.  */
 
6390
#include <ac_nonexistent.h>
 
6391
_ACEOF
 
6392
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6393
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6394
  ac_status=$?
 
6395
  grep -v '^ *+' conftest.er1 >conftest.err
 
6396
  rm -f conftest.er1
 
6397
  cat conftest.err >&5
 
6398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6399
  (exit $ac_status); } >/dev/null; then
 
6400
  if test -s conftest.err; then
 
6401
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6402
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6403
  else
 
6404
    ac_cpp_err=
 
6405
  fi
 
6406
else
 
6407
  ac_cpp_err=yes
 
6408
fi
 
6409
if test -z "$ac_cpp_err"; then
 
6410
  # Broken: success on invalid input.
 
6411
continue
 
6412
else
 
6413
  echo "$as_me: failed program was:" >&5
 
6414
sed 's/^/| /' conftest.$ac_ext >&5
 
6415
 
 
6416
  # Passes both tests.
 
6417
ac_preproc_ok=:
 
6418
break
 
6419
fi
 
6420
rm -f conftest.err conftest.$ac_ext
 
6421
 
 
6422
done
 
6423
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6424
rm -f conftest.err conftest.$ac_ext
 
6425
if $ac_preproc_ok; then
 
6426
  :
 
6427
else
 
6428
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6429
See \`config.log' for more details." >&5
 
6430
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6431
See \`config.log' for more details." >&2;}
 
6432
   { (exit 1); exit 1; }; }
 
6433
fi
 
6434
 
 
6435
ac_ext=cc
 
6436
ac_cpp='$CXXCPP $CPPFLAGS'
 
6437
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6438
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6439
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6440
 
 
6441
 
 
6442
ac_ext=f
 
6443
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6444
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6445
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6446
if test -n "$ac_tool_prefix"; then
 
6447
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6448
  do
 
6449
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6450
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6451
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6452
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6453
if test "${ac_cv_prog_F77+set}" = set; then
 
6454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6455
else
 
6456
  if test -n "$F77"; then
 
6457
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6458
else
 
6459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6460
for as_dir in $PATH
 
6461
do
 
6462
  IFS=$as_save_IFS
 
6463
  test -z "$as_dir" && as_dir=.
 
6464
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6465
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6466
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6467
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6468
    break 2
 
6469
  fi
 
6470
done
 
6471
done
 
6472
 
 
6473
fi
 
6474
fi
 
6475
F77=$ac_cv_prog_F77
 
6476
if test -n "$F77"; then
 
6477
  echo "$as_me:$LINENO: result: $F77" >&5
 
6478
echo "${ECHO_T}$F77" >&6
 
6479
else
 
6480
  echo "$as_me:$LINENO: result: no" >&5
 
6481
echo "${ECHO_T}no" >&6
 
6482
fi
 
6483
 
 
6484
    test -n "$F77" && break
 
6485
  done
 
6486
fi
 
6487
if test -z "$F77"; then
 
6488
  ac_ct_F77=$F77
 
6489
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6490
do
 
6491
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6492
set dummy $ac_prog; ac_word=$2
 
6493
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6494
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6495
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6497
else
 
6498
  if test -n "$ac_ct_F77"; then
 
6499
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6500
else
 
6501
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6502
for as_dir in $PATH
 
6503
do
 
6504
  IFS=$as_save_IFS
 
6505
  test -z "$as_dir" && as_dir=.
 
6506
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6507
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6508
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6509
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6510
    break 2
 
6511
  fi
 
6512
done
 
6513
done
 
6514
 
 
6515
fi
 
6516
fi
 
6517
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6518
if test -n "$ac_ct_F77"; then
 
6519
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6520
echo "${ECHO_T}$ac_ct_F77" >&6
 
6521
else
 
6522
  echo "$as_me:$LINENO: result: no" >&5
 
6523
echo "${ECHO_T}no" >&6
 
6524
fi
 
6525
 
 
6526
  test -n "$ac_ct_F77" && break
 
6527
done
 
6528
 
 
6529
  F77=$ac_ct_F77
 
6530
fi
 
6531
 
 
6532
 
 
6533
# Provide some information about the compiler.
 
6534
echo "$as_me:6534:" \
 
6535
     "checking for Fortran 77 compiler version" >&5
 
6536
ac_compiler=`set X $ac_compile; echo $2`
 
6537
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6538
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6539
  ac_status=$?
 
6540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6541
  (exit $ac_status); }
 
6542
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6543
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6544
  ac_status=$?
 
6545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6546
  (exit $ac_status); }
 
6547
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6548
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6549
  ac_status=$?
 
6550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6551
  (exit $ac_status); }
 
6552
rm -f a.out
 
6553
 
 
6554
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6555
# input file.  (Note that this only needs to work for GNU compilers.)
 
6556
ac_save_ext=$ac_ext
 
6557
ac_ext=F
 
6558
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6559
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6560
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6562
else
 
6563
  cat >conftest.$ac_ext <<_ACEOF
 
6564
      program main
 
6565
#ifndef __GNUC__
 
6566
       choke me
 
6567
#endif
 
6568
 
 
6569
      end
 
6570
_ACEOF
 
6571
rm -f conftest.$ac_objext
 
6572
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6573
  (eval $ac_compile) 2>conftest.er1
 
6574
  ac_status=$?
 
6575
  grep -v '^ *+' conftest.er1 >conftest.err
 
6576
  rm -f conftest.er1
 
6577
  cat conftest.err >&5
 
6578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6579
  (exit $ac_status); } &&
 
6580
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6582
  (eval $ac_try) 2>&5
 
6583
  ac_status=$?
 
6584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6585
  (exit $ac_status); }; } &&
 
6586
         { ac_try='test -s conftest.$ac_objext'
 
6587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6588
  (eval $ac_try) 2>&5
 
6589
  ac_status=$?
 
6590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6591
  (exit $ac_status); }; }; then
 
6592
  ac_compiler_gnu=yes
 
6593
else
 
6594
  echo "$as_me: failed program was:" >&5
 
6595
sed 's/^/| /' conftest.$ac_ext >&5
 
6596
 
 
6597
ac_compiler_gnu=no
 
6598
fi
 
6599
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6600
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6601
 
 
6602
fi
 
6603
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6604
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6605
ac_ext=$ac_save_ext
 
6606
ac_test_FFLAGS=${FFLAGS+set}
 
6607
ac_save_FFLAGS=$FFLAGS
 
6608
FFLAGS=
 
6609
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6610
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6611
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6613
else
 
6614
  FFLAGS=-g
 
6615
cat >conftest.$ac_ext <<_ACEOF
 
6616
      program main
 
6617
 
 
6618
      end
 
6619
_ACEOF
 
6620
rm -f conftest.$ac_objext
 
6621
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6622
  (eval $ac_compile) 2>conftest.er1
 
6623
  ac_status=$?
 
6624
  grep -v '^ *+' conftest.er1 >conftest.err
 
6625
  rm -f conftest.er1
 
6626
  cat conftest.err >&5
 
6627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6628
  (exit $ac_status); } &&
 
6629
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6631
  (eval $ac_try) 2>&5
 
6632
  ac_status=$?
 
6633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6634
  (exit $ac_status); }; } &&
 
6635
         { ac_try='test -s conftest.$ac_objext'
 
6636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6637
  (eval $ac_try) 2>&5
 
6638
  ac_status=$?
 
6639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6640
  (exit $ac_status); }; }; then
 
6641
  ac_cv_prog_f77_g=yes
 
6642
else
 
6643
  echo "$as_me: failed program was:" >&5
 
6644
sed 's/^/| /' conftest.$ac_ext >&5
 
6645
 
 
6646
ac_cv_prog_f77_g=no
 
6647
fi
 
6648
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6649
 
 
6650
fi
 
6651
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6652
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6653
if test "$ac_test_FFLAGS" = set; then
 
6654
  FFLAGS=$ac_save_FFLAGS
 
6655
elif test $ac_cv_prog_f77_g = yes; then
 
6656
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6657
    FFLAGS="-g -O2"
 
6658
  else
 
6659
    FFLAGS="-g"
 
6660
  fi
 
6661
else
 
6662
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6663
    FFLAGS="-O2"
 
6664
  else
 
6665
    FFLAGS=
 
6666
  fi
 
6667
fi
 
6668
 
 
6669
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6670
ac_ext=c
 
6671
ac_cpp='$CPP $CPPFLAGS'
 
6672
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6673
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6674
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6675
 
 
6676
 
 
6677
 
 
6678
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6679
 
 
6680
# find the maximum length of command line arguments
 
6681
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6682
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6683
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6685
else
 
6686
    i=0
 
6687
  teststring="ABCD"
 
6688
 
 
6689
  case $build_os in
 
6690
  msdosdjgpp*)
 
6691
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6692
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6693
    # during glob expansion).  Even if it were fixed, the result of this
 
6694
    # check would be larger than it should be.
 
6695
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6696
    ;;
 
6697
 
 
6698
  gnu*)
 
6699
    # Under GNU Hurd, this test is not required because there is
 
6700
    # no limit to the length of command line arguments.
 
6701
    # Libtool will interpret -1 as no limit whatsoever
 
6702
    lt_cv_sys_max_cmd_len=-1;
 
6703
    ;;
 
6704
 
 
6705
  cygwin* | mingw*)
 
6706
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6707
    # about 5 minutes as the teststring grows exponentially.
 
6708
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6709
    # you end up with a "frozen" computer, even though with patience
 
6710
    # the test eventually succeeds (with a max line length of 256k).
 
6711
    # Instead, let's just punt: use the minimum linelength reported by
 
6712
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6713
    lt_cv_sys_max_cmd_len=8192;
 
6714
    ;;
 
6715
 
 
6716
  amigaos*)
 
6717
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6718
    # So we just punt and use a minimum line length of 8192.
 
6719
    lt_cv_sys_max_cmd_len=8192;
 
6720
    ;;
 
6721
 
 
6722
 *)
 
6723
    # If test is not a shell built-in, we'll probably end up computing a
 
6724
    # maximum length that is only half of the actual maximum length, but
 
6725
    # we can't tell.
 
6726
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6727
               = "XX$teststring") >/dev/null 2>&1 &&
 
6728
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6729
            lt_cv_sys_max_cmd_len=$new_result &&
 
6730
            test $i != 17 # 1/2 MB should be enough
 
6731
    do
 
6732
      i=`expr $i + 1`
 
6733
      teststring=$teststring$teststring
 
6734
    done
 
6735
    teststring=
 
6736
    # Add a significant safety factor because C++ compilers can tack on massive
 
6737
    # amounts of additional arguments before passing them to the linker.
 
6738
    # It appears as though 1/2 is a usable value.
 
6739
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6740
    ;;
 
6741
  esac
 
6742
 
 
6743
fi
 
6744
 
 
6745
if test -n $lt_cv_sys_max_cmd_len ; then
 
6746
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6747
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6748
else
 
6749
  echo "$as_me:$LINENO: result: none" >&5
 
6750
echo "${ECHO_T}none" >&6
 
6751
fi
 
6752
 
 
6753
 
 
6754
 
 
6755
 
 
6756
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6757
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6758
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6759
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6761
else
 
6762
 
 
6763
# These are sane defaults that work on at least a few old systems.
 
6764
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6765
 
 
6766
# Character class describing NM global symbol codes.
 
6767
symcode='[BCDEGRST]'
 
6768
 
 
6769
# Regexp to match symbols that can be accessed directly from C.
 
6770
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6771
 
 
6772
# Transform the above into a raw symbol and a C symbol.
 
6773
symxfrm='\1 \2\3 \3'
 
6774
 
 
6775
# Transform an extracted symbol line into a proper C declaration
 
6776
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6777
 
 
6778
# Transform an extracted symbol line into symbol name and symbol address
 
6779
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'"
 
6780
 
 
6781
# Define system-specific variables.
 
6782
case $host_os in
 
6783
aix*)
 
6784
  symcode='[BCDT]'
 
6785
  ;;
 
6786
cygwin* | mingw* | pw32*)
 
6787
  symcode='[ABCDGISTW]'
 
6788
  ;;
 
6789
hpux*) # Its linker distinguishes data from code symbols
 
6790
  if test "$host_cpu" = ia64; then
 
6791
    symcode='[ABCDEGRST]'
 
6792
  fi
 
6793
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6794
  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'"
 
6795
  ;;
 
6796
irix* | nonstopux*)
 
6797
  symcode='[BCDEGRST]'
 
6798
  ;;
 
6799
osf*)
 
6800
  symcode='[BCDEGQRST]'
 
6801
  ;;
 
6802
solaris* | sysv5*)
 
6803
  symcode='[BDRT]'
 
6804
  ;;
 
6805
sysv4)
 
6806
  symcode='[DFNSTU]'
 
6807
  ;;
 
6808
esac
 
6809
 
 
6810
# Handle CRLF in mingw tool chain
 
6811
opt_cr=
 
6812
case $build_os in
 
6813
mingw*)
 
6814
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6815
  ;;
 
6816
esac
 
6817
 
 
6818
# If we're using GNU nm, then use its standard symbol codes.
 
6819
case `$NM -V 2>&1` in
 
6820
*GNU* | *'with BFD'*)
 
6821
  symcode='[ABCDGIRSTW]' ;;
 
6822
esac
 
6823
 
 
6824
# Try without a prefix undercore, then with it.
 
6825
for ac_symprfx in "" "_"; do
 
6826
 
 
6827
  # Write the raw and C identifiers.
 
6828
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6829
 
 
6830
  # Check to see that the pipe works correctly.
 
6831
  pipe_works=no
 
6832
 
 
6833
  rm -f conftest*
 
6834
  cat > conftest.$ac_ext <<EOF
 
6835
#ifdef __cplusplus
 
6836
extern "C" {
 
6837
#endif
 
6838
char nm_test_var;
 
6839
void nm_test_func(){}
 
6840
#ifdef __cplusplus
 
6841
}
 
6842
#endif
 
6843
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6844
EOF
 
6845
 
 
6846
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6847
  (eval $ac_compile) 2>&5
 
6848
  ac_status=$?
 
6849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6850
  (exit $ac_status); }; then
 
6851
    # Now try to grab the symbols.
 
6852
    nlist=conftest.nm
 
6853
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6854
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6855
  ac_status=$?
 
6856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6857
  (exit $ac_status); } && test -s "$nlist"; then
 
6858
      # Try sorting and uniquifying the output.
 
6859
      if sort "$nlist" | uniq > "$nlist"T; then
 
6860
        mv -f "$nlist"T "$nlist"
 
6861
      else
 
6862
        rm -f "$nlist"T
 
6863
      fi
 
6864
 
 
6865
      # Make sure that we snagged all the symbols we need.
 
6866
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6867
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6868
          cat <<EOF > conftest.$ac_ext
 
6869
#ifdef __cplusplus
 
6870
extern "C" {
 
6871
#endif
 
6872
 
 
6873
EOF
 
6874
          # Now generate the symbol file.
 
6875
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6876
 
 
6877
          cat <<EOF >> conftest.$ac_ext
 
6878
#if defined (__STDC__) && __STDC__
 
6879
# define lt_ptr_t void *
 
6880
#else
 
6881
# define lt_ptr_t char *
 
6882
# define const
 
6883
#endif
 
6884
 
 
6885
/* The mapping between symbol names and symbols. */
 
6886
const struct {
 
6887
  const char *name;
 
6888
  lt_ptr_t address;
 
6889
}
 
6890
lt_preloaded_symbols[] =
 
6891
{
 
6892
EOF
 
6893
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6894
          cat <<\EOF >> conftest.$ac_ext
 
6895
  {0, (lt_ptr_t) 0}
 
6896
};
 
6897
 
 
6898
#ifdef __cplusplus
 
6899
}
 
6900
#endif
 
6901
EOF
 
6902
          # Now try linking the two files.
 
6903
          mv conftest.$ac_objext conftstm.$ac_objext
 
6904
          lt_save_LIBS="$LIBS"
 
6905
          lt_save_CFLAGS="$CFLAGS"
 
6906
          LIBS="conftstm.$ac_objext"
 
6907
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6908
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6909
  (eval $ac_link) 2>&5
 
6910
  ac_status=$?
 
6911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6912
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6913
            pipe_works=yes
 
6914
          fi
 
6915
          LIBS="$lt_save_LIBS"
 
6916
          CFLAGS="$lt_save_CFLAGS"
 
6917
        else
 
6918
          echo "cannot find nm_test_func in $nlist" >&5
 
6919
        fi
 
6920
      else
 
6921
        echo "cannot find nm_test_var in $nlist" >&5
 
6922
      fi
 
6923
    else
 
6924
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6925
    fi
 
6926
  else
 
6927
    echo "$progname: failed program was:" >&5
 
6928
    cat conftest.$ac_ext >&5
 
6929
  fi
 
6930
  rm -f conftest* conftst*
 
6931
 
 
6932
  # Do not use the global_symbol_pipe unless it works.
 
6933
  if test "$pipe_works" = yes; then
 
6934
    break
 
6935
  else
 
6936
    lt_cv_sys_global_symbol_pipe=
 
6937
  fi
 
6938
done
 
6939
 
 
6940
fi
 
6941
 
 
6942
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6943
  lt_cv_sys_global_symbol_to_cdecl=
 
6944
fi
 
6945
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6946
  echo "$as_me:$LINENO: result: failed" >&5
 
6947
echo "${ECHO_T}failed" >&6
 
6948
else
 
6949
  echo "$as_me:$LINENO: result: ok" >&5
 
6950
echo "${ECHO_T}ok" >&6
 
6951
fi
 
6952
 
 
6953
echo "$as_me:$LINENO: checking for objdir" >&5
 
6954
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6955
if test "${lt_cv_objdir+set}" = set; then
 
6956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6957
else
 
6958
  rm -f .libs 2>/dev/null
 
6959
mkdir .libs 2>/dev/null
 
6960
if test -d .libs; then
 
6961
  lt_cv_objdir=.libs
 
6962
else
 
6963
  # MS-DOS does not allow filenames that begin with a dot.
 
6964
  lt_cv_objdir=_libs
 
6965
fi
 
6966
rmdir .libs 2>/dev/null
 
6967
fi
 
6968
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6969
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6970
objdir=$lt_cv_objdir
 
6971
 
 
6972
 
 
6973
 
 
6974
 
 
6975
 
 
6976
case $host_os in
 
6977
aix3*)
 
6978
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6979
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6980
  # vanish in a puff of smoke.
 
6981
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6982
    COLLECT_NAMES=
 
6983
    export COLLECT_NAMES
 
6984
  fi
 
6985
  ;;
 
6986
esac
 
6987
 
 
6988
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6989
# metacharacters that are still active within double-quoted strings.
 
6990
Xsed='sed -e s/^X//'
 
6991
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6992
 
 
6993
# Same as above, but do not quote variable references.
 
6994
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6995
 
 
6996
# Sed substitution to delay expansion of an escaped shell variable in a
 
6997
# double_quote_subst'ed string.
 
6998
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6999
 
 
7000
# Sed substitution to avoid accidental globbing in evaled expressions
 
7001
no_glob_subst='s/\*/\\\*/g'
 
7002
 
 
7003
# Constants:
 
7004
rm="rm -f"
 
7005
 
 
7006
# Global variables:
 
7007
default_ofile=libtool
 
7008
can_build_shared=yes
 
7009
 
 
7010
# All known linkers require a `.a' archive for static linking (except M$VC,
 
7011
# which needs '.lib').
 
7012
libext=a
 
7013
ltmain="$ac_aux_dir/ltmain.sh"
 
7014
ofile="$default_ofile"
 
7015
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7016
 
 
7017
if test -n "$ac_tool_prefix"; then
 
7018
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7019
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7020
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7021
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7022
if test "${ac_cv_prog_AR+set}" = set; then
 
7023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7024
else
 
7025
  if test -n "$AR"; then
 
7026
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7027
else
 
7028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7029
for as_dir in $PATH
 
7030
do
 
7031
  IFS=$as_save_IFS
 
7032
  test -z "$as_dir" && as_dir=.
 
7033
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7034
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7035
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7036
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7037
    break 2
 
7038
  fi
 
7039
done
 
7040
done
 
7041
 
 
7042
fi
 
7043
fi
 
7044
AR=$ac_cv_prog_AR
 
7045
if test -n "$AR"; then
 
7046
  echo "$as_me:$LINENO: result: $AR" >&5
 
7047
echo "${ECHO_T}$AR" >&6
 
7048
else
 
7049
  echo "$as_me:$LINENO: result: no" >&5
 
7050
echo "${ECHO_T}no" >&6
 
7051
fi
 
7052
 
 
7053
fi
 
7054
if test -z "$ac_cv_prog_AR"; then
 
7055
  ac_ct_AR=$AR
 
7056
  # Extract the first word of "ar", so it can be a program name with args.
 
7057
set dummy ar; ac_word=$2
 
7058
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7059
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7060
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7062
else
 
7063
  if test -n "$ac_ct_AR"; then
 
7064
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7065
else
 
7066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7067
for as_dir in $PATH
 
7068
do
 
7069
  IFS=$as_save_IFS
 
7070
  test -z "$as_dir" && as_dir=.
 
7071
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7072
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7073
    ac_cv_prog_ac_ct_AR="ar"
 
7074
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7075
    break 2
 
7076
  fi
 
7077
done
 
7078
done
 
7079
 
 
7080
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
7081
fi
 
7082
fi
 
7083
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7084
if test -n "$ac_ct_AR"; then
 
7085
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7086
echo "${ECHO_T}$ac_ct_AR" >&6
 
7087
else
 
7088
  echo "$as_me:$LINENO: result: no" >&5
 
7089
echo "${ECHO_T}no" >&6
 
7090
fi
 
7091
 
 
7092
  AR=$ac_ct_AR
 
7093
else
 
7094
  AR="$ac_cv_prog_AR"
 
7095
fi
 
7096
 
 
7097
if test -n "$ac_tool_prefix"; then
 
7098
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7099
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7100
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7101
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7102
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7104
else
 
7105
  if test -n "$RANLIB"; then
 
7106
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7107
else
 
7108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7109
for as_dir in $PATH
 
7110
do
 
7111
  IFS=$as_save_IFS
 
7112
  test -z "$as_dir" && as_dir=.
 
7113
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7114
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7115
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7116
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7117
    break 2
 
7118
  fi
 
7119
done
 
7120
done
 
7121
 
 
7122
fi
 
7123
fi
 
7124
RANLIB=$ac_cv_prog_RANLIB
 
7125
if test -n "$RANLIB"; then
 
7126
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7127
echo "${ECHO_T}$RANLIB" >&6
 
7128
else
 
7129
  echo "$as_me:$LINENO: result: no" >&5
 
7130
echo "${ECHO_T}no" >&6
 
7131
fi
 
7132
 
 
7133
fi
 
7134
if test -z "$ac_cv_prog_RANLIB"; then
 
7135
  ac_ct_RANLIB=$RANLIB
 
7136
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7137
set dummy ranlib; ac_word=$2
 
7138
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7139
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7140
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7142
else
 
7143
  if test -n "$ac_ct_RANLIB"; then
 
7144
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7145
else
 
7146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7147
for as_dir in $PATH
 
7148
do
 
7149
  IFS=$as_save_IFS
 
7150
  test -z "$as_dir" && as_dir=.
 
7151
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7152
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7153
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7154
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7155
    break 2
 
7156
  fi
 
7157
done
 
7158
done
 
7159
 
 
7160
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
7161
fi
 
7162
fi
 
7163
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7164
if test -n "$ac_ct_RANLIB"; then
 
7165
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7166
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
7167
else
 
7168
  echo "$as_me:$LINENO: result: no" >&5
 
7169
echo "${ECHO_T}no" >&6
 
7170
fi
 
7171
 
 
7172
  RANLIB=$ac_ct_RANLIB
 
7173
else
 
7174
  RANLIB="$ac_cv_prog_RANLIB"
 
7175
fi
 
7176
 
 
7177
if test -n "$ac_tool_prefix"; then
 
7178
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7179
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7180
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7181
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7182
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7183
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7184
else
 
7185
  if test -n "$STRIP"; then
 
7186
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7187
else
 
7188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7189
for as_dir in $PATH
 
7190
do
 
7191
  IFS=$as_save_IFS
 
7192
  test -z "$as_dir" && as_dir=.
 
7193
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7194
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7195
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7196
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7197
    break 2
 
7198
  fi
 
7199
done
 
7200
done
 
7201
 
 
7202
fi
 
7203
fi
 
7204
STRIP=$ac_cv_prog_STRIP
 
7205
if test -n "$STRIP"; then
 
7206
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
7207
echo "${ECHO_T}$STRIP" >&6
 
7208
else
 
7209
  echo "$as_me:$LINENO: result: no" >&5
 
7210
echo "${ECHO_T}no" >&6
 
7211
fi
 
7212
 
 
7213
fi
 
7214
if test -z "$ac_cv_prog_STRIP"; then
 
7215
  ac_ct_STRIP=$STRIP
 
7216
  # Extract the first word of "strip", so it can be a program name with args.
 
7217
set dummy strip; ac_word=$2
 
7218
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7219
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7220
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7222
else
 
7223
  if test -n "$ac_ct_STRIP"; then
 
7224
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7225
else
 
7226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7227
for as_dir in $PATH
 
7228
do
 
7229
  IFS=$as_save_IFS
 
7230
  test -z "$as_dir" && as_dir=.
 
7231
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7232
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7233
    ac_cv_prog_ac_ct_STRIP="strip"
 
7234
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7235
    break 2
 
7236
  fi
 
7237
done
 
7238
done
 
7239
 
 
7240
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
7241
fi
 
7242
fi
 
7243
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7244
if test -n "$ac_ct_STRIP"; then
 
7245
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7246
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
7247
else
 
7248
  echo "$as_me:$LINENO: result: no" >&5
 
7249
echo "${ECHO_T}no" >&6
 
7250
fi
 
7251
 
 
7252
  STRIP=$ac_ct_STRIP
 
7253
else
 
7254
  STRIP="$ac_cv_prog_STRIP"
 
7255
fi
 
7256
 
 
7257
 
 
7258
old_CC="$CC"
 
7259
old_CFLAGS="$CFLAGS"
 
7260
 
 
7261
# Set sane defaults for various variables
 
7262
test -z "$AR" && AR=ar
 
7263
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7264
test -z "$AS" && AS=as
 
7265
test -z "$CC" && CC=cc
 
7266
test -z "$LTCC" && LTCC=$CC
 
7267
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7268
test -z "$LD" && LD=ld
 
7269
test -z "$LN_S" && LN_S="ln -s"
 
7270
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7271
test -z "$NM" && NM=nm
 
7272
test -z "$SED" && SED=sed
 
7273
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7274
test -z "$RANLIB" && RANLIB=:
 
7275
test -z "$STRIP" && STRIP=:
 
7276
test -z "$ac_objext" && ac_objext=o
 
7277
 
 
7278
# Determine commands to create old-style static archives.
 
7279
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7280
old_postinstall_cmds='chmod 644 $oldlib'
 
7281
old_postuninstall_cmds=
 
7282
 
 
7283
if test -n "$RANLIB"; then
 
7284
  case $host_os in
 
7285
  openbsd*)
 
7286
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
7287
    ;;
 
7288
  *)
 
7289
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
7290
    ;;
 
7291
  esac
 
7292
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7293
fi
 
7294
 
 
7295
# Only perform the check for file, if the check method requires it
 
7296
case $deplibs_check_method in
 
7297
file_magic*)
 
7298
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7299
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7300
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7301
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7302
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7303
else
 
7304
  case $MAGIC_CMD in
 
7305
[\\/*] |  ?:[\\/]*)
 
7306
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7307
  ;;
 
7308
*)
 
7309
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7311
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7312
  for ac_dir in $ac_dummy; do
 
7313
    IFS="$lt_save_ifs"
 
7314
    test -z "$ac_dir" && ac_dir=.
 
7315
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7316
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7317
      if test -n "$file_magic_test_file"; then
 
7318
        case $deplibs_check_method in
 
7319
        "file_magic "*)
 
7320
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7321
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7322
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7323
            $EGREP "$file_magic_regex" > /dev/null; then
 
7324
            :
 
7325
          else
 
7326
            cat <<EOF 1>&2
 
7327
 
 
7328
*** Warning: the command libtool uses to detect shared libraries,
 
7329
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7330
*** The result is that libtool may fail to recognize shared libraries
 
7331
*** as such.  This will affect the creation of libtool libraries that
 
7332
*** depend on shared libraries, but programs linked with such libtool
 
7333
*** libraries will work regardless of this problem.  Nevertheless, you
 
7334
*** may want to report the problem to your system manager and/or to
 
7335
*** bug-libtool@gnu.org
 
7336
 
 
7337
EOF
 
7338
          fi ;;
 
7339
        esac
 
7340
      fi
 
7341
      break
 
7342
    fi
 
7343
  done
 
7344
  IFS="$lt_save_ifs"
 
7345
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7346
  ;;
 
7347
esac
 
7348
fi
 
7349
 
 
7350
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7351
if test -n "$MAGIC_CMD"; then
 
7352
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7353
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7354
else
 
7355
  echo "$as_me:$LINENO: result: no" >&5
 
7356
echo "${ECHO_T}no" >&6
 
7357
fi
 
7358
 
 
7359
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7360
  if test -n "$ac_tool_prefix"; then
 
7361
    echo "$as_me:$LINENO: checking for file" >&5
 
7362
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
7363
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7364
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7365
else
 
7366
  case $MAGIC_CMD in
 
7367
[\\/*] |  ?:[\\/]*)
 
7368
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7369
  ;;
 
7370
*)
 
7371
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7372
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7373
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7374
  for ac_dir in $ac_dummy; do
 
7375
    IFS="$lt_save_ifs"
 
7376
    test -z "$ac_dir" && ac_dir=.
 
7377
    if test -f $ac_dir/file; then
 
7378
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7379
      if test -n "$file_magic_test_file"; then
 
7380
        case $deplibs_check_method in
 
7381
        "file_magic "*)
 
7382
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7383
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7384
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7385
            $EGREP "$file_magic_regex" > /dev/null; then
 
7386
            :
 
7387
          else
 
7388
            cat <<EOF 1>&2
 
7389
 
 
7390
*** Warning: the command libtool uses to detect shared libraries,
 
7391
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7392
*** The result is that libtool may fail to recognize shared libraries
 
7393
*** as such.  This will affect the creation of libtool libraries that
 
7394
*** depend on shared libraries, but programs linked with such libtool
 
7395
*** libraries will work regardless of this problem.  Nevertheless, you
 
7396
*** may want to report the problem to your system manager and/or to
 
7397
*** bug-libtool@gnu.org
 
7398
 
 
7399
EOF
 
7400
          fi ;;
 
7401
        esac
 
7402
      fi
 
7403
      break
 
7404
    fi
 
7405
  done
 
7406
  IFS="$lt_save_ifs"
 
7407
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7408
  ;;
 
7409
esac
 
7410
fi
 
7411
 
 
7412
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7413
if test -n "$MAGIC_CMD"; then
 
7414
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7415
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7416
else
 
7417
  echo "$as_me:$LINENO: result: no" >&5
 
7418
echo "${ECHO_T}no" >&6
 
7419
fi
 
7420
 
 
7421
  else
 
7422
    MAGIC_CMD=:
 
7423
  fi
 
7424
fi
 
7425
 
 
7426
  fi
 
7427
  ;;
 
7428
esac
 
7429
 
 
7430
enable_dlopen=no
 
7431
enable_win32_dll=no
 
7432
 
 
7433
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7434
if test "${enable_libtool_lock+set}" = set; then
 
7435
  enableval="$enable_libtool_lock"
 
7436
 
 
7437
fi;
 
7438
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7439
 
 
7440
 
 
7441
# Check whether --with-pic or --without-pic was given.
 
7442
if test "${with_pic+set}" = set; then
 
7443
  withval="$with_pic"
 
7444
  pic_mode="$withval"
 
7445
else
 
7446
  pic_mode=default
 
7447
fi;
 
7448
test -z "$pic_mode" && pic_mode=default
 
7449
 
 
7450
# Use C for the default configuration in the libtool script
 
7451
tagname=
 
7452
lt_save_CC="$CC"
 
7453
ac_ext=c
 
7454
ac_cpp='$CPP $CPPFLAGS'
 
7455
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7456
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7457
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7458
 
 
7459
 
 
7460
# Source file extension for C test sources.
 
7461
ac_ext=c
 
7462
 
 
7463
# Object file extension for compiled C test sources.
 
7464
objext=o
 
7465
objext=$objext
 
7466
 
 
7467
# Code to be used in simple compile tests
 
7468
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7469
 
 
7470
# Code to be used in simple link tests
 
7471
lt_simple_link_test_code='int main(){return(0);}\n'
 
7472
 
 
7473
 
 
7474
# If no C compiler was specified, use CC.
 
7475
LTCC=${LTCC-"$CC"}
 
7476
 
 
7477
# Allow CC to be a program name with arguments.
 
7478
compiler=$CC
 
7479
 
 
7480
 
 
7481
#
 
7482
# Check for any special shared library compilation flags.
 
7483
#
 
7484
lt_prog_cc_shlib=
 
7485
if test "$GCC" = no; then
 
7486
  case $host_os in
 
7487
  sco3.2v5*)
 
7488
    lt_prog_cc_shlib='-belf'
 
7489
    ;;
 
7490
  esac
 
7491
fi
 
7492
if test -n "$lt_prog_cc_shlib"; then
 
7493
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
7494
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
7495
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
7496
  else
 
7497
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
7498
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
7499
    lt_cv_prog_cc_can_build_shared=no
 
7500
  fi
 
7501
fi
 
7502
 
 
7503
 
 
7504
#
 
7505
# Check to make sure the static flag actually works.
 
7506
#
 
7507
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
7508
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
7509
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7511
else
 
7512
  lt_prog_compiler_static_works=no
 
7513
   save_LDFLAGS="$LDFLAGS"
 
7514
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
7515
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7516
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7517
     # The compiler can only warn and ignore the option if not recognized
 
7518
     # So say no if there are warnings
 
7519
     if test -s conftest.err; then
 
7520
       # Append any errors to the config.log.
 
7521
       cat conftest.err 1>&5
 
7522
     else
 
7523
       lt_prog_compiler_static_works=yes
 
7524
     fi
 
7525
   fi
 
7526
   $rm conftest*
 
7527
   LDFLAGS="$save_LDFLAGS"
 
7528
 
 
7529
fi
 
7530
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7531
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7532
 
 
7533
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7534
    :
 
7535
else
 
7536
    lt_prog_compiler_static=
 
7537
fi
 
7538
 
 
7539
 
 
7540
 
 
7541
 
 
7542
lt_prog_compiler_no_builtin_flag=
 
7543
 
 
7544
if test "$GCC" = yes; then
 
7545
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7546
 
 
7547
 
 
7548
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7549
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7550
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7552
else
 
7553
  lt_cv_prog_compiler_rtti_exceptions=no
 
7554
  ac_outfile=conftest.$ac_objext
 
7555
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7556
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7557
   # Insert the option either (1) after the last *FLAGS variable, or
 
7558
   # (2) before a word containing "conftest.", or (3) at the end.
 
7559
   # Note that $ac_compile itself does not contain backslashes and begins
 
7560
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7561
   # The option is referenced via a variable to avoid confusing sed.
 
7562
   lt_compile=`echo "$ac_compile" | $SED \
 
7563
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7564
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7565
   -e 's:$: $lt_compiler_flag:'`
 
7566
   (eval echo "\"\$as_me:7566: $lt_compile\"" >&5)
 
7567
   (eval "$lt_compile" 2>conftest.err)
 
7568
   ac_status=$?
 
7569
   cat conftest.err >&5
 
7570
   echo "$as_me:7570: \$? = $ac_status" >&5
 
7571
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7572
     # The compiler can only warn and ignore the option if not recognized
 
7573
     # So say no if there are warnings
 
7574
     if test ! -s conftest.err; then
 
7575
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7576
     fi
 
7577
   fi
 
7578
   $rm conftest*
 
7579
 
 
7580
fi
 
7581
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7582
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7583
 
 
7584
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7585
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7586
else
 
7587
    :
 
7588
fi
 
7589
 
 
7590
fi
 
7591
 
 
7592
lt_prog_compiler_wl=
 
7593
lt_prog_compiler_pic=
 
7594
lt_prog_compiler_static=
 
7595
 
 
7596
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7597
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7598
 
 
7599
  if test "$GCC" = yes; then
 
7600
    lt_prog_compiler_wl='-Wl,'
 
7601
    lt_prog_compiler_static='-static'
 
7602
 
 
7603
    case $host_os in
 
7604
      aix*)
 
7605
      # All AIX code is PIC.
 
7606
      if test "$host_cpu" = ia64; then
 
7607
        # AIX 5 now supports IA64 processor
 
7608
        lt_prog_compiler_static='-Bstatic'
 
7609
      fi
 
7610
      ;;
 
7611
 
 
7612
    amigaos*)
 
7613
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7614
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7615
      # like `-m68040'.
 
7616
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7617
      ;;
 
7618
 
 
7619
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7620
      # PIC is the default for these OSes.
 
7621
      ;;
 
7622
 
 
7623
    mingw* | pw32* | os2*)
 
7624
      # This hack is so that the source file can tell whether it is being
 
7625
      # built for inclusion in a dll (and should export symbols for example).
 
7626
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7627
      ;;
 
7628
 
 
7629
    darwin* | rhapsody*)
 
7630
      # PIC is the default on this platform
 
7631
      # Common symbols not allowed in MH_DYLIB files
 
7632
      lt_prog_compiler_pic='-fno-common'
 
7633
      ;;
 
7634
 
 
7635
    msdosdjgpp*)
 
7636
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7637
      # on systems that don't support them.
 
7638
      lt_prog_compiler_can_build_shared=no
 
7639
      enable_shared=no
 
7640
      ;;
 
7641
 
 
7642
    sysv4*MP*)
 
7643
      if test -d /usr/nec; then
 
7644
        lt_prog_compiler_pic=-Kconform_pic
 
7645
      fi
 
7646
      ;;
 
7647
 
 
7648
    hpux*)
 
7649
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7650
      # not for PA HP-UX.
 
7651
      case "$host_cpu" in
 
7652
      hppa*64*|ia64*)
 
7653
        # +Z the default
 
7654
        ;;
 
7655
      *)
 
7656
        lt_prog_compiler_pic='-fPIC'
 
7657
        ;;
 
7658
      esac
 
7659
      ;;
 
7660
 
 
7661
    *)
 
7662
      lt_prog_compiler_pic='-fPIC'
 
7663
      ;;
 
7664
    esac
 
7665
  else
 
7666
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7667
    case $host_os in
 
7668
    aix*)
 
7669
      lt_prog_compiler_wl='-Wl,'
 
7670
      if test "$host_cpu" = ia64; then
 
7671
        # AIX 5 now supports IA64 processor
 
7672
        lt_prog_compiler_static='-Bstatic'
 
7673
      else
 
7674
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7675
      fi
 
7676
      ;;
 
7677
 
 
7678
    mingw* | pw32* | os2*)
 
7679
      # This hack is so that the source file can tell whether it is being
 
7680
      # built for inclusion in a dll (and should export symbols for example).
 
7681
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7682
      ;;
 
7683
 
 
7684
    hpux9* | hpux10* | hpux11*)
 
7685
      lt_prog_compiler_wl='-Wl,'
 
7686
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7687
      # not for PA HP-UX.
 
7688
      case "$host_cpu" in
 
7689
      hppa*64*|ia64*)
 
7690
        # +Z the default
 
7691
        ;;
 
7692
      *)
 
7693
        lt_prog_compiler_pic='+Z'
 
7694
        ;;
 
7695
      esac
 
7696
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7697
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7698
      ;;
 
7699
 
 
7700
    irix5* | irix6* | nonstopux*)
 
7701
      lt_prog_compiler_wl='-Wl,'
 
7702
      # PIC (with -KPIC) is the default.
 
7703
      lt_prog_compiler_static='-non_shared'
 
7704
      ;;
 
7705
 
 
7706
    newsos6)
 
7707
      lt_prog_compiler_pic='-KPIC'
 
7708
      lt_prog_compiler_static='-Bstatic'
 
7709
      ;;
 
7710
 
 
7711
    linux*)
 
7712
      case $CC in
 
7713
      icc* | ecc*)
 
7714
        lt_prog_compiler_wl='-Wl,'
 
7715
        lt_prog_compiler_pic='-KPIC'
 
7716
        lt_prog_compiler_static='-static'
 
7717
        ;;
 
7718
      ccc*)
 
7719
        lt_prog_compiler_wl='-Wl,'
 
7720
        # All Alpha code is PIC.
 
7721
        lt_prog_compiler_static='-non_shared'
 
7722
        ;;
 
7723
      esac
 
7724
      ;;
 
7725
 
 
7726
    osf3* | osf4* | osf5*)
 
7727
      lt_prog_compiler_wl='-Wl,'
 
7728
      # All OSF/1 code is PIC.
 
7729
      lt_prog_compiler_static='-non_shared'
 
7730
      ;;
 
7731
 
 
7732
    sco3.2v5*)
 
7733
      lt_prog_compiler_pic='-Kpic'
 
7734
      lt_prog_compiler_static='-dn'
 
7735
      ;;
 
7736
 
 
7737
    solaris*)
 
7738
      lt_prog_compiler_wl='-Wl,'
 
7739
      lt_prog_compiler_pic='-KPIC'
 
7740
      lt_prog_compiler_static='-Bstatic'
 
7741
      ;;
 
7742
 
 
7743
    sunos4*)
 
7744
      lt_prog_compiler_wl='-Qoption ld '
 
7745
      lt_prog_compiler_pic='-PIC'
 
7746
      lt_prog_compiler_static='-Bstatic'
 
7747
      ;;
 
7748
 
 
7749
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7750
      lt_prog_compiler_wl='-Wl,'
 
7751
      lt_prog_compiler_pic='-KPIC'
 
7752
      lt_prog_compiler_static='-Bstatic'
 
7753
      ;;
 
7754
 
 
7755
    sysv4*MP*)
 
7756
      if test -d /usr/nec ;then
 
7757
        lt_prog_compiler_pic='-Kconform_pic'
 
7758
        lt_prog_compiler_static='-Bstatic'
 
7759
      fi
 
7760
      ;;
 
7761
 
 
7762
    uts4*)
 
7763
      lt_prog_compiler_pic='-pic'
 
7764
      lt_prog_compiler_static='-Bstatic'
 
7765
      ;;
 
7766
 
 
7767
    *)
 
7768
      lt_prog_compiler_can_build_shared=no
 
7769
      ;;
 
7770
    esac
 
7771
  fi
 
7772
 
 
7773
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7774
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7775
 
 
7776
#
 
7777
# Check to make sure the PIC flag actually works.
 
7778
#
 
7779
if test -n "$lt_prog_compiler_pic"; then
 
7780
 
 
7781
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7782
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
7783
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7784
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7785
else
 
7786
  lt_prog_compiler_pic_works=no
 
7787
  ac_outfile=conftest.$ac_objext
 
7788
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7789
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7790
   # Insert the option either (1) after the last *FLAGS variable, or
 
7791
   # (2) before a word containing "conftest.", or (3) at the end.
 
7792
   # Note that $ac_compile itself does not contain backslashes and begins
 
7793
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7794
   # The option is referenced via a variable to avoid confusing sed.
 
7795
   lt_compile=`echo "$ac_compile" | $SED \
 
7796
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7797
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7798
   -e 's:$: $lt_compiler_flag:'`
 
7799
   (eval echo "\"\$as_me:7799: $lt_compile\"" >&5)
 
7800
   (eval "$lt_compile" 2>conftest.err)
 
7801
   ac_status=$?
 
7802
   cat conftest.err >&5
 
7803
   echo "$as_me:7803: \$? = $ac_status" >&5
 
7804
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7805
     # The compiler can only warn and ignore the option if not recognized
 
7806
     # So say no if there are warnings
 
7807
     if test ! -s conftest.err; then
 
7808
       lt_prog_compiler_pic_works=yes
 
7809
     fi
 
7810
   fi
 
7811
   $rm conftest*
 
7812
 
 
7813
fi
 
7814
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7815
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7816
 
 
7817
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7818
    case $lt_prog_compiler_pic in
 
7819
     "" | " "*) ;;
 
7820
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7821
     esac
 
7822
else
 
7823
    lt_prog_compiler_pic=
 
7824
     lt_prog_compiler_can_build_shared=no
 
7825
fi
 
7826
 
 
7827
fi
 
7828
case "$host_os" in
 
7829
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7830
  *djgpp*)
 
7831
    lt_prog_compiler_pic=
 
7832
    ;;
 
7833
  *)
 
7834
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7835
    ;;
 
7836
esac
 
7837
 
 
7838
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7839
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
7840
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7842
else
 
7843
  lt_cv_prog_compiler_c_o=no
 
7844
   $rm -r conftest 2>/dev/null
 
7845
   mkdir conftest
 
7846
   cd conftest
 
7847
   mkdir out
 
7848
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7849
 
 
7850
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7851
   # Insert the option either (1) after the last *FLAGS variable, or
 
7852
   # (2) before a word containing "conftest.", or (3) at the end.
 
7853
   # Note that $ac_compile itself does not contain backslashes and begins
 
7854
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7855
   lt_compile=`echo "$ac_compile" | $SED \
 
7856
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7857
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7858
   -e 's:$: $lt_compiler_flag:'`
 
7859
   (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
 
7860
   (eval "$lt_compile" 2>out/conftest.err)
 
7861
   ac_status=$?
 
7862
   cat out/conftest.err >&5
 
7863
   echo "$as_me:7863: \$? = $ac_status" >&5
 
7864
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7865
   then
 
7866
     # The compiler can only warn and ignore the option if not recognized
 
7867
     # So say no if there are warnings
 
7868
     if test ! -s out/conftest.err; then
 
7869
       lt_cv_prog_compiler_c_o=yes
 
7870
     fi
 
7871
   fi
 
7872
   chmod u+w .
 
7873
   $rm conftest*
 
7874
   # SGI C++ compiler will create directory out/ii_files/ for
 
7875
   # template instantiation
 
7876
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7877
   $rm out/* && rmdir out
 
7878
   cd ..
 
7879
   rmdir conftest
 
7880
   $rm conftest*
 
7881
 
 
7882
fi
 
7883
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7884
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7885
 
 
7886
 
 
7887
hard_links="nottested"
 
7888
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7889
  # do not overwrite the value of need_locks provided by the user
 
7890
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7891
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
7892
  hard_links=yes
 
7893
  $rm conftest*
 
7894
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7895
  touch conftest.a
 
7896
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7897
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7898
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
7899
echo "${ECHO_T}$hard_links" >&6
 
7900
  if test "$hard_links" = no; then
 
7901
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7902
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7903
    need_locks=warn
 
7904
  fi
 
7905
else
 
7906
  need_locks=no
 
7907
fi
 
7908
 
 
7909
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7910
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
7911
 
 
7912
  runpath_var=
 
7913
  allow_undefined_flag=
 
7914
  enable_shared_with_static_runtimes=no
 
7915
  archive_cmds=
 
7916
  archive_expsym_cmds=
 
7917
  old_archive_From_new_cmds=
 
7918
  old_archive_from_expsyms_cmds=
 
7919
  export_dynamic_flag_spec=
 
7920
  whole_archive_flag_spec=
 
7921
  thread_safe_flag_spec=
 
7922
  hardcode_libdir_flag_spec=
 
7923
  hardcode_libdir_flag_spec_ld=
 
7924
  hardcode_libdir_separator=
 
7925
  hardcode_direct=no
 
7926
  hardcode_minus_L=no
 
7927
  hardcode_shlibpath_var=unsupported
 
7928
  link_all_deplibs=unknown
 
7929
  hardcode_automatic=no
 
7930
  module_cmds=
 
7931
  module_expsym_cmds=
 
7932
  always_export_symbols=no
 
7933
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7934
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7935
  # included in the symbol list
 
7936
  include_expsyms=
 
7937
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7938
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7939
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7940
  # as well as any symbol that contains `d'.
 
7941
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7942
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7943
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7944
  # the symbol is explicitly referenced.  Since portable code cannot
 
7945
  # rely on this symbol name, it's probably fine to never include it in
 
7946
  # preloaded symbol tables.
 
7947
  extract_expsyms_cmds=
 
7948
 
 
7949
  case $host_os in
 
7950
  cygwin* | mingw* | pw32*)
 
7951
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7952
    # When not using gcc, we currently assume that we are using
 
7953
    # Microsoft Visual C++.
 
7954
    if test "$GCC" != yes; then
 
7955
      with_gnu_ld=no
 
7956
    fi
 
7957
    ;;
 
7958
  openbsd*)
 
7959
    with_gnu_ld=no
 
7960
    ;;
 
7961
  esac
 
7962
 
 
7963
  ld_shlibs=yes
 
7964
  if test "$with_gnu_ld" = yes; then
 
7965
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7966
    wlarc='${wl}'
 
7967
 
 
7968
    # See if GNU ld supports shared libraries.
 
7969
    case $host_os in
 
7970
    aix3* | aix4* | aix5*)
 
7971
      # On AIX/PPC, the GNU linker is very broken
 
7972
      if test "$host_cpu" != ia64; then
 
7973
        ld_shlibs=no
 
7974
        cat <<EOF 1>&2
 
7975
 
 
7976
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7977
*** to be unable to reliably create shared libraries on AIX.
 
7978
*** Therefore, libtool is disabling shared libraries support.  If you
 
7979
*** really care for shared libraries, you may want to modify your PATH
 
7980
*** so that a non-GNU linker is found, and then restart.
 
7981
 
 
7982
EOF
 
7983
      fi
 
7984
      ;;
 
7985
 
 
7986
    amigaos*)
 
7987
      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)'
 
7988
      hardcode_libdir_flag_spec='-L$libdir'
 
7989
      hardcode_minus_L=yes
 
7990
 
 
7991
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7992
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7993
      # to version 4, is to share data among multiple programs linked
 
7994
      # with the same dynamic library.  Since this doesn't match the
 
7995
      # behavior of shared libraries on other platforms, we can't use
 
7996
      # them.
 
7997
      ld_shlibs=no
 
7998
      ;;
 
7999
 
 
8000
    beos*)
 
8001
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8002
        allow_undefined_flag=unsupported
 
8003
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8004
        # support --undefined.  This deserves some investigation.  FIXME
 
8005
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8006
      else
 
8007
        ld_shlibs=no
 
8008
      fi
 
8009
      ;;
 
8010
 
 
8011
    cygwin* | mingw* | pw32*)
 
8012
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8013
      # as there is no search path for DLLs.
 
8014
      hardcode_libdir_flag_spec='-L$libdir'
 
8015
      allow_undefined_flag=unsupported
 
8016
      always_export_symbols=no
 
8017
      enable_shared_with_static_runtimes=yes
 
8018
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8019
 
 
8020
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8021
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
8022
        # If the export-symbols file already is a .def file (1st line
 
8023
        # is EXPORTS), use it as is; otherwise, prepend...
 
8024
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8025
          cp $export_symbols $output_objdir/$soname.def;
 
8026
        else
 
8027
          echo EXPORTS > $output_objdir/$soname.def;
 
8028
          cat $export_symbols >> $output_objdir/$soname.def;
 
8029
        fi~
 
8030
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
8031
      else
 
8032
        ld_shlibs=no
 
8033
      fi
 
8034
      ;;
 
8035
 
 
8036
    netbsd* | knetbsd*-gnu)
 
8037
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8038
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8039
        wlarc=
 
8040
      else
 
8041
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8042
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8043
      fi
 
8044
      ;;
 
8045
 
 
8046
    solaris* | sysv5*)
 
8047
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8048
        ld_shlibs=no
 
8049
        cat <<EOF 1>&2
 
8050
 
 
8051
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8052
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8053
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8054
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8055
*** your PATH or compiler configuration so that the native linker is
 
8056
*** used, and then restart.
 
8057
 
 
8058
EOF
 
8059
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8060
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8061
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8062
      else
 
8063
        ld_shlibs=no
 
8064
      fi
 
8065
      ;;
 
8066
 
 
8067
    sunos4*)
 
8068
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8069
      wlarc=
 
8070
      hardcode_direct=yes
 
8071
      hardcode_shlibpath_var=no
 
8072
      ;;
 
8073
 
 
8074
  linux*)
 
8075
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8076
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8077
        archive_cmds="$tmp_archive_cmds"
 
8078
      supports_anon_versioning=no
 
8079
      case `$LD -v 2>/dev/null` in
 
8080
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8081
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8082
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8083
        *\ 2.11.*) ;; # other 2.11 versions
 
8084
        *) supports_anon_versioning=yes ;;
 
8085
      esac
 
8086
      if test $supports_anon_versioning = yes; then
 
8087
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8088
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8089
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
8090
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8091
      else
 
8092
        archive_expsym_cmds="$tmp_archive_cmds"
 
8093
      fi
 
8094
      link_all_deplibs=no
 
8095
    else
 
8096
      ld_shlibs=no
 
8097
    fi
 
8098
    ;;
 
8099
 
 
8100
    *)
 
8101
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8102
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8103
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8104
      else
 
8105
        ld_shlibs=no
 
8106
      fi
 
8107
      ;;
 
8108
    esac
 
8109
 
 
8110
    if test "$ld_shlibs" = yes; then
 
8111
      runpath_var=LD_RUN_PATH
 
8112
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8113
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
8114
      # ancient GNU ld didn't support --whole-archive et. al.
 
8115
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8116
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8117
      else
 
8118
        whole_archive_flag_spec=
 
8119
      fi
 
8120
    fi
 
8121
  else
 
8122
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8123
    case $host_os in
 
8124
    aix3*)
 
8125
      allow_undefined_flag=unsupported
 
8126
      always_export_symbols=yes
 
8127
      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'
 
8128
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8129
      # are no directories specified by -L.
 
8130
      hardcode_minus_L=yes
 
8131
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8132
        # Neither direct hardcoding nor static linking is supported with a
 
8133
        # broken collect2.
 
8134
        hardcode_direct=unsupported
 
8135
      fi
 
8136
      ;;
 
8137
 
 
8138
    aix4* | aix5*)
 
8139
      if test "$host_cpu" = ia64; then
 
8140
        # On IA64, the linker does run time linking by default, so we don't
 
8141
        # have to do anything special.
 
8142
        aix_use_runtimelinking=no
 
8143
        exp_sym_flag='-Bexport'
 
8144
        no_entry_flag=""
 
8145
      else
 
8146
        # If we're using GNU nm, then we don't want the "-C" option.
 
8147
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8148
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8149
          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'
 
8150
        else
 
8151
          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'
 
8152
        fi
 
8153
        aix_use_runtimelinking=no
 
8154
 
 
8155
        # Test if we are trying to use run time linking or normal
 
8156
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8157
        # need to do runtime linking.
 
8158
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8159
          for ld_flag in $LDFLAGS; do
 
8160
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8161
            aix_use_runtimelinking=yes
 
8162
            break
 
8163
          fi
 
8164
          done
 
8165
        esac
 
8166
 
 
8167
        exp_sym_flag='-bexport'
 
8168
        no_entry_flag='-bnoentry'
 
8169
      fi
 
8170
 
 
8171
      # When large executables or shared objects are built, AIX ld can
 
8172
      # have problems creating the table of contents.  If linking a library
 
8173
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8174
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8175
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8176
 
 
8177
      archive_cmds=''
 
8178
      hardcode_direct=yes
 
8179
      hardcode_libdir_separator=':'
 
8180
      link_all_deplibs=yes
 
8181
 
 
8182
      if test "$GCC" = yes; then
 
8183
        case $host_os in aix4.012|aix4.012.*)
 
8184
        # We only want to do this on AIX 4.2 and lower, the check
 
8185
        # below for broken collect2 doesn't work under 4.3+
 
8186
          collect2name=`${CC} -print-prog-name=collect2`
 
8187
          if test -f "$collect2name" && \
 
8188
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8189
          then
 
8190
          # We have reworked collect2
 
8191
          hardcode_direct=yes
 
8192
          else
 
8193
          # We have old collect2
 
8194
          hardcode_direct=unsupported
 
8195
          # It fails to find uninstalled libraries when the uninstalled
 
8196
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8197
          # to unsupported forces relinking
 
8198
          hardcode_minus_L=yes
 
8199
          hardcode_libdir_flag_spec='-L$libdir'
 
8200
          hardcode_libdir_separator=
 
8201
          fi
 
8202
        esac
 
8203
        shared_flag='-shared'
 
8204
      else
 
8205
        # not using gcc
 
8206
        if test "$host_cpu" = ia64; then
 
8207
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8208
        # chokes on -Wl,-G. The following line is correct:
 
8209
          shared_flag='-G'
 
8210
        else
 
8211
        if test "$aix_use_runtimelinking" = yes; then
 
8212
            shared_flag='${wl}-G'
 
8213
          else
 
8214
            shared_flag='${wl}-bM:SRE'
 
8215
        fi
 
8216
        fi
 
8217
      fi
 
8218
 
 
8219
      # It seems that -bexpall does not export symbols beginning with
 
8220
      # underscore (_), so it is better to generate a list of symbols to export.
 
8221
      always_export_symbols=yes
 
8222
      if test "$aix_use_runtimelinking" = yes; then
 
8223
        # Warning - without using the other runtime loading flags (-brtl),
 
8224
        # -berok will link without error, but may produce a broken library.
 
8225
        allow_undefined_flag='-berok'
 
8226
       # Determine the default libpath from the value encoded in an empty executable.
 
8227
       cat >conftest.$ac_ext <<_ACEOF
 
8228
/* confdefs.h.  */
 
8229
_ACEOF
 
8230
cat confdefs.h >>conftest.$ac_ext
 
8231
cat >>conftest.$ac_ext <<_ACEOF
 
8232
/* end confdefs.h.  */
 
8233
 
 
8234
int
 
8235
main ()
 
8236
{
 
8237
 
 
8238
  ;
 
8239
  return 0;
 
8240
}
 
8241
_ACEOF
 
8242
rm -f conftest.$ac_objext conftest$ac_exeext
 
8243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8244
  (eval $ac_link) 2>conftest.er1
 
8245
  ac_status=$?
 
8246
  grep -v '^ *+' conftest.er1 >conftest.err
 
8247
  rm -f conftest.er1
 
8248
  cat conftest.err >&5
 
8249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8250
  (exit $ac_status); } &&
 
8251
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8253
  (eval $ac_try) 2>&5
 
8254
  ac_status=$?
 
8255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8256
  (exit $ac_status); }; } &&
 
8257
         { ac_try='test -s conftest$ac_exeext'
 
8258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8259
  (eval $ac_try) 2>&5
 
8260
  ac_status=$?
 
8261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8262
  (exit $ac_status); }; }; then
 
8263
 
 
8264
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8265
}'`
 
8266
# Check for a 64-bit object if we didn't find anything.
 
8267
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; }
 
8268
}'`; fi
 
8269
else
 
8270
  echo "$as_me: failed program was:" >&5
 
8271
sed 's/^/| /' conftest.$ac_ext >&5
 
8272
 
 
8273
fi
 
8274
rm -f conftest.err conftest.$ac_objext \
 
8275
      conftest$ac_exeext conftest.$ac_ext
 
8276
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8277
 
 
8278
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8279
        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"
 
8280
       else
 
8281
        if test "$host_cpu" = ia64; then
 
8282
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8283
          allow_undefined_flag="-z nodefs"
 
8284
          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"
 
8285
        else
 
8286
         # Determine the default libpath from the value encoded in an empty executable.
 
8287
         cat >conftest.$ac_ext <<_ACEOF
 
8288
/* confdefs.h.  */
 
8289
_ACEOF
 
8290
cat confdefs.h >>conftest.$ac_ext
 
8291
cat >>conftest.$ac_ext <<_ACEOF
 
8292
/* end confdefs.h.  */
 
8293
 
 
8294
int
 
8295
main ()
 
8296
{
 
8297
 
 
8298
  ;
 
8299
  return 0;
 
8300
}
 
8301
_ACEOF
 
8302
rm -f conftest.$ac_objext conftest$ac_exeext
 
8303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8304
  (eval $ac_link) 2>conftest.er1
 
8305
  ac_status=$?
 
8306
  grep -v '^ *+' conftest.er1 >conftest.err
 
8307
  rm -f conftest.er1
 
8308
  cat conftest.err >&5
 
8309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8310
  (exit $ac_status); } &&
 
8311
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8313
  (eval $ac_try) 2>&5
 
8314
  ac_status=$?
 
8315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8316
  (exit $ac_status); }; } &&
 
8317
         { ac_try='test -s conftest$ac_exeext'
 
8318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8319
  (eval $ac_try) 2>&5
 
8320
  ac_status=$?
 
8321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8322
  (exit $ac_status); }; }; then
 
8323
 
 
8324
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8325
}'`
 
8326
# Check for a 64-bit object if we didn't find anything.
 
8327
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; }
 
8328
}'`; fi
 
8329
else
 
8330
  echo "$as_me: failed program was:" >&5
 
8331
sed 's/^/| /' conftest.$ac_ext >&5
 
8332
 
 
8333
fi
 
8334
rm -f conftest.err conftest.$ac_objext \
 
8335
      conftest$ac_exeext conftest.$ac_ext
 
8336
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8337
 
 
8338
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8339
          # Warning - without using the other run time loading flags,
 
8340
          # -berok will link without error, but may produce a broken library.
 
8341
          no_undefined_flag=' ${wl}-bernotok'
 
8342
          allow_undefined_flag=' ${wl}-berok'
 
8343
          # -bexpall does not export symbols beginning with underscore (_)
 
8344
          always_export_symbols=yes
 
8345
          # Exported symbols can be pulled into shared objects from archives
 
8346
          whole_archive_flag_spec=' '
 
8347
          archive_cmds_need_lc=yes
 
8348
          # This is similar to how AIX traditionally builds it's shared libraries.
 
8349
          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'
 
8350
        fi
 
8351
      fi
 
8352
      ;;
 
8353
 
 
8354
    amigaos*)
 
8355
      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)'
 
8356
      hardcode_libdir_flag_spec='-L$libdir'
 
8357
      hardcode_minus_L=yes
 
8358
      # see comment about different semantics on the GNU ld section
 
8359
      ld_shlibs=no
 
8360
      ;;
 
8361
 
 
8362
    bsdi4*)
 
8363
      export_dynamic_flag_spec=-rdynamic
 
8364
      ;;
 
8365
 
 
8366
    cygwin* | mingw* | pw32*)
 
8367
      # When not using gcc, we currently assume that we are using
 
8368
      # Microsoft Visual C++.
 
8369
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8370
      # no search path for DLLs.
 
8371
      hardcode_libdir_flag_spec=' '
 
8372
      allow_undefined_flag=unsupported
 
8373
      # Tell ltmain to make .lib files, not .a files.
 
8374
      libext=lib
 
8375
      # Tell ltmain to make .dll files, not .so files.
 
8376
      shrext_cmds=".dll"
 
8377
      # FIXME: Setting linknames here is a bad hack.
 
8378
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8379
      # The linker will automatically build a .lib file if we build a DLL.
 
8380
      old_archive_From_new_cmds='true'
 
8381
      # FIXME: Should let the user specify the lib program.
 
8382
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8383
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8384
      enable_shared_with_static_runtimes=yes
 
8385
      ;;
 
8386
 
 
8387
    darwin* | rhapsody*)
 
8388
    if test "$GXX" = yes ; then
 
8389
      archive_cmds_need_lc=no
 
8390
      case "$host_os" in
 
8391
      rhapsody* | darwin1.[012])
 
8392
        allow_undefined_flag='-undefined suppress'
 
8393
        ;;
 
8394
      *) # Darwin 1.3 on
 
8395
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8396
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
8397
      else
 
8398
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8399
          10.[012])
 
8400
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
8401
            ;;
 
8402
          10.*)
 
8403
            allow_undefined_flag='-undefined dynamic_lookup'
 
8404
            ;;
 
8405
        esac
 
8406
      fi
 
8407
        ;;
 
8408
      esac
 
8409
        lt_int_apple_cc_single_mod=no
 
8410
        output_verbose_link_cmd='echo'
 
8411
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
8412
          lt_int_apple_cc_single_mod=yes
 
8413
        fi
 
8414
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
8415
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8416
        else
 
8417
        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'
 
8418
      fi
 
8419
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8420
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8421
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
8422
          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}'
 
8423
        else
 
8424
          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}'
 
8425
        fi
 
8426
          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}'
 
8427
      hardcode_direct=no
 
8428
      hardcode_automatic=yes
 
8429
      hardcode_shlibpath_var=unsupported
 
8430
      whole_archive_flag_spec='-all_load $convenience'
 
8431
      link_all_deplibs=yes
 
8432
    else
 
8433
      ld_shlibs=no
 
8434
    fi
 
8435
      ;;
 
8436
 
 
8437
    dgux*)
 
8438
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8439
      hardcode_libdir_flag_spec='-L$libdir'
 
8440
      hardcode_shlibpath_var=no
 
8441
      ;;
 
8442
 
 
8443
    freebsd1*)
 
8444
      ld_shlibs=no
 
8445
      ;;
 
8446
 
 
8447
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8448
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8449
    # does not break anything, and helps significantly (at the cost of a little
 
8450
    # extra space).
 
8451
    freebsd2.2*)
 
8452
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8453
      hardcode_libdir_flag_spec='-R$libdir'
 
8454
      hardcode_direct=yes
 
8455
      hardcode_shlibpath_var=no
 
8456
      ;;
 
8457
 
 
8458
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8459
    freebsd2*)
 
8460
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8461
      hardcode_direct=yes
 
8462
      hardcode_minus_L=yes
 
8463
      hardcode_shlibpath_var=no
 
8464
      ;;
 
8465
 
 
8466
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8467
    freebsd* | kfreebsd*-gnu)
 
8468
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8469
      hardcode_libdir_flag_spec='-R$libdir'
 
8470
      hardcode_direct=yes
 
8471
      hardcode_shlibpath_var=no
 
8472
      ;;
 
8473
 
 
8474
    hpux9*)
 
8475
      if test "$GCC" = yes; then
 
8476
        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'
 
8477
      else
 
8478
        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'
 
8479
      fi
 
8480
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8481
      hardcode_libdir_separator=:
 
8482
      hardcode_direct=yes
 
8483
 
 
8484
      # hardcode_minus_L: Not really in the search PATH,
 
8485
      # but as the default location of the library.
 
8486
      hardcode_minus_L=yes
 
8487
      export_dynamic_flag_spec='${wl}-E'
 
8488
      ;;
 
8489
 
 
8490
    hpux10* | hpux11*)
 
8491
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8492
        case "$host_cpu" in
 
8493
        hppa*64*|ia64*)
 
8494
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8495
          ;;
 
8496
        *)
 
8497
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8498
          ;;
 
8499
        esac
 
8500
      else
 
8501
        case "$host_cpu" in
 
8502
        hppa*64*|ia64*)
 
8503
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8504
          ;;
 
8505
        *)
 
8506
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8507
          ;;
 
8508
        esac
 
8509
      fi
 
8510
      if test "$with_gnu_ld" = no; then
 
8511
        case "$host_cpu" in
 
8512
        hppa*64*)
 
8513
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8514
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8515
          hardcode_libdir_separator=:
 
8516
          hardcode_direct=no
 
8517
          hardcode_shlibpath_var=no
 
8518
          ;;
 
8519
        ia64*)
 
8520
          hardcode_libdir_flag_spec='-L$libdir'
 
8521
          hardcode_direct=no
 
8522
          hardcode_shlibpath_var=no
 
8523
 
 
8524
          # hardcode_minus_L: Not really in the search PATH,
 
8525
          # but as the default location of the library.
 
8526
          hardcode_minus_L=yes
 
8527
          ;;
 
8528
        *)
 
8529
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8530
          hardcode_libdir_separator=:
 
8531
          hardcode_direct=yes
 
8532
          export_dynamic_flag_spec='${wl}-E'
 
8533
 
 
8534
          # hardcode_minus_L: Not really in the search PATH,
 
8535
          # but as the default location of the library.
 
8536
          hardcode_minus_L=yes
 
8537
          ;;
 
8538
        esac
 
8539
      fi
 
8540
      ;;
 
8541
 
 
8542
    irix5* | irix6* | nonstopux*)
 
8543
      if test "$GCC" = yes; then
 
8544
        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'
 
8545
      else
 
8546
        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'
 
8547
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8548
      fi
 
8549
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8550
      hardcode_libdir_separator=:
 
8551
      link_all_deplibs=yes
 
8552
      ;;
 
8553
 
 
8554
    netbsd* | knetbsd*-gnu)
 
8555
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8556
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8557
      else
 
8558
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8559
      fi
 
8560
      hardcode_libdir_flag_spec='-R$libdir'
 
8561
      hardcode_direct=yes
 
8562
      hardcode_shlibpath_var=no
 
8563
      ;;
 
8564
 
 
8565
    newsos6)
 
8566
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8567
      hardcode_direct=yes
 
8568
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8569
      hardcode_libdir_separator=:
 
8570
      hardcode_shlibpath_var=no
 
8571
      ;;
 
8572
 
 
8573
    openbsd*)
 
8574
      hardcode_direct=yes
 
8575
      hardcode_shlibpath_var=no
 
8576
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8577
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8578
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8579
        export_dynamic_flag_spec='${wl}-E'
 
8580
      else
 
8581
       case $host_os in
 
8582
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8583
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8584
           hardcode_libdir_flag_spec='-R$libdir'
 
8585
           ;;
 
8586
         *)
 
8587
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8588
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8589
           ;;
 
8590
       esac
 
8591
      fi
 
8592
      ;;
 
8593
 
 
8594
    os2*)
 
8595
      hardcode_libdir_flag_spec='-L$libdir'
 
8596
      hardcode_minus_L=yes
 
8597
      allow_undefined_flag=unsupported
 
8598
      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'
 
8599
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8600
      ;;
 
8601
 
 
8602
    osf3*)
 
8603
      if test "$GCC" = yes; then
 
8604
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8605
        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'
 
8606
      else
 
8607
        allow_undefined_flag=' -expect_unresolved \*'
 
8608
        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'
 
8609
      fi
 
8610
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8611
      hardcode_libdir_separator=:
 
8612
      ;;
 
8613
 
 
8614
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8615
      if test "$GCC" = yes; then
 
8616
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8617
        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'
 
8618
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8619
      else
 
8620
        allow_undefined_flag=' -expect_unresolved \*'
 
8621
        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'
 
8622
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8623
        $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'
 
8624
 
 
8625
        # Both c and cxx compiler support -rpath directly
 
8626
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8627
      fi
 
8628
      hardcode_libdir_separator=:
 
8629
      ;;
 
8630
 
 
8631
    sco3.2v5*)
 
8632
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8633
      hardcode_shlibpath_var=no
 
8634
      export_dynamic_flag_spec='${wl}-Bexport'
 
8635
      runpath_var=LD_RUN_PATH
 
8636
      hardcode_runpath_var=yes
 
8637
      ;;
 
8638
 
 
8639
    solaris*)
 
8640
      no_undefined_flag=' -z text'
 
8641
      if test "$GCC" = yes; then
 
8642
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8643
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8644
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8645
      else
 
8646
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8647
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8648
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8649
      fi
 
8650
      hardcode_libdir_flag_spec='-R$libdir'
 
8651
      hardcode_shlibpath_var=no
 
8652
      case $host_os in
 
8653
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8654
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8655
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8656
      esac
 
8657
      link_all_deplibs=yes
 
8658
      ;;
 
8659
 
 
8660
    sunos4*)
 
8661
      if test "x$host_vendor" = xsequent; then
 
8662
        # Use $CC to link under sequent, because it throws in some extra .o
 
8663
        # files that make .init and .fini sections work.
 
8664
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8665
      else
 
8666
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8667
      fi
 
8668
      hardcode_libdir_flag_spec='-L$libdir'
 
8669
      hardcode_direct=yes
 
8670
      hardcode_minus_L=yes
 
8671
      hardcode_shlibpath_var=no
 
8672
      ;;
 
8673
 
 
8674
    sysv4)
 
8675
      case $host_vendor in
 
8676
        sni)
 
8677
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8678
          hardcode_direct=yes # is this really true???
 
8679
        ;;
 
8680
        siemens)
 
8681
          ## LD is ld it makes a PLAMLIB
 
8682
          ## CC just makes a GrossModule.
 
8683
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8684
          reload_cmds='$CC -r -o $output$reload_objs'
 
8685
          hardcode_direct=no
 
8686
        ;;
 
8687
        motorola)
 
8688
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8689
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8690
        ;;
 
8691
      esac
 
8692
      runpath_var='LD_RUN_PATH'
 
8693
      hardcode_shlibpath_var=no
 
8694
      ;;
 
8695
 
 
8696
    sysv4.3*)
 
8697
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8698
      hardcode_shlibpath_var=no
 
8699
      export_dynamic_flag_spec='-Bexport'
 
8700
      ;;
 
8701
 
 
8702
    sysv4*MP*)
 
8703
      if test -d /usr/nec; then
 
8704
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8705
        hardcode_shlibpath_var=no
 
8706
        runpath_var=LD_RUN_PATH
 
8707
        hardcode_runpath_var=yes
 
8708
        ld_shlibs=yes
 
8709
      fi
 
8710
      ;;
 
8711
 
 
8712
    sysv4.2uw2*)
 
8713
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8714
      hardcode_direct=yes
 
8715
      hardcode_minus_L=no
 
8716
      hardcode_shlibpath_var=no
 
8717
      hardcode_runpath_var=yes
 
8718
      runpath_var=LD_RUN_PATH
 
8719
      ;;
 
8720
 
 
8721
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
8722
      no_undefined_flag='${wl}-z ${wl}text'
 
8723
      if test "$GCC" = yes; then
 
8724
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8725
      else
 
8726
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8727
      fi
 
8728
      runpath_var='LD_RUN_PATH'
 
8729
      hardcode_shlibpath_var=no
 
8730
      ;;
 
8731
 
 
8732
    sysv5*)
 
8733
      no_undefined_flag=' -z text'
 
8734
      # $CC -shared without GNU ld will not create a library from C++
 
8735
      # object files and a static libstdc++, better avoid it by now
 
8736
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8737
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8738
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8739
      hardcode_libdir_flag_spec=
 
8740
      hardcode_shlibpath_var=no
 
8741
      runpath_var='LD_RUN_PATH'
 
8742
      ;;
 
8743
 
 
8744
    uts4*)
 
8745
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8746
      hardcode_libdir_flag_spec='-L$libdir'
 
8747
      hardcode_shlibpath_var=no
 
8748
      ;;
 
8749
 
 
8750
    *)
 
8751
      ld_shlibs=no
 
8752
      ;;
 
8753
    esac
 
8754
  fi
 
8755
 
 
8756
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8757
echo "${ECHO_T}$ld_shlibs" >&6
 
8758
test "$ld_shlibs" = no && can_build_shared=no
 
8759
 
 
8760
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8761
if test "$GCC" = yes; then
 
8762
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8763
fi
 
8764
 
 
8765
#
 
8766
# Do we need to explicitly link libc?
 
8767
#
 
8768
case "x$archive_cmds_need_lc" in
 
8769
x|xyes)
 
8770
  # Assume -lc should be added
 
8771
  archive_cmds_need_lc=yes
 
8772
 
 
8773
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8774
    case $archive_cmds in
 
8775
    *'~'*)
 
8776
      # FIXME: we may have to deal with multi-command sequences.
 
8777
      ;;
 
8778
    '$CC '*)
 
8779
      # Test whether the compiler implicitly links with -lc since on some
 
8780
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8781
      # to ld, don't add -lc before -lgcc.
 
8782
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8783
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8784
      $rm conftest*
 
8785
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8786
 
 
8787
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8788
  (eval $ac_compile) 2>&5
 
8789
  ac_status=$?
 
8790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8791
  (exit $ac_status); } 2>conftest.err; then
 
8792
        soname=conftest
 
8793
        lib=conftest
 
8794
        libobjs=conftest.$ac_objext
 
8795
        deplibs=
 
8796
        wl=$lt_prog_compiler_wl
 
8797
        compiler_flags=-v
 
8798
        linker_flags=-v
 
8799
        verstring=
 
8800
        output_objdir=.
 
8801
        libname=conftest
 
8802
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8803
        allow_undefined_flag=
 
8804
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8805
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8806
  ac_status=$?
 
8807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8808
  (exit $ac_status); }
 
8809
        then
 
8810
          archive_cmds_need_lc=no
 
8811
        else
 
8812
          archive_cmds_need_lc=yes
 
8813
        fi
 
8814
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8815
      else
 
8816
        cat conftest.err 1>&5
 
8817
      fi
 
8818
      $rm conftest*
 
8819
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8820
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
8821
      ;;
 
8822
    esac
 
8823
  fi
 
8824
  ;;
 
8825
esac
 
8826
 
 
8827
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8828
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8829
library_names_spec=
 
8830
libname_spec='lib$name'
 
8831
soname_spec=
 
8832
shrext_cmds=".so"
 
8833
postinstall_cmds=
 
8834
postuninstall_cmds=
 
8835
finish_cmds=
 
8836
finish_eval=
 
8837
shlibpath_var=
 
8838
shlibpath_overrides_runpath=unknown
 
8839
version_type=none
 
8840
dynamic_linker="$host_os ld.so"
 
8841
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8842
if test "$GCC" = yes; then
 
8843
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8844
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8845
    # if the path contains ";" then we assume it to be the separator
 
8846
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8847
    # assumed that no part of a normal pathname contains ";" but that should
 
8848
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8849
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8850
  else
 
8851
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8852
  fi
 
8853
else
 
8854
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8855
fi
 
8856
need_lib_prefix=unknown
 
8857
hardcode_into_libs=no
 
8858
 
 
8859
# when you set need_version to no, make sure it does not cause -set_version
 
8860
# flags to be left without arguments
 
8861
need_version=unknown
 
8862
 
 
8863
case $host_os in
 
8864
aix3*)
 
8865
  version_type=linux
 
8866
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8867
  shlibpath_var=LIBPATH
 
8868
 
 
8869
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8870
  soname_spec='${libname}${release}${shared_ext}$major'
 
8871
  ;;
 
8872
 
 
8873
aix4* | aix5*)
 
8874
  version_type=linux
 
8875
  need_lib_prefix=no
 
8876
  need_version=no
 
8877
  hardcode_into_libs=yes
 
8878
  if test "$host_cpu" = ia64; then
 
8879
    # AIX 5 supports IA64
 
8880
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8881
    shlibpath_var=LD_LIBRARY_PATH
 
8882
  else
 
8883
    # With GCC up to 2.95.x, collect2 would create an import file
 
8884
    # for dependence libraries.  The import file would start with
 
8885
    # the line `#! .'.  This would cause the generated library to
 
8886
    # depend on `.', always an invalid library.  This was fixed in
 
8887
    # development snapshots of GCC prior to 3.0.
 
8888
    case $host_os in
 
8889
      aix4 | aix4.[01] | aix4.[01].*)
 
8890
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8891
           echo ' yes '
 
8892
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8893
        :
 
8894
      else
 
8895
        can_build_shared=no
 
8896
      fi
 
8897
      ;;
 
8898
    esac
 
8899
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8900
    # soname into executable. Probably we can add versioning support to
 
8901
    # collect2, so additional links can be useful in future.
 
8902
    if test "$aix_use_runtimelinking" = yes; then
 
8903
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8904
      # instead of lib<name>.a to let people know that these are not
 
8905
      # typical AIX shared libraries.
 
8906
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8907
    else
 
8908
      # We preserve .a as extension for shared libraries through AIX4.2
 
8909
      # and later when we are not doing run time linking.
 
8910
      library_names_spec='${libname}${release}.a $libname.a'
 
8911
      soname_spec='${libname}${release}${shared_ext}$major'
 
8912
    fi
 
8913
    shlibpath_var=LIBPATH
 
8914
  fi
 
8915
  ;;
 
8916
 
 
8917
amigaos*)
 
8918
  library_names_spec='$libname.ixlibrary $libname.a'
 
8919
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8920
  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'
 
8921
  ;;
 
8922
 
 
8923
beos*)
 
8924
  library_names_spec='${libname}${shared_ext}'
 
8925
  dynamic_linker="$host_os ld.so"
 
8926
  shlibpath_var=LIBRARY_PATH
 
8927
  ;;
 
8928
 
 
8929
bsdi4*)
 
8930
  version_type=linux
 
8931
  need_version=no
 
8932
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8933
  soname_spec='${libname}${release}${shared_ext}$major'
 
8934
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8935
  shlibpath_var=LD_LIBRARY_PATH
 
8936
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8937
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8938
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8939
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8940
  # libtool to hard-code these into programs
 
8941
  ;;
 
8942
 
 
8943
cygwin* | mingw* | pw32*)
 
8944
  version_type=windows
 
8945
  shrext_cmds=".dll"
 
8946
  need_version=no
 
8947
  need_lib_prefix=no
 
8948
 
 
8949
  case $GCC,$host_os in
 
8950
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8951
    library_names_spec='$libname.dll.a'
 
8952
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8953
    postinstall_cmds='base_file=`basename \${file}`~
 
8954
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8955
      dldir=$destdir/`dirname \$dlpath`~
 
8956
      test -d \$dldir || mkdir -p \$dldir~
 
8957
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8958
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8959
      dlpath=$dir/\$dldll~
 
8960
       $rm \$dlpath'
 
8961
    shlibpath_overrides_runpath=yes
 
8962
 
 
8963
    case $host_os in
 
8964
    cygwin*)
 
8965
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8966
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8967
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8968
      ;;
 
8969
    mingw*)
 
8970
      # MinGW DLLs use traditional 'lib' prefix
 
8971
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8972
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8973
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8974
        # It is most probably a Windows format PATH printed by
 
8975
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8976
        # path with ; separators, and with drive letters. We can handle the
 
8977
        # drive letters (cygwin fileutils understands them), so leave them,
 
8978
        # especially as we might pass files found there to a mingw objdump,
 
8979
        # which wouldn't understand a cygwinified path. Ahh.
 
8980
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8981
      else
 
8982
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8983
      fi
 
8984
      ;;
 
8985
    pw32*)
 
8986
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8987
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8988
      ;;
 
8989
    esac
 
8990
    ;;
 
8991
 
 
8992
  *)
 
8993
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8994
    ;;
 
8995
  esac
 
8996
  dynamic_linker='Win32 ld.exe'
 
8997
  # FIXME: first we should search . and the directory the executable is in
 
8998
  shlibpath_var=PATH
 
8999
  ;;
 
9000
 
 
9001
darwin* | rhapsody*)
 
9002
  dynamic_linker="$host_os dyld"
 
9003
  version_type=darwin
 
9004
  need_lib_prefix=no
 
9005
  need_version=no
 
9006
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9007
  soname_spec='${libname}${release}${major}$shared_ext'
 
9008
  shlibpath_overrides_runpath=yes
 
9009
  shlibpath_var=DYLD_LIBRARY_PATH
 
9010
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
9011
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
9012
  if test "$GCC" = yes; then
 
9013
    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"`
 
9014
  else
 
9015
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
9016
  fi
 
9017
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9018
  ;;
 
9019
 
 
9020
dgux*)
 
9021
  version_type=linux
 
9022
  need_lib_prefix=no
 
9023
  need_version=no
 
9024
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9025
  soname_spec='${libname}${release}${shared_ext}$major'
 
9026
  shlibpath_var=LD_LIBRARY_PATH
 
9027
  ;;
 
9028
 
 
9029
freebsd1*)
 
9030
  dynamic_linker=no
 
9031
  ;;
 
9032
 
 
9033
kfreebsd*-gnu)
 
9034
  version_type=linux
 
9035
  need_lib_prefix=no
 
9036
  need_version=no
 
9037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9038
  soname_spec='${libname}${release}${shared_ext}$major'
 
9039
  shlibpath_var=LD_LIBRARY_PATH
 
9040
  shlibpath_overrides_runpath=no
 
9041
  hardcode_into_libs=yes
 
9042
  dynamic_linker='GNU ld.so'
 
9043
  ;;
 
9044
 
 
9045
freebsd*)
 
9046
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
9047
  version_type=freebsd-$objformat
 
9048
  case $version_type in
 
9049
    freebsd-elf*)
 
9050
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9051
      need_version=no
 
9052
      need_lib_prefix=no
 
9053
      ;;
 
9054
    freebsd-*)
 
9055
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9056
      need_version=yes
 
9057
      ;;
 
9058
  esac
 
9059
  shlibpath_var=LD_LIBRARY_PATH
 
9060
  case $host_os in
 
9061
  freebsd2*)
 
9062
    shlibpath_overrides_runpath=yes
 
9063
    ;;
 
9064
  freebsd3.01* | freebsdelf3.01*)
 
9065
    shlibpath_overrides_runpath=yes
 
9066
    hardcode_into_libs=yes
 
9067
    ;;
 
9068
  *) # from 3.2 on
 
9069
    shlibpath_overrides_runpath=no
 
9070
    hardcode_into_libs=yes
 
9071
    ;;
 
9072
  esac
 
9073
  ;;
 
9074
 
 
9075
gnu*)
 
9076
  version_type=linux
 
9077
  need_lib_prefix=no
 
9078
  need_version=no
 
9079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9080
  soname_spec='${libname}${release}${shared_ext}$major'
 
9081
  shlibpath_var=LD_LIBRARY_PATH
 
9082
  hardcode_into_libs=yes
 
9083
  ;;
 
9084
 
 
9085
hpux9* | hpux10* | hpux11*)
 
9086
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9087
  # link against other versions.
 
9088
  version_type=sunos
 
9089
  need_lib_prefix=no
 
9090
  need_version=no
 
9091
  case "$host_cpu" in
 
9092
  ia64*)
 
9093
    shrext_cmds='.so'
 
9094
    hardcode_into_libs=yes
 
9095
    dynamic_linker="$host_os dld.so"
 
9096
    shlibpath_var=LD_LIBRARY_PATH
 
9097
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9098
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9099
    soname_spec='${libname}${release}${shared_ext}$major'
 
9100
    if test "X$HPUX_IA64_MODE" = X32; then
 
9101
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9102
    else
 
9103
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9104
    fi
 
9105
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9106
    ;;
 
9107
   hppa*64*)
 
9108
     shrext_cmds='.sl'
 
9109
     hardcode_into_libs=yes
 
9110
     dynamic_linker="$host_os dld.sl"
 
9111
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9112
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9113
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9114
     soname_spec='${libname}${release}${shared_ext}$major'
 
9115
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9116
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9117
     ;;
 
9118
   *)
 
9119
    shrext_cmds='.sl'
 
9120
    dynamic_linker="$host_os dld.sl"
 
9121
    shlibpath_var=SHLIB_PATH
 
9122
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9123
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9124
    soname_spec='${libname}${release}${shared_ext}$major'
 
9125
    ;;
 
9126
  esac
 
9127
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9128
  postinstall_cmds='chmod 555 $lib'
 
9129
  ;;
 
9130
 
 
9131
irix5* | irix6* | nonstopux*)
 
9132
  case $host_os in
 
9133
    nonstopux*) version_type=nonstopux ;;
 
9134
    *)
 
9135
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9136
                version_type=linux
 
9137
        else
 
9138
                version_type=irix
 
9139
        fi ;;
 
9140
  esac
 
9141
  need_lib_prefix=no
 
9142
  need_version=no
 
9143
  soname_spec='${libname}${release}${shared_ext}$major'
 
9144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9145
  case $host_os in
 
9146
  irix5* | nonstopux*)
 
9147
    libsuff= shlibsuff=
 
9148
    ;;
 
9149
  *)
 
9150
    case $LD in # libtool.m4 will add one of these switches to LD
 
9151
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9152
      libsuff= shlibsuff= libmagic=32-bit;;
 
9153
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9154
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9155
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9156
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9157
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9158
    esac
 
9159
    ;;
 
9160
  esac
 
9161
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9162
  shlibpath_overrides_runpath=no
 
9163
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9164
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9165
  hardcode_into_libs=yes
 
9166
  ;;
 
9167
 
 
9168
# No shared lib support for Linux oldld, aout, or coff.
 
9169
linux*oldld* | linux*aout* | linux*coff*)
 
9170
  dynamic_linker=no
 
9171
  ;;
 
9172
 
 
9173
# This must be Linux ELF.
 
9174
linux*)
 
9175
  version_type=linux
 
9176
  need_lib_prefix=no
 
9177
  need_version=no
 
9178
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9179
  soname_spec='${libname}${release}${shared_ext}$major'
 
9180
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9181
  shlibpath_var=LD_LIBRARY_PATH
 
9182
  shlibpath_overrides_runpath=no
 
9183
  # This implies no fast_install, which is unacceptable.
 
9184
  # Some rework will be needed to allow for fast_install
 
9185
  # before this can be enabled.
 
9186
  hardcode_into_libs=yes
 
9187
 
 
9188
  # Append ld.so.conf contents to the search path
 
9189
  if test -f /etc/ld.so.conf; then
 
9190
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
9191
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9192
  fi
 
9193
 
 
9194
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9195
  # powerpc, because MkLinux only supported shared libraries with the
 
9196
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9197
  # most powerpc-linux boxes support dynamic linking these days and
 
9198
  # people can always --disable-shared, the test was removed, and we
 
9199
  # assume the GNU/Linux dynamic linker is in use.
 
9200
  dynamic_linker='GNU/Linux ld.so'
 
9201
  ;;
 
9202
 
 
9203
knetbsd*-gnu)
 
9204
  version_type=linux
 
9205
  need_lib_prefix=no
 
9206
  need_version=no
 
9207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9208
  soname_spec='${libname}${release}${shared_ext}$major'
 
9209
  shlibpath_var=LD_LIBRARY_PATH
 
9210
  shlibpath_overrides_runpath=no
 
9211
  hardcode_into_libs=yes
 
9212
  dynamic_linker='GNU ld.so'
 
9213
  ;;
 
9214
 
 
9215
netbsd*)
 
9216
  version_type=sunos
 
9217
  need_lib_prefix=no
 
9218
  need_version=no
 
9219
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9220
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9221
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9222
    dynamic_linker='NetBSD (a.out) ld.so'
 
9223
  else
 
9224
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9225
    soname_spec='${libname}${release}${shared_ext}$major'
 
9226
    dynamic_linker='NetBSD ld.elf_so'
 
9227
  fi
 
9228
  shlibpath_var=LD_LIBRARY_PATH
 
9229
  shlibpath_overrides_runpath=yes
 
9230
  hardcode_into_libs=yes
 
9231
  ;;
 
9232
 
 
9233
newsos6)
 
9234
  version_type=linux
 
9235
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9236
  shlibpath_var=LD_LIBRARY_PATH
 
9237
  shlibpath_overrides_runpath=yes
 
9238
  ;;
 
9239
 
 
9240
nto-qnx*)
 
9241
  version_type=linux
 
9242
  need_lib_prefix=no
 
9243
  need_version=no
 
9244
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9245
  soname_spec='${libname}${release}${shared_ext}$major'
 
9246
  shlibpath_var=LD_LIBRARY_PATH
 
9247
  shlibpath_overrides_runpath=yes
 
9248
  ;;
 
9249
 
 
9250
openbsd*)
 
9251
  version_type=sunos
 
9252
  need_lib_prefix=no
 
9253
  need_version=yes
 
9254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9255
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9256
  shlibpath_var=LD_LIBRARY_PATH
 
9257
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9258
    case $host_os in
 
9259
      openbsd2.[89] | openbsd2.[89].*)
 
9260
        shlibpath_overrides_runpath=no
 
9261
        ;;
 
9262
      *)
 
9263
        shlibpath_overrides_runpath=yes
 
9264
        ;;
 
9265
      esac
 
9266
  else
 
9267
    shlibpath_overrides_runpath=yes
 
9268
  fi
 
9269
  ;;
 
9270
 
 
9271
os2*)
 
9272
  libname_spec='$name'
 
9273
  shrext_cmds=".dll"
 
9274
  need_lib_prefix=no
 
9275
  library_names_spec='$libname${shared_ext} $libname.a'
 
9276
  dynamic_linker='OS/2 ld.exe'
 
9277
  shlibpath_var=LIBPATH
 
9278
  ;;
 
9279
 
 
9280
osf3* | osf4* | osf5*)
 
9281
  version_type=osf
 
9282
  need_lib_prefix=no
 
9283
  need_version=no
 
9284
  soname_spec='${libname}${release}${shared_ext}$major'
 
9285
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9286
  shlibpath_var=LD_LIBRARY_PATH
 
9287
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9288
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9289
  ;;
 
9290
 
 
9291
sco3.2v5*)
 
9292
  version_type=osf
 
9293
  soname_spec='${libname}${release}${shared_ext}$major'
 
9294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9295
  shlibpath_var=LD_LIBRARY_PATH
 
9296
  ;;
 
9297
 
 
9298
solaris*)
 
9299
  version_type=linux
 
9300
  need_lib_prefix=no
 
9301
  need_version=no
 
9302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9303
  soname_spec='${libname}${release}${shared_ext}$major'
 
9304
  shlibpath_var=LD_LIBRARY_PATH
 
9305
  shlibpath_overrides_runpath=yes
 
9306
  hardcode_into_libs=yes
 
9307
  # ldd complains unless libraries are executable
 
9308
  postinstall_cmds='chmod +x $lib'
 
9309
  ;;
 
9310
 
 
9311
sunos4*)
 
9312
  version_type=sunos
 
9313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9314
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9315
  shlibpath_var=LD_LIBRARY_PATH
 
9316
  shlibpath_overrides_runpath=yes
 
9317
  if test "$with_gnu_ld" = yes; then
 
9318
    need_lib_prefix=no
 
9319
  fi
 
9320
  need_version=yes
 
9321
  ;;
 
9322
 
 
9323
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9324
  version_type=linux
 
9325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9326
  soname_spec='${libname}${release}${shared_ext}$major'
 
9327
  shlibpath_var=LD_LIBRARY_PATH
 
9328
  case $host_vendor in
 
9329
    sni)
 
9330
      shlibpath_overrides_runpath=no
 
9331
      need_lib_prefix=no
 
9332
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9333
      runpath_var=LD_RUN_PATH
 
9334
      ;;
 
9335
    siemens)
 
9336
      need_lib_prefix=no
 
9337
      ;;
 
9338
    motorola)
 
9339
      need_lib_prefix=no
 
9340
      need_version=no
 
9341
      shlibpath_overrides_runpath=no
 
9342
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9343
      ;;
 
9344
  esac
 
9345
  ;;
 
9346
 
 
9347
sysv4*MP*)
 
9348
  if test -d /usr/nec ;then
 
9349
    version_type=linux
 
9350
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9351
    soname_spec='$libname${shared_ext}.$major'
 
9352
    shlibpath_var=LD_LIBRARY_PATH
 
9353
  fi
 
9354
  ;;
 
9355
 
 
9356
uts4*)
 
9357
  version_type=linux
 
9358
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9359
  soname_spec='${libname}${release}${shared_ext}$major'
 
9360
  shlibpath_var=LD_LIBRARY_PATH
 
9361
  ;;
 
9362
 
 
9363
*)
 
9364
  dynamic_linker=no
 
9365
  ;;
 
9366
esac
 
9367
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9368
echo "${ECHO_T}$dynamic_linker" >&6
 
9369
test "$dynamic_linker" = no && can_build_shared=no
 
9370
 
 
9371
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9372
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
9373
hardcode_action=
 
9374
if test -n "$hardcode_libdir_flag_spec" || \
 
9375
   test -n "$runpath_var " || \
 
9376
   test "X$hardcode_automatic"="Xyes" ; then
 
9377
 
 
9378
  # We can hardcode non-existant directories.
 
9379
  if test "$hardcode_direct" != no &&
 
9380
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9381
     # have to relink, otherwise we might link with an installed library
 
9382
     # when we should be linking with a yet-to-be-installed one
 
9383
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9384
     test "$hardcode_minus_L" != no; then
 
9385
    # Linking always hardcodes the temporary library directory.
 
9386
    hardcode_action=relink
 
9387
  else
 
9388
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9389
    hardcode_action=immediate
 
9390
  fi
 
9391
else
 
9392
  # We cannot hardcode anything, or else we can only hardcode existing
 
9393
  # directories.
 
9394
  hardcode_action=unsupported
 
9395
fi
 
9396
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9397
echo "${ECHO_T}$hardcode_action" >&6
 
9398
 
 
9399
if test "$hardcode_action" = relink; then
 
9400
  # Fast installation is not supported
 
9401
  enable_fast_install=no
 
9402
elif test "$shlibpath_overrides_runpath" = yes ||
 
9403
     test "$enable_shared" = no; then
 
9404
  # Fast installation is not necessary
 
9405
  enable_fast_install=needless
 
9406
fi
 
9407
 
 
9408
striplib=
 
9409
old_striplib=
 
9410
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9411
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
9412
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9413
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9414
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9415
  echo "$as_me:$LINENO: result: yes" >&5
 
9416
echo "${ECHO_T}yes" >&6
 
9417
else
 
9418
# FIXME - insert some real tests, host_os isn't really good enough
 
9419
  case $host_os in
 
9420
   darwin*)
 
9421
       if test -n "$STRIP" ; then
 
9422
         striplib="$STRIP -x"
 
9423
         echo "$as_me:$LINENO: result: yes" >&5
 
9424
echo "${ECHO_T}yes" >&6
 
9425
       else
 
9426
  echo "$as_me:$LINENO: result: no" >&5
 
9427
echo "${ECHO_T}no" >&6
 
9428
fi
 
9429
       ;;
 
9430
   *)
 
9431
  echo "$as_me:$LINENO: result: no" >&5
 
9432
echo "${ECHO_T}no" >&6
 
9433
    ;;
 
9434
  esac
 
9435
fi
 
9436
 
 
9437
if test "x$enable_dlopen" != xyes; then
 
9438
  enable_dlopen=unknown
 
9439
  enable_dlopen_self=unknown
 
9440
  enable_dlopen_self_static=unknown
 
9441
else
 
9442
  lt_cv_dlopen=no
 
9443
  lt_cv_dlopen_libs=
 
9444
 
 
9445
  case $host_os in
 
9446
  beos*)
 
9447
    lt_cv_dlopen="load_add_on"
 
9448
    lt_cv_dlopen_libs=
 
9449
    lt_cv_dlopen_self=yes
 
9450
    ;;
 
9451
 
 
9452
  mingw* | pw32*)
 
9453
    lt_cv_dlopen="LoadLibrary"
 
9454
    lt_cv_dlopen_libs=
 
9455
   ;;
 
9456
 
 
9457
  cygwin*)
 
9458
    lt_cv_dlopen="dlopen"
 
9459
    lt_cv_dlopen_libs=
 
9460
   ;;
 
9461
 
 
9462
  darwin*)
 
9463
  # if libdl is installed we need to link against it
 
9464
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9465
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9466
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9467
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9468
else
 
9469
  ac_check_lib_save_LIBS=$LIBS
 
9470
LIBS="-ldl  $LIBS"
 
9471
cat >conftest.$ac_ext <<_ACEOF
 
9472
/* confdefs.h.  */
 
9473
_ACEOF
 
9474
cat confdefs.h >>conftest.$ac_ext
 
9475
cat >>conftest.$ac_ext <<_ACEOF
 
9476
/* end confdefs.h.  */
 
9477
 
 
9478
/* Override any gcc2 internal prototype to avoid an error.  */
 
9479
#ifdef __cplusplus
 
9480
extern "C"
 
9481
#endif
 
9482
/* We use char because int might match the return type of a gcc2
 
9483
   builtin and then its argument prototype would still apply.  */
 
9484
char dlopen ();
 
9485
int
 
9486
main ()
 
9487
{
 
9488
dlopen ();
 
9489
  ;
 
9490
  return 0;
 
9491
}
 
9492
_ACEOF
 
9493
rm -f conftest.$ac_objext conftest$ac_exeext
 
9494
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9495
  (eval $ac_link) 2>conftest.er1
 
9496
  ac_status=$?
 
9497
  grep -v '^ *+' conftest.er1 >conftest.err
 
9498
  rm -f conftest.er1
 
9499
  cat conftest.err >&5
 
9500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9501
  (exit $ac_status); } &&
 
9502
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9504
  (eval $ac_try) 2>&5
 
9505
  ac_status=$?
 
9506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9507
  (exit $ac_status); }; } &&
 
9508
         { ac_try='test -s conftest$ac_exeext'
 
9509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9510
  (eval $ac_try) 2>&5
 
9511
  ac_status=$?
 
9512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9513
  (exit $ac_status); }; }; then
 
9514
  ac_cv_lib_dl_dlopen=yes
 
9515
else
 
9516
  echo "$as_me: failed program was:" >&5
 
9517
sed 's/^/| /' conftest.$ac_ext >&5
 
9518
 
 
9519
ac_cv_lib_dl_dlopen=no
 
9520
fi
 
9521
rm -f conftest.err conftest.$ac_objext \
 
9522
      conftest$ac_exeext conftest.$ac_ext
 
9523
LIBS=$ac_check_lib_save_LIBS
 
9524
fi
 
9525
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9526
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9527
if test $ac_cv_lib_dl_dlopen = yes; then
 
9528
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9529
else
 
9530
 
 
9531
    lt_cv_dlopen="dyld"
 
9532
    lt_cv_dlopen_libs=
 
9533
    lt_cv_dlopen_self=yes
 
9534
 
 
9535
fi
 
9536
 
 
9537
   ;;
 
9538
 
 
9539
  *)
 
9540
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
9541
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
9542
if test "${ac_cv_func_shl_load+set}" = set; then
 
9543
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9544
else
 
9545
  cat >conftest.$ac_ext <<_ACEOF
 
9546
/* confdefs.h.  */
 
9547
_ACEOF
 
9548
cat confdefs.h >>conftest.$ac_ext
 
9549
cat >>conftest.$ac_ext <<_ACEOF
 
9550
/* end confdefs.h.  */
 
9551
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9552
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9553
#define shl_load innocuous_shl_load
 
9554
 
 
9555
/* System header to define __stub macros and hopefully few prototypes,
 
9556
    which can conflict with char shl_load (); below.
 
9557
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9558
    <limits.h> exists even on freestanding compilers.  */
 
9559
 
 
9560
#ifdef __STDC__
 
9561
# include <limits.h>
 
9562
#else
 
9563
# include <assert.h>
 
9564
#endif
 
9565
 
 
9566
#undef shl_load
 
9567
 
 
9568
/* Override any gcc2 internal prototype to avoid an error.  */
 
9569
#ifdef __cplusplus
 
9570
extern "C"
 
9571
{
 
9572
#endif
 
9573
/* We use char because int might match the return type of a gcc2
 
9574
   builtin and then its argument prototype would still apply.  */
 
9575
char shl_load ();
 
9576
/* The GNU C library defines this for functions which it implements
 
9577
    to always fail with ENOSYS.  Some functions are actually named
 
9578
    something starting with __ and the normal name is an alias.  */
 
9579
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
9580
choke me
 
9581
#else
 
9582
char (*f) () = shl_load;
 
9583
#endif
 
9584
#ifdef __cplusplus
 
9585
}
 
9586
#endif
 
9587
 
 
9588
int
 
9589
main ()
 
9590
{
 
9591
return f != shl_load;
 
9592
  ;
 
9593
  return 0;
 
9594
}
 
9595
_ACEOF
 
9596
rm -f conftest.$ac_objext conftest$ac_exeext
 
9597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9598
  (eval $ac_link) 2>conftest.er1
 
9599
  ac_status=$?
 
9600
  grep -v '^ *+' conftest.er1 >conftest.err
 
9601
  rm -f conftest.er1
 
9602
  cat conftest.err >&5
 
9603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9604
  (exit $ac_status); } &&
 
9605
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9607
  (eval $ac_try) 2>&5
 
9608
  ac_status=$?
 
9609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9610
  (exit $ac_status); }; } &&
 
9611
         { ac_try='test -s conftest$ac_exeext'
 
9612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9613
  (eval $ac_try) 2>&5
 
9614
  ac_status=$?
 
9615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9616
  (exit $ac_status); }; }; then
 
9617
  ac_cv_func_shl_load=yes
 
9618
else
 
9619
  echo "$as_me: failed program was:" >&5
 
9620
sed 's/^/| /' conftest.$ac_ext >&5
 
9621
 
 
9622
ac_cv_func_shl_load=no
 
9623
fi
 
9624
rm -f conftest.err conftest.$ac_objext \
 
9625
      conftest$ac_exeext conftest.$ac_ext
 
9626
fi
 
9627
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9628
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
9629
if test $ac_cv_func_shl_load = yes; then
 
9630
  lt_cv_dlopen="shl_load"
 
9631
else
 
9632
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9633
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
9634
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9636
else
 
9637
  ac_check_lib_save_LIBS=$LIBS
 
9638
LIBS="-ldld  $LIBS"
 
9639
cat >conftest.$ac_ext <<_ACEOF
 
9640
/* confdefs.h.  */
 
9641
_ACEOF
 
9642
cat confdefs.h >>conftest.$ac_ext
 
9643
cat >>conftest.$ac_ext <<_ACEOF
 
9644
/* end confdefs.h.  */
 
9645
 
 
9646
/* Override any gcc2 internal prototype to avoid an error.  */
 
9647
#ifdef __cplusplus
 
9648
extern "C"
 
9649
#endif
 
9650
/* We use char because int might match the return type of a gcc2
 
9651
   builtin and then its argument prototype would still apply.  */
 
9652
char shl_load ();
 
9653
int
 
9654
main ()
 
9655
{
 
9656
shl_load ();
 
9657
  ;
 
9658
  return 0;
 
9659
}
 
9660
_ACEOF
 
9661
rm -f conftest.$ac_objext conftest$ac_exeext
 
9662
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9663
  (eval $ac_link) 2>conftest.er1
 
9664
  ac_status=$?
 
9665
  grep -v '^ *+' conftest.er1 >conftest.err
 
9666
  rm -f conftest.er1
 
9667
  cat conftest.err >&5
 
9668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9669
  (exit $ac_status); } &&
 
9670
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9672
  (eval $ac_try) 2>&5
 
9673
  ac_status=$?
 
9674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9675
  (exit $ac_status); }; } &&
 
9676
         { ac_try='test -s conftest$ac_exeext'
 
9677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9678
  (eval $ac_try) 2>&5
 
9679
  ac_status=$?
 
9680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9681
  (exit $ac_status); }; }; then
 
9682
  ac_cv_lib_dld_shl_load=yes
 
9683
else
 
9684
  echo "$as_me: failed program was:" >&5
 
9685
sed 's/^/| /' conftest.$ac_ext >&5
 
9686
 
 
9687
ac_cv_lib_dld_shl_load=no
 
9688
fi
 
9689
rm -f conftest.err conftest.$ac_objext \
 
9690
      conftest$ac_exeext conftest.$ac_ext
 
9691
LIBS=$ac_check_lib_save_LIBS
 
9692
fi
 
9693
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9694
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
9695
if test $ac_cv_lib_dld_shl_load = yes; then
 
9696
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9697
else
 
9698
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
9699
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
9700
if test "${ac_cv_func_dlopen+set}" = set; then
 
9701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9702
else
 
9703
  cat >conftest.$ac_ext <<_ACEOF
 
9704
/* confdefs.h.  */
 
9705
_ACEOF
 
9706
cat confdefs.h >>conftest.$ac_ext
 
9707
cat >>conftest.$ac_ext <<_ACEOF
 
9708
/* end confdefs.h.  */
 
9709
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9710
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9711
#define dlopen innocuous_dlopen
 
9712
 
 
9713
/* System header to define __stub macros and hopefully few prototypes,
 
9714
    which can conflict with char dlopen (); below.
 
9715
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9716
    <limits.h> exists even on freestanding compilers.  */
 
9717
 
 
9718
#ifdef __STDC__
 
9719
# include <limits.h>
 
9720
#else
 
9721
# include <assert.h>
 
9722
#endif
 
9723
 
 
9724
#undef dlopen
 
9725
 
 
9726
/* Override any gcc2 internal prototype to avoid an error.  */
 
9727
#ifdef __cplusplus
 
9728
extern "C"
 
9729
{
 
9730
#endif
 
9731
/* We use char because int might match the return type of a gcc2
 
9732
   builtin and then its argument prototype would still apply.  */
 
9733
char dlopen ();
 
9734
/* The GNU C library defines this for functions which it implements
 
9735
    to always fail with ENOSYS.  Some functions are actually named
 
9736
    something starting with __ and the normal name is an alias.  */
 
9737
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9738
choke me
 
9739
#else
 
9740
char (*f) () = dlopen;
 
9741
#endif
 
9742
#ifdef __cplusplus
 
9743
}
 
9744
#endif
 
9745
 
 
9746
int
 
9747
main ()
 
9748
{
 
9749
return f != dlopen;
 
9750
  ;
 
9751
  return 0;
 
9752
}
 
9753
_ACEOF
 
9754
rm -f conftest.$ac_objext conftest$ac_exeext
 
9755
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9756
  (eval $ac_link) 2>conftest.er1
 
9757
  ac_status=$?
 
9758
  grep -v '^ *+' conftest.er1 >conftest.err
 
9759
  rm -f conftest.er1
 
9760
  cat conftest.err >&5
 
9761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9762
  (exit $ac_status); } &&
 
9763
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9765
  (eval $ac_try) 2>&5
 
9766
  ac_status=$?
 
9767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9768
  (exit $ac_status); }; } &&
 
9769
         { ac_try='test -s conftest$ac_exeext'
 
9770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9771
  (eval $ac_try) 2>&5
 
9772
  ac_status=$?
 
9773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9774
  (exit $ac_status); }; }; then
 
9775
  ac_cv_func_dlopen=yes
 
9776
else
 
9777
  echo "$as_me: failed program was:" >&5
 
9778
sed 's/^/| /' conftest.$ac_ext >&5
 
9779
 
 
9780
ac_cv_func_dlopen=no
 
9781
fi
 
9782
rm -f conftest.err conftest.$ac_objext \
 
9783
      conftest$ac_exeext conftest.$ac_ext
 
9784
fi
 
9785
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9786
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
9787
if test $ac_cv_func_dlopen = yes; then
 
9788
  lt_cv_dlopen="dlopen"
 
9789
else
 
9790
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9791
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9792
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9794
else
 
9795
  ac_check_lib_save_LIBS=$LIBS
 
9796
LIBS="-ldl  $LIBS"
 
9797
cat >conftest.$ac_ext <<_ACEOF
 
9798
/* confdefs.h.  */
 
9799
_ACEOF
 
9800
cat confdefs.h >>conftest.$ac_ext
 
9801
cat >>conftest.$ac_ext <<_ACEOF
 
9802
/* end confdefs.h.  */
 
9803
 
 
9804
/* Override any gcc2 internal prototype to avoid an error.  */
 
9805
#ifdef __cplusplus
 
9806
extern "C"
 
9807
#endif
 
9808
/* We use char because int might match the return type of a gcc2
 
9809
   builtin and then its argument prototype would still apply.  */
 
9810
char dlopen ();
 
9811
int
 
9812
main ()
 
9813
{
 
9814
dlopen ();
 
9815
  ;
 
9816
  return 0;
 
9817
}
 
9818
_ACEOF
 
9819
rm -f conftest.$ac_objext conftest$ac_exeext
 
9820
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9821
  (eval $ac_link) 2>conftest.er1
 
9822
  ac_status=$?
 
9823
  grep -v '^ *+' conftest.er1 >conftest.err
 
9824
  rm -f conftest.er1
 
9825
  cat conftest.err >&5
 
9826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9827
  (exit $ac_status); } &&
 
9828
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9830
  (eval $ac_try) 2>&5
 
9831
  ac_status=$?
 
9832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9833
  (exit $ac_status); }; } &&
 
9834
         { ac_try='test -s conftest$ac_exeext'
 
9835
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9836
  (eval $ac_try) 2>&5
 
9837
  ac_status=$?
 
9838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9839
  (exit $ac_status); }; }; then
 
9840
  ac_cv_lib_dl_dlopen=yes
 
9841
else
 
9842
  echo "$as_me: failed program was:" >&5
 
9843
sed 's/^/| /' conftest.$ac_ext >&5
 
9844
 
 
9845
ac_cv_lib_dl_dlopen=no
 
9846
fi
 
9847
rm -f conftest.err conftest.$ac_objext \
 
9848
      conftest$ac_exeext conftest.$ac_ext
 
9849
LIBS=$ac_check_lib_save_LIBS
 
9850
fi
 
9851
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9852
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9853
if test $ac_cv_lib_dl_dlopen = yes; then
 
9854
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9855
else
 
9856
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9857
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
9858
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9860
else
 
9861
  ac_check_lib_save_LIBS=$LIBS
 
9862
LIBS="-lsvld  $LIBS"
 
9863
cat >conftest.$ac_ext <<_ACEOF
 
9864
/* confdefs.h.  */
 
9865
_ACEOF
 
9866
cat confdefs.h >>conftest.$ac_ext
 
9867
cat >>conftest.$ac_ext <<_ACEOF
 
9868
/* end confdefs.h.  */
 
9869
 
 
9870
/* Override any gcc2 internal prototype to avoid an error.  */
 
9871
#ifdef __cplusplus
 
9872
extern "C"
 
9873
#endif
 
9874
/* We use char because int might match the return type of a gcc2
 
9875
   builtin and then its argument prototype would still apply.  */
 
9876
char dlopen ();
 
9877
int
 
9878
main ()
 
9879
{
 
9880
dlopen ();
 
9881
  ;
 
9882
  return 0;
 
9883
}
 
9884
_ACEOF
 
9885
rm -f conftest.$ac_objext conftest$ac_exeext
 
9886
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9887
  (eval $ac_link) 2>conftest.er1
 
9888
  ac_status=$?
 
9889
  grep -v '^ *+' conftest.er1 >conftest.err
 
9890
  rm -f conftest.er1
 
9891
  cat conftest.err >&5
 
9892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9893
  (exit $ac_status); } &&
 
9894
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9895
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9896
  (eval $ac_try) 2>&5
 
9897
  ac_status=$?
 
9898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9899
  (exit $ac_status); }; } &&
 
9900
         { ac_try='test -s conftest$ac_exeext'
 
9901
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9902
  (eval $ac_try) 2>&5
 
9903
  ac_status=$?
 
9904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9905
  (exit $ac_status); }; }; then
 
9906
  ac_cv_lib_svld_dlopen=yes
 
9907
else
 
9908
  echo "$as_me: failed program was:" >&5
 
9909
sed 's/^/| /' conftest.$ac_ext >&5
 
9910
 
 
9911
ac_cv_lib_svld_dlopen=no
 
9912
fi
 
9913
rm -f conftest.err conftest.$ac_objext \
 
9914
      conftest$ac_exeext conftest.$ac_ext
 
9915
LIBS=$ac_check_lib_save_LIBS
 
9916
fi
 
9917
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9918
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9919
if test $ac_cv_lib_svld_dlopen = yes; then
 
9920
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9921
else
 
9922
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9923
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9924
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9925
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9926
else
 
9927
  ac_check_lib_save_LIBS=$LIBS
 
9928
LIBS="-ldld  $LIBS"
 
9929
cat >conftest.$ac_ext <<_ACEOF
 
9930
/* confdefs.h.  */
 
9931
_ACEOF
 
9932
cat confdefs.h >>conftest.$ac_ext
 
9933
cat >>conftest.$ac_ext <<_ACEOF
 
9934
/* end confdefs.h.  */
 
9935
 
 
9936
/* Override any gcc2 internal prototype to avoid an error.  */
 
9937
#ifdef __cplusplus
 
9938
extern "C"
 
9939
#endif
 
9940
/* We use char because int might match the return type of a gcc2
 
9941
   builtin and then its argument prototype would still apply.  */
 
9942
char dld_link ();
 
9943
int
 
9944
main ()
 
9945
{
 
9946
dld_link ();
 
9947
  ;
 
9948
  return 0;
 
9949
}
 
9950
_ACEOF
 
9951
rm -f conftest.$ac_objext conftest$ac_exeext
 
9952
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9953
  (eval $ac_link) 2>conftest.er1
 
9954
  ac_status=$?
 
9955
  grep -v '^ *+' conftest.er1 >conftest.err
 
9956
  rm -f conftest.er1
 
9957
  cat conftest.err >&5
 
9958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9959
  (exit $ac_status); } &&
 
9960
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9962
  (eval $ac_try) 2>&5
 
9963
  ac_status=$?
 
9964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9965
  (exit $ac_status); }; } &&
 
9966
         { ac_try='test -s conftest$ac_exeext'
 
9967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9968
  (eval $ac_try) 2>&5
 
9969
  ac_status=$?
 
9970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9971
  (exit $ac_status); }; }; then
 
9972
  ac_cv_lib_dld_dld_link=yes
 
9973
else
 
9974
  echo "$as_me: failed program was:" >&5
 
9975
sed 's/^/| /' conftest.$ac_ext >&5
 
9976
 
 
9977
ac_cv_lib_dld_dld_link=no
 
9978
fi
 
9979
rm -f conftest.err conftest.$ac_objext \
 
9980
      conftest$ac_exeext conftest.$ac_ext
 
9981
LIBS=$ac_check_lib_save_LIBS
 
9982
fi
 
9983
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9984
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9985
if test $ac_cv_lib_dld_dld_link = yes; then
 
9986
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9987
fi
 
9988
 
 
9989
 
 
9990
fi
 
9991
 
 
9992
 
 
9993
fi
 
9994
 
 
9995
 
 
9996
fi
 
9997
 
 
9998
 
 
9999
fi
 
10000
 
 
10001
 
 
10002
fi
 
10003
 
 
10004
    ;;
 
10005
  esac
 
10006
 
 
10007
  if test "x$lt_cv_dlopen" != xno; then
 
10008
    enable_dlopen=yes
 
10009
  else
 
10010
    enable_dlopen=no
 
10011
  fi
 
10012
 
 
10013
  case $lt_cv_dlopen in
 
10014
  dlopen)
 
10015
    save_CPPFLAGS="$CPPFLAGS"
 
10016
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10017
 
 
10018
    save_LDFLAGS="$LDFLAGS"
 
10019
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10020
 
 
10021
    save_LIBS="$LIBS"
 
10022
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10023
 
 
10024
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10025
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
10026
if test "${lt_cv_dlopen_self+set}" = set; then
 
10027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10028
else
 
10029
          if test "$cross_compiling" = yes; then :
 
10030
  lt_cv_dlopen_self=cross
 
10031
else
 
10032
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10033
  lt_status=$lt_dlunknown
 
10034
  cat > conftest.$ac_ext <<EOF
 
10035
#line 10035 "configure"
 
10036
#include "confdefs.h"
 
10037
 
 
10038
#if HAVE_DLFCN_H
 
10039
#include <dlfcn.h>
 
10040
#endif
 
10041
 
 
10042
#include <stdio.h>
 
10043
 
 
10044
#ifdef RTLD_GLOBAL
 
10045
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10046
#else
 
10047
#  ifdef DL_GLOBAL
 
10048
#    define LT_DLGLOBAL         DL_GLOBAL
 
10049
#  else
 
10050
#    define LT_DLGLOBAL         0
 
10051
#  endif
 
10052
#endif
 
10053
 
 
10054
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10055
   find out it does not work in some platform. */
 
10056
#ifndef LT_DLLAZY_OR_NOW
 
10057
#  ifdef RTLD_LAZY
 
10058
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10059
#  else
 
10060
#    ifdef DL_LAZY
 
10061
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10062
#    else
 
10063
#      ifdef RTLD_NOW
 
10064
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10065
#      else
 
10066
#        ifdef DL_NOW
 
10067
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10068
#        else
 
10069
#          define LT_DLLAZY_OR_NOW      0
 
10070
#        endif
 
10071
#      endif
 
10072
#    endif
 
10073
#  endif
 
10074
#endif
 
10075
 
 
10076
#ifdef __cplusplus
 
10077
extern "C" void exit (int);
 
10078
#endif
 
10079
 
 
10080
void fnord() { int i=42;}
 
10081
int main ()
 
10082
{
 
10083
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10084
  int status = $lt_dlunknown;
 
10085
 
 
10086
  if (self)
 
10087
    {
 
10088
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10089
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10090
      /* dlclose (self); */
 
10091
    }
 
10092
 
 
10093
    exit (status);
 
10094
}
 
10095
EOF
 
10096
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10097
  (eval $ac_link) 2>&5
 
10098
  ac_status=$?
 
10099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10100
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10101
    (./conftest; exit; ) 2>/dev/null
 
10102
    lt_status=$?
 
10103
    case x$lt_status in
 
10104
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10105
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10106
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
10107
    esac
 
10108
  else :
 
10109
    # compilation failed
 
10110
    lt_cv_dlopen_self=no
 
10111
  fi
 
10112
fi
 
10113
rm -fr conftest*
 
10114
 
 
10115
 
 
10116
fi
 
10117
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10118
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
10119
 
 
10120
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10121
      LDFLAGS="$LDFLAGS $link_static_flag"
 
10122
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10123
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
10124
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10126
else
 
10127
          if test "$cross_compiling" = yes; then :
 
10128
  lt_cv_dlopen_self_static=cross
 
10129
else
 
10130
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10131
  lt_status=$lt_dlunknown
 
10132
  cat > conftest.$ac_ext <<EOF
 
10133
#line 10133 "configure"
 
10134
#include "confdefs.h"
 
10135
 
 
10136
#if HAVE_DLFCN_H
 
10137
#include <dlfcn.h>
 
10138
#endif
 
10139
 
 
10140
#include <stdio.h>
 
10141
 
 
10142
#ifdef RTLD_GLOBAL
 
10143
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10144
#else
 
10145
#  ifdef DL_GLOBAL
 
10146
#    define LT_DLGLOBAL         DL_GLOBAL
 
10147
#  else
 
10148
#    define LT_DLGLOBAL         0
 
10149
#  endif
 
10150
#endif
 
10151
 
 
10152
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10153
   find out it does not work in some platform. */
 
10154
#ifndef LT_DLLAZY_OR_NOW
 
10155
#  ifdef RTLD_LAZY
 
10156
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10157
#  else
 
10158
#    ifdef DL_LAZY
 
10159
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10160
#    else
 
10161
#      ifdef RTLD_NOW
 
10162
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10163
#      else
 
10164
#        ifdef DL_NOW
 
10165
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10166
#        else
 
10167
#          define LT_DLLAZY_OR_NOW      0
 
10168
#        endif
 
10169
#      endif
 
10170
#    endif
 
10171
#  endif
 
10172
#endif
 
10173
 
 
10174
#ifdef __cplusplus
 
10175
extern "C" void exit (int);
 
10176
#endif
 
10177
 
 
10178
void fnord() { int i=42;}
 
10179
int main ()
 
10180
{
 
10181
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10182
  int status = $lt_dlunknown;
 
10183
 
 
10184
  if (self)
 
10185
    {
 
10186
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10187
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10188
      /* dlclose (self); */
 
10189
    }
 
10190
 
 
10191
    exit (status);
 
10192
}
 
10193
EOF
 
10194
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10195
  (eval $ac_link) 2>&5
 
10196
  ac_status=$?
 
10197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10198
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10199
    (./conftest; exit; ) 2>/dev/null
 
10200
    lt_status=$?
 
10201
    case x$lt_status in
 
10202
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10203
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10204
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10205
    esac
 
10206
  else :
 
10207
    # compilation failed
 
10208
    lt_cv_dlopen_self_static=no
 
10209
  fi
 
10210
fi
 
10211
rm -fr conftest*
 
10212
 
 
10213
 
 
10214
fi
 
10215
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10216
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
10217
    fi
 
10218
 
 
10219
    CPPFLAGS="$save_CPPFLAGS"
 
10220
    LDFLAGS="$save_LDFLAGS"
 
10221
    LIBS="$save_LIBS"
 
10222
    ;;
 
10223
  esac
 
10224
 
 
10225
  case $lt_cv_dlopen_self in
 
10226
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10227
  *) enable_dlopen_self=unknown ;;
 
10228
  esac
 
10229
 
 
10230
  case $lt_cv_dlopen_self_static in
 
10231
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10232
  *) enable_dlopen_self_static=unknown ;;
 
10233
  esac
 
10234
fi
 
10235
 
 
10236
 
 
10237
# Report which librarie types wil actually be built
 
10238
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10239
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
10240
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10241
echo "${ECHO_T}$can_build_shared" >&6
 
10242
 
 
10243
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10244
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
10245
test "$can_build_shared" = "no" && enable_shared=no
 
10246
 
 
10247
# On AIX, shared libraries and static libraries use the same namespace, and
 
10248
# are all built from PIC.
 
10249
case "$host_os" in
 
10250
aix3*)
 
10251
  test "$enable_shared" = yes && enable_static=no
 
10252
  if test -n "$RANLIB"; then
 
10253
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10254
    postinstall_cmds='$RANLIB $lib'
 
10255
  fi
 
10256
  ;;
 
10257
 
 
10258
aix4* | aix5*)
 
10259
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10260
    test "$enable_shared" = yes && enable_static=no
 
10261
  fi
 
10262
  ;;
 
10263
  darwin* | rhapsody*)
 
10264
  if test "$GCC" = yes; then
 
10265
    archive_cmds_need_lc=no
 
10266
    case "$host_os" in
 
10267
    rhapsody* | darwin1.[012])
 
10268
      allow_undefined_flag='-undefined suppress'
 
10269
      ;;
 
10270
    *) # Darwin 1.3 on
 
10271
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10272
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
10273
      else
 
10274
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10275
          10.[012])
 
10276
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
10277
            ;;
 
10278
          10.*)
 
10279
            allow_undefined_flag='-undefined dynamic_lookup'
 
10280
            ;;
 
10281
        esac
 
10282
      fi
 
10283
      ;;
 
10284
    esac
 
10285
    output_verbose_link_cmd='echo'
 
10286
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
10287
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10288
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10289
    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}'
 
10290
    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}'
 
10291
    hardcode_direct=no
 
10292
    hardcode_automatic=yes
 
10293
    hardcode_shlibpath_var=unsupported
 
10294
    whole_archive_flag_spec='-all_load $convenience'
 
10295
    link_all_deplibs=yes
 
10296
  else
 
10297
    ld_shlibs=no
 
10298
  fi
 
10299
    ;;
 
10300
esac
 
10301
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10302
echo "${ECHO_T}$enable_shared" >&6
 
10303
 
 
10304
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10305
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
10306
# Make sure either enable_shared or enable_static is yes.
 
10307
test "$enable_shared" = yes || enable_static=yes
 
10308
echo "$as_me:$LINENO: result: $enable_static" >&5
 
10309
echo "${ECHO_T}$enable_static" >&6
 
10310
 
 
10311
# The else clause should only fire when bootstrapping the
 
10312
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10313
# with your package, and you will get complaints that there are
 
10314
# no rules to generate ltmain.sh.
 
10315
if test -f "$ltmain"; then
 
10316
  # See if we are running on zsh, and set the options which allow our commands through
 
10317
  # without removal of \ escapes.
 
10318
  if test -n "${ZSH_VERSION+set}" ; then
 
10319
    setopt NO_GLOB_SUBST
 
10320
  fi
 
10321
  # Now quote all the things that may contain metacharacters while being
 
10322
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10323
  # variables and quote the copies for generation of the libtool script.
 
10324
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
10325
    SED SHELL STRIP \
 
10326
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10327
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10328
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10329
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10330
    lt_cv_sys_global_symbol_to_c_name_address \
 
10331
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10332
    old_postinstall_cmds old_postuninstall_cmds \
 
10333
    compiler \
 
10334
    CC \
 
10335
    LD \
 
10336
    lt_prog_compiler_wl \
 
10337
    lt_prog_compiler_pic \
 
10338
    lt_prog_compiler_static \
 
10339
    lt_prog_compiler_no_builtin_flag \
 
10340
    export_dynamic_flag_spec \
 
10341
    thread_safe_flag_spec \
 
10342
    whole_archive_flag_spec \
 
10343
    enable_shared_with_static_runtimes \
 
10344
    old_archive_cmds \
 
10345
    old_archive_from_new_cmds \
 
10346
    predep_objects \
 
10347
    postdep_objects \
 
10348
    predeps \
 
10349
    postdeps \
 
10350
    compiler_lib_search_path \
 
10351
    archive_cmds \
 
10352
    archive_expsym_cmds \
 
10353
    postinstall_cmds \
 
10354
    postuninstall_cmds \
 
10355
    old_archive_from_expsyms_cmds \
 
10356
    allow_undefined_flag \
 
10357
    no_undefined_flag \
 
10358
    export_symbols_cmds \
 
10359
    hardcode_libdir_flag_spec \
 
10360
    hardcode_libdir_flag_spec_ld \
 
10361
    hardcode_libdir_separator \
 
10362
    hardcode_automatic \
 
10363
    module_cmds \
 
10364
    module_expsym_cmds \
 
10365
    lt_cv_prog_compiler_c_o \
 
10366
    exclude_expsyms \
 
10367
    include_expsyms; do
 
10368
 
 
10369
    case $var in
 
10370
    old_archive_cmds | \
 
10371
    old_archive_from_new_cmds | \
 
10372
    archive_cmds | \
 
10373
    archive_expsym_cmds | \
 
10374
    module_cmds | \
 
10375
    module_expsym_cmds | \
 
10376
    old_archive_from_expsyms_cmds | \
 
10377
    export_symbols_cmds | \
 
10378
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10379
    postinstall_cmds | postuninstall_cmds | \
 
10380
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10381
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10382
      # Double-quote double-evaled strings.
 
10383
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10384
      ;;
 
10385
    *)
 
10386
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10387
      ;;
 
10388
    esac
 
10389
  done
 
10390
 
 
10391
  case $lt_echo in
 
10392
  *'\$0 --fallback-echo"')
 
10393
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10394
    ;;
 
10395
  esac
 
10396
 
 
10397
cfgfile="${ofile}T"
 
10398
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10399
  $rm -f "$cfgfile"
 
10400
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10401
echo "$as_me: creating $ofile" >&6;}
 
10402
 
 
10403
  cat <<__EOF__ >> "$cfgfile"
 
10404
#! $SHELL
 
10405
 
 
10406
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10407
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10408
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10409
#
 
10410
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10411
# Free Software Foundation, Inc.
 
10412
#
 
10413
# This file is part of GNU Libtool:
 
10414
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10415
#
 
10416
# This program is free software; you can redistribute it and/or modify
 
10417
# it under the terms of the GNU General Public License as published by
 
10418
# the Free Software Foundation; either version 2 of the License, or
 
10419
# (at your option) any later version.
 
10420
#
 
10421
# This program is distributed in the hope that it will be useful, but
 
10422
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10423
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10424
# General Public License for more details.
 
10425
#
 
10426
# You should have received a copy of the GNU General Public License
 
10427
# along with this program; if not, write to the Free Software
 
10428
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
10429
#
 
10430
# As a special exception to the GNU General Public License, if you
 
10431
# distribute this file as part of a program that contains a
 
10432
# configuration script generated by Autoconf, you may include it under
 
10433
# the same distribution terms that you use for the rest of that program.
 
10434
 
 
10435
# A sed program that does not truncate output.
 
10436
SED=$lt_SED
 
10437
 
 
10438
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10439
Xsed="$SED -e s/^X//"
 
10440
 
 
10441
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10442
# if CDPATH is set.
 
10443
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
10444
 
 
10445
# The names of the tagged configurations supported by this script.
 
10446
available_tags=
 
10447
 
 
10448
# ### BEGIN LIBTOOL CONFIG
 
10449
 
 
10450
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10451
 
 
10452
# Shell to use when invoking shell scripts.
 
10453
SHELL=$lt_SHELL
 
10454
 
 
10455
# Whether or not to build shared libraries.
 
10456
build_libtool_libs=$enable_shared
 
10457
 
 
10458
# Whether or not to build static libraries.
 
10459
build_old_libs=$enable_static
 
10460
 
 
10461
# Whether or not to add -lc for building shared libraries.
 
10462
build_libtool_need_lc=$archive_cmds_need_lc
 
10463
 
 
10464
# Whether or not to disallow shared libs when runtime libs are static
 
10465
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10466
 
 
10467
# Whether or not to optimize for fast installation.
 
10468
fast_install=$enable_fast_install
 
10469
 
 
10470
# The host system.
 
10471
host_alias=$host_alias
 
10472
host=$host
 
10473
 
 
10474
# An echo program that does not interpret backslashes.
 
10475
echo=$lt_echo
 
10476
 
 
10477
# The archiver.
 
10478
AR=$lt_AR
 
10479
AR_FLAGS=$lt_AR_FLAGS
 
10480
 
 
10481
# A C compiler.
 
10482
LTCC=$lt_LTCC
 
10483
 
 
10484
# A language-specific compiler.
 
10485
CC=$lt_compiler
 
10486
 
 
10487
# Is the compiler the GNU C compiler?
 
10488
with_gcc=$GCC
 
10489
 
 
10490
# An ERE matcher.
 
10491
EGREP=$lt_EGREP
 
10492
 
 
10493
# The linker used to build libraries.
 
10494
LD=$lt_LD
 
10495
 
 
10496
# Whether we need hard or soft links.
 
10497
LN_S=$lt_LN_S
 
10498
 
 
10499
# A BSD-compatible nm program.
 
10500
NM=$lt_NM
 
10501
 
 
10502
# A symbol stripping program
 
10503
STRIP=$lt_STRIP
 
10504
 
 
10505
# Used to examine libraries when file_magic_cmd begins "file"
 
10506
MAGIC_CMD=$MAGIC_CMD
 
10507
 
 
10508
# Used on cygwin: DLL creation program.
 
10509
DLLTOOL="$DLLTOOL"
 
10510
 
 
10511
# Used on cygwin: object dumper.
 
10512
OBJDUMP="$OBJDUMP"
 
10513
 
 
10514
# Used on cygwin: assembler.
 
10515
AS="$AS"
 
10516
 
 
10517
# The name of the directory that contains temporary libtool files.
 
10518
objdir=$objdir
 
10519
 
 
10520
# How to create reloadable object files.
 
10521
reload_flag=$lt_reload_flag
 
10522
reload_cmds=$lt_reload_cmds
 
10523
 
 
10524
# How to pass a linker flag through the compiler.
 
10525
wl=$lt_lt_prog_compiler_wl
 
10526
 
 
10527
# Object file suffix (normally "o").
 
10528
objext="$ac_objext"
 
10529
 
 
10530
# Old archive suffix (normally "a").
 
10531
libext="$libext"
 
10532
 
 
10533
# Shared library suffix (normally ".so").
 
10534
shrext_cmds='$shrext_cmds'
 
10535
 
 
10536
# Executable file suffix (normally "").
 
10537
exeext="$exeext"
 
10538
 
 
10539
# Additional compiler flags for building library objects.
 
10540
pic_flag=$lt_lt_prog_compiler_pic
 
10541
pic_mode=$pic_mode
 
10542
 
 
10543
# What is the maximum length of a command?
 
10544
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10545
 
 
10546
# Does compiler simultaneously support -c and -o options?
 
10547
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10548
 
 
10549
# Must we lock files when doing compilation ?
 
10550
need_locks=$lt_need_locks
 
10551
 
 
10552
# Do we need the lib prefix for modules?
 
10553
need_lib_prefix=$need_lib_prefix
 
10554
 
 
10555
# Do we need a version for libraries?
 
10556
need_version=$need_version
 
10557
 
 
10558
# Whether dlopen is supported.
 
10559
dlopen_support=$enable_dlopen
 
10560
 
 
10561
# Whether dlopen of programs is supported.
 
10562
dlopen_self=$enable_dlopen_self
 
10563
 
 
10564
# Whether dlopen of statically linked programs is supported.
 
10565
dlopen_self_static=$enable_dlopen_self_static
 
10566
 
 
10567
# Compiler flag to prevent dynamic linking.
 
10568
link_static_flag=$lt_lt_prog_compiler_static
 
10569
 
 
10570
# Compiler flag to turn off builtin functions.
 
10571
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10572
 
 
10573
# Compiler flag to allow reflexive dlopens.
 
10574
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10575
 
 
10576
# Compiler flag to generate shared objects directly from archives.
 
10577
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10578
 
 
10579
# Compiler flag to generate thread-safe objects.
 
10580
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10581
 
 
10582
# Library versioning type.
 
10583
version_type=$version_type
 
10584
 
 
10585
# Format of library name prefix.
 
10586
libname_spec=$lt_libname_spec
 
10587
 
 
10588
# List of archive names.  First name is the real one, the rest are links.
 
10589
# The last name is the one that the linker finds with -lNAME.
 
10590
library_names_spec=$lt_library_names_spec
 
10591
 
 
10592
# The coded name of the library, if different from the real name.
 
10593
soname_spec=$lt_soname_spec
 
10594
 
 
10595
# Commands used to build and install an old-style archive.
 
10596
RANLIB=$lt_RANLIB
 
10597
old_archive_cmds=$lt_old_archive_cmds
 
10598
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10599
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10600
 
 
10601
# Create an old-style archive from a shared archive.
 
10602
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10603
 
 
10604
# Create a temporary old-style archive to link instead of a shared archive.
 
10605
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10606
 
 
10607
# Commands used to build and install a shared archive.
 
10608
archive_cmds=$lt_archive_cmds
 
10609
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10610
postinstall_cmds=$lt_postinstall_cmds
 
10611
postuninstall_cmds=$lt_postuninstall_cmds
 
10612
 
 
10613
# Commands used to build a loadable module (assumed same as above if empty)
 
10614
module_cmds=$lt_module_cmds
 
10615
module_expsym_cmds=$lt_module_expsym_cmds
 
10616
 
 
10617
# Commands to strip libraries.
 
10618
old_striplib=$lt_old_striplib
 
10619
striplib=$lt_striplib
 
10620
 
 
10621
# Dependencies to place before the objects being linked to create a
 
10622
# shared library.
 
10623
predep_objects=$lt_predep_objects
 
10624
 
 
10625
# Dependencies to place after the objects being linked to create a
 
10626
# shared library.
 
10627
postdep_objects=$lt_postdep_objects
 
10628
 
 
10629
# Dependencies to place before the objects being linked to create a
 
10630
# shared library.
 
10631
predeps=$lt_predeps
 
10632
 
 
10633
# Dependencies to place after the objects being linked to create a
 
10634
# shared library.
 
10635
postdeps=$lt_postdeps
 
10636
 
 
10637
# The library search path used internally by the compiler when linking
 
10638
# a shared library.
 
10639
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10640
 
 
10641
# Method to check whether dependent libraries are shared objects.
 
10642
deplibs_check_method=$lt_deplibs_check_method
 
10643
 
 
10644
# Command to use when deplibs_check_method == file_magic.
 
10645
file_magic_cmd=$lt_file_magic_cmd
 
10646
 
 
10647
# Flag that allows shared libraries with undefined symbols to be built.
 
10648
allow_undefined_flag=$lt_allow_undefined_flag
 
10649
 
 
10650
# Flag that forces no undefined symbols.
 
10651
no_undefined_flag=$lt_no_undefined_flag
 
10652
 
 
10653
# Commands used to finish a libtool library installation in a directory.
 
10654
finish_cmds=$lt_finish_cmds
 
10655
 
 
10656
# Same as above, but a single script fragment to be evaled but not shown.
 
10657
finish_eval=$lt_finish_eval
 
10658
 
 
10659
# Take the output of nm and produce a listing of raw symbols and C names.
 
10660
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10661
 
 
10662
# Transform the output of nm in a proper C declaration
 
10663
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10664
 
 
10665
# Transform the output of nm in a C name address pair
 
10666
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10667
 
 
10668
# This is the shared library runtime path variable.
 
10669
runpath_var=$runpath_var
 
10670
 
 
10671
# This is the shared library path variable.
 
10672
shlibpath_var=$shlibpath_var
 
10673
 
 
10674
# Is shlibpath searched before the hard-coded library search path?
 
10675
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10676
 
 
10677
# How to hardcode a shared library path into an executable.
 
10678
hardcode_action=$hardcode_action
 
10679
 
 
10680
# Whether we should hardcode library paths into libraries.
 
10681
hardcode_into_libs=$hardcode_into_libs
 
10682
 
 
10683
# Flag to hardcode \$libdir into a binary during linking.
 
10684
# This must work even if \$libdir does not exist.
 
10685
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10686
 
 
10687
# If ld is used when linking, flag to hardcode \$libdir into
 
10688
# a binary during linking. This must work even if \$libdir does
 
10689
# not exist.
 
10690
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10691
 
 
10692
# Whether we need a single -rpath flag with a separated argument.
 
10693
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10694
 
 
10695
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10696
# resulting binary.
 
10697
hardcode_direct=$hardcode_direct
 
10698
 
 
10699
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10700
# resulting binary.
 
10701
hardcode_minus_L=$hardcode_minus_L
 
10702
 
 
10703
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10704
# the resulting binary.
 
10705
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10706
 
 
10707
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10708
# and all subsequent libraries and executables linked against it.
 
10709
hardcode_automatic=$hardcode_automatic
 
10710
 
 
10711
# Variables whose values should be saved in libtool wrapper scripts and
 
10712
# restored at relink time.
 
10713
variables_saved_for_relink="$variables_saved_for_relink"
 
10714
 
 
10715
# Whether libtool must link a program against all its dependency libraries.
 
10716
link_all_deplibs=$link_all_deplibs
 
10717
 
 
10718
# Compile-time system search path for libraries
 
10719
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10720
 
 
10721
# Run-time system search path for libraries
 
10722
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10723
 
 
10724
# Fix the shell variable \$srcfile for the compiler.
 
10725
fix_srcfile_path="$fix_srcfile_path"
 
10726
 
 
10727
# Set to yes if exported symbols are required.
 
10728
always_export_symbols=$always_export_symbols
 
10729
 
 
10730
# The commands to list exported symbols.
 
10731
export_symbols_cmds=$lt_export_symbols_cmds
 
10732
 
 
10733
# The commands to extract the exported symbol list from a shared archive.
 
10734
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10735
 
 
10736
# Symbols that should not be listed in the preloaded symbols.
 
10737
exclude_expsyms=$lt_exclude_expsyms
 
10738
 
 
10739
# Symbols that must always be exported.
 
10740
include_expsyms=$lt_include_expsyms
 
10741
 
 
10742
# ### END LIBTOOL CONFIG
 
10743
 
 
10744
__EOF__
 
10745
 
 
10746
 
 
10747
  case $host_os in
 
10748
  aix3*)
 
10749
    cat <<\EOF >> "$cfgfile"
 
10750
 
 
10751
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10752
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10753
# vanish in a puff of smoke.
 
10754
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10755
  COLLECT_NAMES=
 
10756
  export COLLECT_NAMES
 
10757
fi
 
10758
EOF
 
10759
    ;;
 
10760
  esac
 
10761
 
 
10762
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10763
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10764
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10765
  # is reportedly fixed, but why not run on old versions too?
 
10766
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10767
 
 
10768
  mv -f "$cfgfile" "$ofile" || \
 
10769
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10770
  chmod +x "$ofile"
 
10771
 
 
10772
else
 
10773
  # If there is no Makefile yet, we rely on a make rule to execute
 
10774
  # `config.status --recheck' to rerun these tests and create the
 
10775
  # libtool script then.
 
10776
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10777
  if test -f "$ltmain_in"; then
 
10778
    test -f Makefile && make "$ltmain"
 
10779
  fi
 
10780
fi
 
10781
 
 
10782
 
 
10783
ac_ext=c
 
10784
ac_cpp='$CPP $CPPFLAGS'
 
10785
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10786
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10787
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10788
 
 
10789
CC="$lt_save_CC"
 
10790
 
 
10791
 
 
10792
# Check whether --with-tags or --without-tags was given.
 
10793
if test "${with_tags+set}" = set; then
 
10794
  withval="$with_tags"
 
10795
  tagnames="$withval"
 
10796
fi;
 
10797
 
 
10798
if test -f "$ltmain" && test -n "$tagnames"; then
 
10799
  if test ! -f "${ofile}"; then
 
10800
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10801
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10802
  fi
 
10803
 
 
10804
  if test -z "$LTCC"; then
 
10805
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10806
    if test -z "$LTCC"; then
 
10807
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10808
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10809
    else
 
10810
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10811
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10812
    fi
 
10813
  fi
 
10814
 
 
10815
  # Extract list of available tagged configurations in $ofile.
 
10816
  # Note that this assumes the entire list is on one line.
 
10817
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10818
 
 
10819
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10820
  for tagname in $tagnames; do
 
10821
    IFS="$lt_save_ifs"
 
10822
    # Check whether tagname contains only valid characters
 
10823
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10824
    "") ;;
 
10825
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10826
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10827
   { (exit 1); exit 1; }; }
 
10828
        ;;
 
10829
    esac
 
10830
 
 
10831
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10832
    then
 
10833
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10834
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10835
   { (exit 1); exit 1; }; }
 
10836
    fi
 
10837
 
 
10838
    # Update the list of available tags.
 
10839
    if test -n "$tagname"; then
 
10840
      echo appending configuration tag \"$tagname\" to $ofile
 
10841
 
 
10842
      case $tagname in
 
10843
      CXX)
 
10844
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
10845
          ac_ext=cc
 
10846
ac_cpp='$CXXCPP $CPPFLAGS'
 
10847
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10848
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10849
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10850
 
 
10851
 
 
10852
 
 
10853
 
 
10854
archive_cmds_need_lc_CXX=no
 
10855
allow_undefined_flag_CXX=
 
10856
always_export_symbols_CXX=no
 
10857
archive_expsym_cmds_CXX=
 
10858
export_dynamic_flag_spec_CXX=
 
10859
hardcode_direct_CXX=no
 
10860
hardcode_libdir_flag_spec_CXX=
 
10861
hardcode_libdir_flag_spec_ld_CXX=
 
10862
hardcode_libdir_separator_CXX=
 
10863
hardcode_minus_L_CXX=no
 
10864
hardcode_automatic_CXX=no
 
10865
module_cmds_CXX=
 
10866
module_expsym_cmds_CXX=
 
10867
link_all_deplibs_CXX=unknown
 
10868
old_archive_cmds_CXX=$old_archive_cmds
 
10869
no_undefined_flag_CXX=
 
10870
whole_archive_flag_spec_CXX=
 
10871
enable_shared_with_static_runtimes_CXX=no
 
10872
 
 
10873
# Dependencies to place before and after the object being linked:
 
10874
predep_objects_CXX=
 
10875
postdep_objects_CXX=
 
10876
predeps_CXX=
 
10877
postdeps_CXX=
 
10878
compiler_lib_search_path_CXX=
 
10879
 
 
10880
# Source file extension for C++ test sources.
 
10881
ac_ext=cc
 
10882
 
 
10883
# Object file extension for compiled C++ test sources.
 
10884
objext=o
 
10885
objext_CXX=$objext
 
10886
 
 
10887
# Code to be used in simple compile tests
 
10888
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10889
 
 
10890
# Code to be used in simple link tests
 
10891
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10892
 
 
10893
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10894
 
 
10895
# If no C compiler was specified, use CC.
 
10896
LTCC=${LTCC-"$CC"}
 
10897
 
 
10898
# Allow CC to be a program name with arguments.
 
10899
compiler=$CC
 
10900
 
 
10901
 
 
10902
# Allow CC to be a program name with arguments.
 
10903
lt_save_CC=$CC
 
10904
lt_save_LD=$LD
 
10905
lt_save_GCC=$GCC
 
10906
GCC=$GXX
 
10907
lt_save_with_gnu_ld=$with_gnu_ld
 
10908
lt_save_path_LD=$lt_cv_path_LD
 
10909
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10910
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10911
else
 
10912
  unset lt_cv_prog_gnu_ld
 
10913
fi
 
10914
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10915
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10916
else
 
10917
  unset lt_cv_path_LD
 
10918
fi
 
10919
test -z "${LDCXX+set}" || LD=$LDCXX
 
10920
CC=${CXX-"c++"}
 
10921
compiler=$CC
 
10922
compiler_CXX=$CC
 
10923
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10924
 
 
10925
# We don't want -fno-exception wen compiling C++ code, so set the
 
10926
# no_builtin_flag separately
 
10927
if test "$GXX" = yes; then
 
10928
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10929
else
 
10930
  lt_prog_compiler_no_builtin_flag_CXX=
 
10931
fi
 
10932
 
 
10933
if test "$GXX" = yes; then
 
10934
  # Set up default GNU C++ configuration
 
10935
 
 
10936
 
 
10937
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10938
if test "${with_gnu_ld+set}" = set; then
 
10939
  withval="$with_gnu_ld"
 
10940
  test "$withval" = no || with_gnu_ld=yes
 
10941
else
 
10942
  with_gnu_ld=no
 
10943
fi;
 
10944
ac_prog=ld
 
10945
if test "$GCC" = yes; then
 
10946
  # Check if gcc -print-prog-name=ld gives a path.
 
10947
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10948
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10949
  case $host in
 
10950
  *-*-mingw*)
 
10951
    # gcc leaves a trailing carriage return which upsets mingw
 
10952
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10953
  *)
 
10954
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10955
  esac
 
10956
  case $ac_prog in
 
10957
    # Accept absolute paths.
 
10958
    [\\/]* | ?:[\\/]*)
 
10959
      re_direlt='/[^/][^/]*/\.\./'
 
10960
      # Canonicalize the pathname of ld
 
10961
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10962
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10963
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10964
      done
 
10965
      test -z "$LD" && LD="$ac_prog"
 
10966
      ;;
 
10967
  "")
 
10968
    # If it fails, then pretend we aren't using GCC.
 
10969
    ac_prog=ld
 
10970
    ;;
 
10971
  *)
 
10972
    # If it is relative, then search for the first ld in PATH.
 
10973
    with_gnu_ld=unknown
 
10974
    ;;
 
10975
  esac
 
10976
elif test "$with_gnu_ld" = yes; then
 
10977
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10978
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10979
else
 
10980
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10981
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10982
fi
 
10983
if test "${lt_cv_path_LD+set}" = set; then
 
10984
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10985
else
 
10986
  if test -z "$LD"; then
 
10987
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10988
  for ac_dir in $PATH; do
 
10989
    IFS="$lt_save_ifs"
 
10990
    test -z "$ac_dir" && ac_dir=.
 
10991
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10992
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10993
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10994
      # but apparently some GNU ld's only accept -v.
 
10995
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10996
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10997
      *GNU* | *'with BFD'*)
 
10998
        test "$with_gnu_ld" != no && break
 
10999
        ;;
 
11000
      *)
 
11001
        test "$with_gnu_ld" != yes && break
 
11002
        ;;
 
11003
      esac
 
11004
    fi
 
11005
  done
 
11006
  IFS="$lt_save_ifs"
 
11007
else
 
11008
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11009
fi
 
11010
fi
 
11011
 
 
11012
LD="$lt_cv_path_LD"
 
11013
if test -n "$LD"; then
 
11014
  echo "$as_me:$LINENO: result: $LD" >&5
 
11015
echo "${ECHO_T}$LD" >&6
 
11016
else
 
11017
  echo "$as_me:$LINENO: result: no" >&5
 
11018
echo "${ECHO_T}no" >&6
 
11019
fi
 
11020
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11021
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11022
   { (exit 1); exit 1; }; }
 
11023
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11024
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
11025
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11027
else
 
11028
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11029
case `$LD -v 2>&1 </dev/null` in
 
11030
*GNU* | *'with BFD'*)
 
11031
  lt_cv_prog_gnu_ld=yes
 
11032
  ;;
 
11033
*)
 
11034
  lt_cv_prog_gnu_ld=no
 
11035
  ;;
 
11036
esac
 
11037
fi
 
11038
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11039
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
11040
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11041
 
 
11042
 
 
11043
 
 
11044
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11045
  # archiving commands below assume that GNU ld is being used.
 
11046
  if test "$with_gnu_ld" = yes; then
 
11047
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11048
    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'
 
11049
 
 
11050
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11051
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11052
 
 
11053
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11054
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11055
    #     investigate it a little bit more. (MM)
 
11056
    wlarc='${wl}'
 
11057
 
 
11058
    # ancient GNU ld didn't support --whole-archive et. al.
 
11059
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11060
        grep 'no-whole-archive' > /dev/null; then
 
11061
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11062
    else
 
11063
      whole_archive_flag_spec_CXX=
 
11064
    fi
 
11065
  else
 
11066
    with_gnu_ld=no
 
11067
    wlarc=
 
11068
 
 
11069
    # A generic and very simple default shared library creation
 
11070
    # command for GNU C++ for the case where it uses the native
 
11071
    # linker, instead of GNU ld.  If possible, this setting should
 
11072
    # overridden to take advantage of the native linker features on
 
11073
    # the platform it is being used on.
 
11074
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11075
  fi
 
11076
 
 
11077
  # Commands to make compiler produce verbose output that lists
 
11078
  # what "hidden" libraries, object files and flags are used when
 
11079
  # linking a shared library.
 
11080
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11081
 
 
11082
else
 
11083
  GXX=no
 
11084
  with_gnu_ld=no
 
11085
  wlarc=
 
11086
fi
 
11087
 
 
11088
# PORTME: fill in a description of your system's C++ link characteristics
 
11089
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11090
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11091
ld_shlibs_CXX=yes
 
11092
case $host_os in
 
11093
  aix3*)
 
11094
    # FIXME: insert proper C++ library support
 
11095
    ld_shlibs_CXX=no
 
11096
    ;;
 
11097
  aix4* | aix5*)
 
11098
    if test "$host_cpu" = ia64; then
 
11099
      # On IA64, the linker does run time linking by default, so we don't
 
11100
      # have to do anything special.
 
11101
      aix_use_runtimelinking=no
 
11102
      exp_sym_flag='-Bexport'
 
11103
      no_entry_flag=""
 
11104
    else
 
11105
      aix_use_runtimelinking=no
 
11106
 
 
11107
      # Test if we are trying to use run time linking or normal
 
11108
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11109
      # need to do runtime linking.
 
11110
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11111
        for ld_flag in $LDFLAGS; do
 
11112
          case $ld_flag in
 
11113
          *-brtl*)
 
11114
            aix_use_runtimelinking=yes
 
11115
            break
 
11116
            ;;
 
11117
          esac
 
11118
        done
 
11119
      esac
 
11120
 
 
11121
      exp_sym_flag='-bexport'
 
11122
      no_entry_flag='-bnoentry'
 
11123
    fi
 
11124
 
 
11125
    # When large executables or shared objects are built, AIX ld can
 
11126
    # have problems creating the table of contents.  If linking a library
 
11127
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11128
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11129
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11130
 
 
11131
    archive_cmds_CXX=''
 
11132
    hardcode_direct_CXX=yes
 
11133
    hardcode_libdir_separator_CXX=':'
 
11134
    link_all_deplibs_CXX=yes
 
11135
 
 
11136
    if test "$GXX" = yes; then
 
11137
      case $host_os in aix4.012|aix4.012.*)
 
11138
      # We only want to do this on AIX 4.2 and lower, the check
 
11139
      # below for broken collect2 doesn't work under 4.3+
 
11140
        collect2name=`${CC} -print-prog-name=collect2`
 
11141
        if test -f "$collect2name" && \
 
11142
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11143
        then
 
11144
          # We have reworked collect2
 
11145
          hardcode_direct_CXX=yes
 
11146
        else
 
11147
          # We have old collect2
 
11148
          hardcode_direct_CXX=unsupported
 
11149
          # It fails to find uninstalled libraries when the uninstalled
 
11150
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11151
          # to unsupported forces relinking
 
11152
          hardcode_minus_L_CXX=yes
 
11153
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11154
          hardcode_libdir_separator_CXX=
 
11155
        fi
 
11156
      esac
 
11157
      shared_flag='-shared'
 
11158
    else
 
11159
      # not using gcc
 
11160
      if test "$host_cpu" = ia64; then
 
11161
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11162
        # chokes on -Wl,-G. The following line is correct:
 
11163
        shared_flag='-G'
 
11164
      else
 
11165
        if test "$aix_use_runtimelinking" = yes; then
 
11166
          shared_flag='${wl}-G'
 
11167
        else
 
11168
          shared_flag='${wl}-bM:SRE'
 
11169
        fi
 
11170
      fi
 
11171
    fi
 
11172
 
 
11173
    # It seems that -bexpall does not export symbols beginning with
 
11174
    # underscore (_), so it is better to generate a list of symbols to export.
 
11175
    always_export_symbols_CXX=yes
 
11176
    if test "$aix_use_runtimelinking" = yes; then
 
11177
      # Warning - without using the other runtime loading flags (-brtl),
 
11178
      # -berok will link without error, but may produce a broken library.
 
11179
      allow_undefined_flag_CXX='-berok'
 
11180
      # Determine the default libpath from the value encoded in an empty executable.
 
11181
      cat >conftest.$ac_ext <<_ACEOF
 
11182
/* confdefs.h.  */
 
11183
_ACEOF
 
11184
cat confdefs.h >>conftest.$ac_ext
 
11185
cat >>conftest.$ac_ext <<_ACEOF
 
11186
/* end confdefs.h.  */
 
11187
 
 
11188
int
 
11189
main ()
 
11190
{
 
11191
 
 
11192
  ;
 
11193
  return 0;
 
11194
}
 
11195
_ACEOF
 
11196
rm -f conftest.$ac_objext conftest$ac_exeext
 
11197
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11198
  (eval $ac_link) 2>conftest.er1
 
11199
  ac_status=$?
 
11200
  grep -v '^ *+' conftest.er1 >conftest.err
 
11201
  rm -f conftest.er1
 
11202
  cat conftest.err >&5
 
11203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11204
  (exit $ac_status); } &&
 
11205
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11206
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11207
  (eval $ac_try) 2>&5
 
11208
  ac_status=$?
 
11209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11210
  (exit $ac_status); }; } &&
 
11211
         { ac_try='test -s conftest$ac_exeext'
 
11212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11213
  (eval $ac_try) 2>&5
 
11214
  ac_status=$?
 
11215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11216
  (exit $ac_status); }; }; then
 
11217
 
 
11218
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11219
}'`
 
11220
# Check for a 64-bit object if we didn't find anything.
 
11221
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; }
 
11222
}'`; fi
 
11223
else
 
11224
  echo "$as_me: failed program was:" >&5
 
11225
sed 's/^/| /' conftest.$ac_ext >&5
 
11226
 
 
11227
fi
 
11228
rm -f conftest.err conftest.$ac_objext \
 
11229
      conftest$ac_exeext conftest.$ac_ext
 
11230
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11231
 
 
11232
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11233
 
 
11234
      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"
 
11235
     else
 
11236
      if test "$host_cpu" = ia64; then
 
11237
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11238
        allow_undefined_flag_CXX="-z nodefs"
 
11239
        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"
 
11240
      else
 
11241
        # Determine the default libpath from the value encoded in an empty executable.
 
11242
        cat >conftest.$ac_ext <<_ACEOF
 
11243
/* confdefs.h.  */
 
11244
_ACEOF
 
11245
cat confdefs.h >>conftest.$ac_ext
 
11246
cat >>conftest.$ac_ext <<_ACEOF
 
11247
/* end confdefs.h.  */
 
11248
 
 
11249
int
 
11250
main ()
 
11251
{
 
11252
 
 
11253
  ;
 
11254
  return 0;
 
11255
}
 
11256
_ACEOF
 
11257
rm -f conftest.$ac_objext conftest$ac_exeext
 
11258
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11259
  (eval $ac_link) 2>conftest.er1
 
11260
  ac_status=$?
 
11261
  grep -v '^ *+' conftest.er1 >conftest.err
 
11262
  rm -f conftest.er1
 
11263
  cat conftest.err >&5
 
11264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11265
  (exit $ac_status); } &&
 
11266
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11268
  (eval $ac_try) 2>&5
 
11269
  ac_status=$?
 
11270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11271
  (exit $ac_status); }; } &&
 
11272
         { ac_try='test -s conftest$ac_exeext'
 
11273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11274
  (eval $ac_try) 2>&5
 
11275
  ac_status=$?
 
11276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11277
  (exit $ac_status); }; }; then
 
11278
 
 
11279
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11280
}'`
 
11281
# Check for a 64-bit object if we didn't find anything.
 
11282
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; }
 
11283
}'`; fi
 
11284
else
 
11285
  echo "$as_me: failed program was:" >&5
 
11286
sed 's/^/| /' conftest.$ac_ext >&5
 
11287
 
 
11288
fi
 
11289
rm -f conftest.err conftest.$ac_objext \
 
11290
      conftest$ac_exeext conftest.$ac_ext
 
11291
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11292
 
 
11293
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11294
        # Warning - without using the other run time loading flags,
 
11295
        # -berok will link without error, but may produce a broken library.
 
11296
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11297
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11298
        # -bexpall does not export symbols beginning with underscore (_)
 
11299
        always_export_symbols_CXX=yes
 
11300
        # Exported symbols can be pulled into shared objects from archives
 
11301
        whole_archive_flag_spec_CXX=' '
 
11302
        archive_cmds_need_lc_CXX=yes
 
11303
        # This is similar to how AIX traditionally builds it's shared libraries.
 
11304
        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'
 
11305
      fi
 
11306
    fi
 
11307
    ;;
 
11308
  chorus*)
 
11309
    case $cc_basename in
 
11310
      *)
 
11311
        # FIXME: insert proper C++ library support
 
11312
        ld_shlibs_CXX=no
 
11313
        ;;
 
11314
    esac
 
11315
    ;;
 
11316
 
 
11317
  cygwin* | mingw* | pw32*)
 
11318
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11319
    # as there is no search path for DLLs.
 
11320
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11321
    allow_undefined_flag_CXX=unsupported
 
11322
    always_export_symbols_CXX=no
 
11323
    enable_shared_with_static_runtimes_CXX=yes
 
11324
 
 
11325
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11326
      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'
 
11327
      # If the export-symbols file already is a .def file (1st line
 
11328
      # is EXPORTS), use it as is; otherwise, prepend...
 
11329
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11330
        cp $export_symbols $output_objdir/$soname.def;
 
11331
      else
 
11332
        echo EXPORTS > $output_objdir/$soname.def;
 
11333
        cat $export_symbols >> $output_objdir/$soname.def;
 
11334
      fi~
 
11335
      $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'
 
11336
    else
 
11337
      ld_shlibs_CXX=no
 
11338
    fi
 
11339
  ;;
 
11340
 
 
11341
  darwin* | rhapsody*)
 
11342
  if test "$GXX" = yes; then
 
11343
    archive_cmds_need_lc_CXX=no
 
11344
    case "$host_os" in
 
11345
    rhapsody* | darwin1.[012])
 
11346
      allow_undefined_flag_CXX='-undefined suppress'
 
11347
      ;;
 
11348
    *) # Darwin 1.3 on
 
11349
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11350
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
11351
      else
 
11352
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
11353
          10.[012])
 
11354
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
11355
            ;;
 
11356
          10.*)
 
11357
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
11358
            ;;
 
11359
        esac
 
11360
      fi
 
11361
      ;;
 
11362
    esac
 
11363
    lt_int_apple_cc_single_mod=no
 
11364
    output_verbose_link_cmd='echo'
 
11365
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
11366
      lt_int_apple_cc_single_mod=yes
 
11367
    fi
 
11368
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11369
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11370
    else
 
11371
      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'
 
11372
    fi
 
11373
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11374
 
 
11375
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11376
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11377
      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}'
 
11378
    else
 
11379
      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}'
 
11380
    fi
 
11381
    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}'
 
11382
    hardcode_direct_CXX=no
 
11383
    hardcode_automatic_CXX=yes
 
11384
    hardcode_shlibpath_var_CXX=unsupported
 
11385
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
11386
    link_all_deplibs_CXX=yes
 
11387
  else
 
11388
    ld_shlibs_CXX=no
 
11389
  fi
 
11390
    ;;
 
11391
 
 
11392
  dgux*)
 
11393
    case $cc_basename in
 
11394
      ec++)
 
11395
        # FIXME: insert proper C++ library support
 
11396
        ld_shlibs_CXX=no
 
11397
        ;;
 
11398
      ghcx)
 
11399
        # Green Hills C++ Compiler
 
11400
        # FIXME: insert proper C++ library support
 
11401
        ld_shlibs_CXX=no
 
11402
        ;;
 
11403
      *)
 
11404
        # FIXME: insert proper C++ library support
 
11405
        ld_shlibs_CXX=no
 
11406
        ;;
 
11407
    esac
 
11408
    ;;
 
11409
  freebsd12*)
 
11410
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11411
    ld_shlibs_CXX=no
 
11412
    ;;
 
11413
  freebsd-elf*)
 
11414
    archive_cmds_need_lc_CXX=no
 
11415
    ;;
 
11416
  freebsd* | kfreebsd*-gnu)
 
11417
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11418
    # conventions
 
11419
    ld_shlibs_CXX=yes
 
11420
    ;;
 
11421
  gnu*)
 
11422
    ;;
 
11423
  hpux9*)
 
11424
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11425
    hardcode_libdir_separator_CXX=:
 
11426
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11427
    hardcode_direct_CXX=yes
 
11428
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11429
                                # but as the default
 
11430
                                # location of the library.
 
11431
 
 
11432
    case $cc_basename in
 
11433
    CC)
 
11434
      # FIXME: insert proper C++ library support
 
11435
      ld_shlibs_CXX=no
 
11436
      ;;
 
11437
    aCC)
 
11438
      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'
 
11439
      # Commands to make compiler produce verbose output that lists
 
11440
      # what "hidden" libraries, object files and flags are used when
 
11441
      # linking a shared library.
 
11442
      #
 
11443
      # There doesn't appear to be a way to prevent this compiler from
 
11444
      # explicitly linking system object files so we need to strip them
 
11445
      # from the output so that they don't get included in the library
 
11446
      # dependencies.
 
11447
      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'
 
11448
      ;;
 
11449
    *)
 
11450
      if test "$GXX" = yes; then
 
11451
        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'
 
11452
      else
 
11453
        # FIXME: insert proper C++ library support
 
11454
        ld_shlibs_CXX=no
 
11455
      fi
 
11456
      ;;
 
11457
    esac
 
11458
    ;;
 
11459
  hpux10*|hpux11*)
 
11460
    if test $with_gnu_ld = no; then
 
11461
      case "$host_cpu" in
 
11462
      hppa*64*)
 
11463
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11464
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11465
        hardcode_libdir_separator_CXX=:
 
11466
        ;;
 
11467
      ia64*)
 
11468
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11469
        ;;
 
11470
      *)
 
11471
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11472
        hardcode_libdir_separator_CXX=:
 
11473
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11474
        ;;
 
11475
      esac
 
11476
    fi
 
11477
    case "$host_cpu" in
 
11478
    hppa*64*)
 
11479
      hardcode_direct_CXX=no
 
11480
      hardcode_shlibpath_var_CXX=no
 
11481
      ;;
 
11482
    ia64*)
 
11483
      hardcode_direct_CXX=no
 
11484
      hardcode_shlibpath_var_CXX=no
 
11485
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11486
                                              # but as the default
 
11487
                                              # location of the library.
 
11488
      ;;
 
11489
    *)
 
11490
      hardcode_direct_CXX=yes
 
11491
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11492
                                              # but as the default
 
11493
                                              # location of the library.
 
11494
      ;;
 
11495
    esac
 
11496
 
 
11497
    case $cc_basename in
 
11498
      CC)
 
11499
        # FIXME: insert proper C++ library support
 
11500
        ld_shlibs_CXX=no
 
11501
        ;;
 
11502
      aCC)
 
11503
        case "$host_cpu" in
 
11504
        hppa*64*|ia64*)
 
11505
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11506
          ;;
 
11507
        *)
 
11508
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11509
          ;;
 
11510
        esac
 
11511
        # Commands to make compiler produce verbose output that lists
 
11512
        # what "hidden" libraries, object files and flags are used when
 
11513
        # linking a shared library.
 
11514
        #
 
11515
        # There doesn't appear to be a way to prevent this compiler from
 
11516
        # explicitly linking system object files so we need to strip them
 
11517
        # from the output so that they don't get included in the library
 
11518
        # dependencies.
 
11519
        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'
 
11520
        ;;
 
11521
      *)
 
11522
        if test "$GXX" = yes; then
 
11523
          if test $with_gnu_ld = no; then
 
11524
            case "$host_cpu" in
 
11525
            ia64*|hppa*64*)
 
11526
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11527
              ;;
 
11528
            *)
 
11529
              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'
 
11530
              ;;
 
11531
            esac
 
11532
          fi
 
11533
        else
 
11534
          # FIXME: insert proper C++ library support
 
11535
          ld_shlibs_CXX=no
 
11536
        fi
 
11537
        ;;
 
11538
    esac
 
11539
    ;;
 
11540
  irix5* | irix6*)
 
11541
    case $cc_basename in
 
11542
      CC)
 
11543
        # SGI C++
 
11544
        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'
 
11545
 
 
11546
        # Archives containing C++ object files must be created using
 
11547
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11548
        # necessary to make sure instantiated templates are included
 
11549
        # in the archive.
 
11550
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11551
        ;;
 
11552
      *)
 
11553
        if test "$GXX" = yes; then
 
11554
          if test "$with_gnu_ld" = no; then
 
11555
            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'
 
11556
          else
 
11557
            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'
 
11558
          fi
 
11559
        fi
 
11560
        link_all_deplibs_CXX=yes
 
11561
        ;;
 
11562
    esac
 
11563
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11564
    hardcode_libdir_separator_CXX=:
 
11565
    ;;
 
11566
  linux*)
 
11567
    case $cc_basename in
 
11568
      KCC)
 
11569
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11570
 
 
11571
        # KCC will only create a shared library if the output file
 
11572
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11573
        # to its proper name (with version) after linking.
 
11574
        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'
 
11575
        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'
 
11576
        # Commands to make compiler produce verbose output that lists
 
11577
        # what "hidden" libraries, object files and flags are used when
 
11578
        # linking a shared library.
 
11579
        #
 
11580
        # There doesn't appear to be a way to prevent this compiler from
 
11581
        # explicitly linking system object files so we need to strip them
 
11582
        # from the output so that they don't get included in the library
 
11583
        # dependencies.
 
11584
        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'
 
11585
 
 
11586
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11587
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11588
 
 
11589
        # Archives containing C++ object files must be created using
 
11590
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11591
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11592
        ;;
 
11593
      icpc)
 
11594
        # Intel C++
 
11595
        with_gnu_ld=yes
 
11596
        archive_cmds_need_lc_CXX=no
 
11597
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11598
        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'
 
11599
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11600
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11601
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11602
        ;;
 
11603
      cxx)
 
11604
        # Compaq C++
 
11605
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11606
        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'
 
11607
 
 
11608
        runpath_var=LD_RUN_PATH
 
11609
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11610
        hardcode_libdir_separator_CXX=:
 
11611
 
 
11612
        # Commands to make compiler produce verbose output that lists
 
11613
        # what "hidden" libraries, object files and flags are used when
 
11614
        # linking a shared library.
 
11615
        #
 
11616
        # There doesn't appear to be a way to prevent this compiler from
 
11617
        # explicitly linking system object files so we need to strip them
 
11618
        # from the output so that they don't get included in the library
 
11619
        # dependencies.
 
11620
        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'
 
11621
        ;;
 
11622
    esac
 
11623
    ;;
 
11624
  lynxos*)
 
11625
    # FIXME: insert proper C++ library support
 
11626
    ld_shlibs_CXX=no
 
11627
    ;;
 
11628
  m88k*)
 
11629
    # FIXME: insert proper C++ library support
 
11630
    ld_shlibs_CXX=no
 
11631
    ;;
 
11632
  mvs*)
 
11633
    case $cc_basename in
 
11634
      cxx)
 
11635
        # FIXME: insert proper C++ library support
 
11636
        ld_shlibs_CXX=no
 
11637
        ;;
 
11638
      *)
 
11639
        # FIXME: insert proper C++ library support
 
11640
        ld_shlibs_CXX=no
 
11641
        ;;
 
11642
    esac
 
11643
    ;;
 
11644
  netbsd* | knetbsd*-gnu)
 
11645
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11646
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11647
      wlarc=
 
11648
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11649
      hardcode_direct_CXX=yes
 
11650
      hardcode_shlibpath_var_CXX=no
 
11651
    fi
 
11652
    # Workaround some broken pre-1.5 toolchains
 
11653
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11654
    ;;
 
11655
  osf3*)
 
11656
    case $cc_basename in
 
11657
      KCC)
 
11658
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11659
 
 
11660
        # KCC will only create a shared library if the output file
 
11661
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11662
        # to its proper name (with version) after linking.
 
11663
        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'
 
11664
 
 
11665
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11666
        hardcode_libdir_separator_CXX=:
 
11667
 
 
11668
        # Archives containing C++ object files must be created using
 
11669
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11670
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11671
 
 
11672
        ;;
 
11673
      RCC)
 
11674
        # Rational C++ 2.4.1
 
11675
        # FIXME: insert proper C++ library support
 
11676
        ld_shlibs_CXX=no
 
11677
        ;;
 
11678
      cxx)
 
11679
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11680
        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'
 
11681
 
 
11682
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11683
        hardcode_libdir_separator_CXX=:
 
11684
 
 
11685
        # Commands to make compiler produce verbose output that lists
 
11686
        # what "hidden" libraries, object files and flags are used when
 
11687
        # linking a shared library.
 
11688
        #
 
11689
        # There doesn't appear to be a way to prevent this compiler from
 
11690
        # explicitly linking system object files so we need to strip them
 
11691
        # from the output so that they don't get included in the library
 
11692
        # dependencies.
 
11693
        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'
 
11694
        ;;
 
11695
      *)
 
11696
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11697
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11698
          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'
 
11699
 
 
11700
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11701
          hardcode_libdir_separator_CXX=:
 
11702
 
 
11703
          # Commands to make compiler produce verbose output that lists
 
11704
          # what "hidden" libraries, object files and flags are used when
 
11705
          # linking a shared library.
 
11706
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11707
 
 
11708
        else
 
11709
          # FIXME: insert proper C++ library support
 
11710
          ld_shlibs_CXX=no
 
11711
        fi
 
11712
        ;;
 
11713
    esac
 
11714
    ;;
 
11715
  osf4* | osf5*)
 
11716
    case $cc_basename in
 
11717
      KCC)
 
11718
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11719
 
 
11720
        # KCC will only create a shared library if the output file
 
11721
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11722
        # to its proper name (with version) after linking.
 
11723
        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'
 
11724
 
 
11725
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11726
        hardcode_libdir_separator_CXX=:
 
11727
 
 
11728
        # Archives containing C++ object files must be created using
 
11729
        # the KAI C++ compiler.
 
11730
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11731
        ;;
 
11732
      RCC)
 
11733
        # Rational C++ 2.4.1
 
11734
        # FIXME: insert proper C++ library support
 
11735
        ld_shlibs_CXX=no
 
11736
        ;;
 
11737
      cxx)
 
11738
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11739
        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'
 
11740
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11741
          echo "-hidden">> $lib.exp~
 
11742
          $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~
 
11743
          $rm $lib.exp'
 
11744
 
 
11745
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11746
        hardcode_libdir_separator_CXX=:
 
11747
 
 
11748
        # Commands to make compiler produce verbose output that lists
 
11749
        # what "hidden" libraries, object files and flags are used when
 
11750
        # linking a shared library.
 
11751
        #
 
11752
        # There doesn't appear to be a way to prevent this compiler from
 
11753
        # explicitly linking system object files so we need to strip them
 
11754
        # from the output so that they don't get included in the library
 
11755
        # dependencies.
 
11756
        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'
 
11757
        ;;
 
11758
      *)
 
11759
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11760
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11761
         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'
 
11762
 
 
11763
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11764
          hardcode_libdir_separator_CXX=:
 
11765
 
 
11766
          # Commands to make compiler produce verbose output that lists
 
11767
          # what "hidden" libraries, object files and flags are used when
 
11768
          # linking a shared library.
 
11769
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11770
 
 
11771
        else
 
11772
          # FIXME: insert proper C++ library support
 
11773
          ld_shlibs_CXX=no
 
11774
        fi
 
11775
        ;;
 
11776
    esac
 
11777
    ;;
 
11778
  psos*)
 
11779
    # FIXME: insert proper C++ library support
 
11780
    ld_shlibs_CXX=no
 
11781
    ;;
 
11782
  sco*)
 
11783
    archive_cmds_need_lc_CXX=no
 
11784
    case $cc_basename in
 
11785
      CC)
 
11786
        # FIXME: insert proper C++ library support
 
11787
        ld_shlibs_CXX=no
 
11788
        ;;
 
11789
      *)
 
11790
        # FIXME: insert proper C++ library support
 
11791
        ld_shlibs_CXX=no
 
11792
        ;;
 
11793
    esac
 
11794
    ;;
 
11795
  sunos4*)
 
11796
    case $cc_basename in
 
11797
      CC)
 
11798
        # Sun C++ 4.x
 
11799
        # FIXME: insert proper C++ library support
 
11800
        ld_shlibs_CXX=no
 
11801
        ;;
 
11802
      lcc)
 
11803
        # Lucid
 
11804
        # FIXME: insert proper C++ library support
 
11805
        ld_shlibs_CXX=no
 
11806
        ;;
 
11807
      *)
 
11808
        # FIXME: insert proper C++ library support
 
11809
        ld_shlibs_CXX=no
 
11810
        ;;
 
11811
    esac
 
11812
    ;;
 
11813
  solaris*)
 
11814
    case $cc_basename in
 
11815
      CC)
 
11816
        # Sun C++ 4.2, 5.x and Centerline C++
 
11817
        no_undefined_flag_CXX=' -zdefs'
 
11818
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11819
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11820
        $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'
 
11821
 
 
11822
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11823
        hardcode_shlibpath_var_CXX=no
 
11824
        case $host_os in
 
11825
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11826
          *)
 
11827
            # The C++ compiler is used as linker so we must use $wl
 
11828
            # flag to pass the commands to the underlying system
 
11829
            # linker.
 
11830
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11831
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11832
            ;;
 
11833
        esac
 
11834
        link_all_deplibs_CXX=yes
 
11835
 
 
11836
        # Commands to make compiler produce verbose output that lists
 
11837
        # what "hidden" libraries, object files and flags are used when
 
11838
        # linking a shared library.
 
11839
        #
 
11840
        # There doesn't appear to be a way to prevent this compiler from
 
11841
        # explicitly linking system object files so we need to strip them
 
11842
        # from the output so that they don't get included in the library
 
11843
        # dependencies.
 
11844
        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'
 
11845
 
 
11846
        # Archives containing C++ object files must be created using
 
11847
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11848
        # necessary to make sure instantiated templates are included
 
11849
        # in the archive.
 
11850
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11851
        ;;
 
11852
      gcx)
 
11853
        # Green Hills C++ Compiler
 
11854
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11855
 
 
11856
        # The C++ compiler must be used to create the archive.
 
11857
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11858
        ;;
 
11859
      *)
 
11860
        # GNU C++ compiler with Solaris linker
 
11861
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11862
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11863
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11864
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11865
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11866
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11867
 
 
11868
            # Commands to make compiler produce verbose output that lists
 
11869
            # what "hidden" libraries, object files and flags are used when
 
11870
            # linking a shared library.
 
11871
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11872
          else
 
11873
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11874
            # platform.
 
11875
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11876
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11877
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11878
 
 
11879
            # Commands to make compiler produce verbose output that lists
 
11880
            # what "hidden" libraries, object files and flags are used when
 
11881
            # linking a shared library.
 
11882
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11883
          fi
 
11884
 
 
11885
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11886
        fi
 
11887
        ;;
 
11888
    esac
 
11889
    ;;
 
11890
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
11891
    archive_cmds_need_lc_CXX=no
 
11892
    ;;
 
11893
  tandem*)
 
11894
    case $cc_basename in
 
11895
      NCC)
 
11896
        # NonStop-UX NCC 3.20
 
11897
        # FIXME: insert proper C++ library support
 
11898
        ld_shlibs_CXX=no
 
11899
        ;;
 
11900
      *)
 
11901
        # FIXME: insert proper C++ library support
 
11902
        ld_shlibs_CXX=no
 
11903
        ;;
 
11904
    esac
 
11905
    ;;
 
11906
  vxworks*)
 
11907
    # FIXME: insert proper C++ library support
 
11908
    ld_shlibs_CXX=no
 
11909
    ;;
 
11910
  *)
 
11911
    # FIXME: insert proper C++ library support
 
11912
    ld_shlibs_CXX=no
 
11913
    ;;
 
11914
esac
 
11915
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11916
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11917
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11918
 
 
11919
GCC_CXX="$GXX"
 
11920
LD_CXX="$LD"
 
11921
 
 
11922
 
 
11923
cat > conftest.$ac_ext <<EOF
 
11924
class Foo
 
11925
{
 
11926
public:
 
11927
  Foo (void) { a = 0; }
 
11928
private:
 
11929
  int a;
 
11930
};
 
11931
EOF
 
11932
 
 
11933
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11934
  (eval $ac_compile) 2>&5
 
11935
  ac_status=$?
 
11936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11937
  (exit $ac_status); }; then
 
11938
  # Parse the compiler output and extract the necessary
 
11939
  # objects, libraries and library flags.
 
11940
 
 
11941
  # Sentinel used to keep track of whether or not we are before
 
11942
  # the conftest object file.
 
11943
  pre_test_object_deps_done=no
 
11944
 
 
11945
  # The `*' in the case matches for architectures that use `case' in
 
11946
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11947
  # eval without this substitution.
 
11948
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11949
 
 
11950
  for p in `eval $output_verbose_link_cmd`; do
 
11951
    case $p in
 
11952
 
 
11953
    -L* | -R* | -l*)
 
11954
       # Some compilers place space between "-{L,R}" and the path.
 
11955
       # Remove the space.
 
11956
       if test $p = "-L" \
 
11957
          || test $p = "-R"; then
 
11958
         prev=$p
 
11959
         continue
 
11960
       else
 
11961
         prev=
 
11962
       fi
 
11963
 
 
11964
       if test "$pre_test_object_deps_done" = no; then
 
11965
         case $p in
 
11966
         -L* | -R*)
 
11967
           # Internal compiler library paths should come after those
 
11968
           # provided the user.  The postdeps already come after the
 
11969
           # user supplied libs so there is no need to process them.
 
11970
           if test -z "$compiler_lib_search_path_CXX"; then
 
11971
             compiler_lib_search_path_CXX="${prev}${p}"
 
11972
           else
 
11973
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11974
           fi
 
11975
           ;;
 
11976
         # The "-l" case would never come before the object being
 
11977
         # linked, so don't bother handling this case.
 
11978
         esac
 
11979
       else
 
11980
         if test -z "$postdeps_CXX"; then
 
11981
           postdeps_CXX="${prev}${p}"
 
11982
         else
 
11983
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11984
         fi
 
11985
       fi
 
11986
       ;;
 
11987
 
 
11988
    *.$objext)
 
11989
       # This assumes that the test object file only shows up
 
11990
       # once in the compiler output.
 
11991
       if test "$p" = "conftest.$objext"; then
 
11992
         pre_test_object_deps_done=yes
 
11993
         continue
 
11994
       fi
 
11995
 
 
11996
       if test "$pre_test_object_deps_done" = no; then
 
11997
         if test -z "$predep_objects_CXX"; then
 
11998
           predep_objects_CXX="$p"
 
11999
         else
 
12000
           predep_objects_CXX="$predep_objects_CXX $p"
 
12001
         fi
 
12002
       else
 
12003
         if test -z "$postdep_objects_CXX"; then
 
12004
           postdep_objects_CXX="$p"
 
12005
         else
 
12006
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12007
         fi
 
12008
       fi
 
12009
       ;;
 
12010
 
 
12011
    *) ;; # Ignore the rest.
 
12012
 
 
12013
    esac
 
12014
  done
 
12015
 
 
12016
  # Clean up.
 
12017
  rm -f a.out a.exe
 
12018
else
 
12019
  echo "libtool.m4: error: problem compiling CXX test program"
 
12020
fi
 
12021
 
 
12022
$rm -f confest.$objext
 
12023
 
 
12024
case " $postdeps_CXX " in
 
12025
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12026
esac
 
12027
 
 
12028
lt_prog_compiler_wl_CXX=
 
12029
lt_prog_compiler_pic_CXX=
 
12030
lt_prog_compiler_static_CXX=
 
12031
 
 
12032
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12033
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12034
 
 
12035
  # C++ specific cases for pic, static, wl, etc.
 
12036
  if test "$GXX" = yes; then
 
12037
    lt_prog_compiler_wl_CXX='-Wl,'
 
12038
    lt_prog_compiler_static_CXX='-static'
 
12039
 
 
12040
    case $host_os in
 
12041
    aix*)
 
12042
      # All AIX code is PIC.
 
12043
      if test "$host_cpu" = ia64; then
 
12044
        # AIX 5 now supports IA64 processor
 
12045
        lt_prog_compiler_static_CXX='-Bstatic'
 
12046
      fi
 
12047
      ;;
 
12048
    amigaos*)
 
12049
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12050
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12051
      # like `-m68040'.
 
12052
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12053
      ;;
 
12054
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12055
      # PIC is the default for these OSes.
 
12056
      ;;
 
12057
    mingw* | os2* | pw32*)
 
12058
      # This hack is so that the source file can tell whether it is being
 
12059
      # built for inclusion in a dll (and should export symbols for example).
 
12060
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12061
      ;;
 
12062
    darwin* | rhapsody*)
 
12063
      # PIC is the default on this platform
 
12064
      # Common symbols not allowed in MH_DYLIB files
 
12065
      lt_prog_compiler_pic_CXX='-fno-common'
 
12066
      ;;
 
12067
    *djgpp*)
 
12068
      # DJGPP does not support shared libraries at all
 
12069
      lt_prog_compiler_pic_CXX=
 
12070
      ;;
 
12071
    sysv4*MP*)
 
12072
      if test -d /usr/nec; then
 
12073
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12074
      fi
 
12075
      ;;
 
12076
    hpux*)
 
12077
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12078
      # not for PA HP-UX.
 
12079
      case "$host_cpu" in
 
12080
      hppa*64*|ia64*)
 
12081
        ;;
 
12082
      *)
 
12083
        lt_prog_compiler_pic_CXX='-fPIC'
 
12084
        ;;
 
12085
      esac
 
12086
      ;;
 
12087
    *)
 
12088
      lt_prog_compiler_pic_CXX='-fPIC'
 
12089
      ;;
 
12090
    esac
 
12091
  else
 
12092
    case $host_os in
 
12093
      aix4* | aix5*)
 
12094
        # All AIX code is PIC.
 
12095
        if test "$host_cpu" = ia64; then
 
12096
          # AIX 5 now supports IA64 processor
 
12097
          lt_prog_compiler_static_CXX='-Bstatic'
 
12098
        else
 
12099
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12100
        fi
 
12101
        ;;
 
12102
      chorus*)
 
12103
        case $cc_basename in
 
12104
        cxch68)
 
12105
          # Green Hills C++ Compiler
 
12106
          # _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"
 
12107
          ;;
 
12108
        esac
 
12109
        ;;
 
12110
      dgux*)
 
12111
        case $cc_basename in
 
12112
          ec++)
 
12113
            lt_prog_compiler_pic_CXX='-KPIC'
 
12114
            ;;
 
12115
          ghcx)
 
12116
            # Green Hills C++ Compiler
 
12117
            lt_prog_compiler_pic_CXX='-pic'
 
12118
            ;;
 
12119
          *)
 
12120
            ;;
 
12121
        esac
 
12122
        ;;
 
12123
      freebsd* | kfreebsd*-gnu)
 
12124
        # FreeBSD uses GNU C++
 
12125
        ;;
 
12126
      hpux9* | hpux10* | hpux11*)
 
12127
        case $cc_basename in
 
12128
          CC)
 
12129
            lt_prog_compiler_wl_CXX='-Wl,'
 
12130
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12131
            if test "$host_cpu" != ia64; then
 
12132
              lt_prog_compiler_pic_CXX='+Z'
 
12133
            fi
 
12134
            ;;
 
12135
          aCC)
 
12136
            lt_prog_compiler_wl_CXX='-Wl,'
 
12137
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12138
            case "$host_cpu" in
 
12139
            hppa*64*|ia64*)
 
12140
              # +Z the default
 
12141
              ;;
 
12142
            *)
 
12143
              lt_prog_compiler_pic_CXX='+Z'
 
12144
              ;;
 
12145
            esac
 
12146
            ;;
 
12147
          *)
 
12148
            ;;
 
12149
        esac
 
12150
        ;;
 
12151
      irix5* | irix6* | nonstopux*)
 
12152
        case $cc_basename in
 
12153
          CC)
 
12154
            lt_prog_compiler_wl_CXX='-Wl,'
 
12155
            lt_prog_compiler_static_CXX='-non_shared'
 
12156
            # CC pic flag -KPIC is the default.
 
12157
            ;;
 
12158
          *)
 
12159
            ;;
 
12160
        esac
 
12161
        ;;
 
12162
      linux*)
 
12163
        case $cc_basename in
 
12164
          KCC)
 
12165
            # KAI C++ Compiler
 
12166
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12167
            lt_prog_compiler_pic_CXX='-fPIC'
 
12168
            ;;
 
12169
          icpc)
 
12170
            # Intel C++
 
12171
            lt_prog_compiler_wl_CXX='-Wl,'
 
12172
            lt_prog_compiler_pic_CXX='-KPIC'
 
12173
            lt_prog_compiler_static_CXX='-static'
 
12174
            ;;
 
12175
          cxx)
 
12176
            # Compaq C++
 
12177
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12178
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12179
            lt_prog_compiler_pic_CXX=
 
12180
            lt_prog_compiler_static_CXX='-non_shared'
 
12181
            ;;
 
12182
          *)
 
12183
            ;;
 
12184
        esac
 
12185
        ;;
 
12186
      lynxos*)
 
12187
        ;;
 
12188
      m88k*)
 
12189
        ;;
 
12190
      mvs*)
 
12191
        case $cc_basename in
 
12192
          cxx)
 
12193
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12194
            ;;
 
12195
          *)
 
12196
            ;;
 
12197
        esac
 
12198
        ;;
 
12199
      netbsd* | knetbsd*-gnu)
 
12200
        ;;
 
12201
      osf3* | osf4* | osf5*)
 
12202
        case $cc_basename in
 
12203
          KCC)
 
12204
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12205
            ;;
 
12206
          RCC)
 
12207
            # Rational C++ 2.4.1
 
12208
            lt_prog_compiler_pic_CXX='-pic'
 
12209
            ;;
 
12210
          cxx)
 
12211
            # Digital/Compaq C++
 
12212
            lt_prog_compiler_wl_CXX='-Wl,'
 
12213
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12214
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12215
            lt_prog_compiler_pic_CXX=
 
12216
            lt_prog_compiler_static_CXX='-non_shared'
 
12217
            ;;
 
12218
          *)
 
12219
            ;;
 
12220
        esac
 
12221
        ;;
 
12222
      psos*)
 
12223
        ;;
 
12224
      sco*)
 
12225
        case $cc_basename in
 
12226
          CC)
 
12227
            lt_prog_compiler_pic_CXX='-fPIC'
 
12228
            ;;
 
12229
          *)
 
12230
            ;;
 
12231
        esac
 
12232
        ;;
 
12233
      solaris*)
 
12234
        case $cc_basename in
 
12235
          CC)
 
12236
            # Sun C++ 4.2, 5.x and Centerline C++
 
12237
            lt_prog_compiler_pic_CXX='-KPIC'
 
12238
            lt_prog_compiler_static_CXX='-Bstatic'
 
12239
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12240
            ;;
 
12241
          gcx)
 
12242
            # Green Hills C++ Compiler
 
12243
            lt_prog_compiler_pic_CXX='-PIC'
 
12244
            ;;
 
12245
          *)
 
12246
            ;;
 
12247
        esac
 
12248
        ;;
 
12249
      sunos4*)
 
12250
        case $cc_basename in
 
12251
          CC)
 
12252
            # Sun C++ 4.x
 
12253
            lt_prog_compiler_pic_CXX='-pic'
 
12254
            lt_prog_compiler_static_CXX='-Bstatic'
 
12255
            ;;
 
12256
          lcc)
 
12257
            # Lucid
 
12258
            lt_prog_compiler_pic_CXX='-pic'
 
12259
            ;;
 
12260
          *)
 
12261
            ;;
 
12262
        esac
 
12263
        ;;
 
12264
      tandem*)
 
12265
        case $cc_basename in
 
12266
          NCC)
 
12267
            # NonStop-UX NCC 3.20
 
12268
            lt_prog_compiler_pic_CXX='-KPIC'
 
12269
            ;;
 
12270
          *)
 
12271
            ;;
 
12272
        esac
 
12273
        ;;
 
12274
      unixware*)
 
12275
        ;;
 
12276
      vxworks*)
 
12277
        ;;
 
12278
      *)
 
12279
        lt_prog_compiler_can_build_shared_CXX=no
 
12280
        ;;
 
12281
    esac
 
12282
  fi
 
12283
 
 
12284
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12285
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
12286
 
 
12287
#
 
12288
# Check to make sure the PIC flag actually works.
 
12289
#
 
12290
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12291
 
 
12292
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12293
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
12294
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12296
else
 
12297
  lt_prog_compiler_pic_works_CXX=no
 
12298
  ac_outfile=conftest.$ac_objext
 
12299
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12300
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12301
   # Insert the option either (1) after the last *FLAGS variable, or
 
12302
   # (2) before a word containing "conftest.", or (3) at the end.
 
12303
   # Note that $ac_compile itself does not contain backslashes and begins
 
12304
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12305
   # The option is referenced via a variable to avoid confusing sed.
 
12306
   lt_compile=`echo "$ac_compile" | $SED \
 
12307
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12308
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12309
   -e 's:$: $lt_compiler_flag:'`
 
12310
   (eval echo "\"\$as_me:12310: $lt_compile\"" >&5)
 
12311
   (eval "$lt_compile" 2>conftest.err)
 
12312
   ac_status=$?
 
12313
   cat conftest.err >&5
 
12314
   echo "$as_me:12314: \$? = $ac_status" >&5
 
12315
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12316
     # The compiler can only warn and ignore the option if not recognized
 
12317
     # So say no if there are warnings
 
12318
     if test ! -s conftest.err; then
 
12319
       lt_prog_compiler_pic_works_CXX=yes
 
12320
     fi
 
12321
   fi
 
12322
   $rm conftest*
 
12323
 
 
12324
fi
 
12325
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12326
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
12327
 
 
12328
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12329
    case $lt_prog_compiler_pic_CXX in
 
12330
     "" | " "*) ;;
 
12331
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12332
     esac
 
12333
else
 
12334
    lt_prog_compiler_pic_CXX=
 
12335
     lt_prog_compiler_can_build_shared_CXX=no
 
12336
fi
 
12337
 
 
12338
fi
 
12339
case "$host_os" in
 
12340
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12341
  *djgpp*)
 
12342
    lt_prog_compiler_pic_CXX=
 
12343
    ;;
 
12344
  *)
 
12345
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12346
    ;;
 
12347
esac
 
12348
 
 
12349
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12350
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12351
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12353
else
 
12354
  lt_cv_prog_compiler_c_o_CXX=no
 
12355
   $rm -r conftest 2>/dev/null
 
12356
   mkdir conftest
 
12357
   cd conftest
 
12358
   mkdir out
 
12359
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12360
 
 
12361
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12362
   # Insert the option either (1) after the last *FLAGS variable, or
 
12363
   # (2) before a word containing "conftest.", or (3) at the end.
 
12364
   # Note that $ac_compile itself does not contain backslashes and begins
 
12365
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12366
   lt_compile=`echo "$ac_compile" | $SED \
 
12367
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12368
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12369
   -e 's:$: $lt_compiler_flag:'`
 
12370
   (eval echo "\"\$as_me:12370: $lt_compile\"" >&5)
 
12371
   (eval "$lt_compile" 2>out/conftest.err)
 
12372
   ac_status=$?
 
12373
   cat out/conftest.err >&5
 
12374
   echo "$as_me:12374: \$? = $ac_status" >&5
 
12375
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12376
   then
 
12377
     # The compiler can only warn and ignore the option if not recognized
 
12378
     # So say no if there are warnings
 
12379
     if test ! -s out/conftest.err; then
 
12380
       lt_cv_prog_compiler_c_o_CXX=yes
 
12381
     fi
 
12382
   fi
 
12383
   chmod u+w .
 
12384
   $rm conftest*
 
12385
   # SGI C++ compiler will create directory out/ii_files/ for
 
12386
   # template instantiation
 
12387
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12388
   $rm out/* && rmdir out
 
12389
   cd ..
 
12390
   rmdir conftest
 
12391
   $rm conftest*
 
12392
 
 
12393
fi
 
12394
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12395
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
12396
 
 
12397
 
 
12398
hard_links="nottested"
 
12399
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12400
  # do not overwrite the value of need_locks provided by the user
 
12401
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12402
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
12403
  hard_links=yes
 
12404
  $rm conftest*
 
12405
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12406
  touch conftest.a
 
12407
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12408
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12409
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
12410
echo "${ECHO_T}$hard_links" >&6
 
12411
  if test "$hard_links" = no; then
 
12412
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12413
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12414
    need_locks=warn
 
12415
  fi
 
12416
else
 
12417
  need_locks=no
 
12418
fi
 
12419
 
 
12420
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12421
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12422
 
 
12423
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12424
  case $host_os in
 
12425
  aix4* | aix5*)
 
12426
    # If we're using GNU nm, then we don't want the "-C" option.
 
12427
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12428
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12429
      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'
 
12430
    else
 
12431
      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'
 
12432
    fi
 
12433
    ;;
 
12434
  pw32*)
 
12435
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12436
  ;;
 
12437
  cygwin* | mingw*)
 
12438
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12439
  ;;
 
12440
  linux*)
 
12441
    link_all_deplibs_CXX=no
 
12442
  ;;
 
12443
  *)
 
12444
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12445
  ;;
 
12446
  esac
 
12447
 
 
12448
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12449
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12450
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12451
 
 
12452
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12453
if test "$GCC" = yes; then
 
12454
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12455
fi
 
12456
 
 
12457
#
 
12458
# Do we need to explicitly link libc?
 
12459
#
 
12460
case "x$archive_cmds_need_lc_CXX" in
 
12461
x|xyes)
 
12462
  # Assume -lc should be added
 
12463
  archive_cmds_need_lc_CXX=yes
 
12464
 
 
12465
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12466
    case $archive_cmds_CXX in
 
12467
    *'~'*)
 
12468
      # FIXME: we may have to deal with multi-command sequences.
 
12469
      ;;
 
12470
    '$CC '*)
 
12471
      # Test whether the compiler implicitly links with -lc since on some
 
12472
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12473
      # to ld, don't add -lc before -lgcc.
 
12474
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12475
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
12476
      $rm conftest*
 
12477
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12478
 
 
12479
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12480
  (eval $ac_compile) 2>&5
 
12481
  ac_status=$?
 
12482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12483
  (exit $ac_status); } 2>conftest.err; then
 
12484
        soname=conftest
 
12485
        lib=conftest
 
12486
        libobjs=conftest.$ac_objext
 
12487
        deplibs=
 
12488
        wl=$lt_prog_compiler_wl_CXX
 
12489
        compiler_flags=-v
 
12490
        linker_flags=-v
 
12491
        verstring=
 
12492
        output_objdir=.
 
12493
        libname=conftest
 
12494
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12495
        allow_undefined_flag_CXX=
 
12496
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12497
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12498
  ac_status=$?
 
12499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12500
  (exit $ac_status); }
 
12501
        then
 
12502
          archive_cmds_need_lc_CXX=no
 
12503
        else
 
12504
          archive_cmds_need_lc_CXX=yes
 
12505
        fi
 
12506
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12507
      else
 
12508
        cat conftest.err 1>&5
 
12509
      fi
 
12510
      $rm conftest*
 
12511
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12512
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
12513
      ;;
 
12514
    esac
 
12515
  fi
 
12516
  ;;
 
12517
esac
 
12518
 
 
12519
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12520
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12521
library_names_spec=
 
12522
libname_spec='lib$name'
 
12523
soname_spec=
 
12524
shrext_cmds=".so"
 
12525
postinstall_cmds=
 
12526
postuninstall_cmds=
 
12527
finish_cmds=
 
12528
finish_eval=
 
12529
shlibpath_var=
 
12530
shlibpath_overrides_runpath=unknown
 
12531
version_type=none
 
12532
dynamic_linker="$host_os ld.so"
 
12533
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12534
if test "$GCC" = yes; then
 
12535
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12536
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12537
    # if the path contains ";" then we assume it to be the separator
 
12538
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12539
    # assumed that no part of a normal pathname contains ";" but that should
 
12540
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12541
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12542
  else
 
12543
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12544
  fi
 
12545
else
 
12546
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12547
fi
 
12548
need_lib_prefix=unknown
 
12549
hardcode_into_libs=no
 
12550
 
 
12551
# when you set need_version to no, make sure it does not cause -set_version
 
12552
# flags to be left without arguments
 
12553
need_version=unknown
 
12554
 
 
12555
case $host_os in
 
12556
aix3*)
 
12557
  version_type=linux
 
12558
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12559
  shlibpath_var=LIBPATH
 
12560
 
 
12561
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12562
  soname_spec='${libname}${release}${shared_ext}$major'
 
12563
  ;;
 
12564
 
 
12565
aix4* | aix5*)
 
12566
  version_type=linux
 
12567
  need_lib_prefix=no
 
12568
  need_version=no
 
12569
  hardcode_into_libs=yes
 
12570
  if test "$host_cpu" = ia64; then
 
12571
    # AIX 5 supports IA64
 
12572
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12573
    shlibpath_var=LD_LIBRARY_PATH
 
12574
  else
 
12575
    # With GCC up to 2.95.x, collect2 would create an import file
 
12576
    # for dependence libraries.  The import file would start with
 
12577
    # the line `#! .'.  This would cause the generated library to
 
12578
    # depend on `.', always an invalid library.  This was fixed in
 
12579
    # development snapshots of GCC prior to 3.0.
 
12580
    case $host_os in
 
12581
      aix4 | aix4.[01] | aix4.[01].*)
 
12582
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12583
           echo ' yes '
 
12584
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12585
        :
 
12586
      else
 
12587
        can_build_shared=no
 
12588
      fi
 
12589
      ;;
 
12590
    esac
 
12591
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12592
    # soname into executable. Probably we can add versioning support to
 
12593
    # collect2, so additional links can be useful in future.
 
12594
    if test "$aix_use_runtimelinking" = yes; then
 
12595
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12596
      # instead of lib<name>.a to let people know that these are not
 
12597
      # typical AIX shared libraries.
 
12598
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12599
    else
 
12600
      # We preserve .a as extension for shared libraries through AIX4.2
 
12601
      # and later when we are not doing run time linking.
 
12602
      library_names_spec='${libname}${release}.a $libname.a'
 
12603
      soname_spec='${libname}${release}${shared_ext}$major'
 
12604
    fi
 
12605
    shlibpath_var=LIBPATH
 
12606
  fi
 
12607
  ;;
 
12608
 
 
12609
amigaos*)
 
12610
  library_names_spec='$libname.ixlibrary $libname.a'
 
12611
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12612
  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'
 
12613
  ;;
 
12614
 
 
12615
beos*)
 
12616
  library_names_spec='${libname}${shared_ext}'
 
12617
  dynamic_linker="$host_os ld.so"
 
12618
  shlibpath_var=LIBRARY_PATH
 
12619
  ;;
 
12620
 
 
12621
bsdi4*)
 
12622
  version_type=linux
 
12623
  need_version=no
 
12624
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12625
  soname_spec='${libname}${release}${shared_ext}$major'
 
12626
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12627
  shlibpath_var=LD_LIBRARY_PATH
 
12628
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12629
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12630
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12631
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12632
  # libtool to hard-code these into programs
 
12633
  ;;
 
12634
 
 
12635
cygwin* | mingw* | pw32*)
 
12636
  version_type=windows
 
12637
  shrext_cmds=".dll"
 
12638
  need_version=no
 
12639
  need_lib_prefix=no
 
12640
 
 
12641
  case $GCC,$host_os in
 
12642
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12643
    library_names_spec='$libname.dll.a'
 
12644
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12645
    postinstall_cmds='base_file=`basename \${file}`~
 
12646
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12647
      dldir=$destdir/`dirname \$dlpath`~
 
12648
      test -d \$dldir || mkdir -p \$dldir~
 
12649
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12650
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12651
      dlpath=$dir/\$dldll~
 
12652
       $rm \$dlpath'
 
12653
    shlibpath_overrides_runpath=yes
 
12654
 
 
12655
    case $host_os in
 
12656
    cygwin*)
 
12657
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12658
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12659
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12660
      ;;
 
12661
    mingw*)
 
12662
      # MinGW DLLs use traditional 'lib' prefix
 
12663
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12664
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12665
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12666
        # It is most probably a Windows format PATH printed by
 
12667
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12668
        # path with ; separators, and with drive letters. We can handle the
 
12669
        # drive letters (cygwin fileutils understands them), so leave them,
 
12670
        # especially as we might pass files found there to a mingw objdump,
 
12671
        # which wouldn't understand a cygwinified path. Ahh.
 
12672
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12673
      else
 
12674
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12675
      fi
 
12676
      ;;
 
12677
    pw32*)
 
12678
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12679
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12680
      ;;
 
12681
    esac
 
12682
    ;;
 
12683
 
 
12684
  *)
 
12685
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12686
    ;;
 
12687
  esac
 
12688
  dynamic_linker='Win32 ld.exe'
 
12689
  # FIXME: first we should search . and the directory the executable is in
 
12690
  shlibpath_var=PATH
 
12691
  ;;
 
12692
 
 
12693
darwin* | rhapsody*)
 
12694
  dynamic_linker="$host_os dyld"
 
12695
  version_type=darwin
 
12696
  need_lib_prefix=no
 
12697
  need_version=no
 
12698
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12699
  soname_spec='${libname}${release}${major}$shared_ext'
 
12700
  shlibpath_overrides_runpath=yes
 
12701
  shlibpath_var=DYLD_LIBRARY_PATH
 
12702
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
12703
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12704
  if test "$GCC" = yes; then
 
12705
    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"`
 
12706
  else
 
12707
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12708
  fi
 
12709
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12710
  ;;
 
12711
 
 
12712
dgux*)
 
12713
  version_type=linux
 
12714
  need_lib_prefix=no
 
12715
  need_version=no
 
12716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12717
  soname_spec='${libname}${release}${shared_ext}$major'
 
12718
  shlibpath_var=LD_LIBRARY_PATH
 
12719
  ;;
 
12720
 
 
12721
freebsd1*)
 
12722
  dynamic_linker=no
 
12723
  ;;
 
12724
 
 
12725
kfreebsd*-gnu)
 
12726
  version_type=linux
 
12727
  need_lib_prefix=no
 
12728
  need_version=no
 
12729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12730
  soname_spec='${libname}${release}${shared_ext}$major'
 
12731
  shlibpath_var=LD_LIBRARY_PATH
 
12732
  shlibpath_overrides_runpath=no
 
12733
  hardcode_into_libs=yes
 
12734
  dynamic_linker='GNU ld.so'
 
12735
  ;;
 
12736
 
 
12737
freebsd*)
 
12738
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12739
  version_type=freebsd-$objformat
 
12740
  case $version_type in
 
12741
    freebsd-elf*)
 
12742
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12743
      need_version=no
 
12744
      need_lib_prefix=no
 
12745
      ;;
 
12746
    freebsd-*)
 
12747
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12748
      need_version=yes
 
12749
      ;;
 
12750
  esac
 
12751
  shlibpath_var=LD_LIBRARY_PATH
 
12752
  case $host_os in
 
12753
  freebsd2*)
 
12754
    shlibpath_overrides_runpath=yes
 
12755
    ;;
 
12756
  freebsd3.01* | freebsdelf3.01*)
 
12757
    shlibpath_overrides_runpath=yes
 
12758
    hardcode_into_libs=yes
 
12759
    ;;
 
12760
  *) # from 3.2 on
 
12761
    shlibpath_overrides_runpath=no
 
12762
    hardcode_into_libs=yes
 
12763
    ;;
 
12764
  esac
 
12765
  ;;
 
12766
 
 
12767
gnu*)
 
12768
  version_type=linux
 
12769
  need_lib_prefix=no
 
12770
  need_version=no
 
12771
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12772
  soname_spec='${libname}${release}${shared_ext}$major'
 
12773
  shlibpath_var=LD_LIBRARY_PATH
 
12774
  hardcode_into_libs=yes
 
12775
  ;;
 
12776
 
 
12777
hpux9* | hpux10* | hpux11*)
 
12778
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12779
  # link against other versions.
 
12780
  version_type=sunos
 
12781
  need_lib_prefix=no
 
12782
  need_version=no
 
12783
  case "$host_cpu" in
 
12784
  ia64*)
 
12785
    shrext_cmds='.so'
 
12786
    hardcode_into_libs=yes
 
12787
    dynamic_linker="$host_os dld.so"
 
12788
    shlibpath_var=LD_LIBRARY_PATH
 
12789
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12790
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12791
    soname_spec='${libname}${release}${shared_ext}$major'
 
12792
    if test "X$HPUX_IA64_MODE" = X32; then
 
12793
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12794
    else
 
12795
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12796
    fi
 
12797
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12798
    ;;
 
12799
   hppa*64*)
 
12800
     shrext_cmds='.sl'
 
12801
     hardcode_into_libs=yes
 
12802
     dynamic_linker="$host_os dld.sl"
 
12803
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12804
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12805
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12806
     soname_spec='${libname}${release}${shared_ext}$major'
 
12807
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12808
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12809
     ;;
 
12810
   *)
 
12811
    shrext_cmds='.sl'
 
12812
    dynamic_linker="$host_os dld.sl"
 
12813
    shlibpath_var=SHLIB_PATH
 
12814
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12815
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12816
    soname_spec='${libname}${release}${shared_ext}$major'
 
12817
    ;;
 
12818
  esac
 
12819
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12820
  postinstall_cmds='chmod 555 $lib'
 
12821
  ;;
 
12822
 
 
12823
irix5* | irix6* | nonstopux*)
 
12824
  case $host_os in
 
12825
    nonstopux*) version_type=nonstopux ;;
 
12826
    *)
 
12827
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12828
                version_type=linux
 
12829
        else
 
12830
                version_type=irix
 
12831
        fi ;;
 
12832
  esac
 
12833
  need_lib_prefix=no
 
12834
  need_version=no
 
12835
  soname_spec='${libname}${release}${shared_ext}$major'
 
12836
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12837
  case $host_os in
 
12838
  irix5* | nonstopux*)
 
12839
    libsuff= shlibsuff=
 
12840
    ;;
 
12841
  *)
 
12842
    case $LD in # libtool.m4 will add one of these switches to LD
 
12843
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12844
      libsuff= shlibsuff= libmagic=32-bit;;
 
12845
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12846
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12847
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12848
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12849
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12850
    esac
 
12851
    ;;
 
12852
  esac
 
12853
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12854
  shlibpath_overrides_runpath=no
 
12855
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12856
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12857
  hardcode_into_libs=yes
 
12858
  ;;
 
12859
 
 
12860
# No shared lib support for Linux oldld, aout, or coff.
 
12861
linux*oldld* | linux*aout* | linux*coff*)
 
12862
  dynamic_linker=no
 
12863
  ;;
 
12864
 
 
12865
# This must be Linux ELF.
 
12866
linux*)
 
12867
  version_type=linux
 
12868
  need_lib_prefix=no
 
12869
  need_version=no
 
12870
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12871
  soname_spec='${libname}${release}${shared_ext}$major'
 
12872
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12873
  shlibpath_var=LD_LIBRARY_PATH
 
12874
  shlibpath_overrides_runpath=no
 
12875
  # This implies no fast_install, which is unacceptable.
 
12876
  # Some rework will be needed to allow for fast_install
 
12877
  # before this can be enabled.
 
12878
  hardcode_into_libs=yes
 
12879
 
 
12880
  # Append ld.so.conf contents to the search path
 
12881
  if test -f /etc/ld.so.conf; then
 
12882
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
12883
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12884
  fi
 
12885
 
 
12886
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12887
  # powerpc, because MkLinux only supported shared libraries with the
 
12888
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12889
  # most powerpc-linux boxes support dynamic linking these days and
 
12890
  # people can always --disable-shared, the test was removed, and we
 
12891
  # assume the GNU/Linux dynamic linker is in use.
 
12892
  dynamic_linker='GNU/Linux ld.so'
 
12893
  ;;
 
12894
 
 
12895
knetbsd*-gnu)
 
12896
  version_type=linux
 
12897
  need_lib_prefix=no
 
12898
  need_version=no
 
12899
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12900
  soname_spec='${libname}${release}${shared_ext}$major'
 
12901
  shlibpath_var=LD_LIBRARY_PATH
 
12902
  shlibpath_overrides_runpath=no
 
12903
  hardcode_into_libs=yes
 
12904
  dynamic_linker='GNU ld.so'
 
12905
  ;;
 
12906
 
 
12907
netbsd*)
 
12908
  version_type=sunos
 
12909
  need_lib_prefix=no
 
12910
  need_version=no
 
12911
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12912
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12913
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12914
    dynamic_linker='NetBSD (a.out) ld.so'
 
12915
  else
 
12916
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12917
    soname_spec='${libname}${release}${shared_ext}$major'
 
12918
    dynamic_linker='NetBSD ld.elf_so'
 
12919
  fi
 
12920
  shlibpath_var=LD_LIBRARY_PATH
 
12921
  shlibpath_overrides_runpath=yes
 
12922
  hardcode_into_libs=yes
 
12923
  ;;
 
12924
 
 
12925
newsos6)
 
12926
  version_type=linux
 
12927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12928
  shlibpath_var=LD_LIBRARY_PATH
 
12929
  shlibpath_overrides_runpath=yes
 
12930
  ;;
 
12931
 
 
12932
nto-qnx*)
 
12933
  version_type=linux
 
12934
  need_lib_prefix=no
 
12935
  need_version=no
 
12936
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12937
  soname_spec='${libname}${release}${shared_ext}$major'
 
12938
  shlibpath_var=LD_LIBRARY_PATH
 
12939
  shlibpath_overrides_runpath=yes
 
12940
  ;;
 
12941
 
 
12942
openbsd*)
 
12943
  version_type=sunos
 
12944
  need_lib_prefix=no
 
12945
  need_version=yes
 
12946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12947
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12948
  shlibpath_var=LD_LIBRARY_PATH
 
12949
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12950
    case $host_os in
 
12951
      openbsd2.[89] | openbsd2.[89].*)
 
12952
        shlibpath_overrides_runpath=no
 
12953
        ;;
 
12954
      *)
 
12955
        shlibpath_overrides_runpath=yes
 
12956
        ;;
 
12957
      esac
 
12958
  else
 
12959
    shlibpath_overrides_runpath=yes
 
12960
  fi
 
12961
  ;;
 
12962
 
 
12963
os2*)
 
12964
  libname_spec='$name'
 
12965
  shrext_cmds=".dll"
 
12966
  need_lib_prefix=no
 
12967
  library_names_spec='$libname${shared_ext} $libname.a'
 
12968
  dynamic_linker='OS/2 ld.exe'
 
12969
  shlibpath_var=LIBPATH
 
12970
  ;;
 
12971
 
 
12972
osf3* | osf4* | osf5*)
 
12973
  version_type=osf
 
12974
  need_lib_prefix=no
 
12975
  need_version=no
 
12976
  soname_spec='${libname}${release}${shared_ext}$major'
 
12977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12978
  shlibpath_var=LD_LIBRARY_PATH
 
12979
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12980
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12981
  ;;
 
12982
 
 
12983
sco3.2v5*)
 
12984
  version_type=osf
 
12985
  soname_spec='${libname}${release}${shared_ext}$major'
 
12986
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12987
  shlibpath_var=LD_LIBRARY_PATH
 
12988
  ;;
 
12989
 
 
12990
solaris*)
 
12991
  version_type=linux
 
12992
  need_lib_prefix=no
 
12993
  need_version=no
 
12994
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12995
  soname_spec='${libname}${release}${shared_ext}$major'
 
12996
  shlibpath_var=LD_LIBRARY_PATH
 
12997
  shlibpath_overrides_runpath=yes
 
12998
  hardcode_into_libs=yes
 
12999
  # ldd complains unless libraries are executable
 
13000
  postinstall_cmds='chmod +x $lib'
 
13001
  ;;
 
13002
 
 
13003
sunos4*)
 
13004
  version_type=sunos
 
13005
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13006
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13007
  shlibpath_var=LD_LIBRARY_PATH
 
13008
  shlibpath_overrides_runpath=yes
 
13009
  if test "$with_gnu_ld" = yes; then
 
13010
    need_lib_prefix=no
 
13011
  fi
 
13012
  need_version=yes
 
13013
  ;;
 
13014
 
 
13015
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13016
  version_type=linux
 
13017
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13018
  soname_spec='${libname}${release}${shared_ext}$major'
 
13019
  shlibpath_var=LD_LIBRARY_PATH
 
13020
  case $host_vendor in
 
13021
    sni)
 
13022
      shlibpath_overrides_runpath=no
 
13023
      need_lib_prefix=no
 
13024
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13025
      runpath_var=LD_RUN_PATH
 
13026
      ;;
 
13027
    siemens)
 
13028
      need_lib_prefix=no
 
13029
      ;;
 
13030
    motorola)
 
13031
      need_lib_prefix=no
 
13032
      need_version=no
 
13033
      shlibpath_overrides_runpath=no
 
13034
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13035
      ;;
 
13036
  esac
 
13037
  ;;
 
13038
 
 
13039
sysv4*MP*)
 
13040
  if test -d /usr/nec ;then
 
13041
    version_type=linux
 
13042
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13043
    soname_spec='$libname${shared_ext}.$major'
 
13044
    shlibpath_var=LD_LIBRARY_PATH
 
13045
  fi
 
13046
  ;;
 
13047
 
 
13048
uts4*)
 
13049
  version_type=linux
 
13050
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13051
  soname_spec='${libname}${release}${shared_ext}$major'
 
13052
  shlibpath_var=LD_LIBRARY_PATH
 
13053
  ;;
 
13054
 
 
13055
*)
 
13056
  dynamic_linker=no
 
13057
  ;;
 
13058
esac
 
13059
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13060
echo "${ECHO_T}$dynamic_linker" >&6
 
13061
test "$dynamic_linker" = no && can_build_shared=no
 
13062
 
 
13063
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13064
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13065
hardcode_action_CXX=
 
13066
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13067
   test -n "$runpath_var CXX" || \
 
13068
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
13069
 
 
13070
  # We can hardcode non-existant directories.
 
13071
  if test "$hardcode_direct_CXX" != no &&
 
13072
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13073
     # have to relink, otherwise we might link with an installed library
 
13074
     # when we should be linking with a yet-to-be-installed one
 
13075
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13076
     test "$hardcode_minus_L_CXX" != no; then
 
13077
    # Linking always hardcodes the temporary library directory.
 
13078
    hardcode_action_CXX=relink
 
13079
  else
 
13080
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13081
    hardcode_action_CXX=immediate
 
13082
  fi
 
13083
else
 
13084
  # We cannot hardcode anything, or else we can only hardcode existing
 
13085
  # directories.
 
13086
  hardcode_action_CXX=unsupported
 
13087
fi
 
13088
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13089
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
13090
 
 
13091
if test "$hardcode_action_CXX" = relink; then
 
13092
  # Fast installation is not supported
 
13093
  enable_fast_install=no
 
13094
elif test "$shlibpath_overrides_runpath" = yes ||
 
13095
     test "$enable_shared" = no; then
 
13096
  # Fast installation is not necessary
 
13097
  enable_fast_install=needless
 
13098
fi
 
13099
 
 
13100
striplib=
 
13101
old_striplib=
 
13102
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
13103
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
13104
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
13105
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
13106
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
13107
  echo "$as_me:$LINENO: result: yes" >&5
 
13108
echo "${ECHO_T}yes" >&6
 
13109
else
 
13110
# FIXME - insert some real tests, host_os isn't really good enough
 
13111
  case $host_os in
 
13112
   darwin*)
 
13113
       if test -n "$STRIP" ; then
 
13114
         striplib="$STRIP -x"
 
13115
         echo "$as_me:$LINENO: result: yes" >&5
 
13116
echo "${ECHO_T}yes" >&6
 
13117
       else
 
13118
  echo "$as_me:$LINENO: result: no" >&5
 
13119
echo "${ECHO_T}no" >&6
 
13120
fi
 
13121
       ;;
 
13122
   *)
 
13123
  echo "$as_me:$LINENO: result: no" >&5
 
13124
echo "${ECHO_T}no" >&6
 
13125
    ;;
 
13126
  esac
 
13127
fi
 
13128
 
 
13129
if test "x$enable_dlopen" != xyes; then
 
13130
  enable_dlopen=unknown
 
13131
  enable_dlopen_self=unknown
 
13132
  enable_dlopen_self_static=unknown
 
13133
else
 
13134
  lt_cv_dlopen=no
 
13135
  lt_cv_dlopen_libs=
 
13136
 
 
13137
  case $host_os in
 
13138
  beos*)
 
13139
    lt_cv_dlopen="load_add_on"
 
13140
    lt_cv_dlopen_libs=
 
13141
    lt_cv_dlopen_self=yes
 
13142
    ;;
 
13143
 
 
13144
  mingw* | pw32*)
 
13145
    lt_cv_dlopen="LoadLibrary"
 
13146
    lt_cv_dlopen_libs=
 
13147
   ;;
 
13148
 
 
13149
  cygwin*)
 
13150
    lt_cv_dlopen="dlopen"
 
13151
    lt_cv_dlopen_libs=
 
13152
   ;;
 
13153
 
 
13154
  darwin*)
 
13155
  # if libdl is installed we need to link against it
 
13156
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13157
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13158
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13159
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13160
else
 
13161
  ac_check_lib_save_LIBS=$LIBS
 
13162
LIBS="-ldl  $LIBS"
 
13163
cat >conftest.$ac_ext <<_ACEOF
 
13164
/* confdefs.h.  */
 
13165
_ACEOF
 
13166
cat confdefs.h >>conftest.$ac_ext
 
13167
cat >>conftest.$ac_ext <<_ACEOF
 
13168
/* end confdefs.h.  */
 
13169
 
 
13170
/* Override any gcc2 internal prototype to avoid an error.  */
 
13171
#ifdef __cplusplus
 
13172
extern "C"
 
13173
#endif
 
13174
/* We use char because int might match the return type of a gcc2
 
13175
   builtin and then its argument prototype would still apply.  */
 
13176
char dlopen ();
 
13177
int
 
13178
main ()
 
13179
{
 
13180
dlopen ();
 
13181
  ;
 
13182
  return 0;
 
13183
}
 
13184
_ACEOF
 
13185
rm -f conftest.$ac_objext conftest$ac_exeext
 
13186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13187
  (eval $ac_link) 2>conftest.er1
 
13188
  ac_status=$?
 
13189
  grep -v '^ *+' conftest.er1 >conftest.err
 
13190
  rm -f conftest.er1
 
13191
  cat conftest.err >&5
 
13192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13193
  (exit $ac_status); } &&
 
13194
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13196
  (eval $ac_try) 2>&5
 
13197
  ac_status=$?
 
13198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13199
  (exit $ac_status); }; } &&
 
13200
         { ac_try='test -s conftest$ac_exeext'
 
13201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13202
  (eval $ac_try) 2>&5
 
13203
  ac_status=$?
 
13204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13205
  (exit $ac_status); }; }; then
 
13206
  ac_cv_lib_dl_dlopen=yes
 
13207
else
 
13208
  echo "$as_me: failed program was:" >&5
 
13209
sed 's/^/| /' conftest.$ac_ext >&5
 
13210
 
 
13211
ac_cv_lib_dl_dlopen=no
 
13212
fi
 
13213
rm -f conftest.err conftest.$ac_objext \
 
13214
      conftest$ac_exeext conftest.$ac_ext
 
13215
LIBS=$ac_check_lib_save_LIBS
 
13216
fi
 
13217
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13218
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13219
if test $ac_cv_lib_dl_dlopen = yes; then
 
13220
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13221
else
 
13222
 
 
13223
    lt_cv_dlopen="dyld"
 
13224
    lt_cv_dlopen_libs=
 
13225
    lt_cv_dlopen_self=yes
 
13226
 
 
13227
fi
 
13228
 
 
13229
   ;;
 
13230
 
 
13231
  *)
 
13232
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
13233
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
13234
if test "${ac_cv_func_shl_load+set}" = set; then
 
13235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13236
else
 
13237
  cat >conftest.$ac_ext <<_ACEOF
 
13238
/* confdefs.h.  */
 
13239
_ACEOF
 
13240
cat confdefs.h >>conftest.$ac_ext
 
13241
cat >>conftest.$ac_ext <<_ACEOF
 
13242
/* end confdefs.h.  */
 
13243
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
13244
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13245
#define shl_load innocuous_shl_load
 
13246
 
 
13247
/* System header to define __stub macros and hopefully few prototypes,
 
13248
    which can conflict with char shl_load (); below.
 
13249
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13250
    <limits.h> exists even on freestanding compilers.  */
 
13251
 
 
13252
#ifdef __STDC__
 
13253
# include <limits.h>
 
13254
#else
 
13255
# include <assert.h>
 
13256
#endif
 
13257
 
 
13258
#undef shl_load
 
13259
 
 
13260
/* Override any gcc2 internal prototype to avoid an error.  */
 
13261
#ifdef __cplusplus
 
13262
extern "C"
 
13263
{
 
13264
#endif
 
13265
/* We use char because int might match the return type of a gcc2
 
13266
   builtin and then its argument prototype would still apply.  */
 
13267
char shl_load ();
 
13268
/* The GNU C library defines this for functions which it implements
 
13269
    to always fail with ENOSYS.  Some functions are actually named
 
13270
    something starting with __ and the normal name is an alias.  */
 
13271
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
13272
choke me
 
13273
#else
 
13274
char (*f) () = shl_load;
 
13275
#endif
 
13276
#ifdef __cplusplus
 
13277
}
 
13278
#endif
 
13279
 
 
13280
int
 
13281
main ()
 
13282
{
 
13283
return f != shl_load;
 
13284
  ;
 
13285
  return 0;
 
13286
}
 
13287
_ACEOF
 
13288
rm -f conftest.$ac_objext conftest$ac_exeext
 
13289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13290
  (eval $ac_link) 2>conftest.er1
 
13291
  ac_status=$?
 
13292
  grep -v '^ *+' conftest.er1 >conftest.err
 
13293
  rm -f conftest.er1
 
13294
  cat conftest.err >&5
 
13295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13296
  (exit $ac_status); } &&
 
13297
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13299
  (eval $ac_try) 2>&5
 
13300
  ac_status=$?
 
13301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13302
  (exit $ac_status); }; } &&
 
13303
         { ac_try='test -s conftest$ac_exeext'
 
13304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13305
  (eval $ac_try) 2>&5
 
13306
  ac_status=$?
 
13307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13308
  (exit $ac_status); }; }; then
 
13309
  ac_cv_func_shl_load=yes
 
13310
else
 
13311
  echo "$as_me: failed program was:" >&5
 
13312
sed 's/^/| /' conftest.$ac_ext >&5
 
13313
 
 
13314
ac_cv_func_shl_load=no
 
13315
fi
 
13316
rm -f conftest.err conftest.$ac_objext \
 
13317
      conftest$ac_exeext conftest.$ac_ext
 
13318
fi
 
13319
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
13320
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
13321
if test $ac_cv_func_shl_load = yes; then
 
13322
  lt_cv_dlopen="shl_load"
 
13323
else
 
13324
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
13325
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
13326
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
13327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13328
else
 
13329
  ac_check_lib_save_LIBS=$LIBS
 
13330
LIBS="-ldld  $LIBS"
 
13331
cat >conftest.$ac_ext <<_ACEOF
 
13332
/* confdefs.h.  */
 
13333
_ACEOF
 
13334
cat confdefs.h >>conftest.$ac_ext
 
13335
cat >>conftest.$ac_ext <<_ACEOF
 
13336
/* end confdefs.h.  */
 
13337
 
 
13338
/* Override any gcc2 internal prototype to avoid an error.  */
 
13339
#ifdef __cplusplus
 
13340
extern "C"
 
13341
#endif
 
13342
/* We use char because int might match the return type of a gcc2
 
13343
   builtin and then its argument prototype would still apply.  */
 
13344
char shl_load ();
 
13345
int
 
13346
main ()
 
13347
{
 
13348
shl_load ();
 
13349
  ;
 
13350
  return 0;
 
13351
}
 
13352
_ACEOF
 
13353
rm -f conftest.$ac_objext conftest$ac_exeext
 
13354
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13355
  (eval $ac_link) 2>conftest.er1
 
13356
  ac_status=$?
 
13357
  grep -v '^ *+' conftest.er1 >conftest.err
 
13358
  rm -f conftest.er1
 
13359
  cat conftest.err >&5
 
13360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13361
  (exit $ac_status); } &&
 
13362
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13363
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13364
  (eval $ac_try) 2>&5
 
13365
  ac_status=$?
 
13366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13367
  (exit $ac_status); }; } &&
 
13368
         { ac_try='test -s conftest$ac_exeext'
 
13369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13370
  (eval $ac_try) 2>&5
 
13371
  ac_status=$?
 
13372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13373
  (exit $ac_status); }; }; then
 
13374
  ac_cv_lib_dld_shl_load=yes
 
13375
else
 
13376
  echo "$as_me: failed program was:" >&5
 
13377
sed 's/^/| /' conftest.$ac_ext >&5
 
13378
 
 
13379
ac_cv_lib_dld_shl_load=no
 
13380
fi
 
13381
rm -f conftest.err conftest.$ac_objext \
 
13382
      conftest$ac_exeext conftest.$ac_ext
 
13383
LIBS=$ac_check_lib_save_LIBS
 
13384
fi
 
13385
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
13386
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
13387
if test $ac_cv_lib_dld_shl_load = yes; then
 
13388
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
13389
else
 
13390
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
13391
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
13392
if test "${ac_cv_func_dlopen+set}" = set; then
 
13393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13394
else
 
13395
  cat >conftest.$ac_ext <<_ACEOF
 
13396
/* confdefs.h.  */
 
13397
_ACEOF
 
13398
cat confdefs.h >>conftest.$ac_ext
 
13399
cat >>conftest.$ac_ext <<_ACEOF
 
13400
/* end confdefs.h.  */
 
13401
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
13402
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13403
#define dlopen innocuous_dlopen
 
13404
 
 
13405
/* System header to define __stub macros and hopefully few prototypes,
 
13406
    which can conflict with char dlopen (); below.
 
13407
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13408
    <limits.h> exists even on freestanding compilers.  */
 
13409
 
 
13410
#ifdef __STDC__
 
13411
# include <limits.h>
 
13412
#else
 
13413
# include <assert.h>
 
13414
#endif
 
13415
 
 
13416
#undef dlopen
 
13417
 
 
13418
/* Override any gcc2 internal prototype to avoid an error.  */
 
13419
#ifdef __cplusplus
 
13420
extern "C"
 
13421
{
 
13422
#endif
 
13423
/* We use char because int might match the return type of a gcc2
 
13424
   builtin and then its argument prototype would still apply.  */
 
13425
char dlopen ();
 
13426
/* The GNU C library defines this for functions which it implements
 
13427
    to always fail with ENOSYS.  Some functions are actually named
 
13428
    something starting with __ and the normal name is an alias.  */
 
13429
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
13430
choke me
 
13431
#else
 
13432
char (*f) () = dlopen;
 
13433
#endif
 
13434
#ifdef __cplusplus
 
13435
}
 
13436
#endif
 
13437
 
 
13438
int
 
13439
main ()
 
13440
{
 
13441
return f != dlopen;
 
13442
  ;
 
13443
  return 0;
 
13444
}
 
13445
_ACEOF
 
13446
rm -f conftest.$ac_objext conftest$ac_exeext
 
13447
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13448
  (eval $ac_link) 2>conftest.er1
 
13449
  ac_status=$?
 
13450
  grep -v '^ *+' conftest.er1 >conftest.err
 
13451
  rm -f conftest.er1
 
13452
  cat conftest.err >&5
 
13453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13454
  (exit $ac_status); } &&
 
13455
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13457
  (eval $ac_try) 2>&5
 
13458
  ac_status=$?
 
13459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13460
  (exit $ac_status); }; } &&
 
13461
         { ac_try='test -s conftest$ac_exeext'
 
13462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13463
  (eval $ac_try) 2>&5
 
13464
  ac_status=$?
 
13465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13466
  (exit $ac_status); }; }; then
 
13467
  ac_cv_func_dlopen=yes
 
13468
else
 
13469
  echo "$as_me: failed program was:" >&5
 
13470
sed 's/^/| /' conftest.$ac_ext >&5
 
13471
 
 
13472
ac_cv_func_dlopen=no
 
13473
fi
 
13474
rm -f conftest.err conftest.$ac_objext \
 
13475
      conftest$ac_exeext conftest.$ac_ext
 
13476
fi
 
13477
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
13478
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
13479
if test $ac_cv_func_dlopen = yes; then
 
13480
  lt_cv_dlopen="dlopen"
 
13481
else
 
13482
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13483
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13484
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13486
else
 
13487
  ac_check_lib_save_LIBS=$LIBS
 
13488
LIBS="-ldl  $LIBS"
 
13489
cat >conftest.$ac_ext <<_ACEOF
 
13490
/* confdefs.h.  */
 
13491
_ACEOF
 
13492
cat confdefs.h >>conftest.$ac_ext
 
13493
cat >>conftest.$ac_ext <<_ACEOF
 
13494
/* end confdefs.h.  */
 
13495
 
 
13496
/* Override any gcc2 internal prototype to avoid an error.  */
 
13497
#ifdef __cplusplus
 
13498
extern "C"
 
13499
#endif
 
13500
/* We use char because int might match the return type of a gcc2
 
13501
   builtin and then its argument prototype would still apply.  */
 
13502
char dlopen ();
 
13503
int
 
13504
main ()
 
13505
{
 
13506
dlopen ();
 
13507
  ;
 
13508
  return 0;
 
13509
}
 
13510
_ACEOF
 
13511
rm -f conftest.$ac_objext conftest$ac_exeext
 
13512
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13513
  (eval $ac_link) 2>conftest.er1
 
13514
  ac_status=$?
 
13515
  grep -v '^ *+' conftest.er1 >conftest.err
 
13516
  rm -f conftest.er1
 
13517
  cat conftest.err >&5
 
13518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13519
  (exit $ac_status); } &&
 
13520
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13521
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13522
  (eval $ac_try) 2>&5
 
13523
  ac_status=$?
 
13524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13525
  (exit $ac_status); }; } &&
 
13526
         { ac_try='test -s conftest$ac_exeext'
 
13527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13528
  (eval $ac_try) 2>&5
 
13529
  ac_status=$?
 
13530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13531
  (exit $ac_status); }; }; then
 
13532
  ac_cv_lib_dl_dlopen=yes
 
13533
else
 
13534
  echo "$as_me: failed program was:" >&5
 
13535
sed 's/^/| /' conftest.$ac_ext >&5
 
13536
 
 
13537
ac_cv_lib_dl_dlopen=no
 
13538
fi
 
13539
rm -f conftest.err conftest.$ac_objext \
 
13540
      conftest$ac_exeext conftest.$ac_ext
 
13541
LIBS=$ac_check_lib_save_LIBS
 
13542
fi
 
13543
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13544
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13545
if test $ac_cv_lib_dl_dlopen = yes; then
 
13546
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13547
else
 
13548
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
13549
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
13550
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
13551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13552
else
 
13553
  ac_check_lib_save_LIBS=$LIBS
 
13554
LIBS="-lsvld  $LIBS"
 
13555
cat >conftest.$ac_ext <<_ACEOF
 
13556
/* confdefs.h.  */
 
13557
_ACEOF
 
13558
cat confdefs.h >>conftest.$ac_ext
 
13559
cat >>conftest.$ac_ext <<_ACEOF
 
13560
/* end confdefs.h.  */
 
13561
 
 
13562
/* Override any gcc2 internal prototype to avoid an error.  */
 
13563
#ifdef __cplusplus
 
13564
extern "C"
 
13565
#endif
 
13566
/* We use char because int might match the return type of a gcc2
 
13567
   builtin and then its argument prototype would still apply.  */
 
13568
char dlopen ();
 
13569
int
 
13570
main ()
 
13571
{
 
13572
dlopen ();
 
13573
  ;
 
13574
  return 0;
 
13575
}
 
13576
_ACEOF
 
13577
rm -f conftest.$ac_objext conftest$ac_exeext
 
13578
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13579
  (eval $ac_link) 2>conftest.er1
 
13580
  ac_status=$?
 
13581
  grep -v '^ *+' conftest.er1 >conftest.err
 
13582
  rm -f conftest.er1
 
13583
  cat conftest.err >&5
 
13584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13585
  (exit $ac_status); } &&
 
13586
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13588
  (eval $ac_try) 2>&5
 
13589
  ac_status=$?
 
13590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13591
  (exit $ac_status); }; } &&
 
13592
         { ac_try='test -s conftest$ac_exeext'
 
13593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13594
  (eval $ac_try) 2>&5
 
13595
  ac_status=$?
 
13596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13597
  (exit $ac_status); }; }; then
 
13598
  ac_cv_lib_svld_dlopen=yes
 
13599
else
 
13600
  echo "$as_me: failed program was:" >&5
 
13601
sed 's/^/| /' conftest.$ac_ext >&5
 
13602
 
 
13603
ac_cv_lib_svld_dlopen=no
 
13604
fi
 
13605
rm -f conftest.err conftest.$ac_objext \
 
13606
      conftest$ac_exeext conftest.$ac_ext
 
13607
LIBS=$ac_check_lib_save_LIBS
 
13608
fi
 
13609
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
13610
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
13611
if test $ac_cv_lib_svld_dlopen = yes; then
 
13612
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
13613
else
 
13614
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
13615
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
13616
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
13617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13618
else
 
13619
  ac_check_lib_save_LIBS=$LIBS
 
13620
LIBS="-ldld  $LIBS"
 
13621
cat >conftest.$ac_ext <<_ACEOF
 
13622
/* confdefs.h.  */
 
13623
_ACEOF
 
13624
cat confdefs.h >>conftest.$ac_ext
 
13625
cat >>conftest.$ac_ext <<_ACEOF
 
13626
/* end confdefs.h.  */
 
13627
 
 
13628
/* Override any gcc2 internal prototype to avoid an error.  */
 
13629
#ifdef __cplusplus
 
13630
extern "C"
 
13631
#endif
 
13632
/* We use char because int might match the return type of a gcc2
 
13633
   builtin and then its argument prototype would still apply.  */
 
13634
char dld_link ();
 
13635
int
 
13636
main ()
 
13637
{
 
13638
dld_link ();
 
13639
  ;
 
13640
  return 0;
 
13641
}
 
13642
_ACEOF
 
13643
rm -f conftest.$ac_objext conftest$ac_exeext
 
13644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13645
  (eval $ac_link) 2>conftest.er1
 
13646
  ac_status=$?
 
13647
  grep -v '^ *+' conftest.er1 >conftest.err
 
13648
  rm -f conftest.er1
 
13649
  cat conftest.err >&5
 
13650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13651
  (exit $ac_status); } &&
 
13652
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13653
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13654
  (eval $ac_try) 2>&5
 
13655
  ac_status=$?
 
13656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13657
  (exit $ac_status); }; } &&
 
13658
         { ac_try='test -s conftest$ac_exeext'
 
13659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13660
  (eval $ac_try) 2>&5
 
13661
  ac_status=$?
 
13662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13663
  (exit $ac_status); }; }; then
 
13664
  ac_cv_lib_dld_dld_link=yes
 
13665
else
 
13666
  echo "$as_me: failed program was:" >&5
 
13667
sed 's/^/| /' conftest.$ac_ext >&5
 
13668
 
 
13669
ac_cv_lib_dld_dld_link=no
 
13670
fi
 
13671
rm -f conftest.err conftest.$ac_objext \
 
13672
      conftest$ac_exeext conftest.$ac_ext
 
13673
LIBS=$ac_check_lib_save_LIBS
 
13674
fi
 
13675
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
13676
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
13677
if test $ac_cv_lib_dld_dld_link = yes; then
 
13678
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
13679
fi
 
13680
 
 
13681
 
 
13682
fi
 
13683
 
 
13684
 
 
13685
fi
 
13686
 
 
13687
 
 
13688
fi
 
13689
 
 
13690
 
 
13691
fi
 
13692
 
 
13693
 
 
13694
fi
 
13695
 
 
13696
    ;;
 
13697
  esac
 
13698
 
 
13699
  if test "x$lt_cv_dlopen" != xno; then
 
13700
    enable_dlopen=yes
 
13701
  else
 
13702
    enable_dlopen=no
 
13703
  fi
 
13704
 
 
13705
  case $lt_cv_dlopen in
 
13706
  dlopen)
 
13707
    save_CPPFLAGS="$CPPFLAGS"
 
13708
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13709
 
 
13710
    save_LDFLAGS="$LDFLAGS"
 
13711
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
13712
 
 
13713
    save_LIBS="$LIBS"
 
13714
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
13715
 
 
13716
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
13717
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
13718
if test "${lt_cv_dlopen_self+set}" = set; then
 
13719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13720
else
 
13721
          if test "$cross_compiling" = yes; then :
 
13722
  lt_cv_dlopen_self=cross
 
13723
else
 
13724
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13725
  lt_status=$lt_dlunknown
 
13726
  cat > conftest.$ac_ext <<EOF
 
13727
#line 13727 "configure"
 
13728
#include "confdefs.h"
 
13729
 
 
13730
#if HAVE_DLFCN_H
 
13731
#include <dlfcn.h>
 
13732
#endif
 
13733
 
 
13734
#include <stdio.h>
 
13735
 
 
13736
#ifdef RTLD_GLOBAL
 
13737
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13738
#else
 
13739
#  ifdef DL_GLOBAL
 
13740
#    define LT_DLGLOBAL         DL_GLOBAL
 
13741
#  else
 
13742
#    define LT_DLGLOBAL         0
 
13743
#  endif
 
13744
#endif
 
13745
 
 
13746
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13747
   find out it does not work in some platform. */
 
13748
#ifndef LT_DLLAZY_OR_NOW
 
13749
#  ifdef RTLD_LAZY
 
13750
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13751
#  else
 
13752
#    ifdef DL_LAZY
 
13753
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13754
#    else
 
13755
#      ifdef RTLD_NOW
 
13756
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13757
#      else
 
13758
#        ifdef DL_NOW
 
13759
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13760
#        else
 
13761
#          define LT_DLLAZY_OR_NOW      0
 
13762
#        endif
 
13763
#      endif
 
13764
#    endif
 
13765
#  endif
 
13766
#endif
 
13767
 
 
13768
#ifdef __cplusplus
 
13769
extern "C" void exit (int);
 
13770
#endif
 
13771
 
 
13772
void fnord() { int i=42;}
 
13773
int main ()
 
13774
{
 
13775
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13776
  int status = $lt_dlunknown;
 
13777
 
 
13778
  if (self)
 
13779
    {
 
13780
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13781
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13782
      /* dlclose (self); */
 
13783
    }
 
13784
 
 
13785
    exit (status);
 
13786
}
 
13787
EOF
 
13788
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13789
  (eval $ac_link) 2>&5
 
13790
  ac_status=$?
 
13791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13792
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13793
    (./conftest; exit; ) 2>/dev/null
 
13794
    lt_status=$?
 
13795
    case x$lt_status in
 
13796
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
13797
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
13798
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
13799
    esac
 
13800
  else :
 
13801
    # compilation failed
 
13802
    lt_cv_dlopen_self=no
 
13803
  fi
 
13804
fi
 
13805
rm -fr conftest*
 
13806
 
 
13807
 
 
13808
fi
 
13809
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
13810
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
13811
 
 
13812
    if test "x$lt_cv_dlopen_self" = xyes; then
 
13813
      LDFLAGS="$LDFLAGS $link_static_flag"
 
13814
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
13815
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
13816
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
13817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13818
else
 
13819
          if test "$cross_compiling" = yes; then :
 
13820
  lt_cv_dlopen_self_static=cross
 
13821
else
 
13822
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13823
  lt_status=$lt_dlunknown
 
13824
  cat > conftest.$ac_ext <<EOF
 
13825
#line 13825 "configure"
 
13826
#include "confdefs.h"
 
13827
 
 
13828
#if HAVE_DLFCN_H
 
13829
#include <dlfcn.h>
 
13830
#endif
 
13831
 
 
13832
#include <stdio.h>
 
13833
 
 
13834
#ifdef RTLD_GLOBAL
 
13835
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13836
#else
 
13837
#  ifdef DL_GLOBAL
 
13838
#    define LT_DLGLOBAL         DL_GLOBAL
 
13839
#  else
 
13840
#    define LT_DLGLOBAL         0
 
13841
#  endif
 
13842
#endif
 
13843
 
 
13844
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13845
   find out it does not work in some platform. */
 
13846
#ifndef LT_DLLAZY_OR_NOW
 
13847
#  ifdef RTLD_LAZY
 
13848
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13849
#  else
 
13850
#    ifdef DL_LAZY
 
13851
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13852
#    else
 
13853
#      ifdef RTLD_NOW
 
13854
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13855
#      else
 
13856
#        ifdef DL_NOW
 
13857
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13858
#        else
 
13859
#          define LT_DLLAZY_OR_NOW      0
 
13860
#        endif
 
13861
#      endif
 
13862
#    endif
 
13863
#  endif
 
13864
#endif
 
13865
 
 
13866
#ifdef __cplusplus
 
13867
extern "C" void exit (int);
 
13868
#endif
 
13869
 
 
13870
void fnord() { int i=42;}
 
13871
int main ()
 
13872
{
 
13873
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13874
  int status = $lt_dlunknown;
 
13875
 
 
13876
  if (self)
 
13877
    {
 
13878
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13879
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13880
      /* dlclose (self); */
 
13881
    }
 
13882
 
 
13883
    exit (status);
 
13884
}
 
13885
EOF
 
13886
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13887
  (eval $ac_link) 2>&5
 
13888
  ac_status=$?
 
13889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13890
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13891
    (./conftest; exit; ) 2>/dev/null
 
13892
    lt_status=$?
 
13893
    case x$lt_status in
 
13894
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13895
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13896
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13897
    esac
 
13898
  else :
 
13899
    # compilation failed
 
13900
    lt_cv_dlopen_self_static=no
 
13901
  fi
 
13902
fi
 
13903
rm -fr conftest*
 
13904
 
 
13905
 
 
13906
fi
 
13907
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13908
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13909
    fi
 
13910
 
 
13911
    CPPFLAGS="$save_CPPFLAGS"
 
13912
    LDFLAGS="$save_LDFLAGS"
 
13913
    LIBS="$save_LIBS"
 
13914
    ;;
 
13915
  esac
 
13916
 
 
13917
  case $lt_cv_dlopen_self in
 
13918
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13919
  *) enable_dlopen_self=unknown ;;
 
13920
  esac
 
13921
 
 
13922
  case $lt_cv_dlopen_self_static in
 
13923
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13924
  *) enable_dlopen_self_static=unknown ;;
 
13925
  esac
 
13926
fi
 
13927
 
 
13928
 
 
13929
# The else clause should only fire when bootstrapping the
 
13930
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13931
# with your package, and you will get complaints that there are
 
13932
# no rules to generate ltmain.sh.
 
13933
if test -f "$ltmain"; then
 
13934
  # See if we are running on zsh, and set the options which allow our commands through
 
13935
  # without removal of \ escapes.
 
13936
  if test -n "${ZSH_VERSION+set}" ; then
 
13937
    setopt NO_GLOB_SUBST
 
13938
  fi
 
13939
  # Now quote all the things that may contain metacharacters while being
 
13940
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13941
  # variables and quote the copies for generation of the libtool script.
 
13942
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13943
    SED SHELL STRIP \
 
13944
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13945
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13946
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13947
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13948
    lt_cv_sys_global_symbol_to_c_name_address \
 
13949
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13950
    old_postinstall_cmds old_postuninstall_cmds \
 
13951
    compiler_CXX \
 
13952
    CC_CXX \
 
13953
    LD_CXX \
 
13954
    lt_prog_compiler_wl_CXX \
 
13955
    lt_prog_compiler_pic_CXX \
 
13956
    lt_prog_compiler_static_CXX \
 
13957
    lt_prog_compiler_no_builtin_flag_CXX \
 
13958
    export_dynamic_flag_spec_CXX \
 
13959
    thread_safe_flag_spec_CXX \
 
13960
    whole_archive_flag_spec_CXX \
 
13961
    enable_shared_with_static_runtimes_CXX \
 
13962
    old_archive_cmds_CXX \
 
13963
    old_archive_from_new_cmds_CXX \
 
13964
    predep_objects_CXX \
 
13965
    postdep_objects_CXX \
 
13966
    predeps_CXX \
 
13967
    postdeps_CXX \
 
13968
    compiler_lib_search_path_CXX \
 
13969
    archive_cmds_CXX \
 
13970
    archive_expsym_cmds_CXX \
 
13971
    postinstall_cmds_CXX \
 
13972
    postuninstall_cmds_CXX \
 
13973
    old_archive_from_expsyms_cmds_CXX \
 
13974
    allow_undefined_flag_CXX \
 
13975
    no_undefined_flag_CXX \
 
13976
    export_symbols_cmds_CXX \
 
13977
    hardcode_libdir_flag_spec_CXX \
 
13978
    hardcode_libdir_flag_spec_ld_CXX \
 
13979
    hardcode_libdir_separator_CXX \
 
13980
    hardcode_automatic_CXX \
 
13981
    module_cmds_CXX \
 
13982
    module_expsym_cmds_CXX \
 
13983
    lt_cv_prog_compiler_c_o_CXX \
 
13984
    exclude_expsyms_CXX \
 
13985
    include_expsyms_CXX; do
 
13986
 
 
13987
    case $var in
 
13988
    old_archive_cmds_CXX | \
 
13989
    old_archive_from_new_cmds_CXX | \
 
13990
    archive_cmds_CXX | \
 
13991
    archive_expsym_cmds_CXX | \
 
13992
    module_cmds_CXX | \
 
13993
    module_expsym_cmds_CXX | \
 
13994
    old_archive_from_expsyms_cmds_CXX | \
 
13995
    export_symbols_cmds_CXX | \
 
13996
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13997
    postinstall_cmds | postuninstall_cmds | \
 
13998
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13999
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14000
      # Double-quote double-evaled strings.
 
14001
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14002
      ;;
 
14003
    *)
 
14004
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14005
      ;;
 
14006
    esac
 
14007
  done
 
14008
 
 
14009
  case $lt_echo in
 
14010
  *'\$0 --fallback-echo"')
 
14011
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14012
    ;;
 
14013
  esac
 
14014
 
 
14015
cfgfile="$ofile"
 
14016
 
 
14017
  cat <<__EOF__ >> "$cfgfile"
 
14018
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14019
 
 
14020
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14021
 
 
14022
# Shell to use when invoking shell scripts.
 
14023
SHELL=$lt_SHELL
 
14024
 
 
14025
# Whether or not to build shared libraries.
 
14026
build_libtool_libs=$enable_shared
 
14027
 
 
14028
# Whether or not to build static libraries.
 
14029
build_old_libs=$enable_static
 
14030
 
 
14031
# Whether or not to add -lc for building shared libraries.
 
14032
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14033
 
 
14034
# Whether or not to disallow shared libs when runtime libs are static
 
14035
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14036
 
 
14037
# Whether or not to optimize for fast installation.
 
14038
fast_install=$enable_fast_install
 
14039
 
 
14040
# The host system.
 
14041
host_alias=$host_alias
 
14042
host=$host
 
14043
 
 
14044
# An echo program that does not interpret backslashes.
 
14045
echo=$lt_echo
 
14046
 
 
14047
# The archiver.
 
14048
AR=$lt_AR
 
14049
AR_FLAGS=$lt_AR_FLAGS
 
14050
 
 
14051
# A C compiler.
 
14052
LTCC=$lt_LTCC
 
14053
 
 
14054
# A language-specific compiler.
 
14055
CC=$lt_compiler_CXX
 
14056
 
 
14057
# Is the compiler the GNU C compiler?
 
14058
with_gcc=$GCC_CXX
 
14059
 
 
14060
# An ERE matcher.
 
14061
EGREP=$lt_EGREP
 
14062
 
 
14063
# The linker used to build libraries.
 
14064
LD=$lt_LD_CXX
 
14065
 
 
14066
# Whether we need hard or soft links.
 
14067
LN_S=$lt_LN_S
 
14068
 
 
14069
# A BSD-compatible nm program.
 
14070
NM=$lt_NM
 
14071
 
 
14072
# A symbol stripping program
 
14073
STRIP=$lt_STRIP
 
14074
 
 
14075
# Used to examine libraries when file_magic_cmd begins "file"
 
14076
MAGIC_CMD=$MAGIC_CMD
 
14077
 
 
14078
# Used on cygwin: DLL creation program.
 
14079
DLLTOOL="$DLLTOOL"
 
14080
 
 
14081
# Used on cygwin: object dumper.
 
14082
OBJDUMP="$OBJDUMP"
 
14083
 
 
14084
# Used on cygwin: assembler.
 
14085
AS="$AS"
 
14086
 
 
14087
# The name of the directory that contains temporary libtool files.
 
14088
objdir=$objdir
 
14089
 
 
14090
# How to create reloadable object files.
 
14091
reload_flag=$lt_reload_flag
 
14092
reload_cmds=$lt_reload_cmds
 
14093
 
 
14094
# How to pass a linker flag through the compiler.
 
14095
wl=$lt_lt_prog_compiler_wl_CXX
 
14096
 
 
14097
# Object file suffix (normally "o").
 
14098
objext="$ac_objext"
 
14099
 
 
14100
# Old archive suffix (normally "a").
 
14101
libext="$libext"
 
14102
 
 
14103
# Shared library suffix (normally ".so").
 
14104
shrext_cmds='$shrext_cmds'
 
14105
 
 
14106
# Executable file suffix (normally "").
 
14107
exeext="$exeext"
 
14108
 
 
14109
# Additional compiler flags for building library objects.
 
14110
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14111
pic_mode=$pic_mode
 
14112
 
 
14113
# What is the maximum length of a command?
 
14114
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14115
 
 
14116
# Does compiler simultaneously support -c and -o options?
 
14117
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14118
 
 
14119
# Must we lock files when doing compilation ?
 
14120
need_locks=$lt_need_locks
 
14121
 
 
14122
# Do we need the lib prefix for modules?
 
14123
need_lib_prefix=$need_lib_prefix
 
14124
 
 
14125
# Do we need a version for libraries?
 
14126
need_version=$need_version
 
14127
 
 
14128
# Whether dlopen is supported.
 
14129
dlopen_support=$enable_dlopen
 
14130
 
 
14131
# Whether dlopen of programs is supported.
 
14132
dlopen_self=$enable_dlopen_self
 
14133
 
 
14134
# Whether dlopen of statically linked programs is supported.
 
14135
dlopen_self_static=$enable_dlopen_self_static
 
14136
 
 
14137
# Compiler flag to prevent dynamic linking.
 
14138
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14139
 
 
14140
# Compiler flag to turn off builtin functions.
 
14141
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14142
 
 
14143
# Compiler flag to allow reflexive dlopens.
 
14144
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14145
 
 
14146
# Compiler flag to generate shared objects directly from archives.
 
14147
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14148
 
 
14149
# Compiler flag to generate thread-safe objects.
 
14150
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14151
 
 
14152
# Library versioning type.
 
14153
version_type=$version_type
 
14154
 
 
14155
# Format of library name prefix.
 
14156
libname_spec=$lt_libname_spec
 
14157
 
 
14158
# List of archive names.  First name is the real one, the rest are links.
 
14159
# The last name is the one that the linker finds with -lNAME.
 
14160
library_names_spec=$lt_library_names_spec
 
14161
 
 
14162
# The coded name of the library, if different from the real name.
 
14163
soname_spec=$lt_soname_spec
 
14164
 
 
14165
# Commands used to build and install an old-style archive.
 
14166
RANLIB=$lt_RANLIB
 
14167
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14168
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14169
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14170
 
 
14171
# Create an old-style archive from a shared archive.
 
14172
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14173
 
 
14174
# Create a temporary old-style archive to link instead of a shared archive.
 
14175
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14176
 
 
14177
# Commands used to build and install a shared archive.
 
14178
archive_cmds=$lt_archive_cmds_CXX
 
14179
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14180
postinstall_cmds=$lt_postinstall_cmds
 
14181
postuninstall_cmds=$lt_postuninstall_cmds
 
14182
 
 
14183
# Commands used to build a loadable module (assumed same as above if empty)
 
14184
module_cmds=$lt_module_cmds_CXX
 
14185
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14186
 
 
14187
# Commands to strip libraries.
 
14188
old_striplib=$lt_old_striplib
 
14189
striplib=$lt_striplib
 
14190
 
 
14191
# Dependencies to place before the objects being linked to create a
 
14192
# shared library.
 
14193
predep_objects=$lt_predep_objects_CXX
 
14194
 
 
14195
# Dependencies to place after the objects being linked to create a
 
14196
# shared library.
 
14197
postdep_objects=$lt_postdep_objects_CXX
 
14198
 
 
14199
# Dependencies to place before the objects being linked to create a
 
14200
# shared library.
 
14201
predeps=$lt_predeps_CXX
 
14202
 
 
14203
# Dependencies to place after the objects being linked to create a
 
14204
# shared library.
 
14205
postdeps=$lt_postdeps_CXX
 
14206
 
 
14207
# The library search path used internally by the compiler when linking
 
14208
# a shared library.
 
14209
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14210
 
 
14211
# Method to check whether dependent libraries are shared objects.
 
14212
deplibs_check_method=$lt_deplibs_check_method
 
14213
 
 
14214
# Command to use when deplibs_check_method == file_magic.
 
14215
file_magic_cmd=$lt_file_magic_cmd
 
14216
 
 
14217
# Flag that allows shared libraries with undefined symbols to be built.
 
14218
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14219
 
 
14220
# Flag that forces no undefined symbols.
 
14221
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14222
 
 
14223
# Commands used to finish a libtool library installation in a directory.
 
14224
finish_cmds=$lt_finish_cmds
 
14225
 
 
14226
# Same as above, but a single script fragment to be evaled but not shown.
 
14227
finish_eval=$lt_finish_eval
 
14228
 
 
14229
# Take the output of nm and produce a listing of raw symbols and C names.
 
14230
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14231
 
 
14232
# Transform the output of nm in a proper C declaration
 
14233
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14234
 
 
14235
# Transform the output of nm in a C name address pair
 
14236
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14237
 
 
14238
# This is the shared library runtime path variable.
 
14239
runpath_var=$runpath_var
 
14240
 
 
14241
# This is the shared library path variable.
 
14242
shlibpath_var=$shlibpath_var
 
14243
 
 
14244
# Is shlibpath searched before the hard-coded library search path?
 
14245
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14246
 
 
14247
# How to hardcode a shared library path into an executable.
 
14248
hardcode_action=$hardcode_action_CXX
 
14249
 
 
14250
# Whether we should hardcode library paths into libraries.
 
14251
hardcode_into_libs=$hardcode_into_libs
 
14252
 
 
14253
# Flag to hardcode \$libdir into a binary during linking.
 
14254
# This must work even if \$libdir does not exist.
 
14255
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14256
 
 
14257
# If ld is used when linking, flag to hardcode \$libdir into
 
14258
# a binary during linking. This must work even if \$libdir does
 
14259
# not exist.
 
14260
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14261
 
 
14262
# Whether we need a single -rpath flag with a separated argument.
 
14263
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14264
 
 
14265
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14266
# resulting binary.
 
14267
hardcode_direct=$hardcode_direct_CXX
 
14268
 
 
14269
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14270
# resulting binary.
 
14271
hardcode_minus_L=$hardcode_minus_L_CXX
 
14272
 
 
14273
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14274
# the resulting binary.
 
14275
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14276
 
 
14277
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14278
# and all subsequent libraries and executables linked against it.
 
14279
hardcode_automatic=$hardcode_automatic_CXX
 
14280
 
 
14281
# Variables whose values should be saved in libtool wrapper scripts and
 
14282
# restored at relink time.
 
14283
variables_saved_for_relink="$variables_saved_for_relink"
 
14284
 
 
14285
# Whether libtool must link a program against all its dependency libraries.
 
14286
link_all_deplibs=$link_all_deplibs_CXX
 
14287
 
 
14288
# Compile-time system search path for libraries
 
14289
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14290
 
 
14291
# Run-time system search path for libraries
 
14292
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14293
 
 
14294
# Fix the shell variable \$srcfile for the compiler.
 
14295
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14296
 
 
14297
# Set to yes if exported symbols are required.
 
14298
always_export_symbols=$always_export_symbols_CXX
 
14299
 
 
14300
# The commands to list exported symbols.
 
14301
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14302
 
 
14303
# The commands to extract the exported symbol list from a shared archive.
 
14304
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14305
 
 
14306
# Symbols that should not be listed in the preloaded symbols.
 
14307
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14308
 
 
14309
# Symbols that must always be exported.
 
14310
include_expsyms=$lt_include_expsyms_CXX
 
14311
 
 
14312
# ### END LIBTOOL TAG CONFIG: $tagname
 
14313
 
 
14314
__EOF__
 
14315
 
 
14316
 
 
14317
else
 
14318
  # If there is no Makefile yet, we rely on a make rule to execute
 
14319
  # `config.status --recheck' to rerun these tests and create the
 
14320
  # libtool script then.
 
14321
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14322
  if test -f "$ltmain_in"; then
 
14323
    test -f Makefile && make "$ltmain"
 
14324
  fi
 
14325
fi
 
14326
 
 
14327
 
 
14328
ac_ext=c
 
14329
ac_cpp='$CPP $CPPFLAGS'
 
14330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14333
 
 
14334
CC=$lt_save_CC
 
14335
LDCXX=$LD
 
14336
LD=$lt_save_LD
 
14337
GCC=$lt_save_GCC
 
14338
with_gnu_ldcxx=$with_gnu_ld
 
14339
with_gnu_ld=$lt_save_with_gnu_ld
 
14340
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14341
lt_cv_path_LD=$lt_save_path_LD
 
14342
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14343
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14344
 
 
14345
        else
 
14346
          tagname=""
 
14347
        fi
 
14348
        ;;
 
14349
 
 
14350
      F77)
 
14351
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14352
 
 
14353
ac_ext=f
 
14354
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14355
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14356
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14357
 
 
14358
 
 
14359
archive_cmds_need_lc_F77=no
 
14360
allow_undefined_flag_F77=
 
14361
always_export_symbols_F77=no
 
14362
archive_expsym_cmds_F77=
 
14363
export_dynamic_flag_spec_F77=
 
14364
hardcode_direct_F77=no
 
14365
hardcode_libdir_flag_spec_F77=
 
14366
hardcode_libdir_flag_spec_ld_F77=
 
14367
hardcode_libdir_separator_F77=
 
14368
hardcode_minus_L_F77=no
 
14369
hardcode_automatic_F77=no
 
14370
module_cmds_F77=
 
14371
module_expsym_cmds_F77=
 
14372
link_all_deplibs_F77=unknown
 
14373
old_archive_cmds_F77=$old_archive_cmds
 
14374
no_undefined_flag_F77=
 
14375
whole_archive_flag_spec_F77=
 
14376
enable_shared_with_static_runtimes_F77=no
 
14377
 
 
14378
# Source file extension for f77 test sources.
 
14379
ac_ext=f
 
14380
 
 
14381
# Object file extension for compiled f77 test sources.
 
14382
objext=o
 
14383
objext_F77=$objext
 
14384
 
 
14385
# Code to be used in simple compile tests
 
14386
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14387
 
 
14388
# Code to be used in simple link tests
 
14389
lt_simple_link_test_code="      program t\n      end\n"
 
14390
 
 
14391
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14392
 
 
14393
# If no C compiler was specified, use CC.
 
14394
LTCC=${LTCC-"$CC"}
 
14395
 
 
14396
# Allow CC to be a program name with arguments.
 
14397
compiler=$CC
 
14398
 
 
14399
 
 
14400
# Allow CC to be a program name with arguments.
 
14401
lt_save_CC="$CC"
 
14402
CC=${F77-"f77"}
 
14403
compiler=$CC
 
14404
compiler_F77=$CC
 
14405
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
14406
 
 
14407
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14408
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
14409
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14410
echo "${ECHO_T}$can_build_shared" >&6
 
14411
 
 
14412
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14413
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
14414
test "$can_build_shared" = "no" && enable_shared=no
 
14415
 
 
14416
# On AIX, shared libraries and static libraries use the same namespace, and
 
14417
# are all built from PIC.
 
14418
case "$host_os" in
 
14419
aix3*)
 
14420
  test "$enable_shared" = yes && enable_static=no
 
14421
  if test -n "$RANLIB"; then
 
14422
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14423
    postinstall_cmds='$RANLIB $lib'
 
14424
  fi
 
14425
  ;;
 
14426
aix4* | aix5*)
 
14427
  test "$enable_shared" = yes && enable_static=no
 
14428
  ;;
 
14429
esac
 
14430
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14431
echo "${ECHO_T}$enable_shared" >&6
 
14432
 
 
14433
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14434
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
14435
# Make sure either enable_shared or enable_static is yes.
 
14436
test "$enable_shared" = yes || enable_static=yes
 
14437
echo "$as_me:$LINENO: result: $enable_static" >&5
 
14438
echo "${ECHO_T}$enable_static" >&6
 
14439
 
 
14440
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14441
 
 
14442
GCC_F77="$G77"
 
14443
LD_F77="$LD"
 
14444
 
 
14445
lt_prog_compiler_wl_F77=
 
14446
lt_prog_compiler_pic_F77=
 
14447
lt_prog_compiler_static_F77=
 
14448
 
 
14449
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14450
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14451
 
 
14452
  if test "$GCC" = yes; then
 
14453
    lt_prog_compiler_wl_F77='-Wl,'
 
14454
    lt_prog_compiler_static_F77='-static'
 
14455
 
 
14456
    case $host_os in
 
14457
      aix*)
 
14458
      # All AIX code is PIC.
 
14459
      if test "$host_cpu" = ia64; then
 
14460
        # AIX 5 now supports IA64 processor
 
14461
        lt_prog_compiler_static_F77='-Bstatic'
 
14462
      fi
 
14463
      ;;
 
14464
 
 
14465
    amigaos*)
 
14466
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14467
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14468
      # like `-m68040'.
 
14469
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14470
      ;;
 
14471
 
 
14472
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14473
      # PIC is the default for these OSes.
 
14474
      ;;
 
14475
 
 
14476
    mingw* | pw32* | os2*)
 
14477
      # This hack is so that the source file can tell whether it is being
 
14478
      # built for inclusion in a dll (and should export symbols for example).
 
14479
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14480
      ;;
 
14481
 
 
14482
    darwin* | rhapsody*)
 
14483
      # PIC is the default on this platform
 
14484
      # Common symbols not allowed in MH_DYLIB files
 
14485
      lt_prog_compiler_pic_F77='-fno-common'
 
14486
      ;;
 
14487
 
 
14488
    msdosdjgpp*)
 
14489
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14490
      # on systems that don't support them.
 
14491
      lt_prog_compiler_can_build_shared_F77=no
 
14492
      enable_shared=no
 
14493
      ;;
 
14494
 
 
14495
    sysv4*MP*)
 
14496
      if test -d /usr/nec; then
 
14497
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14498
      fi
 
14499
      ;;
 
14500
 
 
14501
    hpux*)
 
14502
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14503
      # not for PA HP-UX.
 
14504
      case "$host_cpu" in
 
14505
      hppa*64*|ia64*)
 
14506
        # +Z the default
 
14507
        ;;
 
14508
      *)
 
14509
        lt_prog_compiler_pic_F77='-fPIC'
 
14510
        ;;
 
14511
      esac
 
14512
      ;;
 
14513
 
 
14514
    *)
 
14515
      lt_prog_compiler_pic_F77='-fPIC'
 
14516
      ;;
 
14517
    esac
 
14518
  else
 
14519
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14520
    case $host_os in
 
14521
    aix*)
 
14522
      lt_prog_compiler_wl_F77='-Wl,'
 
14523
      if test "$host_cpu" = ia64; then
 
14524
        # AIX 5 now supports IA64 processor
 
14525
        lt_prog_compiler_static_F77='-Bstatic'
 
14526
      else
 
14527
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14528
      fi
 
14529
      ;;
 
14530
 
 
14531
    mingw* | pw32* | os2*)
 
14532
      # This hack is so that the source file can tell whether it is being
 
14533
      # built for inclusion in a dll (and should export symbols for example).
 
14534
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14535
      ;;
 
14536
 
 
14537
    hpux9* | hpux10* | hpux11*)
 
14538
      lt_prog_compiler_wl_F77='-Wl,'
 
14539
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14540
      # not for PA HP-UX.
 
14541
      case "$host_cpu" in
 
14542
      hppa*64*|ia64*)
 
14543
        # +Z the default
 
14544
        ;;
 
14545
      *)
 
14546
        lt_prog_compiler_pic_F77='+Z'
 
14547
        ;;
 
14548
      esac
 
14549
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14550
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14551
      ;;
 
14552
 
 
14553
    irix5* | irix6* | nonstopux*)
 
14554
      lt_prog_compiler_wl_F77='-Wl,'
 
14555
      # PIC (with -KPIC) is the default.
 
14556
      lt_prog_compiler_static_F77='-non_shared'
 
14557
      ;;
 
14558
 
 
14559
    newsos6)
 
14560
      lt_prog_compiler_pic_F77='-KPIC'
 
14561
      lt_prog_compiler_static_F77='-Bstatic'
 
14562
      ;;
 
14563
 
 
14564
    linux*)
 
14565
      case $CC in
 
14566
      icc* | ecc*)
 
14567
        lt_prog_compiler_wl_F77='-Wl,'
 
14568
        lt_prog_compiler_pic_F77='-KPIC'
 
14569
        lt_prog_compiler_static_F77='-static'
 
14570
        ;;
 
14571
      ccc*)
 
14572
        lt_prog_compiler_wl_F77='-Wl,'
 
14573
        # All Alpha code is PIC.
 
14574
        lt_prog_compiler_static_F77='-non_shared'
 
14575
        ;;
 
14576
      esac
 
14577
      ;;
 
14578
 
 
14579
    osf3* | osf4* | osf5*)
 
14580
      lt_prog_compiler_wl_F77='-Wl,'
 
14581
      # All OSF/1 code is PIC.
 
14582
      lt_prog_compiler_static_F77='-non_shared'
 
14583
      ;;
 
14584
 
 
14585
    sco3.2v5*)
 
14586
      lt_prog_compiler_pic_F77='-Kpic'
 
14587
      lt_prog_compiler_static_F77='-dn'
 
14588
      ;;
 
14589
 
 
14590
    solaris*)
 
14591
      lt_prog_compiler_wl_F77='-Wl,'
 
14592
      lt_prog_compiler_pic_F77='-KPIC'
 
14593
      lt_prog_compiler_static_F77='-Bstatic'
 
14594
      ;;
 
14595
 
 
14596
    sunos4*)
 
14597
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14598
      lt_prog_compiler_pic_F77='-PIC'
 
14599
      lt_prog_compiler_static_F77='-Bstatic'
 
14600
      ;;
 
14601
 
 
14602
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14603
      lt_prog_compiler_wl_F77='-Wl,'
 
14604
      lt_prog_compiler_pic_F77='-KPIC'
 
14605
      lt_prog_compiler_static_F77='-Bstatic'
 
14606
      ;;
 
14607
 
 
14608
    sysv4*MP*)
 
14609
      if test -d /usr/nec ;then
 
14610
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14611
        lt_prog_compiler_static_F77='-Bstatic'
 
14612
      fi
 
14613
      ;;
 
14614
 
 
14615
    uts4*)
 
14616
      lt_prog_compiler_pic_F77='-pic'
 
14617
      lt_prog_compiler_static_F77='-Bstatic'
 
14618
      ;;
 
14619
 
 
14620
    *)
 
14621
      lt_prog_compiler_can_build_shared_F77=no
 
14622
      ;;
 
14623
    esac
 
14624
  fi
 
14625
 
 
14626
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14627
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14628
 
 
14629
#
 
14630
# Check to make sure the PIC flag actually works.
 
14631
#
 
14632
if test -n "$lt_prog_compiler_pic_F77"; then
 
14633
 
 
14634
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14635
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14636
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14637
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14638
else
 
14639
  lt_prog_compiler_pic_works_F77=no
 
14640
  ac_outfile=conftest.$ac_objext
 
14641
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14642
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14643
   # Insert the option either (1) after the last *FLAGS variable, or
 
14644
   # (2) before a word containing "conftest.", or (3) at the end.
 
14645
   # Note that $ac_compile itself does not contain backslashes and begins
 
14646
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14647
   # The option is referenced via a variable to avoid confusing sed.
 
14648
   lt_compile=`echo "$ac_compile" | $SED \
 
14649
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14650
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14651
   -e 's:$: $lt_compiler_flag:'`
 
14652
   (eval echo "\"\$as_me:14652: $lt_compile\"" >&5)
 
14653
   (eval "$lt_compile" 2>conftest.err)
 
14654
   ac_status=$?
 
14655
   cat conftest.err >&5
 
14656
   echo "$as_me:14656: \$? = $ac_status" >&5
 
14657
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14658
     # The compiler can only warn and ignore the option if not recognized
 
14659
     # So say no if there are warnings
 
14660
     if test ! -s conftest.err; then
 
14661
       lt_prog_compiler_pic_works_F77=yes
 
14662
     fi
 
14663
   fi
 
14664
   $rm conftest*
 
14665
 
 
14666
fi
 
14667
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14668
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14669
 
 
14670
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14671
    case $lt_prog_compiler_pic_F77 in
 
14672
     "" | " "*) ;;
 
14673
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14674
     esac
 
14675
else
 
14676
    lt_prog_compiler_pic_F77=
 
14677
     lt_prog_compiler_can_build_shared_F77=no
 
14678
fi
 
14679
 
 
14680
fi
 
14681
case "$host_os" in
 
14682
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14683
  *djgpp*)
 
14684
    lt_prog_compiler_pic_F77=
 
14685
    ;;
 
14686
  *)
 
14687
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14688
    ;;
 
14689
esac
 
14690
 
 
14691
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14692
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14693
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14695
else
 
14696
  lt_cv_prog_compiler_c_o_F77=no
 
14697
   $rm -r conftest 2>/dev/null
 
14698
   mkdir conftest
 
14699
   cd conftest
 
14700
   mkdir out
 
14701
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14702
 
 
14703
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14704
   # Insert the option either (1) after the last *FLAGS variable, or
 
14705
   # (2) before a word containing "conftest.", or (3) at the end.
 
14706
   # Note that $ac_compile itself does not contain backslashes and begins
 
14707
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14708
   lt_compile=`echo "$ac_compile" | $SED \
 
14709
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14710
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14711
   -e 's:$: $lt_compiler_flag:'`
 
14712
   (eval echo "\"\$as_me:14712: $lt_compile\"" >&5)
 
14713
   (eval "$lt_compile" 2>out/conftest.err)
 
14714
   ac_status=$?
 
14715
   cat out/conftest.err >&5
 
14716
   echo "$as_me:14716: \$? = $ac_status" >&5
 
14717
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14718
   then
 
14719
     # The compiler can only warn and ignore the option if not recognized
 
14720
     # So say no if there are warnings
 
14721
     if test ! -s out/conftest.err; then
 
14722
       lt_cv_prog_compiler_c_o_F77=yes
 
14723
     fi
 
14724
   fi
 
14725
   chmod u+w .
 
14726
   $rm conftest*
 
14727
   # SGI C++ compiler will create directory out/ii_files/ for
 
14728
   # template instantiation
 
14729
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14730
   $rm out/* && rmdir out
 
14731
   cd ..
 
14732
   rmdir conftest
 
14733
   $rm conftest*
 
14734
 
 
14735
fi
 
14736
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14737
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14738
 
 
14739
 
 
14740
hard_links="nottested"
 
14741
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14742
  # do not overwrite the value of need_locks provided by the user
 
14743
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14744
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14745
  hard_links=yes
 
14746
  $rm conftest*
 
14747
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14748
  touch conftest.a
 
14749
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14750
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14751
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
14752
echo "${ECHO_T}$hard_links" >&6
 
14753
  if test "$hard_links" = no; then
 
14754
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14755
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14756
    need_locks=warn
 
14757
  fi
 
14758
else
 
14759
  need_locks=no
 
14760
fi
 
14761
 
 
14762
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14763
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14764
 
 
14765
  runpath_var=
 
14766
  allow_undefined_flag_F77=
 
14767
  enable_shared_with_static_runtimes_F77=no
 
14768
  archive_cmds_F77=
 
14769
  archive_expsym_cmds_F77=
 
14770
  old_archive_From_new_cmds_F77=
 
14771
  old_archive_from_expsyms_cmds_F77=
 
14772
  export_dynamic_flag_spec_F77=
 
14773
  whole_archive_flag_spec_F77=
 
14774
  thread_safe_flag_spec_F77=
 
14775
  hardcode_libdir_flag_spec_F77=
 
14776
  hardcode_libdir_flag_spec_ld_F77=
 
14777
  hardcode_libdir_separator_F77=
 
14778
  hardcode_direct_F77=no
 
14779
  hardcode_minus_L_F77=no
 
14780
  hardcode_shlibpath_var_F77=unsupported
 
14781
  link_all_deplibs_F77=unknown
 
14782
  hardcode_automatic_F77=no
 
14783
  module_cmds_F77=
 
14784
  module_expsym_cmds_F77=
 
14785
  always_export_symbols_F77=no
 
14786
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14787
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14788
  # included in the symbol list
 
14789
  include_expsyms_F77=
 
14790
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14791
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14792
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14793
  # as well as any symbol that contains `d'.
 
14794
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14795
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14796
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14797
  # the symbol is explicitly referenced.  Since portable code cannot
 
14798
  # rely on this symbol name, it's probably fine to never include it in
 
14799
  # preloaded symbol tables.
 
14800
  extract_expsyms_cmds=
 
14801
 
 
14802
  case $host_os in
 
14803
  cygwin* | mingw* | pw32*)
 
14804
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14805
    # When not using gcc, we currently assume that we are using
 
14806
    # Microsoft Visual C++.
 
14807
    if test "$GCC" != yes; then
 
14808
      with_gnu_ld=no
 
14809
    fi
 
14810
    ;;
 
14811
  openbsd*)
 
14812
    with_gnu_ld=no
 
14813
    ;;
 
14814
  esac
 
14815
 
 
14816
  ld_shlibs_F77=yes
 
14817
  if test "$with_gnu_ld" = yes; then
 
14818
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14819
    wlarc='${wl}'
 
14820
 
 
14821
    # See if GNU ld supports shared libraries.
 
14822
    case $host_os in
 
14823
    aix3* | aix4* | aix5*)
 
14824
      # On AIX/PPC, the GNU linker is very broken
 
14825
      if test "$host_cpu" != ia64; then
 
14826
        ld_shlibs_F77=no
 
14827
        cat <<EOF 1>&2
 
14828
 
 
14829
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14830
*** to be unable to reliably create shared libraries on AIX.
 
14831
*** Therefore, libtool is disabling shared libraries support.  If you
 
14832
*** really care for shared libraries, you may want to modify your PATH
 
14833
*** so that a non-GNU linker is found, and then restart.
 
14834
 
 
14835
EOF
 
14836
      fi
 
14837
      ;;
 
14838
 
 
14839
    amigaos*)
 
14840
      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)'
 
14841
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14842
      hardcode_minus_L_F77=yes
 
14843
 
 
14844
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14845
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14846
      # to version 4, is to share data among multiple programs linked
 
14847
      # with the same dynamic library.  Since this doesn't match the
 
14848
      # behavior of shared libraries on other platforms, we can't use
 
14849
      # them.
 
14850
      ld_shlibs_F77=no
 
14851
      ;;
 
14852
 
 
14853
    beos*)
 
14854
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14855
        allow_undefined_flag_F77=unsupported
 
14856
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14857
        # support --undefined.  This deserves some investigation.  FIXME
 
14858
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14859
      else
 
14860
        ld_shlibs_F77=no
 
14861
      fi
 
14862
      ;;
 
14863
 
 
14864
    cygwin* | mingw* | pw32*)
 
14865
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14866
      # as there is no search path for DLLs.
 
14867
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14868
      allow_undefined_flag_F77=unsupported
 
14869
      always_export_symbols_F77=no
 
14870
      enable_shared_with_static_runtimes_F77=yes
 
14871
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14872
 
 
14873
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14874
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14875
        # If the export-symbols file already is a .def file (1st line
 
14876
        # is EXPORTS), use it as is; otherwise, prepend...
 
14877
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14878
          cp $export_symbols $output_objdir/$soname.def;
 
14879
        else
 
14880
          echo EXPORTS > $output_objdir/$soname.def;
 
14881
          cat $export_symbols >> $output_objdir/$soname.def;
 
14882
        fi~
 
14883
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14884
      else
 
14885
        ld_shlibs=no
 
14886
      fi
 
14887
      ;;
 
14888
 
 
14889
    netbsd* | knetbsd*-gnu)
 
14890
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14891
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14892
        wlarc=
 
14893
      else
 
14894
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14895
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14896
      fi
 
14897
      ;;
 
14898
 
 
14899
    solaris* | sysv5*)
 
14900
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14901
        ld_shlibs_F77=no
 
14902
        cat <<EOF 1>&2
 
14903
 
 
14904
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14905
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14906
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14907
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14908
*** your PATH or compiler configuration so that the native linker is
 
14909
*** used, and then restart.
 
14910
 
 
14911
EOF
 
14912
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14913
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14914
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14915
      else
 
14916
        ld_shlibs_F77=no
 
14917
      fi
 
14918
      ;;
 
14919
 
 
14920
    sunos4*)
 
14921
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14922
      wlarc=
 
14923
      hardcode_direct_F77=yes
 
14924
      hardcode_shlibpath_var_F77=no
 
14925
      ;;
 
14926
 
 
14927
  linux*)
 
14928
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14929
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14930
        archive_cmds_F77="$tmp_archive_cmds"
 
14931
      supports_anon_versioning=no
 
14932
      case `$LD -v 2>/dev/null` in
 
14933
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14934
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14935
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14936
        *\ 2.11.*) ;; # other 2.11 versions
 
14937
        *) supports_anon_versioning=yes ;;
 
14938
      esac
 
14939
      if test $supports_anon_versioning = yes; then
 
14940
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14941
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14942
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14943
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14944
      else
 
14945
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
14946
      fi
 
14947
      link_all_deplibs_F77=no
 
14948
    else
 
14949
      ld_shlibs_F77=no
 
14950
    fi
 
14951
    ;;
 
14952
 
 
14953
    *)
 
14954
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14955
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14956
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14957
      else
 
14958
        ld_shlibs_F77=no
 
14959
      fi
 
14960
      ;;
 
14961
    esac
 
14962
 
 
14963
    if test "$ld_shlibs_F77" = yes; then
 
14964
      runpath_var=LD_RUN_PATH
 
14965
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14966
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14967
      # ancient GNU ld didn't support --whole-archive et. al.
 
14968
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14969
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14970
      else
 
14971
        whole_archive_flag_spec_F77=
 
14972
      fi
 
14973
    fi
 
14974
  else
 
14975
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14976
    case $host_os in
 
14977
    aix3*)
 
14978
      allow_undefined_flag_F77=unsupported
 
14979
      always_export_symbols_F77=yes
 
14980
      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'
 
14981
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14982
      # are no directories specified by -L.
 
14983
      hardcode_minus_L_F77=yes
 
14984
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14985
        # Neither direct hardcoding nor static linking is supported with a
 
14986
        # broken collect2.
 
14987
        hardcode_direct_F77=unsupported
 
14988
      fi
 
14989
      ;;
 
14990
 
 
14991
    aix4* | aix5*)
 
14992
      if test "$host_cpu" = ia64; then
 
14993
        # On IA64, the linker does run time linking by default, so we don't
 
14994
        # have to do anything special.
 
14995
        aix_use_runtimelinking=no
 
14996
        exp_sym_flag='-Bexport'
 
14997
        no_entry_flag=""
 
14998
      else
 
14999
        # If we're using GNU nm, then we don't want the "-C" option.
 
15000
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15001
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15002
          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'
 
15003
        else
 
15004
          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'
 
15005
        fi
 
15006
        aix_use_runtimelinking=no
 
15007
 
 
15008
        # Test if we are trying to use run time linking or normal
 
15009
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15010
        # need to do runtime linking.
 
15011
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15012
          for ld_flag in $LDFLAGS; do
 
15013
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15014
            aix_use_runtimelinking=yes
 
15015
            break
 
15016
          fi
 
15017
          done
 
15018
        esac
 
15019
 
 
15020
        exp_sym_flag='-bexport'
 
15021
        no_entry_flag='-bnoentry'
 
15022
      fi
 
15023
 
 
15024
      # When large executables or shared objects are built, AIX ld can
 
15025
      # have problems creating the table of contents.  If linking a library
 
15026
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15027
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15028
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15029
 
 
15030
      archive_cmds_F77=''
 
15031
      hardcode_direct_F77=yes
 
15032
      hardcode_libdir_separator_F77=':'
 
15033
      link_all_deplibs_F77=yes
 
15034
 
 
15035
      if test "$GCC" = yes; then
 
15036
        case $host_os in aix4.012|aix4.012.*)
 
15037
        # We only want to do this on AIX 4.2 and lower, the check
 
15038
        # below for broken collect2 doesn't work under 4.3+
 
15039
          collect2name=`${CC} -print-prog-name=collect2`
 
15040
          if test -f "$collect2name" && \
 
15041
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15042
          then
 
15043
          # We have reworked collect2
 
15044
          hardcode_direct_F77=yes
 
15045
          else
 
15046
          # We have old collect2
 
15047
          hardcode_direct_F77=unsupported
 
15048
          # It fails to find uninstalled libraries when the uninstalled
 
15049
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15050
          # to unsupported forces relinking
 
15051
          hardcode_minus_L_F77=yes
 
15052
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15053
          hardcode_libdir_separator_F77=
 
15054
          fi
 
15055
        esac
 
15056
        shared_flag='-shared'
 
15057
      else
 
15058
        # not using gcc
 
15059
        if test "$host_cpu" = ia64; then
 
15060
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15061
        # chokes on -Wl,-G. The following line is correct:
 
15062
          shared_flag='-G'
 
15063
        else
 
15064
        if test "$aix_use_runtimelinking" = yes; then
 
15065
            shared_flag='${wl}-G'
 
15066
          else
 
15067
            shared_flag='${wl}-bM:SRE'
 
15068
        fi
 
15069
        fi
 
15070
      fi
 
15071
 
 
15072
      # It seems that -bexpall does not export symbols beginning with
 
15073
      # underscore (_), so it is better to generate a list of symbols to export.
 
15074
      always_export_symbols_F77=yes
 
15075
      if test "$aix_use_runtimelinking" = yes; then
 
15076
        # Warning - without using the other runtime loading flags (-brtl),
 
15077
        # -berok will link without error, but may produce a broken library.
 
15078
        allow_undefined_flag_F77='-berok'
 
15079
       # Determine the default libpath from the value encoded in an empty executable.
 
15080
       cat >conftest.$ac_ext <<_ACEOF
 
15081
      program main
 
15082
 
 
15083
      end
 
15084
_ACEOF
 
15085
rm -f conftest.$ac_objext conftest$ac_exeext
 
15086
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15087
  (eval $ac_link) 2>conftest.er1
 
15088
  ac_status=$?
 
15089
  grep -v '^ *+' conftest.er1 >conftest.err
 
15090
  rm -f conftest.er1
 
15091
  cat conftest.err >&5
 
15092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15093
  (exit $ac_status); } &&
 
15094
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
15095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15096
  (eval $ac_try) 2>&5
 
15097
  ac_status=$?
 
15098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15099
  (exit $ac_status); }; } &&
 
15100
         { ac_try='test -s conftest$ac_exeext'
 
15101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15102
  (eval $ac_try) 2>&5
 
15103
  ac_status=$?
 
15104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15105
  (exit $ac_status); }; }; then
 
15106
 
 
15107
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15108
}'`
 
15109
# Check for a 64-bit object if we didn't find anything.
 
15110
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; }
 
15111
}'`; fi
 
15112
else
 
15113
  echo "$as_me: failed program was:" >&5
 
15114
sed 's/^/| /' conftest.$ac_ext >&5
 
15115
 
 
15116
fi
 
15117
rm -f conftest.err conftest.$ac_objext \
 
15118
      conftest$ac_exeext conftest.$ac_ext
 
15119
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15120
 
 
15121
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15122
        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"
 
15123
       else
 
15124
        if test "$host_cpu" = ia64; then
 
15125
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15126
          allow_undefined_flag_F77="-z nodefs"
 
15127
          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"
 
15128
        else
 
15129
         # Determine the default libpath from the value encoded in an empty executable.
 
15130
         cat >conftest.$ac_ext <<_ACEOF
 
15131
      program main
 
15132
 
 
15133
      end
 
15134
_ACEOF
 
15135
rm -f conftest.$ac_objext conftest$ac_exeext
 
15136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15137
  (eval $ac_link) 2>conftest.er1
 
15138
  ac_status=$?
 
15139
  grep -v '^ *+' conftest.er1 >conftest.err
 
15140
  rm -f conftest.er1
 
15141
  cat conftest.err >&5
 
15142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15143
  (exit $ac_status); } &&
 
15144
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
15145
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15146
  (eval $ac_try) 2>&5
 
15147
  ac_status=$?
 
15148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15149
  (exit $ac_status); }; } &&
 
15150
         { ac_try='test -s conftest$ac_exeext'
 
15151
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15152
  (eval $ac_try) 2>&5
 
15153
  ac_status=$?
 
15154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15155
  (exit $ac_status); }; }; then
 
15156
 
 
15157
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15158
}'`
 
15159
# Check for a 64-bit object if we didn't find anything.
 
15160
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; }
 
15161
}'`; fi
 
15162
else
 
15163
  echo "$as_me: failed program was:" >&5
 
15164
sed 's/^/| /' conftest.$ac_ext >&5
 
15165
 
 
15166
fi
 
15167
rm -f conftest.err conftest.$ac_objext \
 
15168
      conftest$ac_exeext conftest.$ac_ext
 
15169
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15170
 
 
15171
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15172
          # Warning - without using the other run time loading flags,
 
15173
          # -berok will link without error, but may produce a broken library.
 
15174
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15175
          allow_undefined_flag_F77=' ${wl}-berok'
 
15176
          # -bexpall does not export symbols beginning with underscore (_)
 
15177
          always_export_symbols_F77=yes
 
15178
          # Exported symbols can be pulled into shared objects from archives
 
15179
          whole_archive_flag_spec_F77=' '
 
15180
          archive_cmds_need_lc_F77=yes
 
15181
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15182
          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'
 
15183
        fi
 
15184
      fi
 
15185
      ;;
 
15186
 
 
15187
    amigaos*)
 
15188
      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)'
 
15189
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15190
      hardcode_minus_L_F77=yes
 
15191
      # see comment about different semantics on the GNU ld section
 
15192
      ld_shlibs_F77=no
 
15193
      ;;
 
15194
 
 
15195
    bsdi4*)
 
15196
      export_dynamic_flag_spec_F77=-rdynamic
 
15197
      ;;
 
15198
 
 
15199
    cygwin* | mingw* | pw32*)
 
15200
      # When not using gcc, we currently assume that we are using
 
15201
      # Microsoft Visual C++.
 
15202
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15203
      # no search path for DLLs.
 
15204
      hardcode_libdir_flag_spec_F77=' '
 
15205
      allow_undefined_flag_F77=unsupported
 
15206
      # Tell ltmain to make .lib files, not .a files.
 
15207
      libext=lib
 
15208
      # Tell ltmain to make .dll files, not .so files.
 
15209
      shrext_cmds=".dll"
 
15210
      # FIXME: Setting linknames here is a bad hack.
 
15211
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15212
      # The linker will automatically build a .lib file if we build a DLL.
 
15213
      old_archive_From_new_cmds_F77='true'
 
15214
      # FIXME: Should let the user specify the lib program.
 
15215
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15216
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15217
      enable_shared_with_static_runtimes_F77=yes
 
15218
      ;;
 
15219
 
 
15220
    darwin* | rhapsody*)
 
15221
    if test "$GXX" = yes ; then
 
15222
      archive_cmds_need_lc_F77=no
 
15223
      case "$host_os" in
 
15224
      rhapsody* | darwin1.[012])
 
15225
        allow_undefined_flag_F77='-undefined suppress'
 
15226
        ;;
 
15227
      *) # Darwin 1.3 on
 
15228
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15229
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
15230
      else
 
15231
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
15232
          10.[012])
 
15233
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
15234
            ;;
 
15235
          10.*)
 
15236
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
15237
            ;;
 
15238
        esac
 
15239
      fi
 
15240
        ;;
 
15241
      esac
 
15242
        lt_int_apple_cc_single_mod=no
 
15243
        output_verbose_link_cmd='echo'
 
15244
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
15245
          lt_int_apple_cc_single_mod=yes
 
15246
        fi
 
15247
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15248
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15249
        else
 
15250
        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'
 
15251
      fi
 
15252
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15253
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15254
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15255
          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}'
 
15256
        else
 
15257
          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}'
 
15258
        fi
 
15259
          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}'
 
15260
      hardcode_direct_F77=no
 
15261
      hardcode_automatic_F77=yes
 
15262
      hardcode_shlibpath_var_F77=unsupported
 
15263
      whole_archive_flag_spec_F77='-all_load $convenience'
 
15264
      link_all_deplibs_F77=yes
 
15265
    else
 
15266
      ld_shlibs_F77=no
 
15267
    fi
 
15268
      ;;
 
15269
 
 
15270
    dgux*)
 
15271
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15272
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15273
      hardcode_shlibpath_var_F77=no
 
15274
      ;;
 
15275
 
 
15276
    freebsd1*)
 
15277
      ld_shlibs_F77=no
 
15278
      ;;
 
15279
 
 
15280
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15281
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15282
    # does not break anything, and helps significantly (at the cost of a little
 
15283
    # extra space).
 
15284
    freebsd2.2*)
 
15285
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15286
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15287
      hardcode_direct_F77=yes
 
15288
      hardcode_shlibpath_var_F77=no
 
15289
      ;;
 
15290
 
 
15291
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15292
    freebsd2*)
 
15293
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15294
      hardcode_direct_F77=yes
 
15295
      hardcode_minus_L_F77=yes
 
15296
      hardcode_shlibpath_var_F77=no
 
15297
      ;;
 
15298
 
 
15299
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15300
    freebsd* | kfreebsd*-gnu)
 
15301
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15302
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15303
      hardcode_direct_F77=yes
 
15304
      hardcode_shlibpath_var_F77=no
 
15305
      ;;
 
15306
 
 
15307
    hpux9*)
 
15308
      if test "$GCC" = yes; then
 
15309
        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'
 
15310
      else
 
15311
        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'
 
15312
      fi
 
15313
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15314
      hardcode_libdir_separator_F77=:
 
15315
      hardcode_direct_F77=yes
 
15316
 
 
15317
      # hardcode_minus_L: Not really in the search PATH,
 
15318
      # but as the default location of the library.
 
15319
      hardcode_minus_L_F77=yes
 
15320
      export_dynamic_flag_spec_F77='${wl}-E'
 
15321
      ;;
 
15322
 
 
15323
    hpux10* | hpux11*)
 
15324
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15325
        case "$host_cpu" in
 
15326
        hppa*64*|ia64*)
 
15327
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15328
          ;;
 
15329
        *)
 
15330
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15331
          ;;
 
15332
        esac
 
15333
      else
 
15334
        case "$host_cpu" in
 
15335
        hppa*64*|ia64*)
 
15336
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15337
          ;;
 
15338
        *)
 
15339
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15340
          ;;
 
15341
        esac
 
15342
      fi
 
15343
      if test "$with_gnu_ld" = no; then
 
15344
        case "$host_cpu" in
 
15345
        hppa*64*)
 
15346
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15347
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15348
          hardcode_libdir_separator_F77=:
 
15349
          hardcode_direct_F77=no
 
15350
          hardcode_shlibpath_var_F77=no
 
15351
          ;;
 
15352
        ia64*)
 
15353
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15354
          hardcode_direct_F77=no
 
15355
          hardcode_shlibpath_var_F77=no
 
15356
 
 
15357
          # hardcode_minus_L: Not really in the search PATH,
 
15358
          # but as the default location of the library.
 
15359
          hardcode_minus_L_F77=yes
 
15360
          ;;
 
15361
        *)
 
15362
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15363
          hardcode_libdir_separator_F77=:
 
15364
          hardcode_direct_F77=yes
 
15365
          export_dynamic_flag_spec_F77='${wl}-E'
 
15366
 
 
15367
          # hardcode_minus_L: Not really in the search PATH,
 
15368
          # but as the default location of the library.
 
15369
          hardcode_minus_L_F77=yes
 
15370
          ;;
 
15371
        esac
 
15372
      fi
 
15373
      ;;
 
15374
 
 
15375
    irix5* | irix6* | nonstopux*)
 
15376
      if test "$GCC" = yes; then
 
15377
        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'
 
15378
      else
 
15379
        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'
 
15380
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15381
      fi
 
15382
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15383
      hardcode_libdir_separator_F77=:
 
15384
      link_all_deplibs_F77=yes
 
15385
      ;;
 
15386
 
 
15387
    netbsd* | knetbsd*-gnu)
 
15388
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15389
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15390
      else
 
15391
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15392
      fi
 
15393
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15394
      hardcode_direct_F77=yes
 
15395
      hardcode_shlibpath_var_F77=no
 
15396
      ;;
 
15397
 
 
15398
    newsos6)
 
15399
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15400
      hardcode_direct_F77=yes
 
15401
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15402
      hardcode_libdir_separator_F77=:
 
15403
      hardcode_shlibpath_var_F77=no
 
15404
      ;;
 
15405
 
 
15406
    openbsd*)
 
15407
      hardcode_direct_F77=yes
 
15408
      hardcode_shlibpath_var_F77=no
 
15409
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15410
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15411
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15412
        export_dynamic_flag_spec_F77='${wl}-E'
 
15413
      else
 
15414
       case $host_os in
 
15415
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15416
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15417
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
15418
           ;;
 
15419
         *)
 
15420
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15421
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15422
           ;;
 
15423
       esac
 
15424
      fi
 
15425
      ;;
 
15426
 
 
15427
    os2*)
 
15428
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15429
      hardcode_minus_L_F77=yes
 
15430
      allow_undefined_flag_F77=unsupported
 
15431
      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'
 
15432
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15433
      ;;
 
15434
 
 
15435
    osf3*)
 
15436
      if test "$GCC" = yes; then
 
15437
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15438
        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'
 
15439
      else
 
15440
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15441
        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'
 
15442
      fi
 
15443
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15444
      hardcode_libdir_separator_F77=:
 
15445
      ;;
 
15446
 
 
15447
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15448
      if test "$GCC" = yes; then
 
15449
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15450
        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'
 
15451
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15452
      else
 
15453
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15454
        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'
 
15455
        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~
 
15456
        $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'
 
15457
 
 
15458
        # Both c and cxx compiler support -rpath directly
 
15459
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15460
      fi
 
15461
      hardcode_libdir_separator_F77=:
 
15462
      ;;
 
15463
 
 
15464
    sco3.2v5*)
 
15465
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15466
      hardcode_shlibpath_var_F77=no
 
15467
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15468
      runpath_var=LD_RUN_PATH
 
15469
      hardcode_runpath_var=yes
 
15470
      ;;
 
15471
 
 
15472
    solaris*)
 
15473
      no_undefined_flag_F77=' -z text'
 
15474
      if test "$GCC" = yes; then
 
15475
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15476
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15477
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15478
      else
 
15479
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15480
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15481
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15482
      fi
 
15483
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15484
      hardcode_shlibpath_var_F77=no
 
15485
      case $host_os in
 
15486
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15487
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15488
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15489
      esac
 
15490
      link_all_deplibs_F77=yes
 
15491
      ;;
 
15492
 
 
15493
    sunos4*)
 
15494
      if test "x$host_vendor" = xsequent; then
 
15495
        # Use $CC to link under sequent, because it throws in some extra .o
 
15496
        # files that make .init and .fini sections work.
 
15497
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15498
      else
 
15499
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15500
      fi
 
15501
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15502
      hardcode_direct_F77=yes
 
15503
      hardcode_minus_L_F77=yes
 
15504
      hardcode_shlibpath_var_F77=no
 
15505
      ;;
 
15506
 
 
15507
    sysv4)
 
15508
      case $host_vendor in
 
15509
        sni)
 
15510
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15511
          hardcode_direct_F77=yes # is this really true???
 
15512
        ;;
 
15513
        siemens)
 
15514
          ## LD is ld it makes a PLAMLIB
 
15515
          ## CC just makes a GrossModule.
 
15516
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15517
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15518
          hardcode_direct_F77=no
 
15519
        ;;
 
15520
        motorola)
 
15521
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15522
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15523
        ;;
 
15524
      esac
 
15525
      runpath_var='LD_RUN_PATH'
 
15526
      hardcode_shlibpath_var_F77=no
 
15527
      ;;
 
15528
 
 
15529
    sysv4.3*)
 
15530
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15531
      hardcode_shlibpath_var_F77=no
 
15532
      export_dynamic_flag_spec_F77='-Bexport'
 
15533
      ;;
 
15534
 
 
15535
    sysv4*MP*)
 
15536
      if test -d /usr/nec; then
 
15537
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15538
        hardcode_shlibpath_var_F77=no
 
15539
        runpath_var=LD_RUN_PATH
 
15540
        hardcode_runpath_var=yes
 
15541
        ld_shlibs_F77=yes
 
15542
      fi
 
15543
      ;;
 
15544
 
 
15545
    sysv4.2uw2*)
 
15546
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15547
      hardcode_direct_F77=yes
 
15548
      hardcode_minus_L_F77=no
 
15549
      hardcode_shlibpath_var_F77=no
 
15550
      hardcode_runpath_var=yes
 
15551
      runpath_var=LD_RUN_PATH
 
15552
      ;;
 
15553
 
 
15554
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
15555
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
15556
      if test "$GCC" = yes; then
 
15557
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15558
      else
 
15559
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15560
      fi
 
15561
      runpath_var='LD_RUN_PATH'
 
15562
      hardcode_shlibpath_var_F77=no
 
15563
      ;;
 
15564
 
 
15565
    sysv5*)
 
15566
      no_undefined_flag_F77=' -z text'
 
15567
      # $CC -shared without GNU ld will not create a library from C++
 
15568
      # object files and a static libstdc++, better avoid it by now
 
15569
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15570
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15571
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15572
      hardcode_libdir_flag_spec_F77=
 
15573
      hardcode_shlibpath_var_F77=no
 
15574
      runpath_var='LD_RUN_PATH'
 
15575
      ;;
 
15576
 
 
15577
    uts4*)
 
15578
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15579
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15580
      hardcode_shlibpath_var_F77=no
 
15581
      ;;
 
15582
 
 
15583
    *)
 
15584
      ld_shlibs_F77=no
 
15585
      ;;
 
15586
    esac
 
15587
  fi
 
15588
 
 
15589
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15590
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15591
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15592
 
 
15593
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15594
if test "$GCC" = yes; then
 
15595
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15596
fi
 
15597
 
 
15598
#
 
15599
# Do we need to explicitly link libc?
 
15600
#
 
15601
case "x$archive_cmds_need_lc_F77" in
 
15602
x|xyes)
 
15603
  # Assume -lc should be added
 
15604
  archive_cmds_need_lc_F77=yes
 
15605
 
 
15606
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15607
    case $archive_cmds_F77 in
 
15608
    *'~'*)
 
15609
      # FIXME: we may have to deal with multi-command sequences.
 
15610
      ;;
 
15611
    '$CC '*)
 
15612
      # Test whether the compiler implicitly links with -lc since on some
 
15613
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15614
      # to ld, don't add -lc before -lgcc.
 
15615
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15616
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15617
      $rm conftest*
 
15618
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15619
 
 
15620
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15621
  (eval $ac_compile) 2>&5
 
15622
  ac_status=$?
 
15623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15624
  (exit $ac_status); } 2>conftest.err; then
 
15625
        soname=conftest
 
15626
        lib=conftest
 
15627
        libobjs=conftest.$ac_objext
 
15628
        deplibs=
 
15629
        wl=$lt_prog_compiler_wl_F77
 
15630
        compiler_flags=-v
 
15631
        linker_flags=-v
 
15632
        verstring=
 
15633
        output_objdir=.
 
15634
        libname=conftest
 
15635
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15636
        allow_undefined_flag_F77=
 
15637
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15638
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15639
  ac_status=$?
 
15640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15641
  (exit $ac_status); }
 
15642
        then
 
15643
          archive_cmds_need_lc_F77=no
 
15644
        else
 
15645
          archive_cmds_need_lc_F77=yes
 
15646
        fi
 
15647
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15648
      else
 
15649
        cat conftest.err 1>&5
 
15650
      fi
 
15651
      $rm conftest*
 
15652
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15653
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15654
      ;;
 
15655
    esac
 
15656
  fi
 
15657
  ;;
 
15658
esac
 
15659
 
 
15660
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15661
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15662
library_names_spec=
 
15663
libname_spec='lib$name'
 
15664
soname_spec=
 
15665
shrext_cmds=".so"
 
15666
postinstall_cmds=
 
15667
postuninstall_cmds=
 
15668
finish_cmds=
 
15669
finish_eval=
 
15670
shlibpath_var=
 
15671
shlibpath_overrides_runpath=unknown
 
15672
version_type=none
 
15673
dynamic_linker="$host_os ld.so"
 
15674
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15675
if test "$GCC" = yes; then
 
15676
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15677
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15678
    # if the path contains ";" then we assume it to be the separator
 
15679
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15680
    # assumed that no part of a normal pathname contains ";" but that should
 
15681
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15682
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15683
  else
 
15684
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15685
  fi
 
15686
else
 
15687
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15688
fi
 
15689
need_lib_prefix=unknown
 
15690
hardcode_into_libs=no
 
15691
 
 
15692
# when you set need_version to no, make sure it does not cause -set_version
 
15693
# flags to be left without arguments
 
15694
need_version=unknown
 
15695
 
 
15696
case $host_os in
 
15697
aix3*)
 
15698
  version_type=linux
 
15699
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15700
  shlibpath_var=LIBPATH
 
15701
 
 
15702
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15703
  soname_spec='${libname}${release}${shared_ext}$major'
 
15704
  ;;
 
15705
 
 
15706
aix4* | aix5*)
 
15707
  version_type=linux
 
15708
  need_lib_prefix=no
 
15709
  need_version=no
 
15710
  hardcode_into_libs=yes
 
15711
  if test "$host_cpu" = ia64; then
 
15712
    # AIX 5 supports IA64
 
15713
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15714
    shlibpath_var=LD_LIBRARY_PATH
 
15715
  else
 
15716
    # With GCC up to 2.95.x, collect2 would create an import file
 
15717
    # for dependence libraries.  The import file would start with
 
15718
    # the line `#! .'.  This would cause the generated library to
 
15719
    # depend on `.', always an invalid library.  This was fixed in
 
15720
    # development snapshots of GCC prior to 3.0.
 
15721
    case $host_os in
 
15722
      aix4 | aix4.[01] | aix4.[01].*)
 
15723
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15724
           echo ' yes '
 
15725
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15726
        :
 
15727
      else
 
15728
        can_build_shared=no
 
15729
      fi
 
15730
      ;;
 
15731
    esac
 
15732
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15733
    # soname into executable. Probably we can add versioning support to
 
15734
    # collect2, so additional links can be useful in future.
 
15735
    if test "$aix_use_runtimelinking" = yes; then
 
15736
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15737
      # instead of lib<name>.a to let people know that these are not
 
15738
      # typical AIX shared libraries.
 
15739
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15740
    else
 
15741
      # We preserve .a as extension for shared libraries through AIX4.2
 
15742
      # and later when we are not doing run time linking.
 
15743
      library_names_spec='${libname}${release}.a $libname.a'
 
15744
      soname_spec='${libname}${release}${shared_ext}$major'
 
15745
    fi
 
15746
    shlibpath_var=LIBPATH
 
15747
  fi
 
15748
  ;;
 
15749
 
 
15750
amigaos*)
 
15751
  library_names_spec='$libname.ixlibrary $libname.a'
 
15752
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15753
  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'
 
15754
  ;;
 
15755
 
 
15756
beos*)
 
15757
  library_names_spec='${libname}${shared_ext}'
 
15758
  dynamic_linker="$host_os ld.so"
 
15759
  shlibpath_var=LIBRARY_PATH
 
15760
  ;;
 
15761
 
 
15762
bsdi4*)
 
15763
  version_type=linux
 
15764
  need_version=no
 
15765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15766
  soname_spec='${libname}${release}${shared_ext}$major'
 
15767
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15768
  shlibpath_var=LD_LIBRARY_PATH
 
15769
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15770
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15771
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15772
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15773
  # libtool to hard-code these into programs
 
15774
  ;;
 
15775
 
 
15776
cygwin* | mingw* | pw32*)
 
15777
  version_type=windows
 
15778
  shrext_cmds=".dll"
 
15779
  need_version=no
 
15780
  need_lib_prefix=no
 
15781
 
 
15782
  case $GCC,$host_os in
 
15783
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15784
    library_names_spec='$libname.dll.a'
 
15785
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15786
    postinstall_cmds='base_file=`basename \${file}`~
 
15787
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15788
      dldir=$destdir/`dirname \$dlpath`~
 
15789
      test -d \$dldir || mkdir -p \$dldir~
 
15790
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15791
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15792
      dlpath=$dir/\$dldll~
 
15793
       $rm \$dlpath'
 
15794
    shlibpath_overrides_runpath=yes
 
15795
 
 
15796
    case $host_os in
 
15797
    cygwin*)
 
15798
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15799
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15800
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15801
      ;;
 
15802
    mingw*)
 
15803
      # MinGW DLLs use traditional 'lib' prefix
 
15804
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15805
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15806
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15807
        # It is most probably a Windows format PATH printed by
 
15808
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15809
        # path with ; separators, and with drive letters. We can handle the
 
15810
        # drive letters (cygwin fileutils understands them), so leave them,
 
15811
        # especially as we might pass files found there to a mingw objdump,
 
15812
        # which wouldn't understand a cygwinified path. Ahh.
 
15813
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15814
      else
 
15815
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15816
      fi
 
15817
      ;;
 
15818
    pw32*)
 
15819
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15820
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15821
      ;;
 
15822
    esac
 
15823
    ;;
 
15824
 
 
15825
  *)
 
15826
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15827
    ;;
 
15828
  esac
 
15829
  dynamic_linker='Win32 ld.exe'
 
15830
  # FIXME: first we should search . and the directory the executable is in
 
15831
  shlibpath_var=PATH
 
15832
  ;;
 
15833
 
 
15834
darwin* | rhapsody*)
 
15835
  dynamic_linker="$host_os dyld"
 
15836
  version_type=darwin
 
15837
  need_lib_prefix=no
 
15838
  need_version=no
 
15839
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15840
  soname_spec='${libname}${release}${major}$shared_ext'
 
15841
  shlibpath_overrides_runpath=yes
 
15842
  shlibpath_var=DYLD_LIBRARY_PATH
 
15843
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
15844
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15845
  if test "$GCC" = yes; then
 
15846
    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"`
 
15847
  else
 
15848
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15849
  fi
 
15850
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15851
  ;;
 
15852
 
 
15853
dgux*)
 
15854
  version_type=linux
 
15855
  need_lib_prefix=no
 
15856
  need_version=no
 
15857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15858
  soname_spec='${libname}${release}${shared_ext}$major'
 
15859
  shlibpath_var=LD_LIBRARY_PATH
 
15860
  ;;
 
15861
 
 
15862
freebsd1*)
 
15863
  dynamic_linker=no
 
15864
  ;;
 
15865
 
 
15866
kfreebsd*-gnu)
 
15867
  version_type=linux
 
15868
  need_lib_prefix=no
 
15869
  need_version=no
 
15870
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15871
  soname_spec='${libname}${release}${shared_ext}$major'
 
15872
  shlibpath_var=LD_LIBRARY_PATH
 
15873
  shlibpath_overrides_runpath=no
 
15874
  hardcode_into_libs=yes
 
15875
  dynamic_linker='GNU ld.so'
 
15876
  ;;
 
15877
 
 
15878
freebsd*)
 
15879
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15880
  version_type=freebsd-$objformat
 
15881
  case $version_type in
 
15882
    freebsd-elf*)
 
15883
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15884
      need_version=no
 
15885
      need_lib_prefix=no
 
15886
      ;;
 
15887
    freebsd-*)
 
15888
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15889
      need_version=yes
 
15890
      ;;
 
15891
  esac
 
15892
  shlibpath_var=LD_LIBRARY_PATH
 
15893
  case $host_os in
 
15894
  freebsd2*)
 
15895
    shlibpath_overrides_runpath=yes
 
15896
    ;;
 
15897
  freebsd3.01* | freebsdelf3.01*)
 
15898
    shlibpath_overrides_runpath=yes
 
15899
    hardcode_into_libs=yes
 
15900
    ;;
 
15901
  *) # from 3.2 on
 
15902
    shlibpath_overrides_runpath=no
 
15903
    hardcode_into_libs=yes
 
15904
    ;;
 
15905
  esac
 
15906
  ;;
 
15907
 
 
15908
gnu*)
 
15909
  version_type=linux
 
15910
  need_lib_prefix=no
 
15911
  need_version=no
 
15912
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15913
  soname_spec='${libname}${release}${shared_ext}$major'
 
15914
  shlibpath_var=LD_LIBRARY_PATH
 
15915
  hardcode_into_libs=yes
 
15916
  ;;
 
15917
 
 
15918
hpux9* | hpux10* | hpux11*)
 
15919
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15920
  # link against other versions.
 
15921
  version_type=sunos
 
15922
  need_lib_prefix=no
 
15923
  need_version=no
 
15924
  case "$host_cpu" in
 
15925
  ia64*)
 
15926
    shrext_cmds='.so'
 
15927
    hardcode_into_libs=yes
 
15928
    dynamic_linker="$host_os dld.so"
 
15929
    shlibpath_var=LD_LIBRARY_PATH
 
15930
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15931
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15932
    soname_spec='${libname}${release}${shared_ext}$major'
 
15933
    if test "X$HPUX_IA64_MODE" = X32; then
 
15934
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15935
    else
 
15936
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15937
    fi
 
15938
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15939
    ;;
 
15940
   hppa*64*)
 
15941
     shrext_cmds='.sl'
 
15942
     hardcode_into_libs=yes
 
15943
     dynamic_linker="$host_os dld.sl"
 
15944
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15945
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15946
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15947
     soname_spec='${libname}${release}${shared_ext}$major'
 
15948
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15949
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15950
     ;;
 
15951
   *)
 
15952
    shrext_cmds='.sl'
 
15953
    dynamic_linker="$host_os dld.sl"
 
15954
    shlibpath_var=SHLIB_PATH
 
15955
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15956
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15957
    soname_spec='${libname}${release}${shared_ext}$major'
 
15958
    ;;
 
15959
  esac
 
15960
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15961
  postinstall_cmds='chmod 555 $lib'
 
15962
  ;;
 
15963
 
 
15964
irix5* | irix6* | nonstopux*)
 
15965
  case $host_os in
 
15966
    nonstopux*) version_type=nonstopux ;;
 
15967
    *)
 
15968
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15969
                version_type=linux
 
15970
        else
 
15971
                version_type=irix
 
15972
        fi ;;
 
15973
  esac
 
15974
  need_lib_prefix=no
 
15975
  need_version=no
 
15976
  soname_spec='${libname}${release}${shared_ext}$major'
 
15977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15978
  case $host_os in
 
15979
  irix5* | nonstopux*)
 
15980
    libsuff= shlibsuff=
 
15981
    ;;
 
15982
  *)
 
15983
    case $LD in # libtool.m4 will add one of these switches to LD
 
15984
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15985
      libsuff= shlibsuff= libmagic=32-bit;;
 
15986
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15987
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15988
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15989
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15990
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15991
    esac
 
15992
    ;;
 
15993
  esac
 
15994
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15995
  shlibpath_overrides_runpath=no
 
15996
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15997
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15998
  hardcode_into_libs=yes
 
15999
  ;;
 
16000
 
 
16001
# No shared lib support for Linux oldld, aout, or coff.
 
16002
linux*oldld* | linux*aout* | linux*coff*)
 
16003
  dynamic_linker=no
 
16004
  ;;
 
16005
 
 
16006
# This must be Linux ELF.
 
16007
linux*)
 
16008
  version_type=linux
 
16009
  need_lib_prefix=no
 
16010
  need_version=no
 
16011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16012
  soname_spec='${libname}${release}${shared_ext}$major'
 
16013
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16014
  shlibpath_var=LD_LIBRARY_PATH
 
16015
  shlibpath_overrides_runpath=no
 
16016
  # This implies no fast_install, which is unacceptable.
 
16017
  # Some rework will be needed to allow for fast_install
 
16018
  # before this can be enabled.
 
16019
  hardcode_into_libs=yes
 
16020
 
 
16021
  # Append ld.so.conf contents to the search path
 
16022
  if test -f /etc/ld.so.conf; then
 
16023
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
16024
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16025
  fi
 
16026
 
 
16027
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16028
  # powerpc, because MkLinux only supported shared libraries with the
 
16029
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16030
  # most powerpc-linux boxes support dynamic linking these days and
 
16031
  # people can always --disable-shared, the test was removed, and we
 
16032
  # assume the GNU/Linux dynamic linker is in use.
 
16033
  dynamic_linker='GNU/Linux ld.so'
 
16034
  ;;
 
16035
 
 
16036
knetbsd*-gnu)
 
16037
  version_type=linux
 
16038
  need_lib_prefix=no
 
16039
  need_version=no
 
16040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16041
  soname_spec='${libname}${release}${shared_ext}$major'
 
16042
  shlibpath_var=LD_LIBRARY_PATH
 
16043
  shlibpath_overrides_runpath=no
 
16044
  hardcode_into_libs=yes
 
16045
  dynamic_linker='GNU ld.so'
 
16046
  ;;
 
16047
 
 
16048
netbsd*)
 
16049
  version_type=sunos
 
16050
  need_lib_prefix=no
 
16051
  need_version=no
 
16052
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16053
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16054
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16055
    dynamic_linker='NetBSD (a.out) ld.so'
 
16056
  else
 
16057
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16058
    soname_spec='${libname}${release}${shared_ext}$major'
 
16059
    dynamic_linker='NetBSD ld.elf_so'
 
16060
  fi
 
16061
  shlibpath_var=LD_LIBRARY_PATH
 
16062
  shlibpath_overrides_runpath=yes
 
16063
  hardcode_into_libs=yes
 
16064
  ;;
 
16065
 
 
16066
newsos6)
 
16067
  version_type=linux
 
16068
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16069
  shlibpath_var=LD_LIBRARY_PATH
 
16070
  shlibpath_overrides_runpath=yes
 
16071
  ;;
 
16072
 
 
16073
nto-qnx*)
 
16074
  version_type=linux
 
16075
  need_lib_prefix=no
 
16076
  need_version=no
 
16077
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16078
  soname_spec='${libname}${release}${shared_ext}$major'
 
16079
  shlibpath_var=LD_LIBRARY_PATH
 
16080
  shlibpath_overrides_runpath=yes
 
16081
  ;;
 
16082
 
 
16083
openbsd*)
 
16084
  version_type=sunos
 
16085
  need_lib_prefix=no
 
16086
  need_version=yes
 
16087
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16088
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16089
  shlibpath_var=LD_LIBRARY_PATH
 
16090
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16091
    case $host_os in
 
16092
      openbsd2.[89] | openbsd2.[89].*)
 
16093
        shlibpath_overrides_runpath=no
 
16094
        ;;
 
16095
      *)
 
16096
        shlibpath_overrides_runpath=yes
 
16097
        ;;
 
16098
      esac
 
16099
  else
 
16100
    shlibpath_overrides_runpath=yes
 
16101
  fi
 
16102
  ;;
 
16103
 
 
16104
os2*)
 
16105
  libname_spec='$name'
 
16106
  shrext_cmds=".dll"
 
16107
  need_lib_prefix=no
 
16108
  library_names_spec='$libname${shared_ext} $libname.a'
 
16109
  dynamic_linker='OS/2 ld.exe'
 
16110
  shlibpath_var=LIBPATH
 
16111
  ;;
 
16112
 
 
16113
osf3* | osf4* | osf5*)
 
16114
  version_type=osf
 
16115
  need_lib_prefix=no
 
16116
  need_version=no
 
16117
  soname_spec='${libname}${release}${shared_ext}$major'
 
16118
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16119
  shlibpath_var=LD_LIBRARY_PATH
 
16120
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16121
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16122
  ;;
 
16123
 
 
16124
sco3.2v5*)
 
16125
  version_type=osf
 
16126
  soname_spec='${libname}${release}${shared_ext}$major'
 
16127
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16128
  shlibpath_var=LD_LIBRARY_PATH
 
16129
  ;;
 
16130
 
 
16131
solaris*)
 
16132
  version_type=linux
 
16133
  need_lib_prefix=no
 
16134
  need_version=no
 
16135
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16136
  soname_spec='${libname}${release}${shared_ext}$major'
 
16137
  shlibpath_var=LD_LIBRARY_PATH
 
16138
  shlibpath_overrides_runpath=yes
 
16139
  hardcode_into_libs=yes
 
16140
  # ldd complains unless libraries are executable
 
16141
  postinstall_cmds='chmod +x $lib'
 
16142
  ;;
 
16143
 
 
16144
sunos4*)
 
16145
  version_type=sunos
 
16146
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16147
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16148
  shlibpath_var=LD_LIBRARY_PATH
 
16149
  shlibpath_overrides_runpath=yes
 
16150
  if test "$with_gnu_ld" = yes; then
 
16151
    need_lib_prefix=no
 
16152
  fi
 
16153
  need_version=yes
 
16154
  ;;
 
16155
 
 
16156
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16157
  version_type=linux
 
16158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16159
  soname_spec='${libname}${release}${shared_ext}$major'
 
16160
  shlibpath_var=LD_LIBRARY_PATH
 
16161
  case $host_vendor in
 
16162
    sni)
 
16163
      shlibpath_overrides_runpath=no
 
16164
      need_lib_prefix=no
 
16165
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16166
      runpath_var=LD_RUN_PATH
 
16167
      ;;
 
16168
    siemens)
 
16169
      need_lib_prefix=no
 
16170
      ;;
 
16171
    motorola)
 
16172
      need_lib_prefix=no
 
16173
      need_version=no
 
16174
      shlibpath_overrides_runpath=no
 
16175
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16176
      ;;
 
16177
  esac
 
16178
  ;;
 
16179
 
 
16180
sysv4*MP*)
 
16181
  if test -d /usr/nec ;then
 
16182
    version_type=linux
 
16183
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16184
    soname_spec='$libname${shared_ext}.$major'
 
16185
    shlibpath_var=LD_LIBRARY_PATH
 
16186
  fi
 
16187
  ;;
 
16188
 
 
16189
uts4*)
 
16190
  version_type=linux
 
16191
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16192
  soname_spec='${libname}${release}${shared_ext}$major'
 
16193
  shlibpath_var=LD_LIBRARY_PATH
 
16194
  ;;
 
16195
 
 
16196
*)
 
16197
  dynamic_linker=no
 
16198
  ;;
 
16199
esac
 
16200
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16201
echo "${ECHO_T}$dynamic_linker" >&6
 
16202
test "$dynamic_linker" = no && can_build_shared=no
 
16203
 
 
16204
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16205
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16206
hardcode_action_F77=
 
16207
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16208
   test -n "$runpath_var F77" || \
 
16209
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
16210
 
 
16211
  # We can hardcode non-existant directories.
 
16212
  if test "$hardcode_direct_F77" != no &&
 
16213
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16214
     # have to relink, otherwise we might link with an installed library
 
16215
     # when we should be linking with a yet-to-be-installed one
 
16216
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16217
     test "$hardcode_minus_L_F77" != no; then
 
16218
    # Linking always hardcodes the temporary library directory.
 
16219
    hardcode_action_F77=relink
 
16220
  else
 
16221
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16222
    hardcode_action_F77=immediate
 
16223
  fi
 
16224
else
 
16225
  # We cannot hardcode anything, or else we can only hardcode existing
 
16226
  # directories.
 
16227
  hardcode_action_F77=unsupported
 
16228
fi
 
16229
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16230
echo "${ECHO_T}$hardcode_action_F77" >&6
 
16231
 
 
16232
if test "$hardcode_action_F77" = relink; then
 
16233
  # Fast installation is not supported
 
16234
  enable_fast_install=no
 
16235
elif test "$shlibpath_overrides_runpath" = yes ||
 
16236
     test "$enable_shared" = no; then
 
16237
  # Fast installation is not necessary
 
16238
  enable_fast_install=needless
 
16239
fi
 
16240
 
 
16241
striplib=
 
16242
old_striplib=
 
16243
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16244
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16245
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16246
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16247
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16248
  echo "$as_me:$LINENO: result: yes" >&5
 
16249
echo "${ECHO_T}yes" >&6
 
16250
else
 
16251
# FIXME - insert some real tests, host_os isn't really good enough
 
16252
  case $host_os in
 
16253
   darwin*)
 
16254
       if test -n "$STRIP" ; then
 
16255
         striplib="$STRIP -x"
 
16256
         echo "$as_me:$LINENO: result: yes" >&5
 
16257
echo "${ECHO_T}yes" >&6
 
16258
       else
 
16259
  echo "$as_me:$LINENO: result: no" >&5
 
16260
echo "${ECHO_T}no" >&6
 
16261
fi
 
16262
       ;;
 
16263
   *)
 
16264
  echo "$as_me:$LINENO: result: no" >&5
 
16265
echo "${ECHO_T}no" >&6
 
16266
    ;;
 
16267
  esac
 
16268
fi
 
16269
 
 
16270
 
 
16271
 
 
16272
# The else clause should only fire when bootstrapping the
 
16273
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16274
# with your package, and you will get complaints that there are
 
16275
# no rules to generate ltmain.sh.
 
16276
if test -f "$ltmain"; then
 
16277
  # See if we are running on zsh, and set the options which allow our commands through
 
16278
  # without removal of \ escapes.
 
16279
  if test -n "${ZSH_VERSION+set}" ; then
 
16280
    setopt NO_GLOB_SUBST
 
16281
  fi
 
16282
  # Now quote all the things that may contain metacharacters while being
 
16283
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16284
  # variables and quote the copies for generation of the libtool script.
 
16285
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
16286
    SED SHELL STRIP \
 
16287
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16288
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16289
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16290
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16291
    lt_cv_sys_global_symbol_to_c_name_address \
 
16292
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16293
    old_postinstall_cmds old_postuninstall_cmds \
 
16294
    compiler_F77 \
 
16295
    CC_F77 \
 
16296
    LD_F77 \
 
16297
    lt_prog_compiler_wl_F77 \
 
16298
    lt_prog_compiler_pic_F77 \
 
16299
    lt_prog_compiler_static_F77 \
 
16300
    lt_prog_compiler_no_builtin_flag_F77 \
 
16301
    export_dynamic_flag_spec_F77 \
 
16302
    thread_safe_flag_spec_F77 \
 
16303
    whole_archive_flag_spec_F77 \
 
16304
    enable_shared_with_static_runtimes_F77 \
 
16305
    old_archive_cmds_F77 \
 
16306
    old_archive_from_new_cmds_F77 \
 
16307
    predep_objects_F77 \
 
16308
    postdep_objects_F77 \
 
16309
    predeps_F77 \
 
16310
    postdeps_F77 \
 
16311
    compiler_lib_search_path_F77 \
 
16312
    archive_cmds_F77 \
 
16313
    archive_expsym_cmds_F77 \
 
16314
    postinstall_cmds_F77 \
 
16315
    postuninstall_cmds_F77 \
 
16316
    old_archive_from_expsyms_cmds_F77 \
 
16317
    allow_undefined_flag_F77 \
 
16318
    no_undefined_flag_F77 \
 
16319
    export_symbols_cmds_F77 \
 
16320
    hardcode_libdir_flag_spec_F77 \
 
16321
    hardcode_libdir_flag_spec_ld_F77 \
 
16322
    hardcode_libdir_separator_F77 \
 
16323
    hardcode_automatic_F77 \
 
16324
    module_cmds_F77 \
 
16325
    module_expsym_cmds_F77 \
 
16326
    lt_cv_prog_compiler_c_o_F77 \
 
16327
    exclude_expsyms_F77 \
 
16328
    include_expsyms_F77; do
 
16329
 
 
16330
    case $var in
 
16331
    old_archive_cmds_F77 | \
 
16332
    old_archive_from_new_cmds_F77 | \
 
16333
    archive_cmds_F77 | \
 
16334
    archive_expsym_cmds_F77 | \
 
16335
    module_cmds_F77 | \
 
16336
    module_expsym_cmds_F77 | \
 
16337
    old_archive_from_expsyms_cmds_F77 | \
 
16338
    export_symbols_cmds_F77 | \
 
16339
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16340
    postinstall_cmds | postuninstall_cmds | \
 
16341
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16342
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16343
      # Double-quote double-evaled strings.
 
16344
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16345
      ;;
 
16346
    *)
 
16347
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16348
      ;;
 
16349
    esac
 
16350
  done
 
16351
 
 
16352
  case $lt_echo in
 
16353
  *'\$0 --fallback-echo"')
 
16354
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16355
    ;;
 
16356
  esac
 
16357
 
 
16358
cfgfile="$ofile"
 
16359
 
 
16360
  cat <<__EOF__ >> "$cfgfile"
 
16361
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16362
 
 
16363
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16364
 
 
16365
# Shell to use when invoking shell scripts.
 
16366
SHELL=$lt_SHELL
 
16367
 
 
16368
# Whether or not to build shared libraries.
 
16369
build_libtool_libs=$enable_shared
 
16370
 
 
16371
# Whether or not to build static libraries.
 
16372
build_old_libs=$enable_static
 
16373
 
 
16374
# Whether or not to add -lc for building shared libraries.
 
16375
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16376
 
 
16377
# Whether or not to disallow shared libs when runtime libs are static
 
16378
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16379
 
 
16380
# Whether or not to optimize for fast installation.
 
16381
fast_install=$enable_fast_install
 
16382
 
 
16383
# The host system.
 
16384
host_alias=$host_alias
 
16385
host=$host
 
16386
 
 
16387
# An echo program that does not interpret backslashes.
 
16388
echo=$lt_echo
 
16389
 
 
16390
# The archiver.
 
16391
AR=$lt_AR
 
16392
AR_FLAGS=$lt_AR_FLAGS
 
16393
 
 
16394
# A C compiler.
 
16395
LTCC=$lt_LTCC
 
16396
 
 
16397
# A language-specific compiler.
 
16398
CC=$lt_compiler_F77
 
16399
 
 
16400
# Is the compiler the GNU C compiler?
 
16401
with_gcc=$GCC_F77
 
16402
 
 
16403
# An ERE matcher.
 
16404
EGREP=$lt_EGREP
 
16405
 
 
16406
# The linker used to build libraries.
 
16407
LD=$lt_LD_F77
 
16408
 
 
16409
# Whether we need hard or soft links.
 
16410
LN_S=$lt_LN_S
 
16411
 
 
16412
# A BSD-compatible nm program.
 
16413
NM=$lt_NM
 
16414
 
 
16415
# A symbol stripping program
 
16416
STRIP=$lt_STRIP
 
16417
 
 
16418
# Used to examine libraries when file_magic_cmd begins "file"
 
16419
MAGIC_CMD=$MAGIC_CMD
 
16420
 
 
16421
# Used on cygwin: DLL creation program.
 
16422
DLLTOOL="$DLLTOOL"
 
16423
 
 
16424
# Used on cygwin: object dumper.
 
16425
OBJDUMP="$OBJDUMP"
 
16426
 
 
16427
# Used on cygwin: assembler.
 
16428
AS="$AS"
 
16429
 
 
16430
# The name of the directory that contains temporary libtool files.
 
16431
objdir=$objdir
 
16432
 
 
16433
# How to create reloadable object files.
 
16434
reload_flag=$lt_reload_flag
 
16435
reload_cmds=$lt_reload_cmds
 
16436
 
 
16437
# How to pass a linker flag through the compiler.
 
16438
wl=$lt_lt_prog_compiler_wl_F77
 
16439
 
 
16440
# Object file suffix (normally "o").
 
16441
objext="$ac_objext"
 
16442
 
 
16443
# Old archive suffix (normally "a").
 
16444
libext="$libext"
 
16445
 
 
16446
# Shared library suffix (normally ".so").
 
16447
shrext_cmds='$shrext_cmds'
 
16448
 
 
16449
# Executable file suffix (normally "").
 
16450
exeext="$exeext"
 
16451
 
 
16452
# Additional compiler flags for building library objects.
 
16453
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16454
pic_mode=$pic_mode
 
16455
 
 
16456
# What is the maximum length of a command?
 
16457
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16458
 
 
16459
# Does compiler simultaneously support -c and -o options?
 
16460
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16461
 
 
16462
# Must we lock files when doing compilation ?
 
16463
need_locks=$lt_need_locks
 
16464
 
 
16465
# Do we need the lib prefix for modules?
 
16466
need_lib_prefix=$need_lib_prefix
 
16467
 
 
16468
# Do we need a version for libraries?
 
16469
need_version=$need_version
 
16470
 
 
16471
# Whether dlopen is supported.
 
16472
dlopen_support=$enable_dlopen
 
16473
 
 
16474
# Whether dlopen of programs is supported.
 
16475
dlopen_self=$enable_dlopen_self
 
16476
 
 
16477
# Whether dlopen of statically linked programs is supported.
 
16478
dlopen_self_static=$enable_dlopen_self_static
 
16479
 
 
16480
# Compiler flag to prevent dynamic linking.
 
16481
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16482
 
 
16483
# Compiler flag to turn off builtin functions.
 
16484
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16485
 
 
16486
# Compiler flag to allow reflexive dlopens.
 
16487
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16488
 
 
16489
# Compiler flag to generate shared objects directly from archives.
 
16490
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16491
 
 
16492
# Compiler flag to generate thread-safe objects.
 
16493
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16494
 
 
16495
# Library versioning type.
 
16496
version_type=$version_type
 
16497
 
 
16498
# Format of library name prefix.
 
16499
libname_spec=$lt_libname_spec
 
16500
 
 
16501
# List of archive names.  First name is the real one, the rest are links.
 
16502
# The last name is the one that the linker finds with -lNAME.
 
16503
library_names_spec=$lt_library_names_spec
 
16504
 
 
16505
# The coded name of the library, if different from the real name.
 
16506
soname_spec=$lt_soname_spec
 
16507
 
 
16508
# Commands used to build and install an old-style archive.
 
16509
RANLIB=$lt_RANLIB
 
16510
old_archive_cmds=$lt_old_archive_cmds_F77
 
16511
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16512
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16513
 
 
16514
# Create an old-style archive from a shared archive.
 
16515
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16516
 
 
16517
# Create a temporary old-style archive to link instead of a shared archive.
 
16518
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16519
 
 
16520
# Commands used to build and install a shared archive.
 
16521
archive_cmds=$lt_archive_cmds_F77
 
16522
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16523
postinstall_cmds=$lt_postinstall_cmds
 
16524
postuninstall_cmds=$lt_postuninstall_cmds
 
16525
 
 
16526
# Commands used to build a loadable module (assumed same as above if empty)
 
16527
module_cmds=$lt_module_cmds_F77
 
16528
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16529
 
 
16530
# Commands to strip libraries.
 
16531
old_striplib=$lt_old_striplib
 
16532
striplib=$lt_striplib
 
16533
 
 
16534
# Dependencies to place before the objects being linked to create a
 
16535
# shared library.
 
16536
predep_objects=$lt_predep_objects_F77
 
16537
 
 
16538
# Dependencies to place after the objects being linked to create a
 
16539
# shared library.
 
16540
postdep_objects=$lt_postdep_objects_F77
 
16541
 
 
16542
# Dependencies to place before the objects being linked to create a
 
16543
# shared library.
 
16544
predeps=$lt_predeps_F77
 
16545
 
 
16546
# Dependencies to place after the objects being linked to create a
 
16547
# shared library.
 
16548
postdeps=$lt_postdeps_F77
 
16549
 
 
16550
# The library search path used internally by the compiler when linking
 
16551
# a shared library.
 
16552
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16553
 
 
16554
# Method to check whether dependent libraries are shared objects.
 
16555
deplibs_check_method=$lt_deplibs_check_method
 
16556
 
 
16557
# Command to use when deplibs_check_method == file_magic.
 
16558
file_magic_cmd=$lt_file_magic_cmd
 
16559
 
 
16560
# Flag that allows shared libraries with undefined symbols to be built.
 
16561
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16562
 
 
16563
# Flag that forces no undefined symbols.
 
16564
no_undefined_flag=$lt_no_undefined_flag_F77
 
16565
 
 
16566
# Commands used to finish a libtool library installation in a directory.
 
16567
finish_cmds=$lt_finish_cmds
 
16568
 
 
16569
# Same as above, but a single script fragment to be evaled but not shown.
 
16570
finish_eval=$lt_finish_eval
 
16571
 
 
16572
# Take the output of nm and produce a listing of raw symbols and C names.
 
16573
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16574
 
 
16575
# Transform the output of nm in a proper C declaration
 
16576
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16577
 
 
16578
# Transform the output of nm in a C name address pair
 
16579
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16580
 
 
16581
# This is the shared library runtime path variable.
 
16582
runpath_var=$runpath_var
 
16583
 
 
16584
# This is the shared library path variable.
 
16585
shlibpath_var=$shlibpath_var
 
16586
 
 
16587
# Is shlibpath searched before the hard-coded library search path?
 
16588
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16589
 
 
16590
# How to hardcode a shared library path into an executable.
 
16591
hardcode_action=$hardcode_action_F77
 
16592
 
 
16593
# Whether we should hardcode library paths into libraries.
 
16594
hardcode_into_libs=$hardcode_into_libs
 
16595
 
 
16596
# Flag to hardcode \$libdir into a binary during linking.
 
16597
# This must work even if \$libdir does not exist.
 
16598
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16599
 
 
16600
# If ld is used when linking, flag to hardcode \$libdir into
 
16601
# a binary during linking. This must work even if \$libdir does
 
16602
# not exist.
 
16603
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16604
 
 
16605
# Whether we need a single -rpath flag with a separated argument.
 
16606
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16607
 
 
16608
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16609
# resulting binary.
 
16610
hardcode_direct=$hardcode_direct_F77
 
16611
 
 
16612
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16613
# resulting binary.
 
16614
hardcode_minus_L=$hardcode_minus_L_F77
 
16615
 
 
16616
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16617
# the resulting binary.
 
16618
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16619
 
 
16620
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16621
# and all subsequent libraries and executables linked against it.
 
16622
hardcode_automatic=$hardcode_automatic_F77
 
16623
 
 
16624
# Variables whose values should be saved in libtool wrapper scripts and
 
16625
# restored at relink time.
 
16626
variables_saved_for_relink="$variables_saved_for_relink"
 
16627
 
 
16628
# Whether libtool must link a program against all its dependency libraries.
 
16629
link_all_deplibs=$link_all_deplibs_F77
 
16630
 
 
16631
# Compile-time system search path for libraries
 
16632
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16633
 
 
16634
# Run-time system search path for libraries
 
16635
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16636
 
 
16637
# Fix the shell variable \$srcfile for the compiler.
 
16638
fix_srcfile_path="$fix_srcfile_path_F77"
 
16639
 
 
16640
# Set to yes if exported symbols are required.
 
16641
always_export_symbols=$always_export_symbols_F77
 
16642
 
 
16643
# The commands to list exported symbols.
 
16644
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16645
 
 
16646
# The commands to extract the exported symbol list from a shared archive.
 
16647
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16648
 
 
16649
# Symbols that should not be listed in the preloaded symbols.
 
16650
exclude_expsyms=$lt_exclude_expsyms_F77
 
16651
 
 
16652
# Symbols that must always be exported.
 
16653
include_expsyms=$lt_include_expsyms_F77
 
16654
 
 
16655
# ### END LIBTOOL TAG CONFIG: $tagname
 
16656
 
 
16657
__EOF__
 
16658
 
 
16659
 
 
16660
else
 
16661
  # If there is no Makefile yet, we rely on a make rule to execute
 
16662
  # `config.status --recheck' to rerun these tests and create the
 
16663
  # libtool script then.
 
16664
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16665
  if test -f "$ltmain_in"; then
 
16666
    test -f Makefile && make "$ltmain"
 
16667
  fi
 
16668
fi
 
16669
 
 
16670
 
 
16671
ac_ext=c
 
16672
ac_cpp='$CPP $CPPFLAGS'
 
16673
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16674
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16675
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16676
 
 
16677
CC="$lt_save_CC"
 
16678
 
 
16679
        else
 
16680
          tagname=""
 
16681
        fi
 
16682
        ;;
 
16683
 
 
16684
      GCJ)
 
16685
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16686
 
 
16687
 
 
16688
 
 
16689
# Source file extension for Java test sources.
 
16690
ac_ext=java
 
16691
 
 
16692
# Object file extension for compiled Java test sources.
 
16693
objext=o
 
16694
objext_GCJ=$objext
 
16695
 
 
16696
# Code to be used in simple compile tests
 
16697
lt_simple_compile_test_code="class foo {}\n"
 
16698
 
 
16699
# Code to be used in simple link tests
 
16700
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16701
 
 
16702
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16703
 
 
16704
# If no C compiler was specified, use CC.
 
16705
LTCC=${LTCC-"$CC"}
 
16706
 
 
16707
# Allow CC to be a program name with arguments.
 
16708
compiler=$CC
 
16709
 
 
16710
 
 
16711
# Allow CC to be a program name with arguments.
 
16712
lt_save_CC="$CC"
 
16713
CC=${GCJ-"gcj"}
 
16714
compiler=$CC
 
16715
compiler_GCJ=$CC
 
16716
 
 
16717
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16718
archive_cmds_need_lc_GCJ=no
 
16719
 
 
16720
 
 
16721
lt_prog_compiler_no_builtin_flag_GCJ=
 
16722
 
 
16723
if test "$GCC" = yes; then
 
16724
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16725
 
 
16726
 
 
16727
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16728
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16729
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16731
else
 
16732
  lt_cv_prog_compiler_rtti_exceptions=no
 
16733
  ac_outfile=conftest.$ac_objext
 
16734
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16735
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16736
   # Insert the option either (1) after the last *FLAGS variable, or
 
16737
   # (2) before a word containing "conftest.", or (3) at the end.
 
16738
   # Note that $ac_compile itself does not contain backslashes and begins
 
16739
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16740
   # The option is referenced via a variable to avoid confusing sed.
 
16741
   lt_compile=`echo "$ac_compile" | $SED \
 
16742
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16743
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16744
   -e 's:$: $lt_compiler_flag:'`
 
16745
   (eval echo "\"\$as_me:16745: $lt_compile\"" >&5)
 
16746
   (eval "$lt_compile" 2>conftest.err)
 
16747
   ac_status=$?
 
16748
   cat conftest.err >&5
 
16749
   echo "$as_me:16749: \$? = $ac_status" >&5
 
16750
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16751
     # The compiler can only warn and ignore the option if not recognized
 
16752
     # So say no if there are warnings
 
16753
     if test ! -s conftest.err; then
 
16754
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16755
     fi
 
16756
   fi
 
16757
   $rm conftest*
 
16758
 
 
16759
fi
 
16760
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16761
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16762
 
 
16763
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16764
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16765
else
 
16766
    :
 
16767
fi
 
16768
 
 
16769
fi
 
16770
 
 
16771
lt_prog_compiler_wl_GCJ=
 
16772
lt_prog_compiler_pic_GCJ=
 
16773
lt_prog_compiler_static_GCJ=
 
16774
 
 
16775
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16776
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16777
 
 
16778
  if test "$GCC" = yes; then
 
16779
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16780
    lt_prog_compiler_static_GCJ='-static'
 
16781
 
 
16782
    case $host_os in
 
16783
      aix*)
 
16784
      # All AIX code is PIC.
 
16785
      if test "$host_cpu" = ia64; then
 
16786
        # AIX 5 now supports IA64 processor
 
16787
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16788
      fi
 
16789
      ;;
 
16790
 
 
16791
    amigaos*)
 
16792
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16793
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16794
      # like `-m68040'.
 
16795
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16796
      ;;
 
16797
 
 
16798
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16799
      # PIC is the default for these OSes.
 
16800
      ;;
 
16801
 
 
16802
    mingw* | pw32* | os2*)
 
16803
      # This hack is so that the source file can tell whether it is being
 
16804
      # built for inclusion in a dll (and should export symbols for example).
 
16805
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16806
      ;;
 
16807
 
 
16808
    darwin* | rhapsody*)
 
16809
      # PIC is the default on this platform
 
16810
      # Common symbols not allowed in MH_DYLIB files
 
16811
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16812
      ;;
 
16813
 
 
16814
    msdosdjgpp*)
 
16815
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16816
      # on systems that don't support them.
 
16817
      lt_prog_compiler_can_build_shared_GCJ=no
 
16818
      enable_shared=no
 
16819
      ;;
 
16820
 
 
16821
    sysv4*MP*)
 
16822
      if test -d /usr/nec; then
 
16823
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16824
      fi
 
16825
      ;;
 
16826
 
 
16827
    hpux*)
 
16828
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16829
      # not for PA HP-UX.
 
16830
      case "$host_cpu" in
 
16831
      hppa*64*|ia64*)
 
16832
        # +Z the default
 
16833
        ;;
 
16834
      *)
 
16835
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16836
        ;;
 
16837
      esac
 
16838
      ;;
 
16839
 
 
16840
    *)
 
16841
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16842
      ;;
 
16843
    esac
 
16844
  else
 
16845
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16846
    case $host_os in
 
16847
    aix*)
 
16848
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16849
      if test "$host_cpu" = ia64; then
 
16850
        # AIX 5 now supports IA64 processor
 
16851
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16852
      else
 
16853
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16854
      fi
 
16855
      ;;
 
16856
 
 
16857
    mingw* | pw32* | os2*)
 
16858
      # This hack is so that the source file can tell whether it is being
 
16859
      # built for inclusion in a dll (and should export symbols for example).
 
16860
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16861
      ;;
 
16862
 
 
16863
    hpux9* | hpux10* | hpux11*)
 
16864
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16865
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16866
      # not for PA HP-UX.
 
16867
      case "$host_cpu" in
 
16868
      hppa*64*|ia64*)
 
16869
        # +Z the default
 
16870
        ;;
 
16871
      *)
 
16872
        lt_prog_compiler_pic_GCJ='+Z'
 
16873
        ;;
 
16874
      esac
 
16875
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16876
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16877
      ;;
 
16878
 
 
16879
    irix5* | irix6* | nonstopux*)
 
16880
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16881
      # PIC (with -KPIC) is the default.
 
16882
      lt_prog_compiler_static_GCJ='-non_shared'
 
16883
      ;;
 
16884
 
 
16885
    newsos6)
 
16886
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16887
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16888
      ;;
 
16889
 
 
16890
    linux*)
 
16891
      case $CC in
 
16892
      icc* | ecc*)
 
16893
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16894
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16895
        lt_prog_compiler_static_GCJ='-static'
 
16896
        ;;
 
16897
      ccc*)
 
16898
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16899
        # All Alpha code is PIC.
 
16900
        lt_prog_compiler_static_GCJ='-non_shared'
 
16901
        ;;
 
16902
      esac
 
16903
      ;;
 
16904
 
 
16905
    osf3* | osf4* | osf5*)
 
16906
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16907
      # All OSF/1 code is PIC.
 
16908
      lt_prog_compiler_static_GCJ='-non_shared'
 
16909
      ;;
 
16910
 
 
16911
    sco3.2v5*)
 
16912
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16913
      lt_prog_compiler_static_GCJ='-dn'
 
16914
      ;;
 
16915
 
 
16916
    solaris*)
 
16917
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16918
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16919
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16920
      ;;
 
16921
 
 
16922
    sunos4*)
 
16923
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16924
      lt_prog_compiler_pic_GCJ='-PIC'
 
16925
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16926
      ;;
 
16927
 
 
16928
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16929
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16930
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16931
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16932
      ;;
 
16933
 
 
16934
    sysv4*MP*)
 
16935
      if test -d /usr/nec ;then
 
16936
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16937
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16938
      fi
 
16939
      ;;
 
16940
 
 
16941
    uts4*)
 
16942
      lt_prog_compiler_pic_GCJ='-pic'
 
16943
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16944
      ;;
 
16945
 
 
16946
    *)
 
16947
      lt_prog_compiler_can_build_shared_GCJ=no
 
16948
      ;;
 
16949
    esac
 
16950
  fi
 
16951
 
 
16952
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16953
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16954
 
 
16955
#
 
16956
# Check to make sure the PIC flag actually works.
 
16957
#
 
16958
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16959
 
 
16960
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16961
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16962
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16964
else
 
16965
  lt_prog_compiler_pic_works_GCJ=no
 
16966
  ac_outfile=conftest.$ac_objext
 
16967
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16968
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16969
   # Insert the option either (1) after the last *FLAGS variable, or
 
16970
   # (2) before a word containing "conftest.", or (3) at the end.
 
16971
   # Note that $ac_compile itself does not contain backslashes and begins
 
16972
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16973
   # The option is referenced via a variable to avoid confusing sed.
 
16974
   lt_compile=`echo "$ac_compile" | $SED \
 
16975
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16976
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16977
   -e 's:$: $lt_compiler_flag:'`
 
16978
   (eval echo "\"\$as_me:16978: $lt_compile\"" >&5)
 
16979
   (eval "$lt_compile" 2>conftest.err)
 
16980
   ac_status=$?
 
16981
   cat conftest.err >&5
 
16982
   echo "$as_me:16982: \$? = $ac_status" >&5
 
16983
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16984
     # The compiler can only warn and ignore the option if not recognized
 
16985
     # So say no if there are warnings
 
16986
     if test ! -s conftest.err; then
 
16987
       lt_prog_compiler_pic_works_GCJ=yes
 
16988
     fi
 
16989
   fi
 
16990
   $rm conftest*
 
16991
 
 
16992
fi
 
16993
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16994
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16995
 
 
16996
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16997
    case $lt_prog_compiler_pic_GCJ in
 
16998
     "" | " "*) ;;
 
16999
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17000
     esac
 
17001
else
 
17002
    lt_prog_compiler_pic_GCJ=
 
17003
     lt_prog_compiler_can_build_shared_GCJ=no
 
17004
fi
 
17005
 
 
17006
fi
 
17007
case "$host_os" in
 
17008
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17009
  *djgpp*)
 
17010
    lt_prog_compiler_pic_GCJ=
 
17011
    ;;
 
17012
  *)
 
17013
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17014
    ;;
 
17015
esac
 
17016
 
 
17017
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17018
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
17019
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17021
else
 
17022
  lt_cv_prog_compiler_c_o_GCJ=no
 
17023
   $rm -r conftest 2>/dev/null
 
17024
   mkdir conftest
 
17025
   cd conftest
 
17026
   mkdir out
 
17027
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17028
 
 
17029
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17030
   # Insert the option either (1) after the last *FLAGS variable, or
 
17031
   # (2) before a word containing "conftest.", or (3) at the end.
 
17032
   # Note that $ac_compile itself does not contain backslashes and begins
 
17033
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17034
   lt_compile=`echo "$ac_compile" | $SED \
 
17035
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17036
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17037
   -e 's:$: $lt_compiler_flag:'`
 
17038
   (eval echo "\"\$as_me:17038: $lt_compile\"" >&5)
 
17039
   (eval "$lt_compile" 2>out/conftest.err)
 
17040
   ac_status=$?
 
17041
   cat out/conftest.err >&5
 
17042
   echo "$as_me:17042: \$? = $ac_status" >&5
 
17043
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17044
   then
 
17045
     # The compiler can only warn and ignore the option if not recognized
 
17046
     # So say no if there are warnings
 
17047
     if test ! -s out/conftest.err; then
 
17048
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17049
     fi
 
17050
   fi
 
17051
   chmod u+w .
 
17052
   $rm conftest*
 
17053
   # SGI C++ compiler will create directory out/ii_files/ for
 
17054
   # template instantiation
 
17055
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17056
   $rm out/* && rmdir out
 
17057
   cd ..
 
17058
   rmdir conftest
 
17059
   $rm conftest*
 
17060
 
 
17061
fi
 
17062
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17063
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
17064
 
 
17065
 
 
17066
hard_links="nottested"
 
17067
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17068
  # do not overwrite the value of need_locks provided by the user
 
17069
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17070
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
17071
  hard_links=yes
 
17072
  $rm conftest*
 
17073
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17074
  touch conftest.a
 
17075
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17076
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17077
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
17078
echo "${ECHO_T}$hard_links" >&6
 
17079
  if test "$hard_links" = no; then
 
17080
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17081
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17082
    need_locks=warn
 
17083
  fi
 
17084
else
 
17085
  need_locks=no
 
17086
fi
 
17087
 
 
17088
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17089
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
17090
 
 
17091
  runpath_var=
 
17092
  allow_undefined_flag_GCJ=
 
17093
  enable_shared_with_static_runtimes_GCJ=no
 
17094
  archive_cmds_GCJ=
 
17095
  archive_expsym_cmds_GCJ=
 
17096
  old_archive_From_new_cmds_GCJ=
 
17097
  old_archive_from_expsyms_cmds_GCJ=
 
17098
  export_dynamic_flag_spec_GCJ=
 
17099
  whole_archive_flag_spec_GCJ=
 
17100
  thread_safe_flag_spec_GCJ=
 
17101
  hardcode_libdir_flag_spec_GCJ=
 
17102
  hardcode_libdir_flag_spec_ld_GCJ=
 
17103
  hardcode_libdir_separator_GCJ=
 
17104
  hardcode_direct_GCJ=no
 
17105
  hardcode_minus_L_GCJ=no
 
17106
  hardcode_shlibpath_var_GCJ=unsupported
 
17107
  link_all_deplibs_GCJ=unknown
 
17108
  hardcode_automatic_GCJ=no
 
17109
  module_cmds_GCJ=
 
17110
  module_expsym_cmds_GCJ=
 
17111
  always_export_symbols_GCJ=no
 
17112
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17113
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17114
  # included in the symbol list
 
17115
  include_expsyms_GCJ=
 
17116
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17117
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17118
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17119
  # as well as any symbol that contains `d'.
 
17120
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17121
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17122
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17123
  # the symbol is explicitly referenced.  Since portable code cannot
 
17124
  # rely on this symbol name, it's probably fine to never include it in
 
17125
  # preloaded symbol tables.
 
17126
  extract_expsyms_cmds=
 
17127
 
 
17128
  case $host_os in
 
17129
  cygwin* | mingw* | pw32*)
 
17130
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17131
    # When not using gcc, we currently assume that we are using
 
17132
    # Microsoft Visual C++.
 
17133
    if test "$GCC" != yes; then
 
17134
      with_gnu_ld=no
 
17135
    fi
 
17136
    ;;
 
17137
  openbsd*)
 
17138
    with_gnu_ld=no
 
17139
    ;;
 
17140
  esac
 
17141
 
 
17142
  ld_shlibs_GCJ=yes
 
17143
  if test "$with_gnu_ld" = yes; then
 
17144
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17145
    wlarc='${wl}'
 
17146
 
 
17147
    # See if GNU ld supports shared libraries.
 
17148
    case $host_os in
 
17149
    aix3* | aix4* | aix5*)
 
17150
      # On AIX/PPC, the GNU linker is very broken
 
17151
      if test "$host_cpu" != ia64; then
 
17152
        ld_shlibs_GCJ=no
 
17153
        cat <<EOF 1>&2
 
17154
 
 
17155
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17156
*** to be unable to reliably create shared libraries on AIX.
 
17157
*** Therefore, libtool is disabling shared libraries support.  If you
 
17158
*** really care for shared libraries, you may want to modify your PATH
 
17159
*** so that a non-GNU linker is found, and then restart.
 
17160
 
 
17161
EOF
 
17162
      fi
 
17163
      ;;
 
17164
 
 
17165
    amigaos*)
 
17166
      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)'
 
17167
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17168
      hardcode_minus_L_GCJ=yes
 
17169
 
 
17170
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17171
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17172
      # to version 4, is to share data among multiple programs linked
 
17173
      # with the same dynamic library.  Since this doesn't match the
 
17174
      # behavior of shared libraries on other platforms, we can't use
 
17175
      # them.
 
17176
      ld_shlibs_GCJ=no
 
17177
      ;;
 
17178
 
 
17179
    beos*)
 
17180
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17181
        allow_undefined_flag_GCJ=unsupported
 
17182
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17183
        # support --undefined.  This deserves some investigation.  FIXME
 
17184
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17185
      else
 
17186
        ld_shlibs_GCJ=no
 
17187
      fi
 
17188
      ;;
 
17189
 
 
17190
    cygwin* | mingw* | pw32*)
 
17191
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17192
      # as there is no search path for DLLs.
 
17193
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17194
      allow_undefined_flag_GCJ=unsupported
 
17195
      always_export_symbols_GCJ=no
 
17196
      enable_shared_with_static_runtimes_GCJ=yes
 
17197
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17198
 
 
17199
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17200
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17201
        # If the export-symbols file already is a .def file (1st line
 
17202
        # is EXPORTS), use it as is; otherwise, prepend...
 
17203
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17204
          cp $export_symbols $output_objdir/$soname.def;
 
17205
        else
 
17206
          echo EXPORTS > $output_objdir/$soname.def;
 
17207
          cat $export_symbols >> $output_objdir/$soname.def;
 
17208
        fi~
 
17209
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
17210
      else
 
17211
        ld_shlibs=no
 
17212
      fi
 
17213
      ;;
 
17214
 
 
17215
    netbsd* | knetbsd*-gnu)
 
17216
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17217
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17218
        wlarc=
 
17219
      else
 
17220
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17221
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17222
      fi
 
17223
      ;;
 
17224
 
 
17225
    solaris* | sysv5*)
 
17226
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17227
        ld_shlibs_GCJ=no
 
17228
        cat <<EOF 1>&2
 
17229
 
 
17230
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17231
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17232
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17233
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17234
*** your PATH or compiler configuration so that the native linker is
 
17235
*** used, and then restart.
 
17236
 
 
17237
EOF
 
17238
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17239
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17240
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17241
      else
 
17242
        ld_shlibs_GCJ=no
 
17243
      fi
 
17244
      ;;
 
17245
 
 
17246
    sunos4*)
 
17247
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17248
      wlarc=
 
17249
      hardcode_direct_GCJ=yes
 
17250
      hardcode_shlibpath_var_GCJ=no
 
17251
      ;;
 
17252
 
 
17253
  linux*)
 
17254
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17255
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17256
        archive_cmds_GCJ="$tmp_archive_cmds"
 
17257
      supports_anon_versioning=no
 
17258
      case `$LD -v 2>/dev/null` in
 
17259
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17260
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17261
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17262
        *\ 2.11.*) ;; # other 2.11 versions
 
17263
        *) supports_anon_versioning=yes ;;
 
17264
      esac
 
17265
      if test $supports_anon_versioning = yes; then
 
17266
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17267
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17268
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
17269
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17270
      else
 
17271
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
17272
      fi
 
17273
      link_all_deplibs_GCJ=no
 
17274
    else
 
17275
      ld_shlibs_GCJ=no
 
17276
    fi
 
17277
    ;;
 
17278
 
 
17279
    *)
 
17280
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17281
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17282
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17283
      else
 
17284
        ld_shlibs_GCJ=no
 
17285
      fi
 
17286
      ;;
 
17287
    esac
 
17288
 
 
17289
    if test "$ld_shlibs_GCJ" = yes; then
 
17290
      runpath_var=LD_RUN_PATH
 
17291
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17292
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17293
      # ancient GNU ld didn't support --whole-archive et. al.
 
17294
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17295
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17296
      else
 
17297
        whole_archive_flag_spec_GCJ=
 
17298
      fi
 
17299
    fi
 
17300
  else
 
17301
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17302
    case $host_os in
 
17303
    aix3*)
 
17304
      allow_undefined_flag_GCJ=unsupported
 
17305
      always_export_symbols_GCJ=yes
 
17306
      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'
 
17307
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17308
      # are no directories specified by -L.
 
17309
      hardcode_minus_L_GCJ=yes
 
17310
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17311
        # Neither direct hardcoding nor static linking is supported with a
 
17312
        # broken collect2.
 
17313
        hardcode_direct_GCJ=unsupported
 
17314
      fi
 
17315
      ;;
 
17316
 
 
17317
    aix4* | aix5*)
 
17318
      if test "$host_cpu" = ia64; then
 
17319
        # On IA64, the linker does run time linking by default, so we don't
 
17320
        # have to do anything special.
 
17321
        aix_use_runtimelinking=no
 
17322
        exp_sym_flag='-Bexport'
 
17323
        no_entry_flag=""
 
17324
      else
 
17325
        # If we're using GNU nm, then we don't want the "-C" option.
 
17326
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17327
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17328
          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'
 
17329
        else
 
17330
          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'
 
17331
        fi
 
17332
        aix_use_runtimelinking=no
 
17333
 
 
17334
        # Test if we are trying to use run time linking or normal
 
17335
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17336
        # need to do runtime linking.
 
17337
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17338
          for ld_flag in $LDFLAGS; do
 
17339
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17340
            aix_use_runtimelinking=yes
 
17341
            break
 
17342
          fi
 
17343
          done
 
17344
        esac
 
17345
 
 
17346
        exp_sym_flag='-bexport'
 
17347
        no_entry_flag='-bnoentry'
 
17348
      fi
 
17349
 
 
17350
      # When large executables or shared objects are built, AIX ld can
 
17351
      # have problems creating the table of contents.  If linking a library
 
17352
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17353
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17354
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17355
 
 
17356
      archive_cmds_GCJ=''
 
17357
      hardcode_direct_GCJ=yes
 
17358
      hardcode_libdir_separator_GCJ=':'
 
17359
      link_all_deplibs_GCJ=yes
 
17360
 
 
17361
      if test "$GCC" = yes; then
 
17362
        case $host_os in aix4.012|aix4.012.*)
 
17363
        # We only want to do this on AIX 4.2 and lower, the check
 
17364
        # below for broken collect2 doesn't work under 4.3+
 
17365
          collect2name=`${CC} -print-prog-name=collect2`
 
17366
          if test -f "$collect2name" && \
 
17367
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17368
          then
 
17369
          # We have reworked collect2
 
17370
          hardcode_direct_GCJ=yes
 
17371
          else
 
17372
          # We have old collect2
 
17373
          hardcode_direct_GCJ=unsupported
 
17374
          # It fails to find uninstalled libraries when the uninstalled
 
17375
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17376
          # to unsupported forces relinking
 
17377
          hardcode_minus_L_GCJ=yes
 
17378
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17379
          hardcode_libdir_separator_GCJ=
 
17380
          fi
 
17381
        esac
 
17382
        shared_flag='-shared'
 
17383
      else
 
17384
        # not using gcc
 
17385
        if test "$host_cpu" = ia64; then
 
17386
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17387
        # chokes on -Wl,-G. The following line is correct:
 
17388
          shared_flag='-G'
 
17389
        else
 
17390
        if test "$aix_use_runtimelinking" = yes; then
 
17391
            shared_flag='${wl}-G'
 
17392
          else
 
17393
            shared_flag='${wl}-bM:SRE'
 
17394
        fi
 
17395
        fi
 
17396
      fi
 
17397
 
 
17398
      # It seems that -bexpall does not export symbols beginning with
 
17399
      # underscore (_), so it is better to generate a list of symbols to export.
 
17400
      always_export_symbols_GCJ=yes
 
17401
      if test "$aix_use_runtimelinking" = yes; then
 
17402
        # Warning - without using the other runtime loading flags (-brtl),
 
17403
        # -berok will link without error, but may produce a broken library.
 
17404
        allow_undefined_flag_GCJ='-berok'
 
17405
       # Determine the default libpath from the value encoded in an empty executable.
 
17406
       cat >conftest.$ac_ext <<_ACEOF
 
17407
/* confdefs.h.  */
 
17408
_ACEOF
 
17409
cat confdefs.h >>conftest.$ac_ext
 
17410
cat >>conftest.$ac_ext <<_ACEOF
 
17411
/* end confdefs.h.  */
 
17412
 
 
17413
int
 
17414
main ()
 
17415
{
 
17416
 
 
17417
  ;
 
17418
  return 0;
 
17419
}
 
17420
_ACEOF
 
17421
rm -f conftest.$ac_objext conftest$ac_exeext
 
17422
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17423
  (eval $ac_link) 2>conftest.er1
 
17424
  ac_status=$?
 
17425
  grep -v '^ *+' conftest.er1 >conftest.err
 
17426
  rm -f conftest.er1
 
17427
  cat conftest.err >&5
 
17428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17429
  (exit $ac_status); } &&
 
17430
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17432
  (eval $ac_try) 2>&5
 
17433
  ac_status=$?
 
17434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17435
  (exit $ac_status); }; } &&
 
17436
         { ac_try='test -s conftest$ac_exeext'
 
17437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17438
  (eval $ac_try) 2>&5
 
17439
  ac_status=$?
 
17440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17441
  (exit $ac_status); }; }; then
 
17442
 
 
17443
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17444
}'`
 
17445
# Check for a 64-bit object if we didn't find anything.
 
17446
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; }
 
17447
}'`; fi
 
17448
else
 
17449
  echo "$as_me: failed program was:" >&5
 
17450
sed 's/^/| /' conftest.$ac_ext >&5
 
17451
 
 
17452
fi
 
17453
rm -f conftest.err conftest.$ac_objext \
 
17454
      conftest$ac_exeext conftest.$ac_ext
 
17455
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17456
 
 
17457
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17458
        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"
 
17459
       else
 
17460
        if test "$host_cpu" = ia64; then
 
17461
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17462
          allow_undefined_flag_GCJ="-z nodefs"
 
17463
          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"
 
17464
        else
 
17465
         # Determine the default libpath from the value encoded in an empty executable.
 
17466
         cat >conftest.$ac_ext <<_ACEOF
 
17467
/* confdefs.h.  */
 
17468
_ACEOF
 
17469
cat confdefs.h >>conftest.$ac_ext
 
17470
cat >>conftest.$ac_ext <<_ACEOF
 
17471
/* end confdefs.h.  */
 
17472
 
 
17473
int
 
17474
main ()
 
17475
{
 
17476
 
 
17477
  ;
 
17478
  return 0;
 
17479
}
 
17480
_ACEOF
 
17481
rm -f conftest.$ac_objext conftest$ac_exeext
 
17482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17483
  (eval $ac_link) 2>conftest.er1
 
17484
  ac_status=$?
 
17485
  grep -v '^ *+' conftest.er1 >conftest.err
 
17486
  rm -f conftest.er1
 
17487
  cat conftest.err >&5
 
17488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17489
  (exit $ac_status); } &&
 
17490
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17492
  (eval $ac_try) 2>&5
 
17493
  ac_status=$?
 
17494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17495
  (exit $ac_status); }; } &&
 
17496
         { ac_try='test -s conftest$ac_exeext'
 
17497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17498
  (eval $ac_try) 2>&5
 
17499
  ac_status=$?
 
17500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17501
  (exit $ac_status); }; }; then
 
17502
 
 
17503
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17504
}'`
 
17505
# Check for a 64-bit object if we didn't find anything.
 
17506
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; }
 
17507
}'`; fi
 
17508
else
 
17509
  echo "$as_me: failed program was:" >&5
 
17510
sed 's/^/| /' conftest.$ac_ext >&5
 
17511
 
 
17512
fi
 
17513
rm -f conftest.err conftest.$ac_objext \
 
17514
      conftest$ac_exeext conftest.$ac_ext
 
17515
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17516
 
 
17517
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17518
          # Warning - without using the other run time loading flags,
 
17519
          # -berok will link without error, but may produce a broken library.
 
17520
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17521
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17522
          # -bexpall does not export symbols beginning with underscore (_)
 
17523
          always_export_symbols_GCJ=yes
 
17524
          # Exported symbols can be pulled into shared objects from archives
 
17525
          whole_archive_flag_spec_GCJ=' '
 
17526
          archive_cmds_need_lc_GCJ=yes
 
17527
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17528
          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'
 
17529
        fi
 
17530
      fi
 
17531
      ;;
 
17532
 
 
17533
    amigaos*)
 
17534
      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)'
 
17535
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17536
      hardcode_minus_L_GCJ=yes
 
17537
      # see comment about different semantics on the GNU ld section
 
17538
      ld_shlibs_GCJ=no
 
17539
      ;;
 
17540
 
 
17541
    bsdi4*)
 
17542
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17543
      ;;
 
17544
 
 
17545
    cygwin* | mingw* | pw32*)
 
17546
      # When not using gcc, we currently assume that we are using
 
17547
      # Microsoft Visual C++.
 
17548
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17549
      # no search path for DLLs.
 
17550
      hardcode_libdir_flag_spec_GCJ=' '
 
17551
      allow_undefined_flag_GCJ=unsupported
 
17552
      # Tell ltmain to make .lib files, not .a files.
 
17553
      libext=lib
 
17554
      # Tell ltmain to make .dll files, not .so files.
 
17555
      shrext_cmds=".dll"
 
17556
      # FIXME: Setting linknames here is a bad hack.
 
17557
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17558
      # The linker will automatically build a .lib file if we build a DLL.
 
17559
      old_archive_From_new_cmds_GCJ='true'
 
17560
      # FIXME: Should let the user specify the lib program.
 
17561
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17562
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17563
      enable_shared_with_static_runtimes_GCJ=yes
 
17564
      ;;
 
17565
 
 
17566
    darwin* | rhapsody*)
 
17567
    if test "$GXX" = yes ; then
 
17568
      archive_cmds_need_lc_GCJ=no
 
17569
      case "$host_os" in
 
17570
      rhapsody* | darwin1.[012])
 
17571
        allow_undefined_flag_GCJ='-undefined suppress'
 
17572
        ;;
 
17573
      *) # Darwin 1.3 on
 
17574
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17575
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17576
      else
 
17577
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
17578
          10.[012])
 
17579
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17580
            ;;
 
17581
          10.*)
 
17582
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
17583
            ;;
 
17584
        esac
 
17585
      fi
 
17586
        ;;
 
17587
      esac
 
17588
        lt_int_apple_cc_single_mod=no
 
17589
        output_verbose_link_cmd='echo'
 
17590
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
17591
          lt_int_apple_cc_single_mod=yes
 
17592
        fi
 
17593
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17594
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17595
        else
 
17596
        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'
 
17597
      fi
 
17598
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17599
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
17600
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17601
          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}'
 
17602
        else
 
17603
          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}'
 
17604
        fi
 
17605
          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}'
 
17606
      hardcode_direct_GCJ=no
 
17607
      hardcode_automatic_GCJ=yes
 
17608
      hardcode_shlibpath_var_GCJ=unsupported
 
17609
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
17610
      link_all_deplibs_GCJ=yes
 
17611
    else
 
17612
      ld_shlibs_GCJ=no
 
17613
    fi
 
17614
      ;;
 
17615
 
 
17616
    dgux*)
 
17617
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17618
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17619
      hardcode_shlibpath_var_GCJ=no
 
17620
      ;;
 
17621
 
 
17622
    freebsd1*)
 
17623
      ld_shlibs_GCJ=no
 
17624
      ;;
 
17625
 
 
17626
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17627
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17628
    # does not break anything, and helps significantly (at the cost of a little
 
17629
    # extra space).
 
17630
    freebsd2.2*)
 
17631
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17632
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17633
      hardcode_direct_GCJ=yes
 
17634
      hardcode_shlibpath_var_GCJ=no
 
17635
      ;;
 
17636
 
 
17637
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17638
    freebsd2*)
 
17639
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17640
      hardcode_direct_GCJ=yes
 
17641
      hardcode_minus_L_GCJ=yes
 
17642
      hardcode_shlibpath_var_GCJ=no
 
17643
      ;;
 
17644
 
 
17645
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17646
    freebsd* | kfreebsd*-gnu)
 
17647
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17648
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17649
      hardcode_direct_GCJ=yes
 
17650
      hardcode_shlibpath_var_GCJ=no
 
17651
      ;;
 
17652
 
 
17653
    hpux9*)
 
17654
      if test "$GCC" = yes; then
 
17655
        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'
 
17656
      else
 
17657
        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'
 
17658
      fi
 
17659
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17660
      hardcode_libdir_separator_GCJ=:
 
17661
      hardcode_direct_GCJ=yes
 
17662
 
 
17663
      # hardcode_minus_L: Not really in the search PATH,
 
17664
      # but as the default location of the library.
 
17665
      hardcode_minus_L_GCJ=yes
 
17666
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17667
      ;;
 
17668
 
 
17669
    hpux10* | hpux11*)
 
17670
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17671
        case "$host_cpu" in
 
17672
        hppa*64*|ia64*)
 
17673
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17674
          ;;
 
17675
        *)
 
17676
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17677
          ;;
 
17678
        esac
 
17679
      else
 
17680
        case "$host_cpu" in
 
17681
        hppa*64*|ia64*)
 
17682
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17683
          ;;
 
17684
        *)
 
17685
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17686
          ;;
 
17687
        esac
 
17688
      fi
 
17689
      if test "$with_gnu_ld" = no; then
 
17690
        case "$host_cpu" in
 
17691
        hppa*64*)
 
17692
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17693
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17694
          hardcode_libdir_separator_GCJ=:
 
17695
          hardcode_direct_GCJ=no
 
17696
          hardcode_shlibpath_var_GCJ=no
 
17697
          ;;
 
17698
        ia64*)
 
17699
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17700
          hardcode_direct_GCJ=no
 
17701
          hardcode_shlibpath_var_GCJ=no
 
17702
 
 
17703
          # hardcode_minus_L: Not really in the search PATH,
 
17704
          # but as the default location of the library.
 
17705
          hardcode_minus_L_GCJ=yes
 
17706
          ;;
 
17707
        *)
 
17708
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17709
          hardcode_libdir_separator_GCJ=:
 
17710
          hardcode_direct_GCJ=yes
 
17711
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17712
 
 
17713
          # hardcode_minus_L: Not really in the search PATH,
 
17714
          # but as the default location of the library.
 
17715
          hardcode_minus_L_GCJ=yes
 
17716
          ;;
 
17717
        esac
 
17718
      fi
 
17719
      ;;
 
17720
 
 
17721
    irix5* | irix6* | nonstopux*)
 
17722
      if test "$GCC" = yes; then
 
17723
        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'
 
17724
      else
 
17725
        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'
 
17726
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17727
      fi
 
17728
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17729
      hardcode_libdir_separator_GCJ=:
 
17730
      link_all_deplibs_GCJ=yes
 
17731
      ;;
 
17732
 
 
17733
    netbsd* | knetbsd*-gnu)
 
17734
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17735
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17736
      else
 
17737
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17738
      fi
 
17739
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17740
      hardcode_direct_GCJ=yes
 
17741
      hardcode_shlibpath_var_GCJ=no
 
17742
      ;;
 
17743
 
 
17744
    newsos6)
 
17745
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17746
      hardcode_direct_GCJ=yes
 
17747
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17748
      hardcode_libdir_separator_GCJ=:
 
17749
      hardcode_shlibpath_var_GCJ=no
 
17750
      ;;
 
17751
 
 
17752
    openbsd*)
 
17753
      hardcode_direct_GCJ=yes
 
17754
      hardcode_shlibpath_var_GCJ=no
 
17755
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17756
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17757
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17758
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17759
      else
 
17760
       case $host_os in
 
17761
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17762
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17763
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17764
           ;;
 
17765
         *)
 
17766
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17767
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17768
           ;;
 
17769
       esac
 
17770
      fi
 
17771
      ;;
 
17772
 
 
17773
    os2*)
 
17774
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17775
      hardcode_minus_L_GCJ=yes
 
17776
      allow_undefined_flag_GCJ=unsupported
 
17777
      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'
 
17778
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17779
      ;;
 
17780
 
 
17781
    osf3*)
 
17782
      if test "$GCC" = yes; then
 
17783
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17784
        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'
 
17785
      else
 
17786
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17787
        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'
 
17788
      fi
 
17789
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17790
      hardcode_libdir_separator_GCJ=:
 
17791
      ;;
 
17792
 
 
17793
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17794
      if test "$GCC" = yes; then
 
17795
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17796
        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'
 
17797
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17798
      else
 
17799
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17800
        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'
 
17801
        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~
 
17802
        $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'
 
17803
 
 
17804
        # Both c and cxx compiler support -rpath directly
 
17805
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17806
      fi
 
17807
      hardcode_libdir_separator_GCJ=:
 
17808
      ;;
 
17809
 
 
17810
    sco3.2v5*)
 
17811
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17812
      hardcode_shlibpath_var_GCJ=no
 
17813
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17814
      runpath_var=LD_RUN_PATH
 
17815
      hardcode_runpath_var=yes
 
17816
      ;;
 
17817
 
 
17818
    solaris*)
 
17819
      no_undefined_flag_GCJ=' -z text'
 
17820
      if test "$GCC" = yes; then
 
17821
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17822
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17823
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17824
      else
 
17825
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17826
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17827
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17828
      fi
 
17829
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17830
      hardcode_shlibpath_var_GCJ=no
 
17831
      case $host_os in
 
17832
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17833
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17834
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17835
      esac
 
17836
      link_all_deplibs_GCJ=yes
 
17837
      ;;
 
17838
 
 
17839
    sunos4*)
 
17840
      if test "x$host_vendor" = xsequent; then
 
17841
        # Use $CC to link under sequent, because it throws in some extra .o
 
17842
        # files that make .init and .fini sections work.
 
17843
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17844
      else
 
17845
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17846
      fi
 
17847
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17848
      hardcode_direct_GCJ=yes
 
17849
      hardcode_minus_L_GCJ=yes
 
17850
      hardcode_shlibpath_var_GCJ=no
 
17851
      ;;
 
17852
 
 
17853
    sysv4)
 
17854
      case $host_vendor in
 
17855
        sni)
 
17856
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17857
          hardcode_direct_GCJ=yes # is this really true???
 
17858
        ;;
 
17859
        siemens)
 
17860
          ## LD is ld it makes a PLAMLIB
 
17861
          ## CC just makes a GrossModule.
 
17862
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17863
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17864
          hardcode_direct_GCJ=no
 
17865
        ;;
 
17866
        motorola)
 
17867
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17868
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17869
        ;;
 
17870
      esac
 
17871
      runpath_var='LD_RUN_PATH'
 
17872
      hardcode_shlibpath_var_GCJ=no
 
17873
      ;;
 
17874
 
 
17875
    sysv4.3*)
 
17876
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17877
      hardcode_shlibpath_var_GCJ=no
 
17878
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17879
      ;;
 
17880
 
 
17881
    sysv4*MP*)
 
17882
      if test -d /usr/nec; then
 
17883
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17884
        hardcode_shlibpath_var_GCJ=no
 
17885
        runpath_var=LD_RUN_PATH
 
17886
        hardcode_runpath_var=yes
 
17887
        ld_shlibs_GCJ=yes
 
17888
      fi
 
17889
      ;;
 
17890
 
 
17891
    sysv4.2uw2*)
 
17892
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17893
      hardcode_direct_GCJ=yes
 
17894
      hardcode_minus_L_GCJ=no
 
17895
      hardcode_shlibpath_var_GCJ=no
 
17896
      hardcode_runpath_var=yes
 
17897
      runpath_var=LD_RUN_PATH
 
17898
      ;;
 
17899
 
 
17900
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17901
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17902
      if test "$GCC" = yes; then
 
17903
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17904
      else
 
17905
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17906
      fi
 
17907
      runpath_var='LD_RUN_PATH'
 
17908
      hardcode_shlibpath_var_GCJ=no
 
17909
      ;;
 
17910
 
 
17911
    sysv5*)
 
17912
      no_undefined_flag_GCJ=' -z text'
 
17913
      # $CC -shared without GNU ld will not create a library from C++
 
17914
      # object files and a static libstdc++, better avoid it by now
 
17915
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17916
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17917
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17918
      hardcode_libdir_flag_spec_GCJ=
 
17919
      hardcode_shlibpath_var_GCJ=no
 
17920
      runpath_var='LD_RUN_PATH'
 
17921
      ;;
 
17922
 
 
17923
    uts4*)
 
17924
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17925
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17926
      hardcode_shlibpath_var_GCJ=no
 
17927
      ;;
 
17928
 
 
17929
    *)
 
17930
      ld_shlibs_GCJ=no
 
17931
      ;;
 
17932
    esac
 
17933
  fi
 
17934
 
 
17935
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17936
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17937
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17938
 
 
17939
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17940
if test "$GCC" = yes; then
 
17941
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17942
fi
 
17943
 
 
17944
#
 
17945
# Do we need to explicitly link libc?
 
17946
#
 
17947
case "x$archive_cmds_need_lc_GCJ" in
 
17948
x|xyes)
 
17949
  # Assume -lc should be added
 
17950
  archive_cmds_need_lc_GCJ=yes
 
17951
 
 
17952
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17953
    case $archive_cmds_GCJ in
 
17954
    *'~'*)
 
17955
      # FIXME: we may have to deal with multi-command sequences.
 
17956
      ;;
 
17957
    '$CC '*)
 
17958
      # Test whether the compiler implicitly links with -lc since on some
 
17959
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17960
      # to ld, don't add -lc before -lgcc.
 
17961
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17962
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17963
      $rm conftest*
 
17964
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17965
 
 
17966
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17967
  (eval $ac_compile) 2>&5
 
17968
  ac_status=$?
 
17969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17970
  (exit $ac_status); } 2>conftest.err; then
 
17971
        soname=conftest
 
17972
        lib=conftest
 
17973
        libobjs=conftest.$ac_objext
 
17974
        deplibs=
 
17975
        wl=$lt_prog_compiler_wl_GCJ
 
17976
        compiler_flags=-v
 
17977
        linker_flags=-v
 
17978
        verstring=
 
17979
        output_objdir=.
 
17980
        libname=conftest
 
17981
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17982
        allow_undefined_flag_GCJ=
 
17983
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17984
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17985
  ac_status=$?
 
17986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17987
  (exit $ac_status); }
 
17988
        then
 
17989
          archive_cmds_need_lc_GCJ=no
 
17990
        else
 
17991
          archive_cmds_need_lc_GCJ=yes
 
17992
        fi
 
17993
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17994
      else
 
17995
        cat conftest.err 1>&5
 
17996
      fi
 
17997
      $rm conftest*
 
17998
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17999
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
18000
      ;;
 
18001
    esac
 
18002
  fi
 
18003
  ;;
 
18004
esac
 
18005
 
 
18006
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18007
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18008
library_names_spec=
 
18009
libname_spec='lib$name'
 
18010
soname_spec=
 
18011
shrext_cmds=".so"
 
18012
postinstall_cmds=
 
18013
postuninstall_cmds=
 
18014
finish_cmds=
 
18015
finish_eval=
 
18016
shlibpath_var=
 
18017
shlibpath_overrides_runpath=unknown
 
18018
version_type=none
 
18019
dynamic_linker="$host_os ld.so"
 
18020
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18021
if test "$GCC" = yes; then
 
18022
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18023
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18024
    # if the path contains ";" then we assume it to be the separator
 
18025
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18026
    # assumed that no part of a normal pathname contains ";" but that should
 
18027
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18028
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18029
  else
 
18030
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18031
  fi
 
18032
else
 
18033
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18034
fi
 
18035
need_lib_prefix=unknown
 
18036
hardcode_into_libs=no
 
18037
 
 
18038
# when you set need_version to no, make sure it does not cause -set_version
 
18039
# flags to be left without arguments
 
18040
need_version=unknown
 
18041
 
 
18042
case $host_os in
 
18043
aix3*)
 
18044
  version_type=linux
 
18045
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18046
  shlibpath_var=LIBPATH
 
18047
 
 
18048
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18049
  soname_spec='${libname}${release}${shared_ext}$major'
 
18050
  ;;
 
18051
 
 
18052
aix4* | aix5*)
 
18053
  version_type=linux
 
18054
  need_lib_prefix=no
 
18055
  need_version=no
 
18056
  hardcode_into_libs=yes
 
18057
  if test "$host_cpu" = ia64; then
 
18058
    # AIX 5 supports IA64
 
18059
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18060
    shlibpath_var=LD_LIBRARY_PATH
 
18061
  else
 
18062
    # With GCC up to 2.95.x, collect2 would create an import file
 
18063
    # for dependence libraries.  The import file would start with
 
18064
    # the line `#! .'.  This would cause the generated library to
 
18065
    # depend on `.', always an invalid library.  This was fixed in
 
18066
    # development snapshots of GCC prior to 3.0.
 
18067
    case $host_os in
 
18068
      aix4 | aix4.[01] | aix4.[01].*)
 
18069
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18070
           echo ' yes '
 
18071
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18072
        :
 
18073
      else
 
18074
        can_build_shared=no
 
18075
      fi
 
18076
      ;;
 
18077
    esac
 
18078
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18079
    # soname into executable. Probably we can add versioning support to
 
18080
    # collect2, so additional links can be useful in future.
 
18081
    if test "$aix_use_runtimelinking" = yes; then
 
18082
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18083
      # instead of lib<name>.a to let people know that these are not
 
18084
      # typical AIX shared libraries.
 
18085
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18086
    else
 
18087
      # We preserve .a as extension for shared libraries through AIX4.2
 
18088
      # and later when we are not doing run time linking.
 
18089
      library_names_spec='${libname}${release}.a $libname.a'
 
18090
      soname_spec='${libname}${release}${shared_ext}$major'
 
18091
    fi
 
18092
    shlibpath_var=LIBPATH
 
18093
  fi
 
18094
  ;;
 
18095
 
 
18096
amigaos*)
 
18097
  library_names_spec='$libname.ixlibrary $libname.a'
 
18098
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18099
  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'
 
18100
  ;;
 
18101
 
 
18102
beos*)
 
18103
  library_names_spec='${libname}${shared_ext}'
 
18104
  dynamic_linker="$host_os ld.so"
 
18105
  shlibpath_var=LIBRARY_PATH
 
18106
  ;;
 
18107
 
 
18108
bsdi4*)
 
18109
  version_type=linux
 
18110
  need_version=no
 
18111
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18112
  soname_spec='${libname}${release}${shared_ext}$major'
 
18113
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18114
  shlibpath_var=LD_LIBRARY_PATH
 
18115
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18116
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18117
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18118
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18119
  # libtool to hard-code these into programs
 
18120
  ;;
 
18121
 
 
18122
cygwin* | mingw* | pw32*)
 
18123
  version_type=windows
 
18124
  shrext_cmds=".dll"
 
18125
  need_version=no
 
18126
  need_lib_prefix=no
 
18127
 
 
18128
  case $GCC,$host_os in
 
18129
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18130
    library_names_spec='$libname.dll.a'
 
18131
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18132
    postinstall_cmds='base_file=`basename \${file}`~
 
18133
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18134
      dldir=$destdir/`dirname \$dlpath`~
 
18135
      test -d \$dldir || mkdir -p \$dldir~
 
18136
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18137
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18138
      dlpath=$dir/\$dldll~
 
18139
       $rm \$dlpath'
 
18140
    shlibpath_overrides_runpath=yes
 
18141
 
 
18142
    case $host_os in
 
18143
    cygwin*)
 
18144
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18145
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18146
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18147
      ;;
 
18148
    mingw*)
 
18149
      # MinGW DLLs use traditional 'lib' prefix
 
18150
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18151
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18152
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18153
        # It is most probably a Windows format PATH printed by
 
18154
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18155
        # path with ; separators, and with drive letters. We can handle the
 
18156
        # drive letters (cygwin fileutils understands them), so leave them,
 
18157
        # especially as we might pass files found there to a mingw objdump,
 
18158
        # which wouldn't understand a cygwinified path. Ahh.
 
18159
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18160
      else
 
18161
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18162
      fi
 
18163
      ;;
 
18164
    pw32*)
 
18165
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18166
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18167
      ;;
 
18168
    esac
 
18169
    ;;
 
18170
 
 
18171
  *)
 
18172
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18173
    ;;
 
18174
  esac
 
18175
  dynamic_linker='Win32 ld.exe'
 
18176
  # FIXME: first we should search . and the directory the executable is in
 
18177
  shlibpath_var=PATH
 
18178
  ;;
 
18179
 
 
18180
darwin* | rhapsody*)
 
18181
  dynamic_linker="$host_os dyld"
 
18182
  version_type=darwin
 
18183
  need_lib_prefix=no
 
18184
  need_version=no
 
18185
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18186
  soname_spec='${libname}${release}${major}$shared_ext'
 
18187
  shlibpath_overrides_runpath=yes
 
18188
  shlibpath_var=DYLD_LIBRARY_PATH
 
18189
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
18190
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18191
  if test "$GCC" = yes; then
 
18192
    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"`
 
18193
  else
 
18194
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18195
  fi
 
18196
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18197
  ;;
 
18198
 
 
18199
dgux*)
 
18200
  version_type=linux
 
18201
  need_lib_prefix=no
 
18202
  need_version=no
 
18203
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18204
  soname_spec='${libname}${release}${shared_ext}$major'
 
18205
  shlibpath_var=LD_LIBRARY_PATH
 
18206
  ;;
 
18207
 
 
18208
freebsd1*)
 
18209
  dynamic_linker=no
 
18210
  ;;
 
18211
 
 
18212
kfreebsd*-gnu)
 
18213
  version_type=linux
 
18214
  need_lib_prefix=no
 
18215
  need_version=no
 
18216
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18217
  soname_spec='${libname}${release}${shared_ext}$major'
 
18218
  shlibpath_var=LD_LIBRARY_PATH
 
18219
  shlibpath_overrides_runpath=no
 
18220
  hardcode_into_libs=yes
 
18221
  dynamic_linker='GNU ld.so'
 
18222
  ;;
 
18223
 
 
18224
freebsd*)
 
18225
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18226
  version_type=freebsd-$objformat
 
18227
  case $version_type in
 
18228
    freebsd-elf*)
 
18229
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18230
      need_version=no
 
18231
      need_lib_prefix=no
 
18232
      ;;
 
18233
    freebsd-*)
 
18234
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18235
      need_version=yes
 
18236
      ;;
 
18237
  esac
 
18238
  shlibpath_var=LD_LIBRARY_PATH
 
18239
  case $host_os in
 
18240
  freebsd2*)
 
18241
    shlibpath_overrides_runpath=yes
 
18242
    ;;
 
18243
  freebsd3.01* | freebsdelf3.01*)
 
18244
    shlibpath_overrides_runpath=yes
 
18245
    hardcode_into_libs=yes
 
18246
    ;;
 
18247
  *) # from 3.2 on
 
18248
    shlibpath_overrides_runpath=no
 
18249
    hardcode_into_libs=yes
 
18250
    ;;
 
18251
  esac
 
18252
  ;;
 
18253
 
 
18254
gnu*)
 
18255
  version_type=linux
 
18256
  need_lib_prefix=no
 
18257
  need_version=no
 
18258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18259
  soname_spec='${libname}${release}${shared_ext}$major'
 
18260
  shlibpath_var=LD_LIBRARY_PATH
 
18261
  hardcode_into_libs=yes
 
18262
  ;;
 
18263
 
 
18264
hpux9* | hpux10* | hpux11*)
 
18265
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18266
  # link against other versions.
 
18267
  version_type=sunos
 
18268
  need_lib_prefix=no
 
18269
  need_version=no
 
18270
  case "$host_cpu" in
 
18271
  ia64*)
 
18272
    shrext_cmds='.so'
 
18273
    hardcode_into_libs=yes
 
18274
    dynamic_linker="$host_os dld.so"
 
18275
    shlibpath_var=LD_LIBRARY_PATH
 
18276
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18277
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18278
    soname_spec='${libname}${release}${shared_ext}$major'
 
18279
    if test "X$HPUX_IA64_MODE" = X32; then
 
18280
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18281
    else
 
18282
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18283
    fi
 
18284
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18285
    ;;
 
18286
   hppa*64*)
 
18287
     shrext_cmds='.sl'
 
18288
     hardcode_into_libs=yes
 
18289
     dynamic_linker="$host_os dld.sl"
 
18290
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18291
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18292
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18293
     soname_spec='${libname}${release}${shared_ext}$major'
 
18294
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18295
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18296
     ;;
 
18297
   *)
 
18298
    shrext_cmds='.sl'
 
18299
    dynamic_linker="$host_os dld.sl"
 
18300
    shlibpath_var=SHLIB_PATH
 
18301
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18302
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18303
    soname_spec='${libname}${release}${shared_ext}$major'
 
18304
    ;;
 
18305
  esac
 
18306
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18307
  postinstall_cmds='chmod 555 $lib'
 
18308
  ;;
 
18309
 
 
18310
irix5* | irix6* | nonstopux*)
 
18311
  case $host_os in
 
18312
    nonstopux*) version_type=nonstopux ;;
 
18313
    *)
 
18314
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18315
                version_type=linux
 
18316
        else
 
18317
                version_type=irix
 
18318
        fi ;;
 
18319
  esac
 
18320
  need_lib_prefix=no
 
18321
  need_version=no
 
18322
  soname_spec='${libname}${release}${shared_ext}$major'
 
18323
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18324
  case $host_os in
 
18325
  irix5* | nonstopux*)
 
18326
    libsuff= shlibsuff=
 
18327
    ;;
 
18328
  *)
 
18329
    case $LD in # libtool.m4 will add one of these switches to LD
 
18330
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18331
      libsuff= shlibsuff= libmagic=32-bit;;
 
18332
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18333
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18334
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18335
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18336
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18337
    esac
 
18338
    ;;
 
18339
  esac
 
18340
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18341
  shlibpath_overrides_runpath=no
 
18342
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18343
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18344
  hardcode_into_libs=yes
 
18345
  ;;
 
18346
 
 
18347
# No shared lib support for Linux oldld, aout, or coff.
 
18348
linux*oldld* | linux*aout* | linux*coff*)
 
18349
  dynamic_linker=no
 
18350
  ;;
 
18351
 
 
18352
# This must be Linux ELF.
 
18353
linux*)
 
18354
  version_type=linux
 
18355
  need_lib_prefix=no
 
18356
  need_version=no
 
18357
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18358
  soname_spec='${libname}${release}${shared_ext}$major'
 
18359
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18360
  shlibpath_var=LD_LIBRARY_PATH
 
18361
  shlibpath_overrides_runpath=no
 
18362
  # This implies no fast_install, which is unacceptable.
 
18363
  # Some rework will be needed to allow for fast_install
 
18364
  # before this can be enabled.
 
18365
  hardcode_into_libs=yes
 
18366
 
 
18367
  # Append ld.so.conf contents to the search path
 
18368
  if test -f /etc/ld.so.conf; then
 
18369
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
18370
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18371
  fi
 
18372
 
 
18373
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18374
  # powerpc, because MkLinux only supported shared libraries with the
 
18375
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18376
  # most powerpc-linux boxes support dynamic linking these days and
 
18377
  # people can always --disable-shared, the test was removed, and we
 
18378
  # assume the GNU/Linux dynamic linker is in use.
 
18379
  dynamic_linker='GNU/Linux ld.so'
 
18380
  ;;
 
18381
 
 
18382
knetbsd*-gnu)
 
18383
  version_type=linux
 
18384
  need_lib_prefix=no
 
18385
  need_version=no
 
18386
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18387
  soname_spec='${libname}${release}${shared_ext}$major'
 
18388
  shlibpath_var=LD_LIBRARY_PATH
 
18389
  shlibpath_overrides_runpath=no
 
18390
  hardcode_into_libs=yes
 
18391
  dynamic_linker='GNU ld.so'
 
18392
  ;;
 
18393
 
 
18394
netbsd*)
 
18395
  version_type=sunos
 
18396
  need_lib_prefix=no
 
18397
  need_version=no
 
18398
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18399
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18400
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18401
    dynamic_linker='NetBSD (a.out) ld.so'
 
18402
  else
 
18403
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18404
    soname_spec='${libname}${release}${shared_ext}$major'
 
18405
    dynamic_linker='NetBSD ld.elf_so'
 
18406
  fi
 
18407
  shlibpath_var=LD_LIBRARY_PATH
 
18408
  shlibpath_overrides_runpath=yes
 
18409
  hardcode_into_libs=yes
 
18410
  ;;
 
18411
 
 
18412
newsos6)
 
18413
  version_type=linux
 
18414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18415
  shlibpath_var=LD_LIBRARY_PATH
 
18416
  shlibpath_overrides_runpath=yes
 
18417
  ;;
 
18418
 
 
18419
nto-qnx*)
 
18420
  version_type=linux
 
18421
  need_lib_prefix=no
 
18422
  need_version=no
 
18423
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18424
  soname_spec='${libname}${release}${shared_ext}$major'
 
18425
  shlibpath_var=LD_LIBRARY_PATH
 
18426
  shlibpath_overrides_runpath=yes
 
18427
  ;;
 
18428
 
 
18429
openbsd*)
 
18430
  version_type=sunos
 
18431
  need_lib_prefix=no
 
18432
  need_version=yes
 
18433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18434
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18435
  shlibpath_var=LD_LIBRARY_PATH
 
18436
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18437
    case $host_os in
 
18438
      openbsd2.[89] | openbsd2.[89].*)
 
18439
        shlibpath_overrides_runpath=no
 
18440
        ;;
 
18441
      *)
 
18442
        shlibpath_overrides_runpath=yes
 
18443
        ;;
 
18444
      esac
 
18445
  else
 
18446
    shlibpath_overrides_runpath=yes
 
18447
  fi
 
18448
  ;;
 
18449
 
 
18450
os2*)
 
18451
  libname_spec='$name'
 
18452
  shrext_cmds=".dll"
 
18453
  need_lib_prefix=no
 
18454
  library_names_spec='$libname${shared_ext} $libname.a'
 
18455
  dynamic_linker='OS/2 ld.exe'
 
18456
  shlibpath_var=LIBPATH
 
18457
  ;;
 
18458
 
 
18459
osf3* | osf4* | osf5*)
 
18460
  version_type=osf
 
18461
  need_lib_prefix=no
 
18462
  need_version=no
 
18463
  soname_spec='${libname}${release}${shared_ext}$major'
 
18464
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18465
  shlibpath_var=LD_LIBRARY_PATH
 
18466
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18467
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18468
  ;;
 
18469
 
 
18470
sco3.2v5*)
 
18471
  version_type=osf
 
18472
  soname_spec='${libname}${release}${shared_ext}$major'
 
18473
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18474
  shlibpath_var=LD_LIBRARY_PATH
 
18475
  ;;
 
18476
 
 
18477
solaris*)
 
18478
  version_type=linux
 
18479
  need_lib_prefix=no
 
18480
  need_version=no
 
18481
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18482
  soname_spec='${libname}${release}${shared_ext}$major'
 
18483
  shlibpath_var=LD_LIBRARY_PATH
 
18484
  shlibpath_overrides_runpath=yes
 
18485
  hardcode_into_libs=yes
 
18486
  # ldd complains unless libraries are executable
 
18487
  postinstall_cmds='chmod +x $lib'
 
18488
  ;;
 
18489
 
 
18490
sunos4*)
 
18491
  version_type=sunos
 
18492
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18493
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18494
  shlibpath_var=LD_LIBRARY_PATH
 
18495
  shlibpath_overrides_runpath=yes
 
18496
  if test "$with_gnu_ld" = yes; then
 
18497
    need_lib_prefix=no
 
18498
  fi
 
18499
  need_version=yes
 
18500
  ;;
 
18501
 
 
18502
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18503
  version_type=linux
 
18504
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18505
  soname_spec='${libname}${release}${shared_ext}$major'
 
18506
  shlibpath_var=LD_LIBRARY_PATH
 
18507
  case $host_vendor in
 
18508
    sni)
 
18509
      shlibpath_overrides_runpath=no
 
18510
      need_lib_prefix=no
 
18511
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18512
      runpath_var=LD_RUN_PATH
 
18513
      ;;
 
18514
    siemens)
 
18515
      need_lib_prefix=no
 
18516
      ;;
 
18517
    motorola)
 
18518
      need_lib_prefix=no
 
18519
      need_version=no
 
18520
      shlibpath_overrides_runpath=no
 
18521
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18522
      ;;
 
18523
  esac
 
18524
  ;;
 
18525
 
 
18526
sysv4*MP*)
 
18527
  if test -d /usr/nec ;then
 
18528
    version_type=linux
 
18529
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18530
    soname_spec='$libname${shared_ext}.$major'
 
18531
    shlibpath_var=LD_LIBRARY_PATH
 
18532
  fi
 
18533
  ;;
 
18534
 
 
18535
uts4*)
 
18536
  version_type=linux
 
18537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18538
  soname_spec='${libname}${release}${shared_ext}$major'
 
18539
  shlibpath_var=LD_LIBRARY_PATH
 
18540
  ;;
 
18541
 
 
18542
*)
 
18543
  dynamic_linker=no
 
18544
  ;;
 
18545
esac
 
18546
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18547
echo "${ECHO_T}$dynamic_linker" >&6
 
18548
test "$dynamic_linker" = no && can_build_shared=no
 
18549
 
 
18550
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18551
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18552
hardcode_action_GCJ=
 
18553
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18554
   test -n "$runpath_var GCJ" || \
 
18555
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
18556
 
 
18557
  # We can hardcode non-existant directories.
 
18558
  if test "$hardcode_direct_GCJ" != no &&
 
18559
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18560
     # have to relink, otherwise we might link with an installed library
 
18561
     # when we should be linking with a yet-to-be-installed one
 
18562
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18563
     test "$hardcode_minus_L_GCJ" != no; then
 
18564
    # Linking always hardcodes the temporary library directory.
 
18565
    hardcode_action_GCJ=relink
 
18566
  else
 
18567
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18568
    hardcode_action_GCJ=immediate
 
18569
  fi
 
18570
else
 
18571
  # We cannot hardcode anything, or else we can only hardcode existing
 
18572
  # directories.
 
18573
  hardcode_action_GCJ=unsupported
 
18574
fi
 
18575
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18576
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18577
 
 
18578
if test "$hardcode_action_GCJ" = relink; then
 
18579
  # Fast installation is not supported
 
18580
  enable_fast_install=no
 
18581
elif test "$shlibpath_overrides_runpath" = yes ||
 
18582
     test "$enable_shared" = no; then
 
18583
  # Fast installation is not necessary
 
18584
  enable_fast_install=needless
 
18585
fi
 
18586
 
 
18587
striplib=
 
18588
old_striplib=
 
18589
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
18590
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
18591
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
18592
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
18593
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
18594
  echo "$as_me:$LINENO: result: yes" >&5
 
18595
echo "${ECHO_T}yes" >&6
 
18596
else
 
18597
# FIXME - insert some real tests, host_os isn't really good enough
 
18598
  case $host_os in
 
18599
   darwin*)
 
18600
       if test -n "$STRIP" ; then
 
18601
         striplib="$STRIP -x"
 
18602
         echo "$as_me:$LINENO: result: yes" >&5
 
18603
echo "${ECHO_T}yes" >&6
 
18604
       else
 
18605
  echo "$as_me:$LINENO: result: no" >&5
 
18606
echo "${ECHO_T}no" >&6
 
18607
fi
 
18608
       ;;
 
18609
   *)
 
18610
  echo "$as_me:$LINENO: result: no" >&5
 
18611
echo "${ECHO_T}no" >&6
 
18612
    ;;
 
18613
  esac
 
18614
fi
 
18615
 
 
18616
if test "x$enable_dlopen" != xyes; then
 
18617
  enable_dlopen=unknown
 
18618
  enable_dlopen_self=unknown
 
18619
  enable_dlopen_self_static=unknown
 
18620
else
 
18621
  lt_cv_dlopen=no
 
18622
  lt_cv_dlopen_libs=
 
18623
 
 
18624
  case $host_os in
 
18625
  beos*)
 
18626
    lt_cv_dlopen="load_add_on"
 
18627
    lt_cv_dlopen_libs=
 
18628
    lt_cv_dlopen_self=yes
 
18629
    ;;
 
18630
 
 
18631
  mingw* | pw32*)
 
18632
    lt_cv_dlopen="LoadLibrary"
 
18633
    lt_cv_dlopen_libs=
 
18634
   ;;
 
18635
 
 
18636
  cygwin*)
 
18637
    lt_cv_dlopen="dlopen"
 
18638
    lt_cv_dlopen_libs=
 
18639
   ;;
 
18640
 
 
18641
  darwin*)
 
18642
  # if libdl is installed we need to link against it
 
18643
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18644
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18645
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18647
else
 
18648
  ac_check_lib_save_LIBS=$LIBS
 
18649
LIBS="-ldl  $LIBS"
 
18650
cat >conftest.$ac_ext <<_ACEOF
 
18651
/* confdefs.h.  */
 
18652
_ACEOF
 
18653
cat confdefs.h >>conftest.$ac_ext
 
18654
cat >>conftest.$ac_ext <<_ACEOF
 
18655
/* end confdefs.h.  */
 
18656
 
 
18657
/* Override any gcc2 internal prototype to avoid an error.  */
 
18658
#ifdef __cplusplus
 
18659
extern "C"
 
18660
#endif
 
18661
/* We use char because int might match the return type of a gcc2
 
18662
   builtin and then its argument prototype would still apply.  */
 
18663
char dlopen ();
 
18664
int
 
18665
main ()
 
18666
{
 
18667
dlopen ();
 
18668
  ;
 
18669
  return 0;
 
18670
}
 
18671
_ACEOF
 
18672
rm -f conftest.$ac_objext conftest$ac_exeext
 
18673
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18674
  (eval $ac_link) 2>conftest.er1
 
18675
  ac_status=$?
 
18676
  grep -v '^ *+' conftest.er1 >conftest.err
 
18677
  rm -f conftest.er1
 
18678
  cat conftest.err >&5
 
18679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18680
  (exit $ac_status); } &&
 
18681
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18683
  (eval $ac_try) 2>&5
 
18684
  ac_status=$?
 
18685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18686
  (exit $ac_status); }; } &&
 
18687
         { ac_try='test -s conftest$ac_exeext'
 
18688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18689
  (eval $ac_try) 2>&5
 
18690
  ac_status=$?
 
18691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18692
  (exit $ac_status); }; }; then
 
18693
  ac_cv_lib_dl_dlopen=yes
 
18694
else
 
18695
  echo "$as_me: failed program was:" >&5
 
18696
sed 's/^/| /' conftest.$ac_ext >&5
 
18697
 
 
18698
ac_cv_lib_dl_dlopen=no
 
18699
fi
 
18700
rm -f conftest.err conftest.$ac_objext \
 
18701
      conftest$ac_exeext conftest.$ac_ext
 
18702
LIBS=$ac_check_lib_save_LIBS
 
18703
fi
 
18704
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18705
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18706
if test $ac_cv_lib_dl_dlopen = yes; then
 
18707
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18708
else
 
18709
 
 
18710
    lt_cv_dlopen="dyld"
 
18711
    lt_cv_dlopen_libs=
 
18712
    lt_cv_dlopen_self=yes
 
18713
 
 
18714
fi
 
18715
 
 
18716
   ;;
 
18717
 
 
18718
  *)
 
18719
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18720
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18721
if test "${ac_cv_func_shl_load+set}" = set; then
 
18722
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18723
else
 
18724
  cat >conftest.$ac_ext <<_ACEOF
 
18725
/* confdefs.h.  */
 
18726
_ACEOF
 
18727
cat confdefs.h >>conftest.$ac_ext
 
18728
cat >>conftest.$ac_ext <<_ACEOF
 
18729
/* end confdefs.h.  */
 
18730
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18731
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18732
#define shl_load innocuous_shl_load
 
18733
 
 
18734
/* System header to define __stub macros and hopefully few prototypes,
 
18735
    which can conflict with char shl_load (); below.
 
18736
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18737
    <limits.h> exists even on freestanding compilers.  */
 
18738
 
 
18739
#ifdef __STDC__
 
18740
# include <limits.h>
 
18741
#else
 
18742
# include <assert.h>
 
18743
#endif
 
18744
 
 
18745
#undef shl_load
 
18746
 
 
18747
/* Override any gcc2 internal prototype to avoid an error.  */
 
18748
#ifdef __cplusplus
 
18749
extern "C"
 
18750
{
 
18751
#endif
 
18752
/* We use char because int might match the return type of a gcc2
 
18753
   builtin and then its argument prototype would still apply.  */
 
18754
char shl_load ();
 
18755
/* The GNU C library defines this for functions which it implements
 
18756
    to always fail with ENOSYS.  Some functions are actually named
 
18757
    something starting with __ and the normal name is an alias.  */
 
18758
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18759
choke me
 
18760
#else
 
18761
char (*f) () = shl_load;
 
18762
#endif
 
18763
#ifdef __cplusplus
 
18764
}
 
18765
#endif
 
18766
 
 
18767
int
 
18768
main ()
 
18769
{
 
18770
return f != shl_load;
 
18771
  ;
 
18772
  return 0;
 
18773
}
 
18774
_ACEOF
 
18775
rm -f conftest.$ac_objext conftest$ac_exeext
 
18776
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18777
  (eval $ac_link) 2>conftest.er1
 
18778
  ac_status=$?
 
18779
  grep -v '^ *+' conftest.er1 >conftest.err
 
18780
  rm -f conftest.er1
 
18781
  cat conftest.err >&5
 
18782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18783
  (exit $ac_status); } &&
 
18784
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18786
  (eval $ac_try) 2>&5
 
18787
  ac_status=$?
 
18788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18789
  (exit $ac_status); }; } &&
 
18790
         { ac_try='test -s conftest$ac_exeext'
 
18791
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18792
  (eval $ac_try) 2>&5
 
18793
  ac_status=$?
 
18794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18795
  (exit $ac_status); }; }; then
 
18796
  ac_cv_func_shl_load=yes
 
18797
else
 
18798
  echo "$as_me: failed program was:" >&5
 
18799
sed 's/^/| /' conftest.$ac_ext >&5
 
18800
 
 
18801
ac_cv_func_shl_load=no
 
18802
fi
 
18803
rm -f conftest.err conftest.$ac_objext \
 
18804
      conftest$ac_exeext conftest.$ac_ext
 
18805
fi
 
18806
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18807
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18808
if test $ac_cv_func_shl_load = yes; then
 
18809
  lt_cv_dlopen="shl_load"
 
18810
else
 
18811
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18812
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18813
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18815
else
 
18816
  ac_check_lib_save_LIBS=$LIBS
 
18817
LIBS="-ldld  $LIBS"
 
18818
cat >conftest.$ac_ext <<_ACEOF
 
18819
/* confdefs.h.  */
 
18820
_ACEOF
 
18821
cat confdefs.h >>conftest.$ac_ext
 
18822
cat >>conftest.$ac_ext <<_ACEOF
 
18823
/* end confdefs.h.  */
 
18824
 
 
18825
/* Override any gcc2 internal prototype to avoid an error.  */
 
18826
#ifdef __cplusplus
 
18827
extern "C"
 
18828
#endif
 
18829
/* We use char because int might match the return type of a gcc2
 
18830
   builtin and then its argument prototype would still apply.  */
 
18831
char shl_load ();
 
18832
int
 
18833
main ()
 
18834
{
 
18835
shl_load ();
 
18836
  ;
 
18837
  return 0;
 
18838
}
 
18839
_ACEOF
 
18840
rm -f conftest.$ac_objext conftest$ac_exeext
 
18841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18842
  (eval $ac_link) 2>conftest.er1
 
18843
  ac_status=$?
 
18844
  grep -v '^ *+' conftest.er1 >conftest.err
 
18845
  rm -f conftest.er1
 
18846
  cat conftest.err >&5
 
18847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18848
  (exit $ac_status); } &&
 
18849
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18851
  (eval $ac_try) 2>&5
 
18852
  ac_status=$?
 
18853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18854
  (exit $ac_status); }; } &&
 
18855
         { ac_try='test -s conftest$ac_exeext'
 
18856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18857
  (eval $ac_try) 2>&5
 
18858
  ac_status=$?
 
18859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18860
  (exit $ac_status); }; }; then
 
18861
  ac_cv_lib_dld_shl_load=yes
 
18862
else
 
18863
  echo "$as_me: failed program was:" >&5
 
18864
sed 's/^/| /' conftest.$ac_ext >&5
 
18865
 
 
18866
ac_cv_lib_dld_shl_load=no
 
18867
fi
 
18868
rm -f conftest.err conftest.$ac_objext \
 
18869
      conftest$ac_exeext conftest.$ac_ext
 
18870
LIBS=$ac_check_lib_save_LIBS
 
18871
fi
 
18872
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18873
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18874
if test $ac_cv_lib_dld_shl_load = yes; then
 
18875
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18876
else
 
18877
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18878
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18879
if test "${ac_cv_func_dlopen+set}" = set; then
 
18880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18881
else
 
18882
  cat >conftest.$ac_ext <<_ACEOF
 
18883
/* confdefs.h.  */
 
18884
_ACEOF
 
18885
cat confdefs.h >>conftest.$ac_ext
 
18886
cat >>conftest.$ac_ext <<_ACEOF
 
18887
/* end confdefs.h.  */
 
18888
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18889
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18890
#define dlopen innocuous_dlopen
 
18891
 
 
18892
/* System header to define __stub macros and hopefully few prototypes,
 
18893
    which can conflict with char dlopen (); below.
 
18894
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18895
    <limits.h> exists even on freestanding compilers.  */
 
18896
 
 
18897
#ifdef __STDC__
 
18898
# include <limits.h>
 
18899
#else
 
18900
# include <assert.h>
 
18901
#endif
 
18902
 
 
18903
#undef dlopen
 
18904
 
 
18905
/* Override any gcc2 internal prototype to avoid an error.  */
 
18906
#ifdef __cplusplus
 
18907
extern "C"
 
18908
{
 
18909
#endif
 
18910
/* We use char because int might match the return type of a gcc2
 
18911
   builtin and then its argument prototype would still apply.  */
 
18912
char dlopen ();
 
18913
/* The GNU C library defines this for functions which it implements
 
18914
    to always fail with ENOSYS.  Some functions are actually named
 
18915
    something starting with __ and the normal name is an alias.  */
 
18916
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18917
choke me
 
18918
#else
 
18919
char (*f) () = dlopen;
 
18920
#endif
 
18921
#ifdef __cplusplus
 
18922
}
 
18923
#endif
 
18924
 
 
18925
int
 
18926
main ()
 
18927
{
 
18928
return f != dlopen;
 
18929
  ;
 
18930
  return 0;
 
18931
}
 
18932
_ACEOF
 
18933
rm -f conftest.$ac_objext conftest$ac_exeext
 
18934
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18935
  (eval $ac_link) 2>conftest.er1
 
18936
  ac_status=$?
 
18937
  grep -v '^ *+' conftest.er1 >conftest.err
 
18938
  rm -f conftest.er1
 
18939
  cat conftest.err >&5
 
18940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18941
  (exit $ac_status); } &&
 
18942
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18944
  (eval $ac_try) 2>&5
 
18945
  ac_status=$?
 
18946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18947
  (exit $ac_status); }; } &&
 
18948
         { ac_try='test -s conftest$ac_exeext'
 
18949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18950
  (eval $ac_try) 2>&5
 
18951
  ac_status=$?
 
18952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18953
  (exit $ac_status); }; }; then
 
18954
  ac_cv_func_dlopen=yes
 
18955
else
 
18956
  echo "$as_me: failed program was:" >&5
 
18957
sed 's/^/| /' conftest.$ac_ext >&5
 
18958
 
 
18959
ac_cv_func_dlopen=no
 
18960
fi
 
18961
rm -f conftest.err conftest.$ac_objext \
 
18962
      conftest$ac_exeext conftest.$ac_ext
 
18963
fi
 
18964
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18965
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18966
if test $ac_cv_func_dlopen = yes; then
 
18967
  lt_cv_dlopen="dlopen"
 
18968
else
 
18969
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18970
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18971
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18972
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18973
else
 
18974
  ac_check_lib_save_LIBS=$LIBS
 
18975
LIBS="-ldl  $LIBS"
 
18976
cat >conftest.$ac_ext <<_ACEOF
 
18977
/* confdefs.h.  */
 
18978
_ACEOF
 
18979
cat confdefs.h >>conftest.$ac_ext
 
18980
cat >>conftest.$ac_ext <<_ACEOF
 
18981
/* end confdefs.h.  */
 
18982
 
 
18983
/* Override any gcc2 internal prototype to avoid an error.  */
 
18984
#ifdef __cplusplus
 
18985
extern "C"
 
18986
#endif
 
18987
/* We use char because int might match the return type of a gcc2
 
18988
   builtin and then its argument prototype would still apply.  */
 
18989
char dlopen ();
 
18990
int
 
18991
main ()
 
18992
{
 
18993
dlopen ();
 
18994
  ;
 
18995
  return 0;
 
18996
}
 
18997
_ACEOF
 
18998
rm -f conftest.$ac_objext conftest$ac_exeext
 
18999
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19000
  (eval $ac_link) 2>conftest.er1
 
19001
  ac_status=$?
 
19002
  grep -v '^ *+' conftest.er1 >conftest.err
 
19003
  rm -f conftest.er1
 
19004
  cat conftest.err >&5
 
19005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19006
  (exit $ac_status); } &&
 
19007
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19009
  (eval $ac_try) 2>&5
 
19010
  ac_status=$?
 
19011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19012
  (exit $ac_status); }; } &&
 
19013
         { ac_try='test -s conftest$ac_exeext'
 
19014
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19015
  (eval $ac_try) 2>&5
 
19016
  ac_status=$?
 
19017
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19018
  (exit $ac_status); }; }; then
 
19019
  ac_cv_lib_dl_dlopen=yes
 
19020
else
 
19021
  echo "$as_me: failed program was:" >&5
 
19022
sed 's/^/| /' conftest.$ac_ext >&5
 
19023
 
 
19024
ac_cv_lib_dl_dlopen=no
 
19025
fi
 
19026
rm -f conftest.err conftest.$ac_objext \
 
19027
      conftest$ac_exeext conftest.$ac_ext
 
19028
LIBS=$ac_check_lib_save_LIBS
 
19029
fi
 
19030
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19031
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19032
if test $ac_cv_lib_dl_dlopen = yes; then
 
19033
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19034
else
 
19035
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
19036
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
19037
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
19038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19039
else
 
19040
  ac_check_lib_save_LIBS=$LIBS
 
19041
LIBS="-lsvld  $LIBS"
 
19042
cat >conftest.$ac_ext <<_ACEOF
 
19043
/* confdefs.h.  */
 
19044
_ACEOF
 
19045
cat confdefs.h >>conftest.$ac_ext
 
19046
cat >>conftest.$ac_ext <<_ACEOF
 
19047
/* end confdefs.h.  */
 
19048
 
 
19049
/* Override any gcc2 internal prototype to avoid an error.  */
 
19050
#ifdef __cplusplus
 
19051
extern "C"
 
19052
#endif
 
19053
/* We use char because int might match the return type of a gcc2
 
19054
   builtin and then its argument prototype would still apply.  */
 
19055
char dlopen ();
 
19056
int
 
19057
main ()
 
19058
{
 
19059
dlopen ();
 
19060
  ;
 
19061
  return 0;
 
19062
}
 
19063
_ACEOF
 
19064
rm -f conftest.$ac_objext conftest$ac_exeext
 
19065
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19066
  (eval $ac_link) 2>conftest.er1
 
19067
  ac_status=$?
 
19068
  grep -v '^ *+' conftest.er1 >conftest.err
 
19069
  rm -f conftest.er1
 
19070
  cat conftest.err >&5
 
19071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19072
  (exit $ac_status); } &&
 
19073
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19075
  (eval $ac_try) 2>&5
 
19076
  ac_status=$?
 
19077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19078
  (exit $ac_status); }; } &&
 
19079
         { ac_try='test -s conftest$ac_exeext'
 
19080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19081
  (eval $ac_try) 2>&5
 
19082
  ac_status=$?
 
19083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19084
  (exit $ac_status); }; }; then
 
19085
  ac_cv_lib_svld_dlopen=yes
 
19086
else
 
19087
  echo "$as_me: failed program was:" >&5
 
19088
sed 's/^/| /' conftest.$ac_ext >&5
 
19089
 
 
19090
ac_cv_lib_svld_dlopen=no
 
19091
fi
 
19092
rm -f conftest.err conftest.$ac_objext \
 
19093
      conftest$ac_exeext conftest.$ac_ext
 
19094
LIBS=$ac_check_lib_save_LIBS
 
19095
fi
 
19096
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
19097
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
19098
if test $ac_cv_lib_svld_dlopen = yes; then
 
19099
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
19100
else
 
19101
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
19102
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
19103
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
19104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19105
else
 
19106
  ac_check_lib_save_LIBS=$LIBS
 
19107
LIBS="-ldld  $LIBS"
 
19108
cat >conftest.$ac_ext <<_ACEOF
 
19109
/* confdefs.h.  */
 
19110
_ACEOF
 
19111
cat confdefs.h >>conftest.$ac_ext
 
19112
cat >>conftest.$ac_ext <<_ACEOF
 
19113
/* end confdefs.h.  */
 
19114
 
 
19115
/* Override any gcc2 internal prototype to avoid an error.  */
 
19116
#ifdef __cplusplus
 
19117
extern "C"
 
19118
#endif
 
19119
/* We use char because int might match the return type of a gcc2
 
19120
   builtin and then its argument prototype would still apply.  */
 
19121
char dld_link ();
 
19122
int
 
19123
main ()
 
19124
{
 
19125
dld_link ();
 
19126
  ;
 
19127
  return 0;
 
19128
}
 
19129
_ACEOF
 
19130
rm -f conftest.$ac_objext conftest$ac_exeext
 
19131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19132
  (eval $ac_link) 2>conftest.er1
 
19133
  ac_status=$?
 
19134
  grep -v '^ *+' conftest.er1 >conftest.err
 
19135
  rm -f conftest.er1
 
19136
  cat conftest.err >&5
 
19137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19138
  (exit $ac_status); } &&
 
19139
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19141
  (eval $ac_try) 2>&5
 
19142
  ac_status=$?
 
19143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19144
  (exit $ac_status); }; } &&
 
19145
         { ac_try='test -s conftest$ac_exeext'
 
19146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19147
  (eval $ac_try) 2>&5
 
19148
  ac_status=$?
 
19149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19150
  (exit $ac_status); }; }; then
 
19151
  ac_cv_lib_dld_dld_link=yes
 
19152
else
 
19153
  echo "$as_me: failed program was:" >&5
 
19154
sed 's/^/| /' conftest.$ac_ext >&5
 
19155
 
 
19156
ac_cv_lib_dld_dld_link=no
 
19157
fi
 
19158
rm -f conftest.err conftest.$ac_objext \
 
19159
      conftest$ac_exeext conftest.$ac_ext
 
19160
LIBS=$ac_check_lib_save_LIBS
 
19161
fi
 
19162
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
19163
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
19164
if test $ac_cv_lib_dld_dld_link = yes; then
 
19165
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
19166
fi
 
19167
 
 
19168
 
 
19169
fi
 
19170
 
 
19171
 
 
19172
fi
 
19173
 
 
19174
 
 
19175
fi
 
19176
 
 
19177
 
 
19178
fi
 
19179
 
 
19180
 
 
19181
fi
 
19182
 
 
19183
    ;;
 
19184
  esac
 
19185
 
 
19186
  if test "x$lt_cv_dlopen" != xno; then
 
19187
    enable_dlopen=yes
 
19188
  else
 
19189
    enable_dlopen=no
 
19190
  fi
 
19191
 
 
19192
  case $lt_cv_dlopen in
 
19193
  dlopen)
 
19194
    save_CPPFLAGS="$CPPFLAGS"
 
19195
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
19196
 
 
19197
    save_LDFLAGS="$LDFLAGS"
 
19198
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
19199
 
 
19200
    save_LIBS="$LIBS"
 
19201
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
19202
 
 
19203
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
19204
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
19205
if test "${lt_cv_dlopen_self+set}" = set; then
 
19206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19207
else
 
19208
          if test "$cross_compiling" = yes; then :
 
19209
  lt_cv_dlopen_self=cross
 
19210
else
 
19211
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19212
  lt_status=$lt_dlunknown
 
19213
  cat > conftest.$ac_ext <<EOF
 
19214
#line 19214 "configure"
 
19215
#include "confdefs.h"
 
19216
 
 
19217
#if HAVE_DLFCN_H
 
19218
#include <dlfcn.h>
 
19219
#endif
 
19220
 
 
19221
#include <stdio.h>
 
19222
 
 
19223
#ifdef RTLD_GLOBAL
 
19224
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19225
#else
 
19226
#  ifdef DL_GLOBAL
 
19227
#    define LT_DLGLOBAL         DL_GLOBAL
 
19228
#  else
 
19229
#    define LT_DLGLOBAL         0
 
19230
#  endif
 
19231
#endif
 
19232
 
 
19233
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19234
   find out it does not work in some platform. */
 
19235
#ifndef LT_DLLAZY_OR_NOW
 
19236
#  ifdef RTLD_LAZY
 
19237
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19238
#  else
 
19239
#    ifdef DL_LAZY
 
19240
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19241
#    else
 
19242
#      ifdef RTLD_NOW
 
19243
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19244
#      else
 
19245
#        ifdef DL_NOW
 
19246
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19247
#        else
 
19248
#          define LT_DLLAZY_OR_NOW      0
 
19249
#        endif
 
19250
#      endif
 
19251
#    endif
 
19252
#  endif
 
19253
#endif
 
19254
 
 
19255
#ifdef __cplusplus
 
19256
extern "C" void exit (int);
 
19257
#endif
 
19258
 
 
19259
void fnord() { int i=42;}
 
19260
int main ()
 
19261
{
 
19262
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19263
  int status = $lt_dlunknown;
 
19264
 
 
19265
  if (self)
 
19266
    {
 
19267
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19268
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19269
      /* dlclose (self); */
 
19270
    }
 
19271
 
 
19272
    exit (status);
 
19273
}
 
19274
EOF
 
19275
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19276
  (eval $ac_link) 2>&5
 
19277
  ac_status=$?
 
19278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19279
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19280
    (./conftest; exit; ) 2>/dev/null
 
19281
    lt_status=$?
 
19282
    case x$lt_status in
 
19283
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
19284
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
19285
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
19286
    esac
 
19287
  else :
 
19288
    # compilation failed
 
19289
    lt_cv_dlopen_self=no
 
19290
  fi
 
19291
fi
 
19292
rm -fr conftest*
 
19293
 
 
19294
 
 
19295
fi
 
19296
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
19297
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
19298
 
 
19299
    if test "x$lt_cv_dlopen_self" = xyes; then
 
19300
      LDFLAGS="$LDFLAGS $link_static_flag"
 
19301
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
19302
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
19303
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
19304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19305
else
 
19306
          if test "$cross_compiling" = yes; then :
 
19307
  lt_cv_dlopen_self_static=cross
 
19308
else
 
19309
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19310
  lt_status=$lt_dlunknown
 
19311
  cat > conftest.$ac_ext <<EOF
 
19312
#line 19312 "configure"
 
19313
#include "confdefs.h"
 
19314
 
 
19315
#if HAVE_DLFCN_H
 
19316
#include <dlfcn.h>
 
19317
#endif
 
19318
 
 
19319
#include <stdio.h>
 
19320
 
 
19321
#ifdef RTLD_GLOBAL
 
19322
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19323
#else
 
19324
#  ifdef DL_GLOBAL
 
19325
#    define LT_DLGLOBAL         DL_GLOBAL
 
19326
#  else
 
19327
#    define LT_DLGLOBAL         0
 
19328
#  endif
 
19329
#endif
 
19330
 
 
19331
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19332
   find out it does not work in some platform. */
 
19333
#ifndef LT_DLLAZY_OR_NOW
 
19334
#  ifdef RTLD_LAZY
 
19335
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19336
#  else
 
19337
#    ifdef DL_LAZY
 
19338
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19339
#    else
 
19340
#      ifdef RTLD_NOW
 
19341
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19342
#      else
 
19343
#        ifdef DL_NOW
 
19344
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19345
#        else
 
19346
#          define LT_DLLAZY_OR_NOW      0
 
19347
#        endif
 
19348
#      endif
 
19349
#    endif
 
19350
#  endif
 
19351
#endif
 
19352
 
 
19353
#ifdef __cplusplus
 
19354
extern "C" void exit (int);
 
19355
#endif
 
19356
 
 
19357
void fnord() { int i=42;}
 
19358
int main ()
 
19359
{
 
19360
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19361
  int status = $lt_dlunknown;
 
19362
 
 
19363
  if (self)
 
19364
    {
 
19365
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19366
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19367
      /* dlclose (self); */
 
19368
    }
 
19369
 
 
19370
    exit (status);
 
19371
}
 
19372
EOF
 
19373
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19374
  (eval $ac_link) 2>&5
 
19375
  ac_status=$?
 
19376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19377
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19378
    (./conftest; exit; ) 2>/dev/null
 
19379
    lt_status=$?
 
19380
    case x$lt_status in
 
19381
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
19382
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
19383
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
19384
    esac
 
19385
  else :
 
19386
    # compilation failed
 
19387
    lt_cv_dlopen_self_static=no
 
19388
  fi
 
19389
fi
 
19390
rm -fr conftest*
 
19391
 
 
19392
 
 
19393
fi
 
19394
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
19395
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
19396
    fi
 
19397
 
 
19398
    CPPFLAGS="$save_CPPFLAGS"
 
19399
    LDFLAGS="$save_LDFLAGS"
 
19400
    LIBS="$save_LIBS"
 
19401
    ;;
 
19402
  esac
 
19403
 
 
19404
  case $lt_cv_dlopen_self in
 
19405
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
19406
  *) enable_dlopen_self=unknown ;;
 
19407
  esac
 
19408
 
 
19409
  case $lt_cv_dlopen_self_static in
 
19410
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
19411
  *) enable_dlopen_self_static=unknown ;;
 
19412
  esac
 
19413
fi
 
19414
 
 
19415
 
 
19416
# The else clause should only fire when bootstrapping the
 
19417
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19418
# with your package, and you will get complaints that there are
 
19419
# no rules to generate ltmain.sh.
 
19420
if test -f "$ltmain"; then
 
19421
  # See if we are running on zsh, and set the options which allow our commands through
 
19422
  # without removal of \ escapes.
 
19423
  if test -n "${ZSH_VERSION+set}" ; then
 
19424
    setopt NO_GLOB_SUBST
 
19425
  fi
 
19426
  # Now quote all the things that may contain metacharacters while being
 
19427
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19428
  # variables and quote the copies for generation of the libtool script.
 
19429
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19430
    SED SHELL STRIP \
 
19431
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19432
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19433
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19434
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19435
    lt_cv_sys_global_symbol_to_c_name_address \
 
19436
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19437
    old_postinstall_cmds old_postuninstall_cmds \
 
19438
    compiler_GCJ \
 
19439
    CC_GCJ \
 
19440
    LD_GCJ \
 
19441
    lt_prog_compiler_wl_GCJ \
 
19442
    lt_prog_compiler_pic_GCJ \
 
19443
    lt_prog_compiler_static_GCJ \
 
19444
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19445
    export_dynamic_flag_spec_GCJ \
 
19446
    thread_safe_flag_spec_GCJ \
 
19447
    whole_archive_flag_spec_GCJ \
 
19448
    enable_shared_with_static_runtimes_GCJ \
 
19449
    old_archive_cmds_GCJ \
 
19450
    old_archive_from_new_cmds_GCJ \
 
19451
    predep_objects_GCJ \
 
19452
    postdep_objects_GCJ \
 
19453
    predeps_GCJ \
 
19454
    postdeps_GCJ \
 
19455
    compiler_lib_search_path_GCJ \
 
19456
    archive_cmds_GCJ \
 
19457
    archive_expsym_cmds_GCJ \
 
19458
    postinstall_cmds_GCJ \
 
19459
    postuninstall_cmds_GCJ \
 
19460
    old_archive_from_expsyms_cmds_GCJ \
 
19461
    allow_undefined_flag_GCJ \
 
19462
    no_undefined_flag_GCJ \
 
19463
    export_symbols_cmds_GCJ \
 
19464
    hardcode_libdir_flag_spec_GCJ \
 
19465
    hardcode_libdir_flag_spec_ld_GCJ \
 
19466
    hardcode_libdir_separator_GCJ \
 
19467
    hardcode_automatic_GCJ \
 
19468
    module_cmds_GCJ \
 
19469
    module_expsym_cmds_GCJ \
 
19470
    lt_cv_prog_compiler_c_o_GCJ \
 
19471
    exclude_expsyms_GCJ \
 
19472
    include_expsyms_GCJ; do
 
19473
 
 
19474
    case $var in
 
19475
    old_archive_cmds_GCJ | \
 
19476
    old_archive_from_new_cmds_GCJ | \
 
19477
    archive_cmds_GCJ | \
 
19478
    archive_expsym_cmds_GCJ | \
 
19479
    module_cmds_GCJ | \
 
19480
    module_expsym_cmds_GCJ | \
 
19481
    old_archive_from_expsyms_cmds_GCJ | \
 
19482
    export_symbols_cmds_GCJ | \
 
19483
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19484
    postinstall_cmds | postuninstall_cmds | \
 
19485
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19486
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19487
      # Double-quote double-evaled strings.
 
19488
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19489
      ;;
 
19490
    *)
 
19491
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19492
      ;;
 
19493
    esac
 
19494
  done
 
19495
 
 
19496
  case $lt_echo in
 
19497
  *'\$0 --fallback-echo"')
 
19498
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19499
    ;;
 
19500
  esac
 
19501
 
 
19502
cfgfile="$ofile"
 
19503
 
 
19504
  cat <<__EOF__ >> "$cfgfile"
 
19505
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19506
 
 
19507
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19508
 
 
19509
# Shell to use when invoking shell scripts.
 
19510
SHELL=$lt_SHELL
 
19511
 
 
19512
# Whether or not to build shared libraries.
 
19513
build_libtool_libs=$enable_shared
 
19514
 
 
19515
# Whether or not to build static libraries.
 
19516
build_old_libs=$enable_static
 
19517
 
 
19518
# Whether or not to add -lc for building shared libraries.
 
19519
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19520
 
 
19521
# Whether or not to disallow shared libs when runtime libs are static
 
19522
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19523
 
 
19524
# Whether or not to optimize for fast installation.
 
19525
fast_install=$enable_fast_install
 
19526
 
 
19527
# The host system.
 
19528
host_alias=$host_alias
 
19529
host=$host
 
19530
 
 
19531
# An echo program that does not interpret backslashes.
 
19532
echo=$lt_echo
 
19533
 
 
19534
# The archiver.
 
19535
AR=$lt_AR
 
19536
AR_FLAGS=$lt_AR_FLAGS
 
19537
 
 
19538
# A C compiler.
 
19539
LTCC=$lt_LTCC
 
19540
 
 
19541
# A language-specific compiler.
 
19542
CC=$lt_compiler_GCJ
 
19543
 
 
19544
# Is the compiler the GNU C compiler?
 
19545
with_gcc=$GCC_GCJ
 
19546
 
 
19547
# An ERE matcher.
 
19548
EGREP=$lt_EGREP
 
19549
 
 
19550
# The linker used to build libraries.
 
19551
LD=$lt_LD_GCJ
 
19552
 
 
19553
# Whether we need hard or soft links.
 
19554
LN_S=$lt_LN_S
 
19555
 
 
19556
# A BSD-compatible nm program.
 
19557
NM=$lt_NM
 
19558
 
 
19559
# A symbol stripping program
 
19560
STRIP=$lt_STRIP
 
19561
 
 
19562
# Used to examine libraries when file_magic_cmd begins "file"
 
19563
MAGIC_CMD=$MAGIC_CMD
 
19564
 
 
19565
# Used on cygwin: DLL creation program.
 
19566
DLLTOOL="$DLLTOOL"
 
19567
 
 
19568
# Used on cygwin: object dumper.
 
19569
OBJDUMP="$OBJDUMP"
 
19570
 
 
19571
# Used on cygwin: assembler.
 
19572
AS="$AS"
 
19573
 
 
19574
# The name of the directory that contains temporary libtool files.
 
19575
objdir=$objdir
 
19576
 
 
19577
# How to create reloadable object files.
 
19578
reload_flag=$lt_reload_flag
 
19579
reload_cmds=$lt_reload_cmds
 
19580
 
 
19581
# How to pass a linker flag through the compiler.
 
19582
wl=$lt_lt_prog_compiler_wl_GCJ
 
19583
 
 
19584
# Object file suffix (normally "o").
 
19585
objext="$ac_objext"
 
19586
 
 
19587
# Old archive suffix (normally "a").
 
19588
libext="$libext"
 
19589
 
 
19590
# Shared library suffix (normally ".so").
 
19591
shrext_cmds='$shrext_cmds'
 
19592
 
 
19593
# Executable file suffix (normally "").
 
19594
exeext="$exeext"
 
19595
 
 
19596
# Additional compiler flags for building library objects.
 
19597
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19598
pic_mode=$pic_mode
 
19599
 
 
19600
# What is the maximum length of a command?
 
19601
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19602
 
 
19603
# Does compiler simultaneously support -c and -o options?
 
19604
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19605
 
 
19606
# Must we lock files when doing compilation ?
 
19607
need_locks=$lt_need_locks
 
19608
 
 
19609
# Do we need the lib prefix for modules?
 
19610
need_lib_prefix=$need_lib_prefix
 
19611
 
 
19612
# Do we need a version for libraries?
 
19613
need_version=$need_version
 
19614
 
 
19615
# Whether dlopen is supported.
 
19616
dlopen_support=$enable_dlopen
 
19617
 
 
19618
# Whether dlopen of programs is supported.
 
19619
dlopen_self=$enable_dlopen_self
 
19620
 
 
19621
# Whether dlopen of statically linked programs is supported.
 
19622
dlopen_self_static=$enable_dlopen_self_static
 
19623
 
 
19624
# Compiler flag to prevent dynamic linking.
 
19625
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19626
 
 
19627
# Compiler flag to turn off builtin functions.
 
19628
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19629
 
 
19630
# Compiler flag to allow reflexive dlopens.
 
19631
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19632
 
 
19633
# Compiler flag to generate shared objects directly from archives.
 
19634
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19635
 
 
19636
# Compiler flag to generate thread-safe objects.
 
19637
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19638
 
 
19639
# Library versioning type.
 
19640
version_type=$version_type
 
19641
 
 
19642
# Format of library name prefix.
 
19643
libname_spec=$lt_libname_spec
 
19644
 
 
19645
# List of archive names.  First name is the real one, the rest are links.
 
19646
# The last name is the one that the linker finds with -lNAME.
 
19647
library_names_spec=$lt_library_names_spec
 
19648
 
 
19649
# The coded name of the library, if different from the real name.
 
19650
soname_spec=$lt_soname_spec
 
19651
 
 
19652
# Commands used to build and install an old-style archive.
 
19653
RANLIB=$lt_RANLIB
 
19654
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19655
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19656
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19657
 
 
19658
# Create an old-style archive from a shared archive.
 
19659
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19660
 
 
19661
# Create a temporary old-style archive to link instead of a shared archive.
 
19662
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19663
 
 
19664
# Commands used to build and install a shared archive.
 
19665
archive_cmds=$lt_archive_cmds_GCJ
 
19666
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19667
postinstall_cmds=$lt_postinstall_cmds
 
19668
postuninstall_cmds=$lt_postuninstall_cmds
 
19669
 
 
19670
# Commands used to build a loadable module (assumed same as above if empty)
 
19671
module_cmds=$lt_module_cmds_GCJ
 
19672
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19673
 
 
19674
# Commands to strip libraries.
 
19675
old_striplib=$lt_old_striplib
 
19676
striplib=$lt_striplib
 
19677
 
 
19678
# Dependencies to place before the objects being linked to create a
 
19679
# shared library.
 
19680
predep_objects=$lt_predep_objects_GCJ
 
19681
 
 
19682
# Dependencies to place after the objects being linked to create a
 
19683
# shared library.
 
19684
postdep_objects=$lt_postdep_objects_GCJ
 
19685
 
 
19686
# Dependencies to place before the objects being linked to create a
 
19687
# shared library.
 
19688
predeps=$lt_predeps_GCJ
 
19689
 
 
19690
# Dependencies to place after the objects being linked to create a
 
19691
# shared library.
 
19692
postdeps=$lt_postdeps_GCJ
 
19693
 
 
19694
# The library search path used internally by the compiler when linking
 
19695
# a shared library.
 
19696
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19697
 
 
19698
# Method to check whether dependent libraries are shared objects.
 
19699
deplibs_check_method=$lt_deplibs_check_method
 
19700
 
 
19701
# Command to use when deplibs_check_method == file_magic.
 
19702
file_magic_cmd=$lt_file_magic_cmd
 
19703
 
 
19704
# Flag that allows shared libraries with undefined symbols to be built.
 
19705
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19706
 
 
19707
# Flag that forces no undefined symbols.
 
19708
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19709
 
 
19710
# Commands used to finish a libtool library installation in a directory.
 
19711
finish_cmds=$lt_finish_cmds
 
19712
 
 
19713
# Same as above, but a single script fragment to be evaled but not shown.
 
19714
finish_eval=$lt_finish_eval
 
19715
 
 
19716
# Take the output of nm and produce a listing of raw symbols and C names.
 
19717
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19718
 
 
19719
# Transform the output of nm in a proper C declaration
 
19720
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19721
 
 
19722
# Transform the output of nm in a C name address pair
 
19723
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19724
 
 
19725
# This is the shared library runtime path variable.
 
19726
runpath_var=$runpath_var
 
19727
 
 
19728
# This is the shared library path variable.
 
19729
shlibpath_var=$shlibpath_var
 
19730
 
 
19731
# Is shlibpath searched before the hard-coded library search path?
 
19732
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19733
 
 
19734
# How to hardcode a shared library path into an executable.
 
19735
hardcode_action=$hardcode_action_GCJ
 
19736
 
 
19737
# Whether we should hardcode library paths into libraries.
 
19738
hardcode_into_libs=$hardcode_into_libs
 
19739
 
 
19740
# Flag to hardcode \$libdir into a binary during linking.
 
19741
# This must work even if \$libdir does not exist.
 
19742
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19743
 
 
19744
# If ld is used when linking, flag to hardcode \$libdir into
 
19745
# a binary during linking. This must work even if \$libdir does
 
19746
# not exist.
 
19747
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19748
 
 
19749
# Whether we need a single -rpath flag with a separated argument.
 
19750
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19751
 
 
19752
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19753
# resulting binary.
 
19754
hardcode_direct=$hardcode_direct_GCJ
 
19755
 
 
19756
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19757
# resulting binary.
 
19758
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19759
 
 
19760
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19761
# the resulting binary.
 
19762
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19763
 
 
19764
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19765
# and all subsequent libraries and executables linked against it.
 
19766
hardcode_automatic=$hardcode_automatic_GCJ
 
19767
 
 
19768
# Variables whose values should be saved in libtool wrapper scripts and
 
19769
# restored at relink time.
 
19770
variables_saved_for_relink="$variables_saved_for_relink"
 
19771
 
 
19772
# Whether libtool must link a program against all its dependency libraries.
 
19773
link_all_deplibs=$link_all_deplibs_GCJ
 
19774
 
 
19775
# Compile-time system search path for libraries
 
19776
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19777
 
 
19778
# Run-time system search path for libraries
 
19779
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19780
 
 
19781
# Fix the shell variable \$srcfile for the compiler.
 
19782
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19783
 
 
19784
# Set to yes if exported symbols are required.
 
19785
always_export_symbols=$always_export_symbols_GCJ
 
19786
 
 
19787
# The commands to list exported symbols.
 
19788
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19789
 
 
19790
# The commands to extract the exported symbol list from a shared archive.
 
19791
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19792
 
 
19793
# Symbols that should not be listed in the preloaded symbols.
 
19794
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19795
 
 
19796
# Symbols that must always be exported.
 
19797
include_expsyms=$lt_include_expsyms_GCJ
 
19798
 
 
19799
# ### END LIBTOOL TAG CONFIG: $tagname
 
19800
 
 
19801
__EOF__
 
19802
 
 
19803
 
 
19804
else
 
19805
  # If there is no Makefile yet, we rely on a make rule to execute
 
19806
  # `config.status --recheck' to rerun these tests and create the
 
19807
  # libtool script then.
 
19808
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19809
  if test -f "$ltmain_in"; then
 
19810
    test -f Makefile && make "$ltmain"
 
19811
  fi
 
19812
fi
 
19813
 
 
19814
 
 
19815
ac_ext=c
 
19816
ac_cpp='$CPP $CPPFLAGS'
 
19817
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19818
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19819
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19820
 
 
19821
CC="$lt_save_CC"
 
19822
 
 
19823
        else
 
19824
          tagname=""
 
19825
        fi
 
19826
        ;;
 
19827
 
 
19828
      RC)
 
19829
 
 
19830
 
 
19831
 
 
19832
# Source file extension for RC test sources.
 
19833
ac_ext=rc
 
19834
 
 
19835
# Object file extension for compiled RC test sources.
 
19836
objext=o
 
19837
objext_RC=$objext
 
19838
 
 
19839
# Code to be used in simple compile tests
 
19840
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19841
 
 
19842
# Code to be used in simple link tests
 
19843
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19844
 
 
19845
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19846
 
 
19847
# If no C compiler was specified, use CC.
 
19848
LTCC=${LTCC-"$CC"}
 
19849
 
 
19850
# Allow CC to be a program name with arguments.
 
19851
compiler=$CC
 
19852
 
 
19853
 
 
19854
# Allow CC to be a program name with arguments.
 
19855
lt_save_CC="$CC"
 
19856
CC=${RC-"windres"}
 
19857
compiler=$CC
 
19858
compiler_RC=$CC
 
19859
lt_cv_prog_compiler_c_o_RC=yes
 
19860
 
 
19861
# The else clause should only fire when bootstrapping the
 
19862
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19863
# with your package, and you will get complaints that there are
 
19864
# no rules to generate ltmain.sh.
 
19865
if test -f "$ltmain"; then
 
19866
  # See if we are running on zsh, and set the options which allow our commands through
 
19867
  # without removal of \ escapes.
 
19868
  if test -n "${ZSH_VERSION+set}" ; then
 
19869
    setopt NO_GLOB_SUBST
 
19870
  fi
 
19871
  # Now quote all the things that may contain metacharacters while being
 
19872
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19873
  # variables and quote the copies for generation of the libtool script.
 
19874
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19875
    SED SHELL STRIP \
 
19876
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19877
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19878
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19879
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19880
    lt_cv_sys_global_symbol_to_c_name_address \
 
19881
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19882
    old_postinstall_cmds old_postuninstall_cmds \
 
19883
    compiler_RC \
 
19884
    CC_RC \
 
19885
    LD_RC \
 
19886
    lt_prog_compiler_wl_RC \
 
19887
    lt_prog_compiler_pic_RC \
 
19888
    lt_prog_compiler_static_RC \
 
19889
    lt_prog_compiler_no_builtin_flag_RC \
 
19890
    export_dynamic_flag_spec_RC \
 
19891
    thread_safe_flag_spec_RC \
 
19892
    whole_archive_flag_spec_RC \
 
19893
    enable_shared_with_static_runtimes_RC \
 
19894
    old_archive_cmds_RC \
 
19895
    old_archive_from_new_cmds_RC \
 
19896
    predep_objects_RC \
 
19897
    postdep_objects_RC \
 
19898
    predeps_RC \
 
19899
    postdeps_RC \
 
19900
    compiler_lib_search_path_RC \
 
19901
    archive_cmds_RC \
 
19902
    archive_expsym_cmds_RC \
 
19903
    postinstall_cmds_RC \
 
19904
    postuninstall_cmds_RC \
 
19905
    old_archive_from_expsyms_cmds_RC \
 
19906
    allow_undefined_flag_RC \
 
19907
    no_undefined_flag_RC \
 
19908
    export_symbols_cmds_RC \
 
19909
    hardcode_libdir_flag_spec_RC \
 
19910
    hardcode_libdir_flag_spec_ld_RC \
 
19911
    hardcode_libdir_separator_RC \
 
19912
    hardcode_automatic_RC \
 
19913
    module_cmds_RC \
 
19914
    module_expsym_cmds_RC \
 
19915
    lt_cv_prog_compiler_c_o_RC \
 
19916
    exclude_expsyms_RC \
 
19917
    include_expsyms_RC; do
 
19918
 
 
19919
    case $var in
 
19920
    old_archive_cmds_RC | \
 
19921
    old_archive_from_new_cmds_RC | \
 
19922
    archive_cmds_RC | \
 
19923
    archive_expsym_cmds_RC | \
 
19924
    module_cmds_RC | \
 
19925
    module_expsym_cmds_RC | \
 
19926
    old_archive_from_expsyms_cmds_RC | \
 
19927
    export_symbols_cmds_RC | \
 
19928
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19929
    postinstall_cmds | postuninstall_cmds | \
 
19930
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19931
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19932
      # Double-quote double-evaled strings.
 
19933
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19934
      ;;
 
19935
    *)
 
19936
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19937
      ;;
 
19938
    esac
 
19939
  done
 
19940
 
 
19941
  case $lt_echo in
 
19942
  *'\$0 --fallback-echo"')
 
19943
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19944
    ;;
 
19945
  esac
 
19946
 
 
19947
cfgfile="$ofile"
 
19948
 
 
19949
  cat <<__EOF__ >> "$cfgfile"
 
19950
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19951
 
 
19952
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19953
 
 
19954
# Shell to use when invoking shell scripts.
 
19955
SHELL=$lt_SHELL
 
19956
 
 
19957
# Whether or not to build shared libraries.
 
19958
build_libtool_libs=$enable_shared
 
19959
 
 
19960
# Whether or not to build static libraries.
 
19961
build_old_libs=$enable_static
 
19962
 
 
19963
# Whether or not to add -lc for building shared libraries.
 
19964
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19965
 
 
19966
# Whether or not to disallow shared libs when runtime libs are static
 
19967
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19968
 
 
19969
# Whether or not to optimize for fast installation.
 
19970
fast_install=$enable_fast_install
 
19971
 
 
19972
# The host system.
 
19973
host_alias=$host_alias
 
19974
host=$host
 
19975
 
 
19976
# An echo program that does not interpret backslashes.
 
19977
echo=$lt_echo
 
19978
 
 
19979
# The archiver.
 
19980
AR=$lt_AR
 
19981
AR_FLAGS=$lt_AR_FLAGS
 
19982
 
 
19983
# A C compiler.
 
19984
LTCC=$lt_LTCC
 
19985
 
 
19986
# A language-specific compiler.
 
19987
CC=$lt_compiler_RC
 
19988
 
 
19989
# Is the compiler the GNU C compiler?
 
19990
with_gcc=$GCC_RC
 
19991
 
 
19992
# An ERE matcher.
 
19993
EGREP=$lt_EGREP
 
19994
 
 
19995
# The linker used to build libraries.
 
19996
LD=$lt_LD_RC
 
19997
 
 
19998
# Whether we need hard or soft links.
 
19999
LN_S=$lt_LN_S
 
20000
 
 
20001
# A BSD-compatible nm program.
 
20002
NM=$lt_NM
 
20003
 
 
20004
# A symbol stripping program
 
20005
STRIP=$lt_STRIP
 
20006
 
 
20007
# Used to examine libraries when file_magic_cmd begins "file"
 
20008
MAGIC_CMD=$MAGIC_CMD
 
20009
 
 
20010
# Used on cygwin: DLL creation program.
 
20011
DLLTOOL="$DLLTOOL"
 
20012
 
 
20013
# Used on cygwin: object dumper.
 
20014
OBJDUMP="$OBJDUMP"
 
20015
 
 
20016
# Used on cygwin: assembler.
 
20017
AS="$AS"
 
20018
 
 
20019
# The name of the directory that contains temporary libtool files.
 
20020
objdir=$objdir
 
20021
 
 
20022
# How to create reloadable object files.
 
20023
reload_flag=$lt_reload_flag
 
20024
reload_cmds=$lt_reload_cmds
 
20025
 
 
20026
# How to pass a linker flag through the compiler.
 
20027
wl=$lt_lt_prog_compiler_wl_RC
 
20028
 
 
20029
# Object file suffix (normally "o").
 
20030
objext="$ac_objext"
 
20031
 
 
20032
# Old archive suffix (normally "a").
 
20033
libext="$libext"
 
20034
 
 
20035
# Shared library suffix (normally ".so").
 
20036
shrext_cmds='$shrext_cmds'
 
20037
 
 
20038
# Executable file suffix (normally "").
 
20039
exeext="$exeext"
 
20040
 
 
20041
# Additional compiler flags for building library objects.
 
20042
pic_flag=$lt_lt_prog_compiler_pic_RC
 
20043
pic_mode=$pic_mode
 
20044
 
 
20045
# What is the maximum length of a command?
 
20046
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20047
 
 
20048
# Does compiler simultaneously support -c and -o options?
 
20049
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
20050
 
 
20051
# Must we lock files when doing compilation ?
 
20052
need_locks=$lt_need_locks
 
20053
 
 
20054
# Do we need the lib prefix for modules?
 
20055
need_lib_prefix=$need_lib_prefix
 
20056
 
 
20057
# Do we need a version for libraries?
 
20058
need_version=$need_version
 
20059
 
 
20060
# Whether dlopen is supported.
 
20061
dlopen_support=$enable_dlopen
 
20062
 
 
20063
# Whether dlopen of programs is supported.
 
20064
dlopen_self=$enable_dlopen_self
 
20065
 
 
20066
# Whether dlopen of statically linked programs is supported.
 
20067
dlopen_self_static=$enable_dlopen_self_static
 
20068
 
 
20069
# Compiler flag to prevent dynamic linking.
 
20070
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20071
 
 
20072
# Compiler flag to turn off builtin functions.
 
20073
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20074
 
 
20075
# Compiler flag to allow reflexive dlopens.
 
20076
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20077
 
 
20078
# Compiler flag to generate shared objects directly from archives.
 
20079
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20080
 
 
20081
# Compiler flag to generate thread-safe objects.
 
20082
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20083
 
 
20084
# Library versioning type.
 
20085
version_type=$version_type
 
20086
 
 
20087
# Format of library name prefix.
 
20088
libname_spec=$lt_libname_spec
 
20089
 
 
20090
# List of archive names.  First name is the real one, the rest are links.
 
20091
# The last name is the one that the linker finds with -lNAME.
 
20092
library_names_spec=$lt_library_names_spec
 
20093
 
 
20094
# The coded name of the library, if different from the real name.
 
20095
soname_spec=$lt_soname_spec
 
20096
 
 
20097
# Commands used to build and install an old-style archive.
 
20098
RANLIB=$lt_RANLIB
 
20099
old_archive_cmds=$lt_old_archive_cmds_RC
 
20100
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20101
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20102
 
 
20103
# Create an old-style archive from a shared archive.
 
20104
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20105
 
 
20106
# Create a temporary old-style archive to link instead of a shared archive.
 
20107
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20108
 
 
20109
# Commands used to build and install a shared archive.
 
20110
archive_cmds=$lt_archive_cmds_RC
 
20111
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20112
postinstall_cmds=$lt_postinstall_cmds
 
20113
postuninstall_cmds=$lt_postuninstall_cmds
 
20114
 
 
20115
# Commands used to build a loadable module (assumed same as above if empty)
 
20116
module_cmds=$lt_module_cmds_RC
 
20117
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20118
 
 
20119
# Commands to strip libraries.
 
20120
old_striplib=$lt_old_striplib
 
20121
striplib=$lt_striplib
 
20122
 
 
20123
# Dependencies to place before the objects being linked to create a
 
20124
# shared library.
 
20125
predep_objects=$lt_predep_objects_RC
 
20126
 
 
20127
# Dependencies to place after the objects being linked to create a
 
20128
# shared library.
 
20129
postdep_objects=$lt_postdep_objects_RC
 
20130
 
 
20131
# Dependencies to place before the objects being linked to create a
 
20132
# shared library.
 
20133
predeps=$lt_predeps_RC
 
20134
 
 
20135
# Dependencies to place after the objects being linked to create a
 
20136
# shared library.
 
20137
postdeps=$lt_postdeps_RC
 
20138
 
 
20139
# The library search path used internally by the compiler when linking
 
20140
# a shared library.
 
20141
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20142
 
 
20143
# Method to check whether dependent libraries are shared objects.
 
20144
deplibs_check_method=$lt_deplibs_check_method
 
20145
 
 
20146
# Command to use when deplibs_check_method == file_magic.
 
20147
file_magic_cmd=$lt_file_magic_cmd
 
20148
 
 
20149
# Flag that allows shared libraries with undefined symbols to be built.
 
20150
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20151
 
 
20152
# Flag that forces no undefined symbols.
 
20153
no_undefined_flag=$lt_no_undefined_flag_RC
 
20154
 
 
20155
# Commands used to finish a libtool library installation in a directory.
 
20156
finish_cmds=$lt_finish_cmds
 
20157
 
 
20158
# Same as above, but a single script fragment to be evaled but not shown.
 
20159
finish_eval=$lt_finish_eval
 
20160
 
 
20161
# Take the output of nm and produce a listing of raw symbols and C names.
 
20162
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20163
 
 
20164
# Transform the output of nm in a proper C declaration
 
20165
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20166
 
 
20167
# Transform the output of nm in a C name address pair
 
20168
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20169
 
 
20170
# This is the shared library runtime path variable.
 
20171
runpath_var=$runpath_var
 
20172
 
 
20173
# This is the shared library path variable.
 
20174
shlibpath_var=$shlibpath_var
 
20175
 
 
20176
# Is shlibpath searched before the hard-coded library search path?
 
20177
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20178
 
 
20179
# How to hardcode a shared library path into an executable.
 
20180
hardcode_action=$hardcode_action_RC
 
20181
 
 
20182
# Whether we should hardcode library paths into libraries.
 
20183
hardcode_into_libs=$hardcode_into_libs
 
20184
 
 
20185
# Flag to hardcode \$libdir into a binary during linking.
 
20186
# This must work even if \$libdir does not exist.
 
20187
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20188
 
 
20189
# If ld is used when linking, flag to hardcode \$libdir into
 
20190
# a binary during linking. This must work even if \$libdir does
 
20191
# not exist.
 
20192
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20193
 
 
20194
# Whether we need a single -rpath flag with a separated argument.
 
20195
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20196
 
 
20197
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20198
# resulting binary.
 
20199
hardcode_direct=$hardcode_direct_RC
 
20200
 
 
20201
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20202
# resulting binary.
 
20203
hardcode_minus_L=$hardcode_minus_L_RC
 
20204
 
 
20205
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20206
# the resulting binary.
 
20207
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20208
 
 
20209
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20210
# and all subsequent libraries and executables linked against it.
 
20211
hardcode_automatic=$hardcode_automatic_RC
 
20212
 
 
20213
# Variables whose values should be saved in libtool wrapper scripts and
 
20214
# restored at relink time.
 
20215
variables_saved_for_relink="$variables_saved_for_relink"
 
20216
 
 
20217
# Whether libtool must link a program against all its dependency libraries.
 
20218
link_all_deplibs=$link_all_deplibs_RC
 
20219
 
 
20220
# Compile-time system search path for libraries
 
20221
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20222
 
 
20223
# Run-time system search path for libraries
 
20224
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20225
 
 
20226
# Fix the shell variable \$srcfile for the compiler.
 
20227
fix_srcfile_path="$fix_srcfile_path_RC"
 
20228
 
 
20229
# Set to yes if exported symbols are required.
 
20230
always_export_symbols=$always_export_symbols_RC
 
20231
 
 
20232
# The commands to list exported symbols.
 
20233
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20234
 
 
20235
# The commands to extract the exported symbol list from a shared archive.
 
20236
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20237
 
 
20238
# Symbols that should not be listed in the preloaded symbols.
 
20239
exclude_expsyms=$lt_exclude_expsyms_RC
 
20240
 
 
20241
# Symbols that must always be exported.
 
20242
include_expsyms=$lt_include_expsyms_RC
 
20243
 
 
20244
# ### END LIBTOOL TAG CONFIG: $tagname
 
20245
 
 
20246
__EOF__
 
20247
 
 
20248
 
 
20249
else
 
20250
  # If there is no Makefile yet, we rely on a make rule to execute
 
20251
  # `config.status --recheck' to rerun these tests and create the
 
20252
  # libtool script then.
 
20253
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20254
  if test -f "$ltmain_in"; then
 
20255
    test -f Makefile && make "$ltmain"
 
20256
  fi
 
20257
fi
 
20258
 
 
20259
 
 
20260
ac_ext=c
 
20261
ac_cpp='$CPP $CPPFLAGS'
 
20262
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20263
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20264
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20265
 
 
20266
CC="$lt_save_CC"
 
20267
 
 
20268
        ;;
 
20269
 
 
20270
      *)
 
20271
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20272
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20273
   { (exit 1); exit 1; }; }
 
20274
        ;;
 
20275
      esac
 
20276
 
 
20277
      # Append the new tag name to the list of available tags.
 
20278
      if test -n "$tagname" ; then
 
20279
      available_tags="$available_tags $tagname"
 
20280
    fi
 
20281
    fi
 
20282
  done
 
20283
  IFS="$lt_save_ifs"
 
20284
 
 
20285
  # Now substitute the updated list of available tags.
 
20286
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20287
    mv "${ofile}T" "$ofile"
 
20288
    chmod +x "$ofile"
 
20289
  else
 
20290
    rm -f "${ofile}T"
 
20291
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20292
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20293
   { (exit 1); exit 1; }; }
 
20294
  fi
 
20295
fi
 
20296
 
 
20297
 
 
20298
 
 
20299
# This can be used to rebuild libtool when needed
 
20300
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20301
 
 
20302
# Always use our own libtool.
 
20303
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20304
 
 
20305
# Prevent multiple expansion
 
20306
 
 
20307
 
 
20308
 
 
20309
 
 
20310
 
 
20311
 
 
20312
 
 
20313
 
 
20314
 
 
20315
 
 
20316
 
 
20317
 
 
20318
 
 
20319
 
 
20320
 
 
20321
 
 
20322
 
 
20323
 
 
20324
 
 
20325
 
 
20326
 
 
20327
                                                                                                                                            ac_config_files="$ac_config_files Makefile src/Makefile src/server/Makefile src/modules/Makefile src/c/Makefile src/c/api/Makefile src/c/clients/Makefile src/c/clients/say/Makefile src/tests/Makefile src/audio/Makefile config/Makefile config/modules/Makefile config/clients/Makefile doc/Makefile"
 
20328
cat >confcache <<\_ACEOF
 
20329
# This file is a shell script that caches the results of configure
 
20330
# tests run on this system so they can be shared between configure
 
20331
# scripts and configure runs, see configure's option --config-cache.
 
20332
# It is not useful on other systems.  If it contains results you don't
 
20333
# want to keep, you may remove or edit it.
 
20334
#
 
20335
# config.status only pays attention to the cache file if you give it
 
20336
# the --recheck option to rerun configure.
 
20337
#
 
20338
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
20339
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
20340
# following values.
 
20341
 
 
20342
_ACEOF
 
20343
 
 
20344
# The following way of writing the cache mishandles newlines in values,
 
20345
# but we know of no workaround that is simple, portable, and efficient.
 
20346
# So, don't put newlines in cache variables' values.
 
20347
# Ultrix sh set writes to stderr and can't be redirected directly,
 
20348
# and sets the high bit in the cache file unless we assign to the vars.
 
20349
{
 
20350
  (set) 2>&1 |
 
20351
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
20352
    *ac_space=\ *)
 
20353
      # `set' does not quote correctly, so add quotes (double-quote
 
20354
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
20355
      sed -n \
 
20356
        "s/'/'\\\\''/g;
 
20357
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
20358
      ;;
 
20359
    *)
 
20360
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
20361
      sed -n \
 
20362
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
20363
      ;;
 
20364
    esac;
 
20365
} |
 
20366
  sed '
 
20367
     t clear
 
20368
     : clear
 
20369
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
20370
     t end
 
20371
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
20372
     : end' >>confcache
 
20373
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
20374
  if test -w $cache_file; then
 
20375
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
20376
    cat confcache >$cache_file
 
20377
  else
 
20378
    echo "not updating unwritable cache $cache_file"
 
20379
  fi
 
20380
fi
 
20381
rm -f confcache
 
20382
 
 
20383
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
20384
# Let make expand exec_prefix.
 
20385
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
20386
 
 
20387
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
20388
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
20389
# trailing colons and then remove the whole line if VPATH becomes empty
 
20390
# (actually we leave an empty line to preserve line numbers).
 
20391
if test "x$srcdir" = x.; then
 
20392
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
20393
s/:*\$(srcdir):*/:/;
 
20394
s/:*\${srcdir}:*/:/;
 
20395
s/:*@srcdir@:*/:/;
 
20396
s/^\([^=]*=[     ]*\):*/\1/;
 
20397
s/:*$//;
 
20398
s/^[^=]*=[       ]*$//;
 
20399
}'
 
20400
fi
 
20401
 
 
20402
DEFS=-DHAVE_CONFIG_H
 
20403
 
 
20404
ac_libobjs=
 
20405
ac_ltlibobjs=
 
20406
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
20407
  # 1. Remove the extension, and $U if already installed.
 
20408
  ac_i=`echo "$ac_i" |
 
20409
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
20410
  # 2. Add them.
 
20411
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
20412
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
20413
done
 
20414
LIBOBJS=$ac_libobjs
 
20415
 
 
20416
LTLIBOBJS=$ac_ltlibobjs
 
20417
 
 
20418
 
 
20419
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
20420
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
20421
Usually this means the macro was only invoked conditionally." >&5
 
20422
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
20423
Usually this means the macro was only invoked conditionally." >&2;}
 
20424
   { (exit 1); exit 1; }; }
 
20425
fi
 
20426
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20427
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20428
Usually this means the macro was only invoked conditionally." >&5
 
20429
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20430
Usually this means the macro was only invoked conditionally." >&2;}
 
20431
   { (exit 1); exit 1; }; }
 
20432
fi
 
20433
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
20434
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
20435
Usually this means the macro was only invoked conditionally." >&5
 
20436
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
20437
Usually this means the macro was only invoked conditionally." >&2;}
 
20438
   { (exit 1); exit 1; }; }
 
20439
fi
 
20440
 
 
20441
: ${CONFIG_STATUS=./config.status}
 
20442
ac_clean_files_save=$ac_clean_files
 
20443
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
20444
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
20445
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
20446
cat >$CONFIG_STATUS <<_ACEOF
 
20447
#! $SHELL
 
20448
# Generated by $as_me.
 
20449
# Run this file to recreate the current configuration.
 
20450
# Compiler output produced by configure, useful for debugging
 
20451
# configure, is in config.log if it exists.
 
20452
 
 
20453
debug=false
 
20454
ac_cs_recheck=false
 
20455
ac_cs_silent=false
 
20456
SHELL=\${CONFIG_SHELL-$SHELL}
 
20457
_ACEOF
 
20458
 
 
20459
cat >>$CONFIG_STATUS <<\_ACEOF
 
20460
## --------------------- ##
 
20461
## M4sh Initialization.  ##
 
20462
## --------------------- ##
 
20463
 
 
20464
# Be Bourne compatible
 
20465
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20466
  emulate sh
 
20467
  NULLCMD=:
 
20468
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20469
  # is contrary to our usage.  Disable this feature.
 
20470
  alias -g '${1+"$@"}'='"$@"'
 
20471
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20472
  set -o posix
 
20473
fi
 
20474
DUALCASE=1; export DUALCASE # for MKS sh
 
20475
 
 
20476
# Support unset when possible.
 
20477
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
20478
  as_unset=unset
 
20479
else
 
20480
  as_unset=false
 
20481
fi
 
20482
 
 
20483
 
 
20484
# Work around bugs in pre-3.0 UWIN ksh.
 
20485
$as_unset ENV MAIL MAILPATH
 
20486
PS1='$ '
 
20487
PS2='> '
 
20488
PS4='+ '
 
20489
 
 
20490
# NLS nuisances.
 
20491
for as_var in \
 
20492
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
20493
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
20494
  LC_TELEPHONE LC_TIME
 
20495
do
 
20496
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
20497
    eval $as_var=C; export $as_var
 
20498
  else
 
20499
    $as_unset $as_var
 
20500
  fi
 
20501
done
 
20502
 
 
20503
# Required to use basename.
 
20504
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20505
  as_expr=expr
 
20506
else
 
20507
  as_expr=false
 
20508
fi
 
20509
 
 
20510
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
20511
  as_basename=basename
 
20512
else
 
20513
  as_basename=false
 
20514
fi
 
20515
 
 
20516
 
 
20517
# Name of the executable.
 
20518
as_me=`$as_basename "$0" ||
 
20519
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
20520
         X"$0" : 'X\(//\)$' \| \
 
20521
         X"$0" : 'X\(/\)$' \| \
 
20522
         .     : '\(.\)' 2>/dev/null ||
 
20523
echo X/"$0" |
 
20524
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
20525
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
20526
          /^X\/\(\/\).*/{ s//\1/; q; }
 
20527
          s/.*/./; q'`
 
20528
 
 
20529
 
 
20530
# PATH needs CR, and LINENO needs CR and PATH.
 
20531
# Avoid depending upon Character Ranges.
 
20532
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20533
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20534
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20535
as_cr_digits='0123456789'
 
20536
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
20537
 
 
20538
# The user is always right.
 
20539
if test "${PATH_SEPARATOR+set}" != set; then
 
20540
  echo "#! /bin/sh" >conf$$.sh
 
20541
  echo  "exit 0"   >>conf$$.sh
 
20542
  chmod +x conf$$.sh
 
20543
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
20544
    PATH_SEPARATOR=';'
 
20545
  else
 
20546
    PATH_SEPARATOR=:
 
20547
  fi
 
20548
  rm -f conf$$.sh
 
20549
fi
 
20550
 
 
20551
 
 
20552
  as_lineno_1=$LINENO
 
20553
  as_lineno_2=$LINENO
 
20554
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20555
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20556
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
20557
  # Find who we are.  Look in the path if we contain no path at all
 
20558
  # relative or not.
 
20559
  case $0 in
 
20560
    *[\\/]* ) as_myself=$0 ;;
 
20561
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20562
for as_dir in $PATH
 
20563
do
 
20564
  IFS=$as_save_IFS
 
20565
  test -z "$as_dir" && as_dir=.
 
20566
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20567
done
 
20568
 
 
20569
       ;;
 
20570
  esac
 
20571
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
20572
  # in which case we are not to be found in the path.
 
20573
  if test "x$as_myself" = x; then
 
20574
    as_myself=$0
 
20575
  fi
 
20576
  if test ! -f "$as_myself"; then
 
20577
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
20578
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
20579
   { (exit 1); exit 1; }; }
 
20580
  fi
 
20581
  case $CONFIG_SHELL in
 
20582
  '')
 
20583
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20584
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
20585
do
 
20586
  IFS=$as_save_IFS
 
20587
  test -z "$as_dir" && as_dir=.
 
20588
  for as_base in sh bash ksh sh5; do
 
20589
         case $as_dir in
 
20590
         /*)
 
20591
           if ("$as_dir/$as_base" -c '
 
20592
  as_lineno_1=$LINENO
 
20593
  as_lineno_2=$LINENO
 
20594
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20595
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20596
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
20597
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
20598
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
20599
             CONFIG_SHELL=$as_dir/$as_base
 
20600
             export CONFIG_SHELL
 
20601
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
20602
           fi;;
 
20603
         esac
 
20604
       done
 
20605
done
 
20606
;;
 
20607
  esac
 
20608
 
 
20609
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
20610
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
20611
  # line-number line before each line; the second 'sed' does the real
 
20612
  # work.  The second script uses 'N' to pair each line-number line
 
20613
  # with the numbered line, and appends trailing '-' during
 
20614
  # substitution so that $LINENO is not a special case at line end.
 
20615
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20616
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
20617
  sed '=' <$as_myself |
 
20618
    sed '
 
20619
      N
 
20620
      s,$,-,
 
20621
      : loop
 
20622
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
20623
      t loop
 
20624
      s,-$,,
 
20625
      s,^['$as_cr_digits']*\n,,
 
20626
    ' >$as_me.lineno &&
 
20627
  chmod +x $as_me.lineno ||
 
20628
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
20629
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
20630
   { (exit 1); exit 1; }; }
 
20631
 
 
20632
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20633
  # (the dirname of $[0] is not the place where we might find the
 
20634
  # original and so on.  Autoconf is especially sensible to this).
 
20635
  . ./$as_me.lineno
 
20636
  # Exit status is that of the last command.
 
20637
  exit
 
20638
}
 
20639
 
 
20640
 
 
20641
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
20642
  *c*,-n*) ECHO_N= ECHO_C='
 
20643
' ECHO_T='      ' ;;
 
20644
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
20645
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
20646
esac
 
20647
 
 
20648
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20649
  as_expr=expr
 
20650
else
 
20651
  as_expr=false
 
20652
fi
 
20653
 
 
20654
rm -f conf$$ conf$$.exe conf$$.file
 
20655
echo >conf$$.file
 
20656
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20657
  # We could just check for DJGPP; but this test a) works b) is more generic
 
20658
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
20659
  if test -f conf$$.exe; then
 
20660
    # Don't use ln at all; we don't have any links
 
20661
    as_ln_s='cp -p'
 
20662
  else
 
20663
    as_ln_s='ln -s'
 
20664
  fi
 
20665
elif ln conf$$.file conf$$ 2>/dev/null; then
 
20666
  as_ln_s=ln
 
20667
else
 
20668
  as_ln_s='cp -p'
 
20669
fi
 
20670
rm -f conf$$ conf$$.exe conf$$.file
 
20671
 
 
20672
if mkdir -p . 2>/dev/null; then
 
20673
  as_mkdir_p=:
 
20674
else
 
20675
  test -d ./-p && rmdir ./-p
 
20676
  as_mkdir_p=false
 
20677
fi
 
20678
 
 
20679
as_executable_p="test -f"
 
20680
 
 
20681
# Sed expression to map a string onto a valid CPP name.
 
20682
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20683
 
 
20684
# Sed expression to map a string onto a valid variable name.
 
20685
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20686
 
 
20687
 
 
20688
# IFS
 
20689
# We need space, tab and new line, in precisely that order.
 
20690
as_nl='
 
20691
'
 
20692
IFS="   $as_nl"
 
20693
 
 
20694
# CDPATH.
 
20695
$as_unset CDPATH
 
20696
 
 
20697
exec 6>&1
 
20698
 
 
20699
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
20700
# report actual input values of CONFIG_FILES etc. instead of their
 
20701
# values after options handling.  Logging --version etc. is OK.
 
20702
exec 5>>config.log
 
20703
{
 
20704
  echo
 
20705
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
20706
## Running $as_me. ##
 
20707
_ASBOX
 
20708
} >&5
 
20709
cat >&5 <<_CSEOF
 
20710
 
 
20711
This file was extended by $as_me, which was
 
20712
generated by GNU Autoconf 2.59.  Invocation command line was
 
20713
 
 
20714
  CONFIG_FILES    = $CONFIG_FILES
 
20715
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
20716
  CONFIG_LINKS    = $CONFIG_LINKS
 
20717
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
20718
  $ $0 $@
 
20719
 
 
20720
_CSEOF
 
20721
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
20722
echo >&5
 
20723
_ACEOF
 
20724
 
 
20725
# Files that config.status was made for.
 
20726
if test -n "$ac_config_files"; then
 
20727
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
20728
fi
 
20729
 
 
20730
if test -n "$ac_config_headers"; then
 
20731
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
20732
fi
 
20733
 
 
20734
if test -n "$ac_config_links"; then
 
20735
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
20736
fi
 
20737
 
 
20738
if test -n "$ac_config_commands"; then
 
20739
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
20740
fi
 
20741
 
 
20742
cat >>$CONFIG_STATUS <<\_ACEOF
 
20743
 
 
20744
ac_cs_usage="\
 
20745
\`$as_me' instantiates files from templates according to the
 
20746
current configuration.
 
20747
 
 
20748
Usage: $0 [OPTIONS] [FILE]...
 
20749
 
 
20750
  -h, --help       print this help, then exit
 
20751
  -V, --version    print version number, then exit
 
20752
  -q, --quiet      do not print progress messages
 
20753
  -d, --debug      don't remove temporary files
 
20754
      --recheck    update $as_me by reconfiguring in the same conditions
 
20755
  --file=FILE[:TEMPLATE]
 
20756
                   instantiate the configuration file FILE
 
20757
  --header=FILE[:TEMPLATE]
 
20758
                   instantiate the configuration header FILE
 
20759
 
 
20760
Configuration files:
 
20761
$config_files
 
20762
 
 
20763
Configuration headers:
 
20764
$config_headers
 
20765
 
 
20766
Configuration commands:
 
20767
$config_commands
 
20768
 
 
20769
Report bugs to <bug-autoconf@gnu.org>."
 
20770
_ACEOF
 
20771
 
 
20772
cat >>$CONFIG_STATUS <<_ACEOF
 
20773
ac_cs_version="\\
 
20774
config.status
 
20775
configured by $0, generated by GNU Autoconf 2.59,
 
20776
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
20777
 
 
20778
Copyright (C) 2003 Free Software Foundation, Inc.
 
20779
This config.status script is free software; the Free Software Foundation
 
20780
gives unlimited permission to copy, distribute and modify it."
 
20781
srcdir=$srcdir
 
20782
INSTALL="$INSTALL"
 
20783
_ACEOF
 
20784
 
 
20785
cat >>$CONFIG_STATUS <<\_ACEOF
 
20786
# If no file are specified by the user, then we need to provide default
 
20787
# value.  By we need to know if files were specified by the user.
 
20788
ac_need_defaults=:
 
20789
while test $# != 0
 
20790
do
 
20791
  case $1 in
 
20792
  --*=*)
 
20793
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
20794
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
20795
    ac_shift=:
 
20796
    ;;
 
20797
  -*)
 
20798
    ac_option=$1
 
20799
    ac_optarg=$2
 
20800
    ac_shift=shift
 
20801
    ;;
 
20802
  *) # This is not an option, so the user has probably given explicit
 
20803
     # arguments.
 
20804
     ac_option=$1
 
20805
     ac_need_defaults=false;;
 
20806
  esac
 
20807
 
 
20808
  case $ac_option in
 
20809
  # Handling of the options.
 
20810
_ACEOF
 
20811
cat >>$CONFIG_STATUS <<\_ACEOF
 
20812
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
20813
    ac_cs_recheck=: ;;
 
20814
  --version | --vers* | -V )
 
20815
    echo "$ac_cs_version"; exit 0 ;;
 
20816
  --he | --h)
 
20817
    # Conflict between --help and --header
 
20818
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
20819
Try \`$0 --help' for more information." >&5
 
20820
echo "$as_me: error: ambiguous option: $1
 
20821
Try \`$0 --help' for more information." >&2;}
 
20822
   { (exit 1); exit 1; }; };;
 
20823
  --help | --hel | -h )
 
20824
    echo "$ac_cs_usage"; exit 0 ;;
 
20825
  --debug | --d* | -d )
 
20826
    debug=: ;;
 
20827
  --file | --fil | --fi | --f )
 
20828
    $ac_shift
 
20829
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
20830
    ac_need_defaults=false;;
 
20831
  --header | --heade | --head | --hea )
 
20832
    $ac_shift
 
20833
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
20834
    ac_need_defaults=false;;
 
20835
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
20836
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
20837
    ac_cs_silent=: ;;
 
20838
 
 
20839
  # This is an error.
 
20840
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
20841
Try \`$0 --help' for more information." >&5
 
20842
echo "$as_me: error: unrecognized option: $1
 
20843
Try \`$0 --help' for more information." >&2;}
 
20844
   { (exit 1); exit 1; }; } ;;
 
20845
 
 
20846
  *) ac_config_targets="$ac_config_targets $1" ;;
 
20847
 
 
20848
  esac
 
20849
  shift
 
20850
done
 
20851
 
 
20852
ac_configure_extra_args=
 
20853
 
 
20854
if $ac_cs_silent; then
 
20855
  exec 6>/dev/null
 
20856
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
20857
fi
 
20858
 
 
20859
_ACEOF
 
20860
cat >>$CONFIG_STATUS <<_ACEOF
 
20861
if \$ac_cs_recheck; then
 
20862
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
20863
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
20864
fi
 
20865
 
 
20866
_ACEOF
 
20867
 
 
20868
cat >>$CONFIG_STATUS <<_ACEOF
 
20869
#
 
20870
# INIT-COMMANDS section.
 
20871
#
 
20872
 
 
20873
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
20874
 
 
20875
_ACEOF
 
20876
 
 
20877
 
 
20878
 
 
20879
cat >>$CONFIG_STATUS <<\_ACEOF
 
20880
for ac_config_target in $ac_config_targets
 
20881
do
 
20882
  case "$ac_config_target" in
 
20883
  # Handling of arguments.
 
20884
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
20885
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
20886
  "src/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
 
20887
  "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
 
20888
  "src/c/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/c/Makefile" ;;
 
20889
  "src/c/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/c/api/Makefile" ;;
 
20890
  "src/c/clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/c/clients/Makefile" ;;
 
20891
  "src/c/clients/say/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/c/clients/say/Makefile" ;;
 
20892
  "src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
 
20893
  "src/audio/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/audio/Makefile" ;;
 
20894
  "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
 
20895
  "config/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/modules/Makefile" ;;
 
20896
  "config/clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/clients/Makefile" ;;
 
20897
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
20898
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
20899
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
20900
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
20901
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
20902
   { (exit 1); exit 1; }; };;
 
20903
  esac
 
20904
done
 
20905
 
 
20906
# If the user did not use the arguments to specify the items to instantiate,
 
20907
# then the envvar interface is used.  Set only those that are not.
 
20908
# We use the long form for the default assignment because of an extremely
 
20909
# bizarre bug on SunOS 4.1.3.
 
20910
if $ac_need_defaults; then
 
20911
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
20912
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
20913
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
20914
fi
 
20915
 
 
20916
# Have a temporary directory for convenience.  Make it in the build tree
 
20917
# simply because there is no reason to put it here, and in addition,
 
20918
# creating and moving files from /tmp can sometimes cause problems.
 
20919
# Create a temporary directory, and hook for its removal unless debugging.
 
20920
$debug ||
 
20921
{
 
20922
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
20923
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
20924
}
 
20925
 
 
20926
# Create a (secure) tmp directory for tmp files.
 
20927
 
 
20928
{
 
20929
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
20930
  test -n "$tmp" && test -d "$tmp"
 
20931
}  ||
 
20932
{
 
20933
  tmp=./confstat$$-$RANDOM
 
20934
  (umask 077 && mkdir $tmp)
 
20935
} ||
 
20936
{
 
20937
   echo "$me: cannot create a temporary directory in ." >&2
 
20938
   { (exit 1); exit 1; }
 
20939
}
 
20940
 
 
20941
_ACEOF
 
20942
 
 
20943
cat >>$CONFIG_STATUS <<_ACEOF
 
20944
 
 
20945
#
 
20946
# CONFIG_FILES section.
 
20947
#
 
20948
 
 
20949
# No need to generate the scripts if there are no CONFIG_FILES.
 
20950
# This happens for instance when ./config.status config.h
 
20951
if test -n "\$CONFIG_FILES"; then
 
20952
  # Protect against being on the right side of a sed subst in config.status.
 
20953
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
20954
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
20955
s,@SHELL@,$SHELL,;t t
 
20956
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
20957
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
20958
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
20959
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
20960
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
20961
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
20962
s,@exec_prefix@,$exec_prefix,;t t
 
20963
s,@prefix@,$prefix,;t t
 
20964
s,@program_transform_name@,$program_transform_name,;t t
 
20965
s,@bindir@,$bindir,;t t
 
20966
s,@sbindir@,$sbindir,;t t
 
20967
s,@libexecdir@,$libexecdir,;t t
 
20968
s,@datadir@,$datadir,;t t
 
20969
s,@sysconfdir@,$sysconfdir,;t t
 
20970
s,@sharedstatedir@,$sharedstatedir,;t t
 
20971
s,@localstatedir@,$localstatedir,;t t
 
20972
s,@libdir@,$libdir,;t t
 
20973
s,@includedir@,$includedir,;t t
 
20974
s,@oldincludedir@,$oldincludedir,;t t
 
20975
s,@infodir@,$infodir,;t t
 
20976
s,@mandir@,$mandir,;t t
 
20977
s,@build_alias@,$build_alias,;t t
 
20978
s,@host_alias@,$host_alias,;t t
 
20979
s,@target_alias@,$target_alias,;t t
 
20980
s,@DEFS@,$DEFS,;t t
 
20981
s,@ECHO_C@,$ECHO_C,;t t
 
20982
s,@ECHO_N@,$ECHO_N,;t t
 
20983
s,@ECHO_T@,$ECHO_T,;t t
 
20984
s,@LIBS@,$LIBS,;t t
 
20985
s,@CC@,$CC,;t t
 
20986
s,@CFLAGS@,$CFLAGS,;t t
 
20987
s,@LDFLAGS@,$LDFLAGS,;t t
 
20988
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
20989
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
20990
s,@EXEEXT@,$EXEEXT,;t t
 
20991
s,@OBJEXT@,$OBJEXT,;t t
 
20992
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
20993
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
20994
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
20995
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
20996
s,@PACKAGE@,$PACKAGE,;t t
 
20997
s,@VERSION@,$VERSION,;t t
 
20998
s,@ACLOCAL@,$ACLOCAL,;t t
 
20999
s,@AUTOCONF@,$AUTOCONF,;t t
 
21000
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
21001
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
21002
s,@MAKEINFO@,$MAKEINFO,;t t
 
21003
s,@AMTAR@,$AMTAR,;t t
 
21004
s,@install_sh@,$install_sh,;t t
 
21005
s,@STRIP@,$STRIP,;t t
 
21006
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
21007
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
21008
s,@mkdir_p@,$mkdir_p,;t t
 
21009
s,@AWK@,$AWK,;t t
 
21010
s,@SET_MAKE@,$SET_MAKE,;t t
 
21011
s,@am__leading_dot@,$am__leading_dot,;t t
 
21012
s,@DEPDIR@,$DEPDIR,;t t
 
21013
s,@am__include@,$am__include,;t t
 
21014
s,@am__quote@,$am__quote,;t t
 
21015
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
21016
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
21017
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
21018
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
21019
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
21020
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
21021
s,@flite_basic@,$flite_basic,;t t
 
21022
s,@flite_kal@,$flite_kal,;t t
 
21023
s,@glib_include@,$glib_include,;t t
 
21024
s,@glib_libs@,$glib_libs,;t t
 
21025
s,@spdconfdir@,$spdconfdir,;t t
 
21026
s,@snddatadir@,$snddatadir,;t t
 
21027
s,@modulebindir@,$modulebindir,;t t
 
21028
s,@moduleconfdir@,$moduleconfdir,;t t
 
21029
s,@pidpath@,$pidpath,;t t
 
21030
s,@LIB_SDAUDIO_CURRENT@,$LIB_SDAUDIO_CURRENT,;t t
 
21031
s,@LIB_SDAUDIO_REVISION@,$LIB_SDAUDIO_REVISION,;t t
 
21032
s,@LIB_SDAUDIO_AGE@,$LIB_SDAUDIO_AGE,;t t
 
21033
s,@LIB_SPD_CURRENT@,$LIB_SPD_CURRENT,;t t
 
21034
s,@LIB_SPD_REVISION@,$LIB_SPD_REVISION,;t t
 
21035
s,@LIB_SPD_AGE@,$LIB_SPD_AGE,;t t
 
21036
s,@CPP@,$CPP,;t t
 
21037
s,@EGREP@,$EGREP,;t t
 
21038
s,@build@,$build,;t t
 
21039
s,@build_cpu@,$build_cpu,;t t
 
21040
s,@build_vendor@,$build_vendor,;t t
 
21041
s,@build_os@,$build_os,;t t
 
21042
s,@host@,$host,;t t
 
21043
s,@host_cpu@,$host_cpu,;t t
 
21044
s,@host_vendor@,$host_vendor,;t t
 
21045
s,@host_os@,$host_os,;t t
 
21046
s,@LN_S@,$LN_S,;t t
 
21047
s,@ECHO@,$ECHO,;t t
 
21048
s,@AR@,$AR,;t t
 
21049
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
21050
s,@RANLIB@,$RANLIB,;t t
 
21051
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
21052
s,@CXX@,$CXX,;t t
 
21053
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
21054
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
21055
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
21056
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
21057
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
21058
s,@CXXCPP@,$CXXCPP,;t t
 
21059
s,@F77@,$F77,;t t
 
21060
s,@FFLAGS@,$FFLAGS,;t t
 
21061
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
21062
s,@LIBTOOL@,$LIBTOOL,;t t
 
21063
s,@LIBOBJS@,$LIBOBJS,;t t
 
21064
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
21065
CEOF
 
21066
 
 
21067
_ACEOF
 
21068
 
 
21069
  cat >>$CONFIG_STATUS <<\_ACEOF
 
21070
  # Split the substitutions into bite-sized pieces for seds with
 
21071
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
21072
  ac_max_sed_lines=48
 
21073
  ac_sed_frag=1 # Number of current file.
 
21074
  ac_beg=1 # First line for current file.
 
21075
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
21076
  ac_more_lines=:
 
21077
  ac_sed_cmds=
 
21078
  while $ac_more_lines; do
 
21079
    if test $ac_beg -gt 1; then
 
21080
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21081
    else
 
21082
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21083
    fi
 
21084
    if test ! -s $tmp/subs.frag; then
 
21085
      ac_more_lines=false
 
21086
    else
 
21087
      # The purpose of the label and of the branching condition is to
 
21088
      # speed up the sed processing (if there are no `@' at all, there
 
21089
      # is no need to browse any of the substitutions).
 
21090
      # These are the two extra sed commands mentioned above.
 
21091
      (echo ':t
 
21092
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
21093
      if test -z "$ac_sed_cmds"; then
 
21094
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
21095
      else
 
21096
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
21097
      fi
 
21098
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
21099
      ac_beg=$ac_end
 
21100
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
21101
    fi
 
21102
  done
 
21103
  if test -z "$ac_sed_cmds"; then
 
21104
    ac_sed_cmds=cat
 
21105
  fi
 
21106
fi # test -n "$CONFIG_FILES"
 
21107
 
 
21108
_ACEOF
 
21109
cat >>$CONFIG_STATUS <<\_ACEOF
 
21110
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
21111
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
21112
  case $ac_file in
 
21113
  - | *:- | *:-:* ) # input from stdin
 
21114
        cat >$tmp/stdin
 
21115
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21116
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21117
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21118
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21119
  * )   ac_file_in=$ac_file.in ;;
 
21120
  esac
 
21121
 
 
21122
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
21123
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21124
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21125
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21126
         X"$ac_file" : 'X\(//\)$' \| \
 
21127
         X"$ac_file" : 'X\(/\)' \| \
 
21128
         .     : '\(.\)' 2>/dev/null ||
 
21129
echo X"$ac_file" |
 
21130
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21131
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21132
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21133
          /^X\(\/\).*/{ s//\1/; q; }
 
21134
          s/.*/./; q'`
 
21135
  { if $as_mkdir_p; then
 
21136
    mkdir -p "$ac_dir"
 
21137
  else
 
21138
    as_dir="$ac_dir"
 
21139
    as_dirs=
 
21140
    while test ! -d "$as_dir"; do
 
21141
      as_dirs="$as_dir $as_dirs"
 
21142
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21143
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21144
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21145
         X"$as_dir" : 'X\(//\)$' \| \
 
21146
         X"$as_dir" : 'X\(/\)' \| \
 
21147
         .     : '\(.\)' 2>/dev/null ||
 
21148
echo X"$as_dir" |
 
21149
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21150
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21151
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21152
          /^X\(\/\).*/{ s//\1/; q; }
 
21153
          s/.*/./; q'`
 
21154
    done
 
21155
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21156
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21157
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21158
   { (exit 1); exit 1; }; }; }
 
21159
 
 
21160
  ac_builddir=.
 
21161
 
 
21162
if test "$ac_dir" != .; then
 
21163
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21164
  # A "../" for each directory in $ac_dir_suffix.
 
21165
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21166
else
 
21167
  ac_dir_suffix= ac_top_builddir=
 
21168
fi
 
21169
 
 
21170
case $srcdir in
 
21171
  .)  # No --srcdir option.  We are building in place.
 
21172
    ac_srcdir=.
 
21173
    if test -z "$ac_top_builddir"; then
 
21174
       ac_top_srcdir=.
 
21175
    else
 
21176
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21177
    fi ;;
 
21178
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21179
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21180
    ac_top_srcdir=$srcdir ;;
 
21181
  *) # Relative path.
 
21182
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21183
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21184
esac
 
21185
 
 
21186
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21187
# the directories may not exist.
 
21188
case `pwd` in
 
21189
.) ac_abs_builddir="$ac_dir";;
 
21190
*)
 
21191
  case "$ac_dir" in
 
21192
  .) ac_abs_builddir=`pwd`;;
 
21193
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21194
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21195
  esac;;
 
21196
esac
 
21197
case $ac_abs_builddir in
 
21198
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21199
*)
 
21200
  case ${ac_top_builddir}. in
 
21201
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21202
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21203
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21204
  esac;;
 
21205
esac
 
21206
case $ac_abs_builddir in
 
21207
.) ac_abs_srcdir=$ac_srcdir;;
 
21208
*)
 
21209
  case $ac_srcdir in
 
21210
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21211
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21212
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21213
  esac;;
 
21214
esac
 
21215
case $ac_abs_builddir in
 
21216
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21217
*)
 
21218
  case $ac_top_srcdir in
 
21219
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21220
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21221
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21222
  esac;;
 
21223
esac
 
21224
 
 
21225
 
 
21226
  case $INSTALL in
 
21227
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
21228
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
21229
  esac
 
21230
 
 
21231
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21232
  # use $as_me), people would be surprised to read:
 
21233
  #    /* config.h.  Generated by config.status.  */
 
21234
  if test x"$ac_file" = x-; then
 
21235
    configure_input=
 
21236
  else
 
21237
    configure_input="$ac_file.  "
 
21238
  fi
 
21239
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
21240
                                     sed 's,.*/,,'` by configure."
 
21241
 
 
21242
  # First look for the input files in the build tree, otherwise in the
 
21243
  # src tree.
 
21244
  ac_file_inputs=`IFS=:
 
21245
    for f in $ac_file_in; do
 
21246
      case $f in
 
21247
      -) echo $tmp/stdin ;;
 
21248
      [\\/$]*)
 
21249
         # Absolute (can't be DOS-style, as IFS=:)
 
21250
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21251
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21252
   { (exit 1); exit 1; }; }
 
21253
         echo "$f";;
 
21254
      *) # Relative
 
21255
         if test -f "$f"; then
 
21256
           # Build tree
 
21257
           echo "$f"
 
21258
         elif test -f "$srcdir/$f"; then
 
21259
           # Source tree
 
21260
           echo "$srcdir/$f"
 
21261
         else
 
21262
           # /dev/null tree
 
21263
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21264
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21265
   { (exit 1); exit 1; }; }
 
21266
         fi;;
 
21267
      esac
 
21268
    done` || { (exit 1); exit 1; }
 
21269
 
 
21270
  if test x"$ac_file" != x-; then
 
21271
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21272
echo "$as_me: creating $ac_file" >&6;}
 
21273
    rm -f "$ac_file"
 
21274
  fi
 
21275
_ACEOF
 
21276
cat >>$CONFIG_STATUS <<_ACEOF
 
21277
  sed "$ac_vpsub
 
21278
$extrasub
 
21279
_ACEOF
 
21280
cat >>$CONFIG_STATUS <<\_ACEOF
 
21281
:t
 
21282
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21283
s,@configure_input@,$configure_input,;t t
 
21284
s,@srcdir@,$ac_srcdir,;t t
 
21285
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
21286
s,@top_srcdir@,$ac_top_srcdir,;t t
 
21287
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
21288
s,@builddir@,$ac_builddir,;t t
 
21289
s,@abs_builddir@,$ac_abs_builddir,;t t
 
21290
s,@top_builddir@,$ac_top_builddir,;t t
 
21291
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
21292
s,@INSTALL@,$ac_INSTALL,;t t
 
21293
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
21294
  rm -f $tmp/stdin
 
21295
  if test x"$ac_file" != x-; then
 
21296
    mv $tmp/out $ac_file
 
21297
  else
 
21298
    cat $tmp/out
 
21299
    rm -f $tmp/out
 
21300
  fi
 
21301
 
 
21302
done
 
21303
_ACEOF
 
21304
cat >>$CONFIG_STATUS <<\_ACEOF
 
21305
 
 
21306
#
 
21307
# CONFIG_HEADER section.
 
21308
#
 
21309
 
 
21310
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
21311
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
21312
#
 
21313
# ac_d sets the value in "#define NAME VALUE" lines.
 
21314
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
21315
ac_dB='[         ].*$,\1#\2'
 
21316
ac_dC=' '
 
21317
ac_dD=',;t'
 
21318
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
21319
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
21320
ac_uB='$,\1#\2define\3'
 
21321
ac_uC=' '
 
21322
ac_uD=',;t'
 
21323
 
 
21324
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
21325
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
21326
  case $ac_file in
 
21327
  - | *:- | *:-:* ) # input from stdin
 
21328
        cat >$tmp/stdin
 
21329
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21330
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21331
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21332
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
21333
  * )   ac_file_in=$ac_file.in ;;
 
21334
  esac
 
21335
 
 
21336
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21337
echo "$as_me: creating $ac_file" >&6;}
 
21338
 
 
21339
  # First look for the input files in the build tree, otherwise in the
 
21340
  # src tree.
 
21341
  ac_file_inputs=`IFS=:
 
21342
    for f in $ac_file_in; do
 
21343
      case $f in
 
21344
      -) echo $tmp/stdin ;;
 
21345
      [\\/$]*)
 
21346
         # Absolute (can't be DOS-style, as IFS=:)
 
21347
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21348
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21349
   { (exit 1); exit 1; }; }
 
21350
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
21351
         echo "$f";;
 
21352
      *) # Relative
 
21353
         if test -f "$f"; then
 
21354
           # Build tree
 
21355
           echo "$f"
 
21356
         elif test -f "$srcdir/$f"; then
 
21357
           # Source tree
 
21358
           echo "$srcdir/$f"
 
21359
         else
 
21360
           # /dev/null tree
 
21361
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
21362
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21363
   { (exit 1); exit 1; }; }
 
21364
         fi;;
 
21365
      esac
 
21366
    done` || { (exit 1); exit 1; }
 
21367
  # Remove the trailing spaces.
 
21368
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
21369
 
 
21370
_ACEOF
 
21371
 
 
21372
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
21373
# `conftest.undefs', that substitutes the proper values into
 
21374
# config.h.in to produce config.h.  The first handles `#define'
 
21375
# templates, and the second `#undef' templates.
 
21376
# And first: Protect against being on the right side of a sed subst in
 
21377
# config.status.  Protect against being in an unquoted here document
 
21378
# in config.status.
 
21379
rm -f conftest.defines conftest.undefs
 
21380
# Using a here document instead of a string reduces the quoting nightmare.
 
21381
# Putting comments in sed scripts is not portable.
 
21382
#
 
21383
# `end' is used to avoid that the second main sed command (meant for
 
21384
# 0-ary CPP macros) applies to n-ary macro definitions.
 
21385
# See the Autoconf documentation for `clear'.
 
21386
cat >confdef2sed.sed <<\_ACEOF
 
21387
s/[\\&,]/\\&/g
 
21388
s,[\\$`],\\&,g
 
21389
t clear
 
21390
: clear
 
21391
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
21392
t end
 
21393
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
21394
: end
 
21395
_ACEOF
 
21396
# If some macros were called several times there might be several times
 
21397
# the same #defines, which is useless.  Nevertheless, we may not want to
 
21398
# sort them, since we want the *last* AC-DEFINE to be honored.
 
21399
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
21400
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
21401
rm -f confdef2sed.sed
 
21402
 
 
21403
# This sed command replaces #undef with comments.  This is necessary, for
 
21404
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
21405
# on some systems where configure will not decide to define it.
 
21406
cat >>conftest.undefs <<\_ACEOF
 
21407
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
21408
_ACEOF
 
21409
 
 
21410
# Break up conftest.defines because some shells have a limit on the size
 
21411
# of here documents, and old seds have small limits too (100 cmds).
 
21412
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
21413
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
21414
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
21415
echo '  :' >>$CONFIG_STATUS
 
21416
rm -f conftest.tail
 
21417
while grep . conftest.defines >/dev/null
 
21418
do
 
21419
  # Write a limited-size here document to $tmp/defines.sed.
 
21420
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
21421
  # Speed up: don't consider the non `#define' lines.
 
21422
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
21423
  # Work around the forget-to-reset-the-flag bug.
 
21424
  echo 't clr' >>$CONFIG_STATUS
 
21425
  echo ': clr' >>$CONFIG_STATUS
 
21426
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
21427
  echo 'CEOF
 
21428
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
21429
  rm -f $tmp/in
 
21430
  mv $tmp/out $tmp/in
 
21431
' >>$CONFIG_STATUS
 
21432
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
21433
  rm -f conftest.defines
 
21434
  mv conftest.tail conftest.defines
 
21435
done
 
21436
rm -f conftest.defines
 
21437
echo '  fi # grep' >>$CONFIG_STATUS
 
21438
echo >>$CONFIG_STATUS
 
21439
 
 
21440
# Break up conftest.undefs because some shells have a limit on the size
 
21441
# of here documents, and old seds have small limits too (100 cmds).
 
21442
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
21443
rm -f conftest.tail
 
21444
while grep . conftest.undefs >/dev/null
 
21445
do
 
21446
  # Write a limited-size here document to $tmp/undefs.sed.
 
21447
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
21448
  # Speed up: don't consider the non `#undef'
 
21449
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
21450
  # Work around the forget-to-reset-the-flag bug.
 
21451
  echo 't clr' >>$CONFIG_STATUS
 
21452
  echo ': clr' >>$CONFIG_STATUS
 
21453
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
21454
  echo 'CEOF
 
21455
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
21456
  rm -f $tmp/in
 
21457
  mv $tmp/out $tmp/in
 
21458
' >>$CONFIG_STATUS
 
21459
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
21460
  rm -f conftest.undefs
 
21461
  mv conftest.tail conftest.undefs
 
21462
done
 
21463
rm -f conftest.undefs
 
21464
 
 
21465
cat >>$CONFIG_STATUS <<\_ACEOF
 
21466
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21467
  # use $as_me), people would be surprised to read:
 
21468
  #    /* config.h.  Generated by config.status.  */
 
21469
  if test x"$ac_file" = x-; then
 
21470
    echo "/* Generated by configure.  */" >$tmp/config.h
 
21471
  else
 
21472
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
21473
  fi
 
21474
  cat $tmp/in >>$tmp/config.h
 
21475
  rm -f $tmp/in
 
21476
  if test x"$ac_file" != x-; then
 
21477
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
21478
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
21479
echo "$as_me: $ac_file is unchanged" >&6;}
 
21480
    else
 
21481
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21482
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21483
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21484
         X"$ac_file" : 'X\(//\)$' \| \
 
21485
         X"$ac_file" : 'X\(/\)' \| \
 
21486
         .     : '\(.\)' 2>/dev/null ||
 
21487
echo X"$ac_file" |
 
21488
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21489
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21490
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21491
          /^X\(\/\).*/{ s//\1/; q; }
 
21492
          s/.*/./; q'`
 
21493
      { if $as_mkdir_p; then
 
21494
    mkdir -p "$ac_dir"
 
21495
  else
 
21496
    as_dir="$ac_dir"
 
21497
    as_dirs=
 
21498
    while test ! -d "$as_dir"; do
 
21499
      as_dirs="$as_dir $as_dirs"
 
21500
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21501
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21502
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21503
         X"$as_dir" : 'X\(//\)$' \| \
 
21504
         X"$as_dir" : 'X\(/\)' \| \
 
21505
         .     : '\(.\)' 2>/dev/null ||
 
21506
echo X"$as_dir" |
 
21507
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21508
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21509
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21510
          /^X\(\/\).*/{ s//\1/; q; }
 
21511
          s/.*/./; q'`
 
21512
    done
 
21513
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21514
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21515
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21516
   { (exit 1); exit 1; }; }; }
 
21517
 
 
21518
      rm -f $ac_file
 
21519
      mv $tmp/config.h $ac_file
 
21520
    fi
 
21521
  else
 
21522
    cat $tmp/config.h
 
21523
    rm -f $tmp/config.h
 
21524
  fi
 
21525
# Compute $ac_file's index in $config_headers.
 
21526
_am_stamp_count=1
 
21527
for _am_header in $config_headers :; do
 
21528
  case $_am_header in
 
21529
    $ac_file | $ac_file:* )
 
21530
      break ;;
 
21531
    * )
 
21532
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
21533
  esac
 
21534
done
 
21535
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
21536
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21537
         X$ac_file : 'X\(//\)[^/]' \| \
 
21538
         X$ac_file : 'X\(//\)$' \| \
 
21539
         X$ac_file : 'X\(/\)' \| \
 
21540
         .     : '\(.\)' 2>/dev/null ||
 
21541
echo X$ac_file |
 
21542
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21543
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21544
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21545
          /^X\(\/\).*/{ s//\1/; q; }
 
21546
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
21547
done
 
21548
_ACEOF
 
21549
cat >>$CONFIG_STATUS <<\_ACEOF
 
21550
 
 
21551
#
 
21552
# CONFIG_COMMANDS section.
 
21553
#
 
21554
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
21555
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
21556
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21557
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
21558
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21559
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
21560
         X"$ac_dest" : 'X\(//\)$' \| \
 
21561
         X"$ac_dest" : 'X\(/\)' \| \
 
21562
         .     : '\(.\)' 2>/dev/null ||
 
21563
echo X"$ac_dest" |
 
21564
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21565
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21566
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21567
          /^X\(\/\).*/{ s//\1/; q; }
 
21568
          s/.*/./; q'`
 
21569
  { if $as_mkdir_p; then
 
21570
    mkdir -p "$ac_dir"
 
21571
  else
 
21572
    as_dir="$ac_dir"
 
21573
    as_dirs=
 
21574
    while test ! -d "$as_dir"; do
 
21575
      as_dirs="$as_dir $as_dirs"
 
21576
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21577
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21578
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21579
         X"$as_dir" : 'X\(//\)$' \| \
 
21580
         X"$as_dir" : 'X\(/\)' \| \
 
21581
         .     : '\(.\)' 2>/dev/null ||
 
21582
echo X"$as_dir" |
 
21583
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21584
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21585
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21586
          /^X\(\/\).*/{ s//\1/; q; }
 
21587
          s/.*/./; q'`
 
21588
    done
 
21589
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21590
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21591
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21592
   { (exit 1); exit 1; }; }; }
 
21593
 
 
21594
  ac_builddir=.
 
21595
 
 
21596
if test "$ac_dir" != .; then
 
21597
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21598
  # A "../" for each directory in $ac_dir_suffix.
 
21599
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21600
else
 
21601
  ac_dir_suffix= ac_top_builddir=
 
21602
fi
 
21603
 
 
21604
case $srcdir in
 
21605
  .)  # No --srcdir option.  We are building in place.
 
21606
    ac_srcdir=.
 
21607
    if test -z "$ac_top_builddir"; then
 
21608
       ac_top_srcdir=.
 
21609
    else
 
21610
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21611
    fi ;;
 
21612
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21613
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21614
    ac_top_srcdir=$srcdir ;;
 
21615
  *) # Relative path.
 
21616
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21617
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21618
esac
 
21619
 
 
21620
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21621
# the directories may not exist.
 
21622
case `pwd` in
 
21623
.) ac_abs_builddir="$ac_dir";;
 
21624
*)
 
21625
  case "$ac_dir" in
 
21626
  .) ac_abs_builddir=`pwd`;;
 
21627
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21628
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21629
  esac;;
 
21630
esac
 
21631
case $ac_abs_builddir in
 
21632
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21633
*)
 
21634
  case ${ac_top_builddir}. in
 
21635
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21636
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21637
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21638
  esac;;
 
21639
esac
 
21640
case $ac_abs_builddir in
 
21641
.) ac_abs_srcdir=$ac_srcdir;;
 
21642
*)
 
21643
  case $ac_srcdir in
 
21644
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21645
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21646
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21647
  esac;;
 
21648
esac
 
21649
case $ac_abs_builddir in
 
21650
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21651
*)
 
21652
  case $ac_top_srcdir in
 
21653
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21654
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21655
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21656
  esac;;
 
21657
esac
 
21658
 
 
21659
 
 
21660
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
21661
echo "$as_me: executing $ac_dest commands" >&6;}
 
21662
  case $ac_dest in
 
21663
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
21664
  # Strip MF so we end up with the name of the file.
 
21665
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21666
  # Check whether this is an Automake generated Makefile or not.
 
21667
  # We used to match only the files named `Makefile.in', but
 
21668
  # some people rename them; so instead we look at the file content.
 
21669
  # Grep'ing the first line is not enough: some people post-process
 
21670
  # each Makefile.in and add a new line on top of each file to say so.
 
21671
  # So let's grep whole file.
 
21672
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
21673
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
21674
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21675
         X"$mf" : 'X\(//\)[^/]' \| \
 
21676
         X"$mf" : 'X\(//\)$' \| \
 
21677
         X"$mf" : 'X\(/\)' \| \
 
21678
         .     : '\(.\)' 2>/dev/null ||
 
21679
echo X"$mf" |
 
21680
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21681
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21682
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21683
          /^X\(\/\).*/{ s//\1/; q; }
 
21684
          s/.*/./; q'`
 
21685
  else
 
21686
    continue
 
21687
  fi
 
21688
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
21689
  # Extract the definition of DEP_FILES from the Makefile without
 
21690
  # running `make'.
 
21691
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21692
  test -z "$DEPDIR" && continue
 
21693
  # When using ansi2knr, U may be empty or an underscore; expand it
 
21694
  U=`sed -n 's/^U = //p' < "$mf"`
 
21695
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
21696
  # We invoke sed twice because it is the simplest approach to
 
21697
  # changing $(DEPDIR) to its actual value in the expansion.
 
21698
  for file in `sed -n '
 
21699
    /^DEP_FILES = .*\\\\$/ {
 
21700
      s/^DEP_FILES = //
 
21701
      :loop
 
21702
        s/\\\\$//
 
21703
        p
 
21704
        n
 
21705
        /\\\\$/ b loop
 
21706
      p
 
21707
    }
 
21708
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
21709
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
21710
    # Make sure the directory exists.
 
21711
    test -f "$dirpart/$file" && continue
 
21712
    fdir=`(dirname "$file") 2>/dev/null ||
 
21713
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21714
         X"$file" : 'X\(//\)[^/]' \| \
 
21715
         X"$file" : 'X\(//\)$' \| \
 
21716
         X"$file" : 'X\(/\)' \| \
 
21717
         .     : '\(.\)' 2>/dev/null ||
 
21718
echo X"$file" |
 
21719
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21720
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21721
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21722
          /^X\(\/\).*/{ s//\1/; q; }
 
21723
          s/.*/./; q'`
 
21724
    { if $as_mkdir_p; then
 
21725
    mkdir -p $dirpart/$fdir
 
21726
  else
 
21727
    as_dir=$dirpart/$fdir
 
21728
    as_dirs=
 
21729
    while test ! -d "$as_dir"; do
 
21730
      as_dirs="$as_dir $as_dirs"
 
21731
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21732
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21733
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21734
         X"$as_dir" : 'X\(//\)$' \| \
 
21735
         X"$as_dir" : 'X\(/\)' \| \
 
21736
         .     : '\(.\)' 2>/dev/null ||
 
21737
echo X"$as_dir" |
 
21738
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21739
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21740
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21741
          /^X\(\/\).*/{ s//\1/; q; }
 
21742
          s/.*/./; q'`
 
21743
    done
 
21744
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21745
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
21746
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
21747
   { (exit 1); exit 1; }; }; }
 
21748
 
 
21749
    # echo "creating $dirpart/$file"
 
21750
    echo '# dummy' > "$dirpart/$file"
 
21751
  done
 
21752
done
 
21753
 ;;
 
21754
  esac
 
21755
done
 
21756
_ACEOF
 
21757
 
 
21758
cat >>$CONFIG_STATUS <<\_ACEOF
 
21759
 
 
21760
{ (exit 0); exit 0; }
 
21761
_ACEOF
 
21762
chmod +x $CONFIG_STATUS
 
21763
ac_clean_files=$ac_clean_files_save
 
21764
 
 
21765
 
 
21766
# configure is writing to config.log, and then calls config.status.
 
21767
# config.status does its own redirection, appending to config.log.
 
21768
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21769
# by configure, so config.status won't be able to write to it; its
 
21770
# output is simply discarded.  So we exec the FD to /dev/null,
 
21771
# effectively closing config.log, so it can be properly (re)opened and
 
21772
# appended to by config.status.  When coming back to configure, we
 
21773
# need to make the FD available again.
 
21774
if test "$no_create" != yes; then
 
21775
  ac_cs_success=:
 
21776
  ac_config_status_args=
 
21777
  test "$silent" = yes &&
 
21778
    ac_config_status_args="$ac_config_status_args --quiet"
 
21779
  exec 5>/dev/null
 
21780
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21781
  exec 5>>config.log
 
21782
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21783
  # would make configure fail if this is the last instruction.
 
21784
  $ac_cs_success || { (exit 1); exit 1; }
 
21785
fi
 
21786
 
 
21787