~ubuntu-branches/ubuntu/maverick/ipmitool/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Petter Reinholdtsen
  • Date: 2005-04-07 01:18:44 UTC
  • Revision ID: james.westby@ubuntu.com-20050407011844-a1b206z5iefiu5vi
Tags: upstream-1.8.1
ImportĀ upstreamĀ versionĀ 1.8.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="src/ipmitool.c"
 
429
ac_unique_file="src/ipmitool.c"
 
430
# Factoring default headers for most tests.
 
431
ac_includes_default="\
 
432
#include <stdio.h>
 
433
#if HAVE_SYS_TYPES_H
 
434
# include <sys/types.h>
 
435
#endif
 
436
#if HAVE_SYS_STAT_H
 
437
# include <sys/stat.h>
 
438
#endif
 
439
#if STDC_HEADERS
 
440
# include <stdlib.h>
 
441
# include <stddef.h>
 
442
#else
 
443
# if HAVE_STDLIB_H
 
444
#  include <stdlib.h>
 
445
# endif
 
446
#endif
 
447
#if HAVE_STRING_H
 
448
# if !STDC_HEADERS && HAVE_MEMORY_H
 
449
#  include <memory.h>
 
450
# endif
 
451
# include <string.h>
 
452
#endif
 
453
#if HAVE_STRINGS_H
 
454
# include <strings.h>
 
455
#endif
 
456
#if HAVE_INTTYPES_H
 
457
# include <inttypes.h>
 
458
#else
 
459
# if HAVE_STDINT_H
 
460
#  include <stdint.h>
 
461
# endif
 
462
#endif
 
463
#if HAVE_UNISTD_H
 
464
# include <unistd.h>
 
465
#endif"
 
466
 
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE ac_configure_args CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE LN_S RPMBUILD SED CPP EGREP LIBOBJS POW_LIB ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ARCH OS PSTAMP BASEDIR INTF_LAN INTF_LAN_LIB INTF_LANPLUS INTF_LANPLUS_LIB INTF_OPEN INTF_OPEN_LIB INTF_IMB INTF_IMB_LIB INTF_LIPMI INTF_LIPMI_LIB INTF_BMC INTF_BMC_LIB IPMITOOL_INTF_LIB IPMIEVD_TRUE IPMIEVD_FALSE IPMIEVD_BIN LTLIBOBJS'
 
468
ac_subst_files=''
 
469
 
 
470
# Initialize some variables set by options.
 
471
ac_init_help=
 
472
ac_init_version=false
 
473
# The variables have the same names as the options, with
 
474
# dashes changed to underlines.
 
475
cache_file=/dev/null
 
476
exec_prefix=NONE
 
477
no_create=
 
478
no_recursion=
 
479
prefix=NONE
 
480
program_prefix=NONE
 
481
program_suffix=NONE
 
482
program_transform_name=s,x,x,
 
483
silent=
 
484
site=
 
485
srcdir=
 
486
verbose=
 
487
x_includes=NONE
 
488
x_libraries=NONE
 
489
 
 
490
# Installation directory options.
 
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
492
# and all the variables that are supposed to be based on exec_prefix
 
493
# by default will actually change.
 
494
# Use braces instead of parens because sh, perl, etc. also accept them.
 
495
bindir='${exec_prefix}/bin'
 
496
sbindir='${exec_prefix}/sbin'
 
497
libexecdir='${exec_prefix}/libexec'
 
498
datadir='${prefix}/share'
 
499
sysconfdir='${prefix}/etc'
 
500
sharedstatedir='${prefix}/com'
 
501
localstatedir='${prefix}/var'
 
502
libdir='${exec_prefix}/lib'
 
503
includedir='${prefix}/include'
 
504
oldincludedir='/usr/include'
 
505
infodir='${prefix}/info'
 
506
mandir='${prefix}/man'
 
507
 
 
508
ac_prev=
 
509
for ac_option
 
510
do
 
511
  # If the previous option needs an argument, assign it.
 
512
  if test -n "$ac_prev"; then
 
513
    eval "$ac_prev=\$ac_option"
 
514
    ac_prev=
 
515
    continue
 
516
  fi
 
517
 
 
518
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
519
 
 
520
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
521
 
 
522
  case $ac_option in
 
523
 
 
524
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
525
    ac_prev=bindir ;;
 
526
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
527
    bindir=$ac_optarg ;;
 
528
 
 
529
  -build | --build | --buil | --bui | --bu)
 
530
    ac_prev=build_alias ;;
 
531
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
532
    build_alias=$ac_optarg ;;
 
533
 
 
534
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
535
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
536
    ac_prev=cache_file ;;
 
537
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
538
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
539
    cache_file=$ac_optarg ;;
 
540
 
 
541
  --config-cache | -C)
 
542
    cache_file=config.cache ;;
 
543
 
 
544
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
545
    ac_prev=datadir ;;
 
546
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
547
  | --da=*)
 
548
    datadir=$ac_optarg ;;
 
549
 
 
550
  -disable-* | --disable-*)
 
551
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
557
    eval "enable_$ac_feature=no" ;;
 
558
 
 
559
  -enable-* | --enable-*)
 
560
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
561
    # Reject names that are not valid shell variable names.
 
562
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
563
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
564
   { (exit 1); exit 1; }; }
 
565
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
566
    case $ac_option in
 
567
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
568
      *) ac_optarg=yes ;;
 
569
    esac
 
570
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
571
 
 
572
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
573
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
574
  | --exec | --exe | --ex)
 
575
    ac_prev=exec_prefix ;;
 
576
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
577
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
578
  | --exec=* | --exe=* | --ex=*)
 
579
    exec_prefix=$ac_optarg ;;
 
580
 
 
581
  -gas | --gas | --ga | --g)
 
582
    # Obsolete; use --with-gas.
 
583
    with_gas=yes ;;
 
584
 
 
585
  -help | --help | --hel | --he | -h)
 
586
    ac_init_help=long ;;
 
587
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
588
    ac_init_help=recursive ;;
 
589
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
590
    ac_init_help=short ;;
 
591
 
 
592
  -host | --host | --hos | --ho)
 
593
    ac_prev=host_alias ;;
 
594
  -host=* | --host=* | --hos=* | --ho=*)
 
595
    host_alias=$ac_optarg ;;
 
596
 
 
597
  -includedir | --includedir | --includedi | --included | --include \
 
598
  | --includ | --inclu | --incl | --inc)
 
599
    ac_prev=includedir ;;
 
600
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
601
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
602
    includedir=$ac_optarg ;;
 
603
 
 
604
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
605
    ac_prev=infodir ;;
 
606
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
607
    infodir=$ac_optarg ;;
 
608
 
 
609
  -libdir | --libdir | --libdi | --libd)
 
610
    ac_prev=libdir ;;
 
611
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
612
    libdir=$ac_optarg ;;
 
613
 
 
614
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
615
  | --libexe | --libex | --libe)
 
616
    ac_prev=libexecdir ;;
 
617
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
618
  | --libexe=* | --libex=* | --libe=*)
 
619
    libexecdir=$ac_optarg ;;
 
620
 
 
621
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
622
  | --localstate | --localstat | --localsta | --localst \
 
623
  | --locals | --local | --loca | --loc | --lo)
 
624
    ac_prev=localstatedir ;;
 
625
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
626
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
627
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
628
    localstatedir=$ac_optarg ;;
 
629
 
 
630
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
631
    ac_prev=mandir ;;
 
632
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
633
    mandir=$ac_optarg ;;
 
634
 
 
635
  -nfp | --nfp | --nf)
 
636
    # Obsolete; use --without-fp.
 
637
    with_fp=no ;;
 
638
 
 
639
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
640
  | --no-cr | --no-c | -n)
 
641
    no_create=yes ;;
 
642
 
 
643
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
644
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
645
    no_recursion=yes ;;
 
646
 
 
647
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
648
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
649
  | --oldin | --oldi | --old | --ol | --o)
 
650
    ac_prev=oldincludedir ;;
 
651
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
652
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
653
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
654
    oldincludedir=$ac_optarg ;;
 
655
 
 
656
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
657
    ac_prev=prefix ;;
 
658
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
659
    prefix=$ac_optarg ;;
 
660
 
 
661
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
662
  | --program-pre | --program-pr | --program-p)
 
663
    ac_prev=program_prefix ;;
 
664
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
665
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
666
    program_prefix=$ac_optarg ;;
 
667
 
 
668
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
669
  | --program-suf | --program-su | --program-s)
 
670
    ac_prev=program_suffix ;;
 
671
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
672
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
673
    program_suffix=$ac_optarg ;;
 
674
 
 
675
  -program-transform-name | --program-transform-name \
 
676
  | --program-transform-nam | --program-transform-na \
 
677
  | --program-transform-n | --program-transform- \
 
678
  | --program-transform | --program-transfor \
 
679
  | --program-transfo | --program-transf \
 
680
  | --program-trans | --program-tran \
 
681
  | --progr-tra | --program-tr | --program-t)
 
682
    ac_prev=program_transform_name ;;
 
683
  -program-transform-name=* | --program-transform-name=* \
 
684
  | --program-transform-nam=* | --program-transform-na=* \
 
685
  | --program-transform-n=* | --program-transform-=* \
 
686
  | --program-transform=* | --program-transfor=* \
 
687
  | --program-transfo=* | --program-transf=* \
 
688
  | --program-trans=* | --program-tran=* \
 
689
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
690
    program_transform_name=$ac_optarg ;;
 
691
 
 
692
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
693
  | -silent | --silent | --silen | --sile | --sil)
 
694
    silent=yes ;;
 
695
 
 
696
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
697
    ac_prev=sbindir ;;
 
698
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
699
  | --sbi=* | --sb=*)
 
700
    sbindir=$ac_optarg ;;
 
701
 
 
702
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
703
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
704
  | --sharedst | --shareds | --shared | --share | --shar \
 
705
  | --sha | --sh)
 
706
    ac_prev=sharedstatedir ;;
 
707
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
708
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
709
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
710
  | --sha=* | --sh=*)
 
711
    sharedstatedir=$ac_optarg ;;
 
712
 
 
713
  -site | --site | --sit)
 
714
    ac_prev=site ;;
 
715
  -site=* | --site=* | --sit=*)
 
716
    site=$ac_optarg ;;
 
717
 
 
718
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
719
    ac_prev=srcdir ;;
 
720
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
721
    srcdir=$ac_optarg ;;
 
722
 
 
723
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
724
  | --syscon | --sysco | --sysc | --sys | --sy)
 
725
    ac_prev=sysconfdir ;;
 
726
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
727
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
728
    sysconfdir=$ac_optarg ;;
 
729
 
 
730
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
731
    ac_prev=target_alias ;;
 
732
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
733
    target_alias=$ac_optarg ;;
 
734
 
 
735
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
736
    verbose=yes ;;
 
737
 
 
738
  -version | --version | --versio | --versi | --vers | -V)
 
739
    ac_init_version=: ;;
 
740
 
 
741
  -with-* | --with-*)
 
742
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
743
    # Reject names that are not valid shell variable names.
 
744
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
745
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
746
   { (exit 1); exit 1; }; }
 
747
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
748
    case $ac_option in
 
749
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
750
      *) ac_optarg=yes ;;
 
751
    esac
 
752
    eval "with_$ac_package='$ac_optarg'" ;;
 
753
 
 
754
  -without-* | --without-*)
 
755
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
756
    # Reject names that are not valid shell variable names.
 
757
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
758
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
759
   { (exit 1); exit 1; }; }
 
760
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
761
    eval "with_$ac_package=no" ;;
 
762
 
 
763
  --x)
 
764
    # Obsolete; use --with-x.
 
765
    with_x=yes ;;
 
766
 
 
767
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
768
  | --x-incl | --x-inc | --x-in | --x-i)
 
769
    ac_prev=x_includes ;;
 
770
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
771
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
772
    x_includes=$ac_optarg ;;
 
773
 
 
774
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
775
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
776
    ac_prev=x_libraries ;;
 
777
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
778
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
779
    x_libraries=$ac_optarg ;;
 
780
 
 
781
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
782
Try \`$0 --help' for more information." >&2
 
783
   { (exit 1); exit 1; }; }
 
784
    ;;
 
785
 
 
786
  *=*)
 
787
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
788
    # Reject names that are not valid shell variable names.
 
789
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
790
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
791
   { (exit 1); exit 1; }; }
 
792
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
793
    eval "$ac_envvar='$ac_optarg'"
 
794
    export $ac_envvar ;;
 
795
 
 
796
  *)
 
797
    # FIXME: should be removed in autoconf 3.0.
 
798
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
799
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
800
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
801
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
802
    ;;
 
803
 
 
804
  esac
 
805
done
 
806
 
 
807
if test -n "$ac_prev"; then
 
808
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
809
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
810
   { (exit 1); exit 1; }; }
 
811
fi
 
812
 
 
813
# Be sure to have absolute paths.
 
814
for ac_var in exec_prefix prefix
 
815
do
 
816
  eval ac_val=$`echo $ac_var`
 
817
  case $ac_val in
 
818
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
819
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
820
   { (exit 1); exit 1; }; };;
 
821
  esac
 
822
done
 
823
 
 
824
# Be sure to have absolute paths.
 
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
 
827
do
 
828
  eval ac_val=$`echo $ac_var`
 
829
  case $ac_val in
 
830
    [\\/$]* | ?:[\\/]* ) ;;
 
831
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
832
   { (exit 1); exit 1; }; };;
 
833
  esac
 
834
done
 
835
 
 
836
# There might be people who depend on the old broken behavior: `$host'
 
837
# used to hold the argument of --host etc.
 
838
# FIXME: To remove some day.
 
839
build=$build_alias
 
840
host=$host_alias
 
841
target=$target_alias
 
842
 
 
843
# FIXME: To remove some day.
 
844
if test "x$host_alias" != x; then
 
845
  if test "x$build_alias" = x; then
 
846
    cross_compiling=maybe
 
847
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
848
    If a cross compiler is detected then cross compile mode will be used." >&2
 
849
  elif test "x$build_alias" != "x$host_alias"; then
 
850
    cross_compiling=yes
 
851
  fi
 
852
fi
 
853
 
 
854
ac_tool_prefix=
 
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
856
 
 
857
test "$silent" = yes && exec 6>/dev/null
 
858
 
 
859
 
 
860
# Find the source files, if location was not specified.
 
861
if test -z "$srcdir"; then
 
862
  ac_srcdir_defaulted=yes
 
863
  # Try the directory containing this script, then its parent.
 
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
 
870
echo X"$0" |
 
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
874
          /^X\(\/\).*/{ s//\1/; q; }
 
875
          s/.*/./; q'`
 
876
  srcdir=$ac_confdir
 
877
  if test ! -r $srcdir/$ac_unique_file; then
 
878
    srcdir=..
 
879
  fi
 
880
else
 
881
  ac_srcdir_defaulted=no
 
882
fi
 
883
if test ! -r $srcdir/$ac_unique_file; then
 
884
  if test "$ac_srcdir_defaulted" = yes; then
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
886
   { (exit 1); exit 1; }; }
 
887
  else
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
889
   { (exit 1); exit 1; }; }
 
890
  fi
 
891
fi
 
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
893
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
896
ac_env_build_alias_set=${build_alias+set}
 
897
ac_env_build_alias_value=$build_alias
 
898
ac_cv_env_build_alias_set=${build_alias+set}
 
899
ac_cv_env_build_alias_value=$build_alias
 
900
ac_env_host_alias_set=${host_alias+set}
 
901
ac_env_host_alias_value=$host_alias
 
902
ac_cv_env_host_alias_set=${host_alias+set}
 
903
ac_cv_env_host_alias_value=$host_alias
 
904
ac_env_target_alias_set=${target_alias+set}
 
905
ac_env_target_alias_value=$target_alias
 
906
ac_cv_env_target_alias_set=${target_alias+set}
 
907
ac_cv_env_target_alias_value=$target_alias
 
908
ac_env_CC_set=${CC+set}
 
909
ac_env_CC_value=$CC
 
910
ac_cv_env_CC_set=${CC+set}
 
911
ac_cv_env_CC_value=$CC
 
912
ac_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_env_CFLAGS_value=$CFLAGS
 
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
915
ac_cv_env_CFLAGS_value=$CFLAGS
 
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_env_LDFLAGS_value=$LDFLAGS
 
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
924
ac_env_CPP_set=${CPP+set}
 
925
ac_env_CPP_value=$CPP
 
926
ac_cv_env_CPP_set=${CPP+set}
 
927
ac_cv_env_CPP_value=$CPP
 
928
ac_env_CXX_set=${CXX+set}
 
929
ac_env_CXX_value=$CXX
 
930
ac_cv_env_CXX_set=${CXX+set}
 
931
ac_cv_env_CXX_value=$CXX
 
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
933
ac_env_CXXFLAGS_value=$CXXFLAGS
 
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
936
ac_env_CXXCPP_set=${CXXCPP+set}
 
937
ac_env_CXXCPP_value=$CXXCPP
 
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
 
948
 
 
949
#
 
950
# Report the --help message.
 
951
#
 
952
if test "$ac_init_help" = "long"; then
 
953
  # Omit some internal or obsolete options to make the list less imposing.
 
954
  # This message is too long to be a string in the A/UX 3.1 sh.
 
955
  cat <<_ACEOF
 
956
\`configure' configures this package to adapt to many kinds of systems.
 
957
 
 
958
Usage: $0 [OPTION]... [VAR=VALUE]...
 
959
 
 
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
961
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
962
 
 
963
Defaults for the options are specified in brackets.
 
964
 
 
965
Configuration:
 
966
  -h, --help              display this help and exit
 
967
      --help=short        display options specific to this package
 
968
      --help=recursive    display the short help of all the included packages
 
969
  -V, --version           display version information and exit
 
970
  -q, --quiet, --silent   do not print \`checking...' messages
 
971
      --cache-file=FILE   cache test results in FILE [disabled]
 
972
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
973
  -n, --no-create         do not create output files
 
974
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
975
 
 
976
_ACEOF
 
977
 
 
978
  cat <<_ACEOF
 
979
Installation directories:
 
980
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
981
                          [$ac_default_prefix]
 
982
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
983
                          [PREFIX]
 
984
 
 
985
By default, \`make install' will install all the files in
 
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
988
for instance \`--prefix=\$HOME'.
 
989
 
 
990
For better control, use the options below.
 
991
 
 
992
Fine tuning of the installation directories:
 
993
  --bindir=DIR           user executables [EPREFIX/bin]
 
994
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
995
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
996
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
997
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
998
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
999
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1000
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1001
  --includedir=DIR       C header files [PREFIX/include]
 
1002
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1003
  --infodir=DIR          info documentation [PREFIX/info]
 
1004
  --mandir=DIR           man documentation [PREFIX/man]
 
1005
_ACEOF
 
1006
 
 
1007
  cat <<\_ACEOF
 
1008
 
 
1009
Program names:
 
1010
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1011
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1012
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1013
 
 
1014
System types:
 
1015
  --build=BUILD     configure for building on BUILD [guessed]
 
1016
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1017
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1018
_ACEOF
 
1019
fi
 
1020
 
 
1021
if test -n "$ac_init_help"; then
 
1022
 
 
1023
  cat <<\_ACEOF
 
1024
 
 
1025
Optional Features:
 
1026
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1027
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1028
  --disable-dependency-tracking Speeds up one-time builds
 
1029
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1030
  --enable-shared[=PKGS]
 
1031
                          build shared libraries [default=yes]
 
1032
  --enable-static[=PKGS]
 
1033
                          build static libraries [default=yes]
 
1034
  --enable-fast-install[=PKGS]
 
1035
                          optimize for fast installation [default=yes]
 
1036
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1037
  --enable-internal-md5   enable internal MD5 library [default=no]
 
1038
  --enable-intf-lan       enable IPMIv1.5 LAN interface [default=yes]
 
1039
  --enable-intf-lanplus   enable IPMIv2.0 RMCP+ LAN interface [default=auto]
 
1040
  --enable-intf-open      enable Linux OpenIPMI interface [default=auto]
 
1041
  --enable-intf-imb       enable Intel IMB driver interface [default=auto]
 
1042
  --enable-intf-lipmi     enable Solaris 9 x86 IPMI interface [default=no]
 
1043
  --enable-intf-bmc       enable Solaris 10 x86 IPMI interface [default=auto]
 
1044
  --enable-ipmishell      enable IPMI shell interface [default=yes]
 
1045
  --enable-ipmievd        enable IPMI Event daemon [default=auto]
 
1046
  --enable-buildcheck     enable -Wall -Werror for build testing [default=no]
 
1047
 
 
1048
Optional Packages:
 
1049
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1050
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1051
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1052
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1053
                          both]
 
1054
  --with-tags[=TAGS]
 
1055
                          include additional configurations [automatic]
 
1056
  --with-kerneldir=DIR    set kernel include path to DIR
 
1057
 
 
1058
Some influential environment variables:
 
1059
  CC          C compiler command
 
1060
  CFLAGS      C compiler flags
 
1061
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1062
              nonstandard directory <lib dir>
 
1063
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1064
              headers in a nonstandard directory <include dir>
 
1065
  CPP         C preprocessor
 
1066
  CXX         C++ compiler command
 
1067
  CXXFLAGS    C++ compiler flags
 
1068
  CXXCPP      C++ preprocessor
 
1069
  F77         Fortran 77 compiler command
 
1070
  FFLAGS      Fortran 77 compiler flags
 
1071
 
 
1072
Use these variables to override the choices made by `configure' or to help
 
1073
it to find libraries and programs with nonstandard names/locations.
 
1074
 
 
1075
_ACEOF
 
1076
fi
 
1077
 
 
1078
if test "$ac_init_help" = "recursive"; then
 
1079
  # If there are subdirs, report their specific --help.
 
1080
  ac_popdir=`pwd`
 
1081
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1082
    test -d $ac_dir || continue
 
1083
    ac_builddir=.
 
1084
 
 
1085
if test "$ac_dir" != .; then
 
1086
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1087
  # A "../" for each directory in $ac_dir_suffix.
 
1088
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1089
else
 
1090
  ac_dir_suffix= ac_top_builddir=
 
1091
fi
 
1092
 
 
1093
case $srcdir in
 
1094
  .)  # No --srcdir option.  We are building in place.
 
1095
    ac_srcdir=.
 
1096
    if test -z "$ac_top_builddir"; then
 
1097
       ac_top_srcdir=.
 
1098
    else
 
1099
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1100
    fi ;;
 
1101
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1102
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1103
    ac_top_srcdir=$srcdir ;;
 
1104
  *) # Relative path.
 
1105
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1106
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1107
esac
 
1108
 
 
1109
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1110
# the directories may not exist.
 
1111
case `pwd` in
 
1112
.) ac_abs_builddir="$ac_dir";;
 
1113
*)
 
1114
  case "$ac_dir" in
 
1115
  .) ac_abs_builddir=`pwd`;;
 
1116
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1117
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1118
  esac;;
 
1119
esac
 
1120
case $ac_abs_builddir in
 
1121
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1122
*)
 
1123
  case ${ac_top_builddir}. in
 
1124
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1125
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1126
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1127
  esac;;
 
1128
esac
 
1129
case $ac_abs_builddir in
 
1130
.) ac_abs_srcdir=$ac_srcdir;;
 
1131
*)
 
1132
  case $ac_srcdir in
 
1133
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1134
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1135
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1136
  esac;;
 
1137
esac
 
1138
case $ac_abs_builddir in
 
1139
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1140
*)
 
1141
  case $ac_top_srcdir in
 
1142
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1143
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1144
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1145
  esac;;
 
1146
esac
 
1147
 
 
1148
    cd $ac_dir
 
1149
    # Check for guested configure; otherwise get Cygnus style configure.
 
1150
    if test -f $ac_srcdir/configure.gnu; then
 
1151
      echo
 
1152
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1153
    elif test -f $ac_srcdir/configure; then
 
1154
      echo
 
1155
      $SHELL $ac_srcdir/configure  --help=recursive
 
1156
    elif test -f $ac_srcdir/configure.ac ||
 
1157
           test -f $ac_srcdir/configure.in; then
 
1158
      echo
 
1159
      $ac_configure --help
 
1160
    else
 
1161
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1162
    fi
 
1163
    cd "$ac_popdir"
 
1164
  done
 
1165
fi
 
1166
 
 
1167
test -n "$ac_init_help" && exit 0
 
1168
if $ac_init_version; then
 
1169
  cat <<\_ACEOF
 
1170
 
 
1171
Copyright (C) 2003 Free Software Foundation, Inc.
 
1172
This configure script is free software; the Free Software Foundation
 
1173
gives unlimited permission to copy, distribute and modify it.
 
1174
_ACEOF
 
1175
  exit 0
 
1176
fi
 
1177
exec 5>config.log
 
1178
cat >&5 <<_ACEOF
 
1179
This file contains any messages produced by compilers while
 
1180
running configure, to aid debugging if configure makes a mistake.
 
1181
 
 
1182
It was created by $as_me, which was
 
1183
generated by GNU Autoconf 2.59.  Invocation command line was
 
1184
 
 
1185
  $ $0 $@
 
1186
 
 
1187
_ACEOF
 
1188
{
 
1189
cat <<_ASUNAME
 
1190
## --------- ##
 
1191
## Platform. ##
 
1192
## --------- ##
 
1193
 
 
1194
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1195
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1196
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1197
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1198
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1199
 
 
1200
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1201
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1202
 
 
1203
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1204
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1205
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1206
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1207
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1208
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1209
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1210
 
 
1211
_ASUNAME
 
1212
 
 
1213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1214
for as_dir in $PATH
 
1215
do
 
1216
  IFS=$as_save_IFS
 
1217
  test -z "$as_dir" && as_dir=.
 
1218
  echo "PATH: $as_dir"
 
1219
done
 
1220
 
 
1221
} >&5
 
1222
 
 
1223
cat >&5 <<_ACEOF
 
1224
 
 
1225
 
 
1226
## ----------- ##
 
1227
## Core tests. ##
 
1228
## ----------- ##
 
1229
 
 
1230
_ACEOF
 
1231
 
 
1232
 
 
1233
# Keep a trace of the command line.
 
1234
# Strip out --no-create and --no-recursion so they do not pile up.
 
1235
# Strip out --silent because we don't want to record it for future runs.
 
1236
# Also quote any args containing shell meta-characters.
 
1237
# Make two passes to allow for proper duplicate-argument suppression.
 
1238
ac_configure_args=
 
1239
ac_configure_args0=
 
1240
ac_configure_args1=
 
1241
ac_sep=
 
1242
ac_must_keep_next=false
 
1243
for ac_pass in 1 2
 
1244
do
 
1245
  for ac_arg
 
1246
  do
 
1247
    case $ac_arg in
 
1248
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1249
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1250
    | -silent | --silent | --silen | --sile | --sil)
 
1251
      continue ;;
 
1252
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1253
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1254
    esac
 
1255
    case $ac_pass in
 
1256
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1257
    2)
 
1258
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1259
      if test $ac_must_keep_next = true; then
 
1260
        ac_must_keep_next=false # Got value, back to normal.
 
1261
      else
 
1262
        case $ac_arg in
 
1263
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1264
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1265
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1266
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1267
            case "$ac_configure_args0 " in
 
1268
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1269
            esac
 
1270
            ;;
 
1271
          -* ) ac_must_keep_next=true ;;
 
1272
        esac
 
1273
      fi
 
1274
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1275
      # Get rid of the leading space.
 
1276
      ac_sep=" "
 
1277
      ;;
 
1278
    esac
 
1279
  done
 
1280
done
 
1281
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1282
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1283
 
 
1284
# When interrupted or exit'd, cleanup temporary files, and complete
 
1285
# config.log.  We remove comments because anyway the quotes in there
 
1286
# would cause problems or look ugly.
 
1287
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1288
# such as our DU 5.0 friend, will then `close' the trap.
 
1289
trap 'exit_status=$?
 
1290
  # Save into config.log some information that might help in debugging.
 
1291
  {
 
1292
    echo
 
1293
 
 
1294
    cat <<\_ASBOX
 
1295
## ---------------- ##
 
1296
## Cache variables. ##
 
1297
## ---------------- ##
 
1298
_ASBOX
 
1299
    echo
 
1300
    # The following way of writing the cache mishandles newlines in values,
 
1301
{
 
1302
  (set) 2>&1 |
 
1303
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1304
    *ac_space=\ *)
 
1305
      sed -n \
 
1306
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1307
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1308
      ;;
 
1309
    *)
 
1310
      sed -n \
 
1311
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1312
      ;;
 
1313
    esac;
 
1314
}
 
1315
    echo
 
1316
 
 
1317
    cat <<\_ASBOX
 
1318
## ----------------- ##
 
1319
## Output variables. ##
 
1320
## ----------------- ##
 
1321
_ASBOX
 
1322
    echo
 
1323
    for ac_var in $ac_subst_vars
 
1324
    do
 
1325
      eval ac_val=$`echo $ac_var`
 
1326
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1327
    done | sort
 
1328
    echo
 
1329
 
 
1330
    if test -n "$ac_subst_files"; then
 
1331
      cat <<\_ASBOX
 
1332
## ------------- ##
 
1333
## Output files. ##
 
1334
## ------------- ##
 
1335
_ASBOX
 
1336
      echo
 
1337
      for ac_var in $ac_subst_files
 
1338
      do
 
1339
        eval ac_val=$`echo $ac_var`
 
1340
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1341
      done | sort
 
1342
      echo
 
1343
    fi
 
1344
 
 
1345
    if test -s confdefs.h; then
 
1346
      cat <<\_ASBOX
 
1347
## ----------- ##
 
1348
## confdefs.h. ##
 
1349
## ----------- ##
 
1350
_ASBOX
 
1351
      echo
 
1352
      sed "/^$/d" confdefs.h | sort
 
1353
      echo
 
1354
    fi
 
1355
    test "$ac_signal" != 0 &&
 
1356
      echo "$as_me: caught signal $ac_signal"
 
1357
    echo "$as_me: exit $exit_status"
 
1358
  } >&5
 
1359
  rm -f core *.core &&
 
1360
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1361
    exit $exit_status
 
1362
     ' 0
 
1363
for ac_signal in 1 2 13 15; do
 
1364
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1365
done
 
1366
ac_signal=0
 
1367
 
 
1368
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1369
rm -rf conftest* confdefs.h
 
1370
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1371
echo >confdefs.h
 
1372
 
 
1373
# Predefined preprocessor variables.
 
1374
 
 
1375
cat >>confdefs.h <<_ACEOF
 
1376
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1377
_ACEOF
 
1378
 
 
1379
 
 
1380
cat >>confdefs.h <<_ACEOF
 
1381
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1382
_ACEOF
 
1383
 
 
1384
 
 
1385
cat >>confdefs.h <<_ACEOF
 
1386
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1387
_ACEOF
 
1388
 
 
1389
 
 
1390
cat >>confdefs.h <<_ACEOF
 
1391
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1392
_ACEOF
 
1393
 
 
1394
 
 
1395
cat >>confdefs.h <<_ACEOF
 
1396
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1397
_ACEOF
 
1398
 
 
1399
 
 
1400
# Let the site file select an alternate cache file if it wants to.
 
1401
# Prefer explicitly selected file to automatically selected ones.
 
1402
if test -z "$CONFIG_SITE"; then
 
1403
  if test "x$prefix" != xNONE; then
 
1404
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1405
  else
 
1406
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1407
  fi
 
1408
fi
 
1409
for ac_site_file in $CONFIG_SITE; do
 
1410
  if test -r "$ac_site_file"; then
 
1411
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1412
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1413
    sed 's/^/| /' "$ac_site_file" >&5
 
1414
    . "$ac_site_file"
 
1415
  fi
 
1416
done
 
1417
 
 
1418
if test -r "$cache_file"; then
 
1419
  # Some versions of bash will fail to source /dev/null (special
 
1420
  # files actually), so we avoid doing that.
 
1421
  if test -f "$cache_file"; then
 
1422
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1423
echo "$as_me: loading cache $cache_file" >&6;}
 
1424
    case $cache_file in
 
1425
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1426
      *)                      . ./$cache_file;;
 
1427
    esac
 
1428
  fi
 
1429
else
 
1430
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1431
echo "$as_me: creating cache $cache_file" >&6;}
 
1432
  >$cache_file
 
1433
fi
 
1434
 
 
1435
# Check that the precious variables saved in the cache have kept the same
 
1436
# value.
 
1437
ac_cache_corrupted=false
 
1438
for ac_var in `(set) 2>&1 |
 
1439
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1440
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1441
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1442
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1443
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1444
  case $ac_old_set,$ac_new_set in
 
1445
    set,)
 
1446
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1447
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1448
      ac_cache_corrupted=: ;;
 
1449
    ,set)
 
1450
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1451
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1452
      ac_cache_corrupted=: ;;
 
1453
    ,);;
 
1454
    *)
 
1455
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1456
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1457
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1458
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1459
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1460
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1461
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1462
        ac_cache_corrupted=:
 
1463
      fi;;
 
1464
  esac
 
1465
  # Pass precious variables to config.status.
 
1466
  if test "$ac_new_set" = set; then
 
1467
    case $ac_new_val in
 
1468
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1469
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1470
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1471
    esac
 
1472
    case " $ac_configure_args " in
 
1473
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1474
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1475
    esac
 
1476
  fi
 
1477
done
 
1478
if $ac_cache_corrupted; then
 
1479
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1480
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1481
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1482
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1483
   { (exit 1); exit 1; }; }
 
1484
fi
 
1485
 
 
1486
ac_ext=c
 
1487
ac_cpp='$CPP $CPPFLAGS'
 
1488
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1489
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1490
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
ac_aux_dir=
 
1511
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1512
  if test -f $ac_dir/install-sh; then
 
1513
    ac_aux_dir=$ac_dir
 
1514
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1515
    break
 
1516
  elif test -f $ac_dir/install.sh; then
 
1517
    ac_aux_dir=$ac_dir
 
1518
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1519
    break
 
1520
  elif test -f $ac_dir/shtool; then
 
1521
    ac_aux_dir=$ac_dir
 
1522
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1523
    break
 
1524
  fi
 
1525
done
 
1526
if test -z "$ac_aux_dir"; then
 
1527
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1528
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1529
   { (exit 1); exit 1; }; }
 
1530
fi
 
1531
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1532
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1533
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1534
 
 
1535
# Make sure we can run config.sub.
 
1536
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1537
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1538
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1539
   { (exit 1); exit 1; }; }
 
1540
 
 
1541
echo "$as_me:$LINENO: checking build system type" >&5
 
1542
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1543
if test "${ac_cv_build+set}" = set; then
 
1544
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1545
else
 
1546
  ac_cv_build_alias=$build_alias
 
1547
test -z "$ac_cv_build_alias" &&
 
1548
  ac_cv_build_alias=`$ac_config_guess`
 
1549
test -z "$ac_cv_build_alias" &&
 
1550
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1551
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1552
   { (exit 1); exit 1; }; }
 
1553
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1554
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1555
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1556
   { (exit 1); exit 1; }; }
 
1557
 
 
1558
fi
 
1559
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1560
echo "${ECHO_T}$ac_cv_build" >&6
 
1561
build=$ac_cv_build
 
1562
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1563
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1564
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1565
 
 
1566
 
 
1567
echo "$as_me:$LINENO: checking host system type" >&5
 
1568
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1569
if test "${ac_cv_host+set}" = set; then
 
1570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1571
else
 
1572
  ac_cv_host_alias=$host_alias
 
1573
test -z "$ac_cv_host_alias" &&
 
1574
  ac_cv_host_alias=$ac_cv_build_alias
 
1575
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1576
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1577
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1578
   { (exit 1); exit 1; }; }
 
1579
 
 
1580
fi
 
1581
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1582
echo "${ECHO_T}$ac_cv_host" >&6
 
1583
host=$ac_cv_host
 
1584
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1585
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1586
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1587
 
 
1588
 
 
1589
echo "$as_me:$LINENO: checking target system type" >&5
 
1590
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1591
if test "${ac_cv_target+set}" = set; then
 
1592
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1593
else
 
1594
  ac_cv_target_alias=$target_alias
 
1595
test "x$ac_cv_target_alias" = "x" &&
 
1596
  ac_cv_target_alias=$ac_cv_host_alias
 
1597
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1598
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1599
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1600
   { (exit 1); exit 1; }; }
 
1601
 
 
1602
fi
 
1603
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1604
echo "${ECHO_T}$ac_cv_target" >&6
 
1605
target=$ac_cv_target
 
1606
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1607
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1608
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1609
 
 
1610
 
 
1611
# The aliases save the names the user supplied, while $host etc.
 
1612
# will get canonicalized.
 
1613
test -n "$target_alias" &&
 
1614
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1615
    NONENONEs,x,x, &&
 
1616
  program_prefix=${target_alias}-
 
1617
am__api_version="1.6"
 
1618
# Find a good install program.  We prefer a C program (faster),
 
1619
# so one script is as good as another.  But avoid the broken or
 
1620
# incompatible versions:
 
1621
# SysV /etc/install, /usr/sbin/install
 
1622
# SunOS /usr/etc/install
 
1623
# IRIX /sbin/install
 
1624
# AIX /bin/install
 
1625
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1626
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1627
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1628
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1629
# OS/2's system install, which has a completely different semantic
 
1630
# ./install, which can be erroneously created by make from ./install.sh.
 
1631
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1632
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1633
if test -z "$INSTALL"; then
 
1634
if test "${ac_cv_path_install+set}" = set; then
 
1635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1636
else
 
1637
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1638
for as_dir in $PATH
 
1639
do
 
1640
  IFS=$as_save_IFS
 
1641
  test -z "$as_dir" && as_dir=.
 
1642
  # Account for people who put trailing slashes in PATH elements.
 
1643
case $as_dir/ in
 
1644
  ./ | .// | /cC/* | \
 
1645
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1646
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1647
  /usr/ucb/* ) ;;
 
1648
  *)
 
1649
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1650
    # Don't use installbsd from OSF since it installs stuff as root
 
1651
    # by default.
 
1652
    for ac_prog in ginstall scoinst install; do
 
1653
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1654
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1655
          if test $ac_prog = install &&
 
1656
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1657
            # AIX install.  It has an incompatible calling convention.
 
1658
            :
 
1659
          elif test $ac_prog = install &&
 
1660
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1661
            # program-specific install script used by HP pwplus--don't use.
 
1662
            :
 
1663
          else
 
1664
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1665
            break 3
 
1666
          fi
 
1667
        fi
 
1668
      done
 
1669
    done
 
1670
    ;;
 
1671
esac
 
1672
done
 
1673
 
 
1674
 
 
1675
fi
 
1676
  if test "${ac_cv_path_install+set}" = set; then
 
1677
    INSTALL=$ac_cv_path_install
 
1678
  else
 
1679
    # As a last resort, use the slow shell script.  We don't cache a
 
1680
    # path for INSTALL within a source directory, because that will
 
1681
    # break other packages using the cache if that directory is
 
1682
    # removed, or if the path is relative.
 
1683
    INSTALL=$ac_install_sh
 
1684
  fi
 
1685
fi
 
1686
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1687
echo "${ECHO_T}$INSTALL" >&6
 
1688
 
 
1689
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1690
# It thinks the first close brace ends the variable substitution.
 
1691
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1692
 
 
1693
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1694
 
 
1695
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1696
 
 
1697
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1698
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1699
# Just in case
 
1700
sleep 1
 
1701
echo timestamp > conftest.file
 
1702
# Do `set' in a subshell so we don't clobber the current shell's
 
1703
# arguments.  Must try -L first in case configure is actually a
 
1704
# symlink; some systems play weird games with the mod time of symlinks
 
1705
# (eg FreeBSD returns the mod time of the symlink's containing
 
1706
# directory).
 
1707
if (
 
1708
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1709
   if test "$*" = "X"; then
 
1710
      # -L didn't work.
 
1711
      set X `ls -t $srcdir/configure conftest.file`
 
1712
   fi
 
1713
   rm -f conftest.file
 
1714
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1715
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1716
 
 
1717
      # If neither matched, then we have a broken ls.  This can happen
 
1718
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1719
      # broken ls alias from the environment.  This has actually
 
1720
      # happened.  Such a system could not be considered "sane".
 
1721
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1722
alias in your environment" >&5
 
1723
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1724
alias in your environment" >&2;}
 
1725
   { (exit 1); exit 1; }; }
 
1726
   fi
 
1727
 
 
1728
   test "$2" = conftest.file
 
1729
   )
 
1730
then
 
1731
   # Ok.
 
1732
   :
 
1733
else
 
1734
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1735
Check your system clock" >&5
 
1736
echo "$as_me: error: newly created file is older than distributed files!
 
1737
Check your system clock" >&2;}
 
1738
   { (exit 1); exit 1; }; }
 
1739
fi
 
1740
echo "$as_me:$LINENO: result: yes" >&5
 
1741
echo "${ECHO_T}yes" >&6
 
1742
test "$program_prefix" != NONE &&
 
1743
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1744
# Use a double $ so make ignores it.
 
1745
test "$program_suffix" != NONE &&
 
1746
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1747
# Double any \ or $.  echo might interpret backslashes.
 
1748
# By default was `s,x,x', remove it if useless.
 
1749
cat <<\_ACEOF >conftest.sed
 
1750
s/[\\$]/&&/g;s/;s,x,x,$//
 
1751
_ACEOF
 
1752
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1753
rm conftest.sed
 
1754
 
 
1755
 
 
1756
# expand $ac_aux_dir to an absolute path
 
1757
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1758
 
 
1759
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1760
# Use eval to expand $SHELL
 
1761
if eval "$MISSING --run true"; then
 
1762
  am_missing_run="$MISSING --run "
 
1763
else
 
1764
  am_missing_run=
 
1765
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1766
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1767
fi
 
1768
 
 
1769
for ac_prog in gawk mawk nawk awk
 
1770
do
 
1771
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1772
set dummy $ac_prog; ac_word=$2
 
1773
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1774
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1775
if test "${ac_cv_prog_AWK+set}" = set; then
 
1776
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1777
else
 
1778
  if test -n "$AWK"; then
 
1779
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1780
else
 
1781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1782
for as_dir in $PATH
 
1783
do
 
1784
  IFS=$as_save_IFS
 
1785
  test -z "$as_dir" && as_dir=.
 
1786
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1787
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1788
    ac_cv_prog_AWK="$ac_prog"
 
1789
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1790
    break 2
 
1791
  fi
 
1792
done
 
1793
done
 
1794
 
 
1795
fi
 
1796
fi
 
1797
AWK=$ac_cv_prog_AWK
 
1798
if test -n "$AWK"; then
 
1799
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1800
echo "${ECHO_T}$AWK" >&6
 
1801
else
 
1802
  echo "$as_me:$LINENO: result: no" >&5
 
1803
echo "${ECHO_T}no" >&6
 
1804
fi
 
1805
 
 
1806
  test -n "$AWK" && break
 
1807
done
 
1808
 
 
1809
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1810
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1811
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1812
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1814
else
 
1815
  cat >conftest.make <<\_ACEOF
 
1816
all:
 
1817
        @echo 'ac_maketemp="$(MAKE)"'
 
1818
_ACEOF
 
1819
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1820
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1821
if test -n "$ac_maketemp"; then
 
1822
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1823
else
 
1824
  eval ac_cv_prog_make_${ac_make}_set=no
 
1825
fi
 
1826
rm -f conftest.make
 
1827
fi
 
1828
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1829
  echo "$as_me:$LINENO: result: yes" >&5
 
1830
echo "${ECHO_T}yes" >&6
 
1831
  SET_MAKE=
 
1832
else
 
1833
  echo "$as_me:$LINENO: result: no" >&5
 
1834
echo "${ECHO_T}no" >&6
 
1835
  SET_MAKE="MAKE=${MAKE-make}"
 
1836
fi
 
1837
 
 
1838
 # test to see if srcdir already configured
 
1839
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1840
   test -f $srcdir/config.status; then
 
1841
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1842
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1843
   { (exit 1); exit 1; }; }
 
1844
fi
 
1845
 
 
1846
# Define the identity of the package.
 
1847
 PACKAGE=ipmitool
 
1848
 VERSION=1.8.1
 
1849
 
 
1850
 
 
1851
cat >>confdefs.h <<_ACEOF
 
1852
#define PACKAGE "$PACKAGE"
 
1853
_ACEOF
 
1854
 
 
1855
 
 
1856
cat >>confdefs.h <<_ACEOF
 
1857
#define VERSION "$VERSION"
 
1858
_ACEOF
 
1859
 
 
1860
# Some tools Automake needs.
 
1861
 
 
1862
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1863
 
 
1864
 
 
1865
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1866
 
 
1867
 
 
1868
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1869
 
 
1870
 
 
1871
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1872
 
 
1873
 
 
1874
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1875
 
 
1876
 
 
1877
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1878
 
 
1879
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1880
 
 
1881
# Installed binaries are usually stripped using `strip' when the user
 
1882
# run `make install-strip'.  However `strip' might not be the right
 
1883
# tool to use in cross-compilation environments, therefore Automake
 
1884
# will honor the `STRIP' environment variable to overrule this program.
 
1885
if test "$cross_compiling" != no; then
 
1886
  if test -n "$ac_tool_prefix"; then
 
1887
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1888
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1889
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1891
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1892
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1893
else
 
1894
  if test -n "$STRIP"; then
 
1895
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1896
else
 
1897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1898
for as_dir in $PATH
 
1899
do
 
1900
  IFS=$as_save_IFS
 
1901
  test -z "$as_dir" && as_dir=.
 
1902
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1903
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1904
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1905
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1906
    break 2
 
1907
  fi
 
1908
done
 
1909
done
 
1910
 
 
1911
fi
 
1912
fi
 
1913
STRIP=$ac_cv_prog_STRIP
 
1914
if test -n "$STRIP"; then
 
1915
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1916
echo "${ECHO_T}$STRIP" >&6
 
1917
else
 
1918
  echo "$as_me:$LINENO: result: no" >&5
 
1919
echo "${ECHO_T}no" >&6
 
1920
fi
 
1921
 
 
1922
fi
 
1923
if test -z "$ac_cv_prog_STRIP"; then
 
1924
  ac_ct_STRIP=$STRIP
 
1925
  # Extract the first word of "strip", so it can be a program name with args.
 
1926
set dummy strip; ac_word=$2
 
1927
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1929
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1930
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1931
else
 
1932
  if test -n "$ac_ct_STRIP"; then
 
1933
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1934
else
 
1935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1936
for as_dir in $PATH
 
1937
do
 
1938
  IFS=$as_save_IFS
 
1939
  test -z "$as_dir" && as_dir=.
 
1940
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1941
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1942
    ac_cv_prog_ac_ct_STRIP="strip"
 
1943
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1944
    break 2
 
1945
  fi
 
1946
done
 
1947
done
 
1948
 
 
1949
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1950
fi
 
1951
fi
 
1952
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1953
if test -n "$ac_ct_STRIP"; then
 
1954
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1955
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1956
else
 
1957
  echo "$as_me:$LINENO: result: no" >&5
 
1958
echo "${ECHO_T}no" >&6
 
1959
fi
 
1960
 
 
1961
  STRIP=$ac_ct_STRIP
 
1962
else
 
1963
  STRIP="$ac_cv_prog_STRIP"
 
1964
fi
 
1965
 
 
1966
fi
 
1967
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1968
 
 
1969
# We need awk for the "check" target.  The system "awk" is bad on
 
1970
# some platforms.
 
1971
 
 
1972
 
 
1973
 
 
1974
# Add the stamp file to the list of files AC keeps track of,
 
1975
# along with our hook.
 
1976
          ac_config_headers="$ac_config_headers config.h"
 
1977
 
 
1978
 
 
1979
 
 
1980
 
 
1981
 
 
1982
 
 
1983
 
 
1984
ac_ext=c
 
1985
ac_cpp='$CPP $CPPFLAGS'
 
1986
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1987
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1988
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1989
if test -n "$ac_tool_prefix"; then
 
1990
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1991
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1992
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1993
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1994
if test "${ac_cv_prog_CC+set}" = set; then
 
1995
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1996
else
 
1997
  if test -n "$CC"; then
 
1998
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1999
else
 
2000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2001
for as_dir in $PATH
 
2002
do
 
2003
  IFS=$as_save_IFS
 
2004
  test -z "$as_dir" && as_dir=.
 
2005
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2006
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2007
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2008
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2009
    break 2
 
2010
  fi
 
2011
done
 
2012
done
 
2013
 
 
2014
fi
 
2015
fi
 
2016
CC=$ac_cv_prog_CC
 
2017
if test -n "$CC"; then
 
2018
  echo "$as_me:$LINENO: result: $CC" >&5
 
2019
echo "${ECHO_T}$CC" >&6
 
2020
else
 
2021
  echo "$as_me:$LINENO: result: no" >&5
 
2022
echo "${ECHO_T}no" >&6
 
2023
fi
 
2024
 
 
2025
fi
 
2026
if test -z "$ac_cv_prog_CC"; then
 
2027
  ac_ct_CC=$CC
 
2028
  # Extract the first word of "gcc", so it can be a program name with args.
 
2029
set dummy gcc; ac_word=$2
 
2030
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2031
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2032
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2034
else
 
2035
  if test -n "$ac_ct_CC"; then
 
2036
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2037
else
 
2038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2039
for as_dir in $PATH
 
2040
do
 
2041
  IFS=$as_save_IFS
 
2042
  test -z "$as_dir" && as_dir=.
 
2043
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2044
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2045
    ac_cv_prog_ac_ct_CC="gcc"
 
2046
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2047
    break 2
 
2048
  fi
 
2049
done
 
2050
done
 
2051
 
 
2052
fi
 
2053
fi
 
2054
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2055
if test -n "$ac_ct_CC"; then
 
2056
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2057
echo "${ECHO_T}$ac_ct_CC" >&6
 
2058
else
 
2059
  echo "$as_me:$LINENO: result: no" >&5
 
2060
echo "${ECHO_T}no" >&6
 
2061
fi
 
2062
 
 
2063
  CC=$ac_ct_CC
 
2064
else
 
2065
  CC="$ac_cv_prog_CC"
 
2066
fi
 
2067
 
 
2068
if test -z "$CC"; then
 
2069
  if test -n "$ac_tool_prefix"; then
 
2070
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2071
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2072
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2073
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2074
if test "${ac_cv_prog_CC+set}" = set; then
 
2075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2076
else
 
2077
  if test -n "$CC"; then
 
2078
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2079
else
 
2080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2081
for as_dir in $PATH
 
2082
do
 
2083
  IFS=$as_save_IFS
 
2084
  test -z "$as_dir" && as_dir=.
 
2085
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2086
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2087
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2088
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2089
    break 2
 
2090
  fi
 
2091
done
 
2092
done
 
2093
 
 
2094
fi
 
2095
fi
 
2096
CC=$ac_cv_prog_CC
 
2097
if test -n "$CC"; then
 
2098
  echo "$as_me:$LINENO: result: $CC" >&5
 
2099
echo "${ECHO_T}$CC" >&6
 
2100
else
 
2101
  echo "$as_me:$LINENO: result: no" >&5
 
2102
echo "${ECHO_T}no" >&6
 
2103
fi
 
2104
 
 
2105
fi
 
2106
if test -z "$ac_cv_prog_CC"; then
 
2107
  ac_ct_CC=$CC
 
2108
  # Extract the first word of "cc", so it can be a program name with args.
 
2109
set dummy cc; ac_word=$2
 
2110
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2111
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2112
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2114
else
 
2115
  if test -n "$ac_ct_CC"; then
 
2116
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2117
else
 
2118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2119
for as_dir in $PATH
 
2120
do
 
2121
  IFS=$as_save_IFS
 
2122
  test -z "$as_dir" && as_dir=.
 
2123
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2124
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2125
    ac_cv_prog_ac_ct_CC="cc"
 
2126
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2127
    break 2
 
2128
  fi
 
2129
done
 
2130
done
 
2131
 
 
2132
fi
 
2133
fi
 
2134
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2135
if test -n "$ac_ct_CC"; then
 
2136
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2137
echo "${ECHO_T}$ac_ct_CC" >&6
 
2138
else
 
2139
  echo "$as_me:$LINENO: result: no" >&5
 
2140
echo "${ECHO_T}no" >&6
 
2141
fi
 
2142
 
 
2143
  CC=$ac_ct_CC
 
2144
else
 
2145
  CC="$ac_cv_prog_CC"
 
2146
fi
 
2147
 
 
2148
fi
 
2149
if test -z "$CC"; then
 
2150
  # Extract the first word of "cc", so it can be a program name with args.
 
2151
set dummy cc; ac_word=$2
 
2152
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2153
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2154
if test "${ac_cv_prog_CC+set}" = set; then
 
2155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2156
else
 
2157
  if test -n "$CC"; then
 
2158
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2159
else
 
2160
  ac_prog_rejected=no
 
2161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2162
for as_dir in $PATH
 
2163
do
 
2164
  IFS=$as_save_IFS
 
2165
  test -z "$as_dir" && as_dir=.
 
2166
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2167
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2168
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2169
       ac_prog_rejected=yes
 
2170
       continue
 
2171
     fi
 
2172
    ac_cv_prog_CC="cc"
 
2173
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2174
    break 2
 
2175
  fi
 
2176
done
 
2177
done
 
2178
 
 
2179
if test $ac_prog_rejected = yes; then
 
2180
  # We found a bogon in the path, so make sure we never use it.
 
2181
  set dummy $ac_cv_prog_CC
 
2182
  shift
 
2183
  if test $# != 0; then
 
2184
    # We chose a different compiler from the bogus one.
 
2185
    # However, it has the same basename, so the bogon will be chosen
 
2186
    # first if we set CC to just the basename; use the full file name.
 
2187
    shift
 
2188
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2189
  fi
 
2190
fi
 
2191
fi
 
2192
fi
 
2193
CC=$ac_cv_prog_CC
 
2194
if test -n "$CC"; then
 
2195
  echo "$as_me:$LINENO: result: $CC" >&5
 
2196
echo "${ECHO_T}$CC" >&6
 
2197
else
 
2198
  echo "$as_me:$LINENO: result: no" >&5
 
2199
echo "${ECHO_T}no" >&6
 
2200
fi
 
2201
 
 
2202
fi
 
2203
if test -z "$CC"; then
 
2204
  if test -n "$ac_tool_prefix"; then
 
2205
  for ac_prog in cl
 
2206
  do
 
2207
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2208
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2209
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2210
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2211
if test "${ac_cv_prog_CC+set}" = set; then
 
2212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2213
else
 
2214
  if test -n "$CC"; then
 
2215
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2216
else
 
2217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2218
for as_dir in $PATH
 
2219
do
 
2220
  IFS=$as_save_IFS
 
2221
  test -z "$as_dir" && as_dir=.
 
2222
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2223
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2224
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2225
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2226
    break 2
 
2227
  fi
 
2228
done
 
2229
done
 
2230
 
 
2231
fi
 
2232
fi
 
2233
CC=$ac_cv_prog_CC
 
2234
if test -n "$CC"; then
 
2235
  echo "$as_me:$LINENO: result: $CC" >&5
 
2236
echo "${ECHO_T}$CC" >&6
 
2237
else
 
2238
  echo "$as_me:$LINENO: result: no" >&5
 
2239
echo "${ECHO_T}no" >&6
 
2240
fi
 
2241
 
 
2242
    test -n "$CC" && break
 
2243
  done
 
2244
fi
 
2245
if test -z "$CC"; then
 
2246
  ac_ct_CC=$CC
 
2247
  for ac_prog in cl
 
2248
do
 
2249
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2250
set dummy $ac_prog; ac_word=$2
 
2251
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2252
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2253
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2255
else
 
2256
  if test -n "$ac_ct_CC"; then
 
2257
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2258
else
 
2259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2260
for as_dir in $PATH
 
2261
do
 
2262
  IFS=$as_save_IFS
 
2263
  test -z "$as_dir" && as_dir=.
 
2264
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2265
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2266
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2267
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2268
    break 2
 
2269
  fi
 
2270
done
 
2271
done
 
2272
 
 
2273
fi
 
2274
fi
 
2275
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2276
if test -n "$ac_ct_CC"; then
 
2277
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2278
echo "${ECHO_T}$ac_ct_CC" >&6
 
2279
else
 
2280
  echo "$as_me:$LINENO: result: no" >&5
 
2281
echo "${ECHO_T}no" >&6
 
2282
fi
 
2283
 
 
2284
  test -n "$ac_ct_CC" && break
 
2285
done
 
2286
 
 
2287
  CC=$ac_ct_CC
 
2288
fi
 
2289
 
 
2290
fi
 
2291
 
 
2292
 
 
2293
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2294
See \`config.log' for more details." >&5
 
2295
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2296
See \`config.log' for more details." >&2;}
 
2297
   { (exit 1); exit 1; }; }
 
2298
 
 
2299
# Provide some information about the compiler.
 
2300
echo "$as_me:$LINENO:" \
 
2301
     "checking for C compiler version" >&5
 
2302
ac_compiler=`set X $ac_compile; echo $2`
 
2303
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2304
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2305
  ac_status=$?
 
2306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2307
  (exit $ac_status); }
 
2308
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2309
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2310
  ac_status=$?
 
2311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2312
  (exit $ac_status); }
 
2313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2314
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2315
  ac_status=$?
 
2316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2317
  (exit $ac_status); }
 
2318
 
 
2319
cat >conftest.$ac_ext <<_ACEOF
 
2320
/* confdefs.h.  */
 
2321
_ACEOF
 
2322
cat confdefs.h >>conftest.$ac_ext
 
2323
cat >>conftest.$ac_ext <<_ACEOF
 
2324
/* end confdefs.h.  */
 
2325
 
 
2326
int
 
2327
main ()
 
2328
{
 
2329
 
 
2330
  ;
 
2331
  return 0;
 
2332
}
 
2333
_ACEOF
 
2334
ac_clean_files_save=$ac_clean_files
 
2335
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2336
# Try to create an executable without -o first, disregard a.out.
 
2337
# It will help us diagnose broken compilers, and finding out an intuition
 
2338
# of exeext.
 
2339
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2340
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2341
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2342
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2343
  (eval $ac_link_default) 2>&5
 
2344
  ac_status=$?
 
2345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2346
  (exit $ac_status); }; then
 
2347
  # Find the output, starting from the most likely.  This scheme is
 
2348
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2349
# resort.
 
2350
 
 
2351
# Be careful to initialize this variable, since it used to be cached.
 
2352
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2353
ac_cv_exeext=
 
2354
# b.out is created by i960 compilers.
 
2355
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2356
do
 
2357
  test -f "$ac_file" || continue
 
2358
  case $ac_file in
 
2359
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2360
        ;;
 
2361
    conftest.$ac_ext )
 
2362
        # This is the source file.
 
2363
        ;;
 
2364
    [ab].out )
 
2365
        # We found the default executable, but exeext='' is most
 
2366
        # certainly right.
 
2367
        break;;
 
2368
    *.* )
 
2369
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2370
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2371
        # but it would be cool to find out if it's true.  Does anybody
 
2372
        # maintain Libtool? --akim.
 
2373
        export ac_cv_exeext
 
2374
        break;;
 
2375
    * )
 
2376
        break;;
 
2377
  esac
 
2378
done
 
2379
else
 
2380
  echo "$as_me: failed program was:" >&5
 
2381
sed 's/^/| /' conftest.$ac_ext >&5
 
2382
 
 
2383
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2384
See \`config.log' for more details." >&5
 
2385
echo "$as_me: error: C compiler cannot create executables
 
2386
See \`config.log' for more details." >&2;}
 
2387
   { (exit 77); exit 77; }; }
 
2388
fi
 
2389
 
 
2390
ac_exeext=$ac_cv_exeext
 
2391
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2392
echo "${ECHO_T}$ac_file" >&6
 
2393
 
 
2394
# Check the compiler produces executables we can run.  If not, either
 
2395
# the compiler is broken, or we cross compile.
 
2396
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2397
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2398
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2399
# If not cross compiling, check that we can run a simple program.
 
2400
if test "$cross_compiling" != yes; then
 
2401
  if { ac_try='./$ac_file'
 
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
    cross_compiling=no
 
2408
  else
 
2409
    if test "$cross_compiling" = maybe; then
 
2410
        cross_compiling=yes
 
2411
    else
 
2412
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2413
If you meant to cross compile, use \`--host'.
 
2414
See \`config.log' for more details." >&5
 
2415
echo "$as_me: error: cannot run C compiled programs.
 
2416
If you meant to cross compile, use \`--host'.
 
2417
See \`config.log' for more details." >&2;}
 
2418
   { (exit 1); exit 1; }; }
 
2419
    fi
 
2420
  fi
 
2421
fi
 
2422
echo "$as_me:$LINENO: result: yes" >&5
 
2423
echo "${ECHO_T}yes" >&6
 
2424
 
 
2425
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2426
ac_clean_files=$ac_clean_files_save
 
2427
# Check the compiler produces executables we can run.  If not, either
 
2428
# the compiler is broken, or we cross compile.
 
2429
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2430
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2431
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2432
echo "${ECHO_T}$cross_compiling" >&6
 
2433
 
 
2434
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2435
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2436
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2437
  (eval $ac_link) 2>&5
 
2438
  ac_status=$?
 
2439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2440
  (exit $ac_status); }; then
 
2441
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2442
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2443
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2444
# `rm'.
 
2445
for ac_file in conftest.exe conftest conftest.*; do
 
2446
  test -f "$ac_file" || continue
 
2447
  case $ac_file in
 
2448
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2449
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2450
          export ac_cv_exeext
 
2451
          break;;
 
2452
    * ) break;;
 
2453
  esac
 
2454
done
 
2455
else
 
2456
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2457
See \`config.log' for more details." >&5
 
2458
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2459
See \`config.log' for more details." >&2;}
 
2460
   { (exit 1); exit 1; }; }
 
2461
fi
 
2462
 
 
2463
rm -f conftest$ac_cv_exeext
 
2464
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2465
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2466
 
 
2467
rm -f conftest.$ac_ext
 
2468
EXEEXT=$ac_cv_exeext
 
2469
ac_exeext=$EXEEXT
 
2470
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2471
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2472
if test "${ac_cv_objext+set}" = set; then
 
2473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2474
else
 
2475
  cat >conftest.$ac_ext <<_ACEOF
 
2476
/* confdefs.h.  */
 
2477
_ACEOF
 
2478
cat confdefs.h >>conftest.$ac_ext
 
2479
cat >>conftest.$ac_ext <<_ACEOF
 
2480
/* end confdefs.h.  */
 
2481
 
 
2482
int
 
2483
main ()
 
2484
{
 
2485
 
 
2486
  ;
 
2487
  return 0;
 
2488
}
 
2489
_ACEOF
 
2490
rm -f conftest.o conftest.obj
 
2491
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2492
  (eval $ac_compile) 2>&5
 
2493
  ac_status=$?
 
2494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2495
  (exit $ac_status); }; then
 
2496
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2497
  case $ac_file in
 
2498
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2499
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2500
       break;;
 
2501
  esac
 
2502
done
 
2503
else
 
2504
  echo "$as_me: failed program was:" >&5
 
2505
sed 's/^/| /' conftest.$ac_ext >&5
 
2506
 
 
2507
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2508
See \`config.log' for more details." >&5
 
2509
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2510
See \`config.log' for more details." >&2;}
 
2511
   { (exit 1); exit 1; }; }
 
2512
fi
 
2513
 
 
2514
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2515
fi
 
2516
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2517
echo "${ECHO_T}$ac_cv_objext" >&6
 
2518
OBJEXT=$ac_cv_objext
 
2519
ac_objext=$OBJEXT
 
2520
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2521
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2522
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2523
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2524
else
 
2525
  cat >conftest.$ac_ext <<_ACEOF
 
2526
/* confdefs.h.  */
 
2527
_ACEOF
 
2528
cat confdefs.h >>conftest.$ac_ext
 
2529
cat >>conftest.$ac_ext <<_ACEOF
 
2530
/* end confdefs.h.  */
 
2531
 
 
2532
int
 
2533
main ()
 
2534
{
 
2535
#ifndef __GNUC__
 
2536
       choke me
 
2537
#endif
 
2538
 
 
2539
  ;
 
2540
  return 0;
 
2541
}
 
2542
_ACEOF
 
2543
rm -f conftest.$ac_objext
 
2544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2545
  (eval $ac_compile) 2>conftest.er1
 
2546
  ac_status=$?
 
2547
  grep -v '^ *+' conftest.er1 >conftest.err
 
2548
  rm -f conftest.er1
 
2549
  cat conftest.err >&5
 
2550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2551
  (exit $ac_status); } &&
 
2552
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2554
  (eval $ac_try) 2>&5
 
2555
  ac_status=$?
 
2556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2557
  (exit $ac_status); }; } &&
 
2558
         { ac_try='test -s conftest.$ac_objext'
 
2559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2560
  (eval $ac_try) 2>&5
 
2561
  ac_status=$?
 
2562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2563
  (exit $ac_status); }; }; then
 
2564
  ac_compiler_gnu=yes
 
2565
else
 
2566
  echo "$as_me: failed program was:" >&5
 
2567
sed 's/^/| /' conftest.$ac_ext >&5
 
2568
 
 
2569
ac_compiler_gnu=no
 
2570
fi
 
2571
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2572
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2573
 
 
2574
fi
 
2575
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2576
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2577
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2578
ac_test_CFLAGS=${CFLAGS+set}
 
2579
ac_save_CFLAGS=$CFLAGS
 
2580
CFLAGS="-g"
 
2581
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2582
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2583
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2585
else
 
2586
  cat >conftest.$ac_ext <<_ACEOF
 
2587
/* confdefs.h.  */
 
2588
_ACEOF
 
2589
cat confdefs.h >>conftest.$ac_ext
 
2590
cat >>conftest.$ac_ext <<_ACEOF
 
2591
/* end confdefs.h.  */
 
2592
 
 
2593
int
 
2594
main ()
 
2595
{
 
2596
 
 
2597
  ;
 
2598
  return 0;
 
2599
}
 
2600
_ACEOF
 
2601
rm -f conftest.$ac_objext
 
2602
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2603
  (eval $ac_compile) 2>conftest.er1
 
2604
  ac_status=$?
 
2605
  grep -v '^ *+' conftest.er1 >conftest.err
 
2606
  rm -f conftest.er1
 
2607
  cat conftest.err >&5
 
2608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2609
  (exit $ac_status); } &&
 
2610
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2612
  (eval $ac_try) 2>&5
 
2613
  ac_status=$?
 
2614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2615
  (exit $ac_status); }; } &&
 
2616
         { ac_try='test -s conftest.$ac_objext'
 
2617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2618
  (eval $ac_try) 2>&5
 
2619
  ac_status=$?
 
2620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2621
  (exit $ac_status); }; }; then
 
2622
  ac_cv_prog_cc_g=yes
 
2623
else
 
2624
  echo "$as_me: failed program was:" >&5
 
2625
sed 's/^/| /' conftest.$ac_ext >&5
 
2626
 
 
2627
ac_cv_prog_cc_g=no
 
2628
fi
 
2629
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2630
fi
 
2631
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2632
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2633
if test "$ac_test_CFLAGS" = set; then
 
2634
  CFLAGS=$ac_save_CFLAGS
 
2635
elif test $ac_cv_prog_cc_g = yes; then
 
2636
  if test "$GCC" = yes; then
 
2637
    CFLAGS="-g -O2"
 
2638
  else
 
2639
    CFLAGS="-g"
 
2640
  fi
 
2641
else
 
2642
  if test "$GCC" = yes; then
 
2643
    CFLAGS="-O2"
 
2644
  else
 
2645
    CFLAGS=
 
2646
  fi
 
2647
fi
 
2648
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2649
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2650
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2652
else
 
2653
  ac_cv_prog_cc_stdc=no
 
2654
ac_save_CC=$CC
 
2655
cat >conftest.$ac_ext <<_ACEOF
 
2656
/* confdefs.h.  */
 
2657
_ACEOF
 
2658
cat confdefs.h >>conftest.$ac_ext
 
2659
cat >>conftest.$ac_ext <<_ACEOF
 
2660
/* end confdefs.h.  */
 
2661
#include <stdarg.h>
 
2662
#include <stdio.h>
 
2663
#include <sys/types.h>
 
2664
#include <sys/stat.h>
 
2665
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2666
struct buf { int x; };
 
2667
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2668
static char *e (p, i)
 
2669
     char **p;
 
2670
     int i;
 
2671
{
 
2672
  return p[i];
 
2673
}
 
2674
static char *f (char * (*g) (char **, int), char **p, ...)
 
2675
{
 
2676
  char *s;
 
2677
  va_list v;
 
2678
  va_start (v,p);
 
2679
  s = g (p, va_arg (v,int));
 
2680
  va_end (v);
 
2681
  return s;
 
2682
}
 
2683
 
 
2684
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2685
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2686
   These don't provoke an error unfortunately, instead are silently treated
 
2687
   as 'x'.  The following induces an error, until -std1 is added to get
 
2688
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2689
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2690
   that's true only with -std1.  */
 
2691
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2692
 
 
2693
int test (int i, double x);
 
2694
struct s1 {int (*f) (int a);};
 
2695
struct s2 {int (*f) (double a);};
 
2696
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2697
int argc;
 
2698
char **argv;
 
2699
int
 
2700
main ()
 
2701
{
 
2702
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2703
  ;
 
2704
  return 0;
 
2705
}
 
2706
_ACEOF
 
2707
# Don't try gcc -ansi; that turns off useful extensions and
 
2708
# breaks some systems' header files.
 
2709
# AIX                   -qlanglvl=ansi
 
2710
# Ultrix and OSF/1      -std1
 
2711
# HP-UX 10.20 and later -Ae
 
2712
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2713
# SVR4                  -Xc -D__EXTENSIONS__
 
2714
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2715
do
 
2716
  CC="$ac_save_CC $ac_arg"
 
2717
  rm -f conftest.$ac_objext
 
2718
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2719
  (eval $ac_compile) 2>conftest.er1
 
2720
  ac_status=$?
 
2721
  grep -v '^ *+' conftest.er1 >conftest.err
 
2722
  rm -f conftest.er1
 
2723
  cat conftest.err >&5
 
2724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2725
  (exit $ac_status); } &&
 
2726
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2728
  (eval $ac_try) 2>&5
 
2729
  ac_status=$?
 
2730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2731
  (exit $ac_status); }; } &&
 
2732
         { ac_try='test -s conftest.$ac_objext'
 
2733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2734
  (eval $ac_try) 2>&5
 
2735
  ac_status=$?
 
2736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2737
  (exit $ac_status); }; }; then
 
2738
  ac_cv_prog_cc_stdc=$ac_arg
 
2739
break
 
2740
else
 
2741
  echo "$as_me: failed program was:" >&5
 
2742
sed 's/^/| /' conftest.$ac_ext >&5
 
2743
 
 
2744
fi
 
2745
rm -f conftest.err conftest.$ac_objext
 
2746
done
 
2747
rm -f conftest.$ac_ext conftest.$ac_objext
 
2748
CC=$ac_save_CC
 
2749
 
 
2750
fi
 
2751
 
 
2752
case "x$ac_cv_prog_cc_stdc" in
 
2753
  x|xno)
 
2754
    echo "$as_me:$LINENO: result: none needed" >&5
 
2755
echo "${ECHO_T}none needed" >&6 ;;
 
2756
  *)
 
2757
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2758
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2759
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2760
esac
 
2761
 
 
2762
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2763
# in C++ we need to declare it.  In case someone uses the same compiler
 
2764
# for both compiling C and C++ we need to have the C++ compiler decide
 
2765
# the declaration of exit, since it's the most demanding environment.
 
2766
cat >conftest.$ac_ext <<_ACEOF
 
2767
#ifndef __cplusplus
 
2768
  choke me
 
2769
#endif
 
2770
_ACEOF
 
2771
rm -f conftest.$ac_objext
 
2772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2773
  (eval $ac_compile) 2>conftest.er1
 
2774
  ac_status=$?
 
2775
  grep -v '^ *+' conftest.er1 >conftest.err
 
2776
  rm -f conftest.er1
 
2777
  cat conftest.err >&5
 
2778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2779
  (exit $ac_status); } &&
 
2780
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2782
  (eval $ac_try) 2>&5
 
2783
  ac_status=$?
 
2784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2785
  (exit $ac_status); }; } &&
 
2786
         { ac_try='test -s conftest.$ac_objext'
 
2787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2788
  (eval $ac_try) 2>&5
 
2789
  ac_status=$?
 
2790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2791
  (exit $ac_status); }; }; then
 
2792
  for ac_declaration in \
 
2793
   '' \
 
2794
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2795
   'extern "C" void std::exit (int); using std::exit;' \
 
2796
   'extern "C" void exit (int) throw ();' \
 
2797
   'extern "C" void exit (int);' \
 
2798
   'void exit (int);'
 
2799
do
 
2800
  cat >conftest.$ac_ext <<_ACEOF
 
2801
/* confdefs.h.  */
 
2802
_ACEOF
 
2803
cat confdefs.h >>conftest.$ac_ext
 
2804
cat >>conftest.$ac_ext <<_ACEOF
 
2805
/* end confdefs.h.  */
 
2806
$ac_declaration
 
2807
#include <stdlib.h>
 
2808
int
 
2809
main ()
 
2810
{
 
2811
exit (42);
 
2812
  ;
 
2813
  return 0;
 
2814
}
 
2815
_ACEOF
 
2816
rm -f conftest.$ac_objext
 
2817
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2818
  (eval $ac_compile) 2>conftest.er1
 
2819
  ac_status=$?
 
2820
  grep -v '^ *+' conftest.er1 >conftest.err
 
2821
  rm -f conftest.er1
 
2822
  cat conftest.err >&5
 
2823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2824
  (exit $ac_status); } &&
 
2825
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2827
  (eval $ac_try) 2>&5
 
2828
  ac_status=$?
 
2829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2830
  (exit $ac_status); }; } &&
 
2831
         { ac_try='test -s conftest.$ac_objext'
 
2832
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2833
  (eval $ac_try) 2>&5
 
2834
  ac_status=$?
 
2835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2836
  (exit $ac_status); }; }; then
 
2837
  :
 
2838
else
 
2839
  echo "$as_me: failed program was:" >&5
 
2840
sed 's/^/| /' conftest.$ac_ext >&5
 
2841
 
 
2842
continue
 
2843
fi
 
2844
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2845
  cat >conftest.$ac_ext <<_ACEOF
 
2846
/* confdefs.h.  */
 
2847
_ACEOF
 
2848
cat confdefs.h >>conftest.$ac_ext
 
2849
cat >>conftest.$ac_ext <<_ACEOF
 
2850
/* end confdefs.h.  */
 
2851
$ac_declaration
 
2852
int
 
2853
main ()
 
2854
{
 
2855
exit (42);
 
2856
  ;
 
2857
  return 0;
 
2858
}
 
2859
_ACEOF
 
2860
rm -f conftest.$ac_objext
 
2861
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2862
  (eval $ac_compile) 2>conftest.er1
 
2863
  ac_status=$?
 
2864
  grep -v '^ *+' conftest.er1 >conftest.err
 
2865
  rm -f conftest.er1
 
2866
  cat conftest.err >&5
 
2867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2868
  (exit $ac_status); } &&
 
2869
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2871
  (eval $ac_try) 2>&5
 
2872
  ac_status=$?
 
2873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2874
  (exit $ac_status); }; } &&
 
2875
         { ac_try='test -s conftest.$ac_objext'
 
2876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2877
  (eval $ac_try) 2>&5
 
2878
  ac_status=$?
 
2879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2880
  (exit $ac_status); }; }; then
 
2881
  break
 
2882
else
 
2883
  echo "$as_me: failed program was:" >&5
 
2884
sed 's/^/| /' conftest.$ac_ext >&5
 
2885
 
 
2886
fi
 
2887
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2888
done
 
2889
rm -f conftest*
 
2890
if test -n "$ac_declaration"; then
 
2891
  echo '#ifdef __cplusplus' >>confdefs.h
 
2892
  echo $ac_declaration      >>confdefs.h
 
2893
  echo '#endif'             >>confdefs.h
 
2894
fi
 
2895
 
 
2896
else
 
2897
  echo "$as_me: failed program was:" >&5
 
2898
sed 's/^/| /' conftest.$ac_ext >&5
 
2899
 
 
2900
fi
 
2901
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2902
ac_ext=c
 
2903
ac_cpp='$CPP $CPPFLAGS'
 
2904
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2905
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2906
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2907
rm -f .deps 2>/dev/null
 
2908
mkdir .deps 2>/dev/null
 
2909
if test -d .deps; then
 
2910
  DEPDIR=.deps
 
2911
else
 
2912
  # MS-DOS does not allow filenames that begin with a dot.
 
2913
  DEPDIR=_deps
 
2914
fi
 
2915
rmdir .deps 2>/dev/null
 
2916
 
 
2917
 
 
2918
          ac_config_commands="$ac_config_commands depfiles"
 
2919
 
 
2920
 
 
2921
am_make=${MAKE-make}
 
2922
cat > confinc << 'END'
 
2923
doit:
 
2924
        @echo done
 
2925
END
 
2926
# If we don't find an include directive, just comment out the code.
 
2927
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2928
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2929
am__include="#"
 
2930
am__quote=
 
2931
_am_result=none
 
2932
# First try GNU make style include.
 
2933
echo "include confinc" > confmf
 
2934
# We grep out `Entering directory' and `Leaving directory'
 
2935
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2936
# In particular we don't look at `^make:' because GNU make might
 
2937
# be invoked under some other name (usually "gmake"), in which
 
2938
# case it prints its new name instead of `make'.
 
2939
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
2940
   am__include=include
 
2941
   am__quote=
 
2942
   _am_result=GNU
 
2943
fi
 
2944
# Now try BSD make style include.
 
2945
if test "$am__include" = "#"; then
 
2946
   echo '.include "confinc"' > confmf
 
2947
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2948
      am__include=.include
 
2949
      am__quote="\""
 
2950
      _am_result=BSD
 
2951
   fi
 
2952
fi
 
2953
 
 
2954
 
 
2955
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2956
echo "${ECHO_T}$_am_result" >&6
 
2957
rm -f confinc confmf
 
2958
 
 
2959
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2960
if test "${enable_dependency_tracking+set}" = set; then
 
2961
  enableval="$enable_dependency_tracking"
 
2962
 
 
2963
fi;
 
2964
if test "x$enable_dependency_tracking" != xno; then
 
2965
  am_depcomp="$ac_aux_dir/depcomp"
 
2966
  AMDEPBACKSLASH='\'
 
2967
fi
 
2968
 
 
2969
 
 
2970
if test "x$enable_dependency_tracking" != xno; then
 
2971
  AMDEP_TRUE=
 
2972
  AMDEP_FALSE='#'
 
2973
else
 
2974
  AMDEP_TRUE='#'
 
2975
  AMDEP_FALSE=
 
2976
fi
 
2977
 
 
2978
 
 
2979
 
 
2980
 
 
2981
depcc="$CC"   am_compiler_list=
 
2982
 
 
2983
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2984
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2985
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2987
else
 
2988
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2989
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2990
  # making bogus files that we don't know about and never remove.  For
 
2991
  # instance it was reported that on HP-UX the gcc test will end up
 
2992
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2993
  # in D'.
 
2994
  mkdir conftest.dir
 
2995
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2996
  # using a relative directory.
 
2997
  cp "$am_depcomp" conftest.dir
 
2998
  cd conftest.dir
 
2999
 
 
3000
  am_cv_CC_dependencies_compiler_type=none
 
3001
  if test "$am_compiler_list" = ""; then
 
3002
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3003
  fi
 
3004
  for depmode in $am_compiler_list; do
 
3005
    # We need to recreate these files for each test, as the compiler may
 
3006
    # overwrite some of them when testing with obscure command lines.
 
3007
    # This happens at least with the AIX C compiler.
 
3008
    echo '#include "conftest.h"' > conftest.c
 
3009
    echo 'int i;' > conftest.h
 
3010
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
3011
 
 
3012
    case $depmode in
 
3013
    nosideeffect)
 
3014
      # after this tag, mechanisms are not by side-effect, so they'll
 
3015
      # only be used when explicitly requested
 
3016
      if test "x$enable_dependency_tracking" = xyes; then
 
3017
        continue
 
3018
      else
 
3019
        break
 
3020
      fi
 
3021
      ;;
 
3022
    none) break ;;
 
3023
    esac
 
3024
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3025
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3026
    # handle `-M -o', and we need to detect this.
 
3027
    if depmode=$depmode \
 
3028
       source=conftest.c object=conftest.o \
 
3029
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
3030
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
3031
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
3032
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3033
      am_cv_CC_dependencies_compiler_type=$depmode
 
3034
      break
 
3035
    fi
 
3036
  done
 
3037
 
 
3038
  cd ..
 
3039
  rm -rf conftest.dir
 
3040
else
 
3041
  am_cv_CC_dependencies_compiler_type=none
 
3042
fi
 
3043
 
 
3044
fi
 
3045
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3046
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3047
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3048
 
 
3049
 
 
3050
# Find a good install program.  We prefer a C program (faster),
 
3051
# so one script is as good as another.  But avoid the broken or
 
3052
# incompatible versions:
 
3053
# SysV /etc/install, /usr/sbin/install
 
3054
# SunOS /usr/etc/install
 
3055
# IRIX /sbin/install
 
3056
# AIX /bin/install
 
3057
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3058
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3059
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3060
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3061
# OS/2's system install, which has a completely different semantic
 
3062
# ./install, which can be erroneously created by make from ./install.sh.
 
3063
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3064
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3065
if test -z "$INSTALL"; then
 
3066
if test "${ac_cv_path_install+set}" = set; then
 
3067
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3068
else
 
3069
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3070
for as_dir in $PATH
 
3071
do
 
3072
  IFS=$as_save_IFS
 
3073
  test -z "$as_dir" && as_dir=.
 
3074
  # Account for people who put trailing slashes in PATH elements.
 
3075
case $as_dir/ in
 
3076
  ./ | .// | /cC/* | \
 
3077
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3078
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3079
  /usr/ucb/* ) ;;
 
3080
  *)
 
3081
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3082
    # Don't use installbsd from OSF since it installs stuff as root
 
3083
    # by default.
 
3084
    for ac_prog in ginstall scoinst install; do
 
3085
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3086
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3087
          if test $ac_prog = install &&
 
3088
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3089
            # AIX install.  It has an incompatible calling convention.
 
3090
            :
 
3091
          elif test $ac_prog = install &&
 
3092
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3093
            # program-specific install script used by HP pwplus--don't use.
 
3094
            :
 
3095
          else
 
3096
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3097
            break 3
 
3098
          fi
 
3099
        fi
 
3100
      done
 
3101
    done
 
3102
    ;;
 
3103
esac
 
3104
done
 
3105
 
 
3106
 
 
3107
fi
 
3108
  if test "${ac_cv_path_install+set}" = set; then
 
3109
    INSTALL=$ac_cv_path_install
 
3110
  else
 
3111
    # As a last resort, use the slow shell script.  We don't cache a
 
3112
    # path for INSTALL within a source directory, because that will
 
3113
    # break other packages using the cache if that directory is
 
3114
    # removed, or if the path is relative.
 
3115
    INSTALL=$ac_install_sh
 
3116
  fi
 
3117
fi
 
3118
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3119
echo "${ECHO_T}$INSTALL" >&6
 
3120
 
 
3121
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3122
# It thinks the first close brace ends the variable substitution.
 
3123
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3124
 
 
3125
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3126
 
 
3127
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3128
 
 
3129
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3130
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3131
LN_S=$as_ln_s
 
3132
if test "$LN_S" = "ln -s"; then
 
3133
  echo "$as_me:$LINENO: result: yes" >&5
 
3134
echo "${ECHO_T}yes" >&6
 
3135
else
 
3136
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3137
echo "${ECHO_T}no, using $LN_S" >&6
 
3138
fi
 
3139
 
 
3140
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3141
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3142
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3143
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3145
else
 
3146
  cat >conftest.make <<\_ACEOF
 
3147
all:
 
3148
        @echo 'ac_maketemp="$(MAKE)"'
 
3149
_ACEOF
 
3150
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3151
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3152
if test -n "$ac_maketemp"; then
 
3153
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3154
else
 
3155
  eval ac_cv_prog_make_${ac_make}_set=no
 
3156
fi
 
3157
rm -f conftest.make
 
3158
fi
 
3159
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3160
  echo "$as_me:$LINENO: result: yes" >&5
 
3161
echo "${ECHO_T}yes" >&6
 
3162
  SET_MAKE=
 
3163
else
 
3164
  echo "$as_me:$LINENO: result: no" >&5
 
3165
echo "${ECHO_T}no" >&6
 
3166
  SET_MAKE="MAKE=${MAKE-make}"
 
3167
fi
 
3168
 
 
3169
# Extract the first word of "rpmbuild", so it can be a program name with args.
 
3170
set dummy rpmbuild; ac_word=$2
 
3171
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3172
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3173
if test "${ac_cv_prog_RPMBUILD+set}" = set; then
 
3174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3175
else
 
3176
  if test -n "$RPMBUILD"; then
 
3177
  ac_cv_prog_RPMBUILD="$RPMBUILD" # Let the user override the test.
 
3178
else
 
3179
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3180
for as_dir in $PATH
 
3181
do
 
3182
  IFS=$as_save_IFS
 
3183
  test -z "$as_dir" && as_dir=.
 
3184
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3185
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3186
    ac_cv_prog_RPMBUILD="rpmbuild"
 
3187
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3188
    break 2
 
3189
  fi
 
3190
done
 
3191
done
 
3192
 
 
3193
  test -z "$ac_cv_prog_RPMBUILD" && ac_cv_prog_RPMBUILD="rpm"
 
3194
fi
 
3195
fi
 
3196
RPMBUILD=$ac_cv_prog_RPMBUILD
 
3197
if test -n "$RPMBUILD"; then
 
3198
  echo "$as_me:$LINENO: result: $RPMBUILD" >&5
 
3199
echo "${ECHO_T}$RPMBUILD" >&6
 
3200
else
 
3201
  echo "$as_me:$LINENO: result: no" >&5
 
3202
echo "${ECHO_T}no" >&6
 
3203
fi
 
3204
 
 
3205
# Extract the first word of "sed", so it can be a program name with args.
 
3206
set dummy sed; ac_word=$2
 
3207
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3208
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3209
if test "${ac_cv_prog_SED+set}" = set; then
 
3210
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3211
else
 
3212
  if test -n "$SED"; then
 
3213
  ac_cv_prog_SED="$SED" # Let the user override the test.
 
3214
else
 
3215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3216
for as_dir in $PATH
 
3217
do
 
3218
  IFS=$as_save_IFS
 
3219
  test -z "$as_dir" && as_dir=.
 
3220
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3221
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3222
    ac_cv_prog_SED="sed"
 
3223
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3224
    break 2
 
3225
  fi
 
3226
done
 
3227
done
 
3228
 
 
3229
fi
 
3230
fi
 
3231
SED=$ac_cv_prog_SED
 
3232
if test -n "$SED"; then
 
3233
  echo "$as_me:$LINENO: result: $SED" >&5
 
3234
echo "${ECHO_T}$SED" >&6
 
3235
else
 
3236
  echo "$as_me:$LINENO: result: no" >&5
 
3237
echo "${ECHO_T}no" >&6
 
3238
fi
 
3239
 
 
3240
 
 
3241
 
 
3242
ac_ext=c
 
3243
ac_cpp='$CPP $CPPFLAGS'
 
3244
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3245
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3246
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3247
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3248
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3249
# On Suns, sometimes $CPP names a directory.
 
3250
if test -n "$CPP" && test -d "$CPP"; then
 
3251
  CPP=
 
3252
fi
 
3253
if test -z "$CPP"; then
 
3254
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3256
else
 
3257
      # Double quotes because CPP needs to be expanded
 
3258
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3259
    do
 
3260
      ac_preproc_ok=false
 
3261
for ac_c_preproc_warn_flag in '' yes
 
3262
do
 
3263
  # Use a header file that comes with gcc, so configuring glibc
 
3264
  # with a fresh cross-compiler works.
 
3265
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3266
  # <limits.h> exists even on freestanding compilers.
 
3267
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3268
  # not just through cpp. "Syntax error" is here to catch this case.
 
3269
  cat >conftest.$ac_ext <<_ACEOF
 
3270
/* confdefs.h.  */
 
3271
_ACEOF
 
3272
cat confdefs.h >>conftest.$ac_ext
 
3273
cat >>conftest.$ac_ext <<_ACEOF
 
3274
/* end confdefs.h.  */
 
3275
#ifdef __STDC__
 
3276
# include <limits.h>
 
3277
#else
 
3278
# include <assert.h>
 
3279
#endif
 
3280
                     Syntax error
 
3281
_ACEOF
 
3282
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3283
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3284
  ac_status=$?
 
3285
  grep -v '^ *+' conftest.er1 >conftest.err
 
3286
  rm -f conftest.er1
 
3287
  cat conftest.err >&5
 
3288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3289
  (exit $ac_status); } >/dev/null; then
 
3290
  if test -s conftest.err; then
 
3291
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3292
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3293
  else
 
3294
    ac_cpp_err=
 
3295
  fi
 
3296
else
 
3297
  ac_cpp_err=yes
 
3298
fi
 
3299
if test -z "$ac_cpp_err"; then
 
3300
  :
 
3301
else
 
3302
  echo "$as_me: failed program was:" >&5
 
3303
sed 's/^/| /' conftest.$ac_ext >&5
 
3304
 
 
3305
  # Broken: fails on valid input.
 
3306
continue
 
3307
fi
 
3308
rm -f conftest.err conftest.$ac_ext
 
3309
 
 
3310
  # OK, works on sane cases.  Now check whether non-existent headers
 
3311
  # can be detected and how.
 
3312
  cat >conftest.$ac_ext <<_ACEOF
 
3313
/* confdefs.h.  */
 
3314
_ACEOF
 
3315
cat confdefs.h >>conftest.$ac_ext
 
3316
cat >>conftest.$ac_ext <<_ACEOF
 
3317
/* end confdefs.h.  */
 
3318
#include <ac_nonexistent.h>
 
3319
_ACEOF
 
3320
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3321
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3322
  ac_status=$?
 
3323
  grep -v '^ *+' conftest.er1 >conftest.err
 
3324
  rm -f conftest.er1
 
3325
  cat conftest.err >&5
 
3326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3327
  (exit $ac_status); } >/dev/null; then
 
3328
  if test -s conftest.err; then
 
3329
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3330
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3331
  else
 
3332
    ac_cpp_err=
 
3333
  fi
 
3334
else
 
3335
  ac_cpp_err=yes
 
3336
fi
 
3337
if test -z "$ac_cpp_err"; then
 
3338
  # Broken: success on invalid input.
 
3339
continue
 
3340
else
 
3341
  echo "$as_me: failed program was:" >&5
 
3342
sed 's/^/| /' conftest.$ac_ext >&5
 
3343
 
 
3344
  # Passes both tests.
 
3345
ac_preproc_ok=:
 
3346
break
 
3347
fi
 
3348
rm -f conftest.err conftest.$ac_ext
 
3349
 
 
3350
done
 
3351
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3352
rm -f conftest.err conftest.$ac_ext
 
3353
if $ac_preproc_ok; then
 
3354
  break
 
3355
fi
 
3356
 
 
3357
    done
 
3358
    ac_cv_prog_CPP=$CPP
 
3359
 
 
3360
fi
 
3361
  CPP=$ac_cv_prog_CPP
 
3362
else
 
3363
  ac_cv_prog_CPP=$CPP
 
3364
fi
 
3365
echo "$as_me:$LINENO: result: $CPP" >&5
 
3366
echo "${ECHO_T}$CPP" >&6
 
3367
ac_preproc_ok=false
 
3368
for ac_c_preproc_warn_flag in '' yes
 
3369
do
 
3370
  # Use a header file that comes with gcc, so configuring glibc
 
3371
  # with a fresh cross-compiler works.
 
3372
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3373
  # <limits.h> exists even on freestanding compilers.
 
3374
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3375
  # not just through cpp. "Syntax error" is here to catch this case.
 
3376
  cat >conftest.$ac_ext <<_ACEOF
 
3377
/* confdefs.h.  */
 
3378
_ACEOF
 
3379
cat confdefs.h >>conftest.$ac_ext
 
3380
cat >>conftest.$ac_ext <<_ACEOF
 
3381
/* end confdefs.h.  */
 
3382
#ifdef __STDC__
 
3383
# include <limits.h>
 
3384
#else
 
3385
# include <assert.h>
 
3386
#endif
 
3387
                     Syntax error
 
3388
_ACEOF
 
3389
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3390
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3391
  ac_status=$?
 
3392
  grep -v '^ *+' conftest.er1 >conftest.err
 
3393
  rm -f conftest.er1
 
3394
  cat conftest.err >&5
 
3395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3396
  (exit $ac_status); } >/dev/null; then
 
3397
  if test -s conftest.err; then
 
3398
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3399
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3400
  else
 
3401
    ac_cpp_err=
 
3402
  fi
 
3403
else
 
3404
  ac_cpp_err=yes
 
3405
fi
 
3406
if test -z "$ac_cpp_err"; then
 
3407
  :
 
3408
else
 
3409
  echo "$as_me: failed program was:" >&5
 
3410
sed 's/^/| /' conftest.$ac_ext >&5
 
3411
 
 
3412
  # Broken: fails on valid input.
 
3413
continue
 
3414
fi
 
3415
rm -f conftest.err conftest.$ac_ext
 
3416
 
 
3417
  # OK, works on sane cases.  Now check whether non-existent headers
 
3418
  # can be detected and how.
 
3419
  cat >conftest.$ac_ext <<_ACEOF
 
3420
/* confdefs.h.  */
 
3421
_ACEOF
 
3422
cat confdefs.h >>conftest.$ac_ext
 
3423
cat >>conftest.$ac_ext <<_ACEOF
 
3424
/* end confdefs.h.  */
 
3425
#include <ac_nonexistent.h>
 
3426
_ACEOF
 
3427
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3428
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3429
  ac_status=$?
 
3430
  grep -v '^ *+' conftest.er1 >conftest.err
 
3431
  rm -f conftest.er1
 
3432
  cat conftest.err >&5
 
3433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3434
  (exit $ac_status); } >/dev/null; then
 
3435
  if test -s conftest.err; then
 
3436
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3437
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3438
  else
 
3439
    ac_cpp_err=
 
3440
  fi
 
3441
else
 
3442
  ac_cpp_err=yes
 
3443
fi
 
3444
if test -z "$ac_cpp_err"; then
 
3445
  # Broken: success on invalid input.
 
3446
continue
 
3447
else
 
3448
  echo "$as_me: failed program was:" >&5
 
3449
sed 's/^/| /' conftest.$ac_ext >&5
 
3450
 
 
3451
  # Passes both tests.
 
3452
ac_preproc_ok=:
 
3453
break
 
3454
fi
 
3455
rm -f conftest.err conftest.$ac_ext
 
3456
 
 
3457
done
 
3458
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3459
rm -f conftest.err conftest.$ac_ext
 
3460
if $ac_preproc_ok; then
 
3461
  :
 
3462
else
 
3463
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3464
See \`config.log' for more details." >&5
 
3465
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3466
See \`config.log' for more details." >&2;}
 
3467
   { (exit 1); exit 1; }; }
 
3468
fi
 
3469
 
 
3470
ac_ext=c
 
3471
ac_cpp='$CPP $CPPFLAGS'
 
3472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3475
 
 
3476
 
 
3477
echo "$as_me:$LINENO: checking for egrep" >&5
 
3478
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3479
if test "${ac_cv_prog_egrep+set}" = set; then
 
3480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3481
else
 
3482
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3483
    then ac_cv_prog_egrep='grep -E'
 
3484
    else ac_cv_prog_egrep='egrep'
 
3485
    fi
 
3486
fi
 
3487
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3488
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3489
 EGREP=$ac_cv_prog_egrep
 
3490
 
 
3491
 
 
3492
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3493
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
3494
if test "${ac_cv_header_stdc+set}" = set; then
 
3495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3496
else
 
3497
  cat >conftest.$ac_ext <<_ACEOF
 
3498
/* confdefs.h.  */
 
3499
_ACEOF
 
3500
cat confdefs.h >>conftest.$ac_ext
 
3501
cat >>conftest.$ac_ext <<_ACEOF
 
3502
/* end confdefs.h.  */
 
3503
#include <stdlib.h>
 
3504
#include <stdarg.h>
 
3505
#include <string.h>
 
3506
#include <float.h>
 
3507
 
 
3508
int
 
3509
main ()
 
3510
{
 
3511
 
 
3512
  ;
 
3513
  return 0;
 
3514
}
 
3515
_ACEOF
 
3516
rm -f conftest.$ac_objext
 
3517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3518
  (eval $ac_compile) 2>conftest.er1
 
3519
  ac_status=$?
 
3520
  grep -v '^ *+' conftest.er1 >conftest.err
 
3521
  rm -f conftest.er1
 
3522
  cat conftest.err >&5
 
3523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3524
  (exit $ac_status); } &&
 
3525
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3527
  (eval $ac_try) 2>&5
 
3528
  ac_status=$?
 
3529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3530
  (exit $ac_status); }; } &&
 
3531
         { ac_try='test -s conftest.$ac_objext'
 
3532
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3533
  (eval $ac_try) 2>&5
 
3534
  ac_status=$?
 
3535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3536
  (exit $ac_status); }; }; then
 
3537
  ac_cv_header_stdc=yes
 
3538
else
 
3539
  echo "$as_me: failed program was:" >&5
 
3540
sed 's/^/| /' conftest.$ac_ext >&5
 
3541
 
 
3542
ac_cv_header_stdc=no
 
3543
fi
 
3544
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3545
 
 
3546
if test $ac_cv_header_stdc = yes; then
 
3547
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
3548
  cat >conftest.$ac_ext <<_ACEOF
 
3549
/* confdefs.h.  */
 
3550
_ACEOF
 
3551
cat confdefs.h >>conftest.$ac_ext
 
3552
cat >>conftest.$ac_ext <<_ACEOF
 
3553
/* end confdefs.h.  */
 
3554
#include <string.h>
 
3555
 
 
3556
_ACEOF
 
3557
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3558
  $EGREP "memchr" >/dev/null 2>&1; then
 
3559
  :
 
3560
else
 
3561
  ac_cv_header_stdc=no
 
3562
fi
 
3563
rm -f conftest*
 
3564
 
 
3565
fi
 
3566
 
 
3567
if test $ac_cv_header_stdc = yes; then
 
3568
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
3569
  cat >conftest.$ac_ext <<_ACEOF
 
3570
/* confdefs.h.  */
 
3571
_ACEOF
 
3572
cat confdefs.h >>conftest.$ac_ext
 
3573
cat >>conftest.$ac_ext <<_ACEOF
 
3574
/* end confdefs.h.  */
 
3575
#include <stdlib.h>
 
3576
 
 
3577
_ACEOF
 
3578
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3579
  $EGREP "free" >/dev/null 2>&1; then
 
3580
  :
 
3581
else
 
3582
  ac_cv_header_stdc=no
 
3583
fi
 
3584
rm -f conftest*
 
3585
 
 
3586
fi
 
3587
 
 
3588
if test $ac_cv_header_stdc = yes; then
 
3589
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
3590
  if test "$cross_compiling" = yes; then
 
3591
  :
 
3592
else
 
3593
  cat >conftest.$ac_ext <<_ACEOF
 
3594
/* confdefs.h.  */
 
3595
_ACEOF
 
3596
cat confdefs.h >>conftest.$ac_ext
 
3597
cat >>conftest.$ac_ext <<_ACEOF
 
3598
/* end confdefs.h.  */
 
3599
#include <ctype.h>
 
3600
#if ((' ' & 0x0FF) == 0x020)
 
3601
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3602
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3603
#else
 
3604
# define ISLOWER(c) \
 
3605
                   (('a' <= (c) && (c) <= 'i') \
 
3606
                     || ('j' <= (c) && (c) <= 'r') \
 
3607
                     || ('s' <= (c) && (c) <= 'z'))
 
3608
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
3609
#endif
 
3610
 
 
3611
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3612
int
 
3613
main ()
 
3614
{
 
3615
  int i;
 
3616
  for (i = 0; i < 256; i++)
 
3617
    if (XOR (islower (i), ISLOWER (i))
 
3618
        || toupper (i) != TOUPPER (i))
 
3619
      exit(2);
 
3620
  exit (0);
 
3621
}
 
3622
_ACEOF
 
3623
rm -f conftest$ac_exeext
 
3624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3625
  (eval $ac_link) 2>&5
 
3626
  ac_status=$?
 
3627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3628
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
3629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3630
  (eval $ac_try) 2>&5
 
3631
  ac_status=$?
 
3632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3633
  (exit $ac_status); }; }; then
 
3634
  :
 
3635
else
 
3636
  echo "$as_me: program exited with status $ac_status" >&5
 
3637
echo "$as_me: failed program was:" >&5
 
3638
sed 's/^/| /' conftest.$ac_ext >&5
 
3639
 
 
3640
( exit $ac_status )
 
3641
ac_cv_header_stdc=no
 
3642
fi
 
3643
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3644
fi
 
3645
fi
 
3646
fi
 
3647
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3648
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
3649
if test $ac_cv_header_stdc = yes; then
 
3650
 
 
3651
cat >>confdefs.h <<\_ACEOF
 
3652
#define STDC_HEADERS 1
 
3653
_ACEOF
 
3654
 
 
3655
fi
 
3656
 
 
3657
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3658
 
 
3659
 
 
3660
 
 
3661
 
 
3662
 
 
3663
 
 
3664
 
 
3665
 
 
3666
 
 
3667
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
3668
                  inttypes.h stdint.h unistd.h
 
3669
do
 
3670
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3671
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3672
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3673
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3675
else
 
3676
  cat >conftest.$ac_ext <<_ACEOF
 
3677
/* confdefs.h.  */
 
3678
_ACEOF
 
3679
cat confdefs.h >>conftest.$ac_ext
 
3680
cat >>conftest.$ac_ext <<_ACEOF
 
3681
/* end confdefs.h.  */
 
3682
$ac_includes_default
 
3683
 
 
3684
#include <$ac_header>
 
3685
_ACEOF
 
3686
rm -f conftest.$ac_objext
 
3687
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3688
  (eval $ac_compile) 2>conftest.er1
 
3689
  ac_status=$?
 
3690
  grep -v '^ *+' conftest.er1 >conftest.err
 
3691
  rm -f conftest.er1
 
3692
  cat conftest.err >&5
 
3693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3694
  (exit $ac_status); } &&
 
3695
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3697
  (eval $ac_try) 2>&5
 
3698
  ac_status=$?
 
3699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3700
  (exit $ac_status); }; } &&
 
3701
         { ac_try='test -s conftest.$ac_objext'
 
3702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3703
  (eval $ac_try) 2>&5
 
3704
  ac_status=$?
 
3705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3706
  (exit $ac_status); }; }; then
 
3707
  eval "$as_ac_Header=yes"
 
3708
else
 
3709
  echo "$as_me: failed program was:" >&5
 
3710
sed 's/^/| /' conftest.$ac_ext >&5
 
3711
 
 
3712
eval "$as_ac_Header=no"
 
3713
fi
 
3714
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3715
fi
 
3716
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3717
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3718
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3719
  cat >>confdefs.h <<_ACEOF
 
3720
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3721
_ACEOF
 
3722
 
 
3723
fi
 
3724
 
 
3725
done
 
3726
 
 
3727
 
 
3728
 
 
3729
 
 
3730
 
 
3731
 
 
3732
 
 
3733
for ac_header in stdlib.h string.h sys/ioctl.h sys/stat.h unistd.h
 
3734
do
 
3735
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3736
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3737
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3738
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3739
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3740
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3741
fi
 
3742
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3743
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3744
else
 
3745
  # Is the header compilable?
 
3746
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3747
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3748
cat >conftest.$ac_ext <<_ACEOF
 
3749
/* confdefs.h.  */
 
3750
_ACEOF
 
3751
cat confdefs.h >>conftest.$ac_ext
 
3752
cat >>conftest.$ac_ext <<_ACEOF
 
3753
/* end confdefs.h.  */
 
3754
$ac_includes_default
 
3755
#include <$ac_header>
 
3756
_ACEOF
 
3757
rm -f conftest.$ac_objext
 
3758
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3759
  (eval $ac_compile) 2>conftest.er1
 
3760
  ac_status=$?
 
3761
  grep -v '^ *+' conftest.er1 >conftest.err
 
3762
  rm -f conftest.er1
 
3763
  cat conftest.err >&5
 
3764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3765
  (exit $ac_status); } &&
 
3766
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3768
  (eval $ac_try) 2>&5
 
3769
  ac_status=$?
 
3770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3771
  (exit $ac_status); }; } &&
 
3772
         { ac_try='test -s conftest.$ac_objext'
 
3773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3774
  (eval $ac_try) 2>&5
 
3775
  ac_status=$?
 
3776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3777
  (exit $ac_status); }; }; then
 
3778
  ac_header_compiler=yes
 
3779
else
 
3780
  echo "$as_me: failed program was:" >&5
 
3781
sed 's/^/| /' conftest.$ac_ext >&5
 
3782
 
 
3783
ac_header_compiler=no
 
3784
fi
 
3785
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3786
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3787
echo "${ECHO_T}$ac_header_compiler" >&6
 
3788
 
 
3789
# Is the header present?
 
3790
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3791
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3792
cat >conftest.$ac_ext <<_ACEOF
 
3793
/* confdefs.h.  */
 
3794
_ACEOF
 
3795
cat confdefs.h >>conftest.$ac_ext
 
3796
cat >>conftest.$ac_ext <<_ACEOF
 
3797
/* end confdefs.h.  */
 
3798
#include <$ac_header>
 
3799
_ACEOF
 
3800
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3801
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3802
  ac_status=$?
 
3803
  grep -v '^ *+' conftest.er1 >conftest.err
 
3804
  rm -f conftest.er1
 
3805
  cat conftest.err >&5
 
3806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3807
  (exit $ac_status); } >/dev/null; then
 
3808
  if test -s conftest.err; then
 
3809
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3810
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3811
  else
 
3812
    ac_cpp_err=
 
3813
  fi
 
3814
else
 
3815
  ac_cpp_err=yes
 
3816
fi
 
3817
if test -z "$ac_cpp_err"; then
 
3818
  ac_header_preproc=yes
 
3819
else
 
3820
  echo "$as_me: failed program was:" >&5
 
3821
sed 's/^/| /' conftest.$ac_ext >&5
 
3822
 
 
3823
  ac_header_preproc=no
 
3824
fi
 
3825
rm -f conftest.err conftest.$ac_ext
 
3826
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3827
echo "${ECHO_T}$ac_header_preproc" >&6
 
3828
 
 
3829
# So?  What about this header?
 
3830
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3831
  yes:no: )
 
3832
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3833
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3834
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
3835
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
3836
    ac_header_preproc=yes
 
3837
    ;;
 
3838
  no:yes:* )
 
3839
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3840
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3841
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
3842
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
3843
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
3844
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
3845
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
3846
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
3847
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
3848
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
3849
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
3850
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
3851
    (
 
3852
      cat <<\_ASBOX
 
3853
## ------------------------------------------ ##
 
3854
## Report this to the AC_PACKAGE_NAME lists.  ##
 
3855
## ------------------------------------------ ##
 
3856
_ASBOX
 
3857
    ) |
 
3858
      sed "s/^/$as_me: WARNING:     /" >&2
 
3859
    ;;
 
3860
esac
 
3861
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3862
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3863
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3864
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3865
else
 
3866
  eval "$as_ac_Header=\$ac_header_preproc"
 
3867
fi
 
3868
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3869
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3870
 
 
3871
fi
 
3872
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
3873
  cat >>confdefs.h <<_ACEOF
 
3874
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
3875
_ACEOF
 
3876
 
 
3877
fi
 
3878
 
 
3879
done
 
3880
 
 
3881
 
 
3882
 
 
3883
 
 
3884
 
 
3885
 
 
3886
for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h sys/socket.h
 
3887
do
 
3888
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
3889
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3890
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3891
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3892
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3893
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3894
fi
 
3895
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3896
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3897
else
 
3898
  # Is the header compilable?
 
3899
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3900
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
3901
cat >conftest.$ac_ext <<_ACEOF
 
3902
/* confdefs.h.  */
 
3903
_ACEOF
 
3904
cat confdefs.h >>conftest.$ac_ext
 
3905
cat >>conftest.$ac_ext <<_ACEOF
 
3906
/* end confdefs.h.  */
 
3907
$ac_includes_default
 
3908
#include <$ac_header>
 
3909
_ACEOF
 
3910
rm -f conftest.$ac_objext
 
3911
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3912
  (eval $ac_compile) 2>conftest.er1
 
3913
  ac_status=$?
 
3914
  grep -v '^ *+' conftest.er1 >conftest.err
 
3915
  rm -f conftest.er1
 
3916
  cat conftest.err >&5
 
3917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3918
  (exit $ac_status); } &&
 
3919
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3920
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3921
  (eval $ac_try) 2>&5
 
3922
  ac_status=$?
 
3923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3924
  (exit $ac_status); }; } &&
 
3925
         { ac_try='test -s conftest.$ac_objext'
 
3926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3927
  (eval $ac_try) 2>&5
 
3928
  ac_status=$?
 
3929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3930
  (exit $ac_status); }; }; then
 
3931
  ac_header_compiler=yes
 
3932
else
 
3933
  echo "$as_me: failed program was:" >&5
 
3934
sed 's/^/| /' conftest.$ac_ext >&5
 
3935
 
 
3936
ac_header_compiler=no
 
3937
fi
 
3938
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3939
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3940
echo "${ECHO_T}$ac_header_compiler" >&6
 
3941
 
 
3942
# Is the header present?
 
3943
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3944
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
3945
cat >conftest.$ac_ext <<_ACEOF
 
3946
/* confdefs.h.  */
 
3947
_ACEOF
 
3948
cat confdefs.h >>conftest.$ac_ext
 
3949
cat >>conftest.$ac_ext <<_ACEOF
 
3950
/* end confdefs.h.  */
 
3951
#include <$ac_header>
 
3952
_ACEOF
 
3953
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3954
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3955
  ac_status=$?
 
3956
  grep -v '^ *+' conftest.er1 >conftest.err
 
3957
  rm -f conftest.er1
 
3958
  cat conftest.err >&5
 
3959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3960
  (exit $ac_status); } >/dev/null; then
 
3961
  if test -s conftest.err; then
 
3962
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3963
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3964
  else
 
3965
    ac_cpp_err=
 
3966
  fi
 
3967
else
 
3968
  ac_cpp_err=yes
 
3969
fi
 
3970
if test -z "$ac_cpp_err"; then
 
3971
  ac_header_preproc=yes
 
3972
else
 
3973
  echo "$as_me: failed program was:" >&5
 
3974
sed 's/^/| /' conftest.$ac_ext >&5
 
3975
 
 
3976
  ac_header_preproc=no
 
3977
fi
 
3978
rm -f conftest.err conftest.$ac_ext
 
3979
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3980
echo "${ECHO_T}$ac_header_preproc" >&6
 
3981
 
 
3982
# So?  What about this header?
 
3983
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
3984
  yes:no: )
 
3985
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
3986
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
3987
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
3988
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
3989
    ac_header_preproc=yes
 
3990
    ;;
 
3991
  no:yes:* )
 
3992
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
3993
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
3994
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
3995
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
3996
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
3997
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
3998
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
3999
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4000
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4001
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4002
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4003
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4004
    (
 
4005
      cat <<\_ASBOX
 
4006
## ------------------------------------------ ##
 
4007
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4008
## ------------------------------------------ ##
 
4009
_ASBOX
 
4010
    ) |
 
4011
      sed "s/^/$as_me: WARNING:     /" >&2
 
4012
    ;;
 
4013
esac
 
4014
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4015
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4016
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4018
else
 
4019
  eval "$as_ac_Header=\$ac_header_preproc"
 
4020
fi
 
4021
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4022
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4023
 
 
4024
fi
 
4025
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4026
  cat >>confdefs.h <<_ACEOF
 
4027
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4028
_ACEOF
 
4029
 
 
4030
fi
 
4031
 
 
4032
done
 
4033
 
 
4034
 
 
4035
 
 
4036
for ac_header in sys/byteorder.h byteswap.h
 
4037
do
 
4038
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4039
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4040
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4041
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4042
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4044
fi
 
4045
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4046
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4047
else
 
4048
  # Is the header compilable?
 
4049
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4050
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4051
cat >conftest.$ac_ext <<_ACEOF
 
4052
/* confdefs.h.  */
 
4053
_ACEOF
 
4054
cat confdefs.h >>conftest.$ac_ext
 
4055
cat >>conftest.$ac_ext <<_ACEOF
 
4056
/* end confdefs.h.  */
 
4057
$ac_includes_default
 
4058
#include <$ac_header>
 
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_header_compiler=yes
 
4082
else
 
4083
  echo "$as_me: failed program was:" >&5
 
4084
sed 's/^/| /' conftest.$ac_ext >&5
 
4085
 
 
4086
ac_header_compiler=no
 
4087
fi
 
4088
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4089
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4090
echo "${ECHO_T}$ac_header_compiler" >&6
 
4091
 
 
4092
# Is the header present?
 
4093
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4094
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4095
cat >conftest.$ac_ext <<_ACEOF
 
4096
/* confdefs.h.  */
 
4097
_ACEOF
 
4098
cat confdefs.h >>conftest.$ac_ext
 
4099
cat >>conftest.$ac_ext <<_ACEOF
 
4100
/* end confdefs.h.  */
 
4101
#include <$ac_header>
 
4102
_ACEOF
 
4103
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4104
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4105
  ac_status=$?
 
4106
  grep -v '^ *+' conftest.er1 >conftest.err
 
4107
  rm -f conftest.er1
 
4108
  cat conftest.err >&5
 
4109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4110
  (exit $ac_status); } >/dev/null; then
 
4111
  if test -s conftest.err; then
 
4112
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4113
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4114
  else
 
4115
    ac_cpp_err=
 
4116
  fi
 
4117
else
 
4118
  ac_cpp_err=yes
 
4119
fi
 
4120
if test -z "$ac_cpp_err"; then
 
4121
  ac_header_preproc=yes
 
4122
else
 
4123
  echo "$as_me: failed program was:" >&5
 
4124
sed 's/^/| /' conftest.$ac_ext >&5
 
4125
 
 
4126
  ac_header_preproc=no
 
4127
fi
 
4128
rm -f conftest.err conftest.$ac_ext
 
4129
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4130
echo "${ECHO_T}$ac_header_preproc" >&6
 
4131
 
 
4132
# So?  What about this header?
 
4133
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4134
  yes:no: )
 
4135
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4136
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4137
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4138
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4139
    ac_header_preproc=yes
 
4140
    ;;
 
4141
  no:yes:* )
 
4142
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4143
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4144
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4145
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4146
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4147
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4148
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4149
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4150
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4151
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4152
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4153
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4154
    (
 
4155
      cat <<\_ASBOX
 
4156
## ------------------------------------------ ##
 
4157
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4158
## ------------------------------------------ ##
 
4159
_ASBOX
 
4160
    ) |
 
4161
      sed "s/^/$as_me: WARNING:     /" >&2
 
4162
    ;;
 
4163
esac
 
4164
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4165
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4166
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4167
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4168
else
 
4169
  eval "$as_ac_Header=\$ac_header_preproc"
 
4170
fi
 
4171
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4172
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4173
 
 
4174
fi
 
4175
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4176
  cat >>confdefs.h <<_ACEOF
 
4177
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4178
_ACEOF
 
4179
 
 
4180
fi
 
4181
 
 
4182
done
 
4183
 
 
4184
 
 
4185
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4186
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
4187
if test "${ac_cv_c_const+set}" = set; then
 
4188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4189
else
 
4190
  cat >conftest.$ac_ext <<_ACEOF
 
4191
/* confdefs.h.  */
 
4192
_ACEOF
 
4193
cat confdefs.h >>conftest.$ac_ext
 
4194
cat >>conftest.$ac_ext <<_ACEOF
 
4195
/* end confdefs.h.  */
 
4196
 
 
4197
int
 
4198
main ()
 
4199
{
 
4200
/* FIXME: Include the comments suggested by Paul. */
 
4201
#ifndef __cplusplus
 
4202
  /* Ultrix mips cc rejects this.  */
 
4203
  typedef int charset[2];
 
4204
  const charset x;
 
4205
  /* SunOS 4.1.1 cc rejects this.  */
 
4206
  char const *const *ccp;
 
4207
  char **p;
 
4208
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4209
  struct point {int x, y;};
 
4210
  static struct point const zero = {0,0};
 
4211
  /* AIX XL C 1.02.0.0 rejects this.
 
4212
     It does not let you subtract one const X* pointer from another in
 
4213
     an arm of an if-expression whose if-part is not a constant
 
4214
     expression */
 
4215
  const char *g = "string";
 
4216
  ccp = &g + (g ? g-g : 0);
 
4217
  /* HPUX 7.0 cc rejects these. */
 
4218
  ++ccp;
 
4219
  p = (char**) ccp;
 
4220
  ccp = (char const *const *) p;
 
4221
  { /* SCO 3.2v4 cc rejects this.  */
 
4222
    char *t;
 
4223
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4224
 
 
4225
    *t++ = 0;
 
4226
  }
 
4227
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4228
    int x[] = {25, 17};
 
4229
    const int *foo = &x[0];
 
4230
    ++foo;
 
4231
  }
 
4232
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4233
    typedef const int *iptr;
 
4234
    iptr p = 0;
 
4235
    ++p;
 
4236
  }
 
4237
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4238
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4239
    struct s { int j; const int *ap[3]; };
 
4240
    struct s *b; b->j = 5;
 
4241
  }
 
4242
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4243
    const int foo = 10;
 
4244
  }
 
4245
#endif
 
4246
 
 
4247
  ;
 
4248
  return 0;
 
4249
}
 
4250
_ACEOF
 
4251
rm -f conftest.$ac_objext
 
4252
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4253
  (eval $ac_compile) 2>conftest.er1
 
4254
  ac_status=$?
 
4255
  grep -v '^ *+' conftest.er1 >conftest.err
 
4256
  rm -f conftest.er1
 
4257
  cat conftest.err >&5
 
4258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4259
  (exit $ac_status); } &&
 
4260
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4262
  (eval $ac_try) 2>&5
 
4263
  ac_status=$?
 
4264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4265
  (exit $ac_status); }; } &&
 
4266
         { ac_try='test -s conftest.$ac_objext'
 
4267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4268
  (eval $ac_try) 2>&5
 
4269
  ac_status=$?
 
4270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4271
  (exit $ac_status); }; }; then
 
4272
  ac_cv_c_const=yes
 
4273
else
 
4274
  echo "$as_me: failed program was:" >&5
 
4275
sed 's/^/| /' conftest.$ac_ext >&5
 
4276
 
 
4277
ac_cv_c_const=no
 
4278
fi
 
4279
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4280
fi
 
4281
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4282
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4283
if test $ac_cv_c_const = no; then
 
4284
 
 
4285
cat >>confdefs.h <<\_ACEOF
 
4286
#define const
 
4287
_ACEOF
 
4288
 
 
4289
fi
 
4290
 
 
4291
echo "$as_me:$LINENO: checking for inline" >&5
 
4292
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
4293
if test "${ac_cv_c_inline+set}" = set; then
 
4294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4295
else
 
4296
  ac_cv_c_inline=no
 
4297
for ac_kw in inline __inline__ __inline; do
 
4298
  cat >conftest.$ac_ext <<_ACEOF
 
4299
/* confdefs.h.  */
 
4300
_ACEOF
 
4301
cat confdefs.h >>conftest.$ac_ext
 
4302
cat >>conftest.$ac_ext <<_ACEOF
 
4303
/* end confdefs.h.  */
 
4304
#ifndef __cplusplus
 
4305
typedef int foo_t;
 
4306
static $ac_kw foo_t static_foo () {return 0; }
 
4307
$ac_kw foo_t foo () {return 0; }
 
4308
#endif
 
4309
 
 
4310
_ACEOF
 
4311
rm -f conftest.$ac_objext
 
4312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4313
  (eval $ac_compile) 2>conftest.er1
 
4314
  ac_status=$?
 
4315
  grep -v '^ *+' conftest.er1 >conftest.err
 
4316
  rm -f conftest.er1
 
4317
  cat conftest.err >&5
 
4318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4319
  (exit $ac_status); } &&
 
4320
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4322
  (eval $ac_try) 2>&5
 
4323
  ac_status=$?
 
4324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4325
  (exit $ac_status); }; } &&
 
4326
         { ac_try='test -s conftest.$ac_objext'
 
4327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4328
  (eval $ac_try) 2>&5
 
4329
  ac_status=$?
 
4330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4331
  (exit $ac_status); }; }; then
 
4332
  ac_cv_c_inline=$ac_kw; break
 
4333
else
 
4334
  echo "$as_me: failed program was:" >&5
 
4335
sed 's/^/| /' conftest.$ac_ext >&5
 
4336
 
 
4337
fi
 
4338
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4339
done
 
4340
 
 
4341
fi
 
4342
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
4343
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
4344
 
 
4345
 
 
4346
case $ac_cv_c_inline in
 
4347
  inline | yes) ;;
 
4348
  *)
 
4349
    case $ac_cv_c_inline in
 
4350
      no) ac_val=;;
 
4351
      *) ac_val=$ac_cv_c_inline;;
 
4352
    esac
 
4353
    cat >>confdefs.h <<_ACEOF
 
4354
#ifndef __cplusplus
 
4355
#define inline $ac_val
 
4356
#endif
 
4357
_ACEOF
 
4358
    ;;
 
4359
esac
 
4360
 
 
4361
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
4362
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
4363
if test "${ac_cv_c_bigendian+set}" = set; then
 
4364
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4365
else
 
4366
  # See if sys/param.h defines the BYTE_ORDER macro.
 
4367
cat >conftest.$ac_ext <<_ACEOF
 
4368
/* confdefs.h.  */
 
4369
_ACEOF
 
4370
cat confdefs.h >>conftest.$ac_ext
 
4371
cat >>conftest.$ac_ext <<_ACEOF
 
4372
/* end confdefs.h.  */
 
4373
#include <sys/types.h>
 
4374
#include <sys/param.h>
 
4375
 
 
4376
int
 
4377
main ()
 
4378
{
 
4379
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
4380
 bogus endian macros
 
4381
#endif
 
4382
 
 
4383
  ;
 
4384
  return 0;
 
4385
}
 
4386
_ACEOF
 
4387
rm -f conftest.$ac_objext
 
4388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4389
  (eval $ac_compile) 2>conftest.er1
 
4390
  ac_status=$?
 
4391
  grep -v '^ *+' conftest.er1 >conftest.err
 
4392
  rm -f conftest.er1
 
4393
  cat conftest.err >&5
 
4394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4395
  (exit $ac_status); } &&
 
4396
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4398
  (eval $ac_try) 2>&5
 
4399
  ac_status=$?
 
4400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4401
  (exit $ac_status); }; } &&
 
4402
         { ac_try='test -s conftest.$ac_objext'
 
4403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4404
  (eval $ac_try) 2>&5
 
4405
  ac_status=$?
 
4406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4407
  (exit $ac_status); }; }; then
 
4408
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
4409
cat >conftest.$ac_ext <<_ACEOF
 
4410
/* confdefs.h.  */
 
4411
_ACEOF
 
4412
cat confdefs.h >>conftest.$ac_ext
 
4413
cat >>conftest.$ac_ext <<_ACEOF
 
4414
/* end confdefs.h.  */
 
4415
#include <sys/types.h>
 
4416
#include <sys/param.h>
 
4417
 
 
4418
int
 
4419
main ()
 
4420
{
 
4421
#if BYTE_ORDER != BIG_ENDIAN
 
4422
 not big endian
 
4423
#endif
 
4424
 
 
4425
  ;
 
4426
  return 0;
 
4427
}
 
4428
_ACEOF
 
4429
rm -f conftest.$ac_objext
 
4430
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4431
  (eval $ac_compile) 2>conftest.er1
 
4432
  ac_status=$?
 
4433
  grep -v '^ *+' conftest.er1 >conftest.err
 
4434
  rm -f conftest.er1
 
4435
  cat conftest.err >&5
 
4436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4437
  (exit $ac_status); } &&
 
4438
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4440
  (eval $ac_try) 2>&5
 
4441
  ac_status=$?
 
4442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4443
  (exit $ac_status); }; } &&
 
4444
         { ac_try='test -s conftest.$ac_objext'
 
4445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4446
  (eval $ac_try) 2>&5
 
4447
  ac_status=$?
 
4448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4449
  (exit $ac_status); }; }; then
 
4450
  ac_cv_c_bigendian=yes
 
4451
else
 
4452
  echo "$as_me: failed program was:" >&5
 
4453
sed 's/^/| /' conftest.$ac_ext >&5
 
4454
 
 
4455
ac_cv_c_bigendian=no
 
4456
fi
 
4457
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4458
else
 
4459
  echo "$as_me: failed program was:" >&5
 
4460
sed 's/^/| /' conftest.$ac_ext >&5
 
4461
 
 
4462
# It does not; compile a test program.
 
4463
if test "$cross_compiling" = yes; then
 
4464
  # try to guess the endianness by grepping values into an object file
 
4465
  ac_cv_c_bigendian=unknown
 
4466
  cat >conftest.$ac_ext <<_ACEOF
 
4467
/* confdefs.h.  */
 
4468
_ACEOF
 
4469
cat confdefs.h >>conftest.$ac_ext
 
4470
cat >>conftest.$ac_ext <<_ACEOF
 
4471
/* end confdefs.h.  */
 
4472
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
4473
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
4474
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
4475
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
4476
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
4477
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
4478
int
 
4479
main ()
 
4480
{
 
4481
 _ascii (); _ebcdic ();
 
4482
  ;
 
4483
  return 0;
 
4484
}
 
4485
_ACEOF
 
4486
rm -f conftest.$ac_objext
 
4487
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4488
  (eval $ac_compile) 2>conftest.er1
 
4489
  ac_status=$?
 
4490
  grep -v '^ *+' conftest.er1 >conftest.err
 
4491
  rm -f conftest.er1
 
4492
  cat conftest.err >&5
 
4493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4494
  (exit $ac_status); } &&
 
4495
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4497
  (eval $ac_try) 2>&5
 
4498
  ac_status=$?
 
4499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4500
  (exit $ac_status); }; } &&
 
4501
         { ac_try='test -s conftest.$ac_objext'
 
4502
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4503
  (eval $ac_try) 2>&5
 
4504
  ac_status=$?
 
4505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4506
  (exit $ac_status); }; }; then
 
4507
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
4508
  ac_cv_c_bigendian=yes
 
4509
fi
 
4510
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
4511
  if test "$ac_cv_c_bigendian" = unknown; then
 
4512
    ac_cv_c_bigendian=no
 
4513
  else
 
4514
    # finding both strings is unlikely to happen, but who knows?
 
4515
    ac_cv_c_bigendian=unknown
 
4516
  fi
 
4517
fi
 
4518
else
 
4519
  echo "$as_me: failed program was:" >&5
 
4520
sed 's/^/| /' conftest.$ac_ext >&5
 
4521
 
 
4522
fi
 
4523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4524
else
 
4525
  cat >conftest.$ac_ext <<_ACEOF
 
4526
/* confdefs.h.  */
 
4527
_ACEOF
 
4528
cat confdefs.h >>conftest.$ac_ext
 
4529
cat >>conftest.$ac_ext <<_ACEOF
 
4530
/* end confdefs.h.  */
 
4531
int
 
4532
main ()
 
4533
{
 
4534
  /* Are we little or big endian?  From Harbison&Steele.  */
 
4535
  union
 
4536
  {
 
4537
    long l;
 
4538
    char c[sizeof (long)];
 
4539
  } u;
 
4540
  u.l = 1;
 
4541
  exit (u.c[sizeof (long) - 1] == 1);
 
4542
}
 
4543
_ACEOF
 
4544
rm -f conftest$ac_exeext
 
4545
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4546
  (eval $ac_link) 2>&5
 
4547
  ac_status=$?
 
4548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4549
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4551
  (eval $ac_try) 2>&5
 
4552
  ac_status=$?
 
4553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4554
  (exit $ac_status); }; }; then
 
4555
  ac_cv_c_bigendian=no
 
4556
else
 
4557
  echo "$as_me: program exited with status $ac_status" >&5
 
4558
echo "$as_me: failed program was:" >&5
 
4559
sed 's/^/| /' conftest.$ac_ext >&5
 
4560
 
 
4561
( exit $ac_status )
 
4562
ac_cv_c_bigendian=yes
 
4563
fi
 
4564
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4565
fi
 
4566
fi
 
4567
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4568
fi
 
4569
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
4570
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
4571
case $ac_cv_c_bigendian in
 
4572
  yes)
 
4573
 
 
4574
cat >>confdefs.h <<\_ACEOF
 
4575
#define WORDS_BIGENDIAN 1
 
4576
_ACEOF
 
4577
 ;;
 
4578
  no)
 
4579
     ;;
 
4580
  *)
 
4581
    { { echo "$as_me:$LINENO: error: unknown endianness
 
4582
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
4583
echo "$as_me: error: unknown endianness
 
4584
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
4585
   { (exit 1); exit 1; }; } ;;
 
4586
esac
 
4587
 
 
4588
 
 
4589
 
 
4590
for ac_header in stdlib.h
 
4591
do
 
4592
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4593
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4594
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4595
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4596
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4597
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4598
fi
 
4599
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4600
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4601
else
 
4602
  # Is the header compilable?
 
4603
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4604
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4605
cat >conftest.$ac_ext <<_ACEOF
 
4606
/* confdefs.h.  */
 
4607
_ACEOF
 
4608
cat confdefs.h >>conftest.$ac_ext
 
4609
cat >>conftest.$ac_ext <<_ACEOF
 
4610
/* end confdefs.h.  */
 
4611
$ac_includes_default
 
4612
#include <$ac_header>
 
4613
_ACEOF
 
4614
rm -f conftest.$ac_objext
 
4615
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4616
  (eval $ac_compile) 2>conftest.er1
 
4617
  ac_status=$?
 
4618
  grep -v '^ *+' conftest.er1 >conftest.err
 
4619
  rm -f conftest.er1
 
4620
  cat conftest.err >&5
 
4621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4622
  (exit $ac_status); } &&
 
4623
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4624
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4625
  (eval $ac_try) 2>&5
 
4626
  ac_status=$?
 
4627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4628
  (exit $ac_status); }; } &&
 
4629
         { ac_try='test -s conftest.$ac_objext'
 
4630
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4631
  (eval $ac_try) 2>&5
 
4632
  ac_status=$?
 
4633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4634
  (exit $ac_status); }; }; then
 
4635
  ac_header_compiler=yes
 
4636
else
 
4637
  echo "$as_me: failed program was:" >&5
 
4638
sed 's/^/| /' conftest.$ac_ext >&5
 
4639
 
 
4640
ac_header_compiler=no
 
4641
fi
 
4642
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4643
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4644
echo "${ECHO_T}$ac_header_compiler" >&6
 
4645
 
 
4646
# Is the header present?
 
4647
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4648
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4649
cat >conftest.$ac_ext <<_ACEOF
 
4650
/* confdefs.h.  */
 
4651
_ACEOF
 
4652
cat confdefs.h >>conftest.$ac_ext
 
4653
cat >>conftest.$ac_ext <<_ACEOF
 
4654
/* end confdefs.h.  */
 
4655
#include <$ac_header>
 
4656
_ACEOF
 
4657
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4658
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4659
  ac_status=$?
 
4660
  grep -v '^ *+' conftest.er1 >conftest.err
 
4661
  rm -f conftest.er1
 
4662
  cat conftest.err >&5
 
4663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4664
  (exit $ac_status); } >/dev/null; then
 
4665
  if test -s conftest.err; then
 
4666
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4667
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4668
  else
 
4669
    ac_cpp_err=
 
4670
  fi
 
4671
else
 
4672
  ac_cpp_err=yes
 
4673
fi
 
4674
if test -z "$ac_cpp_err"; then
 
4675
  ac_header_preproc=yes
 
4676
else
 
4677
  echo "$as_me: failed program was:" >&5
 
4678
sed 's/^/| /' conftest.$ac_ext >&5
 
4679
 
 
4680
  ac_header_preproc=no
 
4681
fi
 
4682
rm -f conftest.err conftest.$ac_ext
 
4683
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4684
echo "${ECHO_T}$ac_header_preproc" >&6
 
4685
 
 
4686
# So?  What about this header?
 
4687
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4688
  yes:no: )
 
4689
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4690
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4691
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4692
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4693
    ac_header_preproc=yes
 
4694
    ;;
 
4695
  no:yes:* )
 
4696
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4697
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4698
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4699
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4700
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4701
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4702
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4703
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4704
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4705
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4706
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4707
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4708
    (
 
4709
      cat <<\_ASBOX
 
4710
## ------------------------------------------ ##
 
4711
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4712
## ------------------------------------------ ##
 
4713
_ASBOX
 
4714
    ) |
 
4715
      sed "s/^/$as_me: WARNING:     /" >&2
 
4716
    ;;
 
4717
esac
 
4718
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4719
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4720
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4722
else
 
4723
  eval "$as_ac_Header=\$ac_header_preproc"
 
4724
fi
 
4725
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4726
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4727
 
 
4728
fi
 
4729
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4730
  cat >>confdefs.h <<_ACEOF
 
4731
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4732
_ACEOF
 
4733
 
 
4734
fi
 
4735
 
 
4736
done
 
4737
 
 
4738
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
4739
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
4740
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
4741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4742
else
 
4743
  if test "$cross_compiling" = yes; then
 
4744
  ac_cv_func_malloc_0_nonnull=no
 
4745
else
 
4746
  cat >conftest.$ac_ext <<_ACEOF
 
4747
/* confdefs.h.  */
 
4748
_ACEOF
 
4749
cat confdefs.h >>conftest.$ac_ext
 
4750
cat >>conftest.$ac_ext <<_ACEOF
 
4751
/* end confdefs.h.  */
 
4752
#if STDC_HEADERS || HAVE_STDLIB_H
 
4753
# include <stdlib.h>
 
4754
#else
 
4755
char *malloc ();
 
4756
#endif
 
4757
 
 
4758
int
 
4759
main ()
 
4760
{
 
4761
exit (malloc (0) ? 0 : 1);
 
4762
  ;
 
4763
  return 0;
 
4764
}
 
4765
_ACEOF
 
4766
rm -f conftest$ac_exeext
 
4767
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4768
  (eval $ac_link) 2>&5
 
4769
  ac_status=$?
 
4770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4771
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4773
  (eval $ac_try) 2>&5
 
4774
  ac_status=$?
 
4775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4776
  (exit $ac_status); }; }; then
 
4777
  ac_cv_func_malloc_0_nonnull=yes
 
4778
else
 
4779
  echo "$as_me: program exited with status $ac_status" >&5
 
4780
echo "$as_me: failed program was:" >&5
 
4781
sed 's/^/| /' conftest.$ac_ext >&5
 
4782
 
 
4783
( exit $ac_status )
 
4784
ac_cv_func_malloc_0_nonnull=no
 
4785
fi
 
4786
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4787
fi
 
4788
fi
 
4789
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
4790
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
4791
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
4792
 
 
4793
cat >>confdefs.h <<\_ACEOF
 
4794
#define HAVE_MALLOC 1
 
4795
_ACEOF
 
4796
 
 
4797
else
 
4798
  cat >>confdefs.h <<\_ACEOF
 
4799
#define HAVE_MALLOC 0
 
4800
_ACEOF
 
4801
 
 
4802
   case $LIBOBJS in
 
4803
    "malloc.$ac_objext"   | \
 
4804
  *" malloc.$ac_objext"   | \
 
4805
    "malloc.$ac_objext "* | \
 
4806
  *" malloc.$ac_objext "* ) ;;
 
4807
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
 
4808
esac
 
4809
 
 
4810
 
 
4811
cat >>confdefs.h <<\_ACEOF
 
4812
#define malloc rpl_malloc
 
4813
_ACEOF
 
4814
 
 
4815
fi
 
4816
 
 
4817
 
 
4818
 
 
4819
 
 
4820
 
 
4821
for ac_header in sys/select.h sys/socket.h
 
4822
do
 
4823
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4824
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4825
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4826
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4827
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4828
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4829
fi
 
4830
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4831
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4832
else
 
4833
  # Is the header compilable?
 
4834
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4835
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4836
cat >conftest.$ac_ext <<_ACEOF
 
4837
/* confdefs.h.  */
 
4838
_ACEOF
 
4839
cat confdefs.h >>conftest.$ac_ext
 
4840
cat >>conftest.$ac_ext <<_ACEOF
 
4841
/* end confdefs.h.  */
 
4842
$ac_includes_default
 
4843
#include <$ac_header>
 
4844
_ACEOF
 
4845
rm -f conftest.$ac_objext
 
4846
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4847
  (eval $ac_compile) 2>conftest.er1
 
4848
  ac_status=$?
 
4849
  grep -v '^ *+' conftest.er1 >conftest.err
 
4850
  rm -f conftest.er1
 
4851
  cat conftest.err >&5
 
4852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4853
  (exit $ac_status); } &&
 
4854
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4856
  (eval $ac_try) 2>&5
 
4857
  ac_status=$?
 
4858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4859
  (exit $ac_status); }; } &&
 
4860
         { ac_try='test -s conftest.$ac_objext'
 
4861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4862
  (eval $ac_try) 2>&5
 
4863
  ac_status=$?
 
4864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4865
  (exit $ac_status); }; }; then
 
4866
  ac_header_compiler=yes
 
4867
else
 
4868
  echo "$as_me: failed program was:" >&5
 
4869
sed 's/^/| /' conftest.$ac_ext >&5
 
4870
 
 
4871
ac_header_compiler=no
 
4872
fi
 
4873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4874
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4875
echo "${ECHO_T}$ac_header_compiler" >&6
 
4876
 
 
4877
# Is the header present?
 
4878
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4879
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4880
cat >conftest.$ac_ext <<_ACEOF
 
4881
/* confdefs.h.  */
 
4882
_ACEOF
 
4883
cat confdefs.h >>conftest.$ac_ext
 
4884
cat >>conftest.$ac_ext <<_ACEOF
 
4885
/* end confdefs.h.  */
 
4886
#include <$ac_header>
 
4887
_ACEOF
 
4888
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4889
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4890
  ac_status=$?
 
4891
  grep -v '^ *+' conftest.er1 >conftest.err
 
4892
  rm -f conftest.er1
 
4893
  cat conftest.err >&5
 
4894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4895
  (exit $ac_status); } >/dev/null; then
 
4896
  if test -s conftest.err; then
 
4897
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4898
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4899
  else
 
4900
    ac_cpp_err=
 
4901
  fi
 
4902
else
 
4903
  ac_cpp_err=yes
 
4904
fi
 
4905
if test -z "$ac_cpp_err"; then
 
4906
  ac_header_preproc=yes
 
4907
else
 
4908
  echo "$as_me: failed program was:" >&5
 
4909
sed 's/^/| /' conftest.$ac_ext >&5
 
4910
 
 
4911
  ac_header_preproc=no
 
4912
fi
 
4913
rm -f conftest.err conftest.$ac_ext
 
4914
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4915
echo "${ECHO_T}$ac_header_preproc" >&6
 
4916
 
 
4917
# So?  What about this header?
 
4918
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4919
  yes:no: )
 
4920
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4921
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4922
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4923
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4924
    ac_header_preproc=yes
 
4925
    ;;
 
4926
  no:yes:* )
 
4927
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4928
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4929
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4930
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4931
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4932
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4933
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4934
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4935
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4936
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4937
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4938
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4939
    (
 
4940
      cat <<\_ASBOX
 
4941
## ------------------------------------------ ##
 
4942
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4943
## ------------------------------------------ ##
 
4944
_ASBOX
 
4945
    ) |
 
4946
      sed "s/^/$as_me: WARNING:     /" >&2
 
4947
    ;;
 
4948
esac
 
4949
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4950
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4951
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4953
else
 
4954
  eval "$as_ac_Header=\$ac_header_preproc"
 
4955
fi
 
4956
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4957
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4958
 
 
4959
fi
 
4960
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4961
  cat >>confdefs.h <<_ACEOF
 
4962
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4963
_ACEOF
 
4964
 
 
4965
fi
 
4966
 
 
4967
done
 
4968
 
 
4969
echo "$as_me:$LINENO: checking types of arguments for select" >&5
 
4970
echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
 
4971
if test "${ac_cv_func_select_args+set}" = set; then
 
4972
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4973
else
 
4974
  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
 
4975
 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
 
4976
  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
 
4977
   cat >conftest.$ac_ext <<_ACEOF
 
4978
/* confdefs.h.  */
 
4979
_ACEOF
 
4980
cat confdefs.h >>conftest.$ac_ext
 
4981
cat >>conftest.$ac_ext <<_ACEOF
 
4982
/* end confdefs.h.  */
 
4983
$ac_includes_default
 
4984
#if HAVE_SYS_SELECT_H
 
4985
# include <sys/select.h>
 
4986
#endif
 
4987
#if HAVE_SYS_SOCKET_H
 
4988
# include <sys/socket.h>
 
4989
#endif
 
4990
 
 
4991
int
 
4992
main ()
 
4993
{
 
4994
extern int select ($ac_arg1,
 
4995
                                            $ac_arg234, $ac_arg234, $ac_arg234,
 
4996
                                            $ac_arg5);
 
4997
  ;
 
4998
  return 0;
 
4999
}
 
5000
_ACEOF
 
5001
rm -f conftest.$ac_objext
 
5002
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5003
  (eval $ac_compile) 2>conftest.er1
 
5004
  ac_status=$?
 
5005
  grep -v '^ *+' conftest.er1 >conftest.err
 
5006
  rm -f conftest.er1
 
5007
  cat conftest.err >&5
 
5008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5009
  (exit $ac_status); } &&
 
5010
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5012
  (eval $ac_try) 2>&5
 
5013
  ac_status=$?
 
5014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5015
  (exit $ac_status); }; } &&
 
5016
         { ac_try='test -s conftest.$ac_objext'
 
5017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5018
  (eval $ac_try) 2>&5
 
5019
  ac_status=$?
 
5020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5021
  (exit $ac_status); }; }; then
 
5022
  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
 
5023
else
 
5024
  echo "$as_me: failed program was:" >&5
 
5025
sed 's/^/| /' conftest.$ac_ext >&5
 
5026
 
 
5027
fi
 
5028
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5029
  done
 
5030
 done
 
5031
done
 
5032
# Provide a safe default value.
 
5033
: ${ac_cv_func_select_args='int,int *,struct timeval *'}
 
5034
 
 
5035
fi
 
5036
echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
 
5037
echo "${ECHO_T}$ac_cv_func_select_args" >&6
 
5038
ac_save_IFS=$IFS; IFS=','
 
5039
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
 
5040
IFS=$ac_save_IFS
 
5041
shift
 
5042
 
 
5043
cat >>confdefs.h <<_ACEOF
 
5044
#define SELECT_TYPE_ARG1 $1
 
5045
_ACEOF
 
5046
 
 
5047
 
 
5048
cat >>confdefs.h <<_ACEOF
 
5049
#define SELECT_TYPE_ARG234 ($2)
 
5050
_ACEOF
 
5051
 
 
5052
 
 
5053
cat >>confdefs.h <<_ACEOF
 
5054
#define SELECT_TYPE_ARG5 ($3)
 
5055
_ACEOF
 
5056
 
 
5057
rm -f conftest*
 
5058
 
 
5059
echo "$as_me:$LINENO: checking for working strtod" >&5
 
5060
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
 
5061
if test "${ac_cv_func_strtod+set}" = set; then
 
5062
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5063
else
 
5064
  if test "$cross_compiling" = yes; then
 
5065
  ac_cv_func_strtod=no
 
5066
else
 
5067
  cat >conftest.$ac_ext <<_ACEOF
 
5068
/* confdefs.h.  */
 
5069
_ACEOF
 
5070
cat confdefs.h >>conftest.$ac_ext
 
5071
cat >>conftest.$ac_ext <<_ACEOF
 
5072
/* end confdefs.h.  */
 
5073
 
 
5074
double strtod ();
 
5075
int
 
5076
main()
 
5077
{
 
5078
  {
 
5079
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
 
5080
    char *string = " +69";
 
5081
    char *term;
 
5082
    double value;
 
5083
    value = strtod (string, &term);
 
5084
    if (value != 69 || term != (string + 4))
 
5085
      exit (1);
 
5086
  }
 
5087
 
 
5088
  {
 
5089
    /* Under Solaris 2.4, strtod returns the wrong value for the
 
5090
       terminating character under some conditions.  */
 
5091
    char *string = "NaN";
 
5092
    char *term;
 
5093
    strtod (string, &term);
 
5094
    if (term != string && *(term - 1) == 0)
 
5095
      exit (1);
 
5096
  }
 
5097
  exit (0);
 
5098
}
 
5099
 
 
5100
_ACEOF
 
5101
rm -f conftest$ac_exeext
 
5102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5103
  (eval $ac_link) 2>&5
 
5104
  ac_status=$?
 
5105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5106
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5108
  (eval $ac_try) 2>&5
 
5109
  ac_status=$?
 
5110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5111
  (exit $ac_status); }; }; then
 
5112
  ac_cv_func_strtod=yes
 
5113
else
 
5114
  echo "$as_me: program exited with status $ac_status" >&5
 
5115
echo "$as_me: failed program was:" >&5
 
5116
sed 's/^/| /' conftest.$ac_ext >&5
 
5117
 
 
5118
( exit $ac_status )
 
5119
ac_cv_func_strtod=no
 
5120
fi
 
5121
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5122
fi
 
5123
fi
 
5124
echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
 
5125
echo "${ECHO_T}$ac_cv_func_strtod" >&6
 
5126
if test $ac_cv_func_strtod = no; then
 
5127
  case $LIBOBJS in
 
5128
    "strtod.$ac_objext"   | \
 
5129
  *" strtod.$ac_objext"   | \
 
5130
    "strtod.$ac_objext "* | \
 
5131
  *" strtod.$ac_objext "* ) ;;
 
5132
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext" ;;
 
5133
esac
 
5134
 
 
5135
echo "$as_me:$LINENO: checking for pow" >&5
 
5136
echo $ECHO_N "checking for pow... $ECHO_C" >&6
 
5137
if test "${ac_cv_func_pow+set}" = set; then
 
5138
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5139
else
 
5140
  cat >conftest.$ac_ext <<_ACEOF
 
5141
/* confdefs.h.  */
 
5142
_ACEOF
 
5143
cat confdefs.h >>conftest.$ac_ext
 
5144
cat >>conftest.$ac_ext <<_ACEOF
 
5145
/* end confdefs.h.  */
 
5146
/* Define pow to an innocuous variant, in case <limits.h> declares pow.
 
5147
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5148
#define pow innocuous_pow
 
5149
 
 
5150
/* System header to define __stub macros and hopefully few prototypes,
 
5151
    which can conflict with char pow (); below.
 
5152
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5153
    <limits.h> exists even on freestanding compilers.  */
 
5154
 
 
5155
#ifdef __STDC__
 
5156
# include <limits.h>
 
5157
#else
 
5158
# include <assert.h>
 
5159
#endif
 
5160
 
 
5161
#undef pow
 
5162
 
 
5163
/* Override any gcc2 internal prototype to avoid an error.  */
 
5164
#ifdef __cplusplus
 
5165
extern "C"
 
5166
{
 
5167
#endif
 
5168
/* We use char because int might match the return type of a gcc2
 
5169
   builtin and then its argument prototype would still apply.  */
 
5170
char pow ();
 
5171
/* The GNU C library defines this for functions which it implements
 
5172
    to always fail with ENOSYS.  Some functions are actually named
 
5173
    something starting with __ and the normal name is an alias.  */
 
5174
#if defined (__stub_pow) || defined (__stub___pow)
 
5175
choke me
 
5176
#else
 
5177
char (*f) () = pow;
 
5178
#endif
 
5179
#ifdef __cplusplus
 
5180
}
 
5181
#endif
 
5182
 
 
5183
int
 
5184
main ()
 
5185
{
 
5186
return f != pow;
 
5187
  ;
 
5188
  return 0;
 
5189
}
 
5190
_ACEOF
 
5191
rm -f conftest.$ac_objext conftest$ac_exeext
 
5192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5193
  (eval $ac_link) 2>conftest.er1
 
5194
  ac_status=$?
 
5195
  grep -v '^ *+' conftest.er1 >conftest.err
 
5196
  rm -f conftest.er1
 
5197
  cat conftest.err >&5
 
5198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5199
  (exit $ac_status); } &&
 
5200
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5202
  (eval $ac_try) 2>&5
 
5203
  ac_status=$?
 
5204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5205
  (exit $ac_status); }; } &&
 
5206
         { ac_try='test -s conftest$ac_exeext'
 
5207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5208
  (eval $ac_try) 2>&5
 
5209
  ac_status=$?
 
5210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5211
  (exit $ac_status); }; }; then
 
5212
  ac_cv_func_pow=yes
 
5213
else
 
5214
  echo "$as_me: failed program was:" >&5
 
5215
sed 's/^/| /' conftest.$ac_ext >&5
 
5216
 
 
5217
ac_cv_func_pow=no
 
5218
fi
 
5219
rm -f conftest.err conftest.$ac_objext \
 
5220
      conftest$ac_exeext conftest.$ac_ext
 
5221
fi
 
5222
echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
 
5223
echo "${ECHO_T}$ac_cv_func_pow" >&6
 
5224
 
 
5225
if test $ac_cv_func_pow = no; then
 
5226
  echo "$as_me:$LINENO: checking for pow in -lm" >&5
 
5227
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
 
5228
if test "${ac_cv_lib_m_pow+set}" = set; then
 
5229
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5230
else
 
5231
  ac_check_lib_save_LIBS=$LIBS
 
5232
LIBS="-lm  $LIBS"
 
5233
cat >conftest.$ac_ext <<_ACEOF
 
5234
/* confdefs.h.  */
 
5235
_ACEOF
 
5236
cat confdefs.h >>conftest.$ac_ext
 
5237
cat >>conftest.$ac_ext <<_ACEOF
 
5238
/* end confdefs.h.  */
 
5239
 
 
5240
/* Override any gcc2 internal prototype to avoid an error.  */
 
5241
#ifdef __cplusplus
 
5242
extern "C"
 
5243
#endif
 
5244
/* We use char because int might match the return type of a gcc2
 
5245
   builtin and then its argument prototype would still apply.  */
 
5246
char pow ();
 
5247
int
 
5248
main ()
 
5249
{
 
5250
pow ();
 
5251
  ;
 
5252
  return 0;
 
5253
}
 
5254
_ACEOF
 
5255
rm -f conftest.$ac_objext conftest$ac_exeext
 
5256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5257
  (eval $ac_link) 2>conftest.er1
 
5258
  ac_status=$?
 
5259
  grep -v '^ *+' conftest.er1 >conftest.err
 
5260
  rm -f conftest.er1
 
5261
  cat conftest.err >&5
 
5262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5263
  (exit $ac_status); } &&
 
5264
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5266
  (eval $ac_try) 2>&5
 
5267
  ac_status=$?
 
5268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5269
  (exit $ac_status); }; } &&
 
5270
         { ac_try='test -s conftest$ac_exeext'
 
5271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5272
  (eval $ac_try) 2>&5
 
5273
  ac_status=$?
 
5274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5275
  (exit $ac_status); }; }; then
 
5276
  ac_cv_lib_m_pow=yes
 
5277
else
 
5278
  echo "$as_me: failed program was:" >&5
 
5279
sed 's/^/| /' conftest.$ac_ext >&5
 
5280
 
 
5281
ac_cv_lib_m_pow=no
 
5282
fi
 
5283
rm -f conftest.err conftest.$ac_objext \
 
5284
      conftest$ac_exeext conftest.$ac_ext
 
5285
LIBS=$ac_check_lib_save_LIBS
 
5286
fi
 
5287
echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
 
5288
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
 
5289
if test $ac_cv_lib_m_pow = yes; then
 
5290
  POW_LIB=-lm
 
5291
else
 
5292
  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
 
5293
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
 
5294
fi
 
5295
 
 
5296
fi
 
5297
 
 
5298
fi
 
5299
 
 
5300
 
 
5301
 
 
5302
 
 
5303
 
 
5304
for ac_func in alarm gethostbyname socket select
 
5305
do
 
5306
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5307
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5308
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5309
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5310
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5311
else
 
5312
  cat >conftest.$ac_ext <<_ACEOF
 
5313
/* confdefs.h.  */
 
5314
_ACEOF
 
5315
cat confdefs.h >>conftest.$ac_ext
 
5316
cat >>conftest.$ac_ext <<_ACEOF
 
5317
/* end confdefs.h.  */
 
5318
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5319
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5320
#define $ac_func innocuous_$ac_func
 
5321
 
 
5322
/* System header to define __stub macros and hopefully few prototypes,
 
5323
    which can conflict with char $ac_func (); below.
 
5324
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5325
    <limits.h> exists even on freestanding compilers.  */
 
5326
 
 
5327
#ifdef __STDC__
 
5328
# include <limits.h>
 
5329
#else
 
5330
# include <assert.h>
 
5331
#endif
 
5332
 
 
5333
#undef $ac_func
 
5334
 
 
5335
/* Override any gcc2 internal prototype to avoid an error.  */
 
5336
#ifdef __cplusplus
 
5337
extern "C"
 
5338
{
 
5339
#endif
 
5340
/* We use char because int might match the return type of a gcc2
 
5341
   builtin and then its argument prototype would still apply.  */
 
5342
char $ac_func ();
 
5343
/* The GNU C library defines this for functions which it implements
 
5344
    to always fail with ENOSYS.  Some functions are actually named
 
5345
    something starting with __ and the normal name is an alias.  */
 
5346
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5347
choke me
 
5348
#else
 
5349
char (*f) () = $ac_func;
 
5350
#endif
 
5351
#ifdef __cplusplus
 
5352
}
 
5353
#endif
 
5354
 
 
5355
int
 
5356
main ()
 
5357
{
 
5358
return f != $ac_func;
 
5359
  ;
 
5360
  return 0;
 
5361
}
 
5362
_ACEOF
 
5363
rm -f conftest.$ac_objext conftest$ac_exeext
 
5364
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5365
  (eval $ac_link) 2>conftest.er1
 
5366
  ac_status=$?
 
5367
  grep -v '^ *+' conftest.er1 >conftest.err
 
5368
  rm -f conftest.er1
 
5369
  cat conftest.err >&5
 
5370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5371
  (exit $ac_status); } &&
 
5372
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5374
  (eval $ac_try) 2>&5
 
5375
  ac_status=$?
 
5376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5377
  (exit $ac_status); }; } &&
 
5378
         { ac_try='test -s conftest$ac_exeext'
 
5379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5380
  (eval $ac_try) 2>&5
 
5381
  ac_status=$?
 
5382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5383
  (exit $ac_status); }; }; then
 
5384
  eval "$as_ac_var=yes"
 
5385
else
 
5386
  echo "$as_me: failed program was:" >&5
 
5387
sed 's/^/| /' conftest.$ac_ext >&5
 
5388
 
 
5389
eval "$as_ac_var=no"
 
5390
fi
 
5391
rm -f conftest.err conftest.$ac_objext \
 
5392
      conftest$ac_exeext conftest.$ac_ext
 
5393
fi
 
5394
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5395
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5396
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5397
  cat >>confdefs.h <<_ACEOF
 
5398
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5399
_ACEOF
 
5400
 
 
5401
fi
 
5402
done
 
5403
 
 
5404
 
 
5405
 
 
5406
 
 
5407
 
 
5408
 
 
5409
for ac_func in memmove memset strchr strdup strerror
 
5410
do
 
5411
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5412
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5413
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5414
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5416
else
 
5417
  cat >conftest.$ac_ext <<_ACEOF
 
5418
/* confdefs.h.  */
 
5419
_ACEOF
 
5420
cat confdefs.h >>conftest.$ac_ext
 
5421
cat >>conftest.$ac_ext <<_ACEOF
 
5422
/* end confdefs.h.  */
 
5423
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5424
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5425
#define $ac_func innocuous_$ac_func
 
5426
 
 
5427
/* System header to define __stub macros and hopefully few prototypes,
 
5428
    which can conflict with char $ac_func (); below.
 
5429
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5430
    <limits.h> exists even on freestanding compilers.  */
 
5431
 
 
5432
#ifdef __STDC__
 
5433
# include <limits.h>
 
5434
#else
 
5435
# include <assert.h>
 
5436
#endif
 
5437
 
 
5438
#undef $ac_func
 
5439
 
 
5440
/* Override any gcc2 internal prototype to avoid an error.  */
 
5441
#ifdef __cplusplus
 
5442
extern "C"
 
5443
{
 
5444
#endif
 
5445
/* We use char because int might match the return type of a gcc2
 
5446
   builtin and then its argument prototype would still apply.  */
 
5447
char $ac_func ();
 
5448
/* The GNU C library defines this for functions which it implements
 
5449
    to always fail with ENOSYS.  Some functions are actually named
 
5450
    something starting with __ and the normal name is an alias.  */
 
5451
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5452
choke me
 
5453
#else
 
5454
char (*f) () = $ac_func;
 
5455
#endif
 
5456
#ifdef __cplusplus
 
5457
}
 
5458
#endif
 
5459
 
 
5460
int
 
5461
main ()
 
5462
{
 
5463
return f != $ac_func;
 
5464
  ;
 
5465
  return 0;
 
5466
}
 
5467
_ACEOF
 
5468
rm -f conftest.$ac_objext conftest$ac_exeext
 
5469
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5470
  (eval $ac_link) 2>conftest.er1
 
5471
  ac_status=$?
 
5472
  grep -v '^ *+' conftest.er1 >conftest.err
 
5473
  rm -f conftest.er1
 
5474
  cat conftest.err >&5
 
5475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5476
  (exit $ac_status); } &&
 
5477
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5478
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5479
  (eval $ac_try) 2>&5
 
5480
  ac_status=$?
 
5481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5482
  (exit $ac_status); }; } &&
 
5483
         { ac_try='test -s conftest$ac_exeext'
 
5484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5485
  (eval $ac_try) 2>&5
 
5486
  ac_status=$?
 
5487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5488
  (exit $ac_status); }; }; then
 
5489
  eval "$as_ac_var=yes"
 
5490
else
 
5491
  echo "$as_me: failed program was:" >&5
 
5492
sed 's/^/| /' conftest.$ac_ext >&5
 
5493
 
 
5494
eval "$as_ac_var=no"
 
5495
fi
 
5496
rm -f conftest.err conftest.$ac_objext \
 
5497
      conftest$ac_exeext conftest.$ac_ext
 
5498
fi
 
5499
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5500
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5501
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5502
  cat >>confdefs.h <<_ACEOF
 
5503
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5504
_ACEOF
 
5505
 
 
5506
fi
 
5507
done
 
5508
 
 
5509
 
 
5510
for ac_func in getpassphrase
 
5511
do
 
5512
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5513
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5514
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5515
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5517
else
 
5518
  cat >conftest.$ac_ext <<_ACEOF
 
5519
/* confdefs.h.  */
 
5520
_ACEOF
 
5521
cat confdefs.h >>conftest.$ac_ext
 
5522
cat >>conftest.$ac_ext <<_ACEOF
 
5523
/* end confdefs.h.  */
 
5524
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5525
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5526
#define $ac_func innocuous_$ac_func
 
5527
 
 
5528
/* System header to define __stub macros and hopefully few prototypes,
 
5529
    which can conflict with char $ac_func (); below.
 
5530
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5531
    <limits.h> exists even on freestanding compilers.  */
 
5532
 
 
5533
#ifdef __STDC__
 
5534
# include <limits.h>
 
5535
#else
 
5536
# include <assert.h>
 
5537
#endif
 
5538
 
 
5539
#undef $ac_func
 
5540
 
 
5541
/* Override any gcc2 internal prototype to avoid an error.  */
 
5542
#ifdef __cplusplus
 
5543
extern "C"
 
5544
{
 
5545
#endif
 
5546
/* We use char because int might match the return type of a gcc2
 
5547
   builtin and then its argument prototype would still apply.  */
 
5548
char $ac_func ();
 
5549
/* The GNU C library defines this for functions which it implements
 
5550
    to always fail with ENOSYS.  Some functions are actually named
 
5551
    something starting with __ and the normal name is an alias.  */
 
5552
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5553
choke me
 
5554
#else
 
5555
char (*f) () = $ac_func;
 
5556
#endif
 
5557
#ifdef __cplusplus
 
5558
}
 
5559
#endif
 
5560
 
 
5561
int
 
5562
main ()
 
5563
{
 
5564
return f != $ac_func;
 
5565
  ;
 
5566
  return 0;
 
5567
}
 
5568
_ACEOF
 
5569
rm -f conftest.$ac_objext conftest$ac_exeext
 
5570
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5571
  (eval $ac_link) 2>conftest.er1
 
5572
  ac_status=$?
 
5573
  grep -v '^ *+' conftest.er1 >conftest.err
 
5574
  rm -f conftest.er1
 
5575
  cat conftest.err >&5
 
5576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5577
  (exit $ac_status); } &&
 
5578
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5579
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5580
  (eval $ac_try) 2>&5
 
5581
  ac_status=$?
 
5582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5583
  (exit $ac_status); }; } &&
 
5584
         { ac_try='test -s conftest$ac_exeext'
 
5585
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5586
  (eval $ac_try) 2>&5
 
5587
  ac_status=$?
 
5588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5589
  (exit $ac_status); }; }; then
 
5590
  eval "$as_ac_var=yes"
 
5591
else
 
5592
  echo "$as_me: failed program was:" >&5
 
5593
sed 's/^/| /' conftest.$ac_ext >&5
 
5594
 
 
5595
eval "$as_ac_var=no"
 
5596
fi
 
5597
rm -f conftest.err conftest.$ac_objext \
 
5598
      conftest$ac_exeext conftest.$ac_ext
 
5599
fi
 
5600
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5601
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5602
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5603
  cat >>confdefs.h <<_ACEOF
 
5604
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5605
_ACEOF
 
5606
 
 
5607
fi
 
5608
done
 
5609
 
 
5610
 
 
5611
CFLAGS="$CFLAGS -fno-strict-aliasing"
 
5612
 
 
5613
# Check whether --enable-shared or --disable-shared was given.
 
5614
if test "${enable_shared+set}" = set; then
 
5615
  enableval="$enable_shared"
 
5616
  p=${PACKAGE-default}
 
5617
    case $enableval in
 
5618
    yes) enable_shared=yes ;;
 
5619
    no) enable_shared=no ;;
 
5620
    *)
 
5621
      enable_shared=no
 
5622
      # Look at the argument we got.  We use all the common list separators.
 
5623
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5624
      for pkg in $enableval; do
 
5625
        IFS="$lt_save_ifs"
 
5626
        if test "X$pkg" = "X$p"; then
 
5627
          enable_shared=yes
 
5628
        fi
 
5629
      done
 
5630
      IFS="$lt_save_ifs"
 
5631
      ;;
 
5632
    esac
 
5633
else
 
5634
  enable_shared=yes
 
5635
fi;
 
5636
 
 
5637
# Check whether --enable-static or --disable-static was given.
 
5638
if test "${enable_static+set}" = set; then
 
5639
  enableval="$enable_static"
 
5640
  p=${PACKAGE-default}
 
5641
    case $enableval in
 
5642
    yes) enable_static=yes ;;
 
5643
    no) enable_static=no ;;
 
5644
    *)
 
5645
     enable_static=no
 
5646
      # Look at the argument we got.  We use all the common list separators.
 
5647
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5648
      for pkg in $enableval; do
 
5649
        IFS="$lt_save_ifs"
 
5650
        if test "X$pkg" = "X$p"; then
 
5651
          enable_static=yes
 
5652
        fi
 
5653
      done
 
5654
      IFS="$lt_save_ifs"
 
5655
      ;;
 
5656
    esac
 
5657
else
 
5658
  enable_static=yes
 
5659
fi;
 
5660
 
 
5661
# Check whether --enable-fast-install or --disable-fast-install was given.
 
5662
if test "${enable_fast_install+set}" = set; then
 
5663
  enableval="$enable_fast_install"
 
5664
  p=${PACKAGE-default}
 
5665
    case $enableval in
 
5666
    yes) enable_fast_install=yes ;;
 
5667
    no) enable_fast_install=no ;;
 
5668
    *)
 
5669
      enable_fast_install=no
 
5670
      # Look at the argument we got.  We use all the common list separators.
 
5671
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5672
      for pkg in $enableval; do
 
5673
        IFS="$lt_save_ifs"
 
5674
        if test "X$pkg" = "X$p"; then
 
5675
          enable_fast_install=yes
 
5676
        fi
 
5677
      done
 
5678
      IFS="$lt_save_ifs"
 
5679
      ;;
 
5680
    esac
 
5681
else
 
5682
  enable_fast_install=yes
 
5683
fi;
 
5684
 
 
5685
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
5686
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
5687
if test "${lt_cv_path_SED+set}" = set; then
 
5688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5689
else
 
5690
  # Loop through the user's path and test for sed and gsed.
 
5691
# Then use that list of sed's as ones to test for truncation.
 
5692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5693
for as_dir in $PATH
 
5694
do
 
5695
  IFS=$as_save_IFS
 
5696
  test -z "$as_dir" && as_dir=.
 
5697
  for lt_ac_prog in sed gsed; do
 
5698
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5699
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
5700
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
5701
      fi
 
5702
    done
 
5703
  done
 
5704
done
 
5705
lt_ac_max=0
 
5706
lt_ac_count=0
 
5707
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
5708
# along with /bin/sed that truncates output.
 
5709
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
5710
  test ! -f $lt_ac_sed && break
 
5711
  cat /dev/null > conftest.in
 
5712
  lt_ac_count=0
 
5713
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
5714
  # Check for GNU sed and select it if it is found.
 
5715
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
5716
    lt_cv_path_SED=$lt_ac_sed
 
5717
    break
 
5718
  fi
 
5719
  while true; do
 
5720
    cat conftest.in conftest.in >conftest.tmp
 
5721
    mv conftest.tmp conftest.in
 
5722
    cp conftest.in conftest.nl
 
5723
    echo >>conftest.nl
 
5724
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
5725
    cmp -s conftest.out conftest.nl || break
 
5726
    # 10000 chars as input seems more than enough
 
5727
    test $lt_ac_count -gt 10 && break
 
5728
    lt_ac_count=`expr $lt_ac_count + 1`
 
5729
    if test $lt_ac_count -gt $lt_ac_max; then
 
5730
      lt_ac_max=$lt_ac_count
 
5731
      lt_cv_path_SED=$lt_ac_sed
 
5732
    fi
 
5733
  done
 
5734
done
 
5735
SED=$lt_cv_path_SED
 
5736
 
 
5737
fi
 
5738
 
 
5739
echo "$as_me:$LINENO: result: $SED" >&5
 
5740
echo "${ECHO_T}$SED" >&6
 
5741
 
 
5742
 
 
5743
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
5744
if test "${with_gnu_ld+set}" = set; then
 
5745
  withval="$with_gnu_ld"
 
5746
  test "$withval" = no || with_gnu_ld=yes
 
5747
else
 
5748
  with_gnu_ld=no
 
5749
fi;
 
5750
ac_prog=ld
 
5751
if test "$GCC" = yes; then
 
5752
  # Check if gcc -print-prog-name=ld gives a path.
 
5753
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
5754
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
5755
  case $host in
 
5756
  *-*-mingw*)
 
5757
    # gcc leaves a trailing carriage return which upsets mingw
 
5758
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5759
  *)
 
5760
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5761
  esac
 
5762
  case $ac_prog in
 
5763
    # Accept absolute paths.
 
5764
    [\\/]* | ?:[\\/]*)
 
5765
      re_direlt='/[^/][^/]*/\.\./'
 
5766
      # Canonicalize the pathname of ld
 
5767
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
5768
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
5769
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5770
      done
 
5771
      test -z "$LD" && LD="$ac_prog"
 
5772
      ;;
 
5773
  "")
 
5774
    # If it fails, then pretend we aren't using GCC.
 
5775
    ac_prog=ld
 
5776
    ;;
 
5777
  *)
 
5778
    # If it is relative, then search for the first ld in PATH.
 
5779
    with_gnu_ld=unknown
 
5780
    ;;
 
5781
  esac
 
5782
elif test "$with_gnu_ld" = yes; then
 
5783
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
5784
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
5785
else
 
5786
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
5787
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
5788
fi
 
5789
if test "${lt_cv_path_LD+set}" = set; then
 
5790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5791
else
 
5792
  if test -z "$LD"; then
 
5793
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5794
  for ac_dir in $PATH; do
 
5795
    IFS="$lt_save_ifs"
 
5796
    test -z "$ac_dir" && ac_dir=.
 
5797
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5798
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5799
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5800
      # but apparently some GNU ld's only accept -v.
 
5801
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5802
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5803
      *GNU* | *'with BFD'*)
 
5804
        test "$with_gnu_ld" != no && break
 
5805
        ;;
 
5806
      *)
 
5807
        test "$with_gnu_ld" != yes && break
 
5808
        ;;
 
5809
      esac
 
5810
    fi
 
5811
  done
 
5812
  IFS="$lt_save_ifs"
 
5813
else
 
5814
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5815
fi
 
5816
fi
 
5817
 
 
5818
LD="$lt_cv_path_LD"
 
5819
if test -n "$LD"; then
 
5820
  echo "$as_me:$LINENO: result: $LD" >&5
 
5821
echo "${ECHO_T}$LD" >&6
 
5822
else
 
5823
  echo "$as_me:$LINENO: result: no" >&5
 
5824
echo "${ECHO_T}no" >&6
 
5825
fi
 
5826
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
5827
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
5828
   { (exit 1); exit 1; }; }
 
5829
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
5830
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
5831
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
5832
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5833
else
 
5834
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
5835
case `$LD -v 2>&1 </dev/null` in
 
5836
*GNU* | *'with BFD'*)
 
5837
  lt_cv_prog_gnu_ld=yes
 
5838
  ;;
 
5839
*)
 
5840
  lt_cv_prog_gnu_ld=no
 
5841
  ;;
 
5842
esac
 
5843
fi
 
5844
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
5845
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
5846
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5847
 
 
5848
 
 
5849
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5850
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
5851
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5853
else
 
5854
  lt_cv_ld_reload_flag='-r'
 
5855
fi
 
5856
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5857
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
5858
reload_flag=$lt_cv_ld_reload_flag
 
5859
case $reload_flag in
 
5860
"" | " "*) ;;
 
5861
*) reload_flag=" $reload_flag" ;;
 
5862
esac
 
5863
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5864
 
 
5865
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
5866
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
5867
if test "${lt_cv_path_NM+set}" = set; then
 
5868
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5869
else
 
5870
  if test -n "$NM"; then
 
5871
  # Let the user override the test.
 
5872
  lt_cv_path_NM="$NM"
 
5873
else
 
5874
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5875
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
5876
    IFS="$lt_save_ifs"
 
5877
    test -z "$ac_dir" && ac_dir=.
 
5878
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
5879
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5880
      # Check to see if the nm accepts a BSD-compat flag.
 
5881
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5882
      #   nm: unknown option "B" ignored
 
5883
      # Tru64's nm complains that /dev/null is an invalid object file
 
5884
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5885
      */dev/null* | *'Invalid file or object type'*)
 
5886
        lt_cv_path_NM="$tmp_nm -B"
 
5887
        break
 
5888
        ;;
 
5889
      *)
 
5890
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5891
        */dev/null*)
 
5892
          lt_cv_path_NM="$tmp_nm -p"
 
5893
          break
 
5894
          ;;
 
5895
        *)
 
5896
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5897
          continue # so that we can try to find one that supports BSD flags
 
5898
          ;;
 
5899
        esac
 
5900
      esac
 
5901
    fi
 
5902
  done
 
5903
  IFS="$lt_save_ifs"
 
5904
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5905
fi
 
5906
fi
 
5907
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
5908
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
5909
NM="$lt_cv_path_NM"
 
5910
 
 
5911
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
5912
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
5913
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
5914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5915
else
 
5916
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5917
lt_cv_file_magic_test_file=
 
5918
lt_cv_deplibs_check_method='unknown'
 
5919
# Need to set the preceding variable on all platforms that support
 
5920
# interlibrary dependencies.
 
5921
# 'none' -- dependencies not supported.
 
5922
# `unknown' -- same as none, but documents that we really don't know.
 
5923
# 'pass_all' -- all dependencies passed with no checks.
 
5924
# 'test_compile' -- check by making test program.
 
5925
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5926
# which responds to the $file_magic_cmd with a given extended regex.
 
5927
# If you have `file' or equivalent on your system and you're not sure
 
5928
# whether `pass_all' will *always* work, you probably want this one.
 
5929
 
 
5930
case $host_os in
 
5931
aix4* | aix5*)
 
5932
  lt_cv_deplibs_check_method=pass_all
 
5933
  ;;
 
5934
 
 
5935
beos*)
 
5936
  lt_cv_deplibs_check_method=pass_all
 
5937
  ;;
 
5938
 
 
5939
bsdi4*)
 
5940
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5941
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5942
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5943
  ;;
 
5944
 
 
5945
cygwin*)
 
5946
  # func_win32_libid is a shell function defined in ltmain.sh
 
5947
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5948
  lt_cv_file_magic_cmd='func_win32_libid'
 
5949
  ;;
 
5950
 
 
5951
mingw* | pw32*)
 
5952
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5953
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
5954
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5955
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5956
  ;;
 
5957
 
 
5958
darwin* | rhapsody*)
 
5959
  lt_cv_deplibs_check_method=pass_all
 
5960
  ;;
 
5961
 
 
5962
freebsd* | kfreebsd*-gnu)
 
5963
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5964
    case $host_cpu in
 
5965
    i*86 )
 
5966
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5967
      # Let's accept both of them until this is cleared up.
 
5968
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
5969
      lt_cv_file_magic_cmd=/usr/bin/file
 
5970
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5971
      ;;
 
5972
    esac
 
5973
  else
 
5974
    lt_cv_deplibs_check_method=pass_all
 
5975
  fi
 
5976
  ;;
 
5977
 
 
5978
gnu*)
 
5979
  lt_cv_deplibs_check_method=pass_all
 
5980
  ;;
 
5981
 
 
5982
hpux10.20* | hpux11*)
 
5983
  lt_cv_file_magic_cmd=/usr/bin/file
 
5984
  case "$host_cpu" in
 
5985
  ia64*)
 
5986
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5987
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5988
    ;;
 
5989
  hppa*64*)
 
5990
    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]'
 
5991
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5992
    ;;
 
5993
  *)
 
5994
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5995
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5996
    ;;
 
5997
  esac
 
5998
  ;;
 
5999
 
 
6000
irix5* | irix6* | nonstopux*)
 
6001
  case $LD in
 
6002
  *-32|*"-32 ") libmagic=32-bit;;
 
6003
  *-n32|*"-n32 ") libmagic=N32;;
 
6004
  *-64|*"-64 ") libmagic=64-bit;;
 
6005
  *) libmagic=never-match;;
 
6006
  esac
 
6007
  lt_cv_deplibs_check_method=pass_all
 
6008
  ;;
 
6009
 
 
6010
# This must be Linux ELF.
 
6011
linux*)
 
6012
  lt_cv_deplibs_check_method=pass_all
 
6013
  ;;
 
6014
 
 
6015
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6016
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
6017
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6018
  else
 
6019
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6020
  fi
 
6021
  ;;
 
6022
 
 
6023
newos6*)
 
6024
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6025
  lt_cv_file_magic_cmd=/usr/bin/file
 
6026
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6027
  ;;
 
6028
 
 
6029
nto-qnx*)
 
6030
  lt_cv_deplibs_check_method=unknown
 
6031
  ;;
 
6032
 
 
6033
openbsd*)
 
6034
  lt_cv_file_magic_cmd=/usr/bin/file
 
6035
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6036
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6037
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
6038
  else
 
6039
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
6040
  fi
 
6041
  ;;
 
6042
 
 
6043
osf3* | osf4* | osf5*)
 
6044
  lt_cv_deplibs_check_method=pass_all
 
6045
  ;;
 
6046
 
 
6047
sco3.2v5*)
 
6048
  lt_cv_deplibs_check_method=pass_all
 
6049
  ;;
 
6050
 
 
6051
solaris*)
 
6052
  lt_cv_deplibs_check_method=pass_all
 
6053
  ;;
 
6054
 
 
6055
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6056
  case $host_vendor in
 
6057
  motorola)
 
6058
    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]'
 
6059
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6060
    ;;
 
6061
  ncr)
 
6062
    lt_cv_deplibs_check_method=pass_all
 
6063
    ;;
 
6064
  sequent)
 
6065
    lt_cv_file_magic_cmd='/bin/file'
 
6066
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6067
    ;;
 
6068
  sni)
 
6069
    lt_cv_file_magic_cmd='/bin/file'
 
6070
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6071
    lt_cv_file_magic_test_file=/lib/libc.so
 
6072
    ;;
 
6073
  siemens)
 
6074
    lt_cv_deplibs_check_method=pass_all
 
6075
    ;;
 
6076
  esac
 
6077
  ;;
 
6078
 
 
6079
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
6080
  lt_cv_deplibs_check_method=pass_all
 
6081
  ;;
 
6082
esac
 
6083
 
 
6084
fi
 
6085
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
6086
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
6087
file_magic_cmd=$lt_cv_file_magic_cmd
 
6088
deplibs_check_method=$lt_cv_deplibs_check_method
 
6089
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6090
 
 
6091
 
 
6092
 
 
6093
 
 
6094
# If no C compiler was specified, use CC.
 
6095
LTCC=${LTCC-"$CC"}
 
6096
 
 
6097
# Allow CC to be a program name with arguments.
 
6098
compiler=$CC
 
6099
 
 
6100
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6101
if test "${enable_libtool_lock+set}" = set; then
 
6102
  enableval="$enable_libtool_lock"
 
6103
 
 
6104
fi;
 
6105
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6106
 
 
6107
# Some flags need to be propagated to the compiler or linker for good
 
6108
# libtool support.
 
6109
case $host in
 
6110
ia64-*-hpux*)
 
6111
  # Find out which ABI we are using.
 
6112
  echo 'int i;' > conftest.$ac_ext
 
6113
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6114
  (eval $ac_compile) 2>&5
 
6115
  ac_status=$?
 
6116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6117
  (exit $ac_status); }; then
 
6118
    case `/usr/bin/file conftest.$ac_objext` in
 
6119
    *ELF-32*)
 
6120
      HPUX_IA64_MODE="32"
 
6121
      ;;
 
6122
    *ELF-64*)
 
6123
      HPUX_IA64_MODE="64"
 
6124
      ;;
 
6125
    esac
 
6126
  fi
 
6127
  rm -rf conftest*
 
6128
  ;;
 
6129
*-*-irix6*)
 
6130
  # Find out which ABI we are using.
 
6131
  echo '#line 6131 "configure"' > conftest.$ac_ext
 
6132
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6133
  (eval $ac_compile) 2>&5
 
6134
  ac_status=$?
 
6135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6136
  (exit $ac_status); }; then
 
6137
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
6138
    case `/usr/bin/file conftest.$ac_objext` in
 
6139
    *32-bit*)
 
6140
      LD="${LD-ld} -melf32bsmip"
 
6141
      ;;
 
6142
    *N32*)
 
6143
      LD="${LD-ld} -melf32bmipn32"
 
6144
      ;;
 
6145
    *64-bit*)
 
6146
      LD="${LD-ld} -melf64bmip"
 
6147
      ;;
 
6148
    esac
 
6149
   else
 
6150
    case `/usr/bin/file conftest.$ac_objext` in
 
6151
    *32-bit*)
 
6152
      LD="${LD-ld} -32"
 
6153
      ;;
 
6154
    *N32*)
 
6155
      LD="${LD-ld} -n32"
 
6156
      ;;
 
6157
    *64-bit*)
 
6158
      LD="${LD-ld} -64"
 
6159
      ;;
 
6160
    esac
 
6161
   fi
 
6162
  fi
 
6163
  rm -rf conftest*
 
6164
  ;;
 
6165
 
 
6166
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
6167
  # Find out which ABI we are using.
 
6168
  echo 'int i;' > conftest.$ac_ext
 
6169
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6170
  (eval $ac_compile) 2>&5
 
6171
  ac_status=$?
 
6172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6173
  (exit $ac_status); }; then
 
6174
    case "`/usr/bin/file conftest.o`" in
 
6175
    *32-bit*)
 
6176
      case $host in
 
6177
        x86_64-*linux*)
 
6178
          LD="${LD-ld} -m elf_i386"
 
6179
          ;;
 
6180
        ppc64-*linux*|powerpc64-*linux*)
 
6181
          LD="${LD-ld} -m elf32ppclinux"
 
6182
          ;;
 
6183
        s390x-*linux*)
 
6184
          LD="${LD-ld} -m elf_s390"
 
6185
          ;;
 
6186
        sparc64-*linux*)
 
6187
          LD="${LD-ld} -m elf32_sparc"
 
6188
          ;;
 
6189
      esac
 
6190
      ;;
 
6191
    *64-bit*)
 
6192
      case $host in
 
6193
        x86_64-*linux*)
 
6194
          LD="${LD-ld} -m elf_x86_64"
 
6195
          ;;
 
6196
        ppc*-*linux*|powerpc*-*linux*)
 
6197
          LD="${LD-ld} -m elf64ppc"
 
6198
          ;;
 
6199
        s390*-*linux*)
 
6200
          LD="${LD-ld} -m elf64_s390"
 
6201
          ;;
 
6202
        sparc*-*linux*)
 
6203
          LD="${LD-ld} -m elf64_sparc"
 
6204
          ;;
 
6205
      esac
 
6206
      ;;
 
6207
    esac
 
6208
  fi
 
6209
  rm -rf conftest*
 
6210
  ;;
 
6211
 
 
6212
*-*-sco3.2v5*)
 
6213
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6214
  SAVE_CFLAGS="$CFLAGS"
 
6215
  CFLAGS="$CFLAGS -belf"
 
6216
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
6217
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
6218
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
6219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6220
else
 
6221
  ac_ext=c
 
6222
ac_cpp='$CPP $CPPFLAGS'
 
6223
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6224
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6225
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6226
 
 
6227
     cat >conftest.$ac_ext <<_ACEOF
 
6228
/* confdefs.h.  */
 
6229
_ACEOF
 
6230
cat confdefs.h >>conftest.$ac_ext
 
6231
cat >>conftest.$ac_ext <<_ACEOF
 
6232
/* end confdefs.h.  */
 
6233
 
 
6234
int
 
6235
main ()
 
6236
{
 
6237
 
 
6238
  ;
 
6239
  return 0;
 
6240
}
 
6241
_ACEOF
 
6242
rm -f conftest.$ac_objext conftest$ac_exeext
 
6243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6244
  (eval $ac_link) 2>conftest.er1
 
6245
  ac_status=$?
 
6246
  grep -v '^ *+' conftest.er1 >conftest.err
 
6247
  rm -f conftest.er1
 
6248
  cat conftest.err >&5
 
6249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6250
  (exit $ac_status); } &&
 
6251
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6253
  (eval $ac_try) 2>&5
 
6254
  ac_status=$?
 
6255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6256
  (exit $ac_status); }; } &&
 
6257
         { ac_try='test -s conftest$ac_exeext'
 
6258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6259
  (eval $ac_try) 2>&5
 
6260
  ac_status=$?
 
6261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6262
  (exit $ac_status); }; }; then
 
6263
  lt_cv_cc_needs_belf=yes
 
6264
else
 
6265
  echo "$as_me: failed program was:" >&5
 
6266
sed 's/^/| /' conftest.$ac_ext >&5
 
6267
 
 
6268
lt_cv_cc_needs_belf=no
 
6269
fi
 
6270
rm -f conftest.err conftest.$ac_objext \
 
6271
      conftest$ac_exeext conftest.$ac_ext
 
6272
     ac_ext=c
 
6273
ac_cpp='$CPP $CPPFLAGS'
 
6274
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6275
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6276
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6277
 
 
6278
fi
 
6279
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
6280
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
6281
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6282
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6283
    CFLAGS="$SAVE_CFLAGS"
 
6284
  fi
 
6285
  ;;
 
6286
 
 
6287
esac
 
6288
 
 
6289
need_locks="$enable_libtool_lock"
 
6290
 
 
6291
 
 
6292
 
 
6293
for ac_header in dlfcn.h
 
6294
do
 
6295
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6296
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6297
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6298
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6299
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6300
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6301
fi
 
6302
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6303
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6304
else
 
6305
  # Is the header compilable?
 
6306
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6307
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6308
cat >conftest.$ac_ext <<_ACEOF
 
6309
/* confdefs.h.  */
 
6310
_ACEOF
 
6311
cat confdefs.h >>conftest.$ac_ext
 
6312
cat >>conftest.$ac_ext <<_ACEOF
 
6313
/* end confdefs.h.  */
 
6314
$ac_includes_default
 
6315
#include <$ac_header>
 
6316
_ACEOF
 
6317
rm -f conftest.$ac_objext
 
6318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6319
  (eval $ac_compile) 2>conftest.er1
 
6320
  ac_status=$?
 
6321
  grep -v '^ *+' conftest.er1 >conftest.err
 
6322
  rm -f conftest.er1
 
6323
  cat conftest.err >&5
 
6324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6325
  (exit $ac_status); } &&
 
6326
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6328
  (eval $ac_try) 2>&5
 
6329
  ac_status=$?
 
6330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6331
  (exit $ac_status); }; } &&
 
6332
         { ac_try='test -s conftest.$ac_objext'
 
6333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6334
  (eval $ac_try) 2>&5
 
6335
  ac_status=$?
 
6336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6337
  (exit $ac_status); }; }; then
 
6338
  ac_header_compiler=yes
 
6339
else
 
6340
  echo "$as_me: failed program was:" >&5
 
6341
sed 's/^/| /' conftest.$ac_ext >&5
 
6342
 
 
6343
ac_header_compiler=no
 
6344
fi
 
6345
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6346
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6347
echo "${ECHO_T}$ac_header_compiler" >&6
 
6348
 
 
6349
# Is the header present?
 
6350
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6351
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6352
cat >conftest.$ac_ext <<_ACEOF
 
6353
/* confdefs.h.  */
 
6354
_ACEOF
 
6355
cat confdefs.h >>conftest.$ac_ext
 
6356
cat >>conftest.$ac_ext <<_ACEOF
 
6357
/* end confdefs.h.  */
 
6358
#include <$ac_header>
 
6359
_ACEOF
 
6360
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6361
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6362
  ac_status=$?
 
6363
  grep -v '^ *+' conftest.er1 >conftest.err
 
6364
  rm -f conftest.er1
 
6365
  cat conftest.err >&5
 
6366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6367
  (exit $ac_status); } >/dev/null; then
 
6368
  if test -s conftest.err; then
 
6369
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6370
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6371
  else
 
6372
    ac_cpp_err=
 
6373
  fi
 
6374
else
 
6375
  ac_cpp_err=yes
 
6376
fi
 
6377
if test -z "$ac_cpp_err"; then
 
6378
  ac_header_preproc=yes
 
6379
else
 
6380
  echo "$as_me: failed program was:" >&5
 
6381
sed 's/^/| /' conftest.$ac_ext >&5
 
6382
 
 
6383
  ac_header_preproc=no
 
6384
fi
 
6385
rm -f conftest.err conftest.$ac_ext
 
6386
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6387
echo "${ECHO_T}$ac_header_preproc" >&6
 
6388
 
 
6389
# So?  What about this header?
 
6390
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6391
  yes:no: )
 
6392
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6393
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6394
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6395
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6396
    ac_header_preproc=yes
 
6397
    ;;
 
6398
  no:yes:* )
 
6399
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6400
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6401
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6402
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6403
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6404
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6405
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6406
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6407
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6408
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6409
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6410
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6411
    (
 
6412
      cat <<\_ASBOX
 
6413
## ------------------------------------------ ##
 
6414
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6415
## ------------------------------------------ ##
 
6416
_ASBOX
 
6417
    ) |
 
6418
      sed "s/^/$as_me: WARNING:     /" >&2
 
6419
    ;;
 
6420
esac
 
6421
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6422
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6423
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6424
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6425
else
 
6426
  eval "$as_ac_Header=\$ac_header_preproc"
 
6427
fi
 
6428
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6429
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6430
 
 
6431
fi
 
6432
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6433
  cat >>confdefs.h <<_ACEOF
 
6434
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6435
_ACEOF
 
6436
 
 
6437
fi
 
6438
 
 
6439
done
 
6440
 
 
6441
ac_ext=cc
 
6442
ac_cpp='$CXXCPP $CPPFLAGS'
 
6443
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6444
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6445
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6446
if test -n "$ac_tool_prefix"; then
 
6447
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
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_CXX+set}" = set; then
 
6454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6455
else
 
6456
  if test -n "$CXX"; then
 
6457
  ac_cv_prog_CXX="$CXX" # 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_CXX="$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
CXX=$ac_cv_prog_CXX
 
6476
if test -n "$CXX"; then
 
6477
  echo "$as_me:$LINENO: result: $CXX" >&5
 
6478
echo "${ECHO_T}$CXX" >&6
 
6479
else
 
6480
  echo "$as_me:$LINENO: result: no" >&5
 
6481
echo "${ECHO_T}no" >&6
 
6482
fi
 
6483
 
 
6484
    test -n "$CXX" && break
 
6485
  done
 
6486
fi
 
6487
if test -z "$CXX"; then
 
6488
  ac_ct_CXX=$CXX
 
6489
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
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_CXX+set}" = set; then
 
6496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6497
else
 
6498
  if test -n "$ac_ct_CXX"; then
 
6499
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$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_CXX=$ac_cv_prog_ac_ct_CXX
 
6518
if test -n "$ac_ct_CXX"; then
 
6519
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
6520
echo "${ECHO_T}$ac_ct_CXX" >&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_CXX" && break
 
6527
done
 
6528
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
6529
 
 
6530
  CXX=$ac_ct_CXX
 
6531
fi
 
6532
 
 
6533
 
 
6534
# Provide some information about the compiler.
 
6535
echo "$as_me:$LINENO:" \
 
6536
     "checking for C++ compiler version" >&5
 
6537
ac_compiler=`set X $ac_compile; echo $2`
 
6538
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6539
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6540
  ac_status=$?
 
6541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6542
  (exit $ac_status); }
 
6543
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6544
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6545
  ac_status=$?
 
6546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6547
  (exit $ac_status); }
 
6548
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6549
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6550
  ac_status=$?
 
6551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6552
  (exit $ac_status); }
 
6553
 
 
6554
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
6555
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
6556
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
6557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6558
else
 
6559
  cat >conftest.$ac_ext <<_ACEOF
 
6560
/* confdefs.h.  */
 
6561
_ACEOF
 
6562
cat confdefs.h >>conftest.$ac_ext
 
6563
cat >>conftest.$ac_ext <<_ACEOF
 
6564
/* end confdefs.h.  */
 
6565
 
 
6566
int
 
6567
main ()
 
6568
{
 
6569
#ifndef __GNUC__
 
6570
       choke me
 
6571
#endif
 
6572
 
 
6573
  ;
 
6574
  return 0;
 
6575
}
 
6576
_ACEOF
 
6577
rm -f conftest.$ac_objext
 
6578
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6579
  (eval $ac_compile) 2>conftest.er1
 
6580
  ac_status=$?
 
6581
  grep -v '^ *+' conftest.er1 >conftest.err
 
6582
  rm -f conftest.er1
 
6583
  cat conftest.err >&5
 
6584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6585
  (exit $ac_status); } &&
 
6586
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
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); }; } &&
 
6592
         { ac_try='test -s conftest.$ac_objext'
 
6593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6594
  (eval $ac_try) 2>&5
 
6595
  ac_status=$?
 
6596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6597
  (exit $ac_status); }; }; then
 
6598
  ac_compiler_gnu=yes
 
6599
else
 
6600
  echo "$as_me: failed program was:" >&5
 
6601
sed 's/^/| /' conftest.$ac_ext >&5
 
6602
 
 
6603
ac_compiler_gnu=no
 
6604
fi
 
6605
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6606
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
6607
 
 
6608
fi
 
6609
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
6610
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
6611
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
6612
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
6613
ac_save_CXXFLAGS=$CXXFLAGS
 
6614
CXXFLAGS="-g"
 
6615
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
6616
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
6617
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
6618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6619
else
 
6620
  cat >conftest.$ac_ext <<_ACEOF
 
6621
/* confdefs.h.  */
 
6622
_ACEOF
 
6623
cat confdefs.h >>conftest.$ac_ext
 
6624
cat >>conftest.$ac_ext <<_ACEOF
 
6625
/* end confdefs.h.  */
 
6626
 
 
6627
int
 
6628
main ()
 
6629
{
 
6630
 
 
6631
  ;
 
6632
  return 0;
 
6633
}
 
6634
_ACEOF
 
6635
rm -f conftest.$ac_objext
 
6636
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6637
  (eval $ac_compile) 2>conftest.er1
 
6638
  ac_status=$?
 
6639
  grep -v '^ *+' conftest.er1 >conftest.err
 
6640
  rm -f conftest.er1
 
6641
  cat conftest.err >&5
 
6642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6643
  (exit $ac_status); } &&
 
6644
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6646
  (eval $ac_try) 2>&5
 
6647
  ac_status=$?
 
6648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6649
  (exit $ac_status); }; } &&
 
6650
         { ac_try='test -s conftest.$ac_objext'
 
6651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6652
  (eval $ac_try) 2>&5
 
6653
  ac_status=$?
 
6654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6655
  (exit $ac_status); }; }; then
 
6656
  ac_cv_prog_cxx_g=yes
 
6657
else
 
6658
  echo "$as_me: failed program was:" >&5
 
6659
sed 's/^/| /' conftest.$ac_ext >&5
 
6660
 
 
6661
ac_cv_prog_cxx_g=no
 
6662
fi
 
6663
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6664
fi
 
6665
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
6666
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
6667
if test "$ac_test_CXXFLAGS" = set; then
 
6668
  CXXFLAGS=$ac_save_CXXFLAGS
 
6669
elif test $ac_cv_prog_cxx_g = yes; then
 
6670
  if test "$GXX" = yes; then
 
6671
    CXXFLAGS="-g -O2"
 
6672
  else
 
6673
    CXXFLAGS="-g"
 
6674
  fi
 
6675
else
 
6676
  if test "$GXX" = yes; then
 
6677
    CXXFLAGS="-O2"
 
6678
  else
 
6679
    CXXFLAGS=
 
6680
  fi
 
6681
fi
 
6682
for ac_declaration in \
 
6683
   '' \
 
6684
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
6685
   'extern "C" void std::exit (int); using std::exit;' \
 
6686
   'extern "C" void exit (int) throw ();' \
 
6687
   'extern "C" void exit (int);' \
 
6688
   'void exit (int);'
 
6689
do
 
6690
  cat >conftest.$ac_ext <<_ACEOF
 
6691
/* confdefs.h.  */
 
6692
_ACEOF
 
6693
cat confdefs.h >>conftest.$ac_ext
 
6694
cat >>conftest.$ac_ext <<_ACEOF
 
6695
/* end confdefs.h.  */
 
6696
$ac_declaration
 
6697
#include <stdlib.h>
 
6698
int
 
6699
main ()
 
6700
{
 
6701
exit (42);
 
6702
  ;
 
6703
  return 0;
 
6704
}
 
6705
_ACEOF
 
6706
rm -f conftest.$ac_objext
 
6707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6708
  (eval $ac_compile) 2>conftest.er1
 
6709
  ac_status=$?
 
6710
  grep -v '^ *+' conftest.er1 >conftest.err
 
6711
  rm -f conftest.er1
 
6712
  cat conftest.err >&5
 
6713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6714
  (exit $ac_status); } &&
 
6715
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6717
  (eval $ac_try) 2>&5
 
6718
  ac_status=$?
 
6719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6720
  (exit $ac_status); }; } &&
 
6721
         { ac_try='test -s conftest.$ac_objext'
 
6722
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6723
  (eval $ac_try) 2>&5
 
6724
  ac_status=$?
 
6725
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6726
  (exit $ac_status); }; }; then
 
6727
  :
 
6728
else
 
6729
  echo "$as_me: failed program was:" >&5
 
6730
sed 's/^/| /' conftest.$ac_ext >&5
 
6731
 
 
6732
continue
 
6733
fi
 
6734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6735
  cat >conftest.$ac_ext <<_ACEOF
 
6736
/* confdefs.h.  */
 
6737
_ACEOF
 
6738
cat confdefs.h >>conftest.$ac_ext
 
6739
cat >>conftest.$ac_ext <<_ACEOF
 
6740
/* end confdefs.h.  */
 
6741
$ac_declaration
 
6742
int
 
6743
main ()
 
6744
{
 
6745
exit (42);
 
6746
  ;
 
6747
  return 0;
 
6748
}
 
6749
_ACEOF
 
6750
rm -f conftest.$ac_objext
 
6751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6752
  (eval $ac_compile) 2>conftest.er1
 
6753
  ac_status=$?
 
6754
  grep -v '^ *+' conftest.er1 >conftest.err
 
6755
  rm -f conftest.er1
 
6756
  cat conftest.err >&5
 
6757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6758
  (exit $ac_status); } &&
 
6759
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
6760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6761
  (eval $ac_try) 2>&5
 
6762
  ac_status=$?
 
6763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6764
  (exit $ac_status); }; } &&
 
6765
         { ac_try='test -s conftest.$ac_objext'
 
6766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6767
  (eval $ac_try) 2>&5
 
6768
  ac_status=$?
 
6769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6770
  (exit $ac_status); }; }; then
 
6771
  break
 
6772
else
 
6773
  echo "$as_me: failed program was:" >&5
 
6774
sed 's/^/| /' conftest.$ac_ext >&5
 
6775
 
 
6776
fi
 
6777
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6778
done
 
6779
rm -f conftest*
 
6780
if test -n "$ac_declaration"; then
 
6781
  echo '#ifdef __cplusplus' >>confdefs.h
 
6782
  echo $ac_declaration      >>confdefs.h
 
6783
  echo '#endif'             >>confdefs.h
 
6784
fi
 
6785
 
 
6786
ac_ext=cc
 
6787
ac_cpp='$CXXCPP $CPPFLAGS'
 
6788
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6789
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6790
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6791
 
 
6792
depcc="$CXX"  am_compiler_list=
 
6793
 
 
6794
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6795
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
6796
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6798
else
 
6799
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6800
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6801
  # making bogus files that we don't know about and never remove.  For
 
6802
  # instance it was reported that on HP-UX the gcc test will end up
 
6803
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6804
  # in D'.
 
6805
  mkdir conftest.dir
 
6806
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6807
  # using a relative directory.
 
6808
  cp "$am_depcomp" conftest.dir
 
6809
  cd conftest.dir
 
6810
 
 
6811
  am_cv_CXX_dependencies_compiler_type=none
 
6812
  if test "$am_compiler_list" = ""; then
 
6813
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6814
  fi
 
6815
  for depmode in $am_compiler_list; do
 
6816
    # We need to recreate these files for each test, as the compiler may
 
6817
    # overwrite some of them when testing with obscure command lines.
 
6818
    # This happens at least with the AIX C compiler.
 
6819
    echo '#include "conftest.h"' > conftest.c
 
6820
    echo 'int i;' > conftest.h
 
6821
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
6822
 
 
6823
    case $depmode in
 
6824
    nosideeffect)
 
6825
      # after this tag, mechanisms are not by side-effect, so they'll
 
6826
      # only be used when explicitly requested
 
6827
      if test "x$enable_dependency_tracking" = xyes; then
 
6828
        continue
 
6829
      else
 
6830
        break
 
6831
      fi
 
6832
      ;;
 
6833
    none) break ;;
 
6834
    esac
 
6835
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6836
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6837
    # handle `-M -o', and we need to detect this.
 
6838
    if depmode=$depmode \
 
6839
       source=conftest.c object=conftest.o \
 
6840
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
6841
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
6842
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
6843
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6844
      am_cv_CXX_dependencies_compiler_type=$depmode
 
6845
      break
 
6846
    fi
 
6847
  done
 
6848
 
 
6849
  cd ..
 
6850
  rm -rf conftest.dir
 
6851
else
 
6852
  am_cv_CXX_dependencies_compiler_type=none
 
6853
fi
 
6854
 
 
6855
fi
 
6856
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6857
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
6858
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6859
 
 
6860
 
 
6861
ac_ext=cc
 
6862
ac_cpp='$CXXCPP $CPPFLAGS'
 
6863
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6864
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6865
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6866
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6867
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6868
if test -z "$CXXCPP"; then
 
6869
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6870
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6871
else
 
6872
      # Double quotes because CXXCPP needs to be expanded
 
6873
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6874
    do
 
6875
      ac_preproc_ok=false
 
6876
for ac_cxx_preproc_warn_flag in '' yes
 
6877
do
 
6878
  # Use a header file that comes with gcc, so configuring glibc
 
6879
  # with a fresh cross-compiler works.
 
6880
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6881
  # <limits.h> exists even on freestanding compilers.
 
6882
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6883
  # not just through cpp. "Syntax error" is here to catch this case.
 
6884
  cat >conftest.$ac_ext <<_ACEOF
 
6885
/* confdefs.h.  */
 
6886
_ACEOF
 
6887
cat confdefs.h >>conftest.$ac_ext
 
6888
cat >>conftest.$ac_ext <<_ACEOF
 
6889
/* end confdefs.h.  */
 
6890
#ifdef __STDC__
 
6891
# include <limits.h>
 
6892
#else
 
6893
# include <assert.h>
 
6894
#endif
 
6895
                     Syntax error
 
6896
_ACEOF
 
6897
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6898
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6899
  ac_status=$?
 
6900
  grep -v '^ *+' conftest.er1 >conftest.err
 
6901
  rm -f conftest.er1
 
6902
  cat conftest.err >&5
 
6903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6904
  (exit $ac_status); } >/dev/null; then
 
6905
  if test -s conftest.err; then
 
6906
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6907
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6908
  else
 
6909
    ac_cpp_err=
 
6910
  fi
 
6911
else
 
6912
  ac_cpp_err=yes
 
6913
fi
 
6914
if test -z "$ac_cpp_err"; then
 
6915
  :
 
6916
else
 
6917
  echo "$as_me: failed program was:" >&5
 
6918
sed 's/^/| /' conftest.$ac_ext >&5
 
6919
 
 
6920
  # Broken: fails on valid input.
 
6921
continue
 
6922
fi
 
6923
rm -f conftest.err conftest.$ac_ext
 
6924
 
 
6925
  # OK, works on sane cases.  Now check whether non-existent headers
 
6926
  # can be detected and how.
 
6927
  cat >conftest.$ac_ext <<_ACEOF
 
6928
/* confdefs.h.  */
 
6929
_ACEOF
 
6930
cat confdefs.h >>conftest.$ac_ext
 
6931
cat >>conftest.$ac_ext <<_ACEOF
 
6932
/* end confdefs.h.  */
 
6933
#include <ac_nonexistent.h>
 
6934
_ACEOF
 
6935
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6936
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6937
  ac_status=$?
 
6938
  grep -v '^ *+' conftest.er1 >conftest.err
 
6939
  rm -f conftest.er1
 
6940
  cat conftest.err >&5
 
6941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6942
  (exit $ac_status); } >/dev/null; then
 
6943
  if test -s conftest.err; then
 
6944
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6945
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6946
  else
 
6947
    ac_cpp_err=
 
6948
  fi
 
6949
else
 
6950
  ac_cpp_err=yes
 
6951
fi
 
6952
if test -z "$ac_cpp_err"; then
 
6953
  # Broken: success on invalid input.
 
6954
continue
 
6955
else
 
6956
  echo "$as_me: failed program was:" >&5
 
6957
sed 's/^/| /' conftest.$ac_ext >&5
 
6958
 
 
6959
  # Passes both tests.
 
6960
ac_preproc_ok=:
 
6961
break
 
6962
fi
 
6963
rm -f conftest.err conftest.$ac_ext
 
6964
 
 
6965
done
 
6966
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6967
rm -f conftest.err conftest.$ac_ext
 
6968
if $ac_preproc_ok; then
 
6969
  break
 
6970
fi
 
6971
 
 
6972
    done
 
6973
    ac_cv_prog_CXXCPP=$CXXCPP
 
6974
 
 
6975
fi
 
6976
  CXXCPP=$ac_cv_prog_CXXCPP
 
6977
else
 
6978
  ac_cv_prog_CXXCPP=$CXXCPP
 
6979
fi
 
6980
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6981
echo "${ECHO_T}$CXXCPP" >&6
 
6982
ac_preproc_ok=false
 
6983
for ac_cxx_preproc_warn_flag in '' yes
 
6984
do
 
6985
  # Use a header file that comes with gcc, so configuring glibc
 
6986
  # with a fresh cross-compiler works.
 
6987
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6988
  # <limits.h> exists even on freestanding compilers.
 
6989
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6990
  # not just through cpp. "Syntax error" is here to catch this case.
 
6991
  cat >conftest.$ac_ext <<_ACEOF
 
6992
/* confdefs.h.  */
 
6993
_ACEOF
 
6994
cat confdefs.h >>conftest.$ac_ext
 
6995
cat >>conftest.$ac_ext <<_ACEOF
 
6996
/* end confdefs.h.  */
 
6997
#ifdef __STDC__
 
6998
# include <limits.h>
 
6999
#else
 
7000
# include <assert.h>
 
7001
#endif
 
7002
                     Syntax error
 
7003
_ACEOF
 
7004
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7005
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7006
  ac_status=$?
 
7007
  grep -v '^ *+' conftest.er1 >conftest.err
 
7008
  rm -f conftest.er1
 
7009
  cat conftest.err >&5
 
7010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7011
  (exit $ac_status); } >/dev/null; then
 
7012
  if test -s conftest.err; then
 
7013
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7014
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7015
  else
 
7016
    ac_cpp_err=
 
7017
  fi
 
7018
else
 
7019
  ac_cpp_err=yes
 
7020
fi
 
7021
if test -z "$ac_cpp_err"; then
 
7022
  :
 
7023
else
 
7024
  echo "$as_me: failed program was:" >&5
 
7025
sed 's/^/| /' conftest.$ac_ext >&5
 
7026
 
 
7027
  # Broken: fails on valid input.
 
7028
continue
 
7029
fi
 
7030
rm -f conftest.err conftest.$ac_ext
 
7031
 
 
7032
  # OK, works on sane cases.  Now check whether non-existent headers
 
7033
  # can be detected and how.
 
7034
  cat >conftest.$ac_ext <<_ACEOF
 
7035
/* confdefs.h.  */
 
7036
_ACEOF
 
7037
cat confdefs.h >>conftest.$ac_ext
 
7038
cat >>conftest.$ac_ext <<_ACEOF
 
7039
/* end confdefs.h.  */
 
7040
#include <ac_nonexistent.h>
 
7041
_ACEOF
 
7042
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7043
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7044
  ac_status=$?
 
7045
  grep -v '^ *+' conftest.er1 >conftest.err
 
7046
  rm -f conftest.er1
 
7047
  cat conftest.err >&5
 
7048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7049
  (exit $ac_status); } >/dev/null; then
 
7050
  if test -s conftest.err; then
 
7051
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7052
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7053
  else
 
7054
    ac_cpp_err=
 
7055
  fi
 
7056
else
 
7057
  ac_cpp_err=yes
 
7058
fi
 
7059
if test -z "$ac_cpp_err"; then
 
7060
  # Broken: success on invalid input.
 
7061
continue
 
7062
else
 
7063
  echo "$as_me: failed program was:" >&5
 
7064
sed 's/^/| /' conftest.$ac_ext >&5
 
7065
 
 
7066
  # Passes both tests.
 
7067
ac_preproc_ok=:
 
7068
break
 
7069
fi
 
7070
rm -f conftest.err conftest.$ac_ext
 
7071
 
 
7072
done
 
7073
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7074
rm -f conftest.err conftest.$ac_ext
 
7075
if $ac_preproc_ok; then
 
7076
  :
 
7077
else
 
7078
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7079
See \`config.log' for more details." >&5
 
7080
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7081
See \`config.log' for more details." >&2;}
 
7082
   { (exit 1); exit 1; }; }
 
7083
fi
 
7084
 
 
7085
ac_ext=cc
 
7086
ac_cpp='$CXXCPP $CPPFLAGS'
 
7087
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7088
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7089
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7090
 
 
7091
 
 
7092
ac_ext=f
 
7093
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
7094
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7095
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
7096
if test -n "$ac_tool_prefix"; then
 
7097
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7098
  do
 
7099
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7100
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7101
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7102
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7103
if test "${ac_cv_prog_F77+set}" = set; then
 
7104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7105
else
 
7106
  if test -n "$F77"; then
 
7107
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
7108
else
 
7109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7110
for as_dir in $PATH
 
7111
do
 
7112
  IFS=$as_save_IFS
 
7113
  test -z "$as_dir" && as_dir=.
 
7114
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7115
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7116
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
7117
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7118
    break 2
 
7119
  fi
 
7120
done
 
7121
done
 
7122
 
 
7123
fi
 
7124
fi
 
7125
F77=$ac_cv_prog_F77
 
7126
if test -n "$F77"; then
 
7127
  echo "$as_me:$LINENO: result: $F77" >&5
 
7128
echo "${ECHO_T}$F77" >&6
 
7129
else
 
7130
  echo "$as_me:$LINENO: result: no" >&5
 
7131
echo "${ECHO_T}no" >&6
 
7132
fi
 
7133
 
 
7134
    test -n "$F77" && break
 
7135
  done
 
7136
fi
 
7137
if test -z "$F77"; then
 
7138
  ac_ct_F77=$F77
 
7139
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7140
do
 
7141
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7142
set dummy $ac_prog; ac_word=$2
 
7143
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7144
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7145
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
7146
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7147
else
 
7148
  if test -n "$ac_ct_F77"; then
 
7149
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
7150
else
 
7151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7152
for as_dir in $PATH
 
7153
do
 
7154
  IFS=$as_save_IFS
 
7155
  test -z "$as_dir" && as_dir=.
 
7156
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7157
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7158
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
7159
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7160
    break 2
 
7161
  fi
 
7162
done
 
7163
done
 
7164
 
 
7165
fi
 
7166
fi
 
7167
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
7168
if test -n "$ac_ct_F77"; then
 
7169
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
7170
echo "${ECHO_T}$ac_ct_F77" >&6
 
7171
else
 
7172
  echo "$as_me:$LINENO: result: no" >&5
 
7173
echo "${ECHO_T}no" >&6
 
7174
fi
 
7175
 
 
7176
  test -n "$ac_ct_F77" && break
 
7177
done
 
7178
 
 
7179
  F77=$ac_ct_F77
 
7180
fi
 
7181
 
 
7182
 
 
7183
# Provide some information about the compiler.
 
7184
echo "$as_me:7184:" \
 
7185
     "checking for Fortran 77 compiler version" >&5
 
7186
ac_compiler=`set X $ac_compile; echo $2`
 
7187
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
7188
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
7189
  ac_status=$?
 
7190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7191
  (exit $ac_status); }
 
7192
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
7193
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
7194
  ac_status=$?
 
7195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7196
  (exit $ac_status); }
 
7197
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
7198
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
7199
  ac_status=$?
 
7200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7201
  (exit $ac_status); }
 
7202
rm -f a.out
 
7203
 
 
7204
# If we don't use `.F' as extension, the preprocessor is not run on the
 
7205
# input file.  (Note that this only needs to work for GNU compilers.)
 
7206
ac_save_ext=$ac_ext
 
7207
ac_ext=F
 
7208
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
7209
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
7210
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
7211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7212
else
 
7213
  cat >conftest.$ac_ext <<_ACEOF
 
7214
      program main
 
7215
#ifndef __GNUC__
 
7216
       choke me
 
7217
#endif
 
7218
 
 
7219
      end
 
7220
_ACEOF
 
7221
rm -f conftest.$ac_objext
 
7222
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7223
  (eval $ac_compile) 2>conftest.er1
 
7224
  ac_status=$?
 
7225
  grep -v '^ *+' conftest.er1 >conftest.err
 
7226
  rm -f conftest.er1
 
7227
  cat conftest.err >&5
 
7228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7229
  (exit $ac_status); } &&
 
7230
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
7231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7232
  (eval $ac_try) 2>&5
 
7233
  ac_status=$?
 
7234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7235
  (exit $ac_status); }; } &&
 
7236
         { ac_try='test -s conftest.$ac_objext'
 
7237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7238
  (eval $ac_try) 2>&5
 
7239
  ac_status=$?
 
7240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7241
  (exit $ac_status); }; }; then
 
7242
  ac_compiler_gnu=yes
 
7243
else
 
7244
  echo "$as_me: failed program was:" >&5
 
7245
sed 's/^/| /' conftest.$ac_ext >&5
 
7246
 
 
7247
ac_compiler_gnu=no
 
7248
fi
 
7249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7250
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
7251
 
 
7252
fi
 
7253
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
7254
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
7255
ac_ext=$ac_save_ext
 
7256
ac_test_FFLAGS=${FFLAGS+set}
 
7257
ac_save_FFLAGS=$FFLAGS
 
7258
FFLAGS=
 
7259
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
7260
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
7261
if test "${ac_cv_prog_f77_g+set}" = set; then
 
7262
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7263
else
 
7264
  FFLAGS=-g
 
7265
cat >conftest.$ac_ext <<_ACEOF
 
7266
      program main
 
7267
 
 
7268
      end
 
7269
_ACEOF
 
7270
rm -f conftest.$ac_objext
 
7271
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7272
  (eval $ac_compile) 2>conftest.er1
 
7273
  ac_status=$?
 
7274
  grep -v '^ *+' conftest.er1 >conftest.err
 
7275
  rm -f conftest.er1
 
7276
  cat conftest.err >&5
 
7277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7278
  (exit $ac_status); } &&
 
7279
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
7280
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7281
  (eval $ac_try) 2>&5
 
7282
  ac_status=$?
 
7283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7284
  (exit $ac_status); }; } &&
 
7285
         { ac_try='test -s conftest.$ac_objext'
 
7286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7287
  (eval $ac_try) 2>&5
 
7288
  ac_status=$?
 
7289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7290
  (exit $ac_status); }; }; then
 
7291
  ac_cv_prog_f77_g=yes
 
7292
else
 
7293
  echo "$as_me: failed program was:" >&5
 
7294
sed 's/^/| /' conftest.$ac_ext >&5
 
7295
 
 
7296
ac_cv_prog_f77_g=no
 
7297
fi
 
7298
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7299
 
 
7300
fi
 
7301
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
7302
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
7303
if test "$ac_test_FFLAGS" = set; then
 
7304
  FFLAGS=$ac_save_FFLAGS
 
7305
elif test $ac_cv_prog_f77_g = yes; then
 
7306
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7307
    FFLAGS="-g -O2"
 
7308
  else
 
7309
    FFLAGS="-g"
 
7310
  fi
 
7311
else
 
7312
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7313
    FFLAGS="-O2"
 
7314
  else
 
7315
    FFLAGS=
 
7316
  fi
 
7317
fi
 
7318
 
 
7319
G77=`test $ac_compiler_gnu = yes && echo yes`
 
7320
ac_ext=c
 
7321
ac_cpp='$CPP $CPPFLAGS'
 
7322
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7323
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7324
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7325
 
 
7326
 
 
7327
 
 
7328
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
7329
 
 
7330
# find the maximum length of command line arguments
 
7331
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
7332
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
7333
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
7334
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7335
else
 
7336
    i=0
 
7337
  teststring="ABCD"
 
7338
 
 
7339
  case $build_os in
 
7340
  msdosdjgpp*)
 
7341
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
7342
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
7343
    # during glob expansion).  Even if it were fixed, the result of this
 
7344
    # check would be larger than it should be.
 
7345
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
7346
    ;;
 
7347
 
 
7348
  gnu*)
 
7349
    # Under GNU Hurd, this test is not required because there is
 
7350
    # no limit to the length of command line arguments.
 
7351
    # Libtool will interpret -1 as no limit whatsoever
 
7352
    lt_cv_sys_max_cmd_len=-1;
 
7353
    ;;
 
7354
 
 
7355
  cygwin* | mingw*)
 
7356
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
7357
    # about 5 minutes as the teststring grows exponentially.
 
7358
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
7359
    # you end up with a "frozen" computer, even though with patience
 
7360
    # the test eventually succeeds (with a max line length of 256k).
 
7361
    # Instead, let's just punt: use the minimum linelength reported by
 
7362
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
7363
    lt_cv_sys_max_cmd_len=8192;
 
7364
    ;;
 
7365
 
 
7366
  amigaos*)
 
7367
    # On AmigaOS with pdksh, this test takes hours, literally.
 
7368
    # So we just punt and use a minimum line length of 8192.
 
7369
    lt_cv_sys_max_cmd_len=8192;
 
7370
    ;;
 
7371
 
 
7372
 *)
 
7373
    # If test is not a shell built-in, we'll probably end up computing a
 
7374
    # maximum length that is only half of the actual maximum length, but
 
7375
    # we can't tell.
 
7376
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
7377
               = "XX$teststring") >/dev/null 2>&1 &&
 
7378
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
7379
            lt_cv_sys_max_cmd_len=$new_result &&
 
7380
            test $i != 17 # 1/2 MB should be enough
 
7381
    do
 
7382
      i=`expr $i + 1`
 
7383
      teststring=$teststring$teststring
 
7384
    done
 
7385
    teststring=
 
7386
    # Add a significant safety factor because C++ compilers can tack on massive
 
7387
    # amounts of additional arguments before passing them to the linker.
 
7388
    # It appears as though 1/2 is a usable value.
 
7389
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
7390
    ;;
 
7391
  esac
 
7392
 
 
7393
fi
 
7394
 
 
7395
if test -n $lt_cv_sys_max_cmd_len ; then
 
7396
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
7397
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
7398
else
 
7399
  echo "$as_me:$LINENO: result: none" >&5
 
7400
echo "${ECHO_T}none" >&6
 
7401
fi
 
7402
 
 
7403
 
 
7404
 
 
7405
 
 
7406
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
7407
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
7408
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
7409
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
7410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7411
else
 
7412
 
 
7413
# These are sane defaults that work on at least a few old systems.
 
7414
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
7415
 
 
7416
# Character class describing NM global symbol codes.
 
7417
symcode='[BCDEGRST]'
 
7418
 
 
7419
# Regexp to match symbols that can be accessed directly from C.
 
7420
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
7421
 
 
7422
# Transform the above into a raw symbol and a C symbol.
 
7423
symxfrm='\1 \2\3 \3'
 
7424
 
 
7425
# Transform an extracted symbol line into a proper C declaration
 
7426
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
7427
 
 
7428
# Transform an extracted symbol line into symbol name and symbol address
 
7429
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'"
 
7430
 
 
7431
# Define system-specific variables.
 
7432
case $host_os in
 
7433
aix*)
 
7434
  symcode='[BCDT]'
 
7435
  ;;
 
7436
cygwin* | mingw* | pw32*)
 
7437
  symcode='[ABCDGISTW]'
 
7438
  ;;
 
7439
hpux*) # Its linker distinguishes data from code symbols
 
7440
  if test "$host_cpu" = ia64; then
 
7441
    symcode='[ABCDEGRST]'
 
7442
  fi
 
7443
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7444
  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'"
 
7445
  ;;
 
7446
irix* | nonstopux*)
 
7447
  symcode='[BCDEGRST]'
 
7448
  ;;
 
7449
osf*)
 
7450
  symcode='[BCDEGQRST]'
 
7451
  ;;
 
7452
solaris* | sysv5*)
 
7453
  symcode='[BDRT]'
 
7454
  ;;
 
7455
sysv4)
 
7456
  symcode='[DFNSTU]'
 
7457
  ;;
 
7458
esac
 
7459
 
 
7460
# Handle CRLF in mingw tool chain
 
7461
opt_cr=
 
7462
case $build_os in
 
7463
mingw*)
 
7464
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7465
  ;;
 
7466
esac
 
7467
 
 
7468
# If we're using GNU nm, then use its standard symbol codes.
 
7469
case `$NM -V 2>&1` in
 
7470
*GNU* | *'with BFD'*)
 
7471
  symcode='[ABCDGIRSTW]' ;;
 
7472
esac
 
7473
 
 
7474
# Try without a prefix undercore, then with it.
 
7475
for ac_symprfx in "" "_"; do
 
7476
 
 
7477
  # Write the raw and C identifiers.
 
7478
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
7479
 
 
7480
  # Check to see that the pipe works correctly.
 
7481
  pipe_works=no
 
7482
 
 
7483
  rm -f conftest*
 
7484
  cat > conftest.$ac_ext <<EOF
 
7485
#ifdef __cplusplus
 
7486
extern "C" {
 
7487
#endif
 
7488
char nm_test_var;
 
7489
void nm_test_func(){}
 
7490
#ifdef __cplusplus
 
7491
}
 
7492
#endif
 
7493
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7494
EOF
 
7495
 
 
7496
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7497
  (eval $ac_compile) 2>&5
 
7498
  ac_status=$?
 
7499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7500
  (exit $ac_status); }; then
 
7501
    # Now try to grab the symbols.
 
7502
    nlist=conftest.nm
 
7503
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
7504
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
7505
  ac_status=$?
 
7506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7507
  (exit $ac_status); } && test -s "$nlist"; then
 
7508
      # Try sorting and uniquifying the output.
 
7509
      if sort "$nlist" | uniq > "$nlist"T; then
 
7510
        mv -f "$nlist"T "$nlist"
 
7511
      else
 
7512
        rm -f "$nlist"T
 
7513
      fi
 
7514
 
 
7515
      # Make sure that we snagged all the symbols we need.
 
7516
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
7517
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
7518
          cat <<EOF > conftest.$ac_ext
 
7519
#ifdef __cplusplus
 
7520
extern "C" {
 
7521
#endif
 
7522
 
 
7523
EOF
 
7524
          # Now generate the symbol file.
 
7525
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
7526
 
 
7527
          cat <<EOF >> conftest.$ac_ext
 
7528
#if defined (__STDC__) && __STDC__
 
7529
# define lt_ptr_t void *
 
7530
#else
 
7531
# define lt_ptr_t char *
 
7532
# define const
 
7533
#endif
 
7534
 
 
7535
/* The mapping between symbol names and symbols. */
 
7536
const struct {
 
7537
  const char *name;
 
7538
  lt_ptr_t address;
 
7539
}
 
7540
lt_preloaded_symbols[] =
 
7541
{
 
7542
EOF
 
7543
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
7544
          cat <<\EOF >> conftest.$ac_ext
 
7545
  {0, (lt_ptr_t) 0}
 
7546
};
 
7547
 
 
7548
#ifdef __cplusplus
 
7549
}
 
7550
#endif
 
7551
EOF
 
7552
          # Now try linking the two files.
 
7553
          mv conftest.$ac_objext conftstm.$ac_objext
 
7554
          lt_save_LIBS="$LIBS"
 
7555
          lt_save_CFLAGS="$CFLAGS"
 
7556
          LIBS="conftstm.$ac_objext"
 
7557
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7558
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7559
  (eval $ac_link) 2>&5
 
7560
  ac_status=$?
 
7561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7562
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
7563
            pipe_works=yes
 
7564
          fi
 
7565
          LIBS="$lt_save_LIBS"
 
7566
          CFLAGS="$lt_save_CFLAGS"
 
7567
        else
 
7568
          echo "cannot find nm_test_func in $nlist" >&5
 
7569
        fi
 
7570
      else
 
7571
        echo "cannot find nm_test_var in $nlist" >&5
 
7572
      fi
 
7573
    else
 
7574
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7575
    fi
 
7576
  else
 
7577
    echo "$progname: failed program was:" >&5
 
7578
    cat conftest.$ac_ext >&5
 
7579
  fi
 
7580
  rm -f conftest* conftst*
 
7581
 
 
7582
  # Do not use the global_symbol_pipe unless it works.
 
7583
  if test "$pipe_works" = yes; then
 
7584
    break
 
7585
  else
 
7586
    lt_cv_sys_global_symbol_pipe=
 
7587
  fi
 
7588
done
 
7589
 
 
7590
fi
 
7591
 
 
7592
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7593
  lt_cv_sys_global_symbol_to_cdecl=
 
7594
fi
 
7595
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7596
  echo "$as_me:$LINENO: result: failed" >&5
 
7597
echo "${ECHO_T}failed" >&6
 
7598
else
 
7599
  echo "$as_me:$LINENO: result: ok" >&5
 
7600
echo "${ECHO_T}ok" >&6
 
7601
fi
 
7602
 
 
7603
echo "$as_me:$LINENO: checking for objdir" >&5
 
7604
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
7605
if test "${lt_cv_objdir+set}" = set; then
 
7606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7607
else
 
7608
  rm -f .libs 2>/dev/null
 
7609
mkdir .libs 2>/dev/null
 
7610
if test -d .libs; then
 
7611
  lt_cv_objdir=.libs
 
7612
else
 
7613
  # MS-DOS does not allow filenames that begin with a dot.
 
7614
  lt_cv_objdir=_libs
 
7615
fi
 
7616
rmdir .libs 2>/dev/null
 
7617
fi
 
7618
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7619
echo "${ECHO_T}$lt_cv_objdir" >&6
 
7620
objdir=$lt_cv_objdir
 
7621
 
 
7622
 
 
7623
 
 
7624
 
 
7625
 
 
7626
case $host_os in
 
7627
aix3*)
 
7628
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7629
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7630
  # vanish in a puff of smoke.
 
7631
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7632
    COLLECT_NAMES=
 
7633
    export COLLECT_NAMES
 
7634
  fi
 
7635
  ;;
 
7636
esac
 
7637
 
 
7638
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7639
# metacharacters that are still active within double-quoted strings.
 
7640
Xsed='sed -e s/^X//'
 
7641
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7642
 
 
7643
# Same as above, but do not quote variable references.
 
7644
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7645
 
 
7646
# Sed substitution to delay expansion of an escaped shell variable in a
 
7647
# double_quote_subst'ed string.
 
7648
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7649
 
 
7650
# Sed substitution to avoid accidental globbing in evaled expressions
 
7651
no_glob_subst='s/\*/\\\*/g'
 
7652
 
 
7653
# Constants:
 
7654
rm="rm -f"
 
7655
 
 
7656
# Global variables:
 
7657
default_ofile=libtool
 
7658
can_build_shared=yes
 
7659
 
 
7660
# All known linkers require a `.a' archive for static linking (except M$VC,
 
7661
# which needs '.lib').
 
7662
libext=a
 
7663
ltmain="$ac_aux_dir/ltmain.sh"
 
7664
ofile="$default_ofile"
 
7665
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7666
 
 
7667
if test -n "$ac_tool_prefix"; then
 
7668
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7669
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7670
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7671
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7672
if test "${ac_cv_prog_AR+set}" = set; then
 
7673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7674
else
 
7675
  if test -n "$AR"; then
 
7676
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7677
else
 
7678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7679
for as_dir in $PATH
 
7680
do
 
7681
  IFS=$as_save_IFS
 
7682
  test -z "$as_dir" && as_dir=.
 
7683
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7684
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7685
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7686
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7687
    break 2
 
7688
  fi
 
7689
done
 
7690
done
 
7691
 
 
7692
fi
 
7693
fi
 
7694
AR=$ac_cv_prog_AR
 
7695
if test -n "$AR"; then
 
7696
  echo "$as_me:$LINENO: result: $AR" >&5
 
7697
echo "${ECHO_T}$AR" >&6
 
7698
else
 
7699
  echo "$as_me:$LINENO: result: no" >&5
 
7700
echo "${ECHO_T}no" >&6
 
7701
fi
 
7702
 
 
7703
fi
 
7704
if test -z "$ac_cv_prog_AR"; then
 
7705
  ac_ct_AR=$AR
 
7706
  # Extract the first word of "ar", so it can be a program name with args.
 
7707
set dummy ar; ac_word=$2
 
7708
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7709
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7710
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7712
else
 
7713
  if test -n "$ac_ct_AR"; then
 
7714
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7715
else
 
7716
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7717
for as_dir in $PATH
 
7718
do
 
7719
  IFS=$as_save_IFS
 
7720
  test -z "$as_dir" && as_dir=.
 
7721
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7722
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7723
    ac_cv_prog_ac_ct_AR="ar"
 
7724
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7725
    break 2
 
7726
  fi
 
7727
done
 
7728
done
 
7729
 
 
7730
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
7731
fi
 
7732
fi
 
7733
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7734
if test -n "$ac_ct_AR"; then
 
7735
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7736
echo "${ECHO_T}$ac_ct_AR" >&6
 
7737
else
 
7738
  echo "$as_me:$LINENO: result: no" >&5
 
7739
echo "${ECHO_T}no" >&6
 
7740
fi
 
7741
 
 
7742
  AR=$ac_ct_AR
 
7743
else
 
7744
  AR="$ac_cv_prog_AR"
 
7745
fi
 
7746
 
 
7747
if test -n "$ac_tool_prefix"; then
 
7748
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7749
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7750
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7751
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7752
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7754
else
 
7755
  if test -n "$RANLIB"; then
 
7756
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7757
else
 
7758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7759
for as_dir in $PATH
 
7760
do
 
7761
  IFS=$as_save_IFS
 
7762
  test -z "$as_dir" && as_dir=.
 
7763
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7764
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7765
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7766
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7767
    break 2
 
7768
  fi
 
7769
done
 
7770
done
 
7771
 
 
7772
fi
 
7773
fi
 
7774
RANLIB=$ac_cv_prog_RANLIB
 
7775
if test -n "$RANLIB"; then
 
7776
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7777
echo "${ECHO_T}$RANLIB" >&6
 
7778
else
 
7779
  echo "$as_me:$LINENO: result: no" >&5
 
7780
echo "${ECHO_T}no" >&6
 
7781
fi
 
7782
 
 
7783
fi
 
7784
if test -z "$ac_cv_prog_RANLIB"; then
 
7785
  ac_ct_RANLIB=$RANLIB
 
7786
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7787
set dummy ranlib; ac_word=$2
 
7788
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7790
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7792
else
 
7793
  if test -n "$ac_ct_RANLIB"; then
 
7794
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7795
else
 
7796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7797
for as_dir in $PATH
 
7798
do
 
7799
  IFS=$as_save_IFS
 
7800
  test -z "$as_dir" && as_dir=.
 
7801
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7802
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7803
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7804
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7805
    break 2
 
7806
  fi
 
7807
done
 
7808
done
 
7809
 
 
7810
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
7811
fi
 
7812
fi
 
7813
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7814
if test -n "$ac_ct_RANLIB"; then
 
7815
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7816
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
7817
else
 
7818
  echo "$as_me:$LINENO: result: no" >&5
 
7819
echo "${ECHO_T}no" >&6
 
7820
fi
 
7821
 
 
7822
  RANLIB=$ac_ct_RANLIB
 
7823
else
 
7824
  RANLIB="$ac_cv_prog_RANLIB"
 
7825
fi
 
7826
 
 
7827
if test -n "$ac_tool_prefix"; then
 
7828
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7829
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7830
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7831
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7832
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7834
else
 
7835
  if test -n "$STRIP"; then
 
7836
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7837
else
 
7838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7839
for as_dir in $PATH
 
7840
do
 
7841
  IFS=$as_save_IFS
 
7842
  test -z "$as_dir" && as_dir=.
 
7843
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7844
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7845
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7846
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7847
    break 2
 
7848
  fi
 
7849
done
 
7850
done
 
7851
 
 
7852
fi
 
7853
fi
 
7854
STRIP=$ac_cv_prog_STRIP
 
7855
if test -n "$STRIP"; then
 
7856
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
7857
echo "${ECHO_T}$STRIP" >&6
 
7858
else
 
7859
  echo "$as_me:$LINENO: result: no" >&5
 
7860
echo "${ECHO_T}no" >&6
 
7861
fi
 
7862
 
 
7863
fi
 
7864
if test -z "$ac_cv_prog_STRIP"; then
 
7865
  ac_ct_STRIP=$STRIP
 
7866
  # Extract the first word of "strip", so it can be a program name with args.
 
7867
set dummy strip; ac_word=$2
 
7868
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7869
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7870
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7871
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7872
else
 
7873
  if test -n "$ac_ct_STRIP"; then
 
7874
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7875
else
 
7876
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7877
for as_dir in $PATH
 
7878
do
 
7879
  IFS=$as_save_IFS
 
7880
  test -z "$as_dir" && as_dir=.
 
7881
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7882
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7883
    ac_cv_prog_ac_ct_STRIP="strip"
 
7884
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7885
    break 2
 
7886
  fi
 
7887
done
 
7888
done
 
7889
 
 
7890
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
7891
fi
 
7892
fi
 
7893
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7894
if test -n "$ac_ct_STRIP"; then
 
7895
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7896
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
7897
else
 
7898
  echo "$as_me:$LINENO: result: no" >&5
 
7899
echo "${ECHO_T}no" >&6
 
7900
fi
 
7901
 
 
7902
  STRIP=$ac_ct_STRIP
 
7903
else
 
7904
  STRIP="$ac_cv_prog_STRIP"
 
7905
fi
 
7906
 
 
7907
 
 
7908
old_CC="$CC"
 
7909
old_CFLAGS="$CFLAGS"
 
7910
 
 
7911
# Set sane defaults for various variables
 
7912
test -z "$AR" && AR=ar
 
7913
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7914
test -z "$AS" && AS=as
 
7915
test -z "$CC" && CC=cc
 
7916
test -z "$LTCC" && LTCC=$CC
 
7917
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7918
test -z "$LD" && LD=ld
 
7919
test -z "$LN_S" && LN_S="ln -s"
 
7920
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7921
test -z "$NM" && NM=nm
 
7922
test -z "$SED" && SED=sed
 
7923
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7924
test -z "$RANLIB" && RANLIB=:
 
7925
test -z "$STRIP" && STRIP=:
 
7926
test -z "$ac_objext" && ac_objext=o
 
7927
 
 
7928
# Determine commands to create old-style static archives.
 
7929
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7930
old_postinstall_cmds='chmod 644 $oldlib'
 
7931
old_postuninstall_cmds=
 
7932
 
 
7933
if test -n "$RANLIB"; then
 
7934
  case $host_os in
 
7935
  openbsd*)
 
7936
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
7937
    ;;
 
7938
  *)
 
7939
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
7940
    ;;
 
7941
  esac
 
7942
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7943
fi
 
7944
 
 
7945
# Only perform the check for file, if the check method requires it
 
7946
case $deplibs_check_method in
 
7947
file_magic*)
 
7948
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7949
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7950
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7951
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7953
else
 
7954
  case $MAGIC_CMD in
 
7955
[\\/*] |  ?:[\\/]*)
 
7956
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7957
  ;;
 
7958
*)
 
7959
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7960
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7961
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7962
  for ac_dir in $ac_dummy; do
 
7963
    IFS="$lt_save_ifs"
 
7964
    test -z "$ac_dir" && ac_dir=.
 
7965
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7966
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7967
      if test -n "$file_magic_test_file"; then
 
7968
        case $deplibs_check_method in
 
7969
        "file_magic "*)
 
7970
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7971
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7972
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7973
            $EGREP "$file_magic_regex" > /dev/null; then
 
7974
            :
 
7975
          else
 
7976
            cat <<EOF 1>&2
 
7977
 
 
7978
*** Warning: the command libtool uses to detect shared libraries,
 
7979
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7980
*** The result is that libtool may fail to recognize shared libraries
 
7981
*** as such.  This will affect the creation of libtool libraries that
 
7982
*** depend on shared libraries, but programs linked with such libtool
 
7983
*** libraries will work regardless of this problem.  Nevertheless, you
 
7984
*** may want to report the problem to your system manager and/or to
 
7985
*** bug-libtool@gnu.org
 
7986
 
 
7987
EOF
 
7988
          fi ;;
 
7989
        esac
 
7990
      fi
 
7991
      break
 
7992
    fi
 
7993
  done
 
7994
  IFS="$lt_save_ifs"
 
7995
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7996
  ;;
 
7997
esac
 
7998
fi
 
7999
 
 
8000
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8001
if test -n "$MAGIC_CMD"; then
 
8002
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8003
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8004
else
 
8005
  echo "$as_me:$LINENO: result: no" >&5
 
8006
echo "${ECHO_T}no" >&6
 
8007
fi
 
8008
 
 
8009
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8010
  if test -n "$ac_tool_prefix"; then
 
8011
    echo "$as_me:$LINENO: checking for file" >&5
 
8012
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
8013
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8015
else
 
8016
  case $MAGIC_CMD in
 
8017
[\\/*] |  ?:[\\/]*)
 
8018
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8019
  ;;
 
8020
*)
 
8021
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8022
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8023
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8024
  for ac_dir in $ac_dummy; do
 
8025
    IFS="$lt_save_ifs"
 
8026
    test -z "$ac_dir" && ac_dir=.
 
8027
    if test -f $ac_dir/file; then
 
8028
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8029
      if test -n "$file_magic_test_file"; then
 
8030
        case $deplibs_check_method in
 
8031
        "file_magic "*)
 
8032
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8033
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8034
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8035
            $EGREP "$file_magic_regex" > /dev/null; then
 
8036
            :
 
8037
          else
 
8038
            cat <<EOF 1>&2
 
8039
 
 
8040
*** Warning: the command libtool uses to detect shared libraries,
 
8041
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8042
*** The result is that libtool may fail to recognize shared libraries
 
8043
*** as such.  This will affect the creation of libtool libraries that
 
8044
*** depend on shared libraries, but programs linked with such libtool
 
8045
*** libraries will work regardless of this problem.  Nevertheless, you
 
8046
*** may want to report the problem to your system manager and/or to
 
8047
*** bug-libtool@gnu.org
 
8048
 
 
8049
EOF
 
8050
          fi ;;
 
8051
        esac
 
8052
      fi
 
8053
      break
 
8054
    fi
 
8055
  done
 
8056
  IFS="$lt_save_ifs"
 
8057
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8058
  ;;
 
8059
esac
 
8060
fi
 
8061
 
 
8062
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8063
if test -n "$MAGIC_CMD"; then
 
8064
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8065
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8066
else
 
8067
  echo "$as_me:$LINENO: result: no" >&5
 
8068
echo "${ECHO_T}no" >&6
 
8069
fi
 
8070
 
 
8071
  else
 
8072
    MAGIC_CMD=:
 
8073
  fi
 
8074
fi
 
8075
 
 
8076
  fi
 
8077
  ;;
 
8078
esac
 
8079
 
 
8080
enable_dlopen=no
 
8081
enable_win32_dll=no
 
8082
 
 
8083
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
8084
if test "${enable_libtool_lock+set}" = set; then
 
8085
  enableval="$enable_libtool_lock"
 
8086
 
 
8087
fi;
 
8088
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8089
 
 
8090
 
 
8091
# Check whether --with-pic or --without-pic was given.
 
8092
if test "${with_pic+set}" = set; then
 
8093
  withval="$with_pic"
 
8094
  pic_mode="$withval"
 
8095
else
 
8096
  pic_mode=default
 
8097
fi;
 
8098
test -z "$pic_mode" && pic_mode=default
 
8099
 
 
8100
# Use C for the default configuration in the libtool script
 
8101
tagname=
 
8102
lt_save_CC="$CC"
 
8103
ac_ext=c
 
8104
ac_cpp='$CPP $CPPFLAGS'
 
8105
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8106
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8107
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8108
 
 
8109
 
 
8110
# Source file extension for C test sources.
 
8111
ac_ext=c
 
8112
 
 
8113
# Object file extension for compiled C test sources.
 
8114
objext=o
 
8115
objext=$objext
 
8116
 
 
8117
# Code to be used in simple compile tests
 
8118
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8119
 
 
8120
# Code to be used in simple link tests
 
8121
lt_simple_link_test_code='int main(){return(0);}\n'
 
8122
 
 
8123
 
 
8124
# If no C compiler was specified, use CC.
 
8125
LTCC=${LTCC-"$CC"}
 
8126
 
 
8127
# Allow CC to be a program name with arguments.
 
8128
compiler=$CC
 
8129
 
 
8130
 
 
8131
#
 
8132
# Check for any special shared library compilation flags.
 
8133
#
 
8134
lt_prog_cc_shlib=
 
8135
if test "$GCC" = no; then
 
8136
  case $host_os in
 
8137
  sco3.2v5*)
 
8138
    lt_prog_cc_shlib='-belf'
 
8139
    ;;
 
8140
  esac
 
8141
fi
 
8142
if test -n "$lt_prog_cc_shlib"; then
 
8143
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
8144
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
8145
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
8146
  else
 
8147
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
8148
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
8149
    lt_cv_prog_cc_can_build_shared=no
 
8150
  fi
 
8151
fi
 
8152
 
 
8153
 
 
8154
#
 
8155
# Check to make sure the static flag actually works.
 
8156
#
 
8157
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
8158
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
8159
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8161
else
 
8162
  lt_prog_compiler_static_works=no
 
8163
   save_LDFLAGS="$LDFLAGS"
 
8164
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
8165
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8166
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8167
     # The compiler can only warn and ignore the option if not recognized
 
8168
     # So say no if there are warnings
 
8169
     if test -s conftest.err; then
 
8170
       # Append any errors to the config.log.
 
8171
       cat conftest.err 1>&5
 
8172
     else
 
8173
       lt_prog_compiler_static_works=yes
 
8174
     fi
 
8175
   fi
 
8176
   $rm conftest*
 
8177
   LDFLAGS="$save_LDFLAGS"
 
8178
 
 
8179
fi
 
8180
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
8181
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
8182
 
 
8183
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8184
    :
 
8185
else
 
8186
    lt_prog_compiler_static=
 
8187
fi
 
8188
 
 
8189
 
 
8190
 
 
8191
 
 
8192
lt_prog_compiler_no_builtin_flag=
 
8193
 
 
8194
if test "$GCC" = yes; then
 
8195
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8196
 
 
8197
 
 
8198
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8199
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
8200
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
8201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8202
else
 
8203
  lt_cv_prog_compiler_rtti_exceptions=no
 
8204
  ac_outfile=conftest.$ac_objext
 
8205
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8206
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8207
   # Insert the option either (1) after the last *FLAGS variable, or
 
8208
   # (2) before a word containing "conftest.", or (3) at the end.
 
8209
   # Note that $ac_compile itself does not contain backslashes and begins
 
8210
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8211
   # The option is referenced via a variable to avoid confusing sed.
 
8212
   lt_compile=`echo "$ac_compile" | $SED \
 
8213
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8214
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8215
   -e 's:$: $lt_compiler_flag:'`
 
8216
   (eval echo "\"\$as_me:8216: $lt_compile\"" >&5)
 
8217
   (eval "$lt_compile" 2>conftest.err)
 
8218
   ac_status=$?
 
8219
   cat conftest.err >&5
 
8220
   echo "$as_me:8220: \$? = $ac_status" >&5
 
8221
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8222
     # The compiler can only warn and ignore the option if not recognized
 
8223
     # So say no if there are warnings
 
8224
     if test ! -s conftest.err; then
 
8225
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8226
     fi
 
8227
   fi
 
8228
   $rm conftest*
 
8229
 
 
8230
fi
 
8231
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8232
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
8233
 
 
8234
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8235
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8236
else
 
8237
    :
 
8238
fi
 
8239
 
 
8240
fi
 
8241
 
 
8242
lt_prog_compiler_wl=
 
8243
lt_prog_compiler_pic=
 
8244
lt_prog_compiler_static=
 
8245
 
 
8246
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
8247
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
8248
 
 
8249
  if test "$GCC" = yes; then
 
8250
    lt_prog_compiler_wl='-Wl,'
 
8251
    lt_prog_compiler_static='-static'
 
8252
 
 
8253
    case $host_os in
 
8254
      aix*)
 
8255
      # All AIX code is PIC.
 
8256
      if test "$host_cpu" = ia64; then
 
8257
        # AIX 5 now supports IA64 processor
 
8258
        lt_prog_compiler_static='-Bstatic'
 
8259
      fi
 
8260
      ;;
 
8261
 
 
8262
    amigaos*)
 
8263
      # FIXME: we need at least 68020 code to build shared libraries, but
 
8264
      # adding the `-m68020' flag to GCC prevents building anything better,
 
8265
      # like `-m68040'.
 
8266
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8267
      ;;
 
8268
 
 
8269
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8270
      # PIC is the default for these OSes.
 
8271
      ;;
 
8272
 
 
8273
    mingw* | pw32* | os2*)
 
8274
      # This hack is so that the source file can tell whether it is being
 
8275
      # built for inclusion in a dll (and should export symbols for example).
 
8276
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8277
      ;;
 
8278
 
 
8279
    darwin* | rhapsody*)
 
8280
      # PIC is the default on this platform
 
8281
      # Common symbols not allowed in MH_DYLIB files
 
8282
      lt_prog_compiler_pic='-fno-common'
 
8283
      ;;
 
8284
 
 
8285
    msdosdjgpp*)
 
8286
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8287
      # on systems that don't support them.
 
8288
      lt_prog_compiler_can_build_shared=no
 
8289
      enable_shared=no
 
8290
      ;;
 
8291
 
 
8292
    sysv4*MP*)
 
8293
      if test -d /usr/nec; then
 
8294
        lt_prog_compiler_pic=-Kconform_pic
 
8295
      fi
 
8296
      ;;
 
8297
 
 
8298
    hpux*)
 
8299
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8300
      # not for PA HP-UX.
 
8301
      case "$host_cpu" in
 
8302
      hppa*64*|ia64*)
 
8303
        # +Z the default
 
8304
        ;;
 
8305
      *)
 
8306
        lt_prog_compiler_pic='-fPIC'
 
8307
        ;;
 
8308
      esac
 
8309
      ;;
 
8310
 
 
8311
    *)
 
8312
      lt_prog_compiler_pic='-fPIC'
 
8313
      ;;
 
8314
    esac
 
8315
  else
 
8316
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8317
    case $host_os in
 
8318
    aix*)
 
8319
      lt_prog_compiler_wl='-Wl,'
 
8320
      if test "$host_cpu" = ia64; then
 
8321
        # AIX 5 now supports IA64 processor
 
8322
        lt_prog_compiler_static='-Bstatic'
 
8323
      else
 
8324
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8325
      fi
 
8326
      ;;
 
8327
 
 
8328
    mingw* | pw32* | os2*)
 
8329
      # This hack is so that the source file can tell whether it is being
 
8330
      # built for inclusion in a dll (and should export symbols for example).
 
8331
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8332
      ;;
 
8333
 
 
8334
    hpux9* | hpux10* | hpux11*)
 
8335
      lt_prog_compiler_wl='-Wl,'
 
8336
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8337
      # not for PA HP-UX.
 
8338
      case "$host_cpu" in
 
8339
      hppa*64*|ia64*)
 
8340
        # +Z the default
 
8341
        ;;
 
8342
      *)
 
8343
        lt_prog_compiler_pic='+Z'
 
8344
        ;;
 
8345
      esac
 
8346
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8347
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8348
      ;;
 
8349
 
 
8350
    irix5* | irix6* | nonstopux*)
 
8351
      lt_prog_compiler_wl='-Wl,'
 
8352
      # PIC (with -KPIC) is the default.
 
8353
      lt_prog_compiler_static='-non_shared'
 
8354
      ;;
 
8355
 
 
8356
    newsos6)
 
8357
      lt_prog_compiler_pic='-KPIC'
 
8358
      lt_prog_compiler_static='-Bstatic'
 
8359
      ;;
 
8360
 
 
8361
    linux*)
 
8362
      case $CC in
 
8363
      icc* | ecc*)
 
8364
        lt_prog_compiler_wl='-Wl,'
 
8365
        lt_prog_compiler_pic='-KPIC'
 
8366
        lt_prog_compiler_static='-static'
 
8367
        ;;
 
8368
      ccc*)
 
8369
        lt_prog_compiler_wl='-Wl,'
 
8370
        # All Alpha code is PIC.
 
8371
        lt_prog_compiler_static='-non_shared'
 
8372
        ;;
 
8373
      esac
 
8374
      ;;
 
8375
 
 
8376
    osf3* | osf4* | osf5*)
 
8377
      lt_prog_compiler_wl='-Wl,'
 
8378
      # All OSF/1 code is PIC.
 
8379
      lt_prog_compiler_static='-non_shared'
 
8380
      ;;
 
8381
 
 
8382
    sco3.2v5*)
 
8383
      lt_prog_compiler_pic='-Kpic'
 
8384
      lt_prog_compiler_static='-dn'
 
8385
      ;;
 
8386
 
 
8387
    solaris*)
 
8388
      lt_prog_compiler_wl='-Wl,'
 
8389
      lt_prog_compiler_pic='-KPIC'
 
8390
      lt_prog_compiler_static='-Bstatic'
 
8391
      ;;
 
8392
 
 
8393
    sunos4*)
 
8394
      lt_prog_compiler_wl='-Qoption ld '
 
8395
      lt_prog_compiler_pic='-PIC'
 
8396
      lt_prog_compiler_static='-Bstatic'
 
8397
      ;;
 
8398
 
 
8399
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8400
      lt_prog_compiler_wl='-Wl,'
 
8401
      lt_prog_compiler_pic='-KPIC'
 
8402
      lt_prog_compiler_static='-Bstatic'
 
8403
      ;;
 
8404
 
 
8405
    sysv4*MP*)
 
8406
      if test -d /usr/nec ;then
 
8407
        lt_prog_compiler_pic='-Kconform_pic'
 
8408
        lt_prog_compiler_static='-Bstatic'
 
8409
      fi
 
8410
      ;;
 
8411
 
 
8412
    uts4*)
 
8413
      lt_prog_compiler_pic='-pic'
 
8414
      lt_prog_compiler_static='-Bstatic'
 
8415
      ;;
 
8416
 
 
8417
    *)
 
8418
      lt_prog_compiler_can_build_shared=no
 
8419
      ;;
 
8420
    esac
 
8421
  fi
 
8422
 
 
8423
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8424
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
8425
 
 
8426
#
 
8427
# Check to make sure the PIC flag actually works.
 
8428
#
 
8429
if test -n "$lt_prog_compiler_pic"; then
 
8430
 
 
8431
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8432
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
8433
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
8434
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8435
else
 
8436
  lt_prog_compiler_pic_works=no
 
8437
  ac_outfile=conftest.$ac_objext
 
8438
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8439
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8440
   # Insert the option either (1) after the last *FLAGS variable, or
 
8441
   # (2) before a word containing "conftest.", or (3) at the end.
 
8442
   # Note that $ac_compile itself does not contain backslashes and begins
 
8443
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8444
   # The option is referenced via a variable to avoid confusing sed.
 
8445
   lt_compile=`echo "$ac_compile" | $SED \
 
8446
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8447
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8448
   -e 's:$: $lt_compiler_flag:'`
 
8449
   (eval echo "\"\$as_me:8449: $lt_compile\"" >&5)
 
8450
   (eval "$lt_compile" 2>conftest.err)
 
8451
   ac_status=$?
 
8452
   cat conftest.err >&5
 
8453
   echo "$as_me:8453: \$? = $ac_status" >&5
 
8454
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8455
     # The compiler can only warn and ignore the option if not recognized
 
8456
     # So say no if there are warnings
 
8457
     if test ! -s conftest.err; then
 
8458
       lt_prog_compiler_pic_works=yes
 
8459
     fi
 
8460
   fi
 
8461
   $rm conftest*
 
8462
 
 
8463
fi
 
8464
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
8465
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
8466
 
 
8467
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8468
    case $lt_prog_compiler_pic in
 
8469
     "" | " "*) ;;
 
8470
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8471
     esac
 
8472
else
 
8473
    lt_prog_compiler_pic=
 
8474
     lt_prog_compiler_can_build_shared=no
 
8475
fi
 
8476
 
 
8477
fi
 
8478
case "$host_os" in
 
8479
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8480
  *djgpp*)
 
8481
    lt_prog_compiler_pic=
 
8482
    ;;
 
8483
  *)
 
8484
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8485
    ;;
 
8486
esac
 
8487
 
 
8488
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8489
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
8490
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8492
else
 
8493
  lt_cv_prog_compiler_c_o=no
 
8494
   $rm -r conftest 2>/dev/null
 
8495
   mkdir conftest
 
8496
   cd conftest
 
8497
   mkdir out
 
8498
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8499
 
 
8500
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8501
   # Insert the option either (1) after the last *FLAGS variable, or
 
8502
   # (2) before a word containing "conftest.", or (3) at the end.
 
8503
   # Note that $ac_compile itself does not contain backslashes and begins
 
8504
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8505
   lt_compile=`echo "$ac_compile" | $SED \
 
8506
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8507
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8508
   -e 's:$: $lt_compiler_flag:'`
 
8509
   (eval echo "\"\$as_me:8509: $lt_compile\"" >&5)
 
8510
   (eval "$lt_compile" 2>out/conftest.err)
 
8511
   ac_status=$?
 
8512
   cat out/conftest.err >&5
 
8513
   echo "$as_me:8513: \$? = $ac_status" >&5
 
8514
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8515
   then
 
8516
     # The compiler can only warn and ignore the option if not recognized
 
8517
     # So say no if there are warnings
 
8518
     if test ! -s out/conftest.err; then
 
8519
       lt_cv_prog_compiler_c_o=yes
 
8520
     fi
 
8521
   fi
 
8522
   chmod u+w .
 
8523
   $rm conftest*
 
8524
   # SGI C++ compiler will create directory out/ii_files/ for
 
8525
   # template instantiation
 
8526
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8527
   $rm out/* && rmdir out
 
8528
   cd ..
 
8529
   rmdir conftest
 
8530
   $rm conftest*
 
8531
 
 
8532
fi
 
8533
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8534
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
8535
 
 
8536
 
 
8537
hard_links="nottested"
 
8538
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8539
  # do not overwrite the value of need_locks provided by the user
 
8540
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8541
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
8542
  hard_links=yes
 
8543
  $rm conftest*
 
8544
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8545
  touch conftest.a
 
8546
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8547
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8548
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
8549
echo "${ECHO_T}$hard_links" >&6
 
8550
  if test "$hard_links" = no; then
 
8551
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8552
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8553
    need_locks=warn
 
8554
  fi
 
8555
else
 
8556
  need_locks=no
 
8557
fi
 
8558
 
 
8559
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8560
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
8561
 
 
8562
  runpath_var=
 
8563
  allow_undefined_flag=
 
8564
  enable_shared_with_static_runtimes=no
 
8565
  archive_cmds=
 
8566
  archive_expsym_cmds=
 
8567
  old_archive_From_new_cmds=
 
8568
  old_archive_from_expsyms_cmds=
 
8569
  export_dynamic_flag_spec=
 
8570
  whole_archive_flag_spec=
 
8571
  thread_safe_flag_spec=
 
8572
  hardcode_libdir_flag_spec=
 
8573
  hardcode_libdir_flag_spec_ld=
 
8574
  hardcode_libdir_separator=
 
8575
  hardcode_direct=no
 
8576
  hardcode_minus_L=no
 
8577
  hardcode_shlibpath_var=unsupported
 
8578
  link_all_deplibs=unknown
 
8579
  hardcode_automatic=no
 
8580
  module_cmds=
 
8581
  module_expsym_cmds=
 
8582
  always_export_symbols=no
 
8583
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8584
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8585
  # included in the symbol list
 
8586
  include_expsyms=
 
8587
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8588
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8589
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8590
  # as well as any symbol that contains `d'.
 
8591
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8592
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8593
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8594
  # the symbol is explicitly referenced.  Since portable code cannot
 
8595
  # rely on this symbol name, it's probably fine to never include it in
 
8596
  # preloaded symbol tables.
 
8597
  extract_expsyms_cmds=
 
8598
 
 
8599
  case $host_os in
 
8600
  cygwin* | mingw* | pw32*)
 
8601
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8602
    # When not using gcc, we currently assume that we are using
 
8603
    # Microsoft Visual C++.
 
8604
    if test "$GCC" != yes; then
 
8605
      with_gnu_ld=no
 
8606
    fi
 
8607
    ;;
 
8608
  openbsd*)
 
8609
    with_gnu_ld=no
 
8610
    ;;
 
8611
  esac
 
8612
 
 
8613
  ld_shlibs=yes
 
8614
  if test "$with_gnu_ld" = yes; then
 
8615
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8616
    wlarc='${wl}'
 
8617
 
 
8618
    # See if GNU ld supports shared libraries.
 
8619
    case $host_os in
 
8620
    aix3* | aix4* | aix5*)
 
8621
      # On AIX/PPC, the GNU linker is very broken
 
8622
      if test "$host_cpu" != ia64; then
 
8623
        ld_shlibs=no
 
8624
        cat <<EOF 1>&2
 
8625
 
 
8626
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8627
*** to be unable to reliably create shared libraries on AIX.
 
8628
*** Therefore, libtool is disabling shared libraries support.  If you
 
8629
*** really care for shared libraries, you may want to modify your PATH
 
8630
*** so that a non-GNU linker is found, and then restart.
 
8631
 
 
8632
EOF
 
8633
      fi
 
8634
      ;;
 
8635
 
 
8636
    amigaos*)
 
8637
      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)'
 
8638
      hardcode_libdir_flag_spec='-L$libdir'
 
8639
      hardcode_minus_L=yes
 
8640
 
 
8641
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8642
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8643
      # to version 4, is to share data among multiple programs linked
 
8644
      # with the same dynamic library.  Since this doesn't match the
 
8645
      # behavior of shared libraries on other platforms, we can't use
 
8646
      # them.
 
8647
      ld_shlibs=no
 
8648
      ;;
 
8649
 
 
8650
    beos*)
 
8651
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8652
        allow_undefined_flag=unsupported
 
8653
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8654
        # support --undefined.  This deserves some investigation.  FIXME
 
8655
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8656
      else
 
8657
        ld_shlibs=no
 
8658
      fi
 
8659
      ;;
 
8660
 
 
8661
    cygwin* | mingw* | pw32*)
 
8662
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8663
      # as there is no search path for DLLs.
 
8664
      hardcode_libdir_flag_spec='-L$libdir'
 
8665
      allow_undefined_flag=unsupported
 
8666
      always_export_symbols=no
 
8667
      enable_shared_with_static_runtimes=yes
 
8668
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8669
 
 
8670
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8671
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
8672
        # If the export-symbols file already is a .def file (1st line
 
8673
        # is EXPORTS), use it as is; otherwise, prepend...
 
8674
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8675
          cp $export_symbols $output_objdir/$soname.def;
 
8676
        else
 
8677
          echo EXPORTS > $output_objdir/$soname.def;
 
8678
          cat $export_symbols >> $output_objdir/$soname.def;
 
8679
        fi~
 
8680
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
8681
      else
 
8682
        ld_shlibs=no
 
8683
      fi
 
8684
      ;;
 
8685
 
 
8686
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
8687
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8688
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8689
        wlarc=
 
8690
      else
 
8691
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8692
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8693
      fi
 
8694
      ;;
 
8695
 
 
8696
    solaris* | sysv5*)
 
8697
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8698
        ld_shlibs=no
 
8699
        cat <<EOF 1>&2
 
8700
 
 
8701
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8702
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8703
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8704
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8705
*** your PATH or compiler configuration so that the native linker is
 
8706
*** used, and then restart.
 
8707
 
 
8708
EOF
 
8709
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8710
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8711
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8712
      else
 
8713
        ld_shlibs=no
 
8714
      fi
 
8715
      ;;
 
8716
 
 
8717
    sunos4*)
 
8718
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8719
      wlarc=
 
8720
      hardcode_direct=yes
 
8721
      hardcode_shlibpath_var=no
 
8722
      ;;
 
8723
 
 
8724
  linux*)
 
8725
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8726
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8727
        archive_cmds="$tmp_archive_cmds"
 
8728
      supports_anon_versioning=no
 
8729
      case `$LD -v 2>/dev/null` in
 
8730
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8731
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8732
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8733
        *\ 2.11.*) ;; # other 2.11 versions
 
8734
        *) supports_anon_versioning=yes ;;
 
8735
      esac
 
8736
      if test $supports_anon_versioning = yes; then
 
8737
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8738
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8739
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
8740
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8741
      else
 
8742
        archive_expsym_cmds="$tmp_archive_cmds"
 
8743
      fi
 
8744
      link_all_deplibs=no
 
8745
    else
 
8746
      ld_shlibs=no
 
8747
    fi
 
8748
    ;;
 
8749
 
 
8750
    *)
 
8751
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8752
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8753
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8754
      else
 
8755
        ld_shlibs=no
 
8756
      fi
 
8757
      ;;
 
8758
    esac
 
8759
 
 
8760
    if test "$ld_shlibs" = yes; then
 
8761
      runpath_var=LD_RUN_PATH
 
8762
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8763
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
8764
      # ancient GNU ld didn't support --whole-archive et. al.
 
8765
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8766
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8767
      else
 
8768
        whole_archive_flag_spec=
 
8769
      fi
 
8770
    fi
 
8771
  else
 
8772
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8773
    case $host_os in
 
8774
    aix3*)
 
8775
      allow_undefined_flag=unsupported
 
8776
      always_export_symbols=yes
 
8777
      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'
 
8778
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8779
      # are no directories specified by -L.
 
8780
      hardcode_minus_L=yes
 
8781
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8782
        # Neither direct hardcoding nor static linking is supported with a
 
8783
        # broken collect2.
 
8784
        hardcode_direct=unsupported
 
8785
      fi
 
8786
      ;;
 
8787
 
 
8788
    aix4* | aix5*)
 
8789
      if test "$host_cpu" = ia64; then
 
8790
        # On IA64, the linker does run time linking by default, so we don't
 
8791
        # have to do anything special.
 
8792
        aix_use_runtimelinking=no
 
8793
        exp_sym_flag='-Bexport'
 
8794
        no_entry_flag=""
 
8795
      else
 
8796
        # If we're using GNU nm, then we don't want the "-C" option.
 
8797
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8798
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8799
          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'
 
8800
        else
 
8801
          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'
 
8802
        fi
 
8803
        aix_use_runtimelinking=no
 
8804
 
 
8805
        # Test if we are trying to use run time linking or normal
 
8806
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8807
        # need to do runtime linking.
 
8808
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8809
          for ld_flag in $LDFLAGS; do
 
8810
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8811
            aix_use_runtimelinking=yes
 
8812
            break
 
8813
          fi
 
8814
          done
 
8815
        esac
 
8816
 
 
8817
        exp_sym_flag='-bexport'
 
8818
        no_entry_flag='-bnoentry'
 
8819
      fi
 
8820
 
 
8821
      # When large executables or shared objects are built, AIX ld can
 
8822
      # have problems creating the table of contents.  If linking a library
 
8823
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8824
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8825
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8826
 
 
8827
      archive_cmds=''
 
8828
      hardcode_direct=yes
 
8829
      hardcode_libdir_separator=':'
 
8830
      link_all_deplibs=yes
 
8831
 
 
8832
      if test "$GCC" = yes; then
 
8833
        case $host_os in aix4.012|aix4.012.*)
 
8834
        # We only want to do this on AIX 4.2 and lower, the check
 
8835
        # below for broken collect2 doesn't work under 4.3+
 
8836
          collect2name=`${CC} -print-prog-name=collect2`
 
8837
          if test -f "$collect2name" && \
 
8838
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8839
          then
 
8840
          # We have reworked collect2
 
8841
          hardcode_direct=yes
 
8842
          else
 
8843
          # We have old collect2
 
8844
          hardcode_direct=unsupported
 
8845
          # It fails to find uninstalled libraries when the uninstalled
 
8846
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8847
          # to unsupported forces relinking
 
8848
          hardcode_minus_L=yes
 
8849
          hardcode_libdir_flag_spec='-L$libdir'
 
8850
          hardcode_libdir_separator=
 
8851
          fi
 
8852
        esac
 
8853
        shared_flag='-shared'
 
8854
      else
 
8855
        # not using gcc
 
8856
        if test "$host_cpu" = ia64; then
 
8857
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8858
        # chokes on -Wl,-G. The following line is correct:
 
8859
          shared_flag='-G'
 
8860
        else
 
8861
        if test "$aix_use_runtimelinking" = yes; then
 
8862
            shared_flag='${wl}-G'
 
8863
          else
 
8864
            shared_flag='${wl}-bM:SRE'
 
8865
        fi
 
8866
        fi
 
8867
      fi
 
8868
 
 
8869
      # It seems that -bexpall does not export symbols beginning with
 
8870
      # underscore (_), so it is better to generate a list of symbols to export.
 
8871
      always_export_symbols=yes
 
8872
      if test "$aix_use_runtimelinking" = yes; then
 
8873
        # Warning - without using the other runtime loading flags (-brtl),
 
8874
        # -berok will link without error, but may produce a broken library.
 
8875
        allow_undefined_flag='-berok'
 
8876
       # Determine the default libpath from the value encoded in an empty executable.
 
8877
       cat >conftest.$ac_ext <<_ACEOF
 
8878
/* confdefs.h.  */
 
8879
_ACEOF
 
8880
cat confdefs.h >>conftest.$ac_ext
 
8881
cat >>conftest.$ac_ext <<_ACEOF
 
8882
/* end confdefs.h.  */
 
8883
 
 
8884
int
 
8885
main ()
 
8886
{
 
8887
 
 
8888
  ;
 
8889
  return 0;
 
8890
}
 
8891
_ACEOF
 
8892
rm -f conftest.$ac_objext conftest$ac_exeext
 
8893
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8894
  (eval $ac_link) 2>conftest.er1
 
8895
  ac_status=$?
 
8896
  grep -v '^ *+' conftest.er1 >conftest.err
 
8897
  rm -f conftest.er1
 
8898
  cat conftest.err >&5
 
8899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8900
  (exit $ac_status); } &&
 
8901
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8903
  (eval $ac_try) 2>&5
 
8904
  ac_status=$?
 
8905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8906
  (exit $ac_status); }; } &&
 
8907
         { ac_try='test -s conftest$ac_exeext'
 
8908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8909
  (eval $ac_try) 2>&5
 
8910
  ac_status=$?
 
8911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8912
  (exit $ac_status); }; }; then
 
8913
 
 
8914
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8915
}'`
 
8916
# Check for a 64-bit object if we didn't find anything.
 
8917
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; }
 
8918
}'`; fi
 
8919
else
 
8920
  echo "$as_me: failed program was:" >&5
 
8921
sed 's/^/| /' conftest.$ac_ext >&5
 
8922
 
 
8923
fi
 
8924
rm -f conftest.err conftest.$ac_objext \
 
8925
      conftest$ac_exeext conftest.$ac_ext
 
8926
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8927
 
 
8928
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8929
        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"
 
8930
       else
 
8931
        if test "$host_cpu" = ia64; then
 
8932
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8933
          allow_undefined_flag="-z nodefs"
 
8934
          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"
 
8935
        else
 
8936
         # Determine the default libpath from the value encoded in an empty executable.
 
8937
         cat >conftest.$ac_ext <<_ACEOF
 
8938
/* confdefs.h.  */
 
8939
_ACEOF
 
8940
cat confdefs.h >>conftest.$ac_ext
 
8941
cat >>conftest.$ac_ext <<_ACEOF
 
8942
/* end confdefs.h.  */
 
8943
 
 
8944
int
 
8945
main ()
 
8946
{
 
8947
 
 
8948
  ;
 
8949
  return 0;
 
8950
}
 
8951
_ACEOF
 
8952
rm -f conftest.$ac_objext conftest$ac_exeext
 
8953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8954
  (eval $ac_link) 2>conftest.er1
 
8955
  ac_status=$?
 
8956
  grep -v '^ *+' conftest.er1 >conftest.err
 
8957
  rm -f conftest.er1
 
8958
  cat conftest.err >&5
 
8959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8960
  (exit $ac_status); } &&
 
8961
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8962
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8963
  (eval $ac_try) 2>&5
 
8964
  ac_status=$?
 
8965
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8966
  (exit $ac_status); }; } &&
 
8967
         { ac_try='test -s conftest$ac_exeext'
 
8968
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8969
  (eval $ac_try) 2>&5
 
8970
  ac_status=$?
 
8971
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8972
  (exit $ac_status); }; }; then
 
8973
 
 
8974
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8975
}'`
 
8976
# Check for a 64-bit object if we didn't find anything.
 
8977
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; }
 
8978
}'`; fi
 
8979
else
 
8980
  echo "$as_me: failed program was:" >&5
 
8981
sed 's/^/| /' conftest.$ac_ext >&5
 
8982
 
 
8983
fi
 
8984
rm -f conftest.err conftest.$ac_objext \
 
8985
      conftest$ac_exeext conftest.$ac_ext
 
8986
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8987
 
 
8988
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8989
          # Warning - without using the other run time loading flags,
 
8990
          # -berok will link without error, but may produce a broken library.
 
8991
          no_undefined_flag=' ${wl}-bernotok'
 
8992
          allow_undefined_flag=' ${wl}-berok'
 
8993
          # -bexpall does not export symbols beginning with underscore (_)
 
8994
          always_export_symbols=yes
 
8995
          # Exported symbols can be pulled into shared objects from archives
 
8996
          whole_archive_flag_spec=' '
 
8997
          archive_cmds_need_lc=yes
 
8998
          # This is similar to how AIX traditionally builds it's shared libraries.
 
8999
          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'
 
9000
        fi
 
9001
      fi
 
9002
      ;;
 
9003
 
 
9004
    amigaos*)
 
9005
      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)'
 
9006
      hardcode_libdir_flag_spec='-L$libdir'
 
9007
      hardcode_minus_L=yes
 
9008
      # see comment about different semantics on the GNU ld section
 
9009
      ld_shlibs=no
 
9010
      ;;
 
9011
 
 
9012
    bsdi4*)
 
9013
      export_dynamic_flag_spec=-rdynamic
 
9014
      ;;
 
9015
 
 
9016
    cygwin* | mingw* | pw32*)
 
9017
      # When not using gcc, we currently assume that we are using
 
9018
      # Microsoft Visual C++.
 
9019
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9020
      # no search path for DLLs.
 
9021
      hardcode_libdir_flag_spec=' '
 
9022
      allow_undefined_flag=unsupported
 
9023
      # Tell ltmain to make .lib files, not .a files.
 
9024
      libext=lib
 
9025
      # Tell ltmain to make .dll files, not .so files.
 
9026
      shrext_cmds=".dll"
 
9027
      # FIXME: Setting linknames here is a bad hack.
 
9028
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9029
      # The linker will automatically build a .lib file if we build a DLL.
 
9030
      old_archive_From_new_cmds='true'
 
9031
      # FIXME: Should let the user specify the lib program.
 
9032
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9033
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9034
      enable_shared_with_static_runtimes=yes
 
9035
      ;;
 
9036
 
 
9037
    darwin* | rhapsody*)
 
9038
    if test "$GXX" = yes ; then
 
9039
      archive_cmds_need_lc=no
 
9040
      case "$host_os" in
 
9041
      rhapsody* | darwin1.[012])
 
9042
        allow_undefined_flag='-undefined suppress'
 
9043
        ;;
 
9044
      *) # Darwin 1.3 on
 
9045
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9046
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9047
      else
 
9048
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9049
          10.[012])
 
9050
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9051
            ;;
 
9052
          10.*)
 
9053
            allow_undefined_flag='-undefined dynamic_lookup'
 
9054
            ;;
 
9055
        esac
 
9056
      fi
 
9057
        ;;
 
9058
      esac
 
9059
        lt_int_apple_cc_single_mod=no
 
9060
        output_verbose_link_cmd='echo'
 
9061
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
9062
          lt_int_apple_cc_single_mod=yes
 
9063
        fi
 
9064
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9065
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9066
        else
 
9067
        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'
 
9068
      fi
 
9069
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9070
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9071
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
9072
          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}'
 
9073
        else
 
9074
          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}'
 
9075
        fi
 
9076
          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}'
 
9077
      hardcode_direct=no
 
9078
      hardcode_automatic=yes
 
9079
      hardcode_shlibpath_var=unsupported
 
9080
      whole_archive_flag_spec='-all_load $convenience'
 
9081
      link_all_deplibs=yes
 
9082
    else
 
9083
      ld_shlibs=no
 
9084
    fi
 
9085
      ;;
 
9086
 
 
9087
    dgux*)
 
9088
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9089
      hardcode_libdir_flag_spec='-L$libdir'
 
9090
      hardcode_shlibpath_var=no
 
9091
      ;;
 
9092
 
 
9093
    freebsd1*)
 
9094
      ld_shlibs=no
 
9095
      ;;
 
9096
 
 
9097
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9098
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9099
    # does not break anything, and helps significantly (at the cost of a little
 
9100
    # extra space).
 
9101
    freebsd2.2*)
 
9102
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9103
      hardcode_libdir_flag_spec='-R$libdir'
 
9104
      hardcode_direct=yes
 
9105
      hardcode_shlibpath_var=no
 
9106
      ;;
 
9107
 
 
9108
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9109
    freebsd2*)
 
9110
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9111
      hardcode_direct=yes
 
9112
      hardcode_minus_L=yes
 
9113
      hardcode_shlibpath_var=no
 
9114
      ;;
 
9115
 
 
9116
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9117
    freebsd* | kfreebsd*-gnu)
 
9118
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9119
      hardcode_libdir_flag_spec='-R$libdir'
 
9120
      hardcode_direct=yes
 
9121
      hardcode_shlibpath_var=no
 
9122
      ;;
 
9123
 
 
9124
    hpux9*)
 
9125
      if test "$GCC" = yes; then
 
9126
        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'
 
9127
      else
 
9128
        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'
 
9129
      fi
 
9130
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9131
      hardcode_libdir_separator=:
 
9132
      hardcode_direct=yes
 
9133
 
 
9134
      # hardcode_minus_L: Not really in the search PATH,
 
9135
      # but as the default location of the library.
 
9136
      hardcode_minus_L=yes
 
9137
      export_dynamic_flag_spec='${wl}-E'
 
9138
      ;;
 
9139
 
 
9140
    hpux10* | hpux11*)
 
9141
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9142
        case "$host_cpu" in
 
9143
        hppa*64*|ia64*)
 
9144
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9145
          ;;
 
9146
        *)
 
9147
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9148
          ;;
 
9149
        esac
 
9150
      else
 
9151
        case "$host_cpu" in
 
9152
        hppa*64*|ia64*)
 
9153
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9154
          ;;
 
9155
        *)
 
9156
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9157
          ;;
 
9158
        esac
 
9159
      fi
 
9160
      if test "$with_gnu_ld" = no; then
 
9161
        case "$host_cpu" in
 
9162
        hppa*64*)
 
9163
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9164
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9165
          hardcode_libdir_separator=:
 
9166
          hardcode_direct=no
 
9167
          hardcode_shlibpath_var=no
 
9168
          ;;
 
9169
        ia64*)
 
9170
          hardcode_libdir_flag_spec='-L$libdir'
 
9171
          hardcode_direct=no
 
9172
          hardcode_shlibpath_var=no
 
9173
 
 
9174
          # hardcode_minus_L: Not really in the search PATH,
 
9175
          # but as the default location of the library.
 
9176
          hardcode_minus_L=yes
 
9177
          ;;
 
9178
        *)
 
9179
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9180
          hardcode_libdir_separator=:
 
9181
          hardcode_direct=yes
 
9182
          export_dynamic_flag_spec='${wl}-E'
 
9183
 
 
9184
          # hardcode_minus_L: Not really in the search PATH,
 
9185
          # but as the default location of the library.
 
9186
          hardcode_minus_L=yes
 
9187
          ;;
 
9188
        esac
 
9189
      fi
 
9190
      ;;
 
9191
 
 
9192
    irix5* | irix6* | nonstopux*)
 
9193
      if test "$GCC" = yes; then
 
9194
        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'
 
9195
      else
 
9196
        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'
 
9197
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9198
      fi
 
9199
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9200
      hardcode_libdir_separator=:
 
9201
      link_all_deplibs=yes
 
9202
      ;;
 
9203
 
 
9204
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
9205
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9206
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9207
      else
 
9208
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9209
      fi
 
9210
      hardcode_libdir_flag_spec='-R$libdir'
 
9211
      hardcode_direct=yes
 
9212
      hardcode_shlibpath_var=no
 
9213
      ;;
 
9214
 
 
9215
    newsos6)
 
9216
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9217
      hardcode_direct=yes
 
9218
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9219
      hardcode_libdir_separator=:
 
9220
      hardcode_shlibpath_var=no
 
9221
      ;;
 
9222
 
 
9223
    openbsd*)
 
9224
      hardcode_direct=yes
 
9225
      hardcode_shlibpath_var=no
 
9226
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9227
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9228
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9229
        export_dynamic_flag_spec='${wl}-E'
 
9230
      else
 
9231
       case $host_os in
 
9232
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9233
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9234
           hardcode_libdir_flag_spec='-R$libdir'
 
9235
           ;;
 
9236
         *)
 
9237
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9238
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9239
           ;;
 
9240
       esac
 
9241
      fi
 
9242
      ;;
 
9243
 
 
9244
    os2*)
 
9245
      hardcode_libdir_flag_spec='-L$libdir'
 
9246
      hardcode_minus_L=yes
 
9247
      allow_undefined_flag=unsupported
 
9248
      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'
 
9249
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9250
      ;;
 
9251
 
 
9252
    osf3*)
 
9253
      if test "$GCC" = yes; then
 
9254
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9255
        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'
 
9256
      else
 
9257
        allow_undefined_flag=' -expect_unresolved \*'
 
9258
        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'
 
9259
      fi
 
9260
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9261
      hardcode_libdir_separator=:
 
9262
      ;;
 
9263
 
 
9264
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9265
      if test "$GCC" = yes; then
 
9266
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9267
        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'
 
9268
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9269
      else
 
9270
        allow_undefined_flag=' -expect_unresolved \*'
 
9271
        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'
 
9272
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9273
        $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'
 
9274
 
 
9275
        # Both c and cxx compiler support -rpath directly
 
9276
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9277
      fi
 
9278
      hardcode_libdir_separator=:
 
9279
      ;;
 
9280
 
 
9281
    sco3.2v5*)
 
9282
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9283
      hardcode_shlibpath_var=no
 
9284
      export_dynamic_flag_spec='${wl}-Bexport'
 
9285
      runpath_var=LD_RUN_PATH
 
9286
      hardcode_runpath_var=yes
 
9287
      ;;
 
9288
 
 
9289
    solaris*)
 
9290
      no_undefined_flag=' -z text'
 
9291
      if test "$GCC" = yes; then
 
9292
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9293
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9294
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9295
      else
 
9296
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9297
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9298
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9299
      fi
 
9300
      hardcode_libdir_flag_spec='-R$libdir'
 
9301
      hardcode_shlibpath_var=no
 
9302
      case $host_os in
 
9303
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9304
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9305
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
9306
      esac
 
9307
      link_all_deplibs=yes
 
9308
      ;;
 
9309
 
 
9310
    sunos4*)
 
9311
      if test "x$host_vendor" = xsequent; then
 
9312
        # Use $CC to link under sequent, because it throws in some extra .o
 
9313
        # files that make .init and .fini sections work.
 
9314
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9315
      else
 
9316
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9317
      fi
 
9318
      hardcode_libdir_flag_spec='-L$libdir'
 
9319
      hardcode_direct=yes
 
9320
      hardcode_minus_L=yes
 
9321
      hardcode_shlibpath_var=no
 
9322
      ;;
 
9323
 
 
9324
    sysv4)
 
9325
      case $host_vendor in
 
9326
        sni)
 
9327
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9328
          hardcode_direct=yes # is this really true???
 
9329
        ;;
 
9330
        siemens)
 
9331
          ## LD is ld it makes a PLAMLIB
 
9332
          ## CC just makes a GrossModule.
 
9333
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9334
          reload_cmds='$CC -r -o $output$reload_objs'
 
9335
          hardcode_direct=no
 
9336
        ;;
 
9337
        motorola)
 
9338
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9339
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9340
        ;;
 
9341
      esac
 
9342
      runpath_var='LD_RUN_PATH'
 
9343
      hardcode_shlibpath_var=no
 
9344
      ;;
 
9345
 
 
9346
    sysv4.3*)
 
9347
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9348
      hardcode_shlibpath_var=no
 
9349
      export_dynamic_flag_spec='-Bexport'
 
9350
      ;;
 
9351
 
 
9352
    sysv4*MP*)
 
9353
      if test -d /usr/nec; then
 
9354
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9355
        hardcode_shlibpath_var=no
 
9356
        runpath_var=LD_RUN_PATH
 
9357
        hardcode_runpath_var=yes
 
9358
        ld_shlibs=yes
 
9359
      fi
 
9360
      ;;
 
9361
 
 
9362
    sysv4.2uw2*)
 
9363
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9364
      hardcode_direct=yes
 
9365
      hardcode_minus_L=no
 
9366
      hardcode_shlibpath_var=no
 
9367
      hardcode_runpath_var=yes
 
9368
      runpath_var=LD_RUN_PATH
 
9369
      ;;
 
9370
 
 
9371
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
9372
      no_undefined_flag='${wl}-z ${wl}text'
 
9373
      if test "$GCC" = yes; then
 
9374
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9375
      else
 
9376
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9377
      fi
 
9378
      runpath_var='LD_RUN_PATH'
 
9379
      hardcode_shlibpath_var=no
 
9380
      ;;
 
9381
 
 
9382
    sysv5*)
 
9383
      no_undefined_flag=' -z text'
 
9384
      # $CC -shared without GNU ld will not create a library from C++
 
9385
      # object files and a static libstdc++, better avoid it by now
 
9386
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9387
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9388
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9389
      hardcode_libdir_flag_spec=
 
9390
      hardcode_shlibpath_var=no
 
9391
      runpath_var='LD_RUN_PATH'
 
9392
      ;;
 
9393
 
 
9394
    uts4*)
 
9395
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9396
      hardcode_libdir_flag_spec='-L$libdir'
 
9397
      hardcode_shlibpath_var=no
 
9398
      ;;
 
9399
 
 
9400
    *)
 
9401
      ld_shlibs=no
 
9402
      ;;
 
9403
    esac
 
9404
  fi
 
9405
 
 
9406
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9407
echo "${ECHO_T}$ld_shlibs" >&6
 
9408
test "$ld_shlibs" = no && can_build_shared=no
 
9409
 
 
9410
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9411
if test "$GCC" = yes; then
 
9412
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9413
fi
 
9414
 
 
9415
#
 
9416
# Do we need to explicitly link libc?
 
9417
#
 
9418
case "x$archive_cmds_need_lc" in
 
9419
x|xyes)
 
9420
  # Assume -lc should be added
 
9421
  archive_cmds_need_lc=yes
 
9422
 
 
9423
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9424
    case $archive_cmds in
 
9425
    *'~'*)
 
9426
      # FIXME: we may have to deal with multi-command sequences.
 
9427
      ;;
 
9428
    '$CC '*)
 
9429
      # Test whether the compiler implicitly links with -lc since on some
 
9430
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9431
      # to ld, don't add -lc before -lgcc.
 
9432
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9433
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
9434
      $rm conftest*
 
9435
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9436
 
 
9437
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9438
  (eval $ac_compile) 2>&5
 
9439
  ac_status=$?
 
9440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9441
  (exit $ac_status); } 2>conftest.err; then
 
9442
        soname=conftest
 
9443
        lib=conftest
 
9444
        libobjs=conftest.$ac_objext
 
9445
        deplibs=
 
9446
        wl=$lt_prog_compiler_wl
 
9447
        compiler_flags=-v
 
9448
        linker_flags=-v
 
9449
        verstring=
 
9450
        output_objdir=.
 
9451
        libname=conftest
 
9452
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9453
        allow_undefined_flag=
 
9454
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9455
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9456
  ac_status=$?
 
9457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9458
  (exit $ac_status); }
 
9459
        then
 
9460
          archive_cmds_need_lc=no
 
9461
        else
 
9462
          archive_cmds_need_lc=yes
 
9463
        fi
 
9464
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9465
      else
 
9466
        cat conftest.err 1>&5
 
9467
      fi
 
9468
      $rm conftest*
 
9469
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9470
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
9471
      ;;
 
9472
    esac
 
9473
  fi
 
9474
  ;;
 
9475
esac
 
9476
 
 
9477
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9478
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
9479
library_names_spec=
 
9480
libname_spec='lib$name'
 
9481
soname_spec=
 
9482
shrext_cmds=".so"
 
9483
postinstall_cmds=
 
9484
postuninstall_cmds=
 
9485
finish_cmds=
 
9486
finish_eval=
 
9487
shlibpath_var=
 
9488
shlibpath_overrides_runpath=unknown
 
9489
version_type=none
 
9490
dynamic_linker="$host_os ld.so"
 
9491
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9492
if test "$GCC" = yes; then
 
9493
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9494
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
9495
    # if the path contains ";" then we assume it to be the separator
 
9496
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9497
    # assumed that no part of a normal pathname contains ";" but that should
 
9498
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9499
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9500
  else
 
9501
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9502
  fi
 
9503
else
 
9504
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9505
fi
 
9506
need_lib_prefix=unknown
 
9507
hardcode_into_libs=no
 
9508
 
 
9509
# when you set need_version to no, make sure it does not cause -set_version
 
9510
# flags to be left without arguments
 
9511
need_version=unknown
 
9512
 
 
9513
case $host_os in
 
9514
aix3*)
 
9515
  version_type=linux
 
9516
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9517
  shlibpath_var=LIBPATH
 
9518
 
 
9519
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9520
  soname_spec='${libname}${release}${shared_ext}$major'
 
9521
  ;;
 
9522
 
 
9523
aix4* | aix5*)
 
9524
  version_type=linux
 
9525
  need_lib_prefix=no
 
9526
  need_version=no
 
9527
  hardcode_into_libs=yes
 
9528
  if test "$host_cpu" = ia64; then
 
9529
    # AIX 5 supports IA64
 
9530
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9531
    shlibpath_var=LD_LIBRARY_PATH
 
9532
  else
 
9533
    # With GCC up to 2.95.x, collect2 would create an import file
 
9534
    # for dependence libraries.  The import file would start with
 
9535
    # the line `#! .'.  This would cause the generated library to
 
9536
    # depend on `.', always an invalid library.  This was fixed in
 
9537
    # development snapshots of GCC prior to 3.0.
 
9538
    case $host_os in
 
9539
      aix4 | aix4.[01] | aix4.[01].*)
 
9540
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9541
           echo ' yes '
 
9542
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9543
        :
 
9544
      else
 
9545
        can_build_shared=no
 
9546
      fi
 
9547
      ;;
 
9548
    esac
 
9549
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9550
    # soname into executable. Probably we can add versioning support to
 
9551
    # collect2, so additional links can be useful in future.
 
9552
    if test "$aix_use_runtimelinking" = yes; then
 
9553
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9554
      # instead of lib<name>.a to let people know that these are not
 
9555
      # typical AIX shared libraries.
 
9556
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9557
    else
 
9558
      # We preserve .a as extension for shared libraries through AIX4.2
 
9559
      # and later when we are not doing run time linking.
 
9560
      library_names_spec='${libname}${release}.a $libname.a'
 
9561
      soname_spec='${libname}${release}${shared_ext}$major'
 
9562
    fi
 
9563
    shlibpath_var=LIBPATH
 
9564
  fi
 
9565
  ;;
 
9566
 
 
9567
amigaos*)
 
9568
  library_names_spec='$libname.ixlibrary $libname.a'
 
9569
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9570
  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'
 
9571
  ;;
 
9572
 
 
9573
beos*)
 
9574
  library_names_spec='${libname}${shared_ext}'
 
9575
  dynamic_linker="$host_os ld.so"
 
9576
  shlibpath_var=LIBRARY_PATH
 
9577
  ;;
 
9578
 
 
9579
bsdi4*)
 
9580
  version_type=linux
 
9581
  need_version=no
 
9582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9583
  soname_spec='${libname}${release}${shared_ext}$major'
 
9584
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9585
  shlibpath_var=LD_LIBRARY_PATH
 
9586
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9587
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9588
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9589
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9590
  # libtool to hard-code these into programs
 
9591
  ;;
 
9592
 
 
9593
cygwin* | mingw* | pw32*)
 
9594
  version_type=windows
 
9595
  shrext_cmds=".dll"
 
9596
  need_version=no
 
9597
  need_lib_prefix=no
 
9598
 
 
9599
  case $GCC,$host_os in
 
9600
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9601
    library_names_spec='$libname.dll.a'
 
9602
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9603
    postinstall_cmds='base_file=`basename \${file}`~
 
9604
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9605
      dldir=$destdir/`dirname \$dlpath`~
 
9606
      test -d \$dldir || mkdir -p \$dldir~
 
9607
      $install_prog $dir/$dlname \$dldir/$dlname'
 
9608
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9609
      dlpath=$dir/\$dldll~
 
9610
       $rm \$dlpath'
 
9611
    shlibpath_overrides_runpath=yes
 
9612
 
 
9613
    case $host_os in
 
9614
    cygwin*)
 
9615
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9616
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9617
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9618
      ;;
 
9619
    mingw*)
 
9620
      # MinGW DLLs use traditional 'lib' prefix
 
9621
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9622
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9623
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9624
        # It is most probably a Windows format PATH printed by
 
9625
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9626
        # path with ; separators, and with drive letters. We can handle the
 
9627
        # drive letters (cygwin fileutils understands them), so leave them,
 
9628
        # especially as we might pass files found there to a mingw objdump,
 
9629
        # which wouldn't understand a cygwinified path. Ahh.
 
9630
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9631
      else
 
9632
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9633
      fi
 
9634
      ;;
 
9635
    pw32*)
 
9636
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9637
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
9638
      ;;
 
9639
    esac
 
9640
    ;;
 
9641
 
 
9642
  *)
 
9643
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9644
    ;;
 
9645
  esac
 
9646
  dynamic_linker='Win32 ld.exe'
 
9647
  # FIXME: first we should search . and the directory the executable is in
 
9648
  shlibpath_var=PATH
 
9649
  ;;
 
9650
 
 
9651
darwin* | rhapsody*)
 
9652
  dynamic_linker="$host_os dyld"
 
9653
  version_type=darwin
 
9654
  need_lib_prefix=no
 
9655
  need_version=no
 
9656
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9657
  soname_spec='${libname}${release}${major}$shared_ext'
 
9658
  shlibpath_overrides_runpath=yes
 
9659
  shlibpath_var=DYLD_LIBRARY_PATH
 
9660
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
9661
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
9662
  if test "$GCC" = yes; then
 
9663
    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"`
 
9664
  else
 
9665
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
9666
  fi
 
9667
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9668
  ;;
 
9669
 
 
9670
dgux*)
 
9671
  version_type=linux
 
9672
  need_lib_prefix=no
 
9673
  need_version=no
 
9674
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9675
  soname_spec='${libname}${release}${shared_ext}$major'
 
9676
  shlibpath_var=LD_LIBRARY_PATH
 
9677
  ;;
 
9678
 
 
9679
freebsd1*)
 
9680
  dynamic_linker=no
 
9681
  ;;
 
9682
 
 
9683
kfreebsd*-gnu)
 
9684
  version_type=linux
 
9685
  need_lib_prefix=no
 
9686
  need_version=no
 
9687
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9688
  soname_spec='${libname}${release}${shared_ext}$major'
 
9689
  shlibpath_var=LD_LIBRARY_PATH
 
9690
  shlibpath_overrides_runpath=no
 
9691
  hardcode_into_libs=yes
 
9692
  dynamic_linker='GNU ld.so'
 
9693
  ;;
 
9694
 
 
9695
freebsd*)
 
9696
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
9697
  version_type=freebsd-$objformat
 
9698
  case $version_type in
 
9699
    freebsd-elf*)
 
9700
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9701
      need_version=no
 
9702
      need_lib_prefix=no
 
9703
      ;;
 
9704
    freebsd-*)
 
9705
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9706
      need_version=yes
 
9707
      ;;
 
9708
  esac
 
9709
  shlibpath_var=LD_LIBRARY_PATH
 
9710
  case $host_os in
 
9711
  freebsd2*)
 
9712
    shlibpath_overrides_runpath=yes
 
9713
    ;;
 
9714
  freebsd3.01* | freebsdelf3.01*)
 
9715
    shlibpath_overrides_runpath=yes
 
9716
    hardcode_into_libs=yes
 
9717
    ;;
 
9718
  *) # from 3.2 on
 
9719
    shlibpath_overrides_runpath=no
 
9720
    hardcode_into_libs=yes
 
9721
    ;;
 
9722
  esac
 
9723
  ;;
 
9724
 
 
9725
gnu*)
 
9726
  version_type=linux
 
9727
  need_lib_prefix=no
 
9728
  need_version=no
 
9729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9730
  soname_spec='${libname}${release}${shared_ext}$major'
 
9731
  shlibpath_var=LD_LIBRARY_PATH
 
9732
  hardcode_into_libs=yes
 
9733
  ;;
 
9734
 
 
9735
hpux9* | hpux10* | hpux11*)
 
9736
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9737
  # link against other versions.
 
9738
  version_type=sunos
 
9739
  need_lib_prefix=no
 
9740
  need_version=no
 
9741
  case "$host_cpu" in
 
9742
  ia64*)
 
9743
    shrext_cmds='.so'
 
9744
    hardcode_into_libs=yes
 
9745
    dynamic_linker="$host_os dld.so"
 
9746
    shlibpath_var=LD_LIBRARY_PATH
 
9747
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9748
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9749
    soname_spec='${libname}${release}${shared_ext}$major'
 
9750
    if test "X$HPUX_IA64_MODE" = X32; then
 
9751
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9752
    else
 
9753
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9754
    fi
 
9755
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9756
    ;;
 
9757
   hppa*64*)
 
9758
     shrext_cmds='.sl'
 
9759
     hardcode_into_libs=yes
 
9760
     dynamic_linker="$host_os dld.sl"
 
9761
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9762
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9763
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9764
     soname_spec='${libname}${release}${shared_ext}$major'
 
9765
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9766
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9767
     ;;
 
9768
   *)
 
9769
    shrext_cmds='.sl'
 
9770
    dynamic_linker="$host_os dld.sl"
 
9771
    shlibpath_var=SHLIB_PATH
 
9772
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9773
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9774
    soname_spec='${libname}${release}${shared_ext}$major'
 
9775
    ;;
 
9776
  esac
 
9777
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9778
  postinstall_cmds='chmod 555 $lib'
 
9779
  ;;
 
9780
 
 
9781
irix5* | irix6* | nonstopux*)
 
9782
  case $host_os in
 
9783
    nonstopux*) version_type=nonstopux ;;
 
9784
    *)
 
9785
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9786
                version_type=linux
 
9787
        else
 
9788
                version_type=irix
 
9789
        fi ;;
 
9790
  esac
 
9791
  need_lib_prefix=no
 
9792
  need_version=no
 
9793
  soname_spec='${libname}${release}${shared_ext}$major'
 
9794
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9795
  case $host_os in
 
9796
  irix5* | nonstopux*)
 
9797
    libsuff= shlibsuff=
 
9798
    ;;
 
9799
  *)
 
9800
    case $LD in # libtool.m4 will add one of these switches to LD
 
9801
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9802
      libsuff= shlibsuff= libmagic=32-bit;;
 
9803
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9804
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9805
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9806
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9807
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9808
    esac
 
9809
    ;;
 
9810
  esac
 
9811
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9812
  shlibpath_overrides_runpath=no
 
9813
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9814
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9815
  hardcode_into_libs=yes
 
9816
  ;;
 
9817
 
 
9818
# No shared lib support for Linux oldld, aout, or coff.
 
9819
linux*oldld* | linux*aout* | linux*coff*)
 
9820
  dynamic_linker=no
 
9821
  ;;
 
9822
 
 
9823
# This must be Linux ELF.
 
9824
linux*)
 
9825
  version_type=linux
 
9826
  need_lib_prefix=no
 
9827
  need_version=no
 
9828
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9829
  soname_spec='${libname}${release}${shared_ext}$major'
 
9830
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9831
  shlibpath_var=LD_LIBRARY_PATH
 
9832
  shlibpath_overrides_runpath=no
 
9833
  # This implies no fast_install, which is unacceptable.
 
9834
  # Some rework will be needed to allow for fast_install
 
9835
  # before this can be enabled.
 
9836
  hardcode_into_libs=yes
 
9837
 
 
9838
  # Append ld.so.conf contents to the search path
 
9839
  if test -f /etc/ld.so.conf; then
 
9840
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
9841
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9842
  fi
 
9843
 
 
9844
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9845
  # powerpc, because MkLinux only supported shared libraries with the
 
9846
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9847
  # most powerpc-linux boxes support dynamic linking these days and
 
9848
  # people can always --disable-shared, the test was removed, and we
 
9849
  # assume the GNU/Linux dynamic linker is in use.
 
9850
  dynamic_linker='GNU/Linux ld.so'
 
9851
  ;;
 
9852
 
 
9853
netbsdelf*-gnu)
 
9854
  version_type=linux
 
9855
  need_lib_prefix=no
 
9856
  need_version=no
 
9857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9858
  soname_spec='${libname}${release}${shared_ext}$major'
 
9859
  shlibpath_var=LD_LIBRARY_PATH
 
9860
  shlibpath_overrides_runpath=no
 
9861
  hardcode_into_libs=yes
 
9862
  dynamic_linker='NetBSD ld.elf_so'
 
9863
  ;;
 
9864
 
 
9865
knetbsd*-gnu)
 
9866
  version_type=linux
 
9867
  need_lib_prefix=no
 
9868
  need_version=no
 
9869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9870
  soname_spec='${libname}${release}${shared_ext}$major'
 
9871
  shlibpath_var=LD_LIBRARY_PATH
 
9872
  shlibpath_overrides_runpath=no
 
9873
  hardcode_into_libs=yes
 
9874
  dynamic_linker='GNU ld.so'
 
9875
  ;;
 
9876
 
 
9877
netbsd*)
 
9878
  version_type=sunos
 
9879
  need_lib_prefix=no
 
9880
  need_version=no
 
9881
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9882
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9883
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9884
    dynamic_linker='NetBSD (a.out) ld.so'
 
9885
  else
 
9886
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9887
    soname_spec='${libname}${release}${shared_ext}$major'
 
9888
    dynamic_linker='NetBSD ld.elf_so'
 
9889
  fi
 
9890
  shlibpath_var=LD_LIBRARY_PATH
 
9891
  shlibpath_overrides_runpath=yes
 
9892
  hardcode_into_libs=yes
 
9893
  ;;
 
9894
 
 
9895
newsos6)
 
9896
  version_type=linux
 
9897
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9898
  shlibpath_var=LD_LIBRARY_PATH
 
9899
  shlibpath_overrides_runpath=yes
 
9900
  ;;
 
9901
 
 
9902
nto-qnx*)
 
9903
  version_type=linux
 
9904
  need_lib_prefix=no
 
9905
  need_version=no
 
9906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9907
  soname_spec='${libname}${release}${shared_ext}$major'
 
9908
  shlibpath_var=LD_LIBRARY_PATH
 
9909
  shlibpath_overrides_runpath=yes
 
9910
  ;;
 
9911
 
 
9912
openbsd*)
 
9913
  version_type=sunos
 
9914
  need_lib_prefix=no
 
9915
  need_version=yes
 
9916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9917
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9918
  shlibpath_var=LD_LIBRARY_PATH
 
9919
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9920
    case $host_os in
 
9921
      openbsd2.[89] | openbsd2.[89].*)
 
9922
        shlibpath_overrides_runpath=no
 
9923
        ;;
 
9924
      *)
 
9925
        shlibpath_overrides_runpath=yes
 
9926
        ;;
 
9927
      esac
 
9928
  else
 
9929
    shlibpath_overrides_runpath=yes
 
9930
  fi
 
9931
  ;;
 
9932
 
 
9933
os2*)
 
9934
  libname_spec='$name'
 
9935
  shrext_cmds=".dll"
 
9936
  need_lib_prefix=no
 
9937
  library_names_spec='$libname${shared_ext} $libname.a'
 
9938
  dynamic_linker='OS/2 ld.exe'
 
9939
  shlibpath_var=LIBPATH
 
9940
  ;;
 
9941
 
 
9942
osf3* | osf4* | osf5*)
 
9943
  version_type=osf
 
9944
  need_lib_prefix=no
 
9945
  need_version=no
 
9946
  soname_spec='${libname}${release}${shared_ext}$major'
 
9947
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9948
  shlibpath_var=LD_LIBRARY_PATH
 
9949
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9950
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9951
  ;;
 
9952
 
 
9953
sco3.2v5*)
 
9954
  version_type=osf
 
9955
  soname_spec='${libname}${release}${shared_ext}$major'
 
9956
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9957
  shlibpath_var=LD_LIBRARY_PATH
 
9958
  ;;
 
9959
 
 
9960
solaris*)
 
9961
  version_type=linux
 
9962
  need_lib_prefix=no
 
9963
  need_version=no
 
9964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9965
  soname_spec='${libname}${release}${shared_ext}$major'
 
9966
  shlibpath_var=LD_LIBRARY_PATH
 
9967
  shlibpath_overrides_runpath=yes
 
9968
  hardcode_into_libs=yes
 
9969
  # ldd complains unless libraries are executable
 
9970
  postinstall_cmds='chmod +x $lib'
 
9971
  ;;
 
9972
 
 
9973
sunos4*)
 
9974
  version_type=sunos
 
9975
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9976
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9977
  shlibpath_var=LD_LIBRARY_PATH
 
9978
  shlibpath_overrides_runpath=yes
 
9979
  if test "$with_gnu_ld" = yes; then
 
9980
    need_lib_prefix=no
 
9981
  fi
 
9982
  need_version=yes
 
9983
  ;;
 
9984
 
 
9985
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
9986
  version_type=linux
 
9987
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9988
  soname_spec='${libname}${release}${shared_ext}$major'
 
9989
  shlibpath_var=LD_LIBRARY_PATH
 
9990
  case $host_vendor in
 
9991
    sni)
 
9992
      shlibpath_overrides_runpath=no
 
9993
      need_lib_prefix=no
 
9994
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9995
      runpath_var=LD_RUN_PATH
 
9996
      ;;
 
9997
    siemens)
 
9998
      need_lib_prefix=no
 
9999
      ;;
 
10000
    motorola)
 
10001
      need_lib_prefix=no
 
10002
      need_version=no
 
10003
      shlibpath_overrides_runpath=no
 
10004
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10005
      ;;
 
10006
  esac
 
10007
  ;;
 
10008
 
 
10009
sysv4*MP*)
 
10010
  if test -d /usr/nec ;then
 
10011
    version_type=linux
 
10012
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10013
    soname_spec='$libname${shared_ext}.$major'
 
10014
    shlibpath_var=LD_LIBRARY_PATH
 
10015
  fi
 
10016
  ;;
 
10017
 
 
10018
uts4*)
 
10019
  version_type=linux
 
10020
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10021
  soname_spec='${libname}${release}${shared_ext}$major'
 
10022
  shlibpath_var=LD_LIBRARY_PATH
 
10023
  ;;
 
10024
 
 
10025
*)
 
10026
  dynamic_linker=no
 
10027
  ;;
 
10028
esac
 
10029
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10030
echo "${ECHO_T}$dynamic_linker" >&6
 
10031
test "$dynamic_linker" = no && can_build_shared=no
 
10032
 
 
10033
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10034
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
10035
hardcode_action=
 
10036
if test -n "$hardcode_libdir_flag_spec" || \
 
10037
   test -n "$runpath_var " || \
 
10038
   test "X$hardcode_automatic"="Xyes" ; then
 
10039
 
 
10040
  # We can hardcode non-existant directories.
 
10041
  if test "$hardcode_direct" != no &&
 
10042
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10043
     # have to relink, otherwise we might link with an installed library
 
10044
     # when we should be linking with a yet-to-be-installed one
 
10045
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10046
     test "$hardcode_minus_L" != no; then
 
10047
    # Linking always hardcodes the temporary library directory.
 
10048
    hardcode_action=relink
 
10049
  else
 
10050
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10051
    hardcode_action=immediate
 
10052
  fi
 
10053
else
 
10054
  # We cannot hardcode anything, or else we can only hardcode existing
 
10055
  # directories.
 
10056
  hardcode_action=unsupported
 
10057
fi
 
10058
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10059
echo "${ECHO_T}$hardcode_action" >&6
 
10060
 
 
10061
if test "$hardcode_action" = relink; then
 
10062
  # Fast installation is not supported
 
10063
  enable_fast_install=no
 
10064
elif test "$shlibpath_overrides_runpath" = yes ||
 
10065
     test "$enable_shared" = no; then
 
10066
  # Fast installation is not necessary
 
10067
  enable_fast_install=needless
 
10068
fi
 
10069
 
 
10070
striplib=
 
10071
old_striplib=
 
10072
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10073
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
10074
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10075
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10076
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10077
  echo "$as_me:$LINENO: result: yes" >&5
 
10078
echo "${ECHO_T}yes" >&6
 
10079
else
 
10080
# FIXME - insert some real tests, host_os isn't really good enough
 
10081
  case $host_os in
 
10082
   darwin*)
 
10083
       if test -n "$STRIP" ; then
 
10084
         striplib="$STRIP -x"
 
10085
         echo "$as_me:$LINENO: result: yes" >&5
 
10086
echo "${ECHO_T}yes" >&6
 
10087
       else
 
10088
  echo "$as_me:$LINENO: result: no" >&5
 
10089
echo "${ECHO_T}no" >&6
 
10090
fi
 
10091
       ;;
 
10092
   *)
 
10093
  echo "$as_me:$LINENO: result: no" >&5
 
10094
echo "${ECHO_T}no" >&6
 
10095
    ;;
 
10096
  esac
 
10097
fi
 
10098
 
 
10099
if test "x$enable_dlopen" != xyes; then
 
10100
  enable_dlopen=unknown
 
10101
  enable_dlopen_self=unknown
 
10102
  enable_dlopen_self_static=unknown
 
10103
else
 
10104
  lt_cv_dlopen=no
 
10105
  lt_cv_dlopen_libs=
 
10106
 
 
10107
  case $host_os in
 
10108
  beos*)
 
10109
    lt_cv_dlopen="load_add_on"
 
10110
    lt_cv_dlopen_libs=
 
10111
    lt_cv_dlopen_self=yes
 
10112
    ;;
 
10113
 
 
10114
  mingw* | pw32*)
 
10115
    lt_cv_dlopen="LoadLibrary"
 
10116
    lt_cv_dlopen_libs=
 
10117
   ;;
 
10118
 
 
10119
  cygwin*)
 
10120
    lt_cv_dlopen="dlopen"
 
10121
    lt_cv_dlopen_libs=
 
10122
   ;;
 
10123
 
 
10124
  darwin*)
 
10125
  # if libdl is installed we need to link against it
 
10126
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10127
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10128
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10130
else
 
10131
  ac_check_lib_save_LIBS=$LIBS
 
10132
LIBS="-ldl  $LIBS"
 
10133
cat >conftest.$ac_ext <<_ACEOF
 
10134
/* confdefs.h.  */
 
10135
_ACEOF
 
10136
cat confdefs.h >>conftest.$ac_ext
 
10137
cat >>conftest.$ac_ext <<_ACEOF
 
10138
/* end confdefs.h.  */
 
10139
 
 
10140
/* Override any gcc2 internal prototype to avoid an error.  */
 
10141
#ifdef __cplusplus
 
10142
extern "C"
 
10143
#endif
 
10144
/* We use char because int might match the return type of a gcc2
 
10145
   builtin and then its argument prototype would still apply.  */
 
10146
char dlopen ();
 
10147
int
 
10148
main ()
 
10149
{
 
10150
dlopen ();
 
10151
  ;
 
10152
  return 0;
 
10153
}
 
10154
_ACEOF
 
10155
rm -f conftest.$ac_objext conftest$ac_exeext
 
10156
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10157
  (eval $ac_link) 2>conftest.er1
 
10158
  ac_status=$?
 
10159
  grep -v '^ *+' conftest.er1 >conftest.err
 
10160
  rm -f conftest.er1
 
10161
  cat conftest.err >&5
 
10162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10163
  (exit $ac_status); } &&
 
10164
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10166
  (eval $ac_try) 2>&5
 
10167
  ac_status=$?
 
10168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10169
  (exit $ac_status); }; } &&
 
10170
         { ac_try='test -s conftest$ac_exeext'
 
10171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10172
  (eval $ac_try) 2>&5
 
10173
  ac_status=$?
 
10174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10175
  (exit $ac_status); }; }; then
 
10176
  ac_cv_lib_dl_dlopen=yes
 
10177
else
 
10178
  echo "$as_me: failed program was:" >&5
 
10179
sed 's/^/| /' conftest.$ac_ext >&5
 
10180
 
 
10181
ac_cv_lib_dl_dlopen=no
 
10182
fi
 
10183
rm -f conftest.err conftest.$ac_objext \
 
10184
      conftest$ac_exeext conftest.$ac_ext
 
10185
LIBS=$ac_check_lib_save_LIBS
 
10186
fi
 
10187
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10188
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10189
if test $ac_cv_lib_dl_dlopen = yes; then
 
10190
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10191
else
 
10192
 
 
10193
    lt_cv_dlopen="dyld"
 
10194
    lt_cv_dlopen_libs=
 
10195
    lt_cv_dlopen_self=yes
 
10196
 
 
10197
fi
 
10198
 
 
10199
   ;;
 
10200
 
 
10201
  *)
 
10202
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
10203
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
10204
if test "${ac_cv_func_shl_load+set}" = set; then
 
10205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10206
else
 
10207
  cat >conftest.$ac_ext <<_ACEOF
 
10208
/* confdefs.h.  */
 
10209
_ACEOF
 
10210
cat confdefs.h >>conftest.$ac_ext
 
10211
cat >>conftest.$ac_ext <<_ACEOF
 
10212
/* end confdefs.h.  */
 
10213
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10214
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10215
#define shl_load innocuous_shl_load
 
10216
 
 
10217
/* System header to define __stub macros and hopefully few prototypes,
 
10218
    which can conflict with char shl_load (); below.
 
10219
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10220
    <limits.h> exists even on freestanding compilers.  */
 
10221
 
 
10222
#ifdef __STDC__
 
10223
# include <limits.h>
 
10224
#else
 
10225
# include <assert.h>
 
10226
#endif
 
10227
 
 
10228
#undef shl_load
 
10229
 
 
10230
/* Override any gcc2 internal prototype to avoid an error.  */
 
10231
#ifdef __cplusplus
 
10232
extern "C"
 
10233
{
 
10234
#endif
 
10235
/* We use char because int might match the return type of a gcc2
 
10236
   builtin and then its argument prototype would still apply.  */
 
10237
char shl_load ();
 
10238
/* The GNU C library defines this for functions which it implements
 
10239
    to always fail with ENOSYS.  Some functions are actually named
 
10240
    something starting with __ and the normal name is an alias.  */
 
10241
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
10242
choke me
 
10243
#else
 
10244
char (*f) () = shl_load;
 
10245
#endif
 
10246
#ifdef __cplusplus
 
10247
}
 
10248
#endif
 
10249
 
 
10250
int
 
10251
main ()
 
10252
{
 
10253
return f != shl_load;
 
10254
  ;
 
10255
  return 0;
 
10256
}
 
10257
_ACEOF
 
10258
rm -f conftest.$ac_objext conftest$ac_exeext
 
10259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10260
  (eval $ac_link) 2>conftest.er1
 
10261
  ac_status=$?
 
10262
  grep -v '^ *+' conftest.er1 >conftest.err
 
10263
  rm -f conftest.er1
 
10264
  cat conftest.err >&5
 
10265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10266
  (exit $ac_status); } &&
 
10267
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10269
  (eval $ac_try) 2>&5
 
10270
  ac_status=$?
 
10271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10272
  (exit $ac_status); }; } &&
 
10273
         { ac_try='test -s conftest$ac_exeext'
 
10274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10275
  (eval $ac_try) 2>&5
 
10276
  ac_status=$?
 
10277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10278
  (exit $ac_status); }; }; then
 
10279
  ac_cv_func_shl_load=yes
 
10280
else
 
10281
  echo "$as_me: failed program was:" >&5
 
10282
sed 's/^/| /' conftest.$ac_ext >&5
 
10283
 
 
10284
ac_cv_func_shl_load=no
 
10285
fi
 
10286
rm -f conftest.err conftest.$ac_objext \
 
10287
      conftest$ac_exeext conftest.$ac_ext
 
10288
fi
 
10289
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10290
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
10291
if test $ac_cv_func_shl_load = yes; then
 
10292
  lt_cv_dlopen="shl_load"
 
10293
else
 
10294
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10295
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
10296
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10297
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10298
else
 
10299
  ac_check_lib_save_LIBS=$LIBS
 
10300
LIBS="-ldld  $LIBS"
 
10301
cat >conftest.$ac_ext <<_ACEOF
 
10302
/* confdefs.h.  */
 
10303
_ACEOF
 
10304
cat confdefs.h >>conftest.$ac_ext
 
10305
cat >>conftest.$ac_ext <<_ACEOF
 
10306
/* end confdefs.h.  */
 
10307
 
 
10308
/* Override any gcc2 internal prototype to avoid an error.  */
 
10309
#ifdef __cplusplus
 
10310
extern "C"
 
10311
#endif
 
10312
/* We use char because int might match the return type of a gcc2
 
10313
   builtin and then its argument prototype would still apply.  */
 
10314
char shl_load ();
 
10315
int
 
10316
main ()
 
10317
{
 
10318
shl_load ();
 
10319
  ;
 
10320
  return 0;
 
10321
}
 
10322
_ACEOF
 
10323
rm -f conftest.$ac_objext conftest$ac_exeext
 
10324
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10325
  (eval $ac_link) 2>conftest.er1
 
10326
  ac_status=$?
 
10327
  grep -v '^ *+' conftest.er1 >conftest.err
 
10328
  rm -f conftest.er1
 
10329
  cat conftest.err >&5
 
10330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10331
  (exit $ac_status); } &&
 
10332
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10334
  (eval $ac_try) 2>&5
 
10335
  ac_status=$?
 
10336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10337
  (exit $ac_status); }; } &&
 
10338
         { ac_try='test -s conftest$ac_exeext'
 
10339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10340
  (eval $ac_try) 2>&5
 
10341
  ac_status=$?
 
10342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10343
  (exit $ac_status); }; }; then
 
10344
  ac_cv_lib_dld_shl_load=yes
 
10345
else
 
10346
  echo "$as_me: failed program was:" >&5
 
10347
sed 's/^/| /' conftest.$ac_ext >&5
 
10348
 
 
10349
ac_cv_lib_dld_shl_load=no
 
10350
fi
 
10351
rm -f conftest.err conftest.$ac_objext \
 
10352
      conftest$ac_exeext conftest.$ac_ext
 
10353
LIBS=$ac_check_lib_save_LIBS
 
10354
fi
 
10355
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10356
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
10357
if test $ac_cv_lib_dld_shl_load = yes; then
 
10358
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
10359
else
 
10360
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
10361
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
10362
if test "${ac_cv_func_dlopen+set}" = set; then
 
10363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10364
else
 
10365
  cat >conftest.$ac_ext <<_ACEOF
 
10366
/* confdefs.h.  */
 
10367
_ACEOF
 
10368
cat confdefs.h >>conftest.$ac_ext
 
10369
cat >>conftest.$ac_ext <<_ACEOF
 
10370
/* end confdefs.h.  */
 
10371
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10372
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10373
#define dlopen innocuous_dlopen
 
10374
 
 
10375
/* System header to define __stub macros and hopefully few prototypes,
 
10376
    which can conflict with char dlopen (); below.
 
10377
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10378
    <limits.h> exists even on freestanding compilers.  */
 
10379
 
 
10380
#ifdef __STDC__
 
10381
# include <limits.h>
 
10382
#else
 
10383
# include <assert.h>
 
10384
#endif
 
10385
 
 
10386
#undef dlopen
 
10387
 
 
10388
/* Override any gcc2 internal prototype to avoid an error.  */
 
10389
#ifdef __cplusplus
 
10390
extern "C"
 
10391
{
 
10392
#endif
 
10393
/* We use char because int might match the return type of a gcc2
 
10394
   builtin and then its argument prototype would still apply.  */
 
10395
char dlopen ();
 
10396
/* The GNU C library defines this for functions which it implements
 
10397
    to always fail with ENOSYS.  Some functions are actually named
 
10398
    something starting with __ and the normal name is an alias.  */
 
10399
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
10400
choke me
 
10401
#else
 
10402
char (*f) () = dlopen;
 
10403
#endif
 
10404
#ifdef __cplusplus
 
10405
}
 
10406
#endif
 
10407
 
 
10408
int
 
10409
main ()
 
10410
{
 
10411
return f != dlopen;
 
10412
  ;
 
10413
  return 0;
 
10414
}
 
10415
_ACEOF
 
10416
rm -f conftest.$ac_objext conftest$ac_exeext
 
10417
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10418
  (eval $ac_link) 2>conftest.er1
 
10419
  ac_status=$?
 
10420
  grep -v '^ *+' conftest.er1 >conftest.err
 
10421
  rm -f conftest.er1
 
10422
  cat conftest.err >&5
 
10423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10424
  (exit $ac_status); } &&
 
10425
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10427
  (eval $ac_try) 2>&5
 
10428
  ac_status=$?
 
10429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10430
  (exit $ac_status); }; } &&
 
10431
         { ac_try='test -s conftest$ac_exeext'
 
10432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10433
  (eval $ac_try) 2>&5
 
10434
  ac_status=$?
 
10435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10436
  (exit $ac_status); }; }; then
 
10437
  ac_cv_func_dlopen=yes
 
10438
else
 
10439
  echo "$as_me: failed program was:" >&5
 
10440
sed 's/^/| /' conftest.$ac_ext >&5
 
10441
 
 
10442
ac_cv_func_dlopen=no
 
10443
fi
 
10444
rm -f conftest.err conftest.$ac_objext \
 
10445
      conftest$ac_exeext conftest.$ac_ext
 
10446
fi
 
10447
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10448
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
10449
if test $ac_cv_func_dlopen = yes; then
 
10450
  lt_cv_dlopen="dlopen"
 
10451
else
 
10452
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10453
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10454
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10456
else
 
10457
  ac_check_lib_save_LIBS=$LIBS
 
10458
LIBS="-ldl  $LIBS"
 
10459
cat >conftest.$ac_ext <<_ACEOF
 
10460
/* confdefs.h.  */
 
10461
_ACEOF
 
10462
cat confdefs.h >>conftest.$ac_ext
 
10463
cat >>conftest.$ac_ext <<_ACEOF
 
10464
/* end confdefs.h.  */
 
10465
 
 
10466
/* Override any gcc2 internal prototype to avoid an error.  */
 
10467
#ifdef __cplusplus
 
10468
extern "C"
 
10469
#endif
 
10470
/* We use char because int might match the return type of a gcc2
 
10471
   builtin and then its argument prototype would still apply.  */
 
10472
char dlopen ();
 
10473
int
 
10474
main ()
 
10475
{
 
10476
dlopen ();
 
10477
  ;
 
10478
  return 0;
 
10479
}
 
10480
_ACEOF
 
10481
rm -f conftest.$ac_objext conftest$ac_exeext
 
10482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10483
  (eval $ac_link) 2>conftest.er1
 
10484
  ac_status=$?
 
10485
  grep -v '^ *+' conftest.er1 >conftest.err
 
10486
  rm -f conftest.er1
 
10487
  cat conftest.err >&5
 
10488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10489
  (exit $ac_status); } &&
 
10490
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10492
  (eval $ac_try) 2>&5
 
10493
  ac_status=$?
 
10494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10495
  (exit $ac_status); }; } &&
 
10496
         { ac_try='test -s conftest$ac_exeext'
 
10497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10498
  (eval $ac_try) 2>&5
 
10499
  ac_status=$?
 
10500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10501
  (exit $ac_status); }; }; then
 
10502
  ac_cv_lib_dl_dlopen=yes
 
10503
else
 
10504
  echo "$as_me: failed program was:" >&5
 
10505
sed 's/^/| /' conftest.$ac_ext >&5
 
10506
 
 
10507
ac_cv_lib_dl_dlopen=no
 
10508
fi
 
10509
rm -f conftest.err conftest.$ac_objext \
 
10510
      conftest$ac_exeext conftest.$ac_ext
 
10511
LIBS=$ac_check_lib_save_LIBS
 
10512
fi
 
10513
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10514
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10515
if test $ac_cv_lib_dl_dlopen = yes; then
 
10516
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10517
else
 
10518
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10519
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
10520
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10522
else
 
10523
  ac_check_lib_save_LIBS=$LIBS
 
10524
LIBS="-lsvld  $LIBS"
 
10525
cat >conftest.$ac_ext <<_ACEOF
 
10526
/* confdefs.h.  */
 
10527
_ACEOF
 
10528
cat confdefs.h >>conftest.$ac_ext
 
10529
cat >>conftest.$ac_ext <<_ACEOF
 
10530
/* end confdefs.h.  */
 
10531
 
 
10532
/* Override any gcc2 internal prototype to avoid an error.  */
 
10533
#ifdef __cplusplus
 
10534
extern "C"
 
10535
#endif
 
10536
/* We use char because int might match the return type of a gcc2
 
10537
   builtin and then its argument prototype would still apply.  */
 
10538
char dlopen ();
 
10539
int
 
10540
main ()
 
10541
{
 
10542
dlopen ();
 
10543
  ;
 
10544
  return 0;
 
10545
}
 
10546
_ACEOF
 
10547
rm -f conftest.$ac_objext conftest$ac_exeext
 
10548
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10549
  (eval $ac_link) 2>conftest.er1
 
10550
  ac_status=$?
 
10551
  grep -v '^ *+' conftest.er1 >conftest.err
 
10552
  rm -f conftest.er1
 
10553
  cat conftest.err >&5
 
10554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10555
  (exit $ac_status); } &&
 
10556
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10557
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10558
  (eval $ac_try) 2>&5
 
10559
  ac_status=$?
 
10560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10561
  (exit $ac_status); }; } &&
 
10562
         { ac_try='test -s conftest$ac_exeext'
 
10563
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10564
  (eval $ac_try) 2>&5
 
10565
  ac_status=$?
 
10566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10567
  (exit $ac_status); }; }; then
 
10568
  ac_cv_lib_svld_dlopen=yes
 
10569
else
 
10570
  echo "$as_me: failed program was:" >&5
 
10571
sed 's/^/| /' conftest.$ac_ext >&5
 
10572
 
 
10573
ac_cv_lib_svld_dlopen=no
 
10574
fi
 
10575
rm -f conftest.err conftest.$ac_objext \
 
10576
      conftest$ac_exeext conftest.$ac_ext
 
10577
LIBS=$ac_check_lib_save_LIBS
 
10578
fi
 
10579
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10580
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
10581
if test $ac_cv_lib_svld_dlopen = yes; then
 
10582
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10583
else
 
10584
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10585
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
10586
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10588
else
 
10589
  ac_check_lib_save_LIBS=$LIBS
 
10590
LIBS="-ldld  $LIBS"
 
10591
cat >conftest.$ac_ext <<_ACEOF
 
10592
/* confdefs.h.  */
 
10593
_ACEOF
 
10594
cat confdefs.h >>conftest.$ac_ext
 
10595
cat >>conftest.$ac_ext <<_ACEOF
 
10596
/* end confdefs.h.  */
 
10597
 
 
10598
/* Override any gcc2 internal prototype to avoid an error.  */
 
10599
#ifdef __cplusplus
 
10600
extern "C"
 
10601
#endif
 
10602
/* We use char because int might match the return type of a gcc2
 
10603
   builtin and then its argument prototype would still apply.  */
 
10604
char dld_link ();
 
10605
int
 
10606
main ()
 
10607
{
 
10608
dld_link ();
 
10609
  ;
 
10610
  return 0;
 
10611
}
 
10612
_ACEOF
 
10613
rm -f conftest.$ac_objext conftest$ac_exeext
 
10614
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10615
  (eval $ac_link) 2>conftest.er1
 
10616
  ac_status=$?
 
10617
  grep -v '^ *+' conftest.er1 >conftest.err
 
10618
  rm -f conftest.er1
 
10619
  cat conftest.err >&5
 
10620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10621
  (exit $ac_status); } &&
 
10622
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10624
  (eval $ac_try) 2>&5
 
10625
  ac_status=$?
 
10626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10627
  (exit $ac_status); }; } &&
 
10628
         { ac_try='test -s conftest$ac_exeext'
 
10629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10630
  (eval $ac_try) 2>&5
 
10631
  ac_status=$?
 
10632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10633
  (exit $ac_status); }; }; then
 
10634
  ac_cv_lib_dld_dld_link=yes
 
10635
else
 
10636
  echo "$as_me: failed program was:" >&5
 
10637
sed 's/^/| /' conftest.$ac_ext >&5
 
10638
 
 
10639
ac_cv_lib_dld_dld_link=no
 
10640
fi
 
10641
rm -f conftest.err conftest.$ac_objext \
 
10642
      conftest$ac_exeext conftest.$ac_ext
 
10643
LIBS=$ac_check_lib_save_LIBS
 
10644
fi
 
10645
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10646
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
10647
if test $ac_cv_lib_dld_dld_link = yes; then
 
10648
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10649
fi
 
10650
 
 
10651
 
 
10652
fi
 
10653
 
 
10654
 
 
10655
fi
 
10656
 
 
10657
 
 
10658
fi
 
10659
 
 
10660
 
 
10661
fi
 
10662
 
 
10663
 
 
10664
fi
 
10665
 
 
10666
    ;;
 
10667
  esac
 
10668
 
 
10669
  if test "x$lt_cv_dlopen" != xno; then
 
10670
    enable_dlopen=yes
 
10671
  else
 
10672
    enable_dlopen=no
 
10673
  fi
 
10674
 
 
10675
  case $lt_cv_dlopen in
 
10676
  dlopen)
 
10677
    save_CPPFLAGS="$CPPFLAGS"
 
10678
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10679
 
 
10680
    save_LDFLAGS="$LDFLAGS"
 
10681
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10682
 
 
10683
    save_LIBS="$LIBS"
 
10684
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10685
 
 
10686
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10687
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
10688
if test "${lt_cv_dlopen_self+set}" = set; then
 
10689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10690
else
 
10691
          if test "$cross_compiling" = yes; then :
 
10692
  lt_cv_dlopen_self=cross
 
10693
else
 
10694
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10695
  lt_status=$lt_dlunknown
 
10696
  cat > conftest.$ac_ext <<EOF
 
10697
#line 10697 "configure"
 
10698
#include "confdefs.h"
 
10699
 
 
10700
#if HAVE_DLFCN_H
 
10701
#include <dlfcn.h>
 
10702
#endif
 
10703
 
 
10704
#include <stdio.h>
 
10705
 
 
10706
#ifdef RTLD_GLOBAL
 
10707
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10708
#else
 
10709
#  ifdef DL_GLOBAL
 
10710
#    define LT_DLGLOBAL         DL_GLOBAL
 
10711
#  else
 
10712
#    define LT_DLGLOBAL         0
 
10713
#  endif
 
10714
#endif
 
10715
 
 
10716
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10717
   find out it does not work in some platform. */
 
10718
#ifndef LT_DLLAZY_OR_NOW
 
10719
#  ifdef RTLD_LAZY
 
10720
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10721
#  else
 
10722
#    ifdef DL_LAZY
 
10723
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10724
#    else
 
10725
#      ifdef RTLD_NOW
 
10726
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10727
#      else
 
10728
#        ifdef DL_NOW
 
10729
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10730
#        else
 
10731
#          define LT_DLLAZY_OR_NOW      0
 
10732
#        endif
 
10733
#      endif
 
10734
#    endif
 
10735
#  endif
 
10736
#endif
 
10737
 
 
10738
#ifdef __cplusplus
 
10739
extern "C" void exit (int);
 
10740
#endif
 
10741
 
 
10742
void fnord() { int i=42;}
 
10743
int main ()
 
10744
{
 
10745
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10746
  int status = $lt_dlunknown;
 
10747
 
 
10748
  if (self)
 
10749
    {
 
10750
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10751
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10752
      /* dlclose (self); */
 
10753
    }
 
10754
 
 
10755
    exit (status);
 
10756
}
 
10757
EOF
 
10758
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10759
  (eval $ac_link) 2>&5
 
10760
  ac_status=$?
 
10761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10762
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10763
    (./conftest; exit; ) 2>/dev/null
 
10764
    lt_status=$?
 
10765
    case x$lt_status in
 
10766
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10767
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10768
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
10769
    esac
 
10770
  else :
 
10771
    # compilation failed
 
10772
    lt_cv_dlopen_self=no
 
10773
  fi
 
10774
fi
 
10775
rm -fr conftest*
 
10776
 
 
10777
 
 
10778
fi
 
10779
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10780
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
10781
 
 
10782
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10783
      LDFLAGS="$LDFLAGS $link_static_flag"
 
10784
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10785
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
10786
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10788
else
 
10789
          if test "$cross_compiling" = yes; then :
 
10790
  lt_cv_dlopen_self_static=cross
 
10791
else
 
10792
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10793
  lt_status=$lt_dlunknown
 
10794
  cat > conftest.$ac_ext <<EOF
 
10795
#line 10795 "configure"
 
10796
#include "confdefs.h"
 
10797
 
 
10798
#if HAVE_DLFCN_H
 
10799
#include <dlfcn.h>
 
10800
#endif
 
10801
 
 
10802
#include <stdio.h>
 
10803
 
 
10804
#ifdef RTLD_GLOBAL
 
10805
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10806
#else
 
10807
#  ifdef DL_GLOBAL
 
10808
#    define LT_DLGLOBAL         DL_GLOBAL
 
10809
#  else
 
10810
#    define LT_DLGLOBAL         0
 
10811
#  endif
 
10812
#endif
 
10813
 
 
10814
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10815
   find out it does not work in some platform. */
 
10816
#ifndef LT_DLLAZY_OR_NOW
 
10817
#  ifdef RTLD_LAZY
 
10818
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10819
#  else
 
10820
#    ifdef DL_LAZY
 
10821
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10822
#    else
 
10823
#      ifdef RTLD_NOW
 
10824
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10825
#      else
 
10826
#        ifdef DL_NOW
 
10827
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10828
#        else
 
10829
#          define LT_DLLAZY_OR_NOW      0
 
10830
#        endif
 
10831
#      endif
 
10832
#    endif
 
10833
#  endif
 
10834
#endif
 
10835
 
 
10836
#ifdef __cplusplus
 
10837
extern "C" void exit (int);
 
10838
#endif
 
10839
 
 
10840
void fnord() { int i=42;}
 
10841
int main ()
 
10842
{
 
10843
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10844
  int status = $lt_dlunknown;
 
10845
 
 
10846
  if (self)
 
10847
    {
 
10848
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10849
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10850
      /* dlclose (self); */
 
10851
    }
 
10852
 
 
10853
    exit (status);
 
10854
}
 
10855
EOF
 
10856
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10857
  (eval $ac_link) 2>&5
 
10858
  ac_status=$?
 
10859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10860
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10861
    (./conftest; exit; ) 2>/dev/null
 
10862
    lt_status=$?
 
10863
    case x$lt_status in
 
10864
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10865
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10866
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
10867
    esac
 
10868
  else :
 
10869
    # compilation failed
 
10870
    lt_cv_dlopen_self_static=no
 
10871
  fi
 
10872
fi
 
10873
rm -fr conftest*
 
10874
 
 
10875
 
 
10876
fi
 
10877
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10878
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
10879
    fi
 
10880
 
 
10881
    CPPFLAGS="$save_CPPFLAGS"
 
10882
    LDFLAGS="$save_LDFLAGS"
 
10883
    LIBS="$save_LIBS"
 
10884
    ;;
 
10885
  esac
 
10886
 
 
10887
  case $lt_cv_dlopen_self in
 
10888
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10889
  *) enable_dlopen_self=unknown ;;
 
10890
  esac
 
10891
 
 
10892
  case $lt_cv_dlopen_self_static in
 
10893
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10894
  *) enable_dlopen_self_static=unknown ;;
 
10895
  esac
 
10896
fi
 
10897
 
 
10898
 
 
10899
# Report which librarie types wil actually be built
 
10900
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10901
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
10902
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10903
echo "${ECHO_T}$can_build_shared" >&6
 
10904
 
 
10905
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10906
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
10907
test "$can_build_shared" = "no" && enable_shared=no
 
10908
 
 
10909
# On AIX, shared libraries and static libraries use the same namespace, and
 
10910
# are all built from PIC.
 
10911
case "$host_os" in
 
10912
aix3*)
 
10913
  test "$enable_shared" = yes && enable_static=no
 
10914
  if test -n "$RANLIB"; then
 
10915
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10916
    postinstall_cmds='$RANLIB $lib'
 
10917
  fi
 
10918
  ;;
 
10919
 
 
10920
aix4* | aix5*)
 
10921
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10922
    test "$enable_shared" = yes && enable_static=no
 
10923
  fi
 
10924
  ;;
 
10925
  darwin* | rhapsody*)
 
10926
  if test "$GCC" = yes; then
 
10927
    archive_cmds_need_lc=no
 
10928
    case "$host_os" in
 
10929
    rhapsody* | darwin1.[012])
 
10930
      allow_undefined_flag='-undefined suppress'
 
10931
      ;;
 
10932
    *) # Darwin 1.3 on
 
10933
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10934
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
10935
      else
 
10936
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10937
          10.[012])
 
10938
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
10939
            ;;
 
10940
          10.*)
 
10941
            allow_undefined_flag='-undefined dynamic_lookup'
 
10942
            ;;
 
10943
        esac
 
10944
      fi
 
10945
      ;;
 
10946
    esac
 
10947
    output_verbose_link_cmd='echo'
 
10948
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
10949
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10950
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10951
    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}'
 
10952
    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}'
 
10953
    hardcode_direct=no
 
10954
    hardcode_automatic=yes
 
10955
    hardcode_shlibpath_var=unsupported
 
10956
    whole_archive_flag_spec='-all_load $convenience'
 
10957
    link_all_deplibs=yes
 
10958
  else
 
10959
    ld_shlibs=no
 
10960
  fi
 
10961
    ;;
 
10962
esac
 
10963
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10964
echo "${ECHO_T}$enable_shared" >&6
 
10965
 
 
10966
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10967
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
10968
# Make sure either enable_shared or enable_static is yes.
 
10969
test "$enable_shared" = yes || enable_static=yes
 
10970
echo "$as_me:$LINENO: result: $enable_static" >&5
 
10971
echo "${ECHO_T}$enable_static" >&6
 
10972
 
 
10973
# The else clause should only fire when bootstrapping the
 
10974
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10975
# with your package, and you will get complaints that there are
 
10976
# no rules to generate ltmain.sh.
 
10977
if test -f "$ltmain"; then
 
10978
  # See if we are running on zsh, and set the options which allow our commands through
 
10979
  # without removal of \ escapes.
 
10980
  if test -n "${ZSH_VERSION+set}" ; then
 
10981
    setopt NO_GLOB_SUBST
 
10982
  fi
 
10983
  # Now quote all the things that may contain metacharacters while being
 
10984
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10985
  # variables and quote the copies for generation of the libtool script.
 
10986
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
10987
    SED SHELL STRIP \
 
10988
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10989
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10990
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10991
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10992
    lt_cv_sys_global_symbol_to_c_name_address \
 
10993
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10994
    old_postinstall_cmds old_postuninstall_cmds \
 
10995
    compiler \
 
10996
    CC \
 
10997
    LD \
 
10998
    lt_prog_compiler_wl \
 
10999
    lt_prog_compiler_pic \
 
11000
    lt_prog_compiler_static \
 
11001
    lt_prog_compiler_no_builtin_flag \
 
11002
    export_dynamic_flag_spec \
 
11003
    thread_safe_flag_spec \
 
11004
    whole_archive_flag_spec \
 
11005
    enable_shared_with_static_runtimes \
 
11006
    old_archive_cmds \
 
11007
    old_archive_from_new_cmds \
 
11008
    predep_objects \
 
11009
    postdep_objects \
 
11010
    predeps \
 
11011
    postdeps \
 
11012
    compiler_lib_search_path \
 
11013
    archive_cmds \
 
11014
    archive_expsym_cmds \
 
11015
    postinstall_cmds \
 
11016
    postuninstall_cmds \
 
11017
    old_archive_from_expsyms_cmds \
 
11018
    allow_undefined_flag \
 
11019
    no_undefined_flag \
 
11020
    export_symbols_cmds \
 
11021
    hardcode_libdir_flag_spec \
 
11022
    hardcode_libdir_flag_spec_ld \
 
11023
    hardcode_libdir_separator \
 
11024
    hardcode_automatic \
 
11025
    module_cmds \
 
11026
    module_expsym_cmds \
 
11027
    lt_cv_prog_compiler_c_o \
 
11028
    exclude_expsyms \
 
11029
    include_expsyms; do
 
11030
 
 
11031
    case $var in
 
11032
    old_archive_cmds | \
 
11033
    old_archive_from_new_cmds | \
 
11034
    archive_cmds | \
 
11035
    archive_expsym_cmds | \
 
11036
    module_cmds | \
 
11037
    module_expsym_cmds | \
 
11038
    old_archive_from_expsyms_cmds | \
 
11039
    export_symbols_cmds | \
 
11040
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11041
    postinstall_cmds | postuninstall_cmds | \
 
11042
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11043
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11044
      # Double-quote double-evaled strings.
 
11045
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11046
      ;;
 
11047
    *)
 
11048
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11049
      ;;
 
11050
    esac
 
11051
  done
 
11052
 
 
11053
  case $lt_echo in
 
11054
  *'\$0 --fallback-echo"')
 
11055
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11056
    ;;
 
11057
  esac
 
11058
 
 
11059
cfgfile="${ofile}T"
 
11060
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11061
  $rm -f "$cfgfile"
 
11062
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
11063
echo "$as_me: creating $ofile" >&6;}
 
11064
 
 
11065
  cat <<__EOF__ >> "$cfgfile"
 
11066
#! $SHELL
 
11067
 
 
11068
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11069
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11070
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11071
#
 
11072
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
11073
# Free Software Foundation, Inc.
 
11074
#
 
11075
# This file is part of GNU Libtool:
 
11076
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11077
#
 
11078
# This program is free software; you can redistribute it and/or modify
 
11079
# it under the terms of the GNU General Public License as published by
 
11080
# the Free Software Foundation; either version 2 of the License, or
 
11081
# (at your option) any later version.
 
11082
#
 
11083
# This program is distributed in the hope that it will be useful, but
 
11084
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11085
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11086
# General Public License for more details.
 
11087
#
 
11088
# You should have received a copy of the GNU General Public License
 
11089
# along with this program; if not, write to the Free Software
 
11090
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
11091
#
 
11092
# As a special exception to the GNU General Public License, if you
 
11093
# distribute this file as part of a program that contains a
 
11094
# configuration script generated by Autoconf, you may include it under
 
11095
# the same distribution terms that you use for the rest of that program.
 
11096
 
 
11097
# A sed program that does not truncate output.
 
11098
SED=$lt_SED
 
11099
 
 
11100
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11101
Xsed="$SED -e s/^X//"
 
11102
 
 
11103
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11104
# if CDPATH is set.
 
11105
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
11106
 
 
11107
# The names of the tagged configurations supported by this script.
 
11108
available_tags=
 
11109
 
 
11110
# ### BEGIN LIBTOOL CONFIG
 
11111
 
 
11112
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11113
 
 
11114
# Shell to use when invoking shell scripts.
 
11115
SHELL=$lt_SHELL
 
11116
 
 
11117
# Whether or not to build shared libraries.
 
11118
build_libtool_libs=$enable_shared
 
11119
 
 
11120
# Whether or not to build static libraries.
 
11121
build_old_libs=$enable_static
 
11122
 
 
11123
# Whether or not to add -lc for building shared libraries.
 
11124
build_libtool_need_lc=$archive_cmds_need_lc
 
11125
 
 
11126
# Whether or not to disallow shared libs when runtime libs are static
 
11127
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11128
 
 
11129
# Whether or not to optimize for fast installation.
 
11130
fast_install=$enable_fast_install
 
11131
 
 
11132
# The host system.
 
11133
host_alias=$host_alias
 
11134
host=$host
 
11135
 
 
11136
# An echo program that does not interpret backslashes.
 
11137
echo=$lt_echo
 
11138
 
 
11139
# The archiver.
 
11140
AR=$lt_AR
 
11141
AR_FLAGS=$lt_AR_FLAGS
 
11142
 
 
11143
# A C compiler.
 
11144
LTCC=$lt_LTCC
 
11145
 
 
11146
# A language-specific compiler.
 
11147
CC=$lt_compiler
 
11148
 
 
11149
# Is the compiler the GNU C compiler?
 
11150
with_gcc=$GCC
 
11151
 
 
11152
# An ERE matcher.
 
11153
EGREP=$lt_EGREP
 
11154
 
 
11155
# The linker used to build libraries.
 
11156
LD=$lt_LD
 
11157
 
 
11158
# Whether we need hard or soft links.
 
11159
LN_S=$lt_LN_S
 
11160
 
 
11161
# A BSD-compatible nm program.
 
11162
NM=$lt_NM
 
11163
 
 
11164
# A symbol stripping program
 
11165
STRIP=$lt_STRIP
 
11166
 
 
11167
# Used to examine libraries when file_magic_cmd begins "file"
 
11168
MAGIC_CMD=$MAGIC_CMD
 
11169
 
 
11170
# Used on cygwin: DLL creation program.
 
11171
DLLTOOL="$DLLTOOL"
 
11172
 
 
11173
# Used on cygwin: object dumper.
 
11174
OBJDUMP="$OBJDUMP"
 
11175
 
 
11176
# Used on cygwin: assembler.
 
11177
AS="$AS"
 
11178
 
 
11179
# The name of the directory that contains temporary libtool files.
 
11180
objdir=$objdir
 
11181
 
 
11182
# How to create reloadable object files.
 
11183
reload_flag=$lt_reload_flag
 
11184
reload_cmds=$lt_reload_cmds
 
11185
 
 
11186
# How to pass a linker flag through the compiler.
 
11187
wl=$lt_lt_prog_compiler_wl
 
11188
 
 
11189
# Object file suffix (normally "o").
 
11190
objext="$ac_objext"
 
11191
 
 
11192
# Old archive suffix (normally "a").
 
11193
libext="$libext"
 
11194
 
 
11195
# Shared library suffix (normally ".so").
 
11196
shrext_cmds='$shrext_cmds'
 
11197
 
 
11198
# Executable file suffix (normally "").
 
11199
exeext="$exeext"
 
11200
 
 
11201
# Additional compiler flags for building library objects.
 
11202
pic_flag=$lt_lt_prog_compiler_pic
 
11203
pic_mode=$pic_mode
 
11204
 
 
11205
# What is the maximum length of a command?
 
11206
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11207
 
 
11208
# Does compiler simultaneously support -c and -o options?
 
11209
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11210
 
 
11211
# Must we lock files when doing compilation ?
 
11212
need_locks=$lt_need_locks
 
11213
 
 
11214
# Do we need the lib prefix for modules?
 
11215
need_lib_prefix=$need_lib_prefix
 
11216
 
 
11217
# Do we need a version for libraries?
 
11218
need_version=$need_version
 
11219
 
 
11220
# Whether dlopen is supported.
 
11221
dlopen_support=$enable_dlopen
 
11222
 
 
11223
# Whether dlopen of programs is supported.
 
11224
dlopen_self=$enable_dlopen_self
 
11225
 
 
11226
# Whether dlopen of statically linked programs is supported.
 
11227
dlopen_self_static=$enable_dlopen_self_static
 
11228
 
 
11229
# Compiler flag to prevent dynamic linking.
 
11230
link_static_flag=$lt_lt_prog_compiler_static
 
11231
 
 
11232
# Compiler flag to turn off builtin functions.
 
11233
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11234
 
 
11235
# Compiler flag to allow reflexive dlopens.
 
11236
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11237
 
 
11238
# Compiler flag to generate shared objects directly from archives.
 
11239
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11240
 
 
11241
# Compiler flag to generate thread-safe objects.
 
11242
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11243
 
 
11244
# Library versioning type.
 
11245
version_type=$version_type
 
11246
 
 
11247
# Format of library name prefix.
 
11248
libname_spec=$lt_libname_spec
 
11249
 
 
11250
# List of archive names.  First name is the real one, the rest are links.
 
11251
# The last name is the one that the linker finds with -lNAME.
 
11252
library_names_spec=$lt_library_names_spec
 
11253
 
 
11254
# The coded name of the library, if different from the real name.
 
11255
soname_spec=$lt_soname_spec
 
11256
 
 
11257
# Commands used to build and install an old-style archive.
 
11258
RANLIB=$lt_RANLIB
 
11259
old_archive_cmds=$lt_old_archive_cmds
 
11260
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11261
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11262
 
 
11263
# Create an old-style archive from a shared archive.
 
11264
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11265
 
 
11266
# Create a temporary old-style archive to link instead of a shared archive.
 
11267
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11268
 
 
11269
# Commands used to build and install a shared archive.
 
11270
archive_cmds=$lt_archive_cmds
 
11271
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11272
postinstall_cmds=$lt_postinstall_cmds
 
11273
postuninstall_cmds=$lt_postuninstall_cmds
 
11274
 
 
11275
# Commands used to build a loadable module (assumed same as above if empty)
 
11276
module_cmds=$lt_module_cmds
 
11277
module_expsym_cmds=$lt_module_expsym_cmds
 
11278
 
 
11279
# Commands to strip libraries.
 
11280
old_striplib=$lt_old_striplib
 
11281
striplib=$lt_striplib
 
11282
 
 
11283
# Dependencies to place before the objects being linked to create a
 
11284
# shared library.
 
11285
predep_objects=$lt_predep_objects
 
11286
 
 
11287
# Dependencies to place after the objects being linked to create a
 
11288
# shared library.
 
11289
postdep_objects=$lt_postdep_objects
 
11290
 
 
11291
# Dependencies to place before the objects being linked to create a
 
11292
# shared library.
 
11293
predeps=$lt_predeps
 
11294
 
 
11295
# Dependencies to place after the objects being linked to create a
 
11296
# shared library.
 
11297
postdeps=$lt_postdeps
 
11298
 
 
11299
# The library search path used internally by the compiler when linking
 
11300
# a shared library.
 
11301
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11302
 
 
11303
# Method to check whether dependent libraries are shared objects.
 
11304
deplibs_check_method=$lt_deplibs_check_method
 
11305
 
 
11306
# Command to use when deplibs_check_method == file_magic.
 
11307
file_magic_cmd=$lt_file_magic_cmd
 
11308
 
 
11309
# Flag that allows shared libraries with undefined symbols to be built.
 
11310
allow_undefined_flag=$lt_allow_undefined_flag
 
11311
 
 
11312
# Flag that forces no undefined symbols.
 
11313
no_undefined_flag=$lt_no_undefined_flag
 
11314
 
 
11315
# Commands used to finish a libtool library installation in a directory.
 
11316
finish_cmds=$lt_finish_cmds
 
11317
 
 
11318
# Same as above, but a single script fragment to be evaled but not shown.
 
11319
finish_eval=$lt_finish_eval
 
11320
 
 
11321
# Take the output of nm and produce a listing of raw symbols and C names.
 
11322
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11323
 
 
11324
# Transform the output of nm in a proper C declaration
 
11325
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11326
 
 
11327
# Transform the output of nm in a C name address pair
 
11328
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11329
 
 
11330
# This is the shared library runtime path variable.
 
11331
runpath_var=$runpath_var
 
11332
 
 
11333
# This is the shared library path variable.
 
11334
shlibpath_var=$shlibpath_var
 
11335
 
 
11336
# Is shlibpath searched before the hard-coded library search path?
 
11337
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11338
 
 
11339
# How to hardcode a shared library path into an executable.
 
11340
hardcode_action=$hardcode_action
 
11341
 
 
11342
# Whether we should hardcode library paths into libraries.
 
11343
hardcode_into_libs=$hardcode_into_libs
 
11344
 
 
11345
# Flag to hardcode \$libdir into a binary during linking.
 
11346
# This must work even if \$libdir does not exist.
 
11347
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11348
 
 
11349
# If ld is used when linking, flag to hardcode \$libdir into
 
11350
# a binary during linking. This must work even if \$libdir does
 
11351
# not exist.
 
11352
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11353
 
 
11354
# Whether we need a single -rpath flag with a separated argument.
 
11355
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11356
 
 
11357
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11358
# resulting binary.
 
11359
hardcode_direct=$hardcode_direct
 
11360
 
 
11361
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11362
# resulting binary.
 
11363
hardcode_minus_L=$hardcode_minus_L
 
11364
 
 
11365
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11366
# the resulting binary.
 
11367
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11368
 
 
11369
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11370
# and all subsequent libraries and executables linked against it.
 
11371
hardcode_automatic=$hardcode_automatic
 
11372
 
 
11373
# Variables whose values should be saved in libtool wrapper scripts and
 
11374
# restored at relink time.
 
11375
variables_saved_for_relink="$variables_saved_for_relink"
 
11376
 
 
11377
# Whether libtool must link a program against all its dependency libraries.
 
11378
link_all_deplibs=$link_all_deplibs
 
11379
 
 
11380
# Compile-time system search path for libraries
 
11381
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11382
 
 
11383
# Run-time system search path for libraries
 
11384
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11385
 
 
11386
# Fix the shell variable \$srcfile for the compiler.
 
11387
fix_srcfile_path="$fix_srcfile_path"
 
11388
 
 
11389
# Set to yes if exported symbols are required.
 
11390
always_export_symbols=$always_export_symbols
 
11391
 
 
11392
# The commands to list exported symbols.
 
11393
export_symbols_cmds=$lt_export_symbols_cmds
 
11394
 
 
11395
# The commands to extract the exported symbol list from a shared archive.
 
11396
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11397
 
 
11398
# Symbols that should not be listed in the preloaded symbols.
 
11399
exclude_expsyms=$lt_exclude_expsyms
 
11400
 
 
11401
# Symbols that must always be exported.
 
11402
include_expsyms=$lt_include_expsyms
 
11403
 
 
11404
# ### END LIBTOOL CONFIG
 
11405
 
 
11406
__EOF__
 
11407
 
 
11408
 
 
11409
  case $host_os in
 
11410
  aix3*)
 
11411
    cat <<\EOF >> "$cfgfile"
 
11412
 
 
11413
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11414
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11415
# vanish in a puff of smoke.
 
11416
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11417
  COLLECT_NAMES=
 
11418
  export COLLECT_NAMES
 
11419
fi
 
11420
EOF
 
11421
    ;;
 
11422
  esac
 
11423
 
 
11424
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11425
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11426
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11427
  # is reportedly fixed, but why not run on old versions too?
 
11428
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11429
 
 
11430
  mv -f "$cfgfile" "$ofile" || \
 
11431
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11432
  chmod +x "$ofile"
 
11433
 
 
11434
else
 
11435
  # If there is no Makefile yet, we rely on a make rule to execute
 
11436
  # `config.status --recheck' to rerun these tests and create the
 
11437
  # libtool script then.
 
11438
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11439
  if test -f "$ltmain_in"; then
 
11440
    test -f Makefile && make "$ltmain"
 
11441
  fi
 
11442
fi
 
11443
 
 
11444
 
 
11445
ac_ext=c
 
11446
ac_cpp='$CPP $CPPFLAGS'
 
11447
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11448
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11449
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11450
 
 
11451
CC="$lt_save_CC"
 
11452
 
 
11453
 
 
11454
# Check whether --with-tags or --without-tags was given.
 
11455
if test "${with_tags+set}" = set; then
 
11456
  withval="$with_tags"
 
11457
  tagnames="$withval"
 
11458
fi;
 
11459
 
 
11460
if test -f "$ltmain" && test -n "$tagnames"; then
 
11461
  if test ! -f "${ofile}"; then
 
11462
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11463
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11464
  fi
 
11465
 
 
11466
  if test -z "$LTCC"; then
 
11467
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11468
    if test -z "$LTCC"; then
 
11469
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11470
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11471
    else
 
11472
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11473
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11474
    fi
 
11475
  fi
 
11476
 
 
11477
  # Extract list of available tagged configurations in $ofile.
 
11478
  # Note that this assumes the entire list is on one line.
 
11479
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11480
 
 
11481
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11482
  for tagname in $tagnames; do
 
11483
    IFS="$lt_save_ifs"
 
11484
    # Check whether tagname contains only valid characters
 
11485
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11486
    "") ;;
 
11487
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11488
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11489
   { (exit 1); exit 1; }; }
 
11490
        ;;
 
11491
    esac
 
11492
 
 
11493
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11494
    then
 
11495
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11496
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11497
   { (exit 1); exit 1; }; }
 
11498
    fi
 
11499
 
 
11500
    # Update the list of available tags.
 
11501
    if test -n "$tagname"; then
 
11502
      echo appending configuration tag \"$tagname\" to $ofile
 
11503
 
 
11504
      case $tagname in
 
11505
      CXX)
 
11506
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
11507
          ac_ext=cc
 
11508
ac_cpp='$CXXCPP $CPPFLAGS'
 
11509
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11510
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11511
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11512
 
 
11513
 
 
11514
 
 
11515
 
 
11516
archive_cmds_need_lc_CXX=no
 
11517
allow_undefined_flag_CXX=
 
11518
always_export_symbols_CXX=no
 
11519
archive_expsym_cmds_CXX=
 
11520
export_dynamic_flag_spec_CXX=
 
11521
hardcode_direct_CXX=no
 
11522
hardcode_libdir_flag_spec_CXX=
 
11523
hardcode_libdir_flag_spec_ld_CXX=
 
11524
hardcode_libdir_separator_CXX=
 
11525
hardcode_minus_L_CXX=no
 
11526
hardcode_automatic_CXX=no
 
11527
module_cmds_CXX=
 
11528
module_expsym_cmds_CXX=
 
11529
link_all_deplibs_CXX=unknown
 
11530
old_archive_cmds_CXX=$old_archive_cmds
 
11531
no_undefined_flag_CXX=
 
11532
whole_archive_flag_spec_CXX=
 
11533
enable_shared_with_static_runtimes_CXX=no
 
11534
 
 
11535
# Dependencies to place before and after the object being linked:
 
11536
predep_objects_CXX=
 
11537
postdep_objects_CXX=
 
11538
predeps_CXX=
 
11539
postdeps_CXX=
 
11540
compiler_lib_search_path_CXX=
 
11541
 
 
11542
# Source file extension for C++ test sources.
 
11543
ac_ext=cc
 
11544
 
 
11545
# Object file extension for compiled C++ test sources.
 
11546
objext=o
 
11547
objext_CXX=$objext
 
11548
 
 
11549
# Code to be used in simple compile tests
 
11550
lt_simple_compile_test_code="int some_variable = 0;\n"
 
11551
 
 
11552
# Code to be used in simple link tests
 
11553
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
11554
 
 
11555
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11556
 
 
11557
# If no C compiler was specified, use CC.
 
11558
LTCC=${LTCC-"$CC"}
 
11559
 
 
11560
# Allow CC to be a program name with arguments.
 
11561
compiler=$CC
 
11562
 
 
11563
 
 
11564
# Allow CC to be a program name with arguments.
 
11565
lt_save_CC=$CC
 
11566
lt_save_LD=$LD
 
11567
lt_save_GCC=$GCC
 
11568
GCC=$GXX
 
11569
lt_save_with_gnu_ld=$with_gnu_ld
 
11570
lt_save_path_LD=$lt_cv_path_LD
 
11571
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11572
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11573
else
 
11574
  unset lt_cv_prog_gnu_ld
 
11575
fi
 
11576
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11577
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11578
else
 
11579
  unset lt_cv_path_LD
 
11580
fi
 
11581
test -z "${LDCXX+set}" || LD=$LDCXX
 
11582
CC=${CXX-"c++"}
 
11583
compiler=$CC
 
11584
compiler_CXX=$CC
 
11585
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
11586
 
 
11587
# We don't want -fno-exception wen compiling C++ code, so set the
 
11588
# no_builtin_flag separately
 
11589
if test "$GXX" = yes; then
 
11590
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11591
else
 
11592
  lt_prog_compiler_no_builtin_flag_CXX=
 
11593
fi
 
11594
 
 
11595
if test "$GXX" = yes; then
 
11596
  # Set up default GNU C++ configuration
 
11597
 
 
11598
 
 
11599
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
11600
if test "${with_gnu_ld+set}" = set; then
 
11601
  withval="$with_gnu_ld"
 
11602
  test "$withval" = no || with_gnu_ld=yes
 
11603
else
 
11604
  with_gnu_ld=no
 
11605
fi;
 
11606
ac_prog=ld
 
11607
if test "$GCC" = yes; then
 
11608
  # Check if gcc -print-prog-name=ld gives a path.
 
11609
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11610
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
11611
  case $host in
 
11612
  *-*-mingw*)
 
11613
    # gcc leaves a trailing carriage return which upsets mingw
 
11614
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11615
  *)
 
11616
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11617
  esac
 
11618
  case $ac_prog in
 
11619
    # Accept absolute paths.
 
11620
    [\\/]* | ?:[\\/]*)
 
11621
      re_direlt='/[^/][^/]*/\.\./'
 
11622
      # Canonicalize the pathname of ld
 
11623
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11624
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11625
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11626
      done
 
11627
      test -z "$LD" && LD="$ac_prog"
 
11628
      ;;
 
11629
  "")
 
11630
    # If it fails, then pretend we aren't using GCC.
 
11631
    ac_prog=ld
 
11632
    ;;
 
11633
  *)
 
11634
    # If it is relative, then search for the first ld in PATH.
 
11635
    with_gnu_ld=unknown
 
11636
    ;;
 
11637
  esac
 
11638
elif test "$with_gnu_ld" = yes; then
 
11639
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11640
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
11641
else
 
11642
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11643
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
11644
fi
 
11645
if test "${lt_cv_path_LD+set}" = set; then
 
11646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11647
else
 
11648
  if test -z "$LD"; then
 
11649
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11650
  for ac_dir in $PATH; do
 
11651
    IFS="$lt_save_ifs"
 
11652
    test -z "$ac_dir" && ac_dir=.
 
11653
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11654
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11655
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11656
      # but apparently some GNU ld's only accept -v.
 
11657
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11658
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11659
      *GNU* | *'with BFD'*)
 
11660
        test "$with_gnu_ld" != no && break
 
11661
        ;;
 
11662
      *)
 
11663
        test "$with_gnu_ld" != yes && break
 
11664
        ;;
 
11665
      esac
 
11666
    fi
 
11667
  done
 
11668
  IFS="$lt_save_ifs"
 
11669
else
 
11670
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11671
fi
 
11672
fi
 
11673
 
 
11674
LD="$lt_cv_path_LD"
 
11675
if test -n "$LD"; then
 
11676
  echo "$as_me:$LINENO: result: $LD" >&5
 
11677
echo "${ECHO_T}$LD" >&6
 
11678
else
 
11679
  echo "$as_me:$LINENO: result: no" >&5
 
11680
echo "${ECHO_T}no" >&6
 
11681
fi
 
11682
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11683
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11684
   { (exit 1); exit 1; }; }
 
11685
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11686
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
11687
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11689
else
 
11690
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11691
case `$LD -v 2>&1 </dev/null` in
 
11692
*GNU* | *'with BFD'*)
 
11693
  lt_cv_prog_gnu_ld=yes
 
11694
  ;;
 
11695
*)
 
11696
  lt_cv_prog_gnu_ld=no
 
11697
  ;;
 
11698
esac
 
11699
fi
 
11700
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11701
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
11702
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11703
 
 
11704
 
 
11705
 
 
11706
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11707
  # archiving commands below assume that GNU ld is being used.
 
11708
  if test "$with_gnu_ld" = yes; then
 
11709
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11710
    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'
 
11711
 
 
11712
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11713
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11714
 
 
11715
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11716
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11717
    #     investigate it a little bit more. (MM)
 
11718
    wlarc='${wl}'
 
11719
 
 
11720
    # ancient GNU ld didn't support --whole-archive et. al.
 
11721
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11722
        grep 'no-whole-archive' > /dev/null; then
 
11723
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11724
    else
 
11725
      whole_archive_flag_spec_CXX=
 
11726
    fi
 
11727
  else
 
11728
    with_gnu_ld=no
 
11729
    wlarc=
 
11730
 
 
11731
    # A generic and very simple default shared library creation
 
11732
    # command for GNU C++ for the case where it uses the native
 
11733
    # linker, instead of GNU ld.  If possible, this setting should
 
11734
    # overridden to take advantage of the native linker features on
 
11735
    # the platform it is being used on.
 
11736
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11737
  fi
 
11738
 
 
11739
  # Commands to make compiler produce verbose output that lists
 
11740
  # what "hidden" libraries, object files and flags are used when
 
11741
  # linking a shared library.
 
11742
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11743
 
 
11744
else
 
11745
  GXX=no
 
11746
  with_gnu_ld=no
 
11747
  wlarc=
 
11748
fi
 
11749
 
 
11750
# PORTME: fill in a description of your system's C++ link characteristics
 
11751
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11752
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11753
ld_shlibs_CXX=yes
 
11754
case $host_os in
 
11755
  aix3*)
 
11756
    # FIXME: insert proper C++ library support
 
11757
    ld_shlibs_CXX=no
 
11758
    ;;
 
11759
  aix4* | aix5*)
 
11760
    if test "$host_cpu" = ia64; then
 
11761
      # On IA64, the linker does run time linking by default, so we don't
 
11762
      # have to do anything special.
 
11763
      aix_use_runtimelinking=no
 
11764
      exp_sym_flag='-Bexport'
 
11765
      no_entry_flag=""
 
11766
    else
 
11767
      aix_use_runtimelinking=no
 
11768
 
 
11769
      # Test if we are trying to use run time linking or normal
 
11770
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11771
      # need to do runtime linking.
 
11772
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11773
        for ld_flag in $LDFLAGS; do
 
11774
          case $ld_flag in
 
11775
          *-brtl*)
 
11776
            aix_use_runtimelinking=yes
 
11777
            break
 
11778
            ;;
 
11779
          esac
 
11780
        done
 
11781
      esac
 
11782
 
 
11783
      exp_sym_flag='-bexport'
 
11784
      no_entry_flag='-bnoentry'
 
11785
    fi
 
11786
 
 
11787
    # When large executables or shared objects are built, AIX ld can
 
11788
    # have problems creating the table of contents.  If linking a library
 
11789
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11790
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11791
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11792
 
 
11793
    archive_cmds_CXX=''
 
11794
    hardcode_direct_CXX=yes
 
11795
    hardcode_libdir_separator_CXX=':'
 
11796
    link_all_deplibs_CXX=yes
 
11797
 
 
11798
    if test "$GXX" = yes; then
 
11799
      case $host_os in aix4.012|aix4.012.*)
 
11800
      # We only want to do this on AIX 4.2 and lower, the check
 
11801
      # below for broken collect2 doesn't work under 4.3+
 
11802
        collect2name=`${CC} -print-prog-name=collect2`
 
11803
        if test -f "$collect2name" && \
 
11804
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11805
        then
 
11806
          # We have reworked collect2
 
11807
          hardcode_direct_CXX=yes
 
11808
        else
 
11809
          # We have old collect2
 
11810
          hardcode_direct_CXX=unsupported
 
11811
          # It fails to find uninstalled libraries when the uninstalled
 
11812
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11813
          # to unsupported forces relinking
 
11814
          hardcode_minus_L_CXX=yes
 
11815
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11816
          hardcode_libdir_separator_CXX=
 
11817
        fi
 
11818
      esac
 
11819
      shared_flag='-shared'
 
11820
    else
 
11821
      # not using gcc
 
11822
      if test "$host_cpu" = ia64; then
 
11823
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11824
        # chokes on -Wl,-G. The following line is correct:
 
11825
        shared_flag='-G'
 
11826
      else
 
11827
        if test "$aix_use_runtimelinking" = yes; then
 
11828
          shared_flag='${wl}-G'
 
11829
        else
 
11830
          shared_flag='${wl}-bM:SRE'
 
11831
        fi
 
11832
      fi
 
11833
    fi
 
11834
 
 
11835
    # It seems that -bexpall does not export symbols beginning with
 
11836
    # underscore (_), so it is better to generate a list of symbols to export.
 
11837
    always_export_symbols_CXX=yes
 
11838
    if test "$aix_use_runtimelinking" = yes; then
 
11839
      # Warning - without using the other runtime loading flags (-brtl),
 
11840
      # -berok will link without error, but may produce a broken library.
 
11841
      allow_undefined_flag_CXX='-berok'
 
11842
      # Determine the default libpath from the value encoded in an empty executable.
 
11843
      cat >conftest.$ac_ext <<_ACEOF
 
11844
/* confdefs.h.  */
 
11845
_ACEOF
 
11846
cat confdefs.h >>conftest.$ac_ext
 
11847
cat >>conftest.$ac_ext <<_ACEOF
 
11848
/* end confdefs.h.  */
 
11849
 
 
11850
int
 
11851
main ()
 
11852
{
 
11853
 
 
11854
  ;
 
11855
  return 0;
 
11856
}
 
11857
_ACEOF
 
11858
rm -f conftest.$ac_objext conftest$ac_exeext
 
11859
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11860
  (eval $ac_link) 2>conftest.er1
 
11861
  ac_status=$?
 
11862
  grep -v '^ *+' conftest.er1 >conftest.err
 
11863
  rm -f conftest.er1
 
11864
  cat conftest.err >&5
 
11865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11866
  (exit $ac_status); } &&
 
11867
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11869
  (eval $ac_try) 2>&5
 
11870
  ac_status=$?
 
11871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11872
  (exit $ac_status); }; } &&
 
11873
         { ac_try='test -s conftest$ac_exeext'
 
11874
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11875
  (eval $ac_try) 2>&5
 
11876
  ac_status=$?
 
11877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11878
  (exit $ac_status); }; }; then
 
11879
 
 
11880
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11881
}'`
 
11882
# Check for a 64-bit object if we didn't find anything.
 
11883
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; }
 
11884
}'`; fi
 
11885
else
 
11886
  echo "$as_me: failed program was:" >&5
 
11887
sed 's/^/| /' conftest.$ac_ext >&5
 
11888
 
 
11889
fi
 
11890
rm -f conftest.err conftest.$ac_objext \
 
11891
      conftest$ac_exeext conftest.$ac_ext
 
11892
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11893
 
 
11894
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11895
 
 
11896
      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"
 
11897
     else
 
11898
      if test "$host_cpu" = ia64; then
 
11899
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11900
        allow_undefined_flag_CXX="-z nodefs"
 
11901
        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"
 
11902
      else
 
11903
        # Determine the default libpath from the value encoded in an empty executable.
 
11904
        cat >conftest.$ac_ext <<_ACEOF
 
11905
/* confdefs.h.  */
 
11906
_ACEOF
 
11907
cat confdefs.h >>conftest.$ac_ext
 
11908
cat >>conftest.$ac_ext <<_ACEOF
 
11909
/* end confdefs.h.  */
 
11910
 
 
11911
int
 
11912
main ()
 
11913
{
 
11914
 
 
11915
  ;
 
11916
  return 0;
 
11917
}
 
11918
_ACEOF
 
11919
rm -f conftest.$ac_objext conftest$ac_exeext
 
11920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11921
  (eval $ac_link) 2>conftest.er1
 
11922
  ac_status=$?
 
11923
  grep -v '^ *+' conftest.er1 >conftest.err
 
11924
  rm -f conftest.er1
 
11925
  cat conftest.err >&5
 
11926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11927
  (exit $ac_status); } &&
 
11928
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
11929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11930
  (eval $ac_try) 2>&5
 
11931
  ac_status=$?
 
11932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11933
  (exit $ac_status); }; } &&
 
11934
         { ac_try='test -s conftest$ac_exeext'
 
11935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11936
  (eval $ac_try) 2>&5
 
11937
  ac_status=$?
 
11938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11939
  (exit $ac_status); }; }; then
 
11940
 
 
11941
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11942
}'`
 
11943
# Check for a 64-bit object if we didn't find anything.
 
11944
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; }
 
11945
}'`; fi
 
11946
else
 
11947
  echo "$as_me: failed program was:" >&5
 
11948
sed 's/^/| /' conftest.$ac_ext >&5
 
11949
 
 
11950
fi
 
11951
rm -f conftest.err conftest.$ac_objext \
 
11952
      conftest$ac_exeext conftest.$ac_ext
 
11953
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11954
 
 
11955
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11956
        # Warning - without using the other run time loading flags,
 
11957
        # -berok will link without error, but may produce a broken library.
 
11958
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11959
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11960
        # -bexpall does not export symbols beginning with underscore (_)
 
11961
        always_export_symbols_CXX=yes
 
11962
        # Exported symbols can be pulled into shared objects from archives
 
11963
        whole_archive_flag_spec_CXX=' '
 
11964
        archive_cmds_need_lc_CXX=yes
 
11965
        # This is similar to how AIX traditionally builds it's shared libraries.
 
11966
        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'
 
11967
      fi
 
11968
    fi
 
11969
    ;;
 
11970
  chorus*)
 
11971
    case $cc_basename in
 
11972
      *)
 
11973
        # FIXME: insert proper C++ library support
 
11974
        ld_shlibs_CXX=no
 
11975
        ;;
 
11976
    esac
 
11977
    ;;
 
11978
 
 
11979
  cygwin* | mingw* | pw32*)
 
11980
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11981
    # as there is no search path for DLLs.
 
11982
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11983
    allow_undefined_flag_CXX=unsupported
 
11984
    always_export_symbols_CXX=no
 
11985
    enable_shared_with_static_runtimes_CXX=yes
 
11986
 
 
11987
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11988
      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'
 
11989
      # If the export-symbols file already is a .def file (1st line
 
11990
      # is EXPORTS), use it as is; otherwise, prepend...
 
11991
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11992
        cp $export_symbols $output_objdir/$soname.def;
 
11993
      else
 
11994
        echo EXPORTS > $output_objdir/$soname.def;
 
11995
        cat $export_symbols >> $output_objdir/$soname.def;
 
11996
      fi~
 
11997
      $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'
 
11998
    else
 
11999
      ld_shlibs_CXX=no
 
12000
    fi
 
12001
  ;;
 
12002
 
 
12003
  darwin* | rhapsody*)
 
12004
  if test "$GXX" = yes; then
 
12005
    archive_cmds_need_lc_CXX=no
 
12006
    case "$host_os" in
 
12007
    rhapsody* | darwin1.[012])
 
12008
      allow_undefined_flag_CXX='-undefined suppress'
 
12009
      ;;
 
12010
    *) # Darwin 1.3 on
 
12011
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
12012
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
12013
      else
 
12014
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
12015
          10.[012])
 
12016
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
12017
            ;;
 
12018
          10.*)
 
12019
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
12020
            ;;
 
12021
        esac
 
12022
      fi
 
12023
      ;;
 
12024
    esac
 
12025
    lt_int_apple_cc_single_mod=no
 
12026
    output_verbose_link_cmd='echo'
 
12027
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
12028
      lt_int_apple_cc_single_mod=yes
 
12029
    fi
 
12030
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12031
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12032
    else
 
12033
      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'
 
12034
    fi
 
12035
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12036
 
 
12037
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
12038
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12039
      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}'
 
12040
    else
 
12041
      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}'
 
12042
    fi
 
12043
    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}'
 
12044
    hardcode_direct_CXX=no
 
12045
    hardcode_automatic_CXX=yes
 
12046
    hardcode_shlibpath_var_CXX=unsupported
 
12047
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
12048
    link_all_deplibs_CXX=yes
 
12049
  else
 
12050
    ld_shlibs_CXX=no
 
12051
  fi
 
12052
    ;;
 
12053
 
 
12054
  dgux*)
 
12055
    case $cc_basename in
 
12056
      ec++)
 
12057
        # FIXME: insert proper C++ library support
 
12058
        ld_shlibs_CXX=no
 
12059
        ;;
 
12060
      ghcx)
 
12061
        # Green Hills C++ Compiler
 
12062
        # FIXME: insert proper C++ library support
 
12063
        ld_shlibs_CXX=no
 
12064
        ;;
 
12065
      *)
 
12066
        # FIXME: insert proper C++ library support
 
12067
        ld_shlibs_CXX=no
 
12068
        ;;
 
12069
    esac
 
12070
    ;;
 
12071
  freebsd12*)
 
12072
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12073
    ld_shlibs_CXX=no
 
12074
    ;;
 
12075
  freebsd-elf*)
 
12076
    archive_cmds_need_lc_CXX=no
 
12077
    ;;
 
12078
  freebsd* | kfreebsd*-gnu)
 
12079
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12080
    # conventions
 
12081
    ld_shlibs_CXX=yes
 
12082
    ;;
 
12083
  gnu*)
 
12084
    ;;
 
12085
  hpux9*)
 
12086
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12087
    hardcode_libdir_separator_CXX=:
 
12088
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12089
    hardcode_direct_CXX=yes
 
12090
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12091
                                # but as the default
 
12092
                                # location of the library.
 
12093
 
 
12094
    case $cc_basename in
 
12095
    CC)
 
12096
      # FIXME: insert proper C++ library support
 
12097
      ld_shlibs_CXX=no
 
12098
      ;;
 
12099
    aCC)
 
12100
      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'
 
12101
      # Commands to make compiler produce verbose output that lists
 
12102
      # what "hidden" libraries, object files and flags are used when
 
12103
      # linking a shared library.
 
12104
      #
 
12105
      # There doesn't appear to be a way to prevent this compiler from
 
12106
      # explicitly linking system object files so we need to strip them
 
12107
      # from the output so that they don't get included in the library
 
12108
      # dependencies.
 
12109
      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'
 
12110
      ;;
 
12111
    *)
 
12112
      if test "$GXX" = yes; then
 
12113
        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'
 
12114
      else
 
12115
        # FIXME: insert proper C++ library support
 
12116
        ld_shlibs_CXX=no
 
12117
      fi
 
12118
      ;;
 
12119
    esac
 
12120
    ;;
 
12121
  hpux10*|hpux11*)
 
12122
    if test $with_gnu_ld = no; then
 
12123
      case "$host_cpu" in
 
12124
      hppa*64*)
 
12125
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12126
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
12127
        hardcode_libdir_separator_CXX=:
 
12128
        ;;
 
12129
      ia64*)
 
12130
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12131
        ;;
 
12132
      *)
 
12133
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12134
        hardcode_libdir_separator_CXX=:
 
12135
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12136
        ;;
 
12137
      esac
 
12138
    fi
 
12139
    case "$host_cpu" in
 
12140
    hppa*64*)
 
12141
      hardcode_direct_CXX=no
 
12142
      hardcode_shlibpath_var_CXX=no
 
12143
      ;;
 
12144
    ia64*)
 
12145
      hardcode_direct_CXX=no
 
12146
      hardcode_shlibpath_var_CXX=no
 
12147
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12148
                                              # but as the default
 
12149
                                              # location of the library.
 
12150
      ;;
 
12151
    *)
 
12152
      hardcode_direct_CXX=yes
 
12153
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12154
                                              # but as the default
 
12155
                                              # location of the library.
 
12156
      ;;
 
12157
    esac
 
12158
 
 
12159
    case $cc_basename in
 
12160
      CC)
 
12161
        # FIXME: insert proper C++ library support
 
12162
        ld_shlibs_CXX=no
 
12163
        ;;
 
12164
      aCC)
 
12165
        case "$host_cpu" in
 
12166
        hppa*64*|ia64*)
 
12167
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12168
          ;;
 
12169
        *)
 
12170
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12171
          ;;
 
12172
        esac
 
12173
        # Commands to make compiler produce verbose output that lists
 
12174
        # what "hidden" libraries, object files and flags are used when
 
12175
        # linking a shared library.
 
12176
        #
 
12177
        # There doesn't appear to be a way to prevent this compiler from
 
12178
        # explicitly linking system object files so we need to strip them
 
12179
        # from the output so that they don't get included in the library
 
12180
        # dependencies.
 
12181
        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'
 
12182
        ;;
 
12183
      *)
 
12184
        if test "$GXX" = yes; then
 
12185
          if test $with_gnu_ld = no; then
 
12186
            case "$host_cpu" in
 
12187
            ia64*|hppa*64*)
 
12188
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12189
              ;;
 
12190
            *)
 
12191
              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'
 
12192
              ;;
 
12193
            esac
 
12194
          fi
 
12195
        else
 
12196
          # FIXME: insert proper C++ library support
 
12197
          ld_shlibs_CXX=no
 
12198
        fi
 
12199
        ;;
 
12200
    esac
 
12201
    ;;
 
12202
  irix5* | irix6*)
 
12203
    case $cc_basename in
 
12204
      CC)
 
12205
        # SGI C++
 
12206
        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'
 
12207
 
 
12208
        # Archives containing C++ object files must be created using
 
12209
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12210
        # necessary to make sure instantiated templates are included
 
12211
        # in the archive.
 
12212
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12213
        ;;
 
12214
      *)
 
12215
        if test "$GXX" = yes; then
 
12216
          if test "$with_gnu_ld" = no; then
 
12217
            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'
 
12218
          else
 
12219
            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'
 
12220
          fi
 
12221
        fi
 
12222
        link_all_deplibs_CXX=yes
 
12223
        ;;
 
12224
    esac
 
12225
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12226
    hardcode_libdir_separator_CXX=:
 
12227
    ;;
 
12228
  linux*)
 
12229
    case $cc_basename in
 
12230
      KCC)
 
12231
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12232
 
 
12233
        # KCC will only create a shared library if the output file
 
12234
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12235
        # to its proper name (with version) after linking.
 
12236
        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'
 
12237
        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'
 
12238
        # Commands to make compiler produce verbose output that lists
 
12239
        # what "hidden" libraries, object files and flags are used when
 
12240
        # linking a shared library.
 
12241
        #
 
12242
        # There doesn't appear to be a way to prevent this compiler from
 
12243
        # explicitly linking system object files so we need to strip them
 
12244
        # from the output so that they don't get included in the library
 
12245
        # dependencies.
 
12246
        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'
 
12247
 
 
12248
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12249
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12250
 
 
12251
        # Archives containing C++ object files must be created using
 
12252
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12253
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12254
        ;;
 
12255
      icpc)
 
12256
        # Intel C++
 
12257
        with_gnu_ld=yes
 
12258
        archive_cmds_need_lc_CXX=no
 
12259
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12260
        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'
 
12261
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12262
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12263
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12264
        ;;
 
12265
      cxx)
 
12266
        # Compaq C++
 
12267
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12268
        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'
 
12269
 
 
12270
        runpath_var=LD_RUN_PATH
 
12271
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12272
        hardcode_libdir_separator_CXX=:
 
12273
 
 
12274
        # Commands to make compiler produce verbose output that lists
 
12275
        # what "hidden" libraries, object files and flags are used when
 
12276
        # linking a shared library.
 
12277
        #
 
12278
        # There doesn't appear to be a way to prevent this compiler from
 
12279
        # explicitly linking system object files so we need to strip them
 
12280
        # from the output so that they don't get included in the library
 
12281
        # dependencies.
 
12282
        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'
 
12283
        ;;
 
12284
    esac
 
12285
    ;;
 
12286
  lynxos*)
 
12287
    # FIXME: insert proper C++ library support
 
12288
    ld_shlibs_CXX=no
 
12289
    ;;
 
12290
  m88k*)
 
12291
    # FIXME: insert proper C++ library support
 
12292
    ld_shlibs_CXX=no
 
12293
    ;;
 
12294
  mvs*)
 
12295
    case $cc_basename in
 
12296
      cxx)
 
12297
        # FIXME: insert proper C++ library support
 
12298
        ld_shlibs_CXX=no
 
12299
        ;;
 
12300
      *)
 
12301
        # FIXME: insert proper C++ library support
 
12302
        ld_shlibs_CXX=no
 
12303
        ;;
 
12304
    esac
 
12305
    ;;
 
12306
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
12307
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12308
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12309
      wlarc=
 
12310
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12311
      hardcode_direct_CXX=yes
 
12312
      hardcode_shlibpath_var_CXX=no
 
12313
    fi
 
12314
    # Workaround some broken pre-1.5 toolchains
 
12315
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12316
    ;;
 
12317
  osf3*)
 
12318
    case $cc_basename in
 
12319
      KCC)
 
12320
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12321
 
 
12322
        # KCC will only create a shared library if the output file
 
12323
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12324
        # to its proper name (with version) after linking.
 
12325
        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'
 
12326
 
 
12327
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12328
        hardcode_libdir_separator_CXX=:
 
12329
 
 
12330
        # Archives containing C++ object files must be created using
 
12331
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12332
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12333
 
 
12334
        ;;
 
12335
      RCC)
 
12336
        # Rational C++ 2.4.1
 
12337
        # FIXME: insert proper C++ library support
 
12338
        ld_shlibs_CXX=no
 
12339
        ;;
 
12340
      cxx)
 
12341
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12342
        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'
 
12343
 
 
12344
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12345
        hardcode_libdir_separator_CXX=:
 
12346
 
 
12347
        # Commands to make compiler produce verbose output that lists
 
12348
        # what "hidden" libraries, object files and flags are used when
 
12349
        # linking a shared library.
 
12350
        #
 
12351
        # There doesn't appear to be a way to prevent this compiler from
 
12352
        # explicitly linking system object files so we need to strip them
 
12353
        # from the output so that they don't get included in the library
 
12354
        # dependencies.
 
12355
        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'
 
12356
        ;;
 
12357
      *)
 
12358
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12359
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12360
          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'
 
12361
 
 
12362
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12363
          hardcode_libdir_separator_CXX=:
 
12364
 
 
12365
          # Commands to make compiler produce verbose output that lists
 
12366
          # what "hidden" libraries, object files and flags are used when
 
12367
          # linking a shared library.
 
12368
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12369
 
 
12370
        else
 
12371
          # FIXME: insert proper C++ library support
 
12372
          ld_shlibs_CXX=no
 
12373
        fi
 
12374
        ;;
 
12375
    esac
 
12376
    ;;
 
12377
  osf4* | osf5*)
 
12378
    case $cc_basename in
 
12379
      KCC)
 
12380
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12381
 
 
12382
        # KCC will only create a shared library if the output file
 
12383
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12384
        # to its proper name (with version) after linking.
 
12385
        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'
 
12386
 
 
12387
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12388
        hardcode_libdir_separator_CXX=:
 
12389
 
 
12390
        # Archives containing C++ object files must be created using
 
12391
        # the KAI C++ compiler.
 
12392
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12393
        ;;
 
12394
      RCC)
 
12395
        # Rational C++ 2.4.1
 
12396
        # FIXME: insert proper C++ library support
 
12397
        ld_shlibs_CXX=no
 
12398
        ;;
 
12399
      cxx)
 
12400
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12401
        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'
 
12402
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12403
          echo "-hidden">> $lib.exp~
 
12404
          $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~
 
12405
          $rm $lib.exp'
 
12406
 
 
12407
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12408
        hardcode_libdir_separator_CXX=:
 
12409
 
 
12410
        # Commands to make compiler produce verbose output that lists
 
12411
        # what "hidden" libraries, object files and flags are used when
 
12412
        # linking a shared library.
 
12413
        #
 
12414
        # There doesn't appear to be a way to prevent this compiler from
 
12415
        # explicitly linking system object files so we need to strip them
 
12416
        # from the output so that they don't get included in the library
 
12417
        # dependencies.
 
12418
        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'
 
12419
        ;;
 
12420
      *)
 
12421
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12422
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12423
         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'
 
12424
 
 
12425
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12426
          hardcode_libdir_separator_CXX=:
 
12427
 
 
12428
          # Commands to make compiler produce verbose output that lists
 
12429
          # what "hidden" libraries, object files and flags are used when
 
12430
          # linking a shared library.
 
12431
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12432
 
 
12433
        else
 
12434
          # FIXME: insert proper C++ library support
 
12435
          ld_shlibs_CXX=no
 
12436
        fi
 
12437
        ;;
 
12438
    esac
 
12439
    ;;
 
12440
  psos*)
 
12441
    # FIXME: insert proper C++ library support
 
12442
    ld_shlibs_CXX=no
 
12443
    ;;
 
12444
  sco*)
 
12445
    archive_cmds_need_lc_CXX=no
 
12446
    case $cc_basename in
 
12447
      CC)
 
12448
        # FIXME: insert proper C++ library support
 
12449
        ld_shlibs_CXX=no
 
12450
        ;;
 
12451
      *)
 
12452
        # FIXME: insert proper C++ library support
 
12453
        ld_shlibs_CXX=no
 
12454
        ;;
 
12455
    esac
 
12456
    ;;
 
12457
  sunos4*)
 
12458
    case $cc_basename in
 
12459
      CC)
 
12460
        # Sun C++ 4.x
 
12461
        # FIXME: insert proper C++ library support
 
12462
        ld_shlibs_CXX=no
 
12463
        ;;
 
12464
      lcc)
 
12465
        # Lucid
 
12466
        # FIXME: insert proper C++ library support
 
12467
        ld_shlibs_CXX=no
 
12468
        ;;
 
12469
      *)
 
12470
        # FIXME: insert proper C++ library support
 
12471
        ld_shlibs_CXX=no
 
12472
        ;;
 
12473
    esac
 
12474
    ;;
 
12475
  solaris*)
 
12476
    case $cc_basename in
 
12477
      CC)
 
12478
        # Sun C++ 4.2, 5.x and Centerline C++
 
12479
        no_undefined_flag_CXX=' -zdefs'
 
12480
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12481
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12482
        $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'
 
12483
 
 
12484
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12485
        hardcode_shlibpath_var_CXX=no
 
12486
        case $host_os in
 
12487
          solaris2.0-5 | solaris2.0-5.*) ;;
 
12488
          *)
 
12489
            # The C++ compiler is used as linker so we must use $wl
 
12490
            # flag to pass the commands to the underlying system
 
12491
            # linker.
 
12492
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12493
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12494
            ;;
 
12495
        esac
 
12496
        link_all_deplibs_CXX=yes
 
12497
 
 
12498
        # Commands to make compiler produce verbose output that lists
 
12499
        # what "hidden" libraries, object files and flags are used when
 
12500
        # linking a shared library.
 
12501
        #
 
12502
        # There doesn't appear to be a way to prevent this compiler from
 
12503
        # explicitly linking system object files so we need to strip them
 
12504
        # from the output so that they don't get included in the library
 
12505
        # dependencies.
 
12506
        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'
 
12507
 
 
12508
        # Archives containing C++ object files must be created using
 
12509
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12510
        # necessary to make sure instantiated templates are included
 
12511
        # in the archive.
 
12512
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12513
        ;;
 
12514
      gcx)
 
12515
        # Green Hills C++ Compiler
 
12516
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12517
 
 
12518
        # The C++ compiler must be used to create the archive.
 
12519
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12520
        ;;
 
12521
      *)
 
12522
        # GNU C++ compiler with Solaris linker
 
12523
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12524
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12525
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12526
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12527
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12528
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12529
 
 
12530
            # Commands to make compiler produce verbose output that lists
 
12531
            # what "hidden" libraries, object files and flags are used when
 
12532
            # linking a shared library.
 
12533
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12534
          else
 
12535
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12536
            # platform.
 
12537
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12538
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12539
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12540
 
 
12541
            # Commands to make compiler produce verbose output that lists
 
12542
            # what "hidden" libraries, object files and flags are used when
 
12543
            # linking a shared library.
 
12544
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12545
          fi
 
12546
 
 
12547
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12548
        fi
 
12549
        ;;
 
12550
    esac
 
12551
    ;;
 
12552
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
12553
    archive_cmds_need_lc_CXX=no
 
12554
    ;;
 
12555
  tandem*)
 
12556
    case $cc_basename in
 
12557
      NCC)
 
12558
        # NonStop-UX NCC 3.20
 
12559
        # FIXME: insert proper C++ library support
 
12560
        ld_shlibs_CXX=no
 
12561
        ;;
 
12562
      *)
 
12563
        # FIXME: insert proper C++ library support
 
12564
        ld_shlibs_CXX=no
 
12565
        ;;
 
12566
    esac
 
12567
    ;;
 
12568
  vxworks*)
 
12569
    # FIXME: insert proper C++ library support
 
12570
    ld_shlibs_CXX=no
 
12571
    ;;
 
12572
  *)
 
12573
    # FIXME: insert proper C++ library support
 
12574
    ld_shlibs_CXX=no
 
12575
    ;;
 
12576
esac
 
12577
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12578
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12579
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12580
 
 
12581
GCC_CXX="$GXX"
 
12582
LD_CXX="$LD"
 
12583
 
 
12584
 
 
12585
cat > conftest.$ac_ext <<EOF
 
12586
class Foo
 
12587
{
 
12588
public:
 
12589
  Foo (void) { a = 0; }
 
12590
private:
 
12591
  int a;
 
12592
};
 
12593
EOF
 
12594
 
 
12595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12596
  (eval $ac_compile) 2>&5
 
12597
  ac_status=$?
 
12598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12599
  (exit $ac_status); }; then
 
12600
  # Parse the compiler output and extract the necessary
 
12601
  # objects, libraries and library flags.
 
12602
 
 
12603
  # Sentinel used to keep track of whether or not we are before
 
12604
  # the conftest object file.
 
12605
  pre_test_object_deps_done=no
 
12606
 
 
12607
  # The `*' in the case matches for architectures that use `case' in
 
12608
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12609
  # eval without this substitution.
 
12610
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
12611
 
 
12612
  for p in `eval $output_verbose_link_cmd`; do
 
12613
    case $p in
 
12614
 
 
12615
    -L* | -R* | -l*)
 
12616
       # Some compilers place space between "-{L,R}" and the path.
 
12617
       # Remove the space.
 
12618
       if test $p = "-L" \
 
12619
          || test $p = "-R"; then
 
12620
         prev=$p
 
12621
         continue
 
12622
       else
 
12623
         prev=
 
12624
       fi
 
12625
 
 
12626
       if test "$pre_test_object_deps_done" = no; then
 
12627
         case $p in
 
12628
         -L* | -R*)
 
12629
           # Internal compiler library paths should come after those
 
12630
           # provided the user.  The postdeps already come after the
 
12631
           # user supplied libs so there is no need to process them.
 
12632
           if test -z "$compiler_lib_search_path_CXX"; then
 
12633
             compiler_lib_search_path_CXX="${prev}${p}"
 
12634
           else
 
12635
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12636
           fi
 
12637
           ;;
 
12638
         # The "-l" case would never come before the object being
 
12639
         # linked, so don't bother handling this case.
 
12640
         esac
 
12641
       else
 
12642
         if test -z "$postdeps_CXX"; then
 
12643
           postdeps_CXX="${prev}${p}"
 
12644
         else
 
12645
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12646
         fi
 
12647
       fi
 
12648
       ;;
 
12649
 
 
12650
    *.$objext)
 
12651
       # This assumes that the test object file only shows up
 
12652
       # once in the compiler output.
 
12653
       if test "$p" = "conftest.$objext"; then
 
12654
         pre_test_object_deps_done=yes
 
12655
         continue
 
12656
       fi
 
12657
 
 
12658
       if test "$pre_test_object_deps_done" = no; then
 
12659
         if test -z "$predep_objects_CXX"; then
 
12660
           predep_objects_CXX="$p"
 
12661
         else
 
12662
           predep_objects_CXX="$predep_objects_CXX $p"
 
12663
         fi
 
12664
       else
 
12665
         if test -z "$postdep_objects_CXX"; then
 
12666
           postdep_objects_CXX="$p"
 
12667
         else
 
12668
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12669
         fi
 
12670
       fi
 
12671
       ;;
 
12672
 
 
12673
    *) ;; # Ignore the rest.
 
12674
 
 
12675
    esac
 
12676
  done
 
12677
 
 
12678
  # Clean up.
 
12679
  rm -f a.out a.exe
 
12680
else
 
12681
  echo "libtool.m4: error: problem compiling CXX test program"
 
12682
fi
 
12683
 
 
12684
$rm -f confest.$objext
 
12685
 
 
12686
case " $postdeps_CXX " in
 
12687
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12688
esac
 
12689
 
 
12690
lt_prog_compiler_wl_CXX=
 
12691
lt_prog_compiler_pic_CXX=
 
12692
lt_prog_compiler_static_CXX=
 
12693
 
 
12694
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12695
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12696
 
 
12697
  # C++ specific cases for pic, static, wl, etc.
 
12698
  if test "$GXX" = yes; then
 
12699
    lt_prog_compiler_wl_CXX='-Wl,'
 
12700
    lt_prog_compiler_static_CXX='-static'
 
12701
 
 
12702
    case $host_os in
 
12703
    aix*)
 
12704
      # All AIX code is PIC.
 
12705
      if test "$host_cpu" = ia64; then
 
12706
        # AIX 5 now supports IA64 processor
 
12707
        lt_prog_compiler_static_CXX='-Bstatic'
 
12708
      fi
 
12709
      ;;
 
12710
    amigaos*)
 
12711
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12712
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12713
      # like `-m68040'.
 
12714
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12715
      ;;
 
12716
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12717
      # PIC is the default for these OSes.
 
12718
      ;;
 
12719
    mingw* | os2* | pw32*)
 
12720
      # This hack is so that the source file can tell whether it is being
 
12721
      # built for inclusion in a dll (and should export symbols for example).
 
12722
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12723
      ;;
 
12724
    darwin* | rhapsody*)
 
12725
      # PIC is the default on this platform
 
12726
      # Common symbols not allowed in MH_DYLIB files
 
12727
      lt_prog_compiler_pic_CXX='-fno-common'
 
12728
      ;;
 
12729
    *djgpp*)
 
12730
      # DJGPP does not support shared libraries at all
 
12731
      lt_prog_compiler_pic_CXX=
 
12732
      ;;
 
12733
    sysv4*MP*)
 
12734
      if test -d /usr/nec; then
 
12735
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12736
      fi
 
12737
      ;;
 
12738
    hpux*)
 
12739
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12740
      # not for PA HP-UX.
 
12741
      case "$host_cpu" in
 
12742
      hppa*64*|ia64*)
 
12743
        ;;
 
12744
      *)
 
12745
        lt_prog_compiler_pic_CXX='-fPIC'
 
12746
        ;;
 
12747
      esac
 
12748
      ;;
 
12749
    *)
 
12750
      lt_prog_compiler_pic_CXX='-fPIC'
 
12751
      ;;
 
12752
    esac
 
12753
  else
 
12754
    case $host_os in
 
12755
      aix4* | aix5*)
 
12756
        # All AIX code is PIC.
 
12757
        if test "$host_cpu" = ia64; then
 
12758
          # AIX 5 now supports IA64 processor
 
12759
          lt_prog_compiler_static_CXX='-Bstatic'
 
12760
        else
 
12761
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12762
        fi
 
12763
        ;;
 
12764
      chorus*)
 
12765
        case $cc_basename in
 
12766
        cxch68)
 
12767
          # Green Hills C++ Compiler
 
12768
          # _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"
 
12769
          ;;
 
12770
        esac
 
12771
        ;;
 
12772
      dgux*)
 
12773
        case $cc_basename in
 
12774
          ec++)
 
12775
            lt_prog_compiler_pic_CXX='-KPIC'
 
12776
            ;;
 
12777
          ghcx)
 
12778
            # Green Hills C++ Compiler
 
12779
            lt_prog_compiler_pic_CXX='-pic'
 
12780
            ;;
 
12781
          *)
 
12782
            ;;
 
12783
        esac
 
12784
        ;;
 
12785
      freebsd* | kfreebsd*-gnu)
 
12786
        # FreeBSD uses GNU C++
 
12787
        ;;
 
12788
      hpux9* | hpux10* | hpux11*)
 
12789
        case $cc_basename in
 
12790
          CC)
 
12791
            lt_prog_compiler_wl_CXX='-Wl,'
 
12792
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12793
            if test "$host_cpu" != ia64; then
 
12794
              lt_prog_compiler_pic_CXX='+Z'
 
12795
            fi
 
12796
            ;;
 
12797
          aCC)
 
12798
            lt_prog_compiler_wl_CXX='-Wl,'
 
12799
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12800
            case "$host_cpu" in
 
12801
            hppa*64*|ia64*)
 
12802
              # +Z the default
 
12803
              ;;
 
12804
            *)
 
12805
              lt_prog_compiler_pic_CXX='+Z'
 
12806
              ;;
 
12807
            esac
 
12808
            ;;
 
12809
          *)
 
12810
            ;;
 
12811
        esac
 
12812
        ;;
 
12813
      irix5* | irix6* | nonstopux*)
 
12814
        case $cc_basename in
 
12815
          CC)
 
12816
            lt_prog_compiler_wl_CXX='-Wl,'
 
12817
            lt_prog_compiler_static_CXX='-non_shared'
 
12818
            # CC pic flag -KPIC is the default.
 
12819
            ;;
 
12820
          *)
 
12821
            ;;
 
12822
        esac
 
12823
        ;;
 
12824
      linux*)
 
12825
        case $cc_basename in
 
12826
          KCC)
 
12827
            # KAI C++ Compiler
 
12828
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12829
            lt_prog_compiler_pic_CXX='-fPIC'
 
12830
            ;;
 
12831
          icpc)
 
12832
            # Intel C++
 
12833
            lt_prog_compiler_wl_CXX='-Wl,'
 
12834
            lt_prog_compiler_pic_CXX='-KPIC'
 
12835
            lt_prog_compiler_static_CXX='-static'
 
12836
            ;;
 
12837
          cxx)
 
12838
            # Compaq C++
 
12839
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12840
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12841
            lt_prog_compiler_pic_CXX=
 
12842
            lt_prog_compiler_static_CXX='-non_shared'
 
12843
            ;;
 
12844
          *)
 
12845
            ;;
 
12846
        esac
 
12847
        ;;
 
12848
      lynxos*)
 
12849
        ;;
 
12850
      m88k*)
 
12851
        ;;
 
12852
      mvs*)
 
12853
        case $cc_basename in
 
12854
          cxx)
 
12855
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12856
            ;;
 
12857
          *)
 
12858
            ;;
 
12859
        esac
 
12860
        ;;
 
12861
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
12862
        ;;
 
12863
      osf3* | osf4* | osf5*)
 
12864
        case $cc_basename in
 
12865
          KCC)
 
12866
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12867
            ;;
 
12868
          RCC)
 
12869
            # Rational C++ 2.4.1
 
12870
            lt_prog_compiler_pic_CXX='-pic'
 
12871
            ;;
 
12872
          cxx)
 
12873
            # Digital/Compaq C++
 
12874
            lt_prog_compiler_wl_CXX='-Wl,'
 
12875
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12876
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12877
            lt_prog_compiler_pic_CXX=
 
12878
            lt_prog_compiler_static_CXX='-non_shared'
 
12879
            ;;
 
12880
          *)
 
12881
            ;;
 
12882
        esac
 
12883
        ;;
 
12884
      psos*)
 
12885
        ;;
 
12886
      sco*)
 
12887
        case $cc_basename in
 
12888
          CC)
 
12889
            lt_prog_compiler_pic_CXX='-fPIC'
 
12890
            ;;
 
12891
          *)
 
12892
            ;;
 
12893
        esac
 
12894
        ;;
 
12895
      solaris*)
 
12896
        case $cc_basename in
 
12897
          CC)
 
12898
            # Sun C++ 4.2, 5.x and Centerline C++
 
12899
            lt_prog_compiler_pic_CXX='-KPIC'
 
12900
            lt_prog_compiler_static_CXX='-Bstatic'
 
12901
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12902
            ;;
 
12903
          gcx)
 
12904
            # Green Hills C++ Compiler
 
12905
            lt_prog_compiler_pic_CXX='-PIC'
 
12906
            ;;
 
12907
          *)
 
12908
            ;;
 
12909
        esac
 
12910
        ;;
 
12911
      sunos4*)
 
12912
        case $cc_basename in
 
12913
          CC)
 
12914
            # Sun C++ 4.x
 
12915
            lt_prog_compiler_pic_CXX='-pic'
 
12916
            lt_prog_compiler_static_CXX='-Bstatic'
 
12917
            ;;
 
12918
          lcc)
 
12919
            # Lucid
 
12920
            lt_prog_compiler_pic_CXX='-pic'
 
12921
            ;;
 
12922
          *)
 
12923
            ;;
 
12924
        esac
 
12925
        ;;
 
12926
      tandem*)
 
12927
        case $cc_basename in
 
12928
          NCC)
 
12929
            # NonStop-UX NCC 3.20
 
12930
            lt_prog_compiler_pic_CXX='-KPIC'
 
12931
            ;;
 
12932
          *)
 
12933
            ;;
 
12934
        esac
 
12935
        ;;
 
12936
      unixware*)
 
12937
        ;;
 
12938
      vxworks*)
 
12939
        ;;
 
12940
      *)
 
12941
        lt_prog_compiler_can_build_shared_CXX=no
 
12942
        ;;
 
12943
    esac
 
12944
  fi
 
12945
 
 
12946
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12947
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
12948
 
 
12949
#
 
12950
# Check to make sure the PIC flag actually works.
 
12951
#
 
12952
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12953
 
 
12954
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12955
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
12956
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12958
else
 
12959
  lt_prog_compiler_pic_works_CXX=no
 
12960
  ac_outfile=conftest.$ac_objext
 
12961
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12962
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12963
   # Insert the option either (1) after the last *FLAGS variable, or
 
12964
   # (2) before a word containing "conftest.", or (3) at the end.
 
12965
   # Note that $ac_compile itself does not contain backslashes and begins
 
12966
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12967
   # The option is referenced via a variable to avoid confusing sed.
 
12968
   lt_compile=`echo "$ac_compile" | $SED \
 
12969
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12970
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12971
   -e 's:$: $lt_compiler_flag:'`
 
12972
   (eval echo "\"\$as_me:12972: $lt_compile\"" >&5)
 
12973
   (eval "$lt_compile" 2>conftest.err)
 
12974
   ac_status=$?
 
12975
   cat conftest.err >&5
 
12976
   echo "$as_me:12976: \$? = $ac_status" >&5
 
12977
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12978
     # The compiler can only warn and ignore the option if not recognized
 
12979
     # So say no if there are warnings
 
12980
     if test ! -s conftest.err; then
 
12981
       lt_prog_compiler_pic_works_CXX=yes
 
12982
     fi
 
12983
   fi
 
12984
   $rm conftest*
 
12985
 
 
12986
fi
 
12987
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12988
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
12989
 
 
12990
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12991
    case $lt_prog_compiler_pic_CXX in
 
12992
     "" | " "*) ;;
 
12993
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12994
     esac
 
12995
else
 
12996
    lt_prog_compiler_pic_CXX=
 
12997
     lt_prog_compiler_can_build_shared_CXX=no
 
12998
fi
 
12999
 
 
13000
fi
 
13001
case "$host_os" in
 
13002
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13003
  *djgpp*)
 
13004
    lt_prog_compiler_pic_CXX=
 
13005
    ;;
 
13006
  *)
 
13007
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13008
    ;;
 
13009
esac
 
13010
 
 
13011
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13012
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13013
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13015
else
 
13016
  lt_cv_prog_compiler_c_o_CXX=no
 
13017
   $rm -r conftest 2>/dev/null
 
13018
   mkdir conftest
 
13019
   cd conftest
 
13020
   mkdir out
 
13021
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13022
 
 
13023
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13024
   # Insert the option either (1) after the last *FLAGS variable, or
 
13025
   # (2) before a word containing "conftest.", or (3) at the end.
 
13026
   # Note that $ac_compile itself does not contain backslashes and begins
 
13027
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13028
   lt_compile=`echo "$ac_compile" | $SED \
 
13029
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13030
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13031
   -e 's:$: $lt_compiler_flag:'`
 
13032
   (eval echo "\"\$as_me:13032: $lt_compile\"" >&5)
 
13033
   (eval "$lt_compile" 2>out/conftest.err)
 
13034
   ac_status=$?
 
13035
   cat out/conftest.err >&5
 
13036
   echo "$as_me:13036: \$? = $ac_status" >&5
 
13037
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13038
   then
 
13039
     # The compiler can only warn and ignore the option if not recognized
 
13040
     # So say no if there are warnings
 
13041
     if test ! -s out/conftest.err; then
 
13042
       lt_cv_prog_compiler_c_o_CXX=yes
 
13043
     fi
 
13044
   fi
 
13045
   chmod u+w .
 
13046
   $rm conftest*
 
13047
   # SGI C++ compiler will create directory out/ii_files/ for
 
13048
   # template instantiation
 
13049
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13050
   $rm out/* && rmdir out
 
13051
   cd ..
 
13052
   rmdir conftest
 
13053
   $rm conftest*
 
13054
 
 
13055
fi
 
13056
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13057
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13058
 
 
13059
 
 
13060
hard_links="nottested"
 
13061
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13062
  # do not overwrite the value of need_locks provided by the user
 
13063
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13064
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13065
  hard_links=yes
 
13066
  $rm conftest*
 
13067
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13068
  touch conftest.a
 
13069
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13070
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13071
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13072
echo "${ECHO_T}$hard_links" >&6
 
13073
  if test "$hard_links" = no; then
 
13074
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13075
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13076
    need_locks=warn
 
13077
  fi
 
13078
else
 
13079
  need_locks=no
 
13080
fi
 
13081
 
 
13082
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13083
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13084
 
 
13085
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13086
  case $host_os in
 
13087
  aix4* | aix5*)
 
13088
    # If we're using GNU nm, then we don't want the "-C" option.
 
13089
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13090
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13091
      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'
 
13092
    else
 
13093
      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'
 
13094
    fi
 
13095
    ;;
 
13096
  pw32*)
 
13097
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13098
  ;;
 
13099
  cygwin* | mingw*)
 
13100
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13101
  ;;
 
13102
  linux*)
 
13103
    link_all_deplibs_CXX=no
 
13104
  ;;
 
13105
  *)
 
13106
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13107
  ;;
 
13108
  esac
 
13109
 
 
13110
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13111
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13112
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13113
 
 
13114
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13115
if test "$GCC" = yes; then
 
13116
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13117
fi
 
13118
 
 
13119
#
 
13120
# Do we need to explicitly link libc?
 
13121
#
 
13122
case "x$archive_cmds_need_lc_CXX" in
 
13123
x|xyes)
 
13124
  # Assume -lc should be added
 
13125
  archive_cmds_need_lc_CXX=yes
 
13126
 
 
13127
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13128
    case $archive_cmds_CXX in
 
13129
    *'~'*)
 
13130
      # FIXME: we may have to deal with multi-command sequences.
 
13131
      ;;
 
13132
    '$CC '*)
 
13133
      # Test whether the compiler implicitly links with -lc since on some
 
13134
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13135
      # to ld, don't add -lc before -lgcc.
 
13136
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13137
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13138
      $rm conftest*
 
13139
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13140
 
 
13141
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13142
  (eval $ac_compile) 2>&5
 
13143
  ac_status=$?
 
13144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13145
  (exit $ac_status); } 2>conftest.err; then
 
13146
        soname=conftest
 
13147
        lib=conftest
 
13148
        libobjs=conftest.$ac_objext
 
13149
        deplibs=
 
13150
        wl=$lt_prog_compiler_wl_CXX
 
13151
        compiler_flags=-v
 
13152
        linker_flags=-v
 
13153
        verstring=
 
13154
        output_objdir=.
 
13155
        libname=conftest
 
13156
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13157
        allow_undefined_flag_CXX=
 
13158
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13159
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13160
  ac_status=$?
 
13161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13162
  (exit $ac_status); }
 
13163
        then
 
13164
          archive_cmds_need_lc_CXX=no
 
13165
        else
 
13166
          archive_cmds_need_lc_CXX=yes
 
13167
        fi
 
13168
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13169
      else
 
13170
        cat conftest.err 1>&5
 
13171
      fi
 
13172
      $rm conftest*
 
13173
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13174
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
13175
      ;;
 
13176
    esac
 
13177
  fi
 
13178
  ;;
 
13179
esac
 
13180
 
 
13181
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13182
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13183
library_names_spec=
 
13184
libname_spec='lib$name'
 
13185
soname_spec=
 
13186
shrext_cmds=".so"
 
13187
postinstall_cmds=
 
13188
postuninstall_cmds=
 
13189
finish_cmds=
 
13190
finish_eval=
 
13191
shlibpath_var=
 
13192
shlibpath_overrides_runpath=unknown
 
13193
version_type=none
 
13194
dynamic_linker="$host_os ld.so"
 
13195
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13196
if test "$GCC" = yes; then
 
13197
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13198
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
13199
    # if the path contains ";" then we assume it to be the separator
 
13200
    # otherwise default to the standard path separator (i.e. ":") - it is
 
13201
    # assumed that no part of a normal pathname contains ";" but that should
 
13202
    # okay in the real world where ";" in dirpaths is itself problematic.
 
13203
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13204
  else
 
13205
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13206
  fi
 
13207
else
 
13208
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13209
fi
 
13210
need_lib_prefix=unknown
 
13211
hardcode_into_libs=no
 
13212
 
 
13213
# when you set need_version to no, make sure it does not cause -set_version
 
13214
# flags to be left without arguments
 
13215
need_version=unknown
 
13216
 
 
13217
case $host_os in
 
13218
aix3*)
 
13219
  version_type=linux
 
13220
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13221
  shlibpath_var=LIBPATH
 
13222
 
 
13223
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13224
  soname_spec='${libname}${release}${shared_ext}$major'
 
13225
  ;;
 
13226
 
 
13227
aix4* | aix5*)
 
13228
  version_type=linux
 
13229
  need_lib_prefix=no
 
13230
  need_version=no
 
13231
  hardcode_into_libs=yes
 
13232
  if test "$host_cpu" = ia64; then
 
13233
    # AIX 5 supports IA64
 
13234
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13235
    shlibpath_var=LD_LIBRARY_PATH
 
13236
  else
 
13237
    # With GCC up to 2.95.x, collect2 would create an import file
 
13238
    # for dependence libraries.  The import file would start with
 
13239
    # the line `#! .'.  This would cause the generated library to
 
13240
    # depend on `.', always an invalid library.  This was fixed in
 
13241
    # development snapshots of GCC prior to 3.0.
 
13242
    case $host_os in
 
13243
      aix4 | aix4.[01] | aix4.[01].*)
 
13244
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13245
           echo ' yes '
 
13246
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13247
        :
 
13248
      else
 
13249
        can_build_shared=no
 
13250
      fi
 
13251
      ;;
 
13252
    esac
 
13253
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13254
    # soname into executable. Probably we can add versioning support to
 
13255
    # collect2, so additional links can be useful in future.
 
13256
    if test "$aix_use_runtimelinking" = yes; then
 
13257
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13258
      # instead of lib<name>.a to let people know that these are not
 
13259
      # typical AIX shared libraries.
 
13260
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13261
    else
 
13262
      # We preserve .a as extension for shared libraries through AIX4.2
 
13263
      # and later when we are not doing run time linking.
 
13264
      library_names_spec='${libname}${release}.a $libname.a'
 
13265
      soname_spec='${libname}${release}${shared_ext}$major'
 
13266
    fi
 
13267
    shlibpath_var=LIBPATH
 
13268
  fi
 
13269
  ;;
 
13270
 
 
13271
amigaos*)
 
13272
  library_names_spec='$libname.ixlibrary $libname.a'
 
13273
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13274
  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'
 
13275
  ;;
 
13276
 
 
13277
beos*)
 
13278
  library_names_spec='${libname}${shared_ext}'
 
13279
  dynamic_linker="$host_os ld.so"
 
13280
  shlibpath_var=LIBRARY_PATH
 
13281
  ;;
 
13282
 
 
13283
bsdi4*)
 
13284
  version_type=linux
 
13285
  need_version=no
 
13286
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13287
  soname_spec='${libname}${release}${shared_ext}$major'
 
13288
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13289
  shlibpath_var=LD_LIBRARY_PATH
 
13290
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13291
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13292
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13293
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13294
  # libtool to hard-code these into programs
 
13295
  ;;
 
13296
 
 
13297
cygwin* | mingw* | pw32*)
 
13298
  version_type=windows
 
13299
  shrext_cmds=".dll"
 
13300
  need_version=no
 
13301
  need_lib_prefix=no
 
13302
 
 
13303
  case $GCC,$host_os in
 
13304
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13305
    library_names_spec='$libname.dll.a'
 
13306
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13307
    postinstall_cmds='base_file=`basename \${file}`~
 
13308
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13309
      dldir=$destdir/`dirname \$dlpath`~
 
13310
      test -d \$dldir || mkdir -p \$dldir~
 
13311
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13312
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13313
      dlpath=$dir/\$dldll~
 
13314
       $rm \$dlpath'
 
13315
    shlibpath_overrides_runpath=yes
 
13316
 
 
13317
    case $host_os in
 
13318
    cygwin*)
 
13319
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13320
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13321
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13322
      ;;
 
13323
    mingw*)
 
13324
      # MinGW DLLs use traditional 'lib' prefix
 
13325
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13326
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13327
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13328
        # It is most probably a Windows format PATH printed by
 
13329
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13330
        # path with ; separators, and with drive letters. We can handle the
 
13331
        # drive letters (cygwin fileutils understands them), so leave them,
 
13332
        # especially as we might pass files found there to a mingw objdump,
 
13333
        # which wouldn't understand a cygwinified path. Ahh.
 
13334
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13335
      else
 
13336
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13337
      fi
 
13338
      ;;
 
13339
    pw32*)
 
13340
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13341
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13342
      ;;
 
13343
    esac
 
13344
    ;;
 
13345
 
 
13346
  *)
 
13347
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13348
    ;;
 
13349
  esac
 
13350
  dynamic_linker='Win32 ld.exe'
 
13351
  # FIXME: first we should search . and the directory the executable is in
 
13352
  shlibpath_var=PATH
 
13353
  ;;
 
13354
 
 
13355
darwin* | rhapsody*)
 
13356
  dynamic_linker="$host_os dyld"
 
13357
  version_type=darwin
 
13358
  need_lib_prefix=no
 
13359
  need_version=no
 
13360
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13361
  soname_spec='${libname}${release}${major}$shared_ext'
 
13362
  shlibpath_overrides_runpath=yes
 
13363
  shlibpath_var=DYLD_LIBRARY_PATH
 
13364
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
13365
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
13366
  if test "$GCC" = yes; then
 
13367
    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"`
 
13368
  else
 
13369
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
13370
  fi
 
13371
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13372
  ;;
 
13373
 
 
13374
dgux*)
 
13375
  version_type=linux
 
13376
  need_lib_prefix=no
 
13377
  need_version=no
 
13378
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13379
  soname_spec='${libname}${release}${shared_ext}$major'
 
13380
  shlibpath_var=LD_LIBRARY_PATH
 
13381
  ;;
 
13382
 
 
13383
freebsd1*)
 
13384
  dynamic_linker=no
 
13385
  ;;
 
13386
 
 
13387
kfreebsd*-gnu)
 
13388
  version_type=linux
 
13389
  need_lib_prefix=no
 
13390
  need_version=no
 
13391
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13392
  soname_spec='${libname}${release}${shared_ext}$major'
 
13393
  shlibpath_var=LD_LIBRARY_PATH
 
13394
  shlibpath_overrides_runpath=no
 
13395
  hardcode_into_libs=yes
 
13396
  dynamic_linker='GNU ld.so'
 
13397
  ;;
 
13398
 
 
13399
freebsd*)
 
13400
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
13401
  version_type=freebsd-$objformat
 
13402
  case $version_type in
 
13403
    freebsd-elf*)
 
13404
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13405
      need_version=no
 
13406
      need_lib_prefix=no
 
13407
      ;;
 
13408
    freebsd-*)
 
13409
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13410
      need_version=yes
 
13411
      ;;
 
13412
  esac
 
13413
  shlibpath_var=LD_LIBRARY_PATH
 
13414
  case $host_os in
 
13415
  freebsd2*)
 
13416
    shlibpath_overrides_runpath=yes
 
13417
    ;;
 
13418
  freebsd3.01* | freebsdelf3.01*)
 
13419
    shlibpath_overrides_runpath=yes
 
13420
    hardcode_into_libs=yes
 
13421
    ;;
 
13422
  *) # from 3.2 on
 
13423
    shlibpath_overrides_runpath=no
 
13424
    hardcode_into_libs=yes
 
13425
    ;;
 
13426
  esac
 
13427
  ;;
 
13428
 
 
13429
gnu*)
 
13430
  version_type=linux
 
13431
  need_lib_prefix=no
 
13432
  need_version=no
 
13433
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13434
  soname_spec='${libname}${release}${shared_ext}$major'
 
13435
  shlibpath_var=LD_LIBRARY_PATH
 
13436
  hardcode_into_libs=yes
 
13437
  ;;
 
13438
 
 
13439
hpux9* | hpux10* | hpux11*)
 
13440
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13441
  # link against other versions.
 
13442
  version_type=sunos
 
13443
  need_lib_prefix=no
 
13444
  need_version=no
 
13445
  case "$host_cpu" in
 
13446
  ia64*)
 
13447
    shrext_cmds='.so'
 
13448
    hardcode_into_libs=yes
 
13449
    dynamic_linker="$host_os dld.so"
 
13450
    shlibpath_var=LD_LIBRARY_PATH
 
13451
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13452
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13453
    soname_spec='${libname}${release}${shared_ext}$major'
 
13454
    if test "X$HPUX_IA64_MODE" = X32; then
 
13455
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13456
    else
 
13457
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13458
    fi
 
13459
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13460
    ;;
 
13461
   hppa*64*)
 
13462
     shrext_cmds='.sl'
 
13463
     hardcode_into_libs=yes
 
13464
     dynamic_linker="$host_os dld.sl"
 
13465
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13466
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13467
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13468
     soname_spec='${libname}${release}${shared_ext}$major'
 
13469
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13470
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13471
     ;;
 
13472
   *)
 
13473
    shrext_cmds='.sl'
 
13474
    dynamic_linker="$host_os dld.sl"
 
13475
    shlibpath_var=SHLIB_PATH
 
13476
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13477
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13478
    soname_spec='${libname}${release}${shared_ext}$major'
 
13479
    ;;
 
13480
  esac
 
13481
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13482
  postinstall_cmds='chmod 555 $lib'
 
13483
  ;;
 
13484
 
 
13485
irix5* | irix6* | nonstopux*)
 
13486
  case $host_os in
 
13487
    nonstopux*) version_type=nonstopux ;;
 
13488
    *)
 
13489
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13490
                version_type=linux
 
13491
        else
 
13492
                version_type=irix
 
13493
        fi ;;
 
13494
  esac
 
13495
  need_lib_prefix=no
 
13496
  need_version=no
 
13497
  soname_spec='${libname}${release}${shared_ext}$major'
 
13498
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13499
  case $host_os in
 
13500
  irix5* | nonstopux*)
 
13501
    libsuff= shlibsuff=
 
13502
    ;;
 
13503
  *)
 
13504
    case $LD in # libtool.m4 will add one of these switches to LD
 
13505
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13506
      libsuff= shlibsuff= libmagic=32-bit;;
 
13507
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13508
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13509
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13510
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13511
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13512
    esac
 
13513
    ;;
 
13514
  esac
 
13515
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13516
  shlibpath_overrides_runpath=no
 
13517
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13518
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13519
  hardcode_into_libs=yes
 
13520
  ;;
 
13521
 
 
13522
# No shared lib support for Linux oldld, aout, or coff.
 
13523
linux*oldld* | linux*aout* | linux*coff*)
 
13524
  dynamic_linker=no
 
13525
  ;;
 
13526
 
 
13527
# This must be Linux ELF.
 
13528
linux*)
 
13529
  version_type=linux
 
13530
  need_lib_prefix=no
 
13531
  need_version=no
 
13532
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13533
  soname_spec='${libname}${release}${shared_ext}$major'
 
13534
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13535
  shlibpath_var=LD_LIBRARY_PATH
 
13536
  shlibpath_overrides_runpath=no
 
13537
  # This implies no fast_install, which is unacceptable.
 
13538
  # Some rework will be needed to allow for fast_install
 
13539
  # before this can be enabled.
 
13540
  hardcode_into_libs=yes
 
13541
 
 
13542
  # Append ld.so.conf contents to the search path
 
13543
  if test -f /etc/ld.so.conf; then
 
13544
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
13545
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13546
  fi
 
13547
 
 
13548
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13549
  # powerpc, because MkLinux only supported shared libraries with the
 
13550
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13551
  # most powerpc-linux boxes support dynamic linking these days and
 
13552
  # people can always --disable-shared, the test was removed, and we
 
13553
  # assume the GNU/Linux dynamic linker is in use.
 
13554
  dynamic_linker='GNU/Linux ld.so'
 
13555
  ;;
 
13556
 
 
13557
netbsdelf*-gnu)
 
13558
  version_type=linux
 
13559
  need_lib_prefix=no
 
13560
  need_version=no
 
13561
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13562
  soname_spec='${libname}${release}${shared_ext}$major'
 
13563
  shlibpath_var=LD_LIBRARY_PATH
 
13564
  shlibpath_overrides_runpath=no
 
13565
  hardcode_into_libs=yes
 
13566
  dynamic_linker='NetBSD ld.elf_so'
 
13567
  ;;
 
13568
 
 
13569
knetbsd*-gnu)
 
13570
  version_type=linux
 
13571
  need_lib_prefix=no
 
13572
  need_version=no
 
13573
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13574
  soname_spec='${libname}${release}${shared_ext}$major'
 
13575
  shlibpath_var=LD_LIBRARY_PATH
 
13576
  shlibpath_overrides_runpath=no
 
13577
  hardcode_into_libs=yes
 
13578
  dynamic_linker='GNU ld.so'
 
13579
  ;;
 
13580
 
 
13581
netbsd*)
 
13582
  version_type=sunos
 
13583
  need_lib_prefix=no
 
13584
  need_version=no
 
13585
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13586
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13587
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13588
    dynamic_linker='NetBSD (a.out) ld.so'
 
13589
  else
 
13590
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13591
    soname_spec='${libname}${release}${shared_ext}$major'
 
13592
    dynamic_linker='NetBSD ld.elf_so'
 
13593
  fi
 
13594
  shlibpath_var=LD_LIBRARY_PATH
 
13595
  shlibpath_overrides_runpath=yes
 
13596
  hardcode_into_libs=yes
 
13597
  ;;
 
13598
 
 
13599
newsos6)
 
13600
  version_type=linux
 
13601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13602
  shlibpath_var=LD_LIBRARY_PATH
 
13603
  shlibpath_overrides_runpath=yes
 
13604
  ;;
 
13605
 
 
13606
nto-qnx*)
 
13607
  version_type=linux
 
13608
  need_lib_prefix=no
 
13609
  need_version=no
 
13610
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13611
  soname_spec='${libname}${release}${shared_ext}$major'
 
13612
  shlibpath_var=LD_LIBRARY_PATH
 
13613
  shlibpath_overrides_runpath=yes
 
13614
  ;;
 
13615
 
 
13616
openbsd*)
 
13617
  version_type=sunos
 
13618
  need_lib_prefix=no
 
13619
  need_version=yes
 
13620
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13621
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13622
  shlibpath_var=LD_LIBRARY_PATH
 
13623
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13624
    case $host_os in
 
13625
      openbsd2.[89] | openbsd2.[89].*)
 
13626
        shlibpath_overrides_runpath=no
 
13627
        ;;
 
13628
      *)
 
13629
        shlibpath_overrides_runpath=yes
 
13630
        ;;
 
13631
      esac
 
13632
  else
 
13633
    shlibpath_overrides_runpath=yes
 
13634
  fi
 
13635
  ;;
 
13636
 
 
13637
os2*)
 
13638
  libname_spec='$name'
 
13639
  shrext_cmds=".dll"
 
13640
  need_lib_prefix=no
 
13641
  library_names_spec='$libname${shared_ext} $libname.a'
 
13642
  dynamic_linker='OS/2 ld.exe'
 
13643
  shlibpath_var=LIBPATH
 
13644
  ;;
 
13645
 
 
13646
osf3* | osf4* | osf5*)
 
13647
  version_type=osf
 
13648
  need_lib_prefix=no
 
13649
  need_version=no
 
13650
  soname_spec='${libname}${release}${shared_ext}$major'
 
13651
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13652
  shlibpath_var=LD_LIBRARY_PATH
 
13653
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13654
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13655
  ;;
 
13656
 
 
13657
sco3.2v5*)
 
13658
  version_type=osf
 
13659
  soname_spec='${libname}${release}${shared_ext}$major'
 
13660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13661
  shlibpath_var=LD_LIBRARY_PATH
 
13662
  ;;
 
13663
 
 
13664
solaris*)
 
13665
  version_type=linux
 
13666
  need_lib_prefix=no
 
13667
  need_version=no
 
13668
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13669
  soname_spec='${libname}${release}${shared_ext}$major'
 
13670
  shlibpath_var=LD_LIBRARY_PATH
 
13671
  shlibpath_overrides_runpath=yes
 
13672
  hardcode_into_libs=yes
 
13673
  # ldd complains unless libraries are executable
 
13674
  postinstall_cmds='chmod +x $lib'
 
13675
  ;;
 
13676
 
 
13677
sunos4*)
 
13678
  version_type=sunos
 
13679
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13680
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13681
  shlibpath_var=LD_LIBRARY_PATH
 
13682
  shlibpath_overrides_runpath=yes
 
13683
  if test "$with_gnu_ld" = yes; then
 
13684
    need_lib_prefix=no
 
13685
  fi
 
13686
  need_version=yes
 
13687
  ;;
 
13688
 
 
13689
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13690
  version_type=linux
 
13691
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13692
  soname_spec='${libname}${release}${shared_ext}$major'
 
13693
  shlibpath_var=LD_LIBRARY_PATH
 
13694
  case $host_vendor in
 
13695
    sni)
 
13696
      shlibpath_overrides_runpath=no
 
13697
      need_lib_prefix=no
 
13698
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13699
      runpath_var=LD_RUN_PATH
 
13700
      ;;
 
13701
    siemens)
 
13702
      need_lib_prefix=no
 
13703
      ;;
 
13704
    motorola)
 
13705
      need_lib_prefix=no
 
13706
      need_version=no
 
13707
      shlibpath_overrides_runpath=no
 
13708
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13709
      ;;
 
13710
  esac
 
13711
  ;;
 
13712
 
 
13713
sysv4*MP*)
 
13714
  if test -d /usr/nec ;then
 
13715
    version_type=linux
 
13716
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13717
    soname_spec='$libname${shared_ext}.$major'
 
13718
    shlibpath_var=LD_LIBRARY_PATH
 
13719
  fi
 
13720
  ;;
 
13721
 
 
13722
uts4*)
 
13723
  version_type=linux
 
13724
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13725
  soname_spec='${libname}${release}${shared_ext}$major'
 
13726
  shlibpath_var=LD_LIBRARY_PATH
 
13727
  ;;
 
13728
 
 
13729
*)
 
13730
  dynamic_linker=no
 
13731
  ;;
 
13732
esac
 
13733
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13734
echo "${ECHO_T}$dynamic_linker" >&6
 
13735
test "$dynamic_linker" = no && can_build_shared=no
 
13736
 
 
13737
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13738
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13739
hardcode_action_CXX=
 
13740
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13741
   test -n "$runpath_var CXX" || \
 
13742
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
13743
 
 
13744
  # We can hardcode non-existant directories.
 
13745
  if test "$hardcode_direct_CXX" != no &&
 
13746
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13747
     # have to relink, otherwise we might link with an installed library
 
13748
     # when we should be linking with a yet-to-be-installed one
 
13749
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13750
     test "$hardcode_minus_L_CXX" != no; then
 
13751
    # Linking always hardcodes the temporary library directory.
 
13752
    hardcode_action_CXX=relink
 
13753
  else
 
13754
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13755
    hardcode_action_CXX=immediate
 
13756
  fi
 
13757
else
 
13758
  # We cannot hardcode anything, or else we can only hardcode existing
 
13759
  # directories.
 
13760
  hardcode_action_CXX=unsupported
 
13761
fi
 
13762
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13763
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
13764
 
 
13765
if test "$hardcode_action_CXX" = relink; then
 
13766
  # Fast installation is not supported
 
13767
  enable_fast_install=no
 
13768
elif test "$shlibpath_overrides_runpath" = yes ||
 
13769
     test "$enable_shared" = no; then
 
13770
  # Fast installation is not necessary
 
13771
  enable_fast_install=needless
 
13772
fi
 
13773
 
 
13774
striplib=
 
13775
old_striplib=
 
13776
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
13777
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
13778
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
13779
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
13780
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
13781
  echo "$as_me:$LINENO: result: yes" >&5
 
13782
echo "${ECHO_T}yes" >&6
 
13783
else
 
13784
# FIXME - insert some real tests, host_os isn't really good enough
 
13785
  case $host_os in
 
13786
   darwin*)
 
13787
       if test -n "$STRIP" ; then
 
13788
         striplib="$STRIP -x"
 
13789
         echo "$as_me:$LINENO: result: yes" >&5
 
13790
echo "${ECHO_T}yes" >&6
 
13791
       else
 
13792
  echo "$as_me:$LINENO: result: no" >&5
 
13793
echo "${ECHO_T}no" >&6
 
13794
fi
 
13795
       ;;
 
13796
   *)
 
13797
  echo "$as_me:$LINENO: result: no" >&5
 
13798
echo "${ECHO_T}no" >&6
 
13799
    ;;
 
13800
  esac
 
13801
fi
 
13802
 
 
13803
if test "x$enable_dlopen" != xyes; then
 
13804
  enable_dlopen=unknown
 
13805
  enable_dlopen_self=unknown
 
13806
  enable_dlopen_self_static=unknown
 
13807
else
 
13808
  lt_cv_dlopen=no
 
13809
  lt_cv_dlopen_libs=
 
13810
 
 
13811
  case $host_os in
 
13812
  beos*)
 
13813
    lt_cv_dlopen="load_add_on"
 
13814
    lt_cv_dlopen_libs=
 
13815
    lt_cv_dlopen_self=yes
 
13816
    ;;
 
13817
 
 
13818
  mingw* | pw32*)
 
13819
    lt_cv_dlopen="LoadLibrary"
 
13820
    lt_cv_dlopen_libs=
 
13821
   ;;
 
13822
 
 
13823
  cygwin*)
 
13824
    lt_cv_dlopen="dlopen"
 
13825
    lt_cv_dlopen_libs=
 
13826
   ;;
 
13827
 
 
13828
  darwin*)
 
13829
  # if libdl is installed we need to link against it
 
13830
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13831
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13832
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13834
else
 
13835
  ac_check_lib_save_LIBS=$LIBS
 
13836
LIBS="-ldl  $LIBS"
 
13837
cat >conftest.$ac_ext <<_ACEOF
 
13838
/* confdefs.h.  */
 
13839
_ACEOF
 
13840
cat confdefs.h >>conftest.$ac_ext
 
13841
cat >>conftest.$ac_ext <<_ACEOF
 
13842
/* end confdefs.h.  */
 
13843
 
 
13844
/* Override any gcc2 internal prototype to avoid an error.  */
 
13845
#ifdef __cplusplus
 
13846
extern "C"
 
13847
#endif
 
13848
/* We use char because int might match the return type of a gcc2
 
13849
   builtin and then its argument prototype would still apply.  */
 
13850
char dlopen ();
 
13851
int
 
13852
main ()
 
13853
{
 
13854
dlopen ();
 
13855
  ;
 
13856
  return 0;
 
13857
}
 
13858
_ACEOF
 
13859
rm -f conftest.$ac_objext conftest$ac_exeext
 
13860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13861
  (eval $ac_link) 2>conftest.er1
 
13862
  ac_status=$?
 
13863
  grep -v '^ *+' conftest.er1 >conftest.err
 
13864
  rm -f conftest.er1
 
13865
  cat conftest.err >&5
 
13866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13867
  (exit $ac_status); } &&
 
13868
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13869
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13870
  (eval $ac_try) 2>&5
 
13871
  ac_status=$?
 
13872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13873
  (exit $ac_status); }; } &&
 
13874
         { ac_try='test -s conftest$ac_exeext'
 
13875
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13876
  (eval $ac_try) 2>&5
 
13877
  ac_status=$?
 
13878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13879
  (exit $ac_status); }; }; then
 
13880
  ac_cv_lib_dl_dlopen=yes
 
13881
else
 
13882
  echo "$as_me: failed program was:" >&5
 
13883
sed 's/^/| /' conftest.$ac_ext >&5
 
13884
 
 
13885
ac_cv_lib_dl_dlopen=no
 
13886
fi
 
13887
rm -f conftest.err conftest.$ac_objext \
 
13888
      conftest$ac_exeext conftest.$ac_ext
 
13889
LIBS=$ac_check_lib_save_LIBS
 
13890
fi
 
13891
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13892
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13893
if test $ac_cv_lib_dl_dlopen = yes; then
 
13894
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13895
else
 
13896
 
 
13897
    lt_cv_dlopen="dyld"
 
13898
    lt_cv_dlopen_libs=
 
13899
    lt_cv_dlopen_self=yes
 
13900
 
 
13901
fi
 
13902
 
 
13903
   ;;
 
13904
 
 
13905
  *)
 
13906
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
13907
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
13908
if test "${ac_cv_func_shl_load+set}" = set; then
 
13909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13910
else
 
13911
  cat >conftest.$ac_ext <<_ACEOF
 
13912
/* confdefs.h.  */
 
13913
_ACEOF
 
13914
cat confdefs.h >>conftest.$ac_ext
 
13915
cat >>conftest.$ac_ext <<_ACEOF
 
13916
/* end confdefs.h.  */
 
13917
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
13918
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13919
#define shl_load innocuous_shl_load
 
13920
 
 
13921
/* System header to define __stub macros and hopefully few prototypes,
 
13922
    which can conflict with char shl_load (); below.
 
13923
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13924
    <limits.h> exists even on freestanding compilers.  */
 
13925
 
 
13926
#ifdef __STDC__
 
13927
# include <limits.h>
 
13928
#else
 
13929
# include <assert.h>
 
13930
#endif
 
13931
 
 
13932
#undef shl_load
 
13933
 
 
13934
/* Override any gcc2 internal prototype to avoid an error.  */
 
13935
#ifdef __cplusplus
 
13936
extern "C"
 
13937
{
 
13938
#endif
 
13939
/* We use char because int might match the return type of a gcc2
 
13940
   builtin and then its argument prototype would still apply.  */
 
13941
char shl_load ();
 
13942
/* The GNU C library defines this for functions which it implements
 
13943
    to always fail with ENOSYS.  Some functions are actually named
 
13944
    something starting with __ and the normal name is an alias.  */
 
13945
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
13946
choke me
 
13947
#else
 
13948
char (*f) () = shl_load;
 
13949
#endif
 
13950
#ifdef __cplusplus
 
13951
}
 
13952
#endif
 
13953
 
 
13954
int
 
13955
main ()
 
13956
{
 
13957
return f != shl_load;
 
13958
  ;
 
13959
  return 0;
 
13960
}
 
13961
_ACEOF
 
13962
rm -f conftest.$ac_objext conftest$ac_exeext
 
13963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13964
  (eval $ac_link) 2>conftest.er1
 
13965
  ac_status=$?
 
13966
  grep -v '^ *+' conftest.er1 >conftest.err
 
13967
  rm -f conftest.er1
 
13968
  cat conftest.err >&5
 
13969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13970
  (exit $ac_status); } &&
 
13971
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13973
  (eval $ac_try) 2>&5
 
13974
  ac_status=$?
 
13975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13976
  (exit $ac_status); }; } &&
 
13977
         { ac_try='test -s conftest$ac_exeext'
 
13978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13979
  (eval $ac_try) 2>&5
 
13980
  ac_status=$?
 
13981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13982
  (exit $ac_status); }; }; then
 
13983
  ac_cv_func_shl_load=yes
 
13984
else
 
13985
  echo "$as_me: failed program was:" >&5
 
13986
sed 's/^/| /' conftest.$ac_ext >&5
 
13987
 
 
13988
ac_cv_func_shl_load=no
 
13989
fi
 
13990
rm -f conftest.err conftest.$ac_objext \
 
13991
      conftest$ac_exeext conftest.$ac_ext
 
13992
fi
 
13993
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
13994
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
13995
if test $ac_cv_func_shl_load = yes; then
 
13996
  lt_cv_dlopen="shl_load"
 
13997
else
 
13998
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
13999
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
14000
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
14001
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14002
else
 
14003
  ac_check_lib_save_LIBS=$LIBS
 
14004
LIBS="-ldld  $LIBS"
 
14005
cat >conftest.$ac_ext <<_ACEOF
 
14006
/* confdefs.h.  */
 
14007
_ACEOF
 
14008
cat confdefs.h >>conftest.$ac_ext
 
14009
cat >>conftest.$ac_ext <<_ACEOF
 
14010
/* end confdefs.h.  */
 
14011
 
 
14012
/* Override any gcc2 internal prototype to avoid an error.  */
 
14013
#ifdef __cplusplus
 
14014
extern "C"
 
14015
#endif
 
14016
/* We use char because int might match the return type of a gcc2
 
14017
   builtin and then its argument prototype would still apply.  */
 
14018
char shl_load ();
 
14019
int
 
14020
main ()
 
14021
{
 
14022
shl_load ();
 
14023
  ;
 
14024
  return 0;
 
14025
}
 
14026
_ACEOF
 
14027
rm -f conftest.$ac_objext conftest$ac_exeext
 
14028
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14029
  (eval $ac_link) 2>conftest.er1
 
14030
  ac_status=$?
 
14031
  grep -v '^ *+' conftest.er1 >conftest.err
 
14032
  rm -f conftest.er1
 
14033
  cat conftest.err >&5
 
14034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14035
  (exit $ac_status); } &&
 
14036
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14038
  (eval $ac_try) 2>&5
 
14039
  ac_status=$?
 
14040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14041
  (exit $ac_status); }; } &&
 
14042
         { ac_try='test -s conftest$ac_exeext'
 
14043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14044
  (eval $ac_try) 2>&5
 
14045
  ac_status=$?
 
14046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14047
  (exit $ac_status); }; }; then
 
14048
  ac_cv_lib_dld_shl_load=yes
 
14049
else
 
14050
  echo "$as_me: failed program was:" >&5
 
14051
sed 's/^/| /' conftest.$ac_ext >&5
 
14052
 
 
14053
ac_cv_lib_dld_shl_load=no
 
14054
fi
 
14055
rm -f conftest.err conftest.$ac_objext \
 
14056
      conftest$ac_exeext conftest.$ac_ext
 
14057
LIBS=$ac_check_lib_save_LIBS
 
14058
fi
 
14059
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
14060
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
14061
if test $ac_cv_lib_dld_shl_load = yes; then
 
14062
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
14063
else
 
14064
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
14065
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
14066
if test "${ac_cv_func_dlopen+set}" = set; then
 
14067
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14068
else
 
14069
  cat >conftest.$ac_ext <<_ACEOF
 
14070
/* confdefs.h.  */
 
14071
_ACEOF
 
14072
cat confdefs.h >>conftest.$ac_ext
 
14073
cat >>conftest.$ac_ext <<_ACEOF
 
14074
/* end confdefs.h.  */
 
14075
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
14076
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14077
#define dlopen innocuous_dlopen
 
14078
 
 
14079
/* System header to define __stub macros and hopefully few prototypes,
 
14080
    which can conflict with char dlopen (); below.
 
14081
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14082
    <limits.h> exists even on freestanding compilers.  */
 
14083
 
 
14084
#ifdef __STDC__
 
14085
# include <limits.h>
 
14086
#else
 
14087
# include <assert.h>
 
14088
#endif
 
14089
 
 
14090
#undef dlopen
 
14091
 
 
14092
/* Override any gcc2 internal prototype to avoid an error.  */
 
14093
#ifdef __cplusplus
 
14094
extern "C"
 
14095
{
 
14096
#endif
 
14097
/* We use char because int might match the return type of a gcc2
 
14098
   builtin and then its argument prototype would still apply.  */
 
14099
char dlopen ();
 
14100
/* The GNU C library defines this for functions which it implements
 
14101
    to always fail with ENOSYS.  Some functions are actually named
 
14102
    something starting with __ and the normal name is an alias.  */
 
14103
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
14104
choke me
 
14105
#else
 
14106
char (*f) () = dlopen;
 
14107
#endif
 
14108
#ifdef __cplusplus
 
14109
}
 
14110
#endif
 
14111
 
 
14112
int
 
14113
main ()
 
14114
{
 
14115
return f != dlopen;
 
14116
  ;
 
14117
  return 0;
 
14118
}
 
14119
_ACEOF
 
14120
rm -f conftest.$ac_objext conftest$ac_exeext
 
14121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14122
  (eval $ac_link) 2>conftest.er1
 
14123
  ac_status=$?
 
14124
  grep -v '^ *+' conftest.er1 >conftest.err
 
14125
  rm -f conftest.er1
 
14126
  cat conftest.err >&5
 
14127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14128
  (exit $ac_status); } &&
 
14129
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14131
  (eval $ac_try) 2>&5
 
14132
  ac_status=$?
 
14133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14134
  (exit $ac_status); }; } &&
 
14135
         { ac_try='test -s conftest$ac_exeext'
 
14136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14137
  (eval $ac_try) 2>&5
 
14138
  ac_status=$?
 
14139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14140
  (exit $ac_status); }; }; then
 
14141
  ac_cv_func_dlopen=yes
 
14142
else
 
14143
  echo "$as_me: failed program was:" >&5
 
14144
sed 's/^/| /' conftest.$ac_ext >&5
 
14145
 
 
14146
ac_cv_func_dlopen=no
 
14147
fi
 
14148
rm -f conftest.err conftest.$ac_objext \
 
14149
      conftest$ac_exeext conftest.$ac_ext
 
14150
fi
 
14151
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
14152
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
14153
if test $ac_cv_func_dlopen = yes; then
 
14154
  lt_cv_dlopen="dlopen"
 
14155
else
 
14156
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14157
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14158
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14159
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14160
else
 
14161
  ac_check_lib_save_LIBS=$LIBS
 
14162
LIBS="-ldl  $LIBS"
 
14163
cat >conftest.$ac_ext <<_ACEOF
 
14164
/* confdefs.h.  */
 
14165
_ACEOF
 
14166
cat confdefs.h >>conftest.$ac_ext
 
14167
cat >>conftest.$ac_ext <<_ACEOF
 
14168
/* end confdefs.h.  */
 
14169
 
 
14170
/* Override any gcc2 internal prototype to avoid an error.  */
 
14171
#ifdef __cplusplus
 
14172
extern "C"
 
14173
#endif
 
14174
/* We use char because int might match the return type of a gcc2
 
14175
   builtin and then its argument prototype would still apply.  */
 
14176
char dlopen ();
 
14177
int
 
14178
main ()
 
14179
{
 
14180
dlopen ();
 
14181
  ;
 
14182
  return 0;
 
14183
}
 
14184
_ACEOF
 
14185
rm -f conftest.$ac_objext conftest$ac_exeext
 
14186
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14187
  (eval $ac_link) 2>conftest.er1
 
14188
  ac_status=$?
 
14189
  grep -v '^ *+' conftest.er1 >conftest.err
 
14190
  rm -f conftest.er1
 
14191
  cat conftest.err >&5
 
14192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14193
  (exit $ac_status); } &&
 
14194
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14196
  (eval $ac_try) 2>&5
 
14197
  ac_status=$?
 
14198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14199
  (exit $ac_status); }; } &&
 
14200
         { ac_try='test -s conftest$ac_exeext'
 
14201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14202
  (eval $ac_try) 2>&5
 
14203
  ac_status=$?
 
14204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14205
  (exit $ac_status); }; }; then
 
14206
  ac_cv_lib_dl_dlopen=yes
 
14207
else
 
14208
  echo "$as_me: failed program was:" >&5
 
14209
sed 's/^/| /' conftest.$ac_ext >&5
 
14210
 
 
14211
ac_cv_lib_dl_dlopen=no
 
14212
fi
 
14213
rm -f conftest.err conftest.$ac_objext \
 
14214
      conftest$ac_exeext conftest.$ac_ext
 
14215
LIBS=$ac_check_lib_save_LIBS
 
14216
fi
 
14217
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14218
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14219
if test $ac_cv_lib_dl_dlopen = yes; then
 
14220
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14221
else
 
14222
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
14223
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
14224
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
14225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14226
else
 
14227
  ac_check_lib_save_LIBS=$LIBS
 
14228
LIBS="-lsvld  $LIBS"
 
14229
cat >conftest.$ac_ext <<_ACEOF
 
14230
/* confdefs.h.  */
 
14231
_ACEOF
 
14232
cat confdefs.h >>conftest.$ac_ext
 
14233
cat >>conftest.$ac_ext <<_ACEOF
 
14234
/* end confdefs.h.  */
 
14235
 
 
14236
/* Override any gcc2 internal prototype to avoid an error.  */
 
14237
#ifdef __cplusplus
 
14238
extern "C"
 
14239
#endif
 
14240
/* We use char because int might match the return type of a gcc2
 
14241
   builtin and then its argument prototype would still apply.  */
 
14242
char dlopen ();
 
14243
int
 
14244
main ()
 
14245
{
 
14246
dlopen ();
 
14247
  ;
 
14248
  return 0;
 
14249
}
 
14250
_ACEOF
 
14251
rm -f conftest.$ac_objext conftest$ac_exeext
 
14252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14253
  (eval $ac_link) 2>conftest.er1
 
14254
  ac_status=$?
 
14255
  grep -v '^ *+' conftest.er1 >conftest.err
 
14256
  rm -f conftest.er1
 
14257
  cat conftest.err >&5
 
14258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14259
  (exit $ac_status); } &&
 
14260
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14262
  (eval $ac_try) 2>&5
 
14263
  ac_status=$?
 
14264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14265
  (exit $ac_status); }; } &&
 
14266
         { ac_try='test -s conftest$ac_exeext'
 
14267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14268
  (eval $ac_try) 2>&5
 
14269
  ac_status=$?
 
14270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14271
  (exit $ac_status); }; }; then
 
14272
  ac_cv_lib_svld_dlopen=yes
 
14273
else
 
14274
  echo "$as_me: failed program was:" >&5
 
14275
sed 's/^/| /' conftest.$ac_ext >&5
 
14276
 
 
14277
ac_cv_lib_svld_dlopen=no
 
14278
fi
 
14279
rm -f conftest.err conftest.$ac_objext \
 
14280
      conftest$ac_exeext conftest.$ac_ext
 
14281
LIBS=$ac_check_lib_save_LIBS
 
14282
fi
 
14283
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
14284
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
14285
if test $ac_cv_lib_svld_dlopen = yes; then
 
14286
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
14287
else
 
14288
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
14289
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
14290
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
14291
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14292
else
 
14293
  ac_check_lib_save_LIBS=$LIBS
 
14294
LIBS="-ldld  $LIBS"
 
14295
cat >conftest.$ac_ext <<_ACEOF
 
14296
/* confdefs.h.  */
 
14297
_ACEOF
 
14298
cat confdefs.h >>conftest.$ac_ext
 
14299
cat >>conftest.$ac_ext <<_ACEOF
 
14300
/* end confdefs.h.  */
 
14301
 
 
14302
/* Override any gcc2 internal prototype to avoid an error.  */
 
14303
#ifdef __cplusplus
 
14304
extern "C"
 
14305
#endif
 
14306
/* We use char because int might match the return type of a gcc2
 
14307
   builtin and then its argument prototype would still apply.  */
 
14308
char dld_link ();
 
14309
int
 
14310
main ()
 
14311
{
 
14312
dld_link ();
 
14313
  ;
 
14314
  return 0;
 
14315
}
 
14316
_ACEOF
 
14317
rm -f conftest.$ac_objext conftest$ac_exeext
 
14318
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14319
  (eval $ac_link) 2>conftest.er1
 
14320
  ac_status=$?
 
14321
  grep -v '^ *+' conftest.er1 >conftest.err
 
14322
  rm -f conftest.er1
 
14323
  cat conftest.err >&5
 
14324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14325
  (exit $ac_status); } &&
 
14326
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
14327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14328
  (eval $ac_try) 2>&5
 
14329
  ac_status=$?
 
14330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14331
  (exit $ac_status); }; } &&
 
14332
         { ac_try='test -s conftest$ac_exeext'
 
14333
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14334
  (eval $ac_try) 2>&5
 
14335
  ac_status=$?
 
14336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14337
  (exit $ac_status); }; }; then
 
14338
  ac_cv_lib_dld_dld_link=yes
 
14339
else
 
14340
  echo "$as_me: failed program was:" >&5
 
14341
sed 's/^/| /' conftest.$ac_ext >&5
 
14342
 
 
14343
ac_cv_lib_dld_dld_link=no
 
14344
fi
 
14345
rm -f conftest.err conftest.$ac_objext \
 
14346
      conftest$ac_exeext conftest.$ac_ext
 
14347
LIBS=$ac_check_lib_save_LIBS
 
14348
fi
 
14349
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
14350
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
14351
if test $ac_cv_lib_dld_dld_link = yes; then
 
14352
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
14353
fi
 
14354
 
 
14355
 
 
14356
fi
 
14357
 
 
14358
 
 
14359
fi
 
14360
 
 
14361
 
 
14362
fi
 
14363
 
 
14364
 
 
14365
fi
 
14366
 
 
14367
 
 
14368
fi
 
14369
 
 
14370
    ;;
 
14371
  esac
 
14372
 
 
14373
  if test "x$lt_cv_dlopen" != xno; then
 
14374
    enable_dlopen=yes
 
14375
  else
 
14376
    enable_dlopen=no
 
14377
  fi
 
14378
 
 
14379
  case $lt_cv_dlopen in
 
14380
  dlopen)
 
14381
    save_CPPFLAGS="$CPPFLAGS"
 
14382
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
14383
 
 
14384
    save_LDFLAGS="$LDFLAGS"
 
14385
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
14386
 
 
14387
    save_LIBS="$LIBS"
 
14388
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
14389
 
 
14390
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
14391
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
14392
if test "${lt_cv_dlopen_self+set}" = set; then
 
14393
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14394
else
 
14395
          if test "$cross_compiling" = yes; then :
 
14396
  lt_cv_dlopen_self=cross
 
14397
else
 
14398
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14399
  lt_status=$lt_dlunknown
 
14400
  cat > conftest.$ac_ext <<EOF
 
14401
#line 14401 "configure"
 
14402
#include "confdefs.h"
 
14403
 
 
14404
#if HAVE_DLFCN_H
 
14405
#include <dlfcn.h>
 
14406
#endif
 
14407
 
 
14408
#include <stdio.h>
 
14409
 
 
14410
#ifdef RTLD_GLOBAL
 
14411
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14412
#else
 
14413
#  ifdef DL_GLOBAL
 
14414
#    define LT_DLGLOBAL         DL_GLOBAL
 
14415
#  else
 
14416
#    define LT_DLGLOBAL         0
 
14417
#  endif
 
14418
#endif
 
14419
 
 
14420
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14421
   find out it does not work in some platform. */
 
14422
#ifndef LT_DLLAZY_OR_NOW
 
14423
#  ifdef RTLD_LAZY
 
14424
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14425
#  else
 
14426
#    ifdef DL_LAZY
 
14427
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14428
#    else
 
14429
#      ifdef RTLD_NOW
 
14430
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14431
#      else
 
14432
#        ifdef DL_NOW
 
14433
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14434
#        else
 
14435
#          define LT_DLLAZY_OR_NOW      0
 
14436
#        endif
 
14437
#      endif
 
14438
#    endif
 
14439
#  endif
 
14440
#endif
 
14441
 
 
14442
#ifdef __cplusplus
 
14443
extern "C" void exit (int);
 
14444
#endif
 
14445
 
 
14446
void fnord() { int i=42;}
 
14447
int main ()
 
14448
{
 
14449
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14450
  int status = $lt_dlunknown;
 
14451
 
 
14452
  if (self)
 
14453
    {
 
14454
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14455
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14456
      /* dlclose (self); */
 
14457
    }
 
14458
 
 
14459
    exit (status);
 
14460
}
 
14461
EOF
 
14462
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14463
  (eval $ac_link) 2>&5
 
14464
  ac_status=$?
 
14465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14466
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14467
    (./conftest; exit; ) 2>/dev/null
 
14468
    lt_status=$?
 
14469
    case x$lt_status in
 
14470
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
14471
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
14472
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
14473
    esac
 
14474
  else :
 
14475
    # compilation failed
 
14476
    lt_cv_dlopen_self=no
 
14477
  fi
 
14478
fi
 
14479
rm -fr conftest*
 
14480
 
 
14481
 
 
14482
fi
 
14483
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
14484
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
14485
 
 
14486
    if test "x$lt_cv_dlopen_self" = xyes; then
 
14487
      LDFLAGS="$LDFLAGS $link_static_flag"
 
14488
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
14489
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
14490
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
14491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14492
else
 
14493
          if test "$cross_compiling" = yes; then :
 
14494
  lt_cv_dlopen_self_static=cross
 
14495
else
 
14496
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14497
  lt_status=$lt_dlunknown
 
14498
  cat > conftest.$ac_ext <<EOF
 
14499
#line 14499 "configure"
 
14500
#include "confdefs.h"
 
14501
 
 
14502
#if HAVE_DLFCN_H
 
14503
#include <dlfcn.h>
 
14504
#endif
 
14505
 
 
14506
#include <stdio.h>
 
14507
 
 
14508
#ifdef RTLD_GLOBAL
 
14509
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14510
#else
 
14511
#  ifdef DL_GLOBAL
 
14512
#    define LT_DLGLOBAL         DL_GLOBAL
 
14513
#  else
 
14514
#    define LT_DLGLOBAL         0
 
14515
#  endif
 
14516
#endif
 
14517
 
 
14518
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14519
   find out it does not work in some platform. */
 
14520
#ifndef LT_DLLAZY_OR_NOW
 
14521
#  ifdef RTLD_LAZY
 
14522
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14523
#  else
 
14524
#    ifdef DL_LAZY
 
14525
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14526
#    else
 
14527
#      ifdef RTLD_NOW
 
14528
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14529
#      else
 
14530
#        ifdef DL_NOW
 
14531
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14532
#        else
 
14533
#          define LT_DLLAZY_OR_NOW      0
 
14534
#        endif
 
14535
#      endif
 
14536
#    endif
 
14537
#  endif
 
14538
#endif
 
14539
 
 
14540
#ifdef __cplusplus
 
14541
extern "C" void exit (int);
 
14542
#endif
 
14543
 
 
14544
void fnord() { int i=42;}
 
14545
int main ()
 
14546
{
 
14547
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14548
  int status = $lt_dlunknown;
 
14549
 
 
14550
  if (self)
 
14551
    {
 
14552
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14553
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14554
      /* dlclose (self); */
 
14555
    }
 
14556
 
 
14557
    exit (status);
 
14558
}
 
14559
EOF
 
14560
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14561
  (eval $ac_link) 2>&5
 
14562
  ac_status=$?
 
14563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14564
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14565
    (./conftest; exit; ) 2>/dev/null
 
14566
    lt_status=$?
 
14567
    case x$lt_status in
 
14568
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
14569
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
14570
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
14571
    esac
 
14572
  else :
 
14573
    # compilation failed
 
14574
    lt_cv_dlopen_self_static=no
 
14575
  fi
 
14576
fi
 
14577
rm -fr conftest*
 
14578
 
 
14579
 
 
14580
fi
 
14581
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
14582
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
14583
    fi
 
14584
 
 
14585
    CPPFLAGS="$save_CPPFLAGS"
 
14586
    LDFLAGS="$save_LDFLAGS"
 
14587
    LIBS="$save_LIBS"
 
14588
    ;;
 
14589
  esac
 
14590
 
 
14591
  case $lt_cv_dlopen_self in
 
14592
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
14593
  *) enable_dlopen_self=unknown ;;
 
14594
  esac
 
14595
 
 
14596
  case $lt_cv_dlopen_self_static in
 
14597
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
14598
  *) enable_dlopen_self_static=unknown ;;
 
14599
  esac
 
14600
fi
 
14601
 
 
14602
 
 
14603
# The else clause should only fire when bootstrapping the
 
14604
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14605
# with your package, and you will get complaints that there are
 
14606
# no rules to generate ltmain.sh.
 
14607
if test -f "$ltmain"; then
 
14608
  # See if we are running on zsh, and set the options which allow our commands through
 
14609
  # without removal of \ escapes.
 
14610
  if test -n "${ZSH_VERSION+set}" ; then
 
14611
    setopt NO_GLOB_SUBST
 
14612
  fi
 
14613
  # Now quote all the things that may contain metacharacters while being
 
14614
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14615
  # variables and quote the copies for generation of the libtool script.
 
14616
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
14617
    SED SHELL STRIP \
 
14618
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14619
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14620
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14621
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14622
    lt_cv_sys_global_symbol_to_c_name_address \
 
14623
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14624
    old_postinstall_cmds old_postuninstall_cmds \
 
14625
    compiler_CXX \
 
14626
    CC_CXX \
 
14627
    LD_CXX \
 
14628
    lt_prog_compiler_wl_CXX \
 
14629
    lt_prog_compiler_pic_CXX \
 
14630
    lt_prog_compiler_static_CXX \
 
14631
    lt_prog_compiler_no_builtin_flag_CXX \
 
14632
    export_dynamic_flag_spec_CXX \
 
14633
    thread_safe_flag_spec_CXX \
 
14634
    whole_archive_flag_spec_CXX \
 
14635
    enable_shared_with_static_runtimes_CXX \
 
14636
    old_archive_cmds_CXX \
 
14637
    old_archive_from_new_cmds_CXX \
 
14638
    predep_objects_CXX \
 
14639
    postdep_objects_CXX \
 
14640
    predeps_CXX \
 
14641
    postdeps_CXX \
 
14642
    compiler_lib_search_path_CXX \
 
14643
    archive_cmds_CXX \
 
14644
    archive_expsym_cmds_CXX \
 
14645
    postinstall_cmds_CXX \
 
14646
    postuninstall_cmds_CXX \
 
14647
    old_archive_from_expsyms_cmds_CXX \
 
14648
    allow_undefined_flag_CXX \
 
14649
    no_undefined_flag_CXX \
 
14650
    export_symbols_cmds_CXX \
 
14651
    hardcode_libdir_flag_spec_CXX \
 
14652
    hardcode_libdir_flag_spec_ld_CXX \
 
14653
    hardcode_libdir_separator_CXX \
 
14654
    hardcode_automatic_CXX \
 
14655
    module_cmds_CXX \
 
14656
    module_expsym_cmds_CXX \
 
14657
    lt_cv_prog_compiler_c_o_CXX \
 
14658
    exclude_expsyms_CXX \
 
14659
    include_expsyms_CXX; do
 
14660
 
 
14661
    case $var in
 
14662
    old_archive_cmds_CXX | \
 
14663
    old_archive_from_new_cmds_CXX | \
 
14664
    archive_cmds_CXX | \
 
14665
    archive_expsym_cmds_CXX | \
 
14666
    module_cmds_CXX | \
 
14667
    module_expsym_cmds_CXX | \
 
14668
    old_archive_from_expsyms_cmds_CXX | \
 
14669
    export_symbols_cmds_CXX | \
 
14670
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14671
    postinstall_cmds | postuninstall_cmds | \
 
14672
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14673
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14674
      # Double-quote double-evaled strings.
 
14675
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14676
      ;;
 
14677
    *)
 
14678
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14679
      ;;
 
14680
    esac
 
14681
  done
 
14682
 
 
14683
  case $lt_echo in
 
14684
  *'\$0 --fallback-echo"')
 
14685
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14686
    ;;
 
14687
  esac
 
14688
 
 
14689
cfgfile="$ofile"
 
14690
 
 
14691
  cat <<__EOF__ >> "$cfgfile"
 
14692
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14693
 
 
14694
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14695
 
 
14696
# Shell to use when invoking shell scripts.
 
14697
SHELL=$lt_SHELL
 
14698
 
 
14699
# Whether or not to build shared libraries.
 
14700
build_libtool_libs=$enable_shared
 
14701
 
 
14702
# Whether or not to build static libraries.
 
14703
build_old_libs=$enable_static
 
14704
 
 
14705
# Whether or not to add -lc for building shared libraries.
 
14706
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14707
 
 
14708
# Whether or not to disallow shared libs when runtime libs are static
 
14709
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14710
 
 
14711
# Whether or not to optimize for fast installation.
 
14712
fast_install=$enable_fast_install
 
14713
 
 
14714
# The host system.
 
14715
host_alias=$host_alias
 
14716
host=$host
 
14717
 
 
14718
# An echo program that does not interpret backslashes.
 
14719
echo=$lt_echo
 
14720
 
 
14721
# The archiver.
 
14722
AR=$lt_AR
 
14723
AR_FLAGS=$lt_AR_FLAGS
 
14724
 
 
14725
# A C compiler.
 
14726
LTCC=$lt_LTCC
 
14727
 
 
14728
# A language-specific compiler.
 
14729
CC=$lt_compiler_CXX
 
14730
 
 
14731
# Is the compiler the GNU C compiler?
 
14732
with_gcc=$GCC_CXX
 
14733
 
 
14734
# An ERE matcher.
 
14735
EGREP=$lt_EGREP
 
14736
 
 
14737
# The linker used to build libraries.
 
14738
LD=$lt_LD_CXX
 
14739
 
 
14740
# Whether we need hard or soft links.
 
14741
LN_S=$lt_LN_S
 
14742
 
 
14743
# A BSD-compatible nm program.
 
14744
NM=$lt_NM
 
14745
 
 
14746
# A symbol stripping program
 
14747
STRIP=$lt_STRIP
 
14748
 
 
14749
# Used to examine libraries when file_magic_cmd begins "file"
 
14750
MAGIC_CMD=$MAGIC_CMD
 
14751
 
 
14752
# Used on cygwin: DLL creation program.
 
14753
DLLTOOL="$DLLTOOL"
 
14754
 
 
14755
# Used on cygwin: object dumper.
 
14756
OBJDUMP="$OBJDUMP"
 
14757
 
 
14758
# Used on cygwin: assembler.
 
14759
AS="$AS"
 
14760
 
 
14761
# The name of the directory that contains temporary libtool files.
 
14762
objdir=$objdir
 
14763
 
 
14764
# How to create reloadable object files.
 
14765
reload_flag=$lt_reload_flag
 
14766
reload_cmds=$lt_reload_cmds
 
14767
 
 
14768
# How to pass a linker flag through the compiler.
 
14769
wl=$lt_lt_prog_compiler_wl_CXX
 
14770
 
 
14771
# Object file suffix (normally "o").
 
14772
objext="$ac_objext"
 
14773
 
 
14774
# Old archive suffix (normally "a").
 
14775
libext="$libext"
 
14776
 
 
14777
# Shared library suffix (normally ".so").
 
14778
shrext_cmds='$shrext_cmds'
 
14779
 
 
14780
# Executable file suffix (normally "").
 
14781
exeext="$exeext"
 
14782
 
 
14783
# Additional compiler flags for building library objects.
 
14784
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14785
pic_mode=$pic_mode
 
14786
 
 
14787
# What is the maximum length of a command?
 
14788
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14789
 
 
14790
# Does compiler simultaneously support -c and -o options?
 
14791
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14792
 
 
14793
# Must we lock files when doing compilation ?
 
14794
need_locks=$lt_need_locks
 
14795
 
 
14796
# Do we need the lib prefix for modules?
 
14797
need_lib_prefix=$need_lib_prefix
 
14798
 
 
14799
# Do we need a version for libraries?
 
14800
need_version=$need_version
 
14801
 
 
14802
# Whether dlopen is supported.
 
14803
dlopen_support=$enable_dlopen
 
14804
 
 
14805
# Whether dlopen of programs is supported.
 
14806
dlopen_self=$enable_dlopen_self
 
14807
 
 
14808
# Whether dlopen of statically linked programs is supported.
 
14809
dlopen_self_static=$enable_dlopen_self_static
 
14810
 
 
14811
# Compiler flag to prevent dynamic linking.
 
14812
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14813
 
 
14814
# Compiler flag to turn off builtin functions.
 
14815
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14816
 
 
14817
# Compiler flag to allow reflexive dlopens.
 
14818
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14819
 
 
14820
# Compiler flag to generate shared objects directly from archives.
 
14821
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14822
 
 
14823
# Compiler flag to generate thread-safe objects.
 
14824
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14825
 
 
14826
# Library versioning type.
 
14827
version_type=$version_type
 
14828
 
 
14829
# Format of library name prefix.
 
14830
libname_spec=$lt_libname_spec
 
14831
 
 
14832
# List of archive names.  First name is the real one, the rest are links.
 
14833
# The last name is the one that the linker finds with -lNAME.
 
14834
library_names_spec=$lt_library_names_spec
 
14835
 
 
14836
# The coded name of the library, if different from the real name.
 
14837
soname_spec=$lt_soname_spec
 
14838
 
 
14839
# Commands used to build and install an old-style archive.
 
14840
RANLIB=$lt_RANLIB
 
14841
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14842
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14843
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14844
 
 
14845
# Create an old-style archive from a shared archive.
 
14846
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14847
 
 
14848
# Create a temporary old-style archive to link instead of a shared archive.
 
14849
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14850
 
 
14851
# Commands used to build and install a shared archive.
 
14852
archive_cmds=$lt_archive_cmds_CXX
 
14853
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14854
postinstall_cmds=$lt_postinstall_cmds
 
14855
postuninstall_cmds=$lt_postuninstall_cmds
 
14856
 
 
14857
# Commands used to build a loadable module (assumed same as above if empty)
 
14858
module_cmds=$lt_module_cmds_CXX
 
14859
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14860
 
 
14861
# Commands to strip libraries.
 
14862
old_striplib=$lt_old_striplib
 
14863
striplib=$lt_striplib
 
14864
 
 
14865
# Dependencies to place before the objects being linked to create a
 
14866
# shared library.
 
14867
predep_objects=$lt_predep_objects_CXX
 
14868
 
 
14869
# Dependencies to place after the objects being linked to create a
 
14870
# shared library.
 
14871
postdep_objects=$lt_postdep_objects_CXX
 
14872
 
 
14873
# Dependencies to place before the objects being linked to create a
 
14874
# shared library.
 
14875
predeps=$lt_predeps_CXX
 
14876
 
 
14877
# Dependencies to place after the objects being linked to create a
 
14878
# shared library.
 
14879
postdeps=$lt_postdeps_CXX
 
14880
 
 
14881
# The library search path used internally by the compiler when linking
 
14882
# a shared library.
 
14883
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14884
 
 
14885
# Method to check whether dependent libraries are shared objects.
 
14886
deplibs_check_method=$lt_deplibs_check_method
 
14887
 
 
14888
# Command to use when deplibs_check_method == file_magic.
 
14889
file_magic_cmd=$lt_file_magic_cmd
 
14890
 
 
14891
# Flag that allows shared libraries with undefined symbols to be built.
 
14892
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14893
 
 
14894
# Flag that forces no undefined symbols.
 
14895
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14896
 
 
14897
# Commands used to finish a libtool library installation in a directory.
 
14898
finish_cmds=$lt_finish_cmds
 
14899
 
 
14900
# Same as above, but a single script fragment to be evaled but not shown.
 
14901
finish_eval=$lt_finish_eval
 
14902
 
 
14903
# Take the output of nm and produce a listing of raw symbols and C names.
 
14904
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14905
 
 
14906
# Transform the output of nm in a proper C declaration
 
14907
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14908
 
 
14909
# Transform the output of nm in a C name address pair
 
14910
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14911
 
 
14912
# This is the shared library runtime path variable.
 
14913
runpath_var=$runpath_var
 
14914
 
 
14915
# This is the shared library path variable.
 
14916
shlibpath_var=$shlibpath_var
 
14917
 
 
14918
# Is shlibpath searched before the hard-coded library search path?
 
14919
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14920
 
 
14921
# How to hardcode a shared library path into an executable.
 
14922
hardcode_action=$hardcode_action_CXX
 
14923
 
 
14924
# Whether we should hardcode library paths into libraries.
 
14925
hardcode_into_libs=$hardcode_into_libs
 
14926
 
 
14927
# Flag to hardcode \$libdir into a binary during linking.
 
14928
# This must work even if \$libdir does not exist.
 
14929
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14930
 
 
14931
# If ld is used when linking, flag to hardcode \$libdir into
 
14932
# a binary during linking. This must work even if \$libdir does
 
14933
# not exist.
 
14934
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14935
 
 
14936
# Whether we need a single -rpath flag with a separated argument.
 
14937
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14938
 
 
14939
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14940
# resulting binary.
 
14941
hardcode_direct=$hardcode_direct_CXX
 
14942
 
 
14943
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14944
# resulting binary.
 
14945
hardcode_minus_L=$hardcode_minus_L_CXX
 
14946
 
 
14947
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14948
# the resulting binary.
 
14949
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14950
 
 
14951
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14952
# and all subsequent libraries and executables linked against it.
 
14953
hardcode_automatic=$hardcode_automatic_CXX
 
14954
 
 
14955
# Variables whose values should be saved in libtool wrapper scripts and
 
14956
# restored at relink time.
 
14957
variables_saved_for_relink="$variables_saved_for_relink"
 
14958
 
 
14959
# Whether libtool must link a program against all its dependency libraries.
 
14960
link_all_deplibs=$link_all_deplibs_CXX
 
14961
 
 
14962
# Compile-time system search path for libraries
 
14963
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14964
 
 
14965
# Run-time system search path for libraries
 
14966
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14967
 
 
14968
# Fix the shell variable \$srcfile for the compiler.
 
14969
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14970
 
 
14971
# Set to yes if exported symbols are required.
 
14972
always_export_symbols=$always_export_symbols_CXX
 
14973
 
 
14974
# The commands to list exported symbols.
 
14975
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14976
 
 
14977
# The commands to extract the exported symbol list from a shared archive.
 
14978
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14979
 
 
14980
# Symbols that should not be listed in the preloaded symbols.
 
14981
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14982
 
 
14983
# Symbols that must always be exported.
 
14984
include_expsyms=$lt_include_expsyms_CXX
 
14985
 
 
14986
# ### END LIBTOOL TAG CONFIG: $tagname
 
14987
 
 
14988
__EOF__
 
14989
 
 
14990
 
 
14991
else
 
14992
  # If there is no Makefile yet, we rely on a make rule to execute
 
14993
  # `config.status --recheck' to rerun these tests and create the
 
14994
  # libtool script then.
 
14995
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14996
  if test -f "$ltmain_in"; then
 
14997
    test -f Makefile && make "$ltmain"
 
14998
  fi
 
14999
fi
 
15000
 
 
15001
 
 
15002
ac_ext=c
 
15003
ac_cpp='$CPP $CPPFLAGS'
 
15004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15007
 
 
15008
CC=$lt_save_CC
 
15009
LDCXX=$LD
 
15010
LD=$lt_save_LD
 
15011
GCC=$lt_save_GCC
 
15012
with_gnu_ldcxx=$with_gnu_ld
 
15013
with_gnu_ld=$lt_save_with_gnu_ld
 
15014
lt_cv_path_LDCXX=$lt_cv_path_LD
 
15015
lt_cv_path_LD=$lt_save_path_LD
 
15016
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15017
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15018
 
 
15019
        else
 
15020
          tagname=""
 
15021
        fi
 
15022
        ;;
 
15023
 
 
15024
      F77)
 
15025
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
15026
 
 
15027
ac_ext=f
 
15028
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
15029
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15030
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
15031
 
 
15032
 
 
15033
archive_cmds_need_lc_F77=no
 
15034
allow_undefined_flag_F77=
 
15035
always_export_symbols_F77=no
 
15036
archive_expsym_cmds_F77=
 
15037
export_dynamic_flag_spec_F77=
 
15038
hardcode_direct_F77=no
 
15039
hardcode_libdir_flag_spec_F77=
 
15040
hardcode_libdir_flag_spec_ld_F77=
 
15041
hardcode_libdir_separator_F77=
 
15042
hardcode_minus_L_F77=no
 
15043
hardcode_automatic_F77=no
 
15044
module_cmds_F77=
 
15045
module_expsym_cmds_F77=
 
15046
link_all_deplibs_F77=unknown
 
15047
old_archive_cmds_F77=$old_archive_cmds
 
15048
no_undefined_flag_F77=
 
15049
whole_archive_flag_spec_F77=
 
15050
enable_shared_with_static_runtimes_F77=no
 
15051
 
 
15052
# Source file extension for f77 test sources.
 
15053
ac_ext=f
 
15054
 
 
15055
# Object file extension for compiled f77 test sources.
 
15056
objext=o
 
15057
objext_F77=$objext
 
15058
 
 
15059
# Code to be used in simple compile tests
 
15060
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
15061
 
 
15062
# Code to be used in simple link tests
 
15063
lt_simple_link_test_code="      program t\n      end\n"
 
15064
 
 
15065
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15066
 
 
15067
# If no C compiler was specified, use CC.
 
15068
LTCC=${LTCC-"$CC"}
 
15069
 
 
15070
# Allow CC to be a program name with arguments.
 
15071
compiler=$CC
 
15072
 
 
15073
 
 
15074
# Allow CC to be a program name with arguments.
 
15075
lt_save_CC="$CC"
 
15076
CC=${F77-"f77"}
 
15077
compiler=$CC
 
15078
compiler_F77=$CC
 
15079
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
15080
 
 
15081
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
15082
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
15083
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
15084
echo "${ECHO_T}$can_build_shared" >&6
 
15085
 
 
15086
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
15087
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
15088
test "$can_build_shared" = "no" && enable_shared=no
 
15089
 
 
15090
# On AIX, shared libraries and static libraries use the same namespace, and
 
15091
# are all built from PIC.
 
15092
case "$host_os" in
 
15093
aix3*)
 
15094
  test "$enable_shared" = yes && enable_static=no
 
15095
  if test -n "$RANLIB"; then
 
15096
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
15097
    postinstall_cmds='$RANLIB $lib'
 
15098
  fi
 
15099
  ;;
 
15100
aix4* | aix5*)
 
15101
  test "$enable_shared" = yes && enable_static=no
 
15102
  ;;
 
15103
esac
 
15104
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
15105
echo "${ECHO_T}$enable_shared" >&6
 
15106
 
 
15107
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
15108
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
15109
# Make sure either enable_shared or enable_static is yes.
 
15110
test "$enable_shared" = yes || enable_static=yes
 
15111
echo "$as_me:$LINENO: result: $enable_static" >&5
 
15112
echo "${ECHO_T}$enable_static" >&6
 
15113
 
 
15114
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15115
 
 
15116
GCC_F77="$G77"
 
15117
LD_F77="$LD"
 
15118
 
 
15119
lt_prog_compiler_wl_F77=
 
15120
lt_prog_compiler_pic_F77=
 
15121
lt_prog_compiler_static_F77=
 
15122
 
 
15123
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15124
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15125
 
 
15126
  if test "$GCC" = yes; then
 
15127
    lt_prog_compiler_wl_F77='-Wl,'
 
15128
    lt_prog_compiler_static_F77='-static'
 
15129
 
 
15130
    case $host_os in
 
15131
      aix*)
 
15132
      # All AIX code is PIC.
 
15133
      if test "$host_cpu" = ia64; then
 
15134
        # AIX 5 now supports IA64 processor
 
15135
        lt_prog_compiler_static_F77='-Bstatic'
 
15136
      fi
 
15137
      ;;
 
15138
 
 
15139
    amigaos*)
 
15140
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15141
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15142
      # like `-m68040'.
 
15143
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
15144
      ;;
 
15145
 
 
15146
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15147
      # PIC is the default for these OSes.
 
15148
      ;;
 
15149
 
 
15150
    mingw* | pw32* | os2*)
 
15151
      # This hack is so that the source file can tell whether it is being
 
15152
      # built for inclusion in a dll (and should export symbols for example).
 
15153
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15154
      ;;
 
15155
 
 
15156
    darwin* | rhapsody*)
 
15157
      # PIC is the default on this platform
 
15158
      # Common symbols not allowed in MH_DYLIB files
 
15159
      lt_prog_compiler_pic_F77='-fno-common'
 
15160
      ;;
 
15161
 
 
15162
    msdosdjgpp*)
 
15163
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15164
      # on systems that don't support them.
 
15165
      lt_prog_compiler_can_build_shared_F77=no
 
15166
      enable_shared=no
 
15167
      ;;
 
15168
 
 
15169
    sysv4*MP*)
 
15170
      if test -d /usr/nec; then
 
15171
        lt_prog_compiler_pic_F77=-Kconform_pic
 
15172
      fi
 
15173
      ;;
 
15174
 
 
15175
    hpux*)
 
15176
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15177
      # not for PA HP-UX.
 
15178
      case "$host_cpu" in
 
15179
      hppa*64*|ia64*)
 
15180
        # +Z the default
 
15181
        ;;
 
15182
      *)
 
15183
        lt_prog_compiler_pic_F77='-fPIC'
 
15184
        ;;
 
15185
      esac
 
15186
      ;;
 
15187
 
 
15188
    *)
 
15189
      lt_prog_compiler_pic_F77='-fPIC'
 
15190
      ;;
 
15191
    esac
 
15192
  else
 
15193
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15194
    case $host_os in
 
15195
    aix*)
 
15196
      lt_prog_compiler_wl_F77='-Wl,'
 
15197
      if test "$host_cpu" = ia64; then
 
15198
        # AIX 5 now supports IA64 processor
 
15199
        lt_prog_compiler_static_F77='-Bstatic'
 
15200
      else
 
15201
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
15202
      fi
 
15203
      ;;
 
15204
 
 
15205
    mingw* | pw32* | os2*)
 
15206
      # This hack is so that the source file can tell whether it is being
 
15207
      # built for inclusion in a dll (and should export symbols for example).
 
15208
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15209
      ;;
 
15210
 
 
15211
    hpux9* | hpux10* | hpux11*)
 
15212
      lt_prog_compiler_wl_F77='-Wl,'
 
15213
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15214
      # not for PA HP-UX.
 
15215
      case "$host_cpu" in
 
15216
      hppa*64*|ia64*)
 
15217
        # +Z the default
 
15218
        ;;
 
15219
      *)
 
15220
        lt_prog_compiler_pic_F77='+Z'
 
15221
        ;;
 
15222
      esac
 
15223
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15224
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
15225
      ;;
 
15226
 
 
15227
    irix5* | irix6* | nonstopux*)
 
15228
      lt_prog_compiler_wl_F77='-Wl,'
 
15229
      # PIC (with -KPIC) is the default.
 
15230
      lt_prog_compiler_static_F77='-non_shared'
 
15231
      ;;
 
15232
 
 
15233
    newsos6)
 
15234
      lt_prog_compiler_pic_F77='-KPIC'
 
15235
      lt_prog_compiler_static_F77='-Bstatic'
 
15236
      ;;
 
15237
 
 
15238
    linux*)
 
15239
      case $CC in
 
15240
      icc* | ecc*)
 
15241
        lt_prog_compiler_wl_F77='-Wl,'
 
15242
        lt_prog_compiler_pic_F77='-KPIC'
 
15243
        lt_prog_compiler_static_F77='-static'
 
15244
        ;;
 
15245
      ccc*)
 
15246
        lt_prog_compiler_wl_F77='-Wl,'
 
15247
        # All Alpha code is PIC.
 
15248
        lt_prog_compiler_static_F77='-non_shared'
 
15249
        ;;
 
15250
      esac
 
15251
      ;;
 
15252
 
 
15253
    osf3* | osf4* | osf5*)
 
15254
      lt_prog_compiler_wl_F77='-Wl,'
 
15255
      # All OSF/1 code is PIC.
 
15256
      lt_prog_compiler_static_F77='-non_shared'
 
15257
      ;;
 
15258
 
 
15259
    sco3.2v5*)
 
15260
      lt_prog_compiler_pic_F77='-Kpic'
 
15261
      lt_prog_compiler_static_F77='-dn'
 
15262
      ;;
 
15263
 
 
15264
    solaris*)
 
15265
      lt_prog_compiler_wl_F77='-Wl,'
 
15266
      lt_prog_compiler_pic_F77='-KPIC'
 
15267
      lt_prog_compiler_static_F77='-Bstatic'
 
15268
      ;;
 
15269
 
 
15270
    sunos4*)
 
15271
      lt_prog_compiler_wl_F77='-Qoption ld '
 
15272
      lt_prog_compiler_pic_F77='-PIC'
 
15273
      lt_prog_compiler_static_F77='-Bstatic'
 
15274
      ;;
 
15275
 
 
15276
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15277
      lt_prog_compiler_wl_F77='-Wl,'
 
15278
      lt_prog_compiler_pic_F77='-KPIC'
 
15279
      lt_prog_compiler_static_F77='-Bstatic'
 
15280
      ;;
 
15281
 
 
15282
    sysv4*MP*)
 
15283
      if test -d /usr/nec ;then
 
15284
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
15285
        lt_prog_compiler_static_F77='-Bstatic'
 
15286
      fi
 
15287
      ;;
 
15288
 
 
15289
    uts4*)
 
15290
      lt_prog_compiler_pic_F77='-pic'
 
15291
      lt_prog_compiler_static_F77='-Bstatic'
 
15292
      ;;
 
15293
 
 
15294
    *)
 
15295
      lt_prog_compiler_can_build_shared_F77=no
 
15296
      ;;
 
15297
    esac
 
15298
  fi
 
15299
 
 
15300
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
15301
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
15302
 
 
15303
#
 
15304
# Check to make sure the PIC flag actually works.
 
15305
#
 
15306
if test -n "$lt_prog_compiler_pic_F77"; then
 
15307
 
 
15308
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
15309
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
15310
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
15311
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15312
else
 
15313
  lt_prog_compiler_pic_works_F77=no
 
15314
  ac_outfile=conftest.$ac_objext
 
15315
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15316
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
15317
   # Insert the option either (1) after the last *FLAGS variable, or
 
15318
   # (2) before a word containing "conftest.", or (3) at the end.
 
15319
   # Note that $ac_compile itself does not contain backslashes and begins
 
15320
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15321
   # The option is referenced via a variable to avoid confusing sed.
 
15322
   lt_compile=`echo "$ac_compile" | $SED \
 
15323
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15324
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15325
   -e 's:$: $lt_compiler_flag:'`
 
15326
   (eval echo "\"\$as_me:15326: $lt_compile\"" >&5)
 
15327
   (eval "$lt_compile" 2>conftest.err)
 
15328
   ac_status=$?
 
15329
   cat conftest.err >&5
 
15330
   echo "$as_me:15330: \$? = $ac_status" >&5
 
15331
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15332
     # The compiler can only warn and ignore the option if not recognized
 
15333
     # So say no if there are warnings
 
15334
     if test ! -s conftest.err; then
 
15335
       lt_prog_compiler_pic_works_F77=yes
 
15336
     fi
 
15337
   fi
 
15338
   $rm conftest*
 
15339
 
 
15340
fi
 
15341
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
15342
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
15343
 
 
15344
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
15345
    case $lt_prog_compiler_pic_F77 in
 
15346
     "" | " "*) ;;
 
15347
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
15348
     esac
 
15349
else
 
15350
    lt_prog_compiler_pic_F77=
 
15351
     lt_prog_compiler_can_build_shared_F77=no
 
15352
fi
 
15353
 
 
15354
fi
 
15355
case "$host_os" in
 
15356
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15357
  *djgpp*)
 
15358
    lt_prog_compiler_pic_F77=
 
15359
    ;;
 
15360
  *)
 
15361
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
15362
    ;;
 
15363
esac
 
15364
 
 
15365
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15366
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15367
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
15368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15369
else
 
15370
  lt_cv_prog_compiler_c_o_F77=no
 
15371
   $rm -r conftest 2>/dev/null
 
15372
   mkdir conftest
 
15373
   cd conftest
 
15374
   mkdir out
 
15375
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15376
 
 
15377
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15378
   # Insert the option either (1) after the last *FLAGS variable, or
 
15379
   # (2) before a word containing "conftest.", or (3) at the end.
 
15380
   # Note that $ac_compile itself does not contain backslashes and begins
 
15381
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15382
   lt_compile=`echo "$ac_compile" | $SED \
 
15383
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15384
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15385
   -e 's:$: $lt_compiler_flag:'`
 
15386
   (eval echo "\"\$as_me:15386: $lt_compile\"" >&5)
 
15387
   (eval "$lt_compile" 2>out/conftest.err)
 
15388
   ac_status=$?
 
15389
   cat out/conftest.err >&5
 
15390
   echo "$as_me:15390: \$? = $ac_status" >&5
 
15391
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15392
   then
 
15393
     # The compiler can only warn and ignore the option if not recognized
 
15394
     # So say no if there are warnings
 
15395
     if test ! -s out/conftest.err; then
 
15396
       lt_cv_prog_compiler_c_o_F77=yes
 
15397
     fi
 
15398
   fi
 
15399
   chmod u+w .
 
15400
   $rm conftest*
 
15401
   # SGI C++ compiler will create directory out/ii_files/ for
 
15402
   # template instantiation
 
15403
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15404
   $rm out/* && rmdir out
 
15405
   cd ..
 
15406
   rmdir conftest
 
15407
   $rm conftest*
 
15408
 
 
15409
fi
 
15410
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15411
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
15412
 
 
15413
 
 
15414
hard_links="nottested"
 
15415
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15416
  # do not overwrite the value of need_locks provided by the user
 
15417
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15418
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15419
  hard_links=yes
 
15420
  $rm conftest*
 
15421
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15422
  touch conftest.a
 
15423
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15424
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15425
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15426
echo "${ECHO_T}$hard_links" >&6
 
15427
  if test "$hard_links" = no; then
 
15428
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15429
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15430
    need_locks=warn
 
15431
  fi
 
15432
else
 
15433
  need_locks=no
 
15434
fi
 
15435
 
 
15436
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15437
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15438
 
 
15439
  runpath_var=
 
15440
  allow_undefined_flag_F77=
 
15441
  enable_shared_with_static_runtimes_F77=no
 
15442
  archive_cmds_F77=
 
15443
  archive_expsym_cmds_F77=
 
15444
  old_archive_From_new_cmds_F77=
 
15445
  old_archive_from_expsyms_cmds_F77=
 
15446
  export_dynamic_flag_spec_F77=
 
15447
  whole_archive_flag_spec_F77=
 
15448
  thread_safe_flag_spec_F77=
 
15449
  hardcode_libdir_flag_spec_F77=
 
15450
  hardcode_libdir_flag_spec_ld_F77=
 
15451
  hardcode_libdir_separator_F77=
 
15452
  hardcode_direct_F77=no
 
15453
  hardcode_minus_L_F77=no
 
15454
  hardcode_shlibpath_var_F77=unsupported
 
15455
  link_all_deplibs_F77=unknown
 
15456
  hardcode_automatic_F77=no
 
15457
  module_cmds_F77=
 
15458
  module_expsym_cmds_F77=
 
15459
  always_export_symbols_F77=no
 
15460
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15461
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15462
  # included in the symbol list
 
15463
  include_expsyms_F77=
 
15464
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15465
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15466
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15467
  # as well as any symbol that contains `d'.
 
15468
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
15469
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15470
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15471
  # the symbol is explicitly referenced.  Since portable code cannot
 
15472
  # rely on this symbol name, it's probably fine to never include it in
 
15473
  # preloaded symbol tables.
 
15474
  extract_expsyms_cmds=
 
15475
 
 
15476
  case $host_os in
 
15477
  cygwin* | mingw* | pw32*)
 
15478
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15479
    # When not using gcc, we currently assume that we are using
 
15480
    # Microsoft Visual C++.
 
15481
    if test "$GCC" != yes; then
 
15482
      with_gnu_ld=no
 
15483
    fi
 
15484
    ;;
 
15485
  openbsd*)
 
15486
    with_gnu_ld=no
 
15487
    ;;
 
15488
  esac
 
15489
 
 
15490
  ld_shlibs_F77=yes
 
15491
  if test "$with_gnu_ld" = yes; then
 
15492
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15493
    wlarc='${wl}'
 
15494
 
 
15495
    # See if GNU ld supports shared libraries.
 
15496
    case $host_os in
 
15497
    aix3* | aix4* | aix5*)
 
15498
      # On AIX/PPC, the GNU linker is very broken
 
15499
      if test "$host_cpu" != ia64; then
 
15500
        ld_shlibs_F77=no
 
15501
        cat <<EOF 1>&2
 
15502
 
 
15503
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15504
*** to be unable to reliably create shared libraries on AIX.
 
15505
*** Therefore, libtool is disabling shared libraries support.  If you
 
15506
*** really care for shared libraries, you may want to modify your PATH
 
15507
*** so that a non-GNU linker is found, and then restart.
 
15508
 
 
15509
EOF
 
15510
      fi
 
15511
      ;;
 
15512
 
 
15513
    amigaos*)
 
15514
      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)'
 
15515
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15516
      hardcode_minus_L_F77=yes
 
15517
 
 
15518
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15519
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15520
      # to version 4, is to share data among multiple programs linked
 
15521
      # with the same dynamic library.  Since this doesn't match the
 
15522
      # behavior of shared libraries on other platforms, we can't use
 
15523
      # them.
 
15524
      ld_shlibs_F77=no
 
15525
      ;;
 
15526
 
 
15527
    beos*)
 
15528
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15529
        allow_undefined_flag_F77=unsupported
 
15530
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15531
        # support --undefined.  This deserves some investigation.  FIXME
 
15532
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15533
      else
 
15534
        ld_shlibs_F77=no
 
15535
      fi
 
15536
      ;;
 
15537
 
 
15538
    cygwin* | mingw* | pw32*)
 
15539
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15540
      # as there is no search path for DLLs.
 
15541
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15542
      allow_undefined_flag_F77=unsupported
 
15543
      always_export_symbols_F77=no
 
15544
      enable_shared_with_static_runtimes_F77=yes
 
15545
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15546
 
 
15547
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15548
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15549
        # If the export-symbols file already is a .def file (1st line
 
15550
        # is EXPORTS), use it as is; otherwise, prepend...
 
15551
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15552
          cp $export_symbols $output_objdir/$soname.def;
 
15553
        else
 
15554
          echo EXPORTS > $output_objdir/$soname.def;
 
15555
          cat $export_symbols >> $output_objdir/$soname.def;
 
15556
        fi~
 
15557
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15558
      else
 
15559
        ld_shlibs=no
 
15560
      fi
 
15561
      ;;
 
15562
 
 
15563
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
15564
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15565
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15566
        wlarc=
 
15567
      else
 
15568
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15569
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15570
      fi
 
15571
      ;;
 
15572
 
 
15573
    solaris* | sysv5*)
 
15574
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15575
        ld_shlibs_F77=no
 
15576
        cat <<EOF 1>&2
 
15577
 
 
15578
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15579
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15580
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15581
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15582
*** your PATH or compiler configuration so that the native linker is
 
15583
*** used, and then restart.
 
15584
 
 
15585
EOF
 
15586
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15587
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15588
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15589
      else
 
15590
        ld_shlibs_F77=no
 
15591
      fi
 
15592
      ;;
 
15593
 
 
15594
    sunos4*)
 
15595
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15596
      wlarc=
 
15597
      hardcode_direct_F77=yes
 
15598
      hardcode_shlibpath_var_F77=no
 
15599
      ;;
 
15600
 
 
15601
  linux*)
 
15602
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15603
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15604
        archive_cmds_F77="$tmp_archive_cmds"
 
15605
      supports_anon_versioning=no
 
15606
      case `$LD -v 2>/dev/null` in
 
15607
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15608
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15609
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15610
        *\ 2.11.*) ;; # other 2.11 versions
 
15611
        *) supports_anon_versioning=yes ;;
 
15612
      esac
 
15613
      if test $supports_anon_versioning = yes; then
 
15614
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15615
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15616
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
15617
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15618
      else
 
15619
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
15620
      fi
 
15621
      link_all_deplibs_F77=no
 
15622
    else
 
15623
      ld_shlibs_F77=no
 
15624
    fi
 
15625
    ;;
 
15626
 
 
15627
    *)
 
15628
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15629
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15630
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15631
      else
 
15632
        ld_shlibs_F77=no
 
15633
      fi
 
15634
      ;;
 
15635
    esac
 
15636
 
 
15637
    if test "$ld_shlibs_F77" = yes; then
 
15638
      runpath_var=LD_RUN_PATH
 
15639
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15640
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15641
      # ancient GNU ld didn't support --whole-archive et. al.
 
15642
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15643
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15644
      else
 
15645
        whole_archive_flag_spec_F77=
 
15646
      fi
 
15647
    fi
 
15648
  else
 
15649
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15650
    case $host_os in
 
15651
    aix3*)
 
15652
      allow_undefined_flag_F77=unsupported
 
15653
      always_export_symbols_F77=yes
 
15654
      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'
 
15655
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15656
      # are no directories specified by -L.
 
15657
      hardcode_minus_L_F77=yes
 
15658
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15659
        # Neither direct hardcoding nor static linking is supported with a
 
15660
        # broken collect2.
 
15661
        hardcode_direct_F77=unsupported
 
15662
      fi
 
15663
      ;;
 
15664
 
 
15665
    aix4* | aix5*)
 
15666
      if test "$host_cpu" = ia64; then
 
15667
        # On IA64, the linker does run time linking by default, so we don't
 
15668
        # have to do anything special.
 
15669
        aix_use_runtimelinking=no
 
15670
        exp_sym_flag='-Bexport'
 
15671
        no_entry_flag=""
 
15672
      else
 
15673
        # If we're using GNU nm, then we don't want the "-C" option.
 
15674
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15675
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15676
          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'
 
15677
        else
 
15678
          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'
 
15679
        fi
 
15680
        aix_use_runtimelinking=no
 
15681
 
 
15682
        # Test if we are trying to use run time linking or normal
 
15683
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15684
        # need to do runtime linking.
 
15685
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15686
          for ld_flag in $LDFLAGS; do
 
15687
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15688
            aix_use_runtimelinking=yes
 
15689
            break
 
15690
          fi
 
15691
          done
 
15692
        esac
 
15693
 
 
15694
        exp_sym_flag='-bexport'
 
15695
        no_entry_flag='-bnoentry'
 
15696
      fi
 
15697
 
 
15698
      # When large executables or shared objects are built, AIX ld can
 
15699
      # have problems creating the table of contents.  If linking a library
 
15700
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15701
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15702
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15703
 
 
15704
      archive_cmds_F77=''
 
15705
      hardcode_direct_F77=yes
 
15706
      hardcode_libdir_separator_F77=':'
 
15707
      link_all_deplibs_F77=yes
 
15708
 
 
15709
      if test "$GCC" = yes; then
 
15710
        case $host_os in aix4.012|aix4.012.*)
 
15711
        # We only want to do this on AIX 4.2 and lower, the check
 
15712
        # below for broken collect2 doesn't work under 4.3+
 
15713
          collect2name=`${CC} -print-prog-name=collect2`
 
15714
          if test -f "$collect2name" && \
 
15715
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15716
          then
 
15717
          # We have reworked collect2
 
15718
          hardcode_direct_F77=yes
 
15719
          else
 
15720
          # We have old collect2
 
15721
          hardcode_direct_F77=unsupported
 
15722
          # It fails to find uninstalled libraries when the uninstalled
 
15723
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15724
          # to unsupported forces relinking
 
15725
          hardcode_minus_L_F77=yes
 
15726
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15727
          hardcode_libdir_separator_F77=
 
15728
          fi
 
15729
        esac
 
15730
        shared_flag='-shared'
 
15731
      else
 
15732
        # not using gcc
 
15733
        if test "$host_cpu" = ia64; then
 
15734
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15735
        # chokes on -Wl,-G. The following line is correct:
 
15736
          shared_flag='-G'
 
15737
        else
 
15738
        if test "$aix_use_runtimelinking" = yes; then
 
15739
            shared_flag='${wl}-G'
 
15740
          else
 
15741
            shared_flag='${wl}-bM:SRE'
 
15742
        fi
 
15743
        fi
 
15744
      fi
 
15745
 
 
15746
      # It seems that -bexpall does not export symbols beginning with
 
15747
      # underscore (_), so it is better to generate a list of symbols to export.
 
15748
      always_export_symbols_F77=yes
 
15749
      if test "$aix_use_runtimelinking" = yes; then
 
15750
        # Warning - without using the other runtime loading flags (-brtl),
 
15751
        # -berok will link without error, but may produce a broken library.
 
15752
        allow_undefined_flag_F77='-berok'
 
15753
       # Determine the default libpath from the value encoded in an empty executable.
 
15754
       cat >conftest.$ac_ext <<_ACEOF
 
15755
      program main
 
15756
 
 
15757
      end
 
15758
_ACEOF
 
15759
rm -f conftest.$ac_objext conftest$ac_exeext
 
15760
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15761
  (eval $ac_link) 2>conftest.er1
 
15762
  ac_status=$?
 
15763
  grep -v '^ *+' conftest.er1 >conftest.err
 
15764
  rm -f conftest.er1
 
15765
  cat conftest.err >&5
 
15766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15767
  (exit $ac_status); } &&
 
15768
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
15769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15770
  (eval $ac_try) 2>&5
 
15771
  ac_status=$?
 
15772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15773
  (exit $ac_status); }; } &&
 
15774
         { ac_try='test -s conftest$ac_exeext'
 
15775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15776
  (eval $ac_try) 2>&5
 
15777
  ac_status=$?
 
15778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15779
  (exit $ac_status); }; }; then
 
15780
 
 
15781
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15782
}'`
 
15783
# Check for a 64-bit object if we didn't find anything.
 
15784
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; }
 
15785
}'`; fi
 
15786
else
 
15787
  echo "$as_me: failed program was:" >&5
 
15788
sed 's/^/| /' conftest.$ac_ext >&5
 
15789
 
 
15790
fi
 
15791
rm -f conftest.err conftest.$ac_objext \
 
15792
      conftest$ac_exeext conftest.$ac_ext
 
15793
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15794
 
 
15795
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15796
        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"
 
15797
       else
 
15798
        if test "$host_cpu" = ia64; then
 
15799
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15800
          allow_undefined_flag_F77="-z nodefs"
 
15801
          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"
 
15802
        else
 
15803
         # Determine the default libpath from the value encoded in an empty executable.
 
15804
         cat >conftest.$ac_ext <<_ACEOF
 
15805
      program main
 
15806
 
 
15807
      end
 
15808
_ACEOF
 
15809
rm -f conftest.$ac_objext conftest$ac_exeext
 
15810
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15811
  (eval $ac_link) 2>conftest.er1
 
15812
  ac_status=$?
 
15813
  grep -v '^ *+' conftest.er1 >conftest.err
 
15814
  rm -f conftest.er1
 
15815
  cat conftest.err >&5
 
15816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15817
  (exit $ac_status); } &&
 
15818
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
15819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15820
  (eval $ac_try) 2>&5
 
15821
  ac_status=$?
 
15822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15823
  (exit $ac_status); }; } &&
 
15824
         { ac_try='test -s conftest$ac_exeext'
 
15825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15826
  (eval $ac_try) 2>&5
 
15827
  ac_status=$?
 
15828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15829
  (exit $ac_status); }; }; then
 
15830
 
 
15831
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15832
}'`
 
15833
# Check for a 64-bit object if we didn't find anything.
 
15834
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; }
 
15835
}'`; fi
 
15836
else
 
15837
  echo "$as_me: failed program was:" >&5
 
15838
sed 's/^/| /' conftest.$ac_ext >&5
 
15839
 
 
15840
fi
 
15841
rm -f conftest.err conftest.$ac_objext \
 
15842
      conftest$ac_exeext conftest.$ac_ext
 
15843
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15844
 
 
15845
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15846
          # Warning - without using the other run time loading flags,
 
15847
          # -berok will link without error, but may produce a broken library.
 
15848
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15849
          allow_undefined_flag_F77=' ${wl}-berok'
 
15850
          # -bexpall does not export symbols beginning with underscore (_)
 
15851
          always_export_symbols_F77=yes
 
15852
          # Exported symbols can be pulled into shared objects from archives
 
15853
          whole_archive_flag_spec_F77=' '
 
15854
          archive_cmds_need_lc_F77=yes
 
15855
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15856
          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'
 
15857
        fi
 
15858
      fi
 
15859
      ;;
 
15860
 
 
15861
    amigaos*)
 
15862
      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)'
 
15863
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15864
      hardcode_minus_L_F77=yes
 
15865
      # see comment about different semantics on the GNU ld section
 
15866
      ld_shlibs_F77=no
 
15867
      ;;
 
15868
 
 
15869
    bsdi4*)
 
15870
      export_dynamic_flag_spec_F77=-rdynamic
 
15871
      ;;
 
15872
 
 
15873
    cygwin* | mingw* | pw32*)
 
15874
      # When not using gcc, we currently assume that we are using
 
15875
      # Microsoft Visual C++.
 
15876
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15877
      # no search path for DLLs.
 
15878
      hardcode_libdir_flag_spec_F77=' '
 
15879
      allow_undefined_flag_F77=unsupported
 
15880
      # Tell ltmain to make .lib files, not .a files.
 
15881
      libext=lib
 
15882
      # Tell ltmain to make .dll files, not .so files.
 
15883
      shrext_cmds=".dll"
 
15884
      # FIXME: Setting linknames here is a bad hack.
 
15885
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15886
      # The linker will automatically build a .lib file if we build a DLL.
 
15887
      old_archive_From_new_cmds_F77='true'
 
15888
      # FIXME: Should let the user specify the lib program.
 
15889
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15890
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15891
      enable_shared_with_static_runtimes_F77=yes
 
15892
      ;;
 
15893
 
 
15894
    darwin* | rhapsody*)
 
15895
    if test "$GXX" = yes ; then
 
15896
      archive_cmds_need_lc_F77=no
 
15897
      case "$host_os" in
 
15898
      rhapsody* | darwin1.[012])
 
15899
        allow_undefined_flag_F77='-undefined suppress'
 
15900
        ;;
 
15901
      *) # Darwin 1.3 on
 
15902
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15903
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
15904
      else
 
15905
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
15906
          10.[012])
 
15907
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
15908
            ;;
 
15909
          10.*)
 
15910
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
15911
            ;;
 
15912
        esac
 
15913
      fi
 
15914
        ;;
 
15915
      esac
 
15916
        lt_int_apple_cc_single_mod=no
 
15917
        output_verbose_link_cmd='echo'
 
15918
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
15919
          lt_int_apple_cc_single_mod=yes
 
15920
        fi
 
15921
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15922
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15923
        else
 
15924
        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'
 
15925
      fi
 
15926
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15927
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
15928
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
15929
          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}'
 
15930
        else
 
15931
          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}'
 
15932
        fi
 
15933
          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}'
 
15934
      hardcode_direct_F77=no
 
15935
      hardcode_automatic_F77=yes
 
15936
      hardcode_shlibpath_var_F77=unsupported
 
15937
      whole_archive_flag_spec_F77='-all_load $convenience'
 
15938
      link_all_deplibs_F77=yes
 
15939
    else
 
15940
      ld_shlibs_F77=no
 
15941
    fi
 
15942
      ;;
 
15943
 
 
15944
    dgux*)
 
15945
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15946
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15947
      hardcode_shlibpath_var_F77=no
 
15948
      ;;
 
15949
 
 
15950
    freebsd1*)
 
15951
      ld_shlibs_F77=no
 
15952
      ;;
 
15953
 
 
15954
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15955
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15956
    # does not break anything, and helps significantly (at the cost of a little
 
15957
    # extra space).
 
15958
    freebsd2.2*)
 
15959
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15960
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15961
      hardcode_direct_F77=yes
 
15962
      hardcode_shlibpath_var_F77=no
 
15963
      ;;
 
15964
 
 
15965
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15966
    freebsd2*)
 
15967
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15968
      hardcode_direct_F77=yes
 
15969
      hardcode_minus_L_F77=yes
 
15970
      hardcode_shlibpath_var_F77=no
 
15971
      ;;
 
15972
 
 
15973
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15974
    freebsd* | kfreebsd*-gnu)
 
15975
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15976
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15977
      hardcode_direct_F77=yes
 
15978
      hardcode_shlibpath_var_F77=no
 
15979
      ;;
 
15980
 
 
15981
    hpux9*)
 
15982
      if test "$GCC" = yes; then
 
15983
        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'
 
15984
      else
 
15985
        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'
 
15986
      fi
 
15987
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15988
      hardcode_libdir_separator_F77=:
 
15989
      hardcode_direct_F77=yes
 
15990
 
 
15991
      # hardcode_minus_L: Not really in the search PATH,
 
15992
      # but as the default location of the library.
 
15993
      hardcode_minus_L_F77=yes
 
15994
      export_dynamic_flag_spec_F77='${wl}-E'
 
15995
      ;;
 
15996
 
 
15997
    hpux10* | hpux11*)
 
15998
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15999
        case "$host_cpu" in
 
16000
        hppa*64*|ia64*)
 
16001
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16002
          ;;
 
16003
        *)
 
16004
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16005
          ;;
 
16006
        esac
 
16007
      else
 
16008
        case "$host_cpu" in
 
16009
        hppa*64*|ia64*)
 
16010
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16011
          ;;
 
16012
        *)
 
16013
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16014
          ;;
 
16015
        esac
 
16016
      fi
 
16017
      if test "$with_gnu_ld" = no; then
 
16018
        case "$host_cpu" in
 
16019
        hppa*64*)
 
16020
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16021
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
16022
          hardcode_libdir_separator_F77=:
 
16023
          hardcode_direct_F77=no
 
16024
          hardcode_shlibpath_var_F77=no
 
16025
          ;;
 
16026
        ia64*)
 
16027
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16028
          hardcode_direct_F77=no
 
16029
          hardcode_shlibpath_var_F77=no
 
16030
 
 
16031
          # hardcode_minus_L: Not really in the search PATH,
 
16032
          # but as the default location of the library.
 
16033
          hardcode_minus_L_F77=yes
 
16034
          ;;
 
16035
        *)
 
16036
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16037
          hardcode_libdir_separator_F77=:
 
16038
          hardcode_direct_F77=yes
 
16039
          export_dynamic_flag_spec_F77='${wl}-E'
 
16040
 
 
16041
          # hardcode_minus_L: Not really in the search PATH,
 
16042
          # but as the default location of the library.
 
16043
          hardcode_minus_L_F77=yes
 
16044
          ;;
 
16045
        esac
 
16046
      fi
 
16047
      ;;
 
16048
 
 
16049
    irix5* | irix6* | nonstopux*)
 
16050
      if test "$GCC" = yes; then
 
16051
        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'
 
16052
      else
 
16053
        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'
 
16054
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
16055
      fi
 
16056
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16057
      hardcode_libdir_separator_F77=:
 
16058
      link_all_deplibs_F77=yes
 
16059
      ;;
 
16060
 
 
16061
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16062
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16063
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16064
      else
 
16065
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16066
      fi
 
16067
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16068
      hardcode_direct_F77=yes
 
16069
      hardcode_shlibpath_var_F77=no
 
16070
      ;;
 
16071
 
 
16072
    newsos6)
 
16073
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16074
      hardcode_direct_F77=yes
 
16075
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16076
      hardcode_libdir_separator_F77=:
 
16077
      hardcode_shlibpath_var_F77=no
 
16078
      ;;
 
16079
 
 
16080
    openbsd*)
 
16081
      hardcode_direct_F77=yes
 
16082
      hardcode_shlibpath_var_F77=no
 
16083
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16084
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16085
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16086
        export_dynamic_flag_spec_F77='${wl}-E'
 
16087
      else
 
16088
       case $host_os in
 
16089
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16090
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16091
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
16092
           ;;
 
16093
         *)
 
16094
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16095
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16096
           ;;
 
16097
       esac
 
16098
      fi
 
16099
      ;;
 
16100
 
 
16101
    os2*)
 
16102
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16103
      hardcode_minus_L_F77=yes
 
16104
      allow_undefined_flag_F77=unsupported
 
16105
      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'
 
16106
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16107
      ;;
 
16108
 
 
16109
    osf3*)
 
16110
      if test "$GCC" = yes; then
 
16111
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16112
        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'
 
16113
      else
 
16114
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16115
        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'
 
16116
      fi
 
16117
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16118
      hardcode_libdir_separator_F77=:
 
16119
      ;;
 
16120
 
 
16121
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16122
      if test "$GCC" = yes; then
 
16123
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16124
        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'
 
16125
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16126
      else
 
16127
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16128
        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'
 
16129
        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~
 
16130
        $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'
 
16131
 
 
16132
        # Both c and cxx compiler support -rpath directly
 
16133
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
16134
      fi
 
16135
      hardcode_libdir_separator_F77=:
 
16136
      ;;
 
16137
 
 
16138
    sco3.2v5*)
 
16139
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16140
      hardcode_shlibpath_var_F77=no
 
16141
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16142
      runpath_var=LD_RUN_PATH
 
16143
      hardcode_runpath_var=yes
 
16144
      ;;
 
16145
 
 
16146
    solaris*)
 
16147
      no_undefined_flag_F77=' -z text'
 
16148
      if test "$GCC" = yes; then
 
16149
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16150
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16151
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16152
      else
 
16153
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16154
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16155
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16156
      fi
 
16157
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16158
      hardcode_shlibpath_var_F77=no
 
16159
      case $host_os in
 
16160
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16161
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16162
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16163
      esac
 
16164
      link_all_deplibs_F77=yes
 
16165
      ;;
 
16166
 
 
16167
    sunos4*)
 
16168
      if test "x$host_vendor" = xsequent; then
 
16169
        # Use $CC to link under sequent, because it throws in some extra .o
 
16170
        # files that make .init and .fini sections work.
 
16171
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16172
      else
 
16173
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16174
      fi
 
16175
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16176
      hardcode_direct_F77=yes
 
16177
      hardcode_minus_L_F77=yes
 
16178
      hardcode_shlibpath_var_F77=no
 
16179
      ;;
 
16180
 
 
16181
    sysv4)
 
16182
      case $host_vendor in
 
16183
        sni)
 
16184
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16185
          hardcode_direct_F77=yes # is this really true???
 
16186
        ;;
 
16187
        siemens)
 
16188
          ## LD is ld it makes a PLAMLIB
 
16189
          ## CC just makes a GrossModule.
 
16190
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16191
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
16192
          hardcode_direct_F77=no
 
16193
        ;;
 
16194
        motorola)
 
16195
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16196
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
16197
        ;;
 
16198
      esac
 
16199
      runpath_var='LD_RUN_PATH'
 
16200
      hardcode_shlibpath_var_F77=no
 
16201
      ;;
 
16202
 
 
16203
    sysv4.3*)
 
16204
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16205
      hardcode_shlibpath_var_F77=no
 
16206
      export_dynamic_flag_spec_F77='-Bexport'
 
16207
      ;;
 
16208
 
 
16209
    sysv4*MP*)
 
16210
      if test -d /usr/nec; then
 
16211
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16212
        hardcode_shlibpath_var_F77=no
 
16213
        runpath_var=LD_RUN_PATH
 
16214
        hardcode_runpath_var=yes
 
16215
        ld_shlibs_F77=yes
 
16216
      fi
 
16217
      ;;
 
16218
 
 
16219
    sysv4.2uw2*)
 
16220
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16221
      hardcode_direct_F77=yes
 
16222
      hardcode_minus_L_F77=no
 
16223
      hardcode_shlibpath_var_F77=no
 
16224
      hardcode_runpath_var=yes
 
16225
      runpath_var=LD_RUN_PATH
 
16226
      ;;
 
16227
 
 
16228
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16229
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
16230
      if test "$GCC" = yes; then
 
16231
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16232
      else
 
16233
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16234
      fi
 
16235
      runpath_var='LD_RUN_PATH'
 
16236
      hardcode_shlibpath_var_F77=no
 
16237
      ;;
 
16238
 
 
16239
    sysv5*)
 
16240
      no_undefined_flag_F77=' -z text'
 
16241
      # $CC -shared without GNU ld will not create a library from C++
 
16242
      # object files and a static libstdc++, better avoid it by now
 
16243
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16244
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16245
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16246
      hardcode_libdir_flag_spec_F77=
 
16247
      hardcode_shlibpath_var_F77=no
 
16248
      runpath_var='LD_RUN_PATH'
 
16249
      ;;
 
16250
 
 
16251
    uts4*)
 
16252
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16253
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16254
      hardcode_shlibpath_var_F77=no
 
16255
      ;;
 
16256
 
 
16257
    *)
 
16258
      ld_shlibs_F77=no
 
16259
      ;;
 
16260
    esac
 
16261
  fi
 
16262
 
 
16263
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
16264
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
16265
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16266
 
 
16267
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16268
if test "$GCC" = yes; then
 
16269
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16270
fi
 
16271
 
 
16272
#
 
16273
# Do we need to explicitly link libc?
 
16274
#
 
16275
case "x$archive_cmds_need_lc_F77" in
 
16276
x|xyes)
 
16277
  # Assume -lc should be added
 
16278
  archive_cmds_need_lc_F77=yes
 
16279
 
 
16280
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16281
    case $archive_cmds_F77 in
 
16282
    *'~'*)
 
16283
      # FIXME: we may have to deal with multi-command sequences.
 
16284
      ;;
 
16285
    '$CC '*)
 
16286
      # Test whether the compiler implicitly links with -lc since on some
 
16287
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16288
      # to ld, don't add -lc before -lgcc.
 
16289
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16290
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16291
      $rm conftest*
 
16292
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16293
 
 
16294
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16295
  (eval $ac_compile) 2>&5
 
16296
  ac_status=$?
 
16297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16298
  (exit $ac_status); } 2>conftest.err; then
 
16299
        soname=conftest
 
16300
        lib=conftest
 
16301
        libobjs=conftest.$ac_objext
 
16302
        deplibs=
 
16303
        wl=$lt_prog_compiler_wl_F77
 
16304
        compiler_flags=-v
 
16305
        linker_flags=-v
 
16306
        verstring=
 
16307
        output_objdir=.
 
16308
        libname=conftest
 
16309
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16310
        allow_undefined_flag_F77=
 
16311
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16312
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16313
  ac_status=$?
 
16314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16315
  (exit $ac_status); }
 
16316
        then
 
16317
          archive_cmds_need_lc_F77=no
 
16318
        else
 
16319
          archive_cmds_need_lc_F77=yes
 
16320
        fi
 
16321
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16322
      else
 
16323
        cat conftest.err 1>&5
 
16324
      fi
 
16325
      $rm conftest*
 
16326
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16327
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
16328
      ;;
 
16329
    esac
 
16330
  fi
 
16331
  ;;
 
16332
esac
 
16333
 
 
16334
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16335
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16336
library_names_spec=
 
16337
libname_spec='lib$name'
 
16338
soname_spec=
 
16339
shrext_cmds=".so"
 
16340
postinstall_cmds=
 
16341
postuninstall_cmds=
 
16342
finish_cmds=
 
16343
finish_eval=
 
16344
shlibpath_var=
 
16345
shlibpath_overrides_runpath=unknown
 
16346
version_type=none
 
16347
dynamic_linker="$host_os ld.so"
 
16348
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16349
if test "$GCC" = yes; then
 
16350
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16351
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16352
    # if the path contains ";" then we assume it to be the separator
 
16353
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16354
    # assumed that no part of a normal pathname contains ";" but that should
 
16355
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16356
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16357
  else
 
16358
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16359
  fi
 
16360
else
 
16361
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16362
fi
 
16363
need_lib_prefix=unknown
 
16364
hardcode_into_libs=no
 
16365
 
 
16366
# when you set need_version to no, make sure it does not cause -set_version
 
16367
# flags to be left without arguments
 
16368
need_version=unknown
 
16369
 
 
16370
case $host_os in
 
16371
aix3*)
 
16372
  version_type=linux
 
16373
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16374
  shlibpath_var=LIBPATH
 
16375
 
 
16376
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16377
  soname_spec='${libname}${release}${shared_ext}$major'
 
16378
  ;;
 
16379
 
 
16380
aix4* | aix5*)
 
16381
  version_type=linux
 
16382
  need_lib_prefix=no
 
16383
  need_version=no
 
16384
  hardcode_into_libs=yes
 
16385
  if test "$host_cpu" = ia64; then
 
16386
    # AIX 5 supports IA64
 
16387
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16388
    shlibpath_var=LD_LIBRARY_PATH
 
16389
  else
 
16390
    # With GCC up to 2.95.x, collect2 would create an import file
 
16391
    # for dependence libraries.  The import file would start with
 
16392
    # the line `#! .'.  This would cause the generated library to
 
16393
    # depend on `.', always an invalid library.  This was fixed in
 
16394
    # development snapshots of GCC prior to 3.0.
 
16395
    case $host_os in
 
16396
      aix4 | aix4.[01] | aix4.[01].*)
 
16397
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16398
           echo ' yes '
 
16399
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16400
        :
 
16401
      else
 
16402
        can_build_shared=no
 
16403
      fi
 
16404
      ;;
 
16405
    esac
 
16406
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16407
    # soname into executable. Probably we can add versioning support to
 
16408
    # collect2, so additional links can be useful in future.
 
16409
    if test "$aix_use_runtimelinking" = yes; then
 
16410
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16411
      # instead of lib<name>.a to let people know that these are not
 
16412
      # typical AIX shared libraries.
 
16413
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16414
    else
 
16415
      # We preserve .a as extension for shared libraries through AIX4.2
 
16416
      # and later when we are not doing run time linking.
 
16417
      library_names_spec='${libname}${release}.a $libname.a'
 
16418
      soname_spec='${libname}${release}${shared_ext}$major'
 
16419
    fi
 
16420
    shlibpath_var=LIBPATH
 
16421
  fi
 
16422
  ;;
 
16423
 
 
16424
amigaos*)
 
16425
  library_names_spec='$libname.ixlibrary $libname.a'
 
16426
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16427
  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'
 
16428
  ;;
 
16429
 
 
16430
beos*)
 
16431
  library_names_spec='${libname}${shared_ext}'
 
16432
  dynamic_linker="$host_os ld.so"
 
16433
  shlibpath_var=LIBRARY_PATH
 
16434
  ;;
 
16435
 
 
16436
bsdi4*)
 
16437
  version_type=linux
 
16438
  need_version=no
 
16439
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16440
  soname_spec='${libname}${release}${shared_ext}$major'
 
16441
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16442
  shlibpath_var=LD_LIBRARY_PATH
 
16443
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16444
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16445
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16446
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16447
  # libtool to hard-code these into programs
 
16448
  ;;
 
16449
 
 
16450
cygwin* | mingw* | pw32*)
 
16451
  version_type=windows
 
16452
  shrext_cmds=".dll"
 
16453
  need_version=no
 
16454
  need_lib_prefix=no
 
16455
 
 
16456
  case $GCC,$host_os in
 
16457
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16458
    library_names_spec='$libname.dll.a'
 
16459
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16460
    postinstall_cmds='base_file=`basename \${file}`~
 
16461
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16462
      dldir=$destdir/`dirname \$dlpath`~
 
16463
      test -d \$dldir || mkdir -p \$dldir~
 
16464
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16465
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16466
      dlpath=$dir/\$dldll~
 
16467
       $rm \$dlpath'
 
16468
    shlibpath_overrides_runpath=yes
 
16469
 
 
16470
    case $host_os in
 
16471
    cygwin*)
 
16472
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16473
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16474
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16475
      ;;
 
16476
    mingw*)
 
16477
      # MinGW DLLs use traditional 'lib' prefix
 
16478
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16479
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16480
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16481
        # It is most probably a Windows format PATH printed by
 
16482
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16483
        # path with ; separators, and with drive letters. We can handle the
 
16484
        # drive letters (cygwin fileutils understands them), so leave them,
 
16485
        # especially as we might pass files found there to a mingw objdump,
 
16486
        # which wouldn't understand a cygwinified path. Ahh.
 
16487
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16488
      else
 
16489
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16490
      fi
 
16491
      ;;
 
16492
    pw32*)
 
16493
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16494
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16495
      ;;
 
16496
    esac
 
16497
    ;;
 
16498
 
 
16499
  *)
 
16500
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16501
    ;;
 
16502
  esac
 
16503
  dynamic_linker='Win32 ld.exe'
 
16504
  # FIXME: first we should search . and the directory the executable is in
 
16505
  shlibpath_var=PATH
 
16506
  ;;
 
16507
 
 
16508
darwin* | rhapsody*)
 
16509
  dynamic_linker="$host_os dyld"
 
16510
  version_type=darwin
 
16511
  need_lib_prefix=no
 
16512
  need_version=no
 
16513
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16514
  soname_spec='${libname}${release}${major}$shared_ext'
 
16515
  shlibpath_overrides_runpath=yes
 
16516
  shlibpath_var=DYLD_LIBRARY_PATH
 
16517
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16518
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16519
  if test "$GCC" = yes; then
 
16520
    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"`
 
16521
  else
 
16522
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16523
  fi
 
16524
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16525
  ;;
 
16526
 
 
16527
dgux*)
 
16528
  version_type=linux
 
16529
  need_lib_prefix=no
 
16530
  need_version=no
 
16531
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16532
  soname_spec='${libname}${release}${shared_ext}$major'
 
16533
  shlibpath_var=LD_LIBRARY_PATH
 
16534
  ;;
 
16535
 
 
16536
freebsd1*)
 
16537
  dynamic_linker=no
 
16538
  ;;
 
16539
 
 
16540
kfreebsd*-gnu)
 
16541
  version_type=linux
 
16542
  need_lib_prefix=no
 
16543
  need_version=no
 
16544
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16545
  soname_spec='${libname}${release}${shared_ext}$major'
 
16546
  shlibpath_var=LD_LIBRARY_PATH
 
16547
  shlibpath_overrides_runpath=no
 
16548
  hardcode_into_libs=yes
 
16549
  dynamic_linker='GNU ld.so'
 
16550
  ;;
 
16551
 
 
16552
freebsd*)
 
16553
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16554
  version_type=freebsd-$objformat
 
16555
  case $version_type in
 
16556
    freebsd-elf*)
 
16557
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16558
      need_version=no
 
16559
      need_lib_prefix=no
 
16560
      ;;
 
16561
    freebsd-*)
 
16562
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16563
      need_version=yes
 
16564
      ;;
 
16565
  esac
 
16566
  shlibpath_var=LD_LIBRARY_PATH
 
16567
  case $host_os in
 
16568
  freebsd2*)
 
16569
    shlibpath_overrides_runpath=yes
 
16570
    ;;
 
16571
  freebsd3.01* | freebsdelf3.01*)
 
16572
    shlibpath_overrides_runpath=yes
 
16573
    hardcode_into_libs=yes
 
16574
    ;;
 
16575
  *) # from 3.2 on
 
16576
    shlibpath_overrides_runpath=no
 
16577
    hardcode_into_libs=yes
 
16578
    ;;
 
16579
  esac
 
16580
  ;;
 
16581
 
 
16582
gnu*)
 
16583
  version_type=linux
 
16584
  need_lib_prefix=no
 
16585
  need_version=no
 
16586
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16587
  soname_spec='${libname}${release}${shared_ext}$major'
 
16588
  shlibpath_var=LD_LIBRARY_PATH
 
16589
  hardcode_into_libs=yes
 
16590
  ;;
 
16591
 
 
16592
hpux9* | hpux10* | hpux11*)
 
16593
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16594
  # link against other versions.
 
16595
  version_type=sunos
 
16596
  need_lib_prefix=no
 
16597
  need_version=no
 
16598
  case "$host_cpu" in
 
16599
  ia64*)
 
16600
    shrext_cmds='.so'
 
16601
    hardcode_into_libs=yes
 
16602
    dynamic_linker="$host_os dld.so"
 
16603
    shlibpath_var=LD_LIBRARY_PATH
 
16604
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16605
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16606
    soname_spec='${libname}${release}${shared_ext}$major'
 
16607
    if test "X$HPUX_IA64_MODE" = X32; then
 
16608
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16609
    else
 
16610
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16611
    fi
 
16612
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16613
    ;;
 
16614
   hppa*64*)
 
16615
     shrext_cmds='.sl'
 
16616
     hardcode_into_libs=yes
 
16617
     dynamic_linker="$host_os dld.sl"
 
16618
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16619
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16620
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16621
     soname_spec='${libname}${release}${shared_ext}$major'
 
16622
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16623
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16624
     ;;
 
16625
   *)
 
16626
    shrext_cmds='.sl'
 
16627
    dynamic_linker="$host_os dld.sl"
 
16628
    shlibpath_var=SHLIB_PATH
 
16629
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16630
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16631
    soname_spec='${libname}${release}${shared_ext}$major'
 
16632
    ;;
 
16633
  esac
 
16634
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16635
  postinstall_cmds='chmod 555 $lib'
 
16636
  ;;
 
16637
 
 
16638
irix5* | irix6* | nonstopux*)
 
16639
  case $host_os in
 
16640
    nonstopux*) version_type=nonstopux ;;
 
16641
    *)
 
16642
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16643
                version_type=linux
 
16644
        else
 
16645
                version_type=irix
 
16646
        fi ;;
 
16647
  esac
 
16648
  need_lib_prefix=no
 
16649
  need_version=no
 
16650
  soname_spec='${libname}${release}${shared_ext}$major'
 
16651
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16652
  case $host_os in
 
16653
  irix5* | nonstopux*)
 
16654
    libsuff= shlibsuff=
 
16655
    ;;
 
16656
  *)
 
16657
    case $LD in # libtool.m4 will add one of these switches to LD
 
16658
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16659
      libsuff= shlibsuff= libmagic=32-bit;;
 
16660
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16661
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16662
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16663
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16664
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16665
    esac
 
16666
    ;;
 
16667
  esac
 
16668
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16669
  shlibpath_overrides_runpath=no
 
16670
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16671
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16672
  hardcode_into_libs=yes
 
16673
  ;;
 
16674
 
 
16675
# No shared lib support for Linux oldld, aout, or coff.
 
16676
linux*oldld* | linux*aout* | linux*coff*)
 
16677
  dynamic_linker=no
 
16678
  ;;
 
16679
 
 
16680
# This must be Linux ELF.
 
16681
linux*)
 
16682
  version_type=linux
 
16683
  need_lib_prefix=no
 
16684
  need_version=no
 
16685
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16686
  soname_spec='${libname}${release}${shared_ext}$major'
 
16687
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16688
  shlibpath_var=LD_LIBRARY_PATH
 
16689
  shlibpath_overrides_runpath=no
 
16690
  # This implies no fast_install, which is unacceptable.
 
16691
  # Some rework will be needed to allow for fast_install
 
16692
  # before this can be enabled.
 
16693
  hardcode_into_libs=yes
 
16694
 
 
16695
  # Append ld.so.conf contents to the search path
 
16696
  if test -f /etc/ld.so.conf; then
 
16697
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
16698
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16699
  fi
 
16700
 
 
16701
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16702
  # powerpc, because MkLinux only supported shared libraries with the
 
16703
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16704
  # most powerpc-linux boxes support dynamic linking these days and
 
16705
  # people can always --disable-shared, the test was removed, and we
 
16706
  # assume the GNU/Linux dynamic linker is in use.
 
16707
  dynamic_linker='GNU/Linux ld.so'
 
16708
  ;;
 
16709
 
 
16710
netbsdelf*-gnu)
 
16711
  version_type=linux
 
16712
  need_lib_prefix=no
 
16713
  need_version=no
 
16714
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16715
  soname_spec='${libname}${release}${shared_ext}$major'
 
16716
  shlibpath_var=LD_LIBRARY_PATH
 
16717
  shlibpath_overrides_runpath=no
 
16718
  hardcode_into_libs=yes
 
16719
  dynamic_linker='NetBSD ld.elf_so'
 
16720
  ;;
 
16721
 
 
16722
knetbsd*-gnu)
 
16723
  version_type=linux
 
16724
  need_lib_prefix=no
 
16725
  need_version=no
 
16726
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16727
  soname_spec='${libname}${release}${shared_ext}$major'
 
16728
  shlibpath_var=LD_LIBRARY_PATH
 
16729
  shlibpath_overrides_runpath=no
 
16730
  hardcode_into_libs=yes
 
16731
  dynamic_linker='GNU ld.so'
 
16732
  ;;
 
16733
 
 
16734
netbsd*)
 
16735
  version_type=sunos
 
16736
  need_lib_prefix=no
 
16737
  need_version=no
 
16738
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16739
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16740
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16741
    dynamic_linker='NetBSD (a.out) ld.so'
 
16742
  else
 
16743
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16744
    soname_spec='${libname}${release}${shared_ext}$major'
 
16745
    dynamic_linker='NetBSD ld.elf_so'
 
16746
  fi
 
16747
  shlibpath_var=LD_LIBRARY_PATH
 
16748
  shlibpath_overrides_runpath=yes
 
16749
  hardcode_into_libs=yes
 
16750
  ;;
 
16751
 
 
16752
newsos6)
 
16753
  version_type=linux
 
16754
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16755
  shlibpath_var=LD_LIBRARY_PATH
 
16756
  shlibpath_overrides_runpath=yes
 
16757
  ;;
 
16758
 
 
16759
nto-qnx*)
 
16760
  version_type=linux
 
16761
  need_lib_prefix=no
 
16762
  need_version=no
 
16763
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16764
  soname_spec='${libname}${release}${shared_ext}$major'
 
16765
  shlibpath_var=LD_LIBRARY_PATH
 
16766
  shlibpath_overrides_runpath=yes
 
16767
  ;;
 
16768
 
 
16769
openbsd*)
 
16770
  version_type=sunos
 
16771
  need_lib_prefix=no
 
16772
  need_version=yes
 
16773
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16774
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16775
  shlibpath_var=LD_LIBRARY_PATH
 
16776
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16777
    case $host_os in
 
16778
      openbsd2.[89] | openbsd2.[89].*)
 
16779
        shlibpath_overrides_runpath=no
 
16780
        ;;
 
16781
      *)
 
16782
        shlibpath_overrides_runpath=yes
 
16783
        ;;
 
16784
      esac
 
16785
  else
 
16786
    shlibpath_overrides_runpath=yes
 
16787
  fi
 
16788
  ;;
 
16789
 
 
16790
os2*)
 
16791
  libname_spec='$name'
 
16792
  shrext_cmds=".dll"
 
16793
  need_lib_prefix=no
 
16794
  library_names_spec='$libname${shared_ext} $libname.a'
 
16795
  dynamic_linker='OS/2 ld.exe'
 
16796
  shlibpath_var=LIBPATH
 
16797
  ;;
 
16798
 
 
16799
osf3* | osf4* | osf5*)
 
16800
  version_type=osf
 
16801
  need_lib_prefix=no
 
16802
  need_version=no
 
16803
  soname_spec='${libname}${release}${shared_ext}$major'
 
16804
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16805
  shlibpath_var=LD_LIBRARY_PATH
 
16806
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16807
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16808
  ;;
 
16809
 
 
16810
sco3.2v5*)
 
16811
  version_type=osf
 
16812
  soname_spec='${libname}${release}${shared_ext}$major'
 
16813
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16814
  shlibpath_var=LD_LIBRARY_PATH
 
16815
  ;;
 
16816
 
 
16817
solaris*)
 
16818
  version_type=linux
 
16819
  need_lib_prefix=no
 
16820
  need_version=no
 
16821
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16822
  soname_spec='${libname}${release}${shared_ext}$major'
 
16823
  shlibpath_var=LD_LIBRARY_PATH
 
16824
  shlibpath_overrides_runpath=yes
 
16825
  hardcode_into_libs=yes
 
16826
  # ldd complains unless libraries are executable
 
16827
  postinstall_cmds='chmod +x $lib'
 
16828
  ;;
 
16829
 
 
16830
sunos4*)
 
16831
  version_type=sunos
 
16832
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16833
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16834
  shlibpath_var=LD_LIBRARY_PATH
 
16835
  shlibpath_overrides_runpath=yes
 
16836
  if test "$with_gnu_ld" = yes; then
 
16837
    need_lib_prefix=no
 
16838
  fi
 
16839
  need_version=yes
 
16840
  ;;
 
16841
 
 
16842
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16843
  version_type=linux
 
16844
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16845
  soname_spec='${libname}${release}${shared_ext}$major'
 
16846
  shlibpath_var=LD_LIBRARY_PATH
 
16847
  case $host_vendor in
 
16848
    sni)
 
16849
      shlibpath_overrides_runpath=no
 
16850
      need_lib_prefix=no
 
16851
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16852
      runpath_var=LD_RUN_PATH
 
16853
      ;;
 
16854
    siemens)
 
16855
      need_lib_prefix=no
 
16856
      ;;
 
16857
    motorola)
 
16858
      need_lib_prefix=no
 
16859
      need_version=no
 
16860
      shlibpath_overrides_runpath=no
 
16861
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16862
      ;;
 
16863
  esac
 
16864
  ;;
 
16865
 
 
16866
sysv4*MP*)
 
16867
  if test -d /usr/nec ;then
 
16868
    version_type=linux
 
16869
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16870
    soname_spec='$libname${shared_ext}.$major'
 
16871
    shlibpath_var=LD_LIBRARY_PATH
 
16872
  fi
 
16873
  ;;
 
16874
 
 
16875
uts4*)
 
16876
  version_type=linux
 
16877
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16878
  soname_spec='${libname}${release}${shared_ext}$major'
 
16879
  shlibpath_var=LD_LIBRARY_PATH
 
16880
  ;;
 
16881
 
 
16882
*)
 
16883
  dynamic_linker=no
 
16884
  ;;
 
16885
esac
 
16886
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16887
echo "${ECHO_T}$dynamic_linker" >&6
 
16888
test "$dynamic_linker" = no && can_build_shared=no
 
16889
 
 
16890
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16891
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16892
hardcode_action_F77=
 
16893
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16894
   test -n "$runpath_var F77" || \
 
16895
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
16896
 
 
16897
  # We can hardcode non-existant directories.
 
16898
  if test "$hardcode_direct_F77" != no &&
 
16899
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16900
     # have to relink, otherwise we might link with an installed library
 
16901
     # when we should be linking with a yet-to-be-installed one
 
16902
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16903
     test "$hardcode_minus_L_F77" != no; then
 
16904
    # Linking always hardcodes the temporary library directory.
 
16905
    hardcode_action_F77=relink
 
16906
  else
 
16907
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16908
    hardcode_action_F77=immediate
 
16909
  fi
 
16910
else
 
16911
  # We cannot hardcode anything, or else we can only hardcode existing
 
16912
  # directories.
 
16913
  hardcode_action_F77=unsupported
 
16914
fi
 
16915
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16916
echo "${ECHO_T}$hardcode_action_F77" >&6
 
16917
 
 
16918
if test "$hardcode_action_F77" = relink; then
 
16919
  # Fast installation is not supported
 
16920
  enable_fast_install=no
 
16921
elif test "$shlibpath_overrides_runpath" = yes ||
 
16922
     test "$enable_shared" = no; then
 
16923
  # Fast installation is not necessary
 
16924
  enable_fast_install=needless
 
16925
fi
 
16926
 
 
16927
striplib=
 
16928
old_striplib=
 
16929
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
16930
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
16931
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
16932
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
16933
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
16934
  echo "$as_me:$LINENO: result: yes" >&5
 
16935
echo "${ECHO_T}yes" >&6
 
16936
else
 
16937
# FIXME - insert some real tests, host_os isn't really good enough
 
16938
  case $host_os in
 
16939
   darwin*)
 
16940
       if test -n "$STRIP" ; then
 
16941
         striplib="$STRIP -x"
 
16942
         echo "$as_me:$LINENO: result: yes" >&5
 
16943
echo "${ECHO_T}yes" >&6
 
16944
       else
 
16945
  echo "$as_me:$LINENO: result: no" >&5
 
16946
echo "${ECHO_T}no" >&6
 
16947
fi
 
16948
       ;;
 
16949
   *)
 
16950
  echo "$as_me:$LINENO: result: no" >&5
 
16951
echo "${ECHO_T}no" >&6
 
16952
    ;;
 
16953
  esac
 
16954
fi
 
16955
 
 
16956
 
 
16957
 
 
16958
# The else clause should only fire when bootstrapping the
 
16959
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16960
# with your package, and you will get complaints that there are
 
16961
# no rules to generate ltmain.sh.
 
16962
if test -f "$ltmain"; then
 
16963
  # See if we are running on zsh, and set the options which allow our commands through
 
16964
  # without removal of \ escapes.
 
16965
  if test -n "${ZSH_VERSION+set}" ; then
 
16966
    setopt NO_GLOB_SUBST
 
16967
  fi
 
16968
  # Now quote all the things that may contain metacharacters while being
 
16969
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16970
  # variables and quote the copies for generation of the libtool script.
 
16971
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
16972
    SED SHELL STRIP \
 
16973
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16974
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16975
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16976
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16977
    lt_cv_sys_global_symbol_to_c_name_address \
 
16978
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16979
    old_postinstall_cmds old_postuninstall_cmds \
 
16980
    compiler_F77 \
 
16981
    CC_F77 \
 
16982
    LD_F77 \
 
16983
    lt_prog_compiler_wl_F77 \
 
16984
    lt_prog_compiler_pic_F77 \
 
16985
    lt_prog_compiler_static_F77 \
 
16986
    lt_prog_compiler_no_builtin_flag_F77 \
 
16987
    export_dynamic_flag_spec_F77 \
 
16988
    thread_safe_flag_spec_F77 \
 
16989
    whole_archive_flag_spec_F77 \
 
16990
    enable_shared_with_static_runtimes_F77 \
 
16991
    old_archive_cmds_F77 \
 
16992
    old_archive_from_new_cmds_F77 \
 
16993
    predep_objects_F77 \
 
16994
    postdep_objects_F77 \
 
16995
    predeps_F77 \
 
16996
    postdeps_F77 \
 
16997
    compiler_lib_search_path_F77 \
 
16998
    archive_cmds_F77 \
 
16999
    archive_expsym_cmds_F77 \
 
17000
    postinstall_cmds_F77 \
 
17001
    postuninstall_cmds_F77 \
 
17002
    old_archive_from_expsyms_cmds_F77 \
 
17003
    allow_undefined_flag_F77 \
 
17004
    no_undefined_flag_F77 \
 
17005
    export_symbols_cmds_F77 \
 
17006
    hardcode_libdir_flag_spec_F77 \
 
17007
    hardcode_libdir_flag_spec_ld_F77 \
 
17008
    hardcode_libdir_separator_F77 \
 
17009
    hardcode_automatic_F77 \
 
17010
    module_cmds_F77 \
 
17011
    module_expsym_cmds_F77 \
 
17012
    lt_cv_prog_compiler_c_o_F77 \
 
17013
    exclude_expsyms_F77 \
 
17014
    include_expsyms_F77; do
 
17015
 
 
17016
    case $var in
 
17017
    old_archive_cmds_F77 | \
 
17018
    old_archive_from_new_cmds_F77 | \
 
17019
    archive_cmds_F77 | \
 
17020
    archive_expsym_cmds_F77 | \
 
17021
    module_cmds_F77 | \
 
17022
    module_expsym_cmds_F77 | \
 
17023
    old_archive_from_expsyms_cmds_F77 | \
 
17024
    export_symbols_cmds_F77 | \
 
17025
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17026
    postinstall_cmds | postuninstall_cmds | \
 
17027
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17028
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17029
      # Double-quote double-evaled strings.
 
17030
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17031
      ;;
 
17032
    *)
 
17033
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17034
      ;;
 
17035
    esac
 
17036
  done
 
17037
 
 
17038
  case $lt_echo in
 
17039
  *'\$0 --fallback-echo"')
 
17040
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17041
    ;;
 
17042
  esac
 
17043
 
 
17044
cfgfile="$ofile"
 
17045
 
 
17046
  cat <<__EOF__ >> "$cfgfile"
 
17047
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17048
 
 
17049
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17050
 
 
17051
# Shell to use when invoking shell scripts.
 
17052
SHELL=$lt_SHELL
 
17053
 
 
17054
# Whether or not to build shared libraries.
 
17055
build_libtool_libs=$enable_shared
 
17056
 
 
17057
# Whether or not to build static libraries.
 
17058
build_old_libs=$enable_static
 
17059
 
 
17060
# Whether or not to add -lc for building shared libraries.
 
17061
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
17062
 
 
17063
# Whether or not to disallow shared libs when runtime libs are static
 
17064
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
17065
 
 
17066
# Whether or not to optimize for fast installation.
 
17067
fast_install=$enable_fast_install
 
17068
 
 
17069
# The host system.
 
17070
host_alias=$host_alias
 
17071
host=$host
 
17072
 
 
17073
# An echo program that does not interpret backslashes.
 
17074
echo=$lt_echo
 
17075
 
 
17076
# The archiver.
 
17077
AR=$lt_AR
 
17078
AR_FLAGS=$lt_AR_FLAGS
 
17079
 
 
17080
# A C compiler.
 
17081
LTCC=$lt_LTCC
 
17082
 
 
17083
# A language-specific compiler.
 
17084
CC=$lt_compiler_F77
 
17085
 
 
17086
# Is the compiler the GNU C compiler?
 
17087
with_gcc=$GCC_F77
 
17088
 
 
17089
# An ERE matcher.
 
17090
EGREP=$lt_EGREP
 
17091
 
 
17092
# The linker used to build libraries.
 
17093
LD=$lt_LD_F77
 
17094
 
 
17095
# Whether we need hard or soft links.
 
17096
LN_S=$lt_LN_S
 
17097
 
 
17098
# A BSD-compatible nm program.
 
17099
NM=$lt_NM
 
17100
 
 
17101
# A symbol stripping program
 
17102
STRIP=$lt_STRIP
 
17103
 
 
17104
# Used to examine libraries when file_magic_cmd begins "file"
 
17105
MAGIC_CMD=$MAGIC_CMD
 
17106
 
 
17107
# Used on cygwin: DLL creation program.
 
17108
DLLTOOL="$DLLTOOL"
 
17109
 
 
17110
# Used on cygwin: object dumper.
 
17111
OBJDUMP="$OBJDUMP"
 
17112
 
 
17113
# Used on cygwin: assembler.
 
17114
AS="$AS"
 
17115
 
 
17116
# The name of the directory that contains temporary libtool files.
 
17117
objdir=$objdir
 
17118
 
 
17119
# How to create reloadable object files.
 
17120
reload_flag=$lt_reload_flag
 
17121
reload_cmds=$lt_reload_cmds
 
17122
 
 
17123
# How to pass a linker flag through the compiler.
 
17124
wl=$lt_lt_prog_compiler_wl_F77
 
17125
 
 
17126
# Object file suffix (normally "o").
 
17127
objext="$ac_objext"
 
17128
 
 
17129
# Old archive suffix (normally "a").
 
17130
libext="$libext"
 
17131
 
 
17132
# Shared library suffix (normally ".so").
 
17133
shrext_cmds='$shrext_cmds'
 
17134
 
 
17135
# Executable file suffix (normally "").
 
17136
exeext="$exeext"
 
17137
 
 
17138
# Additional compiler flags for building library objects.
 
17139
pic_flag=$lt_lt_prog_compiler_pic_F77
 
17140
pic_mode=$pic_mode
 
17141
 
 
17142
# What is the maximum length of a command?
 
17143
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17144
 
 
17145
# Does compiler simultaneously support -c and -o options?
 
17146
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
17147
 
 
17148
# Must we lock files when doing compilation ?
 
17149
need_locks=$lt_need_locks
 
17150
 
 
17151
# Do we need the lib prefix for modules?
 
17152
need_lib_prefix=$need_lib_prefix
 
17153
 
 
17154
# Do we need a version for libraries?
 
17155
need_version=$need_version
 
17156
 
 
17157
# Whether dlopen is supported.
 
17158
dlopen_support=$enable_dlopen
 
17159
 
 
17160
# Whether dlopen of programs is supported.
 
17161
dlopen_self=$enable_dlopen_self
 
17162
 
 
17163
# Whether dlopen of statically linked programs is supported.
 
17164
dlopen_self_static=$enable_dlopen_self_static
 
17165
 
 
17166
# Compiler flag to prevent dynamic linking.
 
17167
link_static_flag=$lt_lt_prog_compiler_static_F77
 
17168
 
 
17169
# Compiler flag to turn off builtin functions.
 
17170
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
17171
 
 
17172
# Compiler flag to allow reflexive dlopens.
 
17173
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
17174
 
 
17175
# Compiler flag to generate shared objects directly from archives.
 
17176
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
17177
 
 
17178
# Compiler flag to generate thread-safe objects.
 
17179
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
17180
 
 
17181
# Library versioning type.
 
17182
version_type=$version_type
 
17183
 
 
17184
# Format of library name prefix.
 
17185
libname_spec=$lt_libname_spec
 
17186
 
 
17187
# List of archive names.  First name is the real one, the rest are links.
 
17188
# The last name is the one that the linker finds with -lNAME.
 
17189
library_names_spec=$lt_library_names_spec
 
17190
 
 
17191
# The coded name of the library, if different from the real name.
 
17192
soname_spec=$lt_soname_spec
 
17193
 
 
17194
# Commands used to build and install an old-style archive.
 
17195
RANLIB=$lt_RANLIB
 
17196
old_archive_cmds=$lt_old_archive_cmds_F77
 
17197
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17198
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17199
 
 
17200
# Create an old-style archive from a shared archive.
 
17201
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
17202
 
 
17203
# Create a temporary old-style archive to link instead of a shared archive.
 
17204
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
17205
 
 
17206
# Commands used to build and install a shared archive.
 
17207
archive_cmds=$lt_archive_cmds_F77
 
17208
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
17209
postinstall_cmds=$lt_postinstall_cmds
 
17210
postuninstall_cmds=$lt_postuninstall_cmds
 
17211
 
 
17212
# Commands used to build a loadable module (assumed same as above if empty)
 
17213
module_cmds=$lt_module_cmds_F77
 
17214
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
17215
 
 
17216
# Commands to strip libraries.
 
17217
old_striplib=$lt_old_striplib
 
17218
striplib=$lt_striplib
 
17219
 
 
17220
# Dependencies to place before the objects being linked to create a
 
17221
# shared library.
 
17222
predep_objects=$lt_predep_objects_F77
 
17223
 
 
17224
# Dependencies to place after the objects being linked to create a
 
17225
# shared library.
 
17226
postdep_objects=$lt_postdep_objects_F77
 
17227
 
 
17228
# Dependencies to place before the objects being linked to create a
 
17229
# shared library.
 
17230
predeps=$lt_predeps_F77
 
17231
 
 
17232
# Dependencies to place after the objects being linked to create a
 
17233
# shared library.
 
17234
postdeps=$lt_postdeps_F77
 
17235
 
 
17236
# The library search path used internally by the compiler when linking
 
17237
# a shared library.
 
17238
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
17239
 
 
17240
# Method to check whether dependent libraries are shared objects.
 
17241
deplibs_check_method=$lt_deplibs_check_method
 
17242
 
 
17243
# Command to use when deplibs_check_method == file_magic.
 
17244
file_magic_cmd=$lt_file_magic_cmd
 
17245
 
 
17246
# Flag that allows shared libraries with undefined symbols to be built.
 
17247
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
17248
 
 
17249
# Flag that forces no undefined symbols.
 
17250
no_undefined_flag=$lt_no_undefined_flag_F77
 
17251
 
 
17252
# Commands used to finish a libtool library installation in a directory.
 
17253
finish_cmds=$lt_finish_cmds
 
17254
 
 
17255
# Same as above, but a single script fragment to be evaled but not shown.
 
17256
finish_eval=$lt_finish_eval
 
17257
 
 
17258
# Take the output of nm and produce a listing of raw symbols and C names.
 
17259
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17260
 
 
17261
# Transform the output of nm in a proper C declaration
 
17262
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17263
 
 
17264
# Transform the output of nm in a C name address pair
 
17265
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17266
 
 
17267
# This is the shared library runtime path variable.
 
17268
runpath_var=$runpath_var
 
17269
 
 
17270
# This is the shared library path variable.
 
17271
shlibpath_var=$shlibpath_var
 
17272
 
 
17273
# Is shlibpath searched before the hard-coded library search path?
 
17274
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17275
 
 
17276
# How to hardcode a shared library path into an executable.
 
17277
hardcode_action=$hardcode_action_F77
 
17278
 
 
17279
# Whether we should hardcode library paths into libraries.
 
17280
hardcode_into_libs=$hardcode_into_libs
 
17281
 
 
17282
# Flag to hardcode \$libdir into a binary during linking.
 
17283
# This must work even if \$libdir does not exist.
 
17284
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17285
 
 
17286
# If ld is used when linking, flag to hardcode \$libdir into
 
17287
# a binary during linking. This must work even if \$libdir does
 
17288
# not exist.
 
17289
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17290
 
 
17291
# Whether we need a single -rpath flag with a separated argument.
 
17292
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17293
 
 
17294
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17295
# resulting binary.
 
17296
hardcode_direct=$hardcode_direct_F77
 
17297
 
 
17298
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17299
# resulting binary.
 
17300
hardcode_minus_L=$hardcode_minus_L_F77
 
17301
 
 
17302
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17303
# the resulting binary.
 
17304
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17305
 
 
17306
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17307
# and all subsequent libraries and executables linked against it.
 
17308
hardcode_automatic=$hardcode_automatic_F77
 
17309
 
 
17310
# Variables whose values should be saved in libtool wrapper scripts and
 
17311
# restored at relink time.
 
17312
variables_saved_for_relink="$variables_saved_for_relink"
 
17313
 
 
17314
# Whether libtool must link a program against all its dependency libraries.
 
17315
link_all_deplibs=$link_all_deplibs_F77
 
17316
 
 
17317
# Compile-time system search path for libraries
 
17318
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17319
 
 
17320
# Run-time system search path for libraries
 
17321
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17322
 
 
17323
# Fix the shell variable \$srcfile for the compiler.
 
17324
fix_srcfile_path="$fix_srcfile_path_F77"
 
17325
 
 
17326
# Set to yes if exported symbols are required.
 
17327
always_export_symbols=$always_export_symbols_F77
 
17328
 
 
17329
# The commands to list exported symbols.
 
17330
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17331
 
 
17332
# The commands to extract the exported symbol list from a shared archive.
 
17333
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17334
 
 
17335
# Symbols that should not be listed in the preloaded symbols.
 
17336
exclude_expsyms=$lt_exclude_expsyms_F77
 
17337
 
 
17338
# Symbols that must always be exported.
 
17339
include_expsyms=$lt_include_expsyms_F77
 
17340
 
 
17341
# ### END LIBTOOL TAG CONFIG: $tagname
 
17342
 
 
17343
__EOF__
 
17344
 
 
17345
 
 
17346
else
 
17347
  # If there is no Makefile yet, we rely on a make rule to execute
 
17348
  # `config.status --recheck' to rerun these tests and create the
 
17349
  # libtool script then.
 
17350
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
17351
  if test -f "$ltmain_in"; then
 
17352
    test -f Makefile && make "$ltmain"
 
17353
  fi
 
17354
fi
 
17355
 
 
17356
 
 
17357
ac_ext=c
 
17358
ac_cpp='$CPP $CPPFLAGS'
 
17359
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17360
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17361
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17362
 
 
17363
CC="$lt_save_CC"
 
17364
 
 
17365
        else
 
17366
          tagname=""
 
17367
        fi
 
17368
        ;;
 
17369
 
 
17370
      GCJ)
 
17371
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17372
 
 
17373
 
 
17374
 
 
17375
# Source file extension for Java test sources.
 
17376
ac_ext=java
 
17377
 
 
17378
# Object file extension for compiled Java test sources.
 
17379
objext=o
 
17380
objext_GCJ=$objext
 
17381
 
 
17382
# Code to be used in simple compile tests
 
17383
lt_simple_compile_test_code="class foo {}\n"
 
17384
 
 
17385
# Code to be used in simple link tests
 
17386
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
17387
 
 
17388
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17389
 
 
17390
# If no C compiler was specified, use CC.
 
17391
LTCC=${LTCC-"$CC"}
 
17392
 
 
17393
# Allow CC to be a program name with arguments.
 
17394
compiler=$CC
 
17395
 
 
17396
 
 
17397
# Allow CC to be a program name with arguments.
 
17398
lt_save_CC="$CC"
 
17399
CC=${GCJ-"gcj"}
 
17400
compiler=$CC
 
17401
compiler_GCJ=$CC
 
17402
 
 
17403
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17404
archive_cmds_need_lc_GCJ=no
 
17405
 
 
17406
 
 
17407
lt_prog_compiler_no_builtin_flag_GCJ=
 
17408
 
 
17409
if test "$GCC" = yes; then
 
17410
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17411
 
 
17412
 
 
17413
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17414
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
17415
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17417
else
 
17418
  lt_cv_prog_compiler_rtti_exceptions=no
 
17419
  ac_outfile=conftest.$ac_objext
 
17420
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17421
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17422
   # Insert the option either (1) after the last *FLAGS variable, or
 
17423
   # (2) before a word containing "conftest.", or (3) at the end.
 
17424
   # Note that $ac_compile itself does not contain backslashes and begins
 
17425
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17426
   # The option is referenced via a variable to avoid confusing sed.
 
17427
   lt_compile=`echo "$ac_compile" | $SED \
 
17428
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17429
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17430
   -e 's:$: $lt_compiler_flag:'`
 
17431
   (eval echo "\"\$as_me:17431: $lt_compile\"" >&5)
 
17432
   (eval "$lt_compile" 2>conftest.err)
 
17433
   ac_status=$?
 
17434
   cat conftest.err >&5
 
17435
   echo "$as_me:17435: \$? = $ac_status" >&5
 
17436
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17437
     # The compiler can only warn and ignore the option if not recognized
 
17438
     # So say no if there are warnings
 
17439
     if test ! -s conftest.err; then
 
17440
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17441
     fi
 
17442
   fi
 
17443
   $rm conftest*
 
17444
 
 
17445
fi
 
17446
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17447
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
17448
 
 
17449
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17450
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17451
else
 
17452
    :
 
17453
fi
 
17454
 
 
17455
fi
 
17456
 
 
17457
lt_prog_compiler_wl_GCJ=
 
17458
lt_prog_compiler_pic_GCJ=
 
17459
lt_prog_compiler_static_GCJ=
 
17460
 
 
17461
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17462
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
17463
 
 
17464
  if test "$GCC" = yes; then
 
17465
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17466
    lt_prog_compiler_static_GCJ='-static'
 
17467
 
 
17468
    case $host_os in
 
17469
      aix*)
 
17470
      # All AIX code is PIC.
 
17471
      if test "$host_cpu" = ia64; then
 
17472
        # AIX 5 now supports IA64 processor
 
17473
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17474
      fi
 
17475
      ;;
 
17476
 
 
17477
    amigaos*)
 
17478
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17479
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17480
      # like `-m68040'.
 
17481
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17482
      ;;
 
17483
 
 
17484
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17485
      # PIC is the default for these OSes.
 
17486
      ;;
 
17487
 
 
17488
    mingw* | pw32* | os2*)
 
17489
      # This hack is so that the source file can tell whether it is being
 
17490
      # built for inclusion in a dll (and should export symbols for example).
 
17491
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17492
      ;;
 
17493
 
 
17494
    darwin* | rhapsody*)
 
17495
      # PIC is the default on this platform
 
17496
      # Common symbols not allowed in MH_DYLIB files
 
17497
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17498
      ;;
 
17499
 
 
17500
    msdosdjgpp*)
 
17501
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17502
      # on systems that don't support them.
 
17503
      lt_prog_compiler_can_build_shared_GCJ=no
 
17504
      enable_shared=no
 
17505
      ;;
 
17506
 
 
17507
    sysv4*MP*)
 
17508
      if test -d /usr/nec; then
 
17509
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17510
      fi
 
17511
      ;;
 
17512
 
 
17513
    hpux*)
 
17514
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17515
      # not for PA HP-UX.
 
17516
      case "$host_cpu" in
 
17517
      hppa*64*|ia64*)
 
17518
        # +Z the default
 
17519
        ;;
 
17520
      *)
 
17521
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17522
        ;;
 
17523
      esac
 
17524
      ;;
 
17525
 
 
17526
    *)
 
17527
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17528
      ;;
 
17529
    esac
 
17530
  else
 
17531
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17532
    case $host_os in
 
17533
    aix*)
 
17534
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17535
      if test "$host_cpu" = ia64; then
 
17536
        # AIX 5 now supports IA64 processor
 
17537
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17538
      else
 
17539
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17540
      fi
 
17541
      ;;
 
17542
 
 
17543
    mingw* | pw32* | os2*)
 
17544
      # This hack is so that the source file can tell whether it is being
 
17545
      # built for inclusion in a dll (and should export symbols for example).
 
17546
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17547
      ;;
 
17548
 
 
17549
    hpux9* | hpux10* | hpux11*)
 
17550
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17551
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17552
      # not for PA HP-UX.
 
17553
      case "$host_cpu" in
 
17554
      hppa*64*|ia64*)
 
17555
        # +Z the default
 
17556
        ;;
 
17557
      *)
 
17558
        lt_prog_compiler_pic_GCJ='+Z'
 
17559
        ;;
 
17560
      esac
 
17561
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17562
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17563
      ;;
 
17564
 
 
17565
    irix5* | irix6* | nonstopux*)
 
17566
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17567
      # PIC (with -KPIC) is the default.
 
17568
      lt_prog_compiler_static_GCJ='-non_shared'
 
17569
      ;;
 
17570
 
 
17571
    newsos6)
 
17572
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17573
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17574
      ;;
 
17575
 
 
17576
    linux*)
 
17577
      case $CC in
 
17578
      icc* | ecc*)
 
17579
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17580
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17581
        lt_prog_compiler_static_GCJ='-static'
 
17582
        ;;
 
17583
      ccc*)
 
17584
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17585
        # All Alpha code is PIC.
 
17586
        lt_prog_compiler_static_GCJ='-non_shared'
 
17587
        ;;
 
17588
      esac
 
17589
      ;;
 
17590
 
 
17591
    osf3* | osf4* | osf5*)
 
17592
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17593
      # All OSF/1 code is PIC.
 
17594
      lt_prog_compiler_static_GCJ='-non_shared'
 
17595
      ;;
 
17596
 
 
17597
    sco3.2v5*)
 
17598
      lt_prog_compiler_pic_GCJ='-Kpic'
 
17599
      lt_prog_compiler_static_GCJ='-dn'
 
17600
      ;;
 
17601
 
 
17602
    solaris*)
 
17603
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17604
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17605
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17606
      ;;
 
17607
 
 
17608
    sunos4*)
 
17609
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17610
      lt_prog_compiler_pic_GCJ='-PIC'
 
17611
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17612
      ;;
 
17613
 
 
17614
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17615
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17616
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17617
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17618
      ;;
 
17619
 
 
17620
    sysv4*MP*)
 
17621
      if test -d /usr/nec ;then
 
17622
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17623
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17624
      fi
 
17625
      ;;
 
17626
 
 
17627
    uts4*)
 
17628
      lt_prog_compiler_pic_GCJ='-pic'
 
17629
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17630
      ;;
 
17631
 
 
17632
    *)
 
17633
      lt_prog_compiler_can_build_shared_GCJ=no
 
17634
      ;;
 
17635
    esac
 
17636
  fi
 
17637
 
 
17638
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17639
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
17640
 
 
17641
#
 
17642
# Check to make sure the PIC flag actually works.
 
17643
#
 
17644
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17645
 
 
17646
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17647
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
17648
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
17649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17650
else
 
17651
  lt_prog_compiler_pic_works_GCJ=no
 
17652
  ac_outfile=conftest.$ac_objext
 
17653
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17654
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17655
   # Insert the option either (1) after the last *FLAGS variable, or
 
17656
   # (2) before a word containing "conftest.", or (3) at the end.
 
17657
   # Note that $ac_compile itself does not contain backslashes and begins
 
17658
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17659
   # The option is referenced via a variable to avoid confusing sed.
 
17660
   lt_compile=`echo "$ac_compile" | $SED \
 
17661
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17662
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17663
   -e 's:$: $lt_compiler_flag:'`
 
17664
   (eval echo "\"\$as_me:17664: $lt_compile\"" >&5)
 
17665
   (eval "$lt_compile" 2>conftest.err)
 
17666
   ac_status=$?
 
17667
   cat conftest.err >&5
 
17668
   echo "$as_me:17668: \$? = $ac_status" >&5
 
17669
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17670
     # The compiler can only warn and ignore the option if not recognized
 
17671
     # So say no if there are warnings
 
17672
     if test ! -s conftest.err; then
 
17673
       lt_prog_compiler_pic_works_GCJ=yes
 
17674
     fi
 
17675
   fi
 
17676
   $rm conftest*
 
17677
 
 
17678
fi
 
17679
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
17680
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
17681
 
 
17682
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
17683
    case $lt_prog_compiler_pic_GCJ in
 
17684
     "" | " "*) ;;
 
17685
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17686
     esac
 
17687
else
 
17688
    lt_prog_compiler_pic_GCJ=
 
17689
     lt_prog_compiler_can_build_shared_GCJ=no
 
17690
fi
 
17691
 
 
17692
fi
 
17693
case "$host_os" in
 
17694
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17695
  *djgpp*)
 
17696
    lt_prog_compiler_pic_GCJ=
 
17697
    ;;
 
17698
  *)
 
17699
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17700
    ;;
 
17701
esac
 
17702
 
 
17703
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17704
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
17705
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17707
else
 
17708
  lt_cv_prog_compiler_c_o_GCJ=no
 
17709
   $rm -r conftest 2>/dev/null
 
17710
   mkdir conftest
 
17711
   cd conftest
 
17712
   mkdir out
 
17713
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17714
 
 
17715
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17716
   # Insert the option either (1) after the last *FLAGS variable, or
 
17717
   # (2) before a word containing "conftest.", or (3) at the end.
 
17718
   # Note that $ac_compile itself does not contain backslashes and begins
 
17719
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17720
   lt_compile=`echo "$ac_compile" | $SED \
 
17721
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17722
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17723
   -e 's:$: $lt_compiler_flag:'`
 
17724
   (eval echo "\"\$as_me:17724: $lt_compile\"" >&5)
 
17725
   (eval "$lt_compile" 2>out/conftest.err)
 
17726
   ac_status=$?
 
17727
   cat out/conftest.err >&5
 
17728
   echo "$as_me:17728: \$? = $ac_status" >&5
 
17729
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17730
   then
 
17731
     # The compiler can only warn and ignore the option if not recognized
 
17732
     # So say no if there are warnings
 
17733
     if test ! -s out/conftest.err; then
 
17734
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17735
     fi
 
17736
   fi
 
17737
   chmod u+w .
 
17738
   $rm conftest*
 
17739
   # SGI C++ compiler will create directory out/ii_files/ for
 
17740
   # template instantiation
 
17741
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17742
   $rm out/* && rmdir out
 
17743
   cd ..
 
17744
   rmdir conftest
 
17745
   $rm conftest*
 
17746
 
 
17747
fi
 
17748
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17749
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
17750
 
 
17751
 
 
17752
hard_links="nottested"
 
17753
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17754
  # do not overwrite the value of need_locks provided by the user
 
17755
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17756
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
17757
  hard_links=yes
 
17758
  $rm conftest*
 
17759
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17760
  touch conftest.a
 
17761
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17762
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17763
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
17764
echo "${ECHO_T}$hard_links" >&6
 
17765
  if test "$hard_links" = no; then
 
17766
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17767
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17768
    need_locks=warn
 
17769
  fi
 
17770
else
 
17771
  need_locks=no
 
17772
fi
 
17773
 
 
17774
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17775
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
17776
 
 
17777
  runpath_var=
 
17778
  allow_undefined_flag_GCJ=
 
17779
  enable_shared_with_static_runtimes_GCJ=no
 
17780
  archive_cmds_GCJ=
 
17781
  archive_expsym_cmds_GCJ=
 
17782
  old_archive_From_new_cmds_GCJ=
 
17783
  old_archive_from_expsyms_cmds_GCJ=
 
17784
  export_dynamic_flag_spec_GCJ=
 
17785
  whole_archive_flag_spec_GCJ=
 
17786
  thread_safe_flag_spec_GCJ=
 
17787
  hardcode_libdir_flag_spec_GCJ=
 
17788
  hardcode_libdir_flag_spec_ld_GCJ=
 
17789
  hardcode_libdir_separator_GCJ=
 
17790
  hardcode_direct_GCJ=no
 
17791
  hardcode_minus_L_GCJ=no
 
17792
  hardcode_shlibpath_var_GCJ=unsupported
 
17793
  link_all_deplibs_GCJ=unknown
 
17794
  hardcode_automatic_GCJ=no
 
17795
  module_cmds_GCJ=
 
17796
  module_expsym_cmds_GCJ=
 
17797
  always_export_symbols_GCJ=no
 
17798
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17799
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17800
  # included in the symbol list
 
17801
  include_expsyms_GCJ=
 
17802
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17803
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17804
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17805
  # as well as any symbol that contains `d'.
 
17806
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17807
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17808
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17809
  # the symbol is explicitly referenced.  Since portable code cannot
 
17810
  # rely on this symbol name, it's probably fine to never include it in
 
17811
  # preloaded symbol tables.
 
17812
  extract_expsyms_cmds=
 
17813
 
 
17814
  case $host_os in
 
17815
  cygwin* | mingw* | pw32*)
 
17816
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17817
    # When not using gcc, we currently assume that we are using
 
17818
    # Microsoft Visual C++.
 
17819
    if test "$GCC" != yes; then
 
17820
      with_gnu_ld=no
 
17821
    fi
 
17822
    ;;
 
17823
  openbsd*)
 
17824
    with_gnu_ld=no
 
17825
    ;;
 
17826
  esac
 
17827
 
 
17828
  ld_shlibs_GCJ=yes
 
17829
  if test "$with_gnu_ld" = yes; then
 
17830
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17831
    wlarc='${wl}'
 
17832
 
 
17833
    # See if GNU ld supports shared libraries.
 
17834
    case $host_os in
 
17835
    aix3* | aix4* | aix5*)
 
17836
      # On AIX/PPC, the GNU linker is very broken
 
17837
      if test "$host_cpu" != ia64; then
 
17838
        ld_shlibs_GCJ=no
 
17839
        cat <<EOF 1>&2
 
17840
 
 
17841
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17842
*** to be unable to reliably create shared libraries on AIX.
 
17843
*** Therefore, libtool is disabling shared libraries support.  If you
 
17844
*** really care for shared libraries, you may want to modify your PATH
 
17845
*** so that a non-GNU linker is found, and then restart.
 
17846
 
 
17847
EOF
 
17848
      fi
 
17849
      ;;
 
17850
 
 
17851
    amigaos*)
 
17852
      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)'
 
17853
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17854
      hardcode_minus_L_GCJ=yes
 
17855
 
 
17856
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17857
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17858
      # to version 4, is to share data among multiple programs linked
 
17859
      # with the same dynamic library.  Since this doesn't match the
 
17860
      # behavior of shared libraries on other platforms, we can't use
 
17861
      # them.
 
17862
      ld_shlibs_GCJ=no
 
17863
      ;;
 
17864
 
 
17865
    beos*)
 
17866
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17867
        allow_undefined_flag_GCJ=unsupported
 
17868
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17869
        # support --undefined.  This deserves some investigation.  FIXME
 
17870
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17871
      else
 
17872
        ld_shlibs_GCJ=no
 
17873
      fi
 
17874
      ;;
 
17875
 
 
17876
    cygwin* | mingw* | pw32*)
 
17877
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17878
      # as there is no search path for DLLs.
 
17879
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17880
      allow_undefined_flag_GCJ=unsupported
 
17881
      always_export_symbols_GCJ=no
 
17882
      enable_shared_with_static_runtimes_GCJ=yes
 
17883
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17884
 
 
17885
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17886
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17887
        # If the export-symbols file already is a .def file (1st line
 
17888
        # is EXPORTS), use it as is; otherwise, prepend...
 
17889
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17890
          cp $export_symbols $output_objdir/$soname.def;
 
17891
        else
 
17892
          echo EXPORTS > $output_objdir/$soname.def;
 
17893
          cat $export_symbols >> $output_objdir/$soname.def;
 
17894
        fi~
 
17895
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
17896
      else
 
17897
        ld_shlibs=no
 
17898
      fi
 
17899
      ;;
 
17900
 
 
17901
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
17902
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17903
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17904
        wlarc=
 
17905
      else
 
17906
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17907
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17908
      fi
 
17909
      ;;
 
17910
 
 
17911
    solaris* | sysv5*)
 
17912
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17913
        ld_shlibs_GCJ=no
 
17914
        cat <<EOF 1>&2
 
17915
 
 
17916
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17917
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17918
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17919
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17920
*** your PATH or compiler configuration so that the native linker is
 
17921
*** used, and then restart.
 
17922
 
 
17923
EOF
 
17924
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17925
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17926
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17927
      else
 
17928
        ld_shlibs_GCJ=no
 
17929
      fi
 
17930
      ;;
 
17931
 
 
17932
    sunos4*)
 
17933
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17934
      wlarc=
 
17935
      hardcode_direct_GCJ=yes
 
17936
      hardcode_shlibpath_var_GCJ=no
 
17937
      ;;
 
17938
 
 
17939
  linux*)
 
17940
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17941
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17942
        archive_cmds_GCJ="$tmp_archive_cmds"
 
17943
      supports_anon_versioning=no
 
17944
      case `$LD -v 2>/dev/null` in
 
17945
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17946
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17947
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17948
        *\ 2.11.*) ;; # other 2.11 versions
 
17949
        *) supports_anon_versioning=yes ;;
 
17950
      esac
 
17951
      if test $supports_anon_versioning = yes; then
 
17952
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17953
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17954
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
17955
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17956
      else
 
17957
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
17958
      fi
 
17959
      link_all_deplibs_GCJ=no
 
17960
    else
 
17961
      ld_shlibs_GCJ=no
 
17962
    fi
 
17963
    ;;
 
17964
 
 
17965
    *)
 
17966
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17967
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17968
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17969
      else
 
17970
        ld_shlibs_GCJ=no
 
17971
      fi
 
17972
      ;;
 
17973
    esac
 
17974
 
 
17975
    if test "$ld_shlibs_GCJ" = yes; then
 
17976
      runpath_var=LD_RUN_PATH
 
17977
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17978
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17979
      # ancient GNU ld didn't support --whole-archive et. al.
 
17980
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17981
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17982
      else
 
17983
        whole_archive_flag_spec_GCJ=
 
17984
      fi
 
17985
    fi
 
17986
  else
 
17987
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17988
    case $host_os in
 
17989
    aix3*)
 
17990
      allow_undefined_flag_GCJ=unsupported
 
17991
      always_export_symbols_GCJ=yes
 
17992
      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'
 
17993
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17994
      # are no directories specified by -L.
 
17995
      hardcode_minus_L_GCJ=yes
 
17996
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
17997
        # Neither direct hardcoding nor static linking is supported with a
 
17998
        # broken collect2.
 
17999
        hardcode_direct_GCJ=unsupported
 
18000
      fi
 
18001
      ;;
 
18002
 
 
18003
    aix4* | aix5*)
 
18004
      if test "$host_cpu" = ia64; then
 
18005
        # On IA64, the linker does run time linking by default, so we don't
 
18006
        # have to do anything special.
 
18007
        aix_use_runtimelinking=no
 
18008
        exp_sym_flag='-Bexport'
 
18009
        no_entry_flag=""
 
18010
      else
 
18011
        # If we're using GNU nm, then we don't want the "-C" option.
 
18012
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18013
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18014
          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'
 
18015
        else
 
18016
          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'
 
18017
        fi
 
18018
        aix_use_runtimelinking=no
 
18019
 
 
18020
        # Test if we are trying to use run time linking or normal
 
18021
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
18022
        # need to do runtime linking.
 
18023
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
18024
          for ld_flag in $LDFLAGS; do
 
18025
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
18026
            aix_use_runtimelinking=yes
 
18027
            break
 
18028
          fi
 
18029
          done
 
18030
        esac
 
18031
 
 
18032
        exp_sym_flag='-bexport'
 
18033
        no_entry_flag='-bnoentry'
 
18034
      fi
 
18035
 
 
18036
      # When large executables or shared objects are built, AIX ld can
 
18037
      # have problems creating the table of contents.  If linking a library
 
18038
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18039
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18040
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18041
 
 
18042
      archive_cmds_GCJ=''
 
18043
      hardcode_direct_GCJ=yes
 
18044
      hardcode_libdir_separator_GCJ=':'
 
18045
      link_all_deplibs_GCJ=yes
 
18046
 
 
18047
      if test "$GCC" = yes; then
 
18048
        case $host_os in aix4.012|aix4.012.*)
 
18049
        # We only want to do this on AIX 4.2 and lower, the check
 
18050
        # below for broken collect2 doesn't work under 4.3+
 
18051
          collect2name=`${CC} -print-prog-name=collect2`
 
18052
          if test -f "$collect2name" && \
 
18053
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18054
          then
 
18055
          # We have reworked collect2
 
18056
          hardcode_direct_GCJ=yes
 
18057
          else
 
18058
          # We have old collect2
 
18059
          hardcode_direct_GCJ=unsupported
 
18060
          # It fails to find uninstalled libraries when the uninstalled
 
18061
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18062
          # to unsupported forces relinking
 
18063
          hardcode_minus_L_GCJ=yes
 
18064
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18065
          hardcode_libdir_separator_GCJ=
 
18066
          fi
 
18067
        esac
 
18068
        shared_flag='-shared'
 
18069
      else
 
18070
        # not using gcc
 
18071
        if test "$host_cpu" = ia64; then
 
18072
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18073
        # chokes on -Wl,-G. The following line is correct:
 
18074
          shared_flag='-G'
 
18075
        else
 
18076
        if test "$aix_use_runtimelinking" = yes; then
 
18077
            shared_flag='${wl}-G'
 
18078
          else
 
18079
            shared_flag='${wl}-bM:SRE'
 
18080
        fi
 
18081
        fi
 
18082
      fi
 
18083
 
 
18084
      # It seems that -bexpall does not export symbols beginning with
 
18085
      # underscore (_), so it is better to generate a list of symbols to export.
 
18086
      always_export_symbols_GCJ=yes
 
18087
      if test "$aix_use_runtimelinking" = yes; then
 
18088
        # Warning - without using the other runtime loading flags (-brtl),
 
18089
        # -berok will link without error, but may produce a broken library.
 
18090
        allow_undefined_flag_GCJ='-berok'
 
18091
       # Determine the default libpath from the value encoded in an empty executable.
 
18092
       cat >conftest.$ac_ext <<_ACEOF
 
18093
/* confdefs.h.  */
 
18094
_ACEOF
 
18095
cat confdefs.h >>conftest.$ac_ext
 
18096
cat >>conftest.$ac_ext <<_ACEOF
 
18097
/* end confdefs.h.  */
 
18098
 
 
18099
int
 
18100
main ()
 
18101
{
 
18102
 
 
18103
  ;
 
18104
  return 0;
 
18105
}
 
18106
_ACEOF
 
18107
rm -f conftest.$ac_objext conftest$ac_exeext
 
18108
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18109
  (eval $ac_link) 2>conftest.er1
 
18110
  ac_status=$?
 
18111
  grep -v '^ *+' conftest.er1 >conftest.err
 
18112
  rm -f conftest.er1
 
18113
  cat conftest.err >&5
 
18114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18115
  (exit $ac_status); } &&
 
18116
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18118
  (eval $ac_try) 2>&5
 
18119
  ac_status=$?
 
18120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18121
  (exit $ac_status); }; } &&
 
18122
         { ac_try='test -s conftest$ac_exeext'
 
18123
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18124
  (eval $ac_try) 2>&5
 
18125
  ac_status=$?
 
18126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18127
  (exit $ac_status); }; }; then
 
18128
 
 
18129
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18130
}'`
 
18131
# Check for a 64-bit object if we didn't find anything.
 
18132
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; }
 
18133
}'`; fi
 
18134
else
 
18135
  echo "$as_me: failed program was:" >&5
 
18136
sed 's/^/| /' conftest.$ac_ext >&5
 
18137
 
 
18138
fi
 
18139
rm -f conftest.err conftest.$ac_objext \
 
18140
      conftest$ac_exeext conftest.$ac_ext
 
18141
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18142
 
 
18143
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18144
        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"
 
18145
       else
 
18146
        if test "$host_cpu" = ia64; then
 
18147
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18148
          allow_undefined_flag_GCJ="-z nodefs"
 
18149
          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"
 
18150
        else
 
18151
         # Determine the default libpath from the value encoded in an empty executable.
 
18152
         cat >conftest.$ac_ext <<_ACEOF
 
18153
/* confdefs.h.  */
 
18154
_ACEOF
 
18155
cat confdefs.h >>conftest.$ac_ext
 
18156
cat >>conftest.$ac_ext <<_ACEOF
 
18157
/* end confdefs.h.  */
 
18158
 
 
18159
int
 
18160
main ()
 
18161
{
 
18162
 
 
18163
  ;
 
18164
  return 0;
 
18165
}
 
18166
_ACEOF
 
18167
rm -f conftest.$ac_objext conftest$ac_exeext
 
18168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18169
  (eval $ac_link) 2>conftest.er1
 
18170
  ac_status=$?
 
18171
  grep -v '^ *+' conftest.er1 >conftest.err
 
18172
  rm -f conftest.er1
 
18173
  cat conftest.err >&5
 
18174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18175
  (exit $ac_status); } &&
 
18176
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18178
  (eval $ac_try) 2>&5
 
18179
  ac_status=$?
 
18180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18181
  (exit $ac_status); }; } &&
 
18182
         { ac_try='test -s conftest$ac_exeext'
 
18183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18184
  (eval $ac_try) 2>&5
 
18185
  ac_status=$?
 
18186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18187
  (exit $ac_status); }; }; then
 
18188
 
 
18189
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18190
}'`
 
18191
# Check for a 64-bit object if we didn't find anything.
 
18192
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; }
 
18193
}'`; fi
 
18194
else
 
18195
  echo "$as_me: failed program was:" >&5
 
18196
sed 's/^/| /' conftest.$ac_ext >&5
 
18197
 
 
18198
fi
 
18199
rm -f conftest.err conftest.$ac_objext \
 
18200
      conftest$ac_exeext conftest.$ac_ext
 
18201
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18202
 
 
18203
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18204
          # Warning - without using the other run time loading flags,
 
18205
          # -berok will link without error, but may produce a broken library.
 
18206
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18207
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18208
          # -bexpall does not export symbols beginning with underscore (_)
 
18209
          always_export_symbols_GCJ=yes
 
18210
          # Exported symbols can be pulled into shared objects from archives
 
18211
          whole_archive_flag_spec_GCJ=' '
 
18212
          archive_cmds_need_lc_GCJ=yes
 
18213
          # This is similar to how AIX traditionally builds it's shared libraries.
 
18214
          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'
 
18215
        fi
 
18216
      fi
 
18217
      ;;
 
18218
 
 
18219
    amigaos*)
 
18220
      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)'
 
18221
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18222
      hardcode_minus_L_GCJ=yes
 
18223
      # see comment about different semantics on the GNU ld section
 
18224
      ld_shlibs_GCJ=no
 
18225
      ;;
 
18226
 
 
18227
    bsdi4*)
 
18228
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18229
      ;;
 
18230
 
 
18231
    cygwin* | mingw* | pw32*)
 
18232
      # When not using gcc, we currently assume that we are using
 
18233
      # Microsoft Visual C++.
 
18234
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18235
      # no search path for DLLs.
 
18236
      hardcode_libdir_flag_spec_GCJ=' '
 
18237
      allow_undefined_flag_GCJ=unsupported
 
18238
      # Tell ltmain to make .lib files, not .a files.
 
18239
      libext=lib
 
18240
      # Tell ltmain to make .dll files, not .so files.
 
18241
      shrext_cmds=".dll"
 
18242
      # FIXME: Setting linknames here is a bad hack.
 
18243
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18244
      # The linker will automatically build a .lib file if we build a DLL.
 
18245
      old_archive_From_new_cmds_GCJ='true'
 
18246
      # FIXME: Should let the user specify the lib program.
 
18247
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
18248
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
18249
      enable_shared_with_static_runtimes_GCJ=yes
 
18250
      ;;
 
18251
 
 
18252
    darwin* | rhapsody*)
 
18253
    if test "$GXX" = yes ; then
 
18254
      archive_cmds_need_lc_GCJ=no
 
18255
      case "$host_os" in
 
18256
      rhapsody* | darwin1.[012])
 
18257
        allow_undefined_flag_GCJ='-undefined suppress'
 
18258
        ;;
 
18259
      *) # Darwin 1.3 on
 
18260
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18261
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
18262
      else
 
18263
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
18264
          10.[012])
 
18265
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
18266
            ;;
 
18267
          10.*)
 
18268
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
18269
            ;;
 
18270
        esac
 
18271
      fi
 
18272
        ;;
 
18273
      esac
 
18274
        lt_int_apple_cc_single_mod=no
 
18275
        output_verbose_link_cmd='echo'
 
18276
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
18277
          lt_int_apple_cc_single_mod=yes
 
18278
        fi
 
18279
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18280
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18281
        else
 
18282
        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'
 
18283
      fi
 
18284
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18285
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
18286
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18287
          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}'
 
18288
        else
 
18289
          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}'
 
18290
        fi
 
18291
          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}'
 
18292
      hardcode_direct_GCJ=no
 
18293
      hardcode_automatic_GCJ=yes
 
18294
      hardcode_shlibpath_var_GCJ=unsupported
 
18295
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
18296
      link_all_deplibs_GCJ=yes
 
18297
    else
 
18298
      ld_shlibs_GCJ=no
 
18299
    fi
 
18300
      ;;
 
18301
 
 
18302
    dgux*)
 
18303
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18304
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18305
      hardcode_shlibpath_var_GCJ=no
 
18306
      ;;
 
18307
 
 
18308
    freebsd1*)
 
18309
      ld_shlibs_GCJ=no
 
18310
      ;;
 
18311
 
 
18312
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18313
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18314
    # does not break anything, and helps significantly (at the cost of a little
 
18315
    # extra space).
 
18316
    freebsd2.2*)
 
18317
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18318
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18319
      hardcode_direct_GCJ=yes
 
18320
      hardcode_shlibpath_var_GCJ=no
 
18321
      ;;
 
18322
 
 
18323
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18324
    freebsd2*)
 
18325
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18326
      hardcode_direct_GCJ=yes
 
18327
      hardcode_minus_L_GCJ=yes
 
18328
      hardcode_shlibpath_var_GCJ=no
 
18329
      ;;
 
18330
 
 
18331
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18332
    freebsd* | kfreebsd*-gnu)
 
18333
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18334
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18335
      hardcode_direct_GCJ=yes
 
18336
      hardcode_shlibpath_var_GCJ=no
 
18337
      ;;
 
18338
 
 
18339
    hpux9*)
 
18340
      if test "$GCC" = yes; then
 
18341
        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'
 
18342
      else
 
18343
        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'
 
18344
      fi
 
18345
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18346
      hardcode_libdir_separator_GCJ=:
 
18347
      hardcode_direct_GCJ=yes
 
18348
 
 
18349
      # hardcode_minus_L: Not really in the search PATH,
 
18350
      # but as the default location of the library.
 
18351
      hardcode_minus_L_GCJ=yes
 
18352
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18353
      ;;
 
18354
 
 
18355
    hpux10* | hpux11*)
 
18356
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18357
        case "$host_cpu" in
 
18358
        hppa*64*|ia64*)
 
18359
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18360
          ;;
 
18361
        *)
 
18362
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18363
          ;;
 
18364
        esac
 
18365
      else
 
18366
        case "$host_cpu" in
 
18367
        hppa*64*|ia64*)
 
18368
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18369
          ;;
 
18370
        *)
 
18371
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18372
          ;;
 
18373
        esac
 
18374
      fi
 
18375
      if test "$with_gnu_ld" = no; then
 
18376
        case "$host_cpu" in
 
18377
        hppa*64*)
 
18378
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18379
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18380
          hardcode_libdir_separator_GCJ=:
 
18381
          hardcode_direct_GCJ=no
 
18382
          hardcode_shlibpath_var_GCJ=no
 
18383
          ;;
 
18384
        ia64*)
 
18385
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18386
          hardcode_direct_GCJ=no
 
18387
          hardcode_shlibpath_var_GCJ=no
 
18388
 
 
18389
          # hardcode_minus_L: Not really in the search PATH,
 
18390
          # but as the default location of the library.
 
18391
          hardcode_minus_L_GCJ=yes
 
18392
          ;;
 
18393
        *)
 
18394
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18395
          hardcode_libdir_separator_GCJ=:
 
18396
          hardcode_direct_GCJ=yes
 
18397
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18398
 
 
18399
          # hardcode_minus_L: Not really in the search PATH,
 
18400
          # but as the default location of the library.
 
18401
          hardcode_minus_L_GCJ=yes
 
18402
          ;;
 
18403
        esac
 
18404
      fi
 
18405
      ;;
 
18406
 
 
18407
    irix5* | irix6* | nonstopux*)
 
18408
      if test "$GCC" = yes; then
 
18409
        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'
 
18410
      else
 
18411
        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'
 
18412
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18413
      fi
 
18414
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18415
      hardcode_libdir_separator_GCJ=:
 
18416
      link_all_deplibs_GCJ=yes
 
18417
      ;;
 
18418
 
 
18419
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
18420
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18421
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18422
      else
 
18423
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18424
      fi
 
18425
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18426
      hardcode_direct_GCJ=yes
 
18427
      hardcode_shlibpath_var_GCJ=no
 
18428
      ;;
 
18429
 
 
18430
    newsos6)
 
18431
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18432
      hardcode_direct_GCJ=yes
 
18433
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18434
      hardcode_libdir_separator_GCJ=:
 
18435
      hardcode_shlibpath_var_GCJ=no
 
18436
      ;;
 
18437
 
 
18438
    openbsd*)
 
18439
      hardcode_direct_GCJ=yes
 
18440
      hardcode_shlibpath_var_GCJ=no
 
18441
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18442
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18443
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18444
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18445
      else
 
18446
       case $host_os in
 
18447
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18448
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18449
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18450
           ;;
 
18451
         *)
 
18452
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18453
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18454
           ;;
 
18455
       esac
 
18456
      fi
 
18457
      ;;
 
18458
 
 
18459
    os2*)
 
18460
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18461
      hardcode_minus_L_GCJ=yes
 
18462
      allow_undefined_flag_GCJ=unsupported
 
18463
      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'
 
18464
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18465
      ;;
 
18466
 
 
18467
    osf3*)
 
18468
      if test "$GCC" = yes; then
 
18469
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18470
        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'
 
18471
      else
 
18472
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18473
        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'
 
18474
      fi
 
18475
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18476
      hardcode_libdir_separator_GCJ=:
 
18477
      ;;
 
18478
 
 
18479
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18480
      if test "$GCC" = yes; then
 
18481
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18482
        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'
 
18483
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18484
      else
 
18485
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18486
        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'
 
18487
        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~
 
18488
        $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'
 
18489
 
 
18490
        # Both c and cxx compiler support -rpath directly
 
18491
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18492
      fi
 
18493
      hardcode_libdir_separator_GCJ=:
 
18494
      ;;
 
18495
 
 
18496
    sco3.2v5*)
 
18497
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18498
      hardcode_shlibpath_var_GCJ=no
 
18499
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18500
      runpath_var=LD_RUN_PATH
 
18501
      hardcode_runpath_var=yes
 
18502
      ;;
 
18503
 
 
18504
    solaris*)
 
18505
      no_undefined_flag_GCJ=' -z text'
 
18506
      if test "$GCC" = yes; then
 
18507
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18508
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18509
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18510
      else
 
18511
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18512
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18513
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18514
      fi
 
18515
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18516
      hardcode_shlibpath_var_GCJ=no
 
18517
      case $host_os in
 
18518
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18519
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18520
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18521
      esac
 
18522
      link_all_deplibs_GCJ=yes
 
18523
      ;;
 
18524
 
 
18525
    sunos4*)
 
18526
      if test "x$host_vendor" = xsequent; then
 
18527
        # Use $CC to link under sequent, because it throws in some extra .o
 
18528
        # files that make .init and .fini sections work.
 
18529
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18530
      else
 
18531
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18532
      fi
 
18533
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18534
      hardcode_direct_GCJ=yes
 
18535
      hardcode_minus_L_GCJ=yes
 
18536
      hardcode_shlibpath_var_GCJ=no
 
18537
      ;;
 
18538
 
 
18539
    sysv4)
 
18540
      case $host_vendor in
 
18541
        sni)
 
18542
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18543
          hardcode_direct_GCJ=yes # is this really true???
 
18544
        ;;
 
18545
        siemens)
 
18546
          ## LD is ld it makes a PLAMLIB
 
18547
          ## CC just makes a GrossModule.
 
18548
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18549
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18550
          hardcode_direct_GCJ=no
 
18551
        ;;
 
18552
        motorola)
 
18553
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18554
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18555
        ;;
 
18556
      esac
 
18557
      runpath_var='LD_RUN_PATH'
 
18558
      hardcode_shlibpath_var_GCJ=no
 
18559
      ;;
 
18560
 
 
18561
    sysv4.3*)
 
18562
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18563
      hardcode_shlibpath_var_GCJ=no
 
18564
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18565
      ;;
 
18566
 
 
18567
    sysv4*MP*)
 
18568
      if test -d /usr/nec; then
 
18569
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18570
        hardcode_shlibpath_var_GCJ=no
 
18571
        runpath_var=LD_RUN_PATH
 
18572
        hardcode_runpath_var=yes
 
18573
        ld_shlibs_GCJ=yes
 
18574
      fi
 
18575
      ;;
 
18576
 
 
18577
    sysv4.2uw2*)
 
18578
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18579
      hardcode_direct_GCJ=yes
 
18580
      hardcode_minus_L_GCJ=no
 
18581
      hardcode_shlibpath_var_GCJ=no
 
18582
      hardcode_runpath_var=yes
 
18583
      runpath_var=LD_RUN_PATH
 
18584
      ;;
 
18585
 
 
18586
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
18587
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
18588
      if test "$GCC" = yes; then
 
18589
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18590
      else
 
18591
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18592
      fi
 
18593
      runpath_var='LD_RUN_PATH'
 
18594
      hardcode_shlibpath_var_GCJ=no
 
18595
      ;;
 
18596
 
 
18597
    sysv5*)
 
18598
      no_undefined_flag_GCJ=' -z text'
 
18599
      # $CC -shared without GNU ld will not create a library from C++
 
18600
      # object files and a static libstdc++, better avoid it by now
 
18601
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18602
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18603
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18604
      hardcode_libdir_flag_spec_GCJ=
 
18605
      hardcode_shlibpath_var_GCJ=no
 
18606
      runpath_var='LD_RUN_PATH'
 
18607
      ;;
 
18608
 
 
18609
    uts4*)
 
18610
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18611
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18612
      hardcode_shlibpath_var_GCJ=no
 
18613
      ;;
 
18614
 
 
18615
    *)
 
18616
      ld_shlibs_GCJ=no
 
18617
      ;;
 
18618
    esac
 
18619
  fi
 
18620
 
 
18621
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18622
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
18623
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18624
 
 
18625
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18626
if test "$GCC" = yes; then
 
18627
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18628
fi
 
18629
 
 
18630
#
 
18631
# Do we need to explicitly link libc?
 
18632
#
 
18633
case "x$archive_cmds_need_lc_GCJ" in
 
18634
x|xyes)
 
18635
  # Assume -lc should be added
 
18636
  archive_cmds_need_lc_GCJ=yes
 
18637
 
 
18638
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18639
    case $archive_cmds_GCJ in
 
18640
    *'~'*)
 
18641
      # FIXME: we may have to deal with multi-command sequences.
 
18642
      ;;
 
18643
    '$CC '*)
 
18644
      # Test whether the compiler implicitly links with -lc since on some
 
18645
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18646
      # to ld, don't add -lc before -lgcc.
 
18647
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18648
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
18649
      $rm conftest*
 
18650
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18651
 
 
18652
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18653
  (eval $ac_compile) 2>&5
 
18654
  ac_status=$?
 
18655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18656
  (exit $ac_status); } 2>conftest.err; then
 
18657
        soname=conftest
 
18658
        lib=conftest
 
18659
        libobjs=conftest.$ac_objext
 
18660
        deplibs=
 
18661
        wl=$lt_prog_compiler_wl_GCJ
 
18662
        compiler_flags=-v
 
18663
        linker_flags=-v
 
18664
        verstring=
 
18665
        output_objdir=.
 
18666
        libname=conftest
 
18667
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18668
        allow_undefined_flag_GCJ=
 
18669
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18670
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18671
  ac_status=$?
 
18672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18673
  (exit $ac_status); }
 
18674
        then
 
18675
          archive_cmds_need_lc_GCJ=no
 
18676
        else
 
18677
          archive_cmds_need_lc_GCJ=yes
 
18678
        fi
 
18679
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18680
      else
 
18681
        cat conftest.err 1>&5
 
18682
      fi
 
18683
      $rm conftest*
 
18684
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18685
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
18686
      ;;
 
18687
    esac
 
18688
  fi
 
18689
  ;;
 
18690
esac
 
18691
 
 
18692
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18693
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18694
library_names_spec=
 
18695
libname_spec='lib$name'
 
18696
soname_spec=
 
18697
shrext_cmds=".so"
 
18698
postinstall_cmds=
 
18699
postuninstall_cmds=
 
18700
finish_cmds=
 
18701
finish_eval=
 
18702
shlibpath_var=
 
18703
shlibpath_overrides_runpath=unknown
 
18704
version_type=none
 
18705
dynamic_linker="$host_os ld.so"
 
18706
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18707
if test "$GCC" = yes; then
 
18708
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18709
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18710
    # if the path contains ";" then we assume it to be the separator
 
18711
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18712
    # assumed that no part of a normal pathname contains ";" but that should
 
18713
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18714
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18715
  else
 
18716
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18717
  fi
 
18718
else
 
18719
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18720
fi
 
18721
need_lib_prefix=unknown
 
18722
hardcode_into_libs=no
 
18723
 
 
18724
# when you set need_version to no, make sure it does not cause -set_version
 
18725
# flags to be left without arguments
 
18726
need_version=unknown
 
18727
 
 
18728
case $host_os in
 
18729
aix3*)
 
18730
  version_type=linux
 
18731
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18732
  shlibpath_var=LIBPATH
 
18733
 
 
18734
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18735
  soname_spec='${libname}${release}${shared_ext}$major'
 
18736
  ;;
 
18737
 
 
18738
aix4* | aix5*)
 
18739
  version_type=linux
 
18740
  need_lib_prefix=no
 
18741
  need_version=no
 
18742
  hardcode_into_libs=yes
 
18743
  if test "$host_cpu" = ia64; then
 
18744
    # AIX 5 supports IA64
 
18745
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18746
    shlibpath_var=LD_LIBRARY_PATH
 
18747
  else
 
18748
    # With GCC up to 2.95.x, collect2 would create an import file
 
18749
    # for dependence libraries.  The import file would start with
 
18750
    # the line `#! .'.  This would cause the generated library to
 
18751
    # depend on `.', always an invalid library.  This was fixed in
 
18752
    # development snapshots of GCC prior to 3.0.
 
18753
    case $host_os in
 
18754
      aix4 | aix4.[01] | aix4.[01].*)
 
18755
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18756
           echo ' yes '
 
18757
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18758
        :
 
18759
      else
 
18760
        can_build_shared=no
 
18761
      fi
 
18762
      ;;
 
18763
    esac
 
18764
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18765
    # soname into executable. Probably we can add versioning support to
 
18766
    # collect2, so additional links can be useful in future.
 
18767
    if test "$aix_use_runtimelinking" = yes; then
 
18768
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18769
      # instead of lib<name>.a to let people know that these are not
 
18770
      # typical AIX shared libraries.
 
18771
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18772
    else
 
18773
      # We preserve .a as extension for shared libraries through AIX4.2
 
18774
      # and later when we are not doing run time linking.
 
18775
      library_names_spec='${libname}${release}.a $libname.a'
 
18776
      soname_spec='${libname}${release}${shared_ext}$major'
 
18777
    fi
 
18778
    shlibpath_var=LIBPATH
 
18779
  fi
 
18780
  ;;
 
18781
 
 
18782
amigaos*)
 
18783
  library_names_spec='$libname.ixlibrary $libname.a'
 
18784
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18785
  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'
 
18786
  ;;
 
18787
 
 
18788
beos*)
 
18789
  library_names_spec='${libname}${shared_ext}'
 
18790
  dynamic_linker="$host_os ld.so"
 
18791
  shlibpath_var=LIBRARY_PATH
 
18792
  ;;
 
18793
 
 
18794
bsdi4*)
 
18795
  version_type=linux
 
18796
  need_version=no
 
18797
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18798
  soname_spec='${libname}${release}${shared_ext}$major'
 
18799
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18800
  shlibpath_var=LD_LIBRARY_PATH
 
18801
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18802
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18803
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18804
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18805
  # libtool to hard-code these into programs
 
18806
  ;;
 
18807
 
 
18808
cygwin* | mingw* | pw32*)
 
18809
  version_type=windows
 
18810
  shrext_cmds=".dll"
 
18811
  need_version=no
 
18812
  need_lib_prefix=no
 
18813
 
 
18814
  case $GCC,$host_os in
 
18815
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18816
    library_names_spec='$libname.dll.a'
 
18817
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18818
    postinstall_cmds='base_file=`basename \${file}`~
 
18819
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18820
      dldir=$destdir/`dirname \$dlpath`~
 
18821
      test -d \$dldir || mkdir -p \$dldir~
 
18822
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18823
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18824
      dlpath=$dir/\$dldll~
 
18825
       $rm \$dlpath'
 
18826
    shlibpath_overrides_runpath=yes
 
18827
 
 
18828
    case $host_os in
 
18829
    cygwin*)
 
18830
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18831
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18832
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18833
      ;;
 
18834
    mingw*)
 
18835
      # MinGW DLLs use traditional 'lib' prefix
 
18836
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18837
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18838
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18839
        # It is most probably a Windows format PATH printed by
 
18840
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18841
        # path with ; separators, and with drive letters. We can handle the
 
18842
        # drive letters (cygwin fileutils understands them), so leave them,
 
18843
        # especially as we might pass files found there to a mingw objdump,
 
18844
        # which wouldn't understand a cygwinified path. Ahh.
 
18845
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18846
      else
 
18847
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18848
      fi
 
18849
      ;;
 
18850
    pw32*)
 
18851
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18852
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18853
      ;;
 
18854
    esac
 
18855
    ;;
 
18856
 
 
18857
  *)
 
18858
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18859
    ;;
 
18860
  esac
 
18861
  dynamic_linker='Win32 ld.exe'
 
18862
  # FIXME: first we should search . and the directory the executable is in
 
18863
  shlibpath_var=PATH
 
18864
  ;;
 
18865
 
 
18866
darwin* | rhapsody*)
 
18867
  dynamic_linker="$host_os dyld"
 
18868
  version_type=darwin
 
18869
  need_lib_prefix=no
 
18870
  need_version=no
 
18871
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18872
  soname_spec='${libname}${release}${major}$shared_ext'
 
18873
  shlibpath_overrides_runpath=yes
 
18874
  shlibpath_var=DYLD_LIBRARY_PATH
 
18875
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
18876
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18877
  if test "$GCC" = yes; then
 
18878
    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"`
 
18879
  else
 
18880
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18881
  fi
 
18882
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18883
  ;;
 
18884
 
 
18885
dgux*)
 
18886
  version_type=linux
 
18887
  need_lib_prefix=no
 
18888
  need_version=no
 
18889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18890
  soname_spec='${libname}${release}${shared_ext}$major'
 
18891
  shlibpath_var=LD_LIBRARY_PATH
 
18892
  ;;
 
18893
 
 
18894
freebsd1*)
 
18895
  dynamic_linker=no
 
18896
  ;;
 
18897
 
 
18898
kfreebsd*-gnu)
 
18899
  version_type=linux
 
18900
  need_lib_prefix=no
 
18901
  need_version=no
 
18902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18903
  soname_spec='${libname}${release}${shared_ext}$major'
 
18904
  shlibpath_var=LD_LIBRARY_PATH
 
18905
  shlibpath_overrides_runpath=no
 
18906
  hardcode_into_libs=yes
 
18907
  dynamic_linker='GNU ld.so'
 
18908
  ;;
 
18909
 
 
18910
freebsd*)
 
18911
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18912
  version_type=freebsd-$objformat
 
18913
  case $version_type in
 
18914
    freebsd-elf*)
 
18915
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18916
      need_version=no
 
18917
      need_lib_prefix=no
 
18918
      ;;
 
18919
    freebsd-*)
 
18920
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18921
      need_version=yes
 
18922
      ;;
 
18923
  esac
 
18924
  shlibpath_var=LD_LIBRARY_PATH
 
18925
  case $host_os in
 
18926
  freebsd2*)
 
18927
    shlibpath_overrides_runpath=yes
 
18928
    ;;
 
18929
  freebsd3.01* | freebsdelf3.01*)
 
18930
    shlibpath_overrides_runpath=yes
 
18931
    hardcode_into_libs=yes
 
18932
    ;;
 
18933
  *) # from 3.2 on
 
18934
    shlibpath_overrides_runpath=no
 
18935
    hardcode_into_libs=yes
 
18936
    ;;
 
18937
  esac
 
18938
  ;;
 
18939
 
 
18940
gnu*)
 
18941
  version_type=linux
 
18942
  need_lib_prefix=no
 
18943
  need_version=no
 
18944
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18945
  soname_spec='${libname}${release}${shared_ext}$major'
 
18946
  shlibpath_var=LD_LIBRARY_PATH
 
18947
  hardcode_into_libs=yes
 
18948
  ;;
 
18949
 
 
18950
hpux9* | hpux10* | hpux11*)
 
18951
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18952
  # link against other versions.
 
18953
  version_type=sunos
 
18954
  need_lib_prefix=no
 
18955
  need_version=no
 
18956
  case "$host_cpu" in
 
18957
  ia64*)
 
18958
    shrext_cmds='.so'
 
18959
    hardcode_into_libs=yes
 
18960
    dynamic_linker="$host_os dld.so"
 
18961
    shlibpath_var=LD_LIBRARY_PATH
 
18962
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18963
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18964
    soname_spec='${libname}${release}${shared_ext}$major'
 
18965
    if test "X$HPUX_IA64_MODE" = X32; then
 
18966
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18967
    else
 
18968
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18969
    fi
 
18970
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18971
    ;;
 
18972
   hppa*64*)
 
18973
     shrext_cmds='.sl'
 
18974
     hardcode_into_libs=yes
 
18975
     dynamic_linker="$host_os dld.sl"
 
18976
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18977
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18978
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18979
     soname_spec='${libname}${release}${shared_ext}$major'
 
18980
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18981
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18982
     ;;
 
18983
   *)
 
18984
    shrext_cmds='.sl'
 
18985
    dynamic_linker="$host_os dld.sl"
 
18986
    shlibpath_var=SHLIB_PATH
 
18987
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18988
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18989
    soname_spec='${libname}${release}${shared_ext}$major'
 
18990
    ;;
 
18991
  esac
 
18992
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18993
  postinstall_cmds='chmod 555 $lib'
 
18994
  ;;
 
18995
 
 
18996
irix5* | irix6* | nonstopux*)
 
18997
  case $host_os in
 
18998
    nonstopux*) version_type=nonstopux ;;
 
18999
    *)
 
19000
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19001
                version_type=linux
 
19002
        else
 
19003
                version_type=irix
 
19004
        fi ;;
 
19005
  esac
 
19006
  need_lib_prefix=no
 
19007
  need_version=no
 
19008
  soname_spec='${libname}${release}${shared_ext}$major'
 
19009
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19010
  case $host_os in
 
19011
  irix5* | nonstopux*)
 
19012
    libsuff= shlibsuff=
 
19013
    ;;
 
19014
  *)
 
19015
    case $LD in # libtool.m4 will add one of these switches to LD
 
19016
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19017
      libsuff= shlibsuff= libmagic=32-bit;;
 
19018
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19019
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19020
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19021
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19022
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19023
    esac
 
19024
    ;;
 
19025
  esac
 
19026
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19027
  shlibpath_overrides_runpath=no
 
19028
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19029
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19030
  hardcode_into_libs=yes
 
19031
  ;;
 
19032
 
 
19033
# No shared lib support for Linux oldld, aout, or coff.
 
19034
linux*oldld* | linux*aout* | linux*coff*)
 
19035
  dynamic_linker=no
 
19036
  ;;
 
19037
 
 
19038
# This must be Linux ELF.
 
19039
linux*)
 
19040
  version_type=linux
 
19041
  need_lib_prefix=no
 
19042
  need_version=no
 
19043
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19044
  soname_spec='${libname}${release}${shared_ext}$major'
 
19045
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19046
  shlibpath_var=LD_LIBRARY_PATH
 
19047
  shlibpath_overrides_runpath=no
 
19048
  # This implies no fast_install, which is unacceptable.
 
19049
  # Some rework will be needed to allow for fast_install
 
19050
  # before this can be enabled.
 
19051
  hardcode_into_libs=yes
 
19052
 
 
19053
  # Append ld.so.conf contents to the search path
 
19054
  if test -f /etc/ld.so.conf; then
 
19055
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
19056
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
19057
  fi
 
19058
 
 
19059
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19060
  # powerpc, because MkLinux only supported shared libraries with the
 
19061
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19062
  # most powerpc-linux boxes support dynamic linking these days and
 
19063
  # people can always --disable-shared, the test was removed, and we
 
19064
  # assume the GNU/Linux dynamic linker is in use.
 
19065
  dynamic_linker='GNU/Linux ld.so'
 
19066
  ;;
 
19067
 
 
19068
netbsdelf*-gnu)
 
19069
  version_type=linux
 
19070
  need_lib_prefix=no
 
19071
  need_version=no
 
19072
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19073
  soname_spec='${libname}${release}${shared_ext}$major'
 
19074
  shlibpath_var=LD_LIBRARY_PATH
 
19075
  shlibpath_overrides_runpath=no
 
19076
  hardcode_into_libs=yes
 
19077
  dynamic_linker='NetBSD ld.elf_so'
 
19078
  ;;
 
19079
 
 
19080
knetbsd*-gnu)
 
19081
  version_type=linux
 
19082
  need_lib_prefix=no
 
19083
  need_version=no
 
19084
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19085
  soname_spec='${libname}${release}${shared_ext}$major'
 
19086
  shlibpath_var=LD_LIBRARY_PATH
 
19087
  shlibpath_overrides_runpath=no
 
19088
  hardcode_into_libs=yes
 
19089
  dynamic_linker='GNU ld.so'
 
19090
  ;;
 
19091
 
 
19092
netbsd*)
 
19093
  version_type=sunos
 
19094
  need_lib_prefix=no
 
19095
  need_version=no
 
19096
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19097
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19098
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19099
    dynamic_linker='NetBSD (a.out) ld.so'
 
19100
  else
 
19101
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19102
    soname_spec='${libname}${release}${shared_ext}$major'
 
19103
    dynamic_linker='NetBSD ld.elf_so'
 
19104
  fi
 
19105
  shlibpath_var=LD_LIBRARY_PATH
 
19106
  shlibpath_overrides_runpath=yes
 
19107
  hardcode_into_libs=yes
 
19108
  ;;
 
19109
 
 
19110
newsos6)
 
19111
  version_type=linux
 
19112
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19113
  shlibpath_var=LD_LIBRARY_PATH
 
19114
  shlibpath_overrides_runpath=yes
 
19115
  ;;
 
19116
 
 
19117
nto-qnx*)
 
19118
  version_type=linux
 
19119
  need_lib_prefix=no
 
19120
  need_version=no
 
19121
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19122
  soname_spec='${libname}${release}${shared_ext}$major'
 
19123
  shlibpath_var=LD_LIBRARY_PATH
 
19124
  shlibpath_overrides_runpath=yes
 
19125
  ;;
 
19126
 
 
19127
openbsd*)
 
19128
  version_type=sunos
 
19129
  need_lib_prefix=no
 
19130
  need_version=yes
 
19131
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19132
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19133
  shlibpath_var=LD_LIBRARY_PATH
 
19134
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19135
    case $host_os in
 
19136
      openbsd2.[89] | openbsd2.[89].*)
 
19137
        shlibpath_overrides_runpath=no
 
19138
        ;;
 
19139
      *)
 
19140
        shlibpath_overrides_runpath=yes
 
19141
        ;;
 
19142
      esac
 
19143
  else
 
19144
    shlibpath_overrides_runpath=yes
 
19145
  fi
 
19146
  ;;
 
19147
 
 
19148
os2*)
 
19149
  libname_spec='$name'
 
19150
  shrext_cmds=".dll"
 
19151
  need_lib_prefix=no
 
19152
  library_names_spec='$libname${shared_ext} $libname.a'
 
19153
  dynamic_linker='OS/2 ld.exe'
 
19154
  shlibpath_var=LIBPATH
 
19155
  ;;
 
19156
 
 
19157
osf3* | osf4* | osf5*)
 
19158
  version_type=osf
 
19159
  need_lib_prefix=no
 
19160
  need_version=no
 
19161
  soname_spec='${libname}${release}${shared_ext}$major'
 
19162
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19163
  shlibpath_var=LD_LIBRARY_PATH
 
19164
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19165
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19166
  ;;
 
19167
 
 
19168
sco3.2v5*)
 
19169
  version_type=osf
 
19170
  soname_spec='${libname}${release}${shared_ext}$major'
 
19171
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19172
  shlibpath_var=LD_LIBRARY_PATH
 
19173
  ;;
 
19174
 
 
19175
solaris*)
 
19176
  version_type=linux
 
19177
  need_lib_prefix=no
 
19178
  need_version=no
 
19179
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19180
  soname_spec='${libname}${release}${shared_ext}$major'
 
19181
  shlibpath_var=LD_LIBRARY_PATH
 
19182
  shlibpath_overrides_runpath=yes
 
19183
  hardcode_into_libs=yes
 
19184
  # ldd complains unless libraries are executable
 
19185
  postinstall_cmds='chmod +x $lib'
 
19186
  ;;
 
19187
 
 
19188
sunos4*)
 
19189
  version_type=sunos
 
19190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19191
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19192
  shlibpath_var=LD_LIBRARY_PATH
 
19193
  shlibpath_overrides_runpath=yes
 
19194
  if test "$with_gnu_ld" = yes; then
 
19195
    need_lib_prefix=no
 
19196
  fi
 
19197
  need_version=yes
 
19198
  ;;
 
19199
 
 
19200
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
19201
  version_type=linux
 
19202
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19203
  soname_spec='${libname}${release}${shared_ext}$major'
 
19204
  shlibpath_var=LD_LIBRARY_PATH
 
19205
  case $host_vendor in
 
19206
    sni)
 
19207
      shlibpath_overrides_runpath=no
 
19208
      need_lib_prefix=no
 
19209
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19210
      runpath_var=LD_RUN_PATH
 
19211
      ;;
 
19212
    siemens)
 
19213
      need_lib_prefix=no
 
19214
      ;;
 
19215
    motorola)
 
19216
      need_lib_prefix=no
 
19217
      need_version=no
 
19218
      shlibpath_overrides_runpath=no
 
19219
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19220
      ;;
 
19221
  esac
 
19222
  ;;
 
19223
 
 
19224
sysv4*MP*)
 
19225
  if test -d /usr/nec ;then
 
19226
    version_type=linux
 
19227
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19228
    soname_spec='$libname${shared_ext}.$major'
 
19229
    shlibpath_var=LD_LIBRARY_PATH
 
19230
  fi
 
19231
  ;;
 
19232
 
 
19233
uts4*)
 
19234
  version_type=linux
 
19235
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19236
  soname_spec='${libname}${release}${shared_ext}$major'
 
19237
  shlibpath_var=LD_LIBRARY_PATH
 
19238
  ;;
 
19239
 
 
19240
*)
 
19241
  dynamic_linker=no
 
19242
  ;;
 
19243
esac
 
19244
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19245
echo "${ECHO_T}$dynamic_linker" >&6
 
19246
test "$dynamic_linker" = no && can_build_shared=no
 
19247
 
 
19248
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19249
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
19250
hardcode_action_GCJ=
 
19251
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19252
   test -n "$runpath_var GCJ" || \
 
19253
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
19254
 
 
19255
  # We can hardcode non-existant directories.
 
19256
  if test "$hardcode_direct_GCJ" != no &&
 
19257
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19258
     # have to relink, otherwise we might link with an installed library
 
19259
     # when we should be linking with a yet-to-be-installed one
 
19260
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19261
     test "$hardcode_minus_L_GCJ" != no; then
 
19262
    # Linking always hardcodes the temporary library directory.
 
19263
    hardcode_action_GCJ=relink
 
19264
  else
 
19265
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19266
    hardcode_action_GCJ=immediate
 
19267
  fi
 
19268
else
 
19269
  # We cannot hardcode anything, or else we can only hardcode existing
 
19270
  # directories.
 
19271
  hardcode_action_GCJ=unsupported
 
19272
fi
 
19273
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19274
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
19275
 
 
19276
if test "$hardcode_action_GCJ" = relink; then
 
19277
  # Fast installation is not supported
 
19278
  enable_fast_install=no
 
19279
elif test "$shlibpath_overrides_runpath" = yes ||
 
19280
     test "$enable_shared" = no; then
 
19281
  # Fast installation is not necessary
 
19282
  enable_fast_install=needless
 
19283
fi
 
19284
 
 
19285
striplib=
 
19286
old_striplib=
 
19287
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
19288
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
19289
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
19290
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
19291
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
19292
  echo "$as_me:$LINENO: result: yes" >&5
 
19293
echo "${ECHO_T}yes" >&6
 
19294
else
 
19295
# FIXME - insert some real tests, host_os isn't really good enough
 
19296
  case $host_os in
 
19297
   darwin*)
 
19298
       if test -n "$STRIP" ; then
 
19299
         striplib="$STRIP -x"
 
19300
         echo "$as_me:$LINENO: result: yes" >&5
 
19301
echo "${ECHO_T}yes" >&6
 
19302
       else
 
19303
  echo "$as_me:$LINENO: result: no" >&5
 
19304
echo "${ECHO_T}no" >&6
 
19305
fi
 
19306
       ;;
 
19307
   *)
 
19308
  echo "$as_me:$LINENO: result: no" >&5
 
19309
echo "${ECHO_T}no" >&6
 
19310
    ;;
 
19311
  esac
 
19312
fi
 
19313
 
 
19314
if test "x$enable_dlopen" != xyes; then
 
19315
  enable_dlopen=unknown
 
19316
  enable_dlopen_self=unknown
 
19317
  enable_dlopen_self_static=unknown
 
19318
else
 
19319
  lt_cv_dlopen=no
 
19320
  lt_cv_dlopen_libs=
 
19321
 
 
19322
  case $host_os in
 
19323
  beos*)
 
19324
    lt_cv_dlopen="load_add_on"
 
19325
    lt_cv_dlopen_libs=
 
19326
    lt_cv_dlopen_self=yes
 
19327
    ;;
 
19328
 
 
19329
  mingw* | pw32*)
 
19330
    lt_cv_dlopen="LoadLibrary"
 
19331
    lt_cv_dlopen_libs=
 
19332
   ;;
 
19333
 
 
19334
  cygwin*)
 
19335
    lt_cv_dlopen="dlopen"
 
19336
    lt_cv_dlopen_libs=
 
19337
   ;;
 
19338
 
 
19339
  darwin*)
 
19340
  # if libdl is installed we need to link against it
 
19341
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19342
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19343
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19345
else
 
19346
  ac_check_lib_save_LIBS=$LIBS
 
19347
LIBS="-ldl  $LIBS"
 
19348
cat >conftest.$ac_ext <<_ACEOF
 
19349
/* confdefs.h.  */
 
19350
_ACEOF
 
19351
cat confdefs.h >>conftest.$ac_ext
 
19352
cat >>conftest.$ac_ext <<_ACEOF
 
19353
/* end confdefs.h.  */
 
19354
 
 
19355
/* Override any gcc2 internal prototype to avoid an error.  */
 
19356
#ifdef __cplusplus
 
19357
extern "C"
 
19358
#endif
 
19359
/* We use char because int might match the return type of a gcc2
 
19360
   builtin and then its argument prototype would still apply.  */
 
19361
char dlopen ();
 
19362
int
 
19363
main ()
 
19364
{
 
19365
dlopen ();
 
19366
  ;
 
19367
  return 0;
 
19368
}
 
19369
_ACEOF
 
19370
rm -f conftest.$ac_objext conftest$ac_exeext
 
19371
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19372
  (eval $ac_link) 2>conftest.er1
 
19373
  ac_status=$?
 
19374
  grep -v '^ *+' conftest.er1 >conftest.err
 
19375
  rm -f conftest.er1
 
19376
  cat conftest.err >&5
 
19377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19378
  (exit $ac_status); } &&
 
19379
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19380
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19381
  (eval $ac_try) 2>&5
 
19382
  ac_status=$?
 
19383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19384
  (exit $ac_status); }; } &&
 
19385
         { ac_try='test -s conftest$ac_exeext'
 
19386
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19387
  (eval $ac_try) 2>&5
 
19388
  ac_status=$?
 
19389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19390
  (exit $ac_status); }; }; then
 
19391
  ac_cv_lib_dl_dlopen=yes
 
19392
else
 
19393
  echo "$as_me: failed program was:" >&5
 
19394
sed 's/^/| /' conftest.$ac_ext >&5
 
19395
 
 
19396
ac_cv_lib_dl_dlopen=no
 
19397
fi
 
19398
rm -f conftest.err conftest.$ac_objext \
 
19399
      conftest$ac_exeext conftest.$ac_ext
 
19400
LIBS=$ac_check_lib_save_LIBS
 
19401
fi
 
19402
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19403
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19404
if test $ac_cv_lib_dl_dlopen = yes; then
 
19405
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19406
else
 
19407
 
 
19408
    lt_cv_dlopen="dyld"
 
19409
    lt_cv_dlopen_libs=
 
19410
    lt_cv_dlopen_self=yes
 
19411
 
 
19412
fi
 
19413
 
 
19414
   ;;
 
19415
 
 
19416
  *)
 
19417
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
19418
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
19419
if test "${ac_cv_func_shl_load+set}" = set; then
 
19420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19421
else
 
19422
  cat >conftest.$ac_ext <<_ACEOF
 
19423
/* confdefs.h.  */
 
19424
_ACEOF
 
19425
cat confdefs.h >>conftest.$ac_ext
 
19426
cat >>conftest.$ac_ext <<_ACEOF
 
19427
/* end confdefs.h.  */
 
19428
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
19429
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19430
#define shl_load innocuous_shl_load
 
19431
 
 
19432
/* System header to define __stub macros and hopefully few prototypes,
 
19433
    which can conflict with char shl_load (); below.
 
19434
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19435
    <limits.h> exists even on freestanding compilers.  */
 
19436
 
 
19437
#ifdef __STDC__
 
19438
# include <limits.h>
 
19439
#else
 
19440
# include <assert.h>
 
19441
#endif
 
19442
 
 
19443
#undef shl_load
 
19444
 
 
19445
/* Override any gcc2 internal prototype to avoid an error.  */
 
19446
#ifdef __cplusplus
 
19447
extern "C"
 
19448
{
 
19449
#endif
 
19450
/* We use char because int might match the return type of a gcc2
 
19451
   builtin and then its argument prototype would still apply.  */
 
19452
char shl_load ();
 
19453
/* The GNU C library defines this for functions which it implements
 
19454
    to always fail with ENOSYS.  Some functions are actually named
 
19455
    something starting with __ and the normal name is an alias.  */
 
19456
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
19457
choke me
 
19458
#else
 
19459
char (*f) () = shl_load;
 
19460
#endif
 
19461
#ifdef __cplusplus
 
19462
}
 
19463
#endif
 
19464
 
 
19465
int
 
19466
main ()
 
19467
{
 
19468
return f != shl_load;
 
19469
  ;
 
19470
  return 0;
 
19471
}
 
19472
_ACEOF
 
19473
rm -f conftest.$ac_objext conftest$ac_exeext
 
19474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19475
  (eval $ac_link) 2>conftest.er1
 
19476
  ac_status=$?
 
19477
  grep -v '^ *+' conftest.er1 >conftest.err
 
19478
  rm -f conftest.er1
 
19479
  cat conftest.err >&5
 
19480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19481
  (exit $ac_status); } &&
 
19482
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19484
  (eval $ac_try) 2>&5
 
19485
  ac_status=$?
 
19486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19487
  (exit $ac_status); }; } &&
 
19488
         { ac_try='test -s conftest$ac_exeext'
 
19489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19490
  (eval $ac_try) 2>&5
 
19491
  ac_status=$?
 
19492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19493
  (exit $ac_status); }; }; then
 
19494
  ac_cv_func_shl_load=yes
 
19495
else
 
19496
  echo "$as_me: failed program was:" >&5
 
19497
sed 's/^/| /' conftest.$ac_ext >&5
 
19498
 
 
19499
ac_cv_func_shl_load=no
 
19500
fi
 
19501
rm -f conftest.err conftest.$ac_objext \
 
19502
      conftest$ac_exeext conftest.$ac_ext
 
19503
fi
 
19504
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
19505
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
19506
if test $ac_cv_func_shl_load = yes; then
 
19507
  lt_cv_dlopen="shl_load"
 
19508
else
 
19509
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
19510
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
19511
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
19512
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19513
else
 
19514
  ac_check_lib_save_LIBS=$LIBS
 
19515
LIBS="-ldld  $LIBS"
 
19516
cat >conftest.$ac_ext <<_ACEOF
 
19517
/* confdefs.h.  */
 
19518
_ACEOF
 
19519
cat confdefs.h >>conftest.$ac_ext
 
19520
cat >>conftest.$ac_ext <<_ACEOF
 
19521
/* end confdefs.h.  */
 
19522
 
 
19523
/* Override any gcc2 internal prototype to avoid an error.  */
 
19524
#ifdef __cplusplus
 
19525
extern "C"
 
19526
#endif
 
19527
/* We use char because int might match the return type of a gcc2
 
19528
   builtin and then its argument prototype would still apply.  */
 
19529
char shl_load ();
 
19530
int
 
19531
main ()
 
19532
{
 
19533
shl_load ();
 
19534
  ;
 
19535
  return 0;
 
19536
}
 
19537
_ACEOF
 
19538
rm -f conftest.$ac_objext conftest$ac_exeext
 
19539
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19540
  (eval $ac_link) 2>conftest.er1
 
19541
  ac_status=$?
 
19542
  grep -v '^ *+' conftest.er1 >conftest.err
 
19543
  rm -f conftest.er1
 
19544
  cat conftest.err >&5
 
19545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19546
  (exit $ac_status); } &&
 
19547
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19548
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19549
  (eval $ac_try) 2>&5
 
19550
  ac_status=$?
 
19551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19552
  (exit $ac_status); }; } &&
 
19553
         { ac_try='test -s conftest$ac_exeext'
 
19554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19555
  (eval $ac_try) 2>&5
 
19556
  ac_status=$?
 
19557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19558
  (exit $ac_status); }; }; then
 
19559
  ac_cv_lib_dld_shl_load=yes
 
19560
else
 
19561
  echo "$as_me: failed program was:" >&5
 
19562
sed 's/^/| /' conftest.$ac_ext >&5
 
19563
 
 
19564
ac_cv_lib_dld_shl_load=no
 
19565
fi
 
19566
rm -f conftest.err conftest.$ac_objext \
 
19567
      conftest$ac_exeext conftest.$ac_ext
 
19568
LIBS=$ac_check_lib_save_LIBS
 
19569
fi
 
19570
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
19571
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
19572
if test $ac_cv_lib_dld_shl_load = yes; then
 
19573
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
19574
else
 
19575
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
19576
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
19577
if test "${ac_cv_func_dlopen+set}" = set; then
 
19578
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19579
else
 
19580
  cat >conftest.$ac_ext <<_ACEOF
 
19581
/* confdefs.h.  */
 
19582
_ACEOF
 
19583
cat confdefs.h >>conftest.$ac_ext
 
19584
cat >>conftest.$ac_ext <<_ACEOF
 
19585
/* end confdefs.h.  */
 
19586
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
19587
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19588
#define dlopen innocuous_dlopen
 
19589
 
 
19590
/* System header to define __stub macros and hopefully few prototypes,
 
19591
    which can conflict with char dlopen (); below.
 
19592
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19593
    <limits.h> exists even on freestanding compilers.  */
 
19594
 
 
19595
#ifdef __STDC__
 
19596
# include <limits.h>
 
19597
#else
 
19598
# include <assert.h>
 
19599
#endif
 
19600
 
 
19601
#undef dlopen
 
19602
 
 
19603
/* Override any gcc2 internal prototype to avoid an error.  */
 
19604
#ifdef __cplusplus
 
19605
extern "C"
 
19606
{
 
19607
#endif
 
19608
/* We use char because int might match the return type of a gcc2
 
19609
   builtin and then its argument prototype would still apply.  */
 
19610
char dlopen ();
 
19611
/* The GNU C library defines this for functions which it implements
 
19612
    to always fail with ENOSYS.  Some functions are actually named
 
19613
    something starting with __ and the normal name is an alias.  */
 
19614
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
19615
choke me
 
19616
#else
 
19617
char (*f) () = dlopen;
 
19618
#endif
 
19619
#ifdef __cplusplus
 
19620
}
 
19621
#endif
 
19622
 
 
19623
int
 
19624
main ()
 
19625
{
 
19626
return f != dlopen;
 
19627
  ;
 
19628
  return 0;
 
19629
}
 
19630
_ACEOF
 
19631
rm -f conftest.$ac_objext conftest$ac_exeext
 
19632
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19633
  (eval $ac_link) 2>conftest.er1
 
19634
  ac_status=$?
 
19635
  grep -v '^ *+' conftest.er1 >conftest.err
 
19636
  rm -f conftest.er1
 
19637
  cat conftest.err >&5
 
19638
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19639
  (exit $ac_status); } &&
 
19640
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19641
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19642
  (eval $ac_try) 2>&5
 
19643
  ac_status=$?
 
19644
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19645
  (exit $ac_status); }; } &&
 
19646
         { ac_try='test -s conftest$ac_exeext'
 
19647
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19648
  (eval $ac_try) 2>&5
 
19649
  ac_status=$?
 
19650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19651
  (exit $ac_status); }; }; then
 
19652
  ac_cv_func_dlopen=yes
 
19653
else
 
19654
  echo "$as_me: failed program was:" >&5
 
19655
sed 's/^/| /' conftest.$ac_ext >&5
 
19656
 
 
19657
ac_cv_func_dlopen=no
 
19658
fi
 
19659
rm -f conftest.err conftest.$ac_objext \
 
19660
      conftest$ac_exeext conftest.$ac_ext
 
19661
fi
 
19662
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
19663
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
19664
if test $ac_cv_func_dlopen = yes; then
 
19665
  lt_cv_dlopen="dlopen"
 
19666
else
 
19667
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19668
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19669
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19671
else
 
19672
  ac_check_lib_save_LIBS=$LIBS
 
19673
LIBS="-ldl  $LIBS"
 
19674
cat >conftest.$ac_ext <<_ACEOF
 
19675
/* confdefs.h.  */
 
19676
_ACEOF
 
19677
cat confdefs.h >>conftest.$ac_ext
 
19678
cat >>conftest.$ac_ext <<_ACEOF
 
19679
/* end confdefs.h.  */
 
19680
 
 
19681
/* Override any gcc2 internal prototype to avoid an error.  */
 
19682
#ifdef __cplusplus
 
19683
extern "C"
 
19684
#endif
 
19685
/* We use char because int might match the return type of a gcc2
 
19686
   builtin and then its argument prototype would still apply.  */
 
19687
char dlopen ();
 
19688
int
 
19689
main ()
 
19690
{
 
19691
dlopen ();
 
19692
  ;
 
19693
  return 0;
 
19694
}
 
19695
_ACEOF
 
19696
rm -f conftest.$ac_objext conftest$ac_exeext
 
19697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19698
  (eval $ac_link) 2>conftest.er1
 
19699
  ac_status=$?
 
19700
  grep -v '^ *+' conftest.er1 >conftest.err
 
19701
  rm -f conftest.er1
 
19702
  cat conftest.err >&5
 
19703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19704
  (exit $ac_status); } &&
 
19705
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19707
  (eval $ac_try) 2>&5
 
19708
  ac_status=$?
 
19709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19710
  (exit $ac_status); }; } &&
 
19711
         { ac_try='test -s conftest$ac_exeext'
 
19712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19713
  (eval $ac_try) 2>&5
 
19714
  ac_status=$?
 
19715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19716
  (exit $ac_status); }; }; then
 
19717
  ac_cv_lib_dl_dlopen=yes
 
19718
else
 
19719
  echo "$as_me: failed program was:" >&5
 
19720
sed 's/^/| /' conftest.$ac_ext >&5
 
19721
 
 
19722
ac_cv_lib_dl_dlopen=no
 
19723
fi
 
19724
rm -f conftest.err conftest.$ac_objext \
 
19725
      conftest$ac_exeext conftest.$ac_ext
 
19726
LIBS=$ac_check_lib_save_LIBS
 
19727
fi
 
19728
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19729
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19730
if test $ac_cv_lib_dl_dlopen = yes; then
 
19731
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19732
else
 
19733
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
19734
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
19735
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
19736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19737
else
 
19738
  ac_check_lib_save_LIBS=$LIBS
 
19739
LIBS="-lsvld  $LIBS"
 
19740
cat >conftest.$ac_ext <<_ACEOF
 
19741
/* confdefs.h.  */
 
19742
_ACEOF
 
19743
cat confdefs.h >>conftest.$ac_ext
 
19744
cat >>conftest.$ac_ext <<_ACEOF
 
19745
/* end confdefs.h.  */
 
19746
 
 
19747
/* Override any gcc2 internal prototype to avoid an error.  */
 
19748
#ifdef __cplusplus
 
19749
extern "C"
 
19750
#endif
 
19751
/* We use char because int might match the return type of a gcc2
 
19752
   builtin and then its argument prototype would still apply.  */
 
19753
char dlopen ();
 
19754
int
 
19755
main ()
 
19756
{
 
19757
dlopen ();
 
19758
  ;
 
19759
  return 0;
 
19760
}
 
19761
_ACEOF
 
19762
rm -f conftest.$ac_objext conftest$ac_exeext
 
19763
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19764
  (eval $ac_link) 2>conftest.er1
 
19765
  ac_status=$?
 
19766
  grep -v '^ *+' conftest.er1 >conftest.err
 
19767
  rm -f conftest.er1
 
19768
  cat conftest.err >&5
 
19769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19770
  (exit $ac_status); } &&
 
19771
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19772
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19773
  (eval $ac_try) 2>&5
 
19774
  ac_status=$?
 
19775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19776
  (exit $ac_status); }; } &&
 
19777
         { ac_try='test -s conftest$ac_exeext'
 
19778
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19779
  (eval $ac_try) 2>&5
 
19780
  ac_status=$?
 
19781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19782
  (exit $ac_status); }; }; then
 
19783
  ac_cv_lib_svld_dlopen=yes
 
19784
else
 
19785
  echo "$as_me: failed program was:" >&5
 
19786
sed 's/^/| /' conftest.$ac_ext >&5
 
19787
 
 
19788
ac_cv_lib_svld_dlopen=no
 
19789
fi
 
19790
rm -f conftest.err conftest.$ac_objext \
 
19791
      conftest$ac_exeext conftest.$ac_ext
 
19792
LIBS=$ac_check_lib_save_LIBS
 
19793
fi
 
19794
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
19795
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
19796
if test $ac_cv_lib_svld_dlopen = yes; then
 
19797
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
19798
else
 
19799
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
19800
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
19801
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
19802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19803
else
 
19804
  ac_check_lib_save_LIBS=$LIBS
 
19805
LIBS="-ldld  $LIBS"
 
19806
cat >conftest.$ac_ext <<_ACEOF
 
19807
/* confdefs.h.  */
 
19808
_ACEOF
 
19809
cat confdefs.h >>conftest.$ac_ext
 
19810
cat >>conftest.$ac_ext <<_ACEOF
 
19811
/* end confdefs.h.  */
 
19812
 
 
19813
/* Override any gcc2 internal prototype to avoid an error.  */
 
19814
#ifdef __cplusplus
 
19815
extern "C"
 
19816
#endif
 
19817
/* We use char because int might match the return type of a gcc2
 
19818
   builtin and then its argument prototype would still apply.  */
 
19819
char dld_link ();
 
19820
int
 
19821
main ()
 
19822
{
 
19823
dld_link ();
 
19824
  ;
 
19825
  return 0;
 
19826
}
 
19827
_ACEOF
 
19828
rm -f conftest.$ac_objext conftest$ac_exeext
 
19829
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19830
  (eval $ac_link) 2>conftest.er1
 
19831
  ac_status=$?
 
19832
  grep -v '^ *+' conftest.er1 >conftest.err
 
19833
  rm -f conftest.er1
 
19834
  cat conftest.err >&5
 
19835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19836
  (exit $ac_status); } &&
 
19837
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19838
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19839
  (eval $ac_try) 2>&5
 
19840
  ac_status=$?
 
19841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19842
  (exit $ac_status); }; } &&
 
19843
         { ac_try='test -s conftest$ac_exeext'
 
19844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19845
  (eval $ac_try) 2>&5
 
19846
  ac_status=$?
 
19847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19848
  (exit $ac_status); }; }; then
 
19849
  ac_cv_lib_dld_dld_link=yes
 
19850
else
 
19851
  echo "$as_me: failed program was:" >&5
 
19852
sed 's/^/| /' conftest.$ac_ext >&5
 
19853
 
 
19854
ac_cv_lib_dld_dld_link=no
 
19855
fi
 
19856
rm -f conftest.err conftest.$ac_objext \
 
19857
      conftest$ac_exeext conftest.$ac_ext
 
19858
LIBS=$ac_check_lib_save_LIBS
 
19859
fi
 
19860
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
19861
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
19862
if test $ac_cv_lib_dld_dld_link = yes; then
 
19863
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
19864
fi
 
19865
 
 
19866
 
 
19867
fi
 
19868
 
 
19869
 
 
19870
fi
 
19871
 
 
19872
 
 
19873
fi
 
19874
 
 
19875
 
 
19876
fi
 
19877
 
 
19878
 
 
19879
fi
 
19880
 
 
19881
    ;;
 
19882
  esac
 
19883
 
 
19884
  if test "x$lt_cv_dlopen" != xno; then
 
19885
    enable_dlopen=yes
 
19886
  else
 
19887
    enable_dlopen=no
 
19888
  fi
 
19889
 
 
19890
  case $lt_cv_dlopen in
 
19891
  dlopen)
 
19892
    save_CPPFLAGS="$CPPFLAGS"
 
19893
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
19894
 
 
19895
    save_LDFLAGS="$LDFLAGS"
 
19896
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
19897
 
 
19898
    save_LIBS="$LIBS"
 
19899
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
19900
 
 
19901
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
19902
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
19903
if test "${lt_cv_dlopen_self+set}" = set; then
 
19904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19905
else
 
19906
          if test "$cross_compiling" = yes; then :
 
19907
  lt_cv_dlopen_self=cross
 
19908
else
 
19909
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
19910
  lt_status=$lt_dlunknown
 
19911
  cat > conftest.$ac_ext <<EOF
 
19912
#line 19912 "configure"
 
19913
#include "confdefs.h"
 
19914
 
 
19915
#if HAVE_DLFCN_H
 
19916
#include <dlfcn.h>
 
19917
#endif
 
19918
 
 
19919
#include <stdio.h>
 
19920
 
 
19921
#ifdef RTLD_GLOBAL
 
19922
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
19923
#else
 
19924
#  ifdef DL_GLOBAL
 
19925
#    define LT_DLGLOBAL         DL_GLOBAL
 
19926
#  else
 
19927
#    define LT_DLGLOBAL         0
 
19928
#  endif
 
19929
#endif
 
19930
 
 
19931
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
19932
   find out it does not work in some platform. */
 
19933
#ifndef LT_DLLAZY_OR_NOW
 
19934
#  ifdef RTLD_LAZY
 
19935
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
19936
#  else
 
19937
#    ifdef DL_LAZY
 
19938
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
19939
#    else
 
19940
#      ifdef RTLD_NOW
 
19941
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
19942
#      else
 
19943
#        ifdef DL_NOW
 
19944
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
19945
#        else
 
19946
#          define LT_DLLAZY_OR_NOW      0
 
19947
#        endif
 
19948
#      endif
 
19949
#    endif
 
19950
#  endif
 
19951
#endif
 
19952
 
 
19953
#ifdef __cplusplus
 
19954
extern "C" void exit (int);
 
19955
#endif
 
19956
 
 
19957
void fnord() { int i=42;}
 
19958
int main ()
 
19959
{
 
19960
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19961
  int status = $lt_dlunknown;
 
19962
 
 
19963
  if (self)
 
19964
    {
 
19965
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19966
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19967
      /* dlclose (self); */
 
19968
    }
 
19969
 
 
19970
    exit (status);
 
19971
}
 
19972
EOF
 
19973
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19974
  (eval $ac_link) 2>&5
 
19975
  ac_status=$?
 
19976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19977
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19978
    (./conftest; exit; ) 2>/dev/null
 
19979
    lt_status=$?
 
19980
    case x$lt_status in
 
19981
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
19982
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
19983
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
19984
    esac
 
19985
  else :
 
19986
    # compilation failed
 
19987
    lt_cv_dlopen_self=no
 
19988
  fi
 
19989
fi
 
19990
rm -fr conftest*
 
19991
 
 
19992
 
 
19993
fi
 
19994
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
19995
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
19996
 
 
19997
    if test "x$lt_cv_dlopen_self" = xyes; then
 
19998
      LDFLAGS="$LDFLAGS $link_static_flag"
 
19999
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
20000
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
20001
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
20002
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20003
else
 
20004
          if test "$cross_compiling" = yes; then :
 
20005
  lt_cv_dlopen_self_static=cross
 
20006
else
 
20007
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20008
  lt_status=$lt_dlunknown
 
20009
  cat > conftest.$ac_ext <<EOF
 
20010
#line 20010 "configure"
 
20011
#include "confdefs.h"
 
20012
 
 
20013
#if HAVE_DLFCN_H
 
20014
#include <dlfcn.h>
 
20015
#endif
 
20016
 
 
20017
#include <stdio.h>
 
20018
 
 
20019
#ifdef RTLD_GLOBAL
 
20020
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20021
#else
 
20022
#  ifdef DL_GLOBAL
 
20023
#    define LT_DLGLOBAL         DL_GLOBAL
 
20024
#  else
 
20025
#    define LT_DLGLOBAL         0
 
20026
#  endif
 
20027
#endif
 
20028
 
 
20029
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20030
   find out it does not work in some platform. */
 
20031
#ifndef LT_DLLAZY_OR_NOW
 
20032
#  ifdef RTLD_LAZY
 
20033
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20034
#  else
 
20035
#    ifdef DL_LAZY
 
20036
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20037
#    else
 
20038
#      ifdef RTLD_NOW
 
20039
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20040
#      else
 
20041
#        ifdef DL_NOW
 
20042
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20043
#        else
 
20044
#          define LT_DLLAZY_OR_NOW      0
 
20045
#        endif
 
20046
#      endif
 
20047
#    endif
 
20048
#  endif
 
20049
#endif
 
20050
 
 
20051
#ifdef __cplusplus
 
20052
extern "C" void exit (int);
 
20053
#endif
 
20054
 
 
20055
void fnord() { int i=42;}
 
20056
int main ()
 
20057
{
 
20058
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20059
  int status = $lt_dlunknown;
 
20060
 
 
20061
  if (self)
 
20062
    {
 
20063
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20064
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20065
      /* dlclose (self); */
 
20066
    }
 
20067
 
 
20068
    exit (status);
 
20069
}
 
20070
EOF
 
20071
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20072
  (eval $ac_link) 2>&5
 
20073
  ac_status=$?
 
20074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20075
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20076
    (./conftest; exit; ) 2>/dev/null
 
20077
    lt_status=$?
 
20078
    case x$lt_status in
 
20079
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
20080
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
20081
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
20082
    esac
 
20083
  else :
 
20084
    # compilation failed
 
20085
    lt_cv_dlopen_self_static=no
 
20086
  fi
 
20087
fi
 
20088
rm -fr conftest*
 
20089
 
 
20090
 
 
20091
fi
 
20092
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
20093
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
20094
    fi
 
20095
 
 
20096
    CPPFLAGS="$save_CPPFLAGS"
 
20097
    LDFLAGS="$save_LDFLAGS"
 
20098
    LIBS="$save_LIBS"
 
20099
    ;;
 
20100
  esac
 
20101
 
 
20102
  case $lt_cv_dlopen_self in
 
20103
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
20104
  *) enable_dlopen_self=unknown ;;
 
20105
  esac
 
20106
 
 
20107
  case $lt_cv_dlopen_self_static in
 
20108
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
20109
  *) enable_dlopen_self_static=unknown ;;
 
20110
  esac
 
20111
fi
 
20112
 
 
20113
 
 
20114
# The else clause should only fire when bootstrapping the
 
20115
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20116
# with your package, and you will get complaints that there are
 
20117
# no rules to generate ltmain.sh.
 
20118
if test -f "$ltmain"; then
 
20119
  # See if we are running on zsh, and set the options which allow our commands through
 
20120
  # without removal of \ escapes.
 
20121
  if test -n "${ZSH_VERSION+set}" ; then
 
20122
    setopt NO_GLOB_SUBST
 
20123
  fi
 
20124
  # Now quote all the things that may contain metacharacters while being
 
20125
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20126
  # variables and quote the copies for generation of the libtool script.
 
20127
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
20128
    SED SHELL STRIP \
 
20129
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20130
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20131
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20132
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20133
    lt_cv_sys_global_symbol_to_c_name_address \
 
20134
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20135
    old_postinstall_cmds old_postuninstall_cmds \
 
20136
    compiler_GCJ \
 
20137
    CC_GCJ \
 
20138
    LD_GCJ \
 
20139
    lt_prog_compiler_wl_GCJ \
 
20140
    lt_prog_compiler_pic_GCJ \
 
20141
    lt_prog_compiler_static_GCJ \
 
20142
    lt_prog_compiler_no_builtin_flag_GCJ \
 
20143
    export_dynamic_flag_spec_GCJ \
 
20144
    thread_safe_flag_spec_GCJ \
 
20145
    whole_archive_flag_spec_GCJ \
 
20146
    enable_shared_with_static_runtimes_GCJ \
 
20147
    old_archive_cmds_GCJ \
 
20148
    old_archive_from_new_cmds_GCJ \
 
20149
    predep_objects_GCJ \
 
20150
    postdep_objects_GCJ \
 
20151
    predeps_GCJ \
 
20152
    postdeps_GCJ \
 
20153
    compiler_lib_search_path_GCJ \
 
20154
    archive_cmds_GCJ \
 
20155
    archive_expsym_cmds_GCJ \
 
20156
    postinstall_cmds_GCJ \
 
20157
    postuninstall_cmds_GCJ \
 
20158
    old_archive_from_expsyms_cmds_GCJ \
 
20159
    allow_undefined_flag_GCJ \
 
20160
    no_undefined_flag_GCJ \
 
20161
    export_symbols_cmds_GCJ \
 
20162
    hardcode_libdir_flag_spec_GCJ \
 
20163
    hardcode_libdir_flag_spec_ld_GCJ \
 
20164
    hardcode_libdir_separator_GCJ \
 
20165
    hardcode_automatic_GCJ \
 
20166
    module_cmds_GCJ \
 
20167
    module_expsym_cmds_GCJ \
 
20168
    lt_cv_prog_compiler_c_o_GCJ \
 
20169
    exclude_expsyms_GCJ \
 
20170
    include_expsyms_GCJ; do
 
20171
 
 
20172
    case $var in
 
20173
    old_archive_cmds_GCJ | \
 
20174
    old_archive_from_new_cmds_GCJ | \
 
20175
    archive_cmds_GCJ | \
 
20176
    archive_expsym_cmds_GCJ | \
 
20177
    module_cmds_GCJ | \
 
20178
    module_expsym_cmds_GCJ | \
 
20179
    old_archive_from_expsyms_cmds_GCJ | \
 
20180
    export_symbols_cmds_GCJ | \
 
20181
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20182
    postinstall_cmds | postuninstall_cmds | \
 
20183
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20184
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20185
      # Double-quote double-evaled strings.
 
20186
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20187
      ;;
 
20188
    *)
 
20189
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20190
      ;;
 
20191
    esac
 
20192
  done
 
20193
 
 
20194
  case $lt_echo in
 
20195
  *'\$0 --fallback-echo"')
 
20196
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20197
    ;;
 
20198
  esac
 
20199
 
 
20200
cfgfile="$ofile"
 
20201
 
 
20202
  cat <<__EOF__ >> "$cfgfile"
 
20203
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20204
 
 
20205
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20206
 
 
20207
# Shell to use when invoking shell scripts.
 
20208
SHELL=$lt_SHELL
 
20209
 
 
20210
# Whether or not to build shared libraries.
 
20211
build_libtool_libs=$enable_shared
 
20212
 
 
20213
# Whether or not to build static libraries.
 
20214
build_old_libs=$enable_static
 
20215
 
 
20216
# Whether or not to add -lc for building shared libraries.
 
20217
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
20218
 
 
20219
# Whether or not to disallow shared libs when runtime libs are static
 
20220
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
20221
 
 
20222
# Whether or not to optimize for fast installation.
 
20223
fast_install=$enable_fast_install
 
20224
 
 
20225
# The host system.
 
20226
host_alias=$host_alias
 
20227
host=$host
 
20228
 
 
20229
# An echo program that does not interpret backslashes.
 
20230
echo=$lt_echo
 
20231
 
 
20232
# The archiver.
 
20233
AR=$lt_AR
 
20234
AR_FLAGS=$lt_AR_FLAGS
 
20235
 
 
20236
# A C compiler.
 
20237
LTCC=$lt_LTCC
 
20238
 
 
20239
# A language-specific compiler.
 
20240
CC=$lt_compiler_GCJ
 
20241
 
 
20242
# Is the compiler the GNU C compiler?
 
20243
with_gcc=$GCC_GCJ
 
20244
 
 
20245
# An ERE matcher.
 
20246
EGREP=$lt_EGREP
 
20247
 
 
20248
# The linker used to build libraries.
 
20249
LD=$lt_LD_GCJ
 
20250
 
 
20251
# Whether we need hard or soft links.
 
20252
LN_S=$lt_LN_S
 
20253
 
 
20254
# A BSD-compatible nm program.
 
20255
NM=$lt_NM
 
20256
 
 
20257
# A symbol stripping program
 
20258
STRIP=$lt_STRIP
 
20259
 
 
20260
# Used to examine libraries when file_magic_cmd begins "file"
 
20261
MAGIC_CMD=$MAGIC_CMD
 
20262
 
 
20263
# Used on cygwin: DLL creation program.
 
20264
DLLTOOL="$DLLTOOL"
 
20265
 
 
20266
# Used on cygwin: object dumper.
 
20267
OBJDUMP="$OBJDUMP"
 
20268
 
 
20269
# Used on cygwin: assembler.
 
20270
AS="$AS"
 
20271
 
 
20272
# The name of the directory that contains temporary libtool files.
 
20273
objdir=$objdir
 
20274
 
 
20275
# How to create reloadable object files.
 
20276
reload_flag=$lt_reload_flag
 
20277
reload_cmds=$lt_reload_cmds
 
20278
 
 
20279
# How to pass a linker flag through the compiler.
 
20280
wl=$lt_lt_prog_compiler_wl_GCJ
 
20281
 
 
20282
# Object file suffix (normally "o").
 
20283
objext="$ac_objext"
 
20284
 
 
20285
# Old archive suffix (normally "a").
 
20286
libext="$libext"
 
20287
 
 
20288
# Shared library suffix (normally ".so").
 
20289
shrext_cmds='$shrext_cmds'
 
20290
 
 
20291
# Executable file suffix (normally "").
 
20292
exeext="$exeext"
 
20293
 
 
20294
# Additional compiler flags for building library objects.
 
20295
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
20296
pic_mode=$pic_mode
 
20297
 
 
20298
# What is the maximum length of a command?
 
20299
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20300
 
 
20301
# Does compiler simultaneously support -c and -o options?
 
20302
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
20303
 
 
20304
# Must we lock files when doing compilation ?
 
20305
need_locks=$lt_need_locks
 
20306
 
 
20307
# Do we need the lib prefix for modules?
 
20308
need_lib_prefix=$need_lib_prefix
 
20309
 
 
20310
# Do we need a version for libraries?
 
20311
need_version=$need_version
 
20312
 
 
20313
# Whether dlopen is supported.
 
20314
dlopen_support=$enable_dlopen
 
20315
 
 
20316
# Whether dlopen of programs is supported.
 
20317
dlopen_self=$enable_dlopen_self
 
20318
 
 
20319
# Whether dlopen of statically linked programs is supported.
 
20320
dlopen_self_static=$enable_dlopen_self_static
 
20321
 
 
20322
# Compiler flag to prevent dynamic linking.
 
20323
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
20324
 
 
20325
# Compiler flag to turn off builtin functions.
 
20326
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
20327
 
 
20328
# Compiler flag to allow reflexive dlopens.
 
20329
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
20330
 
 
20331
# Compiler flag to generate shared objects directly from archives.
 
20332
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
20333
 
 
20334
# Compiler flag to generate thread-safe objects.
 
20335
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
20336
 
 
20337
# Library versioning type.
 
20338
version_type=$version_type
 
20339
 
 
20340
# Format of library name prefix.
 
20341
libname_spec=$lt_libname_spec
 
20342
 
 
20343
# List of archive names.  First name is the real one, the rest are links.
 
20344
# The last name is the one that the linker finds with -lNAME.
 
20345
library_names_spec=$lt_library_names_spec
 
20346
 
 
20347
# The coded name of the library, if different from the real name.
 
20348
soname_spec=$lt_soname_spec
 
20349
 
 
20350
# Commands used to build and install an old-style archive.
 
20351
RANLIB=$lt_RANLIB
 
20352
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
20353
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20354
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20355
 
 
20356
# Create an old-style archive from a shared archive.
 
20357
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
20358
 
 
20359
# Create a temporary old-style archive to link instead of a shared archive.
 
20360
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
20361
 
 
20362
# Commands used to build and install a shared archive.
 
20363
archive_cmds=$lt_archive_cmds_GCJ
 
20364
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
20365
postinstall_cmds=$lt_postinstall_cmds
 
20366
postuninstall_cmds=$lt_postuninstall_cmds
 
20367
 
 
20368
# Commands used to build a loadable module (assumed same as above if empty)
 
20369
module_cmds=$lt_module_cmds_GCJ
 
20370
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
20371
 
 
20372
# Commands to strip libraries.
 
20373
old_striplib=$lt_old_striplib
 
20374
striplib=$lt_striplib
 
20375
 
 
20376
# Dependencies to place before the objects being linked to create a
 
20377
# shared library.
 
20378
predep_objects=$lt_predep_objects_GCJ
 
20379
 
 
20380
# Dependencies to place after the objects being linked to create a
 
20381
# shared library.
 
20382
postdep_objects=$lt_postdep_objects_GCJ
 
20383
 
 
20384
# Dependencies to place before the objects being linked to create a
 
20385
# shared library.
 
20386
predeps=$lt_predeps_GCJ
 
20387
 
 
20388
# Dependencies to place after the objects being linked to create a
 
20389
# shared library.
 
20390
postdeps=$lt_postdeps_GCJ
 
20391
 
 
20392
# The library search path used internally by the compiler when linking
 
20393
# a shared library.
 
20394
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
20395
 
 
20396
# Method to check whether dependent libraries are shared objects.
 
20397
deplibs_check_method=$lt_deplibs_check_method
 
20398
 
 
20399
# Command to use when deplibs_check_method == file_magic.
 
20400
file_magic_cmd=$lt_file_magic_cmd
 
20401
 
 
20402
# Flag that allows shared libraries with undefined symbols to be built.
 
20403
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
20404
 
 
20405
# Flag that forces no undefined symbols.
 
20406
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
20407
 
 
20408
# Commands used to finish a libtool library installation in a directory.
 
20409
finish_cmds=$lt_finish_cmds
 
20410
 
 
20411
# Same as above, but a single script fragment to be evaled but not shown.
 
20412
finish_eval=$lt_finish_eval
 
20413
 
 
20414
# Take the output of nm and produce a listing of raw symbols and C names.
 
20415
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20416
 
 
20417
# Transform the output of nm in a proper C declaration
 
20418
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20419
 
 
20420
# Transform the output of nm in a C name address pair
 
20421
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20422
 
 
20423
# This is the shared library runtime path variable.
 
20424
runpath_var=$runpath_var
 
20425
 
 
20426
# This is the shared library path variable.
 
20427
shlibpath_var=$shlibpath_var
 
20428
 
 
20429
# Is shlibpath searched before the hard-coded library search path?
 
20430
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20431
 
 
20432
# How to hardcode a shared library path into an executable.
 
20433
hardcode_action=$hardcode_action_GCJ
 
20434
 
 
20435
# Whether we should hardcode library paths into libraries.
 
20436
hardcode_into_libs=$hardcode_into_libs
 
20437
 
 
20438
# Flag to hardcode \$libdir into a binary during linking.
 
20439
# This must work even if \$libdir does not exist.
 
20440
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
20441
 
 
20442
# If ld is used when linking, flag to hardcode \$libdir into
 
20443
# a binary during linking. This must work even if \$libdir does
 
20444
# not exist.
 
20445
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
20446
 
 
20447
# Whether we need a single -rpath flag with a separated argument.
 
20448
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
20449
 
 
20450
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20451
# resulting binary.
 
20452
hardcode_direct=$hardcode_direct_GCJ
 
20453
 
 
20454
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20455
# resulting binary.
 
20456
hardcode_minus_L=$hardcode_minus_L_GCJ
 
20457
 
 
20458
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20459
# the resulting binary.
 
20460
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
20461
 
 
20462
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20463
# and all subsequent libraries and executables linked against it.
 
20464
hardcode_automatic=$hardcode_automatic_GCJ
 
20465
 
 
20466
# Variables whose values should be saved in libtool wrapper scripts and
 
20467
# restored at relink time.
 
20468
variables_saved_for_relink="$variables_saved_for_relink"
 
20469
 
 
20470
# Whether libtool must link a program against all its dependency libraries.
 
20471
link_all_deplibs=$link_all_deplibs_GCJ
 
20472
 
 
20473
# Compile-time system search path for libraries
 
20474
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20475
 
 
20476
# Run-time system search path for libraries
 
20477
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20478
 
 
20479
# Fix the shell variable \$srcfile for the compiler.
 
20480
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
20481
 
 
20482
# Set to yes if exported symbols are required.
 
20483
always_export_symbols=$always_export_symbols_GCJ
 
20484
 
 
20485
# The commands to list exported symbols.
 
20486
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
20487
 
 
20488
# The commands to extract the exported symbol list from a shared archive.
 
20489
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20490
 
 
20491
# Symbols that should not be listed in the preloaded symbols.
 
20492
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
20493
 
 
20494
# Symbols that must always be exported.
 
20495
include_expsyms=$lt_include_expsyms_GCJ
 
20496
 
 
20497
# ### END LIBTOOL TAG CONFIG: $tagname
 
20498
 
 
20499
__EOF__
 
20500
 
 
20501
 
 
20502
else
 
20503
  # If there is no Makefile yet, we rely on a make rule to execute
 
20504
  # `config.status --recheck' to rerun these tests and create the
 
20505
  # libtool script then.
 
20506
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20507
  if test -f "$ltmain_in"; then
 
20508
    test -f Makefile && make "$ltmain"
 
20509
  fi
 
20510
fi
 
20511
 
 
20512
 
 
20513
ac_ext=c
 
20514
ac_cpp='$CPP $CPPFLAGS'
 
20515
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20516
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20517
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20518
 
 
20519
CC="$lt_save_CC"
 
20520
 
 
20521
        else
 
20522
          tagname=""
 
20523
        fi
 
20524
        ;;
 
20525
 
 
20526
      RC)
 
20527
 
 
20528
 
 
20529
 
 
20530
# Source file extension for RC test sources.
 
20531
ac_ext=rc
 
20532
 
 
20533
# Object file extension for compiled RC test sources.
 
20534
objext=o
 
20535
objext_RC=$objext
 
20536
 
 
20537
# Code to be used in simple compile tests
 
20538
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
20539
 
 
20540
# Code to be used in simple link tests
 
20541
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
20542
 
 
20543
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
20544
 
 
20545
# If no C compiler was specified, use CC.
 
20546
LTCC=${LTCC-"$CC"}
 
20547
 
 
20548
# Allow CC to be a program name with arguments.
 
20549
compiler=$CC
 
20550
 
 
20551
 
 
20552
# Allow CC to be a program name with arguments.
 
20553
lt_save_CC="$CC"
 
20554
CC=${RC-"windres"}
 
20555
compiler=$CC
 
20556
compiler_RC=$CC
 
20557
lt_cv_prog_compiler_c_o_RC=yes
 
20558
 
 
20559
# The else clause should only fire when bootstrapping the
 
20560
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20561
# with your package, and you will get complaints that there are
 
20562
# no rules to generate ltmain.sh.
 
20563
if test -f "$ltmain"; then
 
20564
  # See if we are running on zsh, and set the options which allow our commands through
 
20565
  # without removal of \ escapes.
 
20566
  if test -n "${ZSH_VERSION+set}" ; then
 
20567
    setopt NO_GLOB_SUBST
 
20568
  fi
 
20569
  # Now quote all the things that may contain metacharacters while being
 
20570
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20571
  # variables and quote the copies for generation of the libtool script.
 
20572
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
20573
    SED SHELL STRIP \
 
20574
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20575
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20576
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20577
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20578
    lt_cv_sys_global_symbol_to_c_name_address \
 
20579
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20580
    old_postinstall_cmds old_postuninstall_cmds \
 
20581
    compiler_RC \
 
20582
    CC_RC \
 
20583
    LD_RC \
 
20584
    lt_prog_compiler_wl_RC \
 
20585
    lt_prog_compiler_pic_RC \
 
20586
    lt_prog_compiler_static_RC \
 
20587
    lt_prog_compiler_no_builtin_flag_RC \
 
20588
    export_dynamic_flag_spec_RC \
 
20589
    thread_safe_flag_spec_RC \
 
20590
    whole_archive_flag_spec_RC \
 
20591
    enable_shared_with_static_runtimes_RC \
 
20592
    old_archive_cmds_RC \
 
20593
    old_archive_from_new_cmds_RC \
 
20594
    predep_objects_RC \
 
20595
    postdep_objects_RC \
 
20596
    predeps_RC \
 
20597
    postdeps_RC \
 
20598
    compiler_lib_search_path_RC \
 
20599
    archive_cmds_RC \
 
20600
    archive_expsym_cmds_RC \
 
20601
    postinstall_cmds_RC \
 
20602
    postuninstall_cmds_RC \
 
20603
    old_archive_from_expsyms_cmds_RC \
 
20604
    allow_undefined_flag_RC \
 
20605
    no_undefined_flag_RC \
 
20606
    export_symbols_cmds_RC \
 
20607
    hardcode_libdir_flag_spec_RC \
 
20608
    hardcode_libdir_flag_spec_ld_RC \
 
20609
    hardcode_libdir_separator_RC \
 
20610
    hardcode_automatic_RC \
 
20611
    module_cmds_RC \
 
20612
    module_expsym_cmds_RC \
 
20613
    lt_cv_prog_compiler_c_o_RC \
 
20614
    exclude_expsyms_RC \
 
20615
    include_expsyms_RC; do
 
20616
 
 
20617
    case $var in
 
20618
    old_archive_cmds_RC | \
 
20619
    old_archive_from_new_cmds_RC | \
 
20620
    archive_cmds_RC | \
 
20621
    archive_expsym_cmds_RC | \
 
20622
    module_cmds_RC | \
 
20623
    module_expsym_cmds_RC | \
 
20624
    old_archive_from_expsyms_cmds_RC | \
 
20625
    export_symbols_cmds_RC | \
 
20626
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20627
    postinstall_cmds | postuninstall_cmds | \
 
20628
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20629
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20630
      # Double-quote double-evaled strings.
 
20631
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20632
      ;;
 
20633
    *)
 
20634
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20635
      ;;
 
20636
    esac
 
20637
  done
 
20638
 
 
20639
  case $lt_echo in
 
20640
  *'\$0 --fallback-echo"')
 
20641
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20642
    ;;
 
20643
  esac
 
20644
 
 
20645
cfgfile="$ofile"
 
20646
 
 
20647
  cat <<__EOF__ >> "$cfgfile"
 
20648
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20649
 
 
20650
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20651
 
 
20652
# Shell to use when invoking shell scripts.
 
20653
SHELL=$lt_SHELL
 
20654
 
 
20655
# Whether or not to build shared libraries.
 
20656
build_libtool_libs=$enable_shared
 
20657
 
 
20658
# Whether or not to build static libraries.
 
20659
build_old_libs=$enable_static
 
20660
 
 
20661
# Whether or not to add -lc for building shared libraries.
 
20662
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
20663
 
 
20664
# Whether or not to disallow shared libs when runtime libs are static
 
20665
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
20666
 
 
20667
# Whether or not to optimize for fast installation.
 
20668
fast_install=$enable_fast_install
 
20669
 
 
20670
# The host system.
 
20671
host_alias=$host_alias
 
20672
host=$host
 
20673
 
 
20674
# An echo program that does not interpret backslashes.
 
20675
echo=$lt_echo
 
20676
 
 
20677
# The archiver.
 
20678
AR=$lt_AR
 
20679
AR_FLAGS=$lt_AR_FLAGS
 
20680
 
 
20681
# A C compiler.
 
20682
LTCC=$lt_LTCC
 
20683
 
 
20684
# A language-specific compiler.
 
20685
CC=$lt_compiler_RC
 
20686
 
 
20687
# Is the compiler the GNU C compiler?
 
20688
with_gcc=$GCC_RC
 
20689
 
 
20690
# An ERE matcher.
 
20691
EGREP=$lt_EGREP
 
20692
 
 
20693
# The linker used to build libraries.
 
20694
LD=$lt_LD_RC
 
20695
 
 
20696
# Whether we need hard or soft links.
 
20697
LN_S=$lt_LN_S
 
20698
 
 
20699
# A BSD-compatible nm program.
 
20700
NM=$lt_NM
 
20701
 
 
20702
# A symbol stripping program
 
20703
STRIP=$lt_STRIP
 
20704
 
 
20705
# Used to examine libraries when file_magic_cmd begins "file"
 
20706
MAGIC_CMD=$MAGIC_CMD
 
20707
 
 
20708
# Used on cygwin: DLL creation program.
 
20709
DLLTOOL="$DLLTOOL"
 
20710
 
 
20711
# Used on cygwin: object dumper.
 
20712
OBJDUMP="$OBJDUMP"
 
20713
 
 
20714
# Used on cygwin: assembler.
 
20715
AS="$AS"
 
20716
 
 
20717
# The name of the directory that contains temporary libtool files.
 
20718
objdir=$objdir
 
20719
 
 
20720
# How to create reloadable object files.
 
20721
reload_flag=$lt_reload_flag
 
20722
reload_cmds=$lt_reload_cmds
 
20723
 
 
20724
# How to pass a linker flag through the compiler.
 
20725
wl=$lt_lt_prog_compiler_wl_RC
 
20726
 
 
20727
# Object file suffix (normally "o").
 
20728
objext="$ac_objext"
 
20729
 
 
20730
# Old archive suffix (normally "a").
 
20731
libext="$libext"
 
20732
 
 
20733
# Shared library suffix (normally ".so").
 
20734
shrext_cmds='$shrext_cmds'
 
20735
 
 
20736
# Executable file suffix (normally "").
 
20737
exeext="$exeext"
 
20738
 
 
20739
# Additional compiler flags for building library objects.
 
20740
pic_flag=$lt_lt_prog_compiler_pic_RC
 
20741
pic_mode=$pic_mode
 
20742
 
 
20743
# What is the maximum length of a command?
 
20744
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20745
 
 
20746
# Does compiler simultaneously support -c and -o options?
 
20747
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
20748
 
 
20749
# Must we lock files when doing compilation ?
 
20750
need_locks=$lt_need_locks
 
20751
 
 
20752
# Do we need the lib prefix for modules?
 
20753
need_lib_prefix=$need_lib_prefix
 
20754
 
 
20755
# Do we need a version for libraries?
 
20756
need_version=$need_version
 
20757
 
 
20758
# Whether dlopen is supported.
 
20759
dlopen_support=$enable_dlopen
 
20760
 
 
20761
# Whether dlopen of programs is supported.
 
20762
dlopen_self=$enable_dlopen_self
 
20763
 
 
20764
# Whether dlopen of statically linked programs is supported.
 
20765
dlopen_self_static=$enable_dlopen_self_static
 
20766
 
 
20767
# Compiler flag to prevent dynamic linking.
 
20768
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20769
 
 
20770
# Compiler flag to turn off builtin functions.
 
20771
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20772
 
 
20773
# Compiler flag to allow reflexive dlopens.
 
20774
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20775
 
 
20776
# Compiler flag to generate shared objects directly from archives.
 
20777
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20778
 
 
20779
# Compiler flag to generate thread-safe objects.
 
20780
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20781
 
 
20782
# Library versioning type.
 
20783
version_type=$version_type
 
20784
 
 
20785
# Format of library name prefix.
 
20786
libname_spec=$lt_libname_spec
 
20787
 
 
20788
# List of archive names.  First name is the real one, the rest are links.
 
20789
# The last name is the one that the linker finds with -lNAME.
 
20790
library_names_spec=$lt_library_names_spec
 
20791
 
 
20792
# The coded name of the library, if different from the real name.
 
20793
soname_spec=$lt_soname_spec
 
20794
 
 
20795
# Commands used to build and install an old-style archive.
 
20796
RANLIB=$lt_RANLIB
 
20797
old_archive_cmds=$lt_old_archive_cmds_RC
 
20798
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20799
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20800
 
 
20801
# Create an old-style archive from a shared archive.
 
20802
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20803
 
 
20804
# Create a temporary old-style archive to link instead of a shared archive.
 
20805
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20806
 
 
20807
# Commands used to build and install a shared archive.
 
20808
archive_cmds=$lt_archive_cmds_RC
 
20809
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20810
postinstall_cmds=$lt_postinstall_cmds
 
20811
postuninstall_cmds=$lt_postuninstall_cmds
 
20812
 
 
20813
# Commands used to build a loadable module (assumed same as above if empty)
 
20814
module_cmds=$lt_module_cmds_RC
 
20815
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20816
 
 
20817
# Commands to strip libraries.
 
20818
old_striplib=$lt_old_striplib
 
20819
striplib=$lt_striplib
 
20820
 
 
20821
# Dependencies to place before the objects being linked to create a
 
20822
# shared library.
 
20823
predep_objects=$lt_predep_objects_RC
 
20824
 
 
20825
# Dependencies to place after the objects being linked to create a
 
20826
# shared library.
 
20827
postdep_objects=$lt_postdep_objects_RC
 
20828
 
 
20829
# Dependencies to place before the objects being linked to create a
 
20830
# shared library.
 
20831
predeps=$lt_predeps_RC
 
20832
 
 
20833
# Dependencies to place after the objects being linked to create a
 
20834
# shared library.
 
20835
postdeps=$lt_postdeps_RC
 
20836
 
 
20837
# The library search path used internally by the compiler when linking
 
20838
# a shared library.
 
20839
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20840
 
 
20841
# Method to check whether dependent libraries are shared objects.
 
20842
deplibs_check_method=$lt_deplibs_check_method
 
20843
 
 
20844
# Command to use when deplibs_check_method == file_magic.
 
20845
file_magic_cmd=$lt_file_magic_cmd
 
20846
 
 
20847
# Flag that allows shared libraries with undefined symbols to be built.
 
20848
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20849
 
 
20850
# Flag that forces no undefined symbols.
 
20851
no_undefined_flag=$lt_no_undefined_flag_RC
 
20852
 
 
20853
# Commands used to finish a libtool library installation in a directory.
 
20854
finish_cmds=$lt_finish_cmds
 
20855
 
 
20856
# Same as above, but a single script fragment to be evaled but not shown.
 
20857
finish_eval=$lt_finish_eval
 
20858
 
 
20859
# Take the output of nm and produce a listing of raw symbols and C names.
 
20860
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20861
 
 
20862
# Transform the output of nm in a proper C declaration
 
20863
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20864
 
 
20865
# Transform the output of nm in a C name address pair
 
20866
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20867
 
 
20868
# This is the shared library runtime path variable.
 
20869
runpath_var=$runpath_var
 
20870
 
 
20871
# This is the shared library path variable.
 
20872
shlibpath_var=$shlibpath_var
 
20873
 
 
20874
# Is shlibpath searched before the hard-coded library search path?
 
20875
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20876
 
 
20877
# How to hardcode a shared library path into an executable.
 
20878
hardcode_action=$hardcode_action_RC
 
20879
 
 
20880
# Whether we should hardcode library paths into libraries.
 
20881
hardcode_into_libs=$hardcode_into_libs
 
20882
 
 
20883
# Flag to hardcode \$libdir into a binary during linking.
 
20884
# This must work even if \$libdir does not exist.
 
20885
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20886
 
 
20887
# If ld is used when linking, flag to hardcode \$libdir into
 
20888
# a binary during linking. This must work even if \$libdir does
 
20889
# not exist.
 
20890
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20891
 
 
20892
# Whether we need a single -rpath flag with a separated argument.
 
20893
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20894
 
 
20895
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20896
# resulting binary.
 
20897
hardcode_direct=$hardcode_direct_RC
 
20898
 
 
20899
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20900
# resulting binary.
 
20901
hardcode_minus_L=$hardcode_minus_L_RC
 
20902
 
 
20903
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20904
# the resulting binary.
 
20905
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20906
 
 
20907
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20908
# and all subsequent libraries and executables linked against it.
 
20909
hardcode_automatic=$hardcode_automatic_RC
 
20910
 
 
20911
# Variables whose values should be saved in libtool wrapper scripts and
 
20912
# restored at relink time.
 
20913
variables_saved_for_relink="$variables_saved_for_relink"
 
20914
 
 
20915
# Whether libtool must link a program against all its dependency libraries.
 
20916
link_all_deplibs=$link_all_deplibs_RC
 
20917
 
 
20918
# Compile-time system search path for libraries
 
20919
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20920
 
 
20921
# Run-time system search path for libraries
 
20922
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20923
 
 
20924
# Fix the shell variable \$srcfile for the compiler.
 
20925
fix_srcfile_path="$fix_srcfile_path_RC"
 
20926
 
 
20927
# Set to yes if exported symbols are required.
 
20928
always_export_symbols=$always_export_symbols_RC
 
20929
 
 
20930
# The commands to list exported symbols.
 
20931
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20932
 
 
20933
# The commands to extract the exported symbol list from a shared archive.
 
20934
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20935
 
 
20936
# Symbols that should not be listed in the preloaded symbols.
 
20937
exclude_expsyms=$lt_exclude_expsyms_RC
 
20938
 
 
20939
# Symbols that must always be exported.
 
20940
include_expsyms=$lt_include_expsyms_RC
 
20941
 
 
20942
# ### END LIBTOOL TAG CONFIG: $tagname
 
20943
 
 
20944
__EOF__
 
20945
 
 
20946
 
 
20947
else
 
20948
  # If there is no Makefile yet, we rely on a make rule to execute
 
20949
  # `config.status --recheck' to rerun these tests and create the
 
20950
  # libtool script then.
 
20951
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20952
  if test -f "$ltmain_in"; then
 
20953
    test -f Makefile && make "$ltmain"
 
20954
  fi
 
20955
fi
 
20956
 
 
20957
 
 
20958
ac_ext=c
 
20959
ac_cpp='$CPP $CPPFLAGS'
 
20960
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20961
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20962
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20963
 
 
20964
CC="$lt_save_CC"
 
20965
 
 
20966
        ;;
 
20967
 
 
20968
      *)
 
20969
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20970
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20971
   { (exit 1); exit 1; }; }
 
20972
        ;;
 
20973
      esac
 
20974
 
 
20975
      # Append the new tag name to the list of available tags.
 
20976
      if test -n "$tagname" ; then
 
20977
      available_tags="$available_tags $tagname"
 
20978
    fi
 
20979
    fi
 
20980
  done
 
20981
  IFS="$lt_save_ifs"
 
20982
 
 
20983
  # Now substitute the updated list of available tags.
 
20984
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20985
    mv "${ofile}T" "$ofile"
 
20986
    chmod +x "$ofile"
 
20987
  else
 
20988
    rm -f "${ofile}T"
 
20989
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20990
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20991
   { (exit 1); exit 1; }; }
 
20992
  fi
 
20993
fi
 
20994
 
 
20995
 
 
20996
 
 
20997
# This can be used to rebuild libtool when needed
 
20998
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20999
 
 
21000
# Always use our own libtool.
 
21001
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
21002
 
 
21003
# Prevent multiple expansion
 
21004
 
 
21005
 
 
21006
 
 
21007
 
 
21008
 
 
21009
 
 
21010
 
 
21011
 
 
21012
 
 
21013
 
 
21014
 
 
21015
 
 
21016
 
 
21017
 
 
21018
 
 
21019
 
 
21020
 
 
21021
 
 
21022
 
 
21023
 
 
21024
LIBTOOL="$LIBTOOL --silent"
 
21025
 
 
21026
echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
 
21027
echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
 
21028
if test "${ac_cv_search_gethostbyname+set}" = set; then
 
21029
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21030
else
 
21031
  ac_func_search_save_LIBS=$LIBS
 
21032
ac_cv_search_gethostbyname=no
 
21033
cat >conftest.$ac_ext <<_ACEOF
 
21034
/* confdefs.h.  */
 
21035
_ACEOF
 
21036
cat confdefs.h >>conftest.$ac_ext
 
21037
cat >>conftest.$ac_ext <<_ACEOF
 
21038
/* end confdefs.h.  */
 
21039
 
 
21040
/* Override any gcc2 internal prototype to avoid an error.  */
 
21041
#ifdef __cplusplus
 
21042
extern "C"
 
21043
#endif
 
21044
/* We use char because int might match the return type of a gcc2
 
21045
   builtin and then its argument prototype would still apply.  */
 
21046
char gethostbyname ();
 
21047
int
 
21048
main ()
 
21049
{
 
21050
gethostbyname ();
 
21051
  ;
 
21052
  return 0;
 
21053
}
 
21054
_ACEOF
 
21055
rm -f conftest.$ac_objext conftest$ac_exeext
 
21056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21057
  (eval $ac_link) 2>conftest.er1
 
21058
  ac_status=$?
 
21059
  grep -v '^ *+' conftest.er1 >conftest.err
 
21060
  rm -f conftest.er1
 
21061
  cat conftest.err >&5
 
21062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21063
  (exit $ac_status); } &&
 
21064
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21066
  (eval $ac_try) 2>&5
 
21067
  ac_status=$?
 
21068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21069
  (exit $ac_status); }; } &&
 
21070
         { ac_try='test -s conftest$ac_exeext'
 
21071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21072
  (eval $ac_try) 2>&5
 
21073
  ac_status=$?
 
21074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21075
  (exit $ac_status); }; }; then
 
21076
  ac_cv_search_gethostbyname="none required"
 
21077
else
 
21078
  echo "$as_me: failed program was:" >&5
 
21079
sed 's/^/| /' conftest.$ac_ext >&5
 
21080
 
 
21081
fi
 
21082
rm -f conftest.err conftest.$ac_objext \
 
21083
      conftest$ac_exeext conftest.$ac_ext
 
21084
if test "$ac_cv_search_gethostbyname" = no; then
 
21085
  for ac_lib in nsl; do
 
21086
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
21087
    cat >conftest.$ac_ext <<_ACEOF
 
21088
/* confdefs.h.  */
 
21089
_ACEOF
 
21090
cat confdefs.h >>conftest.$ac_ext
 
21091
cat >>conftest.$ac_ext <<_ACEOF
 
21092
/* end confdefs.h.  */
 
21093
 
 
21094
/* Override any gcc2 internal prototype to avoid an error.  */
 
21095
#ifdef __cplusplus
 
21096
extern "C"
 
21097
#endif
 
21098
/* We use char because int might match the return type of a gcc2
 
21099
   builtin and then its argument prototype would still apply.  */
 
21100
char gethostbyname ();
 
21101
int
 
21102
main ()
 
21103
{
 
21104
gethostbyname ();
 
21105
  ;
 
21106
  return 0;
 
21107
}
 
21108
_ACEOF
 
21109
rm -f conftest.$ac_objext conftest$ac_exeext
 
21110
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21111
  (eval $ac_link) 2>conftest.er1
 
21112
  ac_status=$?
 
21113
  grep -v '^ *+' conftest.er1 >conftest.err
 
21114
  rm -f conftest.er1
 
21115
  cat conftest.err >&5
 
21116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21117
  (exit $ac_status); } &&
 
21118
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21120
  (eval $ac_try) 2>&5
 
21121
  ac_status=$?
 
21122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21123
  (exit $ac_status); }; } &&
 
21124
         { ac_try='test -s conftest$ac_exeext'
 
21125
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21126
  (eval $ac_try) 2>&5
 
21127
  ac_status=$?
 
21128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21129
  (exit $ac_status); }; }; then
 
21130
  ac_cv_search_gethostbyname="-l$ac_lib"
 
21131
break
 
21132
else
 
21133
  echo "$as_me: failed program was:" >&5
 
21134
sed 's/^/| /' conftest.$ac_ext >&5
 
21135
 
 
21136
fi
 
21137
rm -f conftest.err conftest.$ac_objext \
 
21138
      conftest$ac_exeext conftest.$ac_ext
 
21139
  done
 
21140
fi
 
21141
LIBS=$ac_func_search_save_LIBS
 
21142
fi
 
21143
echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
 
21144
echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
 
21145
if test "$ac_cv_search_gethostbyname" != no; then
 
21146
  test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
 
21147
 
 
21148
fi
 
21149
 
 
21150
echo "$as_me:$LINENO: checking for library containing socket" >&5
 
21151
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
 
21152
if test "${ac_cv_search_socket+set}" = set; then
 
21153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21154
else
 
21155
  ac_func_search_save_LIBS=$LIBS
 
21156
ac_cv_search_socket=no
 
21157
cat >conftest.$ac_ext <<_ACEOF
 
21158
/* confdefs.h.  */
 
21159
_ACEOF
 
21160
cat confdefs.h >>conftest.$ac_ext
 
21161
cat >>conftest.$ac_ext <<_ACEOF
 
21162
/* end confdefs.h.  */
 
21163
 
 
21164
/* Override any gcc2 internal prototype to avoid an error.  */
 
21165
#ifdef __cplusplus
 
21166
extern "C"
 
21167
#endif
 
21168
/* We use char because int might match the return type of a gcc2
 
21169
   builtin and then its argument prototype would still apply.  */
 
21170
char socket ();
 
21171
int
 
21172
main ()
 
21173
{
 
21174
socket ();
 
21175
  ;
 
21176
  return 0;
 
21177
}
 
21178
_ACEOF
 
21179
rm -f conftest.$ac_objext conftest$ac_exeext
 
21180
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21181
  (eval $ac_link) 2>conftest.er1
 
21182
  ac_status=$?
 
21183
  grep -v '^ *+' conftest.er1 >conftest.err
 
21184
  rm -f conftest.er1
 
21185
  cat conftest.err >&5
 
21186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21187
  (exit $ac_status); } &&
 
21188
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21190
  (eval $ac_try) 2>&5
 
21191
  ac_status=$?
 
21192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21193
  (exit $ac_status); }; } &&
 
21194
         { ac_try='test -s conftest$ac_exeext'
 
21195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21196
  (eval $ac_try) 2>&5
 
21197
  ac_status=$?
 
21198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21199
  (exit $ac_status); }; }; then
 
21200
  ac_cv_search_socket="none required"
 
21201
else
 
21202
  echo "$as_me: failed program was:" >&5
 
21203
sed 's/^/| /' conftest.$ac_ext >&5
 
21204
 
 
21205
fi
 
21206
rm -f conftest.err conftest.$ac_objext \
 
21207
      conftest$ac_exeext conftest.$ac_ext
 
21208
if test "$ac_cv_search_socket" = no; then
 
21209
  for ac_lib in socket; do
 
21210
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
21211
    cat >conftest.$ac_ext <<_ACEOF
 
21212
/* confdefs.h.  */
 
21213
_ACEOF
 
21214
cat confdefs.h >>conftest.$ac_ext
 
21215
cat >>conftest.$ac_ext <<_ACEOF
 
21216
/* end confdefs.h.  */
 
21217
 
 
21218
/* Override any gcc2 internal prototype to avoid an error.  */
 
21219
#ifdef __cplusplus
 
21220
extern "C"
 
21221
#endif
 
21222
/* We use char because int might match the return type of a gcc2
 
21223
   builtin and then its argument prototype would still apply.  */
 
21224
char socket ();
 
21225
int
 
21226
main ()
 
21227
{
 
21228
socket ();
 
21229
  ;
 
21230
  return 0;
 
21231
}
 
21232
_ACEOF
 
21233
rm -f conftest.$ac_objext conftest$ac_exeext
 
21234
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21235
  (eval $ac_link) 2>conftest.er1
 
21236
  ac_status=$?
 
21237
  grep -v '^ *+' conftest.er1 >conftest.err
 
21238
  rm -f conftest.er1
 
21239
  cat conftest.err >&5
 
21240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21241
  (exit $ac_status); } &&
 
21242
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21244
  (eval $ac_try) 2>&5
 
21245
  ac_status=$?
 
21246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21247
  (exit $ac_status); }; } &&
 
21248
         { ac_try='test -s conftest$ac_exeext'
 
21249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21250
  (eval $ac_try) 2>&5
 
21251
  ac_status=$?
 
21252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21253
  (exit $ac_status); }; }; then
 
21254
  ac_cv_search_socket="-l$ac_lib"
 
21255
break
 
21256
else
 
21257
  echo "$as_me: failed program was:" >&5
 
21258
sed 's/^/| /' conftest.$ac_ext >&5
 
21259
 
 
21260
fi
 
21261
rm -f conftest.err conftest.$ac_objext \
 
21262
      conftest$ac_exeext conftest.$ac_ext
 
21263
  done
 
21264
fi
 
21265
LIBS=$ac_func_search_save_LIBS
 
21266
fi
 
21267
echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
 
21268
echo "${ECHO_T}$ac_cv_search_socket" >&6
 
21269
if test "$ac_cv_search_socket" != no; then
 
21270
  test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
 
21271
 
 
21272
else
 
21273
  echo "$as_me:$LINENO: checking for socket in -lnsl" >&5
 
21274
echo $ECHO_N "checking for socket in -lnsl... $ECHO_C" >&6
 
21275
if test "${ac_cv_lib_nsl_socket+set}" = set; then
 
21276
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21277
else
 
21278
  ac_check_lib_save_LIBS=$LIBS
 
21279
LIBS="-lnsl -lsocket $LIBS"
 
21280
cat >conftest.$ac_ext <<_ACEOF
 
21281
/* confdefs.h.  */
 
21282
_ACEOF
 
21283
cat confdefs.h >>conftest.$ac_ext
 
21284
cat >>conftest.$ac_ext <<_ACEOF
 
21285
/* end confdefs.h.  */
 
21286
 
 
21287
/* Override any gcc2 internal prototype to avoid an error.  */
 
21288
#ifdef __cplusplus
 
21289
extern "C"
 
21290
#endif
 
21291
/* We use char because int might match the return type of a gcc2
 
21292
   builtin and then its argument prototype would still apply.  */
 
21293
char socket ();
 
21294
int
 
21295
main ()
 
21296
{
 
21297
socket ();
 
21298
  ;
 
21299
  return 0;
 
21300
}
 
21301
_ACEOF
 
21302
rm -f conftest.$ac_objext conftest$ac_exeext
 
21303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21304
  (eval $ac_link) 2>conftest.er1
 
21305
  ac_status=$?
 
21306
  grep -v '^ *+' conftest.er1 >conftest.err
 
21307
  rm -f conftest.er1
 
21308
  cat conftest.err >&5
 
21309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21310
  (exit $ac_status); } &&
 
21311
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21313
  (eval $ac_try) 2>&5
 
21314
  ac_status=$?
 
21315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21316
  (exit $ac_status); }; } &&
 
21317
         { ac_try='test -s conftest$ac_exeext'
 
21318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21319
  (eval $ac_try) 2>&5
 
21320
  ac_status=$?
 
21321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21322
  (exit $ac_status); }; }; then
 
21323
  ac_cv_lib_nsl_socket=yes
 
21324
else
 
21325
  echo "$as_me: failed program was:" >&5
 
21326
sed 's/^/| /' conftest.$ac_ext >&5
 
21327
 
 
21328
ac_cv_lib_nsl_socket=no
 
21329
fi
 
21330
rm -f conftest.err conftest.$ac_objext \
 
21331
      conftest$ac_exeext conftest.$ac_ext
 
21332
LIBS=$ac_check_lib_save_LIBS
 
21333
fi
 
21334
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_socket" >&5
 
21335
echo "${ECHO_T}$ac_cv_lib_nsl_socket" >&6
 
21336
if test $ac_cv_lib_nsl_socket = yes; then
 
21337
  LIBS="$LIBS -lsocket -lnsl"
 
21338
fi
 
21339
 
 
21340
fi
 
21341
 
 
21342
 
 
21343
if test "x$prefix" = "xNONE"; then
 
21344
  prefix="$ac_default_prefix"
 
21345
fi
 
21346
 
 
21347
if test "x$exec_prefix" = "xNONE"; then
 
21348
  exec_prefix="$prefix"
 
21349
fi
 
21350
 
 
21351
case "$host_os" in
 
21352
solaris*)
 
21353
        MAKE=gmake
 
21354
        STRIP=gstrip
 
21355
        LD=gld
 
21356
        AR=gar
 
21357
        # openssl libs are in /usr/sfw/lib on solaris 10
 
21358
        LIBS="$LIBS -R/usr/sfw/lib"
 
21359
        # disable the linux-specific interfaces
 
21360
        # and bmc on SPARC (there is no bmc driver for SPARC)
 
21361
        if [ `mach -p` = sparc ]; then
 
21362
                enable_intf_bmc=no
 
21363
        else
 
21364
                enable_intf_bmc=yes
 
21365
        fi
 
21366
        enable_intf_imb=no
 
21367
        enable_intf_open=no
 
21368
        enable_ipmievd=no
 
21369
        enable_ipmishell=no
 
21370
        ;;
 
21371
*cygwin*)
 
21372
        # disable the linux and solaris-specific interfaces
 
21373
        enable_intf_imb=no
 
21374
        enable_intf_open=no
 
21375
        enable_intf_lipmi=no
 
21376
        enable_intf_bmc=no
 
21377
        enable_ipmievd=no
 
21378
        enable_ipmishell=no
 
21379
        ;;
 
21380
*darwin*)
 
21381
        # disable the linux and solaris-specific interfaces
 
21382
        enable_intf_imb=no
 
21383
        enable_intf_open=no
 
21384
        enable_intf_lipmi=no
 
21385
        enable_intf_bmc=no
 
21386
        enable_ipmived=no
 
21387
        enable_ipmishell=no
 
21388
        ;;
 
21389
esac
 
21390
 
 
21391
ARCH=$host_cpu
 
21392
 
 
21393
OS=$host_os
 
21394
 
 
21395
PSTAMP=$host
 
21396
 
 
21397
BASEDIR=$prefix
 
21398
 
 
21399
 
 
21400
# Check whether --enable-internal-md5 or --disable-internal-md5 was given.
 
21401
if test "${enable_internal_md5+set}" = set; then
 
21402
  enableval="$enable_internal_md5"
 
21403
 
 
21404
else
 
21405
  enable_internal_md5=no
 
21406
fi;
 
21407
 
 
21408
echo "$as_me:$LINENO: checking for EVP_aes_128_cbc in -lcrypto" >&5
 
21409
echo $ECHO_N "checking for EVP_aes_128_cbc in -lcrypto... $ECHO_C" >&6
 
21410
if test "${ac_cv_lib_crypto_EVP_aes_128_cbc+set}" = set; then
 
21411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21412
else
 
21413
  ac_check_lib_save_LIBS=$LIBS
 
21414
LIBS="-lcrypto -lcrypto $LIBS"
 
21415
cat >conftest.$ac_ext <<_ACEOF
 
21416
/* confdefs.h.  */
 
21417
_ACEOF
 
21418
cat confdefs.h >>conftest.$ac_ext
 
21419
cat >>conftest.$ac_ext <<_ACEOF
 
21420
/* end confdefs.h.  */
 
21421
 
 
21422
/* Override any gcc2 internal prototype to avoid an error.  */
 
21423
#ifdef __cplusplus
 
21424
extern "C"
 
21425
#endif
 
21426
/* We use char because int might match the return type of a gcc2
 
21427
   builtin and then its argument prototype would still apply.  */
 
21428
char EVP_aes_128_cbc ();
 
21429
int
 
21430
main ()
 
21431
{
 
21432
EVP_aes_128_cbc ();
 
21433
  ;
 
21434
  return 0;
 
21435
}
 
21436
_ACEOF
 
21437
rm -f conftest.$ac_objext conftest$ac_exeext
 
21438
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21439
  (eval $ac_link) 2>conftest.er1
 
21440
  ac_status=$?
 
21441
  grep -v '^ *+' conftest.er1 >conftest.err
 
21442
  rm -f conftest.er1
 
21443
  cat conftest.err >&5
 
21444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21445
  (exit $ac_status); } &&
 
21446
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21448
  (eval $ac_try) 2>&5
 
21449
  ac_status=$?
 
21450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21451
  (exit $ac_status); }; } &&
 
21452
         { ac_try='test -s conftest$ac_exeext'
 
21453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21454
  (eval $ac_try) 2>&5
 
21455
  ac_status=$?
 
21456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21457
  (exit $ac_status); }; }; then
 
21458
  ac_cv_lib_crypto_EVP_aes_128_cbc=yes
 
21459
else
 
21460
  echo "$as_me: failed program was:" >&5
 
21461
sed 's/^/| /' conftest.$ac_ext >&5
 
21462
 
 
21463
ac_cv_lib_crypto_EVP_aes_128_cbc=no
 
21464
fi
 
21465
rm -f conftest.err conftest.$ac_objext \
 
21466
      conftest$ac_exeext conftest.$ac_ext
 
21467
LIBS=$ac_check_lib_save_LIBS
 
21468
fi
 
21469
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_aes_128_cbc" >&5
 
21470
echo "${ECHO_T}$ac_cv_lib_crypto_EVP_aes_128_cbc" >&6
 
21471
if test $ac_cv_lib_crypto_EVP_aes_128_cbc = yes; then
 
21472
  if test "x$enable_internal_md5" != "xyes"; then
 
21473
            have_crypto=yes; LIBS="$LIBS -lcrypto"
 
21474
        fi
 
21475
else
 
21476
  have_crypto=no
 
21477
fi
 
21478
 
 
21479
 
 
21480
echo "$as_me:$LINENO: checking for MD5_Init in -lcrypto" >&5
 
21481
echo $ECHO_N "checking for MD5_Init in -lcrypto... $ECHO_C" >&6
 
21482
if test "${ac_cv_lib_crypto_MD5_Init+set}" = set; then
 
21483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21484
else
 
21485
  ac_check_lib_save_LIBS=$LIBS
 
21486
LIBS="-lcrypto -lcrypto $LIBS"
 
21487
cat >conftest.$ac_ext <<_ACEOF
 
21488
/* confdefs.h.  */
 
21489
_ACEOF
 
21490
cat confdefs.h >>conftest.$ac_ext
 
21491
cat >>conftest.$ac_ext <<_ACEOF
 
21492
/* end confdefs.h.  */
 
21493
 
 
21494
/* Override any gcc2 internal prototype to avoid an error.  */
 
21495
#ifdef __cplusplus
 
21496
extern "C"
 
21497
#endif
 
21498
/* We use char because int might match the return type of a gcc2
 
21499
   builtin and then its argument prototype would still apply.  */
 
21500
char MD5_Init ();
 
21501
int
 
21502
main ()
 
21503
{
 
21504
MD5_Init ();
 
21505
  ;
 
21506
  return 0;
 
21507
}
 
21508
_ACEOF
 
21509
rm -f conftest.$ac_objext conftest$ac_exeext
 
21510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21511
  (eval $ac_link) 2>conftest.er1
 
21512
  ac_status=$?
 
21513
  grep -v '^ *+' conftest.er1 >conftest.err
 
21514
  rm -f conftest.er1
 
21515
  cat conftest.err >&5
 
21516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21517
  (exit $ac_status); } &&
 
21518
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21520
  (eval $ac_try) 2>&5
 
21521
  ac_status=$?
 
21522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21523
  (exit $ac_status); }; } &&
 
21524
         { ac_try='test -s conftest$ac_exeext'
 
21525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21526
  (eval $ac_try) 2>&5
 
21527
  ac_status=$?
 
21528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21529
  (exit $ac_status); }; }; then
 
21530
  ac_cv_lib_crypto_MD5_Init=yes
 
21531
else
 
21532
  echo "$as_me: failed program was:" >&5
 
21533
sed 's/^/| /' conftest.$ac_ext >&5
 
21534
 
 
21535
ac_cv_lib_crypto_MD5_Init=no
 
21536
fi
 
21537
rm -f conftest.err conftest.$ac_objext \
 
21538
      conftest$ac_exeext conftest.$ac_ext
 
21539
LIBS=$ac_check_lib_save_LIBS
 
21540
fi
 
21541
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD5_Init" >&5
 
21542
echo "${ECHO_T}$ac_cv_lib_crypto_MD5_Init" >&6
 
21543
if test $ac_cv_lib_crypto_MD5_Init = yes; then
 
21544
  if test "x$enable_internal_md5" != "xyes"; then
 
21545
            if test "x$have_crypto" != "xyes"; then
 
21546
                LIBS="$LIBS -lcrypto"
 
21547
                have_md5=yes
 
21548
            fi
 
21549
 
 
21550
cat >>confdefs.h <<\_ACEOF
 
21551
#define HAVE_CRYPTO_MD5 1
 
21552
_ACEOF
 
21553
 
 
21554
        fi
 
21555
fi
 
21556
 
 
21557
 
 
21558
echo "$as_me:$LINENO: checking for MD2_Init in -lcrypto" >&5
 
21559
echo $ECHO_N "checking for MD2_Init in -lcrypto... $ECHO_C" >&6
 
21560
if test "${ac_cv_lib_crypto_MD2_Init+set}" = set; then
 
21561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21562
else
 
21563
  ac_check_lib_save_LIBS=$LIBS
 
21564
LIBS="-lcrypto -lcrypto $LIBS"
 
21565
cat >conftest.$ac_ext <<_ACEOF
 
21566
/* confdefs.h.  */
 
21567
_ACEOF
 
21568
cat confdefs.h >>conftest.$ac_ext
 
21569
cat >>conftest.$ac_ext <<_ACEOF
 
21570
/* end confdefs.h.  */
 
21571
 
 
21572
/* Override any gcc2 internal prototype to avoid an error.  */
 
21573
#ifdef __cplusplus
 
21574
extern "C"
 
21575
#endif
 
21576
/* We use char because int might match the return type of a gcc2
 
21577
   builtin and then its argument prototype would still apply.  */
 
21578
char MD2_Init ();
 
21579
int
 
21580
main ()
 
21581
{
 
21582
MD2_Init ();
 
21583
  ;
 
21584
  return 0;
 
21585
}
 
21586
_ACEOF
 
21587
rm -f conftest.$ac_objext conftest$ac_exeext
 
21588
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21589
  (eval $ac_link) 2>conftest.er1
 
21590
  ac_status=$?
 
21591
  grep -v '^ *+' conftest.er1 >conftest.err
 
21592
  rm -f conftest.er1
 
21593
  cat conftest.err >&5
 
21594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21595
  (exit $ac_status); } &&
 
21596
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21597
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21598
  (eval $ac_try) 2>&5
 
21599
  ac_status=$?
 
21600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21601
  (exit $ac_status); }; } &&
 
21602
         { ac_try='test -s conftest$ac_exeext'
 
21603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21604
  (eval $ac_try) 2>&5
 
21605
  ac_status=$?
 
21606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21607
  (exit $ac_status); }; }; then
 
21608
  ac_cv_lib_crypto_MD2_Init=yes
 
21609
else
 
21610
  echo "$as_me: failed program was:" >&5
 
21611
sed 's/^/| /' conftest.$ac_ext >&5
 
21612
 
 
21613
ac_cv_lib_crypto_MD2_Init=no
 
21614
fi
 
21615
rm -f conftest.err conftest.$ac_objext \
 
21616
      conftest$ac_exeext conftest.$ac_ext
 
21617
LIBS=$ac_check_lib_save_LIBS
 
21618
fi
 
21619
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_MD2_Init" >&5
 
21620
echo "${ECHO_T}$ac_cv_lib_crypto_MD2_Init" >&6
 
21621
if test $ac_cv_lib_crypto_MD2_Init = yes; then
 
21622
  if test "x$enable_internal_md5" != "xyes"; then
 
21623
            if test "x$have_crypto" != "xyes" && test "x$have_md5" != "xyes"; then
 
21624
                LIBS="$LIBS -lcrypto"
 
21625
                have_md2=yes
 
21626
            fi
 
21627
 
 
21628
cat >>confdefs.h <<\_ACEOF
 
21629
#define HAVE_CRYPTO_MD2 1
 
21630
_ACEOF
 
21631
 
 
21632
        fi
 
21633
fi
 
21634
 
 
21635
 
 
21636
# Check whether --enable-intf-lan or --disable-intf-lan was given.
 
21637
if test "${enable_intf_lan+set}" = set; then
 
21638
  enableval="$enable_intf_lan"
 
21639
 
 
21640
else
 
21641
  enable_intf_lan=yes
 
21642
fi;
 
21643
if test "x$enable_intf_lan" = "xstatic" || test "x$enable_intf_lan" = "xplugin"; then
 
21644
   enable_intf_lan=yes
 
21645
fi
 
21646
if test "x$enable_intf_lan" = "xyes"; then
 
21647
 
 
21648
cat >>confdefs.h <<\_ACEOF
 
21649
#define IPMI_INTF_LAN 1
 
21650
_ACEOF
 
21651
 
 
21652
    INTF_LAN=lan
 
21653
 
 
21654
    INTF_LAN_LIB=libintf_lan.la
 
21655
 
 
21656
    IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB lan/libintf_lan.la"
 
21657
fi
 
21658
 
 
21659
# Check whether --enable-intf-lanplus or --disable-intf-lanplus was given.
 
21660
if test "${enable_intf_lanplus+set}" = set; then
 
21661
  enableval="$enable_intf_lanplus"
 
21662
  if test "x$enable_intf_lanplus" != "xno" && test "x$have_crypto" != "xyes"; then
 
21663
            echo "** The lanplus interface requires an SSL library with EVP_aes_128_cbc defined."
 
21664
            enable_intf_lanplus=no
 
21665
        fi
 
21666
else
 
21667
  enable_intf_lanplus=$have_crypto
 
21668
fi;
 
21669
if test "x$enable_intf_lanplus" = "xstatic" || test "x$enable_intf_lanplus" = "xplugin"; then
 
21670
   enable_intf_lanplus=yes
 
21671
fi
 
21672
if test "x$enable_intf_lanplus" = "xyes"; then
 
21673
 
 
21674
cat >>confdefs.h <<\_ACEOF
 
21675
#define IPMI_INTF_LANPLUS 1
 
21676
_ACEOF
 
21677
 
 
21678
    INTF_LANPLUS=lanplus
 
21679
 
 
21680
    INTF_LANPLUS_LIB=libintf_lanplus.la
 
21681
 
 
21682
    IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB lanplus/libintf_lanplus.la"
 
21683
else
 
21684
    enable_intf_lanplus=no
 
21685
fi
 
21686
 
 
21687
 
 
21688
# Check whether --with-kerneldir or --without-kerneldir was given.
 
21689
if test "${with_kerneldir+set}" = set; then
 
21690
  withval="$with_kerneldir"
 
21691
  if test "x$with_kerneldir" = "xyes"; then
 
21692
            with_kerneldir="/lib/modules/`uname -r`/build"
 
21693
        fi
 
21694
        CFLAGS="$CFLAGS -I ${with_kerneldir}/include"
 
21695
 
 
21696
        if test -s ${with_kerneldir}/include/linux/version.h ; then
 
21697
            kernelver=`grep UTS_RELEASE ${with_kerneldir}/include/linux/version.h | \
 
21698
                sed 's/^\#define UTS_RELEASE \"\(2\.[0-9]\)\..*/\1/'`
 
21699
            if test "x$kernelver" = "x2.6"; then
 
21700
                CPPFLAGS="$CPPFLAGS -D__user="
 
21701
 
 
21702
            fi
 
21703
        fi
 
21704
fi;
 
21705
if test "${ac_cv_header_linux_ipmi_h+set}" = set; then
 
21706
  echo "$as_me:$LINENO: checking for linux/ipmi.h" >&5
 
21707
echo $ECHO_N "checking for linux/ipmi.h... $ECHO_C" >&6
 
21708
if test "${ac_cv_header_linux_ipmi_h+set}" = set; then
 
21709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21710
fi
 
21711
echo "$as_me:$LINENO: result: $ac_cv_header_linux_ipmi_h" >&5
 
21712
echo "${ECHO_T}$ac_cv_header_linux_ipmi_h" >&6
 
21713
else
 
21714
  # Is the header compilable?
 
21715
echo "$as_me:$LINENO: checking linux/ipmi.h usability" >&5
 
21716
echo $ECHO_N "checking linux/ipmi.h usability... $ECHO_C" >&6
 
21717
cat >conftest.$ac_ext <<_ACEOF
 
21718
/* confdefs.h.  */
 
21719
_ACEOF
 
21720
cat confdefs.h >>conftest.$ac_ext
 
21721
cat >>conftest.$ac_ext <<_ACEOF
 
21722
/* end confdefs.h.  */
 
21723
$ac_includes_default
 
21724
#include <linux/ipmi.h>
 
21725
_ACEOF
 
21726
rm -f conftest.$ac_objext
 
21727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21728
  (eval $ac_compile) 2>conftest.er1
 
21729
  ac_status=$?
 
21730
  grep -v '^ *+' conftest.er1 >conftest.err
 
21731
  rm -f conftest.er1
 
21732
  cat conftest.err >&5
 
21733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21734
  (exit $ac_status); } &&
 
21735
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21737
  (eval $ac_try) 2>&5
 
21738
  ac_status=$?
 
21739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21740
  (exit $ac_status); }; } &&
 
21741
         { ac_try='test -s conftest.$ac_objext'
 
21742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21743
  (eval $ac_try) 2>&5
 
21744
  ac_status=$?
 
21745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21746
  (exit $ac_status); }; }; then
 
21747
  ac_header_compiler=yes
 
21748
else
 
21749
  echo "$as_me: failed program was:" >&5
 
21750
sed 's/^/| /' conftest.$ac_ext >&5
 
21751
 
 
21752
ac_header_compiler=no
 
21753
fi
 
21754
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21755
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21756
echo "${ECHO_T}$ac_header_compiler" >&6
 
21757
 
 
21758
# Is the header present?
 
21759
echo "$as_me:$LINENO: checking linux/ipmi.h presence" >&5
 
21760
echo $ECHO_N "checking linux/ipmi.h presence... $ECHO_C" >&6
 
21761
cat >conftest.$ac_ext <<_ACEOF
 
21762
/* confdefs.h.  */
 
21763
_ACEOF
 
21764
cat confdefs.h >>conftest.$ac_ext
 
21765
cat >>conftest.$ac_ext <<_ACEOF
 
21766
/* end confdefs.h.  */
 
21767
#include <linux/ipmi.h>
 
21768
_ACEOF
 
21769
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21770
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21771
  ac_status=$?
 
21772
  grep -v '^ *+' conftest.er1 >conftest.err
 
21773
  rm -f conftest.er1
 
21774
  cat conftest.err >&5
 
21775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21776
  (exit $ac_status); } >/dev/null; then
 
21777
  if test -s conftest.err; then
 
21778
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21779
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21780
  else
 
21781
    ac_cpp_err=
 
21782
  fi
 
21783
else
 
21784
  ac_cpp_err=yes
 
21785
fi
 
21786
if test -z "$ac_cpp_err"; then
 
21787
  ac_header_preproc=yes
 
21788
else
 
21789
  echo "$as_me: failed program was:" >&5
 
21790
sed 's/^/| /' conftest.$ac_ext >&5
 
21791
 
 
21792
  ac_header_preproc=no
 
21793
fi
 
21794
rm -f conftest.err conftest.$ac_ext
 
21795
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21796
echo "${ECHO_T}$ac_header_preproc" >&6
 
21797
 
 
21798
# So?  What about this header?
 
21799
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21800
  yes:no: )
 
21801
    { echo "$as_me:$LINENO: WARNING: linux/ipmi.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21802
echo "$as_me: WARNING: linux/ipmi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21803
    { echo "$as_me:$LINENO: WARNING: linux/ipmi.h: proceeding with the compiler's result" >&5
 
21804
echo "$as_me: WARNING: linux/ipmi.h: proceeding with the compiler's result" >&2;}
 
21805
    ac_header_preproc=yes
 
21806
    ;;
 
21807
  no:yes:* )
 
21808
    { echo "$as_me:$LINENO: WARNING: linux/ipmi.h: present but cannot be compiled" >&5
 
21809
echo "$as_me: WARNING: linux/ipmi.h: present but cannot be compiled" >&2;}
 
21810
    { echo "$as_me:$LINENO: WARNING: linux/ipmi.h:     check for missing prerequisite headers?" >&5
 
21811
echo "$as_me: WARNING: linux/ipmi.h:     check for missing prerequisite headers?" >&2;}
 
21812
    { echo "$as_me:$LINENO: WARNING: linux/ipmi.h: see the Autoconf documentation" >&5
 
21813
echo "$as_me: WARNING: linux/ipmi.h: see the Autoconf documentation" >&2;}
 
21814
    { echo "$as_me:$LINENO: WARNING: linux/ipmi.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21815
echo "$as_me: WARNING: linux/ipmi.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21816
    { echo "$as_me:$LINENO: WARNING: linux/ipmi.h: proceeding with the preprocessor's result" >&5
 
21817
echo "$as_me: WARNING: linux/ipmi.h: proceeding with the preprocessor's result" >&2;}
 
21818
    { echo "$as_me:$LINENO: WARNING: linux/ipmi.h: in the future, the compiler will take precedence" >&5
 
21819
echo "$as_me: WARNING: linux/ipmi.h: in the future, the compiler will take precedence" >&2;}
 
21820
    (
 
21821
      cat <<\_ASBOX
 
21822
## ------------------------------------------ ##
 
21823
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21824
## ------------------------------------------ ##
 
21825
_ASBOX
 
21826
    ) |
 
21827
      sed "s/^/$as_me: WARNING:     /" >&2
 
21828
    ;;
 
21829
esac
 
21830
echo "$as_me:$LINENO: checking for linux/ipmi.h" >&5
 
21831
echo $ECHO_N "checking for linux/ipmi.h... $ECHO_C" >&6
 
21832
if test "${ac_cv_header_linux_ipmi_h+set}" = set; then
 
21833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21834
else
 
21835
  ac_cv_header_linux_ipmi_h=$ac_header_preproc
 
21836
fi
 
21837
echo "$as_me:$LINENO: result: $ac_cv_header_linux_ipmi_h" >&5
 
21838
echo "${ECHO_T}$ac_cv_header_linux_ipmi_h" >&6
 
21839
 
 
21840
fi
 
21841
if test $ac_cv_header_linux_ipmi_h = yes; then
 
21842
 
 
21843
cat >>confdefs.h <<\_ACEOF
 
21844
#define HAVE_OPENIPMI_H 1
 
21845
_ACEOF
 
21846
 
 
21847
else
 
21848
  echo "** Unable to find OpenIPMI header files.  Using internal version."
 
21849
fi
 
21850
 
 
21851
 
 
21852
 
 
21853
# Check whether --enable-intf-open or --disable-intf-open was given.
 
21854
if test "${enable_intf_open+set}" = set; then
 
21855
  enableval="$enable_intf_open"
 
21856
 
 
21857
else
 
21858
  enable_intf_open=yes
 
21859
fi;
 
21860
if test "x$enable_intf_open" = "xstatic" || test "x$enable_intf_open" = "xplugin"; then
 
21861
   enable_intf_open=yes
 
21862
fi
 
21863
if test "x$enable_intf_open" = "xyes"; then
 
21864
 
 
21865
cat >>confdefs.h <<\_ACEOF
 
21866
#define IPMI_INTF_OPEN 1
 
21867
_ACEOF
 
21868
 
 
21869
    INTF_OPEN=open
 
21870
 
 
21871
    INTF_OPEN_LIB=libintf_open.la
 
21872
 
 
21873
    IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB open/libintf_open.la"
 
21874
fi
 
21875
 
 
21876
# Check whether --enable-intf-imb or --disable-intf-imb was given.
 
21877
if test "${enable_intf_imb+set}" = set; then
 
21878
  enableval="$enable_intf_imb"
 
21879
 
 
21880
else
 
21881
  enable_intf_imb=yes
 
21882
fi;
 
21883
if test "x$enable_intf_imb" = "xstatic" || test "x$enable_intf_imb" = "xplugin"; then
 
21884
   enable_intf_imb=yes
 
21885
fi
 
21886
if test "x$enable_intf_imb" = "xyes"; then
 
21887
 
 
21888
cat >>confdefs.h <<\_ACEOF
 
21889
#define IPMI_INTF_IMB 1
 
21890
_ACEOF
 
21891
 
 
21892
    INTF_IMB=imb
 
21893
 
 
21894
    INTF_IMB_LIB=libintf_imb.la
 
21895
 
 
21896
    IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB imb/libintf_imb.la"
 
21897
fi
 
21898
 
 
21899
if test "${ac_cv_header_sys_lipmi_lipmi_intf_h+set}" = set; then
 
21900
  echo "$as_me:$LINENO: checking for sys/lipmi/lipmi_intf.h" >&5
 
21901
echo $ECHO_N "checking for sys/lipmi/lipmi_intf.h... $ECHO_C" >&6
 
21902
if test "${ac_cv_header_sys_lipmi_lipmi_intf_h+set}" = set; then
 
21903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21904
fi
 
21905
echo "$as_me:$LINENO: result: $ac_cv_header_sys_lipmi_lipmi_intf_h" >&5
 
21906
echo "${ECHO_T}$ac_cv_header_sys_lipmi_lipmi_intf_h" >&6
 
21907
else
 
21908
  # Is the header compilable?
 
21909
echo "$as_me:$LINENO: checking sys/lipmi/lipmi_intf.h usability" >&5
 
21910
echo $ECHO_N "checking sys/lipmi/lipmi_intf.h usability... $ECHO_C" >&6
 
21911
cat >conftest.$ac_ext <<_ACEOF
 
21912
/* confdefs.h.  */
 
21913
_ACEOF
 
21914
cat confdefs.h >>conftest.$ac_ext
 
21915
cat >>conftest.$ac_ext <<_ACEOF
 
21916
/* end confdefs.h.  */
 
21917
$ac_includes_default
 
21918
#include <sys/lipmi/lipmi_intf.h>
 
21919
_ACEOF
 
21920
rm -f conftest.$ac_objext
 
21921
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21922
  (eval $ac_compile) 2>conftest.er1
 
21923
  ac_status=$?
 
21924
  grep -v '^ *+' conftest.er1 >conftest.err
 
21925
  rm -f conftest.er1
 
21926
  cat conftest.err >&5
 
21927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21928
  (exit $ac_status); } &&
 
21929
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21931
  (eval $ac_try) 2>&5
 
21932
  ac_status=$?
 
21933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21934
  (exit $ac_status); }; } &&
 
21935
         { ac_try='test -s conftest.$ac_objext'
 
21936
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21937
  (eval $ac_try) 2>&5
 
21938
  ac_status=$?
 
21939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21940
  (exit $ac_status); }; }; then
 
21941
  ac_header_compiler=yes
 
21942
else
 
21943
  echo "$as_me: failed program was:" >&5
 
21944
sed 's/^/| /' conftest.$ac_ext >&5
 
21945
 
 
21946
ac_header_compiler=no
 
21947
fi
 
21948
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21949
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21950
echo "${ECHO_T}$ac_header_compiler" >&6
 
21951
 
 
21952
# Is the header present?
 
21953
echo "$as_me:$LINENO: checking sys/lipmi/lipmi_intf.h presence" >&5
 
21954
echo $ECHO_N "checking sys/lipmi/lipmi_intf.h presence... $ECHO_C" >&6
 
21955
cat >conftest.$ac_ext <<_ACEOF
 
21956
/* confdefs.h.  */
 
21957
_ACEOF
 
21958
cat confdefs.h >>conftest.$ac_ext
 
21959
cat >>conftest.$ac_ext <<_ACEOF
 
21960
/* end confdefs.h.  */
 
21961
#include <sys/lipmi/lipmi_intf.h>
 
21962
_ACEOF
 
21963
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21964
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21965
  ac_status=$?
 
21966
  grep -v '^ *+' conftest.er1 >conftest.err
 
21967
  rm -f conftest.er1
 
21968
  cat conftest.err >&5
 
21969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21970
  (exit $ac_status); } >/dev/null; then
 
21971
  if test -s conftest.err; then
 
21972
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21973
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21974
  else
 
21975
    ac_cpp_err=
 
21976
  fi
 
21977
else
 
21978
  ac_cpp_err=yes
 
21979
fi
 
21980
if test -z "$ac_cpp_err"; then
 
21981
  ac_header_preproc=yes
 
21982
else
 
21983
  echo "$as_me: failed program was:" >&5
 
21984
sed 's/^/| /' conftest.$ac_ext >&5
 
21985
 
 
21986
  ac_header_preproc=no
 
21987
fi
 
21988
rm -f conftest.err conftest.$ac_ext
 
21989
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21990
echo "${ECHO_T}$ac_header_preproc" >&6
 
21991
 
 
21992
# So?  What about this header?
 
21993
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21994
  yes:no: )
 
21995
    { echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21996
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21997
    { echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: proceeding with the compiler's result" >&5
 
21998
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: proceeding with the compiler's result" >&2;}
 
21999
    ac_header_preproc=yes
 
22000
    ;;
 
22001
  no:yes:* )
 
22002
    { echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: present but cannot be compiled" >&5
 
22003
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: present but cannot be compiled" >&2;}
 
22004
    { echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h:     check for missing prerequisite headers?" >&5
 
22005
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h:     check for missing prerequisite headers?" >&2;}
 
22006
    { echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: see the Autoconf documentation" >&5
 
22007
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: see the Autoconf documentation" >&2;}
 
22008
    { echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h:     section \"Present But Cannot Be Compiled\"" >&5
 
22009
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22010
    { echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: proceeding with the preprocessor's result" >&5
 
22011
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: proceeding with the preprocessor's result" >&2;}
 
22012
    { echo "$as_me:$LINENO: WARNING: sys/lipmi/lipmi_intf.h: in the future, the compiler will take precedence" >&5
 
22013
echo "$as_me: WARNING: sys/lipmi/lipmi_intf.h: in the future, the compiler will take precedence" >&2;}
 
22014
    (
 
22015
      cat <<\_ASBOX
 
22016
## ------------------------------------------ ##
 
22017
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22018
## ------------------------------------------ ##
 
22019
_ASBOX
 
22020
    ) |
 
22021
      sed "s/^/$as_me: WARNING:     /" >&2
 
22022
    ;;
 
22023
esac
 
22024
echo "$as_me:$LINENO: checking for sys/lipmi/lipmi_intf.h" >&5
 
22025
echo $ECHO_N "checking for sys/lipmi/lipmi_intf.h... $ECHO_C" >&6
 
22026
if test "${ac_cv_header_sys_lipmi_lipmi_intf_h+set}" = set; then
 
22027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22028
else
 
22029
  ac_cv_header_sys_lipmi_lipmi_intf_h=$ac_header_preproc
 
22030
fi
 
22031
echo "$as_me:$LINENO: result: $ac_cv_header_sys_lipmi_lipmi_intf_h" >&5
 
22032
echo "${ECHO_T}$ac_cv_header_sys_lipmi_lipmi_intf_h" >&6
 
22033
 
 
22034
fi
 
22035
if test $ac_cv_header_sys_lipmi_lipmi_intf_h = yes; then
 
22036
  have_lipmi=yes
 
22037
else
 
22038
  have_lipmi=no
 
22039
fi
 
22040
 
 
22041
 
 
22042
# Check whether --enable-intf-lipmi or --disable-intf-lipmi was given.
 
22043
if test "${enable_intf_lipmi+set}" = set; then
 
22044
  enableval="$enable_intf_lipmi"
 
22045
  if test "x$enable_intf_lipmi" != "xno" && test "x$have_lipmi" != "xyes"; then
 
22046
            echo "** Unable to build Solaris 9 x86 IPMI interface support!"
 
22047
            enable_intf_lipmi=no
 
22048
        fi
 
22049
else
 
22050
  enable_intf_lipmi=no
 
22051
fi;
 
22052
if test "x$enable_intf_lipmi" = "xstatic" || test "x$enable_intf_lipmi" = "xplugin"; then
 
22053
   enable_intf_lipmi=yes
 
22054
fi
 
22055
if test "x$enable_intf_lipmi" = "xyes"; then
 
22056
 
 
22057
cat >>confdefs.h <<\_ACEOF
 
22058
#define IPMI_INTF_LIPMI 1
 
22059
_ACEOF
 
22060
 
 
22061
    INTF_LIPMI=lipmi
 
22062
 
 
22063
    INTF_LIPMI_LIB=libintf_lipmi.la
 
22064
 
 
22065
    IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB lipmi/libintf_lipmi.la"
 
22066
fi
 
22067
 
 
22068
# Check whether --enable-intf-bmc or --disable-intf-bmc was given.
 
22069
if test "${enable_intf_bmc+set}" = set; then
 
22070
  enableval="$enable_intf_bmc"
 
22071
 
 
22072
else
 
22073
  enable_intf_bmc=no
 
22074
fi;
 
22075
if test "x$enable_intf_bmc" = "xstatic" || test "x$enable_intf_bmc" = "xplugin"; then
 
22076
   enable_intf_bmc=yes
 
22077
fi
 
22078
if test "x$enable_intf_bmc" = "xyes"; then
 
22079
 
 
22080
cat >>confdefs.h <<\_ACEOF
 
22081
#define IPMI_INTF_BMC 1
 
22082
_ACEOF
 
22083
 
 
22084
    INTF_BMC=bmc
 
22085
 
 
22086
    INTF_BMC_LIB=libintf_bmc.la
 
22087
 
 
22088
    IPMITOOL_INTF_LIB="$IPMITOOL_INTF_LIB bmc/libintf_bmc.la"
 
22089
fi
 
22090
 
 
22091
 
 
22092
 
 
22093
# Check whether --enable-ipmishell or --disable-ipmishell was given.
 
22094
if test "${enable_ipmishell+set}" = set; then
 
22095
  enableval="$enable_ipmishell"
 
22096
 
 
22097
else
 
22098
  enable_ipmishell=yes
 
22099
fi;
 
22100
if test "x$enable_ipmishell" = "xyes"; then
 
22101
        echo "$as_me:$LINENO: checking for library containing readline" >&5
 
22102
echo $ECHO_N "checking for library containing readline... $ECHO_C" >&6
 
22103
if test "${ac_cv_search_readline+set}" = set; then
 
22104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22105
else
 
22106
  ac_func_search_save_LIBS=$LIBS
 
22107
ac_cv_search_readline=no
 
22108
cat >conftest.$ac_ext <<_ACEOF
 
22109
/* confdefs.h.  */
 
22110
_ACEOF
 
22111
cat confdefs.h >>conftest.$ac_ext
 
22112
cat >>conftest.$ac_ext <<_ACEOF
 
22113
/* end confdefs.h.  */
 
22114
 
 
22115
/* Override any gcc2 internal prototype to avoid an error.  */
 
22116
#ifdef __cplusplus
 
22117
extern "C"
 
22118
#endif
 
22119
/* We use char because int might match the return type of a gcc2
 
22120
   builtin and then its argument prototype would still apply.  */
 
22121
char readline ();
 
22122
int
 
22123
main ()
 
22124
{
 
22125
readline ();
 
22126
  ;
 
22127
  return 0;
 
22128
}
 
22129
_ACEOF
 
22130
rm -f conftest.$ac_objext conftest$ac_exeext
 
22131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22132
  (eval $ac_link) 2>conftest.er1
 
22133
  ac_status=$?
 
22134
  grep -v '^ *+' conftest.er1 >conftest.err
 
22135
  rm -f conftest.er1
 
22136
  cat conftest.err >&5
 
22137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22138
  (exit $ac_status); } &&
 
22139
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22141
  (eval $ac_try) 2>&5
 
22142
  ac_status=$?
 
22143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22144
  (exit $ac_status); }; } &&
 
22145
         { ac_try='test -s conftest$ac_exeext'
 
22146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22147
  (eval $ac_try) 2>&5
 
22148
  ac_status=$?
 
22149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22150
  (exit $ac_status); }; }; then
 
22151
  ac_cv_search_readline="none required"
 
22152
else
 
22153
  echo "$as_me: failed program was:" >&5
 
22154
sed 's/^/| /' conftest.$ac_ext >&5
 
22155
 
 
22156
fi
 
22157
rm -f conftest.err conftest.$ac_objext \
 
22158
      conftest$ac_exeext conftest.$ac_ext
 
22159
if test "$ac_cv_search_readline" = no; then
 
22160
  for ac_lib in readline; do
 
22161
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
22162
    cat >conftest.$ac_ext <<_ACEOF
 
22163
/* confdefs.h.  */
 
22164
_ACEOF
 
22165
cat confdefs.h >>conftest.$ac_ext
 
22166
cat >>conftest.$ac_ext <<_ACEOF
 
22167
/* end confdefs.h.  */
 
22168
 
 
22169
/* Override any gcc2 internal prototype to avoid an error.  */
 
22170
#ifdef __cplusplus
 
22171
extern "C"
 
22172
#endif
 
22173
/* We use char because int might match the return type of a gcc2
 
22174
   builtin and then its argument prototype would still apply.  */
 
22175
char readline ();
 
22176
int
 
22177
main ()
 
22178
{
 
22179
readline ();
 
22180
  ;
 
22181
  return 0;
 
22182
}
 
22183
_ACEOF
 
22184
rm -f conftest.$ac_objext conftest$ac_exeext
 
22185
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22186
  (eval $ac_link) 2>conftest.er1
 
22187
  ac_status=$?
 
22188
  grep -v '^ *+' conftest.er1 >conftest.err
 
22189
  rm -f conftest.er1
 
22190
  cat conftest.err >&5
 
22191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22192
  (exit $ac_status); } &&
 
22193
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22194
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22195
  (eval $ac_try) 2>&5
 
22196
  ac_status=$?
 
22197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22198
  (exit $ac_status); }; } &&
 
22199
         { ac_try='test -s conftest$ac_exeext'
 
22200
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22201
  (eval $ac_try) 2>&5
 
22202
  ac_status=$?
 
22203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22204
  (exit $ac_status); }; }; then
 
22205
  ac_cv_search_readline="-l$ac_lib"
 
22206
break
 
22207
else
 
22208
  echo "$as_me: failed program was:" >&5
 
22209
sed 's/^/| /' conftest.$ac_ext >&5
 
22210
 
 
22211
fi
 
22212
rm -f conftest.err conftest.$ac_objext \
 
22213
      conftest$ac_exeext conftest.$ac_ext
 
22214
  done
 
22215
fi
 
22216
LIBS=$ac_func_search_save_LIBS
 
22217
fi
 
22218
echo "$as_me:$LINENO: result: $ac_cv_search_readline" >&5
 
22219
echo "${ECHO_T}$ac_cv_search_readline" >&6
 
22220
if test "$ac_cv_search_readline" != no; then
 
22221
  test "$ac_cv_search_readline" = "none required" || LIBS="$ac_cv_search_readline $LIBS"
 
22222
  have_readline=yes
 
22223
fi
 
22224
 
 
22225
        echo "$as_me:$LINENO: checking for library containing initscr" >&5
 
22226
echo $ECHO_N "checking for library containing initscr... $ECHO_C" >&6
 
22227
if test "${ac_cv_search_initscr+set}" = set; then
 
22228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22229
else
 
22230
  ac_func_search_save_LIBS=$LIBS
 
22231
ac_cv_search_initscr=no
 
22232
cat >conftest.$ac_ext <<_ACEOF
 
22233
/* confdefs.h.  */
 
22234
_ACEOF
 
22235
cat confdefs.h >>conftest.$ac_ext
 
22236
cat >>conftest.$ac_ext <<_ACEOF
 
22237
/* end confdefs.h.  */
 
22238
 
 
22239
/* Override any gcc2 internal prototype to avoid an error.  */
 
22240
#ifdef __cplusplus
 
22241
extern "C"
 
22242
#endif
 
22243
/* We use char because int might match the return type of a gcc2
 
22244
   builtin and then its argument prototype would still apply.  */
 
22245
char initscr ();
 
22246
int
 
22247
main ()
 
22248
{
 
22249
initscr ();
 
22250
  ;
 
22251
  return 0;
 
22252
}
 
22253
_ACEOF
 
22254
rm -f conftest.$ac_objext conftest$ac_exeext
 
22255
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22256
  (eval $ac_link) 2>conftest.er1
 
22257
  ac_status=$?
 
22258
  grep -v '^ *+' conftest.er1 >conftest.err
 
22259
  rm -f conftest.er1
 
22260
  cat conftest.err >&5
 
22261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22262
  (exit $ac_status); } &&
 
22263
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22264
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22265
  (eval $ac_try) 2>&5
 
22266
  ac_status=$?
 
22267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22268
  (exit $ac_status); }; } &&
 
22269
         { ac_try='test -s conftest$ac_exeext'
 
22270
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22271
  (eval $ac_try) 2>&5
 
22272
  ac_status=$?
 
22273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22274
  (exit $ac_status); }; }; then
 
22275
  ac_cv_search_initscr="none required"
 
22276
else
 
22277
  echo "$as_me: failed program was:" >&5
 
22278
sed 's/^/| /' conftest.$ac_ext >&5
 
22279
 
 
22280
fi
 
22281
rm -f conftest.err conftest.$ac_objext \
 
22282
      conftest$ac_exeext conftest.$ac_ext
 
22283
if test "$ac_cv_search_initscr" = no; then
 
22284
  for ac_lib in curses ncurses; do
 
22285
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
22286
    cat >conftest.$ac_ext <<_ACEOF
 
22287
/* confdefs.h.  */
 
22288
_ACEOF
 
22289
cat confdefs.h >>conftest.$ac_ext
 
22290
cat >>conftest.$ac_ext <<_ACEOF
 
22291
/* end confdefs.h.  */
 
22292
 
 
22293
/* Override any gcc2 internal prototype to avoid an error.  */
 
22294
#ifdef __cplusplus
 
22295
extern "C"
 
22296
#endif
 
22297
/* We use char because int might match the return type of a gcc2
 
22298
   builtin and then its argument prototype would still apply.  */
 
22299
char initscr ();
 
22300
int
 
22301
main ()
 
22302
{
 
22303
initscr ();
 
22304
  ;
 
22305
  return 0;
 
22306
}
 
22307
_ACEOF
 
22308
rm -f conftest.$ac_objext conftest$ac_exeext
 
22309
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22310
  (eval $ac_link) 2>conftest.er1
 
22311
  ac_status=$?
 
22312
  grep -v '^ *+' conftest.er1 >conftest.err
 
22313
  rm -f conftest.er1
 
22314
  cat conftest.err >&5
 
22315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22316
  (exit $ac_status); } &&
 
22317
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22319
  (eval $ac_try) 2>&5
 
22320
  ac_status=$?
 
22321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22322
  (exit $ac_status); }; } &&
 
22323
         { ac_try='test -s conftest$ac_exeext'
 
22324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22325
  (eval $ac_try) 2>&5
 
22326
  ac_status=$?
 
22327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22328
  (exit $ac_status); }; }; then
 
22329
  ac_cv_search_initscr="-l$ac_lib"
 
22330
break
 
22331
else
 
22332
  echo "$as_me: failed program was:" >&5
 
22333
sed 's/^/| /' conftest.$ac_ext >&5
 
22334
 
 
22335
fi
 
22336
rm -f conftest.err conftest.$ac_objext \
 
22337
      conftest$ac_exeext conftest.$ac_ext
 
22338
  done
 
22339
fi
 
22340
LIBS=$ac_func_search_save_LIBS
 
22341
fi
 
22342
echo "$as_me:$LINENO: result: $ac_cv_search_initscr" >&5
 
22343
echo "${ECHO_T}$ac_cv_search_initscr" >&6
 
22344
if test "$ac_cv_search_initscr" != no; then
 
22345
  test "$ac_cv_search_initscr" = "none required" || LIBS="$ac_cv_search_initscr $LIBS"
 
22346
  have_curses=yes
 
22347
fi
 
22348
 
 
22349
        if test "x$have_curses" = "xyes" && test "x$have_readline" = "xyes"; then
 
22350
 
 
22351
cat >>confdefs.h <<\_ACEOF
 
22352
#define HAVE_READLINE 1
 
22353
_ACEOF
 
22354
 
 
22355
        fi
 
22356
fi
 
22357
 
 
22358
# Check whether --enable-ipmievd or --disable-ipmievd was given.
 
22359
if test "${enable_ipmievd+set}" = set; then
 
22360
  enableval="$enable_ipmievd"
 
22361
 
 
22362
else
 
22363
  enable_ipmievd=yes
 
22364
fi;
 
22365
 
 
22366
 
 
22367
if test "x$enable_ipmievd" = "xyes"; then
 
22368
  IPMIEVD_TRUE=
 
22369
  IPMIEVD_FALSE='#'
 
22370
else
 
22371
  IPMIEVD_TRUE='#'
 
22372
  IPMIEVD_FALSE=
 
22373
fi
 
22374
 
 
22375
if test "x$enable_ipmievd" = "xyes"; then
 
22376
    IPMIEVD_BIN=ipmievd
 
22377
 
 
22378
fi
 
22379
 
 
22380
# Check whether --enable-buildcheck or --disable-buildcheck was given.
 
22381
if test "${enable_buildcheck+set}" = set; then
 
22382
  enableval="$enable_buildcheck"
 
22383
  if test "x$enable_buildcheck" != "xno"; then
 
22384
            CFLAGS="$CFLAGS -Wall -Werror"
 
22385
        fi
 
22386
fi;
 
22387
 
 
22388
 
 
22389
 
 
22390
                                                                                                                                                                                    ac_config_files="$ac_config_files Makefile doc/Makefile contrib/Makefile control/Makefile control/pkginfo control/prototype control/ipmitool.spec lib/Makefile include/Makefile include/ipmitool/Makefile src/Makefile src/plugins/Makefile src/plugins/lan/Makefile src/plugins/lanplus/Makefile src/plugins/open/Makefile src/plugins/imb/Makefile src/plugins/bmc/Makefile src/plugins/lipmi/Makefile"
 
22391
 
 
22392
 
 
22393
cat >confcache <<\_ACEOF
 
22394
# This file is a shell script that caches the results of configure
 
22395
# tests run on this system so they can be shared between configure
 
22396
# scripts and configure runs, see configure's option --config-cache.
 
22397
# It is not useful on other systems.  If it contains results you don't
 
22398
# want to keep, you may remove or edit it.
 
22399
#
 
22400
# config.status only pays attention to the cache file if you give it
 
22401
# the --recheck option to rerun configure.
 
22402
#
 
22403
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22404
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22405
# following values.
 
22406
 
 
22407
_ACEOF
 
22408
 
 
22409
# The following way of writing the cache mishandles newlines in values,
 
22410
# but we know of no workaround that is simple, portable, and efficient.
 
22411
# So, don't put newlines in cache variables' values.
 
22412
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22413
# and sets the high bit in the cache file unless we assign to the vars.
 
22414
{
 
22415
  (set) 2>&1 |
 
22416
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
22417
    *ac_space=\ *)
 
22418
      # `set' does not quote correctly, so add quotes (double-quote
 
22419
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
22420
      sed -n \
 
22421
        "s/'/'\\\\''/g;
 
22422
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22423
      ;;
 
22424
    *)
 
22425
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22426
      sed -n \
 
22427
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
22428
      ;;
 
22429
    esac;
 
22430
} |
 
22431
  sed '
 
22432
     t clear
 
22433
     : clear
 
22434
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22435
     t end
 
22436
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22437
     : end' >>confcache
 
22438
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
22439
  if test -w $cache_file; then
 
22440
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
22441
    cat confcache >$cache_file
 
22442
  else
 
22443
    echo "not updating unwritable cache $cache_file"
 
22444
  fi
 
22445
fi
 
22446
rm -f confcache
 
22447
 
 
22448
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22449
# Let make expand exec_prefix.
 
22450
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22451
 
 
22452
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22453
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22454
# trailing colons and then remove the whole line if VPATH becomes empty
 
22455
# (actually we leave an empty line to preserve line numbers).
 
22456
if test "x$srcdir" = x.; then
 
22457
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22458
s/:*\$(srcdir):*/:/;
 
22459
s/:*\${srcdir}:*/:/;
 
22460
s/:*@srcdir@:*/:/;
 
22461
s/^\([^=]*=[     ]*\):*/\1/;
 
22462
s/:*$//;
 
22463
s/^[^=]*=[       ]*$//;
 
22464
}'
 
22465
fi
 
22466
 
 
22467
DEFS=-DHAVE_CONFIG_H
 
22468
 
 
22469
ac_libobjs=
 
22470
ac_ltlibobjs=
 
22471
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
22472
  # 1. Remove the extension, and $U if already installed.
 
22473
  ac_i=`echo "$ac_i" |
 
22474
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
22475
  # 2. Add them.
 
22476
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
22477
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
22478
done
 
22479
LIBOBJS=$ac_libobjs
 
22480
 
 
22481
LTLIBOBJS=$ac_ltlibobjs
 
22482
 
 
22483
 
 
22484
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22485
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22486
Usually this means the macro was only invoked conditionally." >&5
 
22487
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22488
Usually this means the macro was only invoked conditionally." >&2;}
 
22489
   { (exit 1); exit 1; }; }
 
22490
fi
 
22491
if test -z "${IPMIEVD_TRUE}" && test -z "${IPMIEVD_FALSE}"; then
 
22492
  { { echo "$as_me:$LINENO: error: conditional \"IPMIEVD\" was never defined.
 
22493
Usually this means the macro was only invoked conditionally." >&5
 
22494
echo "$as_me: error: conditional \"IPMIEVD\" was never defined.
 
22495
Usually this means the macro was only invoked conditionally." >&2;}
 
22496
   { (exit 1); exit 1; }; }
 
22497
fi
 
22498
 
 
22499
: ${CONFIG_STATUS=./config.status}
 
22500
ac_clean_files_save=$ac_clean_files
 
22501
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22502
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
22503
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22504
cat >$CONFIG_STATUS <<_ACEOF
 
22505
#! $SHELL
 
22506
# Generated by $as_me.
 
22507
# Run this file to recreate the current configuration.
 
22508
# Compiler output produced by configure, useful for debugging
 
22509
# configure, is in config.log if it exists.
 
22510
 
 
22511
debug=false
 
22512
ac_cs_recheck=false
 
22513
ac_cs_silent=false
 
22514
SHELL=\${CONFIG_SHELL-$SHELL}
 
22515
_ACEOF
 
22516
 
 
22517
cat >>$CONFIG_STATUS <<\_ACEOF
 
22518
## --------------------- ##
 
22519
## M4sh Initialization.  ##
 
22520
## --------------------- ##
 
22521
 
 
22522
# Be Bourne compatible
 
22523
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
22524
  emulate sh
 
22525
  NULLCMD=:
 
22526
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22527
  # is contrary to our usage.  Disable this feature.
 
22528
  alias -g '${1+"$@"}'='"$@"'
 
22529
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22530
  set -o posix
 
22531
fi
 
22532
DUALCASE=1; export DUALCASE # for MKS sh
 
22533
 
 
22534
# Support unset when possible.
 
22535
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22536
  as_unset=unset
 
22537
else
 
22538
  as_unset=false
 
22539
fi
 
22540
 
 
22541
 
 
22542
# Work around bugs in pre-3.0 UWIN ksh.
 
22543
$as_unset ENV MAIL MAILPATH
 
22544
PS1='$ '
 
22545
PS2='> '
 
22546
PS4='+ '
 
22547
 
 
22548
# NLS nuisances.
 
22549
for as_var in \
 
22550
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
22551
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
22552
  LC_TELEPHONE LC_TIME
 
22553
do
 
22554
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22555
    eval $as_var=C; export $as_var
 
22556
  else
 
22557
    $as_unset $as_var
 
22558
  fi
 
22559
done
 
22560
 
 
22561
# Required to use basename.
 
22562
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22563
  as_expr=expr
 
22564
else
 
22565
  as_expr=false
 
22566
fi
 
22567
 
 
22568
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
22569
  as_basename=basename
 
22570
else
 
22571
  as_basename=false
 
22572
fi
 
22573
 
 
22574
 
 
22575
# Name of the executable.
 
22576
as_me=`$as_basename "$0" ||
 
22577
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22578
         X"$0" : 'X\(//\)$' \| \
 
22579
         X"$0" : 'X\(/\)$' \| \
 
22580
         .     : '\(.\)' 2>/dev/null ||
 
22581
echo X/"$0" |
 
22582
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
22583
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
22584
          /^X\/\(\/\).*/{ s//\1/; q; }
 
22585
          s/.*/./; q'`
 
22586
 
 
22587
 
 
22588
# PATH needs CR, and LINENO needs CR and PATH.
 
22589
# Avoid depending upon Character Ranges.
 
22590
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22591
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22592
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22593
as_cr_digits='0123456789'
 
22594
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22595
 
 
22596
# The user is always right.
 
22597
if test "${PATH_SEPARATOR+set}" != set; then
 
22598
  echo "#! /bin/sh" >conf$$.sh
 
22599
  echo  "exit 0"   >>conf$$.sh
 
22600
  chmod +x conf$$.sh
 
22601
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22602
    PATH_SEPARATOR=';'
 
22603
  else
 
22604
    PATH_SEPARATOR=:
 
22605
  fi
 
22606
  rm -f conf$$.sh
 
22607
fi
 
22608
 
 
22609
 
 
22610
  as_lineno_1=$LINENO
 
22611
  as_lineno_2=$LINENO
 
22612
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22613
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22614
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
22615
  # Find who we are.  Look in the path if we contain no path at all
 
22616
  # relative or not.
 
22617
  case $0 in
 
22618
    *[\\/]* ) as_myself=$0 ;;
 
22619
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22620
for as_dir in $PATH
 
22621
do
 
22622
  IFS=$as_save_IFS
 
22623
  test -z "$as_dir" && as_dir=.
 
22624
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22625
done
 
22626
 
 
22627
       ;;
 
22628
  esac
 
22629
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
22630
  # in which case we are not to be found in the path.
 
22631
  if test "x$as_myself" = x; then
 
22632
    as_myself=$0
 
22633
  fi
 
22634
  if test ! -f "$as_myself"; then
 
22635
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
22636
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
22637
   { (exit 1); exit 1; }; }
 
22638
  fi
 
22639
  case $CONFIG_SHELL in
 
22640
  '')
 
22641
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22642
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
22643
do
 
22644
  IFS=$as_save_IFS
 
22645
  test -z "$as_dir" && as_dir=.
 
22646
  for as_base in sh bash ksh sh5; do
 
22647
         case $as_dir in
 
22648
         /*)
 
22649
           if ("$as_dir/$as_base" -c '
 
22650
  as_lineno_1=$LINENO
 
22651
  as_lineno_2=$LINENO
 
22652
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22653
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22654
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
22655
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
22656
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
22657
             CONFIG_SHELL=$as_dir/$as_base
 
22658
             export CONFIG_SHELL
 
22659
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
22660
           fi;;
 
22661
         esac
 
22662
       done
 
22663
done
 
22664
;;
 
22665
  esac
 
22666
 
 
22667
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22668
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22669
  # line-number line before each line; the second 'sed' does the real
 
22670
  # work.  The second script uses 'N' to pair each line-number line
 
22671
  # with the numbered line, and appends trailing '-' during
 
22672
  # substitution so that $LINENO is not a special case at line end.
 
22673
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22674
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
22675
  sed '=' <$as_myself |
 
22676
    sed '
 
22677
      N
 
22678
      s,$,-,
 
22679
      : loop
 
22680
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
22681
      t loop
 
22682
      s,-$,,
 
22683
      s,^['$as_cr_digits']*\n,,
 
22684
    ' >$as_me.lineno &&
 
22685
  chmod +x $as_me.lineno ||
 
22686
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
22687
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
22688
   { (exit 1); exit 1; }; }
 
22689
 
 
22690
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22691
  # (the dirname of $[0] is not the place where we might find the
 
22692
  # original and so on.  Autoconf is especially sensible to this).
 
22693
  . ./$as_me.lineno
 
22694
  # Exit status is that of the last command.
 
22695
  exit
 
22696
}
 
22697
 
 
22698
 
 
22699
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
22700
  *c*,-n*) ECHO_N= ECHO_C='
 
22701
' ECHO_T='      ' ;;
 
22702
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
22703
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
22704
esac
 
22705
 
 
22706
if expr a : '\(a\)' >/dev/null 2>&1; then
 
22707
  as_expr=expr
 
22708
else
 
22709
  as_expr=false
 
22710
fi
 
22711
 
 
22712
rm -f conf$$ conf$$.exe conf$$.file
 
22713
echo >conf$$.file
 
22714
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22715
  # We could just check for DJGPP; but this test a) works b) is more generic
 
22716
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
22717
  if test -f conf$$.exe; then
 
22718
    # Don't use ln at all; we don't have any links
 
22719
    as_ln_s='cp -p'
 
22720
  else
 
22721
    as_ln_s='ln -s'
 
22722
  fi
 
22723
elif ln conf$$.file conf$$ 2>/dev/null; then
 
22724
  as_ln_s=ln
 
22725
else
 
22726
  as_ln_s='cp -p'
 
22727
fi
 
22728
rm -f conf$$ conf$$.exe conf$$.file
 
22729
 
 
22730
if mkdir -p . 2>/dev/null; then
 
22731
  as_mkdir_p=:
 
22732
else
 
22733
  test -d ./-p && rmdir ./-p
 
22734
  as_mkdir_p=false
 
22735
fi
 
22736
 
 
22737
as_executable_p="test -f"
 
22738
 
 
22739
# Sed expression to map a string onto a valid CPP name.
 
22740
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22741
 
 
22742
# Sed expression to map a string onto a valid variable name.
 
22743
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22744
 
 
22745
 
 
22746
# IFS
 
22747
# We need space, tab and new line, in precisely that order.
 
22748
as_nl='
 
22749
'
 
22750
IFS="   $as_nl"
 
22751
 
 
22752
# CDPATH.
 
22753
$as_unset CDPATH
 
22754
 
 
22755
exec 6>&1
 
22756
 
 
22757
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
22758
# report actual input values of CONFIG_FILES etc. instead of their
 
22759
# values after options handling.  Logging --version etc. is OK.
 
22760
exec 5>>config.log
 
22761
{
 
22762
  echo
 
22763
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
22764
## Running $as_me. ##
 
22765
_ASBOX
 
22766
} >&5
 
22767
cat >&5 <<_CSEOF
 
22768
 
 
22769
This file was extended by $as_me, which was
 
22770
generated by GNU Autoconf 2.59.  Invocation command line was
 
22771
 
 
22772
  CONFIG_FILES    = $CONFIG_FILES
 
22773
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22774
  CONFIG_LINKS    = $CONFIG_LINKS
 
22775
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22776
  $ $0 $@
 
22777
 
 
22778
_CSEOF
 
22779
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
22780
echo >&5
 
22781
_ACEOF
 
22782
 
 
22783
# Files that config.status was made for.
 
22784
if test -n "$ac_config_files"; then
 
22785
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
22786
fi
 
22787
 
 
22788
if test -n "$ac_config_headers"; then
 
22789
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
22790
fi
 
22791
 
 
22792
if test -n "$ac_config_links"; then
 
22793
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
22794
fi
 
22795
 
 
22796
if test -n "$ac_config_commands"; then
 
22797
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
22798
fi
 
22799
 
 
22800
cat >>$CONFIG_STATUS <<\_ACEOF
 
22801
 
 
22802
ac_cs_usage="\
 
22803
\`$as_me' instantiates files from templates according to the
 
22804
current configuration.
 
22805
 
 
22806
Usage: $0 [OPTIONS] [FILE]...
 
22807
 
 
22808
  -h, --help       print this help, then exit
 
22809
  -V, --version    print version number, then exit
 
22810
  -q, --quiet      do not print progress messages
 
22811
  -d, --debug      don't remove temporary files
 
22812
      --recheck    update $as_me by reconfiguring in the same conditions
 
22813
  --file=FILE[:TEMPLATE]
 
22814
                   instantiate the configuration file FILE
 
22815
  --header=FILE[:TEMPLATE]
 
22816
                   instantiate the configuration header FILE
 
22817
 
 
22818
Configuration files:
 
22819
$config_files
 
22820
 
 
22821
Configuration headers:
 
22822
$config_headers
 
22823
 
 
22824
Configuration commands:
 
22825
$config_commands
 
22826
 
 
22827
Report bugs to <bug-autoconf@gnu.org>."
 
22828
_ACEOF
 
22829
 
 
22830
cat >>$CONFIG_STATUS <<_ACEOF
 
22831
ac_cs_version="\\
 
22832
config.status
 
22833
configured by $0, generated by GNU Autoconf 2.59,
 
22834
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
22835
 
 
22836
Copyright (C) 2003 Free Software Foundation, Inc.
 
22837
This config.status script is free software; the Free Software Foundation
 
22838
gives unlimited permission to copy, distribute and modify it."
 
22839
srcdir=$srcdir
 
22840
INSTALL="$INSTALL"
 
22841
_ACEOF
 
22842
 
 
22843
cat >>$CONFIG_STATUS <<\_ACEOF
 
22844
# If no file are specified by the user, then we need to provide default
 
22845
# value.  By we need to know if files were specified by the user.
 
22846
ac_need_defaults=:
 
22847
while test $# != 0
 
22848
do
 
22849
  case $1 in
 
22850
  --*=*)
 
22851
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
22852
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
22853
    ac_shift=:
 
22854
    ;;
 
22855
  -*)
 
22856
    ac_option=$1
 
22857
    ac_optarg=$2
 
22858
    ac_shift=shift
 
22859
    ;;
 
22860
  *) # This is not an option, so the user has probably given explicit
 
22861
     # arguments.
 
22862
     ac_option=$1
 
22863
     ac_need_defaults=false;;
 
22864
  esac
 
22865
 
 
22866
  case $ac_option in
 
22867
  # Handling of the options.
 
22868
_ACEOF
 
22869
cat >>$CONFIG_STATUS <<\_ACEOF
 
22870
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22871
    ac_cs_recheck=: ;;
 
22872
  --version | --vers* | -V )
 
22873
    echo "$ac_cs_version"; exit 0 ;;
 
22874
  --he | --h)
 
22875
    # Conflict between --help and --header
 
22876
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
22877
Try \`$0 --help' for more information." >&5
 
22878
echo "$as_me: error: ambiguous option: $1
 
22879
Try \`$0 --help' for more information." >&2;}
 
22880
   { (exit 1); exit 1; }; };;
 
22881
  --help | --hel | -h )
 
22882
    echo "$ac_cs_usage"; exit 0 ;;
 
22883
  --debug | --d* | -d )
 
22884
    debug=: ;;
 
22885
  --file | --fil | --fi | --f )
 
22886
    $ac_shift
 
22887
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
22888
    ac_need_defaults=false;;
 
22889
  --header | --heade | --head | --hea )
 
22890
    $ac_shift
 
22891
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
22892
    ac_need_defaults=false;;
 
22893
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22894
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22895
    ac_cs_silent=: ;;
 
22896
 
 
22897
  # This is an error.
 
22898
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
22899
Try \`$0 --help' for more information." >&5
 
22900
echo "$as_me: error: unrecognized option: $1
 
22901
Try \`$0 --help' for more information." >&2;}
 
22902
   { (exit 1); exit 1; }; } ;;
 
22903
 
 
22904
  *) ac_config_targets="$ac_config_targets $1" ;;
 
22905
 
 
22906
  esac
 
22907
  shift
 
22908
done
 
22909
 
 
22910
ac_configure_extra_args=
 
22911
 
 
22912
if $ac_cs_silent; then
 
22913
  exec 6>/dev/null
 
22914
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22915
fi
 
22916
 
 
22917
_ACEOF
 
22918
cat >>$CONFIG_STATUS <<_ACEOF
 
22919
if \$ac_cs_recheck; then
 
22920
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
22921
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22922
fi
 
22923
 
 
22924
_ACEOF
 
22925
 
 
22926
cat >>$CONFIG_STATUS <<_ACEOF
 
22927
#
 
22928
# INIT-COMMANDS section.
 
22929
#
 
22930
 
 
22931
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
22932
 
 
22933
_ACEOF
 
22934
 
 
22935
 
 
22936
 
 
22937
cat >>$CONFIG_STATUS <<\_ACEOF
 
22938
for ac_config_target in $ac_config_targets
 
22939
do
 
22940
  case "$ac_config_target" in
 
22941
  # Handling of arguments.
 
22942
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22943
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
22944
  "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
 
22945
  "control/Makefile" ) CONFIG_FILES="$CONFIG_FILES control/Makefile" ;;
 
22946
  "control/pkginfo" ) CONFIG_FILES="$CONFIG_FILES control/pkginfo" ;;
 
22947
  "control/prototype" ) CONFIG_FILES="$CONFIG_FILES control/prototype" ;;
 
22948
  "control/ipmitool.spec" ) CONFIG_FILES="$CONFIG_FILES control/ipmitool.spec" ;;
 
22949
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
22950
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
22951
  "include/ipmitool/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/ipmitool/Makefile" ;;
 
22952
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
22953
  "src/plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
 
22954
  "src/plugins/lan/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/lan/Makefile" ;;
 
22955
  "src/plugins/lanplus/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/lanplus/Makefile" ;;
 
22956
  "src/plugins/open/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/open/Makefile" ;;
 
22957
  "src/plugins/imb/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/imb/Makefile" ;;
 
22958
  "src/plugins/bmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/bmc/Makefile" ;;
 
22959
  "src/plugins/lipmi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/lipmi/Makefile" ;;
 
22960
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
22961
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
22962
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
22963
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
22964
   { (exit 1); exit 1; }; };;
 
22965
  esac
 
22966
done
 
22967
 
 
22968
# If the user did not use the arguments to specify the items to instantiate,
 
22969
# then the envvar interface is used.  Set only those that are not.
 
22970
# We use the long form for the default assignment because of an extremely
 
22971
# bizarre bug on SunOS 4.1.3.
 
22972
if $ac_need_defaults; then
 
22973
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
22974
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
22975
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
22976
fi
 
22977
 
 
22978
# Have a temporary directory for convenience.  Make it in the build tree
 
22979
# simply because there is no reason to put it here, and in addition,
 
22980
# creating and moving files from /tmp can sometimes cause problems.
 
22981
# Create a temporary directory, and hook for its removal unless debugging.
 
22982
$debug ||
 
22983
{
 
22984
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
22985
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
22986
}
 
22987
 
 
22988
# Create a (secure) tmp directory for tmp files.
 
22989
 
 
22990
{
 
22991
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
22992
  test -n "$tmp" && test -d "$tmp"
 
22993
}  ||
 
22994
{
 
22995
  tmp=./confstat$$-$RANDOM
 
22996
  (umask 077 && mkdir $tmp)
 
22997
} ||
 
22998
{
 
22999
   echo "$me: cannot create a temporary directory in ." >&2
 
23000
   { (exit 1); exit 1; }
 
23001
}
 
23002
 
 
23003
_ACEOF
 
23004
 
 
23005
cat >>$CONFIG_STATUS <<_ACEOF
 
23006
 
 
23007
#
 
23008
# CONFIG_FILES section.
 
23009
#
 
23010
 
 
23011
# No need to generate the scripts if there are no CONFIG_FILES.
 
23012
# This happens for instance when ./config.status config.h
 
23013
if test -n "\$CONFIG_FILES"; then
 
23014
  # Protect against being on the right side of a sed subst in config.status.
 
23015
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
23016
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
23017
s,@SHELL@,$SHELL,;t t
 
23018
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
23019
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
23020
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
23021
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
23022
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
23023
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
23024
s,@exec_prefix@,$exec_prefix,;t t
 
23025
s,@prefix@,$prefix,;t t
 
23026
s,@program_transform_name@,$program_transform_name,;t t
 
23027
s,@bindir@,$bindir,;t t
 
23028
s,@sbindir@,$sbindir,;t t
 
23029
s,@libexecdir@,$libexecdir,;t t
 
23030
s,@datadir@,$datadir,;t t
 
23031
s,@sysconfdir@,$sysconfdir,;t t
 
23032
s,@sharedstatedir@,$sharedstatedir,;t t
 
23033
s,@localstatedir@,$localstatedir,;t t
 
23034
s,@libdir@,$libdir,;t t
 
23035
s,@includedir@,$includedir,;t t
 
23036
s,@oldincludedir@,$oldincludedir,;t t
 
23037
s,@infodir@,$infodir,;t t
 
23038
s,@mandir@,$mandir,;t t
 
23039
s,@build_alias@,$build_alias,;t t
 
23040
s,@host_alias@,$host_alias,;t t
 
23041
s,@target_alias@,$target_alias,;t t
 
23042
s,@DEFS@,$DEFS,;t t
 
23043
s,@ECHO_C@,$ECHO_C,;t t
 
23044
s,@ECHO_N@,$ECHO_N,;t t
 
23045
s,@ECHO_T@,$ECHO_T,;t t
 
23046
s,@LIBS@,$LIBS,;t t
 
23047
s,@build@,$build,;t t
 
23048
s,@build_cpu@,$build_cpu,;t t
 
23049
s,@build_vendor@,$build_vendor,;t t
 
23050
s,@build_os@,$build_os,;t t
 
23051
s,@host@,$host,;t t
 
23052
s,@host_cpu@,$host_cpu,;t t
 
23053
s,@host_vendor@,$host_vendor,;t t
 
23054
s,@host_os@,$host_os,;t t
 
23055
s,@target@,$target,;t t
 
23056
s,@target_cpu@,$target_cpu,;t t
 
23057
s,@target_vendor@,$target_vendor,;t t
 
23058
s,@target_os@,$target_os,;t t
 
23059
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
23060
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
23061
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
23062
s,@PACKAGE@,$PACKAGE,;t t
 
23063
s,@VERSION@,$VERSION,;t t
 
23064
s,@ACLOCAL@,$ACLOCAL,;t t
 
23065
s,@AUTOCONF@,$AUTOCONF,;t t
 
23066
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
23067
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
23068
s,@MAKEINFO@,$MAKEINFO,;t t
 
23069
s,@AMTAR@,$AMTAR,;t t
 
23070
s,@install_sh@,$install_sh,;t t
 
23071
s,@STRIP@,$STRIP,;t t
 
23072
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
23073
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
23074
s,@AWK@,$AWK,;t t
 
23075
s,@SET_MAKE@,$SET_MAKE,;t t
 
23076
s,@ac_configure_args@,$ac_configure_args,;t t
 
23077
s,@CC@,$CC,;t t
 
23078
s,@CFLAGS@,$CFLAGS,;t t
 
23079
s,@LDFLAGS@,$LDFLAGS,;t t
 
23080
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
23081
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
23082
s,@EXEEXT@,$EXEEXT,;t t
 
23083
s,@OBJEXT@,$OBJEXT,;t t
 
23084
s,@DEPDIR@,$DEPDIR,;t t
 
23085
s,@am__include@,$am__include,;t t
 
23086
s,@am__quote@,$am__quote,;t t
 
23087
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
23088
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
23089
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
23090
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
23091
s,@LN_S@,$LN_S,;t t
 
23092
s,@RPMBUILD@,$RPMBUILD,;t t
 
23093
s,@SED@,$SED,;t t
 
23094
s,@CPP@,$CPP,;t t
 
23095
s,@EGREP@,$EGREP,;t t
 
23096
s,@LIBOBJS@,$LIBOBJS,;t t
 
23097
s,@POW_LIB@,$POW_LIB,;t t
 
23098
s,@ECHO@,$ECHO,;t t
 
23099
s,@AR@,$AR,;t t
 
23100
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
23101
s,@RANLIB@,$RANLIB,;t t
 
23102
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
23103
s,@CXX@,$CXX,;t t
 
23104
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
23105
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
23106
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
23107
s,@CXXCPP@,$CXXCPP,;t t
 
23108
s,@F77@,$F77,;t t
 
23109
s,@FFLAGS@,$FFLAGS,;t t
 
23110
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
23111
s,@LIBTOOL@,$LIBTOOL,;t t
 
23112
s,@ARCH@,$ARCH,;t t
 
23113
s,@OS@,$OS,;t t
 
23114
s,@PSTAMP@,$PSTAMP,;t t
 
23115
s,@BASEDIR@,$BASEDIR,;t t
 
23116
s,@INTF_LAN@,$INTF_LAN,;t t
 
23117
s,@INTF_LAN_LIB@,$INTF_LAN_LIB,;t t
 
23118
s,@INTF_LANPLUS@,$INTF_LANPLUS,;t t
 
23119
s,@INTF_LANPLUS_LIB@,$INTF_LANPLUS_LIB,;t t
 
23120
s,@INTF_OPEN@,$INTF_OPEN,;t t
 
23121
s,@INTF_OPEN_LIB@,$INTF_OPEN_LIB,;t t
 
23122
s,@INTF_IMB@,$INTF_IMB,;t t
 
23123
s,@INTF_IMB_LIB@,$INTF_IMB_LIB,;t t
 
23124
s,@INTF_LIPMI@,$INTF_LIPMI,;t t
 
23125
s,@INTF_LIPMI_LIB@,$INTF_LIPMI_LIB,;t t
 
23126
s,@INTF_BMC@,$INTF_BMC,;t t
 
23127
s,@INTF_BMC_LIB@,$INTF_BMC_LIB,;t t
 
23128
s,@IPMITOOL_INTF_LIB@,$IPMITOOL_INTF_LIB,;t t
 
23129
s,@IPMIEVD_TRUE@,$IPMIEVD_TRUE,;t t
 
23130
s,@IPMIEVD_FALSE@,$IPMIEVD_FALSE,;t t
 
23131
s,@IPMIEVD_BIN@,$IPMIEVD_BIN,;t t
 
23132
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
23133
CEOF
 
23134
 
 
23135
_ACEOF
 
23136
 
 
23137
  cat >>$CONFIG_STATUS <<\_ACEOF
 
23138
  # Split the substitutions into bite-sized pieces for seds with
 
23139
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
23140
  ac_max_sed_lines=48
 
23141
  ac_sed_frag=1 # Number of current file.
 
23142
  ac_beg=1 # First line for current file.
 
23143
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
23144
  ac_more_lines=:
 
23145
  ac_sed_cmds=
 
23146
  while $ac_more_lines; do
 
23147
    if test $ac_beg -gt 1; then
 
23148
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
23149
    else
 
23150
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
23151
    fi
 
23152
    if test ! -s $tmp/subs.frag; then
 
23153
      ac_more_lines=false
 
23154
    else
 
23155
      # The purpose of the label and of the branching condition is to
 
23156
      # speed up the sed processing (if there are no `@' at all, there
 
23157
      # is no need to browse any of the substitutions).
 
23158
      # These are the two extra sed commands mentioned above.
 
23159
      (echo ':t
 
23160
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
23161
      if test -z "$ac_sed_cmds"; then
 
23162
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
23163
      else
 
23164
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
23165
      fi
 
23166
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
23167
      ac_beg=$ac_end
 
23168
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
23169
    fi
 
23170
  done
 
23171
  if test -z "$ac_sed_cmds"; then
 
23172
    ac_sed_cmds=cat
 
23173
  fi
 
23174
fi # test -n "$CONFIG_FILES"
 
23175
 
 
23176
_ACEOF
 
23177
cat >>$CONFIG_STATUS <<\_ACEOF
 
23178
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
23179
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
23180
  case $ac_file in
 
23181
  - | *:- | *:-:* ) # input from stdin
 
23182
        cat >$tmp/stdin
 
23183
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23184
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23185
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23186
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23187
  * )   ac_file_in=$ac_file.in ;;
 
23188
  esac
 
23189
 
 
23190
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
23191
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23192
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23193
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23194
         X"$ac_file" : 'X\(//\)$' \| \
 
23195
         X"$ac_file" : 'X\(/\)' \| \
 
23196
         .     : '\(.\)' 2>/dev/null ||
 
23197
echo X"$ac_file" |
 
23198
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23199
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23200
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23201
          /^X\(\/\).*/{ s//\1/; q; }
 
23202
          s/.*/./; q'`
 
23203
  { if $as_mkdir_p; then
 
23204
    mkdir -p "$ac_dir"
 
23205
  else
 
23206
    as_dir="$ac_dir"
 
23207
    as_dirs=
 
23208
    while test ! -d "$as_dir"; do
 
23209
      as_dirs="$as_dir $as_dirs"
 
23210
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23211
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23212
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23213
         X"$as_dir" : 'X\(//\)$' \| \
 
23214
         X"$as_dir" : 'X\(/\)' \| \
 
23215
         .     : '\(.\)' 2>/dev/null ||
 
23216
echo X"$as_dir" |
 
23217
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23218
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23219
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23220
          /^X\(\/\).*/{ s//\1/; q; }
 
23221
          s/.*/./; q'`
 
23222
    done
 
23223
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23224
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23225
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23226
   { (exit 1); exit 1; }; }; }
 
23227
 
 
23228
  ac_builddir=.
 
23229
 
 
23230
if test "$ac_dir" != .; then
 
23231
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23232
  # A "../" for each directory in $ac_dir_suffix.
 
23233
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23234
else
 
23235
  ac_dir_suffix= ac_top_builddir=
 
23236
fi
 
23237
 
 
23238
case $srcdir in
 
23239
  .)  # No --srcdir option.  We are building in place.
 
23240
    ac_srcdir=.
 
23241
    if test -z "$ac_top_builddir"; then
 
23242
       ac_top_srcdir=.
 
23243
    else
 
23244
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23245
    fi ;;
 
23246
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23247
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23248
    ac_top_srcdir=$srcdir ;;
 
23249
  *) # Relative path.
 
23250
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23251
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23252
esac
 
23253
 
 
23254
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23255
# the directories may not exist.
 
23256
case `pwd` in
 
23257
.) ac_abs_builddir="$ac_dir";;
 
23258
*)
 
23259
  case "$ac_dir" in
 
23260
  .) ac_abs_builddir=`pwd`;;
 
23261
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23262
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23263
  esac;;
 
23264
esac
 
23265
case $ac_abs_builddir in
 
23266
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23267
*)
 
23268
  case ${ac_top_builddir}. in
 
23269
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23270
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23271
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23272
  esac;;
 
23273
esac
 
23274
case $ac_abs_builddir in
 
23275
.) ac_abs_srcdir=$ac_srcdir;;
 
23276
*)
 
23277
  case $ac_srcdir in
 
23278
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23279
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23280
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23281
  esac;;
 
23282
esac
 
23283
case $ac_abs_builddir in
 
23284
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23285
*)
 
23286
  case $ac_top_srcdir in
 
23287
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23288
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23289
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23290
  esac;;
 
23291
esac
 
23292
 
 
23293
 
 
23294
  case $INSTALL in
 
23295
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23296
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
23297
  esac
 
23298
 
 
23299
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23300
  # use $as_me), people would be surprised to read:
 
23301
  #    /* config.h.  Generated by config.status.  */
 
23302
  if test x"$ac_file" = x-; then
 
23303
    configure_input=
 
23304
  else
 
23305
    configure_input="$ac_file.  "
 
23306
  fi
 
23307
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
23308
                                     sed 's,.*/,,'` by configure."
 
23309
 
 
23310
  # First look for the input files in the build tree, otherwise in the
 
23311
  # src tree.
 
23312
  ac_file_inputs=`IFS=:
 
23313
    for f in $ac_file_in; do
 
23314
      case $f in
 
23315
      -) echo $tmp/stdin ;;
 
23316
      [\\/$]*)
 
23317
         # Absolute (can't be DOS-style, as IFS=:)
 
23318
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23319
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23320
   { (exit 1); exit 1; }; }
 
23321
         echo "$f";;
 
23322
      *) # Relative
 
23323
         if test -f "$f"; then
 
23324
           # Build tree
 
23325
           echo "$f"
 
23326
         elif test -f "$srcdir/$f"; then
 
23327
           # Source tree
 
23328
           echo "$srcdir/$f"
 
23329
         else
 
23330
           # /dev/null tree
 
23331
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23332
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23333
   { (exit 1); exit 1; }; }
 
23334
         fi;;
 
23335
      esac
 
23336
    done` || { (exit 1); exit 1; }
 
23337
 
 
23338
  if test x"$ac_file" != x-; then
 
23339
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23340
echo "$as_me: creating $ac_file" >&6;}
 
23341
    rm -f "$ac_file"
 
23342
  fi
 
23343
_ACEOF
 
23344
cat >>$CONFIG_STATUS <<_ACEOF
 
23345
  sed "$ac_vpsub
 
23346
$extrasub
 
23347
_ACEOF
 
23348
cat >>$CONFIG_STATUS <<\_ACEOF
 
23349
:t
 
23350
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23351
s,@configure_input@,$configure_input,;t t
 
23352
s,@srcdir@,$ac_srcdir,;t t
 
23353
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
23354
s,@top_srcdir@,$ac_top_srcdir,;t t
 
23355
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
23356
s,@builddir@,$ac_builddir,;t t
 
23357
s,@abs_builddir@,$ac_abs_builddir,;t t
 
23358
s,@top_builddir@,$ac_top_builddir,;t t
 
23359
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
23360
s,@INSTALL@,$ac_INSTALL,;t t
 
23361
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
23362
  rm -f $tmp/stdin
 
23363
  if test x"$ac_file" != x-; then
 
23364
    mv $tmp/out $ac_file
 
23365
  else
 
23366
    cat $tmp/out
 
23367
    rm -f $tmp/out
 
23368
  fi
 
23369
 
 
23370
done
 
23371
_ACEOF
 
23372
cat >>$CONFIG_STATUS <<\_ACEOF
 
23373
 
 
23374
#
 
23375
# CONFIG_HEADER section.
 
23376
#
 
23377
 
 
23378
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
23379
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
23380
#
 
23381
# ac_d sets the value in "#define NAME VALUE" lines.
 
23382
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
23383
ac_dB='[         ].*$,\1#\2'
 
23384
ac_dC=' '
 
23385
ac_dD=',;t'
 
23386
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
23387
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
23388
ac_uB='$,\1#\2define\3'
 
23389
ac_uC=' '
 
23390
ac_uD=',;t'
 
23391
 
 
23392
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
23393
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
23394
  case $ac_file in
 
23395
  - | *:- | *:-:* ) # input from stdin
 
23396
        cat >$tmp/stdin
 
23397
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23398
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23399
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23400
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
23401
  * )   ac_file_in=$ac_file.in ;;
 
23402
  esac
 
23403
 
 
23404
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23405
echo "$as_me: creating $ac_file" >&6;}
 
23406
 
 
23407
  # First look for the input files in the build tree, otherwise in the
 
23408
  # src tree.
 
23409
  ac_file_inputs=`IFS=:
 
23410
    for f in $ac_file_in; do
 
23411
      case $f in
 
23412
      -) echo $tmp/stdin ;;
 
23413
      [\\/$]*)
 
23414
         # Absolute (can't be DOS-style, as IFS=:)
 
23415
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23416
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23417
   { (exit 1); exit 1; }; }
 
23418
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
23419
         echo "$f";;
 
23420
      *) # Relative
 
23421
         if test -f "$f"; then
 
23422
           # Build tree
 
23423
           echo "$f"
 
23424
         elif test -f "$srcdir/$f"; then
 
23425
           # Source tree
 
23426
           echo "$srcdir/$f"
 
23427
         else
 
23428
           # /dev/null tree
 
23429
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
23430
echo "$as_me: error: cannot find input file: $f" >&2;}
 
23431
   { (exit 1); exit 1; }; }
 
23432
         fi;;
 
23433
      esac
 
23434
    done` || { (exit 1); exit 1; }
 
23435
  # Remove the trailing spaces.
 
23436
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
23437
 
 
23438
_ACEOF
 
23439
 
 
23440
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
23441
# `conftest.undefs', that substitutes the proper values into
 
23442
# config.h.in to produce config.h.  The first handles `#define'
 
23443
# templates, and the second `#undef' templates.
 
23444
# And first: Protect against being on the right side of a sed subst in
 
23445
# config.status.  Protect against being in an unquoted here document
 
23446
# in config.status.
 
23447
rm -f conftest.defines conftest.undefs
 
23448
# Using a here document instead of a string reduces the quoting nightmare.
 
23449
# Putting comments in sed scripts is not portable.
 
23450
#
 
23451
# `end' is used to avoid that the second main sed command (meant for
 
23452
# 0-ary CPP macros) applies to n-ary macro definitions.
 
23453
# See the Autoconf documentation for `clear'.
 
23454
cat >confdef2sed.sed <<\_ACEOF
 
23455
s/[\\&,]/\\&/g
 
23456
s,[\\$`],\\&,g
 
23457
t clear
 
23458
: clear
 
23459
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
23460
t end
 
23461
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
23462
: end
 
23463
_ACEOF
 
23464
# If some macros were called several times there might be several times
 
23465
# the same #defines, which is useless.  Nevertheless, we may not want to
 
23466
# sort them, since we want the *last* AC-DEFINE to be honored.
 
23467
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
23468
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
23469
rm -f confdef2sed.sed
 
23470
 
 
23471
# This sed command replaces #undef with comments.  This is necessary, for
 
23472
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
23473
# on some systems where configure will not decide to define it.
 
23474
cat >>conftest.undefs <<\_ACEOF
 
23475
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
23476
_ACEOF
 
23477
 
 
23478
# Break up conftest.defines because some shells have a limit on the size
 
23479
# of here documents, and old seds have small limits too (100 cmds).
 
23480
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
23481
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
23482
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
23483
echo '  :' >>$CONFIG_STATUS
 
23484
rm -f conftest.tail
 
23485
while grep . conftest.defines >/dev/null
 
23486
do
 
23487
  # Write a limited-size here document to $tmp/defines.sed.
 
23488
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
23489
  # Speed up: don't consider the non `#define' lines.
 
23490
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
23491
  # Work around the forget-to-reset-the-flag bug.
 
23492
  echo 't clr' >>$CONFIG_STATUS
 
23493
  echo ': clr' >>$CONFIG_STATUS
 
23494
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
23495
  echo 'CEOF
 
23496
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
23497
  rm -f $tmp/in
 
23498
  mv $tmp/out $tmp/in
 
23499
' >>$CONFIG_STATUS
 
23500
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
23501
  rm -f conftest.defines
 
23502
  mv conftest.tail conftest.defines
 
23503
done
 
23504
rm -f conftest.defines
 
23505
echo '  fi # grep' >>$CONFIG_STATUS
 
23506
echo >>$CONFIG_STATUS
 
23507
 
 
23508
# Break up conftest.undefs because some shells have a limit on the size
 
23509
# of here documents, and old seds have small limits too (100 cmds).
 
23510
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
23511
rm -f conftest.tail
 
23512
while grep . conftest.undefs >/dev/null
 
23513
do
 
23514
  # Write a limited-size here document to $tmp/undefs.sed.
 
23515
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
23516
  # Speed up: don't consider the non `#undef'
 
23517
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
23518
  # Work around the forget-to-reset-the-flag bug.
 
23519
  echo 't clr' >>$CONFIG_STATUS
 
23520
  echo ': clr' >>$CONFIG_STATUS
 
23521
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
23522
  echo 'CEOF
 
23523
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
23524
  rm -f $tmp/in
 
23525
  mv $tmp/out $tmp/in
 
23526
' >>$CONFIG_STATUS
 
23527
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
23528
  rm -f conftest.undefs
 
23529
  mv conftest.tail conftest.undefs
 
23530
done
 
23531
rm -f conftest.undefs
 
23532
 
 
23533
cat >>$CONFIG_STATUS <<\_ACEOF
 
23534
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23535
  # use $as_me), people would be surprised to read:
 
23536
  #    /* config.h.  Generated by config.status.  */
 
23537
  if test x"$ac_file" = x-; then
 
23538
    echo "/* Generated by configure.  */" >$tmp/config.h
 
23539
  else
 
23540
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
23541
  fi
 
23542
  cat $tmp/in >>$tmp/config.h
 
23543
  rm -f $tmp/in
 
23544
  if test x"$ac_file" != x-; then
 
23545
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
23546
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
23547
echo "$as_me: $ac_file is unchanged" >&6;}
 
23548
    else
 
23549
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
23550
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23551
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23552
         X"$ac_file" : 'X\(//\)$' \| \
 
23553
         X"$ac_file" : 'X\(/\)' \| \
 
23554
         .     : '\(.\)' 2>/dev/null ||
 
23555
echo X"$ac_file" |
 
23556
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23557
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23558
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23559
          /^X\(\/\).*/{ s//\1/; q; }
 
23560
          s/.*/./; q'`
 
23561
      { if $as_mkdir_p; then
 
23562
    mkdir -p "$ac_dir"
 
23563
  else
 
23564
    as_dir="$ac_dir"
 
23565
    as_dirs=
 
23566
    while test ! -d "$as_dir"; do
 
23567
      as_dirs="$as_dir $as_dirs"
 
23568
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23569
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23570
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23571
         X"$as_dir" : 'X\(//\)$' \| \
 
23572
         X"$as_dir" : 'X\(/\)' \| \
 
23573
         .     : '\(.\)' 2>/dev/null ||
 
23574
echo X"$as_dir" |
 
23575
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23576
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23577
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23578
          /^X\(\/\).*/{ s//\1/; q; }
 
23579
          s/.*/./; q'`
 
23580
    done
 
23581
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23582
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23583
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23584
   { (exit 1); exit 1; }; }; }
 
23585
 
 
23586
      rm -f $ac_file
 
23587
      mv $tmp/config.h $ac_file
 
23588
    fi
 
23589
  else
 
23590
    cat $tmp/config.h
 
23591
    rm -f $tmp/config.h
 
23592
  fi
 
23593
  # Run the commands associated with the file.
 
23594
  case $ac_file in
 
23595
    config.h ) # update the timestamp
 
23596
echo 'timestamp for config.h' >"./stamp-h1"
 
23597
 ;;
 
23598
  esac
 
23599
done
 
23600
_ACEOF
 
23601
cat >>$CONFIG_STATUS <<\_ACEOF
 
23602
 
 
23603
#
 
23604
# CONFIG_COMMANDS section.
 
23605
#
 
23606
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
23607
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
23608
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
23609
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
23610
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23611
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
23612
         X"$ac_dest" : 'X\(//\)$' \| \
 
23613
         X"$ac_dest" : 'X\(/\)' \| \
 
23614
         .     : '\(.\)' 2>/dev/null ||
 
23615
echo X"$ac_dest" |
 
23616
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23617
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23618
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23619
          /^X\(\/\).*/{ s//\1/; q; }
 
23620
          s/.*/./; q'`
 
23621
  { if $as_mkdir_p; then
 
23622
    mkdir -p "$ac_dir"
 
23623
  else
 
23624
    as_dir="$ac_dir"
 
23625
    as_dirs=
 
23626
    while test ! -d "$as_dir"; do
 
23627
      as_dirs="$as_dir $as_dirs"
 
23628
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23629
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23630
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23631
         X"$as_dir" : 'X\(//\)$' \| \
 
23632
         X"$as_dir" : 'X\(/\)' \| \
 
23633
         .     : '\(.\)' 2>/dev/null ||
 
23634
echo X"$as_dir" |
 
23635
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23636
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23637
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23638
          /^X\(\/\).*/{ s//\1/; q; }
 
23639
          s/.*/./; q'`
 
23640
    done
 
23641
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23642
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23643
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
23644
   { (exit 1); exit 1; }; }; }
 
23645
 
 
23646
  ac_builddir=.
 
23647
 
 
23648
if test "$ac_dir" != .; then
 
23649
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23650
  # A "../" for each directory in $ac_dir_suffix.
 
23651
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
23652
else
 
23653
  ac_dir_suffix= ac_top_builddir=
 
23654
fi
 
23655
 
 
23656
case $srcdir in
 
23657
  .)  # No --srcdir option.  We are building in place.
 
23658
    ac_srcdir=.
 
23659
    if test -z "$ac_top_builddir"; then
 
23660
       ac_top_srcdir=.
 
23661
    else
 
23662
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
23663
    fi ;;
 
23664
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
23665
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23666
    ac_top_srcdir=$srcdir ;;
 
23667
  *) # Relative path.
 
23668
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
23669
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
23670
esac
 
23671
 
 
23672
# Do not use `cd foo && pwd` to compute absolute paths, because
 
23673
# the directories may not exist.
 
23674
case `pwd` in
 
23675
.) ac_abs_builddir="$ac_dir";;
 
23676
*)
 
23677
  case "$ac_dir" in
 
23678
  .) ac_abs_builddir=`pwd`;;
 
23679
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
23680
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
23681
  esac;;
 
23682
esac
 
23683
case $ac_abs_builddir in
 
23684
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23685
*)
 
23686
  case ${ac_top_builddir}. in
 
23687
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
23688
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
23689
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
23690
  esac;;
 
23691
esac
 
23692
case $ac_abs_builddir in
 
23693
.) ac_abs_srcdir=$ac_srcdir;;
 
23694
*)
 
23695
  case $ac_srcdir in
 
23696
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
23697
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
23698
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
23699
  esac;;
 
23700
esac
 
23701
case $ac_abs_builddir in
 
23702
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23703
*)
 
23704
  case $ac_top_srcdir in
 
23705
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
23706
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
23707
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
23708
  esac;;
 
23709
esac
 
23710
 
 
23711
 
 
23712
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
23713
echo "$as_me: executing $ac_dest commands" >&6;}
 
23714
  case $ac_dest in
 
23715
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
23716
  # Strip MF so we end up with the name of the file.
 
23717
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23718
  # Check whether this is an Automake generated Makefile or not.
 
23719
  # We used to match only the files named `Makefile.in', but
 
23720
  # some people rename them; so instead we look at the file content.
 
23721
  # Grep'ing the first line is not enough: some people post-process
 
23722
  # each Makefile.in and add a new line on top of each file to say so.
 
23723
  # So let's grep whole file.
 
23724
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
23725
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
23726
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23727
         X"$mf" : 'X\(//\)[^/]' \| \
 
23728
         X"$mf" : 'X\(//\)$' \| \
 
23729
         X"$mf" : 'X\(/\)' \| \
 
23730
         .     : '\(.\)' 2>/dev/null ||
 
23731
echo X"$mf" |
 
23732
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23733
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23734
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23735
          /^X\(\/\).*/{ s//\1/; q; }
 
23736
          s/.*/./; q'`
 
23737
  else
 
23738
    continue
 
23739
  fi
 
23740
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
23741
  # Extract the definition of DEP_FILES from the Makefile without
 
23742
  # running `make'.
 
23743
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
23744
  test -z "$DEPDIR" && continue
 
23745
  # When using ansi2knr, U may be empty or an underscore; expand it
 
23746
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
23747
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
23748
  # We invoke sed twice because it is the simplest approach to
 
23749
  # changing $(DEPDIR) to its actual value in the expansion.
 
23750
  for file in `sed -n -e '
 
23751
    /^DEP_FILES = .*\\\\$/ {
 
23752
      s/^DEP_FILES = //
 
23753
      :loop
 
23754
        s/\\\\$//
 
23755
        p
 
23756
        n
 
23757
        /\\\\$/ b loop
 
23758
      p
 
23759
    }
 
23760
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
23761
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23762
    # Make sure the directory exists.
 
23763
    test -f "$dirpart/$file" && continue
 
23764
    fdir=`(dirname "$file") 2>/dev/null ||
 
23765
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23766
         X"$file" : 'X\(//\)[^/]' \| \
 
23767
         X"$file" : 'X\(//\)$' \| \
 
23768
         X"$file" : 'X\(/\)' \| \
 
23769
         .     : '\(.\)' 2>/dev/null ||
 
23770
echo X"$file" |
 
23771
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23772
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23773
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23774
          /^X\(\/\).*/{ s//\1/; q; }
 
23775
          s/.*/./; q'`
 
23776
    { if $as_mkdir_p; then
 
23777
    mkdir -p $dirpart/$fdir
 
23778
  else
 
23779
    as_dir=$dirpart/$fdir
 
23780
    as_dirs=
 
23781
    while test ! -d "$as_dir"; do
 
23782
      as_dirs="$as_dir $as_dirs"
 
23783
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
23784
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23785
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23786
         X"$as_dir" : 'X\(//\)$' \| \
 
23787
         X"$as_dir" : 'X\(/\)' \| \
 
23788
         .     : '\(.\)' 2>/dev/null ||
 
23789
echo X"$as_dir" |
 
23790
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23791
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23792
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23793
          /^X\(\/\).*/{ s//\1/; q; }
 
23794
          s/.*/./; q'`
 
23795
    done
 
23796
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23797
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
23798
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
23799
   { (exit 1); exit 1; }; }; }
 
23800
 
 
23801
    # echo "creating $dirpart/$file"
 
23802
    echo '# dummy' > "$dirpart/$file"
 
23803
  done
 
23804
done
 
23805
 ;;
 
23806
  esac
 
23807
done
 
23808
_ACEOF
 
23809
 
 
23810
cat >>$CONFIG_STATUS <<\_ACEOF
 
23811
 
 
23812
{ (exit 0); exit 0; }
 
23813
_ACEOF
 
23814
chmod +x $CONFIG_STATUS
 
23815
ac_clean_files=$ac_clean_files_save
 
23816
 
 
23817
 
 
23818
# configure is writing to config.log, and then calls config.status.
 
23819
# config.status does its own redirection, appending to config.log.
 
23820
# Unfortunately, on DOS this fails, as config.log is still kept open
 
23821
# by configure, so config.status won't be able to write to it; its
 
23822
# output is simply discarded.  So we exec the FD to /dev/null,
 
23823
# effectively closing config.log, so it can be properly (re)opened and
 
23824
# appended to by config.status.  When coming back to configure, we
 
23825
# need to make the FD available again.
 
23826
if test "$no_create" != yes; then
 
23827
  ac_cs_success=:
 
23828
  ac_config_status_args=
 
23829
  test "$silent" = yes &&
 
23830
    ac_config_status_args="$ac_config_status_args --quiet"
 
23831
  exec 5>/dev/null
 
23832
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
23833
  exec 5>>config.log
 
23834
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
23835
  # would make configure fail if this is the last instruction.
 
23836
  $ac_cs_success || { (exit 1); exit 1; }
 
23837
fi
 
23838
 
 
23839
 
 
23840
echo "$as_me:$LINENO: result: " >&5
 
23841
echo "${ECHO_T}" >&6
 
23842
echo "$as_me:$LINENO: result: ipmitool $VERSION" >&5
 
23843
echo "${ECHO_T}ipmitool $VERSION" >&6
 
23844
echo "$as_me:$LINENO: result: " >&5
 
23845
echo "${ECHO_T}" >&6
 
23846
echo "$as_me:$LINENO: result: Interfaces" >&5
 
23847
echo "${ECHO_T}Interfaces" >&6
 
23848
echo "$as_me:$LINENO: result:   lan     : $enable_intf_lan" >&5
 
23849
echo "${ECHO_T}  lan     : $enable_intf_lan" >&6
 
23850
echo "$as_me:$LINENO: result:   lanplus : $enable_intf_lanplus" >&5
 
23851
echo "${ECHO_T}  lanplus : $enable_intf_lanplus" >&6
 
23852
echo "$as_me:$LINENO: result:   open    : $enable_intf_open" >&5
 
23853
echo "${ECHO_T}  open    : $enable_intf_open" >&6
 
23854
echo "$as_me:$LINENO: result:   imb     : $enable_intf_imb" >&5
 
23855
echo "${ECHO_T}  imb     : $enable_intf_imb" >&6
 
23856
echo "$as_me:$LINENO: result:   bmc     : $enable_intf_bmc" >&5
 
23857
echo "${ECHO_T}  bmc     : $enable_intf_bmc" >&6
 
23858
echo "$as_me:$LINENO: result:   lipmi   : $enable_intf_lipmi" >&5
 
23859
echo "${ECHO_T}  lipmi   : $enable_intf_lipmi" >&6
 
23860
echo "$as_me:$LINENO: result: " >&5
 
23861
echo "${ECHO_T}" >&6
 
23862
echo "$as_me:$LINENO: result: Extra tools" >&5
 
23863
echo "${ECHO_T}Extra tools" >&6
 
23864
echo "$as_me:$LINENO: result:   ipmievd : $enable_ipmievd" >&5
 
23865
echo "${ECHO_T}  ipmievd : $enable_ipmievd" >&6
 
23866
echo "$as_me:$LINENO: result: " >&5
 
23867
echo "${ECHO_T}" >&6
 
23868